@tmagic/editor 1.8.0-beta.2 → 1.8.0-beta.4
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/Editor.vue_vue_type_script_setup_true_lang.js +9 -0
- package/dist/es/components/CompareForm.vue_vue_type_script_setup_true_lang.js +46 -28
- package/dist/es/editorProps.js +2 -0
- package/dist/es/fields/CodeLink.vue_vue_type_script_setup_true_lang.js +2 -5
- package/dist/es/hooks/use-code-block-edit.js +6 -3
- package/dist/es/hooks/use-data-source-edit.js +5 -2
- package/dist/es/hooks/use-stage.js +8 -4
- package/dist/es/index.js +3 -1
- package/dist/es/layouts/CodeEditor.vue_vue_type_script_setup_true_lang.js +2 -5
- package/dist/es/layouts/NavMenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/history-list/Bucket.vue_vue_type_script_setup_true_lang.js +37 -14
- package/dist/es/layouts/history-list/BucketTab.js +5 -0
- package/dist/es/layouts/history-list/{CodeBlockTab.vue_vue_type_script_setup_true_lang.js → BucketTab.vue_vue_type_script_setup_true_lang.js} +30 -16
- package/dist/es/layouts/history-list/GroupRow.vue_vue_type_script_setup_true_lang.js +91 -60
- package/dist/es/layouts/history-list/HistoryDiffDialog.vue_vue_type_script_setup_true_lang.js +82 -30
- package/dist/es/layouts/history-list/HistoryListPanel.vue_vue_type_script_setup_true_lang.js +140 -66
- package/dist/es/layouts/history-list/InitialRow.vue_vue_type_script_setup_true_lang.js +15 -9
- package/dist/es/layouts/history-list/PageTab.vue_vue_type_script_setup_true_lang.js +15 -6
- package/dist/es/layouts/history-list/composables.js +72 -2
- package/dist/es/layouts/props-panel/PropsPanel.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/es/layouts/sidebar/ComponentListPanel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/sidebar/code-block/CodeBlockList.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/es/layouts/sidebar/code-block/CodeBlockListPanel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/sidebar/code-block/useContentMenu.js +1 -1
- package/dist/es/layouts/sidebar/data-source/DataSourceListPanel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/sidebar/data-source/useContentMenu.js +1 -1
- package/dist/es/layouts/sidebar/layer/LayerMenu.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/es/layouts/sidebar/layer/LayerNodeTool.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/workspace/viewer/Stage.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/layouts/workspace/viewer/ViewerMenu.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/es/services/codeBlock.js +25 -10
- package/dist/es/services/dataSource.js +24 -10
- package/dist/es/services/editor.js +98 -46
- package/dist/es/services/history.js +7 -2
- package/dist/es/services/keybinding.js +3 -3
- package/dist/es/style.css +60 -16
- package/dist/es/utils/content-menu.js +17 -9
- package/dist/style.css +60 -16
- package/dist/tmagic-editor.umd.cjs +795 -443
- package/package.json +7 -7
- package/src/Editor.vue +8 -0
- package/src/components/CompareForm.vue +50 -19
- package/src/editorProps.ts +7 -0
- package/src/fields/CodeLink.vue +2 -5
- package/src/hooks/use-code-block-edit.ts +4 -3
- package/src/hooks/use-data-source-edit.ts +2 -2
- package/src/hooks/use-stage.ts +4 -3
- package/src/index.ts +2 -0
- package/src/layouts/CodeEditor.vue +2 -5
- package/src/layouts/NavMenu.vue +1 -1
- package/src/layouts/history-list/Bucket.vue +58 -29
- package/src/layouts/history-list/BucketTab.vue +80 -0
- package/src/layouts/history-list/GroupRow.vue +110 -58
- package/src/layouts/history-list/HistoryDiffDialog.vue +53 -33
- package/src/layouts/history-list/HistoryListPanel.vue +165 -52
- package/src/layouts/history-list/InitialRow.vue +17 -6
- package/src/layouts/history-list/PageTab.vue +25 -7
- package/src/layouts/history-list/composables.ts +92 -1
- package/src/layouts/props-panel/PropsPanel.vue +5 -1
- package/src/layouts/sidebar/ComponentListPanel.vue +9 -5
- package/src/layouts/sidebar/code-block/CodeBlockList.vue +5 -5
- package/src/layouts/sidebar/code-block/CodeBlockListPanel.vue +1 -1
- package/src/layouts/sidebar/code-block/useContentMenu.ts +1 -1
- package/src/layouts/sidebar/data-source/DataSourceListPanel.vue +1 -1
- package/src/layouts/sidebar/data-source/useContentMenu.ts +1 -1
- package/src/layouts/sidebar/layer/LayerMenu.vue +19 -11
- package/src/layouts/sidebar/layer/LayerNodeTool.vue +7 -4
- package/src/layouts/workspace/viewer/Stage.vue +1 -1
- package/src/layouts/workspace/viewer/ViewerMenu.vue +8 -8
- package/src/services/codeBlock.ts +33 -9
- package/src/services/dataSource.ts +30 -8
- package/src/services/editor.ts +111 -34
- package/src/services/history.ts +10 -0
- package/src/services/keybinding.ts +3 -3
- package/src/theme/history-list-panel.scss +67 -14
- package/src/theme/props-panel.scss +3 -3
- package/src/type.ts +146 -0
- package/src/utils/content-menu.ts +18 -9
- package/types/index.d.ts +387 -156
- package/dist/es/layouts/history-list/CodeBlockTab.js +0 -5
- package/dist/es/layouts/history-list/DataSourceTab.js +0 -5
- package/dist/es/layouts/history-list/DataSourceTab.vue_vue_type_script_setup_true_lang.js +0 -62
- package/src/layouts/history-list/CodeBlockTab.vue +0 -61
- package/src/layouts/history-list/DataSourceTab.vue +0 -61
package/types/index.d.ts
CHANGED
|
@@ -100,7 +100,9 @@ declare class CodeBlock extends BaseService {
|
|
|
100
100
|
*/
|
|
101
101
|
setCodeDslById(id: Id, codeConfig: Partial<CodeBlockContent>, {
|
|
102
102
|
changeRecords,
|
|
103
|
-
doNotPushHistory
|
|
103
|
+
doNotPushHistory,
|
|
104
|
+
historyDescription,
|
|
105
|
+
historySource
|
|
104
106
|
}?: HistoryOpOptionsWithChangeRecords): Promise<void>;
|
|
105
107
|
/**
|
|
106
108
|
* 为了兼容历史原因
|
|
@@ -117,7 +119,8 @@ declare class CodeBlock extends BaseService {
|
|
|
117
119
|
setCodeDslByIdSync(id: Id, codeConfig: Partial<CodeBlockContent>, force?: boolean, {
|
|
118
120
|
changeRecords,
|
|
119
121
|
doNotPushHistory,
|
|
120
|
-
historyDescription
|
|
122
|
+
historyDescription,
|
|
123
|
+
historySource
|
|
121
124
|
}?: HistoryOpOptionsWithChangeRecords): void;
|
|
122
125
|
/**
|
|
123
126
|
* 根据代码块id数组获取代码dsl
|
|
@@ -178,7 +181,8 @@ declare class CodeBlock extends BaseService {
|
|
|
178
181
|
*/
|
|
179
182
|
deleteCodeDslByIds(codeIds: Id[], {
|
|
180
183
|
doNotPushHistory,
|
|
181
|
-
historyDescription
|
|
184
|
+
historyDescription,
|
|
185
|
+
historySource
|
|
182
186
|
}?: HistoryOpOptions): Promise<void>;
|
|
183
187
|
setParamsColConfig(config: TableColumnConfig): void;
|
|
184
188
|
getParamsColConfig(): TableColumnConfig | undefined;
|
|
@@ -264,7 +268,7 @@ declare class CodeBlock extends BaseService {
|
|
|
264
268
|
private applyHistoryStep;
|
|
265
269
|
}
|
|
266
270
|
type CodeBlockService = CodeBlock;
|
|
267
|
-
declare const _default$
|
|
271
|
+
declare const _default$37: CodeBlock;
|
|
268
272
|
//#endregion
|
|
269
273
|
//#region temp/packages/editor/src/services/componentList.d.ts
|
|
270
274
|
declare class ComponentList extends BaseService {
|
|
@@ -318,7 +322,8 @@ declare class DataSource extends BaseService {
|
|
|
318
322
|
*/
|
|
319
323
|
add(config: DataSourceSchema, {
|
|
320
324
|
doNotPushHistory,
|
|
321
|
-
historyDescription
|
|
325
|
+
historyDescription,
|
|
326
|
+
historySource
|
|
322
327
|
}?: HistoryOpOptions): {
|
|
323
328
|
id: string;
|
|
324
329
|
type: string;
|
|
@@ -341,7 +346,8 @@ declare class DataSource extends BaseService {
|
|
|
341
346
|
update(config: DataSourceSchema, {
|
|
342
347
|
changeRecords,
|
|
343
348
|
doNotPushHistory,
|
|
344
|
-
historyDescription
|
|
349
|
+
historyDescription,
|
|
350
|
+
historySource
|
|
345
351
|
}?: HistoryOpOptionsWithChangeRecords): DataSourceSchema;
|
|
346
352
|
/**
|
|
347
353
|
* 删除数据源
|
|
@@ -352,7 +358,8 @@ declare class DataSource extends BaseService {
|
|
|
352
358
|
*/
|
|
353
359
|
remove(id: string, {
|
|
354
360
|
doNotPushHistory,
|
|
355
|
-
historyDescription
|
|
361
|
+
historyDescription,
|
|
362
|
+
historySource
|
|
356
363
|
}?: HistoryOpOptions): void;
|
|
357
364
|
/**
|
|
358
365
|
* 撤销指定数据源的最近一次变更。
|
|
@@ -432,7 +439,7 @@ declare class DataSource extends BaseService {
|
|
|
432
439
|
private applyHistoryStep;
|
|
433
440
|
}
|
|
434
441
|
type DataSourceService = DataSource;
|
|
435
|
-
declare const _default$
|
|
442
|
+
declare const _default$38: DataSource;
|
|
436
443
|
//#endregion
|
|
437
444
|
//#region temp/packages/editor/src/services/dep.d.ts
|
|
438
445
|
interface DepEvents {
|
|
@@ -485,7 +492,7 @@ declare class Dep extends BaseService {
|
|
|
485
492
|
private enqueueTask;
|
|
486
493
|
}
|
|
487
494
|
type DepService = Dep;
|
|
488
|
-
declare const _default$
|
|
495
|
+
declare const _default$40: Dep;
|
|
489
496
|
//#endregion
|
|
490
497
|
//#region temp/packages/editor/src/services/editor.d.ts
|
|
491
498
|
declare class Editor extends BaseService {
|
|
@@ -571,7 +578,8 @@ declare class Editor extends BaseService {
|
|
|
571
578
|
doNotSelect,
|
|
572
579
|
doNotSwitchPage,
|
|
573
580
|
doNotPushHistory,
|
|
574
|
-
historyDescription
|
|
581
|
+
historyDescription,
|
|
582
|
+
historySource
|
|
575
583
|
}?: DslOpOptions): Promise<MNode | MNode[]>;
|
|
576
584
|
doRemove(node: MNode, {
|
|
577
585
|
doNotSelect,
|
|
@@ -589,7 +597,8 @@ declare class Editor extends BaseService {
|
|
|
589
597
|
doNotSelect,
|
|
590
598
|
doNotSwitchPage,
|
|
591
599
|
doNotPushHistory,
|
|
592
|
-
historyDescription
|
|
600
|
+
historyDescription,
|
|
601
|
+
historySource
|
|
593
602
|
}?: DslOpOptions): Promise<void>;
|
|
594
603
|
doUpdate(config: MNode, {
|
|
595
604
|
changeRecords
|
|
@@ -616,6 +625,7 @@ declare class Editor extends BaseService {
|
|
|
616
625
|
changeRecordList?: ChangeRecord[][];
|
|
617
626
|
doNotPushHistory?: boolean;
|
|
618
627
|
historyDescription?: string;
|
|
628
|
+
historySource?: HistoryOpSource;
|
|
619
629
|
}): Promise<MNode | MNode[]>;
|
|
620
630
|
/**
|
|
621
631
|
* 将id为id1的组件移动到id为id2的组件位置上,例如:[1,2,3,4] -> sort(1,3) -> [2,1,3,4]
|
|
@@ -629,7 +639,8 @@ declare class Editor extends BaseService {
|
|
|
629
639
|
*/
|
|
630
640
|
sort(id1: Id, id2: Id, {
|
|
631
641
|
doNotSelect,
|
|
632
|
-
doNotPushHistory
|
|
642
|
+
doNotPushHistory,
|
|
643
|
+
historySource
|
|
633
644
|
}?: DslOpOptions): Promise<void>;
|
|
634
645
|
/**
|
|
635
646
|
* 将组件节点配置存储到localStorage中
|
|
@@ -656,7 +667,9 @@ declare class Editor extends BaseService {
|
|
|
656
667
|
paste(position?: PastePosition, collectorOptions?: TargetOptions, {
|
|
657
668
|
doNotSelect,
|
|
658
669
|
doNotSwitchPage,
|
|
659
|
-
doNotPushHistory
|
|
670
|
+
doNotPushHistory,
|
|
671
|
+
historyDescription,
|
|
672
|
+
historySource
|
|
660
673
|
}?: DslOpOptions): Promise<MNode | MNode[] | void>;
|
|
661
674
|
doPaste(config: MNode[], position?: PastePosition): Promise<MNode[]>;
|
|
662
675
|
doAlignCenter(config: MNode): Promise<MNode>;
|
|
@@ -671,7 +684,9 @@ declare class Editor extends BaseService {
|
|
|
671
684
|
*/
|
|
672
685
|
alignCenter(config: MNode | MNode[], {
|
|
673
686
|
doNotSelect,
|
|
674
|
-
doNotPushHistory
|
|
687
|
+
doNotPushHistory,
|
|
688
|
+
historyDescription,
|
|
689
|
+
historySource
|
|
675
690
|
}?: DslOpOptions): Promise<MNode | MNode[]>;
|
|
676
691
|
/**
|
|
677
692
|
* 移动当前选中节点位置
|
|
@@ -680,7 +695,9 @@ declare class Editor extends BaseService {
|
|
|
680
695
|
* @param options.doNotPushHistory 是否不写入历史记录(默认 false)
|
|
681
696
|
*/
|
|
682
697
|
moveLayer(offset: number | LayerOffset, {
|
|
683
|
-
doNotPushHistory
|
|
698
|
+
doNotPushHistory,
|
|
699
|
+
historyDescription,
|
|
700
|
+
historySource
|
|
684
701
|
}?: DslOpOptions): Promise<void>;
|
|
685
702
|
/**
|
|
686
703
|
* 移动一个或多个节点到指定容器中。
|
|
@@ -699,10 +716,14 @@ declare class Editor extends BaseService {
|
|
|
699
716
|
moveToContainer(config: MNode | MNode[], targetId: Id, {
|
|
700
717
|
doNotSelect,
|
|
701
718
|
doNotSwitchPage,
|
|
702
|
-
doNotPushHistory
|
|
719
|
+
doNotPushHistory,
|
|
720
|
+
historyDescription,
|
|
721
|
+
historySource
|
|
703
722
|
}?: DslOpOptions): Promise<MNode | MNode[]>;
|
|
704
723
|
dragTo(config: MNode | MNode[], targetParent: MContainer, targetIndex: number, {
|
|
705
|
-
doNotPushHistory
|
|
724
|
+
doNotPushHistory,
|
|
725
|
+
historyDescription,
|
|
726
|
+
historySource
|
|
706
727
|
}?: DslOpOptions): Promise<void>;
|
|
707
728
|
/**
|
|
708
729
|
* 撤销当前操作
|
|
@@ -742,7 +763,9 @@ declare class Editor extends BaseService {
|
|
|
742
763
|
*/
|
|
743
764
|
gotoPageStep(targetCursor: number): Promise<number>;
|
|
744
765
|
move(left: number, top: number, {
|
|
745
|
-
doNotPushHistory
|
|
766
|
+
doNotPushHistory,
|
|
767
|
+
historyDescription,
|
|
768
|
+
historySource
|
|
746
769
|
}?: DslOpOptions): Promise<void>;
|
|
747
770
|
resetState(): void;
|
|
748
771
|
destroy(): void;
|
|
@@ -770,7 +793,7 @@ declare class Editor extends BaseService {
|
|
|
770
793
|
private selectedConfigExceptionHandler;
|
|
771
794
|
}
|
|
772
795
|
type EditorService = Editor;
|
|
773
|
-
declare const _default$
|
|
796
|
+
declare const _default$41: Editor;
|
|
774
797
|
//#endregion
|
|
775
798
|
//#region temp/packages/editor/src/services/events.d.ts
|
|
776
799
|
declare const canUsePluginMethods$5: {
|
|
@@ -792,7 +815,7 @@ declare class Events extends BaseService {
|
|
|
792
815
|
usePlugin(options: AsyncHookPlugin<AsyncMethodName$3, Events> & SyncHookPlugin<SyncMethodName$3, Events>): void;
|
|
793
816
|
}
|
|
794
817
|
type EventsService = Events;
|
|
795
|
-
declare const _default$
|
|
818
|
+
declare const _default$42: Events;
|
|
796
819
|
//#endregion
|
|
797
820
|
//#region temp/packages/editor/src/utils/undo-redo.d.ts
|
|
798
821
|
declare class UndoRedo<T = any> {
|
|
@@ -885,7 +908,8 @@ declare class History extends BaseService {
|
|
|
885
908
|
oldContent: CodeBlockContent | null;
|
|
886
909
|
newContent: CodeBlockContent | null;
|
|
887
910
|
changeRecords?: ChangeRecord[]; /** 可选的人类可读描述(如「修改按钮颜色」),仅用于历史面板展示。 */
|
|
888
|
-
historyDescription?: string;
|
|
911
|
+
historyDescription?: string; /** 可选的操作途径(配置面板 / 菜单 / 接口等),仅用于历史面板展示与埋点。 */
|
|
912
|
+
source?: HistoryOpSource;
|
|
889
913
|
}): CodeBlockStepValue | null;
|
|
890
914
|
/**
|
|
891
915
|
* 推入一条数据源变更记录(与页面/节点完全无关),按 `dataSourceId` 维度独立一份 UndoRedo 栈。
|
|
@@ -895,7 +919,8 @@ declare class History extends BaseService {
|
|
|
895
919
|
oldSchema: DataSourceSchema | null;
|
|
896
920
|
newSchema: DataSourceSchema | null;
|
|
897
921
|
changeRecords?: ChangeRecord[]; /** 可选的人类可读描述,仅用于历史面板展示。 */
|
|
898
|
-
historyDescription?: string;
|
|
922
|
+
historyDescription?: string; /** 可选的操作途径(配置面板 / 菜单 / 接口等),仅用于历史面板展示与埋点。 */
|
|
923
|
+
source?: HistoryOpSource;
|
|
899
924
|
}): DataSourceStepValue | null;
|
|
900
925
|
/** 撤销指定代码块的最近一次变更。 */
|
|
901
926
|
undoCodeBlock(codeBlockId: Id): CodeBlockStepValue | null;
|
|
@@ -984,7 +1009,7 @@ declare class History extends BaseService {
|
|
|
984
1009
|
private getDataSourceUndoRedo;
|
|
985
1010
|
}
|
|
986
1011
|
type HistoryService = History;
|
|
987
|
-
declare const _default$
|
|
1012
|
+
declare const _default$43: History;
|
|
988
1013
|
//#endregion
|
|
989
1014
|
//#region temp/packages/editor/src/services/keybinding.d.ts
|
|
990
1015
|
declare class Keybinding extends BaseService {
|
|
@@ -1122,7 +1147,7 @@ declare class Props extends BaseService {
|
|
|
1122
1147
|
private setRelateId;
|
|
1123
1148
|
}
|
|
1124
1149
|
type PropsService = Props;
|
|
1125
|
-
declare const _default$
|
|
1150
|
+
declare const _default$45: Props;
|
|
1126
1151
|
//#endregion
|
|
1127
1152
|
//#region temp/packages/editor/src/services/stageOverlay.d.ts
|
|
1128
1153
|
declare const canUsePluginMethods$3: {
|
|
@@ -1149,7 +1174,7 @@ declare class StageOverlay extends BaseService {
|
|
|
1149
1174
|
private updateSelectStatus;
|
|
1150
1175
|
}
|
|
1151
1176
|
type StageOverlayService = StageOverlay;
|
|
1152
|
-
declare const _default$
|
|
1177
|
+
declare const _default$46: StageOverlay;
|
|
1153
1178
|
//#endregion
|
|
1154
1179
|
//#region temp/packages/editor/src/services/storage.d.ts
|
|
1155
1180
|
interface Options$1 {
|
|
@@ -1212,7 +1237,7 @@ declare class WebStorage extends BaseService {
|
|
|
1212
1237
|
private getValueAndProtocol;
|
|
1213
1238
|
}
|
|
1214
1239
|
type StorageService = WebStorage;
|
|
1215
|
-
declare const _default$
|
|
1240
|
+
declare const _default$47: WebStorage;
|
|
1216
1241
|
//#endregion
|
|
1217
1242
|
//#region temp/packages/editor/src/services/ui.d.ts
|
|
1218
1243
|
declare const canUsePluginMethods$1: {
|
|
@@ -1232,7 +1257,7 @@ declare class Ui extends BaseService {
|
|
|
1232
1257
|
private setStageRect;
|
|
1233
1258
|
}
|
|
1234
1259
|
type UiService = Ui;
|
|
1235
|
-
declare const _default$
|
|
1260
|
+
declare const _default$48: Ui;
|
|
1236
1261
|
//#endregion
|
|
1237
1262
|
//#region temp/packages/editor/src/type.d.ts
|
|
1238
1263
|
type EditorSlots = FrameworkSlots & WorkspaceSlots & SidebarSlots & PropsPanelSlots & {
|
|
@@ -1376,6 +1401,11 @@ interface StageOptions {
|
|
|
1376
1401
|
*/
|
|
1377
1402
|
alwaysMultiSelect?: boolean;
|
|
1378
1403
|
disabledRule?: boolean;
|
|
1404
|
+
/**
|
|
1405
|
+
* 禁用「非点击画布选中组件时(如从图层树、面包屑等外部选中),对选中区域做高亮闪烁提示」,
|
|
1406
|
+
* 默认 false(即默认开启闪烁)
|
|
1407
|
+
*/
|
|
1408
|
+
disabledFlashTip?: boolean;
|
|
1379
1409
|
zoom?: number;
|
|
1380
1410
|
/** 画布双击前的钩子函数,返回 false 则阻止默认的双击行为 */
|
|
1381
1411
|
beforeDblclick?: (event: MouseEvent) => Promise<boolean | void> | boolean | void;
|
|
@@ -1597,6 +1627,55 @@ interface SideComponent extends MenuComponent {
|
|
|
1597
1627
|
props?: Record<string, any>;
|
|
1598
1628
|
};
|
|
1599
1629
|
}
|
|
1630
|
+
/**
|
|
1631
|
+
* 历史记录面板(HistoryListPanel)的自定义扩展 tab。
|
|
1632
|
+
*
|
|
1633
|
+
* 业务方可通过 Editor 的 `historyListExtraTabs` 注入额外的历史记录 tab,
|
|
1634
|
+
* 例如某个自定义模块维护自己的操作历史时,可以在历史记录面板中增加一个
|
|
1635
|
+
* 独立的 tab 来展示与回滚。内置的「页面 / 数据源 / 代码块」三个 tab 之后
|
|
1636
|
+
* 会依次追加这些扩展 tab。
|
|
1637
|
+
*/
|
|
1638
|
+
interface HistoryListExtraTab {
|
|
1639
|
+
/** tab 唯一标识,作为 TMagicTabs 的 name */
|
|
1640
|
+
name: string;
|
|
1641
|
+
/** tab 显示文案,支持传入函数以展示动态内容(如记录数量) */
|
|
1642
|
+
label: string | (() => string);
|
|
1643
|
+
/** tab 内容区渲染的组件(Vue 组件或字符串标签) */
|
|
1644
|
+
component: any;
|
|
1645
|
+
/** 传入内容组件的 props */
|
|
1646
|
+
props?: Record<string, any>;
|
|
1647
|
+
/** 内容组件的事件监听 */
|
|
1648
|
+
listeners?: Record<string, (..._args: any[]) => any>;
|
|
1649
|
+
}
|
|
1650
|
+
/**
|
|
1651
|
+
* 对比表单(CompareForm)的对比类型:
|
|
1652
|
+
* - node: 节点组件,按 `type` 从 propsService 获取属性表单配置
|
|
1653
|
+
* - data-source: 数据源,按 `type`(base/http/...) 从 dataSourceService 获取数据源表单配置
|
|
1654
|
+
* - code-block: 数据源代码块,使用内置的代码块表单配置
|
|
1655
|
+
*/
|
|
1656
|
+
type CompareCategory = 'node' | 'data-source' | 'code-block' | string;
|
|
1657
|
+
/**
|
|
1658
|
+
* 自定义 `loadConfig` 时回传的上下文,聚合了组件当前的对比入参,
|
|
1659
|
+
* 方便调用方在外部按需拼装 FormConfig。
|
|
1660
|
+
*/
|
|
1661
|
+
interface CompareFormLoadConfigContext {
|
|
1662
|
+
/** 对比类型,见 CompareCategory */
|
|
1663
|
+
category: string;
|
|
1664
|
+
/** 节点 / 数据源类型 */
|
|
1665
|
+
type?: string;
|
|
1666
|
+
/** 数据源代码块场景下的数据源类型 */
|
|
1667
|
+
dataSourceType?: string;
|
|
1668
|
+
/**
|
|
1669
|
+
* 内置的默认 FormConfig 加载逻辑(按 `category` 从 propsService / dataSourceService /
|
|
1670
|
+
* 代码块工具取配置)。自定义 `loadConfig` 可调用它复用默认结果,再做二次加工。
|
|
1671
|
+
*/
|
|
1672
|
+
defaultLoadConfig: () => Promise<FormConfig>;
|
|
1673
|
+
}
|
|
1674
|
+
/**
|
|
1675
|
+
* 自定义 FormConfig 加载逻辑。传入后将接管内置的按 `category` 取配置逻辑,
|
|
1676
|
+
* 可通过 `ctx.defaultLoadConfig()` 复用默认结果再做二次加工。
|
|
1677
|
+
*/
|
|
1678
|
+
type CompareFormLoadConfig = (ctx: CompareFormLoadConfigContext) => FormConfig | Promise<FormConfig>;
|
|
1600
1679
|
declare enum SideItemKey {
|
|
1601
1680
|
COMPONENT_LIST = "component-list",
|
|
1602
1681
|
LAYER = "layer",
|
|
@@ -1705,6 +1784,27 @@ interface CodeParamStatement {
|
|
|
1705
1784
|
[key: string]: any;
|
|
1706
1785
|
}
|
|
1707
1786
|
type HistoryOpType = 'add' | 'remove' | 'update';
|
|
1787
|
+
/**
|
|
1788
|
+
* 历史记录的「操作途径」——标记本次变更由哪条交互入口触发,仅用于历史面板展示 / 业务埋点,
|
|
1789
|
+
* 不影响 undo/redo 行为。缺省(未传)时 UI 视为「未知」。
|
|
1790
|
+
*
|
|
1791
|
+
* - `stage`:画布(拖拽 / 缩放 / 排序等舞台直接操作)
|
|
1792
|
+
* - `tree`:树形面板(图层 / 数据源 / 代码块等树形结构里的拖拽 / 菜单操作)
|
|
1793
|
+
* - `component-panel`:组件面板(左侧组件列表点击 / 拖拽新增组件)
|
|
1794
|
+
* - `props`:配置面板表单(属性表单字段编辑)
|
|
1795
|
+
* - `code`:源码编辑器(配置面板「源码」面板里直接编辑 JSON/代码后保存)
|
|
1796
|
+
* - `stage-contextmenu`:画布右键菜单(舞台上节点的右键上下文菜单)
|
|
1797
|
+
* - `tree-contextmenu`:树面板右键菜单(图层 / 数据源 / 代码块等树形列表上的右键上下文菜单)
|
|
1798
|
+
* - `toolbar`:工具栏菜单(顶部导航工具栏按钮)
|
|
1799
|
+
* - `shortcut`:键盘快捷键
|
|
1800
|
+
* - `rollback`:历史回滚(历史面板里对某条历史「回滚」,反向应用为一条新记录,类 git revert)
|
|
1801
|
+
* - `api`:代码 / 接口调用(程序化触发)
|
|
1802
|
+
* - `ai`:AI 生成 / 智能助手触发的变更
|
|
1803
|
+
* - `unknown`:未知来源
|
|
1804
|
+
*
|
|
1805
|
+
* 通过 `(string & {})` 允许业务侧扩展自定义途径字符串,同时保留内置值的自动补全。
|
|
1806
|
+
*/
|
|
1807
|
+
type HistoryOpSource = 'stage' | 'tree' | 'component-panel' | 'props' | 'code' | 'stage-contextmenu' | 'tree-contextmenu' | 'toolbar' | 'shortcut' | 'rollback' | 'api' | 'ai' | 'unknown' | (string & {});
|
|
1708
1808
|
interface StepValue {
|
|
1709
1809
|
/** 页面信息 */
|
|
1710
1810
|
data: {
|
|
@@ -1745,6 +1845,16 @@ interface StepValue {
|
|
|
1745
1845
|
* 不影响 undo/redo 行为;缺省时面板会根据节点 / propPath 自动生成描述。
|
|
1746
1846
|
*/
|
|
1747
1847
|
historyDescription?: string;
|
|
1848
|
+
/**
|
|
1849
|
+
* 操作途径:标记本次变更由哪条交互入口触发,取值见 {@link HistoryOpSource}
|
|
1850
|
+
* (画布 / 树面板 / 组件面板 / 配置面板 / 源码编辑器 / 右键菜单 / 工具栏 / 快捷键 / 回滚 / 接口 等)。
|
|
1851
|
+
* 仅用于历史面板展示与业务埋点,不影响 undo/redo 行为;缺省时面板视为「未知」。
|
|
1852
|
+
*/
|
|
1853
|
+
source?: HistoryOpSource;
|
|
1854
|
+
/**
|
|
1855
|
+
* 入栈时间戳(毫秒)。在 historyService.push 时自动写入(若调用方未指定),仅用于历史面板展示。
|
|
1856
|
+
*/
|
|
1857
|
+
timestamp?: number;
|
|
1748
1858
|
}
|
|
1749
1859
|
/**
|
|
1750
1860
|
* 代码块历史记录条目。按 codeBlock.id 分组保存到 historyState.codeBlockState。
|
|
@@ -1766,6 +1876,10 @@ interface CodeBlockStepValue {
|
|
|
1766
1876
|
changeRecords?: ChangeRecord[];
|
|
1767
1877
|
/** 调用方可选传入的人类可读描述,用于历史面板展示;不影响 undo/redo 行为。 */
|
|
1768
1878
|
historyDescription?: string;
|
|
1879
|
+
/** 操作途径:标记本次变更由哪条交互入口触发,取值见 {@link HistoryOpSource};仅用于历史面板展示与埋点,不影响 undo/redo 行为。 */
|
|
1880
|
+
source?: HistoryOpSource;
|
|
1881
|
+
/** 入栈时间戳(毫秒),入栈时自动写入,仅用于历史面板展示。 */
|
|
1882
|
+
timestamp?: number;
|
|
1769
1883
|
}
|
|
1770
1884
|
/**
|
|
1771
1885
|
* 数据源历史记录条目。按 dataSource.id 分组保存到 historyState.dataSourceState。
|
|
@@ -1787,6 +1901,10 @@ interface DataSourceStepValue {
|
|
|
1787
1901
|
changeRecords?: ChangeRecord[];
|
|
1788
1902
|
/** 调用方可选传入的人类可读描述,用于历史面板展示;不影响 undo/redo 行为。 */
|
|
1789
1903
|
historyDescription?: string;
|
|
1904
|
+
/** 操作途径:标记本次变更由哪条交互入口触发,取值见 {@link HistoryOpSource};仅用于历史面板展示与埋点,不影响 undo/redo 行为。 */
|
|
1905
|
+
source?: HistoryOpSource;
|
|
1906
|
+
/** 入栈时间戳(毫秒),入栈时自动写入,仅用于历史面板展示。 */
|
|
1907
|
+
timestamp?: number;
|
|
1790
1908
|
}
|
|
1791
1909
|
interface HistoryState {
|
|
1792
1910
|
pageId?: Id;
|
|
@@ -2045,10 +2163,12 @@ type AsyncMethodName = Writable<(typeof canUsePluginMethods)['async']>;
|
|
|
2045
2163
|
* 历史记录写入相关的通用配置(codeBlock / dataSource / editor 共用)
|
|
2046
2164
|
* - doNotPushHistory: 操作完成后是否不要将本次操作压入历史栈(撤销/重做记录),默认 false
|
|
2047
2165
|
* - historyDescription: 入栈时附带的人类可读描述,用于历史面板展示;不影响 undo/redo 行为,缺省时面板会自动生成描述
|
|
2166
|
+
* - historySource: 操作途径,取值见 {@link HistoryOpSource}(画布 / 树面板 / 组件面板 / 配置面板 / 源码编辑器 / 右键菜单 / 工具栏 / 快捷键 / 回滚 / 接口 等),用于历史面板展示与埋点;不影响 undo/redo 行为
|
|
2048
2167
|
*/
|
|
2049
2168
|
interface HistoryOpOptions {
|
|
2050
2169
|
doNotPushHistory?: boolean;
|
|
2051
2170
|
historyDescription?: string;
|
|
2171
|
+
historySource?: HistoryOpSource;
|
|
2052
2172
|
}
|
|
2053
2173
|
/**
|
|
2054
2174
|
* 在 HistoryOpOptions 基础上携带 form 端 propPath/value 变更记录,
|
|
@@ -2066,6 +2186,25 @@ interface DslOpOptions extends HistoryOpOptions {
|
|
|
2066
2186
|
doNotSelect?: boolean;
|
|
2067
2187
|
doNotSwitchPage?: boolean;
|
|
2068
2188
|
}
|
|
2189
|
+
/** 差异对话框的入参 */
|
|
2190
|
+
interface DiffDialogPayload {
|
|
2191
|
+
/** 表单类别 */
|
|
2192
|
+
category?: CompareCategory;
|
|
2193
|
+
/** 节点类型 / 数据源类型 */
|
|
2194
|
+
type?: string;
|
|
2195
|
+
/** 代码块场景下的数据源类型 */
|
|
2196
|
+
dataSourceType?: string;
|
|
2197
|
+
/** 该 step 修改前的值(oldNode / oldSchema / oldContent) */
|
|
2198
|
+
lastValue: Record<string, any>;
|
|
2199
|
+
/** 该 step 修改后的值(newNode / newSchema / newContent) */
|
|
2200
|
+
value: Record<string, any>;
|
|
2201
|
+
/** 当前编辑器中实际的最新值;不传或为 null 时禁用「与当前对比」 */
|
|
2202
|
+
currentValue?: Record<string, any> | null;
|
|
2203
|
+
/** 用于标题展示的目标名称 */
|
|
2204
|
+
targetLabel?: string;
|
|
2205
|
+
/** 用于标题展示的目标 id */
|
|
2206
|
+
id?: string | number;
|
|
2207
|
+
}
|
|
2069
2208
|
//#endregion
|
|
2070
2209
|
//#region temp/packages/editor/src/hooks/use-code-block-edit.d.ts
|
|
2071
2210
|
declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockService"]) => {
|
|
@@ -2129,7 +2268,11 @@ declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockService"])
|
|
|
2129
2268
|
}, {}, {}, {}, {}> | null>>;
|
|
2130
2269
|
createCodeBlock: () => Promise<void>;
|
|
2131
2270
|
editCode: (id: string) => Promise<void>;
|
|
2132
|
-
deleteCode: (key: string
|
|
2271
|
+
deleteCode: (key: string, {
|
|
2272
|
+
historySource
|
|
2273
|
+
}?: {
|
|
2274
|
+
historySource?: HistoryOpSource;
|
|
2275
|
+
}) => Promise<void>;
|
|
2133
2276
|
submitCodeBlockHandler: (values: CodeBlockContent, eventData?: ContainerChangeEventData) => Promise<void>;
|
|
2134
2277
|
};
|
|
2135
2278
|
//#endregion
|
|
@@ -2536,7 +2679,7 @@ declare const H_GUIDE_LINE_STORAGE_KEY = "$MagicStageHorizontalGuidelinesData";
|
|
|
2536
2679
|
declare const V_GUIDE_LINE_STORAGE_KEY = "$MagicStageVerticalGuidelinesData";
|
|
2537
2680
|
//#endregion
|
|
2538
2681
|
//#region temp/packages/editor/src/utils/monaco-editor.d.ts
|
|
2539
|
-
declare const _default$
|
|
2682
|
+
declare const _default$44: () => Promise<typeof import("monaco-editor")>;
|
|
2540
2683
|
//#endregion
|
|
2541
2684
|
//#region temp/packages/form/src/schema.d.ts
|
|
2542
2685
|
interface ChangeRecord$1 {
|
|
@@ -2635,6 +2778,8 @@ interface EditorProps {
|
|
|
2635
2778
|
alwaysMultiSelect?: boolean;
|
|
2636
2779
|
/** 禁用页面片 */
|
|
2637
2780
|
disabledPageFragment?: boolean;
|
|
2781
|
+
/** 禁用「非点击画布选中组件时(如从图层树、面包屑等外部选中),对选中区域做高亮闪烁提示」,默认 false(即默认开启闪烁) */
|
|
2782
|
+
disabledFlashTip?: boolean;
|
|
2638
2783
|
/** 禁用双击在浮层中单独编辑选中组件 */
|
|
2639
2784
|
disabledStageOverlay?: boolean;
|
|
2640
2785
|
/** 禁用属性配置面板右下角显示源码的按钮 */
|
|
@@ -2674,6 +2819,8 @@ interface EditorProps {
|
|
|
2674
2819
|
/** 组件树节点双击前的钩子函数,返回 false 则阻止默认的双击行为 */
|
|
2675
2820
|
beforeLayerNodeDblclick?: (event: MouseEvent, data: TreeNodeData) => Promise<boolean | void> | boolean | void;
|
|
2676
2821
|
extendFormState?: (state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2822
|
+
/** 历史记录面板的自定义扩展 tab,追加在内置的页面/数据源/代码块 tab 之后 */
|
|
2823
|
+
historyListExtraTabs?: HistoryListExtraTab[];
|
|
2677
2824
|
/** 页面顺序拖拽配置参数 */
|
|
2678
2825
|
pageBarSortOptions?: PageBarSortOptions;
|
|
2679
2826
|
/** 页面搜索函数 */
|
|
@@ -3597,6 +3744,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
3597
3744
|
disabledMultiSelect: boolean;
|
|
3598
3745
|
alwaysMultiSelect: boolean;
|
|
3599
3746
|
disabledPageFragment: boolean;
|
|
3747
|
+
historyListExtraTabs: HistoryListExtraTab[];
|
|
3600
3748
|
disabledShowSrc: boolean;
|
|
3601
3749
|
customContentMenu: CustomContentMenuFunction;
|
|
3602
3750
|
layerContentMenu: (MenuButton | MenuComponent)[];
|
|
@@ -3616,10 +3764,11 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
3616
3764
|
datasourceConfigs: Record<string, import("@tmagic/form-schema").FormConfig>;
|
|
3617
3765
|
containerHighlightDuration: number;
|
|
3618
3766
|
containerHighlightType: import("@tmagic/stage").ContainerHighlightType;
|
|
3767
|
+
disabledFlashTip: boolean;
|
|
3619
3768
|
canSelect: (el: HTMLElement) => boolean | Promise<boolean>;
|
|
3620
3769
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
3621
|
-
declare const __VLS_export$
|
|
3622
|
-
declare const _default$
|
|
3770
|
+
declare const __VLS_export$36: __VLS_WithSlots$12<typeof __VLS_base$12, __VLS_Slots$12>;
|
|
3771
|
+
declare const _default$33: typeof __VLS_export$36;
|
|
3623
3772
|
type __VLS_WithSlots$12<T, S> = T & {
|
|
3624
3773
|
new (): {
|
|
3625
3774
|
$slots: S;
|
|
@@ -3627,7 +3776,7 @@ type __VLS_WithSlots$12<T, S> = T & {
|
|
|
3627
3776
|
};
|
|
3628
3777
|
//#endregion
|
|
3629
3778
|
//#region temp/packages/editor/src/layouts/CodeEditor.vue.d.ts
|
|
3630
|
-
type __VLS_Props$
|
|
3779
|
+
type __VLS_Props$33 = {
|
|
3631
3780
|
initValues?: any;
|
|
3632
3781
|
modifiedValues?: any;
|
|
3633
3782
|
type?: 'diff';
|
|
@@ -3643,7 +3792,7 @@ type __VLS_Props$31 = {
|
|
|
3643
3792
|
};
|
|
3644
3793
|
editorCustomType?: string;
|
|
3645
3794
|
};
|
|
3646
|
-
declare const __VLS_export$
|
|
3795
|
+
declare const __VLS_export$35: import("@vue/runtime-core").DefineComponent<__VLS_Props$33, {
|
|
3647
3796
|
values: import("@vue/reactivity").Ref<string, string>;
|
|
3648
3797
|
getEditor(): Monaco.editor.IStandaloneCodeEditor | Monaco.editor.IStandaloneDiffEditor | null;
|
|
3649
3798
|
getVsEditor(): Monaco.editor.IStandaloneCodeEditor | null;
|
|
@@ -3654,7 +3803,7 @@ declare const __VLS_export$33: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
3654
3803
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
3655
3804
|
save: (...args: any[]) => void;
|
|
3656
3805
|
initd: (...args: any[]) => void;
|
|
3657
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
3806
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$33> & Readonly<{
|
|
3658
3807
|
onSave?: ((...args: any[]) => any) | undefined;
|
|
3659
3808
|
onInitd?: ((...args: any[]) => any) | undefined;
|
|
3660
3809
|
}>, {
|
|
@@ -3665,13 +3814,13 @@ declare const __VLS_export$33: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
3665
3814
|
autoSave: boolean;
|
|
3666
3815
|
disabledFullScreen: boolean;
|
|
3667
3816
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
3668
|
-
declare const _default$
|
|
3817
|
+
declare const _default$32: typeof __VLS_export$35;
|
|
3669
3818
|
//#endregion
|
|
3670
3819
|
//#region temp/packages/editor/src/layouts/sidebar/ComponentListPanel.vue.d.ts
|
|
3671
3820
|
type __VLS_Slots$11 = ComponentListPanelSlots;
|
|
3672
3821
|
declare const __VLS_base$11: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
3673
|
-
declare const __VLS_export$
|
|
3674
|
-
declare const _default$6: typeof __VLS_export$
|
|
3822
|
+
declare const __VLS_export$34: __VLS_WithSlots$11<typeof __VLS_base$11, __VLS_Slots$11>;
|
|
3823
|
+
declare const _default$6: typeof __VLS_export$34;
|
|
3675
3824
|
type __VLS_WithSlots$11<T, S> = T & {
|
|
3676
3825
|
new (): {
|
|
3677
3826
|
$slots: S;
|
|
@@ -3680,7 +3829,7 @@ type __VLS_WithSlots$11<T, S> = T & {
|
|
|
3680
3829
|
//#endregion
|
|
3681
3830
|
//#region temp/packages/editor/src/layouts/sidebar/layer/LayerPanel.vue.d.ts
|
|
3682
3831
|
type __VLS_Slots$10 = LayerPanelSlots;
|
|
3683
|
-
type __VLS_Props$
|
|
3832
|
+
type __VLS_Props$32 = {
|
|
3684
3833
|
layerContentMenu: (MenuButton | MenuComponent)[];
|
|
3685
3834
|
indent?: number;
|
|
3686
3835
|
nextLevelIndentIncrement?: number;
|
|
@@ -3689,13 +3838,13 @@ type __VLS_Props$30 = {
|
|
|
3689
3838
|
canDropIn?: CanDropInFunction; /** 组件树节点双击前的钩子函数,返回 false 则阻止默认的双击行为 */
|
|
3690
3839
|
beforeNodeDblclick?: (_event: MouseEvent, _data: TreeNodeData) => Promise<boolean | void> | boolean | void;
|
|
3691
3840
|
};
|
|
3692
|
-
declare const __VLS_base$10: import("@vue/runtime-core").DefineComponent<__VLS_Props$
|
|
3841
|
+
declare const __VLS_base$10: import("@vue/runtime-core").DefineComponent<__VLS_Props$32, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
3693
3842
|
"node-dblclick": (event: MouseEvent, data: TreeNodeData) => any;
|
|
3694
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
3843
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$32> & Readonly<{
|
|
3695
3844
|
"onNode-dblclick"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
3696
3845
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
3697
|
-
declare const __VLS_export$
|
|
3698
|
-
declare const _default$
|
|
3846
|
+
declare const __VLS_export$33: __VLS_WithSlots$10<typeof __VLS_base$10, __VLS_Slots$10>;
|
|
3847
|
+
declare const _default$25: typeof __VLS_export$33;
|
|
3699
3848
|
type __VLS_WithSlots$10<T, S> = T & {
|
|
3700
3849
|
new (): {
|
|
3701
3850
|
$slots: S;
|
|
@@ -3703,34 +3852,34 @@ type __VLS_WithSlots$10<T, S> = T & {
|
|
|
3703
3852
|
};
|
|
3704
3853
|
//#endregion
|
|
3705
3854
|
//#region temp/packages/editor/src/fields/CodeSelect.vue.d.ts
|
|
3706
|
-
type __VLS_Props$
|
|
3707
|
-
declare const __VLS_export$
|
|
3855
|
+
type __VLS_Props$31 = FieldProps<CodeSelectConfig>;
|
|
3856
|
+
declare const __VLS_export$32: import("@vue/runtime-core").DefineComponent<__VLS_Props$31, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
3708
3857
|
change: (v: any, eventData: ContainerChangeEventData) => any;
|
|
3709
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
3858
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$31> & Readonly<{
|
|
3710
3859
|
onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
|
|
3711
3860
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
3712
|
-
declare const _default$3: typeof __VLS_export$
|
|
3861
|
+
declare const _default$3: typeof __VLS_export$32;
|
|
3713
3862
|
//#endregion
|
|
3714
3863
|
//#region temp/packages/editor/src/fields/CodeSelectCol.vue.d.ts
|
|
3715
|
-
type __VLS_Props$
|
|
3716
|
-
declare const __VLS_export$
|
|
3864
|
+
type __VLS_Props$30 = FieldProps<CodeSelectColConfig>;
|
|
3865
|
+
declare const __VLS_export$31: import("@vue/runtime-core").DefineComponent<__VLS_Props$30, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
3717
3866
|
change: (v: any, eventData: ContainerChangeEventData) => any;
|
|
3718
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
3867
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$30> & Readonly<{
|
|
3719
3868
|
onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
|
|
3720
3869
|
}>, {
|
|
3721
3870
|
disabled: boolean;
|
|
3722
3871
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
3723
|
-
declare const _default$4: typeof __VLS_export$
|
|
3872
|
+
declare const _default$4: typeof __VLS_export$31;
|
|
3724
3873
|
//#endregion
|
|
3725
3874
|
//#region temp/packages/editor/src/fields/DataSourceFields.vue.d.ts
|
|
3726
|
-
type __VLS_Props$
|
|
3875
|
+
type __VLS_Props$29 = FieldProps<DataSourceFieldsConfig>;
|
|
3727
3876
|
type __VLS_ModelProps$4 = {
|
|
3728
3877
|
'width'?: number;
|
|
3729
3878
|
'visible'?: boolean;
|
|
3730
3879
|
'visible1'?: boolean;
|
|
3731
3880
|
};
|
|
3732
|
-
type __VLS_PublicProps$4 = __VLS_Props$
|
|
3733
|
-
declare const __VLS_export$
|
|
3881
|
+
type __VLS_PublicProps$4 = __VLS_Props$29 & __VLS_ModelProps$4;
|
|
3882
|
+
declare const __VLS_export$30: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$4, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
3734
3883
|
change: (v: any, eventData?: ContainerChangeEventData | undefined) => any;
|
|
3735
3884
|
"update:width": (value: number) => any;
|
|
3736
3885
|
"update:visible": (value: boolean) => any;
|
|
@@ -3743,16 +3892,16 @@ declare const __VLS_export$28: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
3743
3892
|
}>, {
|
|
3744
3893
|
disabled: boolean;
|
|
3745
3894
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
3746
|
-
declare const _default$12: typeof __VLS_export$
|
|
3895
|
+
declare const _default$12: typeof __VLS_export$30;
|
|
3747
3896
|
//#endregion
|
|
3748
3897
|
//#region temp/packages/editor/src/fields/DataSourceMocks.vue.d.ts
|
|
3749
|
-
type __VLS_Props$
|
|
3898
|
+
type __VLS_Props$28 = FieldProps<DataSourceMocksConfig>;
|
|
3750
3899
|
type __VLS_ModelProps$3 = {
|
|
3751
3900
|
'width'?: number;
|
|
3752
3901
|
'visible'?: boolean;
|
|
3753
3902
|
};
|
|
3754
|
-
type __VLS_PublicProps$3 = __VLS_Props$
|
|
3755
|
-
declare const __VLS_export$
|
|
3903
|
+
type __VLS_PublicProps$3 = __VLS_Props$28 & __VLS_ModelProps$3;
|
|
3904
|
+
declare const __VLS_export$29: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$3, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
3756
3905
|
change: (...args: any[]) => void;
|
|
3757
3906
|
"update:width": (value: number) => void;
|
|
3758
3907
|
"update:visible": (value: boolean) => void;
|
|
@@ -3763,91 +3912,91 @@ declare const __VLS_export$27: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
3763
3912
|
}>, {
|
|
3764
3913
|
disabled: boolean;
|
|
3765
3914
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
3766
|
-
declare const _default$16: typeof __VLS_export$
|
|
3915
|
+
declare const _default$16: typeof __VLS_export$29;
|
|
3767
3916
|
//#endregion
|
|
3768
3917
|
//#region temp/packages/editor/src/fields/DataSourceMethods.vue.d.ts
|
|
3769
|
-
type __VLS_Props$
|
|
3770
|
-
declare const __VLS_export$
|
|
3918
|
+
type __VLS_Props$27 = FieldProps<DataSourceMethodsConfig>;
|
|
3919
|
+
declare const __VLS_export$28: import("@vue/runtime-core").DefineComponent<__VLS_Props$27, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
3771
3920
|
change: (...args: any[]) => void;
|
|
3772
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
3921
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$27> & Readonly<{
|
|
3773
3922
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
3774
3923
|
}>, {
|
|
3775
3924
|
disabled: boolean;
|
|
3776
3925
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
3777
|
-
declare const _default$15: typeof __VLS_export$
|
|
3926
|
+
declare const _default$15: typeof __VLS_export$28;
|
|
3778
3927
|
//#endregion
|
|
3779
3928
|
//#region temp/packages/editor/src/fields/DataSourceInput.vue.d.ts
|
|
3780
|
-
type __VLS_Props$
|
|
3781
|
-
declare const __VLS_export$
|
|
3929
|
+
type __VLS_Props$26 = FieldProps<DataSourceInputConfig>;
|
|
3930
|
+
declare const __VLS_export$27: import("@vue/runtime-core").DefineComponent<__VLS_Props$26, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
3782
3931
|
change: (value: string) => any;
|
|
3783
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
3932
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$26> & Readonly<{
|
|
3784
3933
|
onChange?: ((value: string) => any) | undefined;
|
|
3785
3934
|
}>, {
|
|
3786
3935
|
disabled: boolean;
|
|
3787
3936
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
3788
|
-
declare const _default$13: typeof __VLS_export$
|
|
3937
|
+
declare const _default$13: typeof __VLS_export$27;
|
|
3789
3938
|
//#endregion
|
|
3790
3939
|
//#region temp/packages/editor/src/fields/DataSourceSelect.vue.d.ts
|
|
3791
|
-
type __VLS_Props$
|
|
3792
|
-
declare const __VLS_export$
|
|
3940
|
+
type __VLS_Props$25 = FieldProps<DataSourceSelect>;
|
|
3941
|
+
declare const __VLS_export$26: import("@vue/runtime-core").DefineComponent<__VLS_Props$25, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
3793
3942
|
change: (...args: any[]) => void;
|
|
3794
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
3943
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$25> & Readonly<{
|
|
3795
3944
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
3796
3945
|
}>, {
|
|
3797
3946
|
disabled: boolean;
|
|
3798
3947
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
3799
|
-
declare const _default$17: typeof __VLS_export$
|
|
3948
|
+
declare const _default$17: typeof __VLS_export$26;
|
|
3800
3949
|
//#endregion
|
|
3801
3950
|
//#region temp/packages/editor/src/fields/DataSourceMethodSelect.vue.d.ts
|
|
3802
|
-
type __VLS_Props$
|
|
3803
|
-
declare const __VLS_export$
|
|
3951
|
+
type __VLS_Props$24 = FieldProps<DataSourceMethodSelectConfig>;
|
|
3952
|
+
declare const __VLS_export$25: import("@vue/runtime-core").DefineComponent<__VLS_Props$24, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
3804
3953
|
change: (...args: any[]) => void;
|
|
3805
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
3954
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$24> & Readonly<{
|
|
3806
3955
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
3807
3956
|
}>, {
|
|
3808
3957
|
disabled: boolean;
|
|
3809
3958
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
3810
|
-
declare const _default$14: typeof __VLS_export$
|
|
3959
|
+
declare const _default$14: typeof __VLS_export$25;
|
|
3811
3960
|
//#endregion
|
|
3812
3961
|
//#region temp/packages/editor/src/fields/DataSourceFieldSelect/Index.vue.d.ts
|
|
3813
|
-
type __VLS_Props$
|
|
3814
|
-
declare const __VLS_export$
|
|
3962
|
+
type __VLS_Props$23 = FieldProps<DataSourceFieldSelectConfig>;
|
|
3963
|
+
declare const __VLS_export$24: import("@vue/runtime-core").DefineComponent<__VLS_Props$23, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
3815
3964
|
change: (...args: any[]) => void;
|
|
3816
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
3965
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$23> & Readonly<{
|
|
3817
3966
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
3818
3967
|
}>, {
|
|
3819
3968
|
disabled: boolean;
|
|
3820
3969
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
3821
|
-
declare const _default$11: typeof __VLS_export$
|
|
3970
|
+
declare const _default$11: typeof __VLS_export$24;
|
|
3822
3971
|
//#endregion
|
|
3823
3972
|
//#region temp/packages/editor/src/fields/EventSelect.vue.d.ts
|
|
3824
|
-
type __VLS_Props$
|
|
3825
|
-
declare const __VLS_export$
|
|
3973
|
+
type __VLS_Props$22 = FieldProps<EventSelectConfig>;
|
|
3974
|
+
declare const __VLS_export$23: import("@vue/runtime-core").DefineComponent<__VLS_Props$22, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
3826
3975
|
change: (v: any, eventData?: ContainerChangeEventData | undefined) => any;
|
|
3827
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
3976
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$22> & Readonly<{
|
|
3828
3977
|
onChange?: ((v: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
3829
3978
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
3830
|
-
declare const _default$19: typeof __VLS_export$
|
|
3979
|
+
declare const _default$19: typeof __VLS_export$23;
|
|
3831
3980
|
//#endregion
|
|
3832
3981
|
//#region temp/packages/editor/src/fields/KeyValue.vue.d.ts
|
|
3833
|
-
type __VLS_Props$
|
|
3834
|
-
declare const __VLS_export$
|
|
3982
|
+
type __VLS_Props$21 = FieldProps<KeyValueConfig>;
|
|
3983
|
+
declare const __VLS_export$22: import("@vue/runtime-core").DefineComponent<__VLS_Props$21, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
3835
3984
|
change: (value: Record<string, any>) => any;
|
|
3836
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
3985
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$21> & Readonly<{
|
|
3837
3986
|
onChange?: ((value: Record<string, any>) => any) | undefined;
|
|
3838
3987
|
}>, {
|
|
3839
3988
|
disabled: boolean;
|
|
3840
3989
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
3841
|
-
declare const _default$
|
|
3990
|
+
declare const _default$24: typeof __VLS_export$22;
|
|
3842
3991
|
//#endregion
|
|
3843
3992
|
//#region temp/packages/editor/src/layouts/sidebar/code-block/CodeBlockList.vue.d.ts
|
|
3844
3993
|
type __VLS_Slots$9 = CodeBlockListSlots;
|
|
3845
|
-
type __VLS_Props$
|
|
3994
|
+
type __VLS_Props$20 = {
|
|
3846
3995
|
indent?: number;
|
|
3847
3996
|
nextLevelIndentIncrement?: number;
|
|
3848
3997
|
customError?: (_id: Id, _errorType: CodeDeleteErrorType) => any;
|
|
3849
3998
|
};
|
|
3850
|
-
declare const __VLS_base$9: import("@vue/runtime-core").DefineComponent<__VLS_Props$
|
|
3999
|
+
declare const __VLS_base$9: import("@vue/runtime-core").DefineComponent<__VLS_Props$20, {
|
|
3851
4000
|
nodeStatusMap: import("@vue/reactivity").Ref<Map<Id, {
|
|
3852
4001
|
visible: boolean;
|
|
3853
4002
|
expand: boolean;
|
|
@@ -3860,18 +4009,26 @@ declare const __VLS_base$9: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
3860
4009
|
draggable: boolean;
|
|
3861
4010
|
}> & Omit<Map<Id, LayerNodeStatus>, keyof Map<any, any>>)>;
|
|
3862
4011
|
filter: (text: string | string[]) => void;
|
|
3863
|
-
deleteCode: (id: string
|
|
4012
|
+
deleteCode: (id: string, {
|
|
4013
|
+
historySource
|
|
4014
|
+
}?: {
|
|
4015
|
+
historySource?: HistoryOpSource;
|
|
4016
|
+
}) => Promise<void>;
|
|
3864
4017
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
3865
|
-
remove: (id: string
|
|
4018
|
+
remove: (id: string, args_1: {
|
|
4019
|
+
historySource?: HistoryOpSource;
|
|
4020
|
+
}) => any;
|
|
3866
4021
|
edit: (id: string) => any;
|
|
3867
4022
|
"node-contextmenu": (event: MouseEvent, data: TreeNodeData) => any;
|
|
3868
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
3869
|
-
onRemove?: ((id: string
|
|
4023
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$20> & Readonly<{
|
|
4024
|
+
onRemove?: ((id: string, args_1: {
|
|
4025
|
+
historySource?: HistoryOpSource;
|
|
4026
|
+
}) => any) | undefined;
|
|
3870
4027
|
onEdit?: ((id: string) => any) | undefined;
|
|
3871
4028
|
"onNode-contextmenu"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
3872
4029
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
3873
|
-
declare const __VLS_export$
|
|
3874
|
-
declare const _default$1: typeof __VLS_export$
|
|
4030
|
+
declare const __VLS_export$21: __VLS_WithSlots$9<typeof __VLS_base$9, __VLS_Slots$9>;
|
|
4031
|
+
declare const _default$1: typeof __VLS_export$21;
|
|
3875
4032
|
type __VLS_WithSlots$9<T, S> = T & {
|
|
3876
4033
|
new (): {
|
|
3877
4034
|
$slots: S;
|
|
@@ -3880,15 +4037,15 @@ type __VLS_WithSlots$9<T, S> = T & {
|
|
|
3880
4037
|
//#endregion
|
|
3881
4038
|
//#region temp/packages/editor/src/layouts/sidebar/code-block/CodeBlockListPanel.vue.d.ts
|
|
3882
4039
|
type __VLS_Slots$8 = CodeBlockListPanelSlots;
|
|
3883
|
-
type __VLS_Props$
|
|
4040
|
+
type __VLS_Props$19 = {
|
|
3884
4041
|
indent?: number;
|
|
3885
4042
|
nextLevelIndentIncrement?: number;
|
|
3886
4043
|
customError?: (_id: Id, _errorType: CodeDeleteErrorType) => any;
|
|
3887
4044
|
customContentMenu: CustomContentMenuFunction;
|
|
3888
4045
|
};
|
|
3889
|
-
declare const __VLS_base$8: import("@vue/runtime-core").DefineComponent<__VLS_Props$
|
|
3890
|
-
declare const __VLS_export$
|
|
3891
|
-
declare const _default$2: typeof __VLS_export$
|
|
4046
|
+
declare const __VLS_base$8: import("@vue/runtime-core").DefineComponent<__VLS_Props$19, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$19> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
4047
|
+
declare const __VLS_export$20: __VLS_WithSlots$8<typeof __VLS_base$8, __VLS_Slots$8>;
|
|
4048
|
+
declare const _default$2: typeof __VLS_export$20;
|
|
3892
4049
|
type __VLS_WithSlots$8<T, S> = T & {
|
|
3893
4050
|
new (): {
|
|
3894
4051
|
$slots: S;
|
|
@@ -3896,7 +4053,7 @@ type __VLS_WithSlots$8<T, S> = T & {
|
|
|
3896
4053
|
};
|
|
3897
4054
|
//#endregion
|
|
3898
4055
|
//#region temp/packages/editor/src/layouts/sidebar/data-source/DataSourceConfigPanel.vue.d.ts
|
|
3899
|
-
type __VLS_Props$
|
|
4056
|
+
type __VLS_Props$18 = {
|
|
3900
4057
|
title?: string;
|
|
3901
4058
|
values: any;
|
|
3902
4059
|
disabled: boolean;
|
|
@@ -3905,8 +4062,8 @@ type __VLS_ModelProps$2 = {
|
|
|
3905
4062
|
'visible'?: boolean;
|
|
3906
4063
|
'width'?: number;
|
|
3907
4064
|
};
|
|
3908
|
-
type __VLS_PublicProps$2 = __VLS_Props$
|
|
3909
|
-
declare const __VLS_export$
|
|
4065
|
+
type __VLS_PublicProps$2 = __VLS_Props$18 & __VLS_ModelProps$2;
|
|
4066
|
+
declare const __VLS_export$19: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$2, {
|
|
3910
4067
|
show(): void;
|
|
3911
4068
|
hide(): void;
|
|
3912
4069
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
@@ -3922,10 +4079,10 @@ declare const __VLS_export$17: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
3922
4079
|
"onUpdate:width"?: ((value: number) => any) | undefined;
|
|
3923
4080
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
3924
4081
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
3925
|
-
declare const _default$10: typeof __VLS_export$
|
|
4082
|
+
declare const _default$10: typeof __VLS_export$19;
|
|
3926
4083
|
//#endregion
|
|
3927
4084
|
//#region temp/packages/editor/src/layouts/sidebar/data-source/DataSourceAddButton.vue.d.ts
|
|
3928
|
-
type __VLS_Props$
|
|
4085
|
+
type __VLS_Props$17 = {
|
|
3929
4086
|
datasourceTypeList: {
|
|
3930
4087
|
text: string;
|
|
3931
4088
|
type: string;
|
|
@@ -3933,20 +4090,20 @@ type __VLS_Props$15 = {
|
|
|
3933
4090
|
addButtonConfig?: ButtonProps;
|
|
3934
4091
|
addButtonText?: string;
|
|
3935
4092
|
};
|
|
3936
|
-
declare const __VLS_export$
|
|
4093
|
+
declare const __VLS_export$18: import("@vue/runtime-core").DefineComponent<__VLS_Props$17, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
3937
4094
|
add: (type: string) => any;
|
|
3938
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
4095
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$17> & Readonly<{
|
|
3939
4096
|
onAdd?: ((type: string) => any) | undefined;
|
|
3940
4097
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
3941
|
-
declare const _default$9: typeof __VLS_export$
|
|
4098
|
+
declare const _default$9: typeof __VLS_export$18;
|
|
3942
4099
|
//#endregion
|
|
3943
4100
|
//#region temp/packages/editor/src/layouts/props-panel/PropsPanel.vue.d.ts
|
|
3944
4101
|
type __VLS_Slots$7 = PropsPanelSlots;
|
|
3945
|
-
type __VLS_Props$
|
|
4102
|
+
type __VLS_Props$16 = {
|
|
3946
4103
|
disabledShowSrc?: boolean;
|
|
3947
4104
|
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
3948
4105
|
};
|
|
3949
|
-
declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Props$
|
|
4106
|
+
declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Props$16, {
|
|
3950
4107
|
getFormState(): FormState | undefined;
|
|
3951
4108
|
submit: (v: MNode, eventData?: ContainerChangeEventData) => Promise<void>;
|
|
3952
4109
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
@@ -4399,7 +4556,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
4399
4556
|
unmounted: () => any;
|
|
4400
4557
|
"submit-error": (e: any) => any;
|
|
4401
4558
|
"form-error": (e: any) => any;
|
|
4402
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
4559
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$16> & Readonly<{
|
|
4403
4560
|
onMounted?: ((internalInstance: {
|
|
4404
4561
|
$: import("@vue/runtime-core").ComponentInternalInstance;
|
|
4405
4562
|
$data: {};
|
|
@@ -4850,8 +5007,8 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
4850
5007
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
4851
5008
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
4852
5009
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
4853
|
-
declare const __VLS_export$
|
|
4854
|
-
declare const _default$
|
|
5010
|
+
declare const __VLS_export$17: __VLS_WithSlots$7<typeof __VLS_base$7, __VLS_Slots$7>;
|
|
5011
|
+
declare const _default$29: typeof __VLS_export$17;
|
|
4855
5012
|
type __VLS_WithSlots$7<T, S> = T & {
|
|
4856
5013
|
new (): {
|
|
4857
5014
|
$slots: S;
|
|
@@ -4862,7 +5019,7 @@ type __VLS_WithSlots$7<T, S> = T & {
|
|
|
4862
5019
|
type __VLS_Slots$6 = {
|
|
4863
5020
|
'props-form-panel-header'(_props: {}): any;
|
|
4864
5021
|
};
|
|
4865
|
-
type __VLS_Props$
|
|
5022
|
+
type __VLS_Props$15 = {
|
|
4866
5023
|
config: FormConfig;
|
|
4867
5024
|
values: FormValue;
|
|
4868
5025
|
disabledShowSrc?: boolean;
|
|
@@ -4871,7 +5028,7 @@ type __VLS_Props$13 = {
|
|
|
4871
5028
|
labelPosition?: string;
|
|
4872
5029
|
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
4873
5030
|
};
|
|
4874
|
-
declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Props$
|
|
5031
|
+
declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Props$15, {
|
|
4875
5032
|
configForm: Readonly<import("@vue/reactivity").ShallowRef<({
|
|
4876
5033
|
$: import("@vue/runtime-core").ComponentInternalInstance;
|
|
4877
5034
|
$data: {};
|
|
@@ -5056,15 +5213,15 @@ declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5056
5213
|
submit: (values: any, eventData?: ContainerChangeEventData | undefined) => any;
|
|
5057
5214
|
"submit-error": (e: any) => any;
|
|
5058
5215
|
"form-error": (e: any) => any;
|
|
5059
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
5216
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$15> & Readonly<{
|
|
5060
5217
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
5061
5218
|
onUnmounted?: (() => any) | undefined;
|
|
5062
5219
|
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
5063
5220
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
5064
5221
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
5065
5222
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5066
|
-
declare const __VLS_export$
|
|
5067
|
-
declare const _default$
|
|
5223
|
+
declare const __VLS_export$16: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
|
|
5224
|
+
declare const _default$28: typeof __VLS_export$16;
|
|
5068
5225
|
type __VLS_WithSlots$6<T, S> = T & {
|
|
5069
5226
|
new (): {
|
|
5070
5227
|
$slots: S;
|
|
@@ -5072,20 +5229,20 @@ type __VLS_WithSlots$6<T, S> = T & {
|
|
|
5072
5229
|
};
|
|
5073
5230
|
//#endregion
|
|
5074
5231
|
//#region temp/packages/editor/src/components/ToolButton.vue.d.ts
|
|
5075
|
-
type __VLS_Props$
|
|
5232
|
+
type __VLS_Props$14 = {
|
|
5076
5233
|
data?: MenuButton | MenuComponent;
|
|
5077
5234
|
eventType?: 'mousedown' | 'mouseup' | 'click';
|
|
5078
5235
|
};
|
|
5079
|
-
declare const __VLS_export$
|
|
5236
|
+
declare const __VLS_export$15: import("@vue/runtime-core").DefineComponent<__VLS_Props$14, {
|
|
5080
5237
|
getElRef: () => Readonly<import("@vue/reactivity").ShallowRef<HTMLDivElement | null>>;
|
|
5081
|
-
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
5238
|
+
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$14> & Readonly<{}>, {
|
|
5082
5239
|
data: MenuButton | MenuComponent;
|
|
5083
5240
|
eventType: "mousedown" | "mouseup" | "click";
|
|
5084
5241
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5085
|
-
declare const _default$
|
|
5242
|
+
declare const _default$34: typeof __VLS_export$15;
|
|
5086
5243
|
//#endregion
|
|
5087
5244
|
//#region temp/packages/editor/src/components/ContentMenu.vue.d.ts
|
|
5088
|
-
type __VLS_Props$
|
|
5245
|
+
type __VLS_Props$13 = {
|
|
5089
5246
|
menuData?: (MenuButton | MenuComponent)[];
|
|
5090
5247
|
isSubMenu?: boolean;
|
|
5091
5248
|
active?: string | number;
|
|
@@ -5095,7 +5252,7 @@ declare var __VLS_7$1: {};
|
|
|
5095
5252
|
type __VLS_Slots$5 = {} & {
|
|
5096
5253
|
title?: (props: typeof __VLS_7$1) => any;
|
|
5097
5254
|
};
|
|
5098
|
-
declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<__VLS_Props$
|
|
5255
|
+
declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<__VLS_Props$13, {
|
|
5099
5256
|
menu: Readonly<import("@vue/reactivity").ShallowRef<HTMLDivElement | null>>;
|
|
5100
5257
|
menuPosition: Ref<{
|
|
5101
5258
|
left: number;
|
|
@@ -5121,7 +5278,7 @@ declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5121
5278
|
mouseenter: () => any;
|
|
5122
5279
|
show: () => any;
|
|
5123
5280
|
hide: () => any;
|
|
5124
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
5281
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$13> & Readonly<{
|
|
5125
5282
|
onMouseenter?: (() => any) | undefined;
|
|
5126
5283
|
onShow?: (() => any) | undefined;
|
|
5127
5284
|
onHide?: (() => any) | undefined;
|
|
@@ -5130,8 +5287,8 @@ declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5130
5287
|
isSubMenu: boolean;
|
|
5131
5288
|
autoHide: boolean;
|
|
5132
5289
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5133
|
-
declare const __VLS_export$
|
|
5134
|
-
declare const _default$8: typeof __VLS_export$
|
|
5290
|
+
declare const __VLS_export$14: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
|
|
5291
|
+
declare const _default$8: typeof __VLS_export$14;
|
|
5135
5292
|
type __VLS_WithSlots$5<T, S> = T & {
|
|
5136
5293
|
new (): {
|
|
5137
5294
|
$slots: S;
|
|
@@ -5139,14 +5296,14 @@ type __VLS_WithSlots$5<T, S> = T & {
|
|
|
5139
5296
|
};
|
|
5140
5297
|
//#endregion
|
|
5141
5298
|
//#region temp/packages/editor/src/components/Icon.vue.d.ts
|
|
5142
|
-
type __VLS_Props$
|
|
5299
|
+
type __VLS_Props$12 = {
|
|
5143
5300
|
icon?: any;
|
|
5144
5301
|
};
|
|
5145
|
-
declare const __VLS_export$
|
|
5146
|
-
declare const _default$
|
|
5302
|
+
declare const __VLS_export$13: import("@vue/runtime-core").DefineComponent<__VLS_Props$12, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$12> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5303
|
+
declare const _default$23: typeof __VLS_export$13;
|
|
5147
5304
|
//#endregion
|
|
5148
5305
|
//#region temp/packages/editor/src/components/SplitView.vue.d.ts
|
|
5149
|
-
type __VLS_Props$
|
|
5306
|
+
type __VLS_Props$11 = {
|
|
5150
5307
|
width?: number;
|
|
5151
5308
|
left?: number;
|
|
5152
5309
|
right?: number;
|
|
@@ -5165,13 +5322,13 @@ type __VLS_Slots$4 = {} & {
|
|
|
5165
5322
|
} & {
|
|
5166
5323
|
right?: (props: typeof __VLS_19) => any;
|
|
5167
5324
|
};
|
|
5168
|
-
declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Props$
|
|
5325
|
+
declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Props$11, {
|
|
5169
5326
|
updateWidth(): void;
|
|
5170
5327
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5171
5328
|
change: (...args: any[]) => void;
|
|
5172
5329
|
"update:left": (...args: any[]) => void;
|
|
5173
5330
|
"update:right": (...args: any[]) => void;
|
|
5174
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
5331
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$11> & Readonly<{
|
|
5175
5332
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
5176
5333
|
"onUpdate:left"?: ((...args: any[]) => any) | undefined;
|
|
5177
5334
|
"onUpdate:right"?: ((...args: any[]) => any) | undefined;
|
|
@@ -5180,8 +5337,8 @@ declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5180
5337
|
minRight: number;
|
|
5181
5338
|
minCenter: number;
|
|
5182
5339
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5183
|
-
declare const __VLS_export$
|
|
5184
|
-
declare const _default$
|
|
5340
|
+
declare const __VLS_export$12: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
|
|
5341
|
+
declare const _default$26: typeof __VLS_export$12;
|
|
5185
5342
|
type __VLS_WithSlots$4<T, S> = T & {
|
|
5186
5343
|
new (): {
|
|
5187
5344
|
$slots: S;
|
|
@@ -5198,8 +5355,8 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<{}, {},
|
|
|
5198
5355
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{
|
|
5199
5356
|
onChange?: ((e: OnDrag$1<import("gesto").default>) => any) | undefined;
|
|
5200
5357
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
5201
|
-
declare const __VLS_export$
|
|
5202
|
-
declare const _default$
|
|
5358
|
+
declare const __VLS_export$11: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
5359
|
+
declare const _default$30: typeof __VLS_export$11;
|
|
5203
5360
|
type __VLS_WithSlots$3<T, S> = T & {
|
|
5204
5361
|
new (): {
|
|
5205
5362
|
$slots: S;
|
|
@@ -5207,7 +5364,7 @@ type __VLS_WithSlots$3<T, S> = T & {
|
|
|
5207
5364
|
};
|
|
5208
5365
|
//#endregion
|
|
5209
5366
|
//#region temp/packages/editor/src/components/CodeBlockEditor.vue.d.ts
|
|
5210
|
-
type __VLS_Props$
|
|
5367
|
+
type __VLS_Props$10 = {
|
|
5211
5368
|
content: Omit<CodeBlockContent, 'content'> & {
|
|
5212
5369
|
content: string;
|
|
5213
5370
|
};
|
|
@@ -5219,8 +5376,8 @@ type __VLS_ModelProps$1 = {
|
|
|
5219
5376
|
'width'?: number;
|
|
5220
5377
|
'visible'?: boolean;
|
|
5221
5378
|
};
|
|
5222
|
-
type __VLS_PublicProps$1 = __VLS_Props$
|
|
5223
|
-
declare const __VLS_export$
|
|
5379
|
+
type __VLS_PublicProps$1 = __VLS_Props$10 & __VLS_ModelProps$1;
|
|
5380
|
+
declare const __VLS_export$10: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$1, {
|
|
5224
5381
|
show(): Promise<void>;
|
|
5225
5382
|
hide(): Promise<void>;
|
|
5226
5383
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
@@ -5236,17 +5393,10 @@ declare const __VLS_export$8: import("@vue/runtime-core").DefineComponent<__VLS_
|
|
|
5236
5393
|
"onUpdate:width"?: ((value: number) => any) | undefined;
|
|
5237
5394
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
5238
5395
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5239
|
-
declare const _default: typeof __VLS_export$
|
|
5396
|
+
declare const _default: typeof __VLS_export$10;
|
|
5240
5397
|
//#endregion
|
|
5241
5398
|
//#region temp/packages/editor/src/components/CompareForm.vue.d.ts
|
|
5242
|
-
|
|
5243
|
-
* 对比类型:
|
|
5244
|
-
* - node: 节点组件,按 `type` 从 propsService 获取属性表单配置
|
|
5245
|
-
* - data-source: 数据源,按 `type`(base/http/...) 从 dataSourceService 获取数据源表单配置
|
|
5246
|
-
* - code-block: 数据源代码块,使用内置的代码块表单配置
|
|
5247
|
-
*/
|
|
5248
|
-
type CompareCategory = 'node' | 'data-source' | 'code-block';
|
|
5249
|
-
type __VLS_Props$7 = {
|
|
5399
|
+
type __VLS_Props$9 = {
|
|
5250
5400
|
/** 当前值(修改后的值) */value: Partial<MNode> | Partial<DataSourceSchema> | Partial<CodeBlockContent> | Record<string, any>; /** 用于对比的旧值(修改前的值) */
|
|
5251
5401
|
lastValue?: Partial<MNode> | Partial<DataSourceSchema> | Partial<CodeBlockContent> | Record<string, any>;
|
|
5252
5402
|
/**
|
|
@@ -5271,16 +5421,97 @@ type __VLS_Props$7 = {
|
|
|
5271
5421
|
* 因此在差异对比场景下也需要透传,避免出现 `formState.xxx is undefined` 的运行时错误。
|
|
5272
5422
|
*/
|
|
5273
5423
|
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
5424
|
+
/**
|
|
5425
|
+
* 自定义 FormConfig 加载逻辑。传入后将接管内置的按 `category`(node/data-source/code-block)
|
|
5426
|
+
* 取配置逻辑,调用方可根据业务自行返回(或异步返回)表单配置。可通过
|
|
5427
|
+
* `ctx.defaultLoadConfig()` 复用默认结果再做二次加工。返回的 config 直接用于对比展示。
|
|
5428
|
+
*/
|
|
5429
|
+
loadConfig?: CompareFormLoadConfig;
|
|
5274
5430
|
};
|
|
5275
|
-
declare const __VLS_export$
|
|
5431
|
+
declare const __VLS_export$9: import("@vue/runtime-core").DefineComponent<__VLS_Props$9, {
|
|
5276
5432
|
form: ShallowRef<InstanceType<typeof MForm> | null>;
|
|
5277
5433
|
config: Ref<FormConfig>;
|
|
5278
5434
|
reload: () => Promise<void>;
|
|
5279
|
-
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
5435
|
+
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$9> & Readonly<{}>, {
|
|
5280
5436
|
labelWidth: string;
|
|
5281
5437
|
category: CompareCategory;
|
|
5282
5438
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5283
|
-
declare const _default$5: typeof __VLS_export$
|
|
5439
|
+
declare const _default$5: typeof __VLS_export$9;
|
|
5440
|
+
//#endregion
|
|
5441
|
+
//#region temp/packages/editor/src/layouts/history-list/Bucket.vue.d.ts
|
|
5442
|
+
type __VLS_Props$8 = {
|
|
5443
|
+
/** Bucket 标题,例如 "数据源" / "代码块",渲染在 bucket 头部。 */title: string; /** 当前 bucket 对应的目标 id(dataSource.id 或 codeBlock.id),同时用于组装子项的 key。 */
|
|
5444
|
+
bucketId: string | number;
|
|
5445
|
+
/**
|
|
5446
|
+
* 子项 key 的命名空间前缀:内置 `ds` 表示数据源,`cb` 表示代码块;
|
|
5447
|
+
* 业务方复用 Bucket 时可传入自定义前缀(如 `mod`)。与上层折叠状态 key 保持一致。
|
|
5448
|
+
*/
|
|
5449
|
+
prefix: string; /** 是否展示底部「回到初始状态」入口,默认 true。无 undo cursor 语义的自定义历史可传 false 关闭。 */
|
|
5450
|
+
showInitial?: boolean; /** 当前 bucket 下的所有历史分组,按时间倒序展示(最近的操作在前)。 */
|
|
5451
|
+
groups: {
|
|
5452
|
+
applied: boolean;
|
|
5453
|
+
isCurrent?: boolean;
|
|
5454
|
+
opType: HistoryOpType;
|
|
5455
|
+
steps: {
|
|
5456
|
+
index: number;
|
|
5457
|
+
applied: boolean;
|
|
5458
|
+
isCurrent?: boolean;
|
|
5459
|
+
step: any;
|
|
5460
|
+
}[];
|
|
5461
|
+
}[]; /** 组级描述文案生成器,接收一个 group,返回展示文本。由父组件按业务类型注入。 */
|
|
5462
|
+
describeGroup: (_group: any) => string; /** 单步描述文案生成器,接收一个 step,返回展示文本。用于合并组展开后的子步列表。 */
|
|
5463
|
+
describeStep: (_step: any) => string; /** 判断某个 step 是否可查看差异(前后值都存在)。由父组件按业务类型注入;不传则一律不展示差异入口。 */
|
|
5464
|
+
isStepDiffable?: (_step: any) => boolean; /** 判断某个 step 是否支持回滚(如更新需带 changeRecords)。由父组件按业务类型注入;不传则已应用即可回滚。 */
|
|
5465
|
+
isStepRevertable?: (_step: any) => boolean; /** 共享的折叠状态表(key -> 是否展开),由顶层 panel 统一维护以便跨 tab 复用。 */
|
|
5466
|
+
expanded: Record<string, boolean>; /** 是否支持「跳转到该记录」(goto)。默认 true。 */
|
|
5467
|
+
gotoEnabled?: boolean;
|
|
5468
|
+
};
|
|
5469
|
+
declare const __VLS_export$8: import("@vue/runtime-core").DefineComponent<__VLS_Props$8, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {} & {
|
|
5470
|
+
toggle: (_key: string) => any;
|
|
5471
|
+
goto: (_bucketId: string | number, _index: number) => any;
|
|
5472
|
+
"diff-step": (_bucketId: string | number, _index: number) => any;
|
|
5473
|
+
"revert-step": (_bucketId: string | number, _index: number) => any;
|
|
5474
|
+
"goto-initial": (_bucketId: string | number) => any;
|
|
5475
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$8> & Readonly<{
|
|
5476
|
+
onToggle?: ((_key: string) => any) | undefined;
|
|
5477
|
+
onGoto?: ((_bucketId: string | number, _index: number) => any) | undefined;
|
|
5478
|
+
"onDiff-step"?: ((_bucketId: string | number, _index: number) => any) | undefined;
|
|
5479
|
+
"onRevert-step"?: ((_bucketId: string | number, _index: number) => any) | undefined;
|
|
5480
|
+
"onGoto-initial"?: ((_bucketId: string | number) => any) | undefined;
|
|
5481
|
+
}>, {
|
|
5482
|
+
gotoEnabled: boolean;
|
|
5483
|
+
showInitial: boolean;
|
|
5484
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5485
|
+
declare const _default$22: typeof __VLS_export$8;
|
|
5486
|
+
//#endregion
|
|
5487
|
+
//#region temp/packages/editor/src/layouts/history-list/HistoryDiffDialog.vue.d.ts
|
|
5488
|
+
type __VLS_Props$7 = {
|
|
5489
|
+
/**
|
|
5490
|
+
* 来自 Editor 顶层的 `extendFormState`,用于扩展 MForm.formState。
|
|
5491
|
+
* 透传给 CompareForm,从而让差异对比时表单 item 中依赖业务上下文的
|
|
5492
|
+
* `display` / `disabled` 等 filterFunction 正常工作。
|
|
5493
|
+
*/
|
|
5494
|
+
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
5495
|
+
/**
|
|
5496
|
+
* 自定义 FormConfig 加载逻辑,透传给 CompareForm。传入后将接管内置的按 `category`
|
|
5497
|
+
* 取配置逻辑,可通过 `ctx.defaultLoadConfig()` 复用默认结果再做二次加工。
|
|
5498
|
+
*/
|
|
5499
|
+
loadConfig?: CompareFormLoadConfig;
|
|
5500
|
+
width?: string;
|
|
5501
|
+
onConfirm?: () => void;
|
|
5502
|
+
selfDiffFieldTypes?: string[];
|
|
5503
|
+
};
|
|
5504
|
+
declare const __VLS_export$7: import("@vue/runtime-core").DefineComponent<__VLS_Props$7, {
|
|
5505
|
+
open: (p: DiffDialogPayload) => void;
|
|
5506
|
+
close: () => void;
|
|
5507
|
+
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5508
|
+
close: (...args: any[]) => void;
|
|
5509
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$7> & Readonly<{
|
|
5510
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
5511
|
+
}>, {
|
|
5512
|
+
width: string;
|
|
5513
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5514
|
+
declare const _default$21: typeof __VLS_export$7;
|
|
5284
5515
|
//#endregion
|
|
5285
5516
|
//#region temp/packages/editor/src/components/FloatingBox.vue.d.ts
|
|
5286
5517
|
interface Position {
|
|
@@ -5371,7 +5602,7 @@ declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5371
5602
|
indent: number;
|
|
5372
5603
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5373
5604
|
declare const __VLS_export$5: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
5374
|
-
declare const _default$
|
|
5605
|
+
declare const _default$35: typeof __VLS_export$5;
|
|
5375
5606
|
type __VLS_WithSlots$1<T, S> = T & {
|
|
5376
5607
|
new (): {
|
|
5377
5608
|
$slots: S;
|
|
@@ -5422,7 +5653,7 @@ declare const __VLS_base: import("@vue/runtime-core").DefineComponent<__VLS_Prop
|
|
|
5422
5653
|
isExpandable: IsExpandableFunction;
|
|
5423
5654
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5424
5655
|
declare const __VLS_export$4: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
5425
|
-
declare const _default$
|
|
5656
|
+
declare const _default$36: typeof __VLS_export$4;
|
|
5426
5657
|
type __VLS_WithSlots<T, S> = T & {
|
|
5427
5658
|
new (): {
|
|
5428
5659
|
$slots: S;
|
|
@@ -5438,7 +5669,7 @@ declare const __VLS_export$3: import("@vue/runtime-core").DefineComponent<__VLS_
|
|
|
5438
5669
|
}>, {
|
|
5439
5670
|
disabled: boolean;
|
|
5440
5671
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5441
|
-
declare const _default$
|
|
5672
|
+
declare const _default$27: typeof __VLS_export$3;
|
|
5442
5673
|
//#endregion
|
|
5443
5674
|
//#region temp/packages/editor/src/fields/DisplayConds.vue.d.ts
|
|
5444
5675
|
type __VLS_Props$2 = FieldProps<DisplayCondsConfig>;
|
|
@@ -5469,11 +5700,11 @@ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5469
5700
|
onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
|
|
5470
5701
|
onAddDiffCount?: (() => any) | undefined;
|
|
5471
5702
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5472
|
-
declare const _default$
|
|
5703
|
+
declare const _default$31: typeof __VLS_export;
|
|
5473
5704
|
//#endregion
|
|
5474
5705
|
//#region temp/packages/editor/src/plugin.d.ts
|
|
5475
|
-
declare const _default$
|
|
5706
|
+
declare const _default$39: {
|
|
5476
5707
|
install: (app: App, opt?: Partial<EditorInstallOptions | DesignPluginOptions | FormInstallOptions>) => void;
|
|
5477
5708
|
};
|
|
5478
5709
|
//#endregion
|
|
5479
|
-
export { AddMNode, AddPrefixToObject, AsyncAfterHook, AsyncBeforeHook, AsyncHookPlugin, AsyncMethodName, BeforeAdd, CODE_DRAFT_STORAGE_KEY, COPY_CODE_STORAGE_KEY, COPY_DS_STORAGE_KEY, COPY_STORAGE_KEY, CanDropInFunction, CanDropInScene, _default as CodeBlockEditor, CodeBlockHistoryGroup, _default$1 as CodeBlockList, _default$2 as CodeBlockListPanel, CodeBlockListPanelSlots, CodeBlockListSlots, CodeBlockStepValue, CodeDeleteErrorType, CodeDslItem, CodeParamStatement, CodeRelation, _default$3 as CodeSelect, _default$4 as CodeSelectCol, CodeState, ColumnLayout, CombineInfo, _default$5 as CompareForm, ComponentGroup, ComponentGroupState, ComponentItem, _default$6 as ComponentListPanel, ComponentListPanelSlots, _default$7 as CondOpSelect, _default$8 as ContentMenu, CustomContentMenuFunction, DEFAULT_LEFT_COLUMN_WIDTH, DEFAULT_RIGHT_COLUMN_WIDTH, _default$9 as DataSourceAddButton, _default$10 as DataSourceConfigPanel, _default$11 as DataSourceFieldSelect, _default$12 as DataSourceFields, DataSourceHistoryGroup, _default$13 as DataSourceInput, DataSourceListSlots, _default$14 as DataSourceMethodSelect, _default$15 as DataSourceMethods, _default$16 as DataSourceMocks, _default$17 as DataSourceSelect, DataSourceStepValue, DatasourceTypeOption, DepTargetType, _default$18 as DisplayConds, DragClassification, DragType, DslOpOptions, EditorEvents, EditorInstallOptions, EditorNodeInfo, EditorSlots, EventBus, EventBusEvent, _default$19 as EventSelect, Fixed2Other, _default$20 as FloatingBox, FrameworkSlots, GetCodeBlockFormConfigOptions, GetColumnWidth, GetConfig, H_GUIDE_LINE_STORAGE_KEY, HistoryOpOptions, HistoryOpOptionsWithChangeRecords, HistoryOpType, HistoryState, _default$
|
|
5710
|
+
export { AddMNode, AddPrefixToObject, AsyncAfterHook, AsyncBeforeHook, AsyncHookPlugin, AsyncMethodName, BeforeAdd, CODE_DRAFT_STORAGE_KEY, COPY_CODE_STORAGE_KEY, COPY_DS_STORAGE_KEY, COPY_STORAGE_KEY, CanDropInFunction, CanDropInScene, _default as CodeBlockEditor, CodeBlockHistoryGroup, _default$1 as CodeBlockList, _default$2 as CodeBlockListPanel, CodeBlockListPanelSlots, CodeBlockListSlots, CodeBlockStepValue, CodeDeleteErrorType, CodeDslItem, CodeParamStatement, CodeRelation, _default$3 as CodeSelect, _default$4 as CodeSelectCol, CodeState, ColumnLayout, CombineInfo, CompareCategory, _default$5 as CompareForm, CompareFormLoadConfig, CompareFormLoadConfigContext, ComponentGroup, ComponentGroupState, ComponentItem, _default$6 as ComponentListPanel, ComponentListPanelSlots, _default$7 as CondOpSelect, _default$8 as ContentMenu, CustomContentMenuFunction, DEFAULT_LEFT_COLUMN_WIDTH, DEFAULT_RIGHT_COLUMN_WIDTH, _default$9 as DataSourceAddButton, _default$10 as DataSourceConfigPanel, _default$11 as DataSourceFieldSelect, _default$12 as DataSourceFields, DataSourceHistoryGroup, _default$13 as DataSourceInput, DataSourceListSlots, _default$14 as DataSourceMethodSelect, _default$15 as DataSourceMethods, _default$16 as DataSourceMocks, _default$17 as DataSourceSelect, DataSourceStepValue, DatasourceTypeOption, DepTargetType, DiffDialogPayload, _default$18 as DisplayConds, DragClassification, DragType, DslOpOptions, EditorEvents, EditorInstallOptions, EditorNodeInfo, EditorSlots, EventBus, EventBusEvent, _default$19 as EventSelect, Fixed2Other, _default$20 as FloatingBox, FrameworkSlots, GetCodeBlockFormConfigOptions, GetColumnWidth, GetConfig, H_GUIDE_LINE_STORAGE_KEY, _default$21 as HistoryDiffDialog, _default$22 as HistoryListBucket, HistoryListExtraTab, HistoryOpOptions, HistoryOpOptionsWithChangeRecords, HistoryOpSource, HistoryOpType, HistoryState, _default$23 as Icon, IdleTask, IdleTaskEvents, IsExpandableFunction, KeyBindingCacheItem, KeyBindingCommand, KeyBindingItem, _default$24 as KeyValue, Keys, LEFT_COLUMN_WIDTH_STORAGE_KEY, LayerNodeSlots, LayerNodeStatus, LayerOffset, _default$25 as LayerPanel, LayerPanelSlots, Layout, _default$26 as LayoutContainer, _default$26 as SplitView, ListState, MIN_CENTER_COLUMN_WIDTH, MIN_LEFT_COLUMN_WIDTH, MIN_RIGHT_COLUMN_WIDTH, MenuBarData, MenuButton, MenuComponent, MenuItem, type OnDrag, PROPS_PANEL_WIDTH_STORAGE_KEY, PageBarSortOptions, _default$27 as PageFragmentSelect, PageHistoryGroup, PageHistoryStepEntry, PartSortableOptions, PastePosition, PropsFormConfigFunction, _default$28 as PropsFormPanel, PropsFormValueFunction, _default$29 as PropsPanel, PropsPanelSlots, PropsState, RIGHT_COLUMN_WIDTH_STORAGE_KEY, _default$30 as Resizer, ScrollViewer, ScrollViewerEvent, ScrollViewerSlots, Services, SetColumnWidth, SideBarData, SideComponent, SideItem, SideItemKey, SidebarSlots, StageCore, StageOptions, StageOverlayState, StageRect, StageSlots, StepValue, StoreState, StoreStateKey, _default$31 as StyleSetter, SyncAfterHook, SyncBeforeHook, SyncHookPlugin, _default$32 as TMagicCodeEditor, _default$33 as TMagicEditor, _default$34 as ToolButton, _default$35 as Tree, _default$36 as TreeNode, TreeNodeData, UI_SELECT_MODE_EVENT_NAME, UiState, UndoRedo, V_GUIDE_LINE_STORAGE_KEY, WorkspaceSlots, advancedTabConfig, arrayOptions, beforePaste, buildChangeRecords, calcAlignCenterStyle, calcLayerTargetIndex, calcMoveStyle, canUsePluginMethods, change2Fixed, classifyDragSources, _default$37 as codeBlockService, collectRelatedNodes, _default$38 as dataSourceService, debug, _default$39 as default, defaultIsExpandable, _default$40 as depService, designPlugin, displayTabConfig, editorNodeMergeCustomizer, _default$41 as editorService, eqOptions, error, eventTabConfig, _default$42 as eventsService, fillConfig, fixNodeLeft, fixNodePosition, formPlugin, generatePageName, generatePageNameByApp, getAddParent, getCascaderOptionsFromFields, getCodeBlockFormConfig, getDefaultConfig, getDisplayField, getEditorConfig, getFieldType, getFormConfig, getFormValue, getGuideLineFromCache, getInitPositionStyle, getNodeIndex, getPageFragmentList, getPageList, getPageNameList, getPositionInContainer, getRelativeStyle, _default$43 as historyService, info, isIncludeDataSource, _default$44 as loadMonaco, log, moveItemsInContainer, numberOptions, _default$45 as propsService, resolveSelectedNode, serializeConfig, setChildrenLayout, setEditorConfig, setLayout, _default$46 as stageOverlayService, _default$47 as storageService, styleTabConfig, tablePlugin, toggleFixedPosition, _default$48 as uiService, updateStatus, useCodeBlockEdit, useEditorContentHeight, useFilter, useFloatBox, useGetSo, useNextFloatBoxPosition, useNodeStatus, useServices, useStage, useWindowRect, warn };
|