@macrulez/vue-form-schema 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/parsers/valibot.d.ts.map +1 -1
- package/dist/parsers/yup.d.ts.map +1 -1
- package/dist/parsers/zod.d.ts.map +1 -1
- package/dist/ui-naive.d.ts +153 -288
- package/dist/ui-primevue.d.ts +153 -288
- package/dist/ui-shadcn.d.ts +153 -288
- package/dist/ui-tailwind.d.ts +153 -288
- package/dist/ui.d.ts +170 -322
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -1108,7 +1108,7 @@ import { useForm } from '@macrulez/vue-form-schema'
|
|
|
1108
1108
|
const schema = z.object({ username: z.string(), age: z.number() })
|
|
1109
1109
|
const fields = parseZod(schema)
|
|
1110
1110
|
|
|
1111
|
-
const { values
|
|
1111
|
+
const { values } = useForm({
|
|
1112
1112
|
schema: fields,
|
|
1113
1113
|
onSubmit: (data) => {
|
|
1114
1114
|
data.username // string ✓ — inferred from `schema`, not Record<string, unknown>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valibot.d.ts","sourceRoot":"","sources":["../../src/parsers/valibot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA2C,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAKnG,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"valibot.d.ts","sourceRoot":"","sources":["../../src/parsers/valibot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA2C,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAKnG,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAKzD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,aAAa,EAClD,MAAM,EAAE,CAAC,GACR,qBAAqB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAcvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yup.d.ts","sourceRoot":"","sources":["../../src/parsers/yup.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAmB,qBAAqB,EAAe,MAAM,eAAe,CAAA;AAIxF,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"yup.d.ts","sourceRoot":"","sources":["../../src/parsers/yup.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAmB,qBAAqB,EAAe,MAAM,eAAe,CAAA;AAIxF,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AA8E/C;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,SAAS,EAAE,MAAM,EAAE,CAAC,GAAG,qBAAqB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAQ5F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../src/parsers/zod.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAmB,qBAAqB,EAAe,MAAM,eAAe,CAAA;AAKxF,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../src/parsers/zod.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAmB,qBAAqB,EAAe,MAAM,eAAe,CAAA;AAKxF,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAgM5B;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,EAC3D,MAAM,EAAE,CAAC,GACR,qBAAqB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;AACpC;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,aAAa,SAAS,MAAM,EAC5B,OAAO,SAAS,SAAS,CAAC,CAAC,2BAA2B,CAAC,aAAa,CAAC,EAAE,EAEvE,MAAM,EAAE,CAAC,CAAC,qBAAqB,CAAC,aAAa,EAAE,OAAO,CAAC,GACtD,qBAAqB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,qBAAqB,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC,CAAA"}
|
package/dist/ui-naive.d.ts
CHANGED
|
@@ -3,164 +3,165 @@ import { ComponentOptionsMixin } from 'vue';
|
|
|
3
3
|
import { ComponentProvideOptions } from 'vue';
|
|
4
4
|
import { ComputedRef } from 'vue';
|
|
5
5
|
import { DefineComponent } from 'vue';
|
|
6
|
-
import { ExtractPropTypes } from 'vue';
|
|
7
|
-
import { PropType } from 'vue';
|
|
8
6
|
import { PublicProps } from 'vue';
|
|
9
7
|
import { Ref } from 'vue';
|
|
10
8
|
|
|
11
|
-
declare const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}, string, PublicProps, Readonly<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
declare
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
declare
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
9
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
|
+
submit: () => any;
|
|
11
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onSubmit?: (() => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
|
|
17
|
+
declare const __VLS_export_10: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
|
|
19
|
+
declare const __VLS_export_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
20
|
+
blur: () => any;
|
|
21
|
+
"update:modelValue": (value: string) => any;
|
|
22
|
+
}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
|
|
23
|
+
onBlur?: (() => any) | undefined;
|
|
24
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
|
|
27
|
+
declare const __VLS_export_3: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
28
|
+
blur: () => any;
|
|
29
|
+
"update:modelValue": (value: number | null) => any;
|
|
30
|
+
}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{
|
|
31
|
+
onBlur?: (() => any) | undefined;
|
|
32
|
+
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
33
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
|
|
35
|
+
declare const __VLS_export_4: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
36
|
+
blur: () => any;
|
|
37
|
+
"update:modelValue": (value: string) => any;
|
|
38
|
+
}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{
|
|
39
|
+
onBlur?: (() => any) | undefined;
|
|
40
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
41
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
|
|
43
|
+
declare const __VLS_export_5: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
44
|
+
blur: () => any;
|
|
45
|
+
"update:modelValue": (value: unknown) => any;
|
|
46
|
+
}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{
|
|
47
|
+
onBlur?: (() => any) | undefined;
|
|
48
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
49
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
50
|
+
|
|
51
|
+
declare const __VLS_export_6: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
52
|
+
blur: () => any;
|
|
53
|
+
"update:modelValue": (value: boolean) => any;
|
|
54
|
+
}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{
|
|
55
|
+
onBlur?: (() => any) | undefined;
|
|
56
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
57
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
58
|
+
|
|
59
|
+
declare const __VLS_export_7: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
60
|
+
blur: () => any;
|
|
61
|
+
"update:modelValue": (value: unknown) => any;
|
|
62
|
+
}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{
|
|
63
|
+
onBlur?: (() => any) | undefined;
|
|
64
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
65
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
66
|
+
|
|
67
|
+
declare const __VLS_export_8: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
68
|
+
blur: () => any;
|
|
69
|
+
"update:modelValue": (value: string) => any;
|
|
70
|
+
}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{
|
|
71
|
+
onBlur?: (() => any) | undefined;
|
|
72
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
73
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
74
|
+
|
|
75
|
+
declare const __VLS_export_9: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
76
|
+
blur: () => any;
|
|
77
|
+
"update:modelValue": (value: File | File[] | null) => any;
|
|
78
|
+
}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{
|
|
79
|
+
onBlur?: (() => any) | undefined;
|
|
80
|
+
"onUpdate:modelValue"?: ((value: File | File[] | null) => any) | undefined;
|
|
81
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
82
|
+
|
|
83
|
+
declare type __VLS_Props = {
|
|
84
|
+
form: UseFormReturn;
|
|
85
|
+
components?: Partial<Record<FieldDefinition['type'], Component | string>>;
|
|
86
|
+
submitLabel?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Internal: the field list to render. Used by the `group` case to recurse
|
|
89
|
+
* into `field.fields` instead of re-rendering the whole top-level schema
|
|
90
|
+
* (which would recurse into the same group forever). Defaults to the
|
|
91
|
+
* form's top-level fields — not meant to be passed by consumers.
|
|
92
|
+
*/
|
|
93
|
+
fields?: FieldDefinition[];
|
|
71
94
|
};
|
|
72
95
|
|
|
73
|
-
declare type
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
type: PropType<T[K]>;
|
|
78
|
-
required: true;
|
|
79
|
-
};
|
|
96
|
+
declare type __VLS_Props_10 = {
|
|
97
|
+
field: FieldDefinition;
|
|
98
|
+
form: UseFormReturn;
|
|
99
|
+
components?: Partial<Record<FieldDefinition['type'], Component | string>>;
|
|
80
100
|
};
|
|
81
101
|
|
|
82
|
-
declare type
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
required: true;
|
|
88
|
-
};
|
|
102
|
+
declare type __VLS_Props_2 = {
|
|
103
|
+
field: FieldDefinition;
|
|
104
|
+
modelValue: string | null;
|
|
105
|
+
error?: string[];
|
|
106
|
+
touched?: boolean;
|
|
89
107
|
};
|
|
90
108
|
|
|
91
|
-
declare type
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
required: true;
|
|
97
|
-
};
|
|
109
|
+
declare type __VLS_Props_3 = {
|
|
110
|
+
field: FieldDefinition;
|
|
111
|
+
modelValue: number | null;
|
|
112
|
+
error?: string[];
|
|
113
|
+
touched?: boolean;
|
|
98
114
|
};
|
|
99
115
|
|
|
100
|
-
declare type
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
required: true;
|
|
106
|
-
};
|
|
116
|
+
declare type __VLS_Props_4 = {
|
|
117
|
+
field: FieldDefinition;
|
|
118
|
+
modelValue: string | null;
|
|
119
|
+
error?: string[];
|
|
120
|
+
touched?: boolean;
|
|
107
121
|
};
|
|
108
122
|
|
|
109
|
-
declare type
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
required: true;
|
|
115
|
-
};
|
|
123
|
+
declare type __VLS_Props_5 = {
|
|
124
|
+
field: FieldDefinition;
|
|
125
|
+
modelValue: unknown;
|
|
126
|
+
error?: string[];
|
|
127
|
+
touched?: boolean;
|
|
116
128
|
};
|
|
117
129
|
|
|
118
|
-
declare type
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
required: true;
|
|
124
|
-
};
|
|
130
|
+
declare type __VLS_Props_6 = {
|
|
131
|
+
field: FieldDefinition;
|
|
132
|
+
modelValue: boolean | null;
|
|
133
|
+
error?: string[];
|
|
134
|
+
touched?: boolean;
|
|
125
135
|
};
|
|
126
136
|
|
|
127
|
-
declare type
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
required: true;
|
|
133
|
-
};
|
|
137
|
+
declare type __VLS_Props_7 = {
|
|
138
|
+
field: FieldDefinition;
|
|
139
|
+
modelValue: unknown;
|
|
140
|
+
error?: string[];
|
|
141
|
+
touched?: boolean;
|
|
134
142
|
};
|
|
135
143
|
|
|
136
|
-
declare type
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
required: true;
|
|
142
|
-
};
|
|
144
|
+
declare type __VLS_Props_8 = {
|
|
145
|
+
field: FieldDefinition;
|
|
146
|
+
modelValue: string | null;
|
|
147
|
+
error?: string[];
|
|
148
|
+
touched?: boolean;
|
|
143
149
|
};
|
|
144
150
|
|
|
145
|
-
declare type
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
required: true;
|
|
151
|
-
};
|
|
151
|
+
declare type __VLS_Props_9 = {
|
|
152
|
+
field: FieldDefinition;
|
|
153
|
+
modelValue: File | File[] | null;
|
|
154
|
+
error?: string[];
|
|
155
|
+
touched?: boolean;
|
|
152
156
|
};
|
|
153
157
|
|
|
154
|
-
declare type
|
|
155
|
-
[K in
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
type: PropType<T[K]>;
|
|
159
|
-
required: true;
|
|
160
|
-
};
|
|
158
|
+
declare type __VLS_Slots = {} & {
|
|
159
|
+
[K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
|
|
160
|
+
} & {
|
|
161
|
+
submit?: (props: typeof __VLS_29) => any;
|
|
161
162
|
};
|
|
162
163
|
|
|
163
|
-
declare type
|
|
164
|
+
declare type __VLS_WithSlots<T, S> = T & {
|
|
164
165
|
new (): {
|
|
165
166
|
$slots: S;
|
|
166
167
|
};
|
|
@@ -234,161 +235,25 @@ declare interface MaskConfig {
|
|
|
234
235
|
|
|
235
236
|
declare type MaskPreset = 'phone-ru' | 'phone-eu' | 'date' | 'inn' | 'iban';
|
|
236
237
|
|
|
237
|
-
export declare const NaiveFormRenderer:
|
|
238
|
-
|
|
239
|
-
export declare const NuArrayField:
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
export declare const
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
"update:modelValue": (value: boolean) => void;
|
|
257
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_6<{
|
|
258
|
-
field: FieldDefinition;
|
|
259
|
-
modelValue: boolean | null;
|
|
260
|
-
error?: string[];
|
|
261
|
-
touched?: boolean;
|
|
262
|
-
}>>> & Readonly<{
|
|
263
|
-
onBlur?: (() => any) | undefined;
|
|
264
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
265
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
266
|
-
|
|
267
|
-
export declare const NuDateField: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_8<{
|
|
268
|
-
field: FieldDefinition;
|
|
269
|
-
modelValue: string | null;
|
|
270
|
-
error?: string[];
|
|
271
|
-
touched?: boolean;
|
|
272
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
273
|
-
blur: () => void;
|
|
274
|
-
"update:modelValue": (value: string) => void;
|
|
275
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_8<{
|
|
276
|
-
field: FieldDefinition;
|
|
277
|
-
modelValue: string | null;
|
|
278
|
-
error?: string[];
|
|
279
|
-
touched?: boolean;
|
|
280
|
-
}>>> & Readonly<{
|
|
281
|
-
onBlur?: (() => any) | undefined;
|
|
282
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
283
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
284
|
-
|
|
285
|
-
export declare const NuFileField: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_9<{
|
|
286
|
-
field: FieldDefinition;
|
|
287
|
-
modelValue: File | File[] | null;
|
|
288
|
-
error?: string[];
|
|
289
|
-
touched?: boolean;
|
|
290
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
291
|
-
blur: () => void;
|
|
292
|
-
"update:modelValue": (value: File | File[] | null) => void;
|
|
293
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_9<{
|
|
294
|
-
field: FieldDefinition;
|
|
295
|
-
modelValue: File | File[] | null;
|
|
296
|
-
error?: string[];
|
|
297
|
-
touched?: boolean;
|
|
298
|
-
}>>> & Readonly<{
|
|
299
|
-
onBlur?: (() => any) | undefined;
|
|
300
|
-
"onUpdate:modelValue"?: ((value: File | File[] | null) => any) | undefined;
|
|
301
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
302
|
-
|
|
303
|
-
export declare const NuNumberField: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_3<{
|
|
304
|
-
field: FieldDefinition;
|
|
305
|
-
modelValue: number | null;
|
|
306
|
-
error?: string[];
|
|
307
|
-
touched?: boolean;
|
|
308
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
309
|
-
blur: () => void;
|
|
310
|
-
"update:modelValue": (value: number | null) => void;
|
|
311
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_3<{
|
|
312
|
-
field: FieldDefinition;
|
|
313
|
-
modelValue: number | null;
|
|
314
|
-
error?: string[];
|
|
315
|
-
touched?: boolean;
|
|
316
|
-
}>>> & Readonly<{
|
|
317
|
-
onBlur?: (() => any) | undefined;
|
|
318
|
-
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
319
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
320
|
-
|
|
321
|
-
export declare const NuRadioField: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_7<{
|
|
322
|
-
field: FieldDefinition;
|
|
323
|
-
modelValue: unknown;
|
|
324
|
-
error?: string[];
|
|
325
|
-
touched?: boolean;
|
|
326
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
327
|
-
blur: () => void;
|
|
328
|
-
"update:modelValue": (value: unknown) => void;
|
|
329
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_7<{
|
|
330
|
-
field: FieldDefinition;
|
|
331
|
-
modelValue: unknown;
|
|
332
|
-
error?: string[];
|
|
333
|
-
touched?: boolean;
|
|
334
|
-
}>>> & Readonly<{
|
|
335
|
-
onBlur?: (() => any) | undefined;
|
|
336
|
-
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
337
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
338
|
-
|
|
339
|
-
export declare const NuSelectField: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_5<{
|
|
340
|
-
field: FieldDefinition;
|
|
341
|
-
modelValue: unknown;
|
|
342
|
-
error?: string[];
|
|
343
|
-
touched?: boolean;
|
|
344
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
345
|
-
blur: () => void;
|
|
346
|
-
"update:modelValue": (value: unknown) => void;
|
|
347
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_5<{
|
|
348
|
-
field: FieldDefinition;
|
|
349
|
-
modelValue: unknown;
|
|
350
|
-
error?: string[];
|
|
351
|
-
touched?: boolean;
|
|
352
|
-
}>>> & Readonly<{
|
|
353
|
-
onBlur?: (() => any) | undefined;
|
|
354
|
-
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
355
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
356
|
-
|
|
357
|
-
export declare const NuTextareaField: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_4<{
|
|
358
|
-
field: FieldDefinition;
|
|
359
|
-
modelValue: string | null;
|
|
360
|
-
error?: string[];
|
|
361
|
-
touched?: boolean;
|
|
362
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
363
|
-
blur: () => void;
|
|
364
|
-
"update:modelValue": (value: string) => void;
|
|
365
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_4<{
|
|
366
|
-
field: FieldDefinition;
|
|
367
|
-
modelValue: string | null;
|
|
368
|
-
error?: string[];
|
|
369
|
-
touched?: boolean;
|
|
370
|
-
}>>> & Readonly<{
|
|
371
|
-
onBlur?: (() => any) | undefined;
|
|
372
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
373
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
374
|
-
|
|
375
|
-
export declare const NuTextField: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_2<{
|
|
376
|
-
field: FieldDefinition;
|
|
377
|
-
modelValue: string | null;
|
|
378
|
-
error?: string[];
|
|
379
|
-
touched?: boolean;
|
|
380
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
381
|
-
blur: () => void;
|
|
382
|
-
"update:modelValue": (value: string) => void;
|
|
383
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_2<{
|
|
384
|
-
field: FieldDefinition;
|
|
385
|
-
modelValue: string | null;
|
|
386
|
-
error?: string[];
|
|
387
|
-
touched?: boolean;
|
|
388
|
-
}>>> & Readonly<{
|
|
389
|
-
onBlur?: (() => any) | undefined;
|
|
390
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
391
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
238
|
+
export declare const NaiveFormRenderer: typeof __VLS_export;
|
|
239
|
+
|
|
240
|
+
export declare const NuArrayField: typeof __VLS_export_10;
|
|
241
|
+
|
|
242
|
+
export declare const NuCheckboxField: typeof __VLS_export_6;
|
|
243
|
+
|
|
244
|
+
export declare const NuDateField: typeof __VLS_export_8;
|
|
245
|
+
|
|
246
|
+
export declare const NuFileField: typeof __VLS_export_9;
|
|
247
|
+
|
|
248
|
+
export declare const NuNumberField: typeof __VLS_export_3;
|
|
249
|
+
|
|
250
|
+
export declare const NuRadioField: typeof __VLS_export_7;
|
|
251
|
+
|
|
252
|
+
export declare const NuSelectField: typeof __VLS_export_5;
|
|
253
|
+
|
|
254
|
+
export declare const NuTextareaField: typeof __VLS_export_4;
|
|
255
|
+
|
|
256
|
+
export declare const NuTextField: typeof __VLS_export_2;
|
|
392
257
|
|
|
393
258
|
declare interface UseFormReturn<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
394
259
|
fields: ComputedRef<FieldDefinition[]>;
|