@tmagic/editor 1.8.0-beta.28 → 1.8.0-beta.29
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/ScrollBar.vue_vue_type_script_setup_true_lang.js +4 -3
- package/dist/es/fields/DataSourceFieldSelect/FieldSelect.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/DataSourceMethods.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/es/hooks/use-code-block-edit.js +4 -2
- package/dist/es/layouts/CodeEditor.vue_vue_type_script_setup_true_lang.js +4 -3
- package/dist/es/layouts/props-panel/PropsPanel.vue_vue_type_script_setup_true_lang.js +8 -7
- package/dist/es/layouts/sidebar/layer/use-drag.js +11 -10
- package/dist/es/layouts/workspace/viewer/Stage.vue_vue_type_script_setup_true_lang.js +54 -8
- package/dist/es/services/editor.js +31 -25
- package/dist/es/style.css +1 -1
- package/dist/es/utils/editor.js +4 -2
- package/dist/style.css +1 -1
- package/dist/themes/magic-admin.css +1 -1
- package/dist/tmagic-editor-headless.umd.cjs +57 -45
- package/dist/tmagic-editor.umd.cjs +147 -81
- package/package.json +10 -10
- package/src/fields/DataSourceFieldSelect/FieldSelect.vue +1 -1
- package/src/layouts/workspace/viewer/Stage.vue +80 -10
- package/types/headless.d.ts +2 -3
- package/types/index.d.ts +244 -244
package/types/index.d.ts
CHANGED
|
@@ -939,7 +939,7 @@ declare const _default$46: Events;
|
|
|
939
939
|
/**
|
|
940
940
|
* UndoRedo 栈的可序列化快照,用于持久化(如写入 IndexedDB)后再还原。
|
|
941
941
|
*/
|
|
942
|
-
interface SerializedUndoRedo<T = any> {
|
|
942
|
+
export interface SerializedUndoRedo<T = any> {
|
|
943
943
|
/** 栈内全部元素(按时间正序,索引 0 为最早一步)。 */
|
|
944
944
|
elementList: T[];
|
|
945
945
|
/** 游标位置(已应用步骤数量)。 */
|
|
@@ -947,7 +947,7 @@ interface SerializedUndoRedo<T = any> {
|
|
|
947
947
|
/** 栈容量上限。 */
|
|
948
948
|
listMaxSize: number;
|
|
949
949
|
}
|
|
950
|
-
declare class UndoRedo<T = any> {
|
|
950
|
+
export declare class UndoRedo<T = any> {
|
|
951
951
|
/**
|
|
952
952
|
* 由 {@link UndoRedo.serialize} 产出的快照重建一个 UndoRedo 实例。
|
|
953
953
|
* 游标会被夹紧到 [0, length] 区间,避免脏数据导致越界。
|
|
@@ -1514,7 +1514,7 @@ type UiService = Ui;
|
|
|
1514
1514
|
declare const _default$53: Ui;
|
|
1515
1515
|
//#endregion
|
|
1516
1516
|
//#region temp/packages/editor/src/type.d.ts
|
|
1517
|
-
type EditorSlots = FrameworkSlots & WorkspaceSlots & SidebarSlots & PropsPanelSlots & {
|
|
1517
|
+
export type EditorSlots = FrameworkSlots & WorkspaceSlots & SidebarSlots & PropsPanelSlots & {
|
|
1518
1518
|
workspace(props: {
|
|
1519
1519
|
editorService: EditorService;
|
|
1520
1520
|
}): any;
|
|
@@ -1522,7 +1522,7 @@ type EditorSlots = FrameworkSlots & WorkspaceSlots & SidebarSlots & PropsPanelSl
|
|
|
1522
1522
|
editorService: EditorService;
|
|
1523
1523
|
}): any;
|
|
1524
1524
|
};
|
|
1525
|
-
interface FrameworkSlots {
|
|
1525
|
+
export interface FrameworkSlots {
|
|
1526
1526
|
header(props: {}): any;
|
|
1527
1527
|
nav(props: {}): any;
|
|
1528
1528
|
'content-before'(props: {}): any;
|
|
@@ -1545,19 +1545,19 @@ interface FrameworkSlots {
|
|
|
1545
1545
|
list: (MPage | MPageFragment)[];
|
|
1546
1546
|
}): any;
|
|
1547
1547
|
}
|
|
1548
|
-
interface ScrollViewerSlots {
|
|
1548
|
+
export interface ScrollViewerSlots {
|
|
1549
1549
|
before(props: {}): any;
|
|
1550
1550
|
content(props: {}): any;
|
|
1551
1551
|
default(props: {}): any;
|
|
1552
1552
|
}
|
|
1553
|
-
interface StageSlots extends ScrollViewerSlots {
|
|
1553
|
+
export interface StageSlots extends ScrollViewerSlots {
|
|
1554
1554
|
'stage-top'(props: {}): any;
|
|
1555
1555
|
}
|
|
1556
|
-
interface WorkspaceSlots extends StageSlots {
|
|
1556
|
+
export interface WorkspaceSlots extends StageSlots {
|
|
1557
1557
|
stage(props: {}): any;
|
|
1558
1558
|
'workspace-content'(props: {}): any;
|
|
1559
1559
|
}
|
|
1560
|
-
interface ComponentListPanelSlots {
|
|
1560
|
+
export interface ComponentListPanelSlots {
|
|
1561
1561
|
'component-list-panel-header'(props: {}): any;
|
|
1562
1562
|
'component-list'(props: {
|
|
1563
1563
|
componentGroupList: ComponentGroup[];
|
|
@@ -1566,23 +1566,23 @@ interface ComponentListPanelSlots {
|
|
|
1566
1566
|
component: ComponentItem;
|
|
1567
1567
|
}): any;
|
|
1568
1568
|
}
|
|
1569
|
-
interface CodeBlockListPanelSlots extends CodeBlockListSlots {
|
|
1569
|
+
export interface CodeBlockListPanelSlots extends CodeBlockListSlots {
|
|
1570
1570
|
'code-block-panel-search'(props: {}): any;
|
|
1571
1571
|
'code-block-panel-header'(props: {}): any;
|
|
1572
1572
|
}
|
|
1573
|
-
interface CodeBlockListSlots {
|
|
1573
|
+
export interface CodeBlockListSlots {
|
|
1574
1574
|
'code-block-panel-tool'(props: {
|
|
1575
1575
|
id: Id;
|
|
1576
1576
|
data: any;
|
|
1577
1577
|
}): any;
|
|
1578
1578
|
}
|
|
1579
|
-
interface DataSourceListSlots {
|
|
1579
|
+
export interface DataSourceListSlots {
|
|
1580
1580
|
'data-source-panel-tool'(props: {
|
|
1581
1581
|
data: any;
|
|
1582
1582
|
}): any;
|
|
1583
1583
|
'data-source-panel-search'(props: {}): any;
|
|
1584
1584
|
}
|
|
1585
|
-
interface LayerNodeSlots {
|
|
1585
|
+
export interface LayerNodeSlots {
|
|
1586
1586
|
'layer-node-content'(props: {
|
|
1587
1587
|
data: MNode;
|
|
1588
1588
|
}): any;
|
|
@@ -1593,16 +1593,16 @@ interface LayerNodeSlots {
|
|
|
1593
1593
|
data: MNode;
|
|
1594
1594
|
}): any;
|
|
1595
1595
|
}
|
|
1596
|
-
interface LayerPanelSlots extends LayerNodeSlots {
|
|
1596
|
+
export interface LayerPanelSlots extends LayerNodeSlots {
|
|
1597
1597
|
'layer-panel-header'(props: {}): any;
|
|
1598
1598
|
}
|
|
1599
|
-
interface PropsPanelSlots {
|
|
1599
|
+
export interface PropsPanelSlots {
|
|
1600
1600
|
'props-panel-header'(props: {}): any;
|
|
1601
1601
|
}
|
|
1602
|
-
type SidebarSlots = LayerPanelSlots & CodeBlockListPanelSlots & ComponentListPanelSlots & DataSourceListSlots;
|
|
1603
|
-
type BeforeAdd = (config: MNode, parent: MContainer) => Promise<MNode> | MNode;
|
|
1604
|
-
type GetConfig = (config: FormConfig) => Promise<FormConfig> | FormConfig;
|
|
1605
|
-
interface EditorInstallOptions {
|
|
1602
|
+
export type SidebarSlots = LayerPanelSlots & CodeBlockListPanelSlots & ComponentListPanelSlots & DataSourceListSlots;
|
|
1603
|
+
export type BeforeAdd = (config: MNode, parent: MContainer) => Promise<MNode> | MNode;
|
|
1604
|
+
export type GetConfig = (config: FormConfig) => Promise<FormConfig> | FormConfig;
|
|
1605
|
+
export interface EditorInstallOptions {
|
|
1606
1606
|
flat?: boolean;
|
|
1607
1607
|
parseDSL: <T = any>(dsl: string) => T;
|
|
1608
1608
|
customCreateMonacoEditor: (monaco: typeof import('monaco-editor'), codeEditorEl: HTMLElement, options: Monaco.editor.IStandaloneEditorConstructionOptions & {
|
|
@@ -1613,7 +1613,7 @@ interface EditorInstallOptions {
|
|
|
1613
1613
|
}) => Promise<Monaco.editor.IStandaloneDiffEditor> | Monaco.editor.IStandaloneDiffEditor;
|
|
1614
1614
|
[key: string]: any;
|
|
1615
1615
|
}
|
|
1616
|
-
interface Services {
|
|
1616
|
+
export interface Services {
|
|
1617
1617
|
editorService: EditorService;
|
|
1618
1618
|
historyService: HistoryService;
|
|
1619
1619
|
storageService: StorageService;
|
|
@@ -1635,7 +1635,7 @@ declare module '@tmagic/form-schema' {
|
|
|
1635
1635
|
stage?: any;
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
|
-
interface StageOptions {
|
|
1638
|
+
export interface StageOptions {
|
|
1639
1639
|
runtimeUrl?: string;
|
|
1640
1640
|
autoScrollIntoView?: boolean;
|
|
1641
1641
|
containerHighlightClassName?: string;
|
|
@@ -1684,15 +1684,15 @@ interface StageOptions {
|
|
|
1684
1684
|
* 避免某个面板校验通过时误清另一个面板记录的错误。
|
|
1685
1685
|
* 节点视为存在错误当且仅当任一来源存在非空文本。
|
|
1686
1686
|
*/
|
|
1687
|
-
interface NodeInvalidInfo {
|
|
1687
|
+
export interface NodeInvalidInfo {
|
|
1688
1688
|
/** 属性表单校验错误文案(可能为包含 <br> 的 HTML) */
|
|
1689
1689
|
props?: string;
|
|
1690
1690
|
/** 样式表单校验错误文案(可能为包含 <br> 的 HTML) */
|
|
1691
1691
|
style?: string;
|
|
1692
1692
|
}
|
|
1693
1693
|
/** 节点校验错误来源 */
|
|
1694
|
-
type NodeInvalidSource = keyof NodeInvalidInfo;
|
|
1695
|
-
interface StoreState {
|
|
1694
|
+
export type NodeInvalidSource = keyof NodeInvalidInfo;
|
|
1695
|
+
export interface StoreState {
|
|
1696
1696
|
root: MApp | null;
|
|
1697
1697
|
page: MPage | MPageFragment | null;
|
|
1698
1698
|
parent: MContainer | null;
|
|
@@ -1710,8 +1710,8 @@ interface StoreState {
|
|
|
1710
1710
|
/** 是否始终启用多选模式(无需按住 Ctrl/Meta) */
|
|
1711
1711
|
alwaysMultiSelect: boolean;
|
|
1712
1712
|
}
|
|
1713
|
-
type StoreStateKey = keyof StoreState;
|
|
1714
|
-
interface PropsState {
|
|
1713
|
+
export type StoreStateKey = keyof StoreState;
|
|
1714
|
+
export interface PropsState {
|
|
1715
1715
|
propsConfigMap: Record<string, FormConfig>;
|
|
1716
1716
|
propsValueMap: Record<string, Partial<MNode>>;
|
|
1717
1717
|
relateIdMap: Record<Id, Id>;
|
|
@@ -1720,7 +1720,7 @@ interface PropsState {
|
|
|
1720
1720
|
/** 禁用代码块 */
|
|
1721
1721
|
disabledCodeBlock: boolean;
|
|
1722
1722
|
}
|
|
1723
|
-
interface StageOverlayState {
|
|
1723
|
+
export interface StageOverlayState {
|
|
1724
1724
|
wrapDiv: HTMLDivElement;
|
|
1725
1725
|
sourceEl: HTMLElement | null;
|
|
1726
1726
|
contentEl: HTMLElement | null;
|
|
@@ -1730,29 +1730,29 @@ interface StageOverlayState {
|
|
|
1730
1730
|
wrapHeight: number;
|
|
1731
1731
|
stageOverlayVisible: boolean;
|
|
1732
1732
|
}
|
|
1733
|
-
interface ComponentGroupState {
|
|
1733
|
+
export interface ComponentGroupState {
|
|
1734
1734
|
list: ComponentGroup[];
|
|
1735
1735
|
}
|
|
1736
|
-
declare enum ColumnLayout {
|
|
1736
|
+
export declare enum ColumnLayout {
|
|
1737
1737
|
LEFT = "left",
|
|
1738
1738
|
CENTER = "center",
|
|
1739
1739
|
RIGHT = "right"
|
|
1740
1740
|
}
|
|
1741
|
-
interface SetColumnWidth {
|
|
1741
|
+
export interface SetColumnWidth {
|
|
1742
1742
|
[ColumnLayout.LEFT]?: number;
|
|
1743
1743
|
[ColumnLayout.CENTER]?: number | 'auto';
|
|
1744
1744
|
[ColumnLayout.RIGHT]?: number;
|
|
1745
1745
|
}
|
|
1746
|
-
interface GetColumnWidth {
|
|
1746
|
+
export interface GetColumnWidth {
|
|
1747
1747
|
[ColumnLayout.LEFT]: number;
|
|
1748
1748
|
[ColumnLayout.CENTER]: number;
|
|
1749
1749
|
[ColumnLayout.RIGHT]: number;
|
|
1750
1750
|
}
|
|
1751
|
-
interface StageRect {
|
|
1751
|
+
export interface StageRect {
|
|
1752
1752
|
width: number | string;
|
|
1753
1753
|
height: number | string;
|
|
1754
1754
|
}
|
|
1755
|
-
interface UiState {
|
|
1755
|
+
export interface UiState {
|
|
1756
1756
|
/** 当前点击画布是否触发选中,true: 不触发,false: 触发,默认为false */
|
|
1757
1757
|
uiSelectMode: boolean;
|
|
1758
1758
|
/** 是否显示整个配置源码, true: 显示, false: 不显示,默认为false */
|
|
@@ -1807,19 +1807,19 @@ interface UiState {
|
|
|
1807
1807
|
height: number;
|
|
1808
1808
|
};
|
|
1809
1809
|
}
|
|
1810
|
-
interface EditorNodeInfo {
|
|
1810
|
+
export interface EditorNodeInfo {
|
|
1811
1811
|
node: MNode | null;
|
|
1812
1812
|
parent: MContainer | null;
|
|
1813
1813
|
page: MPage | MPageFragment | null;
|
|
1814
1814
|
path: MNode[];
|
|
1815
1815
|
}
|
|
1816
|
-
interface AddMNode {
|
|
1816
|
+
export interface AddMNode {
|
|
1817
1817
|
type: string;
|
|
1818
1818
|
name?: string;
|
|
1819
1819
|
inputEvent?: DragEvent;
|
|
1820
1820
|
[key: string]: any;
|
|
1821
1821
|
}
|
|
1822
|
-
interface PastePosition {
|
|
1822
|
+
export interface PastePosition {
|
|
1823
1823
|
left?: number;
|
|
1824
1824
|
top?: number;
|
|
1825
1825
|
/**
|
|
@@ -1834,7 +1834,7 @@ interface PastePosition {
|
|
|
1834
1834
|
/**
|
|
1835
1835
|
* 菜单按钮
|
|
1836
1836
|
*/
|
|
1837
|
-
interface MenuButton {
|
|
1837
|
+
export interface MenuButton {
|
|
1838
1838
|
/**
|
|
1839
1839
|
* 按钮类型
|
|
1840
1840
|
* button: 只有文字不带边框的按钮
|
|
@@ -1866,7 +1866,7 @@ interface MenuButton {
|
|
|
1866
1866
|
type?: string;
|
|
1867
1867
|
};
|
|
1868
1868
|
}
|
|
1869
|
-
interface MenuComponent {
|
|
1869
|
+
export interface MenuComponent {
|
|
1870
1870
|
type: 'component';
|
|
1871
1871
|
/** Vue3组件 */
|
|
1872
1872
|
component: any;
|
|
@@ -1894,9 +1894,9 @@ interface MenuComponent {
|
|
|
1894
1894
|
* 'scale-to-fit': 缩放以适应
|
|
1895
1895
|
* 'history-list': 历史记录面板(按 页面 / 数据源 / 代码块 三个 tab 展示,相邻同目标修改自动合并)
|
|
1896
1896
|
*/
|
|
1897
|
-
type MenuItem = '/' | 'delete' | 'undo' | 'redo' | 'zoom' | 'zoom-in' | 'zoom-out' | 'guides' | 'rule' | 'scale-to-original' | 'scale-to-fit' | 'history-list' | MenuButton | MenuComponent | string;
|
|
1897
|
+
export type MenuItem = '/' | 'delete' | 'undo' | 'redo' | 'zoom' | 'zoom-in' | 'zoom-out' | 'guides' | 'rule' | 'scale-to-original' | 'scale-to-fit' | 'history-list' | MenuButton | MenuComponent | string;
|
|
1898
1898
|
/** 工具栏 */
|
|
1899
|
-
interface MenuBarData {
|
|
1899
|
+
export interface MenuBarData {
|
|
1900
1900
|
/** 顶部工具栏左边项 */
|
|
1901
1901
|
[ColumnLayout.LEFT]?: MenuItem[];
|
|
1902
1902
|
/** 顶部工具栏中间项 */
|
|
@@ -1904,7 +1904,7 @@ interface MenuBarData {
|
|
|
1904
1904
|
/** 顶部工具栏右边项 */
|
|
1905
1905
|
[ColumnLayout.RIGHT]?: MenuItem[];
|
|
1906
1906
|
}
|
|
1907
|
-
interface SideComponent extends MenuComponent {
|
|
1907
|
+
export interface SideComponent extends MenuComponent {
|
|
1908
1908
|
/** 显示文案 */
|
|
1909
1909
|
text: string;
|
|
1910
1910
|
/** tab样式 */
|
|
@@ -1933,7 +1933,7 @@ interface SideComponent extends MenuComponent {
|
|
|
1933
1933
|
* 独立的 tab 来展示与回滚。内置的「页面 / 数据源 / 代码块」三个 tab 之后
|
|
1934
1934
|
* 会依次追加这些扩展 tab。
|
|
1935
1935
|
*/
|
|
1936
|
-
interface HistoryListExtraTab {
|
|
1936
|
+
export interface HistoryListExtraTab {
|
|
1937
1937
|
/** tab 唯一标识,作为 TMagicTabs 的 name */
|
|
1938
1938
|
name: string;
|
|
1939
1939
|
/** tab 显示文案,支持传入函数以展示动态内容(如记录数量) */
|
|
@@ -1951,12 +1951,12 @@ interface HistoryListExtraTab {
|
|
|
1951
1951
|
* - data-source: 数据源,按 `type`(base/http/...) 从 dataSourceService 获取数据源表单配置
|
|
1952
1952
|
* - code-block: 数据源代码块,使用内置的代码块表单配置
|
|
1953
1953
|
*/
|
|
1954
|
-
type CompareCategory = 'node' | 'data-source' | 'code-block' | string;
|
|
1954
|
+
export type CompareCategory = 'node' | 'data-source' | 'code-block' | string;
|
|
1955
1955
|
/**
|
|
1956
1956
|
* 自定义 `loadConfig` 时回传的上下文,聚合了组件当前的对比入参,
|
|
1957
1957
|
* 方便调用方在外部按需拼装 FormConfig。
|
|
1958
1958
|
*/
|
|
1959
|
-
interface CompareFormLoadConfigContext {
|
|
1959
|
+
export interface CompareFormLoadConfigContext {
|
|
1960
1960
|
/** 对比类型,见 CompareCategory */
|
|
1961
1961
|
category: string;
|
|
1962
1962
|
/** 节点 / 数据源类型 */
|
|
@@ -1973,13 +1973,13 @@ interface CompareFormLoadConfigContext {
|
|
|
1973
1973
|
* 自定义 FormConfig 加载逻辑。传入后将接管内置的按 `category` 取配置逻辑,
|
|
1974
1974
|
* 可通过 `ctx.defaultLoadConfig()` 复用默认结果再做二次加工。
|
|
1975
1975
|
*/
|
|
1976
|
-
type CompareFormLoadConfig = (ctx: CompareFormLoadConfigContext) => FormConfig | Promise<FormConfig>;
|
|
1976
|
+
export type CompareFormLoadConfig = (ctx: CompareFormLoadConfigContext) => FormConfig | Promise<FormConfig>;
|
|
1977
1977
|
/**
|
|
1978
1978
|
* CompareForm / ViewForm 共用的基础 props。
|
|
1979
1979
|
* 两者都基于同一套「按 category 加载 FormConfig + 注入 services/stage」的逻辑(见 useCompareForm),
|
|
1980
1980
|
* 差异仅在于是否做新旧值对比。这里抽出公共字段避免重复定义。
|
|
1981
1981
|
*/
|
|
1982
|
-
interface CompareFormBaseProps {
|
|
1982
|
+
export interface CompareFormBaseProps {
|
|
1983
1983
|
/** 当前值(对比场景下为修改后的值) */
|
|
1984
1984
|
value: Partial<MNode> | Partial<DataSourceSchema> | Partial<CodeBlockContent> | Record<string, any>;
|
|
1985
1985
|
/**
|
|
@@ -2013,7 +2013,7 @@ interface CompareFormBaseProps {
|
|
|
2013
2013
|
/** 编辑器服务集合,由调用方传入(不再通过 inject('services') 获取)。 */
|
|
2014
2014
|
services?: Services;
|
|
2015
2015
|
}
|
|
2016
|
-
declare enum SideItemKey {
|
|
2016
|
+
export declare enum SideItemKey {
|
|
2017
2017
|
COMPONENT_LIST = "component-list",
|
|
2018
2018
|
LAYER = "layer",
|
|
2019
2019
|
CODE_BLOCK = "code-block",
|
|
@@ -2024,9 +2024,9 @@ declare enum SideItemKey {
|
|
|
2024
2024
|
* layer: 已选组件树
|
|
2025
2025
|
* code-block: 代码块
|
|
2026
2026
|
*/
|
|
2027
|
-
type SideItem = `${SideItemKey}` | SideComponent;
|
|
2027
|
+
export type SideItem = `${SideItemKey}` | SideComponent;
|
|
2028
2028
|
/** 工具栏 */
|
|
2029
|
-
interface SideBarData {
|
|
2029
|
+
export interface SideBarData {
|
|
2030
2030
|
/** 容器类型 */
|
|
2031
2031
|
type: 'tabs';
|
|
2032
2032
|
/** 默认激活的内容 */
|
|
@@ -2034,7 +2034,7 @@ interface SideBarData {
|
|
|
2034
2034
|
/** panel列表 */
|
|
2035
2035
|
items: SideItem[];
|
|
2036
2036
|
}
|
|
2037
|
-
interface ComponentItem {
|
|
2037
|
+
export interface ComponentItem {
|
|
2038
2038
|
/** 显示文案 */
|
|
2039
2039
|
text: string;
|
|
2040
2040
|
/** 详情,用于tooltip */
|
|
@@ -2048,33 +2048,33 @@ interface ComponentItem {
|
|
|
2048
2048
|
[key: string]: any;
|
|
2049
2049
|
};
|
|
2050
2050
|
}
|
|
2051
|
-
interface ComponentGroup {
|
|
2051
|
+
export interface ComponentGroup {
|
|
2052
2052
|
/** 显示文案 */
|
|
2053
2053
|
title: string;
|
|
2054
2054
|
/** 组内列表 */
|
|
2055
2055
|
items: ComponentItem[];
|
|
2056
2056
|
}
|
|
2057
|
-
declare enum LayerOffset {
|
|
2057
|
+
export declare enum LayerOffset {
|
|
2058
2058
|
TOP = "top",
|
|
2059
2059
|
BOTTOM = "bottom"
|
|
2060
2060
|
}
|
|
2061
2061
|
/** 容器布局 */
|
|
2062
|
-
declare enum Layout {
|
|
2062
|
+
export declare enum Layout {
|
|
2063
2063
|
FLEX = "flex",
|
|
2064
2064
|
FIXED = "fixed",
|
|
2065
2065
|
RELATIVE = "relative",
|
|
2066
2066
|
ABSOLUTE = "absolute"
|
|
2067
2067
|
}
|
|
2068
|
-
declare enum Keys {
|
|
2068
|
+
export declare enum Keys {
|
|
2069
2069
|
ESCAPE = "Space"
|
|
2070
2070
|
}
|
|
2071
|
-
interface ScrollViewerEvent {
|
|
2071
|
+
export interface ScrollViewerEvent {
|
|
2072
2072
|
scrollLeft: number;
|
|
2073
2073
|
scrollTop: number;
|
|
2074
2074
|
scrollHeight: number;
|
|
2075
2075
|
scrollWidth: number;
|
|
2076
2076
|
}
|
|
2077
|
-
type CodeState = {
|
|
2077
|
+
export type CodeState = {
|
|
2078
2078
|
/** 代码块DSL数据源 */
|
|
2079
2079
|
codeDsl: CodeBlockDSL | null;
|
|
2080
2080
|
/** 代码块是否可编辑 */
|
|
@@ -2085,11 +2085,11 @@ type CodeState = {
|
|
|
2085
2085
|
undeletableList: Id[];
|
|
2086
2086
|
paramsColConfig?: TableColumnConfig;
|
|
2087
2087
|
};
|
|
2088
|
-
type CodeRelation = {
|
|
2088
|
+
export type CodeRelation = {
|
|
2089
2089
|
/** 组件id:[代码id1,代码id2] */
|
|
2090
2090
|
[compId: Id]: Id[];
|
|
2091
2091
|
};
|
|
2092
|
-
interface CodeDslItem {
|
|
2092
|
+
export interface CodeDslItem {
|
|
2093
2093
|
/** 代码块id */
|
|
2094
2094
|
id: Id;
|
|
2095
2095
|
/** 代码块名称 */
|
|
@@ -2101,24 +2101,24 @@ interface CodeDslItem {
|
|
|
2101
2101
|
/** 代码块对应绑定的组件信息 */
|
|
2102
2102
|
combineInfo?: CombineInfo[];
|
|
2103
2103
|
}
|
|
2104
|
-
interface CombineInfo {
|
|
2104
|
+
export interface CombineInfo {
|
|
2105
2105
|
/** 组件id */
|
|
2106
2106
|
compId: Id;
|
|
2107
2107
|
/** 组件名称 */
|
|
2108
2108
|
compName: string;
|
|
2109
2109
|
}
|
|
2110
|
-
interface ListState {
|
|
2110
|
+
export interface ListState {
|
|
2111
2111
|
/** 代码块列表 */
|
|
2112
2112
|
codeList: CodeDslItem[];
|
|
2113
2113
|
}
|
|
2114
|
-
declare enum CodeDeleteErrorType {
|
|
2114
|
+
export declare enum CodeDeleteErrorType {
|
|
2115
2115
|
/** 代码块存在于不可删除列表中 */
|
|
2116
2116
|
UNDELETEABLE = "undeleteable",
|
|
2117
2117
|
/** 代码块存在绑定关系 */
|
|
2118
2118
|
BIND = "bind"
|
|
2119
2119
|
}
|
|
2120
|
-
declare const CODE_DRAFT_STORAGE_KEY = "magicCodeDraft";
|
|
2121
|
-
interface CodeParamStatement {
|
|
2120
|
+
export declare const CODE_DRAFT_STORAGE_KEY = "magicCodeDraft";
|
|
2121
|
+
export interface CodeParamStatement {
|
|
2122
2122
|
/** 参数名称 */
|
|
2123
2123
|
name: string;
|
|
2124
2124
|
/** 参数类型 */
|
|
@@ -2131,7 +2131,7 @@ interface CodeParamStatement {
|
|
|
2131
2131
|
* - `initial`:页面「未修改的初始状态」基线(设置 root 时生成),作为页面栈 index 0 的固定底线 step。
|
|
2132
2132
|
* 该 step 不可被撤销/回滚(cursor 不会低于它),仅用于历史面板底部的初始行展示。
|
|
2133
2133
|
*/
|
|
2134
|
-
type HistoryOpType = 'add' | 'remove' | 'update' | 'initial';
|
|
2134
|
+
export type HistoryOpType = 'add' | 'remove' | 'update' | 'initial';
|
|
2135
2135
|
/**
|
|
2136
2136
|
* 历史记录的「操作途径」——标记本次变更由哪条交互入口触发,仅用于历史面板展示 / 业务埋点,
|
|
2137
2137
|
* 不影响 undo/redo 行为。缺省(未传)时 UI 视为「未知」。
|
|
@@ -2152,9 +2152,9 @@ type HistoryOpType = 'add' | 'remove' | 'update' | 'initial';
|
|
|
2152
2152
|
*
|
|
2153
2153
|
* 通过 `(string & {})` 允许业务侧扩展自定义途径字符串,同时保留内置值的自动补全。
|
|
2154
2154
|
*/
|
|
2155
|
-
type HistoryOpSource = 'initial' | 'stage' | 'tree' | 'component-panel' | 'props' | 'code' | 'root-code' | 'stage-contextmenu' | 'tree-contextmenu' | 'toolbar' | 'shortcut' | 'rollback' | 'api' | 'ai' | 'sync' | 'unknown' | (string & {});
|
|
2155
|
+
export type HistoryOpSource = 'initial' | 'stage' | 'tree' | 'component-panel' | 'props' | 'code' | 'root-code' | 'stage-contextmenu' | 'tree-contextmenu' | 'toolbar' | 'shortcut' | 'rollback' | 'api' | 'ai' | 'sync' | 'unknown' | (string & {});
|
|
2156
2156
|
/** *AndGetHistoryId 系列方法返回值:原操作结果 + 本次写入历史记录的 uuid 列表(未入栈时为 `[]`)。 */
|
|
2157
|
-
type DslOpWithHistoryIdsResult<T> = {
|
|
2157
|
+
export type DslOpWithHistoryIdsResult<T> = {
|
|
2158
2158
|
result: T;
|
|
2159
2159
|
historyIds: string[];
|
|
2160
2160
|
};
|
|
@@ -2169,7 +2169,7 @@ type DslOpWithHistoryIdsResult<T> = {
|
|
|
2169
2169
|
*
|
|
2170
2170
|
* 泛型 `T` 为变化内容的快照类型:页面节点为 `MNode`,代码块为 `CodeBlockContent`,数据源为 `DataSourceSchema`。
|
|
2171
2171
|
*/
|
|
2172
|
-
interface StepDiffItem<T = unknown> {
|
|
2172
|
+
export interface StepDiffItem<T = unknown> {
|
|
2173
2173
|
/** 变更后的内容快照。`opType` 为 `add` / `update` 时有,`remove` 时无。 */
|
|
2174
2174
|
newSchema?: T;
|
|
2175
2175
|
/** 变更前的内容快照。`opType` 为 `remove` / `update` 时有,`add` 时无。 */
|
|
@@ -2189,7 +2189,7 @@ interface StepDiffItem<T = unknown> {
|
|
|
2189
2189
|
*
|
|
2190
2190
|
* 泛型 `T` 为 `diff` 中变化内容的快照类型(页面节点 `MNode` / 代码块 `CodeBlockContent` / 数据源 `DataSourceSchema`)。
|
|
2191
2191
|
*/
|
|
2192
|
-
interface BaseStepValue<T = unknown, U extends Record<string, any> = {}> {
|
|
2192
|
+
export interface BaseStepValue<T = unknown, U extends Record<string, any> = {}> {
|
|
2193
2193
|
/**
|
|
2194
2194
|
* 历史记录唯一标识(uuid)。入栈时自动写入(若调用方未指定),
|
|
2195
2195
|
* 用于精确定位 / 引用某一条历史记录(如 revert、埋点、跨端同步等)。
|
|
@@ -2246,7 +2246,7 @@ interface BaseStepValue<T = unknown, U extends Record<string, any> = {}> {
|
|
|
2246
2246
|
* 历史记录的扩展上下文({@link BaseStepValue.extra})。
|
|
2247
2247
|
* 内置字段供 `page` 类型在撤销 / 重做时恢复选区与受影响节点;扩展类型可自由附加其它键。
|
|
2248
2248
|
*/
|
|
2249
|
-
interface StepExtra {
|
|
2249
|
+
export interface StepExtra {
|
|
2250
2250
|
/** 操作前选中的节点 ID,用于撤销后恢复选择状态(page 类型) */
|
|
2251
2251
|
selectedBefore?: Id[];
|
|
2252
2252
|
/** 操作后选中的节点 ID,用于重做后恢复选择状态(page 类型) */
|
|
@@ -2263,24 +2263,24 @@ interface StepExtra {
|
|
|
2263
2263
|
* 页面节点历史记录条目(`diff` 内容为 {@link MNode})。结构已与代码块 / 数据源统一收敛到
|
|
2264
2264
|
* {@link BaseStepValue}:关联 id 见 `data.id`,选区等上下文见 `extra`。
|
|
2265
2265
|
*/
|
|
2266
|
-
type StepValue = BaseStepValue<MNode, StepExtra>;
|
|
2266
|
+
export type StepValue = BaseStepValue<MNode, StepExtra>;
|
|
2267
2267
|
/**
|
|
2268
2268
|
* 代码块历史记录条目(`diff` 内容为 {@link CodeBlockContent}),按 `data.id`(codeBlock.id)
|
|
2269
2269
|
* 分组保存到 historyState.steps.codeBlock。结构与 {@link StepValue} / {@link DataSourceStepValue}
|
|
2270
2270
|
* 一致,仅 `diff` 快照类型不同。
|
|
2271
2271
|
*/
|
|
2272
|
-
type CodeBlockStepValue = BaseStepValue<CodeBlockContent>;
|
|
2272
|
+
export type CodeBlockStepValue = BaseStepValue<CodeBlockContent>;
|
|
2273
2273
|
/**
|
|
2274
2274
|
* 数据源历史记录条目(`diff` 内容为 {@link DataSourceSchema}),按 `data.id`(dataSource.id)
|
|
2275
2275
|
* 分组保存到 historyState.steps.dataSource。结构与 {@link StepValue} / {@link CodeBlockStepValue}
|
|
2276
2276
|
* 一致,仅 `diff` 快照类型不同。
|
|
2277
2277
|
*/
|
|
2278
|
-
type DataSourceStepValue = BaseStepValue<DataSourceSchema>;
|
|
2278
|
+
export type DataSourceStepValue = BaseStepValue<DataSourceSchema>;
|
|
2279
2279
|
/**
|
|
2280
2280
|
* 历史记录类型标识:内置 `page` / `codeBlock` / `dataSource`,并允许业务扩展自定义类型。
|
|
2281
2281
|
* `(string & {})` 保留对内置字面量的智能提示,同时不限制扩展取值。
|
|
2282
2282
|
*/
|
|
2283
|
-
type HistoryStepType = 'page' | 'codeBlock' | 'dataSource' | (string & {});
|
|
2283
|
+
export type HistoryStepType = 'page' | 'codeBlock' | 'dataSource' | (string & {});
|
|
2284
2284
|
/**
|
|
2285
2285
|
* 全部历史栈的统一容器,按「类型 -> id -> UndoRedo 栈」两级分组。
|
|
2286
2286
|
*
|
|
@@ -2292,14 +2292,14 @@ type HistoryStepType = 'page' | 'codeBlock' | 'dataSource' | (string & {});
|
|
|
2292
2292
|
* 所有类型(含扩展类型)一视同仁:均按 id 独立分栈、独立 undo/redo,且都可通过
|
|
2293
2293
|
* {@link HistoryService.setMarker} 在 index 0 种入 `initial` 基线(撤销 / 回滚不会越过该基线)。
|
|
2294
2294
|
*/
|
|
2295
|
-
interface HistorySteps {
|
|
2295
|
+
export interface HistorySteps {
|
|
2296
2296
|
page: Record<Id, UndoRedo<StepValue>>;
|
|
2297
2297
|
codeBlock: Record<Id, UndoRedo<CodeBlockStepValue>>;
|
|
2298
2298
|
dataSource: Record<Id, UndoRedo<DataSourceStepValue>>;
|
|
2299
2299
|
/** 扩展历史类型:按 id 分组的 UndoRedo 栈。 */
|
|
2300
2300
|
[stepType: string]: Record<Id, UndoRedo<any>>;
|
|
2301
2301
|
}
|
|
2302
|
-
interface HistoryState {
|
|
2302
|
+
export interface HistoryState {
|
|
2303
2303
|
/**
|
|
2304
2304
|
* 全部历史栈的统一容器(页面 / 代码块 / 数据源 / 扩展类型),见 {@link HistorySteps}。
|
|
2305
2305
|
* 各类型互不影响,支持按 id 独立 undo/redo;是否可撤销 / 重做改用 {@link HistoryService.canUndo} /
|
|
@@ -2318,7 +2318,7 @@ interface HistoryState {
|
|
|
2318
2318
|
* 历史记录的可持久化快照。由 historyService.saveToIndexedDB 写入 IndexedDB,
|
|
2319
2319
|
* 再由 historyService.restoreFromIndexedDB 读出并重建各 UndoRedo 栈。
|
|
2320
2320
|
*/
|
|
2321
|
-
interface PersistedHistoryState {
|
|
2321
|
+
export interface PersistedHistoryState {
|
|
2322
2322
|
/** 快照结构版本号,便于后续兼容升级。 */
|
|
2323
2323
|
version: number;
|
|
2324
2324
|
/**
|
|
@@ -2335,7 +2335,7 @@ interface PersistedHistoryState {
|
|
|
2335
2335
|
savedAt: number;
|
|
2336
2336
|
}
|
|
2337
2337
|
/** historyService 持久化相关 API 的可选配置。 */
|
|
2338
|
-
interface HistoryPersistOptions {
|
|
2338
|
+
export interface HistoryPersistOptions {
|
|
2339
2339
|
/** IndexedDB 数据库名,默认 `tmagic-editor`(最终库名会拼上当前 DSL app id)。 */
|
|
2340
2340
|
dbName?: string;
|
|
2341
2341
|
/** objectStore 名,默认 `history`。 */
|
|
@@ -2352,7 +2352,7 @@ interface HistoryPersistOptions {
|
|
|
2352
2352
|
/**
|
|
2353
2353
|
* 历史面板用:当前页面的一条历史步骤(包含位置和是否已应用)。
|
|
2354
2354
|
*/
|
|
2355
|
-
interface HistoryStepEntry<T> {
|
|
2355
|
+
export interface HistoryStepEntry<T> {
|
|
2356
2356
|
/** 步骤内容 */
|
|
2357
2357
|
step: T;
|
|
2358
2358
|
/** 在所属栈中的索引(0 为最早) */
|
|
@@ -2375,7 +2375,7 @@ interface HistoryStepEntry<T> {
|
|
|
2375
2375
|
* - 数据源:`HistoryGroup<DataSourceStepValue>`,`kind: 'data-source'`,`id` 为 dataSource.id;
|
|
2376
2376
|
* - 代码块:`HistoryGroup<CodeBlockStepValue>`,`kind: 'code-block'`,`id` 为 codeBlock.id。
|
|
2377
2377
|
*/
|
|
2378
|
-
interface HistoryGroup<T extends BaseStepValue = BaseStepValue> {
|
|
2378
|
+
export interface HistoryGroup<T extends BaseStepValue = BaseStepValue> {
|
|
2379
2379
|
/** 历史类型标识:page / code-block / data-source(扩展类型同理)。 */
|
|
2380
2380
|
kind: string;
|
|
2381
2381
|
/** 所属栈 id(page 为 pageId,代码块 / 数据源为对应资源 id)。 */
|
|
@@ -2401,7 +2401,7 @@ interface HistoryGroup<T extends BaseStepValue = BaseStepValue> {
|
|
|
2401
2401
|
/** 是否为当前所在的分组(包含栈中最近一次已应用步骤的那一组)。 */
|
|
2402
2402
|
isCurrent?: boolean;
|
|
2403
2403
|
}
|
|
2404
|
-
declare enum KeyBindingCommand {
|
|
2404
|
+
export declare enum KeyBindingCommand {
|
|
2405
2405
|
/** 复制 */
|
|
2406
2406
|
COPY_NODE = "tmagic-system-copy-node",
|
|
2407
2407
|
/** 粘贴 */
|
|
@@ -2441,12 +2441,12 @@ declare enum KeyBindingCommand {
|
|
|
2441
2441
|
/** 切换组件 */
|
|
2442
2442
|
SWITCH_NODE = "tmagic-system-switch-node"
|
|
2443
2443
|
}
|
|
2444
|
-
interface KeyBindingItem {
|
|
2444
|
+
export interface KeyBindingItem {
|
|
2445
2445
|
command: KeyBindingCommand | string;
|
|
2446
2446
|
keybinding?: string | string[];
|
|
2447
2447
|
when: [string, 'keyup' | 'keydown'][];
|
|
2448
2448
|
}
|
|
2449
|
-
interface KeyBindingCacheItem {
|
|
2449
|
+
export interface KeyBindingCacheItem {
|
|
2450
2450
|
type: string;
|
|
2451
2451
|
command: KeyBindingCommand | string;
|
|
2452
2452
|
keybinding?: string | string[];
|
|
@@ -2454,14 +2454,14 @@ interface KeyBindingCacheItem {
|
|
|
2454
2454
|
bound: boolean;
|
|
2455
2455
|
}
|
|
2456
2456
|
/** 可新增的数据源类型选项 */
|
|
2457
|
-
interface DatasourceTypeOption {
|
|
2457
|
+
export interface DatasourceTypeOption {
|
|
2458
2458
|
/** 数据源类型 */
|
|
2459
2459
|
type: string;
|
|
2460
2460
|
/** 数据源名称 */
|
|
2461
2461
|
text: string;
|
|
2462
2462
|
}
|
|
2463
2463
|
/** 组件树节点状态 */
|
|
2464
|
-
interface LayerNodeStatus {
|
|
2464
|
+
export interface LayerNodeStatus {
|
|
2465
2465
|
/** 显隐 */
|
|
2466
2466
|
visible: boolean;
|
|
2467
2467
|
/** 展开子节点 */
|
|
@@ -2472,22 +2472,22 @@ interface LayerNodeStatus {
|
|
|
2472
2472
|
draggable: boolean;
|
|
2473
2473
|
}
|
|
2474
2474
|
/** 拖拽类型 */
|
|
2475
|
-
declare enum DragType {
|
|
2475
|
+
export declare enum DragType {
|
|
2476
2476
|
/** 从组件列表拖到画布 */
|
|
2477
2477
|
COMPONENT_LIST = "component-list",
|
|
2478
2478
|
/** 拖动组件树节点 */
|
|
2479
2479
|
LAYER_TREE = "layer-tree"
|
|
2480
2480
|
}
|
|
2481
|
-
interface TreeNodeData {
|
|
2481
|
+
export interface TreeNodeData {
|
|
2482
2482
|
id: Id;
|
|
2483
2483
|
name?: string;
|
|
2484
2484
|
items?: TreeNodeData[];
|
|
2485
2485
|
[key: string]: any;
|
|
2486
2486
|
}
|
|
2487
2487
|
/** 判断组件树节点是否可展开(即是否要展示为拥有子节点的形态)的函数 */
|
|
2488
|
-
type IsExpandableFunction = (_data: TreeNodeData, _nodeStatusMap: Map<Id, LayerNodeStatus>) => boolean;
|
|
2488
|
+
export type IsExpandableFunction = (_data: TreeNodeData, _nodeStatusMap: Map<Id, LayerNodeStatus>) => boolean;
|
|
2489
2489
|
/** canDropIn 的调用场景 */
|
|
2490
|
-
type CanDropInScene =
|
|
2490
|
+
export type CanDropInScene =
|
|
2491
2491
|
/** 在"已选组件"面板的组件树中拖动节点 */
|
|
2492
2492
|
'layer' |
|
|
2493
2493
|
/** 在画布上拖动已有组件(被拖动组件本身已经存在于画布中,sourceIds 包含其 id) */
|
|
@@ -2511,33 +2511,33 @@ type CanDropInScene =
|
|
|
2511
2511
|
* (例如把命中的"卡片外壳"节点重定向到其内层"卡片内容"容器节点)
|
|
2512
2512
|
* - 其他(`true` / `void` / `undefined`):按原 targetId 正常拖入
|
|
2513
2513
|
*/
|
|
2514
|
-
type CanDropInFunction = (_sourceIds: Id[], _targetId: Id, _scene: CanDropInScene) => Id | boolean | void;
|
|
2515
|
-
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]>; };
|
|
2516
|
-
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]>>; };
|
|
2517
|
-
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]>; };
|
|
2518
|
-
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]>; };
|
|
2519
|
-
type AddPrefixToObject<T, P extends string> = { [K in keyof T as K extends string ? `${P}${K}` : never]: T[K]; };
|
|
2520
|
-
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'>;
|
|
2521
|
-
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'>;
|
|
2522
|
-
interface EventBusEvent {
|
|
2514
|
+
export type CanDropInFunction = (_sourceIds: Id[], _targetId: Id, _scene: CanDropInScene) => Id | boolean | void;
|
|
2515
|
+
export 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]>; };
|
|
2516
|
+
export 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]>>; };
|
|
2517
|
+
export 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]>; };
|
|
2518
|
+
export 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]>; };
|
|
2519
|
+
export type AddPrefixToObject<T, P extends string> = { [K in keyof T as K extends string ? `${P}${K}` : never]: T[K]; };
|
|
2520
|
+
export 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'>;
|
|
2521
|
+
export 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'>;
|
|
2522
|
+
export interface EventBusEvent {
|
|
2523
2523
|
'edit-data-source': [id: string];
|
|
2524
2524
|
'edit-data-source-method': [id: string, methodName: string];
|
|
2525
2525
|
'edit-data-source-field': [id: string, fieldPath: string[]];
|
|
2526
2526
|
'remove-data-source': [id: string];
|
|
2527
2527
|
'edit-code': [id: string];
|
|
2528
2528
|
}
|
|
2529
|
-
interface EventBus extends EventEmitter$1 {
|
|
2529
|
+
export interface EventBus extends EventEmitter$1 {
|
|
2530
2530
|
on<Name extends keyof EventBusEvent, Param extends EventBusEvent[Name]>(eventName: Name, listener: (...args: Param) => void): this;
|
|
2531
2531
|
emit<Name extends keyof EventBusEvent, Param extends EventBusEvent[Name]>(eventName: Name, ...args: Param): boolean;
|
|
2532
2532
|
}
|
|
2533
|
-
type PropsFormConfigFunction = (data: {
|
|
2533
|
+
export type PropsFormConfigFunction = (data: {
|
|
2534
2534
|
editorService: EditorService;
|
|
2535
2535
|
}) => FormConfig;
|
|
2536
|
-
type PropsFormValueFunction = (data: {
|
|
2536
|
+
export type PropsFormValueFunction = (data: {
|
|
2537
2537
|
editorService: EditorService;
|
|
2538
2538
|
}) => Partial<MNode>;
|
|
2539
|
-
type PartSortableOptions = Omit<Options, 'onStart' | 'onUpdate'>;
|
|
2540
|
-
interface PageBarSortOptions extends PartSortableOptions {
|
|
2539
|
+
export type PartSortableOptions = Omit<Options, 'onStart' | 'onUpdate'>;
|
|
2540
|
+
export interface PageBarSortOptions extends PartSortableOptions {
|
|
2541
2541
|
/** 在onUpdate之后调用 */
|
|
2542
2542
|
afterUpdate?: (event: SortableEvent, sortable: Sortable) => void | Promise<void>;
|
|
2543
2543
|
/** 在onStart之前调用 */
|
|
@@ -2547,17 +2547,17 @@ interface PageBarSortOptions extends PartSortableOptions {
|
|
|
2547
2547
|
* 右键菜单当前目标(侧栏树节点等)。
|
|
2548
2548
|
* 数据源 / 代码块面板通过 `customContentMenu` 的 `getTarget` 暴露,业务在 handler 内自行读取。
|
|
2549
2549
|
*/
|
|
2550
|
-
interface ContentMenuTarget {
|
|
2550
|
+
export interface ContentMenuTarget {
|
|
2551
2551
|
/** 目标 ID */
|
|
2552
2552
|
id: string;
|
|
2553
2553
|
/** 原始节点数据(树节点等) */
|
|
2554
2554
|
data?: TreeNodeData;
|
|
2555
2555
|
}
|
|
2556
|
-
type ContentMenuType = 'layer' | 'data-source' | 'viewer' | 'code-block';
|
|
2557
|
-
type CustomContentMenuFunction = (menus: (MenuButton | MenuComponent)[], type: ContentMenuType,
|
|
2556
|
+
export type ContentMenuType = 'layer' | 'data-source' | 'viewer' | 'code-block';
|
|
2557
|
+
export type CustomContentMenuFunction = (menus: (MenuButton | MenuComponent)[], type: ContentMenuType,
|
|
2558
2558
|
/** 读取当前右键目标;数据源 / 代码块面板会传入,图层 / 画布一般不需要 */
|
|
2559
2559
|
getTarget?: () => ContentMenuTarget | null) => (MenuButton | MenuComponent)[];
|
|
2560
|
-
interface EditorEvents {
|
|
2560
|
+
export interface EditorEvents {
|
|
2561
2561
|
'root-change': [value: StoreState['root'], preValue?: StoreState['root'], options?: {
|
|
2562
2562
|
historySource?: HistoryOpSource;
|
|
2563
2563
|
}];
|
|
@@ -2587,12 +2587,12 @@ interface EditorEvents {
|
|
|
2587
2587
|
'invalid-node-change': [invalidNodeIds: Map<Id, NodeInvalidInfo>];
|
|
2588
2588
|
}
|
|
2589
2589
|
/** `change` 事件中单个变更项:变更的 node 及其所属的 page(可能为 null)。 */
|
|
2590
|
-
interface EditorChangeItem {
|
|
2590
|
+
export interface EditorChangeItem {
|
|
2591
2591
|
node: MNode;
|
|
2592
2592
|
page: StoreState['page'];
|
|
2593
2593
|
}
|
|
2594
2594
|
/** `update` 类型变更项:node 为前后快照及 form 端变更记录,page 为其所属页面。 */
|
|
2595
|
-
interface EditorUpdateChangeItem {
|
|
2595
|
+
export interface EditorUpdateChangeItem {
|
|
2596
2596
|
node: {
|
|
2597
2597
|
newNode: MNode;
|
|
2598
2598
|
oldNode: MNode;
|
|
@@ -2601,7 +2601,7 @@ interface EditorUpdateChangeItem {
|
|
|
2601
2601
|
page: StoreState['page'];
|
|
2602
2602
|
}
|
|
2603
2603
|
/** {@link EditorEvents.change} 各操作类型共有的历史相关字段。 */
|
|
2604
|
-
interface EditorChangeEventHistoryMeta {
|
|
2604
|
+
export interface EditorChangeEventHistoryMeta {
|
|
2605
2605
|
/**
|
|
2606
2606
|
* 本次变更的「历史来源」(调用 DSL 操作时传入的 {@link HistoryOpOptions.historySource},
|
|
2607
2607
|
* 撤销 / 重做时则为被应用 step 上记录的 `source`),未携带时为 undefined。
|
|
@@ -2619,7 +2619,7 @@ interface EditorChangeEventHistoryMeta {
|
|
|
2619
2619
|
* `move-layer` 额外带层级偏移 `offset`,`drag-to` 额外带目标位置 `targetIndex` / `targetParent`;
|
|
2620
2620
|
* 历史相关字段(historySource / doNotPushHistory)见 {@link EditorChangeEventHistoryMeta}。
|
|
2621
2621
|
*/
|
|
2622
|
-
type EditorChangeEvent = ({
|
|
2622
|
+
export type EditorChangeEvent = ({
|
|
2623
2623
|
type: 'add';
|
|
2624
2624
|
data: EditorChangeItem[];
|
|
2625
2625
|
} & EditorChangeEventHistoryMeta) | ({
|
|
@@ -2638,7 +2638,7 @@ type EditorChangeEvent = ({
|
|
|
2638
2638
|
targetIndex: number;
|
|
2639
2639
|
targetParent: MContainer;
|
|
2640
2640
|
} & EditorChangeEventHistoryMeta);
|
|
2641
|
-
interface HistoryEvents {
|
|
2641
|
+
export interface HistoryEvents {
|
|
2642
2642
|
change: [state: BaseStepValue | StepValue | CodeBlockStepValue | DataSourceStepValue, stepType: HistoryStepType, id: Id];
|
|
2643
2643
|
'code-block-history-change': [id: Id, state: CodeBlockStepValue];
|
|
2644
2644
|
'data-source-history-change': [id: Id, state: DataSourceStepValue];
|
|
@@ -2667,18 +2667,18 @@ interface HistoryEvents {
|
|
|
2667
2667
|
remove: (MPage | MPageFragment)[];
|
|
2668
2668
|
}];
|
|
2669
2669
|
}
|
|
2670
|
-
declare const canUsePluginMethods: {
|
|
2670
|
+
export declare const canUsePluginMethods: {
|
|
2671
2671
|
async: readonly ["getLayout", "highlight", "select", "multiSelect", "doAdd", "add", "doRemove", "remove", "doUpdate", "update", "sort", "copy", "paste", "doPaste", "doAlignCenter", "alignCenter", "moveLayer", "moveToContainer", "dragTo", "undo", "redo", "move"];
|
|
2672
2672
|
sync: never[];
|
|
2673
2673
|
};
|
|
2674
|
-
type AsyncMethodName = Writable<(typeof canUsePluginMethods)['async']>;
|
|
2674
|
+
export type AsyncMethodName = Writable<(typeof canUsePluginMethods)['async']>;
|
|
2675
2675
|
/**
|
|
2676
2676
|
* 历史记录写入相关的通用配置(codeBlock / dataSource / editor 共用)
|
|
2677
2677
|
* - doNotPushHistory: 操作完成后是否不要将本次操作压入历史栈(撤销/重做记录),默认 false
|
|
2678
2678
|
* - historyDescription: 入栈时附带的人类可读描述,用于历史面板展示;不影响 undo/redo 行为,缺省时面板会自动生成描述
|
|
2679
2679
|
* - historySource: 操作途径,取值见 {@link HistoryOpSource}(画布 / 树面板 / 组件面板 / 配置面板 / 源码编辑器 / 右键菜单 / 工具栏 / 快捷键 / 回滚 / 接口 等),用于历史面板展示与埋点;不影响 undo/redo 行为
|
|
2680
2680
|
*/
|
|
2681
|
-
interface HistoryOpOptions {
|
|
2681
|
+
export interface HistoryOpOptions {
|
|
2682
2682
|
doNotPushHistory?: boolean;
|
|
2683
2683
|
historyDescription?: string;
|
|
2684
2684
|
historySource?: HistoryOpSource;
|
|
@@ -2687,7 +2687,7 @@ interface HistoryOpOptions {
|
|
|
2687
2687
|
* 在 HistoryOpOptions 基础上携带 form 端 propPath/value 变更记录,
|
|
2688
2688
|
* 用于历史记录的精细化撤销/重做(按 propPath 局部 patch)。
|
|
2689
2689
|
*/
|
|
2690
|
-
interface HistoryOpOptionsWithChangeRecords extends HistoryOpOptions {
|
|
2690
|
+
export interface HistoryOpOptionsWithChangeRecords extends HistoryOpOptions {
|
|
2691
2691
|
changeRecords?: ChangeRecord[];
|
|
2692
2692
|
}
|
|
2693
2693
|
/**
|
|
@@ -2695,7 +2695,7 @@ interface HistoryOpOptionsWithChangeRecords extends HistoryOpOptions {
|
|
|
2695
2695
|
* - doNotSelect: 操作后是否不要自动触发选中(不调用 this.select / this.multiSelect / stage.select / stage.multiSelect)
|
|
2696
2696
|
* - doNotSwitchPage: 操作若会引发当前页面切换(如新增 / 删除 / 跨页移动),是否跳过这次切换
|
|
2697
2697
|
*/
|
|
2698
|
-
interface DslOpOptions extends HistoryOpOptions {
|
|
2698
|
+
export interface DslOpOptions extends HistoryOpOptions {
|
|
2699
2699
|
doNotSelect?: boolean;
|
|
2700
2700
|
doNotSwitchPage?: boolean;
|
|
2701
2701
|
}
|
|
@@ -2706,7 +2706,7 @@ interface DslOpOptions extends HistoryOpOptions {
|
|
|
2706
2706
|
* - replace: 为 true 时跳过 mergeWith / toggleFixedPosition / setChildrenLayout,直接用传入配置整节点替换
|
|
2707
2707
|
* - invalidInfo: 属性面板提交时携带的校验错误信息,在写入历史记录之前落库
|
|
2708
2708
|
*/
|
|
2709
|
-
interface UpdateOptions extends HistoryOpOptionsWithChangeRecords {
|
|
2709
|
+
export interface UpdateOptions extends HistoryOpOptionsWithChangeRecords {
|
|
2710
2710
|
changeRecordList?: ChangeRecord[][];
|
|
2711
2711
|
/**
|
|
2712
2712
|
* 为 true 时不做深合并等变换,直接用传入配置整节点替换现有节点。
|
|
@@ -2724,7 +2724,7 @@ interface UpdateOptions extends HistoryOpOptionsWithChangeRecords {
|
|
|
2724
2724
|
};
|
|
2725
2725
|
}
|
|
2726
2726
|
/** 差异对话框的入参 */
|
|
2727
|
-
interface DiffDialogPayload {
|
|
2727
|
+
export interface DiffDialogPayload {
|
|
2728
2728
|
/** 表单类别 */
|
|
2729
2729
|
category?: CompareCategory;
|
|
2730
2730
|
/** 节点类型 / 数据源类型 */
|
|
@@ -2754,7 +2754,7 @@ interface DiffDialogPayload {
|
|
|
2754
2754
|
* 一组「描述 + 可操作性」的判定函数集合。页面 / 数据源 / 代码块及业务自定义历史
|
|
2755
2755
|
* 各自实现一份,作为整体注入,避免把 describe* / isStep* 拆成多个独立 props 反复透传。
|
|
2756
2756
|
*/
|
|
2757
|
-
interface HistoryRowDescriptor<T extends BaseStepValue = BaseStepValue> {
|
|
2757
|
+
export interface HistoryRowDescriptor<T extends BaseStepValue = BaseStepValue> {
|
|
2758
2758
|
/**
|
|
2759
2759
|
* 组级描述文案生成器,接收一个 group,返回展示文本。
|
|
2760
2760
|
* 不传时回退到对组内最后一步调用 {@link describeStep}(适用于不做相邻合并、每组恒为单步的历史,如数据源/代码块)。
|
|
@@ -2772,7 +2772,7 @@ interface HistoryRowDescriptor<T extends BaseStepValue = BaseStepValue> {
|
|
|
2772
2772
|
* 把原先散落在 Bucket / BucketTab 上的 title / prefix / describe* / isStep* / showInitial / gotoEnabled
|
|
2773
2773
|
* 收敛成一个对象作为单一 prop 传递,调用方一次配齐、组件内部按需读取。
|
|
2774
2774
|
*/
|
|
2775
|
-
interface HistoryBucketConfig<T extends BaseStepValue = BaseStepValue> extends HistoryRowDescriptor<T> {
|
|
2775
|
+
export interface HistoryBucketConfig<T extends BaseStepValue = BaseStepValue> extends HistoryRowDescriptor<T> {
|
|
2776
2776
|
/** bucket 头部标题,例如 "数据源" / "代码块"。 */
|
|
2777
2777
|
title: string;
|
|
2778
2778
|
/** 子项 key 的命名空间前缀(`ds` 数据源 / `cb` 代码块 / 业务自定义如 `mod`)。 */
|
|
@@ -2784,7 +2784,7 @@ interface HistoryBucketConfig<T extends BaseStepValue = BaseStepValue> extends H
|
|
|
2784
2784
|
/** 是否展示顶部「清空」按钮,默认 true。无需提供清空能力的自定义历史可传 false。 */
|
|
2785
2785
|
showClear?: boolean;
|
|
2786
2786
|
}
|
|
2787
|
-
interface UseHistoryRevertOptions {
|
|
2787
|
+
export interface UseHistoryRevertOptions {
|
|
2788
2788
|
/**
|
|
2789
2789
|
* 父级应用上下文,用于让动态挂载的「差异确认弹窗」继承全局组件 / 指令 / provide / 插件
|
|
2790
2790
|
* (Element Plus、@tmagic/form 字段组件等)。未显式传入时,会自动取调用方所在组件的 appContext
|
|
@@ -2803,7 +2803,7 @@ interface UseHistoryRevertOptions {
|
|
|
2803
2803
|
* 内置的页面 / 数据源 / 代码块按 `category` 自动取表单配置,无需传这些;
|
|
2804
2804
|
* 业务自有类别可通过 `loadConfig` 注入自定义表单配置加载逻辑。
|
|
2805
2805
|
*/
|
|
2806
|
-
interface CustomDiffFormOptions {
|
|
2806
|
+
export interface CustomDiffFormOptions {
|
|
2807
2807
|
/**
|
|
2808
2808
|
* 自定义差异表单配置加载逻辑(如「模块」按 c_type 重建表单配置),
|
|
2809
2809
|
* 透传给弹窗内部的 CompareForm;缺省时按 `category` 走内置加载。
|
|
@@ -2827,7 +2827,7 @@ interface CustomDiffFormOptions {
|
|
|
2827
2827
|
* 与内置页面 / 数据源 / 代码块回滚共用「目标校验 → 差异/二次确认弹窗 → 反向回滚」流程,
|
|
2828
2828
|
* 业务方只需提供:差异弹窗入参(可选)、表单配置加载(可选)、实际回滚执行函数。
|
|
2829
2829
|
*/
|
|
2830
|
-
interface ConfirmAndRevertOptions<T = unknown> extends CustomDiffFormOptions {
|
|
2830
|
+
export interface ConfirmAndRevertOptions<T = unknown> extends CustomDiffFormOptions {
|
|
2831
2831
|
/**
|
|
2832
2832
|
* 差异确认弹窗入参;可对比的步骤(单实体 update)传入后弹差异确认弹窗,
|
|
2833
2833
|
* 传 null / 省略则退化为普通二次确认框(add / remove / 不可对比)。
|
|
@@ -2840,7 +2840,7 @@ interface ConfirmAndRevertOptions<T = unknown> extends CustomDiffFormOptions {
|
|
|
2840
2840
|
}
|
|
2841
2841
|
//#endregion
|
|
2842
2842
|
//#region temp/packages/editor/src/hooks/use-code-block-edit.d.ts
|
|
2843
|
-
declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockService"]) => {
|
|
2843
|
+
export declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockService"]) => {
|
|
2844
2844
|
codeId: import("@vue/reactivity").Ref<string | undefined, string | undefined>;
|
|
2845
2845
|
codeConfig: import("@vue/reactivity").Ref<(Omit<CodeBlockContent, "content"> & {
|
|
2846
2846
|
content: string;
|
|
@@ -2908,7 +2908,7 @@ declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockService"])
|
|
|
2908
2908
|
};
|
|
2909
2909
|
//#endregion
|
|
2910
2910
|
//#region temp/packages/editor/src/hooks/use-compare-form.d.ts
|
|
2911
|
-
interface UseCompareFormReturn {
|
|
2911
|
+
export interface UseCompareFormReturn {
|
|
2912
2912
|
config: Ref<FormConfig>;
|
|
2913
2913
|
currentValues: ComputedRef<FormValue>;
|
|
2914
2914
|
wrapperStyle: ComputedRef<Record<string, string> | undefined>;
|
|
@@ -2926,10 +2926,10 @@ interface UseCompareFormReturn {
|
|
|
2926
2926
|
*
|
|
2927
2927
|
* 两个组件的差异仅在于是否做新旧值对比,这部分逻辑保留在各自组件中。
|
|
2928
2928
|
*/
|
|
2929
|
-
declare const useCompareForm: (props: CompareFormBaseProps) => UseCompareFormReturn;
|
|
2929
|
+
export declare const useCompareForm: (props: CompareFormBaseProps) => UseCompareFormReturn;
|
|
2930
2930
|
//#endregion
|
|
2931
2931
|
//#region temp/packages/editor/src/hooks/use-stage.d.ts
|
|
2932
|
-
declare const useStage: (stageOptions: StageOptions) => StageCore$1;
|
|
2932
|
+
export declare const useStage: (stageOptions: StageOptions) => StageCore$1;
|
|
2933
2933
|
//#endregion
|
|
2934
2934
|
//#region temp/packages/editor/src/hooks/use-float-box.d.ts
|
|
2935
2935
|
interface State {
|
|
@@ -2937,7 +2937,7 @@ interface State {
|
|
|
2937
2937
|
top: number;
|
|
2938
2938
|
left: number;
|
|
2939
2939
|
}
|
|
2940
|
-
declare const useFloatBox: (slideKeys: ComputedRef<string[]>) => {
|
|
2940
|
+
export declare const useFloatBox: (slideKeys: ComputedRef<string[]>) => {
|
|
2941
2941
|
dragstartHandler: (e: DragEvent) => void;
|
|
2942
2942
|
dragendHandler: (key: string, e: DragEvent) => void;
|
|
2943
2943
|
floatBoxStates: import("@vue/reactivity").Ref<{
|
|
@@ -2949,7 +2949,7 @@ declare const useFloatBox: (slideKeys: ComputedRef<string[]>) => {
|
|
|
2949
2949
|
};
|
|
2950
2950
|
//#endregion
|
|
2951
2951
|
//#region temp/packages/editor/src/hooks/use-window-rect.d.ts
|
|
2952
|
-
declare const useWindowRect: () => {
|
|
2952
|
+
export declare const useWindowRect: () => {
|
|
2953
2953
|
rect: {
|
|
2954
2954
|
width: number;
|
|
2955
2955
|
height: number;
|
|
@@ -2957,23 +2957,23 @@ declare const useWindowRect: () => {
|
|
|
2957
2957
|
};
|
|
2958
2958
|
//#endregion
|
|
2959
2959
|
//#region temp/packages/editor/src/hooks/use-editor-content-height.d.ts
|
|
2960
|
-
declare const useEditorContentHeight: () => {
|
|
2960
|
+
export declare const useEditorContentHeight: () => {
|
|
2961
2961
|
height: import("@vue/reactivity").Ref<number, number>;
|
|
2962
2962
|
};
|
|
2963
2963
|
//#endregion
|
|
2964
2964
|
//#region temp/packages/editor/src/hooks/use-filter.d.ts
|
|
2965
|
-
declare const useFilter: (nodeData: Ref<TreeNodeData[]>, nodeStatusMap: Ref<Map<Id, LayerNodeStatus> | undefined>, filterNodeMethod: (value: string, data: MNode) => boolean) => {
|
|
2965
|
+
export declare const useFilter: (nodeData: Ref<TreeNodeData[]>, nodeStatusMap: Ref<Map<Id, LayerNodeStatus> | undefined>, filterNodeMethod: (value: string, data: MNode) => boolean) => {
|
|
2966
2966
|
filterText: Ref<string, string>;
|
|
2967
2967
|
filterTextChangeHandler(text: string | string[]): void;
|
|
2968
2968
|
};
|
|
2969
2969
|
//#endregion
|
|
2970
2970
|
//#region temp/packages/editor/src/hooks/use-getso.d.ts
|
|
2971
|
-
declare const useGetSo: (target: ShallowRef<HTMLElement | null>, emit: (evt: "change", e: OnDrag$1<Gesto>) => void) => {
|
|
2971
|
+
export declare const useGetSo: (target: ShallowRef<HTMLElement | null>, emit: (evt: "change", e: OnDrag$1<Gesto>) => void) => {
|
|
2972
2972
|
isDragging: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
2973
2973
|
};
|
|
2974
2974
|
//#endregion
|
|
2975
2975
|
//#region temp/packages/editor/src/hooks/use-next-float-box-position.d.ts
|
|
2976
|
-
declare const useNextFloatBoxPosition: (uiService: Services["uiService"], parent?: Ref<HTMLDivElement | null>) => {
|
|
2976
|
+
export declare const useNextFloatBoxPosition: (uiService: Services["uiService"], parent?: Ref<HTMLDivElement | null>) => {
|
|
2977
2977
|
boxPosition: Ref<{
|
|
2978
2978
|
left: number;
|
|
2979
2979
|
top: number;
|
|
@@ -2988,7 +2988,7 @@ declare const useNextFloatBoxPosition: (uiService: Services["uiService"], parent
|
|
|
2988
2988
|
};
|
|
2989
2989
|
//#endregion
|
|
2990
2990
|
//#region temp/packages/editor/src/hooks/use-node-status.d.ts
|
|
2991
|
-
declare const useNodeStatus: (nodeData: ComputedRef<TreeNodeData[]>) => {
|
|
2991
|
+
export declare const useNodeStatus: (nodeData: ComputedRef<TreeNodeData[]>) => {
|
|
2992
2992
|
nodeStatusMap: import("@vue/reactivity").Ref<Map<Id, {
|
|
2993
2993
|
visible: boolean;
|
|
2994
2994
|
expand: boolean;
|
|
@@ -3003,7 +3003,7 @@ declare const useNodeStatus: (nodeData: ComputedRef<TreeNodeData[]>) => {
|
|
|
3003
3003
|
};
|
|
3004
3004
|
//#endregion
|
|
3005
3005
|
//#region temp/packages/editor/src/hooks/use-services.d.ts
|
|
3006
|
-
declare const useServices: () => Services;
|
|
3006
|
+
export declare const useServices: () => Services;
|
|
3007
3007
|
//#endregion
|
|
3008
3008
|
//#region temp/packages/editor/src/utils/config.d.ts
|
|
3009
3009
|
declare const isGlobalFlat: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
@@ -3011,37 +3011,37 @@ declare const setEditorConfig: (option: EditorInstallOptions) => void;
|
|
|
3011
3011
|
declare const getEditorConfig: <K extends keyof EditorInstallOptions>(key: K) => EditorInstallOptions[K];
|
|
3012
3012
|
//#endregion
|
|
3013
3013
|
//#region temp/packages/editor/src/utils/props.d.ts
|
|
3014
|
-
declare const arrayOptions: {
|
|
3014
|
+
export declare const arrayOptions: {
|
|
3015
3015
|
text: string;
|
|
3016
3016
|
value: string;
|
|
3017
3017
|
}[];
|
|
3018
|
-
declare const eqOptions: {
|
|
3018
|
+
export declare const eqOptions: {
|
|
3019
3019
|
text: string;
|
|
3020
3020
|
value: string;
|
|
3021
3021
|
}[];
|
|
3022
|
-
declare const numberOptions: {
|
|
3022
|
+
export declare const numberOptions: {
|
|
3023
3023
|
text: string;
|
|
3024
3024
|
value: string;
|
|
3025
3025
|
}[];
|
|
3026
|
-
declare const booleanOptions: {
|
|
3026
|
+
export declare const booleanOptions: {
|
|
3027
3027
|
text: string;
|
|
3028
3028
|
value: string;
|
|
3029
3029
|
}[];
|
|
3030
3030
|
/** 按字段类型返回条件运算符选项(UI 与 typeMatch 校验共用) */
|
|
3031
|
-
declare const getCondOpOptionsByFieldType: (type: string) => {
|
|
3031
|
+
export declare const getCondOpOptionsByFieldType: (type: string) => {
|
|
3032
3032
|
text: string;
|
|
3033
3033
|
value: string;
|
|
3034
3034
|
}[];
|
|
3035
|
-
declare const styleTabConfig: TabPaneConfig;
|
|
3036
|
-
declare const eventTabConfig: TabPaneConfig;
|
|
3037
|
-
declare const advancedTabConfig: TabPaneConfig;
|
|
3038
|
-
declare const displayTabConfig: TabPaneConfig<DisplayCondsConfig>;
|
|
3035
|
+
export declare const styleTabConfig: TabPaneConfig;
|
|
3036
|
+
export declare const eventTabConfig: TabPaneConfig;
|
|
3037
|
+
export declare const advancedTabConfig: TabPaneConfig;
|
|
3038
|
+
export declare const displayTabConfig: TabPaneConfig<DisplayCondsConfig>;
|
|
3039
3039
|
/**
|
|
3040
3040
|
* 统一为组件属性表单加上事件、高级、样式配置
|
|
3041
3041
|
* @param config 组件属性配置
|
|
3042
3042
|
* @returns Object
|
|
3043
3043
|
*/
|
|
3044
|
-
declare const fillConfig: (config?: FormConfig, { labelWidth, disabledDataSource, disabledCodeBlock }?: {
|
|
3044
|
+
export declare const fillConfig: (config?: FormConfig, { labelWidth, disabledDataSource, disabledCodeBlock }?: {
|
|
3045
3045
|
labelWidth?: string;
|
|
3046
3046
|
disabledDataSource?: boolean;
|
|
3047
3047
|
disabledCodeBlock?: boolean;
|
|
@@ -3058,7 +3058,7 @@ declare const fillConfig: (config?: FormConfig, { labelWidth, disabledDataSource
|
|
|
3058
3058
|
* 通过参数控制两端的细微差异(是否启用必填校验 / vs-code onChange 校验 / dataSource 相关字段显示规则等),
|
|
3059
3059
|
* 避免两边同步两份相同的 schema 而造成漂移。
|
|
3060
3060
|
*/
|
|
3061
|
-
interface GetCodeBlockFormConfigOptions {
|
|
3061
|
+
export interface GetCodeBlockFormConfigOptions {
|
|
3062
3062
|
/**
|
|
3063
3063
|
* 自定义 `params` 表格的"参数类型"列配置。优先级高于内置默认值;
|
|
3064
3064
|
* 通常由 `codeBlockService.getParamsColConfig()` 注入业务侧的扩展。
|
|
@@ -3088,60 +3088,60 @@ interface GetCodeBlockFormConfigOptions {
|
|
|
3088
3088
|
* 生成代码块表单配置。返回的是普通对象数组,可直接传给 `<MForm :config>`;
|
|
3089
3089
|
* 如需响应式的 props 变化(如切换 dataSourceType),调用方在 `computed` 中再次调用本函数即可。
|
|
3090
3090
|
*/
|
|
3091
|
-
declare const getCodeBlockFormConfig: (options?: GetCodeBlockFormConfigOptions) => FormConfig;
|
|
3091
|
+
export declare const getCodeBlockFormConfig: (options?: GetCodeBlockFormConfigOptions) => FormConfig;
|
|
3092
3092
|
//#endregion
|
|
3093
3093
|
//#region temp/packages/editor/src/utils/logger.d.ts
|
|
3094
|
-
declare const log: (...args: any[]) => void;
|
|
3095
|
-
declare const info: (...args: any[]) => void;
|
|
3096
|
-
declare const warn: (...args: any[]) => void;
|
|
3097
|
-
declare const debug: (...args: any[]) => void;
|
|
3098
|
-
declare const error: (...args: any[]) => void;
|
|
3094
|
+
export declare const log: (...args: any[]) => void;
|
|
3095
|
+
export declare const info: (...args: any[]) => void;
|
|
3096
|
+
export declare const warn: (...args: any[]) => void;
|
|
3097
|
+
export declare const debug: (...args: any[]) => void;
|
|
3098
|
+
export declare const error: (...args: any[]) => void;
|
|
3099
3099
|
//#endregion
|
|
3100
3100
|
//#region temp/packages/editor/src/utils/editor.d.ts
|
|
3101
|
-
declare const COPY_STORAGE_KEY = "$MagicEditorCopyData";
|
|
3102
|
-
declare const COPY_CODE_STORAGE_KEY = "$MagicEditorCopyCode";
|
|
3103
|
-
declare const COPY_DS_STORAGE_KEY = "$MagicEditorCopyDataSource";
|
|
3101
|
+
export declare const COPY_STORAGE_KEY = "$MagicEditorCopyData";
|
|
3102
|
+
export declare const COPY_CODE_STORAGE_KEY = "$MagicEditorCopyCode";
|
|
3103
|
+
export declare const COPY_DS_STORAGE_KEY = "$MagicEditorCopyDataSource";
|
|
3104
3104
|
/**
|
|
3105
3105
|
* 获取所有页面配置
|
|
3106
3106
|
* @param root DSL跟节点
|
|
3107
3107
|
* @returns 所有页面配置
|
|
3108
3108
|
*/
|
|
3109
|
-
declare const getPageList: (root?: MApp | null) => MPage[];
|
|
3110
|
-
declare const getPageFragmentList: (root?: MApp | null) => MPageFragment[];
|
|
3109
|
+
export declare const getPageList: (root?: MApp | null) => MPage[];
|
|
3110
|
+
export declare const getPageFragmentList: (root?: MApp | null) => MPageFragment[];
|
|
3111
3111
|
/**
|
|
3112
3112
|
* 获取所有页面名称
|
|
3113
3113
|
* @param pages 所有页面配置
|
|
3114
3114
|
* @returns 所有页面名称
|
|
3115
3115
|
*/
|
|
3116
|
-
declare const getPageNameList: (pages: (MPage | MPageFragment)[]) => string[];
|
|
3116
|
+
export declare const getPageNameList: (pages: (MPage | MPageFragment)[]) => string[];
|
|
3117
3117
|
/**
|
|
3118
3118
|
* 新增页面时,生成页面名称
|
|
3119
3119
|
* @param {Object} pageNameList 所有页面名称
|
|
3120
3120
|
* @returns {string}
|
|
3121
3121
|
*/
|
|
3122
|
-
declare const generatePageName: (pageNameList: string[], type: NodeType.PAGE | NodeType.PAGE_FRAGMENT) => string;
|
|
3122
|
+
export declare const generatePageName: (pageNameList: string[], type: NodeType.PAGE | NodeType.PAGE_FRAGMENT) => string;
|
|
3123
3123
|
/**
|
|
3124
3124
|
* 新增页面时,生成页面名称
|
|
3125
3125
|
* @param {Object} app 所有页面配置
|
|
3126
3126
|
* @returns {string}
|
|
3127
3127
|
*/
|
|
3128
|
-
declare const generatePageNameByApp: (app: MApp, type: NodeType.PAGE | NodeType.PAGE_FRAGMENT) => string;
|
|
3129
|
-
declare const getNodeIndex: (id: Id, parent: MContainer | MApp) => number;
|
|
3130
|
-
declare const getRelativeStyle: (style?: Record<string, any>) => Record<string, any>;
|
|
3131
|
-
declare const getInitPositionStyle: (style: Record<string, any> | undefined, layout: Layout) => Record<string, any>;
|
|
3132
|
-
declare const setChildrenLayout: (node: MContainer, layout: Layout) => MContainer;
|
|
3133
|
-
declare const setLayout: (node: MNode, layout: Layout) => import("@tmagic/schema").MComponent | undefined;
|
|
3134
|
-
declare const change2Fixed: (node: MNode, path: MNode[]) => {
|
|
3128
|
+
export declare const generatePageNameByApp: (app: MApp, type: NodeType.PAGE | NodeType.PAGE_FRAGMENT) => string;
|
|
3129
|
+
export declare const getNodeIndex: (id: Id, parent: MContainer | MApp) => number;
|
|
3130
|
+
export declare const getRelativeStyle: (style?: Record<string, any>) => Record<string, any>;
|
|
3131
|
+
export declare const getInitPositionStyle: (style: Record<string, any> | undefined, layout: Layout) => Record<string, any>;
|
|
3132
|
+
export declare const setChildrenLayout: (node: MContainer, layout: Layout) => MContainer;
|
|
3133
|
+
export declare const setLayout: (node: MNode, layout: Layout) => import("@tmagic/schema").MComponent | undefined;
|
|
3134
|
+
export declare const change2Fixed: (node: MNode, path: MNode[]) => {
|
|
3135
3135
|
[key: string]: any;
|
|
3136
3136
|
};
|
|
3137
|
-
declare const Fixed2Other: (node: MNode, path: MNode[], getLayout: (parent: MNode, node?: MNode) => Promise<Layout>) => Promise<Record<string, any>>;
|
|
3138
|
-
declare const getGuideLineFromCache: (key: string) => number[];
|
|
3139
|
-
declare const fixNodeLeft: (config: MNode, parent: MContainer, doc?: Document) => any;
|
|
3140
|
-
declare const fixNodePosition: (config: MNode, parent: MContainer, stage: StageCore$1 | null) => import("@tmagic/schema").StyleSchema | undefined;
|
|
3141
|
-
declare const serializeConfig: (config: any) => string;
|
|
3142
|
-
declare const moveItemsInContainer: (sourceIndices: number[], parent: MContainer, targetIndex: number) => void;
|
|
3143
|
-
declare const isIncludeDataSource: (node: MNode, oldNode: MNode) => boolean;
|
|
3144
|
-
declare const buildChangeRecords: (value: any, basePath: string) => {
|
|
3137
|
+
export declare const Fixed2Other: (node: MNode, path: MNode[], getLayout: (parent: MNode, node?: MNode) => Promise<Layout>) => Promise<Record<string, any>>;
|
|
3138
|
+
export declare const getGuideLineFromCache: (key: string) => number[];
|
|
3139
|
+
export declare const fixNodeLeft: (config: MNode, parent: MContainer, doc?: Document) => any;
|
|
3140
|
+
export declare const fixNodePosition: (config: MNode, parent: MContainer, stage: StageCore$1 | null) => import("@tmagic/schema").StyleSchema | undefined;
|
|
3141
|
+
export declare const serializeConfig: (config: any) => string;
|
|
3142
|
+
export declare const moveItemsInContainer: (sourceIndices: number[], parent: MContainer, targetIndex: number) => void;
|
|
3143
|
+
export declare const isIncludeDataSource: (node: MNode, oldNode: MNode) => boolean;
|
|
3144
|
+
export declare const buildChangeRecords: (value: any, basePath: string) => {
|
|
3145
3145
|
propPath: string;
|
|
3146
3146
|
value: any;
|
|
3147
3147
|
}[];
|
|
@@ -3152,7 +3152,7 @@ declare const buildChangeRecords: (value: any, basePath: string) => {
|
|
|
3152
3152
|
* @param rootId 根节点ID,用于排除根节点被选中
|
|
3153
3153
|
* @returns 选中节点的完整信息(node、parent、page)
|
|
3154
3154
|
*/
|
|
3155
|
-
declare const resolveSelectedNode: (config: MNode | Id, getNodeInfoFn: (id: Id) => EditorNodeInfo, rootId?: Id) => EditorNodeInfo;
|
|
3155
|
+
export declare const resolveSelectedNode: (config: MNode | Id, getNodeInfoFn: (id: Id) => EditorNodeInfo, rootId?: Id) => EditorNodeInfo;
|
|
3156
3156
|
/**
|
|
3157
3157
|
* 处理节点在 fixed 定位与其他定位之间的切换
|
|
3158
3158
|
* 当节点从非 fixed 变为 fixed 时,根据节点路径累加偏移量;反之则还原偏移量
|
|
@@ -3162,7 +3162,7 @@ declare const resolveSelectedNode: (config: MNode | Id, getNodeInfoFn: (id: Id)
|
|
|
3162
3162
|
* @param getLayoutFn 获取父节点布局方式的回调函数
|
|
3163
3163
|
* @returns 处理后的节点配置(深拷贝)
|
|
3164
3164
|
*/
|
|
3165
|
-
declare const toggleFixedPosition: (dist: MNode, src: MNode, path: MNode[], getLayoutFn: (parent: MNode, node?: MNode | null) => Promise<Layout>) => Promise<MNode>;
|
|
3165
|
+
export declare const toggleFixedPosition: (dist: MNode, src: MNode, path: MNode[], getLayoutFn: (parent: MNode, node?: MNode | null) => Promise<Layout>) => Promise<MNode>;
|
|
3166
3166
|
/**
|
|
3167
3167
|
* 根据键盘移动的偏移量计算节点的新样式
|
|
3168
3168
|
* 仅对 absolute 或 fixed 定位的节点生效;优先修改 top/left,若未设置则修改 bottom/right
|
|
@@ -3171,7 +3171,7 @@ declare const toggleFixedPosition: (dist: MNode, src: MNode, path: MNode[], getL
|
|
|
3171
3171
|
* @param top 垂直方向偏移量(正值向下,负值向上)
|
|
3172
3172
|
* @returns 计算后的新样式对象,若节点不支持移动则返回 null
|
|
3173
3173
|
*/
|
|
3174
|
-
declare const calcMoveStyle: (style: Record<string, any>, left: number, top: number) => Record<string, any> | null;
|
|
3174
|
+
export declare const calcMoveStyle: (style: Record<string, any>, left: number, top: number) => Record<string, any> | null;
|
|
3175
3175
|
/**
|
|
3176
3176
|
* 计算节点水平居中对齐后的样式
|
|
3177
3177
|
* 流式布局(relative)下不做处理;优先通过 DOM 元素实际宽度计算,回退到配置中的 width 值
|
|
@@ -3181,7 +3181,7 @@ declare const calcMoveStyle: (style: Record<string, any>, left: number, top: num
|
|
|
3181
3181
|
* @param doc 画布 document 对象,用于获取 DOM 元素实际宽度
|
|
3182
3182
|
* @returns 计算后的新样式对象,若不支持居中则返回 null
|
|
3183
3183
|
*/
|
|
3184
|
-
declare const calcAlignCenterStyle: (node: MNode, parent: MContainer, layout: Layout, doc?: Document) => Record<string, any> | null;
|
|
3184
|
+
export declare const calcAlignCenterStyle: (node: MNode, parent: MContainer, layout: Layout, doc?: Document) => Record<string, any> | null;
|
|
3185
3185
|
/**
|
|
3186
3186
|
* 计算图层移动后的目标索引
|
|
3187
3187
|
* 流式布局与绝对定位布局的移动方向相反:流式布局中"上移"对应索引减小,绝对定位中"上移"对应索引增大
|
|
@@ -3191,22 +3191,22 @@ declare const calcAlignCenterStyle: (node: MNode, parent: MContainer, layout: La
|
|
|
3191
3191
|
* @param isRelative 是否为流式布局
|
|
3192
3192
|
* @returns 目标索引位置
|
|
3193
3193
|
*/
|
|
3194
|
-
declare const calcLayerTargetIndex: (currentIndex: number, offset: number | LayerOffset, brothersLength: number, isRelative: boolean) => number;
|
|
3194
|
+
export declare const calcLayerTargetIndex: (currentIndex: number, offset: number | LayerOffset, brothersLength: number, isRelative: boolean) => number;
|
|
3195
3195
|
/**
|
|
3196
3196
|
* 节点配置合并策略:用于 mergeWith 的自定义回调
|
|
3197
3197
|
* - undefined 且 source 拥有该 key 时返回空字符串
|
|
3198
3198
|
* - 原来是数组而新值是对象时,使用新值
|
|
3199
3199
|
* - 新值是数组时,直接替换而非逐元素合并
|
|
3200
3200
|
*/
|
|
3201
|
-
declare const editorNodeMergeCustomizer: (objValue: any, srcValue: any, key: string, _object: any, source: any) => object | "" | undefined;
|
|
3201
|
+
export declare const editorNodeMergeCustomizer: (objValue: any, srcValue: any, key: string, _object: any, source: any) => object | "" | undefined;
|
|
3202
3202
|
/**
|
|
3203
3203
|
* 收集复制节点关联的依赖节点,将关联节点追加到 copyNodes 数组中
|
|
3204
3204
|
* @param copyNodes 待复制的节点列表(会被就地修改)
|
|
3205
3205
|
* @param collectorOptions 依赖收集器配置
|
|
3206
3206
|
* @param getNodeById 根据 ID 获取节点的回调函数
|
|
3207
3207
|
*/
|
|
3208
|
-
declare const collectRelatedNodes: (copyNodes: MNode[], collectorOptions: TargetOptions, getNodeById: (id: Id) => MNode | null) => void;
|
|
3209
|
-
interface DragClassification {
|
|
3208
|
+
export declare const collectRelatedNodes: (copyNodes: MNode[], collectorOptions: TargetOptions, getNodeById: (id: Id) => MNode | null) => void;
|
|
3209
|
+
export interface DragClassification {
|
|
3210
3210
|
sameParentIndices: number[];
|
|
3211
3211
|
crossParentConfigs: {
|
|
3212
3212
|
config: MNode;
|
|
@@ -3222,12 +3222,12 @@ interface DragClassification {
|
|
|
3222
3222
|
* @param getNodeInfo 获取节点信息的回调
|
|
3223
3223
|
* @returns 分类结果,包含同容器索引列表和跨容器节点列表
|
|
3224
3224
|
*/
|
|
3225
|
-
declare const classifyDragSources: (configs: MNode[], targetParent: MContainer, getNodeInfo: (id: Id, raw?: boolean) => EditorNodeInfo) => DragClassification;
|
|
3225
|
+
export declare const classifyDragSources: (configs: MNode[], targetParent: MContainer, getNodeInfo: (id: Id, raw?: boolean) => EditorNodeInfo) => DragClassification;
|
|
3226
3226
|
/**
|
|
3227
3227
|
* 给「回滚」生成的新 step 用的简短描述生成器。
|
|
3228
3228
|
* 与 UI 层 `describePageStep` 同义,但避免 service 反向依赖 layouts/,故放在此工具函数中。
|
|
3229
3229
|
*/
|
|
3230
|
-
declare const describeStepForRevert: (step: StepValue) => string;
|
|
3230
|
+
export declare const describeStepForRevert: (step: StepValue) => string;
|
|
3231
3231
|
//#endregion
|
|
3232
3232
|
//#region temp/packages/editor/src/utils/operator.d.ts
|
|
3233
3233
|
/**
|
|
@@ -3236,33 +3236,33 @@ declare const describeStepForRevert: (step: StepValue) => string;
|
|
|
3236
3236
|
* @param config 待粘贴的元素配置(复制时保存的那份配置)
|
|
3237
3237
|
* @returns
|
|
3238
3238
|
*/
|
|
3239
|
-
declare const beforePaste: (position: PastePosition, config: MNode[], doc?: Document) => MNode[];
|
|
3239
|
+
export declare const beforePaste: (position: PastePosition, config: MNode[], doc?: Document) => MNode[];
|
|
3240
3240
|
/**
|
|
3241
3241
|
* 将元素粘贴到容器内时,将相对于画布坐标转换为相对于容器的坐标
|
|
3242
3242
|
* @param position PastePosition 粘贴时相对于画布的坐标
|
|
3243
3243
|
* @param id 元素id
|
|
3244
3244
|
* @returns PastePosition 转换后的坐标
|
|
3245
3245
|
*/
|
|
3246
|
-
declare const getPositionInContainer: (position: PastePosition | undefined, id: Id, doc?: Document) => {
|
|
3246
|
+
export declare const getPositionInContainer: (position: PastePosition | undefined, id: Id, doc?: Document) => {
|
|
3247
3247
|
left: number;
|
|
3248
3248
|
top: number;
|
|
3249
3249
|
};
|
|
3250
|
-
declare const getAddParent: (node: MNode) => MContainer | null | undefined;
|
|
3251
|
-
declare const getDefaultConfig: (addNode: AddMNode, parentNode: MContainer) => Promise<any>;
|
|
3250
|
+
export declare const getAddParent: (node: MNode) => MContainer | null | undefined;
|
|
3251
|
+
export declare const getDefaultConfig: (addNode: AddMNode, parentNode: MContainer) => Promise<any>;
|
|
3252
3252
|
//#endregion
|
|
3253
3253
|
//#region temp/packages/editor/src/utils/data-source/index.d.ts
|
|
3254
|
-
declare const getFormConfig: (type: string, configs: Record<string, FormConfig>) => FormConfig;
|
|
3255
|
-
declare const getFormValue: (type: string, values: Partial<DataSourceSchema>) => Partial<DataSourceSchema>;
|
|
3256
|
-
declare const getDisplayField: (dataSources: DataSourceSchema[], key: string) => {
|
|
3254
|
+
export declare const getFormConfig: (type: string, configs: Record<string, FormConfig>) => FormConfig;
|
|
3255
|
+
export declare const getFormValue: (type: string, values: Partial<DataSourceSchema>) => Partial<DataSourceSchema>;
|
|
3256
|
+
export declare const getDisplayField: (dataSources: DataSourceSchema[], key: string) => {
|
|
3257
3257
|
value: string;
|
|
3258
3258
|
type: "var" | "text";
|
|
3259
3259
|
}[];
|
|
3260
|
-
declare const getCascaderOptionsFromFields: (fields?: DataSchema[], dataSourceFieldType?: DataSourceFieldType[]) => CascaderOption[];
|
|
3260
|
+
export declare const getCascaderOptionsFromFields: (fields?: DataSchema[], dataSourceFieldType?: DataSourceFieldType[]) => CascaderOption[];
|
|
3261
3261
|
/**
|
|
3262
3262
|
* 按字段名路径下钻 DataSchema。
|
|
3263
3263
|
* @param skipNumberIndices 为 true 时跳过数字段(模板路径中的数组下标,如 arr[0].x)
|
|
3264
3264
|
*/
|
|
3265
|
-
declare const resolveFieldByPath: (fields: DataSchema[] | undefined, fieldNames: string[], options?: {
|
|
3265
|
+
export declare const resolveFieldByPath: (fields: DataSchema[] | undefined, fieldNames: string[], options?: {
|
|
3266
3266
|
skipNumberIndices?: boolean;
|
|
3267
3267
|
}) => {
|
|
3268
3268
|
ok: boolean;
|
|
@@ -3270,10 +3270,10 @@ declare const resolveFieldByPath: (fields: DataSchema[] | undefined, fieldNames:
|
|
|
3270
3270
|
fields: DataSchema[];
|
|
3271
3271
|
failedName?: string;
|
|
3272
3272
|
};
|
|
3273
|
-
declare const getFieldType: (ds: DataSourceSchema | undefined, fieldNames: string[]) => "" | DataSourceFieldType;
|
|
3273
|
+
export declare const getFieldType: (ds: DataSourceSchema | undefined, fieldNames: string[]) => "" | DataSourceFieldType;
|
|
3274
3274
|
//#endregion
|
|
3275
3275
|
//#region temp/packages/editor/src/utils/dep/idle-task.d.ts
|
|
3276
|
-
interface IdleTaskEvents {
|
|
3276
|
+
export interface IdleTaskEvents {
|
|
3277
3277
|
finish: [];
|
|
3278
3278
|
'hight-level-finish': [];
|
|
3279
3279
|
'update-task-length': [{
|
|
@@ -3281,7 +3281,7 @@ interface IdleTaskEvents {
|
|
|
3281
3281
|
hightLevelLength: number;
|
|
3282
3282
|
}];
|
|
3283
3283
|
}
|
|
3284
|
-
declare class IdleTask<T = any> extends EventEmitter {
|
|
3284
|
+
export declare class IdleTask<T = any> extends EventEmitter {
|
|
3285
3285
|
private taskList;
|
|
3286
3286
|
private hightLevelTaskList;
|
|
3287
3287
|
private taskHandle;
|
|
@@ -3315,7 +3315,7 @@ interface ScrollViewerOptions {
|
|
|
3315
3315
|
height: number;
|
|
3316
3316
|
};
|
|
3317
3317
|
}
|
|
3318
|
-
declare class ScrollViewer extends EventEmitter {
|
|
3318
|
+
export declare class ScrollViewer extends EventEmitter {
|
|
3319
3319
|
private container;
|
|
3320
3320
|
private target;
|
|
3321
3321
|
private zoom;
|
|
@@ -3343,9 +3343,9 @@ declare class ScrollViewer extends EventEmitter {
|
|
|
3343
3343
|
}
|
|
3344
3344
|
//#endregion
|
|
3345
3345
|
//#region temp/packages/editor/src/utils/tree.d.ts
|
|
3346
|
-
declare const updateStatus: (nodeStatusMap: Map<Id, LayerNodeStatus>, id: Id, status: Partial<LayerNodeStatus>) => void;
|
|
3346
|
+
export declare const updateStatus: (nodeStatusMap: Map<Id, LayerNodeStatus>, id: Id, status: Partial<LayerNodeStatus>) => void;
|
|
3347
3347
|
/** 默认的组件树节点是否可展开的判断函数:当节点的子项中至少存在一个可见节点时认为可展开 */
|
|
3348
|
-
declare const defaultIsExpandable: IsExpandableFunction;
|
|
3348
|
+
export declare const defaultIsExpandable: IsExpandableFunction;
|
|
3349
3349
|
//#endregion
|
|
3350
3350
|
//#region temp/packages/editor/src/utils/indexed-db.d.ts
|
|
3351
3351
|
/**
|
|
@@ -3353,20 +3353,20 @@ declare const defaultIsExpandable: IsExpandableFunction;
|
|
|
3353
3353
|
* 仅用于浏览器环境;在不支持 IndexedDB 的环境(如 SSR / 部分测试环境)下会 reject。
|
|
3354
3354
|
*/
|
|
3355
3355
|
/** 是否处于支持 IndexedDB 的环境。 */
|
|
3356
|
-
declare const isIndexedDBSupported: () => boolean;
|
|
3356
|
+
export declare const isIndexedDBSupported: () => boolean;
|
|
3357
3357
|
/**
|
|
3358
3358
|
* 打开(必要时升级)数据库,确保目标 objectStore 存在后返回连接。
|
|
3359
3359
|
*
|
|
3360
3360
|
* 由于 objectStore 只能在 `onupgradeneeded` 内创建,这里先以当前版本打开,
|
|
3361
3361
|
* 若发现 store 不存在则关闭连接、以更高版本重开来按需创建,兼容动态 storeName。
|
|
3362
3362
|
*/
|
|
3363
|
-
declare const openIndexedDB: (dbName: string, storeName: string) => Promise<IDBDatabase>;
|
|
3363
|
+
export declare const openIndexedDB: (dbName: string, storeName: string) => Promise<IDBDatabase>;
|
|
3364
3364
|
/** 写入(覆盖)一条记录。value 通过结构化克隆存储,支持 Map / Set 等结构。 */
|
|
3365
|
-
declare const idbSet: (dbName: string, storeName: string, key: IDBValidKey, value: unknown) => Promise<void>;
|
|
3365
|
+
export declare const idbSet: (dbName: string, storeName: string, key: IDBValidKey, value: unknown) => Promise<void>;
|
|
3366
3366
|
/** 读取一条记录,不存在时返回 undefined。 */
|
|
3367
|
-
declare const idbGet: <T = unknown>(dbName: string, storeName: string, key: IDBValidKey) => Promise<T | undefined>;
|
|
3367
|
+
export declare const idbGet: <T = unknown>(dbName: string, storeName: string, key: IDBValidKey) => Promise<T | undefined>;
|
|
3368
3368
|
/** 删除一条记录。 */
|
|
3369
|
-
declare const idbDelete: (dbName: string, storeName: string, key: IDBValidKey) => Promise<void>;
|
|
3369
|
+
export declare const idbDelete: (dbName: string, storeName: string, key: IDBValidKey) => Promise<void>;
|
|
3370
3370
|
//#endregion
|
|
3371
3371
|
//#region temp/packages/editor/src/utils/history.d.ts
|
|
3372
3372
|
/**
|
|
@@ -3378,11 +3378,11 @@ declare const idbDelete: (dbName: string, storeName: string, key: IDBValidKey) =
|
|
|
3378
3378
|
* @param diff 单条变更 diff(缺省视为空)
|
|
3379
3379
|
* @param getLabel 从快照取展示名
|
|
3380
3380
|
*/
|
|
3381
|
-
declare const describeRevertStep: <T extends object>(id: Id, { oldSchema, newSchema, changeRecords }: StepDiffItem<T> | undefined, getLabel: (schema: T) => string | undefined) => string;
|
|
3381
|
+
export declare const describeRevertStep: <T extends object>(id: Id, { oldSchema, newSchema, changeRecords }: StepDiffItem<T> | undefined, getLabel: (schema: T) => string | undefined) => string;
|
|
3382
3382
|
/**
|
|
3383
3383
|
* 根据 old/new 是否为 null 推断 opType(与 push 时的约定一致)。
|
|
3384
3384
|
*/
|
|
3385
|
-
declare const detectStackOpType: (oldVal: unknown, newVal: unknown) => "add" | "remove" | "update";
|
|
3385
|
+
export declare const detectStackOpType: (oldVal: unknown, newVal: unknown) => "add" | "remove" | "update";
|
|
3386
3386
|
/**
|
|
3387
3387
|
* 构造一条代码块 / 数据源「按 id 分栈」的历史记录:两者除 payload 字段命名外完全一致。
|
|
3388
3388
|
*
|
|
@@ -3391,14 +3391,14 @@ declare const detectStackOpType: (oldVal: unknown, newVal: unknown) => "add" | "
|
|
|
3391
3391
|
* - 仅负责构造 step 并返回,入栈与事件 emit 由统一的 history.push(stepType, step, id) 处理。
|
|
3392
3392
|
* - 不直接驱动业务 service,调用方负责实际写回。
|
|
3393
3393
|
*/
|
|
3394
|
-
declare const createStackStep: <T, S extends BaseStepValue<T>>(id: Id, payload: Omit<BaseStepValue<T>, "uuid" | "data" | "opType" | "diff" | "timestamp" | "saved"> & {
|
|
3394
|
+
export declare const createStackStep: <T, S extends BaseStepValue<T>>(id: Id, payload: Omit<BaseStepValue<T>, "uuid" | "data" | "opType" | "diff" | "timestamp" | "saved"> & {
|
|
3395
3395
|
oldValue: T | null;
|
|
3396
3396
|
newValue: T | null;
|
|
3397
3397
|
changeRecords?: ChangeRecord[];
|
|
3398
3398
|
/** 展示名(缺省时从快照 name / title 推断)。 */
|
|
3399
3399
|
name?: string;
|
|
3400
3400
|
}) => S | null;
|
|
3401
|
-
declare const markStackSaved: <S extends {
|
|
3401
|
+
export declare const markStackSaved: <S extends {
|
|
3402
3402
|
saved?: boolean;
|
|
3403
3403
|
}>(undoRedo?: UndoRedo<S>) => void;
|
|
3404
3404
|
/**
|
|
@@ -3409,16 +3409,16 @@ declare const markStackSaved: <S extends {
|
|
|
3409
3409
|
*
|
|
3410
3410
|
* 各类型行为完全一致,仅 `kind` 与 step 快照类型不同,统一由本方法处理。
|
|
3411
3411
|
*/
|
|
3412
|
-
declare const mergeSteps: <T extends BaseStepValue>(kind: string, id: Id, list: T[], cursor: number) => HistoryGroup<T>[];
|
|
3412
|
+
export declare const mergeSteps: <T extends BaseStepValue>(kind: string, id: Id, list: T[], cursor: number) => HistoryGroup<T>[];
|
|
3413
3413
|
/**
|
|
3414
3414
|
* 解析 step 中的"目标 id"用于合并:
|
|
3415
3415
|
* - 单实体 update:取唯一一项 diff 的快照 id;快照无 id 时(如 CodeBlockContent)回退到 `step.data.id`
|
|
3416
3416
|
* (即资源 id),使代码块 / 数据源同样能按资源合并相邻 update;
|
|
3417
3417
|
* - 其它情形(多实体 update / add / remove):返回 undefined,表示不参与合并。
|
|
3418
3418
|
*/
|
|
3419
|
-
declare const detectTargetId: (step: BaseStepValue) => Id | undefined;
|
|
3419
|
+
export declare const detectTargetId: (step: BaseStepValue) => Id | undefined;
|
|
3420
3420
|
/** 解析 step 中的目标可读名(用于 UI 展示)。 */
|
|
3421
|
-
declare const detectTargetName: (step: BaseStepValue) => string | undefined;
|
|
3421
|
+
export declare const detectTargetName: (step: BaseStepValue) => string | undefined;
|
|
3422
3422
|
/**
|
|
3423
3423
|
* 把 `Record<Id, UndoRedo>` 整体序列化为 `Record<Id, SerializedUndoRedo>`。
|
|
3424
3424
|
*
|
|
@@ -3427,7 +3427,7 @@ declare const detectTargetName: (step: BaseStepValue) => string | undefined;
|
|
|
3427
3427
|
* 这样既能写入函数,又避免序列化整份快照的开销;读取时再由 {@link parseStacksStepDiff} 还原 diff。
|
|
3428
3428
|
* 不含 `diff` 的元素(如通用栈)原样透传。
|
|
3429
3429
|
*/
|
|
3430
|
-
declare const serializeStacks: <T extends {
|
|
3430
|
+
export declare const serializeStacks: <T extends {
|
|
3431
3431
|
diff?: unknown;
|
|
3432
3432
|
}>(stacks: Record<Id, UndoRedo<T>>) => Record<Id, SerializedUndoRedo<T>>;
|
|
3433
3433
|
/**
|
|
@@ -3437,39 +3437,39 @@ declare const serializeStacks: <T extends {
|
|
|
3437
3437
|
* 与 {@link serializeStacks} 相反:当传入 `parse`(parseDSL)时,把每条 step 中以字符串形式存储的 `diff`
|
|
3438
3438
|
* 解析回真实对象(含函数);不含 `diff` 的元素(如通用栈)原样透传。
|
|
3439
3439
|
*/
|
|
3440
|
-
declare const deserializeStacks: <T extends {
|
|
3440
|
+
export declare const deserializeStacks: <T extends {
|
|
3441
3441
|
saved?: boolean;
|
|
3442
3442
|
}>(stacks?: Record<Id, ReturnType<UndoRedo<T>["serialize"]>>, parse?: (serialized: string) => unknown) => Record<Id, UndoRedo<T>>;
|
|
3443
3443
|
/**
|
|
3444
3444
|
* 按 id 从「按 id 分栈」的记录表(代码块 / 数据源)中获取(或创建)对应的 UndoRedo 栈。
|
|
3445
3445
|
*/
|
|
3446
|
-
declare const getOrCreateStack: <T>(stacks: Record<Id, UndoRedo<T>>, id: Id) => UndoRedo<T>;
|
|
3446
|
+
export declare const getOrCreateStack: <T>(stacks: Record<Id, UndoRedo<T>>, id: Id) => UndoRedo<T>;
|
|
3447
3447
|
/**
|
|
3448
3448
|
* 撤销下限:当栈 index 0 是 `opType: 'initial'` 的基线 step 时为 1(基线不可被撤销),否则为 0。
|
|
3449
3449
|
* 适用于所有历史类型(page / codeBlock / dataSource / 扩展),把 cursor 钉在基线之上,
|
|
3450
3450
|
* 保证 undo / canUndo / goto 都不会越过初始基线。
|
|
3451
3451
|
*/
|
|
3452
|
-
declare const undoFloor: (undoRedo: UndoRedo<any>) => number;
|
|
3452
|
+
export declare const undoFloor: (undoRedo: UndoRedo<any>) => number;
|
|
3453
3453
|
/** 将单次 push 产生的 history uuid(或 null)转为 *AndGetHistoryId 返回用的 uuid 列表。 */
|
|
3454
|
-
declare const getLastPushedHistoryIds: (historyId: string | null) => string[];
|
|
3454
|
+
export declare const getLastPushedHistoryIds: (historyId: string | null) => string[];
|
|
3455
3455
|
//#endregion
|
|
3456
3456
|
//#region temp/packages/editor/src/utils/const.d.ts
|
|
3457
3457
|
/** 当uiService.get('uiSelectMode')为true,点击组件(包括任何形式,组件树/画布)时触发的事件名 */
|
|
3458
|
-
declare const UI_SELECT_MODE_EVENT_NAME = "ui-select";
|
|
3459
|
-
declare const LEFT_COLUMN_WIDTH_STORAGE_KEY = "$MagicEditorLeftColumnWidthData";
|
|
3460
|
-
declare const RIGHT_COLUMN_WIDTH_STORAGE_KEY = "$MagicEditorRightColumnWidthData";
|
|
3461
|
-
declare const PROPS_PANEL_WIDTH_STORAGE_KEY = "$MagicEditorPropsPanelWidthData";
|
|
3462
|
-
declare const DEFAULT_LEFT_COLUMN_WIDTH = 345;
|
|
3463
|
-
declare const DEFAULT_RIGHT_COLUMN_WIDTH = 480;
|
|
3464
|
-
declare const MIN_LEFT_COLUMN_WIDTH = 345;
|
|
3465
|
-
declare const MIN_CENTER_COLUMN_WIDTH = 400;
|
|
3466
|
-
declare const MIN_RIGHT_COLUMN_WIDTH = 300;
|
|
3467
|
-
declare const H_GUIDE_LINE_STORAGE_KEY = "$MagicStageHorizontalGuidelinesData";
|
|
3468
|
-
declare const V_GUIDE_LINE_STORAGE_KEY = "$MagicStageVerticalGuidelinesData";
|
|
3458
|
+
export declare const UI_SELECT_MODE_EVENT_NAME = "ui-select";
|
|
3459
|
+
export declare const LEFT_COLUMN_WIDTH_STORAGE_KEY = "$MagicEditorLeftColumnWidthData";
|
|
3460
|
+
export declare const RIGHT_COLUMN_WIDTH_STORAGE_KEY = "$MagicEditorRightColumnWidthData";
|
|
3461
|
+
export declare const PROPS_PANEL_WIDTH_STORAGE_KEY = "$MagicEditorPropsPanelWidthData";
|
|
3462
|
+
export declare const DEFAULT_LEFT_COLUMN_WIDTH = 345;
|
|
3463
|
+
export declare const DEFAULT_RIGHT_COLUMN_WIDTH = 480;
|
|
3464
|
+
export declare const MIN_LEFT_COLUMN_WIDTH = 345;
|
|
3465
|
+
export declare const MIN_CENTER_COLUMN_WIDTH = 400;
|
|
3466
|
+
export declare const MIN_RIGHT_COLUMN_WIDTH = 300;
|
|
3467
|
+
export declare const H_GUIDE_LINE_STORAGE_KEY = "$MagicStageHorizontalGuidelinesData";
|
|
3468
|
+
export declare const V_GUIDE_LINE_STORAGE_KEY = "$MagicStageVerticalGuidelinesData";
|
|
3469
3469
|
//#endregion
|
|
3470
3470
|
//#region temp/packages/editor/src/utils/type-match-rules.d.ts
|
|
3471
|
-
declare const ALL_COND_OPS: Set<string>;
|
|
3472
|
-
type ValidateDataSourceFieldSelectOptions = {
|
|
3471
|
+
export declare const ALL_COND_OPS: Set<string>;
|
|
3472
|
+
export type ValidateDataSourceFieldSelectOptions = {
|
|
3473
3473
|
/**
|
|
3474
3474
|
* 覆盖「非数据源字段路径」时的校验。
|
|
3475
3475
|
* 不传则按 fieldConfig 走内置 typeMatch(与表单项自身 typeMatch 行为一致)。
|
|
@@ -3479,31 +3479,31 @@ type ValidateDataSourceFieldSelectOptions = {
|
|
|
3479
3479
|
/**
|
|
3480
3480
|
* data-source-field-select 的 typeMatch 校验逻辑,可供自定义 rules.validator 复用。
|
|
3481
3481
|
*/
|
|
3482
|
-
declare const validateDataSourceFieldSelect: (value: any, context: TypeMatchValidateContext, options?: ValidateDataSourceFieldSelectOptions) => string | undefined | Promise<string | undefined>;
|
|
3483
|
-
declare const editorTypeMatchRules: Record<string, TypeMatchValidator>;
|
|
3482
|
+
export declare const validateDataSourceFieldSelect: (value: any, context: TypeMatchValidateContext, options?: ValidateDataSourceFieldSelectOptions) => string | undefined | Promise<string | undefined>;
|
|
3483
|
+
export declare const editorTypeMatchRules: Record<string, TypeMatchValidator>;
|
|
3484
3484
|
//#endregion
|
|
3485
3485
|
//#region temp/packages/editor/src/utils/event.d.ts
|
|
3486
|
-
declare const EVENT_NAME_VALUE_SEPARATOR = ".";
|
|
3487
|
-
type EventNameSelectOption = {
|
|
3486
|
+
export declare const EVENT_NAME_VALUE_SEPARATOR = ".";
|
|
3487
|
+
export type EventNameSelectOption = {
|
|
3488
3488
|
text: string;
|
|
3489
3489
|
value: string;
|
|
3490
3490
|
};
|
|
3491
|
-
type EventNameOption = EventOption | CascaderOption | EventNameSelectOption;
|
|
3491
|
+
export type EventNameOption = EventOption | CascaderOption | EventNameSelectOption;
|
|
3492
3492
|
/** 与 EventSelect 中 checkStrictly 一致:component 为 false,其余为 true */
|
|
3493
|
-
declare const isEventNameCheckStrictly: (src?: string) => boolean;
|
|
3493
|
+
export declare const isEventNameCheckStrictly: (src?: string) => boolean;
|
|
3494
3494
|
/** 将动作 method 值规范为与 collectEventNameOptionValues 一致的字符串(cascader 无 valueSeparator 时存数组) */
|
|
3495
|
-
declare const normalizeCompActionValue: (value: unknown) => string;
|
|
3495
|
+
export declare const normalizeCompActionValue: (value: unknown) => string;
|
|
3496
3496
|
/**
|
|
3497
3497
|
* 组装事件名称下拉/级联 options,与 EventSelect 默认 eventNameConfig.options 逻辑一致。
|
|
3498
3498
|
*/
|
|
3499
|
-
declare const getEventNameOptions: (src: string | undefined, formValue?: Record<string, any>) => EventNameOption[];
|
|
3499
|
+
export declare const getEventNameOptions: (src: string | undefined, formValue?: Record<string, any>) => EventNameOption[];
|
|
3500
3500
|
/** 将 select / cascader options 展平为最终写入 name 的字符串集合(cascader 用 `.` 拼接) */
|
|
3501
|
-
declare const collectEventNameOptionValues: (options: EventNameOption[], checkStrictly: boolean, prefix?: any[], result?: Set<string>) => Set<string>;
|
|
3501
|
+
export declare const collectEventNameOptionValues: (options: EventNameOption[], checkStrictly: boolean, prefix?: any[], result?: Set<string>) => Set<string>;
|
|
3502
3502
|
/**
|
|
3503
3503
|
* 解析 event-select 允许的 name 集合。
|
|
3504
3504
|
* 自定义 eventNameConfig.options 时返回 null(跳过枚举校验)。
|
|
3505
3505
|
*/
|
|
3506
|
-
declare const getEventNameAllowedValues: (config?: {
|
|
3506
|
+
export declare const getEventNameAllowedValues: (config?: {
|
|
3507
3507
|
src?: string;
|
|
3508
3508
|
eventNameConfig?: {
|
|
3509
3509
|
options?: unknown;
|
|
@@ -3512,12 +3512,12 @@ declare const getEventNameAllowedValues: (config?: {
|
|
|
3512
3512
|
/**
|
|
3513
3513
|
* 组装联动组件动作下拉/级联 options,与 EventSelect 默认 compActionConfig.options 逻辑一致。
|
|
3514
3514
|
*/
|
|
3515
|
-
declare const getCompActionOptions: (toId?: Id) => EventNameOption[];
|
|
3515
|
+
export declare const getCompActionOptions: (toId?: Id) => EventNameOption[];
|
|
3516
3516
|
/**
|
|
3517
3517
|
* 解析 event-select 联动组件动作允许的 method 集合。
|
|
3518
3518
|
* 自定义 compActionConfig.options 时返回 null(跳过枚举校验)。
|
|
3519
3519
|
*/
|
|
3520
|
-
declare const getCompActionAllowedValues: (config?: {
|
|
3520
|
+
export declare const getCompActionAllowedValues: (config?: {
|
|
3521
3521
|
src?: string;
|
|
3522
3522
|
compActionConfig?: {
|
|
3523
3523
|
options?: unknown;
|
|
@@ -6471,7 +6471,7 @@ interface HistoryBucketGroup<T extends BaseStepValue = BaseStepValue> {
|
|
|
6471
6471
|
* 通用二次确认弹窗:清空历史 / 无法差异对比的回滚等会改变状态的操作,先弹出确认框,
|
|
6472
6472
|
* 用户点击「确定」返回 true,取消(confirm reject)时返回 false 并静默忽略。
|
|
6473
6473
|
*/
|
|
6474
|
-
declare const confirmHistoryAction: (message: string) => Promise<boolean>;
|
|
6474
|
+
export declare const confirmHistoryAction: (message: string) => Promise<boolean>;
|
|
6475
6475
|
//#endregion
|
|
6476
6476
|
//#region temp/packages/editor/src/layouts/history-list/Bucket.vue.d.ts
|
|
6477
6477
|
declare const __VLS_export$9: <T extends BaseStepValue = BaseStepValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$1<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
@@ -6619,7 +6619,7 @@ declare const _default$21: typeof __VLS_export$7;
|
|
|
6619
6619
|
* onPageDiff(index); // 弹出只读差异弹窗查看前后值差异
|
|
6620
6620
|
* ```
|
|
6621
6621
|
*/
|
|
6622
|
-
declare const useHistoryRevert: (options?: UseHistoryRevertOptions, services?: Services) => {
|
|
6622
|
+
export declare const useHistoryRevert: (options?: UseHistoryRevertOptions, services?: Services) => {
|
|
6623
6623
|
onPageRevert: (index: number) => Promise<StepValue | null | undefined>;
|
|
6624
6624
|
onDataSourceRevert: (id: string | number, index: number) => Promise<DataSourceStepValue | null | undefined>;
|
|
6625
6625
|
onCodeBlockRevert: (id: string | number, index: number) => Promise<CodeBlockStepValue | null | undefined>;
|
|
@@ -6848,11 +6848,11 @@ declare const _default$33: typeof __VLS_export;
|
|
|
6848
6848
|
* innerConfig 返回的 config / model / prop 与组件模板里传给内部容器的那一组保持一一对应,
|
|
6849
6849
|
* 且配置本身与组件共用同一份工厂(`fields/configs/`)。
|
|
6850
6850
|
*/
|
|
6851
|
-
declare const editorFields: Record<string, HeadlessFieldOptions>;
|
|
6851
|
+
export declare const editorFields: Record<string, HeadlessFieldOptions>;
|
|
6852
6852
|
//#endregion
|
|
6853
6853
|
//#region temp/packages/editor/src/plugin.d.ts
|
|
6854
6854
|
declare const _default$43: {
|
|
6855
6855
|
install: (app: App, opt?: Partial<EditorInstallOptions | DesignPluginOptions | FormInstallOptions>) => void;
|
|
6856
6856
|
};
|
|
6857
6857
|
//#endregion
|
|
6858
|
-
export {
|
|
6858
|
+
export { _default as CodeBlockEditor, _default$1 as CodeBlockList, _default$2 as CodeBlockListPanel, _default$3 as CodeSelect, _default$4 as CodeSelectCol, _default$5 as CompareForm, _default$6 as ComponentListPanel, _default$7 as CondOpSelect, _default$8 as ContentMenu, _default$9 as DataSourceAddButton, _default$10 as DataSourceConfigPanel, _default$11 as DataSourceFieldSelect, _default$12 as DataSourceFields, _default$13 as DataSourceInput, _default$14 as DataSourceMethodSelect, _default$15 as DataSourceMethods, _default$16 as DataSourceMocks, _default$17 as DataSourceSelect, DepTargetType, _default$18 as DisplayConds, _default$19 as EventSelect, _default$20 as FloatingBox, _default$21 as HistoryDiffDialog, _default$22 as HistoryListBucket, _default$23 as HistoryListBucketTab, _default$24 as Icon, _default$25 as KeyValue, _default$26 as LayerNodeContent, _default$27 as LayerPanel, _default$28 as LayoutContainer, _default$28 as SplitView, type OnDrag, _default$29 as PageFragmentSelect, _default$30 as PropsFormPanel, _default$31 as PropsPanel, _default$32 as Resizer, StageCore, _default$33 as StyleSetter, _default$34 as TMagicCodeEditor, _default$35 as TMagicEditor, _default$36 as ToolButton, _default$37 as Tree, _default$38 as TreeNode, type TypeMatchValidateContext, _default$39 as ViewForm, _default$40 as codeBlockService, _default$41 as componentListService, _default$42 as dataSourceService, _default$43 as default, _default$44 as depService, designPlugin, _default$45 as editorService, _default$46 as eventsService, formPlugin, getEditorConfig, _default$47 as historyService, isGlobalFlat, _default$48 as keybindingService, _default$49 as loadMonaco, _default$50 as propsService, setEditorConfig, _default$51 as stageOverlayService, _default$52 as storageService, tablePlugin, _default$53 as uiService };
|