@tmagic/editor 1.4.15 → 1.5.0-beta.0
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 +2 -2
- package/dist/tmagic-editor.js +274 -265
- package/dist/tmagic-editor.umd.cjs +275 -262
- package/package.json +13 -17
- package/src/components/CodeParams.vue +1 -1
- package/src/editorProps.ts +2 -1
- package/src/fields/DataSourceInput.vue +2 -2
- package/src/fields/UISelect.vue +20 -15
- package/src/hooks/use-stage.ts +13 -7
- package/src/initService.ts +50 -53
- package/src/layouts/workspace/viewer/NodeListMenu.vue +2 -1
- package/src/layouts/workspace/viewer/Stage.vue +4 -3
- package/src/services/editor.ts +2 -2
- package/src/services/stageOverlay.ts +3 -1
- package/src/theme/page-bar.scss +2 -2
- package/src/utils/data-source/index.ts +25 -23
- package/src/utils/editor.ts +4 -3
- package/src/utils/index.ts +4 -0
- package/src/utils/operator.ts +3 -2
- package/src/utils/props.ts +2 -1
- package/types/index.d.ts +6484 -49
- package/src/shims-vue.d.ts +0 -6
- package/types/components/CodeBlockEditor.vue.d.ts +0 -33
- package/types/components/CodeParams.vue.d.ts +0 -28
- package/types/components/ContentMenu.vue.d.ts +0 -73
- package/types/components/FloatingBox.vue.d.ts +0 -68
- package/types/components/Icon.vue.d.ts +0 -15
- package/types/components/Resizer.vue.d.ts +0 -14
- package/types/components/ScrollBar.vue.d.ts +0 -25
- package/types/components/ScrollViewer.vue.d.ts +0 -79
- package/types/components/SearchInput.vue.d.ts +0 -6
- package/types/components/SplitView.vue.d.ts +0 -70
- package/types/components/ToolButton.vue.d.ts +0 -41
- package/types/components/Tree.vue.d.ts +0 -81
- package/types/components/TreeNode.vue.d.ts +0 -81
- package/types/editorProps.d.ts +0 -111
- package/types/fields/Code.vue.d.ts +0 -44
- package/types/fields/CodeLink.vue.d.ts +0 -24
- package/types/fields/CodeSelect.vue.d.ts +0 -28
- package/types/fields/CodeSelectCol.vue.d.ts +0 -31
- package/types/fields/CondOpSelect.vue.d.ts +0 -17
- package/types/fields/DataSourceFieldSelect/FieldSelect.vue.d.ts +0 -36
- package/types/fields/DataSourceFieldSelect/Index.vue.d.ts +0 -31
- package/types/fields/DataSourceFields.vue.d.ts +0 -44
- package/types/fields/DataSourceInput.vue.d.ts +0 -34
- package/types/fields/DataSourceMethodSelect.vue.d.ts +0 -31
- package/types/fields/DataSourceMethods.vue.d.ts +0 -34
- package/types/fields/DataSourceMocks.vue.d.ts +0 -41
- package/types/fields/DataSourceSelect.vue.d.ts +0 -31
- package/types/fields/DisplayConds.vue.d.ts +0 -37
- package/types/fields/EventSelect.vue.d.ts +0 -17
- package/types/fields/KeyValue.vue.d.ts +0 -36
- package/types/fields/PageFragmentSelect.vue.d.ts +0 -31
- package/types/fields/UISelect.vue.d.ts +0 -20
- package/types/hooks/index.d.ts +0 -6
- package/types/hooks/use-code-block-edit.d.ts +0 -100
- package/types/hooks/use-data-source-edit.d.ts +0 -93
- package/types/hooks/use-data-source-method.d.ts +0 -98
- package/types/hooks/use-editor-content-height.d.ts +0 -3
- package/types/hooks/use-filter.d.ts +0 -7
- package/types/hooks/use-float-box.d.ts +0 -15
- package/types/hooks/use-getso.d.ts +0 -5
- package/types/hooks/use-next-float-box-position.d.ts +0 -9
- package/types/hooks/use-node-status.d.ts +0 -11
- package/types/hooks/use-stage.d.ts +0 -3
- package/types/hooks/use-window-rect.d.ts +0 -6
- package/types/icons/AppManageIcon.vue.d.ts +0 -2
- package/types/icons/CenterIcon.vue.d.ts +0 -2
- package/types/icons/CodeIcon.vue.d.ts +0 -2
- package/types/icons/FolderMinusIcon.vue.d.ts +0 -2
- package/types/icons/PinIcon.vue.d.ts +0 -2
- package/types/icons/PinnedIcon.vue.d.ts +0 -2
- package/types/initService.d.ts +0 -9
- package/types/layouts/AddPageBox.vue.d.ts +0 -15
- package/types/layouts/CodeEditor.vue.d.ts +0 -80
- package/types/layouts/Framework.vue.d.ts +0 -23
- package/types/layouts/NavMenu.vue.d.ts +0 -35
- package/types/layouts/PropsPanel.vue.d.ts +0 -284
- package/types/layouts/page-bar/AddButton.vue.d.ts +0 -16
- package/types/layouts/page-bar/PageBar.vue.d.ts +0 -34
- package/types/layouts/page-bar/PageBarScrollContainer.vue.d.ts +0 -27
- package/types/layouts/page-bar/PageList.vue.d.ts +0 -25
- package/types/layouts/page-bar/SwitchTypeButton.vue.d.ts +0 -20
- package/types/layouts/sidebar/ComponentListPanel.vue.d.ts +0 -8
- package/types/layouts/sidebar/Sidebar.vue.d.ts +0 -49
- package/types/layouts/sidebar/code-block/CodeBlockList.vue.d.ts +0 -30
- package/types/layouts/sidebar/code-block/CodeBlockListPanel.vue.d.ts +0 -22
- package/types/layouts/sidebar/data-source/DataSourceConfigPanel.vue.d.ts +0 -31
- package/types/layouts/sidebar/data-source/DataSourceList.vue.d.ts +0 -16
- package/types/layouts/sidebar/data-source/DataSourceListPanel.vue.d.ts +0 -8
- package/types/layouts/sidebar/layer/LayerMenu.vue.d.ts +0 -41
- package/types/layouts/sidebar/layer/LayerNodeTool.vue.d.ts +0 -16
- package/types/layouts/sidebar/layer/LayerPanel.vue.d.ts +0 -23
- package/types/layouts/sidebar/layer/use-click.d.ts +0 -64
- package/types/layouts/sidebar/layer/use-drag.d.ts +0 -14
- package/types/layouts/sidebar/layer/use-keybinding.d.ts +0 -6
- package/types/layouts/sidebar/layer/use-node-status.d.ts +0 -11
- package/types/layouts/workspace/Breadcrumb.vue.d.ts +0 -2
- package/types/layouts/workspace/Workspace.vue.d.ts +0 -39
- package/types/layouts/workspace/viewer/NodeListMenu.vue.d.ts +0 -2
- package/types/layouts/workspace/viewer/Stage.vue.d.ts +0 -34
- package/types/layouts/workspace/viewer/StageOverlay.vue.d.ts +0 -2
- package/types/layouts/workspace/viewer/ViewerMenu.vue.d.ts +0 -42
- package/types/services/BaseService.d.ts +0 -66
- package/types/services/codeBlock.d.ts +0 -130
- package/types/services/componentList.d.ts +0 -16
- package/types/services/dataSource.d.ts +0 -68
- package/types/services/dep.d.ts +0 -33
- package/types/services/editor.d.ts +0 -180
- package/types/services/events.d.ts +0 -18
- package/types/services/history.d.ts +0 -26
- package/types/services/keybinding.d.ts +0 -40
- package/types/services/props.d.ts +0 -92
- package/types/services/stageOverlay.d.ts +0 -30
- package/types/services/storage.d.ts +0 -65
- package/types/services/ui.d.ts +0 -77
- package/types/type.d.ts +0 -658
- package/types/utils/compose.d.ts +0 -5
- package/types/utils/config.d.ts +0 -4
- package/types/utils/content-menu.d.ts +0 -7
- package/types/utils/data-source/formConfigs/base.d.ts +0 -2
- package/types/utils/data-source/formConfigs/http.d.ts +0 -3
- package/types/utils/data-source/index.d.ts +0 -10
- package/types/utils/editor.d.ts +0 -59
- package/types/utils/idle-task.d.ts +0 -14
- package/types/utils/index.d.ts +0 -6
- package/types/utils/keybinding-config.d.ts +0 -7
- package/types/utils/logger.d.ts +0 -5
- package/types/utils/monaco-editor.d.ts +0 -2
- package/types/utils/operator.d.ts +0 -21
- package/types/utils/props.d.ts +0 -23
- package/types/utils/scroll-viewer.d.ts +0 -38
- package/types/utils/tree.d.ts +0 -3
- package/types/utils/undo-redo.d.ts +0 -12
package/src/shims-vue.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { CodeBlockContent } from '@tmagic/schema';
|
|
2
|
-
declare let __VLS_typeProps: {
|
|
3
|
-
content: CodeBlockContent;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
isDataSource?: boolean;
|
|
6
|
-
dataSourceType?: string;
|
|
7
|
-
};
|
|
8
|
-
type __VLS_PublicProps = {
|
|
9
|
-
'width'?: number;
|
|
10
|
-
'visible'?: boolean;
|
|
11
|
-
} & typeof __VLS_typeProps;
|
|
12
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
13
|
-
show(): Promise<void>;
|
|
14
|
-
hide(): Promise<void>;
|
|
15
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
-
"update:width": (width: number) => void;
|
|
17
|
-
"update:visible": (visible: boolean) => void;
|
|
18
|
-
submit: (values: CodeBlockContent) => void;
|
|
19
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
|
|
20
|
-
onSubmit?: ((values: CodeBlockContent) => any) | undefined;
|
|
21
|
-
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
22
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
23
|
-
}, {}, {}>;
|
|
24
|
-
export default _default;
|
|
25
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
-
type __VLS_TypePropsToOption<T> = {
|
|
27
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
-
} : {
|
|
30
|
-
type: import('vue').PropType<T[K]>;
|
|
31
|
-
required: true;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { CodeParamStatement } from '../type';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
-
model: any;
|
|
4
|
-
size?: "default" | "small" | "large" | undefined;
|
|
5
|
-
disabled?: boolean | undefined;
|
|
6
|
-
name: string;
|
|
7
|
-
paramsConfig: CodeParamStatement[];
|
|
8
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
-
change: (...args: any[]) => void;
|
|
10
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
11
|
-
model: any;
|
|
12
|
-
size?: "default" | "small" | "large" | undefined;
|
|
13
|
-
disabled?: boolean | undefined;
|
|
14
|
-
name: string;
|
|
15
|
-
paramsConfig: CodeParamStatement[];
|
|
16
|
-
}>>> & {
|
|
17
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
18
|
-
}, {}, {}>;
|
|
19
|
-
export default _default;
|
|
20
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
21
|
-
type __VLS_TypePropsToOption<T> = {
|
|
22
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
23
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
24
|
-
} : {
|
|
25
|
-
type: import('vue').PropType<T[K]>;
|
|
26
|
-
required: true;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { MenuButton, MenuComponent } from '../type';
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
|
-
menuData?: (MenuComponent | MenuButton)[] | undefined;
|
|
4
|
-
isSubMenu?: boolean | undefined;
|
|
5
|
-
active?: string | number | undefined;
|
|
6
|
-
autoHide?: boolean | undefined;
|
|
7
|
-
}>, {
|
|
8
|
-
menuData: () => never[];
|
|
9
|
-
isSubMenu: boolean;
|
|
10
|
-
autoHide: boolean;
|
|
11
|
-
}>, {
|
|
12
|
-
menu: import("vue").Ref<HTMLDivElement | undefined>;
|
|
13
|
-
menuPosition: import("vue").Ref<{
|
|
14
|
-
left: number;
|
|
15
|
-
top: number;
|
|
16
|
-
}>;
|
|
17
|
-
hide: () => void;
|
|
18
|
-
show: (e?: {
|
|
19
|
-
clientY: number;
|
|
20
|
-
clientX: number;
|
|
21
|
-
} | undefined) => void;
|
|
22
|
-
contains: (el: HTMLElement) => any;
|
|
23
|
-
setPosition: (e: {
|
|
24
|
-
clientY: number;
|
|
25
|
-
clientX: number;
|
|
26
|
-
}) => void;
|
|
27
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
-
mouseenter: () => void;
|
|
29
|
-
show: () => void;
|
|
30
|
-
hide: () => void;
|
|
31
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
32
|
-
menuData?: (MenuComponent | MenuButton)[] | undefined;
|
|
33
|
-
isSubMenu?: boolean | undefined;
|
|
34
|
-
active?: string | number | undefined;
|
|
35
|
-
autoHide?: boolean | undefined;
|
|
36
|
-
}>, {
|
|
37
|
-
menuData: () => never[];
|
|
38
|
-
isSubMenu: boolean;
|
|
39
|
-
autoHide: boolean;
|
|
40
|
-
}>>> & {
|
|
41
|
-
onMouseenter?: (() => any) | undefined;
|
|
42
|
-
onShow?: (() => any) | undefined;
|
|
43
|
-
onHide?: (() => any) | undefined;
|
|
44
|
-
}, {
|
|
45
|
-
menuData: (MenuComponent | MenuButton)[];
|
|
46
|
-
isSubMenu: boolean;
|
|
47
|
-
autoHide: boolean;
|
|
48
|
-
}, {}>, {
|
|
49
|
-
title?(_: {}): any;
|
|
50
|
-
}>;
|
|
51
|
-
export default _default;
|
|
52
|
-
type __VLS_WithDefaults<P, D> = {
|
|
53
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
54
|
-
default: D[K];
|
|
55
|
-
}> : P[K];
|
|
56
|
-
};
|
|
57
|
-
type __VLS_Prettify<T> = {
|
|
58
|
-
[K in keyof T]: T[K];
|
|
59
|
-
} & {};
|
|
60
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
61
|
-
new (): {
|
|
62
|
-
$slots: S;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
66
|
-
type __VLS_TypePropsToOption<T> = {
|
|
67
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
68
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
69
|
-
} : {
|
|
70
|
-
type: import('vue').PropType<T[K]>;
|
|
71
|
-
required: true;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
interface Position {
|
|
2
|
-
left: number;
|
|
3
|
-
top: number;
|
|
4
|
-
}
|
|
5
|
-
declare let __VLS_typeProps: {
|
|
6
|
-
position?: Position;
|
|
7
|
-
title?: string;
|
|
8
|
-
beforeClose?: (done: (cancel?: boolean) => void) => void;
|
|
9
|
-
};
|
|
10
|
-
type __VLS_PublicProps = {
|
|
11
|
-
'width'?: number;
|
|
12
|
-
'height'?: number;
|
|
13
|
-
'visible'?: boolean;
|
|
14
|
-
} & typeof __VLS_typeProps;
|
|
15
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
16
|
-
title: string;
|
|
17
|
-
position: () => {
|
|
18
|
-
left: number;
|
|
19
|
-
top: number;
|
|
20
|
-
};
|
|
21
|
-
}>, {
|
|
22
|
-
bodyHeight: import("vue").ComputedRef<number | "auto">;
|
|
23
|
-
target: import("vue").Ref<HTMLDivElement | undefined>;
|
|
24
|
-
titleEl: import("vue").Ref<HTMLDivElement | undefined>;
|
|
25
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
-
"update:width": (width: number) => void;
|
|
27
|
-
"update:height": (height: number) => void;
|
|
28
|
-
"update:visible": (visible: boolean) => void;
|
|
29
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
30
|
-
title: string;
|
|
31
|
-
position: () => {
|
|
32
|
-
left: number;
|
|
33
|
-
top: number;
|
|
34
|
-
};
|
|
35
|
-
}>>> & {
|
|
36
|
-
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
37
|
-
"onUpdate:height"?: ((height: number) => any) | undefined;
|
|
38
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
39
|
-
}, {
|
|
40
|
-
title: string;
|
|
41
|
-
position: Position;
|
|
42
|
-
}, {}>, {
|
|
43
|
-
title?(_: {}): any;
|
|
44
|
-
body?(_: {}): any;
|
|
45
|
-
}>;
|
|
46
|
-
export default _default;
|
|
47
|
-
type __VLS_WithDefaults<P, D> = {
|
|
48
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
49
|
-
default: D[K];
|
|
50
|
-
}> : P[K];
|
|
51
|
-
};
|
|
52
|
-
type __VLS_Prettify<T> = {
|
|
53
|
-
[K in keyof T]: T[K];
|
|
54
|
-
} & {};
|
|
55
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
56
|
-
new (): {
|
|
57
|
-
$slots: S;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
61
|
-
type __VLS_TypePropsToOption<T> = {
|
|
62
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
63
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
64
|
-
} : {
|
|
65
|
-
type: import('vue').PropType<T[K]>;
|
|
66
|
-
required: true;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
|
-
icon?: any;
|
|
3
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
4
|
-
icon?: any;
|
|
5
|
-
}>>>, {}, {}>;
|
|
6
|
-
export default _default;
|
|
7
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
-
type __VLS_TypePropsToOption<T> = {
|
|
9
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
-
} : {
|
|
12
|
-
type: import('vue').PropType<T[K]>;
|
|
13
|
-
required: true;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { OnDrag } from 'gesto';
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
-
change: (e: OnDrag<import("gesto").default>) => void;
|
|
4
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
5
|
-
onChange?: ((e: OnDrag<import("gesto").default>) => any) | undefined;
|
|
6
|
-
}, {}, {}>, {
|
|
7
|
-
default?(_: {}): any;
|
|
8
|
-
}>;
|
|
9
|
-
export default _default;
|
|
10
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
11
|
-
new (): {
|
|
12
|
-
$slots: S;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
|
-
size: number;
|
|
3
|
-
scrollSize: number;
|
|
4
|
-
isHorizontal?: boolean | undefined;
|
|
5
|
-
pos: number;
|
|
6
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
scroll: (...args: any[]) => void;
|
|
8
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
9
|
-
size: number;
|
|
10
|
-
scrollSize: number;
|
|
11
|
-
isHorizontal?: boolean | undefined;
|
|
12
|
-
pos: number;
|
|
13
|
-
}>>> & {
|
|
14
|
-
onScroll?: ((...args: any[]) => any) | undefined;
|
|
15
|
-
}, {}, {}>;
|
|
16
|
-
export default _default;
|
|
17
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
-
type __VLS_TypePropsToOption<T> = {
|
|
19
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
-
} : {
|
|
22
|
-
type: import('vue').PropType<T[K]>;
|
|
23
|
-
required: true;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
|
-
width?: string | number | undefined;
|
|
3
|
-
height?: string | number | undefined;
|
|
4
|
-
wrapWidth?: number | undefined;
|
|
5
|
-
wrapHeight?: number | undefined;
|
|
6
|
-
zoom?: number | undefined;
|
|
7
|
-
correctionScrollSize?: {
|
|
8
|
-
width: number;
|
|
9
|
-
height: number;
|
|
10
|
-
} | undefined;
|
|
11
|
-
}>, {
|
|
12
|
-
width: number;
|
|
13
|
-
height: number;
|
|
14
|
-
wrapWidth: number;
|
|
15
|
-
wrapHeight: number;
|
|
16
|
-
zoom: number;
|
|
17
|
-
correctionScrollSize: () => {
|
|
18
|
-
width: number;
|
|
19
|
-
height: number;
|
|
20
|
-
};
|
|
21
|
-
}>, {
|
|
22
|
-
container: import("vue").Ref<HTMLDivElement | undefined>;
|
|
23
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
24
|
-
width?: string | number | undefined;
|
|
25
|
-
height?: string | number | undefined;
|
|
26
|
-
wrapWidth?: number | undefined;
|
|
27
|
-
wrapHeight?: number | undefined;
|
|
28
|
-
zoom?: number | undefined;
|
|
29
|
-
correctionScrollSize?: {
|
|
30
|
-
width: number;
|
|
31
|
-
height: number;
|
|
32
|
-
} | undefined;
|
|
33
|
-
}>, {
|
|
34
|
-
width: number;
|
|
35
|
-
height: number;
|
|
36
|
-
wrapWidth: number;
|
|
37
|
-
wrapHeight: number;
|
|
38
|
-
zoom: number;
|
|
39
|
-
correctionScrollSize: () => {
|
|
40
|
-
width: number;
|
|
41
|
-
height: number;
|
|
42
|
-
};
|
|
43
|
-
}>>>, {
|
|
44
|
-
width: string | number;
|
|
45
|
-
height: string | number;
|
|
46
|
-
zoom: number;
|
|
47
|
-
wrapWidth: number;
|
|
48
|
-
wrapHeight: number;
|
|
49
|
-
correctionScrollSize: {
|
|
50
|
-
width: number;
|
|
51
|
-
height: number;
|
|
52
|
-
};
|
|
53
|
-
}, {}>, {
|
|
54
|
-
default?(_: {}): any;
|
|
55
|
-
content?(_: {}): any;
|
|
56
|
-
}>;
|
|
57
|
-
export default _default;
|
|
58
|
-
type __VLS_WithDefaults<P, D> = {
|
|
59
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
60
|
-
default: D[K];
|
|
61
|
-
}> : P[K];
|
|
62
|
-
};
|
|
63
|
-
type __VLS_Prettify<T> = {
|
|
64
|
-
[K in keyof T]: T[K];
|
|
65
|
-
} & {};
|
|
66
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
67
|
-
new (): {
|
|
68
|
-
$slots: S;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
72
|
-
type __VLS_TypePropsToOption<T> = {
|
|
73
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
74
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
75
|
-
} : {
|
|
76
|
-
type: import('vue').PropType<T[K]>;
|
|
77
|
-
required: true;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
-
search: (...args: any[]) => void;
|
|
3
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
4
|
-
onSearch?: ((...args: any[]) => any) | undefined;
|
|
5
|
-
}, {}, {}>;
|
|
6
|
-
export default _default;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
|
-
width?: number | undefined;
|
|
3
|
-
left?: number | undefined;
|
|
4
|
-
right?: number | undefined;
|
|
5
|
-
minLeft?: number | undefined;
|
|
6
|
-
minRight?: number | undefined;
|
|
7
|
-
minCenter?: number | undefined;
|
|
8
|
-
leftClass?: string | undefined;
|
|
9
|
-
rightClass?: string | undefined;
|
|
10
|
-
centerClass?: string | undefined;
|
|
11
|
-
}>, {
|
|
12
|
-
minLeft: number;
|
|
13
|
-
minRight: number;
|
|
14
|
-
minCenter: number;
|
|
15
|
-
}>, {
|
|
16
|
-
updateWidth(): void;
|
|
17
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
-
change: (...args: any[]) => void;
|
|
19
|
-
"update:left": (...args: any[]) => void;
|
|
20
|
-
"update:right": (...args: any[]) => void;
|
|
21
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
22
|
-
width?: number | undefined;
|
|
23
|
-
left?: number | undefined;
|
|
24
|
-
right?: number | undefined;
|
|
25
|
-
minLeft?: number | undefined;
|
|
26
|
-
minRight?: number | undefined;
|
|
27
|
-
minCenter?: number | undefined;
|
|
28
|
-
leftClass?: string | undefined;
|
|
29
|
-
rightClass?: string | undefined;
|
|
30
|
-
centerClass?: string | undefined;
|
|
31
|
-
}>, {
|
|
32
|
-
minLeft: number;
|
|
33
|
-
minRight: number;
|
|
34
|
-
minCenter: number;
|
|
35
|
-
}>>> & {
|
|
36
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
37
|
-
"onUpdate:left"?: ((...args: any[]) => any) | undefined;
|
|
38
|
-
"onUpdate:right"?: ((...args: any[]) => any) | undefined;
|
|
39
|
-
}, {
|
|
40
|
-
minLeft: number;
|
|
41
|
-
minRight: number;
|
|
42
|
-
minCenter: number;
|
|
43
|
-
}, {}>, {
|
|
44
|
-
left?(_: {}): any;
|
|
45
|
-
center?(_: {}): any;
|
|
46
|
-
right?(_: {}): any;
|
|
47
|
-
}>;
|
|
48
|
-
export default _default;
|
|
49
|
-
type __VLS_WithDefaults<P, D> = {
|
|
50
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
51
|
-
default: D[K];
|
|
52
|
-
}> : P[K];
|
|
53
|
-
};
|
|
54
|
-
type __VLS_Prettify<T> = {
|
|
55
|
-
[K in keyof T]: T[K];
|
|
56
|
-
} & {};
|
|
57
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
58
|
-
new (): {
|
|
59
|
-
$slots: S;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
63
|
-
type __VLS_TypePropsToOption<T> = {
|
|
64
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
65
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
66
|
-
} : {
|
|
67
|
-
type: import('vue').PropType<T[K]>;
|
|
68
|
-
required: true;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { MenuButton, MenuComponent } from '../type';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
|
-
data?: MenuComponent | MenuButton | undefined;
|
|
4
|
-
eventType?: "mousedown" | "mouseup" | "click" | undefined;
|
|
5
|
-
}>, {
|
|
6
|
-
data: () => {
|
|
7
|
-
type: string;
|
|
8
|
-
display: boolean;
|
|
9
|
-
};
|
|
10
|
-
eventType: string;
|
|
11
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
12
|
-
data?: MenuComponent | MenuButton | undefined;
|
|
13
|
-
eventType?: "mousedown" | "mouseup" | "click" | undefined;
|
|
14
|
-
}>, {
|
|
15
|
-
data: () => {
|
|
16
|
-
type: string;
|
|
17
|
-
display: boolean;
|
|
18
|
-
};
|
|
19
|
-
eventType: string;
|
|
20
|
-
}>>>, {
|
|
21
|
-
data: MenuComponent | MenuButton;
|
|
22
|
-
eventType: "mousedown" | "mouseup" | "click";
|
|
23
|
-
}, {}>;
|
|
24
|
-
export default _default;
|
|
25
|
-
type __VLS_WithDefaults<P, D> = {
|
|
26
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
27
|
-
default: D[K];
|
|
28
|
-
}> : P[K];
|
|
29
|
-
};
|
|
30
|
-
type __VLS_Prettify<T> = {
|
|
31
|
-
[K in keyof T]: T[K];
|
|
32
|
-
} & {};
|
|
33
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
34
|
-
type __VLS_TypePropsToOption<T> = {
|
|
35
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
36
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
37
|
-
} : {
|
|
38
|
-
type: import('vue').PropType<T[K]>;
|
|
39
|
-
required: true;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import type { Id } from '@tmagic/schema';
|
|
2
|
-
import type { LayerNodeStatus, TreeNodeData } from '../type';
|
|
3
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
4
|
-
data: TreeNodeData[];
|
|
5
|
-
nodeStatusMap: Map<Id, LayerNodeStatus>;
|
|
6
|
-
indent?: number | undefined;
|
|
7
|
-
emptyText?: string | undefined;
|
|
8
|
-
}>, {
|
|
9
|
-
indent: number;
|
|
10
|
-
emptyText: string;
|
|
11
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
-
"node-dragstart": (event: DragEvent, data: TreeNodeData) => void;
|
|
13
|
-
"node-dragleave": (event: DragEvent, data: TreeNodeData) => void;
|
|
14
|
-
"node-dragend": (event: DragEvent, data: TreeNodeData) => void;
|
|
15
|
-
"node-contextmenu": (event: MouseEvent, data: TreeNodeData) => void;
|
|
16
|
-
"node-mouseenter": (event: MouseEvent, data: TreeNodeData) => void;
|
|
17
|
-
"node-click": (event: MouseEvent, data: TreeNodeData) => void;
|
|
18
|
-
"node-dragover": (event: DragEvent) => void;
|
|
19
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
20
|
-
data: TreeNodeData[];
|
|
21
|
-
nodeStatusMap: Map<Id, LayerNodeStatus>;
|
|
22
|
-
indent?: number | undefined;
|
|
23
|
-
emptyText?: string | undefined;
|
|
24
|
-
}>, {
|
|
25
|
-
indent: number;
|
|
26
|
-
emptyText: string;
|
|
27
|
-
}>>> & {
|
|
28
|
-
"onNode-dragstart"?: ((event: DragEvent, data: TreeNodeData) => any) | undefined;
|
|
29
|
-
"onNode-dragleave"?: ((event: DragEvent, data: TreeNodeData) => any) | undefined;
|
|
30
|
-
"onNode-dragend"?: ((event: DragEvent, data: TreeNodeData) => any) | undefined;
|
|
31
|
-
"onNode-contextmenu"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
32
|
-
"onNode-mouseenter"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
33
|
-
"onNode-click"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
34
|
-
"onNode-dragover"?: ((event: DragEvent) => any) | undefined;
|
|
35
|
-
}, {
|
|
36
|
-
indent: number;
|
|
37
|
-
emptyText: string;
|
|
38
|
-
}, {}>, Readonly<{
|
|
39
|
-
'tree-node-content'(props: {
|
|
40
|
-
data: TreeNodeData;
|
|
41
|
-
}): any;
|
|
42
|
-
'tree-node-label'(props: {
|
|
43
|
-
data: TreeNodeData;
|
|
44
|
-
}): any;
|
|
45
|
-
'tree-node-tool'(props: {
|
|
46
|
-
data: TreeNodeData;
|
|
47
|
-
}): any;
|
|
48
|
-
}> & {
|
|
49
|
-
'tree-node-content'(props: {
|
|
50
|
-
data: TreeNodeData;
|
|
51
|
-
}): any;
|
|
52
|
-
'tree-node-label'(props: {
|
|
53
|
-
data: TreeNodeData;
|
|
54
|
-
}): any;
|
|
55
|
-
'tree-node-tool'(props: {
|
|
56
|
-
data: TreeNodeData;
|
|
57
|
-
}): any;
|
|
58
|
-
}>;
|
|
59
|
-
export default _default;
|
|
60
|
-
type __VLS_WithDefaults<P, D> = {
|
|
61
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
62
|
-
default: D[K];
|
|
63
|
-
}> : P[K];
|
|
64
|
-
};
|
|
65
|
-
type __VLS_Prettify<T> = {
|
|
66
|
-
[K in keyof T]: T[K];
|
|
67
|
-
} & {};
|
|
68
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
69
|
-
new (): {
|
|
70
|
-
$slots: S;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
74
|
-
type __VLS_TypePropsToOption<T> = {
|
|
75
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
76
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
77
|
-
} : {
|
|
78
|
-
type: import('vue').PropType<T[K]>;
|
|
79
|
-
required: true;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import type { Id } from '@tmagic/schema';
|
|
2
|
-
import type { LayerNodeStatus, TreeNodeData } from '../type';
|
|
3
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
4
|
-
data: TreeNodeData;
|
|
5
|
-
parent?: TreeNodeData | undefined;
|
|
6
|
-
parentsId?: Id[] | undefined;
|
|
7
|
-
nodeStatusMap: Map<Id, LayerNodeStatus>;
|
|
8
|
-
indent?: number | undefined;
|
|
9
|
-
}>, {
|
|
10
|
-
indent: number;
|
|
11
|
-
parentsId: () => never[];
|
|
12
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
-
"node-dragstart": (event: DragEvent, data: TreeNodeData) => void;
|
|
14
|
-
"node-dragleave": (event: DragEvent, data: TreeNodeData) => void;
|
|
15
|
-
"node-dragend": (event: DragEvent, data: TreeNodeData) => void;
|
|
16
|
-
"node-contextmenu": (event: MouseEvent, data: TreeNodeData) => void;
|
|
17
|
-
"node-mouseenter": (event: MouseEvent, data: TreeNodeData) => void;
|
|
18
|
-
"node-click": (event: MouseEvent, data: TreeNodeData) => void;
|
|
19
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
20
|
-
data: TreeNodeData;
|
|
21
|
-
parent?: TreeNodeData | undefined;
|
|
22
|
-
parentsId?: Id[] | undefined;
|
|
23
|
-
nodeStatusMap: Map<Id, LayerNodeStatus>;
|
|
24
|
-
indent?: number | undefined;
|
|
25
|
-
}>, {
|
|
26
|
-
indent: number;
|
|
27
|
-
parentsId: () => never[];
|
|
28
|
-
}>>> & {
|
|
29
|
-
"onNode-dragstart"?: ((event: DragEvent, data: TreeNodeData) => any) | undefined;
|
|
30
|
-
"onNode-dragleave"?: ((event: DragEvent, data: TreeNodeData) => any) | undefined;
|
|
31
|
-
"onNode-dragend"?: ((event: DragEvent, data: TreeNodeData) => any) | undefined;
|
|
32
|
-
"onNode-contextmenu"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
33
|
-
"onNode-mouseenter"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
34
|
-
"onNode-click"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
35
|
-
}, {
|
|
36
|
-
parentsId: Id[];
|
|
37
|
-
indent: number;
|
|
38
|
-
}, {}>, Readonly<{
|
|
39
|
-
'tree-node-label'(props: {
|
|
40
|
-
data: TreeNodeData;
|
|
41
|
-
}): any;
|
|
42
|
-
'tree-node-tool'(props: {
|
|
43
|
-
data: TreeNodeData;
|
|
44
|
-
}): any;
|
|
45
|
-
'tree-node-content'(props: {
|
|
46
|
-
data: TreeNodeData;
|
|
47
|
-
}): any;
|
|
48
|
-
}> & {
|
|
49
|
-
'tree-node-label'(props: {
|
|
50
|
-
data: TreeNodeData;
|
|
51
|
-
}): any;
|
|
52
|
-
'tree-node-tool'(props: {
|
|
53
|
-
data: TreeNodeData;
|
|
54
|
-
}): any;
|
|
55
|
-
'tree-node-content'(props: {
|
|
56
|
-
data: TreeNodeData;
|
|
57
|
-
}): any;
|
|
58
|
-
}>;
|
|
59
|
-
export default _default;
|
|
60
|
-
type __VLS_WithDefaults<P, D> = {
|
|
61
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
62
|
-
default: D[K];
|
|
63
|
-
}> : P[K];
|
|
64
|
-
};
|
|
65
|
-
type __VLS_Prettify<T> = {
|
|
66
|
-
[K in keyof T]: T[K];
|
|
67
|
-
} & {};
|
|
68
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
69
|
-
new (): {
|
|
70
|
-
$slots: S;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
74
|
-
type __VLS_TypePropsToOption<T> = {
|
|
75
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
76
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
77
|
-
} : {
|
|
78
|
-
type: import('vue').PropType<T[K]>;
|
|
79
|
-
required: true;
|
|
80
|
-
};
|
|
81
|
-
};
|