@tmagic/editor 1.5.0-beta.3 → 1.5.0-beta.5
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/style.css +274 -2
- package/dist/tmagic-editor.js +103 -46
- package/dist/tmagic-editor.umd.cjs +325 -242
- package/package.json +7 -9
- package/src/Editor.vue +8 -2
- package/src/components/CodeBlockEditor.vue +5 -5
- package/src/components/SearchInput.vue +1 -0
- package/src/components/Tree.vue +10 -2
- package/src/components/TreeNode.vue +4 -2
- package/src/editorProps.ts +5 -2
- package/src/fields/CodeLink.vue +2 -2
- package/src/fields/CodeSelect.vue +1 -1
- package/src/fields/CodeSelectCol.vue +1 -1
- package/src/fields/CondOpSelect.vue +1 -1
- package/src/fields/DataSourceFieldSelect/FieldSelect.vue +2 -8
- package/src/fields/DataSourceFieldSelect/Index.vue +1 -1
- package/src/fields/DataSourceFields.vue +1 -1
- package/src/fields/DataSourceInput.vue +4 -4
- package/src/fields/DataSourceMethodSelect.vue +1 -1
- package/src/fields/DataSourceMethods.vue +1 -1
- package/src/fields/DataSourceMocks.vue +1 -1
- package/src/fields/DisplayConds.vue +1 -1
- package/src/fields/EventSelect.vue +2 -2
- package/src/fields/PageFragmentSelect.vue +1 -1
- package/src/fields/UISelect.vue +1 -1
- package/src/hooks/use-code-block-edit.ts +1 -1
- package/src/hooks/use-data-source-edit.ts +1 -1
- package/src/hooks/use-data-source-method.ts +3 -3
- package/src/hooks/use-filter.ts +1 -1
- package/src/hooks/use-node-status.ts +1 -1
- package/src/hooks/use-stage.ts +2 -6
- package/src/index.ts +27 -7
- package/src/initService.ts +11 -3
- package/src/layouts/AddPageBox.vue +1 -1
- package/src/layouts/CodeEditor.vue +5 -5
- package/src/layouts/Framework.vue +2 -2
- package/src/layouts/NavMenu.vue +1 -1
- package/src/layouts/PropsPanel.vue +1 -1
- package/src/layouts/page-bar/AddButton.vue +1 -1
- package/src/layouts/page-bar/PageBar.vue +1 -1
- package/src/layouts/page-bar/PageBarScrollContainer.vue +1 -1
- package/src/layouts/page-bar/PageList.vue +1 -1
- package/src/layouts/page-bar/SwitchTypeButton.vue +1 -1
- package/src/layouts/sidebar/Sidebar.vue +12 -0
- package/src/layouts/sidebar/code-block/CodeBlockList.vue +11 -3
- package/src/layouts/sidebar/code-block/CodeBlockListPanel.vue +11 -2
- package/src/layouts/sidebar/data-source/DataSourceConfigPanel.vue +1 -1
- package/src/layouts/sidebar/data-source/DataSourceList.vue +13 -3
- package/src/layouts/sidebar/data-source/DataSourceListPanel.vue +12 -1
- package/src/layouts/sidebar/layer/LayerNodeTool.vue +1 -1
- package/src/layouts/sidebar/layer/LayerPanel.vue +5 -1
- package/src/layouts/sidebar/layer/use-click.ts +1 -1
- package/src/layouts/sidebar/layer/use-drag.ts +1 -1
- package/src/layouts/sidebar/layer/use-node-status.ts +1 -1
- package/src/layouts/workspace/Breadcrumb.vue +1 -1
- package/src/layouts/workspace/viewer/NodeListMenu.vue +1 -1
- package/src/layouts/workspace/viewer/Stage.vue +7 -3
- package/src/layouts/workspace/viewer/StageOverlay.vue +6 -1
- package/src/layouts/workspace/viewer/ViewerMenu.vue +1 -1
- package/src/services/codeBlock.ts +7 -7
- package/src/services/dataSource.ts +3 -4
- package/src/services/dep.ts +2 -2
- package/src/services/editor.ts +7 -8
- package/src/services/history.ts +1 -1
- package/src/services/props.ts +3 -3
- package/src/services/storage.ts +2 -2
- package/src/theme/index.scss +3 -0
- package/src/type.ts +13 -10
- package/src/utils/config.ts +5 -5
- package/src/utils/content-menu.ts +1 -1
- package/src/utils/data-source/index.ts +1 -1
- package/src/utils/editor.ts +2 -8
- package/src/utils/operator.ts +2 -1
- package/src/utils/props.ts +1 -1
- package/src/utils/tree.ts +1 -1
- package/types/index.d.ts +53 -29
package/src/type.ts
CHANGED
|
@@ -18,10 +18,9 @@
|
|
|
18
18
|
|
|
19
19
|
import type { Component } from 'vue';
|
|
20
20
|
import type EventEmitter from 'events';
|
|
21
|
-
import Sortable, { Options, SortableEvent } from 'sortablejs';
|
|
21
|
+
import Sortable, { type Options, type SortableEvent } from 'sortablejs';
|
|
22
22
|
import type { PascalCasedProperties } from 'type-fest';
|
|
23
23
|
|
|
24
|
-
import type { ChildConfig, ColumnConfig, FilterFunction, FormConfig, FormItem, FormState, Input } from '@tmagic/form';
|
|
25
24
|
import type {
|
|
26
25
|
CodeBlockContent,
|
|
27
26
|
CodeBlockDSL,
|
|
@@ -33,7 +32,16 @@ import type {
|
|
|
33
32
|
MNode,
|
|
34
33
|
MPage,
|
|
35
34
|
MPageFragment,
|
|
36
|
-
} from '@tmagic/
|
|
35
|
+
} from '@tmagic/core';
|
|
36
|
+
import type {
|
|
37
|
+
ChildConfig,
|
|
38
|
+
FilterFunction,
|
|
39
|
+
FormConfig,
|
|
40
|
+
FormItem,
|
|
41
|
+
FormState,
|
|
42
|
+
Input,
|
|
43
|
+
TableColumnConfig,
|
|
44
|
+
} from '@tmagic/form';
|
|
37
45
|
import type StageCore from '@tmagic/stage';
|
|
38
46
|
import type {
|
|
39
47
|
ContainerHighlightType,
|
|
@@ -118,7 +126,7 @@ export type SidebarSlots = LayerPanelSlots & CodeBlockListPanelSlots & Component
|
|
|
118
126
|
export type BeforeAdd = (config: MNode, parent: MContainer) => Promise<MNode> | MNode;
|
|
119
127
|
export type GetConfig = (config: FormConfig) => Promise<FormConfig> | FormConfig;
|
|
120
128
|
|
|
121
|
-
export interface
|
|
129
|
+
export interface EditorInstallOptions {
|
|
122
130
|
parseDSL: <T = any>(dsl: string) => T;
|
|
123
131
|
[key: string]: any;
|
|
124
132
|
}
|
|
@@ -445,11 +453,6 @@ export interface ComponentGroup {
|
|
|
445
453
|
items: ComponentItem[];
|
|
446
454
|
}
|
|
447
455
|
|
|
448
|
-
export interface UpdateData {
|
|
449
|
-
id: Id;
|
|
450
|
-
[key: string]: any;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
456
|
export enum LayerOffset {
|
|
454
457
|
TOP = 'top',
|
|
455
458
|
BOTTOM = 'bottom',
|
|
@@ -486,7 +489,7 @@ export type CodeState = {
|
|
|
486
489
|
combineIds: string[];
|
|
487
490
|
/** 为业务逻辑预留的不可删除的代码块列表,由业务逻辑维护(如代码块上线后不可删除) */
|
|
488
491
|
undeletableList: Id[];
|
|
489
|
-
paramsColConfig?:
|
|
492
|
+
paramsColConfig?: TableColumnConfig;
|
|
490
493
|
};
|
|
491
494
|
|
|
492
495
|
export type CodeRelation = {
|
package/src/utils/config.ts
CHANGED
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import {
|
|
19
|
+
import { EditorInstallOptions } from '@editor/type';
|
|
20
20
|
|
|
21
|
-
let $TMAGIC_EDITOR:
|
|
21
|
+
let $TMAGIC_EDITOR: EditorInstallOptions = {} as any;
|
|
22
22
|
|
|
23
|
-
const
|
|
23
|
+
const setEditorConfig = (option: EditorInstallOptions): void => {
|
|
24
24
|
$TMAGIC_EDITOR = option;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
const
|
|
27
|
+
const getEditorConfig = <K extends keyof EditorInstallOptions>(key: K): EditorInstallOptions[K] => $TMAGIC_EDITOR[key];
|
|
28
28
|
|
|
29
|
-
export {
|
|
29
|
+
export { getEditorConfig, setEditorConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, markRaw, Ref } from 'vue';
|
|
2
2
|
import { CopyDocument, Delete, DocumentCopy } from '@element-plus/icons-vue';
|
|
3
3
|
|
|
4
|
-
import { Id, MContainer, NodeType } from '@tmagic/
|
|
4
|
+
import { Id, MContainer, NodeType } from '@tmagic/core';
|
|
5
5
|
import { calcValueByFontsize, isPage, isPageFragment } from '@tmagic/utils';
|
|
6
6
|
|
|
7
7
|
import ContentMenu from '@editor/components/ContentMenu.vue';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { DataSchema, DataSourceFieldType, DataSourceSchema } from '@tmagic/core';
|
|
1
2
|
import { CascaderOption, FormConfig, FormState } from '@tmagic/form';
|
|
2
|
-
import { DataSchema, DataSourceFieldType, DataSourceSchema } from '@tmagic/schema';
|
|
3
3
|
import {
|
|
4
4
|
DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX,
|
|
5
5
|
dataSourceTemplateRegExp,
|
package/src/utils/editor.ts
CHANGED
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
|
|
19
19
|
import serialize from 'serialize-javascript';
|
|
20
20
|
|
|
21
|
-
import type { Id, MApp, MContainer, MNode, MPage, MPageFragment } from '@tmagic/
|
|
22
|
-
import { NodeType } from '@tmagic/
|
|
21
|
+
import type { Id, MApp, MContainer, MNode, MPage, MPageFragment } from '@tmagic/core';
|
|
22
|
+
import { NodeType } from '@tmagic/core';
|
|
23
23
|
import type StageCore from '@tmagic/stage';
|
|
24
24
|
import { calcValueByFontsize, getElById, getNodePath, isNumber, isPage, isPageFragment, isPop } from '@tmagic/utils';
|
|
25
25
|
|
|
@@ -81,12 +81,6 @@ export const generatePageName = (pageNameList: string[], type: NodeType.PAGE | N
|
|
|
81
81
|
export const generatePageNameByApp = (app: MApp, type: NodeType.PAGE | NodeType.PAGE_FRAGMENT): string =>
|
|
82
82
|
generatePageName(getPageNameList(type === 'page' ? getPageList(app) : getPageFragmentList(app)), type);
|
|
83
83
|
|
|
84
|
-
/**
|
|
85
|
-
* @param {Object} node
|
|
86
|
-
* @returns {boolean}
|
|
87
|
-
*/
|
|
88
|
-
export const isFixed = (node: MNode): boolean => node.style?.position === 'fixed';
|
|
89
|
-
|
|
90
84
|
export const getNodeIndex = (id: Id, parent: MContainer | MApp): number => {
|
|
91
85
|
const items = parent?.items || [];
|
|
92
86
|
return items.findIndex((item: MNode) => `${item.id}` === `${id}`);
|
package/src/utils/operator.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { toRaw } from 'vue';
|
|
2
2
|
import { isEmpty } from 'lodash-es';
|
|
3
3
|
|
|
4
|
-
import { Id, MContainer, MNode
|
|
4
|
+
import type { Id, MContainer, MNode } from '@tmagic/core';
|
|
5
|
+
import { NodeType } from '@tmagic/core';
|
|
5
6
|
import { calcValueByFontsize, getElById, isPage, isPageFragment } from '@tmagic/utils';
|
|
6
7
|
|
|
7
8
|
import editorService from '@editor/services/editor';
|
package/src/utils/props.ts
CHANGED
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
|
+
import { NODE_CONDS_KEY } from '@tmagic/core';
|
|
20
21
|
import type { FormConfig, FormState, TabPaneConfig } from '@tmagic/form';
|
|
21
|
-
import { NODE_CONDS_KEY } from '@tmagic/schema';
|
|
22
22
|
|
|
23
23
|
export const arrayOptions = [
|
|
24
24
|
{ text: '包含', value: 'include' },
|
package/src/utils/tree.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { Component, ComputedRef, Ref, App } from 'vue';
|
|
3
|
+
import { DesignPluginOptions } from '@tmagic/design';
|
|
4
|
+
export * from '@tmagic/design';
|
|
5
|
+
export { default as designPlugin } from '@tmagic/design';
|
|
6
|
+
import { TableColumnConfig as TableColumnConfig$1, FormConfig as FormConfig$1, FormItem as FormItem$1, FilterFunction as FilterFunction$1, FormState as FormState$1, ChildConfig as ChildConfig$1, Input as Input$1, TabPaneConfig as TabPaneConfig$1, CascaderOption as CascaderOption$1, FieldProps, FormValue as FormValue$1, FormInstallOptions } from '@tmagic/form';
|
|
7
|
+
export * from '@tmagic/form';
|
|
8
|
+
export { default as formPlugin } from '@tmagic/form';
|
|
3
9
|
import EventEmitter$1, { EventEmitter } from 'events';
|
|
4
10
|
import Sortable, { Options as Options$1, SortableEvent } from 'sortablejs';
|
|
5
11
|
import { Writable, PascalCasedProperties } from 'type-fest';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
12
|
+
import * as _tmagic_core from '@tmagic/core';
|
|
13
|
+
import { CodeBlockDSL, Id, CodeBlockContent, MNode, TargetOptions, DataSourceSchema, EventOption, Target, DepExtendedData, DepTargetType, MContainer, MPage, MPageFragment, MApp, DataSourceFieldType, NodeType, DataSchema, DisplayCond } from '@tmagic/core';
|
|
14
|
+
export { DepTargetType } from '@tmagic/core';
|
|
9
15
|
import * as StageCore from '@tmagic/stage';
|
|
10
16
|
import StageCore__default, { ContainerHighlightType, MoveableOptions, CustomizeMoveableOptionsCallbackConfig, UpdateDragEl, RenderType, GuidesOptions } from '@tmagic/stage';
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
export * from '@tmagic/stage';
|
|
18
|
+
export { default as StageCore } from '@tmagic/stage';
|
|
19
|
+
import * as _tmagic_schema from '@tmagic/schema';
|
|
20
|
+
export * from '@tmagic/table';
|
|
21
|
+
export { default as tablePlugin } from '@tmagic/table';
|
|
22
|
+
export * from '@tmagic/utils';
|
|
16
23
|
import * as gesto from 'gesto';
|
|
17
24
|
import gesto__default, { OnDrag } from 'gesto';
|
|
18
25
|
export { OnDrag } from 'gesto';
|
|
@@ -182,8 +189,8 @@ declare class CodeBlock extends export_default {
|
|
|
182
189
|
* @param {Id[]} codeIds 需要删除的代码块id数组
|
|
183
190
|
*/
|
|
184
191
|
deleteCodeDslByIds(codeIds: Id[]): Promise<void>;
|
|
185
|
-
setParamsColConfig(config:
|
|
186
|
-
getParamsColConfig():
|
|
192
|
+
setParamsColConfig(config: TableColumnConfig$1): void;
|
|
193
|
+
getParamsColConfig(): TableColumnConfig$1 | undefined;
|
|
187
194
|
/**
|
|
188
195
|
* 生成代码块唯一id
|
|
189
196
|
* @returns {Id} 代码块唯一id
|
|
@@ -891,7 +898,7 @@ interface PropsPanelSlots {
|
|
|
891
898
|
type SidebarSlots = LayerPanelSlots & CodeBlockListPanelSlots & ComponentListPanelSlots & DataSourceListSlots;
|
|
892
899
|
type BeforeAdd = (config: MNode, parent: MContainer) => Promise<MNode> | MNode;
|
|
893
900
|
type GetConfig = (config: FormConfig$1) => Promise<FormConfig$1> | FormConfig$1;
|
|
894
|
-
interface
|
|
901
|
+
interface EditorInstallOptions {
|
|
895
902
|
parseDSL: <T = any>(dsl: string) => T;
|
|
896
903
|
[key: string]: any;
|
|
897
904
|
}
|
|
@@ -1175,10 +1182,6 @@ interface ComponentGroup {
|
|
|
1175
1182
|
/** 组内列表 */
|
|
1176
1183
|
items: ComponentItem[];
|
|
1177
1184
|
}
|
|
1178
|
-
interface UpdateData {
|
|
1179
|
-
id: Id;
|
|
1180
|
-
[key: string]: any;
|
|
1181
|
-
}
|
|
1182
1185
|
declare enum LayerOffset {
|
|
1183
1186
|
TOP = "top",
|
|
1184
1187
|
BOTTOM = "bottom"
|
|
@@ -1210,7 +1213,7 @@ type CodeState = {
|
|
|
1210
1213
|
combineIds: string[];
|
|
1211
1214
|
/** 为业务逻辑预留的不可删除的代码块列表,由业务逻辑维护(如代码块上线后不可删除) */
|
|
1212
1215
|
undeletableList: Id[];
|
|
1213
|
-
paramsColConfig?:
|
|
1216
|
+
paramsColConfig?: TableColumnConfig$1;
|
|
1214
1217
|
};
|
|
1215
1218
|
type CodeRelation = {
|
|
1216
1219
|
/** 组件id:[代码id1,代码id2] */
|
|
@@ -1898,8 +1901,8 @@ declare const useNodeStatus: (nodeData: ComputedRef<TreeNodeData[]>) => {
|
|
|
1898
1901
|
}> & Omit<Map<Id, LayerNodeStatus>, keyof Map<any, any>>)>;
|
|
1899
1902
|
};
|
|
1900
1903
|
|
|
1901
|
-
declare const
|
|
1902
|
-
declare const
|
|
1904
|
+
declare const setEditorConfig: (option: EditorInstallOptions) => void;
|
|
1905
|
+
declare const getEditorConfig: <K extends keyof EditorInstallOptions>(key: K) => EditorInstallOptions[K];
|
|
1903
1906
|
|
|
1904
1907
|
declare const arrayOptions: {
|
|
1905
1908
|
text: string;
|
|
@@ -1958,11 +1961,6 @@ declare const generatePageName: (pageNameList: string[], type: NodeType.PAGE | N
|
|
|
1958
1961
|
* @returns {string}
|
|
1959
1962
|
*/
|
|
1960
1963
|
declare const generatePageNameByApp: (app: MApp, type: NodeType.PAGE | NodeType.PAGE_FRAGMENT) => string;
|
|
1961
|
-
/**
|
|
1962
|
-
* @param {Object} node
|
|
1963
|
-
* @returns {boolean}
|
|
1964
|
-
*/
|
|
1965
|
-
declare const isFixed: (node: MNode) => boolean;
|
|
1966
1964
|
declare const getNodeIndex: (id: Id, parent: MContainer | MApp) => number;
|
|
1967
1965
|
declare const getRelativeStyle: (style?: Record<string, any>) => Record<string, any>;
|
|
1968
1966
|
declare const getInitPositionStyle: (style: Record<string, any> | undefined, layout: Layout) => Record<string, any>;
|
|
@@ -2282,6 +2280,9 @@ interface DaterangeConfig extends FormItem {
|
|
|
2282
2280
|
type: 'daterange';
|
|
2283
2281
|
defaultTime?: Date[];
|
|
2284
2282
|
names?: string[];
|
|
2283
|
+
valueFormat?: string;
|
|
2284
|
+
dateFormat?: string;
|
|
2285
|
+
timeFormat?: string;
|
|
2285
2286
|
}
|
|
2286
2287
|
/**
|
|
2287
2288
|
* html编辑器
|
|
@@ -2541,7 +2542,7 @@ interface PanelConfig extends FormItem, ContainerCommonConfig {
|
|
|
2541
2542
|
title?: string;
|
|
2542
2543
|
schematic?: string;
|
|
2543
2544
|
}
|
|
2544
|
-
interface
|
|
2545
|
+
interface TableColumnConfig extends FormItem {
|
|
2545
2546
|
name?: string;
|
|
2546
2547
|
label: string;
|
|
2547
2548
|
width?: string | number;
|
|
@@ -2553,9 +2554,9 @@ interface ColumnConfig extends FormItem {
|
|
|
2553
2554
|
*/
|
|
2554
2555
|
interface TableConfig extends FormItem {
|
|
2555
2556
|
type: 'table' | 'groupList' | 'group-list';
|
|
2556
|
-
items:
|
|
2557
|
-
tableItems?:
|
|
2558
|
-
groupItems?:
|
|
2557
|
+
items: TableColumnConfig[];
|
|
2558
|
+
tableItems?: TableColumnConfig[];
|
|
2559
|
+
groupItems?: TableColumnConfig[];
|
|
2559
2560
|
enableToggleMode?: boolean;
|
|
2560
2561
|
/** 最大行数 */
|
|
2561
2562
|
max?: number;
|
|
@@ -2693,6 +2694,10 @@ interface EditorProps {
|
|
|
2693
2694
|
disabledStageOverlay?: boolean;
|
|
2694
2695
|
/** 禁用属性配置面板右下角显示源码的按钮 */
|
|
2695
2696
|
disabledShowSrc?: boolean;
|
|
2697
|
+
/** 已选组件、代码编辑、数据源缩进配置 */
|
|
2698
|
+
indent?: number;
|
|
2699
|
+
/** 已选组件、代码编辑、数据源子节点缩进增量配置 */
|
|
2700
|
+
nextLevelIndentIncrement?: number;
|
|
2696
2701
|
/** 中间工作区域中画布渲染的内容 */
|
|
2697
2702
|
render?: (stage: StageCore__default) => HTMLDivElement | void | Promise<HTMLDivElement | void>;
|
|
2698
2703
|
/** 选中时会在画布上复制出一个大小相同的dom,实际拖拽的是这个dom,此方法用于干预这个dom的生成方式 */
|
|
@@ -5110,9 +5115,13 @@ type __VLS_WithTemplateSlots$a<T, S> = T & {
|
|
|
5110
5115
|
declare function __VLS_template$9(): Readonly<LayerPanelSlots> & LayerPanelSlots;
|
|
5111
5116
|
declare const __VLS_component$9: vue.DefineComponent<__VLS_TypePropsToOption$q<{
|
|
5112
5117
|
layerContentMenu: (MenuButton | MenuComponent)[];
|
|
5118
|
+
indent?: number;
|
|
5119
|
+
nextLevelIndentIncrement?: number;
|
|
5113
5120
|
customContentMenu?: (menus: (MenuButton | MenuComponent)[], type: string) => (MenuButton | MenuComponent)[];
|
|
5114
5121
|
}>, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$q<{
|
|
5115
5122
|
layerContentMenu: (MenuButton | MenuComponent)[];
|
|
5123
|
+
indent?: number;
|
|
5124
|
+
nextLevelIndentIncrement?: number;
|
|
5116
5125
|
customContentMenu?: (menus: (MenuButton | MenuComponent)[], type: string) => (MenuButton | MenuComponent)[];
|
|
5117
5126
|
}>>>, {}, {}>;
|
|
5118
5127
|
declare const _default$s: __VLS_WithTemplateSlots$9<typeof __VLS_component$9, ReturnType<typeof __VLS_template$9>>;
|
|
@@ -5487,6 +5496,8 @@ type __VLS_TypePropsToOption$f<T> = {
|
|
|
5487
5496
|
|
|
5488
5497
|
declare function __VLS_template$8(): Readonly<CodeBlockListSlots> & CodeBlockListSlots;
|
|
5489
5498
|
declare const __VLS_component$8: vue.DefineComponent<__VLS_TypePropsToOption$e<{
|
|
5499
|
+
indent?: number;
|
|
5500
|
+
nextLevelIndentIncrement?: number;
|
|
5490
5501
|
customError?: (id: Id, errorType: CodeDeleteErrorType) => any;
|
|
5491
5502
|
}>, {
|
|
5492
5503
|
filter: (text: string | string[]) => void;
|
|
@@ -5494,6 +5505,8 @@ declare const __VLS_component$8: vue.DefineComponent<__VLS_TypePropsToOption$e<{
|
|
|
5494
5505
|
remove: (id: string) => void;
|
|
5495
5506
|
edit: (id: string) => void;
|
|
5496
5507
|
}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$e<{
|
|
5508
|
+
indent?: number;
|
|
5509
|
+
nextLevelIndentIncrement?: number;
|
|
5497
5510
|
customError?: (id: Id, errorType: CodeDeleteErrorType) => any;
|
|
5498
5511
|
}>>> & {
|
|
5499
5512
|
onRemove?: ((id: string) => any) | undefined;
|
|
@@ -5518,8 +5531,12 @@ type __VLS_TypePropsToOption$e<T> = {
|
|
|
5518
5531
|
|
|
5519
5532
|
declare function __VLS_template$7(): Readonly<CodeBlockListPanelSlots> & CodeBlockListPanelSlots;
|
|
5520
5533
|
declare const __VLS_component$7: vue.DefineComponent<__VLS_TypePropsToOption$d<{
|
|
5534
|
+
indent?: number;
|
|
5535
|
+
nextLevelIndentIncrement?: number;
|
|
5521
5536
|
customError?: (id: Id, errorType: CodeDeleteErrorType) => any;
|
|
5522
5537
|
}>, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<__VLS_TypePropsToOption$d<{
|
|
5538
|
+
indent?: number;
|
|
5539
|
+
nextLevelIndentIncrement?: number;
|
|
5523
5540
|
customError?: (id: Id, errorType: CodeDeleteErrorType) => any;
|
|
5524
5541
|
}>>>, {}, {}>;
|
|
5525
5542
|
declare const _default$f: __VLS_WithTemplateSlots$7<typeof __VLS_component$7, ReturnType<typeof __VLS_template$7>>;
|
|
@@ -6461,6 +6478,7 @@ declare const __VLS_component$1: vue.DefineComponent<__VLS_WithDefaults$3<__VLS_
|
|
|
6461
6478
|
data: TreeNodeData[];
|
|
6462
6479
|
nodeStatusMap: Map<Id, LayerNodeStatus>;
|
|
6463
6480
|
indent?: number;
|
|
6481
|
+
nextLevelIndentIncrement?: number;
|
|
6464
6482
|
emptyText?: string;
|
|
6465
6483
|
}>, {
|
|
6466
6484
|
indent: number;
|
|
@@ -6477,6 +6495,7 @@ declare const __VLS_component$1: vue.DefineComponent<__VLS_WithDefaults$3<__VLS_
|
|
|
6477
6495
|
data: TreeNodeData[];
|
|
6478
6496
|
nodeStatusMap: Map<Id, LayerNodeStatus>;
|
|
6479
6497
|
indent?: number;
|
|
6498
|
+
nextLevelIndentIncrement?: number;
|
|
6480
6499
|
emptyText?: string;
|
|
6481
6500
|
}>, {
|
|
6482
6501
|
indent: number;
|
|
@@ -6545,8 +6564,10 @@ declare const __VLS_component: vue.DefineComponent<__VLS_WithDefaults$2<__VLS_Ty
|
|
|
6545
6564
|
parentsId?: Id[];
|
|
6546
6565
|
nodeStatusMap: Map<Id, LayerNodeStatus>;
|
|
6547
6566
|
indent?: number;
|
|
6567
|
+
nextLevelIndentIncrement?: number;
|
|
6548
6568
|
}>, {
|
|
6549
6569
|
indent: number;
|
|
6570
|
+
nextLevelIndentIncrement: number;
|
|
6550
6571
|
parentsId: () => never[];
|
|
6551
6572
|
}>, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
6552
6573
|
"node-click": (event: MouseEvent, data: TreeNodeData) => void;
|
|
@@ -6561,8 +6582,10 @@ declare const __VLS_component: vue.DefineComponent<__VLS_WithDefaults$2<__VLS_Ty
|
|
|
6561
6582
|
parentsId?: Id[];
|
|
6562
6583
|
nodeStatusMap: Map<Id, LayerNodeStatus>;
|
|
6563
6584
|
indent?: number;
|
|
6585
|
+
nextLevelIndentIncrement?: number;
|
|
6564
6586
|
}>, {
|
|
6565
6587
|
indent: number;
|
|
6588
|
+
nextLevelIndentIncrement: number;
|
|
6566
6589
|
parentsId: () => never[];
|
|
6567
6590
|
}>>> & {
|
|
6568
6591
|
"onNode-click"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
@@ -6574,6 +6597,7 @@ declare const __VLS_component: vue.DefineComponent<__VLS_WithDefaults$2<__VLS_Ty
|
|
|
6574
6597
|
}, {
|
|
6575
6598
|
indent: number;
|
|
6576
6599
|
parentsId: Id[];
|
|
6600
|
+
nextLevelIndentIncrement: number;
|
|
6577
6601
|
}, {}>;
|
|
6578
6602
|
declare const _default$4: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
6579
6603
|
|
|
@@ -6683,7 +6707,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
6683
6707
|
};
|
|
6684
6708
|
|
|
6685
6709
|
declare const _default: {
|
|
6686
|
-
install: (app: App, opt?: Partial<
|
|
6710
|
+
install: (app: App, opt?: Partial<EditorInstallOptions | DesignPluginOptions | FormInstallOptions>) => void;
|
|
6687
6711
|
};
|
|
6688
6712
|
|
|
6689
|
-
export { type AddMNode, type AddPrefixToObject, type AsyncAfterHook, type AsyncBeforeHook, type AsyncHookPlugin, type BeforeAdd, CODE_DRAFT_STORAGE_KEY, COPY_CODE_STORAGE_KEY, COPY_DS_STORAGE_KEY, COPY_STORAGE_KEY, _default$7 as CodeBlockEditor, _default$g as CodeBlockList, _default$f as CodeBlockListPanel, type CodeBlockListPanelSlots, type CodeBlockListSlots, CodeDeleteErrorType, type CodeDslItem, type CodeParamStatement, type CodeRelation, _default$r as CodeSelect, _default$q as CodeSelectCol, type CodeSelectColConfig, type CodeState, ColumnLayout, type CombineInfo, type ComponentGroup, type ComponentGroupState, type ComponentItem, _default$t as ComponentListPanel, type ComponentListPanelSlots, _default$1 as CondOpSelect, type CondOpSelectConfig, _default$b as ContentMenu, _default$e as DataSourceConfigPanel, _default$j as DataSourceFieldSelect, type DataSourceFieldSelectConfig, _default$p as DataSourceFields, _default$m as DataSourceInput, type DataSourceListSlots, _default$k as DataSourceMethodSelect, type DataSourceMethodSelectConfig, _default$n as DataSourceMethods, _default$o as DataSourceMocks, _default$l as DataSourceSelect, type DatasourceTypeOption, _default$2 as DisplayConds, DragType, type EditorNodeInfo, type EventBus, type EventBusEvent, _default$i as EventSelect, type EventSelectConfig, Fixed2Other, _default$6 as FloatingBox, type FrameworkSlots, type GetColumnWidth, type GetConfig, H_GUIDE_LINE_STORAGE_KEY, type HistoryState, _default$a as Icon, IdleTask, type IdleTaskEvents, type
|
|
6713
|
+
export { type AddMNode, type AddPrefixToObject, type AsyncAfterHook, type AsyncBeforeHook, type AsyncHookPlugin, type BeforeAdd, CODE_DRAFT_STORAGE_KEY, COPY_CODE_STORAGE_KEY, COPY_DS_STORAGE_KEY, COPY_STORAGE_KEY, _default$7 as CodeBlockEditor, _default$g as CodeBlockList, _default$f as CodeBlockListPanel, type CodeBlockListPanelSlots, type CodeBlockListSlots, CodeDeleteErrorType, type CodeDslItem, type CodeParamStatement, type CodeRelation, _default$r as CodeSelect, _default$q as CodeSelectCol, type CodeSelectColConfig, type CodeState, ColumnLayout, type CombineInfo, type ComponentGroup, type ComponentGroupState, type ComponentItem, _default$t as ComponentListPanel, type ComponentListPanelSlots, _default$1 as CondOpSelect, type CondOpSelectConfig, _default$b as ContentMenu, _default$e as DataSourceConfigPanel, _default$j as DataSourceFieldSelect, type DataSourceFieldSelectConfig, _default$p as DataSourceFields, _default$m as DataSourceInput, type DataSourceListSlots, _default$k as DataSourceMethodSelect, type DataSourceMethodSelectConfig, _default$n as DataSourceMethods, _default$o as DataSourceMocks, _default$l as DataSourceSelect, type DatasourceTypeOption, _default$2 as DisplayConds, DragType, type EditorInstallOptions, type EditorNodeInfo, type EventBus, type EventBusEvent, _default$i as EventSelect, type EventSelectConfig, Fixed2Other, _default$6 as FloatingBox, type FrameworkSlots, type GetColumnWidth, type GetConfig, H_GUIDE_LINE_STORAGE_KEY, type HistoryState, _default$a as Icon, IdleTask, type IdleTaskEvents, type KeyBindingCacheItem, KeyBindingCommand, type KeyBindingItem, _default$h as KeyValue, Keys, type LayerNodeSlots, type LayerNodeStatus, LayerOffset, _default$s as LayerPanel, type LayerPanelSlots, Layout, _default$9 as LayoutContainer, type ListState, type MenuBarData, type MenuButton, type MenuComponent, type MenuItem, type NodeItem, type PageBarSortOptions, _default$3 as PageFragmentSelect, type PageFragmentSelectConfig, type PartSortableOptions, type PastePosition, type PropsFormConfigFunction, type PropsFormValueFunction, _default$d as PropsPanel, type PropsPanelSlots, type PropsState, _default$8 as Resizer, ScrollViewer, type ScrollViewerEvent, type Services, type SetColumnWidth, type SideBarData, type SideComponent, type SideItem, SideItemKey, type SidebarSlots, _default$9 as SplitView, type StageOptions, type StageOverlayState, type StageRect, type StepValue, type StoreState, type StoreStateKey, type SyncAfterHook, type SyncBeforeHook, type SyncHookPlugin, _default$u as TMagicCodeEditor, _default$v as TMagicEditor, _default$c as ToolButton, _default$5 as Tree, _default$4 as TreeNode, type TreeNodeData, UI_SELECT_MODE_EVENT_NAME, type UiState, UndoRedo, V_GUIDE_LINE_STORAGE_KEY, type WorkspaceSlots, advancedTabConfig, arrayOptions, beforePaste, change2Fixed, _default$F as codeBlockService, _default$E as dataSourceService, debug, _default as default, _default$D as depService, displayTabConfig, _default$C as editorService, eqOptions, error, eventTabConfig, _default$B as eventsService, fillConfig, fixNodeLeft, fixNodePosition, generatePageName, generatePageNameByApp, getAddParent, getCascaderOptionsFromFields, getDefaultConfig, getDisplayField, getEditorConfig, getFormConfig, getFormValue, getGuideLineFromCache, getInitPositionStyle, getNodeIndex, getPageFragmentList, getPageList, getPageNameList, getPositionInContainer, getRelativeStyle, _default$A as historyService, info, log, moveItemsInContainer, numberOptions, _default$z as propsService, removeDataSourceFieldPrefix, serializeConfig, setChildrenLayout, setEditorConfig, setLayout, _default$y as stageOverlayService, _default$x as storageService, styleTabConfig, traverseNode, _default$w as uiService, updateStatus, useCodeBlockEdit, useDataSourceMethod, useEditorContentHeight, useFilter, useFloatBox, useGetSo, useNextFloatBoxPosition, useNodeStatus, useStage, useWindowRect, warn };
|