@tmagic/editor 1.3.16 → 1.4.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/dist/style.css +25 -9
  2. package/dist/tmagic-editor.js +1048 -632
  3. package/dist/tmagic-editor.umd.cjs +1065 -647
  4. package/package.json +23 -21
  5. package/src/components/CodeBlockEditor.vue +82 -59
  6. package/src/components/FloatingBox.vue +71 -25
  7. package/src/components/SplitView.vue +46 -35
  8. package/src/fields/Code.vue +12 -10
  9. package/src/fields/CodeLink.vue +9 -9
  10. package/src/fields/CodeSelect.vue +7 -5
  11. package/src/fields/CodeSelectCol.vue +1 -1
  12. package/src/fields/DataSourceFieldSelect.vue +118 -27
  13. package/src/fields/DataSourceFields.vue +10 -3
  14. package/src/fields/DataSourceInput.vue +7 -7
  15. package/src/fields/DataSourceMethodSelect.vue +1 -1
  16. package/src/fields/DataSourceMethods.vue +3 -3
  17. package/src/fields/DataSourceMocks.vue +3 -3
  18. package/src/fields/DataSourceSelect.vue +6 -18
  19. package/src/fields/EventSelect.vue +1 -1
  20. package/src/fields/KeyValue.vue +8 -8
  21. package/src/fields/PageFragmentSelect.vue +1 -1
  22. package/src/fields/UISelect.vue +5 -5
  23. package/src/hooks/index.ts +2 -0
  24. package/src/hooks/use-code-block-edit.ts +1 -2
  25. package/src/hooks/use-editor-content-height.ts +20 -0
  26. package/src/hooks/use-float-box.ts +8 -8
  27. package/src/hooks/use-window-rect.ts +20 -0
  28. package/src/index.ts +2 -2
  29. package/src/layouts/Framework.vue +33 -34
  30. package/src/layouts/NavMenu.vue +21 -2
  31. package/src/layouts/PropsPanel.vue +35 -0
  32. package/src/layouts/sidebar/Sidebar.vue +18 -8
  33. package/src/layouts/sidebar/code-block/CodeBlockListPanel.vue +0 -1
  34. package/src/layouts/workspace/viewer/NodeListMenu.vue +1 -0
  35. package/src/services/BaseService.ts +5 -2
  36. package/src/services/codeBlock.ts +14 -8
  37. package/src/services/dataSource.ts +39 -26
  38. package/src/services/editor.ts +46 -25
  39. package/src/services/events.ts +4 -4
  40. package/src/services/props.ts +44 -35
  41. package/src/services/stageOverlay.ts +16 -9
  42. package/src/services/storage.ts +14 -8
  43. package/src/services/ui.ts +26 -19
  44. package/src/theme/code-block.scss +0 -5
  45. package/src/theme/code-editor.scss +6 -0
  46. package/src/theme/floating-box.scss +4 -2
  47. package/src/theme/props-panel.scss +14 -0
  48. package/src/theme/sidebar.scss +6 -3
  49. package/src/type.ts +87 -37
  50. package/src/utils/operator.ts +37 -39
  51. package/src/utils/props.ts +174 -37
  52. package/types/components/CodeBlockEditor.vue.d.ts +46 -25
  53. package/types/components/CodeParams.vue.d.ts +5 -5
  54. package/types/components/ContentMenu.vue.d.ts +12 -12
  55. package/types/components/FloatingBox.vue.d.ts +42 -55
  56. package/types/components/Icon.vue.d.ts +3 -3
  57. package/types/components/Resizer.vue.d.ts +3 -3
  58. package/types/components/ScrollBar.vue.d.ts +3 -3
  59. package/types/components/ScrollViewer.vue.d.ts +12 -12
  60. package/types/components/SearchInput.vue.d.ts +1 -1
  61. package/types/components/SplitView.vue.d.ts +13 -11
  62. package/types/components/ToolButton.vue.d.ts +13 -13
  63. package/types/components/Tree.vue.d.ts +24 -14
  64. package/types/components/TreeNode.vue.d.ts +22 -12
  65. package/types/fields/Code.vue.d.ts +14 -14
  66. package/types/fields/CodeLink.vue.d.ts +6 -10
  67. package/types/fields/CodeSelect.vue.d.ts +14 -14
  68. package/types/fields/CodeSelectCol.vue.d.ts +11 -11
  69. package/types/fields/DataSourceFieldSelect.vue.d.ts +11 -11
  70. package/types/fields/DataSourceFields.vue.d.ts +11 -11
  71. package/types/fields/DataSourceInput.vue.d.ts +14 -18
  72. package/types/fields/DataSourceMethodSelect.vue.d.ts +11 -11
  73. package/types/fields/DataSourceMethods.vue.d.ts +11 -11
  74. package/types/fields/DataSourceMocks.vue.d.ts +11 -11
  75. package/types/fields/DataSourceSelect.vue.d.ts +13 -26
  76. package/types/fields/EventSelect.vue.d.ts +3 -3
  77. package/types/fields/KeyValue.vue.d.ts +14 -18
  78. package/types/fields/PageFragmentSelect.vue.d.ts +11 -11
  79. package/types/fields/UISelect.vue.d.ts +8 -4
  80. package/types/hooks/index.d.ts +2 -0
  81. package/types/hooks/use-code-block-edit.d.ts +66 -90
  82. package/types/hooks/use-data-source-method.d.ts +66 -90
  83. package/types/hooks/use-editor-content-height.d.ts +3 -0
  84. package/types/hooks/use-node-status.d.ts +6 -1
  85. package/types/hooks/use-window-rect.d.ts +6 -0
  86. package/types/icons/AppManageIcon.vue.d.ts +1 -1
  87. package/types/icons/CenterIcon.vue.d.ts +1 -1
  88. package/types/icons/CodeIcon.vue.d.ts +1 -1
  89. package/types/icons/FolderMinusIcon.vue.d.ts +1 -1
  90. package/types/icons/PinIcon.vue.d.ts +1 -1
  91. package/types/icons/PinnedIcon.vue.d.ts +1 -1
  92. package/types/layouts/AddPageBox.vue.d.ts +3 -3
  93. package/types/layouts/CodeEditor.vue.d.ts +12 -12
  94. package/types/layouts/Framework.vue.d.ts +9 -9
  95. package/types/layouts/NavMenu.vue.d.ts +11 -11
  96. package/types/layouts/PropsPanel.vue.d.ts +193 -243
  97. package/types/layouts/page-bar/AddButton.vue.d.ts +3 -3
  98. package/types/layouts/page-bar/PageBar.vue.d.ts +8 -8
  99. package/types/layouts/page-bar/PageBarScrollContainer.vue.d.ts +8 -8
  100. package/types/layouts/page-bar/SwitchTypeButton.vue.d.ts +3 -3
  101. package/types/layouts/sidebar/ComponentListPanel.vue.d.ts +1 -1
  102. package/types/layouts/sidebar/Sidebar.vue.d.ts +13 -13
  103. package/types/layouts/sidebar/code-block/CodeBlockList.vue.d.ts +10 -10
  104. package/types/layouts/sidebar/code-block/CodeBlockListPanel.vue.d.ts +9 -9
  105. package/types/layouts/sidebar/data-source/DataSourceConfigPanel.vue.d.ts +3 -3
  106. package/types/layouts/sidebar/data-source/DataSourceList.vue.d.ts +3 -3
  107. package/types/layouts/sidebar/data-source/DataSourceListPanel.vue.d.ts +9 -9
  108. package/types/layouts/sidebar/layer/LayerMenu.vue.d.ts +11 -11
  109. package/types/layouts/sidebar/layer/LayerNodeTool.vue.d.ts +3 -3
  110. package/types/layouts/sidebar/layer/LayerPanel.vue.d.ts +9 -9
  111. package/types/layouts/sidebar/layer/use-click.d.ts +42 -76
  112. package/types/layouts/sidebar/layer/use-node-status.d.ts +6 -1
  113. package/types/layouts/workspace/Breadcrumb.vue.d.ts +1 -1
  114. package/types/layouts/workspace/Workspace.vue.d.ts +12 -12
  115. package/types/layouts/workspace/viewer/NodeListMenu.vue.d.ts +1 -1
  116. package/types/layouts/workspace/viewer/Stage.vue.d.ts +11 -11
  117. package/types/layouts/workspace/viewer/StageOverlay.vue.d.ts +1 -1
  118. package/types/layouts/workspace/viewer/ViewerMenu.vue.d.ts +12 -12
  119. package/types/services/BaseService.d.ts +5 -2
  120. package/types/services/codeBlock.d.ts +8 -0
  121. package/types/services/dataSource.d.ts +9 -2
  122. package/types/services/editor.d.ts +8 -1
  123. package/types/services/props.d.ts +15 -22
  124. package/types/services/stageOverlay.d.ts +9 -2
  125. package/types/services/storage.d.ts +8 -0
  126. package/types/services/ui.d.ts +20 -8
  127. package/types/type.d.ts +56 -32
  128. package/types/utils/operator.d.ts +1 -1
  129. package/types/utils/props.d.ts +2 -13
@@ -1,236 +1,16 @@
1
1
  import type { FormState, FormValue } from '@tmagic/form';
2
2
  import type { PropsPanelSlots } from '../type';
3
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
4
4
  extendState?: ((state: FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
5
5
  }>, {
6
- configForm: import("vue").Ref<({
7
- $: import("vue").ComponentInternalInstance;
8
- $data: {};
9
- $props: Partial<{
10
- config: import("@tmagic/form").FormConfig;
11
- initValues: Record<string, any>;
12
- lastValues: Record<string, any>;
13
- isCompare: boolean;
14
- keyProp: string;
15
- parentValues: Record<string, any>;
16
- labelWidth: string;
17
- disabled: boolean;
18
- stepActive: string | number;
19
- height: string;
20
- inline: boolean;
21
- labelPosition: string;
22
- }> & Omit<{
23
- readonly labelWidth: string;
24
- readonly disabled: boolean;
25
- readonly height: string;
26
- readonly config: import("@tmagic/form").FormConfig;
27
- readonly initValues: Record<string, any>;
28
- readonly lastValues: Record<string, any>;
29
- readonly isCompare: boolean;
30
- readonly parentValues: Record<string, any>;
31
- readonly stepActive: string | number;
32
- readonly inline: boolean;
33
- readonly labelPosition: string;
34
- readonly keyProp: string;
35
- readonly size?: "default" | "small" | "large" | undefined;
36
- readonly popperClass?: string | undefined;
37
- readonly extendState?: ((state: FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
38
- onChange?: ((...args: any[]) => any) | undefined;
39
- onError?: ((...args: any[]) => any) | undefined;
40
- "onField-input"?: ((...args: any[]) => any) | undefined;
41
- "onField-change"?: ((...args: any[]) => any) | undefined;
42
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
43
- labelWidth: {
44
- type: import("vue").PropType<string>;
45
- default: string;
46
- };
47
- disabled: {
48
- type: import("vue").PropType<boolean>;
49
- default: boolean;
50
- };
51
- height: {
52
- type: import("vue").PropType<string>;
53
- default: string;
54
- };
55
- config: {
56
- type: import("vue").PropType<import("@tmagic/form").FormConfig>;
57
- required: true;
58
- default: () => never[];
59
- };
60
- size: {
61
- type: import("vue").PropType<"default" | "small" | "large">;
62
- };
63
- popperClass: {
64
- type: import("vue").PropType<string>;
65
- };
66
- initValues: {
67
- type: import("vue").PropType<Record<string, any>>;
68
- required: true;
69
- default: () => {};
70
- };
71
- extendState: {
72
- type: import("vue").PropType<(state: FormState) => Record<string, any> | Promise<Record<string, any>>>;
73
- };
74
- lastValues: {
75
- type: import("vue").PropType<Record<string, any>>;
76
- default: () => {};
77
- };
78
- isCompare: {
79
- type: import("vue").PropType<boolean>;
80
- default: boolean;
81
- };
82
- parentValues: {
83
- type: import("vue").PropType<Record<string, any>>;
84
- default: () => {};
85
- };
86
- stepActive: {
87
- type: import("vue").PropType<string | number>;
88
- default: number;
89
- };
90
- inline: {
91
- type: import("vue").PropType<boolean>;
92
- default: boolean;
93
- };
94
- labelPosition: {
95
- type: import("vue").PropType<string>;
96
- default: string;
97
- };
98
- keyProp: {
99
- type: import("vue").PropType<string>;
100
- default: string;
101
- };
102
- }>> & {
103
- onChange?: ((...args: any[]) => any) | undefined;
104
- onError?: ((...args: any[]) => any) | undefined;
105
- "onField-input"?: ((...args: any[]) => any) | undefined;
106
- "onField-change"?: ((...args: any[]) => any) | undefined;
107
- }, "labelWidth" | "disabled" | "height" | "config" | "initValues" | "lastValues" | "isCompare" | "parentValues" | "stepActive" | "inline" | "labelPosition" | "keyProp">;
108
- $attrs: {
109
- [x: string]: unknown;
110
- };
111
- $refs: {
112
- [x: string]: unknown;
113
- };
114
- $slots: Readonly<{
115
- [name: string]: import("vue").Slot<any> | undefined;
116
- }>;
117
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
118
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
119
- $emit: ((event: "change", ...args: any[]) => void) & ((event: "error", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void);
120
- $el: any;
121
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
122
- labelWidth: {
123
- type: import("vue").PropType<string>;
124
- default: string;
125
- };
126
- disabled: {
127
- type: import("vue").PropType<boolean>;
128
- default: boolean;
129
- };
130
- height: {
131
- type: import("vue").PropType<string>;
132
- default: string;
133
- };
134
- config: {
135
- type: import("vue").PropType<import("@tmagic/form").FormConfig>;
136
- required: true;
137
- default: () => never[];
138
- };
139
- size: {
140
- type: import("vue").PropType<"default" | "small" | "large">;
141
- };
142
- popperClass: {
143
- type: import("vue").PropType<string>;
144
- };
145
- initValues: {
146
- type: import("vue").PropType<Record<string, any>>;
147
- required: true;
148
- default: () => {};
149
- };
150
- extendState: {
151
- type: import("vue").PropType<(state: FormState) => Record<string, any> | Promise<Record<string, any>>>;
152
- };
153
- lastValues: {
154
- type: import("vue").PropType<Record<string, any>>;
155
- default: () => {};
156
- };
157
- isCompare: {
158
- type: import("vue").PropType<boolean>;
159
- default: boolean;
160
- };
161
- parentValues: {
162
- type: import("vue").PropType<Record<string, any>>;
163
- default: () => {};
164
- };
165
- stepActive: {
166
- type: import("vue").PropType<string | number>;
167
- default: number;
168
- };
169
- inline: {
170
- type: import("vue").PropType<boolean>;
171
- default: boolean;
172
- };
173
- labelPosition: {
174
- type: import("vue").PropType<string>;
175
- default: string;
176
- };
177
- keyProp: {
178
- type: import("vue").PropType<string>;
179
- default: string;
180
- };
181
- }>> & {
182
- onChange?: ((...args: any[]) => any) | undefined;
183
- onError?: ((...args: any[]) => any) | undefined;
184
- "onField-input"?: ((...args: any[]) => any) | undefined;
185
- "onField-change"?: ((...args: any[]) => any) | undefined;
186
- }, {
187
- values: import("vue").Ref<FormValue>;
188
- lastValuesProcessed: import("vue").Ref<FormValue>;
189
- formState: FormState;
190
- initialized: import("vue").Ref<boolean>;
191
- changeHandler: () => void;
192
- resetForm: () => any;
193
- submitForm: (native?: boolean | undefined) => Promise<any>;
194
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
195
- change: (...args: any[]) => void;
196
- error: (...args: any[]) => void;
197
- "field-input": (...args: any[]) => void;
198
- "field-change": (...args: any[]) => void;
199
- }, string, {
200
- config: import("@tmagic/form").FormConfig;
201
- initValues: Record<string, any>;
202
- lastValues: Record<string, any>;
203
- isCompare: boolean;
204
- keyProp: string;
205
- parentValues: Record<string, any>;
206
- labelWidth: string;
207
- disabled: boolean;
208
- stepActive: string | number;
209
- height: string;
210
- inline: boolean;
211
- labelPosition: string;
212
- }, {}, string, {}> & {
213
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
214
- created?: ((() => void) | (() => void)[]) | undefined;
215
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
216
- mounted?: ((() => void) | (() => void)[]) | undefined;
217
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
218
- updated?: ((() => void) | (() => void)[]) | undefined;
219
- activated?: ((() => void) | (() => void)[]) | undefined;
220
- deactivated?: ((() => void) | (() => void)[]) | undefined;
221
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
222
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
223
- destroyed?: ((() => void) | (() => void)[]) | undefined;
224
- unmounted?: ((() => void) | (() => void)[]) | undefined;
225
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
226
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
227
- errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
228
- };
229
- $forceUpdate: () => void;
230
- $nextTick: typeof import("vue").nextTick;
231
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
232
- } & Readonly<import("vue").ExtractPropTypes<{
233
- labelWidth: {
6
+ configForm: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
7
+ size: {
8
+ type: import("vue").PropType<"small" | "large" | "default">;
9
+ };
10
+ popperClass: {
11
+ type: import("vue").PropType<string>;
12
+ };
13
+ height: {
234
14
  type: import("vue").PropType<string>;
235
15
  default: string;
236
16
  };
@@ -238,29 +18,186 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
238
18
  type: import("vue").PropType<boolean>;
239
19
  default: boolean;
240
20
  };
21
+ config: {
22
+ type: import("vue").PropType<import("@tmagic/form").FormConfig>;
23
+ required: true;
24
+ default: () => never[];
25
+ };
26
+ labelWidth: {
27
+ type: import("vue").PropType<string>;
28
+ default: string;
29
+ };
30
+ extendState: {
31
+ type: import("vue").PropType<(state: FormState) => Record<string, any> | Promise<Record<string, any>>>;
32
+ };
33
+ initValues: {
34
+ type: import("vue").PropType<Record<string, any>>;
35
+ required: true;
36
+ default: () => {};
37
+ };
38
+ lastValues: {
39
+ type: import("vue").PropType<Record<string, any>>;
40
+ default: () => {};
41
+ };
42
+ isCompare: {
43
+ type: import("vue").PropType<boolean>;
44
+ default: boolean;
45
+ };
46
+ parentValues: {
47
+ type: import("vue").PropType<Record<string, any>>;
48
+ default: () => {};
49
+ };
50
+ stepActive: {
51
+ type: import("vue").PropType<string | number>;
52
+ default: number;
53
+ };
54
+ inline: {
55
+ type: import("vue").PropType<boolean>;
56
+ default: boolean;
57
+ };
58
+ labelPosition: {
59
+ type: import("vue").PropType<string>;
60
+ default: string;
61
+ };
62
+ keyProp: {
63
+ type: import("vue").PropType<string>;
64
+ default: string;
65
+ };
66
+ }>> & {
67
+ onChange?: ((...args: any[]) => any) | undefined;
68
+ onError?: ((...args: any[]) => any) | undefined;
69
+ "onField-input"?: ((...args: any[]) => any) | undefined;
70
+ "onField-change"?: ((...args: any[]) => any) | undefined;
71
+ }, {
72
+ values: import("vue").Ref<FormValue>;
73
+ lastValuesProcessed: import("vue").Ref<FormValue>;
74
+ formState: FormState;
75
+ initialized: import("vue").Ref<boolean>;
76
+ changeHandler: () => void;
77
+ resetForm: () => any;
78
+ submitForm: (native?: boolean | undefined) => Promise<any>;
79
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
80
+ change: (...args: any[]) => void;
81
+ error: (...args: any[]) => void;
82
+ "field-input": (...args: any[]) => void;
83
+ "field-change": (...args: any[]) => void;
84
+ }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
85
+ size: {
86
+ type: import("vue").PropType<"small" | "large" | "default">;
87
+ };
88
+ popperClass: {
89
+ type: import("vue").PropType<string>;
90
+ };
241
91
  height: {
242
92
  type: import("vue").PropType<string>;
243
93
  default: string;
244
94
  };
95
+ disabled: {
96
+ type: import("vue").PropType<boolean>;
97
+ default: boolean;
98
+ };
245
99
  config: {
246
100
  type: import("vue").PropType<import("@tmagic/form").FormConfig>;
247
101
  required: true;
248
102
  default: () => never[];
249
103
  };
250
- size: {
251
- type: import("vue").PropType<"default" | "small" | "large">;
252
- };
253
- popperClass: {
104
+ labelWidth: {
254
105
  type: import("vue").PropType<string>;
106
+ default: string;
107
+ };
108
+ extendState: {
109
+ type: import("vue").PropType<(state: FormState) => Record<string, any> | Promise<Record<string, any>>>;
255
110
  };
256
111
  initValues: {
257
112
  type: import("vue").PropType<Record<string, any>>;
258
113
  required: true;
259
114
  default: () => {};
260
115
  };
116
+ lastValues: {
117
+ type: import("vue").PropType<Record<string, any>>;
118
+ default: () => {};
119
+ };
120
+ isCompare: {
121
+ type: import("vue").PropType<boolean>;
122
+ default: boolean;
123
+ };
124
+ parentValues: {
125
+ type: import("vue").PropType<Record<string, any>>;
126
+ default: () => {};
127
+ };
128
+ stepActive: {
129
+ type: import("vue").PropType<string | number>;
130
+ default: number;
131
+ };
132
+ inline: {
133
+ type: import("vue").PropType<boolean>;
134
+ default: boolean;
135
+ };
136
+ labelPosition: {
137
+ type: import("vue").PropType<string>;
138
+ default: string;
139
+ };
140
+ keyProp: {
141
+ type: import("vue").PropType<string>;
142
+ default: string;
143
+ };
144
+ }>> & {
145
+ onChange?: ((...args: any[]) => any) | undefined;
146
+ onError?: ((...args: any[]) => any) | undefined;
147
+ "onField-input"?: ((...args: any[]) => any) | undefined;
148
+ "onField-change"?: ((...args: any[]) => any) | undefined;
149
+ }, {
150
+ config: import("@tmagic/form").FormConfig;
151
+ initValues: Record<string, any>;
152
+ lastValues: Record<string, any>;
153
+ isCompare: boolean;
154
+ keyProp: string;
155
+ parentValues: Record<string, any>;
156
+ labelWidth: string;
157
+ disabled: boolean;
158
+ height: string;
159
+ stepActive: string | number;
160
+ inline: boolean;
161
+ labelPosition: string;
162
+ }, true, {}, {}, {
163
+ P: {};
164
+ B: {};
165
+ D: {};
166
+ C: {};
167
+ M: {};
168
+ Defaults: {};
169
+ }, Readonly<import("vue").ExtractPropTypes<{
170
+ size: {
171
+ type: import("vue").PropType<"small" | "large" | "default">;
172
+ };
173
+ popperClass: {
174
+ type: import("vue").PropType<string>;
175
+ };
176
+ height: {
177
+ type: import("vue").PropType<string>;
178
+ default: string;
179
+ };
180
+ disabled: {
181
+ type: import("vue").PropType<boolean>;
182
+ default: boolean;
183
+ };
184
+ config: {
185
+ type: import("vue").PropType<import("@tmagic/form").FormConfig>;
186
+ required: true;
187
+ default: () => never[];
188
+ };
189
+ labelWidth: {
190
+ type: import("vue").PropType<string>;
191
+ default: string;
192
+ };
261
193
  extendState: {
262
194
  type: import("vue").PropType<(state: FormState) => Record<string, any> | Promise<Record<string, any>>>;
263
195
  };
196
+ initValues: {
197
+ type: import("vue").PropType<Record<string, any>>;
198
+ required: true;
199
+ default: () => {};
200
+ };
264
201
  lastValues: {
265
202
  type: import("vue").PropType<Record<string, any>>;
266
203
  default: () => {};
@@ -294,7 +231,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
294
231
  onError?: ((...args: any[]) => any) | undefined;
295
232
  "onField-input"?: ((...args: any[]) => any) | undefined;
296
233
  "onField-change"?: ((...args: any[]) => any) | undefined;
297
- } & import("vue").ShallowUnwrapRef<{
234
+ }, {
298
235
  values: import("vue").Ref<FormValue>;
299
236
  lastValuesProcessed: import("vue").Ref<FormValue>;
300
237
  formState: FormState;
@@ -302,22 +239,40 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
302
239
  changeHandler: () => void;
303
240
  resetForm: () => any;
304
241
  submitForm: (native?: boolean | undefined) => Promise<any>;
305
- }> & {} & import("vue").ComponentCustomProperties & {}) | undefined>;
242
+ }, {}, {}, {}, {
243
+ config: import("@tmagic/form").FormConfig;
244
+ initValues: Record<string, any>;
245
+ lastValues: Record<string, any>;
246
+ isCompare: boolean;
247
+ keyProp: string;
248
+ parentValues: Record<string, any>;
249
+ labelWidth: string;
250
+ disabled: boolean;
251
+ height: string;
252
+ stepActive: string | number;
253
+ inline: boolean;
254
+ labelPosition: string;
255
+ }> | undefined>;
306
256
  submit: () => Promise<void>;
307
257
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
308
258
  mounted: (...args: any[]) => void;
309
259
  "submit-error": (...args: any[]) => void;
310
260
  "form-error": (...args: any[]) => void;
311
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
261
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
312
262
  extendState?: ((state: FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
313
263
  }>>> & {
314
264
  onMounted?: ((...args: any[]) => any) | undefined;
315
265
  "onSubmit-error"?: ((...args: any[]) => any) | undefined;
316
266
  "onForm-error"?: ((...args: any[]) => any) | undefined;
317
- }, {}, {}>, Readonly<PropsPanelSlots>>;
267
+ }, {}, {}>, Readonly<PropsPanelSlots> & PropsPanelSlots>;
318
268
  export default _default;
269
+ type __VLS_WithTemplateSlots<T, S> = T & {
270
+ new (): {
271
+ $slots: S;
272
+ };
273
+ };
319
274
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
320
- type __VLS_TypePropsToRuntimeProps<T> = {
275
+ type __VLS_TypePropsToOption<T> = {
321
276
  [K in keyof T]-?: {} extends Pick<T, K> ? {
322
277
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
323
278
  } : {
@@ -325,8 +280,3 @@ type __VLS_TypePropsToRuntimeProps<T> = {
325
280
  required: true;
326
281
  };
327
282
  };
328
- type __VLS_WithTemplateSlots<T, S> = T & {
329
- new (): {
330
- $slots: S;
331
- };
332
- };
@@ -1,12 +1,12 @@
1
1
  import { NodeType } from '@tmagic/schema';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
3
  type: NodeType.PAGE | NodeType.PAGE_FRAGMENT;
4
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
5
5
  type: NodeType.PAGE | NodeType.PAGE_FRAGMENT;
6
6
  }>>>, {}, {}>;
7
7
  export default _default;
8
8
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
- type __VLS_TypePropsToRuntimeProps<T> = {
9
+ type __VLS_TypePropsToOption<T> = {
10
10
  [K in keyof T]-?: {} extends Pick<T, K> ? {
11
11
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
12
  } : {
@@ -1,7 +1,7 @@
1
1
  import { type MPage, type MPageFragment } from '@tmagic/schema';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
3
  disabledPageFragment: boolean;
4
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
5
5
  disabledPageFragment: boolean;
6
6
  }>>>, {}, {}>, {
7
7
  "page-bar-title"?(_: {
@@ -12,8 +12,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
12
12
  }): any;
13
13
  }>;
14
14
  export default _default;
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
15
20
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
- type __VLS_TypePropsToRuntimeProps<T> = {
21
+ type __VLS_TypePropsToOption<T> = {
17
22
  [K in keyof T]-?: {} extends Pick<T, K> ? {
18
23
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
24
  } : {
@@ -21,8 +26,3 @@ type __VLS_TypePropsToRuntimeProps<T> = {
21
26
  required: true;
22
27
  };
23
28
  };
24
- type __VLS_WithTemplateSlots<T, S> = T & {
25
- new (): {
26
- $slots: S;
27
- };
28
- };
@@ -1,15 +1,20 @@
1
1
  import { NodeType } from '@tmagic/schema';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
3
  type: NodeType.PAGE | NodeType.PAGE_FRAGMENT;
4
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
5
5
  type: NodeType.PAGE | NodeType.PAGE_FRAGMENT;
6
6
  }>>>, {}, {}>, {
7
7
  prepend?(_: {}): any;
8
8
  default?(_: {}): any;
9
9
  }>;
10
10
  export default _default;
11
+ type __VLS_WithTemplateSlots<T, S> = T & {
12
+ new (): {
13
+ $slots: S;
14
+ };
15
+ };
11
16
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
- type __VLS_TypePropsToRuntimeProps<T> = {
17
+ type __VLS_TypePropsToOption<T> = {
13
18
  [K in keyof T]-?: {} extends Pick<T, K> ? {
14
19
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
20
  } : {
@@ -17,8 +22,3 @@ type __VLS_TypePropsToRuntimeProps<T> = {
17
22
  required: true;
18
23
  };
19
24
  };
20
- type __VLS_WithTemplateSlots<T, S> = T & {
21
- new (): {
22
- $slots: S;
23
- };
24
- };
@@ -1,16 +1,16 @@
1
1
  import { NodeType } from '@tmagic/schema';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
3
  modelValue: NodeType.PAGE | NodeType.PAGE_FRAGMENT;
4
4
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
5
  "update:modelValue": (value: NodeType.PAGE | NodeType.PAGE_FRAGMENT) => void;
6
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
7
7
  modelValue: NodeType.PAGE | NodeType.PAGE_FRAGMENT;
8
8
  }>>> & {
9
9
  "onUpdate:modelValue"?: ((value: NodeType.PAGE | NodeType.PAGE_FRAGMENT) => any) | undefined;
10
10
  }, {}, {}>;
11
11
  export default _default;
12
12
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
- type __VLS_TypePropsToRuntimeProps<T> = {
13
+ type __VLS_TypePropsToOption<T> = {
14
14
  [K in keyof T]-?: {} extends Pick<T, K> ? {
15
15
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
16
  } : {
@@ -1,5 +1,5 @@
1
1
  import { ComponentListPanelSlots } from '../../type';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, Readonly<ComponentListPanelSlots>>;
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, Readonly<ComponentListPanelSlots> & ComponentListPanelSlots>;
3
3
  export default _default;
4
4
  type __VLS_WithTemplateSlots<T, S> = T & {
5
5
  new (): {
@@ -1,5 +1,5 @@
1
- import type { MenuButton, MenuComponent, SideBarData } from '../../type';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ import { type MenuButton, type MenuComponent, type SideBarData } from '../../type';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
3
  data: SideBarData;
4
4
  layerContentMenu: (MenuButton | MenuComponent)[];
5
5
  customContentMenu?: ((menus: (MenuButton | MenuComponent)[], type: string) => (MenuButton | MenuComponent)[]) | undefined;
@@ -11,7 +11,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
11
11
  };
12
12
  }>, {
13
13
  activeTabName: import("vue").Ref<string>;
14
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
14
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
15
15
  data: SideBarData;
16
16
  layerContentMenu: (MenuButton | MenuComponent)[];
17
17
  customContentMenu?: ((menus: (MenuButton | MenuComponent)[], type: string) => (MenuButton | MenuComponent)[]) | undefined;
@@ -23,17 +23,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
23
23
  };
24
24
  }>>>, {
25
25
  data: SideBarData;
26
- }, {}>, Readonly<import("../../type").LayerPanelSlots & import("../../type").CodeBlockListPanelSlots & import("../../type").ComponentListPanelSlots & import("../../type").DataSourceListSlots>>;
26
+ }, {}>, Readonly<import("../../type").LayerPanelSlots & import("../../type").CodeBlockListPanelSlots & import("../../type").ComponentListPanelSlots & import("../../type").DataSourceListSlots> & import("../../type").LayerPanelSlots & import("../../type").CodeBlockListPanelSlots & import("../../type").ComponentListPanelSlots & import("../../type").DataSourceListSlots>;
27
27
  export default _default;
28
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
29
- type __VLS_TypePropsToRuntimeProps<T> = {
30
- [K in keyof T]-?: {} extends Pick<T, K> ? {
31
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
32
- } : {
33
- type: import('vue').PropType<T[K]>;
34
- required: true;
35
- };
36
- };
37
28
  type __VLS_WithDefaults<P, D> = {
38
29
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
39
30
  default: D[K];
@@ -47,3 +38,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
47
38
  $slots: S;
48
39
  };
49
40
  };
41
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
42
+ type __VLS_TypePropsToOption<T> = {
43
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
44
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
45
+ } : {
46
+ type: import('vue').PropType<T[K]>;
47
+ required: true;
48
+ };
49
+ };