@gct-paas/core 0.1.4-dev.7 → 0.1.4-dev.9
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 +6520 -18715
- package/dist/index.min.cjs +386 -2
- package/dist/index.system.min.js +386 -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/expression-type/BuiltOperators.d.ts +20 -0
- package/es/constants/expression-type/BuiltOperators.mjs +148 -0
- package/es/constants/expression-type/FunctionKeys.d.ts +1 -0
- package/es/constants/expression-type/FunctionKeys.mjs +81 -0
- package/es/constants/expression-type/editor.d.ts +8 -0
- package/es/constants/expression-type/editor.mjs +4 -0
- package/es/constants/expression-type/function.d.ts +7 -0
- package/es/constants/expression-type/function.mjs +875 -0
- package/es/constants/expression-type/index.d.ts +42 -0
- package/es/constants/expression-type/index.mjs +120 -0
- package/es/constants/expression-type/modeCfg.d.ts +30 -0
- package/es/constants/expression-type/modeCfg.mjs +268 -0
- package/es/constants/expression-type/variable.d.ts +12 -0
- package/es/constants/expression-type/variable.mjs +42 -0
- package/es/constants/form-container-type/form-container-type.mjs +0 -1
- package/es/constants/index.d.ts +5 -0
- package/es/constants/index.mjs +6 -6
- 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 +3 -9
- 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 +22 -66
- package/es/enums/appEnum.mjs +24 -15
- 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.d.ts +2 -2
- package/es/enums/designEnum.mjs +31 -32
- package/es/enums/developer-center/index.d.ts +1 -0
- package/es/enums/developer-center/integration.d.ts +4 -0
- package/es/enums/developer-center/integration.mjs +7 -0
- package/es/enums/exceptionEnum.mjs +0 -1
- package/es/enums/expressionEnum.d.ts +130 -0
- package/es/enums/expressionEnum.mjs +75 -0
- 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 +19 -0
- package/es/enums/index.mjs +13 -16
- package/es/enums/menuEnum.mjs +0 -1
- package/es/enums/page-designer/designer.d.ts +23 -3
- package/es/enums/page-designer/designer.mjs +90 -6
- package/es/enums/page-designer/panel.d.ts +78 -7
- package/es/enums/page-designer/panel.mjs +22 -4
- 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.d.ts +54 -0
- package/es/enums/processEnum.mjs +36 -2
- package/es/enums/roleEnum.mjs +0 -1
- package/es/enums/sizeEnum.mjs +0 -1
- package/es/global/gct/gct.d.ts +11 -28
- package/es/global/gct/gct.mjs +29 -32
- package/es/hooks/index.d.ts +2 -1
- 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-overlay-scrollbars/use-overlay-scrollbars.d.ts +11 -0
- 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 +6 -8
- package/es/index.mjs +98 -64
- 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 -5
- package/es/interface/open-util/i-message-util/i-message-util.d.ts +54 -0
- package/es/interface/{i-modal → open-util/i-modal}/i-modal.d.ts +9 -10
- package/es/interface/{i-modal-data → open-util/i-modal-data}/i-modal-data.d.ts +6 -0
- package/es/interface/open-util/i-modal-options/i-modal-options.d.ts +12 -0
- package/es/interface/open-util/i-open-window-options/i-open-window-options.d.ts +59 -0
- package/es/interface/open-util/i-overlay-container/i-overlay-container.d.ts +36 -0
- package/es/interface/open-util/i-overlay-controller/i-overlay-controller.d.ts +36 -0
- package/es/interface/open-util/index.d.ts +7 -0
- package/es/interface/state/index.d.ts +0 -1
- package/es/locale/index.mjs +2 -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 +107 -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 +12 -2
- package/es/router/index.mjs +0 -1
- package/es/setup-app.d.ts +8 -0
- package/es/setup-app.mjs +30 -0
- 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 +40 -37
- package/es/store/index.d.ts +2 -3
- package/es/store/index.mjs +0 -1
- package/es/types/index.d.ts +18 -1
- package/es/utils/axios/interceptors.mjs +2 -23
- package/es/utils/cache-adapter/cache-adapter.d.ts +2 -0
- package/es/utils/cache-adapter/cache-adapter.mjs +59 -0
- 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 +17 -3
- 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/lowcode/utils.d.ts +1 -0
- package/es/utils/lowcode/utils.mjs +20 -0
- package/es/utils/lowcode/validate.d.ts +13 -0
- package/es/utils/lowcode/validate.mjs +29 -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.d.ts +8 -0
- package/es/utils/namespace/namespace.mjs +4 -2
- package/es/utils/openUtil/index.d.ts +2 -0
- package/es/utils/openUtil/modal/modal.d.ts +61 -0
- package/es/utils/openUtil/modal/modal.mjs +80 -0
- package/es/utils/openUtil/overlay-container/overlay-container.d.ts +100 -0
- package/es/utils/openUtil/overlay-container/overlay-container.mjs +139 -0
- 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 +23 -11
- package/es/utils/treeHelper/treeHelper.d.ts +124 -0
- package/es/utils/treeHelper/treeHelper.mjs +234 -0
- package/es/utils/util.d.ts +39 -0
- package/es/utils/util.mjs +40 -0
- package/es/utils/uuid/uuid.d.ts +3 -0
- package/es/utils/uuid/uuid.mjs +48 -0
- package/es/utils/value-helper/value-helper.d.ts +49 -0
- package/es/utils/value-helper/value-helper.mjs +111 -0
- package/es/utils/width-install/width-install.mjs +4 -2
- package/package.json +13 -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/hooks/use-namespace/use-namespace.d.ts +0 -9
- package/es/hooks/use-namespace/use-namespace.mjs +0 -9
- 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/i-message-util/i-message-util.d.ts +0 -78
- 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/register/render-register/render-register.d.ts +0 -59
- package/es/register/render-register/render-register.mjs +0 -64
- 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
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { EnvironmentType } from './env-manager.interface.mjs';
|
|
2
|
-
export { APP_PREVIEW_PATH_REG, APP_PROD_PATH_REG, APP_RUN_PATH_REG, DEV_SINGLE_PATH_REG, HOST_REG, IP_REG, TEST_SINGLE_PATH_REG } from './env-manager.const.mjs';
|
|
3
|
-
export { EnvironmentManager } from './env-manager.mjs';
|
|
4
|
-
|
|
5
|
-
"use strict";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
class PlatformConfig {
|
|
3
|
-
/**
|
|
4
|
-
* 异步初始化
|
|
5
|
-
*
|
|
6
|
-
* @author chitanda
|
|
7
|
-
* @date 2025-08-21 09:08:40
|
|
8
|
-
* @returns {*} {Promise<void>}
|
|
9
|
-
*/
|
|
10
|
-
async init() {
|
|
11
|
-
const res = await _api.platform.plat.getList();
|
|
12
|
-
console.debug("plat", res.data);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
const platformConfig = new PlatformConfig();
|
|
16
|
-
|
|
17
|
-
export { PlatformConfig, platformConfig };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { RouterTransitionEnum } from '../../enums';
|
|
2
|
-
export declare enum PlatformSettingEnum {
|
|
3
|
-
BASIC = "BASE_CFG",
|
|
4
|
-
WATERMARK = "MARK_CFG",
|
|
5
|
-
SECURITY = "SECURITY_CFG",
|
|
6
|
-
LOGIN = "LOGIN_CFG",
|
|
7
|
-
THEME = "THEME_CFG",
|
|
8
|
-
ORGANIZATION = "ORG_CFG",
|
|
9
|
-
APK = "APK_CFG",
|
|
10
|
-
DEPLOY = "DEPLOY_CFG",
|
|
11
|
-
GLOBAL = "GLOBAL_CFG"
|
|
12
|
-
}
|
|
13
|
-
export declare enum PassRule {
|
|
14
|
-
NUMBER = "NUMBER",
|
|
15
|
-
LOWERCASE = "LOWERCASE",
|
|
16
|
-
UPPERCASE = "UPPERCASE",
|
|
17
|
-
SPECHARS = "SPECHARS"
|
|
18
|
-
}
|
|
19
|
-
export declare enum KickRuleEnum {
|
|
20
|
-
SAME_END = "SAME_END",
|
|
21
|
-
DIFFERENT_END = "DIFFERENT_END"
|
|
22
|
-
}
|
|
23
|
-
export interface PlatformMapType<T = IObject> {
|
|
24
|
-
component: T;
|
|
25
|
-
name: string;
|
|
26
|
-
}
|
|
27
|
-
export interface LoginModeConfigMap {
|
|
28
|
-
address: string;
|
|
29
|
-
authType: string;
|
|
30
|
-
relationFields: string;
|
|
31
|
-
domainSuffix?: string;
|
|
32
|
-
}
|
|
33
|
-
export interface LoginMethods {
|
|
34
|
-
label: string;
|
|
35
|
-
icon: string;
|
|
36
|
-
color?: string;
|
|
37
|
-
value: string;
|
|
38
|
-
}
|
|
39
|
-
export interface ThemeSettingConfig {
|
|
40
|
-
toolbarMode: string;
|
|
41
|
-
mode: string;
|
|
42
|
-
width: number;
|
|
43
|
-
menuSetting: string[];
|
|
44
|
-
contentSetting: string[];
|
|
45
|
-
menuSettingFold: string;
|
|
46
|
-
menuTopLayout: string;
|
|
47
|
-
animationSetting: string[];
|
|
48
|
-
animationType: RouterTransitionEnum;
|
|
49
|
-
}
|
|
50
|
-
export interface ThemeSetting {
|
|
51
|
-
darkMode: 'light' | 'dark';
|
|
52
|
-
themeColor: string;
|
|
53
|
-
menuMode: 'classic' | 'mix-sider' | 'horizontal-mix-sider';
|
|
54
|
-
menuWidth: number;
|
|
55
|
-
menuCollapsible: boolean;
|
|
56
|
-
menuFilter: boolean;
|
|
57
|
-
showLogo: boolean;
|
|
58
|
-
showBreadcrumb: boolean;
|
|
59
|
-
showBreadcrumbIcon: boolean;
|
|
60
|
-
showTabs: boolean;
|
|
61
|
-
pageProgress: boolean;
|
|
62
|
-
pageLoading: boolean;
|
|
63
|
-
colorMode: 'normal' | 'colorWeak' | 'gray';
|
|
64
|
-
}
|
|
65
|
-
export interface GlobalSetting {
|
|
66
|
-
emptyDisplay: string;
|
|
67
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { Component } from 'vue';
|
|
2
|
-
import { LowCodeWidget } from '../../interface';
|
|
3
|
-
/**
|
|
4
|
-
* 设计界面项
|
|
5
|
-
*
|
|
6
|
-
* @author zhanghanrui
|
|
7
|
-
* @date 2024-05-24 13:05:47
|
|
8
|
-
* @export
|
|
9
|
-
* @interface IDesignerProvider
|
|
10
|
-
*/
|
|
11
|
-
export interface IDesignerProvider {
|
|
12
|
-
/**
|
|
13
|
-
* 套件类别,用于识别可使用的系统。取 getApp 中的 suiteKey,例如 MedPro 使用 kit=['MEDPRO']
|
|
14
|
-
*
|
|
15
|
-
* @author zhanghanrui
|
|
16
|
-
* @date 2024-05-28 09:05:32
|
|
17
|
-
* @type {string[]}
|
|
18
|
-
*/
|
|
19
|
-
kit?: string[];
|
|
20
|
-
/**
|
|
21
|
-
* 项拖拽钩子
|
|
22
|
-
*
|
|
23
|
-
* @type {LowCodeWidget.hooks}
|
|
24
|
-
*/
|
|
25
|
-
hooks?: LowCodeWidget.hooks;
|
|
26
|
-
/**
|
|
27
|
-
* 白名单,只允许在白名单中的组件拖入
|
|
28
|
-
*
|
|
29
|
-
* @type {(string | RegExp)[]}
|
|
30
|
-
*/
|
|
31
|
-
whiteList?: (string | RegExp)[];
|
|
32
|
-
/**
|
|
33
|
-
* 黑名单,不允许拖入黑名单中的组件
|
|
34
|
-
*
|
|
35
|
-
* @type {(string | RegExp)[]}
|
|
36
|
-
*/
|
|
37
|
-
blackList?: (string | RegExp)[];
|
|
38
|
-
/**
|
|
39
|
-
* render 绘制组件,目前只支持异步组件
|
|
40
|
-
*
|
|
41
|
-
* @author zhanghanrui
|
|
42
|
-
* @date 2024-05-24 17:05:17
|
|
43
|
-
* @type {Component}
|
|
44
|
-
*/
|
|
45
|
-
component: Component;
|
|
46
|
-
/**
|
|
47
|
-
* 基础组件描述
|
|
48
|
-
*
|
|
49
|
-
* @author zhanghanrui
|
|
50
|
-
* @date 2024-05-24 16:05:12
|
|
51
|
-
* @type {LowCodeWidget.BasicSchema}
|
|
52
|
-
*/
|
|
53
|
-
schema: LowCodeWidget.BasicSchema;
|
|
54
|
-
/**
|
|
55
|
-
* 组件支持配置事件描述
|
|
56
|
-
*
|
|
57
|
-
* @author zhanghanrui
|
|
58
|
-
* @date 2024-05-24 16:05:17
|
|
59
|
-
* @type {LowCodeWidget.EventsType[]}
|
|
60
|
-
*/
|
|
61
|
-
events?: LowCodeWidget.EventsType[];
|
|
62
|
-
/**
|
|
63
|
-
* 组件右侧属性表单模型描述
|
|
64
|
-
*
|
|
65
|
-
* @author zhanghanrui
|
|
66
|
-
* @date 2024-05-24 16:05:43
|
|
67
|
-
* @type {LowCodeWidget.PropEditor[]}
|
|
68
|
-
*/
|
|
69
|
-
propEditors: LowCodeWidget.PropEditor[];
|
|
70
|
-
/**
|
|
71
|
-
* 保存时钩子函数
|
|
72
|
-
*
|
|
73
|
-
* @author zhanghanrui
|
|
74
|
-
* @date 2024-05-24 18:05:15
|
|
75
|
-
* @type {LowCodeWidget.RunCallback}
|
|
76
|
-
*/
|
|
77
|
-
callback?: LowCodeWidget.RunCallback;
|
|
78
|
-
/**
|
|
79
|
-
* 拖入时钩子函数
|
|
80
|
-
*
|
|
81
|
-
* @author zhanghanrui
|
|
82
|
-
* @date 2024-05-24 18:05:13
|
|
83
|
-
* @type {LowCodeWidget.beforeCreate}
|
|
84
|
-
*/
|
|
85
|
-
beforeCreate?: LowCodeWidget.beforeCreate;
|
|
86
|
-
/**
|
|
87
|
-
* 样式编辑器配置
|
|
88
|
-
*
|
|
89
|
-
* @author zhanghanrui
|
|
90
|
-
* @date 2024-05-24 16:05:14
|
|
91
|
-
* @type {LowCodeWidget.StyleEditor[]}
|
|
92
|
-
*/
|
|
93
|
-
styleEditors?: LowCodeWidget.StyleEditor[];
|
|
94
|
-
/**
|
|
95
|
-
* 设计页面配置信息
|
|
96
|
-
*
|
|
97
|
-
* @author zhanghanrui
|
|
98
|
-
* @date 2024-05-24 16:05:30
|
|
99
|
-
* @type {LowCodeWidget.DesignerConfig}
|
|
100
|
-
*/
|
|
101
|
-
designerConfig?: LowCodeWidget.DesignerConfig;
|
|
102
|
-
}
|
package/es/provider/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { IDesignerProvider } from './i-designer-provider/i-designer-provider';
|
package/es/provider/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { SyncSeriesHook } from 'qx-util';
|
|
2
|
-
import { IDesignerProvider } from '../../provider';
|
|
3
|
-
/**
|
|
4
|
-
* 设计界面组件注册
|
|
5
|
-
*
|
|
6
|
-
* @export
|
|
7
|
-
* @class DesignerRegister
|
|
8
|
-
*/
|
|
9
|
-
export declare class DesignerRegister {
|
|
10
|
-
/**
|
|
11
|
-
* 已注册组件
|
|
12
|
-
*
|
|
13
|
-
* @protected
|
|
14
|
-
*/
|
|
15
|
-
protected map: Map<string, () => IDesignerProvider>;
|
|
16
|
-
private providers;
|
|
17
|
-
readonly hooks: {
|
|
18
|
-
register: SyncSeriesHook<[string, IDesignerProvider], null>;
|
|
19
|
-
unregister: SyncSeriesHook<[string, IDesignerProvider], null>;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* 设计器项适配器注册
|
|
23
|
-
*
|
|
24
|
-
* @param {string} tag 适配器标识
|
|
25
|
-
* @param {() => IDesignerProvider} provider 设计器项
|
|
26
|
-
*/
|
|
27
|
-
register(tag: string, provider: () => IDesignerProvider): void;
|
|
28
|
-
/**
|
|
29
|
-
* 设计器项适配器注销
|
|
30
|
-
*
|
|
31
|
-
* @param {string} tag
|
|
32
|
-
*/
|
|
33
|
-
unregister(tag: string): void;
|
|
34
|
-
/**
|
|
35
|
-
* 根据标识获取指定适配器
|
|
36
|
-
*
|
|
37
|
-
* @param {string} tag
|
|
38
|
-
* @returns {*} {(IDesignerProvider | undefined)}
|
|
39
|
-
*/
|
|
40
|
-
getProvider(tag: string): IDesignerProvider | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* 获取当前所有组件 keys
|
|
43
|
-
*
|
|
44
|
-
* @return {*} {string[]}
|
|
45
|
-
*/
|
|
46
|
-
getKeys(): string[];
|
|
47
|
-
/**
|
|
48
|
-
* 获取现有所有适配器
|
|
49
|
-
*
|
|
50
|
-
* @return {*} {IDesignerProvider[]}
|
|
51
|
-
*/
|
|
52
|
-
getProviders(): IDesignerProvider[];
|
|
53
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { SyncSeriesHook } from 'qx-util';
|
|
2
|
-
|
|
3
|
-
"use strict";
|
|
4
|
-
class DesignerRegister {
|
|
5
|
-
/**
|
|
6
|
-
* 已注册组件
|
|
7
|
-
*
|
|
8
|
-
* @protected
|
|
9
|
-
*/
|
|
10
|
-
map = /* @__PURE__ */ new Map();
|
|
11
|
-
providers = /* @__PURE__ */ new Map();
|
|
12
|
-
hooks = {
|
|
13
|
-
register: new SyncSeriesHook(),
|
|
14
|
-
unregister: new SyncSeriesHook()
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* 设计器项适配器注册
|
|
18
|
-
*
|
|
19
|
-
* @param {string} tag 适配器标识
|
|
20
|
-
* @param {() => IDesignerProvider} provider 设计器项
|
|
21
|
-
*/
|
|
22
|
-
register(tag, provider) {
|
|
23
|
-
this.map.set(tag, provider);
|
|
24
|
-
const instance = provider();
|
|
25
|
-
this.providers.set(tag, instance);
|
|
26
|
-
this.hooks.register.callSync(null, tag, instance);
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* 设计器项适配器注销
|
|
30
|
-
*
|
|
31
|
-
* @param {string} tag
|
|
32
|
-
*/
|
|
33
|
-
unregister(tag) {
|
|
34
|
-
this.map.delete(tag);
|
|
35
|
-
const instance = this.providers.get(tag);
|
|
36
|
-
if (instance) {
|
|
37
|
-
this.hooks.unregister.callSync(null, tag, instance);
|
|
38
|
-
this.providers.delete(tag);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* 根据标识获取指定适配器
|
|
43
|
-
*
|
|
44
|
-
* @param {string} tag
|
|
45
|
-
* @returns {*} {(IDesignerProvider | undefined)}
|
|
46
|
-
*/
|
|
47
|
-
getProvider(tag) {
|
|
48
|
-
return this.providers.get(tag);
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* 获取当前所有组件 keys
|
|
52
|
-
*
|
|
53
|
-
* @return {*} {string[]}
|
|
54
|
-
*/
|
|
55
|
-
getKeys() {
|
|
56
|
-
return Array.from(this.map.keys());
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* 获取现有所有适配器
|
|
60
|
-
*
|
|
61
|
-
* @return {*} {IDesignerProvider[]}
|
|
62
|
-
*/
|
|
63
|
-
getProviders() {
|
|
64
|
-
return Array.from(this.providers.values());
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export { DesignerRegister };
|
package/es/register/index.mjs
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { DesignerRegister } from './designer-register/designer-register.mjs';
|
|
2
|
-
export { EditorRegister } from './editor-register/editor-register.mjs';
|
|
3
|
-
export { FormItemRegister } from './form-item-register/form-item-register.mjs';
|
|
4
|
-
export { RenderRegister } from './render-register/render-register.mjs';
|
|
5
|
-
|
|
6
|
-
"use strict";
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { SyncSeriesHook } from 'qx-util';
|
|
2
|
-
import { Component } from 'vue';
|
|
3
|
-
/**
|
|
4
|
-
* 绘制组件注册
|
|
5
|
-
*
|
|
6
|
-
* @author zhanghanrui
|
|
7
|
-
* @date 2024-05-25 08:05:52
|
|
8
|
-
* @export
|
|
9
|
-
* @class RenderRegister
|
|
10
|
-
*/
|
|
11
|
-
export declare class RenderRegister {
|
|
12
|
-
/**
|
|
13
|
-
* 组件清单
|
|
14
|
-
*
|
|
15
|
-
* @author zhanghanrui
|
|
16
|
-
* @date 2024-05-25 08:05:03
|
|
17
|
-
* @protected
|
|
18
|
-
* @type {Map<string, Component>}
|
|
19
|
-
*/
|
|
20
|
-
protected map: Map<string, Component>;
|
|
21
|
-
readonly hooks: {
|
|
22
|
-
register: SyncSeriesHook<[string, Component], null>;
|
|
23
|
-
unregister: SyncSeriesHook<string, null>;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* 注册界面绘制组件
|
|
27
|
-
*
|
|
28
|
-
* @author zhanghanrui
|
|
29
|
-
* @date 2024-05-25 08:05:05
|
|
30
|
-
* @param {string} tag
|
|
31
|
-
* @param {Component} com
|
|
32
|
-
*/
|
|
33
|
-
register(tag: string, com: Component): void;
|
|
34
|
-
/**
|
|
35
|
-
* 取消组件注册
|
|
36
|
-
*
|
|
37
|
-
* @author zhanghanrui
|
|
38
|
-
* @date 2024-05-25 08:05:34
|
|
39
|
-
* @param {string} tag
|
|
40
|
-
*/
|
|
41
|
-
unregister(tag: string): void;
|
|
42
|
-
/**
|
|
43
|
-
* 获取注册的组件
|
|
44
|
-
*
|
|
45
|
-
* @author zhanghanrui
|
|
46
|
-
* @date 2024-05-25 08:05:59
|
|
47
|
-
* @param {string} tag
|
|
48
|
-
* @return {*} {(Component | undefined)}
|
|
49
|
-
*/
|
|
50
|
-
get(tag: string): Component | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* 组件标识清单
|
|
53
|
-
*
|
|
54
|
-
* @author zhanghanrui
|
|
55
|
-
* @date 2024-05-25 08:05:19
|
|
56
|
-
* @return {*} {string[]}
|
|
57
|
-
*/
|
|
58
|
-
keys(): string[];
|
|
59
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { SyncSeriesHook } from 'qx-util';
|
|
2
|
-
|
|
3
|
-
"use strict";
|
|
4
|
-
class RenderRegister {
|
|
5
|
-
/**
|
|
6
|
-
* 组件清单
|
|
7
|
-
*
|
|
8
|
-
* @author zhanghanrui
|
|
9
|
-
* @date 2024-05-25 08:05:03
|
|
10
|
-
* @protected
|
|
11
|
-
* @type {Map<string, Component>}
|
|
12
|
-
*/
|
|
13
|
-
map = /* @__PURE__ */ new Map();
|
|
14
|
-
hooks = {
|
|
15
|
-
register: new SyncSeriesHook(),
|
|
16
|
-
unregister: new SyncSeriesHook()
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* 注册界面绘制组件
|
|
20
|
-
*
|
|
21
|
-
* @author zhanghanrui
|
|
22
|
-
* @date 2024-05-25 08:05:05
|
|
23
|
-
* @param {string} tag
|
|
24
|
-
* @param {Component} com
|
|
25
|
-
*/
|
|
26
|
-
register(tag, com) {
|
|
27
|
-
this.map.set(tag, com);
|
|
28
|
-
this.hooks.register.callSync(null, tag, com);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* 取消组件注册
|
|
32
|
-
*
|
|
33
|
-
* @author zhanghanrui
|
|
34
|
-
* @date 2024-05-25 08:05:34
|
|
35
|
-
* @param {string} tag
|
|
36
|
-
*/
|
|
37
|
-
unregister(tag) {
|
|
38
|
-
this.map.delete(tag);
|
|
39
|
-
this.hooks.unregister.callSync(null, tag);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* 获取注册的组件
|
|
43
|
-
*
|
|
44
|
-
* @author zhanghanrui
|
|
45
|
-
* @date 2024-05-25 08:05:59
|
|
46
|
-
* @param {string} tag
|
|
47
|
-
* @return {*} {(Component | undefined)}
|
|
48
|
-
*/
|
|
49
|
-
get(tag) {
|
|
50
|
-
return this.map.get(tag);
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* 组件标识清单
|
|
54
|
-
*
|
|
55
|
-
* @author zhanghanrui
|
|
56
|
-
* @date 2024-05-25 08:05:19
|
|
57
|
-
* @return {*} {string[]}
|
|
58
|
-
*/
|
|
59
|
-
keys() {
|
|
60
|
-
return Array.from(this.map.keys());
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export { RenderRegister };
|
package/es/state/index.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export { GlobalPiniaState } from './global-pinia-state/global-pinia-state.mjs';
|
|
2
|
-
export { FormState } from './form/form.state.mjs';
|
|
3
|
-
export { FormCollapsePaneState } from './form-collapse-pane/form-collapse-pane.state.mjs';
|
|
4
|
-
export { FormCollapseState } from './form-collapse/form-collapse.state.mjs';
|
|
5
|
-
export { FormTabState } from './form-tab/form-tab.state.mjs';
|
|
6
|
-
export { FormTabPaneState } from './form-tab-pane/form-tab-pane.state.mjs';
|
|
7
|
-
export { FormEditItemState } from './form-edit-item/form-edit-item.state.mjs';
|
|
8
|
-
export { FormGroupState } from './form-group/form-group.state.mjs';
|
|
9
|
-
export { FormItemState } from './form-item/form-item.state.mjs';
|
|
10
|
-
export { FormItemBasicState } from './form-item-basic/form-item-basic.state.mjs';
|
|
11
|
-
|
|
12
|
-
"use strict";
|
package/es/utils/index.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { DictionaryUtil } from './dictionary/dictionary.mjs';
|
|
2
|
-
export { t } from './i18n/index.mjs';
|
|
3
|
-
export { Namespace } from './namespace/namespace.mjs';
|
|
4
|
-
export { PluginPgkUtil } from './plugin-pkg-util/plugin-pkg-util.mjs';
|
|
5
|
-
export { PluginStaticResource } from './plugin-static-resource/plugin-static-resource.mjs';
|
|
6
|
-
export { deepMerge, getPathQuery, getTenant, getTimezone, getToken, isMobile, setTenant, setToken } from './tools/tools.mjs';
|
|
7
|
-
export { widthEditorInstall } from './width-install/width-install.mjs';
|
|
8
|
-
export { interceptors } from './axios/interceptors.mjs';
|
|
9
|
-
|
|
10
|
-
"use strict";
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { App } from 'vue';
|
|
2
|
-
import { Platform } from '../../enums';
|
|
3
|
-
export type IModuleMap = Record<string, System.Module>;
|
|
4
|
-
export type LoadPluginResult = [IObject, IModuleMap];
|
|
5
|
-
/**
|
|
6
|
-
* 插件包处理工具类
|
|
7
|
-
*
|
|
8
|
-
* @export
|
|
9
|
-
* @class PluginPgkUtil
|
|
10
|
-
*/
|
|
11
|
-
export declare class PluginPgkUtil {
|
|
12
|
-
/**
|
|
13
|
-
* 插件配置缓存
|
|
14
|
-
*
|
|
15
|
-
* @private
|
|
16
|
-
* @type {Map<string, IObject[]>}
|
|
17
|
-
*/
|
|
18
|
-
private static cache;
|
|
19
|
-
/**
|
|
20
|
-
* 模块缓存
|
|
21
|
-
*
|
|
22
|
-
* @private
|
|
23
|
-
* @static
|
|
24
|
-
*/
|
|
25
|
-
private static cacheModules;
|
|
26
|
-
/**
|
|
27
|
-
* 已经加载的插件与模块的映射
|
|
28
|
-
*
|
|
29
|
-
* @static
|
|
30
|
-
*/
|
|
31
|
-
static readonly module: Map<string, System.Module>;
|
|
32
|
-
/**
|
|
33
|
-
* 加载插件包配置
|
|
34
|
-
*
|
|
35
|
-
* @static
|
|
36
|
-
* @param {PluginModeEnum} mode 插件模式
|
|
37
|
-
* @param {Platform} platform
|
|
38
|
-
* @param {string[]} [kit]
|
|
39
|
-
* @returns {*} {Promise<IStyleIMportMap[]>}
|
|
40
|
-
*/
|
|
41
|
-
private static loadPluginConfig;
|
|
42
|
-
/**
|
|
43
|
-
* 批量加载平台界面 system js 插件包
|
|
44
|
-
*
|
|
45
|
-
* @static
|
|
46
|
-
* @param {IStyleIMportMap[]} plugins
|
|
47
|
-
* @returns {*} {Promise<System.Module[]>}
|
|
48
|
-
*/
|
|
49
|
-
private static loadPlugins;
|
|
50
|
-
/**
|
|
51
|
-
* 加载插件包
|
|
52
|
-
*
|
|
53
|
-
* @private
|
|
54
|
-
* @static
|
|
55
|
-
* @param {PluginModeEnum} mode
|
|
56
|
-
* @param {Platform} platform
|
|
57
|
-
* @returns {*}
|
|
58
|
-
*/
|
|
59
|
-
private static loadPlugin;
|
|
60
|
-
/**
|
|
61
|
-
* 加载设计态插件包
|
|
62
|
-
*
|
|
63
|
-
* @static
|
|
64
|
-
* @param {App} app
|
|
65
|
-
* @param {Platform} platform
|
|
66
|
-
* @returns {*} {Promise<LoadPluginResult>}
|
|
67
|
-
*/
|
|
68
|
-
static loadDesignPlugin(_app: App, platform: Platform, kit?: string[]): Promise<LoadPluginResult>;
|
|
69
|
-
/**
|
|
70
|
-
* 加载设计态中,已经被从配置中移除的插件
|
|
71
|
-
*
|
|
72
|
-
* @static
|
|
73
|
-
* @param {Platform} platform
|
|
74
|
-
* @param {IObject[]} configs
|
|
75
|
-
* @returns {*} {Promise<void>}
|
|
76
|
-
*/
|
|
77
|
-
static loadDesignDeletedPlugins(platform: Platform, configs?: IObject[]): Promise<void>;
|
|
78
|
-
/**
|
|
79
|
-
* 加载设计态移动端插件包
|
|
80
|
-
*
|
|
81
|
-
* @static
|
|
82
|
-
* @param {App} app
|
|
83
|
-
* @param {IObject[]} configs 界面用到的插件集合
|
|
84
|
-
* @returns {*} {Promise<void>}
|
|
85
|
-
*/
|
|
86
|
-
static loadMobilePlugin(configs?: IObject[]): Promise<void>;
|
|
87
|
-
/**
|
|
88
|
-
* 加载设计态网页端插件包
|
|
89
|
-
*
|
|
90
|
-
* @static
|
|
91
|
-
* @param {App} app
|
|
92
|
-
* @param {IObject[]} configs 界面用到的插件集合
|
|
93
|
-
* @returns {*} {Promise<void>}
|
|
94
|
-
*/
|
|
95
|
-
static loadWebPlugin(configs?: IObject[]): Promise<void>;
|
|
96
|
-
}
|