@tmagic/form 1.5.5 → 1.5.7

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
@@ -1,9 +1,9 @@
1
1
  import * as vue from 'vue';
2
- import { App } from 'vue';
2
+ import { nextTick, App } from 'vue';
3
3
  import * as _tmagic_design from '@tmagic/design';
4
4
  import { TMagicMessageBox, TMagicMessage } from '@tmagic/design';
5
- import * as _tmagic_editor from '@tmagic/editor';
6
5
  import * as _vue_reactivity from '@vue/reactivity';
6
+ import * as _tmagic_editor from '@tmagic/editor';
7
7
 
8
8
  interface ValidateError {
9
9
  message: string;
@@ -700,7 +700,65 @@ declare const _default$v: vue.DefineComponent<__VLS_Props$u, {
700
700
  parentValues: Record<string, any>;
701
701
  stepActive: string | number;
702
702
  height: string;
703
- }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
703
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {
704
+ tMagicForm: ({
705
+ $: vue.ComponentInternalInstance;
706
+ $data: {};
707
+ $props: {
708
+ readonly model?: any;
709
+ readonly labelWidth?: string | number | undefined;
710
+ readonly disabled?: boolean | undefined;
711
+ readonly inline?: boolean | undefined;
712
+ readonly labelPosition?: string | undefined;
713
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
714
+ $attrs: {
715
+ [x: string]: unknown;
716
+ };
717
+ $refs: {
718
+ [x: string]: unknown;
719
+ } & {
720
+ form: unknown;
721
+ };
722
+ $slots: Readonly<{
723
+ [name: string]: vue.Slot<any> | undefined;
724
+ }>;
725
+ $root: vue.ComponentPublicInstance | null;
726
+ $parent: vue.ComponentPublicInstance | null;
727
+ $host: Element | null;
728
+ $emit: (event: string, ...args: any[]) => void;
729
+ $el: any;
730
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.FormProps> & Readonly<{}>, {
731
+ validate(): any;
732
+ resetFields(): any;
733
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
734
+ beforeCreate?: (() => void) | (() => void)[];
735
+ created?: (() => void) | (() => void)[];
736
+ beforeMount?: (() => void) | (() => void)[];
737
+ mounted?: (() => void) | (() => void)[];
738
+ beforeUpdate?: (() => void) | (() => void)[];
739
+ updated?: (() => void) | (() => void)[];
740
+ activated?: (() => void) | (() => void)[];
741
+ deactivated?: (() => void) | (() => void)[];
742
+ beforeDestroy?: (() => void) | (() => void)[];
743
+ beforeUnmount?: (() => void) | (() => void)[];
744
+ destroyed?: (() => void) | (() => void)[];
745
+ unmounted?: (() => void) | (() => void)[];
746
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
747
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
748
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
749
+ };
750
+ $forceUpdate: () => void;
751
+ $nextTick: typeof vue.nextTick;
752
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
753
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.FormProps> & Readonly<{}>, "validate" | "resetFields"> & vue.ShallowUnwrapRef<{
754
+ validate(): any;
755
+ resetFields(): any;
756
+ }> & {} & vue.ComponentCustomProperties & {} & {
757
+ $slots: {
758
+ default?(_: {}): any;
759
+ };
760
+ }) | null;
761
+ }, any>;
704
762
 
705
763
  type __VLS_Props$t = {
706
764
  config?: FormConfig;
@@ -777,7 +835,65 @@ declare function __VLS_template$4(): {
777
835
  parentValues: Record<string, any>;
778
836
  stepActive: string | number;
779
837
  height: string;
780
- }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
838
+ }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
839
+ tMagicForm: ({
840
+ $: vue.ComponentInternalInstance;
841
+ $data: {};
842
+ $props: {
843
+ readonly model?: any;
844
+ readonly labelWidth?: string | number | undefined;
845
+ readonly disabled?: boolean | undefined;
846
+ readonly inline?: boolean | undefined;
847
+ readonly labelPosition?: string | undefined;
848
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
849
+ $attrs: {
850
+ [x: string]: unknown;
851
+ };
852
+ $refs: {
853
+ [x: string]: unknown;
854
+ } & {
855
+ form: unknown;
856
+ };
857
+ $slots: Readonly<{
858
+ [name: string]: vue.Slot<any> | undefined;
859
+ }>;
860
+ $root: vue.ComponentPublicInstance | null;
861
+ $parent: vue.ComponentPublicInstance | null;
862
+ $host: Element | null;
863
+ $emit: (event: string, ...args: any[]) => void;
864
+ $el: any;
865
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.FormProps> & Readonly<{}>, {
866
+ validate(): any;
867
+ resetFields(): any;
868
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
869
+ beforeCreate?: (() => void) | (() => void)[];
870
+ created?: (() => void) | (() => void)[];
871
+ beforeMount?: (() => void) | (() => void)[];
872
+ mounted?: (() => void) | (() => void)[];
873
+ beforeUpdate?: (() => void) | (() => void)[];
874
+ updated?: (() => void) | (() => void)[];
875
+ activated?: (() => void) | (() => void)[];
876
+ deactivated?: (() => void) | (() => void)[];
877
+ beforeDestroy?: (() => void) | (() => void)[];
878
+ beforeUnmount?: (() => void) | (() => void)[];
879
+ destroyed?: (() => void) | (() => void)[];
880
+ unmounted?: (() => void) | (() => void)[];
881
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
882
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
883
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
884
+ };
885
+ $forceUpdate: () => void;
886
+ $nextTick: typeof vue.nextTick;
887
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
888
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.FormProps> & Readonly<{}>, "validate" | "resetFields"> & vue.ShallowUnwrapRef<{
889
+ validate(): any;
890
+ resetFields(): any;
891
+ }> & {} & vue.ComponentCustomProperties & {} & {
892
+ $slots: {
893
+ default?(_: {}): any;
894
+ };
895
+ }) | null;
896
+ }, any, vue.ComponentProvideOptions, {
781
897
  P: {};
782
898
  B: {};
783
899
  D: {};
@@ -886,7 +1002,65 @@ declare const __VLS_component$4: vue.DefineComponent<__VLS_Props$t, {
886
1002
  parentValues: Record<string, any>;
887
1003
  stepActive: string | number;
888
1004
  height: string;
889
- }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
1005
+ }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
1006
+ tMagicForm: ({
1007
+ $: vue.ComponentInternalInstance;
1008
+ $data: {};
1009
+ $props: {
1010
+ readonly model?: any;
1011
+ readonly labelWidth?: string | number | undefined;
1012
+ readonly disabled?: boolean | undefined;
1013
+ readonly inline?: boolean | undefined;
1014
+ readonly labelPosition?: string | undefined;
1015
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
1016
+ $attrs: {
1017
+ [x: string]: unknown;
1018
+ };
1019
+ $refs: {
1020
+ [x: string]: unknown;
1021
+ } & {
1022
+ form: unknown;
1023
+ };
1024
+ $slots: Readonly<{
1025
+ [name: string]: vue.Slot<any> | undefined;
1026
+ }>;
1027
+ $root: vue.ComponentPublicInstance | null;
1028
+ $parent: vue.ComponentPublicInstance | null;
1029
+ $host: Element | null;
1030
+ $emit: (event: string, ...args: any[]) => void;
1031
+ $el: any;
1032
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.FormProps> & Readonly<{}>, {
1033
+ validate(): any;
1034
+ resetFields(): any;
1035
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
1036
+ beforeCreate?: (() => void) | (() => void)[];
1037
+ created?: (() => void) | (() => void)[];
1038
+ beforeMount?: (() => void) | (() => void)[];
1039
+ mounted?: (() => void) | (() => void)[];
1040
+ beforeUpdate?: (() => void) | (() => void)[];
1041
+ updated?: (() => void) | (() => void)[];
1042
+ activated?: (() => void) | (() => void)[];
1043
+ deactivated?: (() => void) | (() => void)[];
1044
+ beforeDestroy?: (() => void) | (() => void)[];
1045
+ beforeUnmount?: (() => void) | (() => void)[];
1046
+ destroyed?: (() => void) | (() => void)[];
1047
+ unmounted?: (() => void) | (() => void)[];
1048
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
1049
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
1050
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
1051
+ };
1052
+ $forceUpdate: () => void;
1053
+ $nextTick: typeof vue.nextTick;
1054
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
1055
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.FormProps> & Readonly<{}>, "validate" | "resetFields"> & vue.ShallowUnwrapRef<{
1056
+ validate(): any;
1057
+ resetFields(): any;
1058
+ }> & {} & vue.ComponentCustomProperties & {} & {
1059
+ $slots: {
1060
+ default?(_: {}): any;
1061
+ };
1062
+ }) | null;
1063
+ }, any, vue.ComponentProvideOptions, {
890
1064
  P: {};
891
1065
  B: {};
892
1066
  D: {};
@@ -989,7 +1163,65 @@ declare const __VLS_component$4: vue.DefineComponent<__VLS_Props$t, {
989
1163
  parentValues: Record<string, any>;
990
1164
  stepActive: string | number;
991
1165
  height: string;
992
- }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
1166
+ }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
1167
+ tMagicForm: ({
1168
+ $: vue.ComponentInternalInstance;
1169
+ $data: {};
1170
+ $props: {
1171
+ readonly model?: any;
1172
+ readonly labelWidth?: string | number | undefined;
1173
+ readonly disabled?: boolean | undefined;
1174
+ readonly inline?: boolean | undefined;
1175
+ readonly labelPosition?: string | undefined;
1176
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
1177
+ $attrs: {
1178
+ [x: string]: unknown;
1179
+ };
1180
+ $refs: {
1181
+ [x: string]: unknown;
1182
+ } & {
1183
+ form: unknown;
1184
+ };
1185
+ $slots: Readonly<{
1186
+ [name: string]: vue.Slot<any> | undefined;
1187
+ }>;
1188
+ $root: vue.ComponentPublicInstance | null;
1189
+ $parent: vue.ComponentPublicInstance | null;
1190
+ $host: Element | null;
1191
+ $emit: (event: string, ...args: any[]) => void;
1192
+ $el: any;
1193
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.FormProps> & Readonly<{}>, {
1194
+ validate(): any;
1195
+ resetFields(): any;
1196
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
1197
+ beforeCreate?: (() => void) | (() => void)[];
1198
+ created?: (() => void) | (() => void)[];
1199
+ beforeMount?: (() => void) | (() => void)[];
1200
+ mounted?: (() => void) | (() => void)[];
1201
+ beforeUpdate?: (() => void) | (() => void)[];
1202
+ updated?: (() => void) | (() => void)[];
1203
+ activated?: (() => void) | (() => void)[];
1204
+ deactivated?: (() => void) | (() => void)[];
1205
+ beforeDestroy?: (() => void) | (() => void)[];
1206
+ beforeUnmount?: (() => void) | (() => void)[];
1207
+ destroyed?: (() => void) | (() => void)[];
1208
+ unmounted?: (() => void) | (() => void)[];
1209
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
1210
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
1211
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
1212
+ };
1213
+ $forceUpdate: () => void;
1214
+ $nextTick: typeof vue.nextTick;
1215
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
1216
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.FormProps> & Readonly<{}>, "validate" | "resetFields"> & vue.ShallowUnwrapRef<{
1217
+ validate(): any;
1218
+ resetFields(): any;
1219
+ }> & {} & vue.ComponentCustomProperties & {} & {
1220
+ $slots: {
1221
+ default?(_: {}): any;
1222
+ };
1223
+ }) | null;
1224
+ }, any, vue.ComponentProvideOptions, {
993
1225
  P: {};
994
1226
  B: {};
995
1227
  D: {};
@@ -1062,7 +1294,170 @@ declare const __VLS_component$4: vue.DefineComponent<__VLS_Props$t, {
1062
1294
  values: Object;
1063
1295
  config: FormConfig;
1064
1296
  confirmText: string;
1065
- }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
1297
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {
1298
+ form: vue.CreateComponentPublicInstanceWithMixins<Readonly<{
1299
+ config: FormConfig;
1300
+ initValues: Record<string, any>;
1301
+ lastValues?: Record<string, any>;
1302
+ isCompare?: boolean;
1303
+ parentValues?: Record<string, any>;
1304
+ labelWidth?: string;
1305
+ disabled?: boolean;
1306
+ height?: string;
1307
+ stepActive?: string | number;
1308
+ size?: "small" | "default" | "large";
1309
+ inline?: boolean;
1310
+ labelPosition?: string;
1311
+ keyProp?: string;
1312
+ popperClass?: string;
1313
+ preventSubmitDefault?: boolean;
1314
+ extendState?: (state: _tmagic_editor.FormState) => Record<string, any> | Promise<Record<string, any>>;
1315
+ }> & Readonly<{
1316
+ onChange?: ((...args: any[]) => any) | undefined;
1317
+ onError?: ((...args: any[]) => any) | undefined;
1318
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
1319
+ "onField-change"?: ((...args: any[]) => any) | undefined;
1320
+ "onField-input"?: ((...args: any[]) => any) | undefined;
1321
+ }>, {
1322
+ values: vue.Ref<FormValue, FormValue>;
1323
+ lastValuesProcessed: vue.Ref<FormValue, FormValue>;
1324
+ formState: _tmagic_editor.FormState;
1325
+ initialized: vue.Ref<boolean, boolean>;
1326
+ changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
1327
+ changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
1328
+ resetForm: () => void;
1329
+ submitForm: (native?: boolean) => Promise<any>;
1330
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
1331
+ change: (...args: any[]) => void;
1332
+ error: (...args: any[]) => void;
1333
+ "update:stepActive": (...args: any[]) => void;
1334
+ "field-change": (...args: any[]) => void;
1335
+ "field-input": (...args: any[]) => void;
1336
+ }, vue.PublicProps, {
1337
+ disabled: boolean;
1338
+ labelWidth: string;
1339
+ inline: boolean;
1340
+ labelPosition: string;
1341
+ config: FormConfig;
1342
+ initValues: Record<string, any>;
1343
+ lastValues: Record<string, any>;
1344
+ isCompare: boolean;
1345
+ keyProp: string;
1346
+ parentValues: Record<string, any>;
1347
+ stepActive: string | number;
1348
+ height: string;
1349
+ }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
1350
+ tMagicForm: ({
1351
+ $: vue.ComponentInternalInstance;
1352
+ $data: {};
1353
+ $props: {
1354
+ readonly model?: any;
1355
+ readonly labelWidth?: string | number | undefined;
1356
+ readonly disabled?: boolean | undefined;
1357
+ readonly inline?: boolean | undefined;
1358
+ readonly labelPosition?: string | undefined;
1359
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
1360
+ $attrs: {
1361
+ [x: string]: unknown;
1362
+ };
1363
+ $refs: {
1364
+ [x: string]: unknown;
1365
+ } & {
1366
+ form: unknown;
1367
+ };
1368
+ $slots: Readonly<{
1369
+ [name: string]: vue.Slot<any> | undefined;
1370
+ }>;
1371
+ $root: vue.ComponentPublicInstance | null;
1372
+ $parent: vue.ComponentPublicInstance | null;
1373
+ $host: Element | null;
1374
+ $emit: (event: string, ...args: any[]) => void;
1375
+ $el: any;
1376
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.FormProps> & Readonly<{}>, {
1377
+ validate(): any;
1378
+ resetFields(): any;
1379
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
1380
+ beforeCreate?: (() => void) | (() => void)[];
1381
+ created?: (() => void) | (() => void)[];
1382
+ beforeMount?: (() => void) | (() => void)[];
1383
+ mounted?: (() => void) | (() => void)[];
1384
+ beforeUpdate?: (() => void) | (() => void)[];
1385
+ updated?: (() => void) | (() => void)[];
1386
+ activated?: (() => void) | (() => void)[];
1387
+ deactivated?: (() => void) | (() => void)[];
1388
+ beforeDestroy?: (() => void) | (() => void)[];
1389
+ beforeUnmount?: (() => void) | (() => void)[];
1390
+ destroyed?: (() => void) | (() => void)[];
1391
+ unmounted?: (() => void) | (() => void)[];
1392
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
1393
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
1394
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
1395
+ };
1396
+ $forceUpdate: () => void;
1397
+ $nextTick: typeof vue.nextTick;
1398
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
1399
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.FormProps> & Readonly<{}>, "validate" | "resetFields"> & vue.ShallowUnwrapRef<{
1400
+ validate(): any;
1401
+ resetFields(): any;
1402
+ }> & {} & vue.ComponentCustomProperties & {} & {
1403
+ $slots: {
1404
+ default?(_: {}): any;
1405
+ };
1406
+ }) | null;
1407
+ }, any, vue.ComponentProvideOptions, {
1408
+ P: {};
1409
+ B: {};
1410
+ D: {};
1411
+ C: {};
1412
+ M: {};
1413
+ Defaults: {};
1414
+ }, Readonly<{
1415
+ config: FormConfig;
1416
+ initValues: Record<string, any>;
1417
+ lastValues?: Record<string, any>;
1418
+ isCompare?: boolean;
1419
+ parentValues?: Record<string, any>;
1420
+ labelWidth?: string;
1421
+ disabled?: boolean;
1422
+ height?: string;
1423
+ stepActive?: string | number;
1424
+ size?: "small" | "default" | "large";
1425
+ inline?: boolean;
1426
+ labelPosition?: string;
1427
+ keyProp?: string;
1428
+ popperClass?: string;
1429
+ preventSubmitDefault?: boolean;
1430
+ extendState?: (state: _tmagic_editor.FormState) => Record<string, any> | Promise<Record<string, any>>;
1431
+ }> & Readonly<{
1432
+ onChange?: ((...args: any[]) => any) | undefined;
1433
+ onError?: ((...args: any[]) => any) | undefined;
1434
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
1435
+ "onField-change"?: ((...args: any[]) => any) | undefined;
1436
+ "onField-input"?: ((...args: any[]) => any) | undefined;
1437
+ }>, {
1438
+ values: vue.Ref<FormValue, FormValue>;
1439
+ lastValuesProcessed: vue.Ref<FormValue, FormValue>;
1440
+ formState: _tmagic_editor.FormState;
1441
+ initialized: vue.Ref<boolean, boolean>;
1442
+ changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
1443
+ changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
1444
+ resetForm: () => void;
1445
+ submitForm: (native?: boolean) => Promise<any>;
1446
+ }, {}, {}, {}, {
1447
+ disabled: boolean;
1448
+ labelWidth: string;
1449
+ inline: boolean;
1450
+ labelPosition: string;
1451
+ config: FormConfig;
1452
+ initValues: Record<string, any>;
1453
+ lastValues: Record<string, any>;
1454
+ isCompare: boolean;
1455
+ keyProp: string;
1456
+ parentValues: Record<string, any>;
1457
+ stepActive: string | number;
1458
+ height: string;
1459
+ }> | null;
1460
+ }, any>;
1066
1461
  declare const _default$u: __VLS_WithTemplateSlots$4<typeof __VLS_component$4, __VLS_TemplateResult$4["slots"]>;
1067
1462
 
1068
1463
  type __VLS_WithTemplateSlots$4<T, S> = T & {
@@ -1105,11 +1500,11 @@ declare function __VLS_template$3(): {
1105
1500
  readonly appendToBody?: boolean | undefined;
1106
1501
  readonly beforeClose?: any;
1107
1502
  readonly title?: string | undefined;
1108
- readonly size?: (string | number) | undefined;
1503
+ readonly size?: string | number | undefined;
1109
1504
  readonly fullscreen?: boolean | undefined;
1110
1505
  readonly closeOnClickModal?: boolean | undefined;
1111
1506
  readonly closeOnPressEscape?: boolean | undefined;
1112
- readonly direction?: ("rtl" | "ltr" | "ttb" | "bt") | undefined;
1507
+ readonly direction?: "rtl" | "ltr" | "ttb" | "bt" | undefined;
1113
1508
  readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1114
1509
  readonly onClose?: ((...args: any[]) => any) | undefined;
1115
1510
  readonly onOpen?: ((...args: any[]) => any) | undefined;
@@ -1121,6 +1516,8 @@ declare function __VLS_template$3(): {
1121
1516
  };
1122
1517
  $refs: {
1123
1518
  [x: string]: unknown;
1519
+ } & {
1520
+ drawer: unknown;
1124
1521
  };
1125
1522
  $slots: Readonly<{
1126
1523
  [name: string]: vue.Slot<any> | undefined;
@@ -1231,7 +1628,65 @@ declare function __VLS_template$3(): {
1231
1628
  parentValues: Record<string, any>;
1232
1629
  stepActive: string | number;
1233
1630
  height: string;
1234
- }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
1631
+ }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
1632
+ tMagicForm: ({
1633
+ $: vue.ComponentInternalInstance;
1634
+ $data: {};
1635
+ $props: {
1636
+ readonly model?: any;
1637
+ readonly labelWidth?: string | number | undefined;
1638
+ readonly disabled?: boolean | undefined;
1639
+ readonly inline?: boolean | undefined;
1640
+ readonly labelPosition?: string | undefined;
1641
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
1642
+ $attrs: {
1643
+ [x: string]: unknown;
1644
+ };
1645
+ $refs: {
1646
+ [x: string]: unknown;
1647
+ } & {
1648
+ form: unknown;
1649
+ };
1650
+ $slots: Readonly<{
1651
+ [name: string]: vue.Slot<any> | undefined;
1652
+ }>;
1653
+ $root: vue.ComponentPublicInstance | null;
1654
+ $parent: vue.ComponentPublicInstance | null;
1655
+ $host: Element | null;
1656
+ $emit: (event: string, ...args: any[]) => void;
1657
+ $el: any;
1658
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.FormProps> & Readonly<{}>, {
1659
+ validate(): any;
1660
+ resetFields(): any;
1661
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
1662
+ beforeCreate?: (() => void) | (() => void)[];
1663
+ created?: (() => void) | (() => void)[];
1664
+ beforeMount?: (() => void) | (() => void)[];
1665
+ mounted?: (() => void) | (() => void)[];
1666
+ beforeUpdate?: (() => void) | (() => void)[];
1667
+ updated?: (() => void) | (() => void)[];
1668
+ activated?: (() => void) | (() => void)[];
1669
+ deactivated?: (() => void) | (() => void)[];
1670
+ beforeDestroy?: (() => void) | (() => void)[];
1671
+ beforeUnmount?: (() => void) | (() => void)[];
1672
+ destroyed?: (() => void) | (() => void)[];
1673
+ unmounted?: (() => void) | (() => void)[];
1674
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
1675
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
1676
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
1677
+ };
1678
+ $forceUpdate: () => void;
1679
+ $nextTick: typeof vue.nextTick;
1680
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
1681
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.FormProps> & Readonly<{}>, "validate" | "resetFields"> & vue.ShallowUnwrapRef<{
1682
+ validate(): any;
1683
+ resetFields(): any;
1684
+ }> & {} & vue.ComponentCustomProperties & {} & {
1685
+ $slots: {
1686
+ default?(_: {}): any;
1687
+ };
1688
+ }) | null;
1689
+ }, any, vue.ComponentProvideOptions, {
1235
1690
  P: {};
1236
1691
  B: {};
1237
1692
  D: {};
@@ -1340,31 +1795,89 @@ declare const __VLS_component$3: vue.DefineComponent<__VLS_Props$s, {
1340
1795
  parentValues: Record<string, any>;
1341
1796
  stepActive: string | number;
1342
1797
  height: string;
1343
- }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
1344
- P: {};
1345
- B: {};
1346
- D: {};
1347
- C: {};
1348
- M: {};
1349
- Defaults: {};
1350
- }, Readonly<{
1351
- config: FormConfig;
1352
- initValues: Record<string, any>;
1353
- lastValues?: Record<string, any>;
1354
- isCompare?: boolean;
1355
- parentValues?: Record<string, any>;
1356
- labelWidth?: string;
1357
- disabled?: boolean;
1358
- height?: string;
1359
- stepActive?: string | number;
1360
- size?: "small" | "default" | "large";
1361
- inline?: boolean;
1362
- labelPosition?: string;
1363
- keyProp?: string;
1364
- popperClass?: string;
1365
- preventSubmitDefault?: boolean;
1366
- extendState?: (state: _tmagic_editor.FormState) => Record<string, any> | Promise<Record<string, any>>;
1367
- }> & Readonly<{
1798
+ }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
1799
+ tMagicForm: ({
1800
+ $: vue.ComponentInternalInstance;
1801
+ $data: {};
1802
+ $props: {
1803
+ readonly model?: any;
1804
+ readonly labelWidth?: string | number | undefined;
1805
+ readonly disabled?: boolean | undefined;
1806
+ readonly inline?: boolean | undefined;
1807
+ readonly labelPosition?: string | undefined;
1808
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
1809
+ $attrs: {
1810
+ [x: string]: unknown;
1811
+ };
1812
+ $refs: {
1813
+ [x: string]: unknown;
1814
+ } & {
1815
+ form: unknown;
1816
+ };
1817
+ $slots: Readonly<{
1818
+ [name: string]: vue.Slot<any> | undefined;
1819
+ }>;
1820
+ $root: vue.ComponentPublicInstance | null;
1821
+ $parent: vue.ComponentPublicInstance | null;
1822
+ $host: Element | null;
1823
+ $emit: (event: string, ...args: any[]) => void;
1824
+ $el: any;
1825
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.FormProps> & Readonly<{}>, {
1826
+ validate(): any;
1827
+ resetFields(): any;
1828
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
1829
+ beforeCreate?: (() => void) | (() => void)[];
1830
+ created?: (() => void) | (() => void)[];
1831
+ beforeMount?: (() => void) | (() => void)[];
1832
+ mounted?: (() => void) | (() => void)[];
1833
+ beforeUpdate?: (() => void) | (() => void)[];
1834
+ updated?: (() => void) | (() => void)[];
1835
+ activated?: (() => void) | (() => void)[];
1836
+ deactivated?: (() => void) | (() => void)[];
1837
+ beforeDestroy?: (() => void) | (() => void)[];
1838
+ beforeUnmount?: (() => void) | (() => void)[];
1839
+ destroyed?: (() => void) | (() => void)[];
1840
+ unmounted?: (() => void) | (() => void)[];
1841
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
1842
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
1843
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
1844
+ };
1845
+ $forceUpdate: () => void;
1846
+ $nextTick: typeof vue.nextTick;
1847
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
1848
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.FormProps> & Readonly<{}>, "validate" | "resetFields"> & vue.ShallowUnwrapRef<{
1849
+ validate(): any;
1850
+ resetFields(): any;
1851
+ }> & {} & vue.ComponentCustomProperties & {} & {
1852
+ $slots: {
1853
+ default?(_: {}): any;
1854
+ };
1855
+ }) | null;
1856
+ }, any, vue.ComponentProvideOptions, {
1857
+ P: {};
1858
+ B: {};
1859
+ D: {};
1860
+ C: {};
1861
+ M: {};
1862
+ Defaults: {};
1863
+ }, Readonly<{
1864
+ config: FormConfig;
1865
+ initValues: Record<string, any>;
1866
+ lastValues?: Record<string, any>;
1867
+ isCompare?: boolean;
1868
+ parentValues?: Record<string, any>;
1869
+ labelWidth?: string;
1870
+ disabled?: boolean;
1871
+ height?: string;
1872
+ stepActive?: string | number;
1873
+ size?: "small" | "default" | "large";
1874
+ inline?: boolean;
1875
+ labelPosition?: string;
1876
+ keyProp?: string;
1877
+ popperClass?: string;
1878
+ preventSubmitDefault?: boolean;
1879
+ extendState?: (state: _tmagic_editor.FormState) => Record<string, any> | Promise<Record<string, any>>;
1880
+ }> & Readonly<{
1368
1881
  onChange?: ((...args: any[]) => any) | undefined;
1369
1882
  onError?: ((...args: any[]) => any) | undefined;
1370
1883
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
@@ -1443,7 +1956,65 @@ declare const __VLS_component$3: vue.DefineComponent<__VLS_Props$s, {
1443
1956
  parentValues: Record<string, any>;
1444
1957
  stepActive: string | number;
1445
1958
  height: string;
1446
- }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
1959
+ }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
1960
+ tMagicForm: ({
1961
+ $: vue.ComponentInternalInstance;
1962
+ $data: {};
1963
+ $props: {
1964
+ readonly model?: any;
1965
+ readonly labelWidth?: string | number | undefined;
1966
+ readonly disabled?: boolean | undefined;
1967
+ readonly inline?: boolean | undefined;
1968
+ readonly labelPosition?: string | undefined;
1969
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
1970
+ $attrs: {
1971
+ [x: string]: unknown;
1972
+ };
1973
+ $refs: {
1974
+ [x: string]: unknown;
1975
+ } & {
1976
+ form: unknown;
1977
+ };
1978
+ $slots: Readonly<{
1979
+ [name: string]: vue.Slot<any> | undefined;
1980
+ }>;
1981
+ $root: vue.ComponentPublicInstance | null;
1982
+ $parent: vue.ComponentPublicInstance | null;
1983
+ $host: Element | null;
1984
+ $emit: (event: string, ...args: any[]) => void;
1985
+ $el: any;
1986
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.FormProps> & Readonly<{}>, {
1987
+ validate(): any;
1988
+ resetFields(): any;
1989
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
1990
+ beforeCreate?: (() => void) | (() => void)[];
1991
+ created?: (() => void) | (() => void)[];
1992
+ beforeMount?: (() => void) | (() => void)[];
1993
+ mounted?: (() => void) | (() => void)[];
1994
+ beforeUpdate?: (() => void) | (() => void)[];
1995
+ updated?: (() => void) | (() => void)[];
1996
+ activated?: (() => void) | (() => void)[];
1997
+ deactivated?: (() => void) | (() => void)[];
1998
+ beforeDestroy?: (() => void) | (() => void)[];
1999
+ beforeUnmount?: (() => void) | (() => void)[];
2000
+ destroyed?: (() => void) | (() => void)[];
2001
+ unmounted?: (() => void) | (() => void)[];
2002
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
2003
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
2004
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
2005
+ };
2006
+ $forceUpdate: () => void;
2007
+ $nextTick: typeof vue.nextTick;
2008
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
2009
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.FormProps> & Readonly<{}>, "validate" | "resetFields"> & vue.ShallowUnwrapRef<{
2010
+ validate(): any;
2011
+ resetFields(): any;
2012
+ }> & {} & vue.ComponentCustomProperties & {} & {
2013
+ $slots: {
2014
+ default?(_: {}): any;
2015
+ };
2016
+ }) | null;
2017
+ }, any, vue.ComponentProvideOptions, {
1447
2018
  P: {};
1448
2019
  B: {};
1449
2020
  D: {};
@@ -1522,147 +2093,93 @@ declare const __VLS_component$3: vue.DefineComponent<__VLS_Props$s, {
1522
2093
  closeOnPressEscape: boolean;
1523
2094
  config: FormConfig;
1524
2095
  confirmText: string;
1525
- }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
1526
- declare const _default$t: __VLS_WithTemplateSlots$3<typeof __VLS_component$3, __VLS_TemplateResult$3["slots"]>;
1527
-
1528
- type __VLS_WithTemplateSlots$3<T, S> = T & {
1529
- new (): {
1530
- $slots: S;
1531
- };
1532
- };
1533
-
1534
- type __VLS_Props$r = {
1535
- config?: FormConfig;
1536
- values?: Object;
1537
- parentValues?: Object;
1538
- width?: number;
1539
- height?: number;
1540
- labelWidth?: string;
1541
- disabled?: boolean;
1542
- size?: 'small' | 'default' | 'large';
1543
- confirmText?: string;
1544
- inline?: boolean;
1545
- labelPosition?: string;
1546
- preventSubmitDefault?: boolean;
1547
- };
1548
- declare function __VLS_template$2(): {
1549
- attrs: Partial<{}>;
1550
- slots: {
1551
- default?(_: {}): any;
1552
- left?(_: {}): any;
1553
- footer?(_: {}): any;
1554
- };
1555
- refs: {
1556
- form: vue.CreateComponentPublicInstanceWithMixins<Readonly<{
1557
- config: FormConfig;
1558
- initValues: Record<string, any>;
1559
- lastValues?: Record<string, any>;
1560
- isCompare?: boolean;
1561
- parentValues?: Record<string, any>;
1562
- labelWidth?: string;
1563
- disabled?: boolean;
1564
- height?: string;
1565
- stepActive?: string | number;
1566
- size?: "small" | "default" | "large";
1567
- inline?: boolean;
1568
- labelPosition?: string;
1569
- keyProp?: string;
1570
- popperClass?: string;
1571
- preventSubmitDefault?: boolean;
1572
- extendState?: (state: _tmagic_editor.FormState) => Record<string, any> | Promise<Record<string, any>>;
1573
- }> & Readonly<{
1574
- onChange?: ((...args: any[]) => any) | undefined;
1575
- onError?: ((...args: any[]) => any) | undefined;
1576
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
1577
- "onField-change"?: ((...args: any[]) => any) | undefined;
1578
- "onField-input"?: ((...args: any[]) => any) | undefined;
2096
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {
2097
+ drawer: ({
2098
+ $: vue.ComponentInternalInstance;
2099
+ $data: {};
2100
+ $props: {
2101
+ readonly modelValue?: boolean | undefined;
2102
+ readonly appendToBody?: boolean | undefined;
2103
+ readonly beforeClose?: any;
2104
+ readonly title?: string | undefined;
2105
+ readonly size?: string | number | undefined;
2106
+ readonly fullscreen?: boolean | undefined;
2107
+ readonly closeOnClickModal?: boolean | undefined;
2108
+ readonly closeOnPressEscape?: boolean | undefined;
2109
+ readonly direction?: "rtl" | "ltr" | "ttb" | "bt" | undefined;
2110
+ readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2111
+ readonly onClose?: ((...args: any[]) => any) | undefined;
2112
+ readonly onOpen?: ((...args: any[]) => any) | undefined;
2113
+ readonly onOpened?: ((...args: any[]) => any) | undefined;
2114
+ readonly onClosed?: ((...args: any[]) => any) | undefined;
2115
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
2116
+ $attrs: {
2117
+ [x: string]: unknown;
2118
+ };
2119
+ $refs: {
2120
+ [x: string]: unknown;
2121
+ } & {
2122
+ drawer: unknown;
2123
+ };
2124
+ $slots: Readonly<{
2125
+ [name: string]: vue.Slot<any> | undefined;
2126
+ }>;
2127
+ $root: vue.ComponentPublicInstance | null;
2128
+ $parent: vue.ComponentPublicInstance | null;
2129
+ $host: Element | null;
2130
+ $emit: ((event: "update:modelValue", ...args: any[]) => void) & ((event: "close", ...args: any[]) => void) & ((event: "open", ...args: any[]) => void) & ((event: "opened", ...args: any[]) => void) & ((event: "closed", ...args: any[]) => void);
2131
+ $el: any;
2132
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.DrawerProps> & Readonly<{
2133
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2134
+ onClose?: ((...args: any[]) => any) | undefined;
2135
+ onOpen?: ((...args: any[]) => any) | undefined;
2136
+ onOpened?: ((...args: any[]) => any) | undefined;
2137
+ onClosed?: ((...args: any[]) => any) | undefined;
1579
2138
  }>, {
1580
- values: vue.Ref<FormValue, FormValue>;
1581
- lastValuesProcessed: vue.Ref<FormValue, FormValue>;
1582
- formState: _tmagic_editor.FormState;
1583
- initialized: vue.Ref<boolean, boolean>;
1584
- changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
1585
- changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
1586
- resetForm: () => void;
1587
- submitForm: (native?: boolean) => Promise<any>;
2139
+ handleClose: () => any;
1588
2140
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
1589
- change: (...args: any[]) => void;
1590
- error: (...args: any[]) => void;
1591
- "update:stepActive": (...args: any[]) => void;
1592
- "field-change": (...args: any[]) => void;
1593
- "field-input": (...args: any[]) => void;
1594
- }, vue.PublicProps, {
1595
- disabled: boolean;
1596
- labelWidth: string;
1597
- inline: boolean;
1598
- labelPosition: string;
1599
- config: FormConfig;
1600
- initValues: Record<string, any>;
1601
- lastValues: Record<string, any>;
1602
- isCompare: boolean;
1603
- keyProp: string;
1604
- parentValues: Record<string, any>;
1605
- stepActive: string | number;
1606
- height: string;
1607
- }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
1608
- P: {};
1609
- B: {};
1610
- D: {};
1611
- C: {};
1612
- M: {};
1613
- Defaults: {};
1614
- }, Readonly<{
1615
- config: FormConfig;
1616
- initValues: Record<string, any>;
1617
- lastValues?: Record<string, any>;
1618
- isCompare?: boolean;
1619
- parentValues?: Record<string, any>;
1620
- labelWidth?: string;
1621
- disabled?: boolean;
1622
- height?: string;
1623
- stepActive?: string | number;
1624
- size?: "small" | "default" | "large";
1625
- inline?: boolean;
1626
- labelPosition?: string;
1627
- keyProp?: string;
1628
- popperClass?: string;
1629
- preventSubmitDefault?: boolean;
1630
- extendState?: (state: _tmagic_editor.FormState) => Record<string, any> | Promise<Record<string, any>>;
1631
- }> & Readonly<{
1632
- onChange?: ((...args: any[]) => any) | undefined;
1633
- onError?: ((...args: any[]) => any) | undefined;
1634
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
1635
- "onField-change"?: ((...args: any[]) => any) | undefined;
1636
- "onField-input"?: ((...args: any[]) => any) | undefined;
1637
- }>, {
1638
- values: vue.Ref<FormValue, FormValue>;
1639
- lastValuesProcessed: vue.Ref<FormValue, FormValue>;
1640
- formState: _tmagic_editor.FormState;
1641
- initialized: vue.Ref<boolean, boolean>;
1642
- changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
1643
- changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
1644
- resetForm: () => void;
1645
- submitForm: (native?: boolean) => Promise<any>;
1646
- }, {}, {}, {}, {
1647
- disabled: boolean;
1648
- labelWidth: string;
1649
- inline: boolean;
1650
- labelPosition: string;
1651
- config: FormConfig;
1652
- initValues: Record<string, any>;
1653
- lastValues: Record<string, any>;
1654
- isCompare: boolean;
1655
- keyProp: string;
1656
- parentValues: Record<string, any>;
1657
- stepActive: string | number;
1658
- height: string;
1659
- }> | null;
1660
- };
1661
- rootEl: HTMLDivElement;
1662
- };
1663
- type __VLS_TemplateResult$2 = ReturnType<typeof __VLS_template$2>;
1664
- declare const __VLS_component$2: vue.DefineComponent<__VLS_Props$r, {
1665
- form: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readonly<{
2141
+ "update:modelValue": (...args: any[]) => void;
2142
+ close: (...args: any[]) => void;
2143
+ open: (...args: any[]) => void;
2144
+ opened: (...args: any[]) => void;
2145
+ closed: (...args: any[]) => void;
2146
+ }, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
2147
+ beforeCreate?: (() => void) | (() => void)[];
2148
+ created?: (() => void) | (() => void)[];
2149
+ beforeMount?: (() => void) | (() => void)[];
2150
+ mounted?: (() => void) | (() => void)[];
2151
+ beforeUpdate?: (() => void) | (() => void)[];
2152
+ updated?: (() => void) | (() => void)[];
2153
+ activated?: (() => void) | (() => void)[];
2154
+ deactivated?: (() => void) | (() => void)[];
2155
+ beforeDestroy?: (() => void) | (() => void)[];
2156
+ beforeUnmount?: (() => void) | (() => void)[];
2157
+ destroyed?: (() => void) | (() => void)[];
2158
+ unmounted?: (() => void) | (() => void)[];
2159
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
2160
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
2161
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
2162
+ };
2163
+ $forceUpdate: () => void;
2164
+ $nextTick: typeof vue.nextTick;
2165
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
2166
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.DrawerProps> & Readonly<{
2167
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2168
+ onClose?: ((...args: any[]) => any) | undefined;
2169
+ onOpen?: ((...args: any[]) => any) | undefined;
2170
+ onOpened?: ((...args: any[]) => any) | undefined;
2171
+ onClosed?: ((...args: any[]) => any) | undefined;
2172
+ }>, "handleClose"> & vue.ShallowUnwrapRef<{
2173
+ handleClose: () => any;
2174
+ }> & {} & vue.ComponentCustomProperties & {} & {
2175
+ $slots: {
2176
+ default?(_: {}): any;
2177
+ header?(_: {}): any;
2178
+ footer?(_: {}): any;
2179
+ };
2180
+ }) | null;
2181
+ drawerBody: HTMLDivElement;
2182
+ form: vue.CreateComponentPublicInstanceWithMixins<Readonly<{
1666
2183
  config: FormConfig;
1667
2184
  initValues: Record<string, any>;
1668
2185
  lastValues?: Record<string, any>;
@@ -1713,9 +2230,427 @@ declare const __VLS_component$2: vue.DefineComponent<__VLS_Props$r, {
1713
2230
  parentValues: Record<string, any>;
1714
2231
  stepActive: string | number;
1715
2232
  height: string;
1716
- }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
1717
- P: {};
1718
- B: {};
2233
+ }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
2234
+ tMagicForm: ({
2235
+ $: vue.ComponentInternalInstance;
2236
+ $data: {};
2237
+ $props: {
2238
+ readonly model?: any;
2239
+ readonly labelWidth?: string | number | undefined;
2240
+ readonly disabled?: boolean | undefined;
2241
+ readonly inline?: boolean | undefined;
2242
+ readonly labelPosition?: string | undefined;
2243
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
2244
+ $attrs: {
2245
+ [x: string]: unknown;
2246
+ };
2247
+ $refs: {
2248
+ [x: string]: unknown;
2249
+ } & {
2250
+ form: unknown;
2251
+ };
2252
+ $slots: Readonly<{
2253
+ [name: string]: vue.Slot<any> | undefined;
2254
+ }>;
2255
+ $root: vue.ComponentPublicInstance | null;
2256
+ $parent: vue.ComponentPublicInstance | null;
2257
+ $host: Element | null;
2258
+ $emit: (event: string, ...args: any[]) => void;
2259
+ $el: any;
2260
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.FormProps> & Readonly<{}>, {
2261
+ validate(): any;
2262
+ resetFields(): any;
2263
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
2264
+ beforeCreate?: (() => void) | (() => void)[];
2265
+ created?: (() => void) | (() => void)[];
2266
+ beforeMount?: (() => void) | (() => void)[];
2267
+ mounted?: (() => void) | (() => void)[];
2268
+ beforeUpdate?: (() => void) | (() => void)[];
2269
+ updated?: (() => void) | (() => void)[];
2270
+ activated?: (() => void) | (() => void)[];
2271
+ deactivated?: (() => void) | (() => void)[];
2272
+ beforeDestroy?: (() => void) | (() => void)[];
2273
+ beforeUnmount?: (() => void) | (() => void)[];
2274
+ destroyed?: (() => void) | (() => void)[];
2275
+ unmounted?: (() => void) | (() => void)[];
2276
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
2277
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
2278
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
2279
+ };
2280
+ $forceUpdate: () => void;
2281
+ $nextTick: typeof vue.nextTick;
2282
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
2283
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.FormProps> & Readonly<{}>, "validate" | "resetFields"> & vue.ShallowUnwrapRef<{
2284
+ validate(): any;
2285
+ resetFields(): any;
2286
+ }> & {} & vue.ComponentCustomProperties & {} & {
2287
+ $slots: {
2288
+ default?(_: {}): any;
2289
+ };
2290
+ }) | null;
2291
+ }, any, vue.ComponentProvideOptions, {
2292
+ P: {};
2293
+ B: {};
2294
+ D: {};
2295
+ C: {};
2296
+ M: {};
2297
+ Defaults: {};
2298
+ }, Readonly<{
2299
+ config: FormConfig;
2300
+ initValues: Record<string, any>;
2301
+ lastValues?: Record<string, any>;
2302
+ isCompare?: boolean;
2303
+ parentValues?: Record<string, any>;
2304
+ labelWidth?: string;
2305
+ disabled?: boolean;
2306
+ height?: string;
2307
+ stepActive?: string | number;
2308
+ size?: "small" | "default" | "large";
2309
+ inline?: boolean;
2310
+ labelPosition?: string;
2311
+ keyProp?: string;
2312
+ popperClass?: string;
2313
+ preventSubmitDefault?: boolean;
2314
+ extendState?: (state: _tmagic_editor.FormState) => Record<string, any> | Promise<Record<string, any>>;
2315
+ }> & Readonly<{
2316
+ onChange?: ((...args: any[]) => any) | undefined;
2317
+ onError?: ((...args: any[]) => any) | undefined;
2318
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
2319
+ "onField-change"?: ((...args: any[]) => any) | undefined;
2320
+ "onField-input"?: ((...args: any[]) => any) | undefined;
2321
+ }>, {
2322
+ values: vue.Ref<FormValue, FormValue>;
2323
+ lastValuesProcessed: vue.Ref<FormValue, FormValue>;
2324
+ formState: _tmagic_editor.FormState;
2325
+ initialized: vue.Ref<boolean, boolean>;
2326
+ changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
2327
+ changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
2328
+ resetForm: () => void;
2329
+ submitForm: (native?: boolean) => Promise<any>;
2330
+ }, {}, {}, {}, {
2331
+ disabled: boolean;
2332
+ labelWidth: string;
2333
+ inline: boolean;
2334
+ labelPosition: string;
2335
+ config: FormConfig;
2336
+ initValues: Record<string, any>;
2337
+ lastValues: Record<string, any>;
2338
+ isCompare: boolean;
2339
+ keyProp: string;
2340
+ parentValues: Record<string, any>;
2341
+ stepActive: string | number;
2342
+ height: string;
2343
+ }> | null;
2344
+ }, any>;
2345
+ declare const _default$t: __VLS_WithTemplateSlots$3<typeof __VLS_component$3, __VLS_TemplateResult$3["slots"]>;
2346
+
2347
+ type __VLS_WithTemplateSlots$3<T, S> = T & {
2348
+ new (): {
2349
+ $slots: S;
2350
+ };
2351
+ };
2352
+
2353
+ type __VLS_Props$r = {
2354
+ config?: FormConfig;
2355
+ values?: Object;
2356
+ parentValues?: Object;
2357
+ width?: number;
2358
+ height?: number;
2359
+ labelWidth?: string;
2360
+ disabled?: boolean;
2361
+ size?: 'small' | 'default' | 'large';
2362
+ confirmText?: string;
2363
+ inline?: boolean;
2364
+ labelPosition?: string;
2365
+ preventSubmitDefault?: boolean;
2366
+ };
2367
+ declare function __VLS_template$2(): {
2368
+ attrs: Partial<{}>;
2369
+ slots: {
2370
+ default?(_: {}): any;
2371
+ left?(_: {}): any;
2372
+ footer?(_: {}): any;
2373
+ };
2374
+ refs: {
2375
+ form: vue.CreateComponentPublicInstanceWithMixins<Readonly<{
2376
+ config: FormConfig;
2377
+ initValues: Record<string, any>;
2378
+ lastValues?: Record<string, any>;
2379
+ isCompare?: boolean;
2380
+ parentValues?: Record<string, any>;
2381
+ labelWidth?: string;
2382
+ disabled?: boolean;
2383
+ height?: string;
2384
+ stepActive?: string | number;
2385
+ size?: "small" | "default" | "large";
2386
+ inline?: boolean;
2387
+ labelPosition?: string;
2388
+ keyProp?: string;
2389
+ popperClass?: string;
2390
+ preventSubmitDefault?: boolean;
2391
+ extendState?: (state: _tmagic_editor.FormState) => Record<string, any> | Promise<Record<string, any>>;
2392
+ }> & Readonly<{
2393
+ onChange?: ((...args: any[]) => any) | undefined;
2394
+ onError?: ((...args: any[]) => any) | undefined;
2395
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
2396
+ "onField-change"?: ((...args: any[]) => any) | undefined;
2397
+ "onField-input"?: ((...args: any[]) => any) | undefined;
2398
+ }>, {
2399
+ values: vue.Ref<FormValue, FormValue>;
2400
+ lastValuesProcessed: vue.Ref<FormValue, FormValue>;
2401
+ formState: _tmagic_editor.FormState;
2402
+ initialized: vue.Ref<boolean, boolean>;
2403
+ changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
2404
+ changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
2405
+ resetForm: () => void;
2406
+ submitForm: (native?: boolean) => Promise<any>;
2407
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
2408
+ change: (...args: any[]) => void;
2409
+ error: (...args: any[]) => void;
2410
+ "update:stepActive": (...args: any[]) => void;
2411
+ "field-change": (...args: any[]) => void;
2412
+ "field-input": (...args: any[]) => void;
2413
+ }, vue.PublicProps, {
2414
+ disabled: boolean;
2415
+ labelWidth: string;
2416
+ inline: boolean;
2417
+ labelPosition: string;
2418
+ config: FormConfig;
2419
+ initValues: Record<string, any>;
2420
+ lastValues: Record<string, any>;
2421
+ isCompare: boolean;
2422
+ keyProp: string;
2423
+ parentValues: Record<string, any>;
2424
+ stepActive: string | number;
2425
+ height: string;
2426
+ }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
2427
+ tMagicForm: ({
2428
+ $: vue.ComponentInternalInstance;
2429
+ $data: {};
2430
+ $props: {
2431
+ readonly model?: any;
2432
+ readonly labelWidth?: string | number | undefined;
2433
+ readonly disabled?: boolean | undefined;
2434
+ readonly inline?: boolean | undefined;
2435
+ readonly labelPosition?: string | undefined;
2436
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
2437
+ $attrs: {
2438
+ [x: string]: unknown;
2439
+ };
2440
+ $refs: {
2441
+ [x: string]: unknown;
2442
+ } & {
2443
+ form: unknown;
2444
+ };
2445
+ $slots: Readonly<{
2446
+ [name: string]: vue.Slot<any> | undefined;
2447
+ }>;
2448
+ $root: vue.ComponentPublicInstance | null;
2449
+ $parent: vue.ComponentPublicInstance | null;
2450
+ $host: Element | null;
2451
+ $emit: (event: string, ...args: any[]) => void;
2452
+ $el: any;
2453
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.FormProps> & Readonly<{}>, {
2454
+ validate(): any;
2455
+ resetFields(): any;
2456
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
2457
+ beforeCreate?: (() => void) | (() => void)[];
2458
+ created?: (() => void) | (() => void)[];
2459
+ beforeMount?: (() => void) | (() => void)[];
2460
+ mounted?: (() => void) | (() => void)[];
2461
+ beforeUpdate?: (() => void) | (() => void)[];
2462
+ updated?: (() => void) | (() => void)[];
2463
+ activated?: (() => void) | (() => void)[];
2464
+ deactivated?: (() => void) | (() => void)[];
2465
+ beforeDestroy?: (() => void) | (() => void)[];
2466
+ beforeUnmount?: (() => void) | (() => void)[];
2467
+ destroyed?: (() => void) | (() => void)[];
2468
+ unmounted?: (() => void) | (() => void)[];
2469
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
2470
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
2471
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
2472
+ };
2473
+ $forceUpdate: () => void;
2474
+ $nextTick: typeof vue.nextTick;
2475
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
2476
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.FormProps> & Readonly<{}>, "validate" | "resetFields"> & vue.ShallowUnwrapRef<{
2477
+ validate(): any;
2478
+ resetFields(): any;
2479
+ }> & {} & vue.ComponentCustomProperties & {} & {
2480
+ $slots: {
2481
+ default?(_: {}): any;
2482
+ };
2483
+ }) | null;
2484
+ }, any, vue.ComponentProvideOptions, {
2485
+ P: {};
2486
+ B: {};
2487
+ D: {};
2488
+ C: {};
2489
+ M: {};
2490
+ Defaults: {};
2491
+ }, Readonly<{
2492
+ config: FormConfig;
2493
+ initValues: Record<string, any>;
2494
+ lastValues?: Record<string, any>;
2495
+ isCompare?: boolean;
2496
+ parentValues?: Record<string, any>;
2497
+ labelWidth?: string;
2498
+ disabled?: boolean;
2499
+ height?: string;
2500
+ stepActive?: string | number;
2501
+ size?: "small" | "default" | "large";
2502
+ inline?: boolean;
2503
+ labelPosition?: string;
2504
+ keyProp?: string;
2505
+ popperClass?: string;
2506
+ preventSubmitDefault?: boolean;
2507
+ extendState?: (state: _tmagic_editor.FormState) => Record<string, any> | Promise<Record<string, any>>;
2508
+ }> & Readonly<{
2509
+ onChange?: ((...args: any[]) => any) | undefined;
2510
+ onError?: ((...args: any[]) => any) | undefined;
2511
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
2512
+ "onField-change"?: ((...args: any[]) => any) | undefined;
2513
+ "onField-input"?: ((...args: any[]) => any) | undefined;
2514
+ }>, {
2515
+ values: vue.Ref<FormValue, FormValue>;
2516
+ lastValuesProcessed: vue.Ref<FormValue, FormValue>;
2517
+ formState: _tmagic_editor.FormState;
2518
+ initialized: vue.Ref<boolean, boolean>;
2519
+ changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
2520
+ changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
2521
+ resetForm: () => void;
2522
+ submitForm: (native?: boolean) => Promise<any>;
2523
+ }, {}, {}, {}, {
2524
+ disabled: boolean;
2525
+ labelWidth: string;
2526
+ inline: boolean;
2527
+ labelPosition: string;
2528
+ config: FormConfig;
2529
+ initValues: Record<string, any>;
2530
+ lastValues: Record<string, any>;
2531
+ isCompare: boolean;
2532
+ keyProp: string;
2533
+ parentValues: Record<string, any>;
2534
+ stepActive: string | number;
2535
+ height: string;
2536
+ }> | null;
2537
+ };
2538
+ rootEl: HTMLDivElement;
2539
+ };
2540
+ type __VLS_TemplateResult$2 = ReturnType<typeof __VLS_template$2>;
2541
+ declare const __VLS_component$2: vue.DefineComponent<__VLS_Props$r, {
2542
+ form: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readonly<{
2543
+ config: FormConfig;
2544
+ initValues: Record<string, any>;
2545
+ lastValues?: Record<string, any>;
2546
+ isCompare?: boolean;
2547
+ parentValues?: Record<string, any>;
2548
+ labelWidth?: string;
2549
+ disabled?: boolean;
2550
+ height?: string;
2551
+ stepActive?: string | number;
2552
+ size?: "small" | "default" | "large";
2553
+ inline?: boolean;
2554
+ labelPosition?: string;
2555
+ keyProp?: string;
2556
+ popperClass?: string;
2557
+ preventSubmitDefault?: boolean;
2558
+ extendState?: (state: _tmagic_editor.FormState) => Record<string, any> | Promise<Record<string, any>>;
2559
+ }> & Readonly<{
2560
+ onChange?: ((...args: any[]) => any) | undefined;
2561
+ onError?: ((...args: any[]) => any) | undefined;
2562
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
2563
+ "onField-change"?: ((...args: any[]) => any) | undefined;
2564
+ "onField-input"?: ((...args: any[]) => any) | undefined;
2565
+ }>, {
2566
+ values: vue.Ref<FormValue, FormValue>;
2567
+ lastValuesProcessed: vue.Ref<FormValue, FormValue>;
2568
+ formState: _tmagic_editor.FormState;
2569
+ initialized: vue.Ref<boolean, boolean>;
2570
+ changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
2571
+ changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
2572
+ resetForm: () => void;
2573
+ submitForm: (native?: boolean) => Promise<any>;
2574
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
2575
+ change: (...args: any[]) => void;
2576
+ error: (...args: any[]) => void;
2577
+ "update:stepActive": (...args: any[]) => void;
2578
+ "field-change": (...args: any[]) => void;
2579
+ "field-input": (...args: any[]) => void;
2580
+ }, vue.PublicProps, {
2581
+ disabled: boolean;
2582
+ labelWidth: string;
2583
+ inline: boolean;
2584
+ labelPosition: string;
2585
+ config: FormConfig;
2586
+ initValues: Record<string, any>;
2587
+ lastValues: Record<string, any>;
2588
+ isCompare: boolean;
2589
+ keyProp: string;
2590
+ parentValues: Record<string, any>;
2591
+ stepActive: string | number;
2592
+ height: string;
2593
+ }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
2594
+ tMagicForm: ({
2595
+ $: vue.ComponentInternalInstance;
2596
+ $data: {};
2597
+ $props: {
2598
+ readonly model?: any;
2599
+ readonly labelWidth?: string | number | undefined;
2600
+ readonly disabled?: boolean | undefined;
2601
+ readonly inline?: boolean | undefined;
2602
+ readonly labelPosition?: string | undefined;
2603
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
2604
+ $attrs: {
2605
+ [x: string]: unknown;
2606
+ };
2607
+ $refs: {
2608
+ [x: string]: unknown;
2609
+ } & {
2610
+ form: unknown;
2611
+ };
2612
+ $slots: Readonly<{
2613
+ [name: string]: vue.Slot<any> | undefined;
2614
+ }>;
2615
+ $root: vue.ComponentPublicInstance | null;
2616
+ $parent: vue.ComponentPublicInstance | null;
2617
+ $host: Element | null;
2618
+ $emit: (event: string, ...args: any[]) => void;
2619
+ $el: any;
2620
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.FormProps> & Readonly<{}>, {
2621
+ validate(): any;
2622
+ resetFields(): any;
2623
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
2624
+ beforeCreate?: (() => void) | (() => void)[];
2625
+ created?: (() => void) | (() => void)[];
2626
+ beforeMount?: (() => void) | (() => void)[];
2627
+ mounted?: (() => void) | (() => void)[];
2628
+ beforeUpdate?: (() => void) | (() => void)[];
2629
+ updated?: (() => void) | (() => void)[];
2630
+ activated?: (() => void) | (() => void)[];
2631
+ deactivated?: (() => void) | (() => void)[];
2632
+ beforeDestroy?: (() => void) | (() => void)[];
2633
+ beforeUnmount?: (() => void) | (() => void)[];
2634
+ destroyed?: (() => void) | (() => void)[];
2635
+ unmounted?: (() => void) | (() => void)[];
2636
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
2637
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
2638
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
2639
+ };
2640
+ $forceUpdate: () => void;
2641
+ $nextTick: typeof vue.nextTick;
2642
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
2643
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.FormProps> & Readonly<{}>, "validate" | "resetFields"> & vue.ShallowUnwrapRef<{
2644
+ validate(): any;
2645
+ resetFields(): any;
2646
+ }> & {} & vue.ComponentCustomProperties & {} & {
2647
+ $slots: {
2648
+ default?(_: {}): any;
2649
+ };
2650
+ }) | null;
2651
+ }, any, vue.ComponentProvideOptions, {
2652
+ P: {};
2653
+ B: {};
1719
2654
  D: {};
1720
2655
  C: {};
1721
2656
  M: {};
@@ -1816,7 +2751,65 @@ declare const __VLS_component$2: vue.DefineComponent<__VLS_Props$r, {
1816
2751
  parentValues: Record<string, any>;
1817
2752
  stepActive: string | number;
1818
2753
  height: string;
1819
- }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
2754
+ }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
2755
+ tMagicForm: ({
2756
+ $: vue.ComponentInternalInstance;
2757
+ $data: {};
2758
+ $props: {
2759
+ readonly model?: any;
2760
+ readonly labelWidth?: string | number | undefined;
2761
+ readonly disabled?: boolean | undefined;
2762
+ readonly inline?: boolean | undefined;
2763
+ readonly labelPosition?: string | undefined;
2764
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
2765
+ $attrs: {
2766
+ [x: string]: unknown;
2767
+ };
2768
+ $refs: {
2769
+ [x: string]: unknown;
2770
+ } & {
2771
+ form: unknown;
2772
+ };
2773
+ $slots: Readonly<{
2774
+ [name: string]: vue.Slot<any> | undefined;
2775
+ }>;
2776
+ $root: vue.ComponentPublicInstance | null;
2777
+ $parent: vue.ComponentPublicInstance | null;
2778
+ $host: Element | null;
2779
+ $emit: (event: string, ...args: any[]) => void;
2780
+ $el: any;
2781
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.FormProps> & Readonly<{}>, {
2782
+ validate(): any;
2783
+ resetFields(): any;
2784
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
2785
+ beforeCreate?: (() => void) | (() => void)[];
2786
+ created?: (() => void) | (() => void)[];
2787
+ beforeMount?: (() => void) | (() => void)[];
2788
+ mounted?: (() => void) | (() => void)[];
2789
+ beforeUpdate?: (() => void) | (() => void)[];
2790
+ updated?: (() => void) | (() => void)[];
2791
+ activated?: (() => void) | (() => void)[];
2792
+ deactivated?: (() => void) | (() => void)[];
2793
+ beforeDestroy?: (() => void) | (() => void)[];
2794
+ beforeUnmount?: (() => void) | (() => void)[];
2795
+ destroyed?: (() => void) | (() => void)[];
2796
+ unmounted?: (() => void) | (() => void)[];
2797
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
2798
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
2799
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
2800
+ };
2801
+ $forceUpdate: () => void;
2802
+ $nextTick: typeof vue.nextTick;
2803
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
2804
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.FormProps> & Readonly<{}>, "validate" | "resetFields"> & vue.ShallowUnwrapRef<{
2805
+ validate(): any;
2806
+ resetFields(): any;
2807
+ }> & {} & vue.ComponentCustomProperties & {} & {
2808
+ $slots: {
2809
+ default?(_: {}): any;
2810
+ };
2811
+ }) | null;
2812
+ }, any, vue.ComponentProvideOptions, {
1820
2813
  P: {};
1821
2814
  B: {};
1822
2815
  D: {};
@@ -1884,7 +2877,170 @@ declare const __VLS_component$2: vue.DefineComponent<__VLS_Props$r, {
1884
2877
  values: Object;
1885
2878
  config: FormConfig;
1886
2879
  confirmText: string;
1887
- }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLDivElement>;
2880
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {
2881
+ form: vue.CreateComponentPublicInstanceWithMixins<Readonly<{
2882
+ config: FormConfig;
2883
+ initValues: Record<string, any>;
2884
+ lastValues?: Record<string, any>;
2885
+ isCompare?: boolean;
2886
+ parentValues?: Record<string, any>;
2887
+ labelWidth?: string;
2888
+ disabled?: boolean;
2889
+ height?: string;
2890
+ stepActive?: string | number;
2891
+ size?: "small" | "default" | "large";
2892
+ inline?: boolean;
2893
+ labelPosition?: string;
2894
+ keyProp?: string;
2895
+ popperClass?: string;
2896
+ preventSubmitDefault?: boolean;
2897
+ extendState?: (state: _tmagic_editor.FormState) => Record<string, any> | Promise<Record<string, any>>;
2898
+ }> & Readonly<{
2899
+ onChange?: ((...args: any[]) => any) | undefined;
2900
+ onError?: ((...args: any[]) => any) | undefined;
2901
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
2902
+ "onField-change"?: ((...args: any[]) => any) | undefined;
2903
+ "onField-input"?: ((...args: any[]) => any) | undefined;
2904
+ }>, {
2905
+ values: vue.Ref<FormValue, FormValue>;
2906
+ lastValuesProcessed: vue.Ref<FormValue, FormValue>;
2907
+ formState: _tmagic_editor.FormState;
2908
+ initialized: vue.Ref<boolean, boolean>;
2909
+ changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
2910
+ changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
2911
+ resetForm: () => void;
2912
+ submitForm: (native?: boolean) => Promise<any>;
2913
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
2914
+ change: (...args: any[]) => void;
2915
+ error: (...args: any[]) => void;
2916
+ "update:stepActive": (...args: any[]) => void;
2917
+ "field-change": (...args: any[]) => void;
2918
+ "field-input": (...args: any[]) => void;
2919
+ }, vue.PublicProps, {
2920
+ disabled: boolean;
2921
+ labelWidth: string;
2922
+ inline: boolean;
2923
+ labelPosition: string;
2924
+ config: FormConfig;
2925
+ initValues: Record<string, any>;
2926
+ lastValues: Record<string, any>;
2927
+ isCompare: boolean;
2928
+ keyProp: string;
2929
+ parentValues: Record<string, any>;
2930
+ stepActive: string | number;
2931
+ height: string;
2932
+ }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
2933
+ tMagicForm: ({
2934
+ $: vue.ComponentInternalInstance;
2935
+ $data: {};
2936
+ $props: {
2937
+ readonly model?: any;
2938
+ readonly labelWidth?: string | number | undefined;
2939
+ readonly disabled?: boolean | undefined;
2940
+ readonly inline?: boolean | undefined;
2941
+ readonly labelPosition?: string | undefined;
2942
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
2943
+ $attrs: {
2944
+ [x: string]: unknown;
2945
+ };
2946
+ $refs: {
2947
+ [x: string]: unknown;
2948
+ } & {
2949
+ form: unknown;
2950
+ };
2951
+ $slots: Readonly<{
2952
+ [name: string]: vue.Slot<any> | undefined;
2953
+ }>;
2954
+ $root: vue.ComponentPublicInstance | null;
2955
+ $parent: vue.ComponentPublicInstance | null;
2956
+ $host: Element | null;
2957
+ $emit: (event: string, ...args: any[]) => void;
2958
+ $el: any;
2959
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.FormProps> & Readonly<{}>, {
2960
+ validate(): any;
2961
+ resetFields(): any;
2962
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
2963
+ beforeCreate?: (() => void) | (() => void)[];
2964
+ created?: (() => void) | (() => void)[];
2965
+ beforeMount?: (() => void) | (() => void)[];
2966
+ mounted?: (() => void) | (() => void)[];
2967
+ beforeUpdate?: (() => void) | (() => void)[];
2968
+ updated?: (() => void) | (() => void)[];
2969
+ activated?: (() => void) | (() => void)[];
2970
+ deactivated?: (() => void) | (() => void)[];
2971
+ beforeDestroy?: (() => void) | (() => void)[];
2972
+ beforeUnmount?: (() => void) | (() => void)[];
2973
+ destroyed?: (() => void) | (() => void)[];
2974
+ unmounted?: (() => void) | (() => void)[];
2975
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
2976
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
2977
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
2978
+ };
2979
+ $forceUpdate: () => void;
2980
+ $nextTick: typeof vue.nextTick;
2981
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
2982
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.FormProps> & Readonly<{}>, "validate" | "resetFields"> & vue.ShallowUnwrapRef<{
2983
+ validate(): any;
2984
+ resetFields(): any;
2985
+ }> & {} & vue.ComponentCustomProperties & {} & {
2986
+ $slots: {
2987
+ default?(_: {}): any;
2988
+ };
2989
+ }) | null;
2990
+ }, any, vue.ComponentProvideOptions, {
2991
+ P: {};
2992
+ B: {};
2993
+ D: {};
2994
+ C: {};
2995
+ M: {};
2996
+ Defaults: {};
2997
+ }, Readonly<{
2998
+ config: FormConfig;
2999
+ initValues: Record<string, any>;
3000
+ lastValues?: Record<string, any>;
3001
+ isCompare?: boolean;
3002
+ parentValues?: Record<string, any>;
3003
+ labelWidth?: string;
3004
+ disabled?: boolean;
3005
+ height?: string;
3006
+ stepActive?: string | number;
3007
+ size?: "small" | "default" | "large";
3008
+ inline?: boolean;
3009
+ labelPosition?: string;
3010
+ keyProp?: string;
3011
+ popperClass?: string;
3012
+ preventSubmitDefault?: boolean;
3013
+ extendState?: (state: _tmagic_editor.FormState) => Record<string, any> | Promise<Record<string, any>>;
3014
+ }> & Readonly<{
3015
+ onChange?: ((...args: any[]) => any) | undefined;
3016
+ onError?: ((...args: any[]) => any) | undefined;
3017
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
3018
+ "onField-change"?: ((...args: any[]) => any) | undefined;
3019
+ "onField-input"?: ((...args: any[]) => any) | undefined;
3020
+ }>, {
3021
+ values: vue.Ref<FormValue, FormValue>;
3022
+ lastValuesProcessed: vue.Ref<FormValue, FormValue>;
3023
+ formState: _tmagic_editor.FormState;
3024
+ initialized: vue.Ref<boolean, boolean>;
3025
+ changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
3026
+ changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
3027
+ resetForm: () => void;
3028
+ submitForm: (native?: boolean) => Promise<any>;
3029
+ }, {}, {}, {}, {
3030
+ disabled: boolean;
3031
+ labelWidth: string;
3032
+ inline: boolean;
3033
+ labelPosition: string;
3034
+ config: FormConfig;
3035
+ initValues: Record<string, any>;
3036
+ lastValues: Record<string, any>;
3037
+ isCompare: boolean;
3038
+ keyProp: string;
3039
+ parentValues: Record<string, any>;
3040
+ stepActive: string | number;
3041
+ height: string;
3042
+ }> | null;
3043
+ }, HTMLDivElement>;
1888
3044
  declare const _default$s: __VLS_WithTemplateSlots$2<typeof __VLS_component$2, __VLS_TemplateResult$2["slots"]>;
1889
3045
 
1890
3046
  type __VLS_WithTemplateSlots$2<T, S> = T & {
@@ -2060,7 +3216,7 @@ declare function __VLS_template(): {
2060
3216
  $props: {
2061
3217
  readonly data?: any[] | undefined;
2062
3218
  readonly border?: boolean | undefined;
2063
- readonly maxHeight?: (number | string) | undefined;
3219
+ readonly maxHeight?: number | string | undefined;
2064
3220
  readonly defaultExpandAll?: boolean | undefined;
2065
3221
  readonly onSelect?: ((...args: any[]) => any) | undefined;
2066
3222
  readonly "onSort-change"?: ((...args: any[]) => any) | undefined;
@@ -2072,6 +3228,8 @@ declare function __VLS_template(): {
2072
3228
  };
2073
3229
  $refs: {
2074
3230
  [x: string]: unknown;
3231
+ } & {
3232
+ table: unknown;
2075
3233
  };
2076
3234
  $slots: Readonly<{
2077
3235
  [name: string]: vue.Slot<any> | undefined;
@@ -2143,7 +3301,9 @@ declare function __VLS_template(): {
2143
3301
  clearFiles(...args: any[]): any;
2144
3302
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
2145
3303
  change: (...args: any[]) => void;
2146
- }, vue.PublicProps, {}, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
3304
+ }, vue.PublicProps, {}, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
3305
+ upload: unknown;
3306
+ }, any, vue.ComponentProvideOptions, {
2147
3307
  P: {};
2148
3308
  B: {};
2149
3309
  D: {};
@@ -2176,7 +3336,114 @@ declare const __VLS_component: vue.DefineComponent<__VLS_Props$l, {
2176
3336
  enableToggleMode: boolean;
2177
3337
  showIndex: boolean;
2178
3338
  sortKey: string;
2179
- }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLDivElement>;
3339
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {
3340
+ mTable: HTMLDivElement;
3341
+ tMagicTable: ({
3342
+ $: vue.ComponentInternalInstance;
3343
+ $data: {};
3344
+ $props: {
3345
+ readonly data?: any[] | undefined;
3346
+ readonly border?: boolean | undefined;
3347
+ readonly maxHeight?: number | string | undefined;
3348
+ readonly defaultExpandAll?: boolean | undefined;
3349
+ readonly onSelect?: ((...args: any[]) => any) | undefined;
3350
+ readonly "onSort-change"?: ((...args: any[]) => any) | undefined;
3351
+ readonly "onExpand-change"?: ((...args: any[]) => any) | undefined;
3352
+ readonly "onCell-click"?: ((...args: any[]) => any) | undefined;
3353
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
3354
+ $attrs: {
3355
+ [x: string]: unknown;
3356
+ };
3357
+ $refs: {
3358
+ [x: string]: unknown;
3359
+ } & {
3360
+ table: unknown;
3361
+ };
3362
+ $slots: Readonly<{
3363
+ [name: string]: vue.Slot<any> | undefined;
3364
+ }>;
3365
+ $root: vue.ComponentPublicInstance | null;
3366
+ $parent: vue.ComponentPublicInstance | null;
3367
+ $host: Element | null;
3368
+ $emit: ((event: "select", ...args: any[]) => void) & ((event: "sort-change", ...args: any[]) => void) & ((event: "expand-change", ...args: any[]) => void) & ((event: "cell-click", ...args: any[]) => void);
3369
+ $el: any;
3370
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.TableProps> & Readonly<{
3371
+ onSelect?: ((...args: any[]) => any) | undefined;
3372
+ "onSort-change"?: ((...args: any[]) => any) | undefined;
3373
+ "onExpand-change"?: ((...args: any[]) => any) | undefined;
3374
+ "onCell-click"?: ((...args: any[]) => any) | undefined;
3375
+ }>, {
3376
+ instance: vue.Ref<any, any>;
3377
+ $el: HTMLDivElement | undefined;
3378
+ clearSelection(...args: any[]): any;
3379
+ toggleRowSelection(...args: any[]): any;
3380
+ toggleRowExpansion(...args: any[]): any;
3381
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
3382
+ select: (...args: any[]) => void;
3383
+ "sort-change": (...args: any[]) => void;
3384
+ "expand-change": (...args: any[]) => void;
3385
+ "cell-click": (...args: any[]) => void;
3386
+ }, string, {
3387
+ data: any[];
3388
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
3389
+ beforeCreate?: (() => void) | (() => void)[];
3390
+ created?: (() => void) | (() => void)[];
3391
+ beforeMount?: (() => void) | (() => void)[];
3392
+ mounted?: (() => void) | (() => void)[];
3393
+ beforeUpdate?: (() => void) | (() => void)[];
3394
+ updated?: (() => void) | (() => void)[];
3395
+ activated?: (() => void) | (() => void)[];
3396
+ deactivated?: (() => void) | (() => void)[];
3397
+ beforeDestroy?: (() => void) | (() => void)[];
3398
+ beforeUnmount?: (() => void) | (() => void)[];
3399
+ destroyed?: (() => void) | (() => void)[];
3400
+ unmounted?: (() => void) | (() => void)[];
3401
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
3402
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
3403
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
3404
+ };
3405
+ $forceUpdate: () => void;
3406
+ $nextTick: typeof vue.nextTick;
3407
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
3408
+ } & Readonly<{
3409
+ data: any[];
3410
+ }> & Omit<Readonly<_tmagic_design.TableProps> & Readonly<{
3411
+ onSelect?: ((...args: any[]) => any) | undefined;
3412
+ "onSort-change"?: ((...args: any[]) => any) | undefined;
3413
+ "onExpand-change"?: ((...args: any[]) => any) | undefined;
3414
+ "onCell-click"?: ((...args: any[]) => any) | undefined;
3415
+ }>, "instance" | "data" | "$el" | "clearSelection" | "toggleRowSelection" | "toggleRowExpansion"> & vue.ShallowUnwrapRef<{
3416
+ instance: vue.Ref<any, any>;
3417
+ $el: HTMLDivElement | undefined;
3418
+ clearSelection(...args: any[]): any;
3419
+ toggleRowSelection(...args: any[]): any;
3420
+ toggleRowExpansion(...args: any[]): any;
3421
+ }> & {} & vue.ComponentCustomProperties & {} & {
3422
+ $slots: {
3423
+ default?(_: {}): any;
3424
+ };
3425
+ }) | null;
3426
+ excelBtn: vue.CreateComponentPublicInstanceWithMixins<Readonly<_tmagic_design.UploadProps> & Readonly<{
3427
+ onChange?: ((...args: any[]) => any) | undefined;
3428
+ }>, {
3429
+ clearFiles(...args: any[]): any;
3430
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
3431
+ change: (...args: any[]) => void;
3432
+ }, vue.PublicProps, {}, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
3433
+ upload: unknown;
3434
+ }, any, vue.ComponentProvideOptions, {
3435
+ P: {};
3436
+ B: {};
3437
+ D: {};
3438
+ C: {};
3439
+ M: {};
3440
+ Defaults: {};
3441
+ }, Readonly<_tmagic_design.UploadProps> & Readonly<{
3442
+ onChange?: ((...args: any[]) => any) | undefined;
3443
+ }>, {
3444
+ clearFiles(...args: any[]): any;
3445
+ }, {}, {}, {}, {}> | null;
3446
+ }, HTMLDivElement>;
2180
3447
  declare const _default$m: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2181
3448
 
2182
3449
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -2211,7 +3478,88 @@ declare const _default$k: vue.DefineComponent<__VLS_Props$j, {}, {}, {}, {}, vue
2211
3478
  }, string, vue.PublicProps, Readonly<__VLS_Props$j> & Readonly<{
2212
3479
  onChange?: ((value: string) => any) | undefined;
2213
3480
  onInput?: ((value: string) => any) | undefined;
2214
- }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, HTMLDivElement>;
3481
+ }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {
3482
+ input: ({
3483
+ $: vue.ComponentInternalInstance;
3484
+ $data: {};
3485
+ $props: {
3486
+ readonly modelValue?: string | number | undefined;
3487
+ readonly clearable?: boolean | undefined;
3488
+ readonly disabled?: boolean | undefined;
3489
+ readonly placeholder?: string | undefined;
3490
+ readonly rows?: number | undefined;
3491
+ readonly type?: string | undefined;
3492
+ readonly size?: _tmagic_design.FieldSize | undefined;
3493
+ readonly onChange?: ((...args: any[]) => any) | undefined;
3494
+ readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
3495
+ readonly onInput?: ((...args: any[]) => any) | undefined;
3496
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
3497
+ $attrs: {
3498
+ [x: string]: unknown;
3499
+ };
3500
+ $refs: {
3501
+ [x: string]: unknown;
3502
+ } & {
3503
+ instance: unknown;
3504
+ };
3505
+ $slots: Readonly<{
3506
+ [name: string]: vue.Slot<any> | undefined;
3507
+ }>;
3508
+ $root: vue.ComponentPublicInstance | null;
3509
+ $parent: vue.ComponentPublicInstance | null;
3510
+ $host: Element | null;
3511
+ $emit: ((event: "change", ...args: any[]) => void) & ((event: "update:modelValue", ...args: any[]) => void) & ((event: "input", ...args: any[]) => void);
3512
+ $el: any;
3513
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.InputProps> & Readonly<{
3514
+ onChange?: ((...args: any[]) => any) | undefined;
3515
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
3516
+ onInput?: ((...args: any[]) => any) | undefined;
3517
+ }>, {
3518
+ instance: vue.Ref<any, any>;
3519
+ getInput(): any;
3520
+ getTextarea(): any;
3521
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
3522
+ change: (...args: any[]) => void;
3523
+ "update:modelValue": (...args: any[]) => void;
3524
+ input: (...args: any[]) => void;
3525
+ }, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
3526
+ beforeCreate?: (() => void) | (() => void)[];
3527
+ created?: (() => void) | (() => void)[];
3528
+ beforeMount?: (() => void) | (() => void)[];
3529
+ mounted?: (() => void) | (() => void)[];
3530
+ beforeUpdate?: (() => void) | (() => void)[];
3531
+ updated?: (() => void) | (() => void)[];
3532
+ activated?: (() => void) | (() => void)[];
3533
+ deactivated?: (() => void) | (() => void)[];
3534
+ beforeDestroy?: (() => void) | (() => void)[];
3535
+ beforeUnmount?: (() => void) | (() => void)[];
3536
+ destroyed?: (() => void) | (() => void)[];
3537
+ unmounted?: (() => void) | (() => void)[];
3538
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
3539
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
3540
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
3541
+ };
3542
+ $forceUpdate: () => void;
3543
+ $nextTick: typeof vue.nextTick;
3544
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
3545
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.InputProps> & Readonly<{
3546
+ onChange?: ((...args: any[]) => any) | undefined;
3547
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
3548
+ onInput?: ((...args: any[]) => any) | undefined;
3549
+ }>, "instance" | "getInput" | "getTextarea"> & vue.ShallowUnwrapRef<{
3550
+ instance: vue.Ref<any, any>;
3551
+ getInput(): any;
3552
+ getTextarea(): any;
3553
+ }> & {} & vue.ComponentCustomProperties & {} & {
3554
+ $slots: {
3555
+ prepend?(_: {}): any;
3556
+ append?(_: {}): any;
3557
+ prefix?(_: {}): any;
3558
+ suffix?(_: {}): any;
3559
+ };
3560
+ }) | null;
3561
+ popoverEl: HTMLDivElement;
3562
+ }, HTMLDivElement>;
2215
3563
 
2216
3564
  type __VLS_Props$i = FieldProps<NumberConfig>;
2217
3565
  declare const _default$j: vue.DefineComponent<__VLS_Props$i, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
@@ -2319,21 +3667,1076 @@ declare const _default$4: vue.DefineComponent<__VLS_Props$3, {}, {}, {}, {}, vue
2319
3667
  change: (...args: any[]) => void;
2320
3668
  }, string, vue.PublicProps, Readonly<__VLS_Props$3> & Readonly<{
2321
3669
  onChange?: ((...args: any[]) => any) | undefined;
2322
- }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
3670
+ }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {
3671
+ editor: ({
3672
+ $: vue.ComponentInternalInstance;
3673
+ $data: {};
3674
+ $props: {
3675
+ readonly config?: _tmagic_editor.FormConfig | undefined;
3676
+ readonly values?: Object | undefined;
3677
+ readonly parentValues?: Object | undefined;
3678
+ readonly width?: string | number | undefined;
3679
+ readonly labelWidth?: string | undefined;
3680
+ readonly fullscreen?: boolean | undefined;
3681
+ readonly disabled?: boolean | undefined;
3682
+ readonly title?: string | undefined;
3683
+ readonly inline?: boolean | undefined;
3684
+ readonly labelPosition?: string | undefined;
3685
+ readonly zIndex?: number | undefined;
3686
+ readonly size?: "small" | "default" | "large" | undefined;
3687
+ readonly confirmText?: string | undefined;
3688
+ readonly preventSubmitDefault?: boolean | undefined;
3689
+ readonly onChange?: ((...args: any[]) => any) | undefined;
3690
+ readonly onClose?: ((...args: any[]) => any) | undefined;
3691
+ readonly onError?: ((...args: any[]) => any) | undefined;
3692
+ readonly onSubmit?: ((...args: any[]) => any) | undefined;
3693
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
3694
+ $attrs: {
3695
+ [x: string]: unknown;
3696
+ };
3697
+ $refs: {
3698
+ [x: string]: unknown;
3699
+ } & {
3700
+ form: vue.CreateComponentPublicInstanceWithMixins<Readonly<{
3701
+ config: _tmagic_editor.FormConfig;
3702
+ initValues: Record<string, any>;
3703
+ lastValues?: Record<string, any>;
3704
+ isCompare?: boolean;
3705
+ parentValues?: Record<string, any>;
3706
+ labelWidth?: string;
3707
+ disabled?: boolean;
3708
+ height?: string;
3709
+ stepActive?: string | number;
3710
+ size?: "small" | "default" | "large";
3711
+ inline?: boolean;
3712
+ labelPosition?: string;
3713
+ keyProp?: string;
3714
+ popperClass?: string;
3715
+ preventSubmitDefault?: boolean;
3716
+ extendState?: (state: FormState) => Record<string, any> | Promise<Record<string, any>>;
3717
+ }> & Readonly<{
3718
+ onChange?: ((...args: any[]) => any) | undefined;
3719
+ onError?: ((...args: any[]) => any) | undefined;
3720
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
3721
+ "onField-change"?: ((...args: any[]) => any) | undefined;
3722
+ "onField-input"?: ((...args: any[]) => any) | undefined;
3723
+ }>, {
3724
+ values: vue.Ref<_tmagic_editor.FormValue, _tmagic_editor.FormValue>;
3725
+ lastValuesProcessed: vue.Ref<_tmagic_editor.FormValue, _tmagic_editor.FormValue>;
3726
+ formState: FormState;
3727
+ initialized: vue.Ref<boolean, boolean>;
3728
+ changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
3729
+ changeHandler: (v: _tmagic_editor.FormValue, eventData: _tmagic_editor.ContainerChangeEventData) => void;
3730
+ resetForm: () => void;
3731
+ submitForm: (native?: boolean) => Promise<any>;
3732
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
3733
+ change: (...args: any[]) => void;
3734
+ error: (...args: any[]) => void;
3735
+ "update:stepActive": (...args: any[]) => void;
3736
+ "field-change": (...args: any[]) => void;
3737
+ "field-input": (...args: any[]) => void;
3738
+ }, vue.PublicProps, {
3739
+ disabled: boolean;
3740
+ labelWidth: string;
3741
+ inline: boolean;
3742
+ labelPosition: string;
3743
+ config: _tmagic_editor.FormConfig;
3744
+ initValues: Record<string, any>;
3745
+ lastValues: Record<string, any>;
3746
+ isCompare: boolean;
3747
+ keyProp: string;
3748
+ parentValues: Record<string, any>;
3749
+ stepActive: string | number;
3750
+ height: string;
3751
+ }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
3752
+ tMagicForm: ({
3753
+ $: vue.ComponentInternalInstance;
3754
+ $data: {};
3755
+ $props: {
3756
+ readonly model?: any;
3757
+ readonly labelWidth?: string | number | undefined;
3758
+ readonly disabled?: boolean | undefined;
3759
+ readonly inline?: boolean | undefined;
3760
+ readonly labelPosition?: string | undefined;
3761
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
3762
+ $attrs: {
3763
+ [x: string]: unknown;
3764
+ };
3765
+ $refs: {
3766
+ [x: string]: unknown;
3767
+ } & {
3768
+ form: unknown;
3769
+ };
3770
+ $slots: Readonly<{
3771
+ [name: string]: vue.Slot<any> | undefined;
3772
+ }>;
3773
+ $root: vue.ComponentPublicInstance | null;
3774
+ $parent: vue.ComponentPublicInstance | null;
3775
+ $host: Element | null;
3776
+ $emit: (event: string, ...args: any[]) => void;
3777
+ $el: any;
3778
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.FormProps> & Readonly<{}>, {
3779
+ validate(): any;
3780
+ resetFields(): any;
3781
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
3782
+ beforeCreate?: (() => void) | (() => void)[];
3783
+ created?: (() => void) | (() => void)[];
3784
+ beforeMount?: (() => void) | (() => void)[];
3785
+ mounted?: (() => void) | (() => void)[];
3786
+ beforeUpdate?: (() => void) | (() => void)[];
3787
+ updated?: (() => void) | (() => void)[];
3788
+ activated?: (() => void) | (() => void)[];
3789
+ deactivated?: (() => void) | (() => void)[];
3790
+ beforeDestroy?: (() => void) | (() => void)[];
3791
+ beforeUnmount?: (() => void) | (() => void)[];
3792
+ destroyed?: (() => void) | (() => void)[];
3793
+ unmounted?: (() => void) | (() => void)[];
3794
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
3795
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
3796
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
3797
+ };
3798
+ $forceUpdate: () => void;
3799
+ $nextTick: typeof vue.nextTick;
3800
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
3801
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.FormProps> & Readonly<{}>, "validate" | "resetFields"> & vue.ShallowUnwrapRef<{
3802
+ validate(): any;
3803
+ resetFields(): any;
3804
+ }> & {} & vue.ComponentCustomProperties & {} & {
3805
+ $slots: {
3806
+ default?(_: {}): any;
3807
+ };
3808
+ }) | null;
3809
+ }, any, vue.ComponentProvideOptions, {
3810
+ P: {};
3811
+ B: {};
3812
+ D: {};
3813
+ C: {};
3814
+ M: {};
3815
+ Defaults: {};
3816
+ }, Readonly<{
3817
+ config: _tmagic_editor.FormConfig;
3818
+ initValues: Record<string, any>;
3819
+ lastValues?: Record<string, any>;
3820
+ isCompare?: boolean;
3821
+ parentValues?: Record<string, any>;
3822
+ labelWidth?: string;
3823
+ disabled?: boolean;
3824
+ height?: string;
3825
+ stepActive?: string | number;
3826
+ size?: "small" | "default" | "large";
3827
+ inline?: boolean;
3828
+ labelPosition?: string;
3829
+ keyProp?: string;
3830
+ popperClass?: string;
3831
+ preventSubmitDefault?: boolean;
3832
+ extendState?: (state: FormState) => Record<string, any> | Promise<Record<string, any>>;
3833
+ }> & Readonly<{
3834
+ onChange?: ((...args: any[]) => any) | undefined;
3835
+ onError?: ((...args: any[]) => any) | undefined;
3836
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
3837
+ "onField-change"?: ((...args: any[]) => any) | undefined;
3838
+ "onField-input"?: ((...args: any[]) => any) | undefined;
3839
+ }>, {
3840
+ values: vue.Ref<_tmagic_editor.FormValue, _tmagic_editor.FormValue>;
3841
+ lastValuesProcessed: vue.Ref<_tmagic_editor.FormValue, _tmagic_editor.FormValue>;
3842
+ formState: FormState;
3843
+ initialized: vue.Ref<boolean, boolean>;
3844
+ changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
3845
+ changeHandler: (v: _tmagic_editor.FormValue, eventData: _tmagic_editor.ContainerChangeEventData) => void;
3846
+ resetForm: () => void;
3847
+ submitForm: (native?: boolean) => Promise<any>;
3848
+ }, {}, {}, {}, {
3849
+ disabled: boolean;
3850
+ labelWidth: string;
3851
+ inline: boolean;
3852
+ labelPosition: string;
3853
+ config: _tmagic_editor.FormConfig;
3854
+ initValues: Record<string, any>;
3855
+ lastValues: Record<string, any>;
3856
+ isCompare: boolean;
3857
+ keyProp: string;
3858
+ parentValues: Record<string, any>;
3859
+ stepActive: string | number;
3860
+ height: string;
3861
+ }> | null;
3862
+ };
3863
+ $slots: Readonly<{
3864
+ [name: string]: vue.Slot<any> | undefined;
3865
+ }>;
3866
+ $root: vue.ComponentPublicInstance | null;
3867
+ $parent: vue.ComponentPublicInstance | null;
3868
+ $host: Element | null;
3869
+ $emit: ((event: "change", ...args: any[]) => void) & ((event: "close", ...args: any[]) => void) & ((event: "error", ...args: any[]) => void) & ((event: "submit", ...args: any[]) => void);
3870
+ $el: any;
3871
+ $options: vue.ComponentOptionsBase<Readonly<{
3872
+ config?: _tmagic_editor.FormConfig;
3873
+ values?: Object;
3874
+ parentValues?: Object;
3875
+ width?: string | number;
3876
+ labelWidth?: string;
3877
+ fullscreen?: boolean;
3878
+ disabled?: boolean;
3879
+ title?: string;
3880
+ inline?: boolean;
3881
+ labelPosition?: string;
3882
+ zIndex?: number;
3883
+ size?: "small" | "default" | "large";
3884
+ confirmText?: string;
3885
+ preventSubmitDefault?: boolean;
3886
+ }> & Readonly<{
3887
+ onChange?: ((...args: any[]) => any) | undefined;
3888
+ onClose?: ((...args: any[]) => any) | undefined;
3889
+ onError?: ((...args: any[]) => any) | undefined;
3890
+ onSubmit?: ((...args: any[]) => any) | undefined;
3891
+ }>, {
3892
+ form: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readonly<{
3893
+ config: _tmagic_editor.FormConfig;
3894
+ initValues: Record<string, any>;
3895
+ lastValues?: Record<string, any>;
3896
+ isCompare?: boolean;
3897
+ parentValues?: Record<string, any>;
3898
+ labelWidth?: string;
3899
+ disabled?: boolean;
3900
+ height?: string;
3901
+ stepActive?: string | number;
3902
+ size?: "small" | "default" | "large";
3903
+ inline?: boolean;
3904
+ labelPosition?: string;
3905
+ keyProp?: string;
3906
+ popperClass?: string;
3907
+ preventSubmitDefault?: boolean;
3908
+ extendState?: (state: FormState) => Record<string, any> | Promise<Record<string, any>>;
3909
+ }> & Readonly<{
3910
+ onChange?: ((...args: any[]) => any) | undefined;
3911
+ onError?: ((...args: any[]) => any) | undefined;
3912
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
3913
+ "onField-change"?: ((...args: any[]) => any) | undefined;
3914
+ "onField-input"?: ((...args: any[]) => any) | undefined;
3915
+ }>, {
3916
+ values: vue.Ref<_tmagic_editor.FormValue, _tmagic_editor.FormValue>;
3917
+ lastValuesProcessed: vue.Ref<_tmagic_editor.FormValue, _tmagic_editor.FormValue>;
3918
+ formState: FormState;
3919
+ initialized: vue.Ref<boolean, boolean>;
3920
+ changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
3921
+ changeHandler: (v: _tmagic_editor.FormValue, eventData: _tmagic_editor.ContainerChangeEventData) => void;
3922
+ resetForm: () => void;
3923
+ submitForm: (native?: boolean) => Promise<any>;
3924
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
3925
+ change: (...args: any[]) => void;
3926
+ error: (...args: any[]) => void;
3927
+ "update:stepActive": (...args: any[]) => void;
3928
+ "field-change": (...args: any[]) => void;
3929
+ "field-input": (...args: any[]) => void;
3930
+ }, vue.PublicProps, {
3931
+ disabled: boolean;
3932
+ labelWidth: string;
3933
+ inline: boolean;
3934
+ labelPosition: string;
3935
+ config: _tmagic_editor.FormConfig;
3936
+ initValues: Record<string, any>;
3937
+ lastValues: Record<string, any>;
3938
+ isCompare: boolean;
3939
+ keyProp: string;
3940
+ parentValues: Record<string, any>;
3941
+ stepActive: string | number;
3942
+ height: string;
3943
+ }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
3944
+ tMagicForm: ({
3945
+ $: vue.ComponentInternalInstance;
3946
+ $data: {};
3947
+ $props: {
3948
+ readonly model?: any;
3949
+ readonly labelWidth?: string | number | undefined;
3950
+ readonly disabled?: boolean | undefined;
3951
+ readonly inline?: boolean | undefined;
3952
+ readonly labelPosition?: string | undefined;
3953
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
3954
+ $attrs: {
3955
+ [x: string]: unknown;
3956
+ };
3957
+ $refs: {
3958
+ [x: string]: unknown;
3959
+ } & {
3960
+ form: unknown;
3961
+ };
3962
+ $slots: Readonly<{
3963
+ [name: string]: vue.Slot<any> | undefined;
3964
+ }>;
3965
+ $root: vue.ComponentPublicInstance | null;
3966
+ $parent: vue.ComponentPublicInstance | null;
3967
+ $host: Element | null;
3968
+ $emit: (event: string, ...args: any[]) => void;
3969
+ $el: any;
3970
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.FormProps> & Readonly<{}>, {
3971
+ validate(): any;
3972
+ resetFields(): any;
3973
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
3974
+ beforeCreate?: (() => void) | (() => void)[];
3975
+ created?: (() => void) | (() => void)[];
3976
+ beforeMount?: (() => void) | (() => void)[];
3977
+ mounted?: (() => void) | (() => void)[];
3978
+ beforeUpdate?: (() => void) | (() => void)[];
3979
+ updated?: (() => void) | (() => void)[];
3980
+ activated?: (() => void) | (() => void)[];
3981
+ deactivated?: (() => void) | (() => void)[];
3982
+ beforeDestroy?: (() => void) | (() => void)[];
3983
+ beforeUnmount?: (() => void) | (() => void)[];
3984
+ destroyed?: (() => void) | (() => void)[];
3985
+ unmounted?: (() => void) | (() => void)[];
3986
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
3987
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
3988
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
3989
+ };
3990
+ $forceUpdate: () => void;
3991
+ $nextTick: typeof vue.nextTick;
3992
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
3993
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.FormProps> & Readonly<{}>, "validate" | "resetFields"> & vue.ShallowUnwrapRef<{
3994
+ validate(): any;
3995
+ resetFields(): any;
3996
+ }> & {} & vue.ComponentCustomProperties & {} & {
3997
+ $slots: {
3998
+ default?(_: {}): any;
3999
+ };
4000
+ }) | null;
4001
+ }, any, vue.ComponentProvideOptions, {
4002
+ P: {};
4003
+ B: {};
4004
+ D: {};
4005
+ C: {};
4006
+ M: {};
4007
+ Defaults: {};
4008
+ }, Readonly<{
4009
+ config: _tmagic_editor.FormConfig;
4010
+ initValues: Record<string, any>;
4011
+ lastValues?: Record<string, any>;
4012
+ isCompare?: boolean;
4013
+ parentValues?: Record<string, any>;
4014
+ labelWidth?: string;
4015
+ disabled?: boolean;
4016
+ height?: string;
4017
+ stepActive?: string | number;
4018
+ size?: "small" | "default" | "large";
4019
+ inline?: boolean;
4020
+ labelPosition?: string;
4021
+ keyProp?: string;
4022
+ popperClass?: string;
4023
+ preventSubmitDefault?: boolean;
4024
+ extendState?: (state: FormState) => Record<string, any> | Promise<Record<string, any>>;
4025
+ }> & Readonly<{
4026
+ onChange?: ((...args: any[]) => any) | undefined;
4027
+ onError?: ((...args: any[]) => any) | undefined;
4028
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
4029
+ "onField-change"?: ((...args: any[]) => any) | undefined;
4030
+ "onField-input"?: ((...args: any[]) => any) | undefined;
4031
+ }>, {
4032
+ values: vue.Ref<_tmagic_editor.FormValue, _tmagic_editor.FormValue>;
4033
+ lastValuesProcessed: vue.Ref<_tmagic_editor.FormValue, _tmagic_editor.FormValue>;
4034
+ formState: FormState;
4035
+ initialized: vue.Ref<boolean, boolean>;
4036
+ changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
4037
+ changeHandler: (v: _tmagic_editor.FormValue, eventData: _tmagic_editor.ContainerChangeEventData) => void;
4038
+ resetForm: () => void;
4039
+ submitForm: (native?: boolean) => Promise<any>;
4040
+ }, {}, {}, {}, {
4041
+ disabled: boolean;
4042
+ labelWidth: string;
4043
+ inline: boolean;
4044
+ labelPosition: string;
4045
+ config: _tmagic_editor.FormConfig;
4046
+ initValues: Record<string, any>;
4047
+ lastValues: Record<string, any>;
4048
+ isCompare: boolean;
4049
+ keyProp: string;
4050
+ parentValues: Record<string, any>;
4051
+ stepActive: string | number;
4052
+ height: string;
4053
+ }> | undefined, vue.CreateComponentPublicInstanceWithMixins<Readonly<{
4054
+ config: _tmagic_editor.FormConfig;
4055
+ initValues: Record<string, any>;
4056
+ lastValues?: Record<string, any>;
4057
+ isCompare?: boolean;
4058
+ parentValues?: Record<string, any>;
4059
+ labelWidth?: string;
4060
+ disabled?: boolean;
4061
+ height?: string;
4062
+ stepActive?: string | number;
4063
+ size?: "small" | "default" | "large";
4064
+ inline?: boolean;
4065
+ labelPosition?: string;
4066
+ keyProp?: string;
4067
+ popperClass?: string;
4068
+ preventSubmitDefault?: boolean;
4069
+ extendState?: (state: FormState) => Record<string, any> | Promise<Record<string, any>>;
4070
+ }> & Readonly<{
4071
+ onChange?: ((...args: any[]) => any) | undefined;
4072
+ onError?: ((...args: any[]) => any) | undefined;
4073
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
4074
+ "onField-change"?: ((...args: any[]) => any) | undefined;
4075
+ "onField-input"?: ((...args: any[]) => any) | undefined;
4076
+ }>, {
4077
+ values: vue.Ref<_tmagic_editor.FormValue, _tmagic_editor.FormValue>;
4078
+ lastValuesProcessed: vue.Ref<_tmagic_editor.FormValue, _tmagic_editor.FormValue>;
4079
+ formState: FormState;
4080
+ initialized: vue.Ref<boolean, boolean>;
4081
+ changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
4082
+ changeHandler: (v: _tmagic_editor.FormValue, eventData: _tmagic_editor.ContainerChangeEventData) => void;
4083
+ resetForm: () => void;
4084
+ submitForm: (native?: boolean) => Promise<any>;
4085
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
4086
+ change: (...args: any[]) => void;
4087
+ error: (...args: any[]) => void;
4088
+ "update:stepActive": (...args: any[]) => void;
4089
+ "field-change": (...args: any[]) => void;
4090
+ "field-input": (...args: any[]) => void;
4091
+ }, vue.PublicProps, {
4092
+ disabled: boolean;
4093
+ labelWidth: string;
4094
+ inline: boolean;
4095
+ labelPosition: string;
4096
+ config: _tmagic_editor.FormConfig;
4097
+ initValues: Record<string, any>;
4098
+ lastValues: Record<string, any>;
4099
+ isCompare: boolean;
4100
+ keyProp: string;
4101
+ parentValues: Record<string, any>;
4102
+ stepActive: string | number;
4103
+ height: string;
4104
+ }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
4105
+ tMagicForm: ({
4106
+ $: vue.ComponentInternalInstance;
4107
+ $data: {};
4108
+ $props: {
4109
+ readonly model?: any;
4110
+ readonly labelWidth?: string | number | undefined;
4111
+ readonly disabled?: boolean | undefined;
4112
+ readonly inline?: boolean | undefined;
4113
+ readonly labelPosition?: string | undefined;
4114
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
4115
+ $attrs: {
4116
+ [x: string]: unknown;
4117
+ };
4118
+ $refs: {
4119
+ [x: string]: unknown;
4120
+ } & {
4121
+ form: unknown;
4122
+ };
4123
+ $slots: Readonly<{
4124
+ [name: string]: vue.Slot<any> | undefined;
4125
+ }>;
4126
+ $root: vue.ComponentPublicInstance | null;
4127
+ $parent: vue.ComponentPublicInstance | null;
4128
+ $host: Element | null;
4129
+ $emit: (event: string, ...args: any[]) => void;
4130
+ $el: any;
4131
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.FormProps> & Readonly<{}>, {
4132
+ validate(): any;
4133
+ resetFields(): any;
4134
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
4135
+ beforeCreate?: (() => void) | (() => void)[];
4136
+ created?: (() => void) | (() => void)[];
4137
+ beforeMount?: (() => void) | (() => void)[];
4138
+ mounted?: (() => void) | (() => void)[];
4139
+ beforeUpdate?: (() => void) | (() => void)[];
4140
+ updated?: (() => void) | (() => void)[];
4141
+ activated?: (() => void) | (() => void)[];
4142
+ deactivated?: (() => void) | (() => void)[];
4143
+ beforeDestroy?: (() => void) | (() => void)[];
4144
+ beforeUnmount?: (() => void) | (() => void)[];
4145
+ destroyed?: (() => void) | (() => void)[];
4146
+ unmounted?: (() => void) | (() => void)[];
4147
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
4148
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
4149
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
4150
+ };
4151
+ $forceUpdate: () => void;
4152
+ $nextTick: typeof vue.nextTick;
4153
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
4154
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.FormProps> & Readonly<{}>, "validate" | "resetFields"> & vue.ShallowUnwrapRef<{
4155
+ validate(): any;
4156
+ resetFields(): any;
4157
+ }> & {} & vue.ComponentCustomProperties & {} & {
4158
+ $slots: {
4159
+ default?(_: {}): any;
4160
+ };
4161
+ }) | null;
4162
+ }, any, vue.ComponentProvideOptions, {
4163
+ P: {};
4164
+ B: {};
4165
+ D: {};
4166
+ C: {};
4167
+ M: {};
4168
+ Defaults: {};
4169
+ }, Readonly<{
4170
+ config: _tmagic_editor.FormConfig;
4171
+ initValues: Record<string, any>;
4172
+ lastValues?: Record<string, any>;
4173
+ isCompare?: boolean;
4174
+ parentValues?: Record<string, any>;
4175
+ labelWidth?: string;
4176
+ disabled?: boolean;
4177
+ height?: string;
4178
+ stepActive?: string | number;
4179
+ size?: "small" | "default" | "large";
4180
+ inline?: boolean;
4181
+ labelPosition?: string;
4182
+ keyProp?: string;
4183
+ popperClass?: string;
4184
+ preventSubmitDefault?: boolean;
4185
+ extendState?: (state: FormState) => Record<string, any> | Promise<Record<string, any>>;
4186
+ }> & Readonly<{
4187
+ onChange?: ((...args: any[]) => any) | undefined;
4188
+ onError?: ((...args: any[]) => any) | undefined;
4189
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
4190
+ "onField-change"?: ((...args: any[]) => any) | undefined;
4191
+ "onField-input"?: ((...args: any[]) => any) | undefined;
4192
+ }>, {
4193
+ values: vue.Ref<_tmagic_editor.FormValue, _tmagic_editor.FormValue>;
4194
+ lastValuesProcessed: vue.Ref<_tmagic_editor.FormValue, _tmagic_editor.FormValue>;
4195
+ formState: FormState;
4196
+ initialized: vue.Ref<boolean, boolean>;
4197
+ changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
4198
+ changeHandler: (v: _tmagic_editor.FormValue, eventData: _tmagic_editor.ContainerChangeEventData) => void;
4199
+ resetForm: () => void;
4200
+ submitForm: (native?: boolean) => Promise<any>;
4201
+ }, {}, {}, {}, {
4202
+ disabled: boolean;
4203
+ labelWidth: string;
4204
+ inline: boolean;
4205
+ labelPosition: string;
4206
+ config: _tmagic_editor.FormConfig;
4207
+ initValues: Record<string, any>;
4208
+ lastValues: Record<string, any>;
4209
+ isCompare: boolean;
4210
+ keyProp: string;
4211
+ parentValues: Record<string, any>;
4212
+ stepActive: string | number;
4213
+ height: string;
4214
+ }> | undefined>;
4215
+ saveFetch: vue.Ref<boolean, boolean>;
4216
+ dialogVisible: vue.Ref<boolean, boolean>;
4217
+ cancel: () => void;
4218
+ save: () => Promise<void>;
4219
+ show: () => void;
4220
+ hide: () => void;
4221
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
4222
+ change: (...args: any[]) => void;
4223
+ close: (...args: any[]) => void;
4224
+ error: (...args: any[]) => void;
4225
+ submit: (...args: any[]) => void;
4226
+ }, string, {
4227
+ values: Object;
4228
+ config: _tmagic_editor.FormConfig;
4229
+ confirmText: string;
4230
+ }, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
4231
+ beforeCreate?: (() => void) | (() => void)[];
4232
+ created?: (() => void) | (() => void)[];
4233
+ beforeMount?: (() => void) | (() => void)[];
4234
+ mounted?: (() => void) | (() => void)[];
4235
+ beforeUpdate?: (() => void) | (() => void)[];
4236
+ updated?: (() => void) | (() => void)[];
4237
+ activated?: (() => void) | (() => void)[];
4238
+ deactivated?: (() => void) | (() => void)[];
4239
+ beforeDestroy?: (() => void) | (() => void)[];
4240
+ beforeUnmount?: (() => void) | (() => void)[];
4241
+ destroyed?: (() => void) | (() => void)[];
4242
+ unmounted?: (() => void) | (() => void)[];
4243
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
4244
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
4245
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
4246
+ };
4247
+ $forceUpdate: () => void;
4248
+ $nextTick: typeof vue.nextTick;
4249
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
4250
+ } & Readonly<{
4251
+ values: Object;
4252
+ config: _tmagic_editor.FormConfig;
4253
+ confirmText: string;
4254
+ }> & Omit<Readonly<{
4255
+ config?: _tmagic_editor.FormConfig;
4256
+ values?: Object;
4257
+ parentValues?: Object;
4258
+ width?: string | number;
4259
+ labelWidth?: string;
4260
+ fullscreen?: boolean;
4261
+ disabled?: boolean;
4262
+ title?: string;
4263
+ inline?: boolean;
4264
+ labelPosition?: string;
4265
+ zIndex?: number;
4266
+ size?: "small" | "default" | "large";
4267
+ confirmText?: string;
4268
+ preventSubmitDefault?: boolean;
4269
+ }> & Readonly<{
4270
+ onChange?: ((...args: any[]) => any) | undefined;
4271
+ onClose?: ((...args: any[]) => any) | undefined;
4272
+ onError?: ((...args: any[]) => any) | undefined;
4273
+ onSubmit?: ((...args: any[]) => any) | undefined;
4274
+ }>, "form" | "cancel" | "show" | "saveFetch" | "dialogVisible" | "save" | "hide" | ("values" | "config" | "confirmText")> & vue.ShallowUnwrapRef<{
4275
+ form: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readonly<{
4276
+ config: _tmagic_editor.FormConfig;
4277
+ initValues: Record<string, any>;
4278
+ lastValues?: Record<string, any>;
4279
+ isCompare?: boolean;
4280
+ parentValues?: Record<string, any>;
4281
+ labelWidth?: string;
4282
+ disabled?: boolean;
4283
+ height?: string;
4284
+ stepActive?: string | number;
4285
+ size?: "small" | "default" | "large";
4286
+ inline?: boolean;
4287
+ labelPosition?: string;
4288
+ keyProp?: string;
4289
+ popperClass?: string;
4290
+ preventSubmitDefault?: boolean;
4291
+ extendState?: (state: FormState) => Record<string, any> | Promise<Record<string, any>>;
4292
+ }> & Readonly<{
4293
+ onChange?: ((...args: any[]) => any) | undefined;
4294
+ onError?: ((...args: any[]) => any) | undefined;
4295
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
4296
+ "onField-change"?: ((...args: any[]) => any) | undefined;
4297
+ "onField-input"?: ((...args: any[]) => any) | undefined;
4298
+ }>, {
4299
+ values: vue.Ref<_tmagic_editor.FormValue, _tmagic_editor.FormValue>;
4300
+ lastValuesProcessed: vue.Ref<_tmagic_editor.FormValue, _tmagic_editor.FormValue>;
4301
+ formState: FormState;
4302
+ initialized: vue.Ref<boolean, boolean>;
4303
+ changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
4304
+ changeHandler: (v: _tmagic_editor.FormValue, eventData: _tmagic_editor.ContainerChangeEventData) => void;
4305
+ resetForm: () => void;
4306
+ submitForm: (native?: boolean) => Promise<any>;
4307
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
4308
+ change: (...args: any[]) => void;
4309
+ error: (...args: any[]) => void;
4310
+ "update:stepActive": (...args: any[]) => void;
4311
+ "field-change": (...args: any[]) => void;
4312
+ "field-input": (...args: any[]) => void;
4313
+ }, vue.PublicProps, {
4314
+ disabled: boolean;
4315
+ labelWidth: string;
4316
+ inline: boolean;
4317
+ labelPosition: string;
4318
+ config: _tmagic_editor.FormConfig;
4319
+ initValues: Record<string, any>;
4320
+ lastValues: Record<string, any>;
4321
+ isCompare: boolean;
4322
+ keyProp: string;
4323
+ parentValues: Record<string, any>;
4324
+ stepActive: string | number;
4325
+ height: string;
4326
+ }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
4327
+ tMagicForm: ({
4328
+ $: vue.ComponentInternalInstance;
4329
+ $data: {};
4330
+ $props: {
4331
+ readonly model?: any;
4332
+ readonly labelWidth?: string | number | undefined;
4333
+ readonly disabled?: boolean | undefined;
4334
+ readonly inline?: boolean | undefined;
4335
+ readonly labelPosition?: string | undefined;
4336
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
4337
+ $attrs: {
4338
+ [x: string]: unknown;
4339
+ };
4340
+ $refs: {
4341
+ [x: string]: unknown;
4342
+ } & {
4343
+ form: unknown;
4344
+ };
4345
+ $slots: Readonly<{
4346
+ [name: string]: vue.Slot<any> | undefined;
4347
+ }>;
4348
+ $root: vue.ComponentPublicInstance | null;
4349
+ $parent: vue.ComponentPublicInstance | null;
4350
+ $host: Element | null;
4351
+ $emit: (event: string, ...args: any[]) => void;
4352
+ $el: any;
4353
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.FormProps> & Readonly<{}>, {
4354
+ validate(): any;
4355
+ resetFields(): any;
4356
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
4357
+ beforeCreate?: (() => void) | (() => void)[];
4358
+ created?: (() => void) | (() => void)[];
4359
+ beforeMount?: (() => void) | (() => void)[];
4360
+ mounted?: (() => void) | (() => void)[];
4361
+ beforeUpdate?: (() => void) | (() => void)[];
4362
+ updated?: (() => void) | (() => void)[];
4363
+ activated?: (() => void) | (() => void)[];
4364
+ deactivated?: (() => void) | (() => void)[];
4365
+ beforeDestroy?: (() => void) | (() => void)[];
4366
+ beforeUnmount?: (() => void) | (() => void)[];
4367
+ destroyed?: (() => void) | (() => void)[];
4368
+ unmounted?: (() => void) | (() => void)[];
4369
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
4370
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
4371
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
4372
+ };
4373
+ $forceUpdate: () => void;
4374
+ $nextTick: typeof vue.nextTick;
4375
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
4376
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.FormProps> & Readonly<{}>, "validate" | "resetFields"> & vue.ShallowUnwrapRef<{
4377
+ validate(): any;
4378
+ resetFields(): any;
4379
+ }> & {} & vue.ComponentCustomProperties & {} & {
4380
+ $slots: {
4381
+ default?(_: {}): any;
4382
+ };
4383
+ }) | null;
4384
+ }, any, vue.ComponentProvideOptions, {
4385
+ P: {};
4386
+ B: {};
4387
+ D: {};
4388
+ C: {};
4389
+ M: {};
4390
+ Defaults: {};
4391
+ }, Readonly<{
4392
+ config: _tmagic_editor.FormConfig;
4393
+ initValues: Record<string, any>;
4394
+ lastValues?: Record<string, any>;
4395
+ isCompare?: boolean;
4396
+ parentValues?: Record<string, any>;
4397
+ labelWidth?: string;
4398
+ disabled?: boolean;
4399
+ height?: string;
4400
+ stepActive?: string | number;
4401
+ size?: "small" | "default" | "large";
4402
+ inline?: boolean;
4403
+ labelPosition?: string;
4404
+ keyProp?: string;
4405
+ popperClass?: string;
4406
+ preventSubmitDefault?: boolean;
4407
+ extendState?: (state: FormState) => Record<string, any> | Promise<Record<string, any>>;
4408
+ }> & Readonly<{
4409
+ onChange?: ((...args: any[]) => any) | undefined;
4410
+ onError?: ((...args: any[]) => any) | undefined;
4411
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
4412
+ "onField-change"?: ((...args: any[]) => any) | undefined;
4413
+ "onField-input"?: ((...args: any[]) => any) | undefined;
4414
+ }>, {
4415
+ values: vue.Ref<_tmagic_editor.FormValue, _tmagic_editor.FormValue>;
4416
+ lastValuesProcessed: vue.Ref<_tmagic_editor.FormValue, _tmagic_editor.FormValue>;
4417
+ formState: FormState;
4418
+ initialized: vue.Ref<boolean, boolean>;
4419
+ changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
4420
+ changeHandler: (v: _tmagic_editor.FormValue, eventData: _tmagic_editor.ContainerChangeEventData) => void;
4421
+ resetForm: () => void;
4422
+ submitForm: (native?: boolean) => Promise<any>;
4423
+ }, {}, {}, {}, {
4424
+ disabled: boolean;
4425
+ labelWidth: string;
4426
+ inline: boolean;
4427
+ labelPosition: string;
4428
+ config: _tmagic_editor.FormConfig;
4429
+ initValues: Record<string, any>;
4430
+ lastValues: Record<string, any>;
4431
+ isCompare: boolean;
4432
+ keyProp: string;
4433
+ parentValues: Record<string, any>;
4434
+ stepActive: string | number;
4435
+ height: string;
4436
+ }> | undefined, vue.CreateComponentPublicInstanceWithMixins<Readonly<{
4437
+ config: _tmagic_editor.FormConfig;
4438
+ initValues: Record<string, any>;
4439
+ lastValues?: Record<string, any>;
4440
+ isCompare?: boolean;
4441
+ parentValues?: Record<string, any>;
4442
+ labelWidth?: string;
4443
+ disabled?: boolean;
4444
+ height?: string;
4445
+ stepActive?: string | number;
4446
+ size?: "small" | "default" | "large";
4447
+ inline?: boolean;
4448
+ labelPosition?: string;
4449
+ keyProp?: string;
4450
+ popperClass?: string;
4451
+ preventSubmitDefault?: boolean;
4452
+ extendState?: (state: FormState) => Record<string, any> | Promise<Record<string, any>>;
4453
+ }> & Readonly<{
4454
+ onChange?: ((...args: any[]) => any) | undefined;
4455
+ onError?: ((...args: any[]) => any) | undefined;
4456
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
4457
+ "onField-change"?: ((...args: any[]) => any) | undefined;
4458
+ "onField-input"?: ((...args: any[]) => any) | undefined;
4459
+ }>, {
4460
+ values: vue.Ref<_tmagic_editor.FormValue, _tmagic_editor.FormValue>;
4461
+ lastValuesProcessed: vue.Ref<_tmagic_editor.FormValue, _tmagic_editor.FormValue>;
4462
+ formState: FormState;
4463
+ initialized: vue.Ref<boolean, boolean>;
4464
+ changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
4465
+ changeHandler: (v: _tmagic_editor.FormValue, eventData: _tmagic_editor.ContainerChangeEventData) => void;
4466
+ resetForm: () => void;
4467
+ submitForm: (native?: boolean) => Promise<any>;
4468
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
4469
+ change: (...args: any[]) => void;
4470
+ error: (...args: any[]) => void;
4471
+ "update:stepActive": (...args: any[]) => void;
4472
+ "field-change": (...args: any[]) => void;
4473
+ "field-input": (...args: any[]) => void;
4474
+ }, vue.PublicProps, {
4475
+ disabled: boolean;
4476
+ labelWidth: string;
4477
+ inline: boolean;
4478
+ labelPosition: string;
4479
+ config: _tmagic_editor.FormConfig;
4480
+ initValues: Record<string, any>;
4481
+ lastValues: Record<string, any>;
4482
+ isCompare: boolean;
4483
+ keyProp: string;
4484
+ parentValues: Record<string, any>;
4485
+ stepActive: string | number;
4486
+ height: string;
4487
+ }, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
4488
+ tMagicForm: ({
4489
+ $: vue.ComponentInternalInstance;
4490
+ $data: {};
4491
+ $props: {
4492
+ readonly model?: any;
4493
+ readonly labelWidth?: string | number | undefined;
4494
+ readonly disabled?: boolean | undefined;
4495
+ readonly inline?: boolean | undefined;
4496
+ readonly labelPosition?: string | undefined;
4497
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
4498
+ $attrs: {
4499
+ [x: string]: unknown;
4500
+ };
4501
+ $refs: {
4502
+ [x: string]: unknown;
4503
+ } & {
4504
+ form: unknown;
4505
+ };
4506
+ $slots: Readonly<{
4507
+ [name: string]: vue.Slot<any> | undefined;
4508
+ }>;
4509
+ $root: vue.ComponentPublicInstance | null;
4510
+ $parent: vue.ComponentPublicInstance | null;
4511
+ $host: Element | null;
4512
+ $emit: (event: string, ...args: any[]) => void;
4513
+ $el: any;
4514
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.FormProps> & Readonly<{}>, {
4515
+ validate(): any;
4516
+ resetFields(): any;
4517
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
4518
+ beforeCreate?: (() => void) | (() => void)[];
4519
+ created?: (() => void) | (() => void)[];
4520
+ beforeMount?: (() => void) | (() => void)[];
4521
+ mounted?: (() => void) | (() => void)[];
4522
+ beforeUpdate?: (() => void) | (() => void)[];
4523
+ updated?: (() => void) | (() => void)[];
4524
+ activated?: (() => void) | (() => void)[];
4525
+ deactivated?: (() => void) | (() => void)[];
4526
+ beforeDestroy?: (() => void) | (() => void)[];
4527
+ beforeUnmount?: (() => void) | (() => void)[];
4528
+ destroyed?: (() => void) | (() => void)[];
4529
+ unmounted?: (() => void) | (() => void)[];
4530
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
4531
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
4532
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
4533
+ };
4534
+ $forceUpdate: () => void;
4535
+ $nextTick: typeof vue.nextTick;
4536
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
4537
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.FormProps> & Readonly<{}>, "validate" | "resetFields"> & vue.ShallowUnwrapRef<{
4538
+ validate(): any;
4539
+ resetFields(): any;
4540
+ }> & {} & vue.ComponentCustomProperties & {} & {
4541
+ $slots: {
4542
+ default?(_: {}): any;
4543
+ };
4544
+ }) | null;
4545
+ }, any, vue.ComponentProvideOptions, {
4546
+ P: {};
4547
+ B: {};
4548
+ D: {};
4549
+ C: {};
4550
+ M: {};
4551
+ Defaults: {};
4552
+ }, Readonly<{
4553
+ config: _tmagic_editor.FormConfig;
4554
+ initValues: Record<string, any>;
4555
+ lastValues?: Record<string, any>;
4556
+ isCompare?: boolean;
4557
+ parentValues?: Record<string, any>;
4558
+ labelWidth?: string;
4559
+ disabled?: boolean;
4560
+ height?: string;
4561
+ stepActive?: string | number;
4562
+ size?: "small" | "default" | "large";
4563
+ inline?: boolean;
4564
+ labelPosition?: string;
4565
+ keyProp?: string;
4566
+ popperClass?: string;
4567
+ preventSubmitDefault?: boolean;
4568
+ extendState?: (state: FormState) => Record<string, any> | Promise<Record<string, any>>;
4569
+ }> & Readonly<{
4570
+ onChange?: ((...args: any[]) => any) | undefined;
4571
+ onError?: ((...args: any[]) => any) | undefined;
4572
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
4573
+ "onField-change"?: ((...args: any[]) => any) | undefined;
4574
+ "onField-input"?: ((...args: any[]) => any) | undefined;
4575
+ }>, {
4576
+ values: vue.Ref<_tmagic_editor.FormValue, _tmagic_editor.FormValue>;
4577
+ lastValuesProcessed: vue.Ref<_tmagic_editor.FormValue, _tmagic_editor.FormValue>;
4578
+ formState: FormState;
4579
+ initialized: vue.Ref<boolean, boolean>;
4580
+ changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
4581
+ changeHandler: (v: _tmagic_editor.FormValue, eventData: _tmagic_editor.ContainerChangeEventData) => void;
4582
+ resetForm: () => void;
4583
+ submitForm: (native?: boolean) => Promise<any>;
4584
+ }, {}, {}, {}, {
4585
+ disabled: boolean;
4586
+ labelWidth: string;
4587
+ inline: boolean;
4588
+ labelPosition: string;
4589
+ config: _tmagic_editor.FormConfig;
4590
+ initValues: Record<string, any>;
4591
+ lastValues: Record<string, any>;
4592
+ isCompare: boolean;
4593
+ keyProp: string;
4594
+ parentValues: Record<string, any>;
4595
+ stepActive: string | number;
4596
+ height: string;
4597
+ }> | undefined>;
4598
+ saveFetch: vue.Ref<boolean, boolean>;
4599
+ dialogVisible: vue.Ref<boolean, boolean>;
4600
+ cancel: () => void;
4601
+ save: () => Promise<void>;
4602
+ show: () => void;
4603
+ hide: () => void;
4604
+ }> & {} & vue.ComponentCustomProperties & {} & {
4605
+ $slots: {
4606
+ default?(_: {}): any;
4607
+ left?(_: {}): any;
4608
+ footer?(_: {}): any;
4609
+ };
4610
+ }) | null;
4611
+ }, any>;
2323
4612
 
2324
4613
  type __VLS_Props$2 = FieldProps<SelectConfig>;
2325
4614
  declare const _default$3: vue.DefineComponent<__VLS_Props$2, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
2326
4615
  change: (...args: any[]) => void;
2327
4616
  }, string, vue.PublicProps, Readonly<__VLS_Props$2> & Readonly<{
2328
4617
  onChange?: ((...args: any[]) => any) | undefined;
2329
- }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
4618
+ }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {
4619
+ tMagicSelect: ({
4620
+ $: vue.ComponentInternalInstance;
4621
+ $data: {};
4622
+ $props: {
4623
+ readonly modelValue?: any;
4624
+ readonly clearable?: boolean | undefined;
4625
+ readonly filterable?: boolean | undefined;
4626
+ readonly popperClass?: string | undefined;
4627
+ readonly disabled?: boolean | undefined;
4628
+ readonly placeholder?: string | undefined;
4629
+ readonly remote?: boolean | undefined;
4630
+ readonly multiple?: boolean | undefined;
4631
+ readonly allowCreate?: boolean | undefined;
4632
+ readonly valueKey?: string | undefined;
4633
+ readonly remoteMethod?: any;
4634
+ readonly loading?: boolean | undefined;
4635
+ readonly size?: _tmagic_design.FieldSize | undefined;
4636
+ readonly onSearch?: any;
4637
+ readonly onChange?: ((...args: any[]) => any) | undefined;
4638
+ readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
4639
+ readonly onVisibleHandler?: ((...args: any[]) => any) | undefined;
4640
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps;
4641
+ $attrs: {
4642
+ [x: string]: unknown;
4643
+ };
4644
+ $refs: {
4645
+ [x: string]: unknown;
4646
+ } & {
4647
+ select: unknown;
4648
+ };
4649
+ $slots: Readonly<{
4650
+ [name: string]: vue.Slot<any> | undefined;
4651
+ }>;
4652
+ $root: vue.ComponentPublicInstance | null;
4653
+ $parent: vue.ComponentPublicInstance | null;
4654
+ $host: Element | null;
4655
+ $emit: ((event: "change", ...args: any[]) => void) & ((event: "update:modelValue", ...args: any[]) => void) & ((event: "visibleHandler", ...args: any[]) => void);
4656
+ $el: any;
4657
+ $options: vue.ComponentOptionsBase<Readonly<_tmagic_design.SelectProps> & Readonly<{
4658
+ onChange?: ((...args: any[]) => any) | undefined;
4659
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
4660
+ onVisibleHandler?: ((...args: any[]) => any) | undefined;
4661
+ }>, {
4662
+ scrollbarWrap: vue.Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
4663
+ setQuery(v: string): void;
4664
+ setPreviousQuery(v: string): void;
4665
+ setSelectedLabel(v: string): void;
4666
+ setSelected(): any;
4667
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
4668
+ change: (...args: any[]) => void;
4669
+ "update:modelValue": (...args: any[]) => void;
4670
+ visibleHandler: (...args: any[]) => void;
4671
+ }, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & {
4672
+ beforeCreate?: (() => void) | (() => void)[];
4673
+ created?: (() => void) | (() => void)[];
4674
+ beforeMount?: (() => void) | (() => void)[];
4675
+ mounted?: (() => void) | (() => void)[];
4676
+ beforeUpdate?: (() => void) | (() => void)[];
4677
+ updated?: (() => void) | (() => void)[];
4678
+ activated?: (() => void) | (() => void)[];
4679
+ deactivated?: (() => void) | (() => void)[];
4680
+ beforeDestroy?: (() => void) | (() => void)[];
4681
+ beforeUnmount?: (() => void) | (() => void)[];
4682
+ destroyed?: (() => void) | (() => void)[];
4683
+ unmounted?: (() => void) | (() => void)[];
4684
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
4685
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[];
4686
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance | null, info: string) => boolean | void)[];
4687
+ };
4688
+ $forceUpdate: () => void;
4689
+ $nextTick: typeof nextTick;
4690
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
4691
+ } & Readonly<{}> & Omit<Readonly<_tmagic_design.SelectProps> & Readonly<{
4692
+ onChange?: ((...args: any[]) => any) | undefined;
4693
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
4694
+ onVisibleHandler?: ((...args: any[]) => any) | undefined;
4695
+ }>, "scrollbarWrap" | "setQuery" | "setPreviousQuery" | "setSelectedLabel" | "setSelected"> & vue.ShallowUnwrapRef<{
4696
+ scrollbarWrap: vue.Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
4697
+ setQuery(v: string): void;
4698
+ setPreviousQuery(v: string): void;
4699
+ setSelectedLabel(v: string): void;
4700
+ setSelected(): any;
4701
+ }> & {} & vue.ComponentCustomProperties & {} & {
4702
+ $slots: {
4703
+ default?(_: {}): any;
4704
+ };
4705
+ }) | null;
4706
+ }, any>;
2330
4707
 
2331
4708
  type __VLS_Props$1 = FieldProps<CascaderConfig>;
2332
4709
  declare const _default$2: vue.DefineComponent<__VLS_Props$1, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
2333
4710
  change: (...args: any[]) => void;
2334
4711
  }, string, vue.PublicProps, Readonly<__VLS_Props$1> & Readonly<{
2335
4712
  onChange?: ((...args: any[]) => any) | undefined;
2336
- }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
4713
+ }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {
4714
+ tMagicCascader: vue.CreateComponentPublicInstanceWithMixins<Readonly<_tmagic_design.CascaderProps> & Readonly<{
4715
+ onChange?: ((...args: any[]) => any) | undefined;
4716
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
4717
+ }>, {
4718
+ setQuery(v: any): void;
4719
+ setPreviousQuery(v: any): void;
4720
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
4721
+ change: (...args: any[]) => void;
4722
+ "update:modelValue": (...args: any[]) => void;
4723
+ }, vue.PublicProps, {}, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {
4724
+ cascader: unknown;
4725
+ }, any, vue.ComponentProvideOptions, {
4726
+ P: {};
4727
+ B: {};
4728
+ D: {};
4729
+ C: {};
4730
+ M: {};
4731
+ Defaults: {};
4732
+ }, Readonly<_tmagic_design.CascaderProps> & Readonly<{
4733
+ onChange?: ((...args: any[]) => any) | undefined;
4734
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
4735
+ }>, {
4736
+ setQuery(v: any): void;
4737
+ setPreviousQuery(v: any): void;
4738
+ }, {}, {}, {}, {}> | null;
4739
+ }, any>;
2337
4740
 
2338
4741
  type __VLS_Props = FieldProps<DynamicFieldConfig>;
2339
4742
  declare const _default$1: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {