@tmagic/editor 1.8.0-beta.22 → 1.8.0-beta.24

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 (47) hide show
  1. package/dist/es/components/CodeBlockEditor.vue_vue_type_script_setup_true_lang.js +2 -1
  2. package/dist/es/components/Resizer.vue_vue_type_script_setup_true_lang.js +2 -1
  3. package/dist/es/fields/CodeSelectCol.vue_vue_type_script_setup_true_lang.js +5 -4
  4. package/dist/es/fields/CondOpSelect.vue_vue_type_script_setup_true_lang.js +3 -1
  5. package/dist/es/fields/DataSourceFieldSelect/Index.vue_vue_type_script_setup_true_lang.js +5 -4
  6. package/dist/es/fields/DataSourceFields.vue_vue_type_script_setup_true_lang.js +12 -7
  7. package/dist/es/fields/DataSourceInput.vue_vue_type_script_setup_true_lang.js +2 -1
  8. package/dist/es/fields/DataSourceMethodSelect.vue_vue_type_script_setup_true_name_true_lang.js +6 -4
  9. package/dist/es/fields/DataSourceMethods.vue_vue_type_script_setup_true_lang.js +4 -1
  10. package/dist/es/fields/DataSourceMocks.vue_vue_type_script_setup_true_lang.js +8 -5
  11. package/dist/es/fields/DisplayConds.vue_vue_type_script_setup_true_lang.js +4 -2
  12. package/dist/es/fields/EventSelect.vue_vue_type_script_setup_true_lang.js +2 -2
  13. package/dist/es/fields/KeyValue.vue_vue_type_script_setup_true_lang.js +4 -2
  14. package/dist/es/hooks/use-compare-form.js +1 -2
  15. package/dist/es/index.js +2 -2
  16. package/dist/es/initService.js +2 -1
  17. package/dist/es/layouts/sidebar/Sidebar.vue_vue_type_script_setup_true_lang.js +2 -1
  18. package/dist/es/layouts/sidebar/data-source/DataSourceConfigPanel.vue_vue_type_script_setup_true_lang.js +2 -1
  19. package/dist/es/layouts/sidebar/layer/LayerPanel.vue_vue_type_script_setup_true_lang.js +2 -1
  20. package/dist/es/plugin.js +9 -1
  21. package/dist/es/services/codeBlock.js +4 -2
  22. package/dist/es/services/editor.js +43 -37
  23. package/dist/es/services/props.js +1 -1
  24. package/dist/es/utils/dep/collect-worker-client.js +67 -27
  25. package/dist/es/utils/dep/worker.js +1 -1
  26. package/dist/es/utils/event.js +1 -1
  27. package/dist/es/utils/props.js +1 -29
  28. package/dist/es/utils/type-match-rules.js +7 -27
  29. package/dist/tmagic-editor.umd.cjs +663 -629
  30. package/package.json +13 -13
  31. package/src/fields/CodeSelectCol.vue +4 -2
  32. package/src/fields/DataSourceFieldSelect/Index.vue +5 -3
  33. package/src/fields/DataSourceFields.vue +6 -0
  34. package/src/fields/DataSourceMethodSelect.vue +4 -1
  35. package/src/fields/DataSourceMethods.vue +11 -2
  36. package/src/fields/DataSourceMocks.vue +10 -1
  37. package/src/fields/EventSelect.vue +3 -3
  38. package/src/fields/KeyValue.vue +4 -3
  39. package/src/hooks/use-compare-form.ts +1 -4
  40. package/src/plugin.ts +9 -1
  41. package/src/services/editor.ts +53 -85
  42. package/src/type.ts +23 -0
  43. package/src/utils/dep/collect-worker-client.ts +97 -31
  44. package/src/utils/event.ts +2 -2
  45. package/src/utils/props.ts +0 -32
  46. package/src/utils/type-match-rules.ts +4 -30
  47. package/types/index.d.ts +121 -210
package/types/index.d.ts CHANGED
@@ -16,7 +16,6 @@ export * from "@tmagic/table";
16
16
  export * from "@tmagic/stage";
17
17
  export * from "@tmagic/design";
18
18
  export * from "@tmagic/utils";
19
-
20
19
  //#region temp/packages/editor/src/services/BaseService.d.ts
21
20
  /**
22
21
  * 对Class进行扩展
@@ -108,12 +107,7 @@ declare class CodeBlock extends BaseService {
108
107
  * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
109
108
  * @returns {void}
110
109
  */
111
- setCodeDslById(id: Id, codeConfig: Partial<CodeBlockContent>, {
112
- changeRecords,
113
- doNotPushHistory,
114
- historyDescription,
115
- historySource
116
- }?: HistoryOpOptionsWithChangeRecords): Promise<void>;
110
+ setCodeDslById(id: Id, codeConfig: Partial<CodeBlockContent>, { changeRecords, doNotPushHistory, historyDescription, historySource }?: HistoryOpOptionsWithChangeRecords): Promise<void>;
117
111
  /**
118
112
  * 为了兼容历史原因
119
113
  * 设置代码块ID和代码内容到源dsl
@@ -126,12 +120,7 @@ declare class CodeBlock extends BaseService {
126
120
  * @param options.historyDescription 入栈时附带的人类可读描述,用于历史面板展示
127
121
  * @returns {void}
128
122
  */
129
- setCodeDslByIdSync(id: Id, codeConfig: Partial<CodeBlockContent>, force?: boolean, {
130
- changeRecords,
131
- doNotPushHistory,
132
- historyDescription,
133
- historySource
134
- }?: HistoryOpOptionsWithChangeRecords): void;
123
+ setCodeDslByIdSync(id: Id, codeConfig: Partial<CodeBlockContent>, force?: boolean, { changeRecords, doNotPushHistory, historyDescription, historySource }?: HistoryOpOptionsWithChangeRecords): void;
135
124
  /**
136
125
  * 根据代码块id数组获取代码dsl
137
126
  * @param {string[]} ids 代码块id数组
@@ -189,11 +178,7 @@ declare class CodeBlock extends BaseService {
189
178
  * @param options 可选配置
190
179
  * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
191
180
  */
192
- deleteCodeDslByIds(codeIds: Id[], {
193
- doNotPushHistory,
194
- historyDescription,
195
- historySource
196
- }?: HistoryOpOptions): Promise<void>;
181
+ deleteCodeDslByIds(codeIds: Id[], { doNotPushHistory, historyDescription, historySource }?: HistoryOpOptions): Promise<void>;
197
182
  /**
198
183
  * 下列 *AndGetHistoryId 方法与对应的写入方法行为完全一致,
199
184
  * 返回值在 {@link DslOpWithHistoryIdsResult} 中同时包含原操作结果与本次写入的历史 uuid 列表,
@@ -361,11 +346,7 @@ declare class DataSource extends BaseService {
361
346
  * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
362
347
  * @param options.historyDescription 入栈时附带的人类可读描述,用于历史面板展示
363
348
  */
364
- add(config: DataSourceSchema, {
365
- doNotPushHistory,
366
- historyDescription,
367
- historySource
368
- }?: HistoryOpOptions): {
349
+ add(config: DataSourceSchema, { doNotPushHistory, historyDescription, historySource }?: HistoryOpOptions): {
369
350
  id: string;
370
351
  type: string;
371
352
  title?: string;
@@ -384,12 +365,7 @@ declare class DataSource extends BaseService {
384
365
  * @param data.doNotPushHistory 是否不写入历史记录(默认 false)
385
366
  * @param data.historyDescription 入栈时附带的人类可读描述,用于历史面板展示
386
367
  */
387
- update(config: DataSourceSchema, {
388
- changeRecords,
389
- doNotPushHistory,
390
- historyDescription,
391
- historySource
392
- }?: HistoryOpOptionsWithChangeRecords): DataSourceSchema;
368
+ update(config: DataSourceSchema, { changeRecords, doNotPushHistory, historyDescription, historySource }?: HistoryOpOptionsWithChangeRecords): DataSourceSchema;
393
369
  /**
394
370
  * 删除数据源
395
371
  * @param id 数据源 id
@@ -397,11 +373,7 @@ declare class DataSource extends BaseService {
397
373
  * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
398
374
  * @param options.historyDescription 入栈时附带的人类可读描述,用于历史面板展示
399
375
  */
400
- remove(id: string, {
401
- doNotPushHistory,
402
- historyDescription,
403
- historySource
404
- }?: HistoryOpOptions): void;
376
+ remove(id: string, { doNotPushHistory, historyDescription, historySource }?: HistoryOpOptions): void;
405
377
  /**
406
378
  * 下列 *AndGetHistoryId 方法与对应的 add / update / remove 行为完全一致,
407
379
  * 返回值在 {@link DslOpWithHistoryIdsResult} 中同时包含原操作结果与本次写入历史栈的 uuid 列表({@link DataSourceStepValue.uuid}),
@@ -606,6 +578,11 @@ declare class Editor extends BaseService {
606
578
  * 普通操作不会读取它,调用前由 *AndGetHistoryId 重置为 null。
607
579
  */
608
580
  private lastPushedHistoryId;
581
+ /**
582
+ * 上一次 doAdd 的插入记忆:nodeId 为插入的节点,selectedId 为当时的选中节点。
583
+ * 仅在选中节点未变化时复用(连续 add / doNotSelect / 批量粘贴),选中变化后自动失效,无需手动清理。
584
+ */
585
+ private lastAdded;
609
586
  constructor();
610
587
  /**
611
588
  * 设置当前指点节点配置
@@ -674,28 +651,16 @@ declare class Editor extends BaseService {
674
651
  */
675
652
  multiSelect(ids: Id[]): void;
676
653
  selectRoot(): void;
677
- doAdd(node: MNode, parent: MContainer): Promise<MNode>;
654
+ doAdd(node: MNode, parent: MContainer, _options?: DslOpOptions): Promise<MNode>;
678
655
  /**
679
656
  * 向指点容器添加组件节点
680
657
  * @param addConfig 将要添加的组件节点配置
681
658
  * @param parent 要添加到的容器组件节点配置,如果不设置,默认为当前选中的组件的父节点
682
- * @param options 可选配置
683
- * @param options.doNotSelect 添加后是否不更新当前选中节点(默认 false,添加后会选中新增的节点)
684
- * @param options.doNotSwitchPage 添加后是否不切换当前页面(默认 false;新增页面 / 跨页新增时为 true 会跳过会引发页面切换的选中操作)
685
- * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
659
+ * @param options 可选配置,见 {@link DslOpOptions}
686
660
  * @returns 添加后的节点
687
661
  */
688
- add(addNode: AddMNode | MNode[], parent?: MContainer | null, {
689
- doNotSelect,
690
- doNotSwitchPage,
691
- doNotPushHistory,
692
- historyDescription,
693
- historySource
694
- }?: DslOpOptions): Promise<MNode | MNode[]>;
695
- doRemove(node: MNode, {
696
- doNotSelect,
697
- doNotSwitchPage
698
- }?: DslOpOptions): Promise<void>;
662
+ add(addNode: AddMNode | MNode[], parent?: MContainer | null, options?: DslOpOptions): Promise<MNode | MNode[]>;
663
+ doRemove(node: MNode, { doNotSelect, doNotSwitchPage }?: DslOpOptions): Promise<void>;
699
664
  /**
700
665
  * 删除组件
701
666
  * @param {Object} node 要删除的节点或节点集合
@@ -704,22 +669,8 @@ declare class Editor extends BaseService {
704
669
  * @param options.doNotSwitchPage 删除后是否不切换当前页面(默认 false;删除页面 / 页面片段时为 true 会跳过自动切换到首个剩余页面)
705
670
  * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
706
671
  */
707
- remove(nodeOrNodeList: MNode | MNode[], {
708
- doNotSelect,
709
- doNotSwitchPage,
710
- doNotPushHistory,
711
- historyDescription,
712
- historySource
713
- }?: DslOpOptions): Promise<void>;
714
- doUpdate(config: MNode, {
715
- changeRecords,
716
- historySource,
717
- replace
718
- }?: {
719
- changeRecords?: ChangeRecord[];
720
- historySource?: HistoryOpSource;
721
- replace?: boolean;
722
- }): Promise<{
672
+ remove(nodeOrNodeList: MNode | MNode[], options?: DslOpOptions): Promise<void>;
673
+ doUpdate(config: MNode, data?: UpdateOptions): Promise<{
723
674
  newNode: MNode;
724
675
  oldNode: MNode;
725
676
  changeRecords?: ChangeRecord[];
@@ -728,35 +679,10 @@ declare class Editor extends BaseService {
728
679
  * 更新节点
729
680
  * update后会触发依赖收集,收集完后会掉stage.update方法
730
681
  * @param config 新的节点配置,配置中需要有id信息
731
- * @param data 额外数据
732
- * @param data.changeRecords 单节点 form 端变更记录(多节点场景下被忽略,使用 changeRecordList)
733
- * @param data.changeRecordList 多节点 form 端变更记录列表,按 config 数组同序对应每个节点;优先级高于 changeRecords
734
- * @param data.doNotPushHistory 是否不写入历史记录(默认 false)
735
- * @param data.historyDescription 入栈时附带的人类可读描述,用于历史面板展示(不影响 undo/redo 行为)
736
- * @param data.replace 是否整节点替换:为 true 时跳过 mergeWith / toggleFixedPosition / setChildrenLayout,直接用传入配置覆盖(默认 false)
682
+ * @param data 额外数据,见 {@link UpdateOptions}
737
683
  * @returns 更新后的节点配置
738
684
  */
739
- update(config: MNode | MNode[], data?: {
740
- changeRecords?: ChangeRecord[];
741
- changeRecordList?: ChangeRecord[][];
742
- doNotPushHistory?: boolean;
743
- historyDescription?: string;
744
- historySource?: HistoryOpSource;
745
- /**
746
- * 为 true 时不做深合并等变换,直接用传入配置整节点替换现有节点。
747
- * 适用于源码编辑、历史整节点快照回放等「完整 DSL」场景;默认 false(局部属性更新走 merge)。
748
- */
749
- replace?: boolean;
750
- /**
751
- * 属性面板提交时携带的校验错误信息,在写入历史记录之前落库,
752
- * 使历史快照与本次变更对齐,从而 undo/redo 能正确还原错误标记。
753
- */
754
- invalidInfo?: {
755
- id: Id;
756
- source: NodeInvalidSource;
757
- error?: string;
758
- };
759
- }): Promise<MNode | MNode[]>;
685
+ update(config: MNode | MNode[], data?: UpdateOptions): Promise<MNode | MNode[]>;
760
686
  /**
761
687
  * 将id为id1的组件移动到id为id2的组件位置上,例如:[1,2,3,4] -> sort(1,3) -> [2,1,3,4]
762
688
  * @param id1 组件ID
@@ -767,11 +693,7 @@ declare class Editor extends BaseService {
767
693
  * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
768
694
  * @returns void
769
695
  */
770
- sort(id1: Id, id2: Id, {
771
- doNotSelect,
772
- doNotPushHistory,
773
- historySource
774
- }?: DslOpOptions): Promise<void>;
696
+ sort(id1: Id, id2: Id, { doNotSelect, doNotPushHistory, historySource }?: DslOpOptions): Promise<void>;
775
697
  /**
776
698
  * 将组件节点配置存储到localStorage中
777
699
  * @param config 组件节点配置
@@ -794,13 +716,7 @@ declare class Editor extends BaseService {
794
716
  * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
795
717
  * @returns 添加后的组件节点配置
796
718
  */
797
- paste(position?: PastePosition, collectorOptions?: TargetOptions, {
798
- doNotSelect,
799
- doNotSwitchPage,
800
- doNotPushHistory,
801
- historyDescription,
802
- historySource
803
- }?: DslOpOptions): Promise<MNode | MNode[] | void>;
719
+ paste(position?: PastePosition, collectorOptions?: TargetOptions, { doNotSelect, doNotSwitchPage, doNotPushHistory, historyDescription, historySource }?: DslOpOptions): Promise<MNode | MNode[] | void>;
804
720
  doPaste(config: MNode[], position?: PastePosition): Promise<MNode[]>;
805
721
  doAlignCenter(config: MNode): Promise<MNode>;
806
722
  /**
@@ -812,23 +728,14 @@ declare class Editor extends BaseService {
812
728
  * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
813
729
  * @returns 当前组件节点配置
814
730
  */
815
- alignCenter(config: MNode | MNode[], {
816
- doNotSelect,
817
- doNotPushHistory,
818
- historyDescription,
819
- historySource
820
- }?: DslOpOptions): Promise<MNode | MNode[]>;
731
+ alignCenter(config: MNode | MNode[], { doNotSelect, doNotPushHistory, historyDescription, historySource }?: DslOpOptions): Promise<MNode | MNode[]>;
821
732
  /**
822
733
  * 移动当前选中节点位置
823
734
  * @param offset 偏移量
824
735
  * @param options 可选配置
825
736
  * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
826
737
  */
827
- moveLayer(offset: number | LayerOffset, {
828
- doNotPushHistory,
829
- historyDescription,
830
- historySource
831
- }?: DslOpOptions): Promise<void>;
738
+ moveLayer(offset: number | LayerOffset, { doNotPushHistory, historyDescription, historySource }?: DslOpOptions): Promise<void>;
832
739
  /**
833
740
  * 移动一个或多个节点到指定容器中。
834
741
  *
@@ -843,18 +750,8 @@ declare class Editor extends BaseService {
843
750
  * @param options.doNotSwitchPage 移动后是否不切换当前页面(默认 false;目标容器位于其它页面时为 true 会跳过自动选中以避免页面切换)
844
751
  * @param options.doNotPushHistory 是否不写入历史记录(默认 false)
845
752
  */
846
- moveToContainer(config: MNode | MNode[], targetId: Id, {
847
- doNotSelect,
848
- doNotSwitchPage,
849
- doNotPushHistory,
850
- historyDescription,
851
- historySource
852
- }?: DslOpOptions): Promise<MNode | MNode[]>;
853
- dragTo(config: MNode | MNode[], targetParent: MContainer, targetIndex: number, {
854
- doNotPushHistory,
855
- historyDescription,
856
- historySource
857
- }?: DslOpOptions): Promise<void>;
753
+ moveToContainer(config: MNode | MNode[], targetId: Id, { doNotSelect, doNotSwitchPage, doNotPushHistory, historyDescription, historySource }?: DslOpOptions): Promise<MNode | MNode[]>;
754
+ dragTo(config: MNode | MNode[], targetParent: MContainer, targetIndex: number, { doNotPushHistory, historyDescription, historySource }?: DslOpOptions): Promise<void>;
858
755
  /**
859
756
  * 下列 *AndGetHistoryId 方法与对应的普通操作(add / remove / update ...)行为完全一致,
860
757
  * 返回值在 {@link DslOpWithHistoryIdsResult} 中同时包含原操作结果与本次写入历史栈的 uuid 列表({@link StepValue.uuid}),
@@ -867,14 +764,7 @@ declare class Editor extends BaseService {
867
764
  /** 等价于 {@link remove},并额外返回本次写入历史记录的 uuid 列表(未入栈时 historyIds 为 `[]`)。 */
868
765
  removeAndGetHistoryId(nodeOrNodeList: MNode | MNode[], options?: DslOpOptions): Promise<DslOpWithHistoryIdsResult<void>>;
869
766
  /** 等价于 {@link update},并额外返回本次写入历史记录的 uuid 列表(未入栈时 historyIds 为 `[]`)。 */
870
- updateAndGetHistoryId(config: MNode | MNode[], data?: {
871
- changeRecords?: ChangeRecord[];
872
- changeRecordList?: ChangeRecord[][];
873
- doNotPushHistory?: boolean;
874
- historyDescription?: string;
875
- historySource?: HistoryOpSource;
876
- replace?: boolean;
877
- }): Promise<DslOpWithHistoryIdsResult<MNode | MNode[]>>;
767
+ updateAndGetHistoryId(config: MNode | MNode[], data?: UpdateOptions): Promise<DslOpWithHistoryIdsResult<MNode | MNode[]>>;
878
768
  /** 等价于 {@link moveLayer},并额外返回本次写入历史记录的 uuid 列表(未入栈时 historyIds 为 `[]`)。 */
879
769
  moveLayerAndGetHistoryId(offset: number | LayerOffset, options?: DslOpOptions): Promise<DslOpWithHistoryIdsResult<void>>;
880
770
  /** 等价于 {@link moveToContainer},并额外返回本次写入历史记录的 uuid 列表(未入栈时 historyIds 为 `[]`)。 */
@@ -926,11 +816,7 @@ declare class Editor extends BaseService {
926
816
  * @returns 实际移动到的最终游标位置
927
817
  */
928
818
  gotoPageStep(targetCursor: number): Promise<number>;
929
- move(left: number, top: number, {
930
- doNotPushHistory,
931
- historyDescription,
932
- historySource
933
- }?: DslOpOptions): Promise<void>;
819
+ move(left: number, top: number, { doNotPushHistory, historyDescription, historySource }?: DslOpOptions): Promise<void>;
934
820
  resetState(): void;
935
821
  destroy(): void;
936
822
  resetModifiedNodeId(): void;
@@ -1459,10 +1345,7 @@ declare class Props extends BaseService {
1459
1345
  * @param type 组件类型
1460
1346
  * @returns 组件初始值
1461
1347
  */
1462
- getPropsValue(componentType: string, {
1463
- inputEvent,
1464
- ...defaultValue
1465
- }?: Record<string, any>): Promise<any>;
1348
+ getPropsValue(componentType: string, { inputEvent, ...defaultValue }?: Record<string, any>): Promise<any>;
1466
1349
  hasPropsValue(type: string): boolean;
1467
1350
  createId(type: string | number): string;
1468
1351
  /**
@@ -2027,7 +1910,9 @@ interface SideComponent extends MenuComponent {
2027
1910
  beforeClick?: (config: SideComponent) => boolean | Promise<boolean>;
2028
1911
  /** 组件扩展参数 */
2029
1912
  boxComponentConfig?: {
2030
- /** Vue3组件 */component?: any; /** 传入组件的props对象 */
1913
+ /** Vue3组件 */
1914
+ component?: any;
1915
+ /** 传入组件的props对象 */
2031
1916
  props?: Record<string, any>;
2032
1917
  };
2033
1918
  }
@@ -2193,14 +2078,19 @@ interface ScrollViewerEvent {
2193
2078
  scrollWidth: number;
2194
2079
  }
2195
2080
  type CodeState = {
2196
- /** 代码块DSL数据源 */codeDsl: CodeBlockDSL | null; /** 代码块是否可编辑 */
2197
- editable: boolean; /** list模式下左侧展示的代码列表 */
2198
- combineIds: string[]; /** 为业务逻辑预留的不可删除的代码块列表,由业务逻辑维护(如代码块上线后不可删除) */
2081
+ /** 代码块DSL数据源 */
2082
+ codeDsl: CodeBlockDSL | null;
2083
+ /** 代码块是否可编辑 */
2084
+ editable: boolean;
2085
+ /** list模式下左侧展示的代码列表 */
2086
+ combineIds: string[];
2087
+ /** 为业务逻辑预留的不可删除的代码块列表,由业务逻辑维护(如代码块上线后不可删除) */
2199
2088
  undeletableList: Id[];
2200
2089
  paramsColConfig?: TableColumnConfig;
2201
2090
  };
2202
2091
  type CodeRelation = {
2203
- /** 组件id:[代码id1,代码id2] */[compId: Id]: Id[];
2092
+ /** 组件id:[代码id1,代码id2] */
2093
+ [compId: Id]: Id[];
2204
2094
  };
2205
2095
  interface CodeDslItem {
2206
2096
  /** 代码块id */
@@ -2600,7 +2490,13 @@ interface TreeNodeData {
2600
2490
  /** 判断组件树节点是否可展开(即是否要展示为拥有子节点的形态)的函数 */
2601
2491
  type IsExpandableFunction = (_data: TreeNodeData, _nodeStatusMap: Map<Id, LayerNodeStatus>) => boolean;
2602
2492
  /** canDropIn 的调用场景 */
2603
- type CanDropInScene = /** 在"已选组件"面板的组件树中拖动节点 */'layer' /** 在画布上拖动已有组件(被拖动组件本身已经存在于画布中,sourceIds 包含其 id) */ | 'stage-drag' /** 从组件列表拖入新组件到画布(被拖入的组件尚不存在,sourceIds 为空数组) */ | 'stage-add';
2493
+ type CanDropInScene =
2494
+ /** 在"已选组件"面板的组件树中拖动节点 */
2495
+ 'layer' |
2496
+ /** 在画布上拖动已有组件(被拖动组件本身已经存在于画布中,sourceIds 包含其 id) */
2497
+ 'stage-drag' |
2498
+ /** 从组件列表拖入新组件到画布(被拖入的组件尚不存在,sourceIds 为空数组) */
2499
+ 'stage-add';
2604
2500
  /**
2605
2501
  * 判断当前正在拖动的源节点是否可以拖入目标节点内部的函数
2606
2502
  * @param _sourceIds 当前正在拖动的源节点 id 列表
@@ -2619,11 +2515,11 @@ type CanDropInScene = /** 在"已选组件"面板的组件树中拖动节点 */'
2619
2515
  * - 其他(`true` / `void` / `undefined`):按原 targetId 正常拖入
2620
2516
  */
2621
2517
  type CanDropInFunction = (_sourceIds: Id[], _targetId: Id, _scene: CanDropInScene) => Id | boolean | void;
2622
- type AsyncBeforeHook<Value extends Array<string>, C extends Record<Value[number], (...args: any) => any>> = { [K in Value[number]]?: (...args: Parameters<C[K]>) => Promise<Parameters<C[K]>> | Parameters<C[K]> };
2623
- type AsyncAfterHook<Value extends Array<string>, C extends Record<Value[number], (...args: any) => any>> = { [K in Value[number]]?: (result: Awaited<ReturnType<C[K]>>, ...args: Parameters<C[K]>) => ReturnType<C[K]> | Awaited<ReturnType<C[K]>> };
2624
- type SyncBeforeHook<Value extends Array<string>, C extends Record<Value[number], (...args: any) => any>> = { [K in Value[number]]?: (...args: Parameters<C[K]>) => Parameters<C[K]> };
2625
- type SyncAfterHook<Value extends Array<string>, C extends Record<Value[number], (...args: any) => any>> = { [K in Value[number]]?: (result: ReturnType<C[K]>, ...args: Parameters<C[K]>) => ReturnType<C[K]> };
2626
- type AddPrefixToObject<T, P extends string> = { [K in keyof T as K extends string ? `${P}${K}` : never]: T[K] };
2518
+ type AsyncBeforeHook<Value extends Array<string>, C extends Record<Value[number], (...args: any) => any>> = { [K in Value[number]]?: (...args: Parameters<C[K]>) => Promise<Parameters<C[K]>> | Parameters<C[K]>; };
2519
+ type AsyncAfterHook<Value extends Array<string>, C extends Record<Value[number], (...args: any) => any>> = { [K in Value[number]]?: (result: Awaited<ReturnType<C[K]>>, ...args: Parameters<C[K]>) => ReturnType<C[K]> | Awaited<ReturnType<C[K]>>; };
2520
+ type SyncBeforeHook<Value extends Array<string>, C extends Record<Value[number], (...args: any) => any>> = { [K in Value[number]]?: (...args: Parameters<C[K]>) => Parameters<C[K]>; };
2521
+ type SyncAfterHook<Value extends Array<string>, C extends Record<Value[number], (...args: any) => any>> = { [K in Value[number]]?: (result: ReturnType<C[K]>, ...args: Parameters<C[K]>) => ReturnType<C[K]>; };
2522
+ type AddPrefixToObject<T, P extends string> = { [K in keyof T as K extends string ? `${P}${K}` : never]: T[K]; };
2627
2523
  type AsyncHookPlugin<T extends Array<string>, C extends Record<T[number], (...args: any) => any>> = AddPrefixToObject<PascalCasedProperties<AsyncBeforeHook<T, C>>, 'before'> & AddPrefixToObject<PascalCasedProperties<AsyncAfterHook<T, C>>, 'after'>;
2628
2524
  type SyncHookPlugin<T extends Array<string>, C extends Record<T[number], (...args: any) => any>> = AddPrefixToObject<PascalCasedProperties<SyncBeforeHook<T, C>>, 'before'> & AddPrefixToObject<PascalCasedProperties<SyncAfterHook<T, C>>, 'after'>;
2629
2525
  interface EventBusEvent {
@@ -2661,8 +2557,8 @@ interface ContentMenuTarget {
2661
2557
  data?: TreeNodeData;
2662
2558
  }
2663
2559
  type ContentMenuType = 'layer' | 'data-source' | 'viewer' | 'code-block';
2664
- type CustomContentMenuFunction = (menus: (MenuButton | MenuComponent)[], type: ContentMenuType, /** 读取当前右键目标;数据源 / 代码块面板会传入,图层 / 画布一般不需要 */
2665
-
2560
+ type CustomContentMenuFunction = (menus: (MenuButton | MenuComponent)[], type: ContentMenuType,
2561
+ /** 读取当前右键目标;数据源 / 代码块面板会传入,图层 / 画布一般不需要 */
2666
2562
  getTarget?: () => ContentMenuTarget | null) => (MenuButton | MenuComponent)[];
2667
2563
  interface EditorEvents {
2668
2564
  'root-change': [value: StoreState['root'], preValue?: StoreState['root'], options?: {
@@ -2806,6 +2702,30 @@ interface DslOpOptions extends HistoryOpOptions {
2806
2702
  doNotSelect?: boolean;
2807
2703
  doNotSwitchPage?: boolean;
2808
2704
  }
2705
+ /**
2706
+ * {@link EditorService.update} / {@link EditorService.doUpdate} 的额外数据
2707
+ * - changeRecords: 单节点 form 端变更记录(多节点场景下被忽略,使用 changeRecordList)
2708
+ * - changeRecordList: 多节点 form 端变更记录列表,按 config 数组同序对应每个节点;优先级高于 changeRecords
2709
+ * - replace: 为 true 时跳过 mergeWith / toggleFixedPosition / setChildrenLayout,直接用传入配置整节点替换
2710
+ * - invalidInfo: 属性面板提交时携带的校验错误信息,在写入历史记录之前落库
2711
+ */
2712
+ interface UpdateOptions extends HistoryOpOptionsWithChangeRecords {
2713
+ changeRecordList?: ChangeRecord[][];
2714
+ /**
2715
+ * 为 true 时不做深合并等变换,直接用传入配置整节点替换现有节点。
2716
+ * 适用于源码编辑、历史整节点快照回放等「完整 DSL」场景;默认 false(局部属性更新走 merge)。
2717
+ */
2718
+ replace?: boolean;
2719
+ /**
2720
+ * 属性面板提交时携带的校验错误信息,在写入历史记录之前落库,
2721
+ * 使历史快照与本次变更对齐,从而 undo/redo 能正确还原错误标记。
2722
+ */
2723
+ invalidInfo?: {
2724
+ id: Id;
2725
+ source: NodeInvalidSource;
2726
+ error?: string;
2727
+ };
2728
+ }
2809
2729
  /** 差异对话框的入参 */
2810
2730
  interface DiffDialogPayload {
2811
2731
  /** 表单类别 */
@@ -3000,9 +2920,7 @@ declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockService"])
3000
2920
  }, {}, {}, {}, {}> | null>>;
3001
2921
  createCodeBlock: () => Promise<void>;
3002
2922
  editCode: (id: string) => Promise<void>;
3003
- deleteCode: (key: string, {
3004
- historySource
3005
- }?: {
2923
+ deleteCode: (key: string, { historySource }?: {
3006
2924
  historySource?: HistoryOpSource;
3007
2925
  }) => Promise<void>;
3008
2926
  submitCodeBlockHandler: (values: CodeBlockContent, eventData?: ContainerChangeEventData) => Promise<void>;
@@ -3142,27 +3060,11 @@ declare const displayTabConfig: TabPaneConfig<DisplayCondsConfig>;
3142
3060
  * @param config 组件属性配置
3143
3061
  * @returns Object
3144
3062
  */
3145
- declare const fillConfig: (config?: FormConfig, {
3146
- labelWidth,
3147
- disabledDataSource,
3148
- disabledCodeBlock
3149
- }?: {
3063
+ declare const fillConfig: (config?: FormConfig, { labelWidth, disabledDataSource, disabledCodeBlock }?: {
3150
3064
  labelWidth?: string;
3151
3065
  disabledDataSource?: boolean;
3152
3066
  disabledCodeBlock?: boolean;
3153
3067
  }) => FormConfig;
3154
- /**
3155
- * 将属性表单配置中「样式」tab-pane 的 `display` 强制置为 `true`。
3156
- *
3157
- * `propsService.getPropsConfig` 返回的样式 tab 默认带有
3158
- * `display: ({ services }) => !(services?.uiService?.get('showStylePanel') ?? true)`,
3159
- * 在对比 / 只读展示场景(CompareForm / ViewForm)下并不需要跟随 uiService 状态隐藏,
3160
- * 这里统一放开,保证样式 tab 始终可见。
3161
- *
3162
- * @param formConfig 组件属性表单配置
3163
- * @returns 处理后的表单配置(不修改入参,返回浅拷贝)
3164
- */
3165
- declare const removeStyleDisplayConfig: (formConfig: FormConfig) => FormConfig;
3166
3068
  //#endregion
3167
3069
  //#region temp/packages/editor/src/utils/code-block.d.ts
3168
3070
  /**
@@ -3449,10 +3351,7 @@ declare class ScrollViewer extends EventEmitter {
3449
3351
  constructor(options: ScrollViewerOptions);
3450
3352
  destroy(): void;
3451
3353
  setZoom(zoom: number): void;
3452
- scrollTo({
3453
- left,
3454
- top
3455
- }: {
3354
+ scrollTo({ left, top }: {
3456
3355
  left?: number;
3457
3356
  top?: number;
3458
3357
  }): void;
@@ -3498,11 +3397,7 @@ declare const idbDelete: (dbName: string, storeName: string, key: IDBValidKey) =
3498
3397
  * @param diff 单条变更 diff(缺省视为空)
3499
3398
  * @param getLabel 从快照取展示名
3500
3399
  */
3501
- declare const describeRevertStep: <T extends object>(id: Id, {
3502
- oldSchema,
3503
- newSchema,
3504
- changeRecords
3505
- }: StepDiffItem<T> | undefined, getLabel: (schema: T) => string | undefined) => string;
3400
+ declare const describeRevertStep: <T extends object>(id: Id, { oldSchema, newSchema, changeRecords }: StepDiffItem<T> | undefined, getLabel: (schema: T) => string | undefined) => string;
3506
3401
  /**
3507
3402
  * 根据 old/new 是否为 null 推断 opType(与 push 时的约定一致)。
3508
3403
  */
@@ -3518,7 +3413,8 @@ declare const detectStackOpType: (oldVal: unknown, newVal: unknown) => "add" | "
3518
3413
  declare const createStackStep: <T, S extends BaseStepValue<T>>(id: Id, payload: Omit<BaseStepValue<T>, "uuid" | "data" | "opType" | "diff" | "timestamp" | "saved"> & {
3519
3414
  oldValue: T | null;
3520
3415
  newValue: T | null;
3521
- changeRecords?: ChangeRecord[]; /** 展示名(缺省时从快照 name / title 推断)。 */
3416
+ changeRecords?: ChangeRecord[];
3417
+ /** 展示名(缺省时从快照 name / title 推断)。 */
3522
3418
  name?: string;
3523
3419
  }) => S | null;
3524
3420
  declare const markStackSaved: <S extends {
@@ -4890,9 +4786,12 @@ type __VLS_Props$33 = {
4890
4786
  layerContentMenu: (MenuButton | MenuComponent)[];
4891
4787
  indent?: number;
4892
4788
  nextLevelIndentIncrement?: number;
4893
- customContentMenu: CustomContentMenuFunction; /** 自定义判断组件树节点是否可展开(即是否要展示为拥有子节点的形态)的函数 */
4894
- isExpandable?: IsExpandableFunction; /** 自定义判断当前拖动节点是否可以拖入目标节点内部的函数,返回 false 则禁止拖入 */
4895
- canDropIn?: CanDropInFunction; /** 组件树节点双击前的钩子函数,返回 false 则阻止默认的双击行为 */
4789
+ customContentMenu: CustomContentMenuFunction;
4790
+ /** 自定义判断组件树节点是否可展开(即是否要展示为拥有子节点的形态)的函数 */
4791
+ isExpandable?: IsExpandableFunction;
4792
+ /** 自定义判断当前拖动节点是否可以拖入目标节点内部的函数,返回 false 则禁止拖入 */
4793
+ canDropIn?: CanDropInFunction;
4794
+ /** 组件树节点双击前的钩子函数,返回 false 则阻止默认的双击行为 */
4896
4795
  beforeNodeDblclick?: (_event: MouseEvent, _data: TreeNodeData) => Promise<boolean | void> | boolean | void;
4897
4796
  };
4898
4797
  declare const __VLS_base$10: import("@vue/runtime-core").DefineComponent<__VLS_Props$33, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
@@ -5071,9 +4970,7 @@ declare const __VLS_base$9: import("@vue/runtime-core").DefineComponent<__VLS_Pr
5071
4970
  draggable: boolean;
5072
4971
  }> & Omit<Map<Id, LayerNodeStatus>, keyof Map<any, any>>)>;
5073
4972
  filter: (text: string | string[]) => void;
5074
- deleteCode: (id: string, {
5075
- historySource
5076
- }?: {
4973
+ deleteCode: (id: string, { historySource }?: {
5077
4974
  historySource?: HistoryOpSource;
5078
4975
  }) => Promise<void>;
5079
4976
  }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
@@ -5118,8 +5015,10 @@ type __VLS_WithSlots$8<T, S> = T & {
5118
5015
  type __VLS_Props$18 = {
5119
5016
  title?: string;
5120
5017
  values: any;
5121
- disabled: boolean; /** 打开后需要直接定位并打开的方法名,传入时默认激活「方法定义」tab */
5122
- editMethodName?: string; /** 打开后需要直接定位并打开的字段路径,传入时默认激活「数据定义」tab */
5018
+ disabled: boolean;
5019
+ /** 打开后需要直接定位并打开的方法名,传入时默认激活「方法定义」tab */
5020
+ editMethodName?: string;
5021
+ /** 打开后需要直接定位并打开的字段路径,传入时默认激活「数据定义」tab */
5123
5022
  editFieldPath?: string[];
5124
5023
  };
5125
5024
  type __VLS_ModelProps$2 = {
@@ -6551,7 +6450,9 @@ declare const _default: typeof __VLS_export$12;
6551
6450
  //#endregion
6552
6451
  //#region temp/packages/editor/src/components/CompareForm.vue.d.ts
6553
6452
  type __VLS_Props$9 = CompareFormBaseProps & {
6554
- /** 用于对比的旧值(修改前的值) */lastValue?: CompareFormBaseProps['value']; /** 需要走 self diff 的字段类型(例如 mod-cond)。 */
6453
+ /** 用于对比的旧值(修改前的值) */
6454
+ lastValue?: CompareFormBaseProps['value'];
6455
+ /** 需要走 self diff 的字段类型(例如 mod-cond)。 */
6555
6456
  selfDiffFieldTypes?: string[];
6556
6457
  };
6557
6458
  declare const __VLS_export$11: import("@vue/runtime-core").DefineComponent<__VLS_Props$9, {
@@ -6566,7 +6467,8 @@ declare const _default$5: typeof __VLS_export$11;
6566
6467
  //#endregion
6567
6468
  //#region temp/packages/editor/src/components/ViewForm.vue.d.ts
6568
6469
  type __VLS_Props$8 = CompareFormBaseProps & {
6569
- /** 是否禁用表单(默认只读展示)。 */disabled?: boolean;
6470
+ /** 是否禁用表单(默认只读展示)。 */
6471
+ disabled?: boolean;
6570
6472
  };
6571
6473
  declare const __VLS_export$10: import("@vue/runtime-core").DefineComponent<__VLS_Props$8, {
6572
6474
  form: ShallowRef<InstanceType<typeof MForm> | null>;
@@ -6612,9 +6514,12 @@ declare const __VLS_export$9: <T extends BaseStepValue = BaseStepValue>(__VLS_pr
6612
6514
  * 该类历史的整体渲染配置(title / prefix / describe* / isStep* / showInitial / gotoEnabled)。
6613
6515
  * 由父组件按业务类型注入,组件内部按需读取,避免逐项透传多个 props。
6614
6516
  */
6615
- config: HistoryBucketConfig<T>; /** 当前 bucket 对应的目标 id(dataSource.id 或 codeBlock.id),同时用于组装子项的 key。 */
6616
- bucketId: string | number; /** 当前 bucket 下的所有历史分组,按时间倒序展示(最近的操作在前)。 */
6617
- groups: HistoryBucketGroup<T>[]; /** 共享的折叠状态表(key -> 是否展开,缺省或 true 为展开、false 为收起),由顶层 panel 统一维护以便跨 tab 复用。 */
6517
+ config: HistoryBucketConfig<T>;
6518
+ /** 当前 bucket 对应的目标 id(dataSource.id codeBlock.id),同时用于组装子项的 key。 */
6519
+ bucketId: string | number;
6520
+ /** 当前 bucket 下的所有历史分组,按时间倒序展示(最近的操作在前)。 */
6521
+ groups: HistoryBucketGroup<T>[];
6522
+ /** 共享的折叠状态表(key -> 是否展开,缺省或 true 为展开、false 为收起),由顶层 panel 统一维护以便跨 tab 复用。 */
6618
6523
  expanded: Record<string, boolean>;
6619
6524
  } & {
6620
6525
  onToggle?: ((_key: string) => any) | undefined;
@@ -6639,7 +6544,7 @@ declare const __VLS_export$9: <T extends BaseStepValue = BaseStepValue>(__VLS_pr
6639
6544
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
6640
6545
  };
6641
6546
  declare const _default$22: typeof __VLS_export$9;
6642
- type __VLS_PrettifyLocal$1<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
6547
+ type __VLS_PrettifyLocal$1<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
6643
6548
  //#endregion
6644
6549
  //#region temp/packages/editor/src/layouts/history-list/BucketTab.vue.d.ts
6645
6550
  declare const __VLS_export$8: <T extends BaseStepValue = BaseStepValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
@@ -6688,11 +6593,12 @@ declare const __VLS_export$8: <T extends BaseStepValue = BaseStepValue>(__VLS_pr
6688
6593
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
6689
6594
  };
6690
6595
  declare const _default$23: typeof __VLS_export$8;
6691
- type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
6596
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
6692
6597
  //#endregion
6693
6598
  //#region temp/packages/editor/src/layouts/history-list/HistoryDiffDialog.vue.d.ts
6694
6599
  type __VLS_Props$7 = {
6695
- /** 编辑器服务集合,由调用方传入(不再通过 inject('services') 获取)。 */services?: Services;
6600
+ /** 编辑器服务集合,由调用方传入(不再通过 inject('services') 获取)。 */
6601
+ services?: Services;
6696
6602
  /**
6697
6603
  * 来自 Editor 顶层的 `extendFormState`,用于扩展 MForm.formState。
6698
6604
  * 透传给 CompareForm,从而让差异对比时表单 item 中依赖业务上下文的
@@ -6704,7 +6610,8 @@ type __VLS_Props$7 = {
6704
6610
  * 取配置逻辑,可通过 `ctx.defaultLoadConfig()` 复用默认结果再做二次加工。
6705
6611
  */
6706
6612
  loadConfig?: CompareFormLoadConfig;
6707
- width?: string; /** 差异对比表单内组件的尺寸(透传给 CompareForm 的 `size`),可选 'large' | 'default' | 'small'。 */
6613
+ width?: string;
6614
+ /** 差异对比表单内组件的尺寸(透传给 CompareForm 的 `size`),可选 'large' | 'default' | 'small'。 */
6708
6615
  size?: FieldSize;
6709
6616
  isConfirm?: boolean;
6710
6617
  onConfirm?: () => void;
@@ -6778,8 +6685,10 @@ interface Position {
6778
6685
  type __VLS_Props$6 = {
6779
6686
  position?: Position;
6780
6687
  title?: string;
6781
- bodyStyle?: CSSProperties; /** 浮窗初始样式,会与内部计算样式合并,外部传入优先 */
6782
- initialStyle?: CSSProperties; /** 用于约束浮窗 left 的容器宽度,传入时按宽度收敛 left,避免超出右边界;默认取视窗宽度 */
6688
+ bodyStyle?: CSSProperties;
6689
+ /** 浮窗初始样式,会与内部计算样式合并,外部传入优先 */
6690
+ initialStyle?: CSSProperties;
6691
+ /** 用于约束浮窗 left 的容器宽度,传入时按宽度收敛 left,避免超出右边界;默认取视窗宽度 */
6783
6692
  frameworkWidth?: number;
6784
6693
  beforeClose?: (_done: (_cancel?: boolean) => void) => void;
6785
6694
  };
@@ -6838,7 +6747,8 @@ type __VLS_Props$5 = {
6838
6747
  nodeStatusMap: Map<Id, LayerNodeStatus>;
6839
6748
  indent?: number;
6840
6749
  nextLevelIndentIncrement?: number;
6841
- emptyText?: string; /** 自定义判断节点是否可展开(即是否要展示为拥有子节点的形态)的函数 */
6750
+ emptyText?: string;
6751
+ /** 自定义判断节点是否可展开(即是否要展示为拥有子节点的形态)的函数 */
6842
6752
  isExpandable?: IsExpandableFunction;
6843
6753
  };
6844
6754
  declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Props$5, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
@@ -6889,7 +6799,8 @@ type __VLS_Props$4 = {
6889
6799
  parentsId?: Id[];
6890
6800
  nodeStatusMap: Map<Id, LayerNodeStatus>;
6891
6801
  indent?: number;
6892
- nextLevelIndentIncrement?: number; /** 自定义判断节点是否可展开(即是否要展示为拥有子节点的形态)的函数 */
6802
+ nextLevelIndentIncrement?: number;
6803
+ /** 自定义判断节点是否可展开(即是否要展示为拥有子节点的形态)的函数 */
6893
6804
  isExpandable?: IsExpandableFunction;
6894
6805
  };
6895
6806
  declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Props$4, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
@@ -6969,4 +6880,4 @@ declare const _default$43: {
6969
6880
  install: (app: App, opt?: Partial<EditorInstallOptions | DesignPluginOptions | FormInstallOptions>) => void;
6970
6881
  };
6971
6882
  //#endregion
6972
- export { ALL_COND_OPS, AddMNode, AddPrefixToObject, AsyncAfterHook, AsyncBeforeHook, AsyncHookPlugin, AsyncMethodName, BaseStepValue, 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, CodeBlockStepValue, CodeDeleteErrorType, CodeDslItem, CodeParamStatement, CodeRelation, _default$3 as CodeSelect, _default$4 as CodeSelectCol, CodeState, ColumnLayout, CombineInfo, CompareCategory, _default$5 as CompareForm, CompareFormBaseProps, CompareFormLoadConfig, CompareFormLoadConfigContext, ComponentGroup, ComponentGroupState, ComponentItem, _default$6 as ComponentListPanel, ComponentListPanelSlots, _default$7 as CondOpSelect, ConfirmAndRevertOptions, _default$8 as ContentMenu, ContentMenuTarget, ContentMenuType, CustomContentMenuFunction, CustomDiffFormOptions, DEFAULT_LEFT_COLUMN_WIDTH, DEFAULT_RIGHT_COLUMN_WIDTH, _default$9 as DataSourceAddButton, _default$10 as DataSourceConfigPanel, _default$11 as DataSourceFieldSelect, _default$12 as DataSourceFields, _default$13 as DataSourceInput, DataSourceListSlots, _default$14 as DataSourceMethodSelect, _default$15 as DataSourceMethods, _default$16 as DataSourceMocks, _default$17 as DataSourceSelect, DataSourceStepValue, DatasourceTypeOption, DepTargetType, DiffDialogPayload, _default$18 as DisplayConds, DragClassification, DragType, DslOpOptions, DslOpWithHistoryIdsResult, EVENT_NAME_VALUE_SEPARATOR, EditorChangeEvent, EditorChangeEventHistoryMeta, EditorChangeItem, EditorEvents, EditorInstallOptions, EditorNodeInfo, EditorSlots, EditorUpdateChangeItem, EventBus, EventBusEvent, EventNameOption, EventNameSelectOption, _default$19 as EventSelect, Fixed2Other, _default$20 as FloatingBox, FrameworkSlots, GetCodeBlockFormConfigOptions, GetColumnWidth, GetConfig, H_GUIDE_LINE_STORAGE_KEY, HistoryBucketConfig, _default$21 as HistoryDiffDialog, HistoryEvents, HistoryGroup, _default$22 as HistoryListBucket, _default$23 as HistoryListBucketTab, HistoryListExtraTab, HistoryOpOptions, HistoryOpOptionsWithChangeRecords, HistoryOpSource, HistoryOpType, HistoryPersistOptions, HistoryRowDescriptor, HistoryState, HistoryStepEntry, HistoryStepType, HistorySteps, _default$24 as Icon, IdleTask, IdleTaskEvents, IsExpandableFunction, KeyBindingCacheItem, KeyBindingCommand, KeyBindingItem, _default$25 as KeyValue, Keys, LEFT_COLUMN_WIDTH_STORAGE_KEY, _default$26 as LayerNodeContent, LayerNodeSlots, LayerNodeStatus, LayerOffset, _default$27 as LayerPanel, LayerPanelSlots, Layout, _default$28 as LayoutContainer, _default$28 as SplitView, ListState, MIN_CENTER_COLUMN_WIDTH, MIN_LEFT_COLUMN_WIDTH, MIN_RIGHT_COLUMN_WIDTH, MenuBarData, MenuButton, MenuComponent, MenuItem, NodeInvalidInfo, NodeInvalidSource, type OnDrag, PROPS_PANEL_WIDTH_STORAGE_KEY, PageBarSortOptions, _default$29 as PageFragmentSelect, PartSortableOptions, PastePosition, PersistedHistoryState, PropsFormConfigFunction, _default$30 as PropsFormPanel, PropsFormValueFunction, _default$31 as PropsPanel, PropsPanelSlots, PropsState, RIGHT_COLUMN_WIDTH_STORAGE_KEY, _default$32 as Resizer, ScrollViewer, ScrollViewerEvent, ScrollViewerSlots, SerializedUndoRedo, Services, SetColumnWidth, SideBarData, SideComponent, SideItem, SideItemKey, SidebarSlots, StageCore, StageOptions, StageOverlayState, StageRect, StageSlots, StepDiffItem, StepExtra, StepValue, StoreState, StoreStateKey, _default$33 as StyleSetter, SyncAfterHook, SyncBeforeHook, SyncHookPlugin, _default$34 as TMagicCodeEditor, _default$35 as TMagicEditor, _default$36 as ToolButton, _default$37 as Tree, _default$38 as TreeNode, TreeNodeData, type TypeMatchValidateContext, UI_SELECT_MODE_EVENT_NAME, UiState, UndoRedo, UseCompareFormReturn, UseHistoryRevertOptions, V_GUIDE_LINE_STORAGE_KEY, ValidateDataSourceFieldSelectOptions, _default$39 as ViewForm, WorkspaceSlots, advancedTabConfig, arrayOptions, beforePaste, booleanOptions, buildChangeRecords, calcAlignCenterStyle, calcLayerTargetIndex, calcMoveStyle, canUsePluginMethods, change2Fixed, classifyDragSources, _default$40 as codeBlockService, collectEventNameOptionValues, collectRelatedNodes, _default$41 as componentListService, confirmHistoryAction, createStackStep, _default$42 as dataSourceService, debug, _default$43 as default, defaultIsExpandable, _default$44 as depService, describeRevertStep, describeStepForRevert, deserializeStacks, designPlugin, detectStackOpType, detectTargetId, detectTargetName, displayTabConfig, editorNodeMergeCustomizer, _default$45 as editorService, editorTypeMatchRules, eqOptions, error, eventTabConfig, _default$46 as eventsService, fillConfig, fixNodeLeft, fixNodePosition, formPlugin, generatePageName, generatePageNameByApp, getAddParent, getCascaderOptionsFromFields, getCodeBlockFormConfig, getCompActionAllowedValues, getCompActionOptions, getCondOpOptionsByFieldType, getDefaultConfig, getDisplayField, getEditorConfig, getEventNameAllowedValues, getEventNameOptions, getFieldType, getFormConfig, getFormValue, getGuideLineFromCache, getInitPositionStyle, getLastPushedHistoryIds, getNodeIndex, getOrCreateStack, getPageFragmentList, getPageList, getPageNameList, getPositionInContainer, getRelativeStyle, _default$47 as historyService, idbDelete, idbGet, idbSet, info, isEventNameCheckStrictly, isGlobalFlat, isIncludeDataSource, isIndexedDBSupported, _default$48 as keybindingService, _default$49 as loadMonaco, log, markStackSaved, mergeSteps, moveItemsInContainer, normalizeCompActionValue, numberOptions, openIndexedDB, _default$50 as propsService, removeStyleDisplayConfig, resolveFieldByPath, resolveSelectedNode, serializeConfig, serializeStacks, setChildrenLayout, setEditorConfig, setLayout, _default$51 as stageOverlayService, _default$52 as storageService, styleTabConfig, tablePlugin, toggleFixedPosition, _default$53 as uiService, undoFloor, updateStatus, useCodeBlockEdit, useCompareForm, useEditorContentHeight, useFilter, useFloatBox, useGetSo, useHistoryRevert, useNextFloatBoxPosition, useNodeStatus, useServices, useStage, useWindowRect, validateDataSourceFieldSelectValue, warn };
6883
+ export { ALL_COND_OPS, AddMNode, AddPrefixToObject, AsyncAfterHook, AsyncBeforeHook, AsyncHookPlugin, AsyncMethodName, BaseStepValue, 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, CodeBlockStepValue, CodeDeleteErrorType, CodeDslItem, CodeParamStatement, CodeRelation, _default$3 as CodeSelect, _default$4 as CodeSelectCol, CodeState, ColumnLayout, CombineInfo, CompareCategory, _default$5 as CompareForm, CompareFormBaseProps, CompareFormLoadConfig, CompareFormLoadConfigContext, ComponentGroup, ComponentGroupState, ComponentItem, _default$6 as ComponentListPanel, ComponentListPanelSlots, _default$7 as CondOpSelect, ConfirmAndRevertOptions, _default$8 as ContentMenu, ContentMenuTarget, ContentMenuType, CustomContentMenuFunction, CustomDiffFormOptions, DEFAULT_LEFT_COLUMN_WIDTH, DEFAULT_RIGHT_COLUMN_WIDTH, _default$9 as DataSourceAddButton, _default$10 as DataSourceConfigPanel, _default$11 as DataSourceFieldSelect, _default$12 as DataSourceFields, _default$13 as DataSourceInput, DataSourceListSlots, _default$14 as DataSourceMethodSelect, _default$15 as DataSourceMethods, _default$16 as DataSourceMocks, _default$17 as DataSourceSelect, DataSourceStepValue, DatasourceTypeOption, DepTargetType, DiffDialogPayload, _default$18 as DisplayConds, DragClassification, DragType, DslOpOptions, DslOpWithHistoryIdsResult, EVENT_NAME_VALUE_SEPARATOR, EditorChangeEvent, EditorChangeEventHistoryMeta, EditorChangeItem, EditorEvents, EditorInstallOptions, EditorNodeInfo, EditorSlots, EditorUpdateChangeItem, EventBus, EventBusEvent, EventNameOption, EventNameSelectOption, _default$19 as EventSelect, Fixed2Other, _default$20 as FloatingBox, FrameworkSlots, GetCodeBlockFormConfigOptions, GetColumnWidth, GetConfig, H_GUIDE_LINE_STORAGE_KEY, HistoryBucketConfig, _default$21 as HistoryDiffDialog, HistoryEvents, HistoryGroup, _default$22 as HistoryListBucket, _default$23 as HistoryListBucketTab, HistoryListExtraTab, HistoryOpOptions, HistoryOpOptionsWithChangeRecords, HistoryOpSource, HistoryOpType, HistoryPersistOptions, HistoryRowDescriptor, HistoryState, HistoryStepEntry, HistoryStepType, HistorySteps, _default$24 as Icon, IdleTask, IdleTaskEvents, IsExpandableFunction, KeyBindingCacheItem, KeyBindingCommand, KeyBindingItem, _default$25 as KeyValue, Keys, LEFT_COLUMN_WIDTH_STORAGE_KEY, _default$26 as LayerNodeContent, LayerNodeSlots, LayerNodeStatus, LayerOffset, _default$27 as LayerPanel, LayerPanelSlots, Layout, _default$28 as LayoutContainer, _default$28 as SplitView, ListState, MIN_CENTER_COLUMN_WIDTH, MIN_LEFT_COLUMN_WIDTH, MIN_RIGHT_COLUMN_WIDTH, MenuBarData, MenuButton, MenuComponent, MenuItem, NodeInvalidInfo, NodeInvalidSource, type OnDrag, PROPS_PANEL_WIDTH_STORAGE_KEY, PageBarSortOptions, _default$29 as PageFragmentSelect, PartSortableOptions, PastePosition, PersistedHistoryState, PropsFormConfigFunction, _default$30 as PropsFormPanel, PropsFormValueFunction, _default$31 as PropsPanel, PropsPanelSlots, PropsState, RIGHT_COLUMN_WIDTH_STORAGE_KEY, _default$32 as Resizer, ScrollViewer, ScrollViewerEvent, ScrollViewerSlots, SerializedUndoRedo, Services, SetColumnWidth, SideBarData, SideComponent, SideItem, SideItemKey, SidebarSlots, StageCore, StageOptions, StageOverlayState, StageRect, StageSlots, StepDiffItem, StepExtra, StepValue, StoreState, StoreStateKey, _default$33 as StyleSetter, SyncAfterHook, SyncBeforeHook, SyncHookPlugin, _default$34 as TMagicCodeEditor, _default$35 as TMagicEditor, _default$36 as ToolButton, _default$37 as Tree, _default$38 as TreeNode, TreeNodeData, type TypeMatchValidateContext, UI_SELECT_MODE_EVENT_NAME, UiState, UndoRedo, UpdateOptions, UseCompareFormReturn, UseHistoryRevertOptions, V_GUIDE_LINE_STORAGE_KEY, ValidateDataSourceFieldSelectOptions, _default$39 as ViewForm, WorkspaceSlots, advancedTabConfig, arrayOptions, beforePaste, booleanOptions, buildChangeRecords, calcAlignCenterStyle, calcLayerTargetIndex, calcMoveStyle, canUsePluginMethods, change2Fixed, classifyDragSources, _default$40 as codeBlockService, collectEventNameOptionValues, collectRelatedNodes, _default$41 as componentListService, confirmHistoryAction, createStackStep, _default$42 as dataSourceService, debug, _default$43 as default, defaultIsExpandable, _default$44 as depService, describeRevertStep, describeStepForRevert, deserializeStacks, designPlugin, detectStackOpType, detectTargetId, detectTargetName, displayTabConfig, editorNodeMergeCustomizer, _default$45 as editorService, editorTypeMatchRules, eqOptions, error, eventTabConfig, _default$46 as eventsService, fillConfig, fixNodeLeft, fixNodePosition, formPlugin, generatePageName, generatePageNameByApp, getAddParent, getCascaderOptionsFromFields, getCodeBlockFormConfig, getCompActionAllowedValues, getCompActionOptions, getCondOpOptionsByFieldType, getDefaultConfig, getDisplayField, getEditorConfig, getEventNameAllowedValues, getEventNameOptions, getFieldType, getFormConfig, getFormValue, getGuideLineFromCache, getInitPositionStyle, getLastPushedHistoryIds, getNodeIndex, getOrCreateStack, getPageFragmentList, getPageList, getPageNameList, getPositionInContainer, getRelativeStyle, _default$47 as historyService, idbDelete, idbGet, idbSet, info, isEventNameCheckStrictly, isGlobalFlat, isIncludeDataSource, isIndexedDBSupported, _default$48 as keybindingService, _default$49 as loadMonaco, log, markStackSaved, mergeSteps, moveItemsInContainer, normalizeCompActionValue, numberOptions, openIndexedDB, _default$50 as propsService, resolveFieldByPath, resolveSelectedNode, serializeConfig, serializeStacks, setChildrenLayout, setEditorConfig, setLayout, _default$51 as stageOverlayService, _default$52 as storageService, styleTabConfig, tablePlugin, toggleFixedPosition, _default$53 as uiService, undoFloor, updateStatus, useCodeBlockEdit, useCompareForm, useEditorContentHeight, useFilter, useFloatBox, useGetSo, useHistoryRevert, useNextFloatBoxPosition, useNodeStatus, useServices, useStage, useWindowRect, validateDataSourceFieldSelectValue, warn };