@macrulez/vue-form-schema 0.2.0 → 0.2.1
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/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/dist/ui.d.ts
CHANGED
|
@@ -3,236 +3,198 @@ 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
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions,
|
|
42
|
-
|
|
43
|
-
declare
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
declare
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
declare
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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_11: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
20
|
+
blur: () => any;
|
|
21
|
+
"update:modelValue": (value: File | File[] | null) => any;
|
|
22
|
+
}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
|
|
23
|
+
onBlur?: (() => any) | undefined;
|
|
24
|
+
"onUpdate:modelValue"?: ((value: File | File[] | null) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
|
|
27
|
+
declare const __VLS_export_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
28
|
+
submit: () => any;
|
|
29
|
+
}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
|
|
30
|
+
onSubmit?: (() => any) | undefined;
|
|
31
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
|
|
33
|
+
declare const __VLS_export_3: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
34
|
+
blur: () => any;
|
|
35
|
+
"update:modelValue": (value: string) => any;
|
|
36
|
+
}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{
|
|
37
|
+
onBlur?: (() => any) | undefined;
|
|
38
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
39
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
|
|
41
|
+
declare const __VLS_export_4: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
42
|
+
blur: () => any;
|
|
43
|
+
"update:modelValue": (value: number | null) => any;
|
|
44
|
+
}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{
|
|
45
|
+
onBlur?: (() => any) | undefined;
|
|
46
|
+
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
47
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
48
|
+
|
|
49
|
+
declare const __VLS_export_5: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
50
|
+
blur: () => any;
|
|
51
|
+
"update:modelValue": (value: string) => any;
|
|
52
|
+
}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{
|
|
53
|
+
onBlur?: (() => any) | undefined;
|
|
54
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
55
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
56
|
+
|
|
57
|
+
declare const __VLS_export_6: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
58
|
+
blur: () => any;
|
|
59
|
+
"update:modelValue": (value: unknown) => any;
|
|
60
|
+
}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{
|
|
61
|
+
onBlur?: (() => any) | undefined;
|
|
62
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
63
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
64
|
+
|
|
65
|
+
declare const __VLS_export_7: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
66
|
+
blur: () => any;
|
|
67
|
+
"update:modelValue": (value: boolean) => any;
|
|
68
|
+
}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{
|
|
69
|
+
onBlur?: (() => any) | undefined;
|
|
70
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
71
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
72
|
+
|
|
73
|
+
declare const __VLS_export_8: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
74
|
+
blur: () => any;
|
|
75
|
+
"update:modelValue": (value: unknown) => any;
|
|
76
|
+
}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{
|
|
77
|
+
onBlur?: (() => any) | undefined;
|
|
78
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
79
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
80
|
+
|
|
81
|
+
declare const __VLS_export_9: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
82
|
+
blur: () => any;
|
|
83
|
+
"update:modelValue": (value: string) => any;
|
|
84
|
+
}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{
|
|
85
|
+
onBlur?: (() => any) | undefined;
|
|
86
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
87
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
88
|
+
|
|
89
|
+
declare type __VLS_Props = {
|
|
90
|
+
form: UseFormReturn;
|
|
91
|
+
/** Override individual field renderers: { text: MyTextInput, ... } */
|
|
92
|
+
components?: Partial<Record<FieldDefinition['type'], Component | string>>;
|
|
93
|
+
/** Label for the submit button */
|
|
94
|
+
submitLabel?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Internal: the field list to render. Used by the `group` case to recurse
|
|
97
|
+
* into `field.fields` instead of re-rendering the whole top-level schema
|
|
98
|
+
* (which would recurse into the same group forever). Defaults to the
|
|
99
|
+
* form's top-level fields — not meant to be passed by consumers.
|
|
100
|
+
*/
|
|
101
|
+
fields?: FieldDefinition[];
|
|
82
102
|
};
|
|
83
103
|
|
|
84
|
-
declare type
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
type: PropType<T[K]>;
|
|
89
|
-
required: true;
|
|
90
|
-
};
|
|
104
|
+
declare type __VLS_Props_10 = {
|
|
105
|
+
field: FieldDefinition;
|
|
106
|
+
form: UseFormReturn;
|
|
107
|
+
components?: Partial<Record<FieldDefinition['type'], Component | string>>;
|
|
91
108
|
};
|
|
92
109
|
|
|
93
|
-
declare type
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
required: true;
|
|
99
|
-
};
|
|
110
|
+
declare type __VLS_Props_11 = {
|
|
111
|
+
field: FieldDefinition;
|
|
112
|
+
modelValue: File | File[] | null;
|
|
113
|
+
error?: string[];
|
|
114
|
+
touched?: boolean;
|
|
100
115
|
};
|
|
101
116
|
|
|
102
|
-
declare type
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
117
|
+
declare type __VLS_Props_2 = {
|
|
118
|
+
form: MultiStepFormReturn;
|
|
119
|
+
components?: Partial<Record<FieldDefinition['type'], Component | string>>;
|
|
120
|
+
submitLabel?: string;
|
|
121
|
+
nextLabel?: string;
|
|
122
|
+
backLabel?: string;
|
|
123
|
+
stepLabels?: string[];
|
|
109
124
|
};
|
|
110
125
|
|
|
111
|
-
declare type
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
required: true;
|
|
117
|
-
};
|
|
126
|
+
declare type __VLS_Props_3 = {
|
|
127
|
+
field: FieldDefinition;
|
|
128
|
+
modelValue: string | null;
|
|
129
|
+
error?: string[];
|
|
130
|
+
touched?: boolean;
|
|
118
131
|
};
|
|
119
132
|
|
|
120
|
-
declare type
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
required: true;
|
|
126
|
-
};
|
|
133
|
+
declare type __VLS_Props_4 = {
|
|
134
|
+
field: FieldDefinition;
|
|
135
|
+
modelValue: number | null;
|
|
136
|
+
error?: string[];
|
|
137
|
+
touched?: boolean;
|
|
127
138
|
};
|
|
128
139
|
|
|
129
|
-
declare type
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
required: true;
|
|
135
|
-
};
|
|
140
|
+
declare type __VLS_Props_5 = {
|
|
141
|
+
field: FieldDefinition;
|
|
142
|
+
modelValue: string | null;
|
|
143
|
+
error?: string[];
|
|
144
|
+
touched?: boolean;
|
|
136
145
|
};
|
|
137
146
|
|
|
138
|
-
declare type
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
required: true;
|
|
144
|
-
};
|
|
147
|
+
declare type __VLS_Props_6 = {
|
|
148
|
+
field: FieldDefinition;
|
|
149
|
+
modelValue: unknown;
|
|
150
|
+
error?: string[];
|
|
151
|
+
touched?: boolean;
|
|
145
152
|
};
|
|
146
153
|
|
|
147
|
-
declare type
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
required: true;
|
|
153
|
-
};
|
|
154
|
+
declare type __VLS_Props_7 = {
|
|
155
|
+
field: FieldDefinition;
|
|
156
|
+
modelValue: boolean | null;
|
|
157
|
+
error?: string[];
|
|
158
|
+
touched?: boolean;
|
|
154
159
|
};
|
|
155
160
|
|
|
156
|
-
declare type
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
required: true;
|
|
162
|
-
};
|
|
161
|
+
declare type __VLS_Props_8 = {
|
|
162
|
+
field: FieldDefinition;
|
|
163
|
+
modelValue: unknown;
|
|
164
|
+
error?: string[];
|
|
165
|
+
touched?: boolean;
|
|
163
166
|
};
|
|
164
167
|
|
|
165
|
-
declare type
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
required: true;
|
|
171
|
-
};
|
|
168
|
+
declare type __VLS_Props_9 = {
|
|
169
|
+
field: FieldDefinition;
|
|
170
|
+
modelValue: string | null;
|
|
171
|
+
error?: string[];
|
|
172
|
+
touched?: boolean;
|
|
172
173
|
};
|
|
173
174
|
|
|
174
|
-
declare type
|
|
175
|
-
[K in
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
175
|
+
declare type __VLS_Slots = {} & {
|
|
176
|
+
[K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
|
|
177
|
+
} & {
|
|
178
|
+
[K in NonNullable<typeof __VLS_26>]?: (props: typeof __VLS_27) => any;
|
|
179
|
+
} & {
|
|
180
|
+
[K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any;
|
|
181
|
+
} & {
|
|
182
|
+
submit?: (props: typeof __VLS_34) => any;
|
|
181
183
|
};
|
|
182
184
|
|
|
183
|
-
declare type
|
|
185
|
+
declare type __VLS_WithSlots<T, S> = T & {
|
|
184
186
|
new (): {
|
|
185
187
|
$slots: S;
|
|
186
188
|
};
|
|
187
189
|
};
|
|
188
190
|
|
|
189
|
-
export declare const ArrayField:
|
|
190
|
-
field: FieldDefinition;
|
|
191
|
-
form: UseFormReturn;
|
|
192
|
-
components?: Partial<Record<FieldDefinition["type"], Component | string>>;
|
|
193
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_10<{
|
|
194
|
-
field: FieldDefinition;
|
|
195
|
-
form: UseFormReturn;
|
|
196
|
-
components?: Partial<Record<FieldDefinition["type"], Component | string>>;
|
|
197
|
-
}>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
191
|
+
export declare const ArrayField: typeof __VLS_export_10;
|
|
198
192
|
|
|
199
193
|
declare type AsyncValidatorFn = (value: unknown, values: Record<string, unknown>) => Promise<string | null>;
|
|
200
194
|
|
|
201
|
-
export declare const CheckboxField:
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
error?: string[];
|
|
205
|
-
touched?: boolean;
|
|
206
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
207
|
-
blur: () => void;
|
|
208
|
-
"update:modelValue": (value: boolean) => void;
|
|
209
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_7<{
|
|
210
|
-
field: FieldDefinition;
|
|
211
|
-
modelValue: boolean | null;
|
|
212
|
-
error?: string[];
|
|
213
|
-
touched?: boolean;
|
|
214
|
-
}>>> & Readonly<{
|
|
215
|
-
onBlur?: (() => any) | undefined;
|
|
216
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
217
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
218
|
-
|
|
219
|
-
export declare const DateField: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_9<{
|
|
220
|
-
field: FieldDefinition;
|
|
221
|
-
modelValue: string | null;
|
|
222
|
-
error?: string[];
|
|
223
|
-
touched?: boolean;
|
|
224
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
225
|
-
blur: () => void;
|
|
226
|
-
"update:modelValue": (value: string) => void;
|
|
227
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_9<{
|
|
228
|
-
field: FieldDefinition;
|
|
229
|
-
modelValue: string | null;
|
|
230
|
-
error?: string[];
|
|
231
|
-
touched?: boolean;
|
|
232
|
-
}>>> & Readonly<{
|
|
233
|
-
onBlur?: (() => any) | undefined;
|
|
234
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
235
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
195
|
+
export declare const CheckboxField: typeof __VLS_export_7;
|
|
196
|
+
|
|
197
|
+
export declare const DateField: typeof __VLS_export_9;
|
|
236
198
|
|
|
237
199
|
declare interface FieldDefinition {
|
|
238
200
|
type: FieldType;
|
|
@@ -292,25 +254,9 @@ declare interface FieldOption {
|
|
|
292
254
|
|
|
293
255
|
declare type FieldType = 'text' | 'number' | 'email' | 'select' | 'checkbox' | 'radio' | 'textarea' | 'date' | 'array' | 'group' | 'file';
|
|
294
256
|
|
|
295
|
-
export declare const FileField:
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
error?: string[];
|
|
299
|
-
touched?: boolean;
|
|
300
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
301
|
-
blur: () => void;
|
|
302
|
-
"update:modelValue": (value: File | File[] | null) => void;
|
|
303
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_11<{
|
|
304
|
-
field: FieldDefinition;
|
|
305
|
-
modelValue: File | File[] | null;
|
|
306
|
-
error?: string[];
|
|
307
|
-
touched?: boolean;
|
|
308
|
-
}>>> & Readonly<{
|
|
309
|
-
onBlur?: (() => any) | undefined;
|
|
310
|
-
"onUpdate:modelValue"?: ((value: File | File[] | null) => any) | undefined;
|
|
311
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
312
|
-
|
|
313
|
-
export declare const FormRenderer: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
257
|
+
export declare const FileField: typeof __VLS_export_11;
|
|
258
|
+
|
|
259
|
+
export declare const FormRenderer: typeof __VLS_export;
|
|
314
260
|
|
|
315
261
|
declare interface MaskConfig {
|
|
316
262
|
preset?: MaskPreset;
|
|
@@ -320,25 +266,7 @@ declare interface MaskConfig {
|
|
|
320
266
|
|
|
321
267
|
declare type MaskPreset = 'phone-ru' | 'phone-eu' | 'date' | 'inn' | 'iban';
|
|
322
268
|
|
|
323
|
-
export declare const MultiStepFormRenderer:
|
|
324
|
-
form: MultiStepFormReturn;
|
|
325
|
-
components?: Partial<Record<FieldDefinition["type"], Component | string>>;
|
|
326
|
-
submitLabel?: string;
|
|
327
|
-
nextLabel?: string;
|
|
328
|
-
backLabel?: string;
|
|
329
|
-
stepLabels?: string[];
|
|
330
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
331
|
-
submit: () => void;
|
|
332
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_2<{
|
|
333
|
-
form: MultiStepFormReturn;
|
|
334
|
-
components?: Partial<Record<FieldDefinition["type"], Component | string>>;
|
|
335
|
-
submitLabel?: string;
|
|
336
|
-
nextLabel?: string;
|
|
337
|
-
backLabel?: string;
|
|
338
|
-
stepLabels?: string[];
|
|
339
|
-
}>>> & Readonly<{
|
|
340
|
-
onSubmit?: (() => any) | undefined;
|
|
341
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
269
|
+
export declare const MultiStepFormRenderer: typeof __VLS_export_2;
|
|
342
270
|
|
|
343
271
|
declare interface MultiStepFormReturn {
|
|
344
272
|
currentStep: Ref<number>;
|
|
@@ -360,95 +288,15 @@ declare interface MultiStepFormReturn {
|
|
|
360
288
|
submit(): Promise<void>;
|
|
361
289
|
}
|
|
362
290
|
|
|
363
|
-
export declare const NumberField:
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
field: FieldDefinition;
|
|
373
|
-
modelValue: number | null;
|
|
374
|
-
error?: string[];
|
|
375
|
-
touched?: boolean;
|
|
376
|
-
}>>> & Readonly<{
|
|
377
|
-
onBlur?: (() => any) | undefined;
|
|
378
|
-
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
379
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
380
|
-
|
|
381
|
-
export declare const RadioField: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_8<{
|
|
382
|
-
field: FieldDefinition;
|
|
383
|
-
modelValue: unknown;
|
|
384
|
-
error?: string[];
|
|
385
|
-
touched?: boolean;
|
|
386
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
387
|
-
blur: () => void;
|
|
388
|
-
"update:modelValue": (value: unknown) => void;
|
|
389
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_8<{
|
|
390
|
-
field: FieldDefinition;
|
|
391
|
-
modelValue: unknown;
|
|
392
|
-
error?: string[];
|
|
393
|
-
touched?: boolean;
|
|
394
|
-
}>>> & Readonly<{
|
|
395
|
-
onBlur?: (() => any) | undefined;
|
|
396
|
-
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
397
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
398
|
-
|
|
399
|
-
export declare const SelectField: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_6<{
|
|
400
|
-
field: FieldDefinition;
|
|
401
|
-
modelValue: unknown;
|
|
402
|
-
error?: string[];
|
|
403
|
-
touched?: boolean;
|
|
404
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
405
|
-
blur: () => void;
|
|
406
|
-
"update:modelValue": (value: unknown) => void;
|
|
407
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_6<{
|
|
408
|
-
field: FieldDefinition;
|
|
409
|
-
modelValue: unknown;
|
|
410
|
-
error?: string[];
|
|
411
|
-
touched?: boolean;
|
|
412
|
-
}>>> & Readonly<{
|
|
413
|
-
onBlur?: (() => any) | undefined;
|
|
414
|
-
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
415
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
416
|
-
|
|
417
|
-
export declare const TextareaField: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_5<{
|
|
418
|
-
field: FieldDefinition;
|
|
419
|
-
modelValue: string | null;
|
|
420
|
-
error?: string[];
|
|
421
|
-
touched?: boolean;
|
|
422
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
423
|
-
blur: () => void;
|
|
424
|
-
"update:modelValue": (value: string) => void;
|
|
425
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_5<{
|
|
426
|
-
field: FieldDefinition;
|
|
427
|
-
modelValue: string | null;
|
|
428
|
-
error?: string[];
|
|
429
|
-
touched?: boolean;
|
|
430
|
-
}>>> & Readonly<{
|
|
431
|
-
onBlur?: (() => any) | undefined;
|
|
432
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
433
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
434
|
-
|
|
435
|
-
export declare const TextField: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_3<{
|
|
436
|
-
field: FieldDefinition;
|
|
437
|
-
modelValue: string | null;
|
|
438
|
-
error?: string[];
|
|
439
|
-
touched?: boolean;
|
|
440
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
441
|
-
blur: () => void;
|
|
442
|
-
"update:modelValue": (value: string) => void;
|
|
443
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_3<{
|
|
444
|
-
field: FieldDefinition;
|
|
445
|
-
modelValue: string | null;
|
|
446
|
-
error?: string[];
|
|
447
|
-
touched?: boolean;
|
|
448
|
-
}>>> & Readonly<{
|
|
449
|
-
onBlur?: (() => any) | undefined;
|
|
450
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
451
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
291
|
+
export declare const NumberField: typeof __VLS_export_4;
|
|
292
|
+
|
|
293
|
+
export declare const RadioField: typeof __VLS_export_8;
|
|
294
|
+
|
|
295
|
+
export declare const SelectField: typeof __VLS_export_6;
|
|
296
|
+
|
|
297
|
+
export declare const TextareaField: typeof __VLS_export_5;
|
|
298
|
+
|
|
299
|
+
export declare const TextField: typeof __VLS_export_3;
|
|
452
300
|
|
|
453
301
|
declare interface UseFormReturn<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
454
302
|
fields: ComputedRef<FieldDefinition[]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@macrulez/vue-form-schema",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Reactive Vue 3 forms generated from JSON, Zod, Yup or Valibot schemas, with validation, input masking, conditional UI and SSR support.",
|
|
5
5
|
"author": "macrulez <macrulezru@gmail.com> (https://macrulez.ru/en)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -148,10 +148,12 @@
|
|
|
148
148
|
},
|
|
149
149
|
"devDependencies": {
|
|
150
150
|
"@eslint/js": "^9.39.5",
|
|
151
|
+
"@microsoft/api-extractor": "^7.58.13",
|
|
151
152
|
"@primeuix/themes": "^3.0.0",
|
|
152
153
|
"@vitejs/plugin-vue": "^5.0.0",
|
|
153
154
|
"@vitest/coverage-v8": "^1.0.0",
|
|
154
155
|
"@vue/devtools-api": "^8.2.1",
|
|
156
|
+
"@vue/language-core": "^3.3.10",
|
|
155
157
|
"@vue/test-utils": "^2.4.0",
|
|
156
158
|
"autoprefixer": "^10.5.0",
|
|
157
159
|
"eslint": "^9.39.5",
|
|
@@ -167,7 +169,7 @@
|
|
|
167
169
|
"typescript-eslint": "^8.67.0",
|
|
168
170
|
"valibot": "^1.4.0",
|
|
169
171
|
"vite": "^5.0.0",
|
|
170
|
-
"vite-plugin-dts": "^
|
|
172
|
+
"vite-plugin-dts": "^5.0.3",
|
|
171
173
|
"vitest": "^1.0.0",
|
|
172
174
|
"vue": "^3.4.0",
|
|
173
175
|
"vue-eslint-parser": "^9.4.3",
|