@gct-paas/design 0.1.6-dev.2 → 0.1.6-dev.21

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.
Files changed (44) hide show
  1. package/dist/index.min.css +1 -1
  2. package/dist/loader.esm.min.js +2 -1
  3. package/es/components/index.d.ts +0 -4
  4. package/es/components/index.mjs +0 -4
  5. package/es/components/user-occupy/useUserOccupy.mjs +2 -2
  6. package/es/constant/page-designer.d.ts +9 -36
  7. package/es/constant/page-designer.mjs +2 -32
  8. package/es/create-app-vue.d.ts +1 -1
  9. package/es/create-app-vue.mjs +1 -1
  10. package/es/hooks/design-view/designer/useDesignPreview.mjs +6 -4
  11. package/es/hooks/design-view/designer/useDesignSave.mjs +1 -1
  12. package/es/hooks/design-view/layout/useToolkit.mjs +4 -1
  13. package/es/hooks/index.d.ts +0 -1
  14. package/es/hooks/index.mjs +0 -1
  15. package/es/index.mjs +6 -9
  16. package/es/interface/index.d.ts +0 -1
  17. package/es/locale/sys/component.d.ts +4 -4
  18. package/es/locale/sys/pageDesigner.d.ts +5 -5
  19. package/es/props/design-plugin-props.d.ts +64 -0
  20. package/es/props/{index.mjs → design-plugin-props.mjs} +1 -1
  21. package/es/props/index.d.ts +1 -64
  22. package/es/register/designer-register/designer-register.d.ts +6 -3
  23. package/es/register/designer-register/designer-register.mjs +19 -13
  24. package/es/register/index.d.ts +1 -0
  25. package/es/register/index.mjs +1 -0
  26. package/es/register/props-editor/props-editor.register.d.ts +24 -0
  27. package/es/register/props-editor/props-editor.register.mjs +30 -0
  28. package/es/types/index.d.ts +2 -1
  29. package/package.json +11 -11
  30. package/es/components/design-save-tip/design-save-tip.css +0 -107
  31. package/es/components/design-save-tip/design-save-tip.d.ts +0 -44
  32. package/es/components/design-save-tip/design-save-tip.mjs +0 -81
  33. package/es/components/design-step-check/design-step-check.css +0 -133
  34. package/es/components/design-step-check/design-step-check.d.ts +0 -30
  35. package/es/components/design-step-check/design-step-check.mjs +0 -96
  36. package/es/components/design-view-layout/design-view-layout.css +0 -157
  37. package/es/components/design-view-layout/design-view-layout.d.ts +0 -1
  38. package/es/components/design-view-layout/design-view-layout.mjs +0 -139
  39. package/es/components/modal-name-editor/modal-name-editor.css +0 -117
  40. package/es/components/modal-name-editor/modal-name-editor.d.ts +0 -34
  41. package/es/components/modal-name-editor/modal-name-editor.mjs +0 -124
  42. package/es/hooks/develop/useKeyParser.d.ts +0 -16
  43. package/es/hooks/develop/useKeyParser.mjs +0 -79
  44. package/es/interface/i-view-step/i-view-step.d.ts +0 -32
@@ -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';
@@ -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, ScriptTypeEnum } from "../../constant/page-designer.mjs";
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
- ONLINE_FORM: FormDesignEnum.ONLINE_FORM;
46
- EDHR: FormDesignEnum.EDHR;
47
- LABEL: PrintTypeEnum.LABEL;
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, ModelTypeEnum, PageTypeEnum, ProcessTypeEnum, ScriptTypeEnum };
29
+ export { CategoryEnum, MenuClickEvent, PageTypeEnum };
@@ -5,4 +5,4 @@ import { App } from 'vue';
5
5
  * @export
6
6
  * @param {App} app Vue 应用实例
7
7
  */
8
- export declare function designCreateAppVue(app: App): Promise<void>;
8
+ export declare function designCreateAppVue(app: App): void;
@@ -7,7 +7,7 @@ import editor_default from "./editor/index.mjs";
7
7
  * @export
8
8
  * @param {App} app Vue 应用实例
9
9
  */
10
- async function designCreateAppVue(app) {
10
+ function designCreateAppVue(app) {
11
11
  app.use(components_default);
12
12
  app.use(editor_default);
13
13
  }
@@ -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
- webUrl: "/web-sandbox/",
82
+ env: EnvironmentType.SANDBOX,
83
+ webUrl: "/web-render/",
82
84
  mobileUrl: "/mobile-sandbox/",
83
85
  padUrl: "/pad-sandbox/"
84
86
  });
@@ -155,7 +155,7 @@ function useDesignSave() {
155
155
  logId: (pageDesignHistoryList.value[0] ?? {}).id
156
156
  });
157
157
  savePageJsonSnapshot(_pageJson);
158
- if (showSuccess) _gct.message.success(flag ? "sys.saveSuccess" : "sys.recoverSuccess");
158
+ if (showSuccess) _gct.message.success(flag ? t("sys.saveSuccess") : t("sys.recoverSuccess"));
159
159
  cancelOccupy();
160
160
  noMore.value = false;
161
161
  pageNo.value = 1;
@@ -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) return designer.kit.includes(suiteKey);
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 {
@@ -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';
@@ -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, ModelTypeEnum, PageTypeEnum, ProcessTypeEnum, ScriptTypeEnum } from "./constant/page-designer.mjs";
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/index.mjs";
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, DesignSaveTip, DesignStepCheck, DesignViewController, DesignViewHooks, DesignViewLayout, DesignViewPrefix, DesignerRegister, FieldCascader_default as FieldCascader, FieldOverrideUtil, FieldSchema, InsertNodeMode, MaterialContent, MaterialGroup, MaterialRegister, MenuClickEvent, ModalNameEditor, ModelTypeEnum, multi_field_display_default as MultiFieldDisplay, NodeBaseProvider, NodeRegister, NotMask, PageTypeEnum, PanelContent, ProcessTypeEnum, SCREditorUtils, ScriptTypeEnum, 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, useKeyParser, useModelField, usePage, usePageOccupy, usePropEditor, useScope, useSelectedWidget, useStyle, useStyleEditor, useToolkit, useUserOccupy, useWidget, useWidgetQuery, useWidgetRegistry, validatorEditor, wfNodesModalId, wfNodesModalState, widgetInfo, widgetProps, widgetWrapperProps, workflowModalId, workflowModalState };
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 };
@@ -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
+ };
@@ -1,4 +1,4 @@
1
- //#region src/props/index.ts
1
+ //#region src/props/design-plugin-props.ts
2
2
  /**
3
3
  * 节点类型组件输入参数
4
4
  */
@@ -1,64 +1 @@
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
- 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';
@@ -52,21 +52,24 @@ export declare class DesignerRegister {
52
52
  *
53
53
  * @param {string} tag 适配器标识
54
54
  * @param {() => IDesignerProvider} provider 设计器项
55
+ * @param {string} [prefix]
55
56
  */
56
- register(tag: string, provider: () => IDesignerProvider): void;
57
+ register(tag: string, provider: () => IDesignerProvider, prefix?: string): void;
57
58
  /**
58
59
  * 设计器项适配器注销
59
60
  *
60
61
  * @param {string} tag
62
+ * @param {string} [prefix]
61
63
  */
62
- unregister(tag: string): void;
64
+ unregister(tag: string, prefix?: string): void;
63
65
  /**
64
66
  * 根据标识获取指定适配器
65
67
  *
66
68
  * @param {string} tag
69
+ * @param {string} [prefix]
67
70
  * @returns {*} {(IDesignerProvider | undefined)}
68
71
  */
69
- getProvider(tag: string): IDesignerProvider | undefined;
72
+ getProvider(tag: string, prefix?: string): IDesignerProvider | undefined;
70
73
  /**
71
74
  * 获取当前所有组件 keys
72
75
  *
@@ -57,39 +57,45 @@ var DesignerRegister = class {
57
57
  *
58
58
  * @param {string} tag 适配器标识
59
59
  * @param {() => IDesignerProvider} provider 设计器项
60
+ * @param {string} [prefix]
60
61
  */
61
- register(tag, provider) {
62
- this.map.set(tag, provider);
62
+ register(tag, provider, prefix) {
63
+ const fullTag = prefix ? `${prefix}:${tag}` : tag;
64
+ this.map.set(fullTag, provider);
63
65
  const instance = provider();
64
- this.providers.set(tag, instance);
65
- this.hooks.register.callSync(null, tag, instance);
66
+ this.providers.set(fullTag, instance);
67
+ this.hooks.register.callSync(null, fullTag, instance);
66
68
  this.addComponent("gct-" + instance.schema.type, instance.component);
67
69
  }
68
70
  /**
69
71
  * 设计器项适配器注销
70
72
  *
71
73
  * @param {string} tag
74
+ * @param {string} [prefix]
72
75
  */
73
- unregister(tag) {
74
- this.map.delete(tag);
75
- const instance = this.providers.get(tag);
76
+ unregister(tag, prefix) {
77
+ const fullTag = prefix ? `${prefix}:${tag}` : tag;
78
+ this.map.delete(fullTag);
79
+ const instance = this.providers.get(fullTag);
76
80
  if (instance) {
77
- this.hooks.unregister.callSync(null, tag, instance);
78
- this.providers.delete(tag);
81
+ this.hooks.unregister.callSync(null, fullTag, instance);
82
+ this.providers.delete(fullTag);
79
83
  }
80
84
  }
81
85
  /**
82
86
  * 根据标识获取指定适配器
83
87
  *
84
88
  * @param {string} tag
89
+ * @param {string} [prefix]
85
90
  * @returns {*} {(IDesignerProvider | undefined)}
86
91
  */
87
- getProvider(tag) {
88
- if (!this.providers.has(tag)) {
89
- console.warn(`getProvider with tag ${tag} is not registered.`);
92
+ getProvider(tag, prefix) {
93
+ const fullTag = prefix ? `${prefix}:${tag}` : tag;
94
+ if (!this.providers.has(fullTag)) {
95
+ console.warn(`getProvider with tag ${fullTag} is not registered.`);
90
96
  return;
91
97
  }
92
- return this.providers.get(tag);
98
+ return this.providers.get(fullTag);
93
99
  }
94
100
  /**
95
101
  * 获取当前所有组件 keys
@@ -1,3 +1,4 @@
1
1
  export { DesignerRegister } from './designer-register/designer-register';
2
2
  export { MaterialRegister } from './material/material.register';
3
3
  export { NodeRegister } from './node/node.register';
4
+ export { PropsEditorRegister } from './props-editor/props-editor.register';
@@ -1,3 +1,4 @@
1
1
  import "./designer-register/designer-register.mjs";
2
2
  import "./material/material.register.mjs";
3
3
  import "./node/node.register.mjs";
4
+ import "./props-editor/props-editor.register.mjs";
@@ -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
+ }