@volverjs/form-vue 1.0.0-beta.26 → 1.0.0-beta.27
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 +25 -5
- package/dist/VvForm.d.ts +4 -4
- package/dist/index.d.ts +91 -604
- package/dist/index.es.js +408 -408
- package/dist/index.umd.js +1 -1
- package/dist/types.d.ts +4 -3
- package/package.json +1 -1
- package/src/VvForm.ts +2 -1
- package/src/VvFormWrapper.ts +22 -23
- package/src/index.ts +1 -1
- package/src/types.ts +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -22,54 +22,7 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
22
22
|
stopUpdatesWatch: import('vue').WatchStopHandle;
|
|
23
23
|
submit: () => Promise<boolean>;
|
|
24
24
|
validate: (value?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>;
|
|
25
|
-
wrappers: Map<string,
|
|
26
|
-
name: {
|
|
27
|
-
type: StringConstructor;
|
|
28
|
-
required: true;
|
|
29
|
-
};
|
|
30
|
-
tag: {
|
|
31
|
-
type: StringConstructor;
|
|
32
|
-
default: undefined;
|
|
33
|
-
};
|
|
34
|
-
}>, {
|
|
35
|
-
clear: (() => void) | undefined;
|
|
36
|
-
errors: Readonly<import('vue').Ref<import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined, import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined>> | undefined;
|
|
37
|
-
fields: import('vue').Ref<Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>, Map<string, string> | (Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>)>;
|
|
38
|
-
fieldsErrors: import('vue').Ref<Map<string, import('zod').inferFormattedError<Schema, string>>, Map<string, import('zod').inferFormattedError<Schema, string>>>;
|
|
39
|
-
formData: import('vue').Ref<(undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined> | undefined;
|
|
40
|
-
invalid: import('vue').ComputedRef<boolean>;
|
|
41
|
-
reset: (() => void) | undefined;
|
|
42
|
-
submit: (() => Promise<boolean>) | undefined;
|
|
43
|
-
validate: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
44
|
-
validateWrapper: () => Promise<boolean>;
|
|
45
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("invalid" | "valid")[], "invalid" | "valid", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
46
|
-
name: {
|
|
47
|
-
type: StringConstructor;
|
|
48
|
-
required: true;
|
|
49
|
-
};
|
|
50
|
-
tag: {
|
|
51
|
-
type: StringConstructor;
|
|
52
|
-
default: undefined;
|
|
53
|
-
};
|
|
54
|
-
}>> & Readonly<{
|
|
55
|
-
onInvalid?: ((...args: any[]) => any) | undefined;
|
|
56
|
-
onValid?: ((...args: any[]) => any) | undefined;
|
|
57
|
-
}>, {
|
|
58
|
-
tag: string;
|
|
59
|
-
}, import('vue').SlotsType<{
|
|
60
|
-
default: {
|
|
61
|
-
errors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
|
|
62
|
-
formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined;
|
|
63
|
-
formErrors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
|
|
64
|
-
invalid: boolean;
|
|
65
|
-
submit?: InjectedFormData<Schema_1, Type_1>["submit"];
|
|
66
|
-
validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
67
|
-
validateWrapper?: (() => Promise<boolean>) | undefined;
|
|
68
|
-
fieldsErrors: Map<string, import('zod').inferFormattedError<Schema, string>>;
|
|
69
|
-
clear?: InjectedFormData<Schema_1, Type_1>["clear"];
|
|
70
|
-
reset?: InjectedFormData<Schema_1, Type_1>["reset"];
|
|
71
|
-
};
|
|
72
|
-
}>, {}, {}, "invalid" | "reset" | "clear" | "submit" | "errors" | "tag" | "validate" | "formData" | "fields" | "fieldsErrors" | "validateWrapper", import('vue').ComponentProvideOptions, true, {}, any>>;
|
|
25
|
+
wrappers: Map<string, InjectedFormWrapperData<Schema>>;
|
|
73
26
|
VvForm: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
74
27
|
continuousValidation: {
|
|
75
28
|
type: BooleanConstructor;
|
|
@@ -88,7 +41,7 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
88
41
|
default: string;
|
|
89
42
|
};
|
|
90
43
|
template: {
|
|
91
|
-
type: import('vue').PropType<FormTemplate<
|
|
44
|
+
type: import('vue').PropType<FormTemplate<Schema_1, Type_1>>;
|
|
92
45
|
default: undefined;
|
|
93
46
|
};
|
|
94
47
|
}>, {
|
|
@@ -103,54 +56,7 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
103
56
|
stopUpdatesWatch: import('vue').WatchStopHandle;
|
|
104
57
|
submit: () => Promise<boolean>;
|
|
105
58
|
validate: (value?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>;
|
|
106
|
-
wrappers: Map<string,
|
|
107
|
-
name: {
|
|
108
|
-
type: StringConstructor;
|
|
109
|
-
required: true;
|
|
110
|
-
};
|
|
111
|
-
tag: {
|
|
112
|
-
type: StringConstructor;
|
|
113
|
-
default: undefined;
|
|
114
|
-
};
|
|
115
|
-
}>, {
|
|
116
|
-
clear: (() => void) | undefined;
|
|
117
|
-
errors: Readonly<import('vue').Ref<import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined, import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined>> | undefined;
|
|
118
|
-
fields: import('vue').Ref<Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>, Map<string, string> | (Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>)>;
|
|
119
|
-
fieldsErrors: import('vue').Ref<Map<string, import('zod').inferFormattedError<Schema, string>>, Map<string, import('zod').inferFormattedError<Schema, string>>>;
|
|
120
|
-
formData: import('vue').Ref<(undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined> | undefined;
|
|
121
|
-
invalid: import('vue').ComputedRef<boolean>;
|
|
122
|
-
reset: (() => void) | undefined;
|
|
123
|
-
submit: (() => Promise<boolean>) | undefined;
|
|
124
|
-
validate: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
125
|
-
validateWrapper: () => Promise<boolean>;
|
|
126
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("invalid" | "valid")[], "invalid" | "valid", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
127
|
-
name: {
|
|
128
|
-
type: StringConstructor;
|
|
129
|
-
required: true;
|
|
130
|
-
};
|
|
131
|
-
tag: {
|
|
132
|
-
type: StringConstructor;
|
|
133
|
-
default: undefined;
|
|
134
|
-
};
|
|
135
|
-
}>> & Readonly<{
|
|
136
|
-
onInvalid?: ((...args: any[]) => any) | undefined;
|
|
137
|
-
onValid?: ((...args: any[]) => any) | undefined;
|
|
138
|
-
}>, {
|
|
139
|
-
tag: string;
|
|
140
|
-
}, import('vue').SlotsType<{
|
|
141
|
-
default: {
|
|
142
|
-
errors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
|
|
143
|
-
formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined;
|
|
144
|
-
formErrors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
|
|
145
|
-
invalid: boolean;
|
|
146
|
-
submit?: InjectedFormData<Schema_1, Type_1>["submit"];
|
|
147
|
-
validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
148
|
-
validateWrapper?: (() => Promise<boolean>) | undefined;
|
|
149
|
-
fieldsErrors: Map<string, import('zod').inferFormattedError<Schema, string>>;
|
|
150
|
-
clear?: InjectedFormData<Schema_1, Type_1>["clear"];
|
|
151
|
-
reset?: InjectedFormData<Schema_1, Type_1>["reset"];
|
|
152
|
-
};
|
|
153
|
-
}>, {}, {}, "invalid" | "reset" | "clear" | "submit" | "errors" | "tag" | "validate" | "formData" | "fields" | "fieldsErrors" | "validateWrapper", import('vue').ComponentProvideOptions, true, {}, any>>;
|
|
59
|
+
wrappers: Map<string, InjectedFormWrapperData<Schema>>;
|
|
154
60
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("invalid" | "valid" | "reset" | "submit" | "update:modelValue" | "update:readonly")[], "invalid" | "valid" | "reset" | "submit" | "update:modelValue" | "update:readonly", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
155
61
|
continuousValidation: {
|
|
156
62
|
type: BooleanConstructor;
|
|
@@ -169,7 +75,7 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
169
75
|
default: string;
|
|
170
76
|
};
|
|
171
77
|
template: {
|
|
172
|
-
type: import('vue').PropType<FormTemplate<
|
|
78
|
+
type: import('vue').PropType<FormTemplate<Schema_1, Type_1>>;
|
|
173
79
|
default: undefined;
|
|
174
80
|
};
|
|
175
81
|
}>> & Readonly<{
|
|
@@ -198,54 +104,7 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
198
104
|
validate: (value?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>;
|
|
199
105
|
clear: () => void;
|
|
200
106
|
reset: () => void;
|
|
201
|
-
wrappers: Map<string,
|
|
202
|
-
name: {
|
|
203
|
-
type: StringConstructor;
|
|
204
|
-
required: true;
|
|
205
|
-
};
|
|
206
|
-
tag: {
|
|
207
|
-
type: StringConstructor;
|
|
208
|
-
default: undefined;
|
|
209
|
-
};
|
|
210
|
-
}>, {
|
|
211
|
-
clear: (() => void) | undefined;
|
|
212
|
-
errors: Readonly<import('vue').Ref<import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined, import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined>> | undefined;
|
|
213
|
-
fields: import('vue').Ref<Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>, Map<string, string> | (Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>)>;
|
|
214
|
-
fieldsErrors: import('vue').Ref<Map<string, import('zod').inferFormattedError<Schema, string>>, Map<string, import('zod').inferFormattedError<Schema, string>>>;
|
|
215
|
-
formData: import('vue').Ref<(undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined> | undefined;
|
|
216
|
-
invalid: import('vue').ComputedRef<boolean>;
|
|
217
|
-
reset: (() => void) | undefined;
|
|
218
|
-
submit: (() => Promise<boolean>) | undefined;
|
|
219
|
-
validate: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
220
|
-
validateWrapper: () => Promise<boolean>;
|
|
221
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("invalid" | "valid")[], "invalid" | "valid", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
222
|
-
name: {
|
|
223
|
-
type: StringConstructor;
|
|
224
|
-
required: true;
|
|
225
|
-
};
|
|
226
|
-
tag: {
|
|
227
|
-
type: StringConstructor;
|
|
228
|
-
default: undefined;
|
|
229
|
-
};
|
|
230
|
-
}>> & Readonly<{
|
|
231
|
-
onInvalid?: ((...args: any[]) => any) | undefined;
|
|
232
|
-
onValid?: ((...args: any[]) => any) | undefined;
|
|
233
|
-
}>, {
|
|
234
|
-
tag: string;
|
|
235
|
-
}, import('vue').SlotsType<{
|
|
236
|
-
default: {
|
|
237
|
-
errors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
|
|
238
|
-
formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined;
|
|
239
|
-
formErrors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
|
|
240
|
-
invalid: boolean;
|
|
241
|
-
submit?: InjectedFormData<Schema_1, Type_1>["submit"];
|
|
242
|
-
validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
243
|
-
validateWrapper?: (() => Promise<boolean>) | undefined;
|
|
244
|
-
fieldsErrors: Map<string, import('zod').inferFormattedError<Schema, string>>;
|
|
245
|
-
clear?: InjectedFormData<Schema_1, Type_1>["clear"];
|
|
246
|
-
reset?: InjectedFormData<Schema_1, Type_1>["reset"];
|
|
247
|
-
};
|
|
248
|
-
}>, {}, {}, "invalid" | "reset" | "clear" | "submit" | "errors" | "tag" | "validate" | "formData" | "fields" | "fieldsErrors" | "validateWrapper", import('vue').ComponentProvideOptions, true, {}, any>>;
|
|
107
|
+
wrappers: Map<string, InjectedFormWrapperData<Schema>>;
|
|
249
108
|
};
|
|
250
109
|
}>, {}, {}, "invalid" | "valid" | "reset" | "status" | "readonly" | "clear" | "submit" | "errors" | "tag" | "template" | "validate", import('vue').ComponentProvideOptions, true, {}, any>;
|
|
251
110
|
VvFormField: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -259,11 +118,11 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
259
118
|
default: undefined;
|
|
260
119
|
};
|
|
261
120
|
name: {
|
|
262
|
-
type: import('vue').PropType<Path<import('zod').TypeOf<
|
|
121
|
+
type: import('vue').PropType<Path<import('zod').TypeOf<Schema_2>>>;
|
|
263
122
|
required: true;
|
|
264
123
|
};
|
|
265
124
|
props: {
|
|
266
|
-
type: import('vue').PropType<Partial<import('zod').TypeOf<
|
|
125
|
+
type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_2> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_2>> | undefined)>>;
|
|
267
126
|
default: () => {};
|
|
268
127
|
};
|
|
269
128
|
showValid: {
|
|
@@ -291,10 +150,10 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
291
150
|
} | import('vue').ConcreteComponent>;
|
|
292
151
|
hasProps: import('vue').ComputedRef<{
|
|
293
152
|
name: {} | ([{
|
|
294
|
-
type: import('vue').PropType<Path<import('zod').TypeOf<
|
|
153
|
+
type: import('vue').PropType<Path<import('zod').TypeOf<Schema_2>>>;
|
|
295
154
|
required: true;
|
|
296
155
|
}] extends [import('vue').Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? import('@vue/shared').IfAny<V, V, D> : V : V : {
|
|
297
|
-
type: import('vue').PropType<Path<import('zod').TypeOf<
|
|
156
|
+
type: import('vue').PropType<Path<import('zod').TypeOf<Schema_2>>>;
|
|
298
157
|
required: true;
|
|
299
158
|
});
|
|
300
159
|
invalid: boolean;
|
|
@@ -317,11 +176,11 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
317
176
|
default: undefined;
|
|
318
177
|
};
|
|
319
178
|
name: {
|
|
320
|
-
type: import('vue').PropType<Path<import('zod').TypeOf<
|
|
179
|
+
type: import('vue').PropType<Path<import('zod').TypeOf<Schema_2>>>;
|
|
321
180
|
required: true;
|
|
322
181
|
};
|
|
323
182
|
props: {
|
|
324
|
-
type: import('vue').PropType<Partial<import('zod').TypeOf<
|
|
183
|
+
type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_2> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_2>> | undefined)>>;
|
|
325
184
|
default: () => {};
|
|
326
185
|
};
|
|
327
186
|
showValid: {
|
|
@@ -349,10 +208,10 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
349
208
|
type: "number" | "text" | "email" | "password" | "tel" | "url" | "search" | "date" | "time" | "datetime-local" | "month" | "week" | "color" | "select" | "checkbox" | "radio" | "textarea" | "radioGroup" | "checkboxGroup" | "combobox" | "custom";
|
|
350
209
|
readonly: boolean;
|
|
351
210
|
props: [{
|
|
352
|
-
type: import('vue').PropType<Partial<import('zod').TypeOf<
|
|
211
|
+
type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_2> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_2>> | undefined)>>;
|
|
353
212
|
default: () => {};
|
|
354
213
|
}] extends [import('vue').Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? import('@vue/shared').IfAny<V, V, D> : V : V : {
|
|
355
|
-
type: import('vue').PropType<Partial<import('zod').TypeOf<
|
|
214
|
+
type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_2> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_2>> | undefined)>>;
|
|
356
215
|
default: () => {};
|
|
357
216
|
};
|
|
358
217
|
is: string | import('vue').Component;
|
|
@@ -370,7 +229,7 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
370
229
|
modelValue: any;
|
|
371
230
|
onUpdate: (value: unknown) => void;
|
|
372
231
|
readonly: boolean;
|
|
373
|
-
submit?: InjectedFormData<
|
|
232
|
+
submit?: InjectedFormData<Schema_2, Type_2>["submit"];
|
|
374
233
|
validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
375
234
|
};
|
|
376
235
|
}>, {}, {}, "invalid" | "type" | "errors" | "component" | "hasProps" | "invalidLabel" | "is", import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -380,11 +239,11 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
380
239
|
default: undefined;
|
|
381
240
|
};
|
|
382
241
|
names: {
|
|
383
|
-
type: import('vue').PropType<Path<import('zod').TypeOf<
|
|
242
|
+
type: import('vue').PropType<Path<import('zod').TypeOf<Schema_3>>[] | Record<string, Path<import('zod').TypeOf<Schema_3>>>>;
|
|
384
243
|
required: true;
|
|
385
244
|
};
|
|
386
245
|
props: {
|
|
387
|
-
type: import('vue').PropType<Partial<import('zod').TypeOf<
|
|
246
|
+
type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_3> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_3>> | undefined)>>;
|
|
388
247
|
default: () => {};
|
|
389
248
|
};
|
|
390
249
|
showValid: {
|
|
@@ -392,7 +251,7 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
392
251
|
default: boolean;
|
|
393
252
|
};
|
|
394
253
|
defaultValues: {
|
|
395
|
-
type: import('vue').PropType<Record<Path<import('zod').TypeOf<
|
|
254
|
+
type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema_3>>, any>>;
|
|
396
255
|
default: undefined;
|
|
397
256
|
};
|
|
398
257
|
readonly: {
|
|
@@ -421,11 +280,11 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
421
280
|
default: undefined;
|
|
422
281
|
};
|
|
423
282
|
names: {
|
|
424
|
-
type: import('vue').PropType<Path<import('zod').TypeOf<
|
|
283
|
+
type: import('vue').PropType<Path<import('zod').TypeOf<Schema_3>>[] | Record<string, Path<import('zod').TypeOf<Schema_3>>>>;
|
|
425
284
|
required: true;
|
|
426
285
|
};
|
|
427
286
|
props: {
|
|
428
|
-
type: import('vue').PropType<Partial<import('zod').TypeOf<
|
|
287
|
+
type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_3> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_3>> | undefined)>>;
|
|
429
288
|
default: () => {};
|
|
430
289
|
};
|
|
431
290
|
showValid: {
|
|
@@ -433,7 +292,7 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
433
292
|
default: boolean;
|
|
434
293
|
};
|
|
435
294
|
defaultValues: {
|
|
436
|
-
type: import('vue').PropType<Record<Path<import('zod').TypeOf<
|
|
295
|
+
type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema_3>>, any>>;
|
|
437
296
|
default: undefined;
|
|
438
297
|
};
|
|
439
298
|
readonly: {
|
|
@@ -448,19 +307,19 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
448
307
|
}>, {
|
|
449
308
|
readonly: boolean;
|
|
450
309
|
props: [{
|
|
451
|
-
type: import('vue').PropType<Partial<import('zod').TypeOf<
|
|
310
|
+
type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_3> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_3>> | undefined)>>;
|
|
452
311
|
default: () => {};
|
|
453
312
|
}] extends [import('vue').Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? import('@vue/shared').IfAny<V, V, D> : V : V : {
|
|
454
|
-
type: import('vue').PropType<Partial<import('zod').TypeOf<
|
|
313
|
+
type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_3> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_3>> | undefined)>>;
|
|
455
314
|
default: () => {};
|
|
456
315
|
};
|
|
457
316
|
is: string | import('vue').Component;
|
|
458
317
|
showValid: boolean;
|
|
459
318
|
defaultValues: [{
|
|
460
|
-
type: import('vue').PropType<Record<Path<import('zod').TypeOf<
|
|
319
|
+
type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema_3>>, any>>;
|
|
461
320
|
default: undefined;
|
|
462
321
|
}] extends [import('vue').Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? import('@vue/shared').IfAny<V, V, D> : V : V : {
|
|
463
|
-
type: import('vue').PropType<Record<Path<import('zod').TypeOf<
|
|
322
|
+
type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema_3>>, any>>;
|
|
464
323
|
default: undefined;
|
|
465
324
|
};
|
|
466
325
|
}, import('vue').SlotsType<{
|
|
@@ -476,13 +335,13 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
476
335
|
onUpdate: (value: Record<string, any>) => void;
|
|
477
336
|
onUpdateField: (name: string, value: any) => void;
|
|
478
337
|
readonly: boolean;
|
|
479
|
-
submit?: InjectedFormData<
|
|
338
|
+
submit?: InjectedFormData<Schema_3, Type_3>["submit"];
|
|
480
339
|
validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
481
340
|
};
|
|
482
341
|
}>, {}, {}, "invalid" | "errors" | "component" | "hasProps" | "is" | "invalidLabels", import('vue').ComponentProvideOptions, true, {}, any>;
|
|
483
342
|
VvFormTemplate: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
484
343
|
schema: {
|
|
485
|
-
type: import('vue').PropType<FormTemplate<
|
|
344
|
+
type: import('vue').PropType<FormTemplate<Schema_4, Type_4>>;
|
|
486
345
|
required: true;
|
|
487
346
|
};
|
|
488
347
|
scope: {
|
|
@@ -495,7 +354,7 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
495
354
|
[key: string]: any;
|
|
496
355
|
}>[] | undefined)[]) | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
497
356
|
schema: {
|
|
498
|
-
type: import('vue').PropType<FormTemplate<
|
|
357
|
+
type: import('vue').PropType<FormTemplate<Schema_4, Type_4>>;
|
|
499
358
|
required: true;
|
|
500
359
|
};
|
|
501
360
|
scope: {
|
|
@@ -510,10 +369,10 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
510
369
|
formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined;
|
|
511
370
|
invalid: boolean;
|
|
512
371
|
status?: import('./enums').FormStatus;
|
|
513
|
-
submit?: InjectedFormData<
|
|
372
|
+
submit?: InjectedFormData<Schema_4, Type_4>["submit"];
|
|
514
373
|
validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
515
|
-
clear?: InjectedFormData<
|
|
516
|
-
reset?: InjectedFormData<
|
|
374
|
+
clear?: InjectedFormData<Schema_4, Type_4>["clear"];
|
|
375
|
+
reset?: InjectedFormData<Schema_4, Type_4>["reset"];
|
|
517
376
|
};
|
|
518
377
|
}>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
519
378
|
VvFormWrapper: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -556,12 +415,12 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
556
415
|
formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined;
|
|
557
416
|
formErrors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
|
|
558
417
|
invalid: boolean;
|
|
559
|
-
submit?: InjectedFormData<
|
|
418
|
+
submit?: InjectedFormData<Schema_5, Type_5>["submit"];
|
|
560
419
|
validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
561
420
|
validateWrapper?: (() => Promise<boolean>) | undefined;
|
|
562
421
|
fieldsErrors: Map<string, import('zod').inferFormattedError<Schema, string>>;
|
|
563
|
-
clear?: InjectedFormData<
|
|
564
|
-
reset?: InjectedFormData<
|
|
422
|
+
clear?: InjectedFormData<Schema_5, Type_5>["clear"];
|
|
423
|
+
reset?: InjectedFormData<Schema_5, Type_5>["reset"];
|
|
565
424
|
};
|
|
566
425
|
}>, {}, {}, "invalid" | "reset" | "clear" | "submit" | "errors" | "tag" | "validate" | "formData" | "fields" | "fieldsErrors" | "validateWrapper", import('vue').ComponentProvideOptions, true, {}, any>;
|
|
567
426
|
} | {
|
|
@@ -585,84 +444,7 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
585
444
|
validate: (value?: (undefined extends Type ? Partial<{
|
|
586
445
|
[x: string]: any;
|
|
587
446
|
}> : Type) | undefined, fields?: Set<string>) => Promise<boolean>;
|
|
588
|
-
wrappers: Map<string,
|
|
589
|
-
name: {
|
|
590
|
-
type: StringConstructor;
|
|
591
|
-
required: true;
|
|
592
|
-
};
|
|
593
|
-
tag: {
|
|
594
|
-
type: StringConstructor;
|
|
595
|
-
default: undefined;
|
|
596
|
-
};
|
|
597
|
-
}>, {
|
|
598
|
-
clear: (() => void) | undefined;
|
|
599
|
-
errors: Readonly<import('vue').Ref<{
|
|
600
|
-
readonly [x: string]: {
|
|
601
|
-
readonly _errors: readonly string[];
|
|
602
|
-
} | undefined;
|
|
603
|
-
readonly _errors: readonly string[];
|
|
604
|
-
} | undefined, {
|
|
605
|
-
readonly [x: string]: {
|
|
606
|
-
readonly _errors: readonly string[];
|
|
607
|
-
} | undefined;
|
|
608
|
-
readonly _errors: readonly string[];
|
|
609
|
-
} | undefined>> | undefined;
|
|
610
|
-
fields: import('vue').Ref<Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>, Map<string, string> | (Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>)>;
|
|
611
|
-
fieldsErrors: import('vue').Ref<Map<string, import('zod').inferFormattedError<AnyZodObject, string>>, Map<string, import('zod').inferFormattedError<AnyZodObject, string>>>;
|
|
612
|
-
formData: import('vue').Ref<(undefined extends Type ? Partial<{
|
|
613
|
-
[x: string]: any;
|
|
614
|
-
}> : Type) | undefined, (undefined extends Type ? Partial<{
|
|
615
|
-
[x: string]: any;
|
|
616
|
-
}> : Type) | undefined> | undefined;
|
|
617
|
-
invalid: import('vue').ComputedRef<boolean>;
|
|
618
|
-
reset: (() => void) | undefined;
|
|
619
|
-
submit: (() => Promise<boolean>) | undefined;
|
|
620
|
-
validate: ((formData?: (undefined extends Type ? Partial<{
|
|
621
|
-
[x: string]: any;
|
|
622
|
-
}> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
623
|
-
validateWrapper: () => Promise<boolean>;
|
|
624
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("invalid" | "valid")[], "invalid" | "valid", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
625
|
-
name: {
|
|
626
|
-
type: StringConstructor;
|
|
627
|
-
required: true;
|
|
628
|
-
};
|
|
629
|
-
tag: {
|
|
630
|
-
type: StringConstructor;
|
|
631
|
-
default: undefined;
|
|
632
|
-
};
|
|
633
|
-
}>> & Readonly<{
|
|
634
|
-
onInvalid?: ((...args: any[]) => any) | undefined;
|
|
635
|
-
onValid?: ((...args: any[]) => any) | undefined;
|
|
636
|
-
}>, {
|
|
637
|
-
tag: string;
|
|
638
|
-
}, import('vue').SlotsType<{
|
|
639
|
-
default: {
|
|
640
|
-
errors?: {
|
|
641
|
-
readonly [x: string]: {
|
|
642
|
-
readonly _errors: readonly string[];
|
|
643
|
-
} | undefined;
|
|
644
|
-
readonly _errors: readonly string[];
|
|
645
|
-
} | undefined;
|
|
646
|
-
formData?: (undefined extends Type ? Partial<{
|
|
647
|
-
[x: string]: any;
|
|
648
|
-
}> : Type) | undefined;
|
|
649
|
-
formErrors?: {
|
|
650
|
-
readonly [x: string]: {
|
|
651
|
-
readonly _errors: readonly string[];
|
|
652
|
-
} | undefined;
|
|
653
|
-
readonly _errors: readonly string[];
|
|
654
|
-
} | undefined;
|
|
655
|
-
invalid: boolean;
|
|
656
|
-
submit?: InjectedFormData<Schema_1, Type_1>["submit"];
|
|
657
|
-
validate?: ((formData?: (undefined extends Type ? Partial<{
|
|
658
|
-
[x: string]: any;
|
|
659
|
-
}> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
660
|
-
validateWrapper?: (() => Promise<boolean>) | undefined;
|
|
661
|
-
fieldsErrors: Map<string, import('zod').inferFormattedError<AnyZodObject, string>>;
|
|
662
|
-
clear?: InjectedFormData<Schema_1, Type_1>["clear"];
|
|
663
|
-
reset?: InjectedFormData<Schema_1, Type_1>["reset"];
|
|
664
|
-
};
|
|
665
|
-
}>, {}, {}, "invalid" | "reset" | "clear" | "submit" | "errors" | "tag" | "validate" | "formData" | "fields" | "fieldsErrors" | "validateWrapper", import('vue').ComponentProvideOptions, true, {}, any>>;
|
|
447
|
+
wrappers: Map<string, InjectedFormWrapperData<AnyZodObject>>;
|
|
666
448
|
VvForm: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
667
449
|
continuousValidation: {
|
|
668
450
|
type: BooleanConstructor;
|
|
@@ -681,7 +463,7 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
681
463
|
default: string;
|
|
682
464
|
};
|
|
683
465
|
template: {
|
|
684
|
-
type: import('vue').PropType<FormTemplate<
|
|
466
|
+
type: import('vue').PropType<FormTemplate<Schema_1, Type_1>>;
|
|
685
467
|
default: undefined;
|
|
686
468
|
};
|
|
687
469
|
}>, {
|
|
@@ -712,84 +494,7 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
712
494
|
validate: (value?: (undefined extends Type ? Partial<{
|
|
713
495
|
[x: string]: any;
|
|
714
496
|
}> : Type) | undefined, fields?: Set<string>) => Promise<boolean>;
|
|
715
|
-
wrappers: Map<string,
|
|
716
|
-
name: {
|
|
717
|
-
type: StringConstructor;
|
|
718
|
-
required: true;
|
|
719
|
-
};
|
|
720
|
-
tag: {
|
|
721
|
-
type: StringConstructor;
|
|
722
|
-
default: undefined;
|
|
723
|
-
};
|
|
724
|
-
}>, {
|
|
725
|
-
clear: (() => void) | undefined;
|
|
726
|
-
errors: Readonly<import('vue').Ref<{
|
|
727
|
-
readonly [x: string]: {
|
|
728
|
-
readonly _errors: readonly string[];
|
|
729
|
-
} | undefined;
|
|
730
|
-
readonly _errors: readonly string[];
|
|
731
|
-
} | undefined, {
|
|
732
|
-
readonly [x: string]: {
|
|
733
|
-
readonly _errors: readonly string[];
|
|
734
|
-
} | undefined;
|
|
735
|
-
readonly _errors: readonly string[];
|
|
736
|
-
} | undefined>> | undefined;
|
|
737
|
-
fields: import('vue').Ref<Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>, Map<string, string> | (Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>)>;
|
|
738
|
-
fieldsErrors: import('vue').Ref<Map<string, import('zod').inferFormattedError<AnyZodObject, string>>, Map<string, import('zod').inferFormattedError<AnyZodObject, string>>>;
|
|
739
|
-
formData: import('vue').Ref<(undefined extends Type ? Partial<{
|
|
740
|
-
[x: string]: any;
|
|
741
|
-
}> : Type) | undefined, (undefined extends Type ? Partial<{
|
|
742
|
-
[x: string]: any;
|
|
743
|
-
}> : Type) | undefined> | undefined;
|
|
744
|
-
invalid: import('vue').ComputedRef<boolean>;
|
|
745
|
-
reset: (() => void) | undefined;
|
|
746
|
-
submit: (() => Promise<boolean>) | undefined;
|
|
747
|
-
validate: ((formData?: (undefined extends Type ? Partial<{
|
|
748
|
-
[x: string]: any;
|
|
749
|
-
}> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
750
|
-
validateWrapper: () => Promise<boolean>;
|
|
751
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("invalid" | "valid")[], "invalid" | "valid", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
752
|
-
name: {
|
|
753
|
-
type: StringConstructor;
|
|
754
|
-
required: true;
|
|
755
|
-
};
|
|
756
|
-
tag: {
|
|
757
|
-
type: StringConstructor;
|
|
758
|
-
default: undefined;
|
|
759
|
-
};
|
|
760
|
-
}>> & Readonly<{
|
|
761
|
-
onInvalid?: ((...args: any[]) => any) | undefined;
|
|
762
|
-
onValid?: ((...args: any[]) => any) | undefined;
|
|
763
|
-
}>, {
|
|
764
|
-
tag: string;
|
|
765
|
-
}, import('vue').SlotsType<{
|
|
766
|
-
default: {
|
|
767
|
-
errors?: {
|
|
768
|
-
readonly [x: string]: {
|
|
769
|
-
readonly _errors: readonly string[];
|
|
770
|
-
} | undefined;
|
|
771
|
-
readonly _errors: readonly string[];
|
|
772
|
-
} | undefined;
|
|
773
|
-
formData?: (undefined extends Type ? Partial<{
|
|
774
|
-
[x: string]: any;
|
|
775
|
-
}> : Type) | undefined;
|
|
776
|
-
formErrors?: {
|
|
777
|
-
readonly [x: string]: {
|
|
778
|
-
readonly _errors: readonly string[];
|
|
779
|
-
} | undefined;
|
|
780
|
-
readonly _errors: readonly string[];
|
|
781
|
-
} | undefined;
|
|
782
|
-
invalid: boolean;
|
|
783
|
-
submit?: InjectedFormData<Schema_1, Type_1>["submit"];
|
|
784
|
-
validate?: ((formData?: (undefined extends Type ? Partial<{
|
|
785
|
-
[x: string]: any;
|
|
786
|
-
}> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
787
|
-
validateWrapper?: (() => Promise<boolean>) | undefined;
|
|
788
|
-
fieldsErrors: Map<string, import('zod').inferFormattedError<AnyZodObject, string>>;
|
|
789
|
-
clear?: InjectedFormData<Schema_1, Type_1>["clear"];
|
|
790
|
-
reset?: InjectedFormData<Schema_1, Type_1>["reset"];
|
|
791
|
-
};
|
|
792
|
-
}>, {}, {}, "invalid" | "reset" | "clear" | "submit" | "errors" | "tag" | "validate" | "formData" | "fields" | "fieldsErrors" | "validateWrapper", import('vue').ComponentProvideOptions, true, {}, any>>;
|
|
497
|
+
wrappers: Map<string, InjectedFormWrapperData<AnyZodObject>>;
|
|
793
498
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("invalid" | "valid" | "reset" | "submit" | "update:modelValue" | "update:readonly")[], "invalid" | "valid" | "reset" | "submit" | "update:modelValue" | "update:readonly", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
794
499
|
continuousValidation: {
|
|
795
500
|
type: BooleanConstructor;
|
|
@@ -808,7 +513,7 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
808
513
|
default: string;
|
|
809
514
|
};
|
|
810
515
|
template: {
|
|
811
|
-
type: import('vue').PropType<FormTemplate<
|
|
516
|
+
type: import('vue').PropType<FormTemplate<Schema_1, Type_1>>;
|
|
812
517
|
default: undefined;
|
|
813
518
|
};
|
|
814
519
|
}>> & Readonly<{
|
|
@@ -853,84 +558,7 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
853
558
|
}> : Type) | undefined, fields?: Set<string>) => Promise<boolean>;
|
|
854
559
|
clear: () => void;
|
|
855
560
|
reset: () => void;
|
|
856
|
-
wrappers: Map<string,
|
|
857
|
-
name: {
|
|
858
|
-
type: StringConstructor;
|
|
859
|
-
required: true;
|
|
860
|
-
};
|
|
861
|
-
tag: {
|
|
862
|
-
type: StringConstructor;
|
|
863
|
-
default: undefined;
|
|
864
|
-
};
|
|
865
|
-
}>, {
|
|
866
|
-
clear: (() => void) | undefined;
|
|
867
|
-
errors: Readonly<import('vue').Ref<{
|
|
868
|
-
readonly [x: string]: {
|
|
869
|
-
readonly _errors: readonly string[];
|
|
870
|
-
} | undefined;
|
|
871
|
-
readonly _errors: readonly string[];
|
|
872
|
-
} | undefined, {
|
|
873
|
-
readonly [x: string]: {
|
|
874
|
-
readonly _errors: readonly string[];
|
|
875
|
-
} | undefined;
|
|
876
|
-
readonly _errors: readonly string[];
|
|
877
|
-
} | undefined>> | undefined;
|
|
878
|
-
fields: import('vue').Ref<Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>, Map<string, string> | (Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>)>;
|
|
879
|
-
fieldsErrors: import('vue').Ref<Map<string, import('zod').inferFormattedError<AnyZodObject, string>>, Map<string, import('zod').inferFormattedError<AnyZodObject, string>>>;
|
|
880
|
-
formData: import('vue').Ref<(undefined extends Type ? Partial<{
|
|
881
|
-
[x: string]: any;
|
|
882
|
-
}> : Type) | undefined, (undefined extends Type ? Partial<{
|
|
883
|
-
[x: string]: any;
|
|
884
|
-
}> : Type) | undefined> | undefined;
|
|
885
|
-
invalid: import('vue').ComputedRef<boolean>;
|
|
886
|
-
reset: (() => void) | undefined;
|
|
887
|
-
submit: (() => Promise<boolean>) | undefined;
|
|
888
|
-
validate: ((formData?: (undefined extends Type ? Partial<{
|
|
889
|
-
[x: string]: any;
|
|
890
|
-
}> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
891
|
-
validateWrapper: () => Promise<boolean>;
|
|
892
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("invalid" | "valid")[], "invalid" | "valid", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
893
|
-
name: {
|
|
894
|
-
type: StringConstructor;
|
|
895
|
-
required: true;
|
|
896
|
-
};
|
|
897
|
-
tag: {
|
|
898
|
-
type: StringConstructor;
|
|
899
|
-
default: undefined;
|
|
900
|
-
};
|
|
901
|
-
}>> & Readonly<{
|
|
902
|
-
onInvalid?: ((...args: any[]) => any) | undefined;
|
|
903
|
-
onValid?: ((...args: any[]) => any) | undefined;
|
|
904
|
-
}>, {
|
|
905
|
-
tag: string;
|
|
906
|
-
}, import('vue').SlotsType<{
|
|
907
|
-
default: {
|
|
908
|
-
errors?: {
|
|
909
|
-
readonly [x: string]: {
|
|
910
|
-
readonly _errors: readonly string[];
|
|
911
|
-
} | undefined;
|
|
912
|
-
readonly _errors: readonly string[];
|
|
913
|
-
} | undefined;
|
|
914
|
-
formData?: (undefined extends Type ? Partial<{
|
|
915
|
-
[x: string]: any;
|
|
916
|
-
}> : Type) | undefined;
|
|
917
|
-
formErrors?: {
|
|
918
|
-
readonly [x: string]: {
|
|
919
|
-
readonly _errors: readonly string[];
|
|
920
|
-
} | undefined;
|
|
921
|
-
readonly _errors: readonly string[];
|
|
922
|
-
} | undefined;
|
|
923
|
-
invalid: boolean;
|
|
924
|
-
submit?: InjectedFormData<Schema_1, Type_1>["submit"];
|
|
925
|
-
validate?: ((formData?: (undefined extends Type ? Partial<{
|
|
926
|
-
[x: string]: any;
|
|
927
|
-
}> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
928
|
-
validateWrapper?: (() => Promise<boolean>) | undefined;
|
|
929
|
-
fieldsErrors: Map<string, import('zod').inferFormattedError<AnyZodObject, string>>;
|
|
930
|
-
clear?: InjectedFormData<Schema_1, Type_1>["clear"];
|
|
931
|
-
reset?: InjectedFormData<Schema_1, Type_1>["reset"];
|
|
932
|
-
};
|
|
933
|
-
}>, {}, {}, "invalid" | "reset" | "clear" | "submit" | "errors" | "tag" | "validate" | "formData" | "fields" | "fieldsErrors" | "validateWrapper", import('vue').ComponentProvideOptions, true, {}, any>>;
|
|
561
|
+
wrappers: Map<string, InjectedFormWrapperData<AnyZodObject>>;
|
|
934
562
|
};
|
|
935
563
|
}>, {}, {}, "invalid" | "valid" | "reset" | "status" | "readonly" | "clear" | "submit" | "errors" | "tag" | "template" | "validate", import('vue').ComponentProvideOptions, true, {}, any>;
|
|
936
564
|
VvFormField: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -944,11 +572,11 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
944
572
|
default: undefined;
|
|
945
573
|
};
|
|
946
574
|
name: {
|
|
947
|
-
type: import('vue').PropType<Path<import('zod').TypeOf<
|
|
575
|
+
type: import('vue').PropType<Path<import('zod').TypeOf<Schema_2>>>;
|
|
948
576
|
required: true;
|
|
949
577
|
};
|
|
950
578
|
props: {
|
|
951
|
-
type: import('vue').PropType<Partial<import('zod').TypeOf<
|
|
579
|
+
type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_2> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_2>> | undefined)>>;
|
|
952
580
|
default: () => {};
|
|
953
581
|
};
|
|
954
582
|
showValid: {
|
|
@@ -996,11 +624,11 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
996
624
|
default: undefined;
|
|
997
625
|
};
|
|
998
626
|
name: {
|
|
999
|
-
type: import('vue').PropType<Path<import('zod').TypeOf<
|
|
627
|
+
type: import('vue').PropType<Path<import('zod').TypeOf<Schema_2>>>;
|
|
1000
628
|
required: true;
|
|
1001
629
|
};
|
|
1002
630
|
props: {
|
|
1003
|
-
type: import('vue').PropType<Partial<import('zod').TypeOf<
|
|
631
|
+
type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_2> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_2>> | undefined)>>;
|
|
1004
632
|
default: () => {};
|
|
1005
633
|
};
|
|
1006
634
|
showValid: {
|
|
@@ -1054,7 +682,7 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
1054
682
|
modelValue: any;
|
|
1055
683
|
onUpdate: (value: unknown) => void;
|
|
1056
684
|
readonly: boolean;
|
|
1057
|
-
submit?: InjectedFormData<
|
|
685
|
+
submit?: InjectedFormData<Schema_2, Type_2>["submit"];
|
|
1058
686
|
validate?: ((formData?: (undefined extends Type ? Partial<{
|
|
1059
687
|
[x: string]: any;
|
|
1060
688
|
}> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
@@ -1066,11 +694,11 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
1066
694
|
default: undefined;
|
|
1067
695
|
};
|
|
1068
696
|
names: {
|
|
1069
|
-
type: import('vue').PropType<Path<import('zod').TypeOf<
|
|
697
|
+
type: import('vue').PropType<Path<import('zod').TypeOf<Schema_3>>[] | Record<string, Path<import('zod').TypeOf<Schema_3>>>>;
|
|
1070
698
|
required: true;
|
|
1071
699
|
};
|
|
1072
700
|
props: {
|
|
1073
|
-
type: import('vue').PropType<Partial<import('zod').TypeOf<
|
|
701
|
+
type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_3> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_3>> | undefined)>>;
|
|
1074
702
|
default: () => {};
|
|
1075
703
|
};
|
|
1076
704
|
showValid: {
|
|
@@ -1078,7 +706,7 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
1078
706
|
default: boolean;
|
|
1079
707
|
};
|
|
1080
708
|
defaultValues: {
|
|
1081
|
-
type: import('vue').PropType<Record<Path<import('zod').TypeOf<
|
|
709
|
+
type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema_3>>, any>>;
|
|
1082
710
|
default: undefined;
|
|
1083
711
|
};
|
|
1084
712
|
readonly: {
|
|
@@ -1107,11 +735,11 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
1107
735
|
default: undefined;
|
|
1108
736
|
};
|
|
1109
737
|
names: {
|
|
1110
|
-
type: import('vue').PropType<Path<import('zod').TypeOf<
|
|
738
|
+
type: import('vue').PropType<Path<import('zod').TypeOf<Schema_3>>[] | Record<string, Path<import('zod').TypeOf<Schema_3>>>>;
|
|
1111
739
|
required: true;
|
|
1112
740
|
};
|
|
1113
741
|
props: {
|
|
1114
|
-
type: import('vue').PropType<Partial<import('zod').TypeOf<
|
|
742
|
+
type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_3> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_3>> | undefined)>>;
|
|
1115
743
|
default: () => {};
|
|
1116
744
|
};
|
|
1117
745
|
showValid: {
|
|
@@ -1119,7 +747,7 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
1119
747
|
default: boolean;
|
|
1120
748
|
};
|
|
1121
749
|
defaultValues: {
|
|
1122
|
-
type: import('vue').PropType<Record<Path<import('zod').TypeOf<
|
|
750
|
+
type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema_3>>, any>>;
|
|
1123
751
|
default: undefined;
|
|
1124
752
|
};
|
|
1125
753
|
readonly: {
|
|
@@ -1161,7 +789,7 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
1161
789
|
onUpdate: (value: Record<string, any>) => void;
|
|
1162
790
|
onUpdateField: (name: string, value: any) => void;
|
|
1163
791
|
readonly: boolean;
|
|
1164
|
-
submit?: InjectedFormData<
|
|
792
|
+
submit?: InjectedFormData<Schema_3, Type_3>["submit"];
|
|
1165
793
|
validate?: ((formData?: (undefined extends Type ? Partial<{
|
|
1166
794
|
[x: string]: any;
|
|
1167
795
|
}> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
@@ -1169,7 +797,7 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
1169
797
|
}>, {}, {}, "invalid" | "errors" | "component" | "hasProps" | "is" | "invalidLabels", import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1170
798
|
VvFormTemplate: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
1171
799
|
schema: {
|
|
1172
|
-
type: import('vue').PropType<FormTemplate<
|
|
800
|
+
type: import('vue').PropType<FormTemplate<Schema_4, Type_4>>;
|
|
1173
801
|
required: true;
|
|
1174
802
|
};
|
|
1175
803
|
scope: {
|
|
@@ -1182,7 +810,7 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
1182
810
|
[key: string]: any;
|
|
1183
811
|
}>[] | undefined)[]) | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
1184
812
|
schema: {
|
|
1185
|
-
type: import('vue').PropType<FormTemplate<
|
|
813
|
+
type: import('vue').PropType<FormTemplate<Schema_4, Type_4>>;
|
|
1186
814
|
required: true;
|
|
1187
815
|
};
|
|
1188
816
|
scope: {
|
|
@@ -1204,12 +832,12 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
1204
832
|
}> : Type) | undefined;
|
|
1205
833
|
invalid: boolean;
|
|
1206
834
|
status?: import('./enums').FormStatus;
|
|
1207
|
-
submit?: InjectedFormData<
|
|
835
|
+
submit?: InjectedFormData<Schema_4, Type_4>["submit"];
|
|
1208
836
|
validate?: ((formData?: (undefined extends Type ? Partial<{
|
|
1209
837
|
[x: string]: any;
|
|
1210
838
|
}> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
1211
|
-
clear?: InjectedFormData<
|
|
1212
|
-
reset?: InjectedFormData<
|
|
839
|
+
clear?: InjectedFormData<Schema_4, Type_4>["clear"];
|
|
840
|
+
reset?: InjectedFormData<Schema_4, Type_4>["reset"];
|
|
1213
841
|
};
|
|
1214
842
|
}>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1215
843
|
VvFormWrapper: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -1280,14 +908,14 @@ export declare function useForm<Schema extends FormSchema, Type>(schema: Schema,
|
|
|
1280
908
|
readonly _errors: readonly string[];
|
|
1281
909
|
} | undefined;
|
|
1282
910
|
invalid: boolean;
|
|
1283
|
-
submit?: InjectedFormData<
|
|
911
|
+
submit?: InjectedFormData<Schema_5, Type_5>["submit"];
|
|
1284
912
|
validate?: ((formData?: (undefined extends Type ? Partial<{
|
|
1285
913
|
[x: string]: any;
|
|
1286
914
|
}> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
1287
915
|
validateWrapper?: (() => Promise<boolean>) | undefined;
|
|
1288
916
|
fieldsErrors: Map<string, import('zod').inferFormattedError<AnyZodObject, string>>;
|
|
1289
|
-
clear?: InjectedFormData<
|
|
1290
|
-
reset?: InjectedFormData<
|
|
917
|
+
clear?: InjectedFormData<Schema_5, Type_5>["clear"];
|
|
918
|
+
reset?: InjectedFormData<Schema_5, Type_5>["reset"];
|
|
1291
919
|
};
|
|
1292
920
|
}>, {}, {}, "invalid" | "reset" | "clear" | "submit" | "errors" | "tag" | "validate" | "formData" | "fields" | "fieldsErrors" | "validateWrapper", import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1293
921
|
};
|
|
@@ -1317,54 +945,7 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
1317
945
|
stopUpdatesWatch: import('vue').WatchStopHandle;
|
|
1318
946
|
submit: () => Promise<boolean>;
|
|
1319
947
|
validate: (value?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>;
|
|
1320
|
-
wrappers: Map<string,
|
|
1321
|
-
name: {
|
|
1322
|
-
type: StringConstructor;
|
|
1323
|
-
required: true;
|
|
1324
|
-
};
|
|
1325
|
-
tag: {
|
|
1326
|
-
type: StringConstructor;
|
|
1327
|
-
default: undefined;
|
|
1328
|
-
};
|
|
1329
|
-
}>, {
|
|
1330
|
-
clear: (() => void) | undefined;
|
|
1331
|
-
errors: Readonly<import('vue').Ref<import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined, import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined>> | undefined;
|
|
1332
|
-
fields: import('vue').Ref<Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>, Map<string, string> | (Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>)>;
|
|
1333
|
-
fieldsErrors: import('vue').Ref<Map<string, import('zod').inferFormattedError<Schema, string>>, Map<string, import('zod').inferFormattedError<Schema, string>>>;
|
|
1334
|
-
formData: import('vue').Ref<(undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined> | undefined;
|
|
1335
|
-
invalid: import('vue').ComputedRef<boolean>;
|
|
1336
|
-
reset: (() => void) | undefined;
|
|
1337
|
-
submit: (() => Promise<boolean>) | undefined;
|
|
1338
|
-
validate: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
1339
|
-
validateWrapper: () => Promise<boolean>;
|
|
1340
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("invalid" | "valid")[], "invalid" | "valid", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
1341
|
-
name: {
|
|
1342
|
-
type: StringConstructor;
|
|
1343
|
-
required: true;
|
|
1344
|
-
};
|
|
1345
|
-
tag: {
|
|
1346
|
-
type: StringConstructor;
|
|
1347
|
-
default: undefined;
|
|
1348
|
-
};
|
|
1349
|
-
}>> & Readonly<{
|
|
1350
|
-
onInvalid?: ((...args: any[]) => any) | undefined;
|
|
1351
|
-
onValid?: ((...args: any[]) => any) | undefined;
|
|
1352
|
-
}>, {
|
|
1353
|
-
tag: string;
|
|
1354
|
-
}, import('vue').SlotsType<{
|
|
1355
|
-
default: {
|
|
1356
|
-
errors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
|
|
1357
|
-
formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined;
|
|
1358
|
-
formErrors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
|
|
1359
|
-
invalid: boolean;
|
|
1360
|
-
submit?: InjectedFormData<Schema_1, Type_1>["submit"];
|
|
1361
|
-
validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
1362
|
-
validateWrapper?: (() => Promise<boolean>) | undefined;
|
|
1363
|
-
fieldsErrors: Map<string, import('zod').inferFormattedError<Schema, string>>;
|
|
1364
|
-
clear?: InjectedFormData<Schema_1, Type_1>["clear"];
|
|
1365
|
-
reset?: InjectedFormData<Schema_1, Type_1>["reset"];
|
|
1366
|
-
};
|
|
1367
|
-
}>, {}, {}, "invalid" | "reset" | "clear" | "submit" | "errors" | "tag" | "validate" | "formData" | "fields" | "fieldsErrors" | "validateWrapper", import('vue').ComponentProvideOptions, true, {}, any>>;
|
|
948
|
+
wrappers: Map<string, InjectedFormWrapperData<Schema>>;
|
|
1368
949
|
VvForm: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
1369
950
|
continuousValidation: {
|
|
1370
951
|
type: BooleanConstructor;
|
|
@@ -1383,7 +964,7 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
1383
964
|
default: string;
|
|
1384
965
|
};
|
|
1385
966
|
template: {
|
|
1386
|
-
type: import('vue').PropType<FormTemplate<
|
|
967
|
+
type: import('vue').PropType<FormTemplate<Schema_1, Type_1>>;
|
|
1387
968
|
default: undefined;
|
|
1388
969
|
};
|
|
1389
970
|
}>, {
|
|
@@ -1398,54 +979,7 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
1398
979
|
stopUpdatesWatch: import('vue').WatchStopHandle;
|
|
1399
980
|
submit: () => Promise<boolean>;
|
|
1400
981
|
validate: (value?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>;
|
|
1401
|
-
wrappers: Map<string,
|
|
1402
|
-
name: {
|
|
1403
|
-
type: StringConstructor;
|
|
1404
|
-
required: true;
|
|
1405
|
-
};
|
|
1406
|
-
tag: {
|
|
1407
|
-
type: StringConstructor;
|
|
1408
|
-
default: undefined;
|
|
1409
|
-
};
|
|
1410
|
-
}>, {
|
|
1411
|
-
clear: (() => void) | undefined;
|
|
1412
|
-
errors: Readonly<import('vue').Ref<import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined, import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined>> | undefined;
|
|
1413
|
-
fields: import('vue').Ref<Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>, Map<string, string> | (Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>)>;
|
|
1414
|
-
fieldsErrors: import('vue').Ref<Map<string, import('zod').inferFormattedError<Schema, string>>, Map<string, import('zod').inferFormattedError<Schema, string>>>;
|
|
1415
|
-
formData: import('vue').Ref<(undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined> | undefined;
|
|
1416
|
-
invalid: import('vue').ComputedRef<boolean>;
|
|
1417
|
-
reset: (() => void) | undefined;
|
|
1418
|
-
submit: (() => Promise<boolean>) | undefined;
|
|
1419
|
-
validate: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
1420
|
-
validateWrapper: () => Promise<boolean>;
|
|
1421
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("invalid" | "valid")[], "invalid" | "valid", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
1422
|
-
name: {
|
|
1423
|
-
type: StringConstructor;
|
|
1424
|
-
required: true;
|
|
1425
|
-
};
|
|
1426
|
-
tag: {
|
|
1427
|
-
type: StringConstructor;
|
|
1428
|
-
default: undefined;
|
|
1429
|
-
};
|
|
1430
|
-
}>> & Readonly<{
|
|
1431
|
-
onInvalid?: ((...args: any[]) => any) | undefined;
|
|
1432
|
-
onValid?: ((...args: any[]) => any) | undefined;
|
|
1433
|
-
}>, {
|
|
1434
|
-
tag: string;
|
|
1435
|
-
}, import('vue').SlotsType<{
|
|
1436
|
-
default: {
|
|
1437
|
-
errors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
|
|
1438
|
-
formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined;
|
|
1439
|
-
formErrors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
|
|
1440
|
-
invalid: boolean;
|
|
1441
|
-
submit?: InjectedFormData<Schema_1, Type_1>["submit"];
|
|
1442
|
-
validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
1443
|
-
validateWrapper?: (() => Promise<boolean>) | undefined;
|
|
1444
|
-
fieldsErrors: Map<string, import('zod').inferFormattedError<Schema, string>>;
|
|
1445
|
-
clear?: InjectedFormData<Schema_1, Type_1>["clear"];
|
|
1446
|
-
reset?: InjectedFormData<Schema_1, Type_1>["reset"];
|
|
1447
|
-
};
|
|
1448
|
-
}>, {}, {}, "invalid" | "reset" | "clear" | "submit" | "errors" | "tag" | "validate" | "formData" | "fields" | "fieldsErrors" | "validateWrapper", import('vue').ComponentProvideOptions, true, {}, any>>;
|
|
982
|
+
wrappers: Map<string, InjectedFormWrapperData<Schema>>;
|
|
1449
983
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("invalid" | "valid" | "reset" | "submit" | "update:modelValue" | "update:readonly")[], "invalid" | "valid" | "reset" | "submit" | "update:modelValue" | "update:readonly", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
1450
984
|
continuousValidation: {
|
|
1451
985
|
type: BooleanConstructor;
|
|
@@ -1464,7 +998,7 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
1464
998
|
default: string;
|
|
1465
999
|
};
|
|
1466
1000
|
template: {
|
|
1467
|
-
type: import('vue').PropType<FormTemplate<
|
|
1001
|
+
type: import('vue').PropType<FormTemplate<Schema_1, Type_1>>;
|
|
1468
1002
|
default: undefined;
|
|
1469
1003
|
};
|
|
1470
1004
|
}>> & Readonly<{
|
|
@@ -1493,54 +1027,7 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
1493
1027
|
validate: (value?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>;
|
|
1494
1028
|
clear: () => void;
|
|
1495
1029
|
reset: () => void;
|
|
1496
|
-
wrappers: Map<string,
|
|
1497
|
-
name: {
|
|
1498
|
-
type: StringConstructor;
|
|
1499
|
-
required: true;
|
|
1500
|
-
};
|
|
1501
|
-
tag: {
|
|
1502
|
-
type: StringConstructor;
|
|
1503
|
-
default: undefined;
|
|
1504
|
-
};
|
|
1505
|
-
}>, {
|
|
1506
|
-
clear: (() => void) | undefined;
|
|
1507
|
-
errors: Readonly<import('vue').Ref<import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined, import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined>> | undefined;
|
|
1508
|
-
fields: import('vue').Ref<Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>, Map<string, string> | (Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>)>;
|
|
1509
|
-
fieldsErrors: import('vue').Ref<Map<string, import('zod').inferFormattedError<Schema, string>>, Map<string, import('zod').inferFormattedError<Schema, string>>>;
|
|
1510
|
-
formData: import('vue').Ref<(undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined> | undefined;
|
|
1511
|
-
invalid: import('vue').ComputedRef<boolean>;
|
|
1512
|
-
reset: (() => void) | undefined;
|
|
1513
|
-
submit: (() => Promise<boolean>) | undefined;
|
|
1514
|
-
validate: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
1515
|
-
validateWrapper: () => Promise<boolean>;
|
|
1516
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("invalid" | "valid")[], "invalid" | "valid", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
1517
|
-
name: {
|
|
1518
|
-
type: StringConstructor;
|
|
1519
|
-
required: true;
|
|
1520
|
-
};
|
|
1521
|
-
tag: {
|
|
1522
|
-
type: StringConstructor;
|
|
1523
|
-
default: undefined;
|
|
1524
|
-
};
|
|
1525
|
-
}>> & Readonly<{
|
|
1526
|
-
onInvalid?: ((...args: any[]) => any) | undefined;
|
|
1527
|
-
onValid?: ((...args: any[]) => any) | undefined;
|
|
1528
|
-
}>, {
|
|
1529
|
-
tag: string;
|
|
1530
|
-
}, import('vue').SlotsType<{
|
|
1531
|
-
default: {
|
|
1532
|
-
errors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
|
|
1533
|
-
formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined;
|
|
1534
|
-
formErrors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
|
|
1535
|
-
invalid: boolean;
|
|
1536
|
-
submit?: InjectedFormData<Schema_1, Type_1>["submit"];
|
|
1537
|
-
validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
1538
|
-
validateWrapper?: (() => Promise<boolean>) | undefined;
|
|
1539
|
-
fieldsErrors: Map<string, import('zod').inferFormattedError<Schema, string>>;
|
|
1540
|
-
clear?: InjectedFormData<Schema_1, Type_1>["clear"];
|
|
1541
|
-
reset?: InjectedFormData<Schema_1, Type_1>["reset"];
|
|
1542
|
-
};
|
|
1543
|
-
}>, {}, {}, "invalid" | "reset" | "clear" | "submit" | "errors" | "tag" | "validate" | "formData" | "fields" | "fieldsErrors" | "validateWrapper", import('vue').ComponentProvideOptions, true, {}, any>>;
|
|
1030
|
+
wrappers: Map<string, InjectedFormWrapperData<Schema>>;
|
|
1544
1031
|
};
|
|
1545
1032
|
}>, {}, {}, "invalid" | "valid" | "reset" | "status" | "readonly" | "clear" | "submit" | "errors" | "tag" | "template" | "validate", import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1546
1033
|
VvFormField: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -1554,11 +1041,11 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
1554
1041
|
default: undefined;
|
|
1555
1042
|
};
|
|
1556
1043
|
name: {
|
|
1557
|
-
type: import('vue').PropType<Path<import('zod').TypeOf<
|
|
1044
|
+
type: import('vue').PropType<Path<import('zod').TypeOf<Schema_2>>>;
|
|
1558
1045
|
required: true;
|
|
1559
1046
|
};
|
|
1560
1047
|
props: {
|
|
1561
|
-
type: import('vue').PropType<Partial<import('zod').TypeOf<
|
|
1048
|
+
type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_2> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_2>> | undefined)>>;
|
|
1562
1049
|
default: () => {};
|
|
1563
1050
|
};
|
|
1564
1051
|
showValid: {
|
|
@@ -1586,10 +1073,10 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
1586
1073
|
} | import('vue').ConcreteComponent>;
|
|
1587
1074
|
hasProps: import('vue').ComputedRef<{
|
|
1588
1075
|
name: {} | ([{
|
|
1589
|
-
type: import('vue').PropType<Path<import('zod').TypeOf<
|
|
1076
|
+
type: import('vue').PropType<Path<import('zod').TypeOf<Schema_2>>>;
|
|
1590
1077
|
required: true;
|
|
1591
1078
|
}] extends [import('vue').Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? import('@vue/shared').IfAny<V, V, D> : V : V : {
|
|
1592
|
-
type: import('vue').PropType<Path<import('zod').TypeOf<
|
|
1079
|
+
type: import('vue').PropType<Path<import('zod').TypeOf<Schema_2>>>;
|
|
1593
1080
|
required: true;
|
|
1594
1081
|
});
|
|
1595
1082
|
invalid: boolean;
|
|
@@ -1612,11 +1099,11 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
1612
1099
|
default: undefined;
|
|
1613
1100
|
};
|
|
1614
1101
|
name: {
|
|
1615
|
-
type: import('vue').PropType<Path<import('zod').TypeOf<
|
|
1102
|
+
type: import('vue').PropType<Path<import('zod').TypeOf<Schema_2>>>;
|
|
1616
1103
|
required: true;
|
|
1617
1104
|
};
|
|
1618
1105
|
props: {
|
|
1619
|
-
type: import('vue').PropType<Partial<import('zod').TypeOf<
|
|
1106
|
+
type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_2> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_2>> | undefined)>>;
|
|
1620
1107
|
default: () => {};
|
|
1621
1108
|
};
|
|
1622
1109
|
showValid: {
|
|
@@ -1644,10 +1131,10 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
1644
1131
|
type: "number" | "text" | "email" | "password" | "tel" | "url" | "search" | "date" | "time" | "datetime-local" | "month" | "week" | "color" | "select" | "checkbox" | "radio" | "textarea" | "radioGroup" | "checkboxGroup" | "combobox" | "custom";
|
|
1645
1132
|
readonly: boolean;
|
|
1646
1133
|
props: [{
|
|
1647
|
-
type: import('vue').PropType<Partial<import('zod').TypeOf<
|
|
1134
|
+
type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_2> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_2>> | undefined)>>;
|
|
1648
1135
|
default: () => {};
|
|
1649
1136
|
}] extends [import('vue').Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? import('@vue/shared').IfAny<V, V, D> : V : V : {
|
|
1650
|
-
type: import('vue').PropType<Partial<import('zod').TypeOf<
|
|
1137
|
+
type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_2> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_2>> | undefined)>>;
|
|
1651
1138
|
default: () => {};
|
|
1652
1139
|
};
|
|
1653
1140
|
is: string | import('vue').Component;
|
|
@@ -1665,7 +1152,7 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
1665
1152
|
modelValue: any;
|
|
1666
1153
|
onUpdate: (value: unknown) => void;
|
|
1667
1154
|
readonly: boolean;
|
|
1668
|
-
submit?: InjectedFormData<
|
|
1155
|
+
submit?: InjectedFormData<Schema_2, Type_2>["submit"];
|
|
1669
1156
|
validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
1670
1157
|
};
|
|
1671
1158
|
}>, {}, {}, "invalid" | "type" | "errors" | "component" | "hasProps" | "invalidLabel" | "is", import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1675,11 +1162,11 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
1675
1162
|
default: undefined;
|
|
1676
1163
|
};
|
|
1677
1164
|
names: {
|
|
1678
|
-
type: import('vue').PropType<Path<import('zod').TypeOf<
|
|
1165
|
+
type: import('vue').PropType<Path<import('zod').TypeOf<Schema_3>>[] | Record<string, Path<import('zod').TypeOf<Schema_3>>>>;
|
|
1679
1166
|
required: true;
|
|
1680
1167
|
};
|
|
1681
1168
|
props: {
|
|
1682
|
-
type: import('vue').PropType<Partial<import('zod').TypeOf<
|
|
1169
|
+
type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_3> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_3>> | undefined)>>;
|
|
1683
1170
|
default: () => {};
|
|
1684
1171
|
};
|
|
1685
1172
|
showValid: {
|
|
@@ -1687,7 +1174,7 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
1687
1174
|
default: boolean;
|
|
1688
1175
|
};
|
|
1689
1176
|
defaultValues: {
|
|
1690
|
-
type: import('vue').PropType<Record<Path<import('zod').TypeOf<
|
|
1177
|
+
type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema_3>>, any>>;
|
|
1691
1178
|
default: undefined;
|
|
1692
1179
|
};
|
|
1693
1180
|
readonly: {
|
|
@@ -1716,11 +1203,11 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
1716
1203
|
default: undefined;
|
|
1717
1204
|
};
|
|
1718
1205
|
names: {
|
|
1719
|
-
type: import('vue').PropType<Path<import('zod').TypeOf<
|
|
1206
|
+
type: import('vue').PropType<Path<import('zod').TypeOf<Schema_3>>[] | Record<string, Path<import('zod').TypeOf<Schema_3>>>>;
|
|
1720
1207
|
required: true;
|
|
1721
1208
|
};
|
|
1722
1209
|
props: {
|
|
1723
|
-
type: import('vue').PropType<Partial<import('zod').TypeOf<
|
|
1210
|
+
type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_3> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_3>> | undefined)>>;
|
|
1724
1211
|
default: () => {};
|
|
1725
1212
|
};
|
|
1726
1213
|
showValid: {
|
|
@@ -1728,7 +1215,7 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
1728
1215
|
default: boolean;
|
|
1729
1216
|
};
|
|
1730
1217
|
defaultValues: {
|
|
1731
|
-
type: import('vue').PropType<Record<Path<import('zod').TypeOf<
|
|
1218
|
+
type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema_3>>, any>>;
|
|
1732
1219
|
default: undefined;
|
|
1733
1220
|
};
|
|
1734
1221
|
readonly: {
|
|
@@ -1743,19 +1230,19 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
1743
1230
|
}>, {
|
|
1744
1231
|
readonly: boolean;
|
|
1745
1232
|
props: [{
|
|
1746
|
-
type: import('vue').PropType<Partial<import('zod').TypeOf<
|
|
1233
|
+
type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_3> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_3>> | undefined)>>;
|
|
1747
1234
|
default: () => {};
|
|
1748
1235
|
}] extends [import('vue').Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? import('@vue/shared').IfAny<V, V, D> : V : V : {
|
|
1749
|
-
type: import('vue').PropType<Partial<import('zod').TypeOf<
|
|
1236
|
+
type: import('vue').PropType<Partial<import('zod').TypeOf<Schema_3> | undefined | ((formData?: import('vue').Ref<ObjectConstructor>) => Partial<import('zod').TypeOf<Schema_3>> | undefined)>>;
|
|
1750
1237
|
default: () => {};
|
|
1751
1238
|
};
|
|
1752
1239
|
is: string | import('vue').Component;
|
|
1753
1240
|
showValid: boolean;
|
|
1754
1241
|
defaultValues: [{
|
|
1755
|
-
type: import('vue').PropType<Record<Path<import('zod').TypeOf<
|
|
1242
|
+
type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema_3>>, any>>;
|
|
1756
1243
|
default: undefined;
|
|
1757
1244
|
}] extends [import('vue').Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? import('@vue/shared').IfAny<V, V, D> : V : V : {
|
|
1758
|
-
type: import('vue').PropType<Record<Path<import('zod').TypeOf<
|
|
1245
|
+
type: import('vue').PropType<Record<Path<import('zod').TypeOf<Schema_3>>, any>>;
|
|
1759
1246
|
default: undefined;
|
|
1760
1247
|
};
|
|
1761
1248
|
}, import('vue').SlotsType<{
|
|
@@ -1771,13 +1258,13 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
1771
1258
|
onUpdate: (value: Record<string, any>) => void;
|
|
1772
1259
|
onUpdateField: (name: string, value: any) => void;
|
|
1773
1260
|
readonly: boolean;
|
|
1774
|
-
submit?: InjectedFormData<
|
|
1261
|
+
submit?: InjectedFormData<Schema_3, Type_3>["submit"];
|
|
1775
1262
|
validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
1776
1263
|
};
|
|
1777
1264
|
}>, {}, {}, "invalid" | "errors" | "component" | "hasProps" | "is" | "invalidLabels", import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1778
1265
|
VvFormTemplate: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
1779
1266
|
schema: {
|
|
1780
|
-
type: import('vue').PropType<FormTemplate<
|
|
1267
|
+
type: import('vue').PropType<FormTemplate<Schema_4, Type_4>>;
|
|
1781
1268
|
required: true;
|
|
1782
1269
|
};
|
|
1783
1270
|
scope: {
|
|
@@ -1790,7 +1277,7 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
1790
1277
|
[key: string]: any;
|
|
1791
1278
|
}>[] | undefined)[]) | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
1792
1279
|
schema: {
|
|
1793
|
-
type: import('vue').PropType<FormTemplate<
|
|
1280
|
+
type: import('vue').PropType<FormTemplate<Schema_4, Type_4>>;
|
|
1794
1281
|
required: true;
|
|
1795
1282
|
};
|
|
1796
1283
|
scope: {
|
|
@@ -1805,10 +1292,10 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
1805
1292
|
formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined;
|
|
1806
1293
|
invalid: boolean;
|
|
1807
1294
|
status?: import('./enums').FormStatus;
|
|
1808
|
-
submit?: InjectedFormData<
|
|
1295
|
+
submit?: InjectedFormData<Schema_4, Type_4>["submit"];
|
|
1809
1296
|
validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
1810
|
-
clear?: InjectedFormData<
|
|
1811
|
-
reset?: InjectedFormData<
|
|
1297
|
+
clear?: InjectedFormData<Schema_4, Type_4>["clear"];
|
|
1298
|
+
reset?: InjectedFormData<Schema_4, Type_4>["reset"];
|
|
1812
1299
|
};
|
|
1813
1300
|
}>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1814
1301
|
VvFormWrapper: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -1851,12 +1338,12 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
1851
1338
|
formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined;
|
|
1852
1339
|
formErrors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string>> | undefined;
|
|
1853
1340
|
invalid: boolean;
|
|
1854
|
-
submit?: InjectedFormData<
|
|
1341
|
+
submit?: InjectedFormData<Schema_5, Type_5>["submit"];
|
|
1855
1342
|
validate?: ((formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined, fields?: Set<string>) => Promise<boolean>) | undefined;
|
|
1856
1343
|
validateWrapper?: (() => Promise<boolean>) | undefined;
|
|
1857
1344
|
fieldsErrors: Map<string, import('zod').inferFormattedError<Schema, string>>;
|
|
1858
|
-
clear?: InjectedFormData<
|
|
1859
|
-
reset?: InjectedFormData<
|
|
1345
|
+
clear?: InjectedFormData<Schema_5, Type_5>["clear"];
|
|
1346
|
+
reset?: InjectedFormData<Schema_5, Type_5>["reset"];
|
|
1860
1347
|
};
|
|
1861
1348
|
}>, {}, {}, "invalid" | "reset" | "clear" | "submit" | "errors" | "tag" | "validate" | "formData" | "fields" | "fieldsErrors" | "validateWrapper", import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1862
1349
|
};
|