Update form docs

pull/6714/head
Mert Sincan 2024-11-01 21:54:30 +00:00
parent cb7e707f03
commit 2e3dcdac90
32 changed files with 106 additions and 91 deletions

View File

@ -16,7 +16,7 @@
<script>
import { CountryService } from '@/service/CountryService';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -63,7 +63,7 @@ export default {
<script>
import { CountryService } from '@/service/CountryService';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -127,7 +127,7 @@ export default {
<script setup>
import { ref, onMounted } from "vue";
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';
import { CountryService } from "@/service/CountryService";

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -251,7 +251,7 @@ export default {
<script setup>
import { ref } from "vue";
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -32,7 +32,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -105,7 +105,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -165,7 +165,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -53,7 +53,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -95,7 +95,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -59,7 +59,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -107,7 +107,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -53,7 +53,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -95,7 +95,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -361,7 +361,7 @@ const onFormSubmit = (text, { valid }) => {
<script setup>
import { ref, computed, provide } from 'vue';
import { isNotEmpty } from '@primeuix/utils';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
import DynamicFormControl from './DynamicFormControl.vue';
import DynamicFormField from './DynamicFormField.vue';
@ -548,7 +548,7 @@ const props = defineProps({
<script setup>
import { ref, computed, provide } from 'vue';
import { isNotEmpty } from '@primeuix/utils';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
import DynamicFormControl from './DynamicFormControl.vue';
import DynamicFormField from './DynamicFormField.vue';

View File

@ -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
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
be be imported from <i>@primevue/forms/resolvers</i> path.
be be imported from <i>@primevue/forms/resolvers/*</i> path.
</p>
</DocSectionText>
<div class="card flex flex-col items-center gap-5">
@ -45,7 +45,10 @@
</template>
<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 v from 'valibot';
import * as yup from 'yup';
@ -114,7 +117,10 @@ export default {
</template>
<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 v from 'valibot';
import * as yup from 'yup';
@ -225,7 +231,10 @@ export default {
<script setup>
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 v from 'valibot';
import * as yup from 'yup';

View File

@ -26,7 +26,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -96,7 +96,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -168,7 +168,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
import { useToast } from 'primevue/usetoast';

View File

@ -15,7 +15,7 @@
<script setup>
import { isNotEmpty } from '@primeuix/utils';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
import DynamicFormControl from './DynamicFormControl.vue';
import DynamicFormField from './DynamicFormField.vue';

View File

@ -18,7 +18,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -55,7 +55,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -93,7 +93,7 @@ export default {
<script setup>
import { reactive } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
import { useToast } from 'primevue/usetoast';

View File

@ -19,7 +19,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -65,7 +65,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -120,7 +120,7 @@ input.error {
<script setup>
import { reactive } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
import { useToast } from 'primevue/usetoast';

View File

@ -31,7 +31,9 @@
</template>
<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 yup from 'yup';
import { z } from 'zod';
@ -108,7 +110,9 @@ export default {
</template>
<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 yup from 'yup';
import { z } from 'zod';
@ -181,7 +185,9 @@ export default {
<script setup>
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 yup from 'yup';
import { z } from 'zod';

View File

@ -21,7 +21,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -71,7 +71,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -116,7 +116,7 @@ export default {
<script setup>
import { reactive } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
import { useToast } from 'primevue/usetoast';

View File

@ -12,7 +12,7 @@
<script>
import { getPTOptions } from '@/components/doc/helpers';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -53,7 +53,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -95,7 +95,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -53,7 +53,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -95,7 +95,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -53,7 +53,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -95,7 +95,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -19,7 +19,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -67,7 +67,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -115,7 +115,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -54,7 +54,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -97,7 +97,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -65,7 +65,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -119,7 +119,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -13,7 +13,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -64,7 +64,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -119,7 +119,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -17,7 +17,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -71,7 +71,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -127,7 +127,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -32,7 +32,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -104,7 +104,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -163,7 +163,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -53,7 +53,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -95,7 +95,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -13,7 +13,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -63,7 +63,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -116,7 +116,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -54,7 +54,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -97,7 +97,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -53,7 +53,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -95,7 +95,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -53,7 +53,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -95,7 +95,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -53,7 +53,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -95,7 +95,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -53,7 +53,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
export default {
@ -95,7 +95,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
import { NodeService } from '/service/NodeService';
@ -55,7 +55,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { z } from 'zod';
import { NodeService } from '/service/NodeService';
@ -99,7 +99,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/forms/resolvers';
import { zodResolver } from '@primevue/forms/resolvers/zod';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';
import { NodeService } from '/service/NodeService';