@tmagic/editor 1.4.16 → 1.5.0-beta.1
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 +11 -7
- package/dist/tmagic-editor.js +434 -411
- package/dist/tmagic-editor.umd.cjs +441 -408
- package/package.json +11 -15
- 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/index.ts +7 -0
- package/src/hooks/use-stage.ts +13 -7
- package/src/index.ts +2 -0
- package/src/initService.ts +50 -53
- package/src/layouts/sidebar/Sidebar.vue +18 -2
- package/src/layouts/sidebar/data-source/DataSourceListPanel.vue +12 -14
- 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/data-source.scss +8 -5
- 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 +6685 -49
- package/src/shims-vue.d.ts +0 -6
- package/types/Editor.vue.d.ts +0 -2313
- 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 -81
- package/types/components/FloatingBox.vue.d.ts +0 -70
- package/types/components/Icon.vue.d.ts +0 -15
- package/types/components/Resizer.vue.d.ts +0 -16
- package/types/components/ScrollBar.vue.d.ts +0 -25
- package/types/components/ScrollViewer.vue.d.ts +0 -81
- package/types/components/SearchInput.vue.d.ts +0 -6
- package/types/components/SplitView.vue.d.ts +0 -72
- package/types/components/ToolButton.vue.d.ts +0 -41
- package/types/components/Tree.vue.d.ts +0 -83
- package/types/components/TreeNode.vue.d.ts +0 -83
- 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 -189
- package/types/hooks/use-data-source-edit.d.ts +0 -176
- package/types/hooks/use-data-source-method.d.ts +0 -187
- 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 -17
- package/types/hooks/use-getso.d.ts +0 -5
- package/types/hooks/use-next-float-box-position.d.ts +0 -15
- package/types/hooks/use-node-status.d.ts +0 -16
- 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 -25
- package/types/layouts/NavMenu.vue.d.ts +0 -35
- package/types/layouts/PropsPanel.vue.d.ts +0 -535
- package/types/layouts/page-bar/AddButton.vue.d.ts +0 -16
- package/types/layouts/page-bar/PageBar.vue.d.ts +0 -36
- package/types/layouts/page-bar/PageBarScrollContainer.vue.d.ts +0 -29
- package/types/layouts/page-bar/PageList.vue.d.ts +0 -27
- package/types/layouts/page-bar/SwitchTypeButton.vue.d.ts +0 -20
- package/types/layouts/sidebar/ComponentListPanel.vue.d.ts +0 -10
- package/types/layouts/sidebar/Sidebar.vue.d.ts +0 -51
- package/types/layouts/sidebar/code-block/CodeBlockList.vue.d.ts +0 -32
- package/types/layouts/sidebar/code-block/CodeBlockListPanel.vue.d.ts +0 -24
- package/types/layouts/sidebar/data-source/DataSourceConfigPanel.vue.d.ts +0 -31
- package/types/layouts/sidebar/data-source/DataSourceList.vue.d.ts +0 -18
- package/types/layouts/sidebar/data-source/DataSourceListPanel.vue.d.ts +0 -10
- 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 -25
- package/types/layouts/sidebar/layer/use-click.d.ts +0 -119
- 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 -16
- package/types/layouts/workspace/Breadcrumb.vue.d.ts +0 -2
- package/types/layouts/workspace/Workspace.vue.d.ts +0 -41
- 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 -65
- 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 -657
- 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 -13
- 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 -37
- package/types/utils/tree.d.ts +0 -3
- package/types/utils/undo-redo.d.ts +0 -12
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { FieldProps } from '@tmagic/form';
|
|
2
|
-
import type { PageFragmentSelectConfig } from '../type';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<PageFragmentSelectConfig>>, {
|
|
4
|
-
disabled: boolean;
|
|
5
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
-
change: (...args: any[]) => void;
|
|
7
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<PageFragmentSelectConfig>>, {
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
}>>> & {
|
|
10
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
11
|
-
}, {
|
|
12
|
-
disabled: boolean;
|
|
13
|
-
}, {}>;
|
|
14
|
-
export default _default;
|
|
15
|
-
type __VLS_WithDefaults<P, D> = {
|
|
16
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
17
|
-
default: D[K];
|
|
18
|
-
}> : P[K];
|
|
19
|
-
};
|
|
20
|
-
type __VLS_Prettify<T> = {
|
|
21
|
-
[K in keyof T]: T[K];
|
|
22
|
-
} & {};
|
|
23
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
-
type __VLS_TypePropsToOption<T> = {
|
|
25
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
-
} : {
|
|
28
|
-
type: import('vue').PropType<T[K]>;
|
|
29
|
-
required: true;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { FieldProps, FormItem } from '@tmagic/form';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<FieldProps<{
|
|
3
|
-
type: "ui-select";
|
|
4
|
-
} & FormItem>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
-
change: (...args: any[]) => void;
|
|
6
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<FieldProps<{
|
|
7
|
-
type: "ui-select";
|
|
8
|
-
} & FormItem>>>> & {
|
|
9
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
10
|
-
}, {}, {}>;
|
|
11
|
-
export default _default;
|
|
12
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
-
type __VLS_TypePropsToOption<T> = {
|
|
14
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
-
} : {
|
|
17
|
-
type: import('vue').PropType<T[K]>;
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
};
|
package/types/hooks/index.d.ts
DELETED
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import type { CodeBlockContent } from '@tmagic/schema';
|
|
2
|
-
import type { CodeBlockService } from '../services/codeBlock';
|
|
3
|
-
export declare const useCodeBlockEdit: (codeBlockService?: CodeBlockService) => {
|
|
4
|
-
codeId: import("vue").Ref<string | undefined, string | undefined>;
|
|
5
|
-
codeConfig: import("vue").Ref<CodeBlockContent | undefined, CodeBlockContent | undefined>;
|
|
6
|
-
codeBlockEditor: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
-
width: {
|
|
8
|
-
type: import("vue").PropType<number>;
|
|
9
|
-
};
|
|
10
|
-
visible: {
|
|
11
|
-
type: import("vue").PropType<boolean>;
|
|
12
|
-
};
|
|
13
|
-
content: {
|
|
14
|
-
type: import("vue").PropType<CodeBlockContent>;
|
|
15
|
-
required: true;
|
|
16
|
-
};
|
|
17
|
-
disabled: {
|
|
18
|
-
type: import("vue").PropType<boolean>;
|
|
19
|
-
};
|
|
20
|
-
isDataSource: {
|
|
21
|
-
type: import("vue").PropType<boolean>;
|
|
22
|
-
};
|
|
23
|
-
dataSourceType: {
|
|
24
|
-
type: import("vue").PropType<string>;
|
|
25
|
-
};
|
|
26
|
-
}>> & {
|
|
27
|
-
onSubmit?: ((values: CodeBlockContent) => any) | undefined;
|
|
28
|
-
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
29
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
30
|
-
}, {
|
|
31
|
-
show(): Promise<void>;
|
|
32
|
-
hide(): Promise<void>;
|
|
33
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
-
"update:width": (width: number) => void;
|
|
35
|
-
"update:visible": (visible: boolean) => void;
|
|
36
|
-
submit: (values: CodeBlockContent) => void;
|
|
37
|
-
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
-
width: {
|
|
39
|
-
type: import("vue").PropType<number>;
|
|
40
|
-
};
|
|
41
|
-
visible: {
|
|
42
|
-
type: import("vue").PropType<boolean>;
|
|
43
|
-
};
|
|
44
|
-
content: {
|
|
45
|
-
type: import("vue").PropType<CodeBlockContent>;
|
|
46
|
-
required: true;
|
|
47
|
-
};
|
|
48
|
-
disabled: {
|
|
49
|
-
type: import("vue").PropType<boolean>;
|
|
50
|
-
};
|
|
51
|
-
isDataSource: {
|
|
52
|
-
type: import("vue").PropType<boolean>;
|
|
53
|
-
};
|
|
54
|
-
dataSourceType: {
|
|
55
|
-
type: import("vue").PropType<string>;
|
|
56
|
-
};
|
|
57
|
-
}>> & {
|
|
58
|
-
onSubmit?: ((values: CodeBlockContent) => any) | undefined;
|
|
59
|
-
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
60
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
61
|
-
}, {}, true, {}, {}, {
|
|
62
|
-
P: {};
|
|
63
|
-
B: {};
|
|
64
|
-
D: {};
|
|
65
|
-
C: {};
|
|
66
|
-
M: {};
|
|
67
|
-
Defaults: {};
|
|
68
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
69
|
-
width: {
|
|
70
|
-
type: import("vue").PropType<number>;
|
|
71
|
-
};
|
|
72
|
-
visible: {
|
|
73
|
-
type: import("vue").PropType<boolean>;
|
|
74
|
-
};
|
|
75
|
-
content: {
|
|
76
|
-
type: import("vue").PropType<CodeBlockContent>;
|
|
77
|
-
required: true;
|
|
78
|
-
};
|
|
79
|
-
disabled: {
|
|
80
|
-
type: import("vue").PropType<boolean>;
|
|
81
|
-
};
|
|
82
|
-
isDataSource: {
|
|
83
|
-
type: import("vue").PropType<boolean>;
|
|
84
|
-
};
|
|
85
|
-
dataSourceType: {
|
|
86
|
-
type: import("vue").PropType<string>;
|
|
87
|
-
};
|
|
88
|
-
}>> & {
|
|
89
|
-
onSubmit?: ((values: CodeBlockContent) => any) | undefined;
|
|
90
|
-
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
91
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
92
|
-
}, {
|
|
93
|
-
show(): Promise<void>;
|
|
94
|
-
hide(): Promise<void>;
|
|
95
|
-
}, {}, {}, {}, {}> | undefined, import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
96
|
-
width: {
|
|
97
|
-
type: import("vue").PropType<number>;
|
|
98
|
-
};
|
|
99
|
-
visible: {
|
|
100
|
-
type: import("vue").PropType<boolean>;
|
|
101
|
-
};
|
|
102
|
-
content: {
|
|
103
|
-
type: import("vue").PropType<CodeBlockContent>;
|
|
104
|
-
required: true;
|
|
105
|
-
};
|
|
106
|
-
disabled: {
|
|
107
|
-
type: import("vue").PropType<boolean>;
|
|
108
|
-
};
|
|
109
|
-
isDataSource: {
|
|
110
|
-
type: import("vue").PropType<boolean>;
|
|
111
|
-
};
|
|
112
|
-
dataSourceType: {
|
|
113
|
-
type: import("vue").PropType<string>;
|
|
114
|
-
};
|
|
115
|
-
}>> & {
|
|
116
|
-
onSubmit?: ((values: CodeBlockContent) => any) | undefined;
|
|
117
|
-
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
118
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
119
|
-
}, {
|
|
120
|
-
show(): Promise<void>;
|
|
121
|
-
hide(): Promise<void>;
|
|
122
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
123
|
-
"update:width": (width: number) => void;
|
|
124
|
-
"update:visible": (visible: boolean) => void;
|
|
125
|
-
submit: (values: CodeBlockContent) => void;
|
|
126
|
-
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
127
|
-
width: {
|
|
128
|
-
type: import("vue").PropType<number>;
|
|
129
|
-
};
|
|
130
|
-
visible: {
|
|
131
|
-
type: import("vue").PropType<boolean>;
|
|
132
|
-
};
|
|
133
|
-
content: {
|
|
134
|
-
type: import("vue").PropType<CodeBlockContent>;
|
|
135
|
-
required: true;
|
|
136
|
-
};
|
|
137
|
-
disabled: {
|
|
138
|
-
type: import("vue").PropType<boolean>;
|
|
139
|
-
};
|
|
140
|
-
isDataSource: {
|
|
141
|
-
type: import("vue").PropType<boolean>;
|
|
142
|
-
};
|
|
143
|
-
dataSourceType: {
|
|
144
|
-
type: import("vue").PropType<string>;
|
|
145
|
-
};
|
|
146
|
-
}>> & {
|
|
147
|
-
onSubmit?: ((values: CodeBlockContent) => any) | undefined;
|
|
148
|
-
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
149
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
150
|
-
}, {}, true, {}, {}, {
|
|
151
|
-
P: {};
|
|
152
|
-
B: {};
|
|
153
|
-
D: {};
|
|
154
|
-
C: {};
|
|
155
|
-
M: {};
|
|
156
|
-
Defaults: {};
|
|
157
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
158
|
-
width: {
|
|
159
|
-
type: import("vue").PropType<number>;
|
|
160
|
-
};
|
|
161
|
-
visible: {
|
|
162
|
-
type: import("vue").PropType<boolean>;
|
|
163
|
-
};
|
|
164
|
-
content: {
|
|
165
|
-
type: import("vue").PropType<CodeBlockContent>;
|
|
166
|
-
required: true;
|
|
167
|
-
};
|
|
168
|
-
disabled: {
|
|
169
|
-
type: import("vue").PropType<boolean>;
|
|
170
|
-
};
|
|
171
|
-
isDataSource: {
|
|
172
|
-
type: import("vue").PropType<boolean>;
|
|
173
|
-
};
|
|
174
|
-
dataSourceType: {
|
|
175
|
-
type: import("vue").PropType<string>;
|
|
176
|
-
};
|
|
177
|
-
}>> & {
|
|
178
|
-
onSubmit?: ((values: CodeBlockContent) => any) | undefined;
|
|
179
|
-
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
180
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
181
|
-
}, {
|
|
182
|
-
show(): Promise<void>;
|
|
183
|
-
hide(): Promise<void>;
|
|
184
|
-
}, {}, {}, {}, {}> | undefined>;
|
|
185
|
-
createCodeBlock: () => Promise<void>;
|
|
186
|
-
editCode: (id: string) => Promise<void>;
|
|
187
|
-
deleteCode: (key: string) => Promise<void>;
|
|
188
|
-
submitCodeBlockHandler: (values: CodeBlockContent) => Promise<void>;
|
|
189
|
-
};
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import type { DataSourceSchema } from '@tmagic/schema';
|
|
2
|
-
import type { DataSourceService } from '../services/dataSource';
|
|
3
|
-
export declare const useDataSourceEdit: (dataSourceService?: DataSourceService) => {
|
|
4
|
-
dialogTitle: import("vue").Ref<string, string>;
|
|
5
|
-
editDialog: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
6
|
-
visible: {
|
|
7
|
-
type: import("vue").PropType<boolean>;
|
|
8
|
-
};
|
|
9
|
-
width: {
|
|
10
|
-
type: import("vue").PropType<number>;
|
|
11
|
-
};
|
|
12
|
-
title: {
|
|
13
|
-
type: import("vue").PropType<string>;
|
|
14
|
-
};
|
|
15
|
-
values: {
|
|
16
|
-
type: import("vue").PropType<any>;
|
|
17
|
-
required: true;
|
|
18
|
-
};
|
|
19
|
-
disabled: {
|
|
20
|
-
type: import("vue").PropType<boolean>;
|
|
21
|
-
required: true;
|
|
22
|
-
};
|
|
23
|
-
}>> & {
|
|
24
|
-
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
25
|
-
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
26
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
27
|
-
}, {
|
|
28
|
-
show(): void;
|
|
29
|
-
hide(): void;
|
|
30
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
-
"update:width": (width: number) => void;
|
|
32
|
-
"update:visible": (visible: boolean) => void;
|
|
33
|
-
submit: (...args: any[]) => void;
|
|
34
|
-
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
-
visible: {
|
|
36
|
-
type: import("vue").PropType<boolean>;
|
|
37
|
-
};
|
|
38
|
-
width: {
|
|
39
|
-
type: import("vue").PropType<number>;
|
|
40
|
-
};
|
|
41
|
-
title: {
|
|
42
|
-
type: import("vue").PropType<string>;
|
|
43
|
-
};
|
|
44
|
-
values: {
|
|
45
|
-
type: import("vue").PropType<any>;
|
|
46
|
-
required: true;
|
|
47
|
-
};
|
|
48
|
-
disabled: {
|
|
49
|
-
type: import("vue").PropType<boolean>;
|
|
50
|
-
required: true;
|
|
51
|
-
};
|
|
52
|
-
}>> & {
|
|
53
|
-
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
54
|
-
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
55
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
56
|
-
}, {}, true, {}, {}, {
|
|
57
|
-
P: {};
|
|
58
|
-
B: {};
|
|
59
|
-
D: {};
|
|
60
|
-
C: {};
|
|
61
|
-
M: {};
|
|
62
|
-
Defaults: {};
|
|
63
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
64
|
-
visible: {
|
|
65
|
-
type: import("vue").PropType<boolean>;
|
|
66
|
-
};
|
|
67
|
-
width: {
|
|
68
|
-
type: import("vue").PropType<number>;
|
|
69
|
-
};
|
|
70
|
-
title: {
|
|
71
|
-
type: import("vue").PropType<string>;
|
|
72
|
-
};
|
|
73
|
-
values: {
|
|
74
|
-
type: import("vue").PropType<any>;
|
|
75
|
-
required: true;
|
|
76
|
-
};
|
|
77
|
-
disabled: {
|
|
78
|
-
type: import("vue").PropType<boolean>;
|
|
79
|
-
required: true;
|
|
80
|
-
};
|
|
81
|
-
}>> & {
|
|
82
|
-
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
83
|
-
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
84
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
85
|
-
}, {
|
|
86
|
-
show(): void;
|
|
87
|
-
hide(): void;
|
|
88
|
-
}, {}, {}, {}, {}> | undefined, import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
89
|
-
visible: {
|
|
90
|
-
type: import("vue").PropType<boolean>;
|
|
91
|
-
};
|
|
92
|
-
width: {
|
|
93
|
-
type: import("vue").PropType<number>;
|
|
94
|
-
};
|
|
95
|
-
title: {
|
|
96
|
-
type: import("vue").PropType<string>;
|
|
97
|
-
};
|
|
98
|
-
values: {
|
|
99
|
-
type: import("vue").PropType<any>;
|
|
100
|
-
required: true;
|
|
101
|
-
};
|
|
102
|
-
disabled: {
|
|
103
|
-
type: import("vue").PropType<boolean>;
|
|
104
|
-
required: true;
|
|
105
|
-
};
|
|
106
|
-
}>> & {
|
|
107
|
-
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
108
|
-
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
109
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
110
|
-
}, {
|
|
111
|
-
show(): void;
|
|
112
|
-
hide(): void;
|
|
113
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
114
|
-
"update:width": (width: number) => void;
|
|
115
|
-
"update:visible": (visible: boolean) => void;
|
|
116
|
-
submit: (...args: any[]) => void;
|
|
117
|
-
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
118
|
-
visible: {
|
|
119
|
-
type: import("vue").PropType<boolean>;
|
|
120
|
-
};
|
|
121
|
-
width: {
|
|
122
|
-
type: import("vue").PropType<number>;
|
|
123
|
-
};
|
|
124
|
-
title: {
|
|
125
|
-
type: import("vue").PropType<string>;
|
|
126
|
-
};
|
|
127
|
-
values: {
|
|
128
|
-
type: import("vue").PropType<any>;
|
|
129
|
-
required: true;
|
|
130
|
-
};
|
|
131
|
-
disabled: {
|
|
132
|
-
type: import("vue").PropType<boolean>;
|
|
133
|
-
required: true;
|
|
134
|
-
};
|
|
135
|
-
}>> & {
|
|
136
|
-
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
137
|
-
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
138
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
139
|
-
}, {}, true, {}, {}, {
|
|
140
|
-
P: {};
|
|
141
|
-
B: {};
|
|
142
|
-
D: {};
|
|
143
|
-
C: {};
|
|
144
|
-
M: {};
|
|
145
|
-
Defaults: {};
|
|
146
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
147
|
-
visible: {
|
|
148
|
-
type: import("vue").PropType<boolean>;
|
|
149
|
-
};
|
|
150
|
-
width: {
|
|
151
|
-
type: import("vue").PropType<number>;
|
|
152
|
-
};
|
|
153
|
-
title: {
|
|
154
|
-
type: import("vue").PropType<string>;
|
|
155
|
-
};
|
|
156
|
-
values: {
|
|
157
|
-
type: import("vue").PropType<any>;
|
|
158
|
-
required: true;
|
|
159
|
-
};
|
|
160
|
-
disabled: {
|
|
161
|
-
type: import("vue").PropType<boolean>;
|
|
162
|
-
required: true;
|
|
163
|
-
};
|
|
164
|
-
}>> & {
|
|
165
|
-
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
166
|
-
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
167
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
168
|
-
}, {
|
|
169
|
-
show(): void;
|
|
170
|
-
hide(): void;
|
|
171
|
-
}, {}, {}, {}, {}> | undefined>;
|
|
172
|
-
dataSourceValues: import("vue").Ref<Record<string, any>, Record<string, any>>;
|
|
173
|
-
editable: import("vue").ComputedRef<boolean>;
|
|
174
|
-
editHandler: (id: string) => void;
|
|
175
|
-
submitDataSourceHandler: (value: DataSourceSchema) => void;
|
|
176
|
-
};
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import type { CodeBlockContent, DataSourceSchema } from '@tmagic/schema';
|
|
2
|
-
export declare const useDataSourceMethod: () => {
|
|
3
|
-
codeConfig: import("vue").Ref<CodeBlockContent | undefined, CodeBlockContent | undefined>;
|
|
4
|
-
codeBlockEditor: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
5
|
-
width: {
|
|
6
|
-
type: import("vue").PropType<number>;
|
|
7
|
-
};
|
|
8
|
-
visible: {
|
|
9
|
-
type: import("vue").PropType<boolean>;
|
|
10
|
-
};
|
|
11
|
-
content: {
|
|
12
|
-
type: import("vue").PropType<CodeBlockContent>;
|
|
13
|
-
required: true;
|
|
14
|
-
};
|
|
15
|
-
disabled: {
|
|
16
|
-
type: import("vue").PropType<boolean>;
|
|
17
|
-
};
|
|
18
|
-
isDataSource: {
|
|
19
|
-
type: import("vue").PropType<boolean>;
|
|
20
|
-
};
|
|
21
|
-
dataSourceType: {
|
|
22
|
-
type: import("vue").PropType<string>;
|
|
23
|
-
};
|
|
24
|
-
}>> & {
|
|
25
|
-
onSubmit?: ((values: CodeBlockContent) => any) | undefined;
|
|
26
|
-
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
27
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
28
|
-
}, {
|
|
29
|
-
show(): Promise<void>;
|
|
30
|
-
hide(): Promise<void>;
|
|
31
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
-
"update:width": (width: number) => void;
|
|
33
|
-
"update:visible": (visible: boolean) => void;
|
|
34
|
-
submit: (values: CodeBlockContent) => void;
|
|
35
|
-
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
-
width: {
|
|
37
|
-
type: import("vue").PropType<number>;
|
|
38
|
-
};
|
|
39
|
-
visible: {
|
|
40
|
-
type: import("vue").PropType<boolean>;
|
|
41
|
-
};
|
|
42
|
-
content: {
|
|
43
|
-
type: import("vue").PropType<CodeBlockContent>;
|
|
44
|
-
required: true;
|
|
45
|
-
};
|
|
46
|
-
disabled: {
|
|
47
|
-
type: import("vue").PropType<boolean>;
|
|
48
|
-
};
|
|
49
|
-
isDataSource: {
|
|
50
|
-
type: import("vue").PropType<boolean>;
|
|
51
|
-
};
|
|
52
|
-
dataSourceType: {
|
|
53
|
-
type: import("vue").PropType<string>;
|
|
54
|
-
};
|
|
55
|
-
}>> & {
|
|
56
|
-
onSubmit?: ((values: CodeBlockContent) => any) | undefined;
|
|
57
|
-
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
58
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
59
|
-
}, {}, true, {}, {}, {
|
|
60
|
-
P: {};
|
|
61
|
-
B: {};
|
|
62
|
-
D: {};
|
|
63
|
-
C: {};
|
|
64
|
-
M: {};
|
|
65
|
-
Defaults: {};
|
|
66
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
67
|
-
width: {
|
|
68
|
-
type: import("vue").PropType<number>;
|
|
69
|
-
};
|
|
70
|
-
visible: {
|
|
71
|
-
type: import("vue").PropType<boolean>;
|
|
72
|
-
};
|
|
73
|
-
content: {
|
|
74
|
-
type: import("vue").PropType<CodeBlockContent>;
|
|
75
|
-
required: true;
|
|
76
|
-
};
|
|
77
|
-
disabled: {
|
|
78
|
-
type: import("vue").PropType<boolean>;
|
|
79
|
-
};
|
|
80
|
-
isDataSource: {
|
|
81
|
-
type: import("vue").PropType<boolean>;
|
|
82
|
-
};
|
|
83
|
-
dataSourceType: {
|
|
84
|
-
type: import("vue").PropType<string>;
|
|
85
|
-
};
|
|
86
|
-
}>> & {
|
|
87
|
-
onSubmit?: ((values: CodeBlockContent) => any) | undefined;
|
|
88
|
-
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
89
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
90
|
-
}, {
|
|
91
|
-
show(): Promise<void>;
|
|
92
|
-
hide(): Promise<void>;
|
|
93
|
-
}, {}, {}, {}, {}> | undefined, import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
94
|
-
width: {
|
|
95
|
-
type: import("vue").PropType<number>;
|
|
96
|
-
};
|
|
97
|
-
visible: {
|
|
98
|
-
type: import("vue").PropType<boolean>;
|
|
99
|
-
};
|
|
100
|
-
content: {
|
|
101
|
-
type: import("vue").PropType<CodeBlockContent>;
|
|
102
|
-
required: true;
|
|
103
|
-
};
|
|
104
|
-
disabled: {
|
|
105
|
-
type: import("vue").PropType<boolean>;
|
|
106
|
-
};
|
|
107
|
-
isDataSource: {
|
|
108
|
-
type: import("vue").PropType<boolean>;
|
|
109
|
-
};
|
|
110
|
-
dataSourceType: {
|
|
111
|
-
type: import("vue").PropType<string>;
|
|
112
|
-
};
|
|
113
|
-
}>> & {
|
|
114
|
-
onSubmit?: ((values: CodeBlockContent) => any) | undefined;
|
|
115
|
-
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
116
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
117
|
-
}, {
|
|
118
|
-
show(): Promise<void>;
|
|
119
|
-
hide(): Promise<void>;
|
|
120
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
121
|
-
"update:width": (width: number) => void;
|
|
122
|
-
"update:visible": (visible: boolean) => void;
|
|
123
|
-
submit: (values: CodeBlockContent) => void;
|
|
124
|
-
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
125
|
-
width: {
|
|
126
|
-
type: import("vue").PropType<number>;
|
|
127
|
-
};
|
|
128
|
-
visible: {
|
|
129
|
-
type: import("vue").PropType<boolean>;
|
|
130
|
-
};
|
|
131
|
-
content: {
|
|
132
|
-
type: import("vue").PropType<CodeBlockContent>;
|
|
133
|
-
required: true;
|
|
134
|
-
};
|
|
135
|
-
disabled: {
|
|
136
|
-
type: import("vue").PropType<boolean>;
|
|
137
|
-
};
|
|
138
|
-
isDataSource: {
|
|
139
|
-
type: import("vue").PropType<boolean>;
|
|
140
|
-
};
|
|
141
|
-
dataSourceType: {
|
|
142
|
-
type: import("vue").PropType<string>;
|
|
143
|
-
};
|
|
144
|
-
}>> & {
|
|
145
|
-
onSubmit?: ((values: CodeBlockContent) => any) | undefined;
|
|
146
|
-
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
147
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
148
|
-
}, {}, true, {}, {}, {
|
|
149
|
-
P: {};
|
|
150
|
-
B: {};
|
|
151
|
-
D: {};
|
|
152
|
-
C: {};
|
|
153
|
-
M: {};
|
|
154
|
-
Defaults: {};
|
|
155
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
156
|
-
width: {
|
|
157
|
-
type: import("vue").PropType<number>;
|
|
158
|
-
};
|
|
159
|
-
visible: {
|
|
160
|
-
type: import("vue").PropType<boolean>;
|
|
161
|
-
};
|
|
162
|
-
content: {
|
|
163
|
-
type: import("vue").PropType<CodeBlockContent>;
|
|
164
|
-
required: true;
|
|
165
|
-
};
|
|
166
|
-
disabled: {
|
|
167
|
-
type: import("vue").PropType<boolean>;
|
|
168
|
-
};
|
|
169
|
-
isDataSource: {
|
|
170
|
-
type: import("vue").PropType<boolean>;
|
|
171
|
-
};
|
|
172
|
-
dataSourceType: {
|
|
173
|
-
type: import("vue").PropType<string>;
|
|
174
|
-
};
|
|
175
|
-
}>> & {
|
|
176
|
-
onSubmit?: ((values: CodeBlockContent) => any) | undefined;
|
|
177
|
-
"onUpdate:width"?: ((width: number) => any) | undefined;
|
|
178
|
-
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
179
|
-
}, {
|
|
180
|
-
show(): Promise<void>;
|
|
181
|
-
hide(): Promise<void>;
|
|
182
|
-
}, {}, {}, {}, {}> | undefined>;
|
|
183
|
-
createCode: (model: DataSourceSchema) => Promise<void>;
|
|
184
|
-
editCode: (model: DataSourceSchema, methodName: string) => Promise<void>;
|
|
185
|
-
deleteCode: (model: DataSourceSchema, methodName: string) => Promise<void>;
|
|
186
|
-
submitCode: (values: CodeBlockContent) => void;
|
|
187
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type Ref } from 'vue';
|
|
2
|
-
import type { Id, MNode } from '@tmagic/schema';
|
|
3
|
-
import type { LayerNodeStatus, TreeNodeData } from '../type';
|
|
4
|
-
export declare const useFilter: (nodeData: Ref<TreeNodeData[]>, nodeStatusMap: Ref<Map<Id, LayerNodeStatus> | undefined>, filterNodeMethod: (value: string, data: MNode) => boolean) => {
|
|
5
|
-
filterText: Ref<string, string>;
|
|
6
|
-
filterTextChangeHandler(text: string | string[]): void;
|
|
7
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue';
|
|
2
|
-
interface State {
|
|
3
|
-
status: boolean;
|
|
4
|
-
top: number;
|
|
5
|
-
left: number;
|
|
6
|
-
}
|
|
7
|
-
export declare const useFloatBox: (slideKeys: ComputedRef<string[]>) => {
|
|
8
|
-
dragstartHandler: (e: DragEvent) => void;
|
|
9
|
-
dragendHandler: (key: string, e: DragEvent) => void;
|
|
10
|
-
floatBoxStates: import("vue").Ref<{
|
|
11
|
-
[x: string]: State;
|
|
12
|
-
}, {
|
|
13
|
-
[x: string]: State;
|
|
14
|
-
}>;
|
|
15
|
-
showingBoxKeys: ComputedRef<string[]>;
|
|
16
|
-
};
|
|
17
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { UiService } from '../services/ui';
|
|
3
|
-
export declare const useNextFloatBoxPosition: (uiService?: UiService, parent?: Ref<HTMLDivElement | null>) => {
|
|
4
|
-
boxPosition: Ref<{
|
|
5
|
-
left: number;
|
|
6
|
-
top: number;
|
|
7
|
-
}, {
|
|
8
|
-
left: number;
|
|
9
|
-
top: number;
|
|
10
|
-
} | {
|
|
11
|
-
left: number;
|
|
12
|
-
top: number;
|
|
13
|
-
}>;
|
|
14
|
-
calcBoxPosition: () => void;
|
|
15
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue';
|
|
2
|
-
import type { Id } from '@tmagic/schema';
|
|
3
|
-
import { LayerNodeStatus, TreeNodeData } from '../type';
|
|
4
|
-
export declare const useNodeStatus: (nodeData: ComputedRef<TreeNodeData[]>) => {
|
|
5
|
-
nodeStatusMap: import("vue").Ref<Map<Id, {
|
|
6
|
-
visible: boolean;
|
|
7
|
-
expand: boolean;
|
|
8
|
-
selected: boolean;
|
|
9
|
-
draggable: boolean;
|
|
10
|
-
}> & Omit<Map<Id, LayerNodeStatus>, keyof Map<any, any>>, Map<Id, LayerNodeStatus> | (Map<Id, {
|
|
11
|
-
visible: boolean;
|
|
12
|
-
expand: boolean;
|
|
13
|
-
selected: boolean;
|
|
14
|
-
draggable: boolean;
|
|
15
|
-
}> & Omit<Map<Id, LayerNodeStatus>, keyof Map<any, any>>)>;
|
|
16
|
-
};
|