@volverjs/form-vue 1.0.0 → 1.0.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/dist/VvFormField.d.ts +4 -4
- package/dist/VvFormFieldsGroup.d.ts +1 -1
- package/dist/index.d.ts +10 -10
- package/dist/index.es.js +681 -607
- package/dist/index.umd.js +1 -1
- package/dist/types.d.ts +2 -2
- package/package.json +15 -15
- package/src/VvFormField.ts +14 -14
- package/src/VvFormFieldsGroup.ts +7 -6
- package/src/VvFormTemplate.ts +118 -118
- package/src/types.ts +2 -2
package/dist/VvFormField.d.ts
CHANGED
|
@@ -54,8 +54,8 @@ export declare function defineFormField<Schema extends FormSchema, Type = undefi
|
|
|
54
54
|
invalid: boolean;
|
|
55
55
|
valid: boolean | undefined;
|
|
56
56
|
type: FormFieldType | undefined;
|
|
57
|
-
invalidLabel:
|
|
58
|
-
modelValue:
|
|
57
|
+
invalidLabel: string[] | undefined;
|
|
58
|
+
modelValue: unknown;
|
|
59
59
|
readonly: boolean;
|
|
60
60
|
'onUpdate:modelValue': (value: unknown) => void;
|
|
61
61
|
}>;
|
|
@@ -116,9 +116,9 @@ export declare function defineFormField<Schema extends FormSchema, Type = undefi
|
|
|
116
116
|
}, SlotsType<{
|
|
117
117
|
[key: string]: any;
|
|
118
118
|
default: {
|
|
119
|
-
errors: DeepReadonly<z.inferFormattedError<Schema
|
|
119
|
+
errors: DeepReadonly<z.inferFormattedError<Schema> | undefined>;
|
|
120
120
|
formData?: undefined extends Type ? Partial<z.infer<Schema>> : Type;
|
|
121
|
-
formErrors?: DeepReadonly<z.inferFormattedError<Schema, string
|
|
121
|
+
formErrors?: DeepReadonly<z.inferFormattedError<Schema, string> | undefined>;
|
|
122
122
|
invalid: boolean;
|
|
123
123
|
invalidLabel?: string[];
|
|
124
124
|
modelValue: any;
|
|
@@ -33,12 +33,12 @@ export declare function defineFormFieldsGroup<Schema extends FormSchema, Type =
|
|
|
33
33
|
}>[];
|
|
34
34
|
}>;
|
|
35
35
|
hasProps: import('vue').ComputedRef<{
|
|
36
|
+
modelValue: Record<string, any>;
|
|
36
37
|
names: {};
|
|
37
38
|
invalid: boolean;
|
|
38
39
|
invalids: Record<string, boolean>;
|
|
39
40
|
valid: boolean | undefined;
|
|
40
41
|
invalidLabels: Record<string, string[]> | undefined;
|
|
41
|
-
modelValue: Record<string, any>;
|
|
42
42
|
readonly: boolean;
|
|
43
43
|
}>;
|
|
44
44
|
invalid: import('vue').ComputedRef<boolean>;
|
package/dist/index.d.ts
CHANGED
|
@@ -189,8 +189,8 @@ declare function _formType<Schema extends FormSchema, Type>(schema: Schema, opti
|
|
|
189
189
|
invalid: boolean;
|
|
190
190
|
valid: boolean | undefined;
|
|
191
191
|
type: import('./enums').FormFieldType | undefined;
|
|
192
|
-
invalidLabel:
|
|
193
|
-
modelValue:
|
|
192
|
+
invalidLabel: string[] | undefined;
|
|
193
|
+
modelValue: unknown;
|
|
194
194
|
readonly: boolean;
|
|
195
195
|
'onUpdate:modelValue': (value: unknown) => void;
|
|
196
196
|
}>;
|
|
@@ -251,9 +251,9 @@ declare function _formType<Schema extends FormSchema, Type>(schema: Schema, opti
|
|
|
251
251
|
}, import('vue').SlotsType<{
|
|
252
252
|
[key: string]: any;
|
|
253
253
|
default: {
|
|
254
|
-
errors: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string
|
|
254
|
+
errors: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string> | undefined>;
|
|
255
255
|
formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined;
|
|
256
|
-
formErrors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string
|
|
256
|
+
formErrors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string> | undefined>;
|
|
257
257
|
invalid: boolean;
|
|
258
258
|
invalidLabel?: string[];
|
|
259
259
|
modelValue: any;
|
|
@@ -298,12 +298,12 @@ declare function _formType<Schema extends FormSchema, Type>(schema: Schema, opti
|
|
|
298
298
|
}>[];
|
|
299
299
|
}>;
|
|
300
300
|
hasProps: import('vue').ComputedRef<{
|
|
301
|
+
modelValue: Record<string, any>;
|
|
301
302
|
names: {};
|
|
302
303
|
invalid: boolean;
|
|
303
304
|
invalids: Record<string, boolean>;
|
|
304
305
|
valid: boolean | undefined;
|
|
305
306
|
invalidLabels: Record<string, string[]> | undefined;
|
|
306
|
-
modelValue: Record<string, any>;
|
|
307
307
|
readonly: boolean;
|
|
308
308
|
}>;
|
|
309
309
|
invalid: import('vue').ComputedRef<boolean>;
|
|
@@ -679,8 +679,8 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
679
679
|
invalid: boolean;
|
|
680
680
|
valid: boolean | undefined;
|
|
681
681
|
type: import('./enums').FormFieldType | undefined;
|
|
682
|
-
invalidLabel:
|
|
683
|
-
modelValue:
|
|
682
|
+
invalidLabel: string[] | undefined;
|
|
683
|
+
modelValue: unknown;
|
|
684
684
|
readonly: boolean;
|
|
685
685
|
'onUpdate:modelValue': (value: unknown) => void;
|
|
686
686
|
}>;
|
|
@@ -741,9 +741,9 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
741
741
|
}, import('vue').SlotsType<{
|
|
742
742
|
[key: string]: any;
|
|
743
743
|
default: {
|
|
744
|
-
errors: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string
|
|
744
|
+
errors: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string> | undefined>;
|
|
745
745
|
formData?: (undefined extends Type ? Partial<import('zod').TypeOf<Schema>> : Type) | undefined;
|
|
746
|
-
formErrors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string
|
|
746
|
+
formErrors?: import('vue').DeepReadonly<import('zod').inferFormattedError<Schema, string> | undefined>;
|
|
747
747
|
invalid: boolean;
|
|
748
748
|
invalidLabel?: string[];
|
|
749
749
|
modelValue: any;
|
|
@@ -788,12 +788,12 @@ export declare function formType<Schema extends FormSchema, Type>(schema: Schema
|
|
|
788
788
|
}>[];
|
|
789
789
|
}>;
|
|
790
790
|
hasProps: import('vue').ComputedRef<{
|
|
791
|
+
modelValue: Record<string, any>;
|
|
791
792
|
names: {};
|
|
792
793
|
invalid: boolean;
|
|
793
794
|
invalids: Record<string, boolean>;
|
|
794
795
|
valid: boolean | undefined;
|
|
795
796
|
invalidLabels: Record<string, string[]> | undefined;
|
|
796
|
-
modelValue: Record<string, any>;
|
|
797
797
|
readonly: boolean;
|
|
798
798
|
}>;
|
|
799
799
|
invalid: import('vue').ComputedRef<boolean>;
|