@gct-paas/core 0.1.4-dev.7 → 0.1.4-dev.8
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.esm.min.mjs +4456 -18521
- package/dist/index.min.cjs +14 -2
- package/dist/index.system.min.js +14 -2
- package/es/constants/core.mjs +0 -1
- package/es/constants/editor-register/editor-register.mjs +0 -1
- package/es/constants/editor-type/editor-type.d.ts +65 -1
- package/es/constants/editor-type/editor-type.mjs +14 -1
- package/es/constants/form-container-type/form-container-type.mjs +0 -1
- package/es/constants/index.d.ts +4 -0
- package/es/constants/index.mjs +2 -7
- package/es/controller/edit-form/edit-form.controller.mjs +0 -1
- package/es/controller/editor/color-editor.controller.mjs +0 -1
- package/es/controller/editor/length-unit-editor.controller.mjs +0 -1
- package/es/controller/editor-item/editor-item.controller.mjs +0 -1
- package/es/controller/form/form.controller.mjs +5 -4
- package/es/controller/form-collapse/form-collapse.controller.mjs +4 -3
- package/es/controller/form-collapse-pane/form-collapse-pane.controller.mjs +4 -3
- package/es/controller/form-edit-item/form-edit-item.controller.d.ts +1 -0
- package/es/controller/form-edit-item/form-edit-item.controller.mjs +6 -2
- package/es/controller/form-group/form-group.controller.mjs +4 -3
- package/es/controller/form-item/form-item.controller.d.ts +1 -0
- package/es/controller/form-item/form-item.controller.mjs +7 -3
- package/es/controller/form-item-basic/form-item-basic.controller.mjs +3 -2
- package/es/controller/form-item-hidden/form-item-hidden.controller.mjs +0 -1
- package/es/controller/form-tab/form-tab.controller.mjs +4 -3
- package/es/controller/form-tab-pane/form-tab-pane.controller.mjs +4 -3
- package/es/controller/gct-form/gct-form.controller.mjs +5 -4
- package/es/create-app-vue.mjs +4 -3
- package/es/enums/app-designer/index.d.ts +13 -1
- package/es/enums/app-designer/index.mjs +8 -2
- package/es/enums/appEnum.d.ts +17 -66
- package/es/enums/appEnum.mjs +18 -14
- package/es/enums/appStateEnum.mjs +0 -1
- package/es/enums/authActionEnum.mjs +0 -1
- package/es/enums/breakpointEnum.mjs +0 -1
- package/es/enums/cacheEnum.mjs +0 -1
- package/es/enums/designEnum.mjs +0 -1
- package/es/enums/exceptionEnum.mjs +0 -1
- package/es/enums/globalEnum.d.ts +38 -0
- package/es/enums/globalEnum.mjs +25 -0
- package/es/enums/httpEnum.mjs +0 -1
- package/es/enums/index.d.ts +13 -0
- package/es/enums/index.mjs +15 -16
- package/es/enums/menuEnum.mjs +0 -1
- package/es/enums/page-designer/designer.d.ts +17 -3
- package/es/enums/page-designer/designer.mjs +85 -6
- package/es/enums/page-designer/panel.mjs +0 -1
- package/es/enums/page-designer/toolkit.mjs +0 -1
- package/es/enums/page-designer/widget.d.ts +2 -1
- package/es/enums/page-designer/widget.mjs +3 -3
- package/es/enums/pageEnum.mjs +0 -1
- package/es/enums/plugin-enum.mjs +0 -1
- package/es/enums/processEnum.mjs +0 -1
- package/es/enums/roleEnum.mjs +0 -1
- package/es/enums/sizeEnum.mjs +0 -1
- package/es/global/gct/gct.d.ts +2 -15
- package/es/global/gct/gct.mjs +19 -17
- package/es/hooks/index.d.ts +2 -0
- package/es/hooks/use-app-inst/use-app-inst.d.ts +8 -0
- package/es/hooks/use-app-inst/use-app-inst.mjs +8 -0
- package/es/hooks/use-form/use-form.mjs +0 -1
- package/es/hooks/use-gct-form-value/use-gct-form-value.d.ts +1 -1
- package/es/hooks/use-gct-form-value/use-gct-form-value.mjs +0 -4
- package/es/hooks/use-modal/use-modal.mjs +0 -1
- package/es/hooks/use-namespace/use-namespace.mjs +11 -2
- package/es/hooks/use-sub-app-utils/use-sub-app-utils.d.ts +31 -0
- package/es/hooks/use-sub-app-utils/use-sub-app-utils.mjs +30 -0
- package/es/hooks/useCopyToClipboard.mjs +0 -1
- package/es/index.d.ts +5 -1
- package/es/index.mjs +77 -58
- package/es/interface/controller/form-edit-item/form-edit-item.controller.d.ts +5 -0
- package/es/interface/controller/index.d.ts +0 -1
- package/es/interface/form/i-editor/i-editor-basic.d.ts +2 -2
- package/es/interface/form/i-editor/i-model-field-select-editor.d.ts +18 -0
- package/es/interface/form/i-form/i-form-collapse-pane.d.ts +4 -0
- package/es/interface/form/i-form/i-form-item-basic.d.ts +1 -1
- package/es/interface/form/i-form/i-form-tab-pane.d.ts +4 -0
- package/es/interface/form/index.d.ts +1 -0
- package/es/interface/i-app-context/i-app-context.d.ts +34 -0
- package/es/interface/i-field-code-chain/i-field-code-chain.d.ts +17 -0
- package/es/interface/i-global-var/i-global-var.d.ts +15 -0
- package/es/interface/i-mobile-home-menu-item/i-mobile-home-menu-item.d.ts +94 -0
- package/es/interface/i-pinia-action/i-global-actions.d.ts +8 -20
- package/es/interface/i-pinia-getter/i-global-getters.d.ts +1 -1
- package/es/interface/i-pinia-state/i-global-state.d.ts +7 -14
- package/es/interface/index.d.ts +5 -2
- package/es/interface/open-util/i-open-window-options/i-open-window-options.d.ts +59 -0
- package/es/interface/state/index.d.ts +0 -1
- package/es/locale/index.mjs +1 -2
- package/es/modules/env-manager/env-manager.const.mjs +0 -1
- package/es/modules/env-manager/env-manager.interface.mjs +0 -1
- package/es/modules/env-manager/env-manager.mjs +7 -8
- package/es/modules/error-handler/error-handler.const.mjs +1 -30
- package/es/modules/error-handler/error-strategy.mjs +0 -1
- package/es/modules/error-handler/index.mjs +0 -1
- package/es/modules/platform-config/constants/index.d.ts +7 -0
- package/es/modules/platform-config/constants/login.const.d.ts +15 -0
- package/es/modules/platform-config/constants/login.const.mjs +50 -0
- package/es/modules/platform-config/constants/org.const.d.ts +9 -0
- package/es/modules/platform-config/constants/org.const.mjs +54 -0
- package/es/modules/platform-config/constants/theme.const.d.ts +9 -0
- package/es/modules/platform-config/constants/theme.const.mjs +5 -0
- package/es/modules/platform-config/constants/watermark.const.d.ts +16 -0
- package/es/modules/platform-config/constants/watermark.const.mjs +14 -0
- package/es/modules/platform-config/enums/deploy.enum.d.ts +10 -0
- package/es/modules/platform-config/enums/deploy.enum.mjs +7 -0
- package/es/modules/platform-config/enums/index.d.ts +6 -0
- package/es/modules/platform-config/{constants.d.ts → enums/login.enum.d.ts} +3 -7
- package/es/modules/platform-config/enums/login.enum.mjs +16 -0
- package/es/modules/platform-config/enums/platform.enum.d.ts +27 -0
- package/es/modules/platform-config/enums/platform.enum.mjs +26 -0
- package/es/modules/platform-config/index.d.ts +6 -17
- package/es/modules/platform-config/interfaces/global-setting.interface.d.ts +7 -0
- package/es/modules/platform-config/interfaces/index.d.ts +7 -0
- package/es/modules/platform-config/interfaces/login-config.interface.d.ts +17 -0
- package/es/modules/platform-config/interfaces/platform-map.interface.d.ts +8 -0
- package/es/modules/platform-config/interfaces/theme-setting.interface.d.ts +30 -0
- package/es/modules/platform-config/store.d.ts +221 -0
- package/es/modules/platform-config/store.mjs +78 -0
- package/es/modules/platform-config/useBasicSetting.d.ts +6 -2
- package/es/modules/platform-config/useBasicSetting.mjs +39 -0
- package/es/modules/platform-config/useDeploySetting.d.ts +9 -4
- package/es/modules/platform-config/useDeploySetting.mjs +27 -0
- package/es/modules/platform-config/useLoginSetting.d.ts +4 -14
- package/es/modules/platform-config/useLoginSetting.mjs +177 -0
- package/es/modules/platform-config/useOrgSetting.d.ts +5 -1
- package/es/modules/platform-config/useOrgSetting.mjs +66 -0
- package/es/modules/platform-config/useProjectSetting.d.ts +12 -0
- package/es/modules/platform-config/useProjectSetting.mjs +11 -0
- package/es/modules/platform-config/useSecuritySetting.d.ts +5 -1
- package/es/modules/platform-config/useSecuritySetting.mjs +60 -0
- package/es/modules/platform-config/useThemeSetting.d.ts +6 -3
- package/es/modules/platform-config/useThemeSetting.mjs +64 -0
- package/es/modules/platform-config/useWatermarkSetting.d.ts +4 -1
- package/es/modules/platform-config/useWatermarkSetting.mjs +26 -0
- package/es/modules/user-stores/index.d.ts +3 -0
- package/es/modules/user-stores/store/permission.store.d.ts +21 -0
- package/es/modules/user-stores/store/permission.store.mjs +38 -0
- package/es/modules/user-stores/store/tenant.store.d.ts +9 -0
- package/es/modules/user-stores/store/tenant.store.mjs +24 -0
- package/es/modules/user-stores/store/user.store.d.ts +154 -0
- package/es/modules/user-stores/store/user.store.mjs +100 -0
- package/es/modules/user-stores/types/permission.d.ts +1 -0
- package/es/modules/user-stores/types/tenant.d.ts +1 -0
- package/es/modules/user-stores/types/user.d.ts +14 -0
- package/es/register/editor-register/editor-register.d.ts +5 -13
- package/es/register/editor-register/editor-register.mjs +8 -17
- package/es/register/form-item-register/form-item-register.d.ts +4 -15
- package/es/register/form-item-register/form-item-register.mjs +7 -17
- package/es/register/index.d.ts +18 -1
- package/es/register/render-register/render-register.mjs +0 -1
- package/es/router/index.mjs +0 -1
- package/es/state/form/form.state.mjs +0 -1
- package/es/state/form-collapse/form-collapse.state.mjs +0 -1
- package/es/state/form-collapse-pane/form-collapse-pane.state.mjs +0 -1
- package/es/state/form-edit-item/form-edit-item.state.mjs +0 -1
- package/es/state/form-group/form-group.state.mjs +0 -1
- package/es/state/form-item/form-item.state.mjs +0 -1
- package/es/state/form-item-basic/form-item-basic.state.mjs +0 -1
- package/es/state/form-tab/form-tab.state.mjs +0 -1
- package/es/state/form-tab-pane/form-tab-pane.state.mjs +0 -1
- package/es/state/global-pinia-state/global-pinia-state.d.ts +8 -25
- package/es/state/global-pinia-state/global-pinia-state.mjs +30 -16
- package/es/store/global-store.d.ts +1 -0
- package/es/store/global-store.mjs +34 -37
- package/es/store/index.d.ts +2 -3
- package/es/store/index.mjs +0 -1
- package/es/types/index.d.ts +14 -1
- package/es/utils/axios/interceptors.mjs +3 -23
- package/es/utils/deviceFingerprint.d.ts +17 -0
- package/es/utils/deviceFingerprint.mjs +73 -0
- package/es/utils/dictionary/dictionary.mjs +0 -1
- package/es/utils/i18n/index.d.ts +2 -1
- package/es/utils/i18n/index.mjs +3 -4
- package/es/utils/index.d.ts +11 -2
- package/es/utils/linked-list/linked-list.d.ts +72 -0
- package/es/utils/linked-list/linked-list.mjs +119 -0
- package/es/utils/linked-node/linked-node.d.ts +31 -0
- package/es/utils/linked-node/linked-node.mjs +32 -0
- package/es/utils/mitt/mitt.d.ts +1 -0
- package/es/utils/mitt/mitt.mjs +5 -0
- package/es/utils/model-loader/model-loader.d.ts +118 -0
- package/es/utils/model-loader/model-loader.mjs +326 -0
- package/es/utils/namespace/namespace.mjs +0 -1
- package/es/utils/plugin-static-resource/plugin-static-resource.mjs +0 -1
- package/es/utils/props/gct-form-item/gct-form-item.props.d.ts +63 -0
- package/es/utils/props/gct-form-item/gct-form-item.props.mjs +66 -0
- package/es/utils/props/index.d.ts +1 -0
- package/es/utils/style/index.d.ts +16 -0
- package/es/utils/style/index.mjs +141 -0
- package/es/utils/tools/tools.d.ts +13 -10
- package/es/utils/tools/tools.mjs +19 -11
- package/es/utils/treeHelper/treeHelper.d.ts +117 -0
- package/es/utils/treeHelper/treeHelper.mjs +220 -0
- package/es/utils/util.d.ts +39 -0
- package/es/utils/util.mjs +40 -0
- package/es/utils/value-helper/value-helper.d.ts +49 -0
- package/es/utils/value-helper/value-helper.mjs +109 -0
- package/es/utils/width-install/width-install.mjs +0 -2
- package/package.json +12 -16
- package/es/controller/index.mjs +0 -17
- package/es/enums/page-designer/index.mjs +0 -6
- package/es/global/index.mjs +0 -3
- package/es/hooks/index.mjs +0 -7
- package/es/interface/controller/i-designer-controller.d.ts +0 -116
- package/es/interface/hooks/i-designer-hooks.d.ts +0 -26
- package/es/interface/hooks/index.d.ts +0 -1
- package/es/interface/index.mjs +0 -1
- package/es/interface/low-code-types/index.d.ts +0 -4
- package/es/interface/low-code-types/modal-types.d.ts +0 -67
- package/es/interface/low-code-types/model/index.d.ts +0 -5338
- package/es/interface/low-code-types/schema/index.d.ts +0 -12
- package/es/interface/low-code-types/widget-basic-types.d.ts +0 -667
- package/es/interface/state/i-designer-state.d.ts +0 -27
- package/es/modules/env-manager/index.mjs +0 -5
- package/es/modules/platform-config/index.mjs +0 -17
- package/es/modules/platform-config/types.d.ts +0 -67
- package/es/provider/i-designer-provider/i-designer-provider.d.ts +0 -102
- package/es/provider/index.d.ts +0 -1
- package/es/provider/index.mjs +0 -1
- package/es/register/designer-register/designer-register.d.ts +0 -53
- package/es/register/designer-register/designer-register.mjs +0 -68
- package/es/register/index.mjs +0 -6
- package/es/state/index.mjs +0 -12
- package/es/utils/index.mjs +0 -10
- package/es/utils/plugin-pkg-util/plugin-pkg-util.d.ts +0 -96
- package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +0 -260
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/core",
|
|
3
|
-
"version": "0.1.4-dev.
|
|
3
|
+
"version": "0.1.4-dev.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台核心包",
|
|
6
6
|
"main": "dist/index.min.cjs",
|
|
@@ -34,8 +34,9 @@
|
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"author": "gct",
|
|
36
36
|
"scripts": {
|
|
37
|
-
"dev": "
|
|
38
|
-
"build": "
|
|
37
|
+
"dev": "cross-env NODE_ENV=development vite build --watch --config vite.dev.config.ts",
|
|
38
|
+
"es:build": "vite build --config vite.dev.config.ts",
|
|
39
|
+
"build": "npm run lint && vite build --config vite.dev.config.ts && vite build --config vite.config.ts",
|
|
39
40
|
"lint": "eslint src/",
|
|
40
41
|
"test": "vitest",
|
|
41
42
|
"test:run": "vitest run",
|
|
@@ -44,19 +45,18 @@
|
|
|
44
45
|
"publish:dev": "npm run build && npm publish --access public --tag=dev --registry=https://registry.npmjs.org/",
|
|
45
46
|
"publish:alpha": "npm run build && npm publish --access public --tag=alpha --registry=https://registry.npmjs.org/",
|
|
46
47
|
"publish:beta": "npm run build && npm publish --access public --tag=beta --registry=https://registry.npmjs.org/",
|
|
47
|
-
"publish:npm": "npm run build && npm publish --access public --registry=https://registry.npmjs.org/"
|
|
48
|
-
"gen-api": "npm run gen-api:apaas && npm run gen-api:platform",
|
|
49
|
-
"gen-api:apaas": "gct-paas gen-api --url=http://paas.paasdev.gct-paas.com --tag=apaas -t ../cli/hbs-temp -o ./src/service/gct-apaas && prettier './src/service/gct-apaas' --write",
|
|
50
|
-
"gen-api:platform": "gct-paas gen-api --url=http://paas.paasdev.gct-paas.com --tag=platform -t ../cli/hbs-temp -o ./src/service/gct-platform && prettier './src/service/gct-platform' --write"
|
|
48
|
+
"publish:npm": "npm run build && npm publish --access public --registry=https://registry.npmjs.org/"
|
|
51
49
|
},
|
|
52
50
|
"dependencies": {
|
|
53
|
-
"@
|
|
51
|
+
"@fingerprintjs/fingerprintjs": "^5.0.1",
|
|
52
|
+
"@gct-paas/api": "0.1.0-dev.8",
|
|
54
53
|
"@vueuse/core": "^14.1.0",
|
|
55
54
|
"async-validator": "^4.2.5",
|
|
56
55
|
"axios": "^1.13.2",
|
|
57
56
|
"dayjs": "^1.11.19",
|
|
58
57
|
"js-sha256": "^0.11.1",
|
|
59
58
|
"lodash-es": "^4.17.23",
|
|
59
|
+
"mitt": "^3.0.1",
|
|
60
60
|
"path-browserify": "^1.0.1",
|
|
61
61
|
"pinia": "^3.0.4",
|
|
62
62
|
"qs": "^6.14.1",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"systemjs": "^6.15.1",
|
|
65
65
|
"vue": "3.5.27",
|
|
66
66
|
"vue-i18n": "11.2.8",
|
|
67
|
-
"vue-router": "^4.6.4"
|
|
67
|
+
"vue-router": "^4.6.4",
|
|
68
|
+
"wujie": "^1.0.29"
|
|
68
69
|
},
|
|
69
70
|
"devDependencies": {
|
|
70
|
-
"@gct-paas/build": "^0.1.
|
|
71
|
-
"@gct-paas/cli": "^0.1.4",
|
|
71
|
+
"@gct-paas/build": "^0.1.5-dev.6",
|
|
72
72
|
"@types/lodash-es": "^4.17.12",
|
|
73
73
|
"@types/path-browserify": "^1.0.3",
|
|
74
74
|
"@types/qs": "^6.14.0",
|
|
@@ -84,9 +84,5 @@
|
|
|
84
84
|
"vite": "^7.3.1",
|
|
85
85
|
"vitest": "^4.0.18"
|
|
86
86
|
},
|
|
87
|
-
"
|
|
88
|
-
"@gct-paas/api": "*",
|
|
89
|
-
"vue": "^3.x"
|
|
90
|
-
},
|
|
91
|
-
"gitHead": "331b60348593f6afa0ccaa54fcdd52435b7876fa"
|
|
87
|
+
"gitHead": "bf7f4f9672c3906ec834e6d58b999ce78f7cad08"
|
|
92
88
|
}
|
package/es/controller/index.mjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export { EditFormController, useEditFormController } from './edit-form/edit-form.controller.mjs';
|
|
2
|
-
export { EditorController } from './editor-item/editor-item.controller.mjs';
|
|
3
|
-
export { FormController, useFormController } from './form/form.controller.mjs';
|
|
4
|
-
export { GctFormController } from './gct-form/gct-form.controller.mjs';
|
|
5
|
-
export { FormCollapsePaneController } from './form-collapse-pane/form-collapse-pane.controller.mjs';
|
|
6
|
-
export { FormCollapseController } from './form-collapse/form-collapse.controller.mjs';
|
|
7
|
-
export { FormTabController } from './form-tab/form-tab.controller.mjs';
|
|
8
|
-
export { FormTabPaneController } from './form-tab-pane/form-tab-pane.controller.mjs';
|
|
9
|
-
export { FormGroupController } from './form-group/form-group.controller.mjs';
|
|
10
|
-
export { FormEditItemController } from './form-edit-item/form-edit-item.controller.mjs';
|
|
11
|
-
export { FormItemController } from './form-item/form-item.controller.mjs';
|
|
12
|
-
export { FormItemBasicController, useFormItemController } from './form-item-basic/form-item-basic.controller.mjs';
|
|
13
|
-
export { FormHiddenItemController } from './form-item-hidden/form-item-hidden.controller.mjs';
|
|
14
|
-
export { LengthUnitEditorController } from './editor/length-unit-editor.controller.mjs';
|
|
15
|
-
export { ColorEditorController } from './editor/color-editor.controller.mjs';
|
|
16
|
-
|
|
17
|
-
"use strict";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { ASSIGNMENTSTRATEGY_ENUM, BorderStyle, COLUMNS_TYPE, Dependency_ENUM, DisplayType, EventCategory, GLOBAL_TYPE, GLOBAL_VAR_TYPE, INNER_EVENT, PanelEnum, Postion, ProgressTypeEnum, PropGroup, SUB_TABLE_EDIT_MODE, SUB_TABLE_OPE_EVENT_TYPE, SUB_TABLE_OPE_EVENT_TYPE_INLINE, StyleGroup, TagTypeEnum, TextAlign, TextDecoration, VERIFICATIONCONDITIONS_TYPE, tagEnum } from './panel.mjs';
|
|
2
|
-
export { ToolkitEnum } from './toolkit.mjs';
|
|
3
|
-
export { BuiltinType, ButtonColorTheme, ButtonColorType, ButtonGroupType, ButtonSize, ButtonStyle, ButtonType, ButtonTypeGroup, ButtonType_vant, CURRENCY_ENUM, CURRENCY_LANG_ENUM, CategoryTypeEnum, DatasourceTypeEnum, DateRangeEnums, DisplayEnums, KeyMode, ListTreeSearchTypeEnum, Platform, PrintModeEnums, ResetRuleType, RowSelectionTypeEnums, SelectPickerEnums, SignatureTypeEnum, StatisticalMethodEnums, TIMETYPE_ENUM, TIMETYPE_LANG_ENUM, TableEditingMethodEnum, TableSearchTypeEnum, TableTypeEnum, TransactionMode, WidgetInScopeEnum, openWindowEnums, operateSysEnums } from './widget.mjs';
|
|
4
|
-
export { BindCmpStyleEnum, BindCmpStyleTypeEnum, Ch_BindCmpStyleEnum, FormComponents, SCOPE, SearchComponents, bindCmpStyleMap, buttonShowType, controlConfigEnum, fixedAlignENUM, searchListByFieldType, sortTypeEnum, statisticalMethodEnum, tableColumnTypeEnum, tableColumnWidthEnum, tabsTypeENUM, transformBindCmp2CmpType } from './designer.mjs';
|
|
5
|
-
|
|
6
|
-
"use strict";
|
package/es/global/index.mjs
DELETED
package/es/hooks/index.mjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { useForm } from './use-form/use-form.mjs';
|
|
2
|
-
export { useGctFormValue, useGctFormValueByText } from './use-gct-form-value/use-gct-form-value.mjs';
|
|
3
|
-
export { useModal } from './use-modal/use-modal.mjs';
|
|
4
|
-
export { useNamespace } from './use-namespace/use-namespace.mjs';
|
|
5
|
-
export { copyTextToClipboard, isDef, useCopyToClipboard } from './useCopyToClipboard.mjs';
|
|
6
|
-
|
|
7
|
-
"use strict";
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { IDesignerHooks } from '../hooks';
|
|
2
|
-
import { LowCodeWidget } from '../low-code-types';
|
|
3
|
-
import { IDesignerState } from '../state';
|
|
4
|
-
/**
|
|
5
|
-
* 设计界面控制器接口
|
|
6
|
-
*
|
|
7
|
-
* @author zhanghanrui
|
|
8
|
-
* @date 2024-05-09 14:05:12
|
|
9
|
-
* @export
|
|
10
|
-
* @interface IDesignerController
|
|
11
|
-
*/
|
|
12
|
-
export interface IDesignerController {
|
|
13
|
-
/**
|
|
14
|
-
* 设计界面状态
|
|
15
|
-
*
|
|
16
|
-
* @author zhanghanrui
|
|
17
|
-
* @date 2024-05-09 14:05:19
|
|
18
|
-
*/
|
|
19
|
-
readonly state: IDesignerState;
|
|
20
|
-
/**
|
|
21
|
-
* 设计界面钩子
|
|
22
|
-
*
|
|
23
|
-
* @type {IDesignerHooks}
|
|
24
|
-
*/
|
|
25
|
-
readonly hooks: IDesignerHooks;
|
|
26
|
-
/**
|
|
27
|
-
* 鼠标悬浮元素清单
|
|
28
|
-
*
|
|
29
|
-
* @author zhanghanrui
|
|
30
|
-
* @date 2024-05-10 10:05:47
|
|
31
|
-
* @type {HTMLDivElement[]}
|
|
32
|
-
*/
|
|
33
|
-
readonly hoverStack: HTMLDivElement[];
|
|
34
|
-
/**
|
|
35
|
-
* 拖拽设计区容器
|
|
36
|
-
*
|
|
37
|
-
* @author zhanghanrui
|
|
38
|
-
* @date 2024-05-10 13:05:46
|
|
39
|
-
* @type {HTMLDivElement}
|
|
40
|
-
*/
|
|
41
|
-
stageContainer: HTMLDivElement;
|
|
42
|
-
/**
|
|
43
|
-
* 拖拽展开定时器
|
|
44
|
-
*
|
|
45
|
-
* @type {(number | null)}
|
|
46
|
-
*/
|
|
47
|
-
expansionTimer: number | null;
|
|
48
|
-
/**
|
|
49
|
-
* 设置拖拽数据
|
|
50
|
-
*
|
|
51
|
-
* @author zhanghanrui
|
|
52
|
-
* @date 2024-05-09 14:05:31
|
|
53
|
-
* @param {(IData | null)} data
|
|
54
|
-
*/
|
|
55
|
-
setDragData(data: IData | null): void;
|
|
56
|
-
/**
|
|
57
|
-
* 获取当前拖拽数据
|
|
58
|
-
*
|
|
59
|
-
* @author zhanghanrui
|
|
60
|
-
* @date 2024-05-09 14:05:49
|
|
61
|
-
* @return {*} {(IData | null)}
|
|
62
|
-
*/
|
|
63
|
-
getDragData(): IData | null;
|
|
64
|
-
/**
|
|
65
|
-
* 新增鼠标悬浮堆栈
|
|
66
|
-
*
|
|
67
|
-
* @author zhanghanrui
|
|
68
|
-
* @date 2024-05-10 10:05:02
|
|
69
|
-
* @param {HTMLDivElement} el
|
|
70
|
-
*/
|
|
71
|
-
pushStack(el: HTMLDivElement): void;
|
|
72
|
-
/**
|
|
73
|
-
* 删除鼠标悬浮堆栈
|
|
74
|
-
*
|
|
75
|
-
* @author zhanghanrui
|
|
76
|
-
* @date 2024-05-08 11:05:53
|
|
77
|
-
* @param {HTMLDivElement} el
|
|
78
|
-
*/
|
|
79
|
-
popStack(el: HTMLDivElement): void;
|
|
80
|
-
/**
|
|
81
|
-
* 重置悬浮缓存
|
|
82
|
-
*
|
|
83
|
-
* @author zhanghanrui
|
|
84
|
-
* @date 2024-05-15 11:05:51
|
|
85
|
-
*/
|
|
86
|
-
resetStack(): void;
|
|
87
|
-
/**
|
|
88
|
-
* 添加展开容器
|
|
89
|
-
*
|
|
90
|
-
* @param {LowCodeWidget.BasicSchema[]} widgets
|
|
91
|
-
* @returns {*} {void}
|
|
92
|
-
*/
|
|
93
|
-
setExpansion(widgets: LowCodeWidget.BasicSchema[]): void;
|
|
94
|
-
/**
|
|
95
|
-
* 取消展开容器
|
|
96
|
-
*/
|
|
97
|
-
cancelExpansion(): void;
|
|
98
|
-
/**
|
|
99
|
-
* 强制设计界面重绘
|
|
100
|
-
*/
|
|
101
|
-
force(): void;
|
|
102
|
-
/**
|
|
103
|
-
* 重新计算选中高亮
|
|
104
|
-
*/
|
|
105
|
-
changeSelectHighlight(): void;
|
|
106
|
-
/**
|
|
107
|
-
* 重新计算悬浮高亮
|
|
108
|
-
*/
|
|
109
|
-
changeHoverHighlight(): void;
|
|
110
|
-
/**
|
|
111
|
-
* 设置选中
|
|
112
|
-
*
|
|
113
|
-
* @param {string} key
|
|
114
|
-
*/
|
|
115
|
-
setSelect(key: string): void;
|
|
116
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { SyncSeriesHook } from 'qx-util';
|
|
2
|
-
import { LowCodeWidget } from '../low-code-types';
|
|
3
|
-
/**
|
|
4
|
-
* 设计界面钩子接口
|
|
5
|
-
*
|
|
6
|
-
* @export
|
|
7
|
-
* @interface IDesignerHooks
|
|
8
|
-
*/
|
|
9
|
-
export interface IDesignerHooks {
|
|
10
|
-
/**
|
|
11
|
-
* 触发执行设计容器扩容展示
|
|
12
|
-
*/
|
|
13
|
-
expansion: SyncSeriesHook<[], LowCodeWidget.BasicSchema[]>;
|
|
14
|
-
/**
|
|
15
|
-
* 触发选中项重选
|
|
16
|
-
*/
|
|
17
|
-
selectHighlightChange: SyncSeriesHook<[]>;
|
|
18
|
-
/**
|
|
19
|
-
* 触发悬浮项重选
|
|
20
|
-
*/
|
|
21
|
-
hoverHighlightChange: SyncSeriesHook<[]>;
|
|
22
|
-
/**
|
|
23
|
-
* 设置选中项
|
|
24
|
-
*/
|
|
25
|
-
setSelect: SyncSeriesHook<[key: string]>;
|
|
26
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { IDesignerHooks } from './i-designer-hooks';
|
package/es/interface/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { BuiltinType, Platform } from '../../enums';
|
|
2
|
-
import { LowCodeWidget } from './widget-basic-types';
|
|
3
|
-
export declare namespace LowCodeModal {
|
|
4
|
-
interface Modal {
|
|
5
|
-
id: string;
|
|
6
|
-
/**系统用的name */
|
|
7
|
-
alias: string;
|
|
8
|
-
name: string;
|
|
9
|
-
/**默认是WEB 添加的时候会根据当前环境改变 */
|
|
10
|
-
platform: Platform;
|
|
11
|
-
/**用户新建编辑的name */
|
|
12
|
-
modalName: string;
|
|
13
|
-
/**自定义展示组件的名字 */
|
|
14
|
-
compName?: string;
|
|
15
|
-
/**自定义展示组件key的名字 */
|
|
16
|
-
compKey?: string;
|
|
17
|
-
type: BuiltinType.MODAL;
|
|
18
|
-
js: string;
|
|
19
|
-
css: string;
|
|
20
|
-
children: [ModalBody, ModalFooter, ModalBottomButton];
|
|
21
|
-
props: ModalProps;
|
|
22
|
-
events: LowCodeWidget.BasicEvents;
|
|
23
|
-
i18n?: Record<string, string>;
|
|
24
|
-
/** 样式 */
|
|
25
|
-
style: Partial<LowCodeWidget.BasicStyle>;
|
|
26
|
-
/**运行时需要的Js Code */
|
|
27
|
-
runJs?: string;
|
|
28
|
-
los?: Record<string, IData>;
|
|
29
|
-
icon: string;
|
|
30
|
-
/** 是否是字段类型 */
|
|
31
|
-
isField: boolean;
|
|
32
|
-
}
|
|
33
|
-
interface ModalBody {
|
|
34
|
-
id: string;
|
|
35
|
-
type: BuiltinType.MODAL_BODY;
|
|
36
|
-
children: LowCodeWidget.BasicSchema[];
|
|
37
|
-
}
|
|
38
|
-
interface ModalFooter {
|
|
39
|
-
id: string;
|
|
40
|
-
type: BuiltinType.MODAL_FOOTER;
|
|
41
|
-
children: LowCodeWidget.BasicSchema[];
|
|
42
|
-
}
|
|
43
|
-
interface ModalBottomButton {
|
|
44
|
-
id: string;
|
|
45
|
-
type: BuiltinType.BottomButtonContainer;
|
|
46
|
-
children: LowCodeWidget.BasicSchema[];
|
|
47
|
-
}
|
|
48
|
-
interface ModalProps extends LowCodeWidget.CommonProps {
|
|
49
|
-
modalTitle?: string;
|
|
50
|
-
/** web端弹框宽度单位 */
|
|
51
|
-
unitType: 'px' | '%';
|
|
52
|
-
/** web端弹框宽度 */
|
|
53
|
-
modalWidth: number;
|
|
54
|
-
/** mobile端弹框宽度单位 */
|
|
55
|
-
mUnitType: '%';
|
|
56
|
-
/** mobile端弹框宽度 */
|
|
57
|
-
mModalWidth: number;
|
|
58
|
-
/** 是否子表下的模态框 */
|
|
59
|
-
isSubTableModal?: boolean;
|
|
60
|
-
/** 关联子表 id */
|
|
61
|
-
bindSubTableId?: string;
|
|
62
|
-
/** 子表弹框新建标题名称 */
|
|
63
|
-
createModalTitle?: string;
|
|
64
|
-
/** 子表弹框编辑标题名称 */
|
|
65
|
-
editModalTitle?: string;
|
|
66
|
-
}
|
|
67
|
-
}
|