@tmagic/editor 1.8.0-beta.0 → 1.8.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 (138) hide show
  1. package/dist/es/Editor.vue_vue_type_script_setup_true_lang.js +11 -2
  2. package/dist/es/components/CodeBlockEditor.vue_vue_type_script_setup_true_lang.js +18 -110
  3. package/dist/es/components/CodeParams.vue_vue_type_script_setup_true_lang.js +6 -0
  4. package/dist/es/components/CompareForm.js +5 -0
  5. package/dist/es/components/CompareForm.vue_vue_type_script_setup_true_lang.js +167 -0
  6. package/dist/es/fields/Code.vue_vue_type_script_setup_true_lang.js +19 -3
  7. package/dist/es/fields/CodeSelect.vue_vue_type_script_setup_true_lang.js +18 -2
  8. package/dist/es/fields/CodeSelectCol.vue_vue_type_script_setup_true_lang.js +37 -6
  9. package/dist/es/fields/DataSourceFieldSelect/FieldSelect.vue_vue_type_script_setup_true_lang.js +3 -1
  10. package/dist/es/fields/DataSourceFieldSelect/Index.vue_vue_type_script_setup_true_lang.js +12 -3
  11. package/dist/es/fields/DataSourceFields.vue_vue_type_script_setup_true_lang.js +14 -6
  12. package/dist/es/fields/DataSourceMethodSelect.vue_vue_type_script_setup_true_name_true_lang.js +3 -1
  13. package/dist/es/fields/DataSourceMethods.vue_vue_type_script_setup_true_lang.js +15 -7
  14. package/dist/es/fields/DataSourceMocks.vue_vue_type_script_setup_true_lang.js +14 -6
  15. package/dist/es/fields/DataSourceSelect.vue_vue_type_script_setup_true_lang.js +3 -1
  16. package/dist/es/fields/EventSelect.vue_vue_type_script_setup_true_lang.js +58 -11
  17. package/dist/es/fields/KeyValue.vue_vue_type_script_setup_true_lang.js +11 -6
  18. package/dist/es/fields/StyleSetter/Index.vue_vue_type_script_setup_true_lang.js +8 -2
  19. package/dist/es/fields/StyleSetter/components/Border.vue_vue_type_script_setup_true_lang.js +10 -2
  20. package/dist/es/fields/StyleSetter/components/Box.vue_vue_type_script_setup_true_lang.js +3 -1
  21. package/dist/es/fields/StyleSetter/pro/Background.vue_vue_type_script_setup_true_lang.js +10 -2
  22. package/dist/es/fields/StyleSetter/pro/Border.vue_vue_type_script_setup_true_lang.js +16 -3
  23. package/dist/es/fields/StyleSetter/pro/Font.vue_vue_type_script_setup_true_lang.js +10 -2
  24. package/dist/es/fields/StyleSetter/pro/Layout.vue_vue_type_script_setup_true_lang.js +14 -2
  25. package/dist/es/fields/StyleSetter/pro/Position.vue_vue_type_script_setup_true_lang.js +10 -2
  26. package/dist/es/fields/StyleSetter/pro/Transform.vue_vue_type_script_setup_true_lang.js +10 -2
  27. package/dist/es/fields/UISelect.vue_vue_type_script_setup_true_lang.js +8 -5
  28. package/dist/es/hooks/use-code-block-edit.js +2 -2
  29. package/dist/es/hooks/use-stage.js +15 -7
  30. package/dist/es/index.js +3 -1
  31. package/dist/es/initService.js +6 -6
  32. package/dist/es/layouts/CodeEditor.vue_vue_type_script_setup_true_lang.js +4 -0
  33. package/dist/es/layouts/Framework.vue_vue_type_script_setup_true_lang.js +12 -7
  34. package/dist/es/layouts/NavMenu.vue_vue_type_script_setup_true_lang.js +8 -0
  35. package/dist/es/layouts/history-list/Bucket.js +5 -0
  36. package/dist/es/layouts/history-list/Bucket.vue_vue_type_script_setup_true_lang.js +84 -0
  37. package/dist/es/layouts/history-list/CodeBlockTab.js +5 -0
  38. package/dist/es/layouts/history-list/CodeBlockTab.vue_vue_type_script_setup_true_lang.js +62 -0
  39. package/dist/es/layouts/history-list/DataSourceTab.js +5 -0
  40. package/dist/es/layouts/history-list/DataSourceTab.vue_vue_type_script_setup_true_lang.js +62 -0
  41. package/dist/es/layouts/history-list/GroupRow.js +5 -0
  42. package/dist/es/layouts/history-list/GroupRow.vue_vue_type_script_setup_true_lang.js +180 -0
  43. package/dist/es/layouts/history-list/HistoryDiffDialog.js +5 -0
  44. package/dist/es/layouts/history-list/HistoryDiffDialog.vue_vue_type_script_setup_true_lang.js +195 -0
  45. package/dist/es/layouts/history-list/HistoryListPanel.js +5 -0
  46. package/dist/es/layouts/history-list/HistoryListPanel.vue_vue_type_script_setup_true_lang.js +270 -0
  47. package/dist/es/layouts/history-list/InitialRow.js +5 -0
  48. package/dist/es/layouts/history-list/InitialRow.vue_vue_type_script_setup_true_lang.js +48 -0
  49. package/dist/es/layouts/history-list/PageTab.js +5 -0
  50. package/dist/es/layouts/history-list/PageTab.vue_vue_type_script_setup_true_lang.js +99 -0
  51. package/dist/es/layouts/history-list/composables.js +154 -0
  52. package/dist/es/layouts/sidebar/layer/use-node-status.js +38 -4
  53. package/dist/es/services/BaseService.js +31 -68
  54. package/dist/es/services/codeBlock.js +205 -8
  55. package/dist/es/services/componentList.js +2 -2
  56. package/dist/es/services/dataSource.js +217 -8
  57. package/dist/es/services/dep.js +21 -9
  58. package/dist/es/services/editor.js +350 -160
  59. package/dist/es/services/events.js +2 -2
  60. package/dist/es/services/history.js +407 -12
  61. package/dist/es/services/keybinding.js +2 -2
  62. package/dist/es/services/props.js +8 -8
  63. package/dist/es/services/stageOverlay.js +2 -2
  64. package/dist/es/services/storage.js +2 -2
  65. package/dist/es/services/ui.js +2 -2
  66. package/dist/es/style.css +347 -1
  67. package/dist/es/utils/code-block.js +122 -0
  68. package/dist/es/utils/content-menu.js +4 -5
  69. package/dist/es/utils/dep/worker.js +1 -1
  70. package/dist/es/utils/editor.js +3 -3
  71. package/dist/es/utils/undo-redo.js +20 -0
  72. package/dist/style.css +347 -1
  73. package/dist/tmagic-editor.umd.cjs +3273 -766
  74. package/package.json +7 -7
  75. package/src/Editor.vue +7 -0
  76. package/src/components/CodeBlockEditor.vue +20 -109
  77. package/src/components/CodeParams.vue +6 -0
  78. package/src/components/CompareForm.vue +225 -0
  79. package/src/editorProps.ts +2 -0
  80. package/src/fields/Code.vue +19 -3
  81. package/src/fields/CodeSelect.vue +17 -1
  82. package/src/fields/CodeSelectCol.vue +30 -2
  83. package/src/fields/DataSourceFieldSelect/FieldSelect.vue +7 -1
  84. package/src/fields/DataSourceFieldSelect/Index.vue +9 -2
  85. package/src/fields/DataSourceFields.vue +12 -3
  86. package/src/fields/DataSourceMethodSelect.vue +4 -1
  87. package/src/fields/DataSourceMethods.vue +14 -4
  88. package/src/fields/DataSourceMocks.vue +13 -3
  89. package/src/fields/DataSourceSelect.vue +4 -1
  90. package/src/fields/EventSelect.vue +57 -8
  91. package/src/fields/KeyValue.vue +17 -4
  92. package/src/fields/StyleSetter/Index.vue +6 -0
  93. package/src/fields/StyleSetter/components/Border.vue +15 -1
  94. package/src/fields/StyleSetter/components/Box.vue +2 -0
  95. package/src/fields/StyleSetter/pro/Background.vue +15 -1
  96. package/src/fields/StyleSetter/pro/Border.vue +24 -2
  97. package/src/fields/StyleSetter/pro/Font.vue +15 -1
  98. package/src/fields/StyleSetter/pro/Layout.vue +17 -1
  99. package/src/fields/StyleSetter/pro/Position.vue +15 -1
  100. package/src/fields/StyleSetter/pro/Transform.vue +15 -1
  101. package/src/fields/UISelect.vue +5 -2
  102. package/src/hooks/use-code-block-edit.ts +5 -2
  103. package/src/hooks/use-stage.ts +23 -7
  104. package/src/index.ts +1 -0
  105. package/src/layouts/CodeEditor.vue +15 -0
  106. package/src/layouts/Framework.vue +10 -5
  107. package/src/layouts/NavMenu.vue +9 -0
  108. package/src/layouts/history-list/Bucket.vue +99 -0
  109. package/src/layouts/history-list/CodeBlockTab.vue +61 -0
  110. package/src/layouts/history-list/DataSourceTab.vue +61 -0
  111. package/src/layouts/history-list/GroupRow.vue +207 -0
  112. package/src/layouts/history-list/HistoryDiffDialog.vue +212 -0
  113. package/src/layouts/history-list/HistoryListPanel.vue +271 -0
  114. package/src/layouts/history-list/InitialRow.vue +41 -0
  115. package/src/layouts/history-list/PageTab.vue +94 -0
  116. package/src/layouts/history-list/composables.ts +195 -0
  117. package/src/layouts/sidebar/layer/use-node-status.ts +64 -12
  118. package/src/services/BaseService.ts +35 -86
  119. package/src/services/codeBlock.ts +256 -5
  120. package/src/services/dataSource.ts +257 -6
  121. package/src/services/dep.ts +32 -9
  122. package/src/services/editor.ts +454 -171
  123. package/src/services/history.ts +452 -8
  124. package/src/services/props.ts +2 -2
  125. package/src/theme/history-list-panel.scss +423 -0
  126. package/src/theme/theme.scss +1 -0
  127. package/src/type.ts +179 -6
  128. package/src/utils/code-block.ts +150 -0
  129. package/src/utils/content-menu.ts +8 -5
  130. package/src/utils/dep/worker.ts +5 -3
  131. package/src/utils/editor.ts +4 -1
  132. package/src/utils/index.ts +1 -0
  133. package/src/utils/undo-redo.ts +23 -0
  134. package/types/index.d.ts +2107 -810
  135. package/dist/es/utils/compose.js +0 -44
  136. package/dist/es/utils/editor-history.js +0 -100
  137. package/src/utils/compose.ts +0 -52
  138. package/src/utils/editor-history.ts +0 -138
package/types/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import formPlugin, { CascaderOption, ChangeRecord, CodeSelectColConfig, CodeSelectConfig, CondOpSelectConfig, ContainerChangeEventData, DataSourceFieldSelectConfig, DataSourceFieldsConfig, DataSourceInputConfig, DataSourceMethodSelectConfig, DataSourceMethodsConfig, DataSourceMocksConfig, DataSourceSelect, DisplayCondsConfig, EventSelectConfig, FieldProps, FormConfig, FormInstallOptions, FormState, FormValue, KeyValueConfig, PageFragmentSelectConfig, TabPaneConfig, TableColumnConfig, TypeFunction } from "@tmagic/form";
1
+ import formPlugin, { CascaderOption, ChangeRecord, CodeSelectColConfig, CodeSelectConfig, CondOpSelectConfig, ContainerChangeEventData, DataSourceFieldSelectConfig, DataSourceFieldsConfig, DataSourceInputConfig, DataSourceMethodSelectConfig, DataSourceMethodsConfig, DataSourceMocksConfig, DataSourceSelect, DisplayCondsConfig, EventSelectConfig, FieldProps, FormConfig, FormInstallOptions, FormState, FormValue, KeyValueConfig, MForm, PageFragmentSelectConfig, TabPaneConfig, TableColumnConfig, TypeFunction } from "@tmagic/form";
2
2
  import tablePlugin from "@tmagic/table";
3
3
  import StageCore, { CanDropIn, ContainerHighlightType, CustomizeMoveableOptions, GuidesOptions, RenderType, UpdateDragEl, default as StageCore$1 } from "@tmagic/stage";
4
4
  import designPlugin, { ButtonProps, DesignPluginOptions } from "@tmagic/design";
@@ -9,6 +9,7 @@ import EventEmitter, { EventEmitter as EventEmitter$1 } from "events";
9
9
  import * as Monaco from "monaco-editor";
10
10
  import Sortable, { Options, SortableEvent } from "sortablejs";
11
11
  import { PascalCasedProperties, Writable } from "type-fest";
12
+ import { FormItemConfig } from "@tmagic/form-schema";
12
13
  import { StyleSchema } from "@tmagic/schema";
13
14
  export * from "@tmagic/form";
14
15
  export * from "@tmagic/table";
@@ -18,10 +19,9 @@ export * from "@tmagic/utils";
18
19
 
19
20
  //#region temp/packages/editor/src/services/BaseService.d.ts
20
21
  /**
21
- * 提供两种方式对Class进行扩展
22
- * 方法1:
22
+ * Class进行扩展
23
23
  * 给Class中的每个方法都添加before after两个钩子
24
- * 给Class添加一个usePlugin方法,use方法可以传入一个包含before或者after方法的对象
24
+ * 给Class添加一个usePlugin方法,usePlugin方法可以传入一个包含before或者after方法的对象
25
25
  *
26
26
  * 例如:
27
27
  * Class EditorService extends BaseService {
@@ -46,37 +46,15 @@ export * from "@tmagic/utils";
46
46
  *
47
47
  * 调用时的参数会透传到before方法的参数中, 然后before的return 会作为原方法的参数和after的参数,after第一个参数则是原方法的return值;
48
48
  * 如需终止后续方法调用可以return new Error();
49
- *
50
- * 方法2:
51
- * 给Class中的每个方法都添加中间件
52
- * 给Class添加一个use方法,use方法可以传入一个包含源对象方法名作为key值的对象
53
- *
54
- * 例如:
55
- * Class EditorService extends BaseService {
56
- * constructor() {
57
- * super([ { name: 'add', isAsync: true },]);
58
- * }
59
- * add(value) { return result; }
60
- * };
61
- *
62
- * const editorService = new EditorService();
63
- * editorService.use({
64
- * add(value, next) { console.log(value); next() },
65
- * });
66
49
  */
