@macrulez/vue-form-schema 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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 __VLS_component: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
12
- form: UseFormReturn;
13
- /** Override individual field renderers: { text: MyTextInput, ... } */
14
- components?: Partial<Record<FieldDefinition["type"], Component | string>>;
15
- /** Label for the submit button */
16
- submitLabel?: string;
17
- /**
18
- * Internal: the field list to render. Used by the `group` case to recurse
19
- * into `field.fields` instead of re-rendering the whole top-level schema
20
- * (which would recurse into the same group forever). Defaults to the
21
- * form's top-level fields not meant to be passed by consumers.
22
- */
23
- fields?: FieldDefinition[];
24
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
25
- submit: () => void;
26
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
27
- form: UseFormReturn;
28
- /** Override individual field renderers: { text: MyTextInput, ... } */
29
- components?: Partial<Record<FieldDefinition["type"], Component | string>>;
30
- /** Label for the submit button */
31
- submitLabel?: string;
32
- /**
33
- * Internal: the field list to render. Used by the `group` case to recurse
34
- * into `field.fields` instead of re-rendering the whole top-level schema
35
- * (which would recurse into the same group forever). Defaults to the
36
- * form's top-level fields — not meant to be passed by consumers.
37
- */
38
- fields?: FieldDefinition[];
39
- }>>> & Readonly<{
40
- onSubmit?: (() => any) | undefined;
41
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
42
-
43
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
44
-
45
- declare type __VLS_NonUndefinedable_10<T> = T extends undefined ? never : T;
46
-
47
- declare type __VLS_NonUndefinedable_11<T> = T extends undefined ? never : T;
48
-
49
- declare type __VLS_NonUndefinedable_2<T> = T extends undefined ? never : T;
50
-
51
- declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
52
-
53
- declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
54
-
55
- declare type __VLS_NonUndefinedable_5<T> = T extends undefined ? never : T;
56
-
57
- declare type __VLS_NonUndefinedable_6<T> = T extends undefined ? never : T;
58
-
59
- declare type __VLS_NonUndefinedable_7<T> = T extends undefined ? never : T;
60
-
61
- declare type __VLS_NonUndefinedable_8<T> = T extends undefined ? never : T;
62
-
63
- declare type __VLS_NonUndefinedable_9<T> = T extends undefined ? never : T;
64
-
65
- declare function __VLS_template(): Partial<Record<`field-${string}`, (_: {
66
- field: FieldDefinition;
67
- value: unknown;
68
- error: string[];
69
- touched: boolean;
70
- setValue: (v: unknown) => void;
71
- touch: () => void;
72
- }) => any>> & Partial<Record<`label-${string}`, (_: {
73
- field: FieldDefinition;
74
- }) => any>> & Partial<Record<`error-${string}`, (_: {
75
- field: FieldDefinition;
76
- error: string[];
77
- }) => any>> & {
78
- submit?(_: {
79
- isSubmitting: boolean;
80
- isValid: boolean;
81
- }): any;
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 __VLS_TypePropsToRuntimeProps<T> = {
85
- [K in keyof T]-?: {} extends Pick<T, K> ? {
86
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
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 __VLS_TypePropsToRuntimeProps_10<T> = {
94
- [K in keyof T]-?: {} extends Pick<T, K> ? {
95
- type: PropType<__VLS_NonUndefinedable_10<T[K]>>;
96
- } : {
97
- type: PropType<T[K]>;
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 __VLS_TypePropsToRuntimeProps_11<T> = {
103
- [K in keyof T]-?: {} extends Pick<T, K> ? {
104
- type: PropType<__VLS_NonUndefinedable_11<T[K]>>;
105
- } : {
106
- type: PropType<T[K]>;
107
- required: true;
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 __VLS_TypePropsToRuntimeProps_2<T> = {
112
- [K in keyof T]-?: {} extends Pick<T, K> ? {
113
- type: PropType<__VLS_NonUndefinedable_2<T[K]>>;
114
- } : {
115
- type: PropType<T[K]>;
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 __VLS_TypePropsToRuntimeProps_3<T> = {
121
- [K in keyof T]-?: {} extends Pick<T, K> ? {
122
- type: PropType<__VLS_NonUndefinedable_3<T[K]>>;
123
- } : {
124
- type: PropType<T[K]>;
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 __VLS_TypePropsToRuntimeProps_4<T> = {
130
- [K in keyof T]-?: {} extends Pick<T, K> ? {
131
- type: PropType<__VLS_NonUndefinedable_4<T[K]>>;
132
- } : {
133
- type: PropType<T[K]>;
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 __VLS_TypePropsToRuntimeProps_5<T> = {
139
- [K in keyof T]-?: {} extends Pick<T, K> ? {
140
- type: PropType<__VLS_NonUndefinedable_5<T[K]>>;
141
- } : {
142
- type: PropType<T[K]>;
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 __VLS_TypePropsToRuntimeProps_6<T> = {
148
- [K in keyof T]-?: {} extends Pick<T, K> ? {
149
- type: PropType<__VLS_NonUndefinedable_6<T[K]>>;
150
- } : {
151
- type: PropType<T[K]>;
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 __VLS_TypePropsToRuntimeProps_7<T> = {
157
- [K in keyof T]-?: {} extends Pick<T, K> ? {
158
- type: PropType<__VLS_NonUndefinedable_7<T[K]>>;
159
- } : {
160
- type: PropType<T[K]>;
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 __VLS_TypePropsToRuntimeProps_8<T> = {
166
- [K in keyof T]-?: {} extends Pick<T, K> ? {
167
- type: PropType<__VLS_NonUndefinedable_8<T[K]>>;
168
- } : {
169
- type: PropType<T[K]>;
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 __VLS_TypePropsToRuntimeProps_9<T> = {
175
- [K in keyof T]-?: {} extends Pick<T, K> ? {
176
- type: PropType<__VLS_NonUndefinedable_9<T[K]>>;
177
- } : {
178
- type: PropType<T[K]>;
179
- required: true;
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 __VLS_WithTemplateSlots<T, S> = T & {
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: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_10<{
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: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_7<{
202
- field: FieldDefinition;
203
- modelValue: boolean | null;
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: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_11<{
296
- field: FieldDefinition;
297
- modelValue: File | File[] | null;
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: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_2<{
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: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_4<{
364
- field: FieldDefinition;
365
- modelValue: number | null;
366
- error?: string[];
367
- touched?: boolean;
368
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
369
- blur: () => void;
370
- "update:modelValue": (value: number | null) => void;
371
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_4<{
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.0",
3
+ "version": "0.2.2",
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": "^3.7.0",
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",