Rename `@primevue/form` with `@primevue/forms`
parent
4949d22eb9
commit
a30fa5508a
|
@ -16,7 +16,7 @@ const core_dependencies = {
|
||||||
primevue: pkg.version || PrimeVue.version || 'latest',
|
primevue: pkg.version || PrimeVue.version || 'latest',
|
||||||
'@primevue/themes': pkg.version || PrimeVue.version || 'latest',
|
'@primevue/themes': pkg.version || PrimeVue.version || 'latest',
|
||||||
'@primevue/auto-import-resolver': pkg.version || PrimeVue.version || 'latest',
|
'@primevue/auto-import-resolver': pkg.version || PrimeVue.version || 'latest',
|
||||||
'@primevue/form': pkg.version || PrimeVue.version || 'latest',
|
'@primevue/forms': pkg.version || PrimeVue.version || 'latest',
|
||||||
primeicons: app_dependencies['primeicons'] || 'latest',
|
primeicons: app_dependencies['primeicons'] || 'latest',
|
||||||
tailwindcss: app_dependencies['tailwindcss'] || 'latest',
|
tailwindcss: app_dependencies['tailwindcss'] || 'latest',
|
||||||
autoprefixer: app_dependencies['autoprefixer'] || 'latest',
|
autoprefixer: app_dependencies['autoprefixer'] || 'latest',
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { CountryService } from '@/service/CountryService';
|
import { CountryService } from '@/service/CountryService';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -63,7 +63,7 @@ export default {
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { CountryService } from '@/service/CountryService';
|
import { CountryService } from '@/service/CountryService';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -127,7 +127,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, onMounted } from "vue";
|
import { ref, onMounted } from "vue";
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
import { CountryService } from "@/service/CountryService";
|
import { CountryService } from "@/service/CountryService";
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -251,7 +251,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -105,7 +105,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -165,7 +165,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -53,7 +53,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -95,7 +95,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -59,7 +59,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -107,7 +107,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -53,7 +53,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -95,7 +95,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -57,7 +57,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -106,7 +106,7 @@ input {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive } from 'vue';
|
import { reactive } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
import { useToast } from 'primevue/usetoast';
|
import { useToast } from 'primevue/usetoast';
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
Validations are implemented the with <i>resolver</i> property. A custom resolver is responsible for handling the validation and returning an <i>errors</i> object with key-value pairs where key is the form field name and value is an array
|
Validations are implemented the with <i>resolver</i> property. A custom resolver is responsible for handling the validation and returning an <i>errors</i> object with key-value pairs where key is the form field name and value is an array
|
||||||
of error object data. For productivity, we recommend using a schema validation library instead of building your own custom validation logic. The forms library provide built-in resolvers for popular options including
|
of error object data. For productivity, we recommend using a schema validation library instead of building your own custom validation logic. The forms library provide built-in resolvers for popular options including
|
||||||
<a href="https://zod.dev/">Zod</a>, <a href="https://github.com/jquense/yup">Yup</a>, <a href="https://joi.dev/">Joi</a>, <a href="https://valibot.dev/">Valibot</a>, and <a href="https://docs.superstructjs.org/">Superstruct</a> that can
|
<a href="https://zod.dev/">Zod</a>, <a href="https://github.com/jquense/yup">Yup</a>, <a href="https://joi.dev/">Joi</a>, <a href="https://valibot.dev/">Valibot</a>, and <a href="https://docs.superstructjs.org/">Superstruct</a> that can
|
||||||
be be imported from <i>@primevue/form/resolvers</i> path.
|
be be imported from <i>@primevue/forms/resolvers</i> path.
|
||||||
</p>
|
</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex flex-col items-center gap-5">
|
<div class="card flex flex-col items-center gap-5">
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { superStructResolver, valibotResolver, yupResolver, zodResolver } from '@primevue/form/resolvers';
|
import { superStructResolver, valibotResolver, yupResolver, zodResolver } from '@primevue/forms/resolvers';
|
||||||
import * as s from 'superstruct';
|
import * as s from 'superstruct';
|
||||||
import * as v from 'valibot';
|
import * as v from 'valibot';
|
||||||
import * as yup from 'yup';
|
import * as yup from 'yup';
|
||||||
|
@ -114,7 +114,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { superStructResolver, valibotResolver, yupResolver, zodResolver } from '@primevue/form/resolvers';
|
import { superStructResolver, valibotResolver, yupResolver, zodResolver } from '@primevue/forms/resolvers';
|
||||||
import * as s from 'superstruct';
|
import * as s from 'superstruct';
|
||||||
import * as v from 'valibot';
|
import * as v from 'valibot';
|
||||||
import * as yup from 'yup';
|
import * as yup from 'yup';
|
||||||
|
@ -225,7 +225,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, watch } from 'vue';
|
import { ref, watch } from 'vue';
|
||||||
import { superStructResolver, valibotResolver, yupResolver, zodResolver } from '@primevue/form/resolvers';
|
import { superStructResolver, valibotResolver, yupResolver, zodResolver } from '@primevue/forms/resolvers';
|
||||||
import * as s from 'superstruct';
|
import * as s from 'superstruct';
|
||||||
import * as v from 'valibot';
|
import * as v from 'valibot';
|
||||||
import * as yup from 'yup';
|
import * as yup from 'yup';
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -96,7 +96,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -168,7 +168,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
import { useToast } from 'primevue/usetoast';
|
import { useToast } from 'primevue/usetoast';
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { isNotEmpty } from '@primeuix/utils';
|
import { isNotEmpty } from '@primeuix/utils';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
import DynamicFormControl from './DynamicFormControl.vue';
|
import DynamicFormControl from './DynamicFormControl.vue';
|
||||||
import DynamicFormField from './DynamicFormField.vue';
|
import DynamicFormField from './DynamicFormField.vue';
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getPTOptions } from '@/components/doc/helpers';
|
import { getPTOptions } from '@/components/doc/helpers';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -53,7 +53,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -95,7 +95,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -53,7 +53,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -95,7 +95,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -53,7 +53,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -95,7 +95,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -67,7 +67,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -115,7 +115,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -54,7 +54,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -97,7 +97,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -65,7 +65,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -119,7 +119,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -64,7 +64,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -119,7 +119,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -71,7 +71,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -127,7 +127,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -104,7 +104,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -163,7 +163,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -53,7 +53,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -95,7 +95,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -63,7 +63,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -116,7 +116,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -54,7 +54,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -97,7 +97,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -53,7 +53,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -95,7 +95,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -53,7 +53,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -95,7 +95,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -53,7 +53,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -95,7 +95,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -53,7 +53,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -95,7 +95,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
import { NodeService } from '/service/NodeService';
|
import { NodeService } from '/service/NodeService';
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
import { NodeService } from '/service/NodeService';
|
import { NodeService } from '/service/NodeService';
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { zodResolver } from '@primevue/form/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
import { NodeService } from '/service/NodeService';
|
import { NodeService } from '/service/NodeService';
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
"@primevue/core": "workspace:*",
|
"@primevue/core": "workspace:*",
|
||||||
"@primevue/nuxt-module": "workspace:*",
|
"@primevue/nuxt-module": "workspace:*",
|
||||||
"@primevue/themes": "workspace:*",
|
"@primevue/themes": "workspace:*",
|
||||||
"@primevue/form": "workspace:*",
|
"@primevue/forms": "workspace:*",
|
||||||
"yup": "1.4.0",
|
"yup": "1.4.0",
|
||||||
"zod": "3.23.8",
|
"zod": "3.23.8",
|
||||||
"valibot": "^0.42.1",
|
"valibot": "^0.42.1",
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
"release:rc": "pnpm run build && pnpm recursive publish --filter './packages/*' --no-git-checks --report-summary --tag rc",
|
"release:rc": "pnpm run build && pnpm recursive publish --filter './packages/*' --no-git-checks --report-summary --tag rc",
|
||||||
"build": "NODE_ENV=production pnpm run build:check && pnpm run build:packages",
|
"build": "NODE_ENV=production pnpm run build:check && pnpm run build:packages",
|
||||||
"build:check": "pnpm run format:check && pnpm run security:check",
|
"build:check": "pnpm run format:check && pnpm run security:check",
|
||||||
"build:packages": "pnpm run build:metadata && pnpm run build:resolver && pnpm run build:core && pnpm run build:lib && pnpm run build:module && pnpm run build:themes && pnpm run build:icons && pnpm run build:form && pnpm run build:showcase",
|
"build:packages": "pnpm run build:metadata && pnpm run build:resolver && pnpm run build:core && pnpm run build:lib && pnpm run build:module && pnpm run build:themes && pnpm run build:icons && pnpm run build:forms && pnpm run build:showcase",
|
||||||
"build:resolver": "pnpm --filter auto-import-resolver build",
|
"build:resolver": "pnpm --filter auto-import-resolver build",
|
||||||
"build:core": "pnpm --filter core build",
|
"build:core": "pnpm --filter core build",
|
||||||
"build:metadata": "pnpm --filter metadata build",
|
"build:metadata": "pnpm --filter metadata build",
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
"build:lib": "pnpm --filter primevue build",
|
"build:lib": "pnpm --filter primevue build",
|
||||||
"build:themes": "pnpm --filter themes build",
|
"build:themes": "pnpm --filter themes build",
|
||||||
"build:icons": "pnpm --filter icons build",
|
"build:icons": "pnpm --filter icons build",
|
||||||
"build:form": "pnpm --filter form build",
|
"build:forms": "pnpm --filter forms build",
|
||||||
"build:showcase": "pnpm --filter showcase build",
|
"build:showcase": "pnpm --filter showcase build",
|
||||||
"build:apidoc": "pnpm --filter themes build:tokens && pnpm --filter showcase build:apidoc",
|
"build:apidoc": "pnpm --filter themes build:tokens && pnpm --filter showcase build:apidoc",
|
||||||
"dev": "pnpm --filter showcase dev",
|
"dev": "pnpm --filter showcase dev",
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
# PrimeVue Form
|
|
|
@ -0,0 +1 @@
|
||||||
|
# PrimeVue Forms
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "@primevue/form",
|
"name": "@primevue/forms",
|
||||||
"version": "4.1.1",
|
"version": "4.1.1",
|
||||||
"author": "PrimeTek Informatics",
|
"author": "PrimeTek Informatics",
|
||||||
"description": "",
|
"description": "",
|
||||||
|
@ -8,44 +8,36 @@
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/primefaces/primevue.git",
|
"url": "https://github.com/primefaces/primevue.git",
|
||||||
"directory": "packages/form"
|
"directory": "packages/forms"
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/primefaces/primevue/issues"
|
"url": "https://github.com/primefaces/primevue/issues"
|
||||||
},
|
},
|
||||||
"main": "./src/form/Form.vue",
|
"main": "./src/index.js",
|
||||||
"types": "./src/form/Form.d.ts",
|
"module": "./src/index.js",
|
||||||
|
"types": "./src/index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/form/Form.vue",
|
".": "./src/index.js",
|
||||||
"./style": "./src/form/style/FormStyle.js",
|
"./form": "./src/form/Form.vue",
|
||||||
"./field": "./src/formfield/FormField.vue",
|
"./form/style": "./src/form/style/FormStyle.js",
|
||||||
"./field/style": "./src/formfield/style/FormFieldStyle.js",
|
"./formfield": "./src/formfield/FormField.vue",
|
||||||
|
"./formfield/style": "./src/formfield/style/FormFieldStyle.js",
|
||||||
"./*": "./src/*/index.js"
|
"./*": "./src/*/index.js"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"main": "./form/index.mjs",
|
"main": "./index.mjs",
|
||||||
"module": "./form/index.mjs",
|
"module": "./index.mjs",
|
||||||
"types": "./form/index.d.ts",
|
"types": "./index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./form/index.d.ts",
|
"types": "./index.d.ts",
|
||||||
"import": "./form/index.mjs"
|
"import": "./index.mjs",
|
||||||
},
|
"default": "./index.mjs"
|
||||||
"./style": {
|
|
||||||
"types": "./form/style/index.d.ts",
|
|
||||||
"import": "./form/style/index.mjs"
|
|
||||||
},
|
|
||||||
"./field": {
|
|
||||||
"types": "./formfield/index.d.ts",
|
|
||||||
"import": "./formfield/index.mjs"
|
|
||||||
},
|
|
||||||
"./field/style": {
|
|
||||||
"types": "./formfield/style/index.d.ts",
|
|
||||||
"import": "./formfield/style/index.mjs"
|
|
||||||
},
|
},
|
||||||
"./*": {
|
"./*": {
|
||||||
"types": "./*/index.d.ts",
|
"types": "./*/index.d.ts",
|
||||||
"import": "./*/index.mjs"
|
"import": "./*/index.mjs",
|
||||||
|
"default": "./*/index.mjs"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"directory": "dist",
|
"directory": "dist",
|
|
@ -25,7 +25,7 @@ const EXTERNALS = [...GLOBAL_EXTERNALS, ...INLINE_EXTERNALS];
|
||||||
// alias
|
// alias
|
||||||
const ALIAS_ENTRIES = [
|
const ALIAS_ENTRIES = [
|
||||||
{
|
{
|
||||||
find: /^@primevue\/form\/(.*)$/,
|
find: /^@primevue\/forms\/(.*)$/,
|
||||||
replacement: path.resolve(__dirname, './src/$1'),
|
replacement: path.resolve(__dirname, './src/$1'),
|
||||||
customResolver(source, importer) {
|
customResolver(source, importer) {
|
||||||
const basedir = path.dirname(importer);
|
const basedir = path.dirname(importer);
|
||||||
|
@ -43,8 +43,8 @@ const ALIAS_ENTRIES = [
|
||||||
return targetFile ? path.join(folderPath, targetFile) : null;
|
return targetFile ? path.join(folderPath, targetFile) : null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ find: '@primevue/form/resolvers', replacement: path.resolve(__dirname, './src/resolvers/index.js') },
|
{ find: '@primevue/forms/resolvers', replacement: path.resolve(__dirname, './src/resolvers/index.js') },
|
||||||
{ find: '@primevue/form/useform', replacement: path.resolve(__dirname, './src/useform/index.js') }
|
{ find: '@primevue/forms/useform', replacement: path.resolve(__dirname, './src/useform/index.js') }
|
||||||
];
|
];
|
||||||
|
|
||||||
// plugins
|
// plugins
|
|
@ -1,6 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import BaseComponent from '@primevue/core/basecomponent';
|
import BaseComponent from '@primevue/core/basecomponent';
|
||||||
import FormStyle from '@primevue/form/style';
|
import FormStyle from '@primevue/forms/form/style';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'BaseForm',
|
name: 'BaseForm',
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { omit } from '@primeuix/utils';
|
import { omit } from '@primeuix/utils';
|
||||||
import { useForm } from '@primevue/form/useform';
|
import { useForm } from '@primevue/forms/useform';
|
||||||
import BaseForm from './BaseForm.vue';
|
import BaseForm from './BaseForm.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
|
@ -1,6 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import BaseComponent from '@primevue/core/basecomponent';
|
import BaseComponent from '@primevue/core/basecomponent';
|
||||||
import FormFieldStyle from '@primevue/form/field/style';
|
import FormFieldStyle from '@primevue/forms/field/style';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'BaseFormField',
|
name: 'BaseFormField',
|
|
@ -0,0 +1,5 @@
|
||||||
|
export { default as Form } from '@primevue/forms/form';
|
||||||
|
export { default as FormStyle } from '@primevue/forms/form/style';
|
||||||
|
|
||||||
|
export { default as FormField } from '@primevue/forms/formfield';
|
||||||
|
export { default as FormFieldStyle } from '@primevue/forms/formfield/style';
|
|
@ -0,0 +1,5 @@
|
||||||
|
export { default as Form } from '@primevue/forms/form';
|
||||||
|
export { default as FormStyle } from '@primevue/forms/form/style';
|
||||||
|
|
||||||
|
export { default as FormField } from '@primevue/forms/formfield';
|
||||||
|
export { default as FormFieldStyle } from '@primevue/forms/formfield/style';
|
|
@ -16,7 +16,7 @@
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@primevue/form/*": ["./src/*"],
|
"@primevue/forms/*": ["./src/*"],
|
||||||
"@primevue/core/*": ["../../packages/core/src/*"]
|
"@primevue/core/*": ["../../packages/core/src/*"]
|
||||||
}
|
}
|
||||||
},
|
},
|
|
@ -97,8 +97,8 @@ export const media: MetaType[] = toMeta(['Carousel', 'Galleria', 'Image', 'Image
|
||||||
export const misc: MetaType[] = toMeta(['Avatar', 'AvatarGroup', 'Badge', 'BlockUI', 'Chip', 'Inplace', 'MeterGroup', 'OverlayBadge', 'ScrollTop', 'Skeleton', 'ProgressBar', 'ProgressSpinner', 'Tag', 'Terminal']);
|
export const misc: MetaType[] = toMeta(['Avatar', 'AvatarGroup', 'Badge', 'BlockUI', 'Chip', 'Inplace', 'MeterGroup', 'OverlayBadge', 'ScrollTop', 'Skeleton', 'ProgressBar', 'ProgressSpinner', 'Tag', 'Terminal']);
|
||||||
|
|
||||||
export const extensions: MetaType[] = toMeta([
|
export const extensions: MetaType[] = toMeta([
|
||||||
{ name: 'Form', from: '@primevue/form' },
|
{ name: 'Form', from: '@primevue/forms/form' },
|
||||||
{ name: 'FormField', from: '@primevue/form/field' }
|
{ name: 'FormField', from: '@primevue/forms/formfield' }
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// All PrimeVue Components
|
// All PrimeVue Components
|
||||||
|
|
|
@ -81,9 +81,9 @@ importers:
|
||||||
'@primevue/core':
|
'@primevue/core':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/core
|
version: link:../../packages/core
|
||||||
'@primevue/form':
|
'@primevue/forms':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/form
|
version: link:../../packages/forms
|
||||||
'@primevue/nuxt-module':
|
'@primevue/nuxt-module':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/nuxt-module
|
version: link:../../packages/nuxt-module
|
||||||
|
@ -175,7 +175,7 @@ importers:
|
||||||
version: 3.5.12(typescript@5.6.3)
|
version: 3.5.12(typescript@5.6.3)
|
||||||
publishDirectory: dist
|
publishDirectory: dist
|
||||||
|
|
||||||
packages/form:
|
packages/forms:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@primeuix/form':
|
'@primeuix/form':
|
||||||
specifier: 'catalog:'
|
specifier: 'catalog:'
|
||||||
|
|
Loading…
Reference in New Issue