@gct-paas/design 0.1.6-dev.2 → 0.1.6-dev.20
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/index.min.css +1 -1
- package/dist/loader.esm.min.js +2 -1
- package/es/components/index.d.ts +0 -4
- package/es/components/index.mjs +0 -4
- package/es/components/user-occupy/useUserOccupy.mjs +2 -2
- package/es/constant/page-designer.d.ts +9 -36
- package/es/constant/page-designer.mjs +2 -32
- package/es/create-app-vue.d.ts +1 -1
- package/es/create-app-vue.mjs +1 -1
- package/es/hooks/design-view/designer/useDesignPreview.mjs +6 -4
- package/es/hooks/design-view/layout/useToolkit.mjs +4 -1
- package/es/hooks/index.d.ts +0 -1
- package/es/hooks/index.mjs +0 -1
- package/es/index.mjs +6 -9
- package/es/interface/index.d.ts +0 -1
- package/es/locale/sys/component.d.ts +4 -4
- package/es/locale/sys/pageDesigner.d.ts +5 -5
- package/es/props/design-plugin-props.d.ts +64 -0
- package/es/props/{index.mjs → design-plugin-props.mjs} +1 -1
- package/es/props/index.d.ts +1 -64
- package/es/register/index.d.ts +1 -0
- package/es/register/index.mjs +1 -0
- package/es/register/props-editor/props-editor.register.d.ts +24 -0
- package/es/register/props-editor/props-editor.register.mjs +30 -0
- package/es/types/index.d.ts +2 -1
- package/package.json +11 -11
- package/es/components/design-save-tip/design-save-tip.css +0 -107
- package/es/components/design-save-tip/design-save-tip.d.ts +0 -44
- package/es/components/design-save-tip/design-save-tip.mjs +0 -81
- package/es/components/design-step-check/design-step-check.css +0 -133
- package/es/components/design-step-check/design-step-check.d.ts +0 -30
- package/es/components/design-step-check/design-step-check.mjs +0 -96
- package/es/components/design-view-layout/design-view-layout.css +0 -157
- package/es/components/design-view-layout/design-view-layout.d.ts +0 -1
- package/es/components/design-view-layout/design-view-layout.mjs +0 -139
- package/es/components/modal-name-editor/modal-name-editor.css +0 -117
- package/es/components/modal-name-editor/modal-name-editor.d.ts +0 -34
- package/es/components/modal-name-editor/modal-name-editor.mjs +0 -124
- package/es/hooks/develop/useKeyParser.d.ts +0 -16
- package/es/hooks/develop/useKeyParser.mjs +0 -79
- package/es/interface/i-view-step/i-view-step.d.ts +0 -32
package/es/components/index.d.ts
CHANGED
|
@@ -6,10 +6,6 @@ export default _default;
|
|
|
6
6
|
export * from './design';
|
|
7
7
|
export * from './material';
|
|
8
8
|
export * from './panel';
|
|
9
|
-
export { DesignSaveTip } from './design-save-tip/design-save-tip';
|
|
10
|
-
export { DesignStepCheck } from './design-step-check/design-step-check';
|
|
11
|
-
export { DesignViewLayout } from './design-view-layout/design-view-layout';
|
|
12
9
|
export * from './field-transfer';
|
|
13
|
-
export { ModalNameEditor } from './modal-name-editor/modal-name-editor';
|
|
14
10
|
export * from './user-occupy';
|
|
15
11
|
export * from './multi-field';
|
package/es/components/index.mjs
CHANGED
|
@@ -8,10 +8,6 @@ import "./material/material-content/material-content.mjs";
|
|
|
8
8
|
import "./material/index.mjs";
|
|
9
9
|
import "./panel/panel-content/panel-content.mjs";
|
|
10
10
|
import "./panel/index.mjs";
|
|
11
|
-
import "./design-save-tip/design-save-tip.mjs";
|
|
12
|
-
import "./design-step-check/design-step-check.mjs";
|
|
13
|
-
import "./modal-name-editor/modal-name-editor.mjs";
|
|
14
|
-
import "./design-view-layout/design-view-layout.mjs";
|
|
15
11
|
import "./field-transfer/components/Cascader/FieldCascader.mjs";
|
|
16
12
|
import "./field-transfer/useFieldTransfer.mjs";
|
|
17
13
|
import "./field-transfer/index.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { PageTypeEnum
|
|
1
|
+
import { PageTypeEnum } from "../../constant/page-designer.mjs";
|
|
2
2
|
import "../../constant/index.mjs";
|
|
3
3
|
import "../../hooks/design-view/page/usePage.mjs";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
5
5
|
import { OCCUPY_MQTT_KEY } from "./occupy.const.mjs";
|
|
6
6
|
import { throttle } from "lodash-es";
|
|
7
|
-
import { t } from "@gct-paas/core";
|
|
7
|
+
import { ScriptTypeEnum, t } from "@gct-paas/core";
|
|
8
8
|
import { computed, createVNode, ref } from "vue";
|
|
9
9
|
import { ExclamationCircleOutlined } from "@ant-design/icons-vue";
|
|
10
10
|
import { Modal } from "ant-design-vue";
|
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
import { FormDesignEnum, PrintTypeEnum } from '@gct-paas/core';
|
|
1
|
+
import { FormDesignEnum, PrintTypeEnum, ProcessTypeEnum, ScriptTypeEnum, ModelTypeEnum } from '@gct-paas/core';
|
|
2
2
|
export declare enum MenuClickEvent {
|
|
3
3
|
NEW = "new",
|
|
4
4
|
EDIT = "edit",
|
|
5
5
|
DELETE = "delete"
|
|
6
6
|
}
|
|
7
|
-
export declare enum ModelTypeEnum {
|
|
8
|
-
/** 实体模型 */
|
|
9
|
-
ENTITY = "entity_module",
|
|
10
|
-
/** 枚举 */
|
|
11
|
-
ENUM = "enum_module",
|
|
12
|
-
/** 虚拟 */
|
|
13
|
-
VIRTUAL = 5,
|
|
14
|
-
/** 视图 */
|
|
15
|
-
VIEW = "view_model_module",
|
|
16
|
-
/** SQL */
|
|
17
|
-
SQL = 7,
|
|
18
|
-
/** 数据 */
|
|
19
|
-
DATA = "data_model"
|
|
20
|
-
}
|
|
21
7
|
export declare enum PageTypeEnum {
|
|
22
8
|
/** WEB */
|
|
23
9
|
WEB = "web_module",
|
|
@@ -28,37 +14,24 @@ export declare enum PageTypeEnum {
|
|
|
28
14
|
/** 统计 */
|
|
29
15
|
STATISTICS = 8
|
|
30
16
|
}
|
|
31
|
-
export declare enum ScriptTypeEnum {
|
|
32
|
-
/** 公共方法 */
|
|
33
|
-
GLOBAL_METHOD = "global_method_module",
|
|
34
|
-
/** 脚本 */
|
|
35
|
-
DEFAULT = "script_module",
|
|
36
|
-
/** 编排 */
|
|
37
|
-
ORCHESTRATION = "so_module"
|
|
38
|
-
}
|
|
39
|
-
export declare enum ProcessTypeEnum {
|
|
40
|
-
/** 业务流 */
|
|
41
|
-
/** 审批流 */
|
|
42
|
-
APPROVAL = "approval_process_module"
|
|
43
|
-
}
|
|
44
17
|
export declare const CategoryEnum: {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
RECEIPT: PrintTypeEnum.RECEIPT;
|
|
18
|
+
GLOBAL_METHOD: ScriptTypeEnum.GLOBAL_METHOD;
|
|
19
|
+
DEFAULT: ScriptTypeEnum.DEFAULT;
|
|
20
|
+
ORCHESTRATION: ScriptTypeEnum.ORCHESTRATION;
|
|
49
21
|
ENTITY: ModelTypeEnum.ENTITY;
|
|
50
22
|
ENUM: ModelTypeEnum.ENUM;
|
|
51
23
|
VIRTUAL: ModelTypeEnum.VIRTUAL;
|
|
52
24
|
VIEW: ModelTypeEnum.VIEW;
|
|
53
25
|
SQL: ModelTypeEnum.SQL;
|
|
54
26
|
DATA: ModelTypeEnum.DATA;
|
|
27
|
+
ONLINE_FORM: FormDesignEnum.ONLINE_FORM;
|
|
28
|
+
EDHR: FormDesignEnum.EDHR;
|
|
29
|
+
LABEL: PrintTypeEnum.LABEL;
|
|
30
|
+
RECEIPT: PrintTypeEnum.RECEIPT;
|
|
31
|
+
APPROVAL: ProcessTypeEnum.APPROVAL;
|
|
55
32
|
WEB: PageTypeEnum.WEB;
|
|
56
33
|
MOBILE: PageTypeEnum.MOBILE;
|
|
57
34
|
PAD: PageTypeEnum.PAD;
|
|
58
35
|
STATISTICS: PageTypeEnum.STATISTICS;
|
|
59
|
-
GLOBAL_METHOD: ScriptTypeEnum.GLOBAL_METHOD;
|
|
60
|
-
DEFAULT: ScriptTypeEnum.DEFAULT;
|
|
61
|
-
ORCHESTRATION: ScriptTypeEnum.ORCHESTRATION;
|
|
62
|
-
APPROVAL: ProcessTypeEnum.APPROVAL;
|
|
63
36
|
};
|
|
64
37
|
export type CategoryType = ModelTypeEnum | PageTypeEnum | ScriptTypeEnum | PrintTypeEnum | ProcessTypeEnum;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormDesignEnum, PrintTypeEnum } from "@gct-paas/core";
|
|
1
|
+
import { FormDesignEnum, ModelTypeEnum, PrintTypeEnum, ProcessTypeEnum, ScriptTypeEnum } from "@gct-paas/core";
|
|
2
2
|
//#region src/constant/page-designer.ts
|
|
3
3
|
var MenuClickEvent = /* @__PURE__ */ function(MenuClickEvent) {
|
|
4
4
|
MenuClickEvent["NEW"] = "new";
|
|
@@ -6,21 +6,6 @@ var MenuClickEvent = /* @__PURE__ */ function(MenuClickEvent) {
|
|
|
6
6
|
MenuClickEvent["DELETE"] = "delete";
|
|
7
7
|
return MenuClickEvent;
|
|
8
8
|
}({});
|
|
9
|
-
var ModelTypeEnum = /* @__PURE__ */ function(ModelTypeEnum) {
|
|
10
|
-
/** 实体模型 */
|
|
11
|
-
ModelTypeEnum["ENTITY"] = "entity_module";
|
|
12
|
-
/** 枚举 */
|
|
13
|
-
ModelTypeEnum["ENUM"] = "enum_module";
|
|
14
|
-
/** 虚拟 */
|
|
15
|
-
ModelTypeEnum[ModelTypeEnum["VIRTUAL"] = 5] = "VIRTUAL";
|
|
16
|
-
/** 视图 */
|
|
17
|
-
ModelTypeEnum["VIEW"] = "view_model_module";
|
|
18
|
-
/** SQL */
|
|
19
|
-
ModelTypeEnum[ModelTypeEnum["SQL"] = 7] = "SQL";
|
|
20
|
-
/** 数据 */
|
|
21
|
-
ModelTypeEnum["DATA"] = "data_model";
|
|
22
|
-
return ModelTypeEnum;
|
|
23
|
-
}({});
|
|
24
9
|
var PageTypeEnum = /* @__PURE__ */ function(PageTypeEnum) {
|
|
25
10
|
/** WEB */
|
|
26
11
|
PageTypeEnum["WEB"] = "web_module";
|
|
@@ -32,21 +17,6 @@ var PageTypeEnum = /* @__PURE__ */ function(PageTypeEnum) {
|
|
|
32
17
|
PageTypeEnum[PageTypeEnum["STATISTICS"] = 8] = "STATISTICS";
|
|
33
18
|
return PageTypeEnum;
|
|
34
19
|
}({});
|
|
35
|
-
var ScriptTypeEnum = /* @__PURE__ */ function(ScriptTypeEnum) {
|
|
36
|
-
/** 公共方法 */
|
|
37
|
-
ScriptTypeEnum["GLOBAL_METHOD"] = "global_method_module";
|
|
38
|
-
/** 脚本 */
|
|
39
|
-
ScriptTypeEnum["DEFAULT"] = "script_module";
|
|
40
|
-
/** 编排 */
|
|
41
|
-
ScriptTypeEnum["ORCHESTRATION"] = "so_module";
|
|
42
|
-
return ScriptTypeEnum;
|
|
43
|
-
}({});
|
|
44
|
-
var ProcessTypeEnum = /* @__PURE__ */ function(ProcessTypeEnum) {
|
|
45
|
-
/** 业务流 */
|
|
46
|
-
/** 审批流 */
|
|
47
|
-
ProcessTypeEnum["APPROVAL"] = "approval_process_module";
|
|
48
|
-
return ProcessTypeEnum;
|
|
49
|
-
}({});
|
|
50
20
|
var CategoryEnum = {
|
|
51
21
|
...ModelTypeEnum,
|
|
52
22
|
...PageTypeEnum,
|
|
@@ -56,4 +26,4 @@ var CategoryEnum = {
|
|
|
56
26
|
...FormDesignEnum
|
|
57
27
|
};
|
|
58
28
|
//#endregion
|
|
59
|
-
export { CategoryEnum, MenuClickEvent,
|
|
29
|
+
export { CategoryEnum, MenuClickEvent, PageTypeEnum };
|
package/es/create-app-vue.d.ts
CHANGED
package/es/create-app-vue.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { platform } from "../../../utils/design-view/index.mjs";
|
|
2
2
|
import "../design-state.mjs";
|
|
3
|
-
import { Platform, openWindow, stringifyMatrixParams } from "@gct-paas/core";
|
|
3
|
+
import { EnvironmentType, Platform, openWindow, stringifyMatrixParams } from "@gct-paas/core";
|
|
4
4
|
import { ref } from "vue";
|
|
5
5
|
import { useDebounceFn } from "@vueuse/core";
|
|
6
6
|
//#region src/hooks/design-view/designer/useDesignPreview.ts
|
|
@@ -28,10 +28,11 @@ function useDesignPreview() {
|
|
|
28
28
|
*
|
|
29
29
|
* @param {IObject} params 预览参数
|
|
30
30
|
*/
|
|
31
|
-
function basicPreview({ pid, webUrl, mobileUrl, padUrl }) {
|
|
31
|
+
function basicPreview({ pid, webUrl, mobileUrl, padUrl, env }) {
|
|
32
32
|
const matrixParams = {
|
|
33
33
|
aid: _gct.store.context.aid,
|
|
34
|
-
bid: _gct.store.context.bid
|
|
34
|
+
bid: _gct.store.context.bid,
|
|
35
|
+
env: env || _gct.env.getEnv()
|
|
35
36
|
};
|
|
36
37
|
const hasUrl = `/PagePreview/${pid}`;
|
|
37
38
|
if (platform.value === Platform.MOBILE) openWindow(buildPreviewUrl(mobileUrl, hasUrl, matrixParams), {
|
|
@@ -78,7 +79,8 @@ function useDesignPreview() {
|
|
|
78
79
|
const _doPreviewSandbox = () => {
|
|
79
80
|
basicPreview({
|
|
80
81
|
pid: _gct.store.context.pid,
|
|
81
|
-
|
|
82
|
+
env: EnvironmentType.SANDBOX,
|
|
83
|
+
webUrl: "/web-render/",
|
|
82
84
|
mobileUrl: "/mobile-sandbox/",
|
|
83
85
|
padUrl: "/pad-sandbox/"
|
|
84
86
|
});
|
|
@@ -179,7 +179,10 @@ var instance = class ComponentUtils {
|
|
|
179
179
|
_buildKitCategory(platform, suiteKey) {
|
|
180
180
|
const design = this._getDesignerRegister(platform);
|
|
181
181
|
const list = !suiteKey ? [] : design.getProviders().filter((designer) => {
|
|
182
|
-
if (designer.kit && designer.kit.length > 0)
|
|
182
|
+
if (designer.kit && designer.kit.length > 0) {
|
|
183
|
+
if (designer.kit.includes("*")) return true;
|
|
184
|
+
return designer.kit.includes(suiteKey);
|
|
185
|
+
}
|
|
183
186
|
return false;
|
|
184
187
|
}).map((designer) => designer.schema);
|
|
185
188
|
return {
|
package/es/hooks/index.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ export * from './design-view/layout/useScope';
|
|
|
19
19
|
export * from './design-view/layout/useToolkit';
|
|
20
20
|
export * from './design-view/utils/field-schema.util';
|
|
21
21
|
export * from './develop/useCacheHistory';
|
|
22
|
-
export * from './develop/useKeyParser';
|
|
23
22
|
export * from './use-model-field/use-model-field';
|
|
24
23
|
export * from './use-design-view-controller/use-design-view-controller';
|
|
25
24
|
export * from './widgets/useAsyncFields';
|
package/es/hooks/index.mjs
CHANGED
|
@@ -21,7 +21,6 @@ import "./design-view/constants/style-editor.const.mjs";
|
|
|
21
21
|
import "./design-view/editor/useStyleEditor.mjs";
|
|
22
22
|
import "./design-view/editor/useStyle.mjs";
|
|
23
23
|
import "./design-view/utils/field-schema.util.mjs";
|
|
24
|
-
import "./develop/useKeyParser.mjs";
|
|
25
24
|
import "./use-model-field/use-model-field.mjs";
|
|
26
25
|
import "./designer.hooks.mjs";
|
|
27
26
|
import "./use-design-view-controller/use-design-view-controller.mjs";
|
package/es/index.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { DesignerRegister } from "./register/designer-register/designer-register.mjs";
|
|
2
2
|
import { DesignEditorType } from "./constant/design-editor-type.mjs";
|
|
3
|
-
import { CategoryEnum, MenuClickEvent,
|
|
3
|
+
import { CategoryEnum, MenuClickEvent, PageTypeEnum } from "./constant/page-designer.mjs";
|
|
4
4
|
import { ControllerType, DesignItemActionTag, DesignItemAttribute, DesignNodePrefix, DesignNodeType, DesignViewPrefix, InsertNodeMode, MaterialGroup } from "./constant/index.mjs";
|
|
5
5
|
import { MaterialRegister } from "./register/material/material.register.mjs";
|
|
6
6
|
import { NodeRegister } from "./register/node/node.register.mjs";
|
|
7
|
+
import { PropsEditorRegister } from "./register/props-editor/props-editor.register.mjs";
|
|
7
8
|
import "./register/index.mjs";
|
|
8
9
|
import { isCanCrop } from "./utils/can-drop/can-drop.mjs";
|
|
9
10
|
import { designInterceptors } from "./utils/design-interceptors/design-interceptors.mjs";
|
|
@@ -61,7 +62,6 @@ import { BTN_TYPE_COLOR, PRESET_COLOR } from "./hooks/design-view/constants/styl
|
|
|
61
62
|
import { styleEditorProps, useStyleEditor } from "./hooks/design-view/editor/useStyleEditor.mjs";
|
|
62
63
|
import { propsToStyle, schemaToStyle, useStyle } from "./hooks/design-view/editor/useStyle.mjs";
|
|
63
64
|
import { FieldSchema, initFieldWidgetRuntime } from "./hooks/design-view/utils/field-schema.util.mjs";
|
|
64
|
-
import { useKeyParser } from "./hooks/develop/useKeyParser.mjs";
|
|
65
65
|
import { useModelField } from "./hooks/use-model-field/use-model-field.mjs";
|
|
66
66
|
import { useDesignViewStore } from "./store/view/design-view.store.mjs";
|
|
67
67
|
import "./store/index.mjs";
|
|
@@ -76,10 +76,6 @@ import DesignContent from "./components/design/design-content/design-content.mjs
|
|
|
76
76
|
import { DesignItemPreview } from "./components/design/design-item-preview/design-item-preview.mjs";
|
|
77
77
|
import { MaterialContent } from "./components/material/material-content/material-content.mjs";
|
|
78
78
|
import { PanelContent } from "./components/panel/panel-content/panel-content.mjs";
|
|
79
|
-
import { DesignSaveTip } from "./components/design-save-tip/design-save-tip.mjs";
|
|
80
|
-
import { DesignStepCheck } from "./components/design-step-check/design-step-check.mjs";
|
|
81
|
-
import { ModalNameEditor } from "./components/modal-name-editor/modal-name-editor.mjs";
|
|
82
|
-
import { DesignViewLayout } from "./components/design-view-layout/design-view-layout.mjs";
|
|
83
79
|
import FieldCascader_default from "./components/field-transfer/components/Cascader/FieldCascader.mjs";
|
|
84
80
|
import { useFieldTransfer } from "./components/field-transfer/useFieldTransfer.mjs";
|
|
85
81
|
import { useUserOccupy } from "./components/user-occupy/useUserOccupy.mjs";
|
|
@@ -91,7 +87,7 @@ import { DesignNode } from "./data/design-node/design-node.mjs";
|
|
|
91
87
|
import { DesignContainerNode } from "./data/design-container-node/design-container-node.mjs";
|
|
92
88
|
import { DesignEditorNode } from "./data/design-editor-node/design-editor-node.mjs";
|
|
93
89
|
import "./data/index.mjs";
|
|
94
|
-
import { nodeContainerProps, nodeEditorProps, nodeProps } from "./props/
|
|
90
|
+
import { nodeContainerProps, nodeEditorProps, nodeProps } from "./props/design-plugin-props.mjs";
|
|
95
91
|
import { NodeBaseProvider } from "./provider/node-base/node-base.provider.mjs";
|
|
96
92
|
import { DesignEditorNodeProvider } from "./provider/design-editor-node/design-editor-node.provider.mjs";
|
|
97
93
|
import "./provider/index.mjs";
|
|
@@ -102,10 +98,11 @@ function onInit() {
|
|
|
102
98
|
if (!_gct.register.designer) _gct.register.designer = {
|
|
103
99
|
pad: new DesignerRegister(),
|
|
104
100
|
mobile: new DesignerRegister(),
|
|
105
|
-
web: new DesignerRegister()
|
|
101
|
+
web: new DesignerRegister(),
|
|
102
|
+
propsEditor: new PropsEditorRegister()
|
|
106
103
|
};
|
|
107
104
|
else console.warn("设计器注册已存在,可能存在重复注册问题,请检查是否有重复引入设计器包的情况");
|
|
108
105
|
}
|
|
109
106
|
onInit();
|
|
110
107
|
//#endregion
|
|
111
|
-
export { BaseDate, BaseSearch, CategoryEnum, ControllerType, DesignContainerNode, DesignContent, DesignEditorNode, DesignEditorNodeProvider, DesignEditorType, DesignItemActionTag, DesignItemAttribute, DesignItemPreview, DesignNode, DesignNodePrefix, DesignNodeType, DesignPluginPgkUtil,
|
|
108
|
+
export { BaseDate, BaseSearch, CategoryEnum, ControllerType, DesignContainerNode, DesignContent, DesignEditorNode, DesignEditorNodeProvider, DesignEditorType, DesignItemActionTag, DesignItemAttribute, DesignItemPreview, DesignNode, DesignNodePrefix, DesignNodeType, DesignPluginPgkUtil, DesignViewController, DesignViewHooks, DesignViewPrefix, DesignerRegister, FieldCascader_default as FieldCascader, FieldOverrideUtil, FieldSchema, InsertNodeMode, MaterialContent, MaterialGroup, MaterialRegister, MenuClickEvent, multi_field_display_default as MultiFieldDisplay, NodeBaseProvider, NodeRegister, NotMask, PageTypeEnum, PanelContent, PropsEditorRegister, SCREditorUtils, user_lock_default as UserLock, user_occupy_default as UserOccupy, asyncIdentify, baseBtnEditor, baseBtnProp, basicAttrsUtils, basicFieldEditor, beginDrag, BTN_TYPE_COLOR as btnTypeColor, buildRunJs, buildRuntimeJson, buttonEditor, buttonProps, buttonStyleEditor, changeCmpData, commonStyle, createWidgetByType, createWidgetProvider, createdSearchField, currentPanel, customMenu, deptFilter, designCreateAppVue, designInterceptors, designRegister, designSetupApp, destroyOccupyTimer, deviceEvent, displayEditor, displayProps, explainEditor, findAllChildrenTypes, fixedAlignEditor, flatten, formItemProps, formulaFilter, getAutofillEditor, getBindCmpTypeEditor, getInputAttrEditor, getSearchOptions, hiddenButtonProps, initFieldWidgetRuntime, initMethodMap, isCanCrop, isModified, loadPageInfo, loadPageOccupyInfo, loading, lockPage, methodMap, modal_exports as modalCfg, modalDesignId, modalDesignState, modalInfo, multiFieldEditor, newKeyTag, noMore, nodeContainerProps, nodeEditorProps, nodeProps, notNeedPxStyle, occupyPage, onWidgetInfoInit, openFormulaEditorByDesign, pageDesignHistoryList, pageInfo, pageJson, pageJsonSnapshot, pageNo, pageOccupyInfo, pagePermissions, permissionEditor, placeholderEditor, platform, pluginConfigs, PRESET_COLOR as presetColor, propEditorProps, propsToStyle, regRoot, regexEditor, rgba2hex, schemaToStyle, setupOverride, shadeColor, styleEditorProps, subTableModalId, subTableModalState, submitInHideEditor, togglePanel, transformField2Component, transformPageJson, unlockAvailable, uploadDraggerEditor, useAsyncFieldConfig, useAsyncFileAttrs, useAsyncOperateField, useCacheHistory, useCacheHistoryInner, useDesignCache, useDesignHistory, useDesignModal, useDesignPreview, useDesignSave, useDesignViewController, useDesignViewStore, useDesigner, useDesignerController, useFieldTransfer, useGlobal, useModelField, usePage, usePageOccupy, usePropEditor, useScope, useSelectedWidget, useStyle, useStyleEditor, useToolkit, useUserOccupy, useWidget, useWidgetQuery, useWidgetRegistry, validatorEditor, wfNodesModalId, wfNodesModalState, widgetInfo, widgetProps, widgetWrapperProps, workflowModalId, workflowModalState };
|
package/es/interface/index.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ export type { IDropCollect } from './i-drop-collect/i-drop-collect';
|
|
|
11
11
|
export type { IDropResult, IDropResultData, } from './i-drop-result/i-drop-result';
|
|
12
12
|
export type { IMaterialData } from './i-material-data/i-material-data';
|
|
13
13
|
export type { IMaterialGroup } from './i-material-group/i-material-group';
|
|
14
|
-
export type { IViewStep } from './i-view-step/i-view-step';
|
|
15
14
|
export type { IDesignViewController } from './controller/i-design-view.controller';
|
|
16
15
|
export type * from './i-vue3-dnd-item-options/i-vue3-dnd-item-options';
|
|
17
16
|
export type { NewEvent, ToolkitWidgetGroup } from './page-designer/toolkit';
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
fieldTransfer: {
|
|
3
3
|
defaultModalTitle: string;
|
|
4
|
-
linkModel: string;
|
|
5
|
-
subMainModel: string;
|
|
6
|
-
currentModel: string;
|
|
7
|
-
soModelTitle: string;
|
|
8
4
|
noSelect: string;
|
|
9
5
|
select: string;
|
|
10
6
|
noSearchData: string;
|
|
@@ -13,6 +9,10 @@ declare const _default: {
|
|
|
13
9
|
pleaseSearch: string;
|
|
14
10
|
selectAllData: string;
|
|
15
11
|
invertCurrentPage: string;
|
|
12
|
+
linkModel: string;
|
|
13
|
+
subMainModel: string;
|
|
14
|
+
currentModel: string;
|
|
15
|
+
soModelTitle: string;
|
|
16
16
|
move: string;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
@@ -10,16 +10,16 @@ declare const _default: {
|
|
|
10
10
|
prop: string;
|
|
11
11
|
defaultValue: string;
|
|
12
12
|
codeError: string;
|
|
13
|
-
topBorder: string;
|
|
14
|
-
leftBorder: string;
|
|
15
|
-
bottomBorder: string;
|
|
16
|
-
rightBorder: string;
|
|
17
|
-
whole: string;
|
|
18
13
|
upLeft: string;
|
|
19
14
|
upRight: string;
|
|
20
15
|
downLeft: string;
|
|
21
16
|
downRight: string;
|
|
17
|
+
whole: string;
|
|
22
18
|
radius: string;
|
|
19
|
+
topBorder: string;
|
|
20
|
+
leftBorder: string;
|
|
21
|
+
bottomBorder: string;
|
|
22
|
+
rightBorder: string;
|
|
23
23
|
bold: string;
|
|
24
24
|
italic: string;
|
|
25
25
|
underline: string;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { IDesignEditorNode, IDesignNode } from '@gct-paas/schema';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
/**
|
|
4
|
+
* 节点类型组件输入参数
|
|
5
|
+
*/
|
|
6
|
+
export declare const nodeProps: {
|
|
7
|
+
readonly count: {
|
|
8
|
+
readonly type: NumberConstructor;
|
|
9
|
+
readonly required: true;
|
|
10
|
+
};
|
|
11
|
+
readonly data: {
|
|
12
|
+
readonly type: PropType<IDesignNode>;
|
|
13
|
+
readonly required: true;
|
|
14
|
+
readonly default: () => {};
|
|
15
|
+
};
|
|
16
|
+
readonly parent: {
|
|
17
|
+
readonly type: PropType<IDesignNode>;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* 容器类型组件输入参数
|
|
22
|
+
*/
|
|
23
|
+
export declare const nodeContainerProps: {
|
|
24
|
+
readonly count: {
|
|
25
|
+
readonly type: NumberConstructor;
|
|
26
|
+
readonly required: true;
|
|
27
|
+
};
|
|
28
|
+
readonly data: {
|
|
29
|
+
readonly type: PropType<IDesignNode>;
|
|
30
|
+
readonly required: true;
|
|
31
|
+
};
|
|
32
|
+
readonly children: {
|
|
33
|
+
readonly type: PropType<IDesignNode[]>;
|
|
34
|
+
readonly default: () => never[];
|
|
35
|
+
};
|
|
36
|
+
readonly parent: {
|
|
37
|
+
readonly type: PropType<IDesignNode>;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* 设计编辑器节点输入参数
|
|
42
|
+
*/
|
|
43
|
+
export declare const nodeEditorProps: {
|
|
44
|
+
readonly count: {
|
|
45
|
+
readonly type: NumberConstructor;
|
|
46
|
+
readonly required: true;
|
|
47
|
+
};
|
|
48
|
+
readonly data: {
|
|
49
|
+
readonly type: PropType<IDesignEditorNode>;
|
|
50
|
+
readonly required: true;
|
|
51
|
+
readonly default: () => {};
|
|
52
|
+
};
|
|
53
|
+
readonly field: {
|
|
54
|
+
readonly type: PropType<IObject>;
|
|
55
|
+
readonly required: true;
|
|
56
|
+
};
|
|
57
|
+
readonly value: {
|
|
58
|
+
readonly type: PropType<any>;
|
|
59
|
+
readonly default: "";
|
|
60
|
+
};
|
|
61
|
+
readonly parent: {
|
|
62
|
+
readonly type: PropType<IDesignNode>;
|
|
63
|
+
};
|
|
64
|
+
};
|
package/es/props/index.d.ts
CHANGED
|
@@ -1,64 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { PropType } from 'vue';
|
|
3
|
-
/**
|
|
4
|
-
* 节点类型组件输入参数
|
|
5
|
-
*/
|
|
6
|
-
export declare const nodeProps: {
|
|
7
|
-
readonly count: {
|
|
8
|
-
readonly type: NumberConstructor;
|
|
9
|
-
readonly required: true;
|
|
10
|
-
};
|
|
11
|
-
readonly data: {
|
|
12
|
-
readonly type: PropType<IDesignNode>;
|
|
13
|
-
readonly required: true;
|
|
14
|
-
readonly default: () => {};
|
|
15
|
-
};
|
|
16
|
-
readonly parent: {
|
|
17
|
-
readonly type: PropType<IDesignNode>;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* 容器类型组件输入参数
|
|
22
|
-
*/
|
|
23
|
-
export declare const nodeContainerProps: {
|
|
24
|
-
readonly count: {
|
|
25
|
-
readonly type: NumberConstructor;
|
|
26
|
-
readonly required: true;
|
|
27
|
-
};
|
|
28
|
-
readonly data: {
|
|
29
|
-
readonly type: PropType<IDesignNode>;
|
|
30
|
-
readonly required: true;
|
|
31
|
-
};
|
|
32
|
-
readonly children: {
|
|
33
|
-
readonly type: PropType<IDesignNode[]>;
|
|
34
|
-
readonly default: () => never[];
|
|
35
|
-
};
|
|
36
|
-
readonly parent: {
|
|
37
|
-
readonly type: PropType<IDesignNode>;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* 设计编辑器节点输入参数
|
|
42
|
-
*/
|
|
43
|
-
export declare const nodeEditorProps: {
|
|
44
|
-
count: {
|
|
45
|
-
type: NumberConstructor;
|
|
46
|
-
required: boolean;
|
|
47
|
-
};
|
|
48
|
-
data: {
|
|
49
|
-
type: PropType<IDesignEditorNode>;
|
|
50
|
-
required: boolean;
|
|
51
|
-
default: () => {};
|
|
52
|
-
};
|
|
53
|
-
field: {
|
|
54
|
-
type: ObjectConstructor;
|
|
55
|
-
required: boolean;
|
|
56
|
-
};
|
|
57
|
-
value: {
|
|
58
|
-
type: PropType<any>;
|
|
59
|
-
default: string;
|
|
60
|
-
};
|
|
61
|
-
parent: {
|
|
62
|
-
type: PropType<IDesignNode>;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
1
|
+
export * from './design-plugin-props';
|
package/es/register/index.d.ts
CHANGED
package/es/register/index.mjs
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 属性编辑器注册
|
|
4
|
+
*
|
|
5
|
+
* @export
|
|
6
|
+
* @class PropsEditorRegister
|
|
7
|
+
*/
|
|
8
|
+
export declare class PropsEditorRegister {
|
|
9
|
+
private map;
|
|
10
|
+
/**
|
|
11
|
+
* 注册属性编辑器组件
|
|
12
|
+
*
|
|
13
|
+
* @param {string} tag 属性编辑器标识
|
|
14
|
+
* @param {Component} component 属性编辑器组件
|
|
15
|
+
*/
|
|
16
|
+
register(tag: string, component: Component): void;
|
|
17
|
+
/**
|
|
18
|
+
* 获取属性编辑器组件
|
|
19
|
+
*
|
|
20
|
+
* @param {string} tag 属性编辑器标识
|
|
21
|
+
* @return {*} {(Component | undefined)} 属性编辑器组件
|
|
22
|
+
*/
|
|
23
|
+
get(tag: string): Component | undefined;
|
|
24
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region src/register/props-editor/props-editor.register.ts
|
|
2
|
+
/**
|
|
3
|
+
* 属性编辑器注册
|
|
4
|
+
*
|
|
5
|
+
* @export
|
|
6
|
+
* @class PropsEditorRegister
|
|
7
|
+
*/
|
|
8
|
+
var PropsEditorRegister = class {
|
|
9
|
+
map = /* @__PURE__ */ new Map();
|
|
10
|
+
/**
|
|
11
|
+
* 注册属性编辑器组件
|
|
12
|
+
*
|
|
13
|
+
* @param {string} tag 属性编辑器标识
|
|
14
|
+
* @param {Component} component 属性编辑器组件
|
|
15
|
+
*/
|
|
16
|
+
register(tag, component) {
|
|
17
|
+
this.map.set(tag, component);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 获取属性编辑器组件
|
|
21
|
+
*
|
|
22
|
+
* @param {string} tag 属性编辑器标识
|
|
23
|
+
* @return {*} {(Component | undefined)} 属性编辑器组件
|
|
24
|
+
*/
|
|
25
|
+
get(tag) {
|
|
26
|
+
return this.map.get(tag);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { PropsEditorRegister };
|
package/es/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@gct-paas/core/types';
|
|
2
|
-
import type { DesignerRegister } from '../register';
|
|
2
|
+
import type { DesignerRegister, PropsEditorRegister } from '../register';
|
|
3
3
|
|
|
4
4
|
declare module '@gct-paas/core' {
|
|
5
5
|
interface IGlobalRegister {
|
|
@@ -7,6 +7,7 @@ declare module '@gct-paas/core' {
|
|
|
7
7
|
pad: DesignerRegister;
|
|
8
8
|
mobile: DesignerRegister;
|
|
9
9
|
web: DesignerRegister;
|
|
10
|
+
propsEditor: PropsEditorRegister;
|
|
10
11
|
};
|
|
11
12
|
}
|
|
12
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/design",
|
|
3
|
-
"version": "0.1.6-dev.
|
|
3
|
+
"version": "0.1.6-dev.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台设计界面底包",
|
|
6
6
|
"loader": "dist/loader.esm.min.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@ant-design/icons-vue": "^7.0.1",
|
|
35
35
|
"@babel/core": "^7.29.0",
|
|
36
36
|
"@babel/standalone": "^7.29.2",
|
|
37
|
-
"@gct-paas/api": "^0.1.
|
|
37
|
+
"@gct-paas/api": "^0.1.6-dev.11",
|
|
38
38
|
"@jsplumb/browser-ui": "^6.2.10",
|
|
39
39
|
"@vueuse/core": "^14.1.0",
|
|
40
40
|
"ant-design-vue": "~3.2.20",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"react-dnd-html5-backend": "^16.0.1",
|
|
52
52
|
"vue": "^3.5.30",
|
|
53
53
|
"vue3-dnd": "^2.1.0",
|
|
54
|
-
"@gct-paas/core
|
|
55
|
-
"@gct-paas/schema": "0.1.6-dev.
|
|
56
|
-
"@gct-paas/scss": "0.1.6-dev.
|
|
57
|
-
"@gct-paas/core": "0.1.6-dev.
|
|
54
|
+
"@gct-paas/core": "0.1.6-dev.20",
|
|
55
|
+
"@gct-paas/schema": "0.1.6-dev.20",
|
|
56
|
+
"@gct-paas/scss": "0.1.6-dev.20",
|
|
57
|
+
"@gct-paas/core-web": "0.1.6-dev.20"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/babel__core": "^7.20.5",
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
"@types/estraverse": "^5.1.7"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@gct-paas/api": "^0.1.
|
|
65
|
+
"@gct-paas/api": "^0.1.6-dev.11",
|
|
66
66
|
"vue": ">=3",
|
|
67
|
-
"@gct-paas/core": "0.1.6-dev.
|
|
68
|
-
"@gct-paas/
|
|
69
|
-
"@gct-paas/
|
|
70
|
-
"@gct-paas/
|
|
67
|
+
"@gct-paas/core": "0.1.6-dev.20",
|
|
68
|
+
"@gct-paas/schema": "0.1.6-dev.20",
|
|
69
|
+
"@gct-paas/scss": "0.1.6-dev.20",
|
|
70
|
+
"@gct-paas/core-web": "0.1.6-dev.20"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"dev": "cross-env NODE_ENV=development vite build --watch --config vite.dev.config.ts",
|