67
- declare class export_default extends EventEmitter$1 {
50
+ declare class BaseService extends EventEmitter$1 {
68
51
  private pluginOptionsList;
69
- private middleware;
70
52
  private taskList;
71
53
  private doingTask;
72
54
  constructor(methods?: {
73
55
  name: string;
74
56
  isAsync: boolean;
75
57
  }[], serialMethods?: string[]);
76
- /**
77
- * @deprecated 请使用usePlugin代替
78
- */
79
- use(options: Record<string, Function>): void;
80
58
  usePlugin(options: Record<string, Function>): void;
81
59
  removePlugin(options: Record<string, Function>): void;
82
60
  removeAllPlugins(): void;
@@ -89,7 +67,7 @@ declare const canUsePluginMethods$7: {
89
67
  sync: string[];
90
68
  };
91
69
  type AsyncMethodName$4 = Writable<(typeof canUsePluginMethods$7)['async']>;
92
- declare class CodeBlock extends export_default {
70
+ declare class CodeBlock extends BaseService {
93
71
  private state;
94
72
  constructor();
95
73
  /**
@@ -115,18 +93,32 @@ declare class CodeBlock extends export_default {
115
93
  * 设置代码块ID和代码内容到源dsl
116
94
  * @param {Id} id 代码块id
117
95
  * @param {CodeBlockContent} codeConfig 代码块内容配置信息
96
+ * @param options 可选配置
97
+ * @param options.changeRecords form 端 propPath/value 列表,用于历史记录的精细化撤销/重做
98
+ * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
118
99
  * @returns {void}
119
100
  */
120
- setCodeDslById(id: Id, codeConfig: Partial<CodeBlockContent>): Promise<void>;
101
+ setCodeDslById(id: Id, codeConfig: Partial<CodeBlockContent>, {
102
+ changeRecords,
103
+ doNotPushHistory
104
+ }?: HistoryOpOptionsWithChangeRecords): Promise<void>;
121
105
  /**
122
106
  * 为了兼容历史原因
123
107
  * 设置代码块ID和代码内容到源dsl
124
108
  * @param {Id} id 代码块id
125
109
  * @param {CodeBlockContent} codeConfig 代码块内容配置信息
126
110
  * @param {boolean} force 是否强制写入,默认true
111
+ * @param options 可选配置
112
+ * @param options.changeRecords form 端 propPath/value 列表,用于历史记录的精细化撤销/重做
113
+ * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
114
+ * @param options.historyDescription 入栈时附带的人类可读描述,用于历史面板展示
127
115
  * @returns {void}
128
116
  */
129
- setCodeDslByIdSync(id: Id, codeConfig: Partial<CodeBlockContent>, force?: boolean): void;
117
+ setCodeDslByIdSync(id: Id, codeConfig: Partial<CodeBlockContent>, force?: boolean, {
118
+ changeRecords,
119
+ doNotPushHistory,
120
+ historyDescription
121
+ }?: HistoryOpOptionsWithChangeRecords): void;
130
122
  /**
131
123
  * 根据代码块id数组获取代码dsl
132
124
  * @param {string[]} ids 代码块id数组
@@ -181,10 +173,56 @@ declare class CodeBlock extends export_default {
181
173
  /**
182
174
  * 在dsl数据源中删除指定id的代码块
183
175
  * @param {Id[]} codeIds 需要删除的代码块id数组
176
+ * @param options 可选配置
177
+ * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
184
178
  */
185
- deleteCodeDslByIds(codeIds: Id[]): Promise<void>;
179
+ deleteCodeDslByIds(codeIds: Id[], {
180
+ doNotPushHistory,
181
+ historyDescription
182
+ }?: HistoryOpOptions): Promise<void>;
186
183
  setParamsColConfig(config: TableColumnConfig): void;
187
184
  getParamsColConfig(): TableColumnConfig | undefined;
185
+ /**
186
+ * 撤销指定代码块的最近一次变更。
187
+ *
188
+ * 内部走 setCodeDslByIdSync / deleteCodeDslByIds,因此会自动触发 codeBlockService 的
189
+ * `addOrUpdate` / `remove` 事件,由 initService 中的 handler 重新维护 dep target
190
+ * (DepTargetType.CODE_BLOCK 的 add / remove)。所有写回都带 `doNotPushHistory: true`,
191
+ * 确保不会在历史栈里产生新的记录。
192
+ *
193
+ * @param id 代码块 id
194
+ * @returns 撤销的 step;栈不存在或已无可撤销时返回 null
195
+ */
196
+ undo(id: Id): Promise<CodeBlockStepValue | null>;
197
+ /**
198
+ * 重做指定代码块的下一次变更。
199
+ * @param id 代码块 id
200
+ * @returns 重做的 step;栈不存在或已无可重做时返回 null
201
+ */
202
+ redo(id: Id): Promise<CodeBlockStepValue | null>;
203
+ /** 是否可对指定代码块撤销。 */
204
+ canUndo(id: Id): boolean;
205
+ /** 是否可对指定代码块重做。 */
206
+ canRedo(id: Id): boolean;
207
+ /**
208
+ * 跳转指定代码块的历史栈到目标游标。语义同 editor.gotoPageStep。
209
+ *
210
+ * @param id 代码块 id
211
+ * @param targetCursor 目标游标位置(已应用步骤数量)
212
+ * @returns 实际移动到的最终游标位置
213
+ */
214
+ goto(id: Id, targetCursor: number): Promise<number>;
215
+ /**
216
+ * 「回滚」指定代码块历史步骤(类 git revert 语义):
217
+ * - 不动原始栈结构(不移动 cursor、不丢弃任何步骤);
218
+ * - 把目标 step 的修改**反向应用**一次,并作为**新步骤**追加到栈顶;
219
+ * - 仅对已应用的步骤生效。
220
+ *
221
+ * @param id 代码块 id
222
+ * @param index 目标 step 在该栈中的索引(0 为最早),通常由历史面板传入
223
+ * @returns 反向后产生的新 step;目标不存在 / 未应用时返回 null
224
+ */
225
+ revert(id: Id, index: number): Promise<CodeBlockStepValue | null>;
188
226
  /**
189
227
  * 生成代码块唯一id
190
228
  * @returns {Id} 代码块唯一id
@@ -204,12 +242,32 @@ declare class CodeBlock extends export_default {
204
242
  resetState(): void;
205
243
  destroy(): void;
206
244
  usePlugin(options: AsyncHookPlugin<AsyncMethodName$4, CodeBlock>): void;
245
+ /**
246
+ * 反向应用一个 step 并以新 step 入栈。逻辑与 applyHistoryStep(reverse=true) 同构,
247
+ * 差异仅在于通过公开的 setCodeDslByIdSync / deleteCodeDslByIds 触发 push。
248
+ */
249
+ private applyRevertStep;
250
+ /**
251
+ * 把一条历史 step 应用到当前代码块服务上。
252
+ *
253
+ * 复用现有的 setCodeDslByIdSync / deleteCodeDslByIds,目的是借助它们发出的事件
254
+ * 触发 initService 中的 dep target 维护(CODE_BLOCK 的 add / remove)。
255
+ * 所有写回都带 `doNotPushHistory: true`,确保不会在历史栈里产生新的记录。
256
+ *
257
+ * - oldContent=null, newContent≠null:原始为新增 → undo 删除;redo 再次 setCodeDslByIdSync
258
+ * - oldContent≠null, newContent=null:原始为删除 → undo 还原写入;redo 再次删除
259
+ * - 两侧都有:原始为更新 → 按 changeRecords 局部 patch;缺省退化为整内容替换
260
+ *
261
+ * @param step 历史 step
262
+ * @param reverse true=撤销,false=重做
263
+ */
264
+ private applyHistoryStep;
207
265
  }
208
266
  type CodeBlockService = CodeBlock;
209
- declare const _default$34: CodeBlock;
267
+ declare const _default$35: CodeBlock;
210
268
  //#endregion
211
269
  //#region temp/packages/editor/src/services/componentList.d.ts
212
- declare class ComponentList extends export_default {
270
+ declare class ComponentList extends BaseService {
213
271
  private state;
214
272
  constructor();
215
273
  /**
@@ -238,7 +296,7 @@ declare const canUsePluginMethods$6: {
238
296
  sync: readonly ["getFormConfig", "setFormConfig", "getFormValue", "setFormValue", "getFormEvent", "setFormEvent", "getFormMethod", "setFormMethod", "add", "update", "remove", "createId"];
239
297
  };
240
298
  type SyncMethodName$4 = Writable<(typeof canUsePluginMethods$6)['sync']>;
241
- declare class DataSource extends export_default {
299
+ declare class DataSource extends BaseService {
242
300
  private state;
243
301
  constructor();
244
302
  set<K extends StateKey$1, T extends State$2[K]>(name: K, value: T): void;
@@ -251,7 +309,17 @@ declare class DataSource extends export_default {
251
309
  setFormEvent(type: string, value?: EventOption[]): void;
252
310
  getFormMethod(type?: string): EventOption[];
253
311
  setFormMethod(type: string, value?: EventOption[]): void;
254
- add(config: DataSourceSchema): {
312
+ /**
313
+ * 新增数据源
314
+ * @param config 数据源配置
315
+ * @param options 可选配置
316
+ * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
317
+ * @param options.historyDescription 入栈时附带的人类可读描述,用于历史面板展示
318
+ */
319
+ add(config: DataSourceSchema, {
320
+ doNotPushHistory,
321
+ historyDescription
322
+ }?: HistoryOpOptions): {
255
323
  id: string;
256
324
  type: string;
257
325
  title?: string;
@@ -262,12 +330,70 @@ declare class DataSource extends export_default {
262
330
  events: import("@tmagic/schema").EventConfig[];
263
331
  disabledInitInJsEngine?: (import("@tmagic/schema").JsEngine | string)[];
264
332
  };
333
+ /**
334
+ * 更新数据源
335
+ * @param config 数据源配置
336
+ * @param data 额外数据
337
+ * @param data.changeRecords form 端变更记录
338
+ * @param data.doNotPushHistory 是否不写入历史记录(默认 false)
339
+ * @param data.historyDescription 入栈时附带的人类可读描述,用于历史面板展示
340
+ */
265
341
  update(config: DataSourceSchema, {
266
- changeRecords
267
- }?: {
268
- changeRecords?: ChangeRecord[];
269
- }): DataSourceSchema;
270
- remove(id: string): void;
342
+ changeRecords,
343
+ doNotPushHistory,
344
+ historyDescription
345
+ }?: HistoryOpOptionsWithChangeRecords): DataSourceSchema;
346
+ /**
347
+ * 删除数据源
348
+ * @param id 数据源 id
349
+ * @param options 可选配置
350
+ * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
351
+ * @param options.historyDescription 入栈时附带的人类可读描述,用于历史面板展示
352
+ */
353
+ remove(id: string, {
354
+ doNotPushHistory,
355
+ historyDescription
356
+ }?: HistoryOpOptions): void;
357
+ /**
358
+ * 撤销指定数据源的最近一次变更。
359
+ *
360
+ * 内部走 add / update / remove,因此会自动触发 dataSourceService 的事件,
361
+ * 由 initService 中的对应 handler 重新收集 dep(DATA_SOURCE / DATA_SOURCE_COND / DATA_SOURCE_METHOD)。
362
+ * 所有写回都带 `doNotPushHistory: true`,避免在历史栈里产生新的记录。
363
+ *
364
+ * @param id 数据源 id
365
+ * @returns 撤销的 step;栈不存在或已无可撤销时返回 null
366
+ */
367
+ undo(id: Id): DataSourceStepValue | null;
368
+ /**
369
+ * 重做指定数据源的下一次变更。
370
+ * @param id 数据源 id
371
+ * @returns 重做的 step;栈不存在或已无可重做时返回 null
372
+ */
373
+ redo(id: Id): DataSourceStepValue | null;
374
+ /** 是否可对指定数据源撤销。 */
375
+ canUndo(id: Id): boolean;
376
+ /** 是否可对指定数据源重做。 */
377
+ canRedo(id: Id): boolean;
378
+ /**
379
+ * 跳转指定数据源的历史栈到目标游标。语义同 editor.gotoPageStep。
380
+ *
381
+ * @param id 数据源 id
382
+ * @param targetCursor 目标游标位置(已应用步骤数量)
383
+ * @returns 实际移动到的最终游标位置
384
+ */
385
+ goto(id: Id, targetCursor: number): number;
386
+ /**
387
+ * 「回滚」指定数据源历史步骤(类 git revert 语义):
388
+ * - 不动原始栈结构(不移动 cursor、不丢弃任何步骤);
389
+ * - 把目标 step 的修改**反向应用**一次,并作为**新步骤**追加到栈顶;
390
+ * - 仅对已应用的步骤生效——未应用步骤本身就不存在于当前 schema 中,反向无意义。
391
+ *
392
+ * @param id 数据源 id
393
+ * @param index 目标 step 在该栈中的索引(0 为最早),通常由历史面板传入
394
+ * @returns 反向后产生的新 step;目标不存在 / 未应用时返回 null
395
+ */
396
+ revert(id: Id, index: number): DataSourceStepValue | null;
271
397
  createId(): string;
272
398
  getDataSourceById(id: string): DataSourceSchema | undefined;
273
399
  resetState(): void;
@@ -284,9 +410,29 @@ declare class DataSource extends export_default {
284
410
  * @returns
285
411
  */
286
412
  paste(): void;
413
+ /**
414
+ * 反向应用一个 step 并以新 step 入栈(不带 doNotPushHistory)。逻辑与 applyHistoryStep(reverse=true)
415
+ * 同构,差异仅在于走对应的公共 add / update / remove 而不是带 doNotPushHistory 的版本。
416
+ */
417
+ private applyRevertStep;
418
+ /**
419
+ * 把一条历史 step 应用到当前数据源服务上。
420
+ *
421
+ * 复用现有的 add / update / remove,目的是借助它们发出的事件触发 initService 中
422
+ * 的依赖收集逻辑(DATA_SOURCE / DATA_SOURCE_COND / DATA_SOURCE_METHOD)。
423
+ * 所有写回都带 `doNotPushHistory: true`,确保不会在历史栈里产生新的记录。
424
+ *
425
+ * - oldSchema=null, newSchema≠null:原始为新增 → undo 删除;redo 再次 add
426
+ * - oldSchema≠null, newSchema=null:原始为删除 → undo 还原 add;redo 再次删除
427
+ * - 两侧都有:原始为更新 → 按 changeRecords 局部 patch;缺省退化为整 schema 替换
428
+ *
429
+ * @param step 历史 step
430
+ * @param reverse true=撤销,false=重做
431
+ */
432
+ private applyHistoryStep;
287
433
  }
288
434
  type DataSourceService = DataSource;
289
- declare const _default$35: DataSource;
435
+ declare const _default$36: DataSource;
290
436
  //#endregion
291
437
  //#region temp/packages/editor/src/services/dep.d.ts
292
438
  interface DepEvents {
@@ -300,7 +446,7 @@ interface State$1 {
300
446
  taskLength: number;
301
447
  }
302
448
  type StateKey = keyof State$1;
303
- declare class Dep extends export_default {
449
+ declare class Dep extends BaseService {
304
450
  private state;
305
451
  private idleTask;
306
452
  private watcher;
@@ -331,15 +477,19 @@ declare class Dep extends export_default {
331
477
  reset(): void;
332
478
  destroy(): void;
333
479
  emit<Name extends keyof DepEvents, Param extends DepEvents[Name]>(eventName: Name, ...args: Param): boolean;
480
+ /**
481
+ * 删除指定 page 在该 target 下的旧依赖:
482
+ * 按 pageId 匹配,可清掉页面内已被删除节点的残留依赖
483
+ */
484
+ private removePageDep;
334
485
  private enqueueTask;
335
486
  }
336
487
  type DepService = Dep;
337
- declare const _default$37: Dep;
488
+ declare const _default$38: Dep;
338
489
  //#endregion
339
490
  //#region temp/packages/editor/src/services/editor.d.ts
340
- declare class Editor extends export_default {
491
+ declare class Editor extends BaseService {
341
492
  state: StoreState;
342
- private isHistoryStateChange;
343
493
  private selectionBeforeOp;
344
494
  constructor();
345
495
  /**
@@ -414,18 +564,33 @@ declare class Editor extends export_default {
414
564
  * @param options 可选配置
415
565
  * @param options.doNotSelect 添加后是否不更新当前选中节点(默认 false,添加后会选中新增的节点)
416
566
  * @param options.doNotSwitchPage 添加后是否不切换当前页面(默认 false;新增页面 / 跨页新增时为 true 会跳过会引发页面切换的选中操作)
567
+ * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
417
568
  * @returns 添加后的节点
418
569
  */
419
- add(addNode: AddMNode | MNode[], parent?: MContainer | null, options?: DslOpOptions): Promise<MNode | MNode[]>;
420
- doRemove(node: MNode, options?: DslOpOptions): Promise<void>;
570
+ add(addNode: AddMNode | MNode[], parent?: MContainer | null, {
571
+ doNotSelect,
572
+ doNotSwitchPage,
573
+ doNotPushHistory,
574
+ historyDescription
575
+ }?: DslOpOptions): Promise<MNode | MNode[]>;
576
+ doRemove(node: MNode, {
577
+ doNotSelect,
578
+ doNotSwitchPage
579
+ }?: DslOpOptions): Promise<void>;
421
580
  /**
422
581
  * 删除组件
423
582
  * @param {Object} node 要删除的节点或节点集合
424
583
  * @param options 可选配置
425
584
  * @param options.doNotSelect 删除后是否不更新当前选中节点(默认 false,删除后会选中父节点或首个页面)
426
585
  * @param options.doNotSwitchPage 删除后是否不切换当前页面(默认 false;删除页面 / 页面片段时为 true 会跳过自动切换到首个剩余页面)
586
+ * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
427
587
  */
428
- remove(nodeOrNodeList: MNode | MNode[], options?: DslOpOptions): Promise<void>;
588
+ remove(nodeOrNodeList: MNode | MNode[], {
589
+ doNotSelect,
590
+ doNotSwitchPage,
591
+ doNotPushHistory,
592
+ historyDescription
593
+ }?: DslOpOptions): Promise<void>;
429
594
  doUpdate(config: MNode, {
430
595
  changeRecords
431
596
  }?: {
@@ -439,10 +604,18 @@ declare class Editor extends export_default {
439
604
  * 更新节点
440
605
  * update后会触发依赖收集,收集完后会掉stage.update方法
441
606
  * @param config 新的节点配置,配置中需要有id信息
607
+ * @param data 额外数据
608
+ * @param data.changeRecords 单节点 form 端变更记录(多节点场景下被忽略,使用 changeRecordList)
609
+ * @param data.changeRecordList 多节点 form 端变更记录列表,按 config 数组同序对应每个节点;优先级高于 changeRecords
610
+ * @param data.doNotPushHistory 是否不写入历史记录(默认 false)
611
+ * @param data.historyDescription 入栈时附带的人类可读描述,用于历史面板展示(不影响 undo/redo 行为)
442
612
  * @returns 更新后的节点配置
443
613
  */
444
614
  update(config: MNode | MNode[], data?: {
445
615
  changeRecords?: ChangeRecord[];
616
+ changeRecordList?: ChangeRecord[][];
617
+ doNotPushHistory?: boolean;
618
+ historyDescription?: string;
446
619
  }): Promise<MNode | MNode[]>;
447
620
  /**
448
621
  * 将id为id1的组件移动到id为id2的组件位置上,例如:[1,2,3,4] -> sort(1,3) -> [2,1,3,4]
@@ -451,9 +624,13 @@ declare class Editor extends export_default {
451
624
  * @param options 可选配置
452
625
  * @param options.doNotSelect 排序后是否不更新当前选中节点(默认 false)
453
626
  * @param options.doNotSwitchPage 排序后是否不切换当前页面(排序只发生在同一父节点内,方法内为空操作;保留以与其它 DSL 操作 API 一致)
627
+ * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
454
628
  * @returns void
455
629
  */
456
- sort(id1: Id, id2: Id, options?: DslOpOptions): Promise<void>;
630
+ sort(id1: Id, id2: Id, {
631
+ doNotSelect,
632
+ doNotPushHistory
633
+ }?: DslOpOptions): Promise<void>;
457
634
  /**
458
635
  * 将组件节点配置存储到localStorage中
459
636
  * @param config 组件节点配置
@@ -473,9 +650,14 @@ declare class Editor extends export_default {
473
650
  * @param options 可选配置
474
651
  * @param options.doNotSelect 粘贴后是否不更新当前选中节点(默认 false)
475
652
  * @param options.doNotSwitchPage 粘贴后是否不切换当前页面(默认 false;跨页粘贴时为 true 会跳过页面切换)
653
+ * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
476
654
  * @returns 添加后的组件节点配置
477
655
  */
478
- paste(position?: PastePosition, collectorOptions?: TargetOptions, options?: DslOpOptions): Promise<MNode | MNode[] | void>;
656
+ paste(position?: PastePosition, collectorOptions?: TargetOptions, {
657
+ doNotSelect,
658
+ doNotSwitchPage,
659
+ doNotPushHistory
660
+ }?: DslOpOptions): Promise<MNode | MNode[] | void>;
479
661
  doPaste(config: MNode[], position?: PastePosition): Promise<MNode[]>;
480
662
  doAlignCenter(config: MNode): Promise<MNode>;
481
663
  /**
@@ -484,24 +666,44 @@ declare class Editor extends export_default {
484
666
  * @param options 可选配置
485
667
  * @param options.doNotSelect 居中后是否不更新当前选中节点(默认 false)
486
668
  * @param options.doNotSwitchPage 居中后是否不切换当前页面(居中只更新节点 style,方法内为空操作;保留以与其它 DSL 操作 API 一致)
669
+ * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
487
670
  * @returns 当前组件节点配置
488
671
  */
489
- alignCenter(config: MNode | MNode[], options?: DslOpOptions): Promise<MNode | MNode[]>;
672
+ alignCenter(config: MNode | MNode[], {
673
+ doNotSelect,
674
+ doNotPushHistory
675
+ }?: DslOpOptions): Promise<MNode | MNode[]>;
490
676
  /**
491
677
  * 移动当前选中节点位置
492
678
  * @param offset 偏移量
679
+ * @param options 可选配置
680
+ * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
493
681
  */
494
- moveLayer(offset: number | LayerOffset): Promise<void>;
682
+ moveLayer(offset: number | LayerOffset, {
683
+ doNotPushHistory
684
+ }?: DslOpOptions): Promise<void>;
495
685
  /**
496
- * 移动到指定容器中
497
- * @param config 需要移动的节点
686
+ * 移动一个或多个节点到指定容器中。
687
+ *
688
+ * 多选场景(config 是数组)只会产生一条历史记录,
689
+ * `updatedItems` 涵盖所有源父容器 + 目标容器的前后快照。
690
+ * 这避免了"多选移动到某容器"在历史栈里被切成 N 条记录。
691
+ *
692
+ * @param config 需要移动的节点(或节点数组,各项需带 id;style 等字段会与原节点合并)
498
693
  * @param targetId 容器ID
499
694
  * @param options 可选配置
500
695
  * @param options.doNotSelect 移动后是否不更新当前选中节点(默认 false)
501
696
  * @param options.doNotSwitchPage 移动后是否不切换当前页面(默认 false;目标容器位于其它页面时为 true 会跳过自动选中以避免页面切换)
697
+ * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
502
698
  */
503
- moveToContainer(config: MNode, targetId: Id, options?: DslOpOptions): Promise<MNode | undefined>;
504
- dragTo(config: MNode | MNode[], targetParent: MContainer, targetIndex: number): Promise<void>;
699
+ moveToContainer(config: MNode | MNode[], targetId: Id, {
700
+ doNotSelect,
701
+ doNotSwitchPage,
702
+ doNotPushHistory
703
+ }?: DslOpOptions): Promise<MNode | MNode[]>;
704
+ dragTo(config: MNode | MNode[], targetParent: MContainer, targetIndex: number, {
705
+ doNotPushHistory
706
+ }?: DslOpOptions): Promise<void>;
505
707
  /**
506
708
  * 撤销当前操作
507
709
  * @returns 被撤销的操作
@@ -512,7 +714,36 @@ declare class Editor extends export_default {
512
714
  * @returns 被恢复的操作
513
715
  */
514
716
  redo(): Promise<StepValue | null>;
515
- move(left: number, top: number): Promise<void>;
717
+ /**
718
+ * 「回滚」指定页面历史步骤(类 git revert 语义):
719
+ * - 不动原始历史栈结构(不移动 cursor、不丢弃任何步骤);
720
+ * - 取出 `index` 对应的 step,**反向应用**一次(add→remove / remove→add / update→旧值);
721
+ * - 把这次反向应用作为一条**新步骤**追加到栈顶,可被普通 undo / redo。
722
+ *
723
+ * 与 `gotoPageStep`(类 git reset)的区别在于此操作**不丢弃**目标之后的历史。
724
+ * 与 `applyHistoryOp(reverse=true)` 的区别在于:本方法**不带** `doNotPushHistory`,
725
+ * 反向应用会以一条新 step 入栈;并且不实施 step 中保存的选区与 modifiedNodeIds 状态,
726
+ * 选区由用户当前位置决定,符合"新提交"语义。
727
+ *
728
+ * 仅对处于「已应用」状态的步骤生效——未应用的步骤本身就不存在于当前 DSL 中,反向无意义。
729
+ *
730
+ * @param index 目标 step 在所属页面栈中的索引(0 为最早),通常由历史面板传入
731
+ * @returns 反向后产生的新 step;目标不存在 / 未应用 / 反向失败时返回 null
732
+ */
733
+ revertPageStep(index: number): Promise<StepValue | null>;
734
+ /**
735
+ * 跳转当前页面历史栈到指定游标位置。
736
+ *
737
+ * `targetCursor` 与 `UndoRedo.getCursor()` 同义:表示"已应用步骤数量",
738
+ * 取值范围 `[0, length]`。当目标 < 当前游标时循环 undo,否则循环 redo。
739
+ * 通常由历史面板传入「点击的 step.index + 1」作为目标。
740
+ *
741
+ * @returns 实际移动到的最终游标位置
742
+ */
743
+ gotoPageStep(targetCursor: number): Promise<number>;
744
+ move(left: number, top: number, {
745
+ doNotPushHistory
746
+ }?: DslOpOptions): Promise<void>;
516
747
  resetState(): void;
517
748
  destroy(): void;
518
749
  resetModifiedNodeId(): void;
@@ -525,6 +756,13 @@ declare class Editor extends export_default {
525
756
  private pushOpHistory;
526
757
  /**
527
758
  * 应用历史操作(撤销 / 重做)
759
+ *
760
+ * 所有 DSL 修改都走 `editor.add / remove / update`,并通过 `doNotPushHistory` 阻止再次入栈、
761
+ * `doNotSelect / doNotSwitchPage` 让选区由方法末尾的统一逻辑兜底。
762
+ *
763
+ * 注意:这些公开方法会发出 add / remove / update 事件,业务侧若需要区分"用户操作"与"撤销重做触发",
764
+ * 请监听 `history-change` 事件配合判断。
765
+ *
528
766
  * @param step 操作记录
529
767
  * @param reverse true = 撤销,false = 重做
530
768
  */
@@ -532,7 +770,7 @@ declare class Editor extends export_default {
532
770
  private selectedConfigExceptionHandler;
533
771
  }
534
772
  type EditorService = Editor;
535
- declare const _default$38: Editor;
773
+ declare const _default$39: Editor;
536
774
  //#endregion
537
775
  //#region temp/packages/editor/src/services/events.d.ts
538
776
  declare const canUsePluginMethods$5: {
@@ -541,7 +779,7 @@ declare const canUsePluginMethods$5: {
541
779
  };
542
780
  type AsyncMethodName$3 = Writable<(typeof canUsePluginMethods$5)['async']>;
543
781
  type SyncMethodName$3 = Writable<(typeof canUsePluginMethods$5)['sync']>;
544
- declare class Events extends export_default {
782
+ declare class Events extends BaseService {
545
783
  constructor();
546
784
  setEvents(events: Record<string, EventOption[]>): void;
547
785
  setEvent(type: string, events: EventOption[]): void;
@@ -554,7 +792,7 @@ declare class Events extends export_default {
554
792
  usePlugin(options: AsyncHookPlugin<AsyncMethodName$3, Events> & SyncHookPlugin<SyncMethodName$3, Events>): void;
555
793
  }
556
794
  type EventsService = Events;
557
- declare const _default$39: Events;
795
+ declare const _default$40: Events;
558
796
  //#endregion
559
797
  //#region temp/packages/editor/src/utils/undo-redo.d.ts
560
798
  declare class UndoRedo<T = any> {
@@ -570,33 +808,186 @@ declare class UndoRedo<T = any> {
570
808
  /** 返回被重做的操作 */
571
809
  redo(): T | null;
572
810
  getCurrentElement(): T | null;
811
+ /**
812
+ * 返回栈内全部元素的浅克隆数组(按时间顺序,索引 0 为最早一步)。
813
+ * 仅用于历史面板等只读展示场景,不应直接修改返回值。
814
+ */
815
+ getElementList(): T[];
816
+ /**
817
+ * 当前游标位置:表示已应用的步骤数量。
818
+ * - cursor === 0 表示全部已撤销
819
+ * - cursor === length 表示已重做到末尾
820
+ * 历史面板用于区分"已应用 / 已撤销"两段。
821
+ */
822
+ getCursor(): number;
823
+ /** 栈内总步数。 */
824
+ getLength(): number;
573
825
  }
574
826
  //#endregion
575
827
  //#region temp/packages/editor/src/services/history.d.ts
576
- declare class History extends export_default {
828
+ declare class History extends BaseService {
829
+ /**
830
+ * 把单个代码块栈拆成若干 group:
831
+ * - 把"新增/删除"独立成组(语义上属于一次性事件,不应与 update 合并);
832
+ * - 连续 'update' 合并到同一组,组内 steps 顺序就是发生顺序。
833
+ */
834
+ private static mergeCodeBlockSteps;
835
+ private static mergeDataSourceSteps;
836
+ /**
837
+ * 根据 old/new 是否为 null 推断 opType(与 push 时的约定一致)。
838
+ */
839
+ private static detectOpType;
840
+ /**
841
+ * 把页面栈拆成若干 group:
842
+ * - 单节点的 'update' 按 targetId 与相邻同 targetId 的 update 合并到一个 group;
843
+ * - 'add' / 'remove' 始终独立成组(语义上是结构变更,不应被收纳进单节点修改组);
844
+ * - 多节点 'update'(如批量改属性)也独立成组(无明确单一目标,避免误合并)。
845
+ */
846
+ private static mergePageSteps;
847
+ /**
848
+ * 解析 StepValue 中的"目标节点 id"用于合并:
849
+ * - 单节点 update:取唯一一项 updatedItems 的节点 id;
850
+ * - 其它情形(多节点 update / add / remove):返回 undefined,表示不参与合并。
851
+ */
852
+ private static detectPageTargetId;
853
+ /** 解析 StepValue 中的目标节点可读名(用于 UI 展示)。 */
854
+ private static detectPageTargetName;
577
855
  state: {
578
- pageId?: import("@tmagic/schema").Id | undefined;
579
- pageSteps: Record<import("@tmagic/schema").Id, UndoRedo<StepValue>>;
856
+ pageId?: Id | undefined;
857
+ pageSteps: Record<Id, UndoRedo<StepValue>>;
580
858
  canRedo: boolean;
581
859
  canUndo: boolean;
860
+ codeBlockState: Record<Id, UndoRedo<CodeBlockStepValue>>;
861
+ dataSourceState: Record<Id, UndoRedo<DataSourceStepValue>>;
582
862
  };
583
863
  constructor();
584
864
  reset(): void;
585
865
  resetPage(): void;
586
866
  changePage(page: MPage | MPageFragment): void;
587
867
  resetState(): void;
588
- push(state: StepValue): StepValue | null;
868
+ /**
869
+ * 把一条步骤推入指定页面的栈;不指定 pageId 时落到当前活动页。
870
+ *
871
+ * 跨页操作(例如 `moveToContainer` 把节点搬到其它页)必须显式传入 `pageId`,
872
+ * 否则会把记录错误地落到操作发起页 / 当前激活页,破坏目标页 / 源页的撤销栈语义。
873
+ */
874
+ push(state: StepValue, pageId?: Id): StepValue | null;
875
+ /**
876
+ * 推入一条代码块变更记录(与页面/节点完全无关),按 `codeBlockId` 维度独立一份 UndoRedo 栈。
877
+ *
878
+ * - 新增:oldContent = null,newContent = 新内容
879
+ * - 更新:oldContent / newContent 都为对应内容
880
+ * - 删除:newContent = null,oldContent = 删除前内容
881
+ * - `changeRecords` 来自 form 端,撤销/重做时若有则按 propPath 局部覆盖;缺省才退化为整内容替换。
882
+ * - 不直接驱动 codeBlockService,调用方负责实际写回。
883
+ */
884
+ pushCodeBlock(codeBlockId: Id, payload: {
885
+ oldContent: CodeBlockContent | null;
886
+ newContent: CodeBlockContent | null;
887
+ changeRecords?: ChangeRecord[]; /** 可选的人类可读描述(如「修改按钮颜色」),仅用于历史面板展示。 */
888
+ historyDescription?: string;
889
+ }): CodeBlockStepValue | null;
890
+ /**
891
+ * 推入一条数据源变更记录(与页面/节点完全无关),按 `dataSourceId` 维度独立一份 UndoRedo 栈。
892
+ * 行为同 pushCodeBlock(新增 oldSchema=null;删除 newSchema=null)。
893
+ */
894
+ pushDataSource(dataSourceId: Id, payload: {
895
+ oldSchema: DataSourceSchema | null;
896
+ newSchema: DataSourceSchema | null;
897
+ changeRecords?: ChangeRecord[]; /** 可选的人类可读描述,仅用于历史面板展示。 */
898
+ historyDescription?: string;
899
+ }): DataSourceStepValue | null;
900
+ /** 撤销指定代码块的最近一次变更。 */
901
+ undoCodeBlock(codeBlockId: Id): CodeBlockStepValue | null;
902
+ /** 重做指定代码块的下一次变更。 */
903
+ redoCodeBlock(codeBlockId: Id): CodeBlockStepValue | null;
904
+ /** 是否可对指定代码块撤销。 */
905
+ canUndoCodeBlock(codeBlockId: Id): boolean;
906
+ /** 是否可对指定代码块重做。 */
907
+ canRedoCodeBlock(codeBlockId: Id): boolean;
908
+ /** 撤销指定数据源的最近一次变更。 */
909
+ undoDataSource(dataSourceId: Id): DataSourceStepValue | null;
910
+ /** 重做指定数据源的下一次变更。 */
911
+ redoDataSource(dataSourceId: Id): DataSourceStepValue | null;
912
+ /** 是否可对指定数据源撤销。 */
913
+ canUndoDataSource(dataSourceId: Id): boolean;
914
+ /** 是否可对指定数据源重做。 */
915
+ canRedoDataSource(dataSourceId: Id): boolean;
589
916
  undo(): StepValue | null;
590
917
  redo(): StepValue | null;
591
918
  destroy(): void;
919
+ /**
920
+ * 取出当前活动页的历史步骤平铺列表(包含已应用 + 已撤销)。
921
+ * 列表按时间正序,最早一步在最前面。
922
+ * 通常 UI 应使用 `getPageHistoryGroups` 取已合并分组的版本;本方法仅为兼容/调试保留。
923
+ */
924
+ getPageStepList(pageId?: Id): PageHistoryStepEntry[];
925
+ /**
926
+ * 取出当前活动页的历史栈,按"目标节点"做相邻合并:
927
+ * - 连续修改同一节点(单节点 update)的多步合并为一个 group,组内可展开查看每步;
928
+ * - add / remove / 多节点 update 始终独立成组。
929
+ * 用于历史面板的"页面"tab 展示。
930
+ */
931
+ getPageHistoryGroups(pageId?: Id): PageHistoryGroup[];
932
+ /**
933
+ * 取出全部代码块的历史栈,按 codeBlockId 分组。
934
+ * 同一栈内相邻、同 opType 且作用于同一 id 的多步会被合并为一个 group:
935
+ * - 这正是"代码块/数据源各自按 id 分栈"的天然表现,再叠加"连续修改同目标的相邻步骤合并展示"。
936
+ * - 合并后 group 暴露子步骤数组,UI 可展开查看每一步的 changeRecords。
937
+ * - applied 字段:组内最后一步是否处于已应用段。
938
+ */
939
+ getCodeBlockHistoryGroups(): CodeBlockHistoryGroup[];
940
+ /**
941
+ * 读取指定页面历史栈的当前游标(已应用步骤数量)。不传则取当前活动页。
942
+ * 没有对应栈时返回 0。
943
+ */
944
+ getPageCursor(pageId?: Id): number;
945
+ /** 读取指定代码块历史栈的当前游标。 */
946
+ getCodeBlockCursor(codeBlockId: Id): number;
947
+ /** 读取指定数据源历史栈的当前游标。 */
948
+ getDataSourceCursor(dataSourceId: Id): number;
949
+ /**
950
+ * 取出指定代码块历史栈的平铺步骤列表(含 applied 标记)。供 revert 等按 index 索引步骤使用。
951
+ */
952
+ getCodeBlockStepList(codeBlockId: Id): {
953
+ step: CodeBlockStepValue;
954
+ index: number;
955
+ applied: boolean;
956
+ }[];
957
+ /**
958
+ * 取出指定数据源历史栈的平铺步骤列表(含 applied 标记)。供 revert 等按 index 索引步骤使用。
959
+ */
960
+ getDataSourceStepList(dataSourceId: Id): {
961
+ step: DataSourceStepValue;
962
+ index: number;
963
+ applied: boolean;
964
+ }[];
965
+ /**
966
+ * 取出全部数据源的历史栈,按 dataSourceId 分组。同上。
967
+ */
968
+ getDataSourceHistoryGroups(): DataSourceHistoryGroup[];
969
+ /**
970
+ * 取出指定页面的栈;不传 pageId 时按当前活动页取。
971
+ *
972
+ * 跨页 push 时如果目标页的栈尚不存在(用户从未进入过该页),会按需创建一条空栈,
973
+ * 这样切到目标页时 Ctrl+Z 也能撤回该步骤。
974
+ */
592
975
  private getUndoRedo;
593
976
  private setCanUndoRedo;
977
+ /**
978
+ * 按 id 获取(或创建)指定代码块的 UndoRedo 栈。
979
+ */
980
+ private getCodeBlockUndoRedo;
981
+ /**
982
+ * 按 id 获取(或创建)指定数据源的 UndoRedo 栈。
983
+ */
984
+ private getDataSourceUndoRedo;
594
985
  }
595
986
  type HistoryService = History;
596
- declare const _default$40: History;
987
+ declare const _default$41: History;
597
988
  //#endregion
598
989
  //#region temp/packages/editor/src/services/keybinding.d.ts
599
- declare class Keybinding extends export_default {
990
+ declare class Keybinding extends BaseService {
600
991
  ctrlKey: string;
601
992
  private controllers;
602
993
  private bindingList;
@@ -640,7 +1031,7 @@ declare const canUsePluginMethods$4: {
640
1031
  };
641
1032
  type AsyncMethodName$2 = Writable<(typeof canUsePluginMethods$4)['async']>;
642
1033
  type SyncMethodName$2 = Writable<(typeof canUsePluginMethods$4)['sync']>;
643
- declare class Props extends export_default {
1034
+ declare class Props extends BaseService {
644
1035
  private state;
645
1036
  constructor();
646
1037
  setDisabledDataSource(disabled: boolean): void;
@@ -731,7 +1122,7 @@ declare class Props extends export_default {
731
1122
  private setRelateId;
732
1123
  }
733
1124
  type PropsService = Props;
734
- declare const _default$42: Props;
1125
+ declare const _default$43: Props;
735
1126
  //#endregion
736
1127
  //#region temp/packages/editor/src/services/stageOverlay.d.ts
737
1128
  declare const canUsePluginMethods$3: {
@@ -739,7 +1130,7 @@ declare const canUsePluginMethods$3: {
739
1130
  sync: readonly ["openOverlay", "closeOverlay", "updateOverlay", "createStage"];
740
1131
  };
741
1132
  type SyncMethodName$1 = Writable<(typeof canUsePluginMethods$3)['sync']>;
742
- declare class StageOverlay extends export_default {
1133
+ declare class StageOverlay extends BaseService {
743
1134
  private state;
744
1135
  constructor();
745
1136
  get<K extends keyof StageOverlayState>(name: K): StageOverlayState[K];
@@ -758,7 +1149,7 @@ declare class StageOverlay extends export_default {
758
1149
  private updateSelectStatus;
759
1150
  }
760
1151
  type StageOverlayService = StageOverlay;
761
- declare const _default$43: StageOverlay;
1152
+ declare const _default$44: StageOverlay;
762
1153
  //#endregion
763
1154
  //#region temp/packages/editor/src/services/storage.d.ts
764
1155
  interface Options$1 {
@@ -780,7 +1171,7 @@ type SyncMethodName = Writable<(typeof canUsePluginMethods$2)['sync']>;
780
1171
  /**
781
1172
  * 数据存储服务
782
1173
  */
783
- declare class WebStorage extends export_default {
1174
+ declare class WebStorage extends BaseService {
784
1175
  private storage;
785
1176
  private namespace;
786
1177
  constructor();
@@ -821,7 +1212,7 @@ declare class WebStorage extends export_default {
821
1212
  private getValueAndProtocol;
822
1213
  }
823
1214
  type StorageService = WebStorage;
824
- declare const _default$44: WebStorage;
1215
+ declare const _default$45: WebStorage;
825
1216
  //#endregion
826
1217
  //#region temp/packages/editor/src/services/ui.d.ts
827
1218
  declare const canUsePluginMethods$1: {
@@ -829,7 +1220,7 @@ declare const canUsePluginMethods$1: {
829
1220
  sync: readonly [];
830
1221
  };
831
1222
  type AsyncMethodName$1 = Writable<(typeof canUsePluginMethods$1)['async']>;
832
- declare class Ui extends export_default {
1223
+ declare class Ui extends BaseService {
833
1224
  constructor();
834
1225
  set<K extends keyof UiState, T extends UiState[K]>(name: K, value: T): void;
835
1226
  get<K extends keyof UiState>(name: K): import("@vue/reactivity").ShallowReactive<UiState>[K];
@@ -841,7 +1232,7 @@ declare class Ui extends export_default {
841
1232
  private setStageRect;
842
1233
  }
843
1234
  type UiService = Ui;
844
- declare const _default$45: Ui;
1235
+ declare const _default$46: Ui;
845
1236
  //#endregion
846
1237
  //#region temp/packages/editor/src/type.d.ts
847
1238
  type EditorSlots = FrameworkSlots & WorkspaceSlots & SidebarSlots & PropsPanelSlots & {
@@ -937,7 +1328,7 @@ interface EditorInstallOptions {
937
1328
  customCreateMonacoEditor: (monaco: typeof import('monaco-editor'), codeEditorEl: HTMLElement, options: Monaco.editor.IStandaloneEditorConstructionOptions & {
938
1329
  editorCustomType?: string;
939
1330
  }) => Promise<Monaco.editor.IStandaloneCodeEditor> | Monaco.editor.IStandaloneCodeEditor;
940
- customCreateMonacoDiffEditor: (monaco: typeof import('monaco-editor'), codeEditorEl: HTMLElement, options: Monaco.editor.IStandaloneEditorConstructionOptions & {
1331
+ customCreateMonacoDiffEditor: (monaco: typeof import('monaco-editor'), codeEditorEl: HTMLElement, options: Monaco.editor.IStandaloneDiffEditorConstructionOptions & {
941
1332
  editorCustomType?: string;
942
1333
  }) => Promise<Monaco.editor.IStandaloneDiffEditor> | Monaco.editor.IStandaloneDiffEditor;
943
1334
  [key: string]: any;
@@ -1175,8 +1566,9 @@ interface MenuComponent {
1175
1566
  * 'rule': 显示隐藏标尺
1176
1567
  * 'scale-to-original': 缩放到实际大小
1177
1568
  * 'scale-to-fit': 缩放以适应
1569
+ * 'history-list': 历史记录面板(按 页面 / 数据源 / 代码块 三个 tab 展示,相邻同目标修改自动合并)
1178
1570
  */
1179
- type MenuItem = '/' | 'delete' | 'undo' | 'redo' | 'zoom' | 'zoom-in' | 'zoom-out' | 'guides' | 'rule' | 'scale-to-original' | 'scale-to-fit' | MenuButton | MenuComponent | string;
1571
+ type MenuItem = '/' | 'delete' | 'undo' | 'redo' | 'zoom' | 'zoom-in' | 'zoom-out' | 'guides' | 'rule' | 'scale-to-original' | 'scale-to-fit' | 'history-list' | MenuButton | MenuComponent | string;
1180
1572
  /** 工具栏 */
1181
1573
  interface MenuBarData {
1182
1574
  /** 顶部工具栏左边项 */
@@ -1337,17 +1729,159 @@ interface StepValue {
1337
1729
  parentId: Id;
1338
1730
  index: number;
1339
1731
  }[];
1340
- /** opType 'update': 变更前后的节点快照 */
1732
+ /**
1733
+ * opType 'update': 变更前后的节点快照
1734
+ *
1735
+ * `changeRecords` 来自 form 端的 propPath/value 列表,撤销/重做时只对这些 propPath 做局部更新;
1736
+ * 缺省(未传 / 空数组)才退化为整节点替换。
1737
+ */
1341
1738
  updatedItems?: {
1342
1739
  oldNode: MNode;
1343
1740
  newNode: MNode;
1741
+ changeRecords?: ChangeRecord[];
1344
1742
  }[];
1743
+ /**
1744
+ * 调用方可选传入的人类可读描述(如「调整按钮颜色」),用于历史面板展示。
1745
+ * 不影响 undo/redo 行为;缺省时面板会根据节点 / propPath 自动生成描述。
1746
+ */
1747
+ historyDescription?: string;
1748
+ }
1749
+ /**
1750
+ * 代码块历史记录条目。按 codeBlock.id 分组保存到 historyState.codeBlockState。
1751
+ * - 新增:oldContent = null,newContent = 新内容
1752
+ * - 更新:oldContent / newContent 都为对应内容
1753
+ * - 删除:newContent = null,oldContent = 删除前内容
1754
+ */
1755
+ interface CodeBlockStepValue {
1756
+ /** 关联的代码块 id */
1757
+ id: Id;
1758
+ /** 变更前的代码块内容,新增时为 null */
1759
+ oldContent: CodeBlockContent | null;
1760
+ /** 变更后的代码块内容,删除时为 null */
1761
+ newContent: CodeBlockContent | null;
1762
+ /**
1763
+ * form 端 propPath/value 列表。撤销/重做时若有则按 propPath 局部更新;
1764
+ * 缺省才退化为整内容替换。新增/删除场景通常无 changeRecords。
1765
+ */
1766
+ changeRecords?: ChangeRecord[];
1767
+ /** 调用方可选传入的人类可读描述,用于历史面板展示;不影响 undo/redo 行为。 */
1768
+ historyDescription?: string;
1769
+ }
1770
+ /**
1771
+ * 数据源历史记录条目。按 dataSource.id 分组保存到 historyState.dataSourceState。
1772
+ * - 新增:oldSchema = null,newSchema = 新 schema
1773
+ * - 更新:oldSchema / newSchema 都为对应 schema
1774
+ * - 删除:newSchema = null,oldSchema = 删除前 schema
1775
+ */
1776
+ interface DataSourceStepValue {
1777
+ /** 关联的数据源 id */
1778
+ id: Id;
1779
+ /** 变更前的数据源 schema,新增时为 null */
1780
+ oldSchema: DataSourceSchema | null;
1781
+ /** 变更后的数据源 schema,删除时为 null */
1782
+ newSchema: DataSourceSchema | null;
1783
+ /**
1784
+ * form 端 propPath/value 列表。撤销/重做时若有则按 propPath 局部更新;
1785
+ * 缺省才退化为整 schema 替换。新增/删除场景通常无 changeRecords。
1786
+ */
1787
+ changeRecords?: ChangeRecord[];
1788
+ /** 调用方可选传入的人类可读描述,用于历史面板展示;不影响 undo/redo 行为。 */
1789
+ historyDescription?: string;
1345
1790
  }
1346
1791
  interface HistoryState {
1347
1792
  pageId?: Id;
1348
1793
  pageSteps: Record<Id, UndoRedo<StepValue>>;
1349
1794
  canRedo: boolean;
1350
1795
  canUndo: boolean;
1796
+ /**
1797
+ * 代码块历史栈,按 codeBlock.id 分组(每个代码块独立一份 UndoRedo)。
1798
+ * 与页面/节点无关,支持独立 undo/redo。
1799
+ */
1800
+ codeBlockState: Record<Id, UndoRedo<CodeBlockStepValue>>;
1801
+ /**
1802
+ * 数据源历史栈,按 dataSource.id 分组(每个数据源独立一份 UndoRedo)。
1803
+ * 与页面/节点无关,支持独立 undo/redo。
1804
+ */
1805
+ dataSourceState: Record<Id, UndoRedo<DataSourceStepValue>>;
1806
+ }
1807
+ /**
1808
+ * 历史面板用:当前页面的一条历史步骤(包含位置和是否已应用)。
1809
+ */
1810
+ interface PageHistoryStepEntry {
1811
+ /** 步骤内容 */
1812
+ step: StepValue;
1813
+ /** 在所属栈中的索引(0 为最早) */
1814
+ index: number;
1815
+ /** 是否处于"已应用"段(即位于栈游标之前)。撤销后变为 false。 */
1816
+ applied: boolean;
1817
+ /** 是否为当前所在的步骤(栈中最近一次已应用的那一步,即 index === cursor - 1)。 */
1818
+ isCurrent?: boolean;
1819
+ }
1820
+ /**
1821
+ * 页面历史面板分组。
1822
+ * - 连续修改同一目标节点(updatedItems[0].oldNode.id 一致)的 'update' 步骤合并成一组;
1823
+ * - 多节点更新 / add / remove 始终独立成组(无法明确归属单一目标)。
1824
+ * - targetId 为 undefined 表示"无明确目标"(如 add/remove/多节点 update),不参与合并。
1825
+ */
1826
+ interface PageHistoryGroup {
1827
+ kind: 'page';
1828
+ /** 所属页面 id */
1829
+ pageId: Id;
1830
+ /** 该分组的操作类型 */
1831
+ opType: HistoryOpType;
1832
+ /**
1833
+ * 合并的目标节点 id;只有"单节点 update"才有值,并按此 id 与相邻同 id 的 update 合并。
1834
+ * undefined 表示该分组不可被合并(add / remove / 多节点 update)。
1835
+ */
1836
+ targetId?: Id;
1837
+ /** 目标节点的可读名(取最后一步的 newNode.name/type/id) */
1838
+ targetName?: string;
1839
+ /** 组内所有步骤,按时间正序 */
1840
+ steps: PageHistoryStepEntry[];
1841
+ /** 组内最后一步是否已应用 */
1842
+ applied: boolean;
1843
+ /** 是否为当前所在的分组(包含栈中最近一次已应用步骤的那一组)。 */
1844
+ isCurrent?: boolean;
1845
+ }
1846
+ /**
1847
+ * 代码块历史面板分组。
1848
+ * - 同一 codeBlockId 的栈内,相邻的 'update' 操作会合并成一个 group;
1849
+ * - 'add' / 'remove' 始终独立成组(语义上是一次性事件)。
1850
+ */
1851
+ interface CodeBlockHistoryGroup {
1852
+ kind: 'code-block';
1853
+ /** 关联的 codeBlock id */
1854
+ id: Id;
1855
+ /** 该分组的操作类型 */
1856
+ opType: HistoryOpType;
1857
+ /** 组内所有步骤,按时间正序 */
1858
+ steps: {
1859
+ step: CodeBlockStepValue;
1860
+ index: number;
1861
+ applied: boolean;
1862
+ isCurrent?: boolean;
1863
+ }[];
1864
+ /** 组内最后一步是否已应用,用于整组的状态展示 */
1865
+ applied: boolean;
1866
+ /** 是否为当前所在的分组(包含该栈最近一次已应用步骤的那一组)。 */
1867
+ isCurrent?: boolean;
1868
+ }
1869
+ /**
1870
+ * 数据源历史面板分组,结构同 CodeBlockHistoryGroup。
1871
+ */
1872
+ interface DataSourceHistoryGroup {
1873
+ kind: 'data-source';
1874
+ id: Id;
1875
+ opType: HistoryOpType;
1876
+ steps: {
1877
+ step: DataSourceStepValue;
1878
+ index: number;
1879
+ applied: boolean;
1880
+ isCurrent?: boolean;
1881
+ }[];
1882
+ applied: boolean;
1883
+ /** 是否为当前所在的分组(包含该栈最近一次已应用步骤的那一组)。 */
1884
+ isCurrent?: boolean;
1351
1885
  }
1352
1886
  declare enum KeyBindingCommand {
1353
1887
  /** 复制 */
@@ -1507,24 +2041,30 @@ declare const canUsePluginMethods: {
1507
2041
  sync: never[];
1508
2042
  };
1509
2043
  type AsyncMethodName = Writable<(typeof canUsePluginMethods)['async']>;
2044
+ /**
2045
+ * 历史记录写入相关的通用配置(codeBlock / dataSource / editor 共用)
2046
+ * - doNotPushHistory: 操作完成后是否不要将本次操作压入历史栈(撤销/重做记录),默认 false
2047
+ * - historyDescription: 入栈时附带的人类可读描述,用于历史面板展示;不影响 undo/redo 行为,缺省时面板会自动生成描述
2048
+ */
2049
+ interface HistoryOpOptions {
2050
+ doNotPushHistory?: boolean;
2051
+ historyDescription?: string;
2052
+ }
2053
+ /**
2054
+ * 在 HistoryOpOptions 基础上携带 form 端 propPath/value 变更记录,
2055
+ * 用于历史记录的精细化撤销/重做(按 propPath 局部 patch)。
2056
+ */
2057
+ interface HistoryOpOptionsWithChangeRecords extends HistoryOpOptions {
2058
+ changeRecords?: ChangeRecord[];
2059
+ }
1510
2060
  /**
1511
2061
  * DSL 修改类操作的通用配置
1512
2062
  * - doNotSelect: 操作后是否不要自动触发选中(不调用 this.select / this.multiSelect / stage.select / stage.multiSelect)
1513
2063
  * - doNotSwitchPage: 操作若会引发当前页面切换(如新增 / 删除 / 跨页移动),是否跳过这次切换
1514
2064
  */
1515
- type DslOpOptions = {
2065
+ interface DslOpOptions extends HistoryOpOptions {
1516
2066
  doNotSelect?: boolean;
1517
2067
  doNotSwitchPage?: boolean;
1518
- };
1519
- //#endregion
1520
- //#region temp/packages/form/src/schema.d.ts
1521
- interface ChangeRecord$1 {
1522
- propPath?: string;
1523
- value: any;
1524
- }
1525
- interface ContainerChangeEventData$1 {
1526
- modifyKey?: string;
1527
- changeRecords?: ChangeRecord$1[];
1528
2068
  }
1529
2069
  //#endregion
1530
2070
  //#region temp/packages/editor/src/hooks/use-code-block-edit.d.ts
@@ -1547,7 +2087,7 @@ declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockService"])
1547
2087
  visible?: boolean;
1548
2088
  }> & Readonly<{
1549
2089
  onClose?: (() => any) | undefined;
1550
- onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData$1) => any) | undefined;
2090
+ onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData) => any) | undefined;
1551
2091
  onOpen?: (() => any) | undefined;
1552
2092
  "onUpdate:width"?: ((value: number) => any) | undefined;
1553
2093
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
@@ -1556,7 +2096,7 @@ declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockService"])
1556
2096
  hide(): Promise<void>;
1557
2097
  }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
1558
2098
  close: () => any;
1559
- submit: (values: CodeBlockContent, eventData: ContainerChangeEventData$1) => any;
2099
+ submit: (values: CodeBlockContent, eventData: ContainerChangeEventData) => any;
1560
2100
  open: () => any;
1561
2101
  "update:width": (value: number) => any;
1562
2102
  "update:visible": (value: boolean) => any;
@@ -1579,7 +2119,7 @@ declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockService"])
1579
2119
  visible?: boolean;
1580
2120
  }> & Readonly<{
1581
2121
  onClose?: (() => any) | undefined;
1582
- onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData$1) => any) | undefined;
2122
+ onSubmit?: ((values: CodeBlockContent, eventData: ContainerChangeEventData) => any) | undefined;
1583
2123
  onOpen?: (() => any) | undefined;
1584
2124
  "onUpdate:width"?: ((value: number) => any) | undefined;
1585
2125
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
@@ -1590,7 +2130,7 @@ declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockService"])
1590
2130
  createCodeBlock: () => Promise<void>;
1591
2131
  editCode: (id: string) => Promise<void>;
1592
2132
  deleteCode: (key: string) => Promise<void>;
1593
- submitCodeBlockHandler: (values: CodeBlockContent) => Promise<void>;
2133
+ submitCodeBlockHandler: (values: CodeBlockContent, eventData?: ContainerChangeEventData) => Promise<void>;
1594
2134
  };
1595
2135
  //#endregion
1596
2136
  //#region temp/packages/editor/src/hooks/use-stage.d.ts
@@ -1706,6 +2246,49 @@ declare const fillConfig: (config?: FormConfig, {
1706
2246
  disabledCodeBlock?: boolean;
1707
2247
  }) => FormConfig;
1708
2248
  //#endregion
2249
+ //#region temp/packages/editor/src/utils/code-block.d.ts
2250
+ /**
2251
+ * 代码块编辑表单配置的统一入口。
2252
+ *
2253
+ * 用于:
2254
+ * - `CodeBlockEditor.vue`:作为代码块新增/编辑的表单结构;
2255
+ * - `CompareForm.vue`:在历史差异对比中以"代码块"形态展示前后值。
2256
+ *
2257
+ * 通过参数控制两端的细微差异(是否启用必填校验 / vs-code onChange 校验 / dataSource 相关字段显示规则等),
2258
+ * 避免两边同步两份相同的 schema 而造成漂移。
2259
+ */
2260
+ interface GetCodeBlockFormConfigOptions {
2261
+ /**
2262
+ * 自定义 `params` 表格的"参数类型"列配置。优先级高于内置默认值;
2263
+ * 通常由 `codeBlockService.getParamsColConfig()` 注入业务侧的扩展。
2264
+ */
2265
+ paramColConfig?: TableColumnConfig;
2266
+ /**
2267
+ * 是否在「数据源代码块」语境下使用:
2268
+ * - true:`执行时机` 字段会展示,`请求前 / 请求后` 选项仅在 `dataSourceType !== 'base'` 时出现;
2269
+ * - false:`执行时机` 字段隐藏(普通代码块没有时机概念)。
2270
+ *
2271
+ * 注意这里以函数形式传入是为了让 `display` / `options` 在每次渲染时实时取值,
2272
+ * 例如外部 `props.isDataSource` 切换或 `dataSourceType` 变更都能立即生效。
2273
+ */
2274
+ isDataSource?: () => boolean;
2275
+ /** 当 isDataSource 为 true 时使用:返回当前数据源类型(`base` / `http` / ...),决定时机选项是否包含请求前后。 */
2276
+ dataSourceType?: () => string | undefined;
2277
+ /** vs-code 编辑器的额外 monaco options。一般传 `inject('codeOptions', {})` 的结果。 */
2278
+ codeOptions?: Record<string, any>;
2279
+ /**
2280
+ * 是否启用编辑态特性:
2281
+ * - true(默认):`name` 字段加必填校验;vs-code 的 `onChange` 会调用 `parseDSL` 检查语法,出错时弹消息并抛错;
2282
+ * - false:纯只读/对比场景,不加校验逻辑。
2283
+ */
2284
+ editable?: boolean;
2285
+ }
2286
+ /**
2287
+ * 生成代码块表单配置。返回的是普通对象数组,可直接传给 `<MForm :config>`;
2288
+ * 如需响应式的 props 变化(如切换 dataSourceType),调用方在 `computed` 中再次调用本函数即可。
2289
+ */
2290
+ declare const getCodeBlockFormConfig: (options?: GetCodeBlockFormConfigOptions) => FormConfig;
2291
+ //#endregion
1709
2292
  //#region temp/packages/editor/src/utils/logger.d.ts
1710
2293
  declare const log: (...args: any[]) => void;
1711
2294
  declare const info: (...args: any[]) => void;
@@ -1953,7 +2536,34 @@ declare const H_GUIDE_LINE_STORAGE_KEY = "$MagicStageHorizontalGuidelinesData";
1953
2536
  declare const V_GUIDE_LINE_STORAGE_KEY = "$MagicStageVerticalGuidelinesData";
1954
2537
  //#endregion
1955
2538
  //#region temp/packages/editor/src/utils/monaco-editor.d.ts
1956
- declare const _default$41: () => Promise<typeof import("monaco-editor")>;
2539
+ declare const _default$42: () => Promise<typeof import("monaco-editor")>;
2540
+ //#endregion
2541
+ //#region temp/packages/form/src/schema.d.ts
2542
+ interface ChangeRecord$1 {
2543
+ propPath?: string;
2544
+ value: any;
2545
+ }
2546
+ interface ContainerChangeEventData$1 {
2547
+ modifyKey?: string;
2548
+ changeRecords?: ChangeRecord$1[];
2549
+ }
2550
+ /** 自定义 label slot 的作用域参数 */
2551
+ interface FormLabelSlotProps {
2552
+ /** 当前表单项配置 */
2553
+ config: FormItemConfig;
2554
+ /** 经处理后的类型 */
2555
+ type: string;
2556
+ /** 经 filterFunction 处理后的 label 文案 */
2557
+ text?: string;
2558
+ /** 完整字段路径(包含父级前缀) */
2559
+ prop: string;
2560
+ /** 经 filterFunction 处理后的最终禁用状态 */
2561
+ disabled?: boolean;
2562
+ }
2563
+ /** Form / Container 暴露的具名 slot 定义 */
2564
+ interface FormSlots {
2565
+ label(_props: FormLabelSlotProps): any;
2566
+ }
1957
2567
  //#endregion
1958
2568
  //#region temp/packages/editor/src/editorProps.d.ts
1959
2569
  interface EditorProps {
@@ -1965,6 +2575,8 @@ interface EditorProps {
1965
2575
  datasourceList?: DatasourceTypeOption[];
1966
2576
  /** 左侧面板配置 */
1967
2577
  sidebar?: SideBarData;
2578
+ /** 是否隐藏左侧面板 */
2579
+ hideSidebar?: boolean;
1968
2580
  /** 顶部工具栏配置 */
1969
2581
  menu?: MenuBarData;
1970
2582
  /** 组件树右键菜单 */
@@ -2117,46 +2729,129 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
2117
2729
  "onSubmit-error"?: ((e: any) => any) | undefined;
2118
2730
  "onForm-error"?: ((e: any) => any) | undefined;
2119
2731
  }>, {
2120
- configForm: Readonly<import("@vue/reactivity").ShallowRef<import("@vue/runtime-core").CreateComponentPublicInstanceWithMixins<Readonly<{
2121
- config: import("@tmagic/form-schema").FormConfig;
2122
- initValues: Record<string, any>;
2123
- lastValues?: Record<string, any>;
2124
- isCompare?: boolean;
2125
- parentValues?: Record<string, any>;
2126
- labelWidth?: string;
2127
- disabled?: boolean;
2128
- height?: string;
2129
- stepActive?: string | number;
2130
- size?: "small" | "default" | "large";
2131
- inline?: boolean;
2132
- labelPosition?: string;
2133
- keyProp?: string;
2134
- popperClass?: string;
2135
- preventSubmitDefault?: boolean;
2136
- extendState?: (_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>;
2137
- }> & Readonly<{
2138
- onError?: ((...args: any[]) => any) | undefined;
2139
- onChange?: ((...args: any[]) => any) | undefined;
2140
- "onField-input"?: ((...args: any[]) => any) | undefined;
2141
- "onField-change"?: ((...args: any[]) => any) | undefined;
2142
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
2143
- }>, {
2144
- values: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
2145
- lastValuesProcessed: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
2146
- formState: import("@tmagic/form-schema").FormState;
2147
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
2148
- changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
2149
- changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData$1) => void;
2150
- resetForm: () => void;
2151
- submitForm: (native?: boolean) => Promise<any>;
2152
- getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
2153
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2154
- error: (...args: any[]) => void;
2155
- change: (...args: any[]) => void;
2156
- "field-input": (...args: any[]) => void;
2157
- "field-change": (...args: any[]) => void;
2158
- "update:stepActive": (...args: any[]) => void;
2159
- }, import("@vue/runtime-core").PublicProps, {
2732
+ configForm: Readonly<import("@vue/reactivity").ShallowRef<({
2733
+ $: import("@vue/runtime-core").ComponentInternalInstance;
2734
+ $data: {};
2735
+ $props: {
2736
+ readonly config: import("@tmagic/form-schema").FormConfig;
2737
+ readonly initValues: Record<string, any>;
2738
+ readonly lastValues?: Record<string, any> | undefined;
2739
+ readonly isCompare?: boolean | undefined;
2740
+ readonly parentValues?: Record<string, any> | undefined;
2741
+ readonly labelWidth?: string | undefined;
2742
+ readonly disabled?: boolean | undefined;
2743
+ readonly height?: string | undefined;
2744
+ readonly stepActive?: string | number | undefined;
2745
+ readonly size?: "small" | "default" | "large" | undefined;
2746
+ readonly inline?: boolean | undefined;
2747
+ readonly labelPosition?: string | undefined;
2748
+ readonly keyProp?: string | undefined;
2749
+ readonly popperClass?: string | undefined;
2750
+ readonly preventSubmitDefault?: boolean | undefined;
2751
+ readonly extendState?: ((_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
2752
+ readonly showDiff?: ((_data: {
2753
+ curValue: any;
2754
+ lastValue: any;
2755
+ config: any;
2756
+ }) => boolean) | undefined;
2757
+ readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
2758
+ readonly onError?: ((...args: any[]) => any) | undefined;
2759
+ readonly onChange?: ((...args: any[]) => any) | undefined;
2760
+ readonly "onField-input"?: ((...args: any[]) => any) | undefined;
2761
+ readonly "onField-change"?: ((...args: any[]) => any) | undefined;
2762
+ readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
2763
+ } & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
2764
+ $attrs: import("@vue/runtime-core").Attrs;
2765
+ $refs: {
2766
+ [x: string]: unknown;
2767
+ };
2768
+ $slots: Readonly<{
2769
+ [name: string]: import("@vue/runtime-core").Slot<any> | undefined;
2770
+ }>;
2771
+ $root: import("@vue/runtime-core").ComponentPublicInstance | null;
2772
+ $parent: import("@vue/runtime-core").ComponentPublicInstance | null;
2773
+ $host: Element | null;
2774
+ $emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
2775
+ $el: any;
2776
+ $options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
2777
+ config: import("@tmagic/form-schema").FormConfig;
2778
+ initValues: Record<string, any>;
2779
+ lastValues?: Record<string, any>;
2780
+ isCompare?: boolean;
2781
+ parentValues?: Record<string, any>;
2782
+ labelWidth?: string;
2783
+ disabled?: boolean;
2784
+ height?: string;
2785
+ stepActive?: string | number;
2786
+ size?: "small" | "default" | "large";
2787
+ inline?: boolean;
2788
+ labelPosition?: string;
2789
+ keyProp?: string;
2790
+ popperClass?: string;
2791
+ preventSubmitDefault?: boolean;
2792
+ extendState?: (_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>;
2793
+ showDiff?: (_data: {
2794
+ curValue: any;
2795
+ lastValue: any;
2796
+ config: any;
2797
+ }) => boolean;
2798
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
2799
+ }> & Readonly<{
2800
+ onError?: ((...args: any[]) => any) | undefined;
2801
+ onChange?: ((...args: any[]) => any) | undefined;
2802
+ "onField-input"?: ((...args: any[]) => any) | undefined;
2803
+ "onField-change"?: ((...args: any[]) => any) | undefined;
2804
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
2805
+ }>, {
2806
+ values: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
2807
+ lastValuesProcessed: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
2808
+ formState: import("@tmagic/form-schema").FormState;
2809
+ initialized: import("@vue/reactivity").Ref<boolean, boolean>;
2810
+ changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
2811
+ changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData$1) => void;
2812
+ resetForm: () => void;
2813
+ submitForm: (native?: boolean) => Promise<any>;
2814
+ getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
2815
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2816
+ error: (...args: any[]) => void;
2817
+ change: (...args: any[]) => void;
2818
+ "field-input": (...args: any[]) => void;
2819
+ "field-change": (...args: any[]) => void;
2820
+ "update:stepActive": (...args: any[]) => void;
2821
+ }, string, {
2822
+ disabled: boolean;
2823
+ labelWidth: string;
2824
+ inline: boolean;
2825
+ labelPosition: string;
2826
+ config: import("@tmagic/form-schema").FormConfig;
2827
+ height: string;
2828
+ initValues: Record<string, any>;
2829
+ lastValues: Record<string, any>;
2830
+ isCompare: boolean;
2831
+ keyProp: string;
2832
+ parentValues: Record<string, any>;
2833
+ stepActive: string | number;
2834
+ }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
2835
+ beforeCreate?: (() => void) | (() => void)[];
2836
+ created?: (() => void) | (() => void)[];
2837
+ beforeMount?: (() => void) | (() => void)[];
2838
+ mounted?: (() => void) | (() => void)[];
2839
+ beforeUpdate?: (() => void) | (() => void)[];
2840
+ updated?: (() => void) | (() => void)[];
2841
+ activated?: (() => void) | (() => void)[];
2842
+ deactivated?: (() => void) | (() => void)[];
2843
+ beforeDestroy?: (() => void) | (() => void)[];
2844
+ beforeUnmount?: (() => void) | (() => void)[];
2845
+ destroyed?: (() => void) | (() => void)[];
2846
+ unmounted?: (() => void) | (() => void)[];
2847
+ renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
2848
+ renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
2849
+ errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
2850
+ };
2851
+ $forceUpdate: () => void;
2852
+ $nextTick: typeof import("@vue/runtime-core").nextTick;
2853
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
2854
+ } & Readonly<{
2160
2855
  disabled: boolean;
2161
2856
  labelWidth: string;
2162
2857
  inline: boolean;
@@ -2169,14 +2864,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
2169
2864
  keyProp: string;
2170
2865
  parentValues: Record<string, any>;
2171
2866
  stepActive: string | number;
2172
- }, false, {}, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, {}, any, import("@vue/runtime-core").ComponentProvideOptions, {
2173
- P: {};
2174
- B: {};
2175
- D: {};
2176
- C: {};
2177
- M: {};
2178
- Defaults: {};
2179
- }, Readonly<{
2867
+ }> & Omit<Readonly<{
2180
2868
  config: import("@tmagic/form-schema").FormConfig;
2181
2869
  initValues: Record<string, any>;
2182
2870
  lastValues?: Record<string, any>;
@@ -2193,36 +2881,31 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
2193
2881
  popperClass?: string;
2194
2882
  preventSubmitDefault?: boolean;
2195
2883
  extendState?: (_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>;
2884
+ showDiff?: (_data: {
2885
+ curValue: any;
2886
+ lastValue: any;
2887
+ config: any;
2888
+ }) => boolean;
2889
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
2196
2890
  }> & Readonly<{
2197
2891
  onError?: ((...args: any[]) => any) | undefined;
2198
2892
  onChange?: ((...args: any[]) => any) | undefined;
2199
2893
  "onField-input"?: ((...args: any[]) => any) | undefined;
2200
2894
  "onField-change"?: ((...args: any[]) => any) | undefined;
2201
2895
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
2202
- }>, {
2203
- values: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
2204
- lastValuesProcessed: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
2896
+ }>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
2897
+ values: import("@tmagic/form-schema").FormValue;
2898
+ lastValuesProcessed: import("@tmagic/form-schema").FormValue;
2205
2899
  formState: import("@tmagic/form-schema").FormState;
2206
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
2207
- changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
2900
+ initialized: boolean;
2901
+ changeRecords: ChangeRecord$1[];
2208
2902
  changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData$1) => void;
2209
2903
  resetForm: () => void;
2210
2904
  submitForm: (native?: boolean) => Promise<any>;
2211
2905
  getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
2212
- }, {}, {}, {}, {
2213
- disabled: boolean;
2214
- labelWidth: string;
2215
- inline: boolean;
2216
- labelPosition: string;
2217
- config: import("@tmagic/form-schema").FormConfig;
2218
- height: string;
2219
- initValues: Record<string, any>;
2220
- lastValues: Record<string, any>;
2221
- isCompare: boolean;
2222
- keyProp: string;
2223
- parentValues: Record<string, any>;
2224
- stepActive: string | number;
2225
- }> | null>>;
2906
+ } & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
2907
+ $slots: FormSlots;
2908
+ }) | null>>;
2226
2909
  submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData$1) => Promise<void>;
2227
2910
  }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2228
2911
  mounted: (internalInstance: any) => any;
@@ -2265,46 +2948,129 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
2265
2948
  "onSubmit-error"?: ((e: any) => any) | undefined;
2266
2949
  "onForm-error"?: ((e: any) => any) | undefined;
2267
2950
  }>, "submit" | "configForm"> & {
2268
- configForm: import("@vue/runtime-core").CreateComponentPublicInstanceWithMixins<Readonly<{
2269
- config: import("@tmagic/form-schema").FormConfig;
2270
- initValues: Record<string, any>;
2271
- lastValues?: Record<string, any>;
2272
- isCompare?: boolean;
2273
- parentValues?: Record<string, any>;
2274
- labelWidth?: string;
2275
- disabled?: boolean;
2276
- height?: string;
2277
- stepActive?: string | number;
2278
- size?: "small" | "default" | "large";
2279
- inline?: boolean;
2280
- labelPosition?: string;
2281
- keyProp?: string;
2282
- popperClass?: string;
2283
- preventSubmitDefault?: boolean;
2284
- extendState?: (_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>;
2285
- }> & Readonly<{
2286
- onError?: ((...args: any[]) => any) | undefined;
2287
- onChange?: ((...args: any[]) => any) | undefined;
2288
- "onField-input"?: ((...args: any[]) => any) | undefined;
2289
- "onField-change"?: ((...args: any[]) => any) | undefined;
2290
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
2291
- }>, {
2292
- values: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
2293
- lastValuesProcessed: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
2294
- formState: import("@tmagic/form-schema").FormState;
2295
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
2296
- changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
2297
- changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData$1) => void;
2298
- resetForm: () => void;
2299
- submitForm: (native?: boolean) => Promise<any>;
2300
- getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
2301
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2302
- error: (...args: any[]) => void;
2303
- change: (...args: any[]) => void;
2304
- "field-input": (...args: any[]) => void;
2305
- "field-change": (...args: any[]) => void;
2306
- "update:stepActive": (...args: any[]) => void;
2307
- }, import("@vue/runtime-core").PublicProps, {
2951
+ configForm: ({
2952
+ $: import("@vue/runtime-core").ComponentInternalInstance;
2953
+ $data: {};
2954
+ $props: {
2955
+ readonly config: import("@tmagic/form-schema").FormConfig;
2956
+ readonly initValues: Record<string, any>;
2957
+ readonly lastValues?: Record<string, any> | undefined;
2958
+ readonly isCompare?: boolean | undefined;
2959
+ readonly parentValues?: Record<string, any> | undefined;
2960
+ readonly labelWidth?: string | undefined;
2961
+ readonly disabled?: boolean | undefined;
2962
+ readonly height?: string | undefined;
2963
+ readonly stepActive?: string | number | undefined;
2964
+ readonly size?: "small" | "default" | "large" | undefined;
2965
+ readonly inline?: boolean | undefined;
2966
+ readonly labelPosition?: string | undefined;
2967
+ readonly keyProp?: string | undefined;
2968
+ readonly popperClass?: string | undefined;
2969
+ readonly preventSubmitDefault?: boolean | undefined;
2970
+ readonly extendState?: ((_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
2971
+ readonly showDiff?: ((_data: {
2972
+ curValue: any;
2973
+ lastValue: any;
2974
+ config: any;
2975
+ }) => boolean) | undefined;
2976
+ readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
2977
+ readonly onError?: ((...args: any[]) => any) | undefined;
2978
+ readonly onChange?: ((...args: any[]) => any) | undefined;
2979
+ readonly "onField-input"?: ((...args: any[]) => any) | undefined;
2980
+ readonly "onField-change"?: ((...args: any[]) => any) | undefined;
2981
+ readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
2982
+ } & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
2983
+ $attrs: import("@vue/runtime-core").Attrs;
2984
+ $refs: {
2985
+ [x: string]: unknown;
2986
+ };
2987
+ $slots: Readonly<{
2988
+ [name: string]: import("@vue/runtime-core").Slot<any> | undefined;
2989
+ }>;
2990
+ $root: import("@vue/runtime-core").ComponentPublicInstance | null;
2991
+ $parent: import("@vue/runtime-core").ComponentPublicInstance | null;
2992
+ $host: Element | null;
2993
+ $emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
2994
+ $el: any;
2995
+ $options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
2996
+ config: import("@tmagic/form-schema").FormConfig;
2997
+ initValues: Record<string, any>;
2998
+ lastValues?: Record<string, any>;
2999
+ isCompare?: boolean;
3000
+ parentValues?: Record<string, any>;
3001
+ labelWidth?: string;
3002
+ disabled?: boolean;
3003
+ height?: string;
3004
+ stepActive?: string | number;
3005
+ size?: "small" | "default" | "large";
3006
+ inline?: boolean;
3007
+ labelPosition?: string;
3008
+ keyProp?: string;
3009
+ popperClass?: string;
3010
+ preventSubmitDefault?: boolean;
3011
+ extendState?: (_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>;
3012
+ showDiff?: (_data: {
3013
+ curValue: any;
3014
+ lastValue: any;
3015
+ config: any;
3016
+ }) => boolean;
3017
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
3018
+ }> & Readonly<{
3019
+ onError?: ((...args: any[]) => any) | undefined;
3020
+ onChange?: ((...args: any[]) => any) | undefined;
3021
+ "onField-input"?: ((...args: any[]) => any) | undefined;
3022
+ "onField-change"?: ((...args: any[]) => any) | undefined;
3023
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
3024
+ }>, {
3025
+ values: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
3026
+ lastValuesProcessed: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
3027
+ formState: import("@tmagic/form-schema").FormState;
3028
+ initialized: import("@vue/reactivity").Ref<boolean, boolean>;
3029
+ changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
3030
+ changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData$1) => void;
3031
+ resetForm: () => void;
3032
+ submitForm: (native?: boolean) => Promise<any>;
3033
+ getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
3034
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3035
+ error: (...args: any[]) => void;
3036
+ change: (...args: any[]) => void;
3037
+ "field-input": (...args: any[]) => void;
3038
+ "field-change": (...args: any[]) => void;
3039
+ "update:stepActive": (...args: any[]) => void;
3040
+ }, string, {
3041
+ disabled: boolean;
3042
+ labelWidth: string;
3043
+ inline: boolean;
3044
+ labelPosition: string;
3045
+ config: import("@tmagic/form-schema").FormConfig;
3046
+ height: string;
3047
+ initValues: Record<string, any>;
3048
+ lastValues: Record<string, any>;
3049
+ isCompare: boolean;
3050
+ keyProp: string;
3051
+ parentValues: Record<string, any>;
3052
+ stepActive: string | number;
3053
+ }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
3054
+ beforeCreate?: (() => void) | (() => void)[];
3055
+ created?: (() => void) | (() => void)[];
3056
+ beforeMount?: (() => void) | (() => void)[];
3057
+ mounted?: (() => void) | (() => void)[];
3058
+ beforeUpdate?: (() => void) | (() => void)[];
3059
+ updated?: (() => void) | (() => void)[];
3060
+ activated?: (() => void) | (() => void)[];
3061
+ deactivated?: (() => void) | (() => void)[];
3062
+ beforeDestroy?: (() => void) | (() => void)[];
3063
+ beforeUnmount?: (() => void) | (() => void)[];
3064
+ destroyed?: (() => void) | (() => void)[];
3065
+ unmounted?: (() => void) | (() => void)[];
3066
+ renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
3067
+ renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
3068
+ errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
3069
+ };
3070
+ $forceUpdate: () => void;
3071
+ $nextTick: typeof import("@vue/runtime-core").nextTick;
3072
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
3073
+ } & Readonly<{
2308
3074
  disabled: boolean;
2309
3075
  labelWidth: string;
2310
3076
  inline: boolean;
@@ -2317,14 +3083,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
2317
3083
  keyProp: string;
2318
3084
  parentValues: Record<string, any>;
2319
3085
  stepActive: string | number;
2320
- }, false, {}, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, {}, any, import("@vue/runtime-core").ComponentProvideOptions, {
2321
- P: {};
2322
- B: {};
2323
- D: {};
2324
- C: {};
2325
- M: {};
2326
- Defaults: {};
2327
- }, Readonly<{
3086
+ }> & Omit<Readonly<{
2328
3087
  config: import("@tmagic/form-schema").FormConfig;
2329
3088
  initValues: Record<string, any>;
2330
3089
  lastValues?: Record<string, any>;
@@ -2341,36 +3100,31 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
2341
3100
  popperClass?: string;
2342
3101
  preventSubmitDefault?: boolean;
2343
3102
  extendState?: (_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>;
3103
+ showDiff?: (_data: {
3104
+ curValue: any;
3105
+ lastValue: any;
3106
+ config: any;
3107
+ }) => boolean;
3108
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
2344
3109
  }> & Readonly<{
2345
3110
  onError?: ((...args: any[]) => any) | undefined;
2346
3111
  onChange?: ((...args: any[]) => any) | undefined;
2347
3112
  "onField-input"?: ((...args: any[]) => any) | undefined;
2348
3113
  "onField-change"?: ((...args: any[]) => any) | undefined;
2349
3114
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
2350
- }>, {
2351
- values: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
2352
- lastValuesProcessed: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
3115
+ }>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
3116
+ values: import("@tmagic/form-schema").FormValue;
3117
+ lastValuesProcessed: import("@tmagic/form-schema").FormValue;
2353
3118
  formState: import("@tmagic/form-schema").FormState;
2354
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
2355
- changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
3119
+ initialized: boolean;
3120
+ changeRecords: ChangeRecord$1[];
2356
3121
  changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData$1) => void;
2357
3122
  resetForm: () => void;
2358
3123
  submitForm: (native?: boolean) => Promise<any>;
2359
3124
  getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
2360
- }, {}, {}, {}, {
2361
- disabled: boolean;
2362
- labelWidth: string;
2363
- inline: boolean;
2364
- labelPosition: string;
2365
- config: import("@tmagic/form-schema").FormConfig;
2366
- height: string;
2367
- initValues: Record<string, any>;
2368
- lastValues: Record<string, any>;
2369
- isCompare: boolean;
2370
- keyProp: string;
2371
- parentValues: Record<string, any>;
2372
- stepActive: string | number;
2373
- }> | null;
3125
+ } & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
3126
+ $slots: FormSlots;
3127
+ }) | null;
2374
3128
  submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData$1) => Promise<void>;
2375
3129
  } & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
2376
3130
  $slots: {
@@ -2427,46 +3181,129 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
2427
3181
  "onSubmit-error"?: ((e: any) => any) | undefined;
2428
3182
  "onForm-error"?: ((e: any) => any) | undefined;
2429
3183
  }>, {
2430
- configForm: Readonly<import("@vue/reactivity").ShallowRef<import("@vue/runtime-core").CreateComponentPublicInstanceWithMixins<Readonly<{
2431
- config: import("@tmagic/form-schema").FormConfig;
2432
- initValues: Record<string, any>;
2433
- lastValues?: Record<string, any>;
2434
- isCompare?: boolean;
2435
- parentValues?: Record<string, any>;
2436
- labelWidth?: string;
2437
- disabled?: boolean;
2438
- height?: string;
2439
- stepActive?: string | number;
2440
- size?: "small" | "default" | "large";
2441
- inline?: boolean;
2442
- labelPosition?: string;
2443
- keyProp?: string;
2444
- popperClass?: string;
2445
- preventSubmitDefault?: boolean;
2446
- extendState?: (_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>;
2447
- }> & Readonly<{
2448
- onError?: ((...args: any[]) => any) | undefined;
2449
- onChange?: ((...args: any[]) => any) | undefined;
2450
- "onField-input"?: ((...args: any[]) => any) | undefined;
2451
- "onField-change"?: ((...args: any[]) => any) | undefined;
2452
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
2453
- }>, {
2454
- values: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
2455
- lastValuesProcessed: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
2456
- formState: import("@tmagic/form-schema").FormState;
2457
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
2458
- changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
2459
- changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData$1) => void;
2460
- resetForm: () => void;
2461
- submitForm: (native?: boolean) => Promise<any>;
2462
- getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
2463
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2464
- error: (...args: any[]) => void;
2465
- change: (...args: any[]) => void;
2466
- "field-input": (...args: any[]) => void;
2467
- "field-change": (...args: any[]) => void;
2468
- "update:stepActive": (...args: any[]) => void;
2469
- }, import("@vue/runtime-core").PublicProps, {
3184
+ configForm: Readonly<import("@vue/reactivity").ShallowRef<({
3185
+ $: import("@vue/runtime-core").ComponentInternalInstance;
3186
+ $data: {};
3187
+ $props: {
3188
+ readonly config: import("@tmagic/form-schema").FormConfig;
3189
+ readonly initValues: Record<string, any>;
3190
+ readonly lastValues?: Record<string, any> | undefined;
3191
+ readonly isCompare?: boolean | undefined;
3192
+ readonly parentValues?: Record<string, any> | undefined;
3193
+ readonly labelWidth?: string | undefined;
3194
+ readonly disabled?: boolean | undefined;
3195
+ readonly height?: string | undefined;
3196
+ readonly stepActive?: string | number | undefined;
3197
+ readonly size?: "small" | "default" | "large" | undefined;
3198
+ readonly inline?: boolean | undefined;
3199
+ readonly labelPosition?: string | undefined;
3200
+ readonly keyProp?: string | undefined;
3201
+ readonly popperClass?: string | undefined;
3202
+ readonly preventSubmitDefault?: boolean | undefined;
3203
+ readonly extendState?: ((_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
3204
+ readonly showDiff?: ((_data: {
3205
+ curValue: any;
3206
+ lastValue: any;
3207
+ config: any;
3208
+ }) => boolean) | undefined;
3209
+ readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
3210
+ readonly onError?: ((...args: any[]) => any) | undefined;
3211
+ readonly onChange?: ((...args: any[]) => any) | undefined;
3212
+ readonly "onField-input"?: ((...args: any[]) => any) | undefined;
3213
+ readonly "onField-change"?: ((...args: any[]) => any) | undefined;
3214
+ readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
3215
+ } & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
3216
+ $attrs: import("@vue/runtime-core").Attrs;
3217
+ $refs: {
3218
+ [x: string]: unknown;
3219
+ };
3220
+ $slots: Readonly<{
3221
+ [name: string]: import("@vue/runtime-core").Slot<any> | undefined;
3222
+ }>;
3223
+ $root: import("@vue/runtime-core").ComponentPublicInstance | null;
3224
+ $parent: import("@vue/runtime-core").ComponentPublicInstance | null;
3225
+ $host: Element | null;
3226
+ $emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
3227
+ $el: any;
3228
+ $options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
3229
+ config: import("@tmagic/form-schema").FormConfig;
3230
+ initValues: Record<string, any>;
3231
+ lastValues?: Record<string, any>;
3232
+ isCompare?: boolean;
3233
+ parentValues?: Record<string, any>;
3234
+ labelWidth?: string;
3235
+ disabled?: boolean;
3236
+ height?: string;
3237
+ stepActive?: string | number;
3238
+ size?: "small" | "default" | "large";
3239
+ inline?: boolean;
3240
+ labelPosition?: string;
3241
+ keyProp?: string;
3242
+ popperClass?: string;
3243
+ preventSubmitDefault?: boolean;
3244
+ extendState?: (_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>;
3245
+ showDiff?: (_data: {
3246
+ curValue: any;
3247
+ lastValue: any;
3248
+ config: any;
3249
+ }) => boolean;
3250
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
3251
+ }> & Readonly<{
3252
+ onError?: ((...args: any[]) => any) | undefined;
3253
+ onChange?: ((...args: any[]) => any) | undefined;
3254
+ "onField-input"?: ((...args: any[]) => any) | undefined;
3255
+ "onField-change"?: ((...args: any[]) => any) | undefined;
3256
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
3257
+ }>, {
3258
+ values: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
3259
+ lastValuesProcessed: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
3260
+ formState: import("@tmagic/form-schema").FormState;
3261
+ initialized: import("@vue/reactivity").Ref<boolean, boolean>;
3262
+ changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
3263
+ changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData$1) => void;
3264
+ resetForm: () => void;
3265
+ submitForm: (native?: boolean) => Promise<any>;
3266
+ getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
3267
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3268
+ error: (...args: any[]) => void;
3269
+ change: (...args: any[]) => void;
3270
+ "field-input": (...args: any[]) => void;
3271
+ "field-change": (...args: any[]) => void;
3272
+ "update:stepActive": (...args: any[]) => void;
3273
+ }, string, {
3274
+ disabled: boolean;
3275
+ labelWidth: string;
3276
+ inline: boolean;
3277
+ labelPosition: string;
3278
+ config: import("@tmagic/form-schema").FormConfig;
3279
+ height: string;
3280
+ initValues: Record<string, any>;
3281
+ lastValues: Record<string, any>;
3282
+ isCompare: boolean;
3283
+ keyProp: string;
3284
+ parentValues: Record<string, any>;
3285
+ stepActive: string | number;
3286
+ }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
3287
+ beforeCreate?: (() => void) | (() => void)[];
3288
+ created?: (() => void) | (() => void)[];
3289
+ beforeMount?: (() => void) | (() => void)[];
3290
+ mounted?: (() => void) | (() => void)[];
3291
+ beforeUpdate?: (() => void) | (() => void)[];
3292
+ updated?: (() => void) | (() => void)[];
3293
+ activated?: (() => void) | (() => void)[];
3294
+ deactivated?: (() => void) | (() => void)[];
3295
+ beforeDestroy?: (() => void) | (() => void)[];
3296
+ beforeUnmount?: (() => void) | (() => void)[];
3297
+ destroyed?: (() => void) | (() => void)[];
3298
+ unmounted?: (() => void) | (() => void)[];
3299
+ renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
3300
+ renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
3301
+ errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
3302
+ };
3303
+ $forceUpdate: () => void;
3304
+ $nextTick: typeof import("@vue/runtime-core").nextTick;
3305
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
3306
+ } & Readonly<{
2470
3307
  disabled: boolean;
2471
3308
  labelWidth: string;
2472
3309
  inline: boolean;
@@ -2479,14 +3316,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
2479
3316
  keyProp: string;
2480
3317
  parentValues: Record<string, any>;
2481
3318
  stepActive: string | number;
2482
- }, false, {}, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, {}, any, import("@vue/runtime-core").ComponentProvideOptions, {
2483
- P: {};
2484
- B: {};
2485
- D: {};
2486
- C: {};
2487
- M: {};
2488
- Defaults: {};
2489
- }, Readonly<{
3319
+ }> & Omit<Readonly<{
2490
3320
  config: import("@tmagic/form-schema").FormConfig;
2491
3321
  initValues: Record<string, any>;
2492
3322
  lastValues?: Record<string, any>;
@@ -2503,36 +3333,31 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
2503
3333
  popperClass?: string;
2504
3334
  preventSubmitDefault?: boolean;
2505
3335
  extendState?: (_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>;
3336
+ showDiff?: (_data: {
3337
+ curValue: any;
3338
+ lastValue: any;
3339
+ config: any;
3340
+ }) => boolean;
3341
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
2506
3342
  }> & Readonly<{
2507
3343
  onError?: ((...args: any[]) => any) | undefined;
2508
3344
  onChange?: ((...args: any[]) => any) | undefined;
2509
3345
  "onField-input"?: ((...args: any[]) => any) | undefined;
2510
3346
  "onField-change"?: ((...args: any[]) => any) | undefined;
2511
3347
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
2512
- }>, {
2513
- values: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
2514
- lastValuesProcessed: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
3348
+ }>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
3349
+ values: import("@tmagic/form-schema").FormValue;
3350
+ lastValuesProcessed: import("@tmagic/form-schema").FormValue;
2515
3351
  formState: import("@tmagic/form-schema").FormState;
2516
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
2517
- changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
3352
+ initialized: boolean;
3353
+ changeRecords: ChangeRecord$1[];
2518
3354
  changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData$1) => void;
2519
3355
  resetForm: () => void;
2520
3356
  submitForm: (native?: boolean) => Promise<any>;
2521
3357
  getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
2522
- }, {}, {}, {}, {
2523
- disabled: boolean;
2524
- labelWidth: string;
2525
- inline: boolean;
2526
- labelPosition: string;
2527
- config: import("@tmagic/form-schema").FormConfig;
2528
- height: string;
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
- }> | null>>;
3358
+ } & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
3359
+ $slots: FormSlots;
3360
+ }) | null>>;
2536
3361
  submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData$1) => Promise<void>;
2537
3362
  }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2538
3363
  mounted: (internalInstance: any) => any;
@@ -2575,46 +3400,129 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
2575
3400
  "onSubmit-error"?: ((e: any) => any) | undefined;
2576
3401
  "onForm-error"?: ((e: any) => any) | undefined;
2577
3402
  }>, "submit" | "configForm"> & {
2578
- configForm: import("@vue/runtime-core").CreateComponentPublicInstanceWithMixins<Readonly<{
2579
- config: import("@tmagic/form-schema").FormConfig;
2580
- initValues: Record<string, any>;
2581
- lastValues?: Record<string, any>;
2582
- isCompare?: boolean;
2583
- parentValues?: Record<string, any>;
2584
- labelWidth?: string;
2585
- disabled?: boolean;
2586
- height?: string;
2587
- stepActive?: string | number;
2588
- size?: "small" | "default" | "large";
2589
- inline?: boolean;
2590
- labelPosition?: string;
2591
- keyProp?: string;
2592
- popperClass?: string;
2593
- preventSubmitDefault?: boolean;
2594
- extendState?: (_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>;
2595
- }> & Readonly<{
2596
- onError?: ((...args: any[]) => any) | undefined;
2597
- onChange?: ((...args: any[]) => any) | undefined;
2598
- "onField-input"?: ((...args: any[]) => any) | undefined;
2599
- "onField-change"?: ((...args: any[]) => any) | undefined;
2600
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
2601
- }>, {
2602
- values: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
2603
- lastValuesProcessed: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
2604
- formState: import("@tmagic/form-schema").FormState;
2605
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
2606
- changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
2607
- changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData$1) => void;
2608
- resetForm: () => void;
2609
- submitForm: (native?: boolean) => Promise<any>;
2610
- getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
2611
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2612
- error: (...args: any[]) => void;
2613
- change: (...args: any[]) => void;
2614
- "field-input": (...args: any[]) => void;
2615
- "field-change": (...args: any[]) => void;
2616
- "update:stepActive": (...args: any[]) => void;
2617
- }, import("@vue/runtime-core").PublicProps, {
3403
+ configForm: ({
3404
+ $: import("@vue/runtime-core").ComponentInternalInstance;
3405
+ $data: {};
3406
+ $props: {
3407
+ readonly config: import("@tmagic/form-schema").FormConfig;
3408
+ readonly initValues: Record<string, any>;
3409
+ readonly lastValues?: Record<string, any> | undefined;
3410
+ readonly isCompare?: boolean | undefined;
3411
+ readonly parentValues?: Record<string, any> | undefined;
3412
+ readonly labelWidth?: string | undefined;
3413
+ readonly disabled?: boolean | undefined;
3414
+ readonly height?: string | undefined;
3415
+ readonly stepActive?: string | number | undefined;
3416
+ readonly size?: "small" | "default" | "large" | undefined;
3417
+ readonly inline?: boolean | undefined;
3418
+ readonly labelPosition?: string | undefined;
3419
+ readonly keyProp?: string | undefined;
3420
+ readonly popperClass?: string | undefined;
3421
+ readonly preventSubmitDefault?: boolean | undefined;
3422
+ readonly extendState?: ((_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
3423
+ readonly showDiff?: ((_data: {
3424
+ curValue: any;
3425
+ lastValue: any;
3426
+ config: any;
3427
+ }) => boolean) | undefined;
3428
+ readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
3429
+ readonly onError?: ((...args: any[]) => any) | undefined;
3430
+ readonly onChange?: ((...args: any[]) => any) | undefined;
3431
+ readonly "onField-input"?: ((...args: any[]) => any) | undefined;
3432
+ readonly "onField-change"?: ((...args: any[]) => any) | undefined;
3433
+ readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
3434
+ } & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
3435
+ $attrs: import("@vue/runtime-core").Attrs;
3436
+ $refs: {
3437
+ [x: string]: unknown;
3438
+ };
3439
+ $slots: Readonly<{
3440
+ [name: string]: import("@vue/runtime-core").Slot<any> | undefined;
3441
+ }>;
3442
+ $root: import("@vue/runtime-core").ComponentPublicInstance | null;
3443
+ $parent: import("@vue/runtime-core").ComponentPublicInstance | null;
3444
+ $host: Element | null;
3445
+ $emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
3446
+ $el: any;
3447
+ $options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
3448
+ config: import("@tmagic/form-schema").FormConfig;
3449
+ initValues: Record<string, any>;
3450
+ lastValues?: Record<string, any>;
3451
+ isCompare?: boolean;
3452
+ parentValues?: Record<string, any>;
3453
+ labelWidth?: string;
3454
+ disabled?: boolean;
3455
+ height?: string;
3456
+ stepActive?: string | number;
3457
+ size?: "small" | "default" | "large";
3458
+ inline?: boolean;
3459
+ labelPosition?: string;
3460
+ keyProp?: string;
3461
+ popperClass?: string;
3462
+ preventSubmitDefault?: boolean;
3463
+ extendState?: (_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>;
3464
+ showDiff?: (_data: {
3465
+ curValue: any;
3466
+ lastValue: any;
3467
+ config: any;
3468
+ }) => boolean;
3469
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
3470
+ }> & Readonly<{
3471
+ onError?: ((...args: any[]) => any) | undefined;
3472
+ onChange?: ((...args: any[]) => any) | undefined;
3473
+ "onField-input"?: ((...args: any[]) => any) | undefined;
3474
+ "onField-change"?: ((...args: any[]) => any) | undefined;
3475
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
3476
+ }>, {
3477
+ values: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
3478
+ lastValuesProcessed: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
3479
+ formState: import("@tmagic/form-schema").FormState;
3480
+ initialized: import("@vue/reactivity").Ref<boolean, boolean>;
3481
+ changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
3482
+ changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData$1) => void;
3483
+ resetForm: () => void;
3484
+ submitForm: (native?: boolean) => Promise<any>;
3485
+ getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
3486
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3487
+ error: (...args: any[]) => void;
3488
+ change: (...args: any[]) => void;
3489
+ "field-input": (...args: any[]) => void;
3490
+ "field-change": (...args: any[]) => void;
3491
+ "update:stepActive": (...args: any[]) => void;
3492
+ }, string, {
3493
+ disabled: boolean;
3494
+ labelWidth: string;
3495
+ inline: boolean;
3496
+ labelPosition: string;
3497
+ config: import("@tmagic/form-schema").FormConfig;
3498
+ height: string;
3499
+ initValues: Record<string, any>;
3500
+ lastValues: Record<string, any>;
3501
+ isCompare: boolean;
3502
+ keyProp: string;
3503
+ parentValues: Record<string, any>;
3504
+ stepActive: string | number;
3505
+ }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
3506
+ beforeCreate?: (() => void) | (() => void)[];
3507
+ created?: (() => void) | (() => void)[];
3508
+ beforeMount?: (() => void) | (() => void)[];
3509
+ mounted?: (() => void) | (() => void)[];
3510
+ beforeUpdate?: (() => void) | (() => void)[];
3511
+ updated?: (() => void) | (() => void)[];
3512
+ activated?: (() => void) | (() => void)[];
3513
+ deactivated?: (() => void) | (() => void)[];
3514
+ beforeDestroy?: (() => void) | (() => void)[];
3515
+ beforeUnmount?: (() => void) | (() => void)[];
3516
+ destroyed?: (() => void) | (() => void)[];
3517
+ unmounted?: (() => void) | (() => void)[];
3518
+ renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
3519
+ renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
3520
+ errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
3521
+ };
3522
+ $forceUpdate: () => void;
3523
+ $nextTick: typeof import("@vue/runtime-core").nextTick;
3524
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
3525
+ } & Readonly<{
2618
3526
  disabled: boolean;
2619
3527
  labelWidth: string;
2620
3528
  inline: boolean;
@@ -2627,14 +3535,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
2627
3535
  keyProp: string;
2628
3536
  parentValues: Record<string, any>;
2629
3537
  stepActive: string | number;
2630
- }, false, {}, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, {}, any, import("@vue/runtime-core").ComponentProvideOptions, {
2631
- P: {};
2632
- B: {};
2633
- D: {};
2634
- C: {};
2635
- M: {};
2636
- Defaults: {};
2637
- }, Readonly<{
3538
+ }> & Omit<Readonly<{
2638
3539
  config: import("@tmagic/form-schema").FormConfig;
2639
3540
  initValues: Record<string, any>;
2640
3541
  lastValues?: Record<string, any>;
@@ -2651,36 +3552,31 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
2651
3552
  popperClass?: string;
2652
3553
  preventSubmitDefault?: boolean;
2653
3554
  extendState?: (_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>;
3555
+ showDiff?: (_data: {
3556
+ curValue: any;
3557
+ lastValue: any;
3558
+ config: any;
3559
+ }) => boolean;
3560
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
2654
3561
  }> & Readonly<{
2655
3562
  onError?: ((...args: any[]) => any) | undefined;
2656
3563
  onChange?: ((...args: any[]) => any) | undefined;
2657
3564
  "onField-input"?: ((...args: any[]) => any) | undefined;
2658
3565
  "onField-change"?: ((...args: any[]) => any) | undefined;
2659
3566
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
2660
- }>, {
2661
- values: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
2662
- lastValuesProcessed: import("@vue/reactivity").Ref<import("@tmagic/form-schema").FormValue, import("@tmagic/form-schema").FormValue>;
3567
+ }>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
3568
+ values: import("@tmagic/form-schema").FormValue;
3569
+ lastValuesProcessed: import("@tmagic/form-schema").FormValue;
2663
3570
  formState: import("@tmagic/form-schema").FormState;
2664
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
2665
- changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
3571
+ initialized: boolean;
3572
+ changeRecords: ChangeRecord$1[];
2666
3573
  changeHandler: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData$1) => void;
2667
3574
  resetForm: () => void;
2668
3575
  submitForm: (native?: boolean) => Promise<any>;
2669
3576
  getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
2670
- }, {}, {}, {}, {
2671
- disabled: boolean;
2672
- labelWidth: string;
2673
- inline: boolean;
2674
- labelPosition: string;
2675
- config: import("@tmagic/form-schema").FormConfig;
2676
- height: string;
2677
- initValues: Record<string, any>;
2678
- lastValues: Record<string, any>;
2679
- isCompare: boolean;
2680
- keyProp: string;
2681
- parentValues: Record<string, any>;
2682
- stepActive: string | number;
2683
- }> | null;
3577
+ } & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
3578
+ $slots: FormSlots;
3579
+ }) | null;
2684
3580
  submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData$1) => Promise<void>;
2685
3581
  } & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
2686
3582
  $slots: {
@@ -2722,8 +3618,8 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
2722
3618
  containerHighlightType: import("@tmagic/stage").ContainerHighlightType;
2723
3619
  canSelect: (el: HTMLElement) => boolean | Promise<boolean>;
2724
3620
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2725
- declare const __VLS_export$33: __VLS_WithSlots$12<typeof __VLS_base$12, __VLS_Slots$12>;
2726
- declare const _default$30: typeof __VLS_export$33;
3621
+ declare const __VLS_export$34: __VLS_WithSlots$12<typeof __VLS_base$12, __VLS_Slots$12>;
3622
+ declare const _default$31: typeof __VLS_export$34;
2727
3623
  type __VLS_WithSlots$12<T, S> = T & {
2728
3624
  new (): {
2729
3625
  $slots: S;
@@ -2731,7 +3627,7 @@ type __VLS_WithSlots$12<T, S> = T & {
2731
3627
  };
2732
3628
  //#endregion
2733
3629
  //#region temp/packages/editor/src/layouts/CodeEditor.vue.d.ts
2734
- type __VLS_Props$30 = {
3630
+ type __VLS_Props$31 = {
2735
3631
  initValues?: any;
2736
3632
  modifiedValues?: any;
2737
3633
  type?: 'diff';
@@ -2747,7 +3643,7 @@ type __VLS_Props$30 = {
2747
3643
  };
2748
3644
  editorCustomType?: string;
2749
3645
  };
2750
- declare const __VLS_export$32: import("@vue/runtime-core").DefineComponent<__VLS_Props$30, {
3646
+ declare const __VLS_export$33: import("@vue/runtime-core").DefineComponent<__VLS_Props$31, {
2751
3647
  values: import("@vue/reactivity").Ref<string, string>;
2752
3648
  getEditor(): Monaco.editor.IStandaloneCodeEditor | Monaco.editor.IStandaloneDiffEditor | null;
2753
3649
  getVsEditor(): Monaco.editor.IStandaloneCodeEditor | null;
@@ -2758,7 +3654,7 @@ declare const __VLS_export$32: import("@vue/runtime-core").DefineComponent<__VLS
2758
3654
  }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2759
3655
  save: (...args: any[]) => void;
2760
3656
  initd: (...args: any[]) => void;
2761
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$30> & Readonly<{
3657
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$31> & Readonly<{
2762
3658
  onSave?: ((...args: any[]) => any) | undefined;
2763
3659
  onInitd?: ((...args: any[]) => any) | undefined;
2764
3660
  }>, {
@@ -2769,13 +3665,13 @@ declare const __VLS_export$32: import("@vue/runtime-core").DefineComponent<__VLS
2769
3665
  autoSave: boolean;
2770
3666
  disabledFullScreen: boolean;
2771
3667
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2772
- declare const _default$29: typeof __VLS_export$32;
3668
+ declare const _default$30: typeof __VLS_export$33;
2773
3669
  //#endregion
2774
3670
  //#region temp/packages/editor/src/layouts/sidebar/ComponentListPanel.vue.d.ts
2775
3671
  type __VLS_Slots$11 = ComponentListPanelSlots;
2776
3672
  declare const __VLS_base$11: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
2777
- declare const __VLS_export$31: __VLS_WithSlots$11<typeof __VLS_base$11, __VLS_Slots$11>;
2778
- declare const _default$5: typeof __VLS_export$31;
3673
+ declare const __VLS_export$32: __VLS_WithSlots$11<typeof __VLS_base$11, __VLS_Slots$11>;
3674
+ declare const _default$6: typeof __VLS_export$32;
2779
3675
  type __VLS_WithSlots$11<T, S> = T & {
2780
3676
  new (): {
2781
3677
  $slots: S;
@@ -2784,7 +3680,7 @@ type __VLS_WithSlots$11<T, S> = T & {
2784
3680
  //#endregion
2785
3681
  //#region temp/packages/editor/src/layouts/sidebar/layer/LayerPanel.vue.d.ts
2786
3682
  type __VLS_Slots$10 = LayerPanelSlots;
2787
- type __VLS_Props$29 = {
3683
+ type __VLS_Props$30 = {
2788
3684
  layerContentMenu: (MenuButton | MenuComponent)[];
2789
3685
  indent?: number;
2790
3686
  nextLevelIndentIncrement?: number;
@@ -2793,13 +3689,13 @@ type __VLS_Props$29 = {
2793
3689
  canDropIn?: CanDropInFunction; /** 组件树节点双击前的钩子函数,返回 false 则阻止默认的双击行为 */
2794
3690
  beforeNodeDblclick?: (_event: MouseEvent, _data: TreeNodeData) => Promise<boolean | void> | boolean | void;
2795
3691
  };
2796
- declare const __VLS_base$10: import("@vue/runtime-core").DefineComponent<__VLS_Props$29, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3692
+ declare const __VLS_base$10: import("@vue/runtime-core").DefineComponent<__VLS_Props$30, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2797
3693
  "node-dblclick": (event: MouseEvent, data: TreeNodeData) => any;
2798
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$29> & Readonly<{
3694
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$30> & Readonly<{
2799
3695
  "onNode-dblclick"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
2800
3696
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2801
- declare const __VLS_export$30: __VLS_WithSlots$10<typeof __VLS_base$10, __VLS_Slots$10>;
2802
- declare const _default$22: typeof __VLS_export$30;
3697
+ declare const __VLS_export$31: __VLS_WithSlots$10<typeof __VLS_base$10, __VLS_Slots$10>;
3698
+ declare const _default$23: typeof __VLS_export$31;
2803
3699
  type __VLS_WithSlots$10<T, S> = T & {
2804
3700
  new (): {
2805
3701
  $slots: S;
@@ -2807,34 +3703,34 @@ type __VLS_WithSlots$10<T, S> = T & {
2807
3703
  };
2808
3704
  //#endregion
2809
3705
  //#region temp/packages/editor/src/fields/CodeSelect.vue.d.ts
2810
- type __VLS_Props$28 = FieldProps<CodeSelectConfig>;
2811
- declare const __VLS_export$29: import("@vue/runtime-core").DefineComponent<__VLS_Props$28, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3706
+ type __VLS_Props$29 = FieldProps<CodeSelectConfig>;
3707
+ declare const __VLS_export$30: import("@vue/runtime-core").DefineComponent<__VLS_Props$29, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2812
3708
  change: (v: any, eventData: ContainerChangeEventData) => any;
2813
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$28> & Readonly<{
3709
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$29> & Readonly<{
2814
3710
  onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
2815
3711
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2816
- declare const _default$3: typeof __VLS_export$29;
3712
+ declare const _default$3: typeof __VLS_export$30;
2817
3713
  //#endregion
2818
3714
  //#region temp/packages/editor/src/fields/CodeSelectCol.vue.d.ts
2819
- type __VLS_Props$27 = FieldProps<CodeSelectColConfig>;
2820
- declare const __VLS_export$28: import("@vue/runtime-core").DefineComponent<__VLS_Props$27, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3715
+ type __VLS_Props$28 = FieldProps<CodeSelectColConfig>;
3716
+ declare const __VLS_export$29: import("@vue/runtime-core").DefineComponent<__VLS_Props$28, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2821
3717
  change: (v: any, eventData: ContainerChangeEventData) => any;
2822
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$27> & Readonly<{
3718
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$28> & Readonly<{
2823
3719
  onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
2824
3720
  }>, {
2825
3721
  disabled: boolean;
2826
3722
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2827
- declare const _default$4: typeof __VLS_export$28;
3723
+ declare const _default$4: typeof __VLS_export$29;
2828
3724
  //#endregion
2829
3725
  //#region temp/packages/editor/src/fields/DataSourceFields.vue.d.ts
2830
- type __VLS_Props$26 = FieldProps<DataSourceFieldsConfig>;
3726
+ type __VLS_Props$27 = FieldProps<DataSourceFieldsConfig>;
2831
3727
  type __VLS_ModelProps$4 = {
2832
3728
  'width'?: number;
2833
3729
  'visible'?: boolean;
2834
3730
  'visible1'?: boolean;
2835
3731
  };
2836
- type __VLS_PublicProps$4 = __VLS_Props$26 & __VLS_ModelProps$4;
2837
- declare const __VLS_export$27: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$4, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3732
+ type __VLS_PublicProps$4 = __VLS_Props$27 & __VLS_ModelProps$4;
3733
+ declare const __VLS_export$28: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$4, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2838
3734
  change: (v: any, eventData?: ContainerChangeEventData | undefined) => any;
2839
3735
  "update:width": (value: number) => any;
2840
3736
  "update:visible": (value: boolean) => any;
@@ -2847,16 +3743,16 @@ declare const __VLS_export$27: import("@vue/runtime-core").DefineComponent<__VLS
2847
3743
  }>, {
2848
3744
  disabled: boolean;
2849
3745
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2850
- declare const _default$11: typeof __VLS_export$27;
3746
+ declare const _default$12: typeof __VLS_export$28;
2851
3747
  //#endregion
2852
3748
  //#region temp/packages/editor/src/fields/DataSourceMocks.vue.d.ts
2853
- type __VLS_Props$25 = FieldProps<DataSourceMocksConfig>;
3749
+ type __VLS_Props$26 = FieldProps<DataSourceMocksConfig>;
2854
3750
  type __VLS_ModelProps$3 = {
2855
3751
  'width'?: number;
2856
3752
  'visible'?: boolean;
2857
3753
  };
2858
- type __VLS_PublicProps$3 = __VLS_Props$25 & __VLS_ModelProps$3;
2859
- declare const __VLS_export$26: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$3, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3754
+ type __VLS_PublicProps$3 = __VLS_Props$26 & __VLS_ModelProps$3;
3755
+ declare const __VLS_export$27: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$3, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2860
3756
  change: (...args: any[]) => void;
2861
3757
  "update:width": (value: number) => void;
2862
3758
  "update:visible": (value: boolean) => void;
@@ -2867,91 +3763,91 @@ declare const __VLS_export$26: import("@vue/runtime-core").DefineComponent<__VLS
2867
3763
  }>, {
2868
3764
  disabled: boolean;
2869
3765
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2870
- declare const _default$15: typeof __VLS_export$26;
3766
+ declare const _default$16: typeof __VLS_export$27;
2871
3767
  //#endregion
2872
3768
  //#region temp/packages/editor/src/fields/DataSourceMethods.vue.d.ts
2873
- type __VLS_Props$24 = FieldProps<DataSourceMethodsConfig>;
2874
- declare const __VLS_export$25: import("@vue/runtime-core").DefineComponent<__VLS_Props$24, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3769
+ type __VLS_Props$25 = FieldProps<DataSourceMethodsConfig>;
3770
+ declare const __VLS_export$26: import("@vue/runtime-core").DefineComponent<__VLS_Props$25, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2875
3771
  change: (...args: any[]) => void;
2876
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$24> & Readonly<{
3772
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$25> & Readonly<{
2877
3773
  onChange?: ((...args: any[]) => any) | undefined;
2878
3774
  }>, {
2879
3775
  disabled: boolean;
2880
3776
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2881
- declare const _default$14: typeof __VLS_export$25;
3777
+ declare const _default$15: typeof __VLS_export$26;
2882
3778
  //#endregion
2883
3779
  //#region temp/packages/editor/src/fields/DataSourceInput.vue.d.ts
2884
- type __VLS_Props$23 = FieldProps<DataSourceInputConfig>;
2885
- declare const __VLS_export$24: import("@vue/runtime-core").DefineComponent<__VLS_Props$23, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3780
+ type __VLS_Props$24 = FieldProps<DataSourceInputConfig>;
3781
+ declare const __VLS_export$25: import("@vue/runtime-core").DefineComponent<__VLS_Props$24, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2886
3782
  change: (value: string) => any;
2887
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$23> & Readonly<{
3783
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$24> & Readonly<{
2888
3784
  onChange?: ((value: string) => any) | undefined;
2889
3785
  }>, {
2890
3786
  disabled: boolean;
2891
3787
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2892
- declare const _default$12: typeof __VLS_export$24;
3788
+ declare const _default$13: typeof __VLS_export$25;
2893
3789
  //#endregion
2894
3790
  //#region temp/packages/editor/src/fields/DataSourceSelect.vue.d.ts
2895
- type __VLS_Props$22 = FieldProps<DataSourceSelect>;
2896
- declare const __VLS_export$23: import("@vue/runtime-core").DefineComponent<__VLS_Props$22, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3791
+ type __VLS_Props$23 = FieldProps<DataSourceSelect>;
3792
+ declare const __VLS_export$24: import("@vue/runtime-core").DefineComponent<__VLS_Props$23, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2897
3793
  change: (...args: any[]) => void;
2898
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$22> & Readonly<{
3794
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$23> & Readonly<{
2899
3795
  onChange?: ((...args: any[]) => any) | undefined;
2900
3796
  }>, {
2901
3797
  disabled: boolean;
2902
3798
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2903
- declare const _default$16: typeof __VLS_export$23;
3799
+ declare const _default$17: typeof __VLS_export$24;
2904
3800
  //#endregion
2905
3801
  //#region temp/packages/editor/src/fields/DataSourceMethodSelect.vue.d.ts
2906
- type __VLS_Props$21 = FieldProps<DataSourceMethodSelectConfig>;
2907
- declare const __VLS_export$22: import("@vue/runtime-core").DefineComponent<__VLS_Props$21, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3802
+ type __VLS_Props$22 = FieldProps<DataSourceMethodSelectConfig>;
3803
+ declare const __VLS_export$23: import("@vue/runtime-core").DefineComponent<__VLS_Props$22, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2908
3804
  change: (...args: any[]) => void;
2909
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$21> & Readonly<{
3805
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$22> & Readonly<{
2910
3806
  onChange?: ((...args: any[]) => any) | undefined;
2911
3807
  }>, {
2912
3808
  disabled: boolean;
2913
3809
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2914
- declare const _default$13: typeof __VLS_export$22;
3810
+ declare const _default$14: typeof __VLS_export$23;
2915
3811
  //#endregion
2916
3812
  //#region temp/packages/editor/src/fields/DataSourceFieldSelect/Index.vue.d.ts
2917
- type __VLS_Props$20 = FieldProps<DataSourceFieldSelectConfig>;
2918
- declare const __VLS_export$21: import("@vue/runtime-core").DefineComponent<__VLS_Props$20, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3813
+ type __VLS_Props$21 = FieldProps<DataSourceFieldSelectConfig>;
3814
+ declare const __VLS_export$22: import("@vue/runtime-core").DefineComponent<__VLS_Props$21, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2919
3815
  change: (...args: any[]) => void;
2920
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$20> & Readonly<{
3816
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$21> & Readonly<{
2921
3817
  onChange?: ((...args: any[]) => any) | undefined;
2922
3818
  }>, {
2923
3819
  disabled: boolean;
2924
3820
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2925
- declare const _default$10: typeof __VLS_export$21;
3821
+ declare const _default$11: typeof __VLS_export$22;
2926
3822
  //#endregion
2927
3823
  //#region temp/packages/editor/src/fields/EventSelect.vue.d.ts
2928
- type __VLS_Props$19 = FieldProps<EventSelectConfig>;
2929
- declare const __VLS_export$20: import("@vue/runtime-core").DefineComponent<__VLS_Props$19, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3824
+ type __VLS_Props$20 = FieldProps<EventSelectConfig>;
3825
+ declare const __VLS_export$21: import("@vue/runtime-core").DefineComponent<__VLS_Props$20, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2930
3826
  change: (v: any, eventData?: ContainerChangeEventData | undefined) => any;
2931
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$19> & Readonly<{
3827
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$20> & Readonly<{
2932
3828
  onChange?: ((v: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
2933
3829
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2934
- declare const _default$18: typeof __VLS_export$20;
3830
+ declare const _default$19: typeof __VLS_export$21;
2935
3831
  //#endregion
2936
3832
  //#region temp/packages/editor/src/fields/KeyValue.vue.d.ts
2937
- type __VLS_Props$18 = FieldProps<KeyValueConfig>;
2938
- declare const __VLS_export$19: import("@vue/runtime-core").DefineComponent<__VLS_Props$18, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3833
+ type __VLS_Props$19 = FieldProps<KeyValueConfig>;
3834
+ declare const __VLS_export$20: import("@vue/runtime-core").DefineComponent<__VLS_Props$19, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2939
3835
  change: (value: Record<string, any>) => any;
2940
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$18> & Readonly<{
3836
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$19> & Readonly<{
2941
3837
  onChange?: ((value: Record<string, any>) => any) | undefined;
2942
3838
  }>, {
2943
3839
  disabled: boolean;
2944
3840
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2945
- declare const _default$21: typeof __VLS_export$19;
3841
+ declare const _default$22: typeof __VLS_export$20;
2946
3842
  //#endregion
2947
3843
  //#region temp/packages/editor/src/layouts/sidebar/code-block/CodeBlockList.vue.d.ts
2948
3844
  type __VLS_Slots$9 = CodeBlockListSlots;
2949
- type __VLS_Props$17 = {
3845
+ type __VLS_Props$18 = {
2950
3846
  indent?: number;
2951
3847
  nextLevelIndentIncrement?: number;
2952
3848
  customError?: (_id: Id, _errorType: CodeDeleteErrorType) => any;
2953
3849
  };
2954
- declare const __VLS_base$9: import("@vue/runtime-core").DefineComponent<__VLS_Props$17, {
3850
+ declare const __VLS_base$9: import("@vue/runtime-core").DefineComponent<__VLS_Props$18, {
2955
3851
  nodeStatusMap: import("@vue/reactivity").Ref<Map<Id, {
2956
3852
  visible: boolean;
2957
3853
  expand: boolean;
@@ -2969,13 +3865,13 @@ declare const __VLS_base$9: import("@vue/runtime-core").DefineComponent<__VLS_Pr
2969
3865
  remove: (id: string) => any;
2970
3866
  edit: (id: string) => any;
2971
3867
  "node-contextmenu": (event: MouseEvent, data: TreeNodeData) => any;
2972
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$17> & Readonly<{
3868
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$18> & Readonly<{
2973
3869
  onRemove?: ((id: string) => any) | undefined;
2974
3870
  onEdit?: ((id: string) => any) | undefined;
2975
3871
  "onNode-contextmenu"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
2976
3872
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2977
- declare const __VLS_export$18: __VLS_WithSlots$9<typeof __VLS_base$9, __VLS_Slots$9>;
2978
- declare const _default$1: typeof __VLS_export$18;
3873
+ declare const __VLS_export$19: __VLS_WithSlots$9<typeof __VLS_base$9, __VLS_Slots$9>;
3874
+ declare const _default$1: typeof __VLS_export$19;
2979
3875
  type __VLS_WithSlots$9<T, S> = T & {
2980
3876
  new (): {
2981
3877
  $slots: S;
@@ -2984,15 +3880,15 @@ type __VLS_WithSlots$9<T, S> = T & {
2984
3880
  //#endregion
2985
3881
  //#region temp/packages/editor/src/layouts/sidebar/code-block/CodeBlockListPanel.vue.d.ts
2986
3882
  type __VLS_Slots$8 = CodeBlockListPanelSlots;
2987
- type __VLS_Props$16 = {
3883
+ type __VLS_Props$17 = {
2988
3884
  indent?: number;
2989
3885
  nextLevelIndentIncrement?: number;
2990
3886
  customError?: (_id: Id, _errorType: CodeDeleteErrorType) => any;
2991
3887
  customContentMenu: CustomContentMenuFunction;
2992
3888
  };
2993
- declare const __VLS_base$8: import("@vue/runtime-core").DefineComponent<__VLS_Props$16, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$16> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2994
- declare const __VLS_export$17: __VLS_WithSlots$8<typeof __VLS_base$8, __VLS_Slots$8>;
2995
- declare const _default$2: typeof __VLS_export$17;
3889
+ declare const __VLS_base$8: import("@vue/runtime-core").DefineComponent<__VLS_Props$17, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$17> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3890
+ declare const __VLS_export$18: __VLS_WithSlots$8<typeof __VLS_base$8, __VLS_Slots$8>;
3891
+ declare const _default$2: typeof __VLS_export$18;
2996
3892
  type __VLS_WithSlots$8<T, S> = T & {
2997
3893
  new (): {
2998
3894
  $slots: S;
@@ -3000,7 +3896,7 @@ type __VLS_WithSlots$8<T, S> = T & {
3000
3896
  };
3001
3897
  //#endregion
3002
3898
  //#region temp/packages/editor/src/layouts/sidebar/data-source/DataSourceConfigPanel.vue.d.ts
3003
- type __VLS_Props$15 = {
3899
+ type __VLS_Props$16 = {
3004
3900
  title?: string;
3005
3901
  values: any;
3006
3902
  disabled: boolean;
@@ -3009,8 +3905,8 @@ type __VLS_ModelProps$2 = {
3009
3905
  'visible'?: boolean;
3010
3906
  'width'?: number;
3011
3907
  };
3012
- type __VLS_PublicProps$2 = __VLS_Props$15 & __VLS_ModelProps$2;
3013
- declare const __VLS_export$16: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$2, {
3908
+ type __VLS_PublicProps$2 = __VLS_Props$16 & __VLS_ModelProps$2;
3909
+ declare const __VLS_export$17: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$2, {
3014
3910
  show(): void;
3015
3911
  hide(): void;
3016
3912
  }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
@@ -3026,10 +3922,10 @@ declare const __VLS_export$16: import("@vue/runtime-core").DefineComponent<__VLS
3026
3922
  "onUpdate:width"?: ((value: number) => any) | undefined;
3027
3923
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
3028
3924
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3029
- declare const _default$9: typeof __VLS_export$16;
3925
+ declare const _default$10: typeof __VLS_export$17;
3030
3926
  //#endregion
3031
3927
  //#region temp/packages/editor/src/layouts/sidebar/data-source/DataSourceAddButton.vue.d.ts
3032
- type __VLS_Props$14 = {
3928
+ type __VLS_Props$15 = {
3033
3929
  datasourceTypeList: {
3034
3930
  text: string;
3035
3931
  type: string;
@@ -3037,20 +3933,20 @@ type __VLS_Props$14 = {
3037
3933
  addButtonConfig?: ButtonProps;
3038
3934
  addButtonText?: string;
3039
3935
  };
3040
- declare const __VLS_export$15: import("@vue/runtime-core").DefineComponent<__VLS_Props$14, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3936
+ declare const __VLS_export$16: import("@vue/runtime-core").DefineComponent<__VLS_Props$15, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3041
3937
  add: (type: string) => any;
3042
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$14> & Readonly<{
3938
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$15> & Readonly<{
3043
3939
  onAdd?: ((type: string) => any) | undefined;
3044
3940
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3045
- declare const _default$8: typeof __VLS_export$15;
3941
+ declare const _default$9: typeof __VLS_export$16;
3046
3942
  //#endregion
3047
3943
  //#region temp/packages/editor/src/layouts/props-panel/PropsPanel.vue.d.ts
3048
3944
  type __VLS_Slots$7 = PropsPanelSlots;
3049
- type __VLS_Props$13 = {
3945
+ type __VLS_Props$14 = {
3050
3946
  disabledShowSrc?: boolean;
3051
3947
  extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
3052
3948
  };
3053
- declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Props$13, {
3949
+ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Props$14, {
3054
3950
  getFormState(): FormState | undefined;
3055
3951
  submit: (v: MNode, eventData?: ContainerChangeEventData) => Promise<void>;
3056
3952
  }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
@@ -3098,46 +3994,129 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3098
3994
  "onSubmit-error"?: ((e: any) => any) | undefined;
3099
3995
  "onForm-error"?: ((e: any) => any) | undefined;
3100
3996
  }>, {
3101
- configForm: Readonly<import("@vue/reactivity").ShallowRef<import("@vue/runtime-core").CreateComponentPublicInstanceWithMixins<Readonly<{
3102
- config: import("@tmagic/form-schema").FormConfig;
3103
- initValues: Record<string, any>;
3104
- lastValues?: Record<string, any>;
3105
- isCompare?: boolean;
3106
- parentValues?: Record<string, any>;
3107
- labelWidth?: string;
3108
- disabled?: boolean;
3109
- height?: string;
3110
- stepActive?: string | number;
3111
- size?: "small" | "default" | "large";
3112
- inline?: boolean;
3113
- labelPosition?: string;
3114
- keyProp?: string;
3115
- popperClass?: string;
3116
- preventSubmitDefault?: boolean;
3117
- extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
3118
- }> & Readonly<{
3119
- onError?: ((...args: any[]) => any) | undefined;
3120
- onChange?: ((...args: any[]) => any) | undefined;
3121
- "onField-input"?: ((...args: any[]) => any) | undefined;
3122
- "onField-change"?: ((...args: any[]) => any) | undefined;
3123
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
3124
- }>, {
3125
- values: import("@vue/reactivity").Ref<FormValue, FormValue>;
3126
- lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
3127
- formState: FormState;
3128
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
3129
- changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
3130
- changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
3131
- resetForm: () => void;
3132
- submitForm: (native?: boolean) => Promise<any>;
3133
- getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
3134
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3135
- error: (...args: any[]) => void;
3136
- change: (...args: any[]) => void;
3137
- "field-input": (...args: any[]) => void;
3138
- "field-change": (...args: any[]) => void;
3139
- "update:stepActive": (...args: any[]) => void;
3140
- }, import("@vue/runtime-core").PublicProps, {
3997
+ configForm: Readonly<import("@vue/reactivity").ShallowRef<({
3998
+ $: import("@vue/runtime-core").ComponentInternalInstance;
3999
+ $data: {};
4000
+ $props: {
4001
+ readonly config: import("@tmagic/form-schema").FormConfig;
4002
+ readonly initValues: Record<string, any>;
4003
+ readonly lastValues?: Record<string, any> | undefined;
4004
+ readonly isCompare?: boolean | undefined;
4005
+ readonly parentValues?: Record<string, any> | undefined;
4006
+ readonly labelWidth?: string | undefined;
4007
+ readonly disabled?: boolean | undefined;
4008
+ readonly height?: string | undefined;
4009
+ readonly stepActive?: string | number | undefined;
4010
+ readonly size?: "small" | "default" | "large" | undefined;
4011
+ readonly inline?: boolean | undefined;
4012
+ readonly labelPosition?: string | undefined;
4013
+ readonly keyProp?: string | undefined;
4014
+ readonly popperClass?: string | undefined;
4015
+ readonly preventSubmitDefault?: boolean | undefined;
4016
+ readonly extendState?: ((_state: FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
4017
+ readonly showDiff?: ((_data: {
4018
+ curValue: any;
4019
+ lastValue: any;
4020
+ config: any;
4021
+ }) => boolean) | undefined;
4022
+ readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
4023
+ readonly onError?: ((...args: any[]) => any) | undefined;
4024
+ readonly onChange?: ((...args: any[]) => any) | undefined;
4025
+ readonly "onField-input"?: ((...args: any[]) => any) | undefined;
4026
+ readonly "onField-change"?: ((...args: any[]) => any) | undefined;
4027
+ readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
4028
+ } & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
4029
+ $attrs: import("@vue/runtime-core").Attrs;
4030
+ $refs: {
4031
+ [x: string]: unknown;
4032
+ };
4033
+ $slots: Readonly<{
4034
+ [name: string]: import("@vue/runtime-core").Slot<any> | undefined;
4035
+ }>;
4036
+ $root: import("@vue/runtime-core").ComponentPublicInstance | null;
4037
+ $parent: import("@vue/runtime-core").ComponentPublicInstance | null;
4038
+ $host: Element | null;
4039
+ $emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
4040
+ $el: any;
4041
+ $options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
4042
+ config: import("@tmagic/form-schema").FormConfig;
4043
+ initValues: Record<string, any>;
4044
+ lastValues?: Record<string, any>;
4045
+ isCompare?: boolean;
4046
+ parentValues?: Record<string, any>;
4047
+ labelWidth?: string;
4048
+ disabled?: boolean;
4049
+ height?: string;
4050
+ stepActive?: string | number;
4051
+ size?: "small" | "default" | "large";
4052
+ inline?: boolean;
4053
+ labelPosition?: string;
4054
+ keyProp?: string;
4055
+ popperClass?: string;
4056
+ preventSubmitDefault?: boolean;
4057
+ extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
4058
+ showDiff?: (_data: {
4059
+ curValue: any;
4060
+ lastValue: any;
4061
+ config: any;
4062
+ }) => boolean;
4063
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
4064
+ }> & Readonly<{
4065
+ onError?: ((...args: any[]) => any) | undefined;
4066
+ onChange?: ((...args: any[]) => any) | undefined;
4067
+ "onField-input"?: ((...args: any[]) => any) | undefined;
4068
+ "onField-change"?: ((...args: any[]) => any) | undefined;
4069
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
4070
+ }>, {
4071
+ values: import("@vue/reactivity").Ref<FormValue, FormValue>;
4072
+ lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
4073
+ formState: FormState;
4074
+ initialized: import("@vue/reactivity").Ref<boolean, boolean>;
4075
+ changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
4076
+ changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
4077
+ resetForm: () => void;
4078
+ submitForm: (native?: boolean) => Promise<any>;
4079
+ getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
4080
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4081
+ error: (...args: any[]) => void;
4082
+ change: (...args: any[]) => void;
4083
+ "field-input": (...args: any[]) => void;
4084
+ "field-change": (...args: any[]) => void;
4085
+ "update:stepActive": (...args: any[]) => void;
4086
+ }, string, {
4087
+ disabled: boolean;
4088
+ labelWidth: string;
4089
+ inline: boolean;
4090
+ labelPosition: string;
4091
+ config: import("@tmagic/form-schema").FormConfig;
4092
+ height: string;
4093
+ initValues: Record<string, any>;
4094
+ lastValues: Record<string, any>;
4095
+ isCompare: boolean;
4096
+ keyProp: string;
4097
+ parentValues: Record<string, any>;
4098
+ stepActive: string | number;
4099
+ }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
4100
+ beforeCreate?: (() => void) | (() => void)[];
4101
+ created?: (() => void) | (() => void)[];
4102
+ beforeMount?: (() => void) | (() => void)[];
4103
+ mounted?: (() => void) | (() => void)[];
4104
+ beforeUpdate?: (() => void) | (() => void)[];
4105
+ updated?: (() => void) | (() => void)[];
4106
+ activated?: (() => void) | (() => void)[];
4107
+ deactivated?: (() => void) | (() => void)[];
4108
+ beforeDestroy?: (() => void) | (() => void)[];
4109
+ beforeUnmount?: (() => void) | (() => void)[];
4110
+ destroyed?: (() => void) | (() => void)[];
4111
+ unmounted?: (() => void) | (() => void)[];
4112
+ renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
4113
+ renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
4114
+ errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
4115
+ };
4116
+ $forceUpdate: () => void;
4117
+ $nextTick: typeof import("@vue/runtime-core").nextTick;
4118
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
4119
+ } & Readonly<{
3141
4120
  disabled: boolean;
3142
4121
  labelWidth: string;
3143
4122
  inline: boolean;
@@ -3150,14 +4129,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3150
4129
  keyProp: string;
3151
4130
  parentValues: Record<string, any>;
3152
4131
  stepActive: string | number;
3153
- }, false, {}, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, {}, any, import("@vue/runtime-core").ComponentProvideOptions, {
3154
- P: {};
3155
- B: {};
3156
- D: {};
3157
- C: {};
3158
- M: {};
3159
- Defaults: {};
3160
- }, Readonly<{
4132
+ }> & Omit<Readonly<{
3161
4133
  config: import("@tmagic/form-schema").FormConfig;
3162
4134
  initValues: Record<string, any>;
3163
4135
  lastValues?: Record<string, any>;
@@ -3174,36 +4146,31 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3174
4146
  popperClass?: string;
3175
4147
  preventSubmitDefault?: boolean;
3176
4148
  extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
4149
+ showDiff?: (_data: {
4150
+ curValue: any;
4151
+ lastValue: any;
4152
+ config: any;
4153
+ }) => boolean;
4154
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
3177
4155
  }> & Readonly<{
3178
4156
  onError?: ((...args: any[]) => any) | undefined;
3179
4157
  onChange?: ((...args: any[]) => any) | undefined;
3180
4158
  "onField-input"?: ((...args: any[]) => any) | undefined;
3181
4159
  "onField-change"?: ((...args: any[]) => any) | undefined;
3182
4160
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
3183
- }>, {
3184
- values: import("@vue/reactivity").Ref<FormValue, FormValue>;
3185
- lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
4161
+ }>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
4162
+ values: FormValue;
4163
+ lastValuesProcessed: FormValue;
3186
4164
  formState: FormState;
3187
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
3188
- changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
4165
+ initialized: boolean;
4166
+ changeRecords: ChangeRecord$1[];
3189
4167
  changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
3190
4168
  resetForm: () => void;
3191
4169
  submitForm: (native?: boolean) => Promise<any>;
3192
4170
  getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
3193
- }, {}, {}, {}, {
3194
- disabled: boolean;
3195
- labelWidth: string;
3196
- inline: boolean;
3197
- labelPosition: string;
3198
- config: import("@tmagic/form-schema").FormConfig;
3199
- height: string;
3200
- initValues: Record<string, any>;
3201
- lastValues: Record<string, any>;
3202
- isCompare: boolean;
3203
- keyProp: string;
3204
- parentValues: Record<string, any>;
3205
- stepActive: string | number;
3206
- }> | null>>;
4171
+ } & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
4172
+ $slots: FormSlots;
4173
+ }) | null>>;
3207
4174
  submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
3208
4175
  }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3209
4176
  mounted: (internalInstance: any) => any;
@@ -3246,46 +4213,129 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3246
4213
  "onSubmit-error"?: ((e: any) => any) | undefined;
3247
4214
  "onForm-error"?: ((e: any) => any) | undefined;
3248
4215
  }>, "submit" | "configForm"> & {
3249
- configForm: import("@vue/runtime-core").CreateComponentPublicInstanceWithMixins<Readonly<{
3250
- config: import("@tmagic/form-schema").FormConfig;
3251
- initValues: Record<string, any>;
3252
- lastValues?: Record<string, any>;
3253
- isCompare?: boolean;
3254
- parentValues?: Record<string, any>;
3255
- labelWidth?: string;
3256
- disabled?: boolean;
3257
- height?: string;
3258
- stepActive?: string | number;
3259
- size?: "small" | "default" | "large";
3260
- inline?: boolean;
3261
- labelPosition?: string;
3262
- keyProp?: string;
3263
- popperClass?: string;
3264
- preventSubmitDefault?: boolean;
3265
- extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
3266
- }> & Readonly<{
3267
- onError?: ((...args: any[]) => any) | undefined;
3268
- onChange?: ((...args: any[]) => any) | undefined;
3269
- "onField-input"?: ((...args: any[]) => any) | undefined;
3270
- "onField-change"?: ((...args: any[]) => any) | undefined;
3271
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
3272
- }>, {
3273
- values: import("@vue/reactivity").Ref<FormValue, FormValue>;
3274
- lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
3275
- formState: FormState;
3276
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
3277
- changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
3278
- changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
3279
- resetForm: () => void;
3280
- submitForm: (native?: boolean) => Promise<any>;
3281
- getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
3282
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3283
- error: (...args: any[]) => void;
3284
- change: (...args: any[]) => void;
3285
- "field-input": (...args: any[]) => void;
3286
- "field-change": (...args: any[]) => void;
3287
- "update:stepActive": (...args: any[]) => void;
3288
- }, import("@vue/runtime-core").PublicProps, {
4216
+ configForm: ({
4217
+ $: import("@vue/runtime-core").ComponentInternalInstance;
4218
+ $data: {};
4219
+ $props: {
4220
+ readonly config: import("@tmagic/form-schema").FormConfig;
4221
+ readonly initValues: Record<string, any>;
4222
+ readonly lastValues?: Record<string, any> | undefined;
4223
+ readonly isCompare?: boolean | undefined;
4224
+ readonly parentValues?: Record<string, any> | undefined;
4225
+ readonly labelWidth?: string | undefined;
4226
+ readonly disabled?: boolean | undefined;
4227
+ readonly height?: string | undefined;
4228
+ readonly stepActive?: string | number | undefined;
4229
+ readonly size?: "small" | "default" | "large" | undefined;
4230
+ readonly inline?: boolean | undefined;
4231
+ readonly labelPosition?: string | undefined;
4232
+ readonly keyProp?: string | undefined;
4233
+ readonly popperClass?: string | undefined;
4234
+ readonly preventSubmitDefault?: boolean | undefined;
4235
+ readonly extendState?: ((_state: FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
4236
+ readonly showDiff?: ((_data: {
4237
+ curValue: any;
4238
+ lastValue: any;
4239
+ config: any;
4240
+ }) => boolean) | undefined;
4241
+ readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
4242
+ readonly onError?: ((...args: any[]) => any) | undefined;
4243
+ readonly onChange?: ((...args: any[]) => any) | undefined;
4244
+ readonly "onField-input"?: ((...args: any[]) => any) | undefined;
4245
+ readonly "onField-change"?: ((...args: any[]) => any) | undefined;
4246
+ readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
4247
+ } & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
4248
+ $attrs: import("@vue/runtime-core").Attrs;
4249
+ $refs: {
4250
+ [x: string]: unknown;
4251
+ };
4252
+ $slots: Readonly<{
4253
+ [name: string]: import("@vue/runtime-core").Slot<any> | undefined;
4254
+ }>;
4255
+ $root: import("@vue/runtime-core").ComponentPublicInstance | null;
4256
+ $parent: import("@vue/runtime-core").ComponentPublicInstance | null;
4257
+ $host: Element | null;
4258
+ $emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
4259
+ $el: any;
4260
+ $options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
4261
+ config: import("@tmagic/form-schema").FormConfig;
4262
+ initValues: Record<string, any>;
4263
+ lastValues?: Record<string, any>;
4264
+ isCompare?: boolean;
4265
+ parentValues?: Record<string, any>;
4266
+ labelWidth?: string;
4267
+ disabled?: boolean;
4268
+ height?: string;
4269
+ stepActive?: string | number;
4270
+ size?: "small" | "default" | "large";
4271
+ inline?: boolean;
4272
+ labelPosition?: string;
4273
+ keyProp?: string;
4274
+ popperClass?: string;
4275
+ preventSubmitDefault?: boolean;
4276
+ extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
4277
+ showDiff?: (_data: {
4278
+ curValue: any;
4279
+ lastValue: any;
4280
+ config: any;
4281
+ }) => boolean;
4282
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
4283
+ }> & Readonly<{
4284
+ onError?: ((...args: any[]) => any) | undefined;
4285
+ onChange?: ((...args: any[]) => any) | undefined;
4286
+ "onField-input"?: ((...args: any[]) => any) | undefined;
4287
+ "onField-change"?: ((...args: any[]) => any) | undefined;
4288
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
4289
+ }>, {
4290
+ values: import("@vue/reactivity").Ref<FormValue, FormValue>;
4291
+ lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
4292
+ formState: FormState;
4293
+ initialized: import("@vue/reactivity").Ref<boolean, boolean>;
4294
+ changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
4295
+ changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
4296
+ resetForm: () => void;
4297
+ submitForm: (native?: boolean) => Promise<any>;
4298
+ getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
4299
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4300
+ error: (...args: any[]) => void;
4301
+ change: (...args: any[]) => void;
4302
+ "field-input": (...args: any[]) => void;
4303
+ "field-change": (...args: any[]) => void;
4304
+ "update:stepActive": (...args: any[]) => void;
4305
+ }, string, {
4306
+ disabled: boolean;
4307
+ labelWidth: string;
4308
+ inline: boolean;
4309
+ labelPosition: string;
4310
+ config: import("@tmagic/form-schema").FormConfig;
4311
+ height: string;
4312
+ initValues: Record<string, any>;
4313
+ lastValues: Record<string, any>;
4314
+ isCompare: boolean;
4315
+ keyProp: string;
4316
+ parentValues: Record<string, any>;
4317
+ stepActive: string | number;
4318
+ }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
4319
+ beforeCreate?: (() => void) | (() => void)[];
4320
+ created?: (() => void) | (() => void)[];
4321
+ beforeMount?: (() => void) | (() => void)[];
4322
+ mounted?: (() => void) | (() => void)[];
4323
+ beforeUpdate?: (() => void) | (() => void)[];
4324
+ updated?: (() => void) | (() => void)[];
4325
+ activated?: (() => void) | (() => void)[];
4326
+ deactivated?: (() => void) | (() => void)[];
4327
+ beforeDestroy?: (() => void) | (() => void)[];
4328
+ beforeUnmount?: (() => void) | (() => void)[];
4329
+ destroyed?: (() => void) | (() => void)[];
4330
+ unmounted?: (() => void) | (() => void)[];
4331
+ renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
4332
+ renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
4333
+ errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
4334
+ };
4335
+ $forceUpdate: () => void;
4336
+ $nextTick: typeof import("@vue/runtime-core").nextTick;
4337
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
4338
+ } & Readonly<{
3289
4339
  disabled: boolean;
3290
4340
  labelWidth: string;
3291
4341
  inline: boolean;
@@ -3298,14 +4348,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3298
4348
  keyProp: string;
3299
4349
  parentValues: Record<string, any>;
3300
4350
  stepActive: string | number;
3301
- }, false, {}, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, {}, any, import("@vue/runtime-core").ComponentProvideOptions, {
3302
- P: {};
3303
- B: {};
3304
- D: {};
3305
- C: {};
3306
- M: {};
3307
- Defaults: {};
3308
- }, Readonly<{
4351
+ }> & Omit<Readonly<{
3309
4352
  config: import("@tmagic/form-schema").FormConfig;
3310
4353
  initValues: Record<string, any>;
3311
4354
  lastValues?: Record<string, any>;
@@ -3322,36 +4365,31 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3322
4365
  popperClass?: string;
3323
4366
  preventSubmitDefault?: boolean;
3324
4367
  extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
4368
+ showDiff?: (_data: {
4369
+ curValue: any;
4370
+ lastValue: any;
4371
+ config: any;
4372
+ }) => boolean;
4373
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
3325
4374
  }> & Readonly<{
3326
4375
  onError?: ((...args: any[]) => any) | undefined;
3327
4376
  onChange?: ((...args: any[]) => any) | undefined;
3328
4377
  "onField-input"?: ((...args: any[]) => any) | undefined;
3329
4378
  "onField-change"?: ((...args: any[]) => any) | undefined;
3330
4379
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
3331
- }>, {
3332
- values: import("@vue/reactivity").Ref<FormValue, FormValue>;
3333
- lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
4380
+ }>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
4381
+ values: FormValue;
4382
+ lastValuesProcessed: FormValue;
3334
4383
  formState: FormState;
3335
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
3336
- changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
4384
+ initialized: boolean;
4385
+ changeRecords: ChangeRecord$1[];
3337
4386
  changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
3338
4387
  resetForm: () => void;
3339
4388
  submitForm: (native?: boolean) => Promise<any>;
3340
4389
  getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
3341
- }, {}, {}, {}, {
3342
- disabled: boolean;
3343
- labelWidth: string;
3344
- inline: boolean;
3345
- labelPosition: string;
3346
- config: import("@tmagic/form-schema").FormConfig;
3347
- height: string;
3348
- initValues: Record<string, any>;
3349
- lastValues: Record<string, any>;
3350
- isCompare: boolean;
3351
- keyProp: string;
3352
- parentValues: Record<string, any>;
3353
- stepActive: string | number;
3354
- }> | null;
4390
+ } & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
4391
+ $slots: FormSlots;
4392
+ }) | null;
3355
4393
  submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
3356
4394
  } & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
3357
4395
  $slots: {
@@ -3361,7 +4399,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3361
4399
  unmounted: () => any;
3362
4400
  "submit-error": (e: any) => any;
3363
4401
  "form-error": (e: any) => any;
3364
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$13> & Readonly<{
4402
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$14> & Readonly<{
3365
4403
  onMounted?: ((internalInstance: {
3366
4404
  $: import("@vue/runtime-core").ComponentInternalInstance;
3367
4405
  $data: {};
@@ -3406,46 +4444,129 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3406
4444
  "onSubmit-error"?: ((e: any) => any) | undefined;
3407
4445
  "onForm-error"?: ((e: any) => any) | undefined;
3408
4446
  }>, {
3409
- configForm: Readonly<import("@vue/reactivity").ShallowRef<import("@vue/runtime-core").CreateComponentPublicInstanceWithMixins<Readonly<{
3410
- config: import("@tmagic/form-schema").FormConfig;
3411
- initValues: Record<string, any>;
3412
- lastValues?: Record<string, any>;
3413
- isCompare?: boolean;
3414
- parentValues?: Record<string, any>;
3415
- labelWidth?: string;
3416
- disabled?: boolean;
3417
- height?: string;
3418
- stepActive?: string | number;
3419
- size?: "small" | "default" | "large";
3420
- inline?: boolean;
3421
- labelPosition?: string;
3422
- keyProp?: string;
3423
- popperClass?: string;
3424
- preventSubmitDefault?: boolean;
3425
- extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
3426
- }> & Readonly<{
3427
- onError?: ((...args: any[]) => any) | undefined;
3428
- onChange?: ((...args: any[]) => any) | undefined;
3429
- "onField-input"?: ((...args: any[]) => any) | undefined;
3430
- "onField-change"?: ((...args: any[]) => any) | undefined;
3431
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
3432
- }>, {
3433
- values: import("@vue/reactivity").Ref<FormValue, FormValue>;
3434
- lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
3435
- formState: FormState;
3436
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
3437
- changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
3438
- changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
3439
- resetForm: () => void;
3440
- submitForm: (native?: boolean) => Promise<any>;
3441
- getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
3442
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3443
- error: (...args: any[]) => void;
3444
- change: (...args: any[]) => void;
3445
- "field-input": (...args: any[]) => void;
3446
- "field-change": (...args: any[]) => void;
3447
- "update:stepActive": (...args: any[]) => void;
3448
- }, import("@vue/runtime-core").PublicProps, {
4447
+ configForm: Readonly<import("@vue/reactivity").ShallowRef<({
4448
+ $: import("@vue/runtime-core").ComponentInternalInstance;
4449
+ $data: {};
4450
+ $props: {
4451
+ readonly config: import("@tmagic/form-schema").FormConfig;
4452
+ readonly initValues: Record<string, any>;
4453
+ readonly lastValues?: Record<string, any> | undefined;
4454
+ readonly isCompare?: boolean | undefined;
4455
+ readonly parentValues?: Record<string, any> | undefined;
4456
+ readonly labelWidth?: string | undefined;
4457
+ readonly disabled?: boolean | undefined;
4458
+ readonly height?: string | undefined;
4459
+ readonly stepActive?: string | number | undefined;
4460
+ readonly size?: "small" | "default" | "large" | undefined;
4461
+ readonly inline?: boolean | undefined;
4462
+ readonly labelPosition?: string | undefined;
4463
+ readonly keyProp?: string | undefined;
4464
+ readonly popperClass?: string | undefined;
4465
+ readonly preventSubmitDefault?: boolean | undefined;
4466
+ readonly extendState?: ((_state: FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
4467
+ readonly showDiff?: ((_data: {
4468
+ curValue: any;
4469
+ lastValue: any;
4470
+ config: any;
4471
+ }) => boolean) | undefined;
4472
+ readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
4473
+ readonly onError?: ((...args: any[]) => any) | undefined;
4474
+ readonly onChange?: ((...args: any[]) => any) | undefined;
4475
+ readonly "onField-input"?: ((...args: any[]) => any) | undefined;
4476
+ readonly "onField-change"?: ((...args: any[]) => any) | undefined;
4477
+ readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
4478
+ } & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
4479
+ $attrs: import("@vue/runtime-core").Attrs;
4480
+ $refs: {
4481
+ [x: string]: unknown;
4482
+ };
4483
+ $slots: Readonly<{
4484
+ [name: string]: import("@vue/runtime-core").Slot<any> | undefined;
4485
+ }>;
4486
+ $root: import("@vue/runtime-core").ComponentPublicInstance | null;
4487
+ $parent: import("@vue/runtime-core").ComponentPublicInstance | null;
4488
+ $host: Element | null;
4489
+ $emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
4490
+ $el: any;
4491
+ $options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
4492
+ config: import("@tmagic/form-schema").FormConfig;
4493
+ initValues: Record<string, any>;
4494
+ lastValues?: Record<string, any>;
4495
+ isCompare?: boolean;
4496
+ parentValues?: Record<string, any>;
4497
+ labelWidth?: string;
4498
+ disabled?: boolean;
4499
+ height?: string;
4500
+ stepActive?: string | number;
4501
+ size?: "small" | "default" | "large";
4502
+ inline?: boolean;
4503
+ labelPosition?: string;
4504
+ keyProp?: string;
4505
+ popperClass?: string;
4506
+ preventSubmitDefault?: boolean;
4507
+ extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
4508
+ showDiff?: (_data: {
4509
+ curValue: any;
4510
+ lastValue: any;
4511
+ config: any;
4512
+ }) => boolean;
4513
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
4514
+ }> & Readonly<{
4515
+ onError?: ((...args: any[]) => any) | undefined;
4516
+ onChange?: ((...args: any[]) => any) | undefined;
4517
+ "onField-input"?: ((...args: any[]) => any) | undefined;
4518
+ "onField-change"?: ((...args: any[]) => any) | undefined;
4519
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
4520
+ }>, {
4521
+ values: import("@vue/reactivity").Ref<FormValue, FormValue>;
4522
+ lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
4523
+ formState: FormState;
4524
+ initialized: import("@vue/reactivity").Ref<boolean, boolean>;
4525
+ changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
4526
+ changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
4527
+ resetForm: () => void;
4528
+ submitForm: (native?: boolean) => Promise<any>;
4529
+ getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
4530
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4531
+ error: (...args: any[]) => void;
4532
+ change: (...args: any[]) => void;
4533
+ "field-input": (...args: any[]) => void;
4534
+ "field-change": (...args: any[]) => void;
4535
+ "update:stepActive": (...args: any[]) => void;
4536
+ }, string, {
4537
+ disabled: boolean;
4538
+ labelWidth: string;
4539
+ inline: boolean;
4540
+ labelPosition: string;
4541
+ config: import("@tmagic/form-schema").FormConfig;
4542
+ height: string;
4543
+ initValues: Record<string, any>;
4544
+ lastValues: Record<string, any>;
4545
+ isCompare: boolean;
4546
+ keyProp: string;
4547
+ parentValues: Record<string, any>;
4548
+ stepActive: string | number;
4549
+ }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
4550
+ beforeCreate?: (() => void) | (() => void)[];
4551
+ created?: (() => void) | (() => void)[];
4552
+ beforeMount?: (() => void) | (() => void)[];
4553
+ mounted?: (() => void) | (() => void)[];
4554
+ beforeUpdate?: (() => void) | (() => void)[];
4555
+ updated?: (() => void) | (() => void)[];
4556
+ activated?: (() => void) | (() => void)[];
4557
+ deactivated?: (() => void) | (() => void)[];
4558
+ beforeDestroy?: (() => void) | (() => void)[];
4559
+ beforeUnmount?: (() => void) | (() => void)[];
4560
+ destroyed?: (() => void) | (() => void)[];
4561
+ unmounted?: (() => void) | (() => void)[];
4562
+ renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
4563
+ renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
4564
+ errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
4565
+ };
4566
+ $forceUpdate: () => void;
4567
+ $nextTick: typeof import("@vue/runtime-core").nextTick;
4568
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
4569
+ } & Readonly<{
3449
4570
  disabled: boolean;
3450
4571
  labelWidth: string;
3451
4572
  inline: boolean;
@@ -3458,14 +4579,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3458
4579
  keyProp: string;
3459
4580
  parentValues: Record<string, any>;
3460
4581
  stepActive: string | number;
3461
- }, false, {}, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, {}, any, import("@vue/runtime-core").ComponentProvideOptions, {
3462
- P: {};
3463
- B: {};
3464
- D: {};
3465
- C: {};
3466
- M: {};
3467
- Defaults: {};
3468
- }, Readonly<{
4582
+ }> & Omit<Readonly<{
3469
4583
  config: import("@tmagic/form-schema").FormConfig;
3470
4584
  initValues: Record<string, any>;
3471
4585
  lastValues?: Record<string, any>;
@@ -3482,36 +4596,31 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3482
4596
  popperClass?: string;
3483
4597
  preventSubmitDefault?: boolean;
3484
4598
  extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
4599
+ showDiff?: (_data: {
4600
+ curValue: any;
4601
+ lastValue: any;
4602
+ config: any;
4603
+ }) => boolean;
4604
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
3485
4605
  }> & Readonly<{
3486
4606
  onError?: ((...args: any[]) => any) | undefined;
3487
4607
  onChange?: ((...args: any[]) => any) | undefined;
3488
4608
  "onField-input"?: ((...args: any[]) => any) | undefined;
3489
4609
  "onField-change"?: ((...args: any[]) => any) | undefined;
3490
4610
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
3491
- }>, {
3492
- values: import("@vue/reactivity").Ref<FormValue, FormValue>;
3493
- lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
4611
+ }>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
4612
+ values: FormValue;
4613
+ lastValuesProcessed: FormValue;
3494
4614
  formState: FormState;
3495
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
3496
- changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
4615
+ initialized: boolean;
4616
+ changeRecords: ChangeRecord$1[];
3497
4617
  changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
3498
4618
  resetForm: () => void;
3499
4619
  submitForm: (native?: boolean) => Promise<any>;
3500
4620
  getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
3501
- }, {}, {}, {}, {
3502
- disabled: boolean;
3503
- labelWidth: string;
3504
- inline: boolean;
3505
- labelPosition: string;
3506
- config: import("@tmagic/form-schema").FormConfig;
3507
- height: string;
3508
- initValues: Record<string, any>;
3509
- lastValues: Record<string, any>;
3510
- isCompare: boolean;
3511
- keyProp: string;
3512
- parentValues: Record<string, any>;
3513
- stepActive: string | number;
3514
- }> | null>>;
4621
+ } & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
4622
+ $slots: FormSlots;
4623
+ }) | null>>;
3515
4624
  submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
3516
4625
  }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3517
4626
  mounted: (internalInstance: any) => any;
@@ -3554,7 +4663,142 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3554
4663
  "onSubmit-error"?: ((e: any) => any) | undefined;
3555
4664
  "onForm-error"?: ((e: any) => any) | undefined;
3556
4665
  }>, "submit" | "configForm"> & {
3557
- configForm: import("@vue/runtime-core").CreateComponentPublicInstanceWithMixins<Readonly<{
4666
+ configForm: ({
4667
+ $: import("@vue/runtime-core").ComponentInternalInstance;
4668
+ $data: {};
4669
+ $props: {
4670
+ readonly config: import("@tmagic/form-schema").FormConfig;
4671
+ readonly initValues: Record<string, any>;
4672
+ readonly lastValues?: Record<string, any> | undefined;
4673
+ readonly isCompare?: boolean | undefined;
4674
+ readonly parentValues?: Record<string, any> | undefined;
4675
+ readonly labelWidth?: string | undefined;
4676
+ readonly disabled?: boolean | undefined;
4677
+ readonly height?: string | undefined;
4678
+ readonly stepActive?: string | number | undefined;
4679
+ readonly size?: "small" | "default" | "large" | undefined;
4680
+ readonly inline?: boolean | undefined;
4681
+ readonly labelPosition?: string | undefined;
4682
+ readonly keyProp?: string | undefined;
4683
+ readonly popperClass?: string | undefined;
4684
+ readonly preventSubmitDefault?: boolean | undefined;
4685
+ readonly extendState?: ((_state: FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
4686
+ readonly showDiff?: ((_data: {
4687
+ curValue: any;
4688
+ lastValue: any;
4689
+ config: any;
4690
+ }) => boolean) | undefined;
4691
+ readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
4692
+ readonly onError?: ((...args: any[]) => any) | undefined;
4693
+ readonly onChange?: ((...args: any[]) => any) | undefined;
4694
+ readonly "onField-input"?: ((...args: any[]) => any) | undefined;
4695
+ readonly "onField-change"?: ((...args: any[]) => any) | undefined;
4696
+ readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
4697
+ } & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
4698
+ $attrs: import("@vue/runtime-core").Attrs;
4699
+ $refs: {
4700
+ [x: string]: unknown;
4701
+ };
4702
+ $slots: Readonly<{
4703
+ [name: string]: import("@vue/runtime-core").Slot<any> | undefined;
4704
+ }>;
4705
+ $root: import("@vue/runtime-core").ComponentPublicInstance | null;
4706
+ $parent: import("@vue/runtime-core").ComponentPublicInstance | null;
4707
+ $host: Element | null;
4708
+ $emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
4709
+ $el: any;
4710
+ $options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
4711
+ config: import("@tmagic/form-schema").FormConfig;
4712
+ initValues: Record<string, any>;
4713
+ lastValues?: Record<string, any>;
4714
+ isCompare?: boolean;
4715
+ parentValues?: Record<string, any>;
4716
+ labelWidth?: string;
4717
+ disabled?: boolean;
4718
+ height?: string;
4719
+ stepActive?: string | number;
4720
+ size?: "small" | "default" | "large";
4721
+ inline?: boolean;
4722
+ labelPosition?: string;
4723
+ keyProp?: string;
4724
+ popperClass?: string;
4725
+ preventSubmitDefault?: boolean;
4726
+ extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
4727
+ showDiff?: (_data: {
4728
+ curValue: any;
4729
+ lastValue: any;
4730
+ config: any;
4731
+ }) => boolean;
4732
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
4733
+ }> & Readonly<{
4734
+ onError?: ((...args: any[]) => any) | undefined;
4735
+ onChange?: ((...args: any[]) => any) | undefined;
4736
+ "onField-input"?: ((...args: any[]) => any) | undefined;
4737
+ "onField-change"?: ((...args: any[]) => any) | undefined;
4738
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
4739
+ }>, {
4740
+ values: import("@vue/reactivity").Ref<FormValue, FormValue>;
4741
+ lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
4742
+ formState: FormState;
4743
+ initialized: import("@vue/reactivity").Ref<boolean, boolean>;
4744
+ changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
4745
+ changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
4746
+ resetForm: () => void;
4747
+ submitForm: (native?: boolean) => Promise<any>;
4748
+ getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
4749
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4750
+ error: (...args: any[]) => void;
4751
+ change: (...args: any[]) => void;
4752
+ "field-input": (...args: any[]) => void;
4753
+ "field-change": (...args: any[]) => void;
4754
+ "update:stepActive": (...args: any[]) => void;
4755
+ }, string, {
4756
+ disabled: boolean;
4757
+ labelWidth: string;
4758
+ inline: boolean;
4759
+ labelPosition: string;
4760
+ config: import("@tmagic/form-schema").FormConfig;
4761
+ height: string;
4762
+ initValues: Record<string, any>;
4763
+ lastValues: Record<string, any>;
4764
+ isCompare: boolean;
4765
+ keyProp: string;
4766
+ parentValues: Record<string, any>;
4767
+ stepActive: string | number;
4768
+ }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
4769
+ beforeCreate?: (() => void) | (() => void)[];
4770
+ created?: (() => void) | (() => void)[];
4771
+ beforeMount?: (() => void) | (() => void)[];
4772
+ mounted?: (() => void) | (() => void)[];
4773
+ beforeUpdate?: (() => void) | (() => void)[];
4774
+ updated?: (() => void) | (() => void)[];
4775
+ activated?: (() => void) | (() => void)[];
4776
+ deactivated?: (() => void) | (() => void)[];
4777
+ beforeDestroy?: (() => void) | (() => void)[];
4778
+ beforeUnmount?: (() => void) | (() => void)[];
4779
+ destroyed?: (() => void) | (() => void)[];
4780
+ unmounted?: (() => void) | (() => void)[];
4781
+ renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
4782
+ renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
4783
+ errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
4784
+ };
4785
+ $forceUpdate: () => void;
4786
+ $nextTick: typeof import("@vue/runtime-core").nextTick;
4787
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
4788
+ } & Readonly<{
4789
+ disabled: boolean;
4790
+ labelWidth: string;
4791
+ inline: boolean;
4792
+ labelPosition: string;
4793
+ config: import("@tmagic/form-schema").FormConfig;
4794
+ height: string;
4795
+ initValues: Record<string, any>;
4796
+ lastValues: Record<string, any>;
4797
+ isCompare: boolean;
4798
+ keyProp: string;
4799
+ parentValues: Record<string, any>;
4800
+ stepActive: string | number;
4801
+ }> & Omit<Readonly<{
3558
4802
  config: import("@tmagic/form-schema").FormConfig;
3559
4803
  initValues: Record<string, any>;
3560
4804
  lastValues?: Record<string, any>;
@@ -3571,50 +4815,109 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3571
4815
  popperClass?: string;
3572
4816
  preventSubmitDefault?: boolean;
3573
4817
  extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
4818
+ showDiff?: (_data: {
4819
+ curValue: any;
4820
+ lastValue: any;
4821
+ config: any;
4822
+ }) => boolean;
4823
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
3574
4824
  }> & Readonly<{
3575
4825
  onError?: ((...args: any[]) => any) | undefined;
3576
4826
  onChange?: ((...args: any[]) => any) | undefined;
3577
4827
  "onField-input"?: ((...args: any[]) => any) | undefined;
3578
4828
  "onField-change"?: ((...args: any[]) => any) | undefined;
3579
4829
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
3580
- }>, {
3581
- values: import("@vue/reactivity").Ref<FormValue, FormValue>;
3582
- lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
4830
+ }>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
4831
+ values: FormValue;
4832
+ lastValuesProcessed: FormValue;
3583
4833
  formState: FormState;
3584
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
3585
- changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
4834
+ initialized: boolean;
4835
+ changeRecords: ChangeRecord$1[];
3586
4836
  changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
3587
4837
  resetForm: () => void;
3588
4838
  submitForm: (native?: boolean) => Promise<any>;
3589
4839
  getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
3590
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3591
- error: (...args: any[]) => void;
3592
- change: (...args: any[]) => void;
3593
- "field-input": (...args: any[]) => void;
3594
- "field-change": (...args: any[]) => void;
3595
- "update:stepActive": (...args: any[]) => void;
3596
- }, import("@vue/runtime-core").PublicProps, {
3597
- disabled: boolean;
3598
- labelWidth: string;
3599
- inline: boolean;
3600
- labelPosition: string;
3601
- config: import("@tmagic/form-schema").FormConfig;
3602
- height: string;
3603
- initValues: Record<string, any>;
3604
- lastValues: Record<string, any>;
3605
- isCompare: boolean;
3606
- keyProp: string;
3607
- parentValues: Record<string, any>;
3608
- stepActive: string | number;
3609
- }, false, {}, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, {}, any, import("@vue/runtime-core").ComponentProvideOptions, {
3610
- P: {};
3611
- B: {};
3612
- D: {};
3613
- C: {};
3614
- M: {};
3615
- Defaults: {};
3616
- }, Readonly<{
3617
- config: import("@tmagic/form-schema").FormConfig;
4840
+ } & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
4841
+ $slots: FormSlots;
4842
+ }) | null;
4843
+ submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
4844
+ } & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
4845
+ $slots: {
4846
+ 'props-form-panel-header'(_props: {}): any;
4847
+ };
4848
+ }) => any) | undefined;
4849
+ onUnmounted?: (() => any) | undefined;
4850
+ "onSubmit-error"?: ((e: any) => any) | undefined;
4851
+ "onForm-error"?: ((e: any) => any) | undefined;
4852
+ }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
4853
+ declare const __VLS_export$15: __VLS_WithSlots$7<typeof __VLS_base$7, __VLS_Slots$7>;
4854
+ declare const _default$27: typeof __VLS_export$15;
4855
+ type __VLS_WithSlots$7<T, S> = T & {
4856
+ new (): {
4857
+ $slots: S;
4858
+ };
4859
+ };
4860
+ //#endregion
4861
+ //#region temp/packages/editor/src/layouts/props-panel/FormPanel.vue.d.ts
4862
+ type __VLS_Slots$6 = {
4863
+ 'props-form-panel-header'(_props: {}): any;
4864
+ };
4865
+ type __VLS_Props$13 = {
4866
+ config: FormConfig;
4867
+ values: FormValue;
4868
+ disabledShowSrc?: boolean;
4869
+ labelWidth?: string;
4870
+ codeValueKey?: string;
4871
+ labelPosition?: string;
4872
+ extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
4873
+ };
4874
+ declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Props$13, {
4875
+ configForm: Readonly<import("@vue/reactivity").ShallowRef<({
4876
+ $: import("@vue/runtime-core").ComponentInternalInstance;
4877
+ $data: {};
4878
+ $props: {
4879
+ readonly config: FormConfig;
4880
+ readonly initValues: Record<string, any>;
4881
+ readonly lastValues?: Record<string, any> | undefined;
4882
+ readonly isCompare?: boolean | undefined;
4883
+ readonly parentValues?: Record<string, any> | undefined;
4884
+ readonly labelWidth?: string | undefined;
4885
+ readonly disabled?: boolean | undefined;
4886
+ readonly height?: string | undefined;
4887
+ readonly stepActive?: string | number | undefined;
4888
+ readonly size?: "small" | "default" | "large" | undefined;
4889
+ readonly inline?: boolean | undefined;
4890
+ readonly labelPosition?: string | undefined;
4891
+ readonly keyProp?: string | undefined;
4892
+ readonly popperClass?: string | undefined;
4893
+ readonly preventSubmitDefault?: boolean | undefined;
4894
+ readonly extendState?: ((_state: FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
4895
+ readonly showDiff?: ((_data: {
4896
+ curValue: any;
4897
+ lastValue: any;
4898
+ config: any;
4899
+ }) => boolean) | undefined;
4900
+ readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
4901
+ readonly onError?: ((...args: any[]) => any) | undefined;
4902
+ readonly onChange?: ((...args: any[]) => any) | undefined;
4903
+ readonly "onField-input"?: ((...args: any[]) => any) | undefined;
4904
+ readonly "onField-change"?: ((...args: any[]) => any) | undefined;
4905
+ readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
4906
+ } & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
4907
+ $attrs: import("@vue/runtime-core").Attrs;
4908
+ $refs: {
4909
+ [x: string]: unknown;
4910
+ };
4911
+ $slots: Readonly<{
4912
+ [name: string]: import("@vue/runtime-core").Slot<any> | undefined;
4913
+ }>;
4914
+ $root: import("@vue/runtime-core").ComponentPublicInstance | null;
4915
+ $parent: import("@vue/runtime-core").ComponentPublicInstance | null;
4916
+ $host: Element | null;
4917
+ $emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
4918
+ $el: any;
4919
+ $options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
4920
+ config: FormConfig;
3618
4921
  initValues: Record<string, any>;
3619
4922
  lastValues?: Record<string, any>;
3620
4923
  isCompare?: boolean;
@@ -3630,6 +4933,12 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3630
4933
  popperClass?: string;
3631
4934
  preventSubmitDefault?: boolean;
3632
4935
  extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
4936
+ showDiff?: (_data: {
4937
+ curValue: any;
4938
+ lastValue: any;
4939
+ config: any;
4940
+ }) => boolean;
4941
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
3633
4942
  }> & Readonly<{
3634
4943
  onError?: ((...args: any[]) => any) | undefined;
3635
4944
  onChange?: ((...args: any[]) => any) | undefined;
@@ -3645,13 +4954,19 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3645
4954
  changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
3646
4955
  resetForm: () => void;
3647
4956
  submitForm: (native?: boolean) => Promise<any>;
3648
- getTextByName: (name: string, config?: import("@tmagic/form-schema").FormConfig) => string | undefined;
3649
- }, {}, {}, {}, {
4957
+ getTextByName: (name: string, config?: FormConfig) => string | undefined;
4958
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4959
+ error: (...args: any[]) => void;
4960
+ change: (...args: any[]) => void;
4961
+ "field-input": (...args: any[]) => void;
4962
+ "field-change": (...args: any[]) => void;
4963
+ "update:stepActive": (...args: any[]) => void;
4964
+ }, string, {
3650
4965
  disabled: boolean;
3651
4966
  labelWidth: string;
3652
4967
  inline: boolean;
3653
4968
  labelPosition: string;
3654
- config: import("@tmagic/form-schema").FormConfig;
4969
+ config: FormConfig;
3655
4970
  height: string;
3656
4971
  initValues: Record<string, any>;
3657
4972
  lastValues: Record<string, any>;
@@ -3659,79 +4974,27 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3659
4974
  keyProp: string;
3660
4975
  parentValues: Record<string, any>;
3661
4976
  stepActive: string | number;
3662
- }> | null;
3663
- submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
3664
- } & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
3665
- $slots: {
3666
- 'props-form-panel-header'(_props: {}): any;
4977
+ }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
4978
+ beforeCreate?: (() => void) | (() => void)[];
4979
+ created?: (() => void) | (() => void)[];
4980
+ beforeMount?: (() => void) | (() => void)[];
4981
+ mounted?: (() => void) | (() => void)[];
4982
+ beforeUpdate?: (() => void) | (() => void)[];
4983
+ updated?: (() => void) | (() => void)[];
4984
+ activated?: (() => void) | (() => void)[];
4985
+ deactivated?: (() => void) | (() => void)[];
4986
+ beforeDestroy?: (() => void) | (() => void)[];
4987
+ beforeUnmount?: (() => void) | (() => void)[];
4988
+ destroyed?: (() => void) | (() => void)[];
4989
+ unmounted?: (() => void) | (() => void)[];
4990
+ renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
4991
+ renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
4992
+ errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
3667
4993
  };
3668
- }) => any) | undefined;
3669
- onUnmounted?: (() => any) | undefined;
3670
- "onSubmit-error"?: ((e: any) => any) | undefined;
3671
- "onForm-error"?: ((e: any) => any) | undefined;
3672
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3673
- declare const __VLS_export$14: __VLS_WithSlots$7<typeof __VLS_base$7, __VLS_Slots$7>;
3674
- declare const _default$26: typeof __VLS_export$14;
3675
- type __VLS_WithSlots$7<T, S> = T & {
3676
- new (): {
3677
- $slots: S;
3678
- };
3679
- };
3680
- //#endregion
3681
- //#region temp/packages/editor/src/layouts/props-panel/FormPanel.vue.d.ts
3682
- type __VLS_Slots$6 = {
3683
- 'props-form-panel-header'(_props: {}): any;
3684
- };
3685
- type __VLS_Props$12 = {
3686
- config: FormConfig;
3687
- values: FormValue;
3688
- disabledShowSrc?: boolean;
3689
- labelWidth?: string;
3690
- codeValueKey?: string;
3691
- labelPosition?: string;
3692
- extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
3693
- };
3694
- declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Props$12, {
3695
- configForm: Readonly<import("@vue/reactivity").ShallowRef<import("@vue/runtime-core").CreateComponentPublicInstanceWithMixins<Readonly<{
3696
- config: FormConfig;
3697
- initValues: Record<string, any>;
3698
- lastValues?: Record<string, any>;
3699
- isCompare?: boolean;
3700
- parentValues?: Record<string, any>;
3701
- labelWidth?: string;
3702
- disabled?: boolean;
3703
- height?: string;
3704
- stepActive?: string | number;
3705
- size?: "small" | "default" | "large";
3706
- inline?: boolean;
3707
- labelPosition?: string;
3708
- keyProp?: string;
3709
- popperClass?: string;
3710
- preventSubmitDefault?: boolean;
3711
- extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
3712
- }> & Readonly<{
3713
- onError?: ((...args: any[]) => any) | undefined;
3714
- onChange?: ((...args: any[]) => any) | undefined;
3715
- "onField-input"?: ((...args: any[]) => any) | undefined;
3716
- "onField-change"?: ((...args: any[]) => any) | undefined;
3717
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
3718
- }>, {
3719
- values: import("@vue/reactivity").Ref<FormValue, FormValue>;
3720
- lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
3721
- formState: FormState;
3722
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
3723
- changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
3724
- changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
3725
- resetForm: () => void;
3726
- submitForm: (native?: boolean) => Promise<any>;
3727
- getTextByName: (name: string, config?: FormConfig) => string | undefined;
3728
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3729
- error: (...args: any[]) => void;
3730
- change: (...args: any[]) => void;
3731
- "field-input": (...args: any[]) => void;
3732
- "field-change": (...args: any[]) => void;
3733
- "update:stepActive": (...args: any[]) => void;
3734
- }, import("@vue/runtime-core").PublicProps, {
4994
+ $forceUpdate: () => void;
4995
+ $nextTick: typeof import("@vue/runtime-core").nextTick;
4996
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
4997
+ } & Readonly<{
3735
4998
  disabled: boolean;
3736
4999
  labelWidth: string;
3737
5000
  inline: boolean;
@@ -3744,14 +5007,7 @@ declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3744
5007
  keyProp: string;
3745
5008
  parentValues: Record<string, any>;
3746
5009
  stepActive: string | number;
3747
- }, false, {}, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, {}, any, import("@vue/runtime-core").ComponentProvideOptions, {
3748
- P: {};
3749
- B: {};
3750
- D: {};
3751
- C: {};
3752
- M: {};
3753
- Defaults: {};
3754
- }, Readonly<{
5010
+ }> & Omit<Readonly<{
3755
5011
  config: FormConfig;
3756
5012
  initValues: Record<string, any>;
3757
5013
  lastValues?: Record<string, any>;
@@ -3768,36 +5024,31 @@ declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3768
5024
  popperClass?: string;
3769
5025
  preventSubmitDefault?: boolean;
3770
5026
  extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
5027
+ showDiff?: (_data: {
5028
+ curValue: any;
5029
+ lastValue: any;
5030
+ config: any;
5031
+ }) => boolean;
5032
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
3771
5033
  }> & Readonly<{
3772
5034
  onError?: ((...args: any[]) => any) | undefined;
3773
5035
  onChange?: ((...args: any[]) => any) | undefined;
3774
5036
  "onField-input"?: ((...args: any[]) => any) | undefined;
3775
5037
  "onField-change"?: ((...args: any[]) => any) | undefined;
3776
5038
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
3777
- }>, {
3778
- values: import("@vue/reactivity").Ref<FormValue, FormValue>;
3779
- lastValuesProcessed: import("@vue/reactivity").Ref<FormValue, FormValue>;
5039
+ }>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
5040
+ values: FormValue;
5041
+ lastValuesProcessed: FormValue;
3780
5042
  formState: FormState;
3781
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
3782
- changeRecords: import("@vue/reactivity").ShallowRef<ChangeRecord$1[], ChangeRecord$1[]>;
5043
+ initialized: boolean;
5044
+ changeRecords: ChangeRecord$1[];
3783
5045
  changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
3784
5046
  resetForm: () => void;
3785
5047
  submitForm: (native?: boolean) => Promise<any>;
3786
5048
  getTextByName: (name: string, config?: FormConfig) => string | undefined;
3787
- }, {}, {}, {}, {
3788
- disabled: boolean;
3789
- labelWidth: string;
3790
- inline: boolean;
3791
- labelPosition: string;
3792
- config: FormConfig;
3793
- height: string;
3794
- initValues: Record<string, any>;
3795
- lastValues: Record<string, any>;
3796
- isCompare: boolean;
3797
- keyProp: string;
3798
- parentValues: Record<string, any>;
3799
- stepActive: string | number;
3800
- }> | null>>;
5049
+ } & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
5050
+ $slots: FormSlots;
5051
+ }) | null>>;
3801
5052
  submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
3802
5053
  }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3803
5054
  mounted: (internalInstance: any) => any;
@@ -3805,15 +5056,15 @@ declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3805
5056
  submit: (values: any, eventData?: ContainerChangeEventData | undefined) => any;
3806
5057
  "submit-error": (e: any) => any;
3807
5058
  "form-error": (e: any) => any;
3808
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$12> & Readonly<{
5059
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$13> & Readonly<{
3809
5060
  onMounted?: ((internalInstance: any) => any) | undefined;
3810
5061
  onUnmounted?: (() => any) | undefined;
3811
5062
  onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
3812
5063
  "onSubmit-error"?: ((e: any) => any) | undefined;
3813
5064
  "onForm-error"?: ((e: any) => any) | undefined;
3814
5065
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3815
- declare const __VLS_export$13: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
3816
- declare const _default$25: typeof __VLS_export$13;
5066
+ declare const __VLS_export$14: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
5067
+ declare const _default$26: typeof __VLS_export$14;
3817
5068
  type __VLS_WithSlots$6<T, S> = T & {
3818
5069
  new (): {
3819
5070
  $slots: S;
@@ -3821,20 +5072,20 @@ type __VLS_WithSlots$6<T, S> = T & {
3821
5072
  };
3822
5073
  //#endregion
3823
5074
  //#region temp/packages/editor/src/components/ToolButton.vue.d.ts
3824
- type __VLS_Props$11 = {
5075
+ type __VLS_Props$12 = {
3825
5076
  data?: MenuButton | MenuComponent;
3826
5077
  eventType?: 'mousedown' | 'mouseup' | 'click';
3827
5078
  };
3828
- declare const __VLS_export$12: import("@vue/runtime-core").DefineComponent<__VLS_Props$11, {
5079
+ declare const __VLS_export$13: import("@vue/runtime-core").DefineComponent<__VLS_Props$12, {
3829
5080
  getElRef: () => Readonly<import("@vue/reactivity").ShallowRef<HTMLDivElement | null>>;
3830
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$11> & Readonly<{}>, {
5081
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$12> & Readonly<{}>, {
3831
5082
  data: MenuButton | MenuComponent;
3832
5083
  eventType: "mousedown" | "mouseup" | "click";
3833
5084
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3834
- declare const _default$31: typeof __VLS_export$12;
5085
+ declare const _default$32: typeof __VLS_export$13;
3835
5086
  //#endregion
3836
5087
  //#region temp/packages/editor/src/components/ContentMenu.vue.d.ts
3837
- type __VLS_Props$10 = {
5088
+ type __VLS_Props$11 = {
3838
5089
  menuData?: (MenuButton | MenuComponent)[];
3839
5090
  isSubMenu?: boolean;
3840
5091
  active?: string | number;
@@ -3844,7 +5095,7 @@ declare var __VLS_7$1: {};
3844
5095
  type __VLS_Slots$5 = {} & {
3845
5096
  title?: (props: typeof __VLS_7$1) => any;
3846
5097
  };
3847
- declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<__VLS_Props$10, {
5098
+ declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<__VLS_Props$11, {
3848
5099
  menu: Readonly<import("@vue/reactivity").ShallowRef<HTMLDivElement | null>>;
3849
5100
  menuPosition: Ref<{
3850
5101
  left: number;
@@ -3870,7 +5121,7 @@ declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3870
5121
  mouseenter: () => any;
3871
5122
  show: () => any;
3872
5123
  hide: () => any;
3873
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$10> & Readonly<{
5124
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$11> & Readonly<{
3874
5125
  onMouseenter?: (() => any) | undefined;
3875
5126
  onShow?: (() => any) | undefined;
3876
5127
  onHide?: (() => any) | undefined;
@@ -3879,8 +5130,8 @@ declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3879
5130
  isSubMenu: boolean;
3880
5131
  autoHide: boolean;
3881
5132
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3882
- declare const __VLS_export$11: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
3883
- declare const _default$7: typeof __VLS_export$11;
5133
+ declare const __VLS_export$12: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
5134
+ declare const _default$8: typeof __VLS_export$12;
3884
5135
  type __VLS_WithSlots$5<T, S> = T & {
3885
5136
  new (): {
3886
5137
  $slots: S;
@@ -3888,14 +5139,14 @@ type __VLS_WithSlots$5<T, S> = T & {
3888
5139
  };
3889
5140
  //#endregion
3890
5141
  //#region temp/packages/editor/src/components/Icon.vue.d.ts
3891
- type __VLS_Props$9 = {
5142
+ type __VLS_Props$10 = {
3892
5143
  icon?: any;
3893
5144
  };
3894
- declare const __VLS_export$10: import("@vue/runtime-core").DefineComponent<__VLS_Props$9, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$9> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3895
- declare const _default$20: typeof __VLS_export$10;
5145
+ declare const __VLS_export$11: import("@vue/runtime-core").DefineComponent<__VLS_Props$10, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$10> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
5146
+ declare const _default$21: typeof __VLS_export$11;
3896
5147
  //#endregion
3897
5148
  //#region temp/packages/editor/src/components/SplitView.vue.d.ts
3898
- type __VLS_Props$8 = {
5149
+ type __VLS_Props$9 = {
3899
5150
  width?: number;
3900
5151
  left?: number;
3901
5152
  right?: number;
@@ -3914,13 +5165,13 @@ type __VLS_Slots$4 = {} & {
3914
5165
  } & {
3915
5166
  right?: (props: typeof __VLS_19) => any;
3916
5167
  };
3917
- declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Props$8, {
5168
+ declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Props$9, {
3918
5169
  updateWidth(): void;
3919
5170
  }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
3920
5171
  change: (...args: any[]) => void;
3921
5172
  "update:left": (...args: any[]) => void;
3922
5173
  "update:right": (...args: any[]) => void;
3923
- }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$8> & Readonly<{
5174
+ }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$9> & Readonly<{
3924
5175
  onChange?: ((...args: any[]) => any) | undefined;
3925
5176
  "onUpdate:left"?: ((...args: any[]) => any) | undefined;
3926
5177
  "onUpdate:right"?: ((...args: any[]) => any) | undefined;
@@ -3929,8 +5180,8 @@ declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Pr
3929
5180
  minRight: number;
3930
5181
  minCenter: number;
3931
5182
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3932
- declare const __VLS_export$9: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
3933
- declare const _default$23: typeof __VLS_export$9;
5183
+ declare const __VLS_export$10: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
5184
+ declare const _default$24: typeof __VLS_export$10;
3934
5185
  type __VLS_WithSlots$4<T, S> = T & {
3935
5186
  new (): {
3936
5187
  $slots: S;
@@ -3947,8 +5198,8 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<{}, {},
3947
5198
  }, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{
3948
5199
  onChange?: ((e: OnDrag$1<import("gesto").default>) => any) | undefined;
3949
5200
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
3950
- declare const __VLS_export$8: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
3951
- declare const _default$27: typeof __VLS_export$8;
5201
+ declare const __VLS_export$9: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
5202
+ declare const _default$28: typeof __VLS_export$9;
3952
5203
  type __VLS_WithSlots$3<T, S> = T & {
3953
5204
  new (): {
3954
5205
  $slots: S;
@@ -3956,7 +5207,7 @@ type __VLS_WithSlots$3<T, S> = T & {
3956
5207
  };
3957
5208
  //#endregion
3958
5209
  //#region temp/packages/editor/src/components/CodeBlockEditor.vue.d.ts
3959
- type __VLS_Props$7 = {
5210
+ type __VLS_Props$8 = {
3960
5211
  content: Omit<CodeBlockContent, 'content'> & {
3961
5212
  content: string;
3962
5213
  };
@@ -3968,8 +5219,8 @@ type __VLS_ModelProps$1 = {
3968
5219
  'width'?: number;
3969
5220
  'visible'?: boolean;
3970
5221
  };
3971
- type __VLS_PublicProps$1 = __VLS_Props$7 & __VLS_ModelProps$1;
3972
- declare const __VLS_export$7: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$1, {
5222
+ type __VLS_PublicProps$1 = __VLS_Props$8 & __VLS_ModelProps$1;
5223
+ declare const __VLS_export$8: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$1, {
3973
5224
  show(): Promise<void>;
3974
5225
  hide(): Promise<void>;
3975
5226
  }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
@@ -3985,7 +5236,51 @@ declare const __VLS_export$7: import("@vue/runtime-core").DefineComponent<__VLS_
3985
5236
  "onUpdate:width"?: ((value: number) => any) | undefined;
3986
5237
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
3987
5238
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3988
- declare const _default: typeof __VLS_export$7;
5239
+ declare const _default: typeof __VLS_export$8;
5240
+ //#endregion
5241
+ //#region temp/packages/editor/src/components/CompareForm.vue.d.ts
5242
+ /**
5243
+ * 对比类型:
5244
+ * - node: 节点组件,按 `type` 从 propsService 获取属性表单配置
5245
+ * - data-source: 数据源,按 `type`(base/http/...) 从 dataSourceService 获取数据源表单配置
5246
+ * - code-block: 数据源代码块,使用内置的代码块表单配置
5247
+ */
5248
+ type CompareCategory = 'node' | 'data-source' | 'code-block';
5249
+ type __VLS_Props$7 = {
5250
+ /** 当前值(修改后的值) */value: Partial<MNode> | Partial<DataSourceSchema> | Partial<CodeBlockContent> | Record<string, any>; /** 用于对比的旧值(修改前的值) */
5251
+ lastValue?: Partial<MNode> | Partial<DataSourceSchema> | Partial<CodeBlockContent> | Record<string, any>;
5252
+ /**
5253
+ * 类型说明:
5254
+ * - `category` 为 `node` 时,`type` 为节点组件的类型,例如 'text'、'button'、'page'、'container' 等
5255
+ * - `category` 为 `data-source` 时,`type` 为数据源类型,例如 'base'、'http'
5256
+ * - `category` 为 `code-block` 时,`type` 可不传
5257
+ */
5258
+ type?: string; /** 表单配置类别,决定从哪里取 FormConfig */
5259
+ category?: CompareCategory; /** 数据源代码块场景下的数据源类型(base/http),用于代码块表单中"执行时机"展示 */
5260
+ dataSourceType?: string;
5261
+ labelWidth?: string;
5262
+ /**
5263
+ * 外层容器高度。设置后表单内容超出时会在 CompareForm 内部出现滚动条,
5264
+ * 避免 dialog / 面板使用方需要自行处理滚动。可传任意 CSS 长度,例如 `60vh` / `400px` / `100%`。
5265
+ */
5266
+ height?: string;
5267
+ /**
5268
+ * 用户自定义注入到 MForm.formState 的扩展字段,与 Editor 顶层的 `extendFormState`、
5269
+ * PropsPanel 的 `extend-state` 语义一致。表单 item 的 `display` / `disabled` 等
5270
+ * filterFunction 经常依赖这里注入的字段(如 stage、自定义业务上下文等),
5271
+ * 因此在差异对比场景下也需要透传,避免出现 `formState.xxx is undefined` 的运行时错误。
5272
+ */
5273
+ extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
5274
+ };
5275
+ declare const __VLS_export$7: import("@vue/runtime-core").DefineComponent<__VLS_Props$7, {
5276
+ form: ShallowRef<InstanceType<typeof MForm> | null>;
5277
+ config: Ref<FormConfig>;
5278
+ reload: () => Promise<void>;
5279
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$7> & Readonly<{}>, {
5280
+ labelWidth: string;
5281
+ category: CompareCategory;
5282
+ }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
5283
+ declare const _default$5: typeof __VLS_export$7;
3989
5284
  //#endregion
3990
5285
  //#region temp/packages/editor/src/components/FloatingBox.vue.d.ts
3991
5286
  interface Position {
@@ -4026,7 +5321,7 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pu
4026
5321
  position: Position;
4027
5322
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
4028
5323
  declare const __VLS_export$6: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
4029
- declare const _default$19: typeof __VLS_export$6;
5324
+ declare const _default$20: typeof __VLS_export$6;
4030
5325
  type __VLS_WithSlots$2<T, S> = T & {
4031
5326
  new (): {
4032
5327
  $slots: S;
@@ -4076,7 +5371,7 @@ declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Pr
4076
5371
  indent: number;
4077
5372
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
4078
5373
  declare const __VLS_export$5: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
4079
- declare const _default$32: typeof __VLS_export$5;
5374
+ declare const _default$33: typeof __VLS_export$5;
4080
5375
  type __VLS_WithSlots$1<T, S> = T & {
4081
5376
  new (): {
4082
5377
  $slots: S;
@@ -4127,7 +5422,7 @@ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Prop
4127
5422
  isExpandable: IsExpandableFunction;
4128
5423
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
4129
5424
  declare const __VLS_export$4: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
4130
- declare const _default$33: typeof __VLS_export$4;
5425
+ declare const _default$34: typeof __VLS_export$4;
4131
5426
  type __VLS_WithSlots<T, S> = T & {
4132
5427
  new (): {
4133
5428
  $slots: S;
@@ -4143,7 +5438,7 @@ declare const __VLS_export$3: import("@vue/runtime-core").DefineComponent<__VLS_
4143
5438
  }>, {
4144
5439
  disabled: boolean;
4145
5440
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
4146
- declare const _default$24: typeof __VLS_export$3;
5441
+ declare const _default$25: typeof __VLS_export$3;
4147
5442
  //#endregion
4148
5443
  //#region temp/packages/editor/src/fields/DisplayConds.vue.d.ts
4149
5444
  type __VLS_Props$2 = FieldProps<DisplayCondsConfig>;
@@ -4154,7 +5449,7 @@ declare const __VLS_export$2: import("@vue/runtime-core").DefineComponent<__VLS_
4154
5449
  }>, {
4155
5450
  disabled: boolean;
4156
5451
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
4157
- declare const _default$17: typeof __VLS_export$2;
5452
+ declare const _default$18: typeof __VLS_export$2;
4158
5453
  //#endregion
4159
5454
  //#region temp/packages/editor/src/fields/CondOpSelect.vue.d.ts
4160
5455
  type __VLS_Props$1 = FieldProps<CondOpSelectConfig>;
@@ -4163,20 +5458,22 @@ declare const __VLS_export$1: import("@vue/runtime-core").DefineComponent<__VLS_
4163
5458
  }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$1> & Readonly<{
4164
5459
  onChange?: ((value: string) => any) | undefined;
4165
5460
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
4166
- declare const _default$6: typeof __VLS_export$1;
5461
+ declare const _default$7: typeof __VLS_export$1;
4167
5462
  //#endregion
4168
5463
  //#region temp/packages/editor/src/fields/StyleSetter/Index.vue.d.ts
4169
5464
  type __VLS_Props = FieldProps<StyleSchema>;
4170
5465
  declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
4171
5466
  change: (v: any, eventData: ContainerChangeEventData) => any;
5467
+ addDiffCount: () => any;
4172
5468
  }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props> & Readonly<{
4173
5469
  onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
5470
+ onAddDiffCount?: (() => any) | undefined;
4174
5471
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
4175
- declare const _default$28: typeof __VLS_export;
5472
+ declare const _default$29: typeof __VLS_export;
4176
5473
  //#endregion
4177
5474
  //#region temp/packages/editor/src/plugin.d.ts
4178
- declare const _default$36: {
5475
+ declare const _default$37: {
4179
5476
  install: (app: App, opt?: Partial<EditorInstallOptions | DesignPluginOptions | FormInstallOptions>) => void;
4180
5477
  };
4181
5478
  //#endregion
4182
- export { AddMNode, AddPrefixToObject, AsyncAfterHook, AsyncBeforeHook, AsyncHookPlugin, AsyncMethodName, BeforeAdd, CODE_DRAFT_STORAGE_KEY, COPY_CODE_STORAGE_KEY, COPY_DS_STORAGE_KEY, COPY_STORAGE_KEY, CanDropInFunction, CanDropInScene, _default as CodeBlockEditor, _default$1 as CodeBlockList, _default$2 as CodeBlockListPanel, CodeBlockListPanelSlots, CodeBlockListSlots, CodeDeleteErrorType, CodeDslItem, CodeParamStatement, CodeRelation, _default$3 as CodeSelect, _default$4 as CodeSelectCol, CodeState, ColumnLayout, CombineInfo, ComponentGroup, ComponentGroupState, ComponentItem, _default$5 as ComponentListPanel, ComponentListPanelSlots, _default$6 as CondOpSelect, _default$7 as ContentMenu, CustomContentMenuFunction, DEFAULT_LEFT_COLUMN_WIDTH, DEFAULT_RIGHT_COLUMN_WIDTH, _default$8 as DataSourceAddButton, _default$9 as DataSourceConfigPanel, _default$10 as DataSourceFieldSelect, _default$11 as DataSourceFields, _default$12 as DataSourceInput, DataSourceListSlots, _default$13 as DataSourceMethodSelect, _default$14 as DataSourceMethods, _default$15 as DataSourceMocks, _default$16 as DataSourceSelect, DatasourceTypeOption, DepTargetType, _default$17 as DisplayConds, DragClassification, DragType, DslOpOptions, EditorEvents, EditorInstallOptions, EditorNodeInfo, EditorSlots, EventBus, EventBusEvent, _default$18 as EventSelect, Fixed2Other, _default$19 as FloatingBox, FrameworkSlots, GetColumnWidth, GetConfig, H_GUIDE_LINE_STORAGE_KEY, HistoryOpType, HistoryState, _default$20 as Icon, IdleTask, IdleTaskEvents, IsExpandableFunction, KeyBindingCacheItem, KeyBindingCommand, KeyBindingItem, _default$21 as KeyValue, Keys, LEFT_COLUMN_WIDTH_STORAGE_KEY, LayerNodeSlots, LayerNodeStatus, LayerOffset, _default$22 as LayerPanel, LayerPanelSlots, Layout, _default$23 as LayoutContainer, _default$23 as SplitView, ListState, MIN_CENTER_COLUMN_WIDTH, MIN_LEFT_COLUMN_WIDTH, MIN_RIGHT_COLUMN_WIDTH, MenuBarData, MenuButton, MenuComponent, MenuItem, type OnDrag, PROPS_PANEL_WIDTH_STORAGE_KEY, PageBarSortOptions, _default$24 as PageFragmentSelect, PartSortableOptions, PastePosition, PropsFormConfigFunction, _default$25 as PropsFormPanel, PropsFormValueFunction, _default$26 as PropsPanel, PropsPanelSlots, PropsState, RIGHT_COLUMN_WIDTH_STORAGE_KEY, _default$27 as Resizer, ScrollViewer, ScrollViewerEvent, ScrollViewerSlots, Services, SetColumnWidth, SideBarData, SideComponent, SideItem, SideItemKey, SidebarSlots, StageCore, StageOptions, StageOverlayState, StageRect, StageSlots, StepValue, StoreState, StoreStateKey, _default$28 as StyleSetter, SyncAfterHook, SyncBeforeHook, SyncHookPlugin, _default$29 as TMagicCodeEditor, _default$30 as TMagicEditor, _default$31 as ToolButton, _default$32 as Tree, _default$33 as TreeNode, TreeNodeData, UI_SELECT_MODE_EVENT_NAME, UiState, UndoRedo, V_GUIDE_LINE_STORAGE_KEY, WorkspaceSlots, advancedTabConfig, arrayOptions, beforePaste, buildChangeRecords, calcAlignCenterStyle, calcLayerTargetIndex, calcMoveStyle, canUsePluginMethods, change2Fixed, classifyDragSources, _default$34 as codeBlockService, collectRelatedNodes, _default$35 as dataSourceService, debug, _default$36 as default, defaultIsExpandable, _default$37 as depService, designPlugin, displayTabConfig, editorNodeMergeCustomizer, _default$38 as editorService, eqOptions, error, eventTabConfig, _default$39 as eventsService, fillConfig, fixNodeLeft, fixNodePosition, formPlugin, generatePageName, generatePageNameByApp, getAddParent, getCascaderOptionsFromFields, getDefaultConfig, getDisplayField, getEditorConfig, getFieldType, getFormConfig, getFormValue, getGuideLineFromCache, getInitPositionStyle, getNodeIndex, getPageFragmentList, getPageList, getPageNameList, getPositionInContainer, getRelativeStyle, _default$40 as historyService, info, isIncludeDataSource, _default$41 as loadMonaco, log, moveItemsInContainer, numberOptions, _default$42 as propsService, resolveSelectedNode, serializeConfig, setChildrenLayout, setEditorConfig, setLayout, _default$43 as stageOverlayService, _default$44 as storageService, styleTabConfig, tablePlugin, toggleFixedPosition, _default$45 as uiService, updateStatus, useCodeBlockEdit, useEditorContentHeight, useFilter, useFloatBox, useGetSo, useNextFloatBoxPosition, useNodeStatus, useServices, useStage, useWindowRect, warn };
5479
+ export { AddMNode, AddPrefixToObject, AsyncAfterHook, AsyncBeforeHook, AsyncHookPlugin, AsyncMethodName, BeforeAdd, CODE_DRAFT_STORAGE_KEY, COPY_CODE_STORAGE_KEY, COPY_DS_STORAGE_KEY, COPY_STORAGE_KEY, CanDropInFunction, CanDropInScene, _default as CodeBlockEditor, CodeBlockHistoryGroup, _default$1 as CodeBlockList, _default$2 as CodeBlockListPanel, CodeBlockListPanelSlots, CodeBlockListSlots, CodeBlockStepValue, CodeDeleteErrorType, CodeDslItem, CodeParamStatement, CodeRelation, _default$3 as CodeSelect, _default$4 as CodeSelectCol, CodeState, ColumnLayout, CombineInfo, _default$5 as CompareForm, ComponentGroup, ComponentGroupState, ComponentItem, _default$6 as ComponentListPanel, ComponentListPanelSlots, _default$7 as CondOpSelect, _default$8 as ContentMenu, CustomContentMenuFunction, DEFAULT_LEFT_COLUMN_WIDTH, DEFAULT_RIGHT_COLUMN_WIDTH, _default$9 as DataSourceAddButton, _default$10 as DataSourceConfigPanel, _default$11 as DataSourceFieldSelect, _default$12 as DataSourceFields, DataSourceHistoryGroup, _default$13 as DataSourceInput, DataSourceListSlots, _default$14 as DataSourceMethodSelect, _default$15 as DataSourceMethods, _default$16 as DataSourceMocks, _default$17 as DataSourceSelect, DataSourceStepValue, DatasourceTypeOption, DepTargetType, _default$18 as DisplayConds, DragClassification, DragType, DslOpOptions, EditorEvents, EditorInstallOptions, EditorNodeInfo, EditorSlots, EventBus, EventBusEvent, _default$19 as EventSelect, Fixed2Other, _default$20 as FloatingBox, FrameworkSlots, GetCodeBlockFormConfigOptions, GetColumnWidth, GetConfig, H_GUIDE_LINE_STORAGE_KEY, HistoryOpOptions, HistoryOpOptionsWithChangeRecords, HistoryOpType, HistoryState, _default$21 as Icon, IdleTask, IdleTaskEvents, IsExpandableFunction, KeyBindingCacheItem, KeyBindingCommand, KeyBindingItem, _default$22 as KeyValue, Keys, LEFT_COLUMN_WIDTH_STORAGE_KEY, LayerNodeSlots, LayerNodeStatus, LayerOffset, _default$23 as LayerPanel, LayerPanelSlots, Layout, _default$24 as LayoutContainer, _default$24 as SplitView, ListState, MIN_CENTER_COLUMN_WIDTH, MIN_LEFT_COLUMN_WIDTH, MIN_RIGHT_COLUMN_WIDTH, MenuBarData, MenuButton, MenuComponent, MenuItem, type OnDrag, PROPS_PANEL_WIDTH_STORAGE_KEY, PageBarSortOptions, _default$25 as PageFragmentSelect, PageHistoryGroup, PageHistoryStepEntry, PartSortableOptions, PastePosition, PropsFormConfigFunction, _default$26 as PropsFormPanel, PropsFormValueFunction, _default$27 as PropsPanel, PropsPanelSlots, PropsState, RIGHT_COLUMN_WIDTH_STORAGE_KEY, _default$28 as Resizer, ScrollViewer, ScrollViewerEvent, ScrollViewerSlots, Services, SetColumnWidth, SideBarData, SideComponent, SideItem, SideItemKey, SidebarSlots, StageCore, StageOptions, StageOverlayState, StageRect, StageSlots, StepValue, StoreState, StoreStateKey, _default$29 as StyleSetter, SyncAfterHook, SyncBeforeHook, SyncHookPlugin, _default$30 as TMagicCodeEditor, _default$31 as TMagicEditor, _default$32 as ToolButton, _default$33 as Tree, _default$34 as TreeNode, TreeNodeData, UI_SELECT_MODE_EVENT_NAME, UiState, UndoRedo, V_GUIDE_LINE_STORAGE_KEY, WorkspaceSlots, advancedTabConfig, arrayOptions, beforePaste, buildChangeRecords, calcAlignCenterStyle, calcLayerTargetIndex, calcMoveStyle, canUsePluginMethods, change2Fixed, classifyDragSources, _default$35 as codeBlockService, collectRelatedNodes, _default$36 as dataSourceService, debug, _default$37 as default, defaultIsExpandable, _default$38 as depService, designPlugin, displayTabConfig, editorNodeMergeCustomizer, _default$39 as editorService, eqOptions, error, eventTabConfig, _default$40 as eventsService, fillConfig, fixNodeLeft, fixNodePosition, formPlugin, generatePageName, generatePageNameByApp, getAddParent, getCascaderOptionsFromFields, getCodeBlockFormConfig, getDefaultConfig, getDisplayField, getEditorConfig, getFieldType, getFormConfig, getFormValue, getGuideLineFromCache, getInitPositionStyle, getNodeIndex, getPageFragmentList, getPageList, getPageNameList, getPositionInContainer, getRelativeStyle, _default$41 as historyService, info, isIncludeDataSource, _default$42 as loadMonaco, log, moveItemsInContainer, numberOptions, _default$43 as propsService, resolveSelectedNode, serializeConfig, setChildrenLayout, setEditorConfig, setLayout, _default$44 as stageOverlayService, _default$45 as storageService, styleTabConfig, tablePlugin, toggleFixedPosition, _default$46 as uiService, updateStatus, useCodeBlockEdit, useEditorContentHeight, useFilter, useFloatBox, useGetSo, useNextFloatBoxPosition, useNodeStatus, useServices, useStage, useWindowRect, warn };