@tmagic/form 1.7.0-beta.1 → 1.7.0-beta.3

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/types/index.d.ts CHANGED
@@ -67,14 +67,14 @@ declare const __VLS_export$v: _vue_runtime_core.DefineComponent<__VLS_Props$u, {
67
67
  submitForm: (native?: boolean) => Promise<any>;
68
68
  getTextByName: (name: string, config?: FormConfig) => string | undefined;
69
69
  }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
70
- change: (...args: any[]) => void;
71
70
  error: (...args: any[]) => void;
71
+ change: (...args: any[]) => void;
72
72
  "update:stepActive": (...args: any[]) => void;
73
73
  "field-change": (...args: any[]) => void;
74
74
  "field-input": (...args: any[]) => void;
75
75
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$u> & Readonly<{
76
- onChange?: ((...args: any[]) => any) | undefined;
77
76
  onError?: ((...args: any[]) => any) | undefined;
77
+ onChange?: ((...args: any[]) => any) | undefined;
78
78
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
79
79
  "onField-change"?: ((...args: any[]) => any) | undefined;
80
80
  "onField-input"?: ((...args: any[]) => any) | undefined;
@@ -139,8 +139,8 @@ declare const __VLS_base$4: _vue_runtime_core.DefineComponent<__VLS_Props$t, {
139
139
  preventSubmitDefault?: boolean;
140
140
  extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
141
141
  }> & Readonly<{
142
- onChange?: ((...args: any[]) => any) | undefined;
143
142
  onError?: ((...args: any[]) => any) | undefined;
143
+ onChange?: ((...args: any[]) => any) | undefined;
144
144
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
145
145
  "onField-change"?: ((...args: any[]) => any) | undefined;
146
146
  "onField-input"?: ((...args: any[]) => any) | undefined;
@@ -155,8 +155,8 @@ declare const __VLS_base$4: _vue_runtime_core.DefineComponent<__VLS_Props$t, {
155
155
  submitForm: (native?: boolean) => Promise<any>;
156
156
  getTextByName: (name: string, config?: FormConfig) => string | undefined;
157
157
  }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
158
- change: (...args: any[]) => void;
159
158
  error: (...args: any[]) => void;
159
+ change: (...args: any[]) => void;
160
160
  "update:stepActive": (...args: any[]) => void;
161
161
  "field-change": (...args: any[]) => void;
162
162
  "field-input": (...args: any[]) => void;
@@ -198,8 +198,8 @@ declare const __VLS_base$4: _vue_runtime_core.DefineComponent<__VLS_Props$t, {
198
198
  preventSubmitDefault?: boolean;
199
199
  extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
200
200
  }> & Readonly<{
201
- onChange?: ((...args: any[]) => any) | undefined;
202
201
  onError?: ((...args: any[]) => any) | undefined;
202
+ onChange?: ((...args: any[]) => any) | undefined;
203
203
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
204
204
  "onField-change"?: ((...args: any[]) => any) | undefined;
205
205
  "onField-input"?: ((...args: any[]) => any) | undefined;
@@ -244,8 +244,8 @@ declare const __VLS_base$4: _vue_runtime_core.DefineComponent<__VLS_Props$t, {
244
244
  preventSubmitDefault?: boolean;
245
245
  extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
246
246
  }> & Readonly<{
247
- onChange?: ((...args: any[]) => any) | undefined;
248
247
  onError?: ((...args: any[]) => any) | undefined;
248
+ onChange?: ((...args: any[]) => any) | undefined;
249
249
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
250
250
  "onField-change"?: ((...args: any[]) => any) | undefined;
251
251
  "onField-input"?: ((...args: any[]) => any) | undefined;
@@ -260,8 +260,8 @@ declare const __VLS_base$4: _vue_runtime_core.DefineComponent<__VLS_Props$t, {
260
260
  submitForm: (native?: boolean) => Promise<any>;
261
261
  getTextByName: (name: string, config?: FormConfig) => string | undefined;
262
262
  }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
263
- change: (...args: any[]) => void;
264
263
  error: (...args: any[]) => void;
264
+ change: (...args: any[]) => void;
265
265
  "update:stepActive": (...args: any[]) => void;
266
266
  "field-change": (...args: any[]) => void;
267
267
  "field-input": (...args: any[]) => void;
@@ -303,8 +303,8 @@ declare const __VLS_base$4: _vue_runtime_core.DefineComponent<__VLS_Props$t, {
303
303
  preventSubmitDefault?: boolean;
304
304
  extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
305
305
  }> & Readonly<{
306
- onChange?: ((...args: any[]) => any) | undefined;
307
306
  onError?: ((...args: any[]) => any) | undefined;
307
+ onChange?: ((...args: any[]) => any) | undefined;
308
308
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
309
309
  "onField-change"?: ((...args: any[]) => any) | undefined;
310
310
  "onField-input"?: ((...args: any[]) => any) | undefined;
@@ -339,14 +339,14 @@ declare const __VLS_base$4: _vue_runtime_core.DefineComponent<__VLS_Props$t, {
339
339
  show: () => void;
340
340
  hide: () => void;
341
341
  }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
342
+ error: (...args: any[]) => void;
342
343
  change: (...args: any[]) => void;
343
344
  close: (...args: any[]) => void;
344
- error: (...args: any[]) => void;
345
345
  submit: (...args: any[]) => void;
346
346
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$t> & Readonly<{
347
+ onError?: ((...args: any[]) => any) | undefined;
347
348
  onChange?: ((...args: any[]) => any) | undefined;
348
349
  onClose?: ((...args: any[]) => any) | undefined;
349
- onError?: ((...args: any[]) => any) | undefined;
350
350
  onSubmit?: ((...args: any[]) => any) | undefined;
351
351
  }>, {
352
352
  values: Object;
@@ -409,8 +409,8 @@ declare const __VLS_base$3: _vue_runtime_core.DefineComponent<__VLS_Props$s, {
409
409
  preventSubmitDefault?: boolean;
410
410
  extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
411
411
  }> & Readonly<{
412
- onChange?: ((...args: any[]) => any) | undefined;
413
412
  onError?: ((...args: any[]) => any) | undefined;
413
+ onChange?: ((...args: any[]) => any) | undefined;
414
414
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
415
415
  "onField-change"?: ((...args: any[]) => any) | undefined;
416
416
  "onField-input"?: ((...args: any[]) => any) | undefined;
@@ -425,8 +425,8 @@ declare const __VLS_base$3: _vue_runtime_core.DefineComponent<__VLS_Props$s, {
425
425
  submitForm: (native?: boolean) => Promise<any>;
426
426
  getTextByName: (name: string, config?: FormConfig) => string | undefined;
427
427
  }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
428
- change: (...args: any[]) => void;
429
428
  error: (...args: any[]) => void;
429
+ change: (...args: any[]) => void;
430
430
  "update:stepActive": (...args: any[]) => void;
431
431
  "field-change": (...args: any[]) => void;
432
432
  "field-input": (...args: any[]) => void;
@@ -468,8 +468,8 @@ declare const __VLS_base$3: _vue_runtime_core.DefineComponent<__VLS_Props$s, {
468
468
  preventSubmitDefault?: boolean;
469
469
  extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
470
470
  }> & Readonly<{
471
- onChange?: ((...args: any[]) => any) | undefined;
472
471
  onError?: ((...args: any[]) => any) | undefined;
472
+ onChange?: ((...args: any[]) => any) | undefined;
473
473
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
474
474
  "onField-change"?: ((...args: any[]) => any) | undefined;
475
475
  "onField-input"?: ((...args: any[]) => any) | undefined;
@@ -514,8 +514,8 @@ declare const __VLS_base$3: _vue_runtime_core.DefineComponent<__VLS_Props$s, {
514
514
  preventSubmitDefault?: boolean;
515
515
  extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
516
516
  }> & Readonly<{
517
- onChange?: ((...args: any[]) => any) | undefined;
518
517
  onError?: ((...args: any[]) => any) | undefined;
518
+ onChange?: ((...args: any[]) => any) | undefined;
519
519
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
520
520
  "onField-change"?: ((...args: any[]) => any) | undefined;
521
521
  "onField-input"?: ((...args: any[]) => any) | undefined;
@@ -530,8 +530,8 @@ declare const __VLS_base$3: _vue_runtime_core.DefineComponent<__VLS_Props$s, {
530
530
  submitForm: (native?: boolean) => Promise<any>;
531
531
  getTextByName: (name: string, config?: FormConfig) => string | undefined;
532
532
  }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
533
- change: (...args: any[]) => void;
534
533
  error: (...args: any[]) => void;
534
+ change: (...args: any[]) => void;
535
535
  "update:stepActive": (...args: any[]) => void;
536
536
  "field-change": (...args: any[]) => void;
537
537
  "field-input": (...args: any[]) => void;
@@ -573,8 +573,8 @@ declare const __VLS_base$3: _vue_runtime_core.DefineComponent<__VLS_Props$s, {
573
573
  preventSubmitDefault?: boolean;
574
574
  extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
575
575
  }> & Readonly<{
576
- onChange?: ((...args: any[]) => any) | undefined;
577
576
  onError?: ((...args: any[]) => any) | undefined;
577
+ onChange?: ((...args: any[]) => any) | undefined;
578
578
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
579
579
  "onField-change"?: ((...args: any[]) => any) | undefined;
580
580
  "onField-input"?: ((...args: any[]) => any) | undefined;
@@ -608,17 +608,17 @@ declare const __VLS_base$3: _vue_runtime_core.DefineComponent<__VLS_Props$s, {
608
608
  hide: () => void;
609
609
  handleClose: () => void;
610
610
  }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
611
+ error: (...args: any[]) => void;
611
612
  change: (...args: any[]) => void;
612
613
  close: (...args: any[]) => void;
613
- error: (...args: any[]) => void;
614
614
  submit: (...args: any[]) => void;
615
615
  open: (...args: any[]) => void;
616
616
  opened: (...args: any[]) => void;
617
617
  closed: (...args: any[]) => void;
618
618
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$s> & Readonly<{
619
+ onError?: ((...args: any[]) => any) | undefined;
619
620
  onChange?: ((...args: any[]) => any) | undefined;
620
621
  onClose?: ((...args: any[]) => any) | undefined;
621
- onError?: ((...args: any[]) => any) | undefined;
622
622
  onSubmit?: ((...args: any[]) => any) | undefined;
623
623
  onOpen?: ((...args: any[]) => any) | undefined;
624
624
  onOpened?: ((...args: any[]) => any) | undefined;
@@ -681,8 +681,8 @@ declare const __VLS_base$2: _vue_runtime_core.DefineComponent<__VLS_Props$r, {
681
681
  preventSubmitDefault?: boolean;
682
682
  extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
683
683
  }> & Readonly<{
684
- onChange?: ((...args: any[]) => any) | undefined;
685
684
  onError?: ((...args: any[]) => any) | undefined;
685
+ onChange?: ((...args: any[]) => any) | undefined;
686
686
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
687
687
  "onField-change"?: ((...args: any[]) => any) | undefined;
688
688
  "onField-input"?: ((...args: any[]) => any) | undefined;
@@ -697,8 +697,8 @@ declare const __VLS_base$2: _vue_runtime_core.DefineComponent<__VLS_Props$r, {
697
697
  submitForm: (native?: boolean) => Promise<any>;
698
698
  getTextByName: (name: string, config?: FormConfig) => string | undefined;
699
699
  }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
700
- change: (...args: any[]) => void;
701
700
  error: (...args: any[]) => void;
701
+ change: (...args: any[]) => void;
702
702
  "update:stepActive": (...args: any[]) => void;
703
703
  "field-change": (...args: any[]) => void;
704
704
  "field-input": (...args: any[]) => void;
@@ -740,8 +740,8 @@ declare const __VLS_base$2: _vue_runtime_core.DefineComponent<__VLS_Props$r, {
740
740
  preventSubmitDefault?: boolean;
741
741
  extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
742
742
  }> & Readonly<{
743
- onChange?: ((...args: any[]) => any) | undefined;
744
743
  onError?: ((...args: any[]) => any) | undefined;
744
+ onChange?: ((...args: any[]) => any) | undefined;
745
745
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
746
746
  "onField-change"?: ((...args: any[]) => any) | undefined;
747
747
  "onField-input"?: ((...args: any[]) => any) | undefined;
@@ -786,8 +786,8 @@ declare const __VLS_base$2: _vue_runtime_core.DefineComponent<__VLS_Props$r, {
786
786
  preventSubmitDefault?: boolean;
787
787
  extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
788
788
  }> & Readonly<{
789
- onChange?: ((...args: any[]) => any) | undefined;
790
789
  onError?: ((...args: any[]) => any) | undefined;
790
+ onChange?: ((...args: any[]) => any) | undefined;
791
791
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
792
792
  "onField-change"?: ((...args: any[]) => any) | undefined;
793
793
  "onField-input"?: ((...args: any[]) => any) | undefined;
@@ -802,8 +802,8 @@ declare const __VLS_base$2: _vue_runtime_core.DefineComponent<__VLS_Props$r, {
802
802
  submitForm: (native?: boolean) => Promise<any>;
803
803
  getTextByName: (name: string, config?: FormConfig) => string | undefined;
804
804
  }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
805
- change: (...args: any[]) => void;
806
805
  error: (...args: any[]) => void;
806
+ change: (...args: any[]) => void;
807
807
  "update:stepActive": (...args: any[]) => void;
808
808
  "field-change": (...args: any[]) => void;
809
809
  "field-input": (...args: any[]) => void;
@@ -845,8 +845,8 @@ declare const __VLS_base$2: _vue_runtime_core.DefineComponent<__VLS_Props$r, {
845
845
  preventSubmitDefault?: boolean;
846
846
  extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
847
847
  }> & Readonly<{
848
- onChange?: ((...args: any[]) => any) | undefined;
849
848
  onError?: ((...args: any[]) => any) | undefined;
849
+ onChange?: ((...args: any[]) => any) | undefined;
850
850
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
851
851
  "onField-change"?: ((...args: any[]) => any) | undefined;
852
852
  "onField-input"?: ((...args: any[]) => any) | undefined;
@@ -878,12 +878,12 @@ declare const __VLS_base$2: _vue_runtime_core.DefineComponent<__VLS_Props$r, {
878
878
  show: () => void;
879
879
  hide: () => void;
880
880
  }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
881
- change: (v: any, eventData: ContainerChangeEventData) => any;
882
881
  error: (e: any) => any;
882
+ change: (v: any, eventData: ContainerChangeEventData) => any;
883
883
  submit: (v: any, eventData: ContainerChangeEventData) => any;
884
884
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$r> & Readonly<{
885
- onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
886
885
  onError?: ((e: any) => any) | undefined;
886
+ onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
887
887
  onSubmit?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
888
888
  }>, {
889
889
  values: Object;
@@ -1123,10 +1123,10 @@ declare const _default$l: typeof __VLS_export$k;
1123
1123
 
1124
1124
  type __VLS_Props$j = FieldProps<TextConfig>;
1125
1125
  declare const __VLS_export$j: _vue_runtime_core.DefineComponent<__VLS_Props$j, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1126
- change: (value: string) => any;
1126
+ change: (value: string, eventData?: ContainerChangeEventData | undefined) => any;
1127
1127
  input: (value: string) => any;
1128
1128
  }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$j> & Readonly<{
1129
- onChange?: ((value: string) => any) | undefined;
1129
+ onChange?: ((value: string, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
1130
1130
  onInput?: ((value: string) => any) | undefined;
1131
1131
  }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1132
1132
  declare const _default$k: typeof __VLS_export$j;