Update form docs
parent
cb7e707f03
commit
2e3dcdac90
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { CountryService } from '@/service/CountryService';
|
import { CountryService } from '@/service/CountryService';
|
||||||
import { zodResolver } from '@primevue/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
|
|
|
@ -361,7 +361,7 @@ const onFormSubmit = (text, { valid }) => {
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, computed, provide } from 'vue';
|
import { ref, computed, provide } from 'vue';
|
||||||
import { isNotEmpty } from '@primeuix/utils';
|
import { isNotEmpty } from '@primeuix/utils';
|
||||||
import { zodResolver } from '@primevue/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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';
|
||||||
|
@ -548,7 +548,7 @@ const props = defineProps({
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, computed, provide } from 'vue';
|
import { ref, computed, provide } from 'vue';
|
||||||
import { isNotEmpty } from '@primeuix/utils';
|
import { isNotEmpty } from '@primeuix/utils';
|
||||||
import { zodResolver } from '@primevue/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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';
|
||||||
|
|
|
@ -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/forms/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,10 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { superStructResolver, valibotResolver, yupResolver, zodResolver } from '@primevue/forms/resolvers';
|
import { superStructResolver } from '@primevue/forms/resolvers/superstruct';
|
||||||
|
import { valibotResolver } from '@primevue/forms/resolvers/valibot';
|
||||||
|
import { yupResolver } from '@primevue/forms/resolvers/yup';
|
||||||
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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 +117,10 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { superStructResolver, valibotResolver, yupResolver, zodResolver } from '@primevue/forms/resolvers';
|
import { superStructResolver } from '@primevue/forms/resolvers/superstruct';
|
||||||
|
import { valibotResolver } from '@primevue/forms/resolvers/valibot';
|
||||||
|
import { yupResolver } from '@primevue/forms/resolvers/yup';
|
||||||
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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 +231,10 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, watch } from 'vue';
|
import { ref, watch } from 'vue';
|
||||||
import { superStructResolver, valibotResolver, yupResolver, zodResolver } from '@primevue/forms/resolvers';
|
import { superStructResolver } from '@primevue/forms/resolvers/superstruct';
|
||||||
|
import { valibotResolver } from '@primevue/forms/resolvers/valibot';
|
||||||
|
import { yupResolver } from '@primevue/forms/resolvers/yup';
|
||||||
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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';
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -55,7 +55,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -93,7 +93,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive } from 'vue';
|
import { reactive } from 'vue';
|
||||||
import { zodResolver } from '@primevue/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
import { useToast } from 'primevue/usetoast';
|
import { useToast } from 'primevue/usetoast';
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -120,7 +120,7 @@ input.error {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive } from 'vue';
|
import { reactive } from 'vue';
|
||||||
import { zodResolver } from '@primevue/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
import { useToast } from 'primevue/usetoast';
|
import { useToast } from 'primevue/usetoast';
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,9 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { valibotResolver, yupResolver, zodResolver } from '@primevue/forms/resolvers';
|
import { valibotResolver } from '@primevue/forms/resolvers/valibot';
|
||||||
|
import { yupResolver } from '@primevue/forms/resolvers/yup';
|
||||||
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
import * as v from 'valibot';
|
import * as v from 'valibot';
|
||||||
import * as yup from 'yup';
|
import * as yup from 'yup';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
@ -108,7 +110,9 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { valibotResolver, yupResolver, zodResolver } from '@primevue/forms/resolvers';
|
import { valibotResolver } from '@primevue/forms/resolvers/valibot';
|
||||||
|
import { yupResolver } from '@primevue/forms/resolvers/yup';
|
||||||
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
import * as v from 'valibot';
|
import * as v from 'valibot';
|
||||||
import * as yup from 'yup';
|
import * as yup from 'yup';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
@ -181,7 +185,9 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive } from 'vue';
|
import { reactive } from 'vue';
|
||||||
import { valibotResolver, yupResolver, zodResolver } from '@primevue/forms/resolvers';
|
import { valibotResolver } from '@primevue/forms/resolvers/valibot';
|
||||||
|
import { yupResolver } from '@primevue/forms/resolvers/yup';
|
||||||
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
import * as v from 'valibot';
|
import * as v from 'valibot';
|
||||||
import * as yup from 'yup';
|
import * as yup from 'yup';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -116,7 +116,7 @@ export default {
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive } from 'vue';
|
import { reactive } from 'vue';
|
||||||
import { zodResolver } from '@primevue/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
import { useToast } from 'primevue/usetoast';
|
import { useToast } from 'primevue/usetoast';
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getPTOptions } from '@/components/doc/helpers';
|
import { getPTOptions } from '@/components/doc/helpers';
|
||||||
import { zodResolver } from '@primevue/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { zodResolver } from '@primevue/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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/forms/resolvers';
|
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
||||||
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';
|
||||||
|
|
Loading…
Reference in New Issue