@gct-paas/core 0.1.4-dev.0 → 0.1.4-dev.10
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 +8101 -0
- package/dist/index.min.cjs +386 -1
- package/dist/index.system.min.js +386 -1
- 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 +149 -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 +9 -0
- package/es/constants/index.mjs +7 -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 -5
- 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 -5
- package/es/create-app-vue.d.ts +8 -0
- package/es/create-app-vue.mjs +12 -0
- 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 +9 -3
- package/es/enums/designEnum.mjs +34 -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 -20
- 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 +39 -25
- package/es/global/gct/gct.mjs +49 -27
- 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 +27 -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 +7 -9
- package/es/index.mjs +94 -48
- 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 +7 -4
- package/es/interface/i-pinia-getter/i-global-getters.d.ts +1 -5
- package/es/interface/i-pinia-state/i-global-state.d.ts +7 -2
- package/es/interface/index.d.ts +5 -6
- 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.d.ts +19 -0
- package/es/locale/index.mjs +60 -0
- package/es/modules/env-manager/env-manager.const.d.ts +14 -0
- package/es/modules/env-manager/env-manager.const.mjs +9 -0
- package/es/modules/env-manager/env-manager.d.ts +59 -0
- package/es/modules/env-manager/env-manager.interface.d.ts +43 -0
- package/es/modules/env-manager/env-manager.interface.mjs +8 -0
- package/es/modules/env-manager/env-manager.mjs +108 -0
- package/es/modules/env-manager/index.d.ts +3 -0
- package/es/modules/error-handler/error-handler.const.d.ts +48 -0
- package/es/modules/error-handler/error-handler.const.mjs +18 -0
- package/es/modules/error-handler/error-handler.interface.d.ts +51 -0
- package/es/modules/error-handler/error-strategy.d.ts +138 -0
- package/es/modules/error-handler/error-strategy.mjs +175 -0
- package/es/modules/error-handler/index.d.ts +78 -0
- package/es/modules/error-handler/index.mjs +108 -0
- 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/enums/login.enum.d.ts +25 -0
- 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 +8 -0
- 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 +11 -0
- package/es/modules/platform-config/useBasicSetting.mjs +39 -0
- package/es/modules/platform-config/useDeploySetting.d.ts +19 -0
- package/es/modules/platform-config/useDeploySetting.mjs +27 -0
- package/es/modules/platform-config/useLoginSetting.d.ts +15 -0
- package/es/modules/platform-config/useLoginSetting.mjs +177 -0
- package/es/modules/platform-config/useOrgSetting.d.ts +34 -0
- 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 +11 -0
- package/es/modules/platform-config/useSecuritySetting.mjs +60 -0
- package/es/modules/platform-config/useThemeSetting.d.ts +16 -0
- package/es/modules/platform-config/useThemeSetting.mjs +64 -0
- package/es/modules/platform-config/useWatermarkSetting.d.ts +21 -0
- 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 +108 -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.d.ts +13 -0
- package/es/router/index.mjs +31 -0
- package/es/setup-app.d.ts +8 -0
- package/es/setup-app.mjs +31 -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 -13
- package/es/state/global-pinia-state/global-pinia-state.mjs +35 -9
- package/es/store/global-store.d.ts +1 -0
- package/es/store/global-store.mjs +38 -9
- package/es/store/index.d.ts +2 -3
- package/es/store/index.mjs +0 -1
- package/es/types/index.d.ts +51 -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 +20 -4
- package/es/utils/is-sort-filed/is-sort-filed.d.ts +10 -0
- package/es/utils/is-sort-filed/is-sort-filed.mjs +40 -0
- 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 +1 -2
- 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 +23 -21
- package/es/utils/tools/tools.mjs +37 -27
- package/es/utils/treeHelper/treeHelper.d.ts +118 -0
- package/es/utils/treeHelper/treeHelper.mjs +234 -0
- package/es/utils/useUUid.d.ts +41 -0
- package/es/utils/useUUid.mjs +93 -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 +41 -22
- package/es/_virtual/_commonjsHelpers.mjs +0 -44
- package/es/_virtual/index.mjs +0 -7
- 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/edit-form/edit-form.controller.mjs +0 -1
- package/es/interface/controller/editor/i-color-editor.controller.mjs +0 -1
- package/es/interface/controller/editor/i-length-unit-editor.controller.mjs +0 -1
- package/es/interface/controller/editor-item/editor-item.controller.mjs +0 -1
- package/es/interface/controller/form/form.controller.mjs +0 -3
- package/es/interface/controller/form-collapse/form-collapse.controller.mjs +0 -1
- package/es/interface/controller/form-collapse-pane/form-collapse-pane.controller.mjs +0 -1
- package/es/interface/controller/form-edit-item/form-edit-item.controller.mjs +0 -1
- package/es/interface/controller/form-group/form-group.controller.mjs +0 -1
- package/es/interface/controller/form-hidden-item/form-hidden-item.controller.mjs +0 -1
- package/es/interface/controller/form-item/form-item.controller.mjs +0 -1
- package/es/interface/controller/form-item-basic/form-item-basic.controller.mjs +0 -1
- package/es/interface/controller/form-tab/form-tab.controller.mjs +0 -1
- package/es/interface/controller/form-tab-pane/form-tab-pane.controller.mjs +0 -1
- package/es/interface/controller/i-designer-controller.d.ts +0 -116
- package/es/interface/controller/i-designer-controller.mjs +0 -1
- package/es/interface/controller/index.mjs +0 -1
- package/es/interface/events/form/i-form.event.mjs +0 -1
- package/es/interface/events/index.mjs +0 -1
- package/es/interface/form/i-editor/i-check-switch.mjs +0 -3
- package/es/interface/form/i-editor/i-checkbox-editor.mjs +0 -3
- package/es/interface/form/i-editor/i-color-editor.mjs +0 -3
- package/es/interface/form/i-editor/i-editor-basic.mjs +0 -1
- package/es/interface/form/i-editor/i-icon-select-editor.mjs +0 -3
- package/es/interface/form/i-editor/i-info-editor.mjs +0 -3
- package/es/interface/form/i-editor/i-length-unit-editor.mjs +0 -3
- package/es/interface/form/i-editor/i-number-editor.mjs +0 -3
- package/es/interface/form/i-editor/i-picker-editor.mjs +0 -3
- package/es/interface/form/i-editor/i-radio-editor.mjs +0 -3
- package/es/interface/form/i-editor/i-select-editor.mjs +0 -3
- package/es/interface/form/i-editor/i-span-editor.mjs +0 -3
- package/es/interface/form/i-editor/i-switch-editor.mjs +0 -3
- package/es/interface/form/i-editor/i-text-editor.mjs +0 -3
- package/es/interface/form/i-editor/i-textarea-editor.mjs +0 -3
- package/es/interface/form/i-form/i-edit-form.mjs +0 -1
- package/es/interface/form/i-form/i-form-collapse-pane.mjs +0 -1
- package/es/interface/form/i-form/i-form-collapse.mjs +0 -1
- package/es/interface/form/i-form/i-form-container.mjs +0 -1
- package/es/interface/form/i-form/i-form-edit-item.mjs +0 -1
- package/es/interface/form/i-form/i-form-group-container.mjs +0 -1
- package/es/interface/form/i-form/i-form-group.mjs +0 -1
- package/es/interface/form/i-form/i-form-hidden-item.mjs +0 -1
- package/es/interface/form/i-form/i-form-item-basic.mjs +0 -1
- package/es/interface/form/i-form/i-form-item.mjs +0 -1
- package/es/interface/form/i-form/i-form-tab-pane.mjs +0 -1
- package/es/interface/form/i-form/i-form-tab.mjs +0 -1
- package/es/interface/form/i-form/i-form.mjs +0 -1
- package/es/interface/form/index.mjs +0 -1
- package/es/interface/hooks/i-designer-hooks.d.ts +0 -26
- package/es/interface/hooks/i-designer-hooks.mjs +0 -3
- package/es/interface/hooks/index.d.ts +0 -1
- package/es/interface/hooks/index.mjs +0 -1
- package/es/interface/i-dictionary/i-dictionary-item.mjs +0 -1
- package/es/interface/i-dictionary/i-dictionary.mjs +0 -1
- package/es/interface/i-http-response/i-http-response.d.ts +0 -29
- package/es/interface/i-http-response/i-http-response.mjs +0 -1
- package/es/interface/i-import-style-map/i-import-style-map.mjs +0 -1
- package/es/interface/i-message-util/i-message-util.d.ts +0 -78
- package/es/interface/i-message-util/i-message-util.mjs +0 -1
- package/es/interface/i-modal/i-modal.mjs +0 -3
- package/es/interface/i-modal-data/i-modal-data.mjs +0 -1
- package/es/interface/i-pinia-action/i-global-actions.mjs +0 -1
- package/es/interface/i-pinia-getter/i-global-getters.mjs +0 -1
- package/es/interface/i-pinia-state/i-global-state.mjs +0 -1
- package/es/interface/index.mjs +0 -1
- package/es/interface/layout/i-flex-layout/i-flex-container.mjs +0 -1
- package/es/interface/layout/i-flex-layout/i-flex-item.mjs +0 -1
- package/es/interface/layout/i-grid-layout/i-grid-container.mjs +0 -1
- package/es/interface/layout/i-grid-layout/i-grid-item-span.mjs +0 -1
- package/es/interface/layout/i-grid-layout/i-grid-item.mjs +0 -1
- package/es/interface/layout/i-layout-basis/i-layout-container-basis.mjs +0 -1
- package/es/interface/layout/index.mjs +0 -1
- package/es/interface/low-code-types/index.d.ts +0 -4
- package/es/interface/low-code-types/index.mjs +0 -5
- package/es/interface/low-code-types/modal-types.d.ts +0 -67
- package/es/interface/low-code-types/modal-types.mjs +0 -3
- package/es/interface/low-code-types/model/index.d.ts +0 -5338
- package/es/interface/low-code-types/model/index.mjs +0 -1
- package/es/interface/low-code-types/schema/index.d.ts +0 -12
- package/es/interface/low-code-types/schema/index.mjs +0 -1
- package/es/interface/low-code-types/widget-basic-types.d.ts +0 -667
- package/es/interface/low-code-types/widget-basic-types.mjs +0 -3
- package/es/interface/provider/i-editor-provider/i-editor-provider.mjs +0 -1
- package/es/interface/provider/i-form-item-provider/i-form-item-provider.mjs +0 -1
- package/es/interface/provider/i-provider-basic/i-provider-basic.mjs +0 -1
- package/es/interface/provider/index.mjs +0 -1
- package/es/interface/state/form/form.state.mjs +0 -1
- package/es/interface/state/form-collapse/form-collapse.state.mjs +0 -1
- package/es/interface/state/form-collapse-pane/form-collapse-pane.state.mjs +0 -1
- package/es/interface/state/form-edit-item/form-edit-item.state.mjs +0 -1
- package/es/interface/state/form-group/form-group.state.mjs +0 -1
- package/es/interface/state/form-hidden-item/form-hidden-item.state.mjs +0 -1
- package/es/interface/state/form-item/form-item.state.mjs +0 -1
- package/es/interface/state/form-item-basic/form-item-basic.state.mjs +0 -1
- package/es/interface/state/form-tab/form-tab.state.mjs +0 -1
- package/es/interface/state/form-tab-pane/form-tab-pane.state.mjs +0 -1
- package/es/interface/state/i-designer-state.d.ts +0 -27
- package/es/interface/state/i-designer-state.mjs +0 -1
- package/es/interface/state/index.mjs +0 -1
- package/es/interface/style/i-border.mjs +0 -1
- package/es/interface/style/i-font.mjs +0 -1
- package/es/interface/style/i-margin.mjs +0 -1
- package/es/interface/style/i-padding.mjs +0 -1
- package/es/interface/style/i-position.mjs +0 -1
- package/es/interface/style/i-spacing.mjs +0 -1
- package/es/interface/style/index.mjs +0 -1
- package/es/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.mjs +0 -541
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/async-series-hook/async-series-hook.mjs +0 -73
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/index.mjs +0 -2
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/sync-series-hook/sync-series-hook.mjs +0 -100
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs +0 -2
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/array/array.mjs +0 -47
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/index.mjs +0 -5
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/object/object.mjs +0 -24
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event/qx-event.mjs +0 -94
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event-emitter/qx-event-emitter.mjs +0 -146
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/type-util/type-util.mjs +0 -149
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/util/util.mjs +0 -227
- package/es/provider/i-designer-provider/i-designer-provider.d.ts +0 -102
- package/es/provider/i-designer-provider/i-designer-provider.mjs +0 -1
- 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 -69
- 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 -65
- package/es/service/base.service.d.ts +0 -19
- package/es/service/base.service.mjs +0 -41
- package/es/service/index.d.ts +0 -1
- package/es/service/index.mjs +0 -3
- package/es/state/index.mjs +0 -12
- package/es/utils/axios/axios.d.ts +0 -27
- package/es/utils/axios/axios.mjs +0 -84
- 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 -262
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 水印相关常量定义
|
|
3
|
+
*/
|
|
4
|
+
/** 水印初始化数据 */
|
|
5
|
+
export declare const WATERMARK_INIT_DATA: {
|
|
6
|
+
openWatermark: boolean;
|
|
7
|
+
watermarkContent: string;
|
|
8
|
+
fontSize: number;
|
|
9
|
+
color: string;
|
|
10
|
+
verticalAlign: string;
|
|
11
|
+
textAlign: string;
|
|
12
|
+
text: string;
|
|
13
|
+
transparent: number;
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const WATERMARK_INIT_DATA = {
|
|
2
|
+
openWatermark: false,
|
|
3
|
+
watermarkContent: "custom",
|
|
4
|
+
fontSize: 16,
|
|
5
|
+
color: "#000000",
|
|
6
|
+
verticalAlign: "middle",
|
|
7
|
+
textAlign: "center",
|
|
8
|
+
text: "${username}",
|
|
9
|
+
transparent: 15,
|
|
10
|
+
width: 1600,
|
|
11
|
+
height: 1080
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { WATERMARK_INIT_DATA };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 登录相关枚举定义
|
|
3
|
+
*/
|
|
4
|
+
/** 登录方式排序分类 */
|
|
5
|
+
export declare enum LoginSortTypeEnum {
|
|
6
|
+
/** 系统登录 */
|
|
7
|
+
SYSTEM = "SYSTEM",
|
|
8
|
+
/** 第三方登录 */
|
|
9
|
+
THIRD_PARTY = "THIRD_PARTY"
|
|
10
|
+
}
|
|
11
|
+
/** 登录类型 */
|
|
12
|
+
export declare enum LoginTypeEnum {
|
|
13
|
+
/** 账号密码 */
|
|
14
|
+
ACCOUNT = "ACCOUNT",
|
|
15
|
+
/** 域账号 */
|
|
16
|
+
DOMAIN_ACCOUNT = "DOMAIN_ACCOUNT",
|
|
17
|
+
/** 手机号 */
|
|
18
|
+
MOBILE = "MOBILE",
|
|
19
|
+
/** 钉钉 */
|
|
20
|
+
DINGDING = "DINGDING",
|
|
21
|
+
/** 飞书 */
|
|
22
|
+
FEISHU = "FEISHU",
|
|
23
|
+
/** 企业微信 */
|
|
24
|
+
QIYEWEIXIN = "QIYEWEIXIN"
|
|
25
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var LoginSortTypeEnum = /* @__PURE__ */ ((LoginSortTypeEnum2) => {
|
|
2
|
+
LoginSortTypeEnum2["SYSTEM"] = "SYSTEM";
|
|
3
|
+
LoginSortTypeEnum2["THIRD_PARTY"] = "THIRD_PARTY";
|
|
4
|
+
return LoginSortTypeEnum2;
|
|
5
|
+
})(LoginSortTypeEnum || {});
|
|
6
|
+
var LoginTypeEnum = /* @__PURE__ */ ((LoginTypeEnum2) => {
|
|
7
|
+
LoginTypeEnum2["ACCOUNT"] = "ACCOUNT";
|
|
8
|
+
LoginTypeEnum2["DOMAIN_ACCOUNT"] = "DOMAIN_ACCOUNT";
|
|
9
|
+
LoginTypeEnum2["MOBILE"] = "MOBILE";
|
|
10
|
+
LoginTypeEnum2["DINGDING"] = "DINGDING";
|
|
11
|
+
LoginTypeEnum2["FEISHU"] = "FEISHU";
|
|
12
|
+
LoginTypeEnum2["QIYEWEIXIN"] = "QIYEWEIXIN";
|
|
13
|
+
return LoginTypeEnum2;
|
|
14
|
+
})(LoginTypeEnum || {});
|
|
15
|
+
|
|
16
|
+
export { LoginSortTypeEnum, LoginTypeEnum };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 平台设置相关枚举定义
|
|
3
|
+
*/
|
|
4
|
+
/** 平台设置配置类型枚举 */
|
|
5
|
+
export declare enum PlatformSettingEnum {
|
|
6
|
+
BASIC = "BASE_CFG",
|
|
7
|
+
WATERMARK = "MARK_CFG",
|
|
8
|
+
SECURITY = "SECURITY_CFG",
|
|
9
|
+
LOGIN = "LOGIN_CFG",
|
|
10
|
+
THEME = "THEME_CFG",
|
|
11
|
+
ORGANIZATION = "ORG_CFG",
|
|
12
|
+
APK = "APK_CFG",
|
|
13
|
+
DEPLOY = "DEPLOY_CFG",
|
|
14
|
+
GLOBAL = "GLOBAL_CFG"
|
|
15
|
+
}
|
|
16
|
+
/** 密码规则枚举 */
|
|
17
|
+
export declare enum PassRule {
|
|
18
|
+
NUMBER = "NUMBER",
|
|
19
|
+
LOWERCASE = "LOWERCASE",
|
|
20
|
+
UPPERCASE = "UPPERCASE",
|
|
21
|
+
SPECHARS = "SPECHARS"
|
|
22
|
+
}
|
|
23
|
+
/** 踢出用户规则枚举 */
|
|
24
|
+
export declare enum KickRuleEnum {
|
|
25
|
+
SAME_END = "SAME_END",
|
|
26
|
+
DIFFERENT_END = "DIFFERENT_END"
|
|
27
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var PlatformSettingEnum = /* @__PURE__ */ ((PlatformSettingEnum2) => {
|
|
2
|
+
PlatformSettingEnum2["BASIC"] = "BASE_CFG";
|
|
3
|
+
PlatformSettingEnum2["WATERMARK"] = "MARK_CFG";
|
|
4
|
+
PlatformSettingEnum2["SECURITY"] = "SECURITY_CFG";
|
|
5
|
+
PlatformSettingEnum2["LOGIN"] = "LOGIN_CFG";
|
|
6
|
+
PlatformSettingEnum2["THEME"] = "THEME_CFG";
|
|
7
|
+
PlatformSettingEnum2["ORGANIZATION"] = "ORG_CFG";
|
|
8
|
+
PlatformSettingEnum2["APK"] = "APK_CFG";
|
|
9
|
+
PlatformSettingEnum2["DEPLOY"] = "DEPLOY_CFG";
|
|
10
|
+
PlatformSettingEnum2["GLOBAL"] = "GLOBAL_CFG";
|
|
11
|
+
return PlatformSettingEnum2;
|
|
12
|
+
})(PlatformSettingEnum || {});
|
|
13
|
+
var PassRule = /* @__PURE__ */ ((PassRule2) => {
|
|
14
|
+
PassRule2["NUMBER"] = "NUMBER";
|
|
15
|
+
PassRule2["LOWERCASE"] = "LOWERCASE";
|
|
16
|
+
PassRule2["UPPERCASE"] = "UPPERCASE";
|
|
17
|
+
PassRule2["SPECHARS"] = "SPECHARS";
|
|
18
|
+
return PassRule2;
|
|
19
|
+
})(PassRule || {});
|
|
20
|
+
var KickRuleEnum = /* @__PURE__ */ ((KickRuleEnum2) => {
|
|
21
|
+
KickRuleEnum2["SAME_END"] = "SAME_END";
|
|
22
|
+
KickRuleEnum2["DIFFERENT_END"] = "DIFFERENT_END";
|
|
23
|
+
return KickRuleEnum2;
|
|
24
|
+
})(KickRuleEnum || {});
|
|
25
|
+
|
|
26
|
+
export { KickRuleEnum, PassRule, PlatformSettingEnum };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 登录配置接口定义
|
|
3
|
+
*/
|
|
4
|
+
/** 登录模式配置映射接口 */
|
|
5
|
+
export interface ILoginModeConfig {
|
|
6
|
+
address: string;
|
|
7
|
+
authType: string;
|
|
8
|
+
relationFields: string;
|
|
9
|
+
domainSuffix?: string;
|
|
10
|
+
}
|
|
11
|
+
/** 登录方法接口,定义登录选项的展示和标识信息 */
|
|
12
|
+
export interface ILoginMethods {
|
|
13
|
+
label: string;
|
|
14
|
+
icon: string;
|
|
15
|
+
color?: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { RouterTransitionEnum } from '../../../enums';
|
|
2
|
+
/** 主题设置配置接口 */
|
|
3
|
+
export interface IThemeSettingConfig {
|
|
4
|
+
toolbarMode: string;
|
|
5
|
+
mode: string;
|
|
6
|
+
width: number;
|
|
7
|
+
menuSetting: string[];
|
|
8
|
+
contentSetting: string[];
|
|
9
|
+
menuSettingFold: string;
|
|
10
|
+
menuTopLayout: string;
|
|
11
|
+
animationSetting: string[];
|
|
12
|
+
animationType: RouterTransitionEnum;
|
|
13
|
+
}
|
|
14
|
+
/** 主题设置接口,定义应用的主题和界面风格配置 */
|
|
15
|
+
export interface IThemeSetting {
|
|
16
|
+
darkMode: 'light' | 'dark';
|
|
17
|
+
themeColor: string;
|
|
18
|
+
menuMode: 'classic' | 'mix-sider' | 'horizontal-mix-sider';
|
|
19
|
+
menuWidth: number;
|
|
20
|
+
menuCollapsible: boolean;
|
|
21
|
+
menuSearchable?: boolean;
|
|
22
|
+
menuFilter: boolean;
|
|
23
|
+
showLogo: boolean;
|
|
24
|
+
showBreadcrumb: boolean;
|
|
25
|
+
showBreadcrumbIcon: boolean;
|
|
26
|
+
showTabs: boolean;
|
|
27
|
+
pageProgress: boolean;
|
|
28
|
+
pageLoading: boolean;
|
|
29
|
+
colorMode: 'normal' | 'colorWeak' | 'gray';
|
|
30
|
+
}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { SysConfigResponse } from '@gct-paas/api/platform';
|
|
2
|
+
/**
|
|
3
|
+
* 平台配置 Store
|
|
4
|
+
*/
|
|
5
|
+
export declare const usePlatformConfigStore: import('pinia').StoreDefinition<"platform-config", Pick<{
|
|
6
|
+
projectSetting: {};
|
|
7
|
+
setProjectConfig: (config: {}) => void;
|
|
8
|
+
deploySetting: {
|
|
9
|
+
deployMode: import('./enums').DeployModeEnum;
|
|
10
|
+
};
|
|
11
|
+
setDeploySetting: (data: SysConfigResponse) => void;
|
|
12
|
+
isIndependentApp: import('vue').ComputedRef<boolean>;
|
|
13
|
+
watermarkSetting: {
|
|
14
|
+
openWatermark: boolean;
|
|
15
|
+
watermarkContent: string;
|
|
16
|
+
fontSize: number;
|
|
17
|
+
color: string;
|
|
18
|
+
verticalAlign: string;
|
|
19
|
+
textAlign: string;
|
|
20
|
+
text: string;
|
|
21
|
+
transparent: number;
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
};
|
|
25
|
+
postWatermarkSetting: () => Promise<void>;
|
|
26
|
+
setWatermarkSetting: (data: SysConfigResponse) => void;
|
|
27
|
+
themeSetting: import('./interfaces').IThemeSetting;
|
|
28
|
+
setThemeSetting: (data: SysConfigResponse) => void;
|
|
29
|
+
postThemeSetting: () => Promise<void>;
|
|
30
|
+
menuCollapsed: import('vue').Ref<boolean, boolean>;
|
|
31
|
+
toggleMenuCollapsed: () => void;
|
|
32
|
+
menuCollapsedWidth: number;
|
|
33
|
+
menuWidthRange: number[];
|
|
34
|
+
themeColors: string[];
|
|
35
|
+
securitySetting: import('@gct-paas/api/platform').SecurityConfig;
|
|
36
|
+
postSecuritySetting: () => Promise<void>;
|
|
37
|
+
setSecuritySetting: (data: SysConfigResponse) => void;
|
|
38
|
+
orgSetting: import('@gct-paas/api/platform').OrgConfig;
|
|
39
|
+
setOrgSetting: (data: SysConfigResponse) => void;
|
|
40
|
+
postOrgSetting: () => Promise<void>;
|
|
41
|
+
relationFields: import('vue').Ref<{
|
|
42
|
+
label: string;
|
|
43
|
+
value: string;
|
|
44
|
+
type: number;
|
|
45
|
+
}[], {
|
|
46
|
+
label: string;
|
|
47
|
+
value: string;
|
|
48
|
+
type: number;
|
|
49
|
+
}[] | {
|
|
50
|
+
label: string;
|
|
51
|
+
value: string;
|
|
52
|
+
type: number;
|
|
53
|
+
}[]>;
|
|
54
|
+
relationFiledsCopy: import('vue').Ref<{
|
|
55
|
+
label: string;
|
|
56
|
+
value: string;
|
|
57
|
+
}[], {
|
|
58
|
+
label: string;
|
|
59
|
+
value: string;
|
|
60
|
+
}[] | {
|
|
61
|
+
label: string;
|
|
62
|
+
value: string;
|
|
63
|
+
}[]>;
|
|
64
|
+
loginSetting: import('@gct-paas/api/platform').AuthConfig;
|
|
65
|
+
postLoginSetting: () => Promise<void>;
|
|
66
|
+
setLoginSetting: (config: SysConfigResponse | undefined) => void;
|
|
67
|
+
loginModeAuthTypes: import('vue').Ref<string[], string[]>;
|
|
68
|
+
openIDOAuthAuthTypes: import('vue').Ref<string[], string[]>;
|
|
69
|
+
sysLoginSort: import('vue').Ref<IObject[], IObject[]>;
|
|
70
|
+
openIDOAuthAuthSort: import('vue').Ref<IObject[], IObject[]>;
|
|
71
|
+
loginModeConfig: Map<string, IObject>;
|
|
72
|
+
basicSetting: import('@gct-paas/api/platform').PlatformBaseConfig;
|
|
73
|
+
setBasicSetting: (data: SysConfigResponse, transfer?: boolean) => void;
|
|
74
|
+
postBasicSetting: () => Promise<string>;
|
|
75
|
+
init: () => Promise<void>;
|
|
76
|
+
renderInit: () => Promise<void>;
|
|
77
|
+
}, "projectSetting" | "deploySetting" | "watermarkSetting" | "themeSetting" | "menuCollapsed" | "menuCollapsedWidth" | "menuWidthRange" | "themeColors" | "securitySetting" | "orgSetting" | "relationFields" | "relationFiledsCopy" | "loginSetting" | "loginModeAuthTypes" | "openIDOAuthAuthTypes" | "sysLoginSort" | "openIDOAuthAuthSort" | "loginModeConfig" | "basicSetting">, Pick<{
|
|
78
|
+
projectSetting: {};
|
|
79
|
+
setProjectConfig: (config: {}) => void;
|
|
80
|
+
deploySetting: {
|
|
81
|
+
deployMode: import('./enums').DeployModeEnum;
|
|
82
|
+
};
|
|
83
|
+
setDeploySetting: (data: SysConfigResponse) => void;
|
|
84
|
+
isIndependentApp: import('vue').ComputedRef<boolean>;
|
|
85
|
+
watermarkSetting: {
|
|
86
|
+
openWatermark: boolean;
|
|
87
|
+
watermarkContent: string;
|
|
88
|
+
fontSize: number;
|
|
89
|
+
color: string;
|
|
90
|
+
verticalAlign: string;
|
|
91
|
+
textAlign: string;
|
|
92
|
+
text: string;
|
|
93
|
+
transparent: number;
|
|
94
|
+
width: number;
|
|
95
|
+
height: number;
|
|
96
|
+
};
|
|
97
|
+
postWatermarkSetting: () => Promise<void>;
|
|
98
|
+
setWatermarkSetting: (data: SysConfigResponse) => void;
|
|
99
|
+
themeSetting: import('./interfaces').IThemeSetting;
|
|
100
|
+
setThemeSetting: (data: SysConfigResponse) => void;
|
|
101
|
+
postThemeSetting: () => Promise<void>;
|
|
102
|
+
menuCollapsed: import('vue').Ref<boolean, boolean>;
|
|
103
|
+
toggleMenuCollapsed: () => void;
|
|
104
|
+
menuCollapsedWidth: number;
|
|
105
|
+
menuWidthRange: number[];
|
|
106
|
+
themeColors: string[];
|
|
107
|
+
securitySetting: import('@gct-paas/api/platform').SecurityConfig;
|
|
108
|
+
postSecuritySetting: () => Promise<void>;
|
|
109
|
+
setSecuritySetting: (data: SysConfigResponse) => void;
|
|
110
|
+
orgSetting: import('@gct-paas/api/platform').OrgConfig;
|
|
111
|
+
setOrgSetting: (data: SysConfigResponse) => void;
|
|
112
|
+
postOrgSetting: () => Promise<void>;
|
|
113
|
+
relationFields: import('vue').Ref<{
|
|
114
|
+
label: string;
|
|
115
|
+
value: string;
|
|
116
|
+
type: number;
|
|
117
|
+
}[], {
|
|
118
|
+
label: string;
|
|
119
|
+
value: string;
|
|
120
|
+
type: number;
|
|
121
|
+
}[] | {
|
|
122
|
+
label: string;
|
|
123
|
+
value: string;
|
|
124
|
+
type: number;
|
|
125
|
+
}[]>;
|
|
126
|
+
relationFiledsCopy: import('vue').Ref<{
|
|
127
|
+
label: string;
|
|
128
|
+
value: string;
|
|
129
|
+
}[], {
|
|
130
|
+
label: string;
|
|
131
|
+
value: string;
|
|
132
|
+
}[] | {
|
|
133
|
+
label: string;
|
|
134
|
+
value: string;
|
|
135
|
+
}[]>;
|
|
136
|
+
loginSetting: import('@gct-paas/api/platform').AuthConfig;
|
|
137
|
+
postLoginSetting: () => Promise<void>;
|
|
138
|
+
setLoginSetting: (config: SysConfigResponse | undefined) => void;
|
|
139
|
+
loginModeAuthTypes: import('vue').Ref<string[], string[]>;
|
|
140
|
+
openIDOAuthAuthTypes: import('vue').Ref<string[], string[]>;
|
|
141
|
+
sysLoginSort: import('vue').Ref<IObject[], IObject[]>;
|
|
142
|
+
openIDOAuthAuthSort: import('vue').Ref<IObject[], IObject[]>;
|
|
143
|
+
loginModeConfig: Map<string, IObject>;
|
|
144
|
+
basicSetting: import('@gct-paas/api/platform').PlatformBaseConfig;
|
|
145
|
+
setBasicSetting: (data: SysConfigResponse, transfer?: boolean) => void;
|
|
146
|
+
postBasicSetting: () => Promise<string>;
|
|
147
|
+
init: () => Promise<void>;
|
|
148
|
+
renderInit: () => Promise<void>;
|
|
149
|
+
}, "isIndependentApp">, Pick<{
|
|
150
|
+
projectSetting: {};
|
|
151
|
+
setProjectConfig: (config: {}) => void;
|
|
152
|
+
deploySetting: {
|
|
153
|
+
deployMode: import('./enums').DeployModeEnum;
|
|
154
|
+
};
|
|
155
|
+
setDeploySetting: (data: SysConfigResponse) => void;
|
|
156
|
+
isIndependentApp: import('vue').ComputedRef<boolean>;
|
|
157
|
+
watermarkSetting: {
|
|
158
|
+
openWatermark: boolean;
|
|
159
|
+
watermarkContent: string;
|
|
160
|
+
fontSize: number;
|
|
161
|
+
color: string;
|
|
162
|
+
verticalAlign: string;
|
|
163
|
+
textAlign: string;
|
|
164
|
+
text: string;
|
|
165
|
+
transparent: number;
|
|
166
|
+
width: number;
|
|
167
|
+
height: number;
|
|
168
|
+
};
|
|
169
|
+
postWatermarkSetting: () => Promise<void>;
|
|
170
|
+
setWatermarkSetting: (data: SysConfigResponse) => void;
|
|
171
|
+
themeSetting: import('./interfaces').IThemeSetting;
|
|
172
|
+
setThemeSetting: (data: SysConfigResponse) => void;
|
|
173
|
+
postThemeSetting: () => Promise<void>;
|
|
174
|
+
menuCollapsed: import('vue').Ref<boolean, boolean>;
|
|
175
|
+
toggleMenuCollapsed: () => void;
|
|
176
|
+
menuCollapsedWidth: number;
|
|
177
|
+
menuWidthRange: number[];
|
|
178
|
+
themeColors: string[];
|
|
179
|
+
securitySetting: import('@gct-paas/api/platform').SecurityConfig;
|
|
180
|
+
postSecuritySetting: () => Promise<void>;
|
|
181
|
+
setSecuritySetting: (data: SysConfigResponse) => void;
|
|
182
|
+
orgSetting: import('@gct-paas/api/platform').OrgConfig;
|
|
183
|
+
setOrgSetting: (data: SysConfigResponse) => void;
|
|
184
|
+
postOrgSetting: () => Promise<void>;
|
|
185
|
+
relationFields: import('vue').Ref<{
|
|
186
|
+
label: string;
|
|
187
|
+
value: string;
|
|
188
|
+
type: number;
|
|
189
|
+
}[], {
|
|
190
|
+
label: string;
|
|
191
|
+
value: string;
|
|
192
|
+
type: number;
|
|
193
|
+
}[] | {
|
|
194
|
+
label: string;
|
|
195
|
+
value: string;
|
|
196
|
+
type: number;
|
|
197
|
+
}[]>;
|
|
198
|
+
relationFiledsCopy: import('vue').Ref<{
|
|
199
|
+
label: string;
|
|
200
|
+
value: string;
|
|
201
|
+
}[], {
|
|
202
|
+
label: string;
|
|
203
|
+
value: string;
|
|
204
|
+
}[] | {
|
|
205
|
+
label: string;
|
|
206
|
+
value: string;
|
|
207
|
+
}[]>;
|
|
208
|
+
loginSetting: import('@gct-paas/api/platform').AuthConfig;
|
|
209
|
+
postLoginSetting: () => Promise<void>;
|
|
210
|
+
setLoginSetting: (config: SysConfigResponse | undefined) => void;
|
|
211
|
+
loginModeAuthTypes: import('vue').Ref<string[], string[]>;
|
|
212
|
+
openIDOAuthAuthTypes: import('vue').Ref<string[], string[]>;
|
|
213
|
+
sysLoginSort: import('vue').Ref<IObject[], IObject[]>;
|
|
214
|
+
openIDOAuthAuthSort: import('vue').Ref<IObject[], IObject[]>;
|
|
215
|
+
loginModeConfig: Map<string, IObject>;
|
|
216
|
+
basicSetting: import('@gct-paas/api/platform').PlatformBaseConfig;
|
|
217
|
+
setBasicSetting: (data: SysConfigResponse, transfer?: boolean) => void;
|
|
218
|
+
postBasicSetting: () => Promise<string>;
|
|
219
|
+
init: () => Promise<void>;
|
|
220
|
+
renderInit: () => Promise<void>;
|
|
221
|
+
}, "setProjectConfig" | "setDeploySetting" | "postWatermarkSetting" | "setWatermarkSetting" | "setThemeSetting" | "postThemeSetting" | "toggleMenuCollapsed" | "postSecuritySetting" | "setSecuritySetting" | "setOrgSetting" | "postOrgSetting" | "postLoginSetting" | "setLoginSetting" | "setBasicSetting" | "postBasicSetting" | "init" | "renderInit">>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { PlatformSettingEnum } from './enums/platform.enum.mjs';
|
|
2
|
+
import { useBasicSetting } from './useBasicSetting.mjs';
|
|
3
|
+
import { useDeploySetting } from './useDeploySetting.mjs';
|
|
4
|
+
import { useLoginSetting } from './useLoginSetting.mjs';
|
|
5
|
+
import { useOrgSetting } from './useOrgSetting.mjs';
|
|
6
|
+
import { useSecuritySetting } from './useSecuritySetting.mjs';
|
|
7
|
+
import { useThemeSetting } from './useThemeSetting.mjs';
|
|
8
|
+
import { useWatermarkSetting } from './useWatermarkSetting.mjs';
|
|
9
|
+
import { useProjectSetting } from './useProjectSetting.mjs';
|
|
10
|
+
import { defineStore } from 'pinia';
|
|
11
|
+
|
|
12
|
+
const usePlatformConfigStore = defineStore("platform-config", () => {
|
|
13
|
+
const base = useBasicSetting();
|
|
14
|
+
const login = useLoginSetting();
|
|
15
|
+
const org = useOrgSetting();
|
|
16
|
+
const security = useSecuritySetting();
|
|
17
|
+
const theme = useThemeSetting();
|
|
18
|
+
const watermark = useWatermarkSetting();
|
|
19
|
+
const deploy = useDeploySetting();
|
|
20
|
+
const project = useProjectSetting();
|
|
21
|
+
async function init() {
|
|
22
|
+
const data = await _api.platform.plat.getList();
|
|
23
|
+
const map = {};
|
|
24
|
+
if (data && data.length > 0) {
|
|
25
|
+
data.forEach((item) => {
|
|
26
|
+
if (item.value) {
|
|
27
|
+
try {
|
|
28
|
+
map[item.configEnum] = JSON.parse(item.value);
|
|
29
|
+
} catch (err) {
|
|
30
|
+
console.warn(`${item.configEnum}配置解析失败`, err, item);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
if (map[PlatformSettingEnum.BASIC]) {
|
|
36
|
+
base.setBasicSetting(map[PlatformSettingEnum.BASIC]);
|
|
37
|
+
}
|
|
38
|
+
if (map[PlatformSettingEnum.LOGIN]) {
|
|
39
|
+
login.setLoginSetting(map[PlatformSettingEnum.LOGIN]);
|
|
40
|
+
}
|
|
41
|
+
if (map[PlatformSettingEnum.ORGANIZATION]) {
|
|
42
|
+
org.setOrgSetting(map[PlatformSettingEnum.ORGANIZATION]);
|
|
43
|
+
}
|
|
44
|
+
if (map[PlatformSettingEnum.SECURITY]) {
|
|
45
|
+
security.setSecuritySetting(map[PlatformSettingEnum.SECURITY]);
|
|
46
|
+
}
|
|
47
|
+
if (map[PlatformSettingEnum.THEME]) {
|
|
48
|
+
theme.setThemeSetting(map[PlatformSettingEnum.THEME]);
|
|
49
|
+
}
|
|
50
|
+
if (map[PlatformSettingEnum.WATERMARK]) {
|
|
51
|
+
watermark.setWatermarkSetting(map[PlatformSettingEnum.WATERMARK]);
|
|
52
|
+
}
|
|
53
|
+
if (map[PlatformSettingEnum.DEPLOY]) {
|
|
54
|
+
deploy.setDeploySetting(map[PlatformSettingEnum.DEPLOY]);
|
|
55
|
+
}
|
|
56
|
+
console.debug("平台配置初始化完成", map);
|
|
57
|
+
}
|
|
58
|
+
async function renderInit() {
|
|
59
|
+
const res = await _api.apaas.basicConfig.getDetail({
|
|
60
|
+
configEnum: PlatformSettingEnum.THEME
|
|
61
|
+
});
|
|
62
|
+
if (res) theme.setThemeSetting(res);
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
init,
|
|
66
|
+
renderInit,
|
|
67
|
+
...base,
|
|
68
|
+
...login,
|
|
69
|
+
...org,
|
|
70
|
+
...security,
|
|
71
|
+
...theme,
|
|
72
|
+
...watermark,
|
|
73
|
+
...deploy,
|
|
74
|
+
...project
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
export { usePlatformConfigStore };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PlatformBaseConfig, SysConfigResponse } from '@gct-paas/api/platform';
|
|
2
|
+
/**
|
|
3
|
+
* 基础设置 Composable 函数
|
|
4
|
+
* @param isPlatform - 是否为平台模式,默认为 true
|
|
5
|
+
* @returns 返回基础设置相关的响应式数据和方法
|
|
6
|
+
*/
|
|
7
|
+
export declare function useBasicSetting(isPlatform?: boolean): {
|
|
8
|
+
basicSetting: PlatformBaseConfig;
|
|
9
|
+
setBasicSetting: (data: SysConfigResponse, transfer?: boolean) => void;
|
|
10
|
+
postBasicSetting: () => Promise<string>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { reactive } from 'vue';
|
|
2
|
+
import { omit } from 'lodash-es';
|
|
3
|
+
|
|
4
|
+
const basicSetting = reactive({
|
|
5
|
+
copyright: '© 2016-<span class="ownInput">${当前年份}</span> 冠骋信息技术(苏州)有限公司 版权所有',
|
|
6
|
+
description: "",
|
|
7
|
+
icon: "",
|
|
8
|
+
loadingImage: "",
|
|
9
|
+
logo: "",
|
|
10
|
+
name: "冠骋云PaaS平台",
|
|
11
|
+
thumbnail: "",
|
|
12
|
+
version: "暂未支持"
|
|
13
|
+
});
|
|
14
|
+
function useBasicSetting(isPlatform = true) {
|
|
15
|
+
const postBasicSetting = () => {
|
|
16
|
+
if (isPlatform) {
|
|
17
|
+
return _api.platform.plat.postBase(omit({ ...basicSetting }, "version"));
|
|
18
|
+
}
|
|
19
|
+
return _api.apaas.plat.postBase(omit({ ...basicSetting }, "version"));
|
|
20
|
+
};
|
|
21
|
+
function setBasicSetting(data, transfer = true) {
|
|
22
|
+
const { value } = data;
|
|
23
|
+
if (!value) return;
|
|
24
|
+
try {
|
|
25
|
+
Object.assign(basicSetting, transfer ? JSON.parse(value) : value, {
|
|
26
|
+
version: undefined .version
|
|
27
|
+
});
|
|
28
|
+
} catch (err) {
|
|
29
|
+
console.warn(err);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
basicSetting,
|
|
34
|
+
setBasicSetting,
|
|
35
|
+
postBasicSetting
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { useBasicSetting };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SysConfigResponse } from '@gct-paas/api/platform';
|
|
2
|
+
import { DeployModeEnum } from './enums/deploy.enum';
|
|
3
|
+
/**
|
|
4
|
+
* 设置部署配置信息
|
|
5
|
+
* @param data - 系统配置响应数据
|
|
6
|
+
*/
|
|
7
|
+
declare function setDeploySetting(data: SysConfigResponse): void;
|
|
8
|
+
/**
|
|
9
|
+
* 部署设置 Composable 函数
|
|
10
|
+
* @returns 返回部署设置相关的响应式数据和方法
|
|
11
|
+
*/
|
|
12
|
+
export declare function useDeploySetting(): {
|
|
13
|
+
deploySetting: {
|
|
14
|
+
deployMode: DeployModeEnum;
|
|
15
|
+
};
|
|
16
|
+
setDeploySetting: typeof setDeploySetting;
|
|
17
|
+
isIndependentApp: import('vue').ComputedRef<boolean>;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { reactive, computed } from 'vue';
|
|
2
|
+
import { DeployModeEnum } from './enums/deploy.enum.mjs';
|
|
3
|
+
|
|
4
|
+
const deploySetting = reactive({
|
|
5
|
+
deployMode: DeployModeEnum.STANDARD
|
|
6
|
+
});
|
|
7
|
+
const isIndependentApp = computed(() => {
|
|
8
|
+
return deploySetting.deployMode === DeployModeEnum.INDEPENDENT_APP;
|
|
9
|
+
});
|
|
10
|
+
function setDeploySetting(data) {
|
|
11
|
+
const { value } = data;
|
|
12
|
+
if (!value) return;
|
|
13
|
+
try {
|
|
14
|
+
Object.assign(deploySetting, JSON.parse(value));
|
|
15
|
+
} catch (err) {
|
|
16
|
+
console.warn(err);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function useDeploySetting() {
|
|
20
|
+
return {
|
|
21
|
+
deploySetting,
|
|
22
|
+
setDeploySetting,
|
|
23
|
+
isIndependentApp
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { useDeploySetting };
|