@tmagic/editor 1.3.0-alpha.2 → 1.3.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tmagic-editor.js +800 -514
- package/dist/tmagic-editor.js.map +1 -1
- package/dist/tmagic-editor.umd.cjs +801 -514
- package/dist/tmagic-editor.umd.cjs.map +1 -1
- package/package.json +17 -18
- package/src/Editor.vue +1 -1
- package/src/components/CodeDraftEditor.vue +5 -1
- package/src/components/ContentMenu.vue +5 -1
- package/src/components/FunctionEditor.vue +6 -1
- package/src/components/Icon.vue +5 -1
- package/src/components/Layout.vue +5 -1
- package/src/components/ScrollBar.vue +5 -1
- package/src/components/ScrollViewer.vue +5 -1
- package/src/components/SearchInput.vue +4 -0
- package/src/components/ToolButton.vue +5 -1
- package/src/fields/Code.vue +5 -1
- package/src/fields/CodeLink.vue +5 -1
- package/src/fields/CodeSelect.vue +8 -2
- package/src/fields/CodeSelectCol.vue +6 -2
- package/src/fields/DataSourceFields.vue +4 -0
- package/src/fields/DataSourceInput.vue +357 -0
- package/src/fields/EventSelect.vue +9 -3
- package/src/fields/KeyValue.vue +4 -0
- package/src/fields/UISelect.vue +5 -1
- package/src/icons/AppManageIcon.vue +5 -1
- package/src/icons/CodeIcon.vue +5 -1
- package/src/index.ts +3 -0
- package/src/layouts/AddPageBox.vue +5 -1
- package/src/layouts/CodeEditor.vue +5 -1
- package/src/layouts/Framework.vue +5 -1
- package/src/layouts/NavMenu.vue +5 -1
- package/src/layouts/PropsPanel.vue +5 -1
- package/src/layouts/Resizer.vue +5 -1
- package/src/layouts/sidebar/ComponentListPanel.vue +5 -1
- package/src/layouts/sidebar/LayerMenu.vue +5 -1
- package/src/layouts/sidebar/LayerPanel.vue +5 -1
- package/src/layouts/sidebar/Sidebar.vue +11 -7
- package/src/layouts/sidebar/code-block/CodeBlockEditor.vue +5 -1
- package/src/layouts/sidebar/code-block/CodeBlockList.vue +5 -1
- package/src/layouts/sidebar/data-source/DataSourceConfigPanel.vue +4 -0
- package/src/layouts/sidebar/data-source/DataSourceListPanel.vue +4 -0
- package/src/layouts/workspace/Breadcrumb.vue +5 -1
- package/src/layouts/workspace/PageBar.vue +5 -1
- package/src/layouts/workspace/PageBarScrollContainer.vue +5 -1
- package/src/layouts/workspace/Stage.vue +5 -1
- package/src/layouts/workspace/ViewerMenu.vue +5 -1
- package/src/layouts/workspace/Workspace.vue +5 -1
- package/types/Editor.vue.d.ts +1 -1
- package/types/components/CodeDraftEditor.vue.d.ts +6 -3
- package/types/components/ContentMenu.vue.d.ts +8 -5
- package/types/components/FunctionEditor.vue.d.ts +66 -45
- package/types/components/Icon.vue.d.ts +2 -2
- package/types/components/Layout.vue.d.ts +9 -6
- package/types/components/ScrollBar.vue.d.ts +1 -1
- package/types/components/ScrollViewer.vue.d.ts +8 -5
- package/types/components/SearchInput.vue.d.ts +1 -1
- package/types/components/ToolButton.vue.d.ts +8 -5
- package/types/fields/Code.vue.d.ts +1 -1
- package/types/fields/CodeLink.vue.d.ts +9 -9
- package/types/fields/CodeSelect.vue.d.ts +10 -7
- package/types/fields/CodeSelectCol.vue.d.ts +8 -5
- package/types/fields/DataSourceFields.vue.d.ts +8 -5
- package/types/fields/DataSourceInput.vue.d.ts +54 -0
- package/types/fields/EventSelect.vue.d.ts +3 -3
- package/types/fields/KeyValue.vue.d.ts +8 -5
- package/types/fields/UISelect.vue.d.ts +1 -1
- package/types/icons/AppManageIcon.vue.d.ts +1 -1
- package/types/icons/CodeIcon.vue.d.ts +1 -1
- package/types/index.d.ts +1 -0
- package/types/layouts/AddPageBox.vue.d.ts +1 -1
- package/types/layouts/CodeEditor.vue.d.ts +7 -4
- package/types/layouts/Framework.vue.d.ts +13 -10
- package/types/layouts/NavMenu.vue.d.ts +7 -4
- package/types/layouts/PropsPanel.vue.d.ts +2 -2
- package/types/layouts/Resizer.vue.d.ts +2 -2
- package/types/layouts/sidebar/ComponentListPanel.vue.d.ts +4 -4
- package/types/layouts/sidebar/LayerMenu.vue.d.ts +2 -2
- package/types/layouts/sidebar/LayerPanel.vue.d.ts +5 -5
- package/types/layouts/sidebar/Sidebar.vue.d.ts +18 -15
- package/types/layouts/sidebar/code-block/CodeBlockEditor.vue.d.ts +4 -4
- package/types/layouts/sidebar/code-block/CodeBlockList.vue.d.ts +7 -7
- package/types/layouts/sidebar/data-source/DataSourceConfigPanel.vue.d.ts +1 -1
- package/types/layouts/sidebar/data-source/DataSourceListPanel.vue.d.ts +3 -3
- package/types/layouts/workspace/Breadcrumb.vue.d.ts +1 -1
- package/types/layouts/workspace/PageBar.vue.d.ts +5 -5
- package/types/layouts/workspace/PageBarScrollContainer.vue.d.ts +2 -2
- package/types/layouts/workspace/Stage.vue.d.ts +2 -2
- package/types/layouts/workspace/ViewerMenu.vue.d.ts +7 -4
- package/types/layouts/workspace/Workspace.vue.d.ts +8 -8
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { MPage } from '@tmagic/schema';
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
3
|
-
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
|
3
|
+
"page-bar-title"?(_: {
|
|
4
4
|
page: MPage;
|
|
5
|
-
})
|
|
6
|
-
|
|
5
|
+
}): any;
|
|
6
|
+
"page-bar-popover"?(_: {
|
|
7
7
|
page: MPage;
|
|
8
|
-
})
|
|
8
|
+
}): any;
|
|
9
9
|
}>;
|
|
10
10
|
export default _default;
|
|
11
11
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
2
|
-
default
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
|
2
|
+
default?(_: {}): any;
|
|
3
3
|
}>;
|
|
4
4
|
export default _default;
|
|
5
5
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { MenuButton, MenuComponent } from '../../type';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
stageContentMenu: (MenuButton | MenuComponent)[];
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
5
|
stageContentMenu: (MenuButton | MenuComponent)[];
|
|
6
|
-
}>>>, {}>;
|
|
6
|
+
}>>>, {}, {}>;
|
|
7
7
|
export default _default;
|
|
8
8
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
9
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -6,14 +6,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
6
6
|
isMultiSelect: boolean;
|
|
7
7
|
}>, {
|
|
8
8
|
show: (e: MouseEvent) => Promise<void>;
|
|
9
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
9
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
10
|
isMultiSelect?: boolean | undefined;
|
|
11
11
|
stageContentMenu: (MenuButton | MenuComponent)[];
|
|
12
12
|
}>, {
|
|
13
13
|
isMultiSelect: boolean;
|
|
14
14
|
}>>>, {
|
|
15
15
|
isMultiSelect: boolean;
|
|
16
|
-
}>;
|
|
16
|
+
}, {}>;
|
|
17
17
|
export default _default;
|
|
18
18
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
19
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -25,7 +25,10 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
type __VLS_WithDefaults<P, D> = {
|
|
28
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
28
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
29
29
|
default: D[K];
|
|
30
|
-
} : P[K];
|
|
30
|
+
}> : P[K];
|
|
31
31
|
};
|
|
32
|
+
type __VLS_Prettify<T> = {
|
|
33
|
+
[K in keyof T]: T[K];
|
|
34
|
+
} & {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { MenuButton, MenuComponent } from '../../type';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
stageContentMenu: (MenuButton | MenuComponent)[];
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
5
|
stageContentMenu: (MenuButton | MenuComponent)[];
|
|
6
|
-
}>>>, {}>, {
|
|
7
|
-
stage
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
}>>>, {}, {}>, {
|
|
7
|
+
stage?(_: {}): any;
|
|
8
|
+
"workspace-content"?(_: {}): any;
|
|
9
|
+
"page-bar-title"?(_: {
|
|
10
10
|
page: import("@tmagic/schema").MPage;
|
|
11
|
-
})
|
|
12
|
-
|
|
11
|
+
}): any;
|
|
12
|
+
"page-bar-popover"?(_: {
|
|
13
13
|
page: import("@tmagic/schema").MPage;
|
|
14
|
-
})
|
|
14
|
+
}): any;
|
|
15
15
|
}>;
|
|
16
16
|
export default _default;
|
|
17
17
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|