@gct-paas/core 0.1.4-dev.6 → 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 +6103 -0
- package/dist/index.min.cjs +13 -14
- package/dist/index.system.min.js +13 -14
- 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 +5 -5
- 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 -20
- 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 +3 -14
- package/es/global/gct/gct.mjs +20 -16
- 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.d.ts +3 -3
- package/es/hooks/useCopyToClipboard.mjs +0 -1
- package/es/index.d.ts +5 -1
- package/es/index.mjs +61 -42
- 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 +4 -2
- 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/{types.mjs → enums/platform.enum.mjs} +0 -1
- 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 +4 -15
- package/es/modules/platform-config/useDeploySetting.d.ts +9 -4
- package/es/modules/platform-config/useDeploySetting.mjs +4 -9
- package/es/modules/platform-config/useLoginSetting.d.ts +8 -10
- package/es/modules/platform-config/useLoginSetting.mjs +24 -30
- package/es/modules/platform-config/useOrgSetting.d.ts +19 -1
- package/es/modules/platform-config/useOrgSetting.mjs +9 -64
- 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 +0 -11
- package/es/modules/platform-config/useThemeSetting.d.ts +7 -4
- package/es/modules/platform-config/useThemeSetting.mjs +5 -14
- package/es/modules/platform-config/useWatermarkSetting.d.ts +4 -1
- package/es/modules/platform-config/useWatermarkSetting.mjs +2 -24
- 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 -32
- package/es/store/index.d.ts +2 -3
- package/es/store/index.mjs +0 -1
- package/es/types/index.d.ts +14 -3
- 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 +34 -36
- 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/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-import-style-map/i-import-style-map.mjs +0 -1
- 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/modules/api-service/api-manage.d.ts +0 -26
- package/es/modules/api-service/api-manage.mjs +0 -33
- package/es/modules/api-service/api-service.d.ts +0 -96
- package/es/modules/api-service/api-service.interface.d.ts +0 -159
- package/es/modules/api-service/api-service.interface.mjs +0 -4
- package/es/modules/api-service/api-service.mjs +0 -173
- package/es/modules/api-service/http.enum.d.ts +0 -76
- package/es/modules/api-service/http.enum.mjs +0 -63
- package/es/modules/api-service/http.util.d.ts +0 -113
- package/es/modules/api-service/http.util.mjs +0 -160
- package/es/modules/api-service/index.d.ts +0 -8
- package/es/modules/api-service/index.mjs +0 -13
- package/es/modules/env-manager/index.mjs +0 -5
- package/es/modules/error-handler/error-handler.interface.mjs +0 -1
- package/es/modules/platform-config/constants.mjs +0 -63
- 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/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 -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
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var ResultEnum = /* @__PURE__ */ ((ResultEnum2) => {
|
|
3
|
-
ResultEnum2[ResultEnum2["SUCCESS"] = 200] = "SUCCESS";
|
|
4
|
-
ResultEnum2[ResultEnum2["ERROR"] = -1] = "ERROR";
|
|
5
|
-
ResultEnum2[ResultEnum2["TIMEOUT"] = 401] = "TIMEOUT";
|
|
6
|
-
ResultEnum2["TYPE"] = "success";
|
|
7
|
-
return ResultEnum2;
|
|
8
|
-
})(ResultEnum || {});
|
|
9
|
-
var RequestEnum = /* @__PURE__ */ ((RequestEnum2) => {
|
|
10
|
-
RequestEnum2["GET"] = "GET";
|
|
11
|
-
RequestEnum2["POST"] = "POST";
|
|
12
|
-
RequestEnum2["PUT"] = "PUT";
|
|
13
|
-
RequestEnum2["DELETE"] = "DELETE";
|
|
14
|
-
return RequestEnum2;
|
|
15
|
-
})(RequestEnum || {});
|
|
16
|
-
var ContentTypeEnum = /* @__PURE__ */ ((ContentTypeEnum2) => {
|
|
17
|
-
ContentTypeEnum2["JSON"] = "application/json;charset=UTF-8";
|
|
18
|
-
ContentTypeEnum2["FORM_URLENCODED"] = "application/x-www-form-urlencoded;charset=UTF-8";
|
|
19
|
-
ContentTypeEnum2["FORM_DATA"] = "multipart/form-data;charset=UTF-8";
|
|
20
|
-
return ContentTypeEnum2;
|
|
21
|
-
})(ContentTypeEnum || {});
|
|
22
|
-
var BizServiceEnum = /* @__PURE__ */ ((BizServiceEnum2) => {
|
|
23
|
-
BizServiceEnum2["submit"] = "post";
|
|
24
|
-
BizServiceEnum2["listByIds"] = "get";
|
|
25
|
-
BizServiceEnum2["getone"] = "post";
|
|
26
|
-
BizServiceEnum2["listAll"] = "post";
|
|
27
|
-
BizServiceEnum2["listByPage"] = "post";
|
|
28
|
-
BizServiceEnum2["listTree"] = "post";
|
|
29
|
-
BizServiceEnum2["save"] = "post";
|
|
30
|
-
BizServiceEnum2["saveOrUpdate"] = "post";
|
|
31
|
-
BizServiceEnum2["saveBatch"] = "post";
|
|
32
|
-
BizServiceEnum2["importData"] = "post";
|
|
33
|
-
BizServiceEnum2["exportData"] = "post";
|
|
34
|
-
BizServiceEnum2["remove"] = "post";
|
|
35
|
-
BizServiceEnum2["removeById"] = "delete";
|
|
36
|
-
BizServiceEnum2["removeByIds"] = "delete";
|
|
37
|
-
BizServiceEnum2["update"] = "put";
|
|
38
|
-
BizServiceEnum2["updateById"] = "put";
|
|
39
|
-
BizServiceEnum2["updateByIds"] = "put";
|
|
40
|
-
BizServiceEnum2["rdoSave"] = "post";
|
|
41
|
-
BizServiceEnum2["rdoListAll"] = "post";
|
|
42
|
-
BizServiceEnum2["rdoListByPage"] = "post";
|
|
43
|
-
BizServiceEnum2["rdoListVersionById"] = "get";
|
|
44
|
-
BizServiceEnum2["rdoSaveVersion"] = "post";
|
|
45
|
-
BizServiceEnum2["rdoSaveBatch"] = "post";
|
|
46
|
-
BizServiceEnum2["rdoUpdateVersionById"] = "put";
|
|
47
|
-
BizServiceEnum2["rdoRemoveVersionById"] = "delete";
|
|
48
|
-
BizServiceEnum2["rdoRemoveById"] = "delete";
|
|
49
|
-
BizServiceEnum2["rdoGetVersionById"] = "get";
|
|
50
|
-
BizServiceEnum2["getOne"] = "post";
|
|
51
|
-
BizServiceEnum2["rdoGetVersionByRefId"] = "post";
|
|
52
|
-
BizServiceEnum2["getById"] = "get";
|
|
53
|
-
BizServiceEnum2["rdoListAllVersion"] = "post";
|
|
54
|
-
BizServiceEnum2["rdoRefListByPage"] = "post";
|
|
55
|
-
BizServiceEnum2["export"] = "post";
|
|
56
|
-
BizServiceEnum2["import"] = "post";
|
|
57
|
-
BizServiceEnum2["rdoExport"] = "post";
|
|
58
|
-
BizServiceEnum2["rdoImport"] = "post";
|
|
59
|
-
BizServiceEnum2["biz_search"] = "post";
|
|
60
|
-
return BizServiceEnum2;
|
|
61
|
-
})(BizServiceEnum || {});
|
|
62
|
-
|
|
63
|
-
export { BizServiceEnum, ContentTypeEnum, RequestEnum, ResultEnum };
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { IHttpResponse } from './api-service.interface';
|
|
3
|
-
/**
|
|
4
|
-
* 全局请求工具类
|
|
5
|
-
*
|
|
6
|
-
* @export
|
|
7
|
-
* @class HttpUtil
|
|
8
|
-
*/
|
|
9
|
-
export declare class HttpUtil {
|
|
10
|
-
/**
|
|
11
|
-
* 挂载中间件
|
|
12
|
-
*
|
|
13
|
-
* @static
|
|
14
|
-
* @param {(_axios: AxiosInstance) => void} fn 中间件函数
|
|
15
|
-
*/
|
|
16
|
-
static use(fn: (_axios: AxiosInstance) => void): void;
|
|
17
|
-
/**
|
|
18
|
-
* GET 请求方法
|
|
19
|
-
*
|
|
20
|
-
* @static
|
|
21
|
-
* @template T
|
|
22
|
-
* @param {string} url 请求地址
|
|
23
|
-
* @param {IObject} [data={}] 请求数据
|
|
24
|
-
* @param {IParams} [query={}] 查询参数
|
|
25
|
-
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
26
|
-
* @returns {Promise<IHttpResponse<T>>} 请求结果
|
|
27
|
-
*/
|
|
28
|
-
static get<T = unknown>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<IHttpResponse<T>>;
|
|
29
|
-
/**
|
|
30
|
-
* POST 请求方法
|
|
31
|
-
*
|
|
32
|
-
* @static
|
|
33
|
-
* @template T
|
|
34
|
-
* @param {string} url 请求地址
|
|
35
|
-
* @param {IObject} [data={}] 请求数据
|
|
36
|
-
* @param {IParams} [query={}] 查询参数
|
|
37
|
-
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
38
|
-
* @returns {Promise<IHttpResponse<T>>} 请求结果
|
|
39
|
-
*/
|
|
40
|
-
static post<T = unknown>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<IHttpResponse<T>>;
|
|
41
|
-
/**
|
|
42
|
-
* PUT 请求方法
|
|
43
|
-
*
|
|
44
|
-
* @static
|
|
45
|
-
* @template T
|
|
46
|
-
* @param {string} url 请求地址
|
|
47
|
-
* @param {IObject} [data={}] 请求数据
|
|
48
|
-
* @param {IParams} [query={}] 查询参数
|
|
49
|
-
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
50
|
-
* @returns {Promise<IHttpResponse<T>>} 请求结果
|
|
51
|
-
*/
|
|
52
|
-
static put<T = unknown>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<IHttpResponse<T>>;
|
|
53
|
-
/**
|
|
54
|
-
* DELETE 请求方法
|
|
55
|
-
*
|
|
56
|
-
* @static
|
|
57
|
-
* @template T
|
|
58
|
-
* @param {string} url 请求地址
|
|
59
|
-
* @param {IObject} [data={}] 请求数据
|
|
60
|
-
* @param {IParams} [query={}] 查询参数
|
|
61
|
-
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
62
|
-
* @returns {Promise<IHttpResponse<T>>} 请求结果
|
|
63
|
-
*/
|
|
64
|
-
static delete<T = unknown>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<IHttpResponse<T>>;
|
|
65
|
-
/**
|
|
66
|
-
* OPTIONS 请求方法
|
|
67
|
-
*
|
|
68
|
-
* @static
|
|
69
|
-
* @template T
|
|
70
|
-
* @param {string} url 请求地址
|
|
71
|
-
* @param {IObject} [data={}] 请求数据
|
|
72
|
-
* @param {IParams} [query={}] 查询参数
|
|
73
|
-
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
74
|
-
* @returns {Promise<IHttpResponse<T>>} 请求结果
|
|
75
|
-
*/
|
|
76
|
-
static options<T = unknown>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<IHttpResponse<T>>;
|
|
77
|
-
/**
|
|
78
|
-
* PATCH 请求方法
|
|
79
|
-
*
|
|
80
|
-
* @static
|
|
81
|
-
* @template T
|
|
82
|
-
* @param {string} url 请求地址
|
|
83
|
-
* @param {IObject} [data={}] 请求数据
|
|
84
|
-
* @param {IParams} [query={}] 查询参数
|
|
85
|
-
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
86
|
-
* @returns {Promise<IHttpResponse<T>>} 请求结果
|
|
87
|
-
*/
|
|
88
|
-
static patch<T = unknown>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<IHttpResponse<T>>;
|
|
89
|
-
/**
|
|
90
|
-
* HEAD 请求方法
|
|
91
|
-
*
|
|
92
|
-
* @static
|
|
93
|
-
* @template T
|
|
94
|
-
* @param {string} url 请求地址
|
|
95
|
-
* @param {IObject} [data={}] 请求数据
|
|
96
|
-
* @param {IParams} [query={}] 查询参数
|
|
97
|
-
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
98
|
-
* @returns {Promise<IHttpResponse<T>>} 请求结果
|
|
99
|
-
*/
|
|
100
|
-
static head<T = unknown>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<IHttpResponse<T>>;
|
|
101
|
-
/**
|
|
102
|
-
* 通用请求方法
|
|
103
|
-
*
|
|
104
|
-
* @static
|
|
105
|
-
* @template T
|
|
106
|
-
* @param {string} url 请求地址
|
|
107
|
-
* @param {(IObject | null)} data 请求数据
|
|
108
|
-
* @param {(IParams | null)} query 查询参数
|
|
109
|
-
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
110
|
-
* @returns {Promise<IHttpResponse<T>>} 请求结果
|
|
111
|
-
*/
|
|
112
|
-
static request<T = unknown>(url: string, data: IObject | null, query: IParams | null, config?: AxiosRequestConfig): Promise<IHttpResponse<T>>;
|
|
113
|
-
}
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import axios from 'axios';
|
|
2
|
-
import qs from 'qs';
|
|
3
|
-
import { ContentTypeEnum } from './http.enum.mjs';
|
|
4
|
-
import '../../utils/index.mjs';
|
|
5
|
-
import { deepMerge } from '../../utils/tools/tools.mjs';
|
|
6
|
-
|
|
7
|
-
"use strict";
|
|
8
|
-
const instance = axios.create();
|
|
9
|
-
class HttpUtil {
|
|
10
|
-
/**
|
|
11
|
-
* 挂载中间件
|
|
12
|
-
*
|
|
13
|
-
* @static
|
|
14
|
-
* @param {(_axios: AxiosInstance) => void} fn 中间件函数
|
|
15
|
-
*/
|
|
16
|
-
static use(fn) {
|
|
17
|
-
fn(instance);
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* GET 请求方法
|
|
21
|
-
*
|
|
22
|
-
* @static
|
|
23
|
-
* @template T
|
|
24
|
-
* @param {string} url 请求地址
|
|
25
|
-
* @param {IObject} [data={}] 请求数据
|
|
26
|
-
* @param {IParams} [query={}] 查询参数
|
|
27
|
-
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
28
|
-
* @returns {Promise<IHttpResponse<T>>} 请求结果
|
|
29
|
-
*/
|
|
30
|
-
static get(url, data = {}, query = {}, config = {}) {
|
|
31
|
-
return this.request(url, data, query, { ...config, method: "GET" });
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* POST 请求方法
|
|
35
|
-
*
|
|
36
|
-
* @static
|
|
37
|
-
* @template T
|
|
38
|
-
* @param {string} url 请求地址
|
|
39
|
-
* @param {IObject} [data={}] 请求数据
|
|
40
|
-
* @param {IParams} [query={}] 查询参数
|
|
41
|
-
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
42
|
-
* @returns {Promise<IHttpResponse<T>>} 请求结果
|
|
43
|
-
*/
|
|
44
|
-
static post(url, data = {}, query = {}, config = {}) {
|
|
45
|
-
return this.request(url, data, query, { ...config, method: "POST" });
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* PUT 请求方法
|
|
49
|
-
*
|
|
50
|
-
* @static
|
|
51
|
-
* @template T
|
|
52
|
-
* @param {string} url 请求地址
|
|
53
|
-
* @param {IObject} [data={}] 请求数据
|
|
54
|
-
* @param {IParams} [query={}] 查询参数
|
|
55
|
-
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
56
|
-
* @returns {Promise<IHttpResponse<T>>} 请求结果
|
|
57
|
-
*/
|
|
58
|
-
static put(url, data = {}, query = {}, config = {}) {
|
|
59
|
-
return this.request(url, data, query, { ...config, method: "PUT" });
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* DELETE 请求方法
|
|
63
|
-
*
|
|
64
|
-
* @static
|
|
65
|
-
* @template T
|
|
66
|
-
* @param {string} url 请求地址
|
|
67
|
-
* @param {IObject} [data={}] 请求数据
|
|
68
|
-
* @param {IParams} [query={}] 查询参数
|
|
69
|
-
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
70
|
-
* @returns {Promise<IHttpResponse<T>>} 请求结果
|
|
71
|
-
*/
|
|
72
|
-
static delete(url, data = {}, query = {}, config = {}) {
|
|
73
|
-
return this.request(url, data, query, { ...config, method: "DELETE" });
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* OPTIONS 请求方法
|
|
77
|
-
*
|
|
78
|
-
* @static
|
|
79
|
-
* @template T
|
|
80
|
-
* @param {string} url 请求地址
|
|
81
|
-
* @param {IObject} [data={}] 请求数据
|
|
82
|
-
* @param {IParams} [query={}] 查询参数
|
|
83
|
-
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
84
|
-
* @returns {Promise<IHttpResponse<T>>} 请求结果
|
|
85
|
-
*/
|
|
86
|
-
static options(url, data = {}, query = {}, config = {}) {
|
|
87
|
-
return this.request(url, data, query, { ...config, method: "OPTIONS" });
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* PATCH 请求方法
|
|
91
|
-
*
|
|
92
|
-
* @static
|
|
93
|
-
* @template T
|
|
94
|
-
* @param {string} url 请求地址
|
|
95
|
-
* @param {IObject} [data={}] 请求数据
|
|
96
|
-
* @param {IParams} [query={}] 查询参数
|
|
97
|
-
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
98
|
-
* @returns {Promise<IHttpResponse<T>>} 请求结果
|
|
99
|
-
*/
|
|
100
|
-
static patch(url, data = {}, query = {}, config = {}) {
|
|
101
|
-
return this.request(url, data, query, { ...config, method: "PATCH" });
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* HEAD 请求方法
|
|
105
|
-
*
|
|
106
|
-
* @static
|
|
107
|
-
* @template T
|
|
108
|
-
* @param {string} url 请求地址
|
|
109
|
-
* @param {IObject} [data={}] 请求数据
|
|
110
|
-
* @param {IParams} [query={}] 查询参数
|
|
111
|
-
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
112
|
-
* @returns {Promise<IHttpResponse<T>>} 请求结果
|
|
113
|
-
*/
|
|
114
|
-
static head(url, data = {}, query = {}, config = {}) {
|
|
115
|
-
return this.request(url, data, query, { ...config, method: "HEAD" });
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* 通用请求方法
|
|
119
|
-
*
|
|
120
|
-
* @static
|
|
121
|
-
* @template T
|
|
122
|
-
* @param {string} url 请求地址
|
|
123
|
-
* @param {(IObject | null)} data 请求数据
|
|
124
|
-
* @param {(IParams | null)} query 查询参数
|
|
125
|
-
* @param {AxiosRequestConfig} [config={}] 请求配置
|
|
126
|
-
* @returns {Promise<IHttpResponse<T>>} 请求结果
|
|
127
|
-
*/
|
|
128
|
-
static async request(url, data, query, config = {}) {
|
|
129
|
-
if (query) {
|
|
130
|
-
const queryStr = qs.stringify(query, { arrayFormat: "brackets" });
|
|
131
|
-
if (queryStr) {
|
|
132
|
-
if (url.includes("?")) {
|
|
133
|
-
url += `&${queryStr}`;
|
|
134
|
-
} else {
|
|
135
|
-
url += `?${queryStr}`;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
const res = await instance.request(
|
|
140
|
-
deepMerge(
|
|
141
|
-
{
|
|
142
|
-
url,
|
|
143
|
-
data: JSON.stringify(data ? data : {}),
|
|
144
|
-
params: query,
|
|
145
|
-
timeout: 2 * 60 * 1e3,
|
|
146
|
-
headers: {
|
|
147
|
-
"Content-Type": ContentTypeEnum.JSON
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
config
|
|
151
|
-
)
|
|
152
|
-
);
|
|
153
|
-
if (res.status >= 200 && res.status < 300) {
|
|
154
|
-
return res.data;
|
|
155
|
-
}
|
|
156
|
-
throw res;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
export { HttpUtil };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ApiMap } from './api-service.interface';
|
|
2
|
-
/**
|
|
3
|
-
* API 实例
|
|
4
|
-
*/
|
|
5
|
-
export declare const api: ApiMap;
|
|
6
|
-
export { ResultEnum, RequestEnum, ContentTypeEnum, BizServiceEnum, } from './http.enum';
|
|
7
|
-
export type { IHttpResponse, ApiConfigItem, ApiItem, ApiMap, } from './api-service.interface';
|
|
8
|
-
export { HttpUtil } from './http.util';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { apiConfig as apiConfig$1 } from '@gct-paas/api/apaas';
|
|
2
|
-
import { apiConfig } from '@gct-paas/api/platform';
|
|
3
|
-
import { ApiManage } from './api-manage.mjs';
|
|
4
|
-
export { BizServiceEnum, ContentTypeEnum, RequestEnum, ResultEnum } from './http.enum.mjs';
|
|
5
|
-
export { HttpUtil } from './http.util.mjs';
|
|
6
|
-
|
|
7
|
-
"use strict";
|
|
8
|
-
const api = {
|
|
9
|
-
apaas: new ApiManage("/gct-apaas/api", apiConfig$1),
|
|
10
|
-
platform: new ApiManage("/gct-platform/api", apiConfig)
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export { api };
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var LoginSortTypeEnum = /* @__PURE__ */ ((LoginSortTypeEnum2) => {
|
|
3
|
-
LoginSortTypeEnum2["SYSTEM"] = "SYSTEM";
|
|
4
|
-
LoginSortTypeEnum2["THIRD_PARTY"] = "THIRD_PARTY";
|
|
5
|
-
return LoginSortTypeEnum2;
|
|
6
|
-
})(LoginSortTypeEnum || {});
|
|
7
|
-
var LoginTypeEnum = /* @__PURE__ */ ((LoginTypeEnum2) => {
|
|
8
|
-
LoginTypeEnum2["ACCOUNT"] = "ACCOUNT";
|
|
9
|
-
LoginTypeEnum2["DOMAIN_ACCOUNT"] = "DOMAIN_ACCOUNT";
|
|
10
|
-
LoginTypeEnum2["MOBILE"] = "MOBILE";
|
|
11
|
-
LoginTypeEnum2["DINGDING"] = "DINGDING";
|
|
12
|
-
LoginTypeEnum2["FEISHU"] = "FEISHU";
|
|
13
|
-
LoginTypeEnum2["QIYEWEIXIN"] = "QIYEWEIXIN";
|
|
14
|
-
return LoginTypeEnum2;
|
|
15
|
-
})(LoginTypeEnum || {});
|
|
16
|
-
const loginTypeInfo = {
|
|
17
|
-
["ACCOUNT" /* ACCOUNT */]: {
|
|
18
|
-
icon: "icon-a-Accountnumber",
|
|
19
|
-
color: "#0E81EC"
|
|
20
|
-
},
|
|
21
|
-
["DOMAIN_ACCOUNT" /* DOMAIN_ACCOUNT */]: {
|
|
22
|
-
icon: "icon-a-Domainaccount",
|
|
23
|
-
color: "#FFAB06"
|
|
24
|
-
},
|
|
25
|
-
["MOBILE" /* MOBILE */]: {
|
|
26
|
-
icon: "icon-a-Cellphone",
|
|
27
|
-
color: "#6A70FE"
|
|
28
|
-
},
|
|
29
|
-
["DINGDING" /* DINGDING */]: {
|
|
30
|
-
icon: "DingdingIcon"
|
|
31
|
-
},
|
|
32
|
-
["FEISHU" /* FEISHU */]: {
|
|
33
|
-
icon: "FeishuIcon"
|
|
34
|
-
},
|
|
35
|
-
["QIYEWEIXIN" /* QIYEWEIXIN */]: {
|
|
36
|
-
icon: "QiyeweixinIcon"
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
const SystemLoginKeys = [
|
|
40
|
-
"ACCOUNT" /* ACCOUNT */,
|
|
41
|
-
"DOMAIN_ACCOUNT" /* DOMAIN_ACCOUNT */,
|
|
42
|
-
"MOBILE" /* MOBILE */
|
|
43
|
-
];
|
|
44
|
-
const OtherLoginKeys = [
|
|
45
|
-
"DINGDING" /* DINGDING */,
|
|
46
|
-
"FEISHU" /* FEISHU */,
|
|
47
|
-
"QIYEWEIXIN" /* QIYEWEIXIN */
|
|
48
|
-
];
|
|
49
|
-
const getLoginTypeOptions = (keys) => {
|
|
50
|
-
if (!keys) {
|
|
51
|
-
return [];
|
|
52
|
-
}
|
|
53
|
-
return keys.map((key) => {
|
|
54
|
-
return {
|
|
55
|
-
id: key,
|
|
56
|
-
label: key,
|
|
57
|
-
value: key,
|
|
58
|
-
...loginTypeInfo[key]
|
|
59
|
-
};
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
export { LoginSortTypeEnum, LoginTypeEnum, OtherLoginKeys, SystemLoginKeys, getLoginTypeOptions };
|
|
@@ -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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
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
|
-
}
|