@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProjectName } from '../../enums';
|
|
2
|
-
import { IGlobalState } from '../../interface';
|
|
2
|
+
import { IAppContext, IGlobalState } from '../../interface';
|
|
3
3
|
/**
|
|
4
4
|
* 全局pinia状态
|
|
5
5
|
*
|
|
@@ -8,28 +8,23 @@ import { IGlobalState } from '../../interface';
|
|
|
8
8
|
* @implements {IGlobalState}
|
|
9
9
|
*/
|
|
10
10
|
export declare class GlobalPiniaState implements IGlobalState {
|
|
11
|
+
context: IAppContext;
|
|
11
12
|
/**
|
|
12
|
-
*
|
|
13
|
+
* 应用信息
|
|
13
14
|
*
|
|
14
|
-
* @type {
|
|
15
|
+
* @type {IObject}
|
|
15
16
|
*/
|
|
16
|
-
|
|
17
|
+
appInfo: IObject;
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
+
* 当前访问项目名称
|
|
19
20
|
*
|
|
20
|
-
* @type {
|
|
21
|
+
* @type {ProjectName}
|
|
21
22
|
*/
|
|
22
|
-
|
|
23
|
+
projectName: ProjectName;
|
|
23
24
|
/**
|
|
24
25
|
* 多语言
|
|
25
26
|
*
|
|
26
27
|
* @type {string}
|
|
27
28
|
*/
|
|
28
29
|
lang: string;
|
|
29
|
-
/**
|
|
30
|
-
* 应用信息, todo: 等 api 包完成后,实际类型从 api 导入
|
|
31
|
-
*
|
|
32
|
-
* @type {IObject}
|
|
33
|
-
*/
|
|
34
|
-
appInfo: IObject;
|
|
35
30
|
}
|
|
@@ -1,20 +1,34 @@
|
|
|
1
|
-
import '../../enums/index.mjs';
|
|
1
|
+
import '../../enums/app-designer/index.mjs';
|
|
2
|
+
import { Platform } from '../../enums/page-designer/widget.mjs';
|
|
3
|
+
import '../../enums/page-designer/designer.mjs';
|
|
2
4
|
import { ProjectName } from '../../enums/appEnum.mjs';
|
|
5
|
+
import '../../enums/breakpointEnum.mjs';
|
|
3
6
|
|
|
4
|
-
"use strict";
|
|
5
7
|
class GlobalPiniaState {
|
|
8
|
+
context = {
|
|
9
|
+
aid: "",
|
|
10
|
+
bid: "",
|
|
11
|
+
pid: "",
|
|
12
|
+
platform: Platform.WEB
|
|
13
|
+
};
|
|
6
14
|
/**
|
|
7
|
-
*
|
|
15
|
+
* 应用信息
|
|
8
16
|
*
|
|
9
|
-
* @type {
|
|
17
|
+
* @type {IObject}
|
|
10
18
|
*/
|
|
11
|
-
|
|
19
|
+
appInfo = {};
|
|
12
20
|
/**
|
|
13
|
-
*
|
|
21
|
+
* 当前访问项目名称
|
|
14
22
|
*
|
|
15
|
-
* @type {
|
|
23
|
+
* @type {ProjectName}
|
|
16
24
|
*/
|
|
17
|
-
|
|
25
|
+
projectName = ProjectName.PORTAL;
|
|
26
|
+
// /**
|
|
27
|
+
// * 租户标识
|
|
28
|
+
// *
|
|
29
|
+
// * @type {string}
|
|
30
|
+
// */
|
|
31
|
+
// tenantId: string = '';
|
|
18
32
|
/**
|
|
19
33
|
* 多语言
|
|
20
34
|
*
|
|
@@ -26,7 +40,19 @@ class GlobalPiniaState {
|
|
|
26
40
|
*
|
|
27
41
|
* @type {IObject}
|
|
28
42
|
*/
|
|
29
|
-
appInfo = {};
|
|
43
|
+
// appInfo: IObject = {};
|
|
44
|
+
// /**
|
|
45
|
+
// * 用户信息
|
|
46
|
+
// *
|
|
47
|
+
// * @type {IObject}
|
|
48
|
+
// */
|
|
49
|
+
// userInfo: IObject = {};
|
|
50
|
+
/**
|
|
51
|
+
* 用户信息
|
|
52
|
+
*
|
|
53
|
+
* @type {IObject}
|
|
54
|
+
*/
|
|
55
|
+
// tenantUserInfo: IObject = {};
|
|
30
56
|
}
|
|
31
57
|
|
|
32
58
|
export { GlobalPiniaState };
|
|
@@ -1,29 +1,58 @@
|
|
|
1
1
|
import { defineStore } from 'pinia';
|
|
2
|
-
import '../state/index.mjs';
|
|
3
2
|
import { GlobalPiniaState } from '../state/global-pinia-state/global-pinia-state.mjs';
|
|
3
|
+
import 'qs';
|
|
4
|
+
import 'lodash-es';
|
|
5
|
+
import '../utils/mitt/mitt.mjs';
|
|
6
|
+
import '../enums/app-designer/index.mjs';
|
|
7
|
+
import '../enums/page-designer/designer.mjs';
|
|
8
|
+
import '../enums/breakpointEnum.mjs';
|
|
9
|
+
import '../constants/expression-type/modeCfg.mjs';
|
|
10
|
+
import '../constants/expression-type/BuiltOperators.mjs';
|
|
11
|
+
import '../constants/expression-type/function.mjs';
|
|
12
|
+
import '../constants/expression-type/variable.mjs';
|
|
13
|
+
import 'vue';
|
|
14
|
+
import 'qx-util';
|
|
15
|
+
import 'path-browserify';
|
|
16
|
+
import { parseMatrixParams } from '../utils/tools/tools.mjs';
|
|
17
|
+
import '../utils/uuid/uuid.mjs';
|
|
18
|
+
import 'axios';
|
|
19
|
+
import '@fingerprintjs/fingerprintjs';
|
|
20
|
+
import '../utils/useUUid.mjs';
|
|
4
21
|
|
|
5
|
-
"use strict";
|
|
6
22
|
const useGlobalStore = defineStore("global-store", {
|
|
7
23
|
state() {
|
|
8
24
|
return new GlobalPiniaState();
|
|
9
25
|
},
|
|
10
26
|
getters: {
|
|
27
|
+
getProjectName() {
|
|
28
|
+
return this.projectName;
|
|
29
|
+
},
|
|
30
|
+
geLang() {
|
|
31
|
+
return this.lang;
|
|
32
|
+
},
|
|
11
33
|
getAppInfo() {
|
|
12
34
|
return this.appInfo;
|
|
13
35
|
}
|
|
14
36
|
},
|
|
15
37
|
actions: {
|
|
16
|
-
|
|
17
|
-
|
|
38
|
+
async init() {
|
|
39
|
+
const paramStr = location.pathname.split("/")[2];
|
|
40
|
+
if (paramStr) {
|
|
41
|
+
const params = parseMatrixParams(paramStr);
|
|
42
|
+
if (params) {
|
|
43
|
+
this.context = params;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
18
46
|
},
|
|
19
|
-
|
|
20
|
-
|
|
47
|
+
async loadAppInfo() {
|
|
48
|
+
const res = await _api.apaas.designerCommon.getGetApp();
|
|
49
|
+
this.appInfo = res;
|
|
21
50
|
},
|
|
22
|
-
|
|
23
|
-
this
|
|
51
|
+
setProjectName(name) {
|
|
52
|
+
this.projectName = name;
|
|
24
53
|
},
|
|
25
54
|
setLang(lang) {
|
|
26
|
-
this
|
|
55
|
+
this.lang = lang;
|
|
27
56
|
}
|
|
28
57
|
}
|
|
29
58
|
});
|
package/es/store/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IGlobalActions, IGlobalGetters, IGlobalState } from '../interface';
|
|
1
|
+
import { IGlobalStore } from './global-store';
|
|
3
2
|
/**
|
|
4
3
|
* 全局的状态管理工具类
|
|
5
4
|
*
|
|
@@ -15,6 +14,6 @@ export declare class GlobalStoreUtil {
|
|
|
15
14
|
* 全局状态管理实例
|
|
16
15
|
*
|
|
17
16
|
*/
|
|
18
|
-
readonly store:
|
|
17
|
+
readonly store: IGlobalStore;
|
|
19
18
|
constructor();
|
|
20
19
|
}
|
package/es/store/index.mjs
CHANGED
package/es/types/index.d.ts
CHANGED
|
@@ -1,14 +1,33 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
import '@gct-paas/api/global-type';
|
|
2
3
|
import 'systemjs';
|
|
4
|
+
import 'vite/types/importMeta.d.ts';
|
|
3
5
|
import type { GctGlobal } from '../global';
|
|
6
|
+
import type { ApiManage as APaasApiManage } from '@gct-paas/api/apaas';
|
|
7
|
+
import type { ApiManage as PlatformApiManage } from '@gct-paas/api/platform';
|
|
8
|
+
import type { bus } from 'wujie';
|
|
4
9
|
|
|
5
|
-
|
|
10
|
+
/**
|
|
11
|
+
* 全局 api 对象
|
|
12
|
+
*
|
|
13
|
+
* @author chitanda
|
|
14
|
+
* @date 2025-08-21 11:08:40
|
|
15
|
+
* @interface GlobalApi
|
|
16
|
+
*/
|
|
17
|
+
interface GlobalApi {
|
|
18
|
+
apaas: APaasApiManage;
|
|
19
|
+
platform: PlatformApiManage;
|
|
20
|
+
}
|
|
6
21
|
|
|
7
22
|
declare global {
|
|
8
23
|
/**
|
|
9
24
|
* paas 平台全局对象
|
|
10
25
|
*/
|
|
11
26
|
const _gct: GctGlobal;
|
|
27
|
+
/**
|
|
28
|
+
* paas 平台 API 管理
|
|
29
|
+
*/
|
|
30
|
+
const _api: GlobalApi;
|
|
12
31
|
|
|
13
32
|
interface Window {
|
|
14
33
|
/**
|
|
@@ -17,6 +36,28 @@ declare global {
|
|
|
17
36
|
* @type {GctGlobal}
|
|
18
37
|
*/
|
|
19
38
|
_gct: GctGlobal;
|
|
39
|
+
/**
|
|
40
|
+
* paas 平台 API 管理
|
|
41
|
+
*
|
|
42
|
+
* @author chitanda
|
|
43
|
+
* @date 2025-08-21 11:08:30
|
|
44
|
+
* @type {GlobalApi}
|
|
45
|
+
*/
|
|
46
|
+
_api: GlobalApi;
|
|
47
|
+
/**
|
|
48
|
+
* wujie 微前端对象,当作为微前端子应用运行时可用
|
|
49
|
+
*
|
|
50
|
+
* @type {*}
|
|
51
|
+
*/
|
|
52
|
+
$wujie: { props: IObject; bus: bus };
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
interface ImportMetaEnv {
|
|
56
|
+
VITE_GLOBAL_HOST: string;
|
|
57
|
+
pkg: {
|
|
58
|
+
name: string;
|
|
59
|
+
version: string;
|
|
60
|
+
};
|
|
20
61
|
}
|
|
21
62
|
|
|
22
63
|
/**
|
|
@@ -46,6 +87,11 @@ declare global {
|
|
|
46
87
|
*/
|
|
47
88
|
type IObject = Record<string | symbol, any>;
|
|
48
89
|
|
|
90
|
+
/**
|
|
91
|
+
* 标识上下文对象的任意结构
|
|
92
|
+
*/
|
|
93
|
+
type IContext = Record<string | symbol, any>;
|
|
94
|
+
|
|
49
95
|
/**
|
|
50
96
|
* 查询分页对象
|
|
51
97
|
*
|
|
@@ -96,4 +142,8 @@ declare global {
|
|
|
96
142
|
*/
|
|
97
143
|
data: T[];
|
|
98
144
|
}
|
|
145
|
+
|
|
146
|
+
type Fn<T = any, R = T> = (...arg: T[]) => R;
|
|
147
|
+
|
|
148
|
+
type PromiseFn<T = any, R = T> = (...arg: T[]) => Promise<R>;
|
|
99
149
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { AxiosHeaders } from 'axios';
|
|
2
|
-
import { getTimezone, isMobile, getToken
|
|
3
|
-
import '../../enums/index.mjs';
|
|
4
|
-
import { ProjectName } from '../../enums/appEnum.mjs';
|
|
2
|
+
import { getTimezone, getTenant, isMobile, getToken } from '../tools/tools.mjs';
|
|
5
3
|
|
|
6
|
-
"use strict";
|
|
7
4
|
function interceptors(axios) {
|
|
8
5
|
axios.interceptors.request.use((config) => {
|
|
9
6
|
if (!config.headers) {
|
|
@@ -13,27 +10,9 @@ function interceptors(axios) {
|
|
|
13
10
|
Token: getToken(),
|
|
14
11
|
Source: isMobile ? 502 : 501,
|
|
15
12
|
Lang: _gct.store.lang,
|
|
16
|
-
"Tenant-Id":
|
|
13
|
+
"Tenant-Id": getTenant(),
|
|
17
14
|
Timezone: getTimezone()
|
|
18
15
|
});
|
|
19
|
-
if (!config.headers["App-Tag"]) {
|
|
20
|
-
if (config.url.includes("/gct-apaas/")) {
|
|
21
|
-
const query = getPathQuery();
|
|
22
|
-
config.headers["App-Tag"] = query.aid;
|
|
23
|
-
config.headers["Module"] = "TENANT_CENTER";
|
|
24
|
-
} else {
|
|
25
|
-
config.headers["App-Tag"] = "__platform__";
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
if ([
|
|
29
|
-
ProjectName.TENANT_CENTER,
|
|
30
|
-
ProjectName.APP_DESIGNER,
|
|
31
|
-
ProjectName.WEB_RENDER
|
|
32
|
-
].includes(_gct.store.projectName)) {
|
|
33
|
-
config.headers["Module"] = "TENANT_CENTER";
|
|
34
|
-
} else if (_gct.store.projectName === ProjectName.BACKEND_MANAGEMENT) {
|
|
35
|
-
config.headers["Module"] = "BACKEND_MANAGEMENT";
|
|
36
|
-
}
|
|
37
16
|
return config;
|
|
38
17
|
});
|
|
39
18
|
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import qs from 'qs';
|
|
2
|
+
|
|
3
|
+
const gctMemoizeAsync = (...arg) => cacheAdapter.bind(null, ...arg);
|
|
4
|
+
function cacheAdapter(adapter, ...args) {
|
|
5
|
+
const maxAge = 1e3 * 60 * 5;
|
|
6
|
+
const requestKey = typeof args === "object" ? qs.stringify(args) : args;
|
|
7
|
+
let responsePromise = MemoryCache.get(requestKey);
|
|
8
|
+
if (!responsePromise) {
|
|
9
|
+
responsePromise = (async () => {
|
|
10
|
+
try {
|
|
11
|
+
return await adapter(...args);
|
|
12
|
+
} catch (reason) {
|
|
13
|
+
MemoryCache.delete(requestKey);
|
|
14
|
+
throw reason;
|
|
15
|
+
}
|
|
16
|
+
})();
|
|
17
|
+
MemoryCache.set(requestKey, responsePromise, maxAge);
|
|
18
|
+
return responsePromise;
|
|
19
|
+
}
|
|
20
|
+
return responsePromise;
|
|
21
|
+
}
|
|
22
|
+
class MemoryCache {
|
|
23
|
+
static cachedata = {};
|
|
24
|
+
static set(key, value, maxAge) {
|
|
25
|
+
this.cachedata[key] = {
|
|
26
|
+
maxAge: maxAge || 0,
|
|
27
|
+
value,
|
|
28
|
+
now: Date.now()
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
static get(key) {
|
|
32
|
+
this.reset();
|
|
33
|
+
const cachedItem = this.cachedata[key];
|
|
34
|
+
if (!cachedItem) return null;
|
|
35
|
+
return cachedItem.value;
|
|
36
|
+
}
|
|
37
|
+
static delete(key) {
|
|
38
|
+
return delete this.cachedata[key];
|
|
39
|
+
}
|
|
40
|
+
static clear() {
|
|
41
|
+
this.cachedata = {};
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
*清空过期的数据
|
|
45
|
+
*/
|
|
46
|
+
static reset() {
|
|
47
|
+
for (const key in this.cachedata) {
|
|
48
|
+
const cachedItem = this.cachedata[key];
|
|
49
|
+
if (cachedItem) {
|
|
50
|
+
const isExpired = Date.now() - cachedItem.now > cachedItem.maxAge;
|
|
51
|
+
if (isExpired) {
|
|
52
|
+
this.delete(key);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { gctMemoizeAsync };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** 客户端平台信息 */
|
|
2
|
+
export interface ClientPlatform {
|
|
3
|
+
type: 'web' | 'mobile' | 'unknown';
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
/** 获取客户端平台(浏览器 / 移动系统) */
|
|
7
|
+
export declare function getClientPlatform(): ClientPlatform;
|
|
8
|
+
/** 获取浏览器指纹对象 */
|
|
9
|
+
export declare function getFingerprint(): Promise<import('@fingerprintjs/fingerprintjs').GetResult>;
|
|
10
|
+
/** 获取设备指纹标识(统一入口) */
|
|
11
|
+
export declare function getDeviceFingerprint(): Promise<string>;
|
|
12
|
+
/** web 端指纹(语义兼容) */
|
|
13
|
+
export declare function getBrowserFingerprint(): Promise<string>;
|
|
14
|
+
/** mobile 端指纹(语义兼容) */
|
|
15
|
+
export declare function getMobileBrowserFingerprint(): Promise<string>;
|
|
16
|
+
/** 页签唯一标识 */
|
|
17
|
+
export declare function getPageIdentification(): string;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import FingerprintJS from '@fingerprintjs/fingerprintjs';
|
|
2
|
+
|
|
3
|
+
const FINGERPRINT_KEY = "FINGERPRINT";
|
|
4
|
+
function isBrowserEnv() {
|
|
5
|
+
return typeof window !== "undefined" && typeof navigator !== "undefined";
|
|
6
|
+
}
|
|
7
|
+
function getClientPlatform() {
|
|
8
|
+
if (!isBrowserEnv()) {
|
|
9
|
+
return { type: "unknown", name: "unknown" };
|
|
10
|
+
}
|
|
11
|
+
const ua = navigator.userAgent;
|
|
12
|
+
if (/iPad|iPhone|iPod/i.test(ua)) {
|
|
13
|
+
return { type: "mobile", name: "iOS" };
|
|
14
|
+
}
|
|
15
|
+
if (/Android/i.test(ua)) {
|
|
16
|
+
return { type: "mobile", name: "Android" };
|
|
17
|
+
}
|
|
18
|
+
if (/Windows Phone/i.test(ua)) {
|
|
19
|
+
return { type: "mobile", name: "Windows Phone" };
|
|
20
|
+
}
|
|
21
|
+
if (/BlackBerry/i.test(ua)) {
|
|
22
|
+
return { type: "mobile", name: "BlackBerry" };
|
|
23
|
+
}
|
|
24
|
+
if (/Edg/i.test(ua)) {
|
|
25
|
+
return { type: "web", name: "Edge" };
|
|
26
|
+
}
|
|
27
|
+
if (/OPR|Opera/i.test(ua)) {
|
|
28
|
+
return { type: "web", name: "Opera" };
|
|
29
|
+
}
|
|
30
|
+
if (/Firefox/i.test(ua)) {
|
|
31
|
+
return { type: "web", name: "Firefox" };
|
|
32
|
+
}
|
|
33
|
+
if (/Chrome/i.test(ua)) {
|
|
34
|
+
return { type: "web", name: "Chrome" };
|
|
35
|
+
}
|
|
36
|
+
if (/Safari/i.test(ua)) {
|
|
37
|
+
return { type: "web", name: "Safari" };
|
|
38
|
+
}
|
|
39
|
+
return { type: "unknown", name: "unknown" };
|
|
40
|
+
}
|
|
41
|
+
async function getFingerprint() {
|
|
42
|
+
const agent = await FingerprintJS.load();
|
|
43
|
+
return agent.get();
|
|
44
|
+
}
|
|
45
|
+
async function getDeviceFingerprint() {
|
|
46
|
+
if (!isBrowserEnv()) {
|
|
47
|
+
return "unknown/unknown";
|
|
48
|
+
}
|
|
49
|
+
const { type, name } = getClientPlatform();
|
|
50
|
+
const isWeb = type === "web";
|
|
51
|
+
if (isWeb) {
|
|
52
|
+
const cached = localStorage.getItem(FINGERPRINT_KEY);
|
|
53
|
+
if (cached) {
|
|
54
|
+
return `${name}/${cached}`;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
const fingerprint = await getFingerprint();
|
|
58
|
+
const visitorId = fingerprint.visitorId;
|
|
59
|
+
if (isWeb) {
|
|
60
|
+
localStorage.setItem(FINGERPRINT_KEY, visitorId);
|
|
61
|
+
}
|
|
62
|
+
return `${name}/${visitorId}`;
|
|
63
|
+
}
|
|
64
|
+
function getPageIdentification() {
|
|
65
|
+
let pageTag = sessionStorage.getItem("currentPageTag");
|
|
66
|
+
if (!pageTag) {
|
|
67
|
+
pageTag = Date.now().toString();
|
|
68
|
+
sessionStorage.setItem("currentPageTag", pageTag);
|
|
69
|
+
}
|
|
70
|
+
return pageTag;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export { getClientPlatform, getDeviceFingerprint, getFingerprint, getPageIdentification };
|
package/es/utils/i18n/index.d.ts
CHANGED
package/es/utils/i18n/index.mjs
CHANGED
package/es/utils/index.d.ts
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { gctMemoizeAsync } from './cache-adapter/cache-adapter';
|
|
2
2
|
export { DictionaryUtil } from './dictionary/dictionary';
|
|
3
3
|
export { t } from './i18n';
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
4
|
+
export { LinkedList } from './linked-list/linked-list';
|
|
5
|
+
export { LinkedNode } from './linked-node/linked-node';
|
|
6
|
+
export { insertCustomCssToHead } from './lowcode/utils';
|
|
7
|
+
export { buildItemRules } from './lowcode/validate';
|
|
8
|
+
export { mitt } from './mitt/mitt';
|
|
9
|
+
export { modelLoader } from './model-loader/model-loader';
|
|
10
|
+
export { Namespace, useNamespace } from './namespace/namespace';
|
|
11
|
+
export * from './openUtil';
|
|
6
12
|
export { PluginStaticResource } from './plugin-static-resource/plugin-static-resource';
|
|
7
|
-
export {
|
|
13
|
+
export { gctFormItemEditorProps } from './props';
|
|
14
|
+
export { getToken, setToken, getTenant, getTimezone, isMobile, setTenant, deepMerge, stringifyMatrixParams, parseMatrixParams, } from './tools/tools';
|
|
15
|
+
export * from './uuid/uuid';
|
|
16
|
+
export * from './value-helper/value-helper';
|
|
8
17
|
export { widthEditorInstall } from './width-install/width-install';
|
|
18
|
+
export { interceptors } from './axios/interceptors';
|
|
19
|
+
export { getDeviceFingerprint, getPageIdentification, } from './deviceFingerprint';
|
|
20
|
+
export { TreeHelper } from './treeHelper/treeHelper';
|
|
21
|
+
export * from './style';
|
|
22
|
+
export * from './util';
|
|
23
|
+
export { isSortFiled } from './is-sort-filed/is-sort-filed';
|
|
24
|
+
export { useUUid, randomUUID } from './useUUid';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
*
|
|
4
|
+
* @author zhanghanrui
|
|
5
|
+
* @date 2024-09-04 09:09:08
|
|
6
|
+
* @export
|
|
7
|
+
* @param {string} fieldType 字段类型, 只支持[文本、整数、长整数、小数、精度小数、日期、时间、日期时间、布尔、人员关联、人员多选、部门关联、部门多选、枚举关联、枚举多选、模型关联、模型多选、版本模型关联、公式、汇总、序列号]
|
|
8
|
+
* @return {*} {boolean}
|
|
9
|
+
*/
|
|
10
|
+
export declare function isSortFiled(fieldType: string): boolean;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import '../../enums/app-designer/index.mjs';
|
|
2
|
+
import '../../enums/page-designer/designer.mjs';
|
|
3
|
+
import { FIELD_TYPE } from '../../enums/appEnum.mjs';
|
|
4
|
+
import '../../enums/breakpointEnum.mjs';
|
|
5
|
+
|
|
6
|
+
function isSortFiled(fieldType) {
|
|
7
|
+
switch (fieldType) {
|
|
8
|
+
case FIELD_TYPE.TEXT:
|
|
9
|
+
case FIELD_TYPE.INTEGER:
|
|
10
|
+
case FIELD_TYPE.LONG:
|
|
11
|
+
case FIELD_TYPE.DOUBLE:
|
|
12
|
+
case FIELD_TYPE.DECIMAL:
|
|
13
|
+
case FIELD_TYPE.DATE:
|
|
14
|
+
case FIELD_TYPE.TIME:
|
|
15
|
+
case FIELD_TYPE.DATE_TIME:
|
|
16
|
+
case FIELD_TYPE.BOOLEAN:
|
|
17
|
+
case FIELD_TYPE.USER:
|
|
18
|
+
case FIELD_TYPE.USER_MULTI:
|
|
19
|
+
case FIELD_TYPE.ORG:
|
|
20
|
+
case FIELD_TYPE.ORG_MULTI:
|
|
21
|
+
case FIELD_TYPE.ENUM:
|
|
22
|
+
case FIELD_TYPE.ENUM_MULTI:
|
|
23
|
+
case FIELD_TYPE.REF:
|
|
24
|
+
case FIELD_TYPE.REF_MULTI:
|
|
25
|
+
case FIELD_TYPE.RDO_REF:
|
|
26
|
+
case FIELD_TYPE.EXPRESSION:
|
|
27
|
+
case FIELD_TYPE.AGG:
|
|
28
|
+
case FIELD_TYPE.SERIAL:
|
|
29
|
+
case FIELD_TYPE.DOCUMENT_TEMPLATE:
|
|
30
|
+
case FIELD_TYPE.PRINTER:
|
|
31
|
+
case FIELD_TYPE.TRANSACTION:
|
|
32
|
+
case FIELD_TYPE.MESSAGE_TMPL:
|
|
33
|
+
case FIELD_TYPE.RANGE_USER:
|
|
34
|
+
return true;
|
|
35
|
+
default:
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { isSortFiled };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { LinkedNode } from '../linked-node/linked-node';
|
|
2
|
+
/**
|
|
3
|
+
* 链表列表
|
|
4
|
+
*
|
|
5
|
+
* @author zhanghanrui
|
|
6
|
+
* @date 2024-07-31 15:07:37
|
|
7
|
+
* @export
|
|
8
|
+
* @class LinkedList
|
|
9
|
+
*/
|
|
10
|
+
export declare class LinkedList<T = any> {
|
|
11
|
+
/**
|
|
12
|
+
* 当前激活节点
|
|
13
|
+
*
|
|
14
|
+
* @author zhanghanrui
|
|
15
|
+
* @date 2024-07-31 15:07:02
|
|
16
|
+
* @type {(LinkedNode<T> | null)}
|
|
17
|
+
*/
|
|
18
|
+
active: LinkedNode<T> | null;
|
|
19
|
+
/**
|
|
20
|
+
* 新增节点
|
|
21
|
+
*
|
|
22
|
+
* @author zhanghanrui
|
|
23
|
+
* @date 2024-07-31 15:07:45
|
|
24
|
+
* @param {T} data
|
|
25
|
+
*/
|
|
26
|
+
add(data: T): void;
|
|
27
|
+
/**
|
|
28
|
+
* 删除节点
|
|
29
|
+
*
|
|
30
|
+
* @author zhanghanrui
|
|
31
|
+
* @date 2024-07-31 15:07:11
|
|
32
|
+
* @param {LinkedNode<T>} node
|
|
33
|
+
*/
|
|
34
|
+
delete(node: LinkedNode<T>): void;
|
|
35
|
+
/**
|
|
36
|
+
* 上一个节点
|
|
37
|
+
*
|
|
38
|
+
* @author zhanghanrui
|
|
39
|
+
* @date 2024-07-31 16:07:41
|
|
40
|
+
*/
|
|
41
|
+
prev(): void;
|
|
42
|
+
/**
|
|
43
|
+
* 下一个节点
|
|
44
|
+
*
|
|
45
|
+
* @author zhanghanrui
|
|
46
|
+
* @date 2024-07-31 16:07:57
|
|
47
|
+
*/
|
|
48
|
+
next(): void;
|
|
49
|
+
/**
|
|
50
|
+
* 清理所有缓存
|
|
51
|
+
*
|
|
52
|
+
* @author zhanghanrui
|
|
53
|
+
* @date 2024-07-31 16:07:43
|
|
54
|
+
*/
|
|
55
|
+
clearAll(): void;
|
|
56
|
+
/**
|
|
57
|
+
* 是否可以撤销
|
|
58
|
+
*
|
|
59
|
+
* @author zhanghanrui
|
|
60
|
+
* @date 2024-08-21 15:08:57
|
|
61
|
+
* @return {*} {boolean}
|
|
62
|
+
*/
|
|
63
|
+
canUndo(): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* 是否可以重做
|
|
66
|
+
*
|
|
67
|
+
* @author zhanghanrui
|
|
68
|
+
* @date 2024-08-21 15:08:33
|
|
69
|
+
* @return {*} {boolean}
|
|
70
|
+
*/
|
|
71
|
+
canRedo(): boolean;
|
|
72
|
+
}
|