@tmagic/editor 1.8.0-beta.21 → 1.8.0-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/CodeBlockEditor.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/es/components/Resizer.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/es/fields/CondOpSelect.vue_vue_type_script_setup_true_lang.js +3 -1
- package/dist/es/fields/DataSourceFields.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/es/fields/DataSourceInput.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/es/fields/DataSourceMocks.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/es/fields/DisplayConds.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/es/fields/StyleSetter/components/Box.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/es/fields/StyleSetter/pro/Background.vue_vue_type_script_setup_true_lang.js +6 -1
- package/dist/es/fields/StyleSetter/pro/Font.vue_vue_type_script_setup_true_lang.js +35 -3
- package/dist/es/fields/StyleSetter/pro/Position.vue_vue_type_script_setup_true_lang.js +26 -5
- package/dist/es/index.js +2 -2
- package/dist/es/initService.js +2 -1
- package/dist/es/layouts/props-panel/PropsPanel.vue_vue_type_script_setup_true_lang.js +23 -12
- package/dist/es/layouts/sidebar/ComponentListPanel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/sidebar/Sidebar.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/es/layouts/sidebar/data-source/DataSourceConfigPanel.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/es/layouts/sidebar/layer/LayerPanel.vue_vue_type_script_setup_true_lang.js +3 -2
- package/dist/es/services/codeBlock.js +4 -2
- package/dist/es/services/editor.js +12 -8
- package/dist/es/utils/dep/collect-worker-client.js +67 -27
- package/dist/es/utils/dep/worker.js +1 -1
- package/dist/es/utils/type-match-rules.js +24 -36
- package/dist/tmagic-editor.umd.cjs +413 -306
- package/package.json +12 -12
- package/src/fields/StyleSetter/components/Box.vue +1 -1
- package/src/fields/StyleSetter/components/Position.vue +1 -1
- package/src/fields/StyleSetter/pro/Background.vue +7 -0
- package/src/fields/StyleSetter/pro/Font.vue +57 -0
- package/src/fields/StyleSetter/pro/Position.vue +31 -0
- package/src/layouts/props-panel/PropsPanel.vue +30 -16
- package/src/layouts/sidebar/ComponentListPanel.vue +5 -1
- package/src/layouts/sidebar/layer/LayerPanel.vue +1 -1
- package/src/services/editor.ts +27 -8
- package/src/utils/dep/collect-worker-client.ts +97 -31
- package/src/utils/type-match-rules.ts +41 -34
- package/types/index.d.ts +106 -153
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}),
|
|
@@ -685,17 +657,8 @@ declare class Editor extends BaseService {
|
|
|
685
657
|
* @param options.doNotPushHistory 是否不写入历史记录(默认 false)
|
|
686
658
|
* @returns 添加后的节点
|
|
687
659
|
*/
|
|
688
|
-
add(addNode: AddMNode | MNode[], parent?: MContainer | null, {
|
|
689
|
-
|
|
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>;
|
|
660
|
+
add(addNode: AddMNode | MNode[], parent?: MContainer | null, { doNotSelect, doNotSwitchPage, doNotPushHistory, historyDescription, historySource }?: DslOpOptions): Promise<MNode | MNode[]>;
|
|
661
|
+
doRemove(node: MNode, { doNotSelect, doNotSwitchPage }?: DslOpOptions): Promise<void>;
|
|
699
662
|
/**
|
|
700
663
|
* 删除组件
|
|
701
664
|
* @param {Object} node 要删除的节点或节点集合
|
|
@@ -704,19 +667,11 @@ declare class Editor extends BaseService {
|
|
|
704
667
|
* @param options.doNotSwitchPage 删除后是否不切换当前页面(默认 false;删除页面 / 页面片段时为 true 会跳过自动切换到首个剩余页面)
|
|
705
668
|
* @param options.doNotPushHistory 是否不写入历史记录(默认 false)
|
|
706
669
|
*/
|
|
707
|
-
remove(nodeOrNodeList: MNode | MNode[], {
|
|
708
|
-
|
|
709
|
-
doNotSwitchPage,
|
|
710
|
-
doNotPushHistory,
|
|
711
|
-
historyDescription,
|
|
712
|
-
historySource
|
|
713
|
-
}?: DslOpOptions): Promise<void>;
|
|
714
|
-
doUpdate(config: MNode, {
|
|
715
|
-
changeRecords,
|
|
716
|
-
historySource
|
|
717
|
-
}?: {
|
|
670
|
+
remove(nodeOrNodeList: MNode | MNode[], { doNotSelect, doNotSwitchPage, doNotPushHistory, historyDescription, historySource }?: DslOpOptions): Promise<void>;
|
|
671
|
+
doUpdate(config: MNode, { changeRecords, historySource, replace }?: {
|
|
718
672
|
changeRecords?: ChangeRecord[];
|
|
719
673
|
historySource?: HistoryOpSource;
|
|
674
|
+
replace?: boolean;
|
|
720
675
|
}): Promise<{
|
|
721
676
|
newNode: MNode;
|
|
722
677
|
oldNode: MNode;
|
|
@@ -731,6 +686,7 @@ declare class Editor extends BaseService {
|
|
|
731
686
|
* @param data.changeRecordList 多节点 form 端变更记录列表,按 config 数组同序对应每个节点;优先级高于 changeRecords
|
|
732
687
|
* @param data.doNotPushHistory 是否不写入历史记录(默认 false)
|
|
733
688
|
* @param data.historyDescription 入栈时附带的人类可读描述,用于历史面板展示(不影响 undo/redo 行为)
|
|
689
|
+
* @param data.replace 是否整节点替换:为 true 时跳过 mergeWith / toggleFixedPosition / setChildrenLayout,直接用传入配置覆盖(默认 false)
|
|
734
690
|
* @returns 更新后的节点配置
|
|
735
691
|
*/
|
|
736
692
|
update(config: MNode | MNode[], data?: {
|
|
@@ -739,6 +695,11 @@ declare class Editor extends BaseService {
|
|
|
739
695
|
doNotPushHistory?: boolean;
|
|
740
696
|
historyDescription?: string;
|
|
741
697
|
historySource?: HistoryOpSource;
|
|
698
|
+
/**
|
|
699
|
+
* 为 true 时不做深合并等变换,直接用传入配置整节点替换现有节点。
|
|
700
|
+
* 适用于源码编辑、历史整节点快照回放等「完整 DSL」场景;默认 false(局部属性更新走 merge)。
|
|
701
|
+
*/
|
|
702
|
+
replace?: boolean;
|
|
742
703
|
/**
|
|
743
704
|
* 属性面板提交时携带的校验错误信息,在写入历史记录之前落库,
|
|
744
705
|
* 使历史快照与本次变更对齐,从而 undo/redo 能正确还原错误标记。
|
|
@@ -759,11 +720,7 @@ declare class Editor extends BaseService {
|
|
|
759
720
|
* @param options.doNotPushHistory 是否不写入历史记录(默认 false)
|
|
760
721
|
* @returns void
|
|
761
722
|
*/
|
|
762
|
-
sort(id1: Id, id2: Id, {
|
|
763
|
-
doNotSelect,
|
|
764
|
-
doNotPushHistory,
|
|
765
|
-
historySource
|
|
766
|
-
}?: DslOpOptions): Promise<void>;
|
|
723
|
+
sort(id1: Id, id2: Id, { doNotSelect, doNotPushHistory, historySource }?: DslOpOptions): Promise<void>;
|
|
767
724
|
/**
|
|
768
725
|
* 将组件节点配置存储到localStorage中
|
|
769
726
|
* @param config 组件节点配置
|
|
@@ -786,13 +743,7 @@ declare class Editor extends BaseService {
|
|
|
786
743
|
* @param options.doNotPushHistory 是否不写入历史记录(默认 false)
|
|
787
744
|
* @returns 添加后的组件节点配置
|
|
788
745
|
*/
|
|
789
|
-
paste(position?: PastePosition, collectorOptions?: TargetOptions, {
|
|
790
|
-
doNotSelect,
|
|
791
|
-
doNotSwitchPage,
|
|
792
|
-
doNotPushHistory,
|
|
793
|
-
historyDescription,
|
|
794
|
-
historySource
|
|
795
|
-
}?: DslOpOptions): Promise<MNode | MNode[] | void>;
|
|
746
|
+
paste(position?: PastePosition, collectorOptions?: TargetOptions, { doNotSelect, doNotSwitchPage, doNotPushHistory, historyDescription, historySource }?: DslOpOptions): Promise<MNode | MNode[] | void>;
|
|
796
747
|
doPaste(config: MNode[], position?: PastePosition): Promise<MNode[]>;
|
|
797
748
|
doAlignCenter(config: MNode): Promise<MNode>;
|
|
798
749
|
/**
|
|
@@ -804,23 +755,14 @@ declare class Editor extends BaseService {
|
|
|
804
755
|
* @param options.doNotPushHistory 是否不写入历史记录(默认 false)
|
|
805
756
|
* @returns 当前组件节点配置
|
|
806
757
|
*/
|
|
807
|
-
alignCenter(config: MNode | MNode[], {
|
|
808
|
-
doNotSelect,
|
|
809
|
-
doNotPushHistory,
|
|
810
|
-
historyDescription,
|
|
811
|
-
historySource
|
|
812
|
-
}?: DslOpOptions): Promise<MNode | MNode[]>;
|
|
758
|
+
alignCenter(config: MNode | MNode[], { doNotSelect, doNotPushHistory, historyDescription, historySource }?: DslOpOptions): Promise<MNode | MNode[]>;
|
|
813
759
|
/**
|
|
814
760
|
* 移动当前选中节点位置
|
|
815
761
|
* @param offset 偏移量
|
|
816
762
|
* @param options 可选配置
|
|
817
763
|
* @param options.doNotPushHistory 是否不写入历史记录(默认 false)
|
|
818
764
|
*/
|
|
819
|
-
moveLayer(offset: number | LayerOffset, {
|
|
820
|
-
doNotPushHistory,
|
|
821
|
-
historyDescription,
|
|
822
|
-
historySource
|
|
823
|
-
}?: DslOpOptions): Promise<void>;
|
|
765
|
+
moveLayer(offset: number | LayerOffset, { doNotPushHistory, historyDescription, historySource }?: DslOpOptions): Promise<void>;
|
|
824
766
|
/**
|
|
825
767
|
* 移动一个或多个节点到指定容器中。
|
|
826
768
|
*
|
|
@@ -835,18 +777,8 @@ declare class Editor extends BaseService {
|
|
|
835
777
|
* @param options.doNotSwitchPage 移动后是否不切换当前页面(默认 false;目标容器位于其它页面时为 true 会跳过自动选中以避免页面切换)
|
|
836
778
|
* @param options.doNotPushHistory 是否不写入历史记录(默认 false)
|
|
837
779
|
*/
|
|
838
|
-
moveToContainer(config: MNode | MNode[], targetId: Id, {
|
|
839
|
-
|
|
840
|
-
doNotSwitchPage,
|
|
841
|
-
doNotPushHistory,
|
|
842
|
-
historyDescription,
|
|
843
|
-
historySource
|
|
844
|
-
}?: DslOpOptions): Promise<MNode | MNode[]>;
|
|
845
|
-
dragTo(config: MNode | MNode[], targetParent: MContainer, targetIndex: number, {
|
|
846
|
-
doNotPushHistory,
|
|
847
|
-
historyDescription,
|
|
848
|
-
historySource
|
|
849
|
-
}?: DslOpOptions): Promise<void>;
|
|
780
|
+
moveToContainer(config: MNode | MNode[], targetId: Id, { doNotSelect, doNotSwitchPage, doNotPushHistory, historyDescription, historySource }?: DslOpOptions): Promise<MNode | MNode[]>;
|
|
781
|
+
dragTo(config: MNode | MNode[], targetParent: MContainer, targetIndex: number, { doNotPushHistory, historyDescription, historySource }?: DslOpOptions): Promise<void>;
|
|
850
782
|
/**
|
|
851
783
|
* 下列 *AndGetHistoryId 方法与对应的普通操作(add / remove / update ...)行为完全一致,
|
|
852
784
|
* 返回值在 {@link DslOpWithHistoryIdsResult} 中同时包含原操作结果与本次写入历史栈的 uuid 列表({@link StepValue.uuid}),
|
|
@@ -865,6 +797,7 @@ declare class Editor extends BaseService {
|
|
|
865
797
|
doNotPushHistory?: boolean;
|
|
866
798
|
historyDescription?: string;
|
|
867
799
|
historySource?: HistoryOpSource;
|
|
800
|
+
replace?: boolean;
|
|
868
801
|
}): Promise<DslOpWithHistoryIdsResult<MNode | MNode[]>>;
|
|
869
802
|
/** 等价于 {@link moveLayer},并额外返回本次写入历史记录的 uuid 列表(未入栈时 historyIds 为 `[]`)。 */
|
|
870
803
|
moveLayerAndGetHistoryId(offset: number | LayerOffset, options?: DslOpOptions): Promise<DslOpWithHistoryIdsResult<void>>;
|
|
@@ -917,11 +850,7 @@ declare class Editor extends BaseService {
|
|
|
917
850
|
* @returns 实际移动到的最终游标位置
|
|
918
851
|
*/
|
|
919
852
|
gotoPageStep(targetCursor: number): Promise<number>;
|
|
920
|
-
move(left: number, top: number, {
|
|
921
|
-
doNotPushHistory,
|
|
922
|
-
historyDescription,
|
|
923
|
-
historySource
|
|
924
|
-
}?: DslOpOptions): Promise<void>;
|
|
853
|
+
move(left: number, top: number, { doNotPushHistory, historyDescription, historySource }?: DslOpOptions): Promise<void>;
|
|
925
854
|
resetState(): void;
|
|
926
855
|
destroy(): void;
|
|
927
856
|
resetModifiedNodeId(): void;
|
|
@@ -1450,10 +1379,7 @@ declare class Props extends BaseService {
|
|
|
1450
1379
|
* @param type 组件类型
|
|
1451
1380
|
* @returns 组件初始值
|
|
1452
1381
|
*/
|
|
1453
|
-
getPropsValue(componentType: string, {
|
|
1454
|
-
inputEvent,
|
|
1455
|
-
...defaultValue
|
|
1456
|
-
}?: Record<string, any>): Promise<any>;
|
|
1382
|
+
getPropsValue(componentType: string, { inputEvent, ...defaultValue }?: Record<string, any>): Promise<any>;
|
|
1457
1383
|
hasPropsValue(type: string): boolean;
|
|
1458
1384
|
createId(type: string | number): string;
|
|
1459
1385
|
/**
|
|
@@ -2018,7 +1944,9 @@ interface SideComponent extends MenuComponent {
|
|
|
2018
1944
|
beforeClick?: (config: SideComponent) => boolean | Promise<boolean>;
|
|
2019
1945
|
/** 组件扩展参数 */
|
|
2020
1946
|
boxComponentConfig?: {
|
|
2021
|
-
/** Vue3组件 */
|
|
1947
|
+
/** Vue3组件 */
|
|
1948
|
+
component?: any;
|
|
1949
|
+
/** 传入组件的props对象 */
|
|
2022
1950
|
props?: Record<string, any>;
|
|
2023
1951
|
};
|
|
2024
1952
|
}
|
|
@@ -2184,14 +2112,19 @@ interface ScrollViewerEvent {
|
|
|
2184
2112
|
scrollWidth: number;
|
|
2185
2113
|
}
|
|
2186
2114
|
type CodeState = {
|
|
2187
|
-
/** 代码块DSL数据源 */
|
|
2188
|
-
|
|
2189
|
-
|
|
2115
|
+
/** 代码块DSL数据源 */
|
|
2116
|
+
codeDsl: CodeBlockDSL | null;
|
|
2117
|
+
/** 代码块是否可编辑 */
|
|
2118
|
+
editable: boolean;
|
|
2119
|
+
/** list模式下左侧展示的代码列表 */
|
|
2120
|
+
combineIds: string[];
|
|
2121
|
+
/** 为业务逻辑预留的不可删除的代码块列表,由业务逻辑维护(如代码块上线后不可删除) */
|
|
2190
2122
|
undeletableList: Id[];
|
|
2191
2123
|
paramsColConfig?: TableColumnConfig;
|
|
2192
2124
|
};
|
|
2193
2125
|
type CodeRelation = {
|
|
2194
|
-
/** 组件id:[代码id1,代码id2] */
|
|
2126
|
+
/** 组件id:[代码id1,代码id2] */
|
|
2127
|
+
[compId: Id]: Id[];
|
|
2195
2128
|
};
|
|
2196
2129
|
interface CodeDslItem {
|
|
2197
2130
|
/** 代码块id */
|
|
@@ -2591,7 +2524,13 @@ interface TreeNodeData {
|
|
|
2591
2524
|
/** 判断组件树节点是否可展开(即是否要展示为拥有子节点的形态)的函数 */
|
|
2592
2525
|
type IsExpandableFunction = (_data: TreeNodeData, _nodeStatusMap: Map<Id, LayerNodeStatus>) => boolean;
|
|
2593
2526
|
/** canDropIn 的调用场景 */
|
|
2594
|
-
type CanDropInScene =
|
|
2527
|
+
type CanDropInScene =
|
|
2528
|
+
/** 在"已选组件"面板的组件树中拖动节点 */
|
|
2529
|
+
'layer' |
|
|
2530
|
+
/** 在画布上拖动已有组件(被拖动组件本身已经存在于画布中,sourceIds 包含其 id) */
|
|
2531
|
+
'stage-drag' |
|
|
2532
|
+
/** 从组件列表拖入新组件到画布(被拖入的组件尚不存在,sourceIds 为空数组) */
|
|
2533
|
+
'stage-add';
|
|
2595
2534
|
/**
|
|
2596
2535
|
* 判断当前正在拖动的源节点是否可以拖入目标节点内部的函数
|
|
2597
2536
|
* @param _sourceIds 当前正在拖动的源节点 id 列表
|
|
@@ -2610,11 +2549,11 @@ type CanDropInScene = /** 在"已选组件"面板的组件树中拖动节点 */'
|
|
|
2610
2549
|
* - 其他(`true` / `void` / `undefined`):按原 targetId 正常拖入
|
|
2611
2550
|
*/
|
|
2612
2551
|
type CanDropInFunction = (_sourceIds: Id[], _targetId: Id, _scene: CanDropInScene) => Id | boolean | void;
|
|
2613
|
-
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]
|
|
2614
|
-
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]
|
|
2615
|
-
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]
|
|
2616
|
-
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]
|
|
2617
|
-
type AddPrefixToObject<T, P extends string> = { [K in keyof T as K extends string ? `${P}${K}` : never]: T[K] };
|
|
2552
|
+
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]>; };
|
|
2553
|
+
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]>>; };
|
|
2554
|
+
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]>; };
|
|
2555
|
+
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]>; };
|
|
2556
|
+
type AddPrefixToObject<T, P extends string> = { [K in keyof T as K extends string ? `${P}${K}` : never]: T[K]; };
|
|
2618
2557
|
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'>;
|
|
2619
2558
|
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'>;
|
|
2620
2559
|
interface EventBusEvent {
|
|
@@ -2652,8 +2591,8 @@ interface ContentMenuTarget {
|
|
|
2652
2591
|
data?: TreeNodeData;
|
|
2653
2592
|
}
|
|
2654
2593
|
type ContentMenuType = 'layer' | 'data-source' | 'viewer' | 'code-block';
|
|
2655
|
-
type CustomContentMenuFunction = (menus: (MenuButton | MenuComponent)[], type: ContentMenuType,
|
|
2656
|
-
|
|
2594
|
+
type CustomContentMenuFunction = (menus: (MenuButton | MenuComponent)[], type: ContentMenuType,
|
|
2595
|
+
/** 读取当前右键目标;数据源 / 代码块面板会传入,图层 / 画布一般不需要 */
|
|
2657
2596
|
getTarget?: () => ContentMenuTarget | null) => (MenuButton | MenuComponent)[];
|
|
2658
2597
|
interface EditorEvents {
|
|
2659
2598
|
'root-change': [value: StoreState['root'], preValue?: StoreState['root'], options?: {
|
|
@@ -2991,9 +2930,7 @@ declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockService"])
|
|
|
2991
2930
|
}, {}, {}, {}, {}> | null>>;
|
|
2992
2931
|
createCodeBlock: () => Promise<void>;
|
|
2993
2932
|
editCode: (id: string) => Promise<void>;
|
|
2994
|
-
deleteCode: (key: string, {
|
|
2995
|
-
historySource
|
|
2996
|
-
}?: {
|
|
2933
|
+
deleteCode: (key: string, { historySource }?: {
|
|
2997
2934
|
historySource?: HistoryOpSource;
|
|
2998
2935
|
}) => Promise<void>;
|
|
2999
2936
|
submitCodeBlockHandler: (values: CodeBlockContent, eventData?: ContainerChangeEventData) => Promise<void>;
|
|
@@ -3133,11 +3070,7 @@ declare const displayTabConfig: TabPaneConfig<DisplayCondsConfig>;
|
|
|
3133
3070
|
* @param config 组件属性配置
|
|
3134
3071
|
* @returns Object
|
|
3135
3072
|
*/
|
|
3136
|
-
declare const fillConfig: (config?: FormConfig, {
|
|
3137
|
-
labelWidth,
|
|
3138
|
-
disabledDataSource,
|
|
3139
|
-
disabledCodeBlock
|
|
3140
|
-
}?: {
|
|
3073
|
+
declare const fillConfig: (config?: FormConfig, { labelWidth, disabledDataSource, disabledCodeBlock }?: {
|
|
3141
3074
|
labelWidth?: string;
|
|
3142
3075
|
disabledDataSource?: boolean;
|
|
3143
3076
|
disabledCodeBlock?: boolean;
|
|
@@ -3440,10 +3373,7 @@ declare class ScrollViewer extends EventEmitter {
|
|
|
3440
3373
|
constructor(options: ScrollViewerOptions);
|
|
3441
3374
|
destroy(): void;
|
|
3442
3375
|
setZoom(zoom: number): void;
|
|
3443
|
-
scrollTo({
|
|
3444
|
-
left,
|
|
3445
|
-
top
|
|
3446
|
-
}: {
|
|
3376
|
+
scrollTo({ left, top }: {
|
|
3447
3377
|
left?: number;
|
|
3448
3378
|
top?: number;
|
|
3449
3379
|
}): void;
|
|
@@ -3489,11 +3419,7 @@ declare const idbDelete: (dbName: string, storeName: string, key: IDBValidKey) =
|
|
|
3489
3419
|
* @param diff 单条变更 diff(缺省视为空)
|
|
3490
3420
|
* @param getLabel 从快照取展示名
|
|
3491
3421
|
*/
|
|
3492
|
-
declare const describeRevertStep: <T extends object>(id: Id, {
|
|
3493
|
-
oldSchema,
|
|
3494
|
-
newSchema,
|
|
3495
|
-
changeRecords
|
|
3496
|
-
}: StepDiffItem<T> | undefined, getLabel: (schema: T) => string | undefined) => string;
|
|
3422
|
+
declare const describeRevertStep: <T extends object>(id: Id, { oldSchema, newSchema, changeRecords }: StepDiffItem<T> | undefined, getLabel: (schema: T) => string | undefined) => string;
|
|
3497
3423
|
/**
|
|
3498
3424
|
* 根据 old/new 是否为 null 推断 opType(与 push 时的约定一致)。
|
|
3499
3425
|
*/
|
|
@@ -3509,7 +3435,8 @@ declare const detectStackOpType: (oldVal: unknown, newVal: unknown) => "add" | "
|
|
|
3509
3435
|
declare const createStackStep: <T, S extends BaseStepValue<T>>(id: Id, payload: Omit<BaseStepValue<T>, "uuid" | "data" | "opType" | "diff" | "timestamp" | "saved"> & {
|
|
3510
3436
|
oldValue: T | null;
|
|
3511
3437
|
newValue: T | null;
|
|
3512
|
-
changeRecords?: ChangeRecord[];
|
|
3438
|
+
changeRecords?: ChangeRecord[];
|
|
3439
|
+
/** 展示名(缺省时从快照 name / title 推断)。 */
|
|
3513
3440
|
name?: string;
|
|
3514
3441
|
}) => S | null;
|
|
3515
3442
|
declare const markStackSaved: <S extends {
|
|
@@ -3583,6 +3510,17 @@ declare const V_GUIDE_LINE_STORAGE_KEY = "$MagicStageVerticalGuidelinesData";
|
|
|
3583
3510
|
//#endregion
|
|
3584
3511
|
//#region temp/packages/editor/src/utils/type-match-rules.d.ts
|
|
3585
3512
|
declare const ALL_COND_OPS: Set<string>;
|
|
3513
|
+
type ValidateDataSourceFieldSelectOptions = {
|
|
3514
|
+
/**
|
|
3515
|
+
* 覆盖「非数据源字段路径」时的校验。
|
|
3516
|
+
* 不传则按 fieldConfig 走内置 typeMatch(与表单项自身 typeMatch 行为一致)。
|
|
3517
|
+
*/
|
|
3518
|
+
validatePlainValue?: (value: any, context: TypeMatchValidateContext) => string | undefined | Promise<string | undefined>;
|
|
3519
|
+
};
|
|
3520
|
+
/**
|
|
3521
|
+
* data-source-field-select 的 typeMatch 校验逻辑,可供自定义 rules.validator 复用。
|
|
3522
|
+
*/
|
|
3523
|
+
declare const validateDataSourceFieldSelectValue: (value: any, context: TypeMatchValidateContext, options?: ValidateDataSourceFieldSelectOptions) => string | undefined | Promise<string | undefined>;
|
|
3586
3524
|
declare const editorTypeMatchRules: Record<string, TypeMatchValidator>;
|
|
3587
3525
|
//#endregion
|
|
3588
3526
|
//#region temp/packages/editor/src/utils/event.d.ts
|
|
@@ -4870,9 +4808,12 @@ type __VLS_Props$33 = {
|
|
|
4870
4808
|
layerContentMenu: (MenuButton | MenuComponent)[];
|
|
4871
4809
|
indent?: number;
|
|
4872
4810
|
nextLevelIndentIncrement?: number;
|
|
4873
|
-
customContentMenu: CustomContentMenuFunction;
|
|
4874
|
-
|
|
4875
|
-
|
|
4811
|
+
customContentMenu: CustomContentMenuFunction;
|
|
4812
|
+
/** 自定义判断组件树节点是否可展开(即是否要展示为拥有子节点的形态)的函数 */
|
|
4813
|
+
isExpandable?: IsExpandableFunction;
|
|
4814
|
+
/** 自定义判断当前拖动节点是否可以拖入目标节点内部的函数,返回 false 则禁止拖入 */
|
|
4815
|
+
canDropIn?: CanDropInFunction;
|
|
4816
|
+
/** 组件树节点双击前的钩子函数,返回 false 则阻止默认的双击行为 */
|
|
4876
4817
|
beforeNodeDblclick?: (_event: MouseEvent, _data: TreeNodeData) => Promise<boolean | void> | boolean | void;
|
|
4877
4818
|
};
|
|
4878
4819
|
declare const __VLS_base$10: import("@vue/runtime-core").DefineComponent<__VLS_Props$33, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
@@ -5051,9 +4992,7 @@ declare const __VLS_base$9: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5051
4992
|
draggable: boolean;
|
|
5052
4993
|
}> & Omit<Map<Id, LayerNodeStatus>, keyof Map<any, any>>)>;
|
|
5053
4994
|
filter: (text: string | string[]) => void;
|
|
5054
|
-
deleteCode: (id: string, {
|
|
5055
|
-
historySource
|
|
5056
|
-
}?: {
|
|
4995
|
+
deleteCode: (id: string, { historySource }?: {
|
|
5057
4996
|
historySource?: HistoryOpSource;
|
|
5058
4997
|
}) => Promise<void>;
|
|
5059
4998
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
@@ -5098,8 +5037,10 @@ type __VLS_WithSlots$8<T, S> = T & {
|
|
|
5098
5037
|
type __VLS_Props$18 = {
|
|
5099
5038
|
title?: string;
|
|
5100
5039
|
values: any;
|
|
5101
|
-
disabled: boolean;
|
|
5102
|
-
|
|
5040
|
+
disabled: boolean;
|
|
5041
|
+
/** 打开后需要直接定位并打开的方法名,传入时默认激活「方法定义」tab */
|
|
5042
|
+
editMethodName?: string;
|
|
5043
|
+
/** 打开后需要直接定位并打开的字段路径,传入时默认激活「数据定义」tab */
|
|
5103
5044
|
editFieldPath?: string[];
|
|
5104
5045
|
};
|
|
5105
5046
|
type __VLS_ModelProps$2 = {
|
|
@@ -6531,7 +6472,9 @@ declare const _default: typeof __VLS_export$12;
|
|
|
6531
6472
|
//#endregion
|
|
6532
6473
|
//#region temp/packages/editor/src/components/CompareForm.vue.d.ts
|
|
6533
6474
|
type __VLS_Props$9 = CompareFormBaseProps & {
|
|
6534
|
-
/** 用于对比的旧值(修改前的值) */
|
|
6475
|
+
/** 用于对比的旧值(修改前的值) */
|
|
6476
|
+
lastValue?: CompareFormBaseProps['value'];
|
|
6477
|
+
/** 需要走 self diff 的字段类型(例如 mod-cond)。 */
|
|
6535
6478
|
selfDiffFieldTypes?: string[];
|
|
6536
6479
|
};
|
|
6537
6480
|
declare const __VLS_export$11: import("@vue/runtime-core").DefineComponent<__VLS_Props$9, {
|
|
@@ -6546,7 +6489,8 @@ declare const _default$5: typeof __VLS_export$11;
|
|
|
6546
6489
|
//#endregion
|
|
6547
6490
|
//#region temp/packages/editor/src/components/ViewForm.vue.d.ts
|
|
6548
6491
|
type __VLS_Props$8 = CompareFormBaseProps & {
|
|
6549
|
-
/** 是否禁用表单(默认只读展示)。 */
|
|
6492
|
+
/** 是否禁用表单(默认只读展示)。 */
|
|
6493
|
+
disabled?: boolean;
|
|
6550
6494
|
};
|
|
6551
6495
|
declare const __VLS_export$10: import("@vue/runtime-core").DefineComponent<__VLS_Props$8, {
|
|
6552
6496
|
form: ShallowRef<InstanceType<typeof MForm> | null>;
|
|
@@ -6592,9 +6536,12 @@ declare const __VLS_export$9: <T extends BaseStepValue = BaseStepValue>(__VLS_pr
|
|
|
6592
6536
|
* 该类历史的整体渲染配置(title / prefix / describe* / isStep* / showInitial / gotoEnabled)。
|
|
6593
6537
|
* 由父组件按业务类型注入,组件内部按需读取,避免逐项透传多个 props。
|
|
6594
6538
|
*/
|
|
6595
|
-
config: HistoryBucketConfig<T>;
|
|
6596
|
-
|
|
6597
|
-
|
|
6539
|
+
config: HistoryBucketConfig<T>;
|
|
6540
|
+
/** 当前 bucket 对应的目标 id(dataSource.id 或 codeBlock.id),同时用于组装子项的 key。 */
|
|
6541
|
+
bucketId: string | number;
|
|
6542
|
+
/** 当前 bucket 下的所有历史分组,按时间倒序展示(最近的操作在前)。 */
|
|
6543
|
+
groups: HistoryBucketGroup<T>[];
|
|
6544
|
+
/** 共享的折叠状态表(key -> 是否展开,缺省或 true 为展开、false 为收起),由顶层 panel 统一维护以便跨 tab 复用。 */
|
|
6598
6545
|
expanded: Record<string, boolean>;
|
|
6599
6546
|
} & {
|
|
6600
6547
|
onToggle?: ((_key: string) => any) | undefined;
|
|
@@ -6619,7 +6566,7 @@ declare const __VLS_export$9: <T extends BaseStepValue = BaseStepValue>(__VLS_pr
|
|
|
6619
6566
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
6620
6567
|
};
|
|
6621
6568
|
declare const _default$22: typeof __VLS_export$9;
|
|
6622
|
-
type __VLS_PrettifyLocal$1<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
6569
|
+
type __VLS_PrettifyLocal$1<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
6623
6570
|
//#endregion
|
|
6624
6571
|
//#region temp/packages/editor/src/layouts/history-list/BucketTab.vue.d.ts
|
|
6625
6572
|
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<{
|
|
@@ -6668,11 +6615,12 @@ declare const __VLS_export$8: <T extends BaseStepValue = BaseStepValue>(__VLS_pr
|
|
|
6668
6615
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
6669
6616
|
};
|
|
6670
6617
|
declare const _default$23: typeof __VLS_export$8;
|
|
6671
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
6618
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
6672
6619
|
//#endregion
|
|
6673
6620
|
//#region temp/packages/editor/src/layouts/history-list/HistoryDiffDialog.vue.d.ts
|
|
6674
6621
|
type __VLS_Props$7 = {
|
|
6675
|
-
/** 编辑器服务集合,由调用方传入(不再通过 inject('services') 获取)。 */
|
|
6622
|
+
/** 编辑器服务集合,由调用方传入(不再通过 inject('services') 获取)。 */
|
|
6623
|
+
services?: Services;
|
|
6676
6624
|
/**
|
|
6677
6625
|
* 来自 Editor 顶层的 `extendFormState`,用于扩展 MForm.formState。
|
|
6678
6626
|
* 透传给 CompareForm,从而让差异对比时表单 item 中依赖业务上下文的
|
|
@@ -6684,7 +6632,8 @@ type __VLS_Props$7 = {
|
|
|
6684
6632
|
* 取配置逻辑,可通过 `ctx.defaultLoadConfig()` 复用默认结果再做二次加工。
|
|
6685
6633
|
*/
|
|
6686
6634
|
loadConfig?: CompareFormLoadConfig;
|
|
6687
|
-
width?: string;
|
|
6635
|
+
width?: string;
|
|
6636
|
+
/** 差异对比表单内组件的尺寸(透传给 CompareForm 的 `size`),可选 'large' | 'default' | 'small'。 */
|
|
6688
6637
|
size?: FieldSize;
|
|
6689
6638
|
isConfirm?: boolean;
|
|
6690
6639
|
onConfirm?: () => void;
|
|
@@ -6758,8 +6707,10 @@ interface Position {
|
|
|
6758
6707
|
type __VLS_Props$6 = {
|
|
6759
6708
|
position?: Position;
|
|
6760
6709
|
title?: string;
|
|
6761
|
-
bodyStyle?: CSSProperties;
|
|
6762
|
-
|
|
6710
|
+
bodyStyle?: CSSProperties;
|
|
6711
|
+
/** 浮窗初始样式,会与内部计算样式合并,外部传入优先 */
|
|
6712
|
+
initialStyle?: CSSProperties;
|
|
6713
|
+
/** 用于约束浮窗 left 的容器宽度,传入时按宽度收敛 left,避免超出右边界;默认取视窗宽度 */
|
|
6763
6714
|
frameworkWidth?: number;
|
|
6764
6715
|
beforeClose?: (_done: (_cancel?: boolean) => void) => void;
|
|
6765
6716
|
};
|
|
@@ -6818,7 +6769,8 @@ type __VLS_Props$5 = {
|
|
|
6818
6769
|
nodeStatusMap: Map<Id, LayerNodeStatus>;
|
|
6819
6770
|
indent?: number;
|
|
6820
6771
|
nextLevelIndentIncrement?: number;
|
|
6821
|
-
emptyText?: string;
|
|
6772
|
+
emptyText?: string;
|
|
6773
|
+
/** 自定义判断节点是否可展开(即是否要展示为拥有子节点的形态)的函数 */
|
|
6822
6774
|
isExpandable?: IsExpandableFunction;
|
|
6823
6775
|
};
|
|
6824
6776
|
declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Props$5, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
@@ -6869,7 +6821,8 @@ type __VLS_Props$4 = {
|
|
|
6869
6821
|
parentsId?: Id[];
|
|
6870
6822
|
nodeStatusMap: Map<Id, LayerNodeStatus>;
|
|
6871
6823
|
indent?: number;
|
|
6872
|
-
nextLevelIndentIncrement?: number;
|
|
6824
|
+
nextLevelIndentIncrement?: number;
|
|
6825
|
+
/** 自定义判断节点是否可展开(即是否要展示为拥有子节点的形态)的函数 */
|
|
6873
6826
|
isExpandable?: IsExpandableFunction;
|
|
6874
6827
|
};
|
|
6875
6828
|
declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Props$4, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
@@ -6949,4 +6902,4 @@ declare const _default$43: {
|
|
|
6949
6902
|
install: (app: App, opt?: Partial<EditorInstallOptions | DesignPluginOptions | FormInstallOptions>) => void;
|
|
6950
6903
|
};
|
|
6951
6904
|
//#endregion
|
|
6952
|
-
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, _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, warn };
|
|
6905
|
+
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 };
|