@gct-paas/core 0.1.4-dev.8 → 0.1.5-dev.0
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.js +1 -0
- package/es/constants/core.mjs +5 -4
- package/es/constants/default-date-type/default-date-type.d.ts +70 -0
- package/es/constants/default-date-type/default-date-type.mjs +74 -0
- package/es/constants/editor-register/editor-register.mjs +17 -5
- package/es/constants/expression-type/BuiltOperators.d.ts +20 -0
- package/es/constants/expression-type/BuiltOperators.mjs +156 -0
- package/es/constants/expression-type/FunctionKeys.d.ts +1 -0
- package/es/constants/expression-type/FunctionKeys.mjs +77 -0
- package/es/constants/expression-type/editor.d.ts +8 -0
- package/es/constants/expression-type/editor.mjs +11 -0
- package/es/constants/expression-type/function.d.ts +7 -0
- package/es/constants/expression-type/function.mjs +864 -0
- package/es/constants/expression-type/index.d.ts +42 -0
- package/es/constants/expression-type/index.mjs +118 -0
- package/es/constants/expression-type/modeCfg.d.ts +30 -0
- package/es/constants/expression-type/modeCfg.mjs +261 -0
- package/es/constants/expression-type/variable.d.ts +12 -0
- package/es/constants/expression-type/variable.mjs +46 -0
- package/es/constants/form-container-type/form-container-type.mjs +17 -5
- package/es/constants/index.d.ts +8 -1
- package/es/constants/index.mjs +32 -5
- package/es/constants/page-designer/model.d.ts +4 -0
- package/es/constants/page-designer/model.mjs +17 -0
- package/es/constants/page-designer/regex.d.ts +2 -0
- package/es/constants/page-designer/regex.mjs +5 -0
- package/es/create-app-vue.mjs +15 -16
- package/es/enums/app-designer/index.d.ts +19 -0
- package/es/enums/app-designer/index.mjs +131 -63
- package/es/enums/appEnum.d.ts +5 -0
- package/es/enums/appEnum.mjs +682 -356
- package/es/enums/appStateEnum.mjs +17 -10
- package/es/enums/authActionEnum.mjs +63 -51
- package/es/enums/breakpointEnum.mjs +27 -26
- package/es/enums/cacheEnum.d.ts +0 -1
- package/es/enums/cacheEnum.mjs +22 -22
- package/es/enums/designEnum.d.ts +9 -3
- package/es/enums/designEnum.mjs +111 -69
- 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 +8 -0
- package/es/enums/exceptionEnum.mjs +21 -17
- package/es/enums/expressionEnum.d.ts +130 -0
- package/es/enums/expressionEnum.mjs +82 -0
- package/es/enums/globalEnum.d.ts +15 -0
- package/es/enums/globalEnum.mjs +60 -25
- package/es/enums/httpEnum.mjs +71 -61
- package/es/enums/index.d.ts +11 -5
- package/es/enums/index.mjs +45 -17
- package/es/enums/menuEnum.mjs +42 -38
- package/es/enums/page-designer/designer.d.ts +7 -8
- package/es/enums/page-designer/designer.mjs +404 -403
- package/es/enums/page-designer/index.d.ts +1 -0
- package/es/enums/page-designer/index.mjs +5 -0
- package/es/enums/page-designer/layout.d.ts +12 -0
- package/es/enums/page-designer/layout.mjs +17 -0
- package/es/enums/page-designer/panel.d.ts +78 -7
- package/es/enums/page-designer/panel.mjs +342 -195
- package/es/enums/page-designer/toolkit.mjs +13 -12
- package/es/enums/page-designer/widget.d.ts +5 -0
- package/es/enums/page-designer/widget.mjs +426 -334
- package/es/enums/pageEnum.mjs +14 -13
- package/es/enums/plugin-enum.d.ts +8 -4
- package/es/enums/plugin-enum.mjs +27 -7
- package/es/enums/processEnum.d.ts +54 -0
- package/es/enums/processEnum.mjs +96 -26
- package/es/enums/roleEnum.mjs +7 -6
- package/es/enums/sizeEnum.d.ts +18 -0
- package/es/enums/sizeEnum.mjs +28 -8
- package/es/global/gct/gct.d.ts +245 -13
- package/es/global/gct/gct.mjs +98 -95
- package/es/global/index.mjs +1 -0
- package/es/hooks/index.d.ts +0 -3
- package/es/hooks/index.mjs +4 -0
- package/es/hooks/use-app-inst/use-app-inst.mjs +11 -5
- package/es/hooks/use-modal/use-modal.mjs +16 -10
- package/es/hooks/use-sub-app-utils/use-sub-app-utils.d.ts +8 -12
- package/es/hooks/use-sub-app-utils/use-sub-app-utils.mjs +45 -25
- package/es/hooks/useCopyToClipboard.mjs +50 -50
- package/es/index.d.ts +2 -10
- package/es/index.mjs +130 -119
- package/es/interface/i-dictionary/i-dictionary-item.d.ts +6 -0
- package/es/interface/i-global-register/i-global-register.d.ts +8 -0
- package/es/interface/i-kit-info/i-kit-info.d.ts +20 -0
- package/es/interface/i-pinia-action/i-global-actions.d.ts +4 -6
- package/es/interface/i-pinia-getter/i-global-getters.d.ts +2 -0
- package/es/interface/i-pinia-state/i-global-state.d.ts +12 -12
- package/es/interface/index.d.ts +5 -10
- package/es/interface/model-designer/entity.d.ts +110 -0
- 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-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/provider/index.d.ts +0 -2
- package/es/locale/index.d.ts +11 -3
- package/es/locale/index.mjs +75 -56
- package/es/modules/env-manager/env-manager.const.mjs +16 -8
- package/es/modules/env-manager/env-manager.d.ts +2 -0
- package/es/modules/env-manager/env-manager.interface.d.ts +2 -0
- package/es/modules/env-manager/env-manager.interface.mjs +14 -7
- package/es/modules/env-manager/env-manager.mjs +108 -107
- package/es/modules/error-handler/error-handler.const.mjs +11 -16
- package/es/modules/error-handler/error-strategy.mjs +199 -175
- package/es/modules/error-handler/index.mjs +120 -106
- package/es/modules/mqtt/constants/mqtt.const.d.ts +33 -0
- package/es/modules/mqtt/constants/mqtt.const.mjs +24 -0
- package/es/modules/mqtt/enums/mqtt-status.enum.d.ts +20 -0
- package/es/modules/mqtt/enums/mqtt-status.enum.mjs +24 -0
- package/es/modules/mqtt/index.d.ts +5 -0
- package/es/modules/mqtt/index.mjs +4 -0
- package/es/modules/mqtt/interfaces/i-mqtt.d.ts +139 -0
- package/es/modules/mqtt/mqtt-client.d.ts +117 -0
- package/es/modules/mqtt/mqtt-client.mjs +229 -0
- package/es/modules/mqtt/mqtt-manager.d.ts +87 -0
- package/es/modules/mqtt/mqtt-manager.mjs +118 -0
- package/es/modules/platform-config/constants/index.mjs +4 -0
- package/es/modules/platform-config/constants/login.const.mjs +48 -45
- package/es/modules/platform-config/constants/org.const.mjs +57 -52
- package/es/modules/platform-config/constants/theme.const.mjs +11 -4
- package/es/modules/platform-config/constants/watermark.const.mjs +17 -12
- package/es/modules/platform-config/enums/deploy.enum.mjs +13 -6
- package/es/modules/platform-config/enums/login.enum.mjs +29 -15
- package/es/modules/platform-config/enums/platform.enum.d.ts +0 -15
- package/es/modules/platform-config/enums/platform.enum.mjs +17 -26
- package/es/modules/platform-config/index.d.ts +1 -1
- package/es/modules/platform-config/index.mjs +9 -0
- package/es/modules/platform-config/interfaces/index.d.ts +0 -1
- package/es/modules/platform-config/store.d.ts +5 -1
- package/es/modules/platform-config/store.mjs +68 -76
- package/es/modules/platform-config/useBasicSetting.mjs +47 -35
- package/es/modules/platform-config/useDeploySetting.mjs +29 -21
- package/es/modules/platform-config/useLoginSetting.mjs +151 -173
- package/es/modules/platform-config/useOrgSetting.mjs +63 -62
- package/es/modules/platform-config/useProjectSetting.mjs +14 -6
- package/es/modules/platform-config/useSecuritySetting.d.ts +1 -0
- package/es/modules/platform-config/useSecuritySetting.mjs +81 -56
- package/es/modules/platform-config/useThemeSetting.mjs +78 -59
- package/es/modules/platform-config/useWatermarkSetting.mjs +37 -23
- package/es/modules/user-stores/index.mjs +3 -0
- package/es/modules/user-stores/store/permission.store.mjs +27 -36
- package/es/modules/user-stores/store/tenant.store.mjs +20 -22
- package/es/modules/user-stores/store/user.store.d.ts +149 -1
- package/es/modules/user-stores/store/user.store.mjs +97 -94
- package/es/modules/user-stores/types/user.d.ts +1 -0
- package/es/router/index.mjs +25 -28
- package/es/setup-app.d.ts +8 -0
- package/es/setup-app.mjs +24 -0
- package/es/state/global-pinia-state/global-pinia-state.d.ts +15 -7
- package/es/state/global-pinia-state/global-pinia-state.mjs +43 -57
- package/es/state/index.d.ts +0 -9
- package/es/state/index.mjs +1 -0
- package/es/store/global-store.mjs +44 -51
- package/es/store/index.d.ts +8 -0
- package/es/store/index.mjs +35 -19
- package/es/store/storage-store.d.ts +9 -0
- package/es/store/storage-store.mjs +10 -0
- package/es/types/index.d.ts +22 -0
- package/es/utils/axios/interceptors.mjs +22 -18
- package/es/utils/cache-adapter/cache-adapter.d.ts +2 -0
- package/es/utils/cache-adapter/cache-adapter.mjs +64 -0
- package/es/utils/css-loader/css-loader.d.ts +36 -0
- package/es/utils/css-loader/css-loader.mjs +82 -0
- package/es/utils/design/design.d.ts +11 -0
- package/es/utils/design/design.mjs +21 -0
- package/es/utils/deviceFingerprint.mjs +77 -63
- package/es/utils/dictionary/dictionary.mjs +142 -145
- package/es/utils/file/base64Conver.d.ts +9 -0
- package/es/utils/file/base64Conver.mjs +40 -0
- package/es/utils/file/download.d.ts +44 -0
- package/es/utils/file/download.mjs +101 -0
- package/es/utils/file/parser.d.ts +3 -0
- package/es/utils/file/parser.mjs +29 -0
- package/es/utils/i18n/index.mjs +14 -3
- package/es/utils/index.d.ts +20 -5
- package/es/utils/index.mjs +34 -0
- package/es/utils/is-sort-filed/is-sort-filed.d.ts +10 -0
- package/es/utils/is-sort-filed/is-sort-filed.mjs +45 -0
- package/es/utils/kit-pkg-util/kit-pkg-util.d.ts +32 -0
- package/es/utils/kit-pkg-util/kit-pkg-util.mjs +73 -0
- package/es/utils/linked-list/linked-list.mjs +115 -118
- package/es/utils/linked-node/linked-node.mjs +41 -31
- package/es/utils/lowcode/utils.d.ts +1 -0
- package/es/utils/lowcode/utils.mjs +15 -0
- package/es/utils/lowcode/validate.d.ts +13 -0
- package/es/utils/lowcode/validate.mjs +23 -0
- package/es/utils/mitt/mitt.mjs +4 -4
- package/es/utils/model-loader/model-loader.mjs +288 -325
- package/es/utils/namespace/namespace.d.ts +8 -0
- package/es/utils/namespace/namespace.mjs +180 -163
- package/es/utils/openUtil/index.d.ts +2 -0
- package/es/utils/openUtil/index.mjs +2 -0
- package/es/utils/openUtil/modal/modal.d.ts +61 -0
- package/es/utils/openUtil/modal/modal.mjs +73 -0
- package/es/utils/openUtil/overlay-container/overlay-container.d.ts +100 -0
- package/es/utils/openUtil/overlay-container/overlay-container.mjs +145 -0
- package/es/utils/permission.d.ts +19 -0
- package/es/utils/permission.mjs +34 -0
- package/es/utils/plugin-pkg-util/plugin-pkg-util.d.ts +63 -0
- package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +119 -0
- package/es/utils/plugin-static-resource/plugin-static-resource.d.ts +2 -27
- package/es/utils/plugin-static-resource/plugin-static-resource.mjs +19 -42
- package/es/utils/style/index.mjs +94 -138
- package/es/utils/tools/tools.d.ts +12 -10
- package/es/utils/tools/tools.mjs +128 -53
- package/es/utils/treeHelper/treeHelper.d.ts +10 -9
- package/es/utils/treeHelper/treeHelper.mjs +205 -219
- package/es/utils/uploader/uploader.d.ts +20 -0
- package/es/utils/uploader/uploader.mjs +86 -0
- package/es/utils/useUUid.d.ts +41 -0
- package/es/utils/useUUid.mjs +85 -0
- package/es/utils/util.mjs +55 -35
- package/es/utils/uuid/uuid.d.ts +5 -0
- package/es/utils/uuid/uuid.mjs +38 -0
- package/es/utils/validate.d.ts +5 -0
- package/es/utils/validate.mjs +21 -0
- package/es/utils/value-helper/value-helper.mjs +113 -96
- package/package.json +19 -27
- package/dist/index.esm.min.mjs +0 -6103
- package/dist/index.min.cjs +0 -14
- package/dist/index.system.min.js +0 -14
- package/es/constants/editor-type/editor-type.d.ts +0 -244
- package/es/constants/editor-type/editor-type.mjs +0 -63
- package/es/controller/edit-form/edit-form.controller.d.ts +0 -28
- package/es/controller/edit-form/edit-form.controller.mjs +0 -47
- package/es/controller/editor/color-editor.controller.d.ts +0 -13
- package/es/controller/editor/color-editor.controller.mjs +0 -6
- package/es/controller/editor/length-unit-editor.controller.d.ts +0 -13
- package/es/controller/editor/length-unit-editor.controller.mjs +0 -6
- package/es/controller/editor-item/editor-item.controller.d.ts +0 -14
- package/es/controller/editor-item/editor-item.controller.mjs +0 -8
- package/es/controller/form/form.controller.d.ts +0 -76
- package/es/controller/form/form.controller.mjs +0 -147
- package/es/controller/form-collapse/form-collapse.controller.d.ts +0 -18
- package/es/controller/form-collapse/form-collapse.controller.mjs +0 -14
- package/es/controller/form-collapse-pane/form-collapse-pane.controller.d.ts +0 -18
- package/es/controller/form-collapse-pane/form-collapse-pane.controller.mjs +0 -14
- package/es/controller/form-edit-item/form-edit-item.controller.d.ts +0 -27
- package/es/controller/form-edit-item/form-edit-item.controller.mjs +0 -74
- package/es/controller/form-group/form-group.controller.d.ts +0 -18
- package/es/controller/form-group/form-group.controller.mjs +0 -14
- package/es/controller/form-item/form-item.controller.d.ts +0 -21
- package/es/controller/form-item/form-item.controller.mjs +0 -43
- package/es/controller/form-item-basic/form-item-basic.controller.d.ts +0 -57
- package/es/controller/form-item-basic/form-item-basic.controller.mjs +0 -49
- package/es/controller/form-item-hidden/form-item-hidden.controller.d.ts +0 -17
- package/es/controller/form-item-hidden/form-item-hidden.controller.mjs +0 -7
- package/es/controller/form-tab/form-tab.controller.d.ts +0 -18
- package/es/controller/form-tab/form-tab.controller.mjs +0 -14
- package/es/controller/form-tab-pane/form-tab-pane.controller.d.ts +0 -18
- package/es/controller/form-tab-pane/form-tab-pane.controller.mjs +0 -14
- package/es/controller/gct-form/gct-form.controller.d.ts +0 -101
- package/es/controller/gct-form/gct-form.controller.mjs +0 -214
- package/es/controller/index.d.ts +0 -15
- package/es/hooks/use-form/use-form.d.ts +0 -10
- package/es/hooks/use-form/use-form.mjs +0 -8
- package/es/hooks/use-gct-form-value/use-gct-form-value.d.ts +0 -22
- package/es/hooks/use-gct-form-value/use-gct-form-value.mjs +0 -89
- package/es/hooks/use-namespace/use-namespace.d.ts +0 -9
- package/es/hooks/use-namespace/use-namespace.mjs +0 -18
- package/es/interface/controller/edit-form/edit-form.controller.d.ts +0 -26
- package/es/interface/controller/editor/i-color-editor.controller.d.ts +0 -11
- package/es/interface/controller/editor/i-length-unit-editor.controller.d.ts +0 -11
- package/es/interface/controller/editor-item/editor-item.controller.d.ts +0 -19
- package/es/interface/controller/form/form.controller.d.ts +0 -121
- package/es/interface/controller/form-collapse/form-collapse.controller.d.ts +0 -23
- package/es/interface/controller/form-collapse-pane/form-collapse-pane.controller.d.ts +0 -23
- package/es/interface/controller/form-edit-item/form-edit-item.controller.d.ts +0 -59
- package/es/interface/controller/form-group/form-group.controller.d.ts +0 -24
- package/es/interface/controller/form-hidden-item/form-hidden-item.controller.d.ts +0 -24
- package/es/interface/controller/form-item/form-item.controller.d.ts +0 -40
- package/es/interface/controller/form-item-basic/form-item-basic.controller.d.ts +0 -51
- package/es/interface/controller/form-tab/form-tab.controller.d.ts +0 -23
- package/es/interface/controller/form-tab-pane/form-tab-pane.controller.d.ts +0 -23
- package/es/interface/controller/index.d.ts +0 -14
- package/es/interface/events/form/i-form.event.d.ts +0 -11
- package/es/interface/events/index.d.ts +0 -1
- package/es/interface/form/i-editor/i-check-switch.d.ts +0 -29
- package/es/interface/form/i-editor/i-checkbox-editor.d.ts +0 -9
- package/es/interface/form/i-editor/i-color-editor.d.ts +0 -13
- package/es/interface/form/i-editor/i-editor-basic.d.ts +0 -87
- package/es/interface/form/i-editor/i-icon-select-editor.d.ts +0 -21
- package/es/interface/form/i-editor/i-info-editor.d.ts +0 -21
- package/es/interface/form/i-editor/i-length-unit-editor.d.ts +0 -13
- package/es/interface/form/i-editor/i-model-field-select-editor.d.ts +0 -18
- package/es/interface/form/i-editor/i-number-editor.d.ts +0 -21
- package/es/interface/form/i-editor/i-picker-editor.d.ts +0 -30
- package/es/interface/form/i-editor/i-radio-editor.d.ts +0 -21
- package/es/interface/form/i-editor/i-select-editor.d.ts +0 -14
- package/es/interface/form/i-editor/i-span-editor.d.ts +0 -30
- package/es/interface/form/i-editor/i-switch-editor.d.ts +0 -14
- package/es/interface/form/i-editor/i-text-editor.d.ts +0 -46
- package/es/interface/form/i-editor/i-textarea-editor.d.ts +0 -25
- package/es/interface/form/i-form/i-edit-form.d.ts +0 -48
- package/es/interface/form/i-form/i-form-collapse-pane.d.ts +0 -30
- package/es/interface/form/i-form/i-form-collapse.d.ts +0 -35
- package/es/interface/form/i-form/i-form-container.d.ts +0 -53
- package/es/interface/form/i-form/i-form-edit-item.d.ts +0 -140
- package/es/interface/form/i-form/i-form-group-container.d.ts +0 -24
- package/es/interface/form/i-form/i-form-group.d.ts +0 -35
- package/es/interface/form/i-form/i-form-hidden-item.d.ts +0 -11
- package/es/interface/form/i-form/i-form-item-basic.d.ts +0 -126
- package/es/interface/form/i-form/i-form-item.d.ts +0 -11
- package/es/interface/form/i-form/i-form-tab-pane.d.ts +0 -23
- package/es/interface/form/i-form/i-form-tab.d.ts +0 -21
- package/es/interface/form/i-form/i-form.d.ts +0 -79
- package/es/interface/form/index.d.ts +0 -29
- package/es/interface/i-message-util/i-message-util.d.ts +0 -78
- package/es/interface/layout/i-flex-layout/i-flex-container.d.ts +0 -75
- package/es/interface/layout/i-flex-layout/i-flex-item.d.ts +0 -51
- package/es/interface/layout/i-grid-layout/i-grid-container.d.ts +0 -29
- package/es/interface/layout/i-grid-layout/i-grid-item-span.d.ts +0 -54
- package/es/interface/layout/i-grid-layout/i-grid-item.d.ts +0 -37
- package/es/interface/layout/i-layout-basis/i-layout-container-basis.d.ts +0 -11
- package/es/interface/layout/index.d.ts +0 -6
- package/es/interface/provider/i-editor-provider/i-editor-provider.d.ts +0 -24
- package/es/interface/provider/i-form-item-provider/i-form-item-provider.d.ts +0 -44
- package/es/interface/state/form/form.state.d.ts +0 -53
- package/es/interface/state/form-collapse/form-collapse.state.d.ts +0 -11
- package/es/interface/state/form-collapse-pane/form-collapse-pane.state.d.ts +0 -11
- package/es/interface/state/form-edit-item/form-edit-item.state.d.ts +0 -38
- package/es/interface/state/form-group/form-group.state.d.ts +0 -21
- package/es/interface/state/form-hidden-item/form-hidden-item.state.d.ts +0 -5
- package/es/interface/state/form-item/form-item.state.d.ts +0 -20
- package/es/interface/state/form-item-basic/form-item-basic.state.d.ts +0 -63
- package/es/interface/state/form-tab/form-tab.state.d.ts +0 -19
- package/es/interface/state/form-tab-pane/form-tab-pane.state.d.ts +0 -11
- package/es/interface/state/index.d.ts +0 -10
- package/es/modules/platform-config/interfaces/global-setting.interface.d.ts +0 -7
- package/es/register/editor-register/editor-register.d.ts +0 -49
- package/es/register/editor-register/editor-register.mjs +0 -57
- package/es/register/form-item-register/form-item-register.d.ts +0 -36
- package/es/register/form-item-register/form-item-register.mjs +0 -42
- package/es/register/index.d.ts +0 -21
- package/es/register/render-register/render-register.d.ts +0 -59
- package/es/register/render-register/render-register.mjs +0 -63
- package/es/state/form/form.state.d.ts +0 -24
- package/es/state/form/form.state.mjs +0 -16
- package/es/state/form-collapse/form-collapse.state.d.ts +0 -14
- package/es/state/form-collapse/form-collapse.state.mjs +0 -6
- package/es/state/form-collapse-pane/form-collapse-pane.state.d.ts +0 -14
- package/es/state/form-collapse-pane/form-collapse-pane.state.mjs +0 -6
- package/es/state/form-edit-item/form-edit-item.state.d.ts +0 -17
- package/es/state/form-edit-item/form-edit-item.state.mjs +0 -10
- package/es/state/form-group/form-group.state.d.ts +0 -21
- package/es/state/form-group/form-group.state.mjs +0 -14
- package/es/state/form-item/form-item.state.d.ts +0 -14
- package/es/state/form-item/form-item.state.mjs +0 -6
- package/es/state/form-item-basic/form-item-basic.state.d.ts +0 -17
- package/es/state/form-item-basic/form-item-basic.state.mjs +0 -9
- package/es/state/form-tab/form-tab.state.d.ts +0 -15
- package/es/state/form-tab/form-tab.state.mjs +0 -7
- package/es/state/form-tab-pane/form-tab-pane.state.d.ts +0 -14
- package/es/state/form-tab-pane/form-tab-pane.state.mjs +0 -6
- package/es/utils/props/gct-form-item/gct-form-item.props.d.ts +0 -63
- package/es/utils/props/gct-form-item/gct-form-item.props.mjs +0 -66
- package/es/utils/props/index.d.ts +0 -1
- package/es/utils/width-install/width-install.d.ts +0 -17
- package/es/utils/width-install/width-install.mjs +0 -19
package/es/index.mjs
CHANGED
|
@@ -1,120 +1,131 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
1
|
+
import { AggTypes, CARD_TRIGGER_ENUM, ContentEnum, CreateType, FIELD_TYPE, FIELD_TYPE_BASIC, FIELD_TYPE_CATEGORY, FIELD_TYPE_LOGIC, FIELD_TYPE_TRACE, FieldIconMap, FieldTypeToJs, GENDER_TYPE, MaterialEnum, MenuType, MessageType, NodesConfigTypeEnum, OpenMode, PermissionModeEnum, PersonalCenterType, ProjectName, RouterTransitionEnum, SIDE_BAR_MINI_WIDTH, SIDE_BAR_SHOW_TIT_MINI_WIDTH, SessionTimeoutProcessingEnum, SettingButtonPositionEnum, TODO_TYPE, ThemeEnum, UniqueConstraintType, WorkbenchType, selectionTypeEnums } from "./enums/appEnum.mjs";
|
|
2
|
+
import { EntityModelCategoryEnum, EntityModelTypeEnum, FieldDefaultValueTypeEnum, FieldSysVarDefaultValueEnum, PatternEnum, SHOW_FIELDTYPES, TypeEnum, UserServiceType, pageLayoutModeEnum, scriptTypeEnum } from "./enums/app-designer/index.mjs";
|
|
3
|
+
import { ASSIGNMENTSTRATEGY_ENUM, BorderStyle, COLUMNS_TYPE, Dependency_ENUM, DisplayTagTypeEnum, DisplayType, EventCategory, GLOBAL_TYPE, GLOBAL_VAR_TYPE, INNER_EVENT, PanelEnum, Postion, ProgressTypeEnum, PropGroup, SUB_TABLE_EDIT_MODE, SUB_TABLE_OPE_EVENT_TYPE, SUB_TABLE_OPE_EVENT_TYPE_INLINE, StyleGroup, TagTypeEnum, TextAlign, TextDecoration, VERIFICATIONCONDITIONS_TYPE, tagEnum } from "./enums/page-designer/panel.mjs";
|
|
4
|
+
import { ToolkitEnum } from "./enums/page-designer/toolkit.mjs";
|
|
5
|
+
import { BuiltinType, ButtonColorTheme, ButtonColorType, ButtonGroupType, ButtonSize, ButtonStyle, ButtonType, ButtonTypeGroup, ButtonType_vant, CURRENCY_ENUM, CURRENCY_LANG_ENUM, CategoryTypeEnum, DatasourceTypeEnum, DateRangeEnums, DisplayEnums, KeyMode, ListTreeSearchTypeEnum, Platform, PrintModeEnums, ResetRuleType, RowSelectionTypeEnums, SelectPickerEnums, SignatureStyleEnum, SignatureTypeEnum, StatisticalMethodEnums, TIMETYPE_ENUM, TIMETYPE_LANG_ENUM, TableEditingMethodEnum, TableSearchTypeEnum, TableTypeEnum, TransactionMode, WidgetInScopeEnum, openWindowEnums, operateSysEnums } from "./enums/page-designer/widget.mjs";
|
|
6
|
+
import { BindCmpStyleEnum, BindCmpStyleTypeEnum, Ch_BindCmpStyleEnum, FormComponents, SCOPE, SCOPEINFO, SearchComponents, bindCmpStyleMap, buttonShowType, controlConfigEnum, fixedAlignENUM, mobileSearchListByFieldType, padSearchListByFieldType, searchListByFieldType, sortTypeEnum, statisticalMethodEnum, tableColumnTypeEnum, tableColumnWidthEnum, tabsTypeENUM, transformBindCmp2CmpType } from "./enums/page-designer/designer.mjs";
|
|
7
|
+
import { FormDesignEnum, PrintTypeEnum } from "./enums/page-designer/layout.mjs";
|
|
8
|
+
import { PrintResourceEnum } from "./enums/developer-center/integration.mjs";
|
|
9
|
+
import { AppPublishStateEnum } from "./enums/appStateEnum.mjs";
|
|
10
|
+
import { BasicAction, CustomAction, DefaultActions, PlatformSettingActions } from "./enums/authActionEnum.mjs";
|
|
11
|
+
import { screenEnum, screenMap, sizeEnum } from "./enums/breakpointEnum.mjs";
|
|
12
|
+
import { APP_DARK_MODE_KEY_, APP_LOCAL_CACHE_KEY, APP_SESSION_CACHE_KEY, CacheTypeEnum, DESIGNER_SESSION_CACHE_KEY, LOCALE_KEY, LOCALE_LIST_KEY, LOCAL_I18N_TRANSLATE, LOCK_INFO_KEY, MULTIPLE_TABS_KEY, PROJ_CFG_KEY, ROLES_KEY, TENANT_KEY, TOKEN_KEY, USER_INFO_KEY } from "./enums/cacheEnum.mjs";
|
|
13
|
+
import { AGLINE_ENUMS, ButtonOpeEnum, RdoButtonOpeEnum, SEARCH_SERVICE, notSingleArr, presetColor } from "./enums/designEnum.mjs";
|
|
14
|
+
import { ErrorTypeEnum, ExceptionEnum } from "./enums/exceptionEnum.mjs";
|
|
15
|
+
import { BizServiceEnum, ContentTypeEnum, RequestEnum, ResultEnum } from "./enums/httpEnum.mjs";
|
|
16
|
+
import { DeviceParamsTypeEnum, PlatformSettingEnum, PlatformType, nullDisplayEnum } from "./enums/globalEnum.mjs";
|
|
17
|
+
import { MenuModeEnum, MenuSplitTyeEnum, MenuTypeEnum, MixSidebarTriggerEnum, TopMenuAlignEnum, TriggerEnum } from "./enums/menuEnum.mjs";
|
|
18
|
+
import { PageEnum } from "./enums/pageEnum.mjs";
|
|
19
|
+
import { RoleEnum } from "./enums/roleEnum.mjs";
|
|
20
|
+
import { SizeEnum, UploadTypeEnum } from "./enums/sizeEnum.mjs";
|
|
21
|
+
import { BpmnNodeTypeEnum, ButtonTypeEnum, ExamineAndApproveStateEnum, OpinionTypeEnum, ProcessStatusEnum, ch_ProcessStatusMap } from "./enums/processEnum.mjs";
|
|
22
|
+
import { PluginModeEnum } from "./enums/plugin-enum.mjs";
|
|
23
|
+
import { DataSetReturnTypeEnum, EntityFormulaReturnTypeEnum, ExpressionModeEnum, ExpressionTabEnum, IdentifierAddon, OperatorTypeEnum, ReturnTypeEnum, VarTypeEnum, zeroWidthSpace } from "./enums/expressionEnum.mjs";
|
|
24
|
+
import { GctMqttTopsEnum, GlobalParamEnum } from "./enums/index.mjs";
|
|
25
|
+
import { cssLoader } from "./utils/css-loader/css-loader.mjs";
|
|
26
|
+
import { gctMemoizeAsync } from "./utils/cache-adapter/cache-adapter.mjs";
|
|
27
|
+
import { DictionaryUtil } from "./utils/dictionary/dictionary.mjs";
|
|
28
|
+
import { t } from "./utils/i18n/index.mjs";
|
|
29
|
+
import { LinkedNode } from "./utils/linked-node/linked-node.mjs";
|
|
30
|
+
import { LinkedList } from "./utils/linked-list/linked-list.mjs";
|
|
31
|
+
import { insertCustomCssToHead } from "./utils/lowcode/utils.mjs";
|
|
32
|
+
import { buildItemRules } from "./utils/lowcode/validate.mjs";
|
|
33
|
+
import { mitt } from "./utils/mitt/mitt.mjs";
|
|
34
|
+
import { modelLoader } from "./utils/model-loader/model-loader.mjs";
|
|
35
|
+
import { ModeFnMap, ModeTabDict, ModeTabMap, ReturnTypeMaps } from "./constants/expression-type/modeCfg.mjs";
|
|
36
|
+
import { BuiltOperators, allOperator, booleanOperator, getOperatorList, numberOperator, returnBolOperator } from "./constants/expression-type/BuiltOperators.mjs";
|
|
37
|
+
import { CUSTOM_LANGUAGE, CUSTOM_THEME } from "./constants/expression-type/editor.mjs";
|
|
38
|
+
import { biBackFunctionGroup, biBackFunctionMap, functionGroup, functionMap, ipaasBackFunctionGroup, ipaasBackFunctionMap } from "./constants/expression-type/function.mjs";
|
|
39
|
+
import { FUNC_KEYS } from "./constants/expression-type/FunctionKeys.mjs";
|
|
40
|
+
import { SYSTEM_VAR_PREFIX, booleanTypes, innerVarIds, innerVarList, numberTypes } from "./constants/expression-type/variable.mjs";
|
|
41
|
+
import { ARRAY_TYPE, BOOLEAN_TYPE, FUN_BOL_TYPE, FUN_NUM_TYPE, FUN_OBJ_OR_ARR_TYPE, FUN_STR_TYPE, NUMBER_TYPE, OBJECT_TYPE, RETURN_TYPE_MAP, STRING_TYPE, WinMsgTypeEnum, operator2FuncMap } from "./constants/expression-type/index.mjs";
|
|
42
|
+
import { EditorRegisterConst } from "./constants/editor-register/editor-register.mjs";
|
|
43
|
+
import { FormContainerType } from "./constants/form-container-type/form-container-type.mjs";
|
|
44
|
+
import { DefaultDateTypeConst } from "./constants/default-date-type/default-date-type.mjs";
|
|
45
|
+
import { CoreConst } from "./constants/core.mjs";
|
|
46
|
+
import { ModelTypeOptions } from "./constants/page-designer/model.mjs";
|
|
47
|
+
import { timeReg, urlReg } from "./constants/page-designer/regex.mjs";
|
|
48
|
+
import { APP_INST, PLUGIN_BASE_URL, STYLE_NAMESPACE_TAG, VITE_MINIO_PATH } from "./constants/index.mjs";
|
|
49
|
+
import { Namespace, useNamespace } from "./utils/namespace/namespace.mjs";
|
|
50
|
+
import { Modal } from "./utils/openUtil/modal/modal.mjs";
|
|
51
|
+
import { OverlayContainer } from "./utils/openUtil/overlay-container/overlay-container.mjs";
|
|
52
|
+
import { KitPkgUtil } from "./utils/kit-pkg-util/kit-pkg-util.mjs";
|
|
53
|
+
import { PluginPgkUtil } from "./utils/plugin-pkg-util/plugin-pkg-util.mjs";
|
|
54
|
+
import { PluginStaticResource } from "./utils/plugin-static-resource/plugin-static-resource.mjs";
|
|
55
|
+
import { createWhiteImageWithText, deepMerge, getTenant, getToken, isMobile, parseMatrixParams, setTenant, setToken, stringifyMatrixParams } from "./utils/tools/tools.mjs";
|
|
56
|
+
import { buildShortUUID, buildUUID, sha256, uuid2 } from "./utils/uuid/uuid.mjs";
|
|
57
|
+
import { afterFieldSet, afterValueSet, cacheFnReturn, computedEx, emitFieldSet, parseValueUnit } from "./utils/value-helper/value-helper.mjs";
|
|
58
|
+
import { interceptors } from "./utils/axios/interceptors.mjs";
|
|
59
|
+
import { getDeviceFingerprint, getMobileBrowserFingerprint, getPageIdentification } from "./utils/deviceFingerprint.mjs";
|
|
60
|
+
import { TreeHelper } from "./utils/treeHelper/treeHelper.mjs";
|
|
61
|
+
import { calcFontStyle, calcStyle } from "./utils/style/index.mjs";
|
|
62
|
+
import { genUrl, openWindow } from "./utils/util.mjs";
|
|
63
|
+
import { isSortFiled } from "./utils/is-sort-filed/is-sort-filed.mjs";
|
|
64
|
+
import { randomUUID, useUUid } from "./utils/useUUid.mjs";
|
|
65
|
+
import { hasEmojiAndSpecStr, hasEmojiAndSpecStr1, validateEmoji, validateIsModelName, validateModelName } from "./utils/validate.mjs";
|
|
66
|
+
import { Uploader } from "./utils/uploader/uploader.mjs";
|
|
67
|
+
import { dataURLtoBlob, urlToBase64 } from "./utils/file/base64Conver.mjs";
|
|
68
|
+
import { downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, uploaderFiles } from "./utils/file/download.mjs";
|
|
69
|
+
import { sizeParser, typeParser } from "./utils/file/parser.mjs";
|
|
70
|
+
import { isMultipleOperator } from "./utils/design/design.mjs";
|
|
71
|
+
import { permission } from "./utils/permission.mjs";
|
|
72
|
+
import "./utils/index.mjs";
|
|
73
|
+
import { LoginSortTypeEnum, LoginTypeEnum } from "./modules/platform-config/enums/login.enum.mjs";
|
|
74
|
+
import { KickRuleEnum, PassRule } from "./modules/platform-config/enums/platform.enum.mjs";
|
|
75
|
+
import { DeployModeEnum } from "./modules/platform-config/enums/deploy.enum.mjs";
|
|
76
|
+
import { OTHER_LOGIN_KEYS, SYSTEM_LOGIN_KEYS, getLoginTypeOptions } from "./modules/platform-config/constants/login.const.mjs";
|
|
77
|
+
import { RELATION_FIELDS } from "./modules/platform-config/constants/org.const.mjs";
|
|
78
|
+
import { MENU_COLLAPSED_WIDTH, MENU_WIDTH_RANGE, THEME_COLORS } from "./modules/platform-config/constants/theme.const.mjs";
|
|
79
|
+
import { WATERMARK_INIT_DATA } from "./modules/platform-config/constants/watermark.const.mjs";
|
|
80
|
+
import { usePlatformConfigStore } from "./modules/platform-config/store.mjs";
|
|
81
|
+
import "./modules/platform-config/index.mjs";
|
|
82
|
+
import { globalRefStorage } from "./store/storage-store.mjs";
|
|
83
|
+
import { GlobalStoreUtil } from "./store/index.mjs";
|
|
84
|
+
import { EnvironmentType } from "./modules/env-manager/env-manager.interface.mjs";
|
|
85
|
+
import { 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 "./modules/env-manager/env-manager.const.mjs";
|
|
86
|
+
import { EnvironmentManager } from "./modules/env-manager/env-manager.mjs";
|
|
87
|
+
import { MQTT_CLIENT_EVENT, MQTT_DEFAULT_CONNECT_OPTIONS } from "./modules/mqtt/constants/mqtt.const.mjs";
|
|
88
|
+
import { MqttConnectionStatus } from "./modules/mqtt/enums/mqtt-status.enum.mjs";
|
|
89
|
+
import { MqttClient } from "./modules/mqtt/mqtt-client.mjs";
|
|
90
|
+
import { MqttManager } from "./modules/mqtt/mqtt-manager.mjs";
|
|
91
|
+
import "./modules/mqtt/index.mjs";
|
|
92
|
+
import { LocaleUtil, setupI18n } from "./locale/index.mjs";
|
|
93
|
+
import { GctGlobal } from "./global/gct/gct.mjs";
|
|
94
|
+
import "./global/index.mjs";
|
|
95
|
+
import { useAppInst } from "./hooks/use-app-inst/use-app-inst.mjs";
|
|
96
|
+
import { useModal } from "./hooks/use-modal/use-modal.mjs";
|
|
97
|
+
import { useIFrameProps, useWuJieBus, useWuJieProps } from "./hooks/use-sub-app-utils/use-sub-app-utils.mjs";
|
|
98
|
+
import { copyTextToClipboard, isDef, useCopyToClipboard } from "./hooks/useCopyToClipboard.mjs";
|
|
99
|
+
import "./hooks/index.mjs";
|
|
100
|
+
import { ErrorStrategyFactory } from "./modules/error-handler/error-strategy.mjs";
|
|
101
|
+
import { ErrorHandler, setupErrorHandler } from "./modules/error-handler/index.mjs";
|
|
102
|
+
import { useUserStore } from "./modules/user-stores/store/user.store.mjs";
|
|
103
|
+
import { useTenantStore } from "./modules/user-stores/store/tenant.store.mjs";
|
|
104
|
+
import { usePermissionStore } from "./modules/user-stores/store/permission.store.mjs";
|
|
105
|
+
import "./modules/user-stores/index.mjs";
|
|
106
|
+
import { createAppVue } from "./create-app-vue.mjs";
|
|
107
|
+
import { setupApp } from "./setup-app.mjs";
|
|
108
|
+
import { api } from "@gct-paas/api";
|
|
109
|
+
//#region src/index.ts
|
|
110
|
+
/**
|
|
111
|
+
* 核心包全局对象初始化,挂载到 window._gct 上
|
|
112
|
+
*
|
|
113
|
+
* @export
|
|
114
|
+
*/
|
|
115
|
+
function onInit() {
|
|
116
|
+
if (window._gct) {
|
|
117
|
+
console.warn("核心包已安装,请勿重复安装!");
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
console.info("核心包安装成功!");
|
|
121
|
+
window._gct = new GctGlobal();
|
|
122
|
+
Object.defineProperty(window._gct, "api", { get() {
|
|
123
|
+
return api;
|
|
124
|
+
} });
|
|
125
|
+
Object.defineProperty(window, "_api", { get() {
|
|
126
|
+
return api;
|
|
127
|
+
} });
|
|
118
128
|
}
|
|
119
|
-
|
|
120
|
-
|
|
129
|
+
onInit();
|
|
130
|
+
//#endregion
|
|
131
|
+
export { AGLINE_ENUMS, APP_DARK_MODE_KEY_, APP_INST, APP_LOCAL_CACHE_KEY, APP_PREVIEW_PATH_REG, APP_PROD_PATH_REG, APP_RUN_PATH_REG, APP_SESSION_CACHE_KEY, ARRAY_TYPE, ASSIGNMENTSTRATEGY_ENUM, AggTypes, AppPublishStateEnum, BOOLEAN_TYPE, BasicAction, BindCmpStyleEnum, BindCmpStyleTypeEnum, BizServiceEnum, BorderStyle, BpmnNodeTypeEnum, BuiltOperators, BuiltinType, ButtonColorTheme, ButtonColorType, ButtonGroupType, ButtonOpeEnum, ButtonSize, ButtonStyle, ButtonType, ButtonTypeEnum, ButtonTypeGroup, ButtonType_vant, CARD_TRIGGER_ENUM, COLUMNS_TYPE, CURRENCY_ENUM, CURRENCY_LANG_ENUM, CUSTOM_LANGUAGE, CUSTOM_THEME, CacheTypeEnum, CategoryTypeEnum, Ch_BindCmpStyleEnum, ContentEnum, ContentTypeEnum, CoreConst, CreateType, CustomAction, DESIGNER_SESSION_CACHE_KEY, DEV_SINGLE_PATH_REG, DataSetReturnTypeEnum, DatasourceTypeEnum, DateRangeEnums, DefaultActions, DefaultDateTypeConst, Dependency_ENUM, DeployModeEnum, DeviceParamsTypeEnum, DictionaryUtil, DisplayEnums, DisplayTagTypeEnum, DisplayType, EditorRegisterConst, EntityFormulaReturnTypeEnum, EntityModelCategoryEnum, EntityModelTypeEnum, EnvironmentManager, EnvironmentType, ErrorHandler, ErrorStrategyFactory, ErrorTypeEnum, EventCategory, ExamineAndApproveStateEnum, ExceptionEnum, ExpressionModeEnum, ExpressionTabEnum, FIELD_TYPE, FIELD_TYPE_BASIC, FIELD_TYPE_CATEGORY, FIELD_TYPE_LOGIC, FIELD_TYPE_TRACE, FUNC_KEYS, FUN_BOL_TYPE, FUN_NUM_TYPE, FUN_OBJ_OR_ARR_TYPE, FUN_STR_TYPE, FieldDefaultValueTypeEnum, FieldIconMap, FieldSysVarDefaultValueEnum, FieldTypeToJs, FormComponents, FormContainerType, FormDesignEnum, GENDER_TYPE, GLOBAL_TYPE, GLOBAL_VAR_TYPE, GctGlobal, GctMqttTopsEnum, GlobalParamEnum, GlobalStoreUtil, HOST_REG, INNER_EVENT, IP_REG, IdentifierAddon, KeyMode, KickRuleEnum, KitPkgUtil, LOCALE_KEY, LOCALE_LIST_KEY, LOCAL_I18N_TRANSLATE, LOCK_INFO_KEY, LinkedList, LinkedNode, ListTreeSearchTypeEnum, LocaleUtil, LoginSortTypeEnum, LoginTypeEnum, MENU_COLLAPSED_WIDTH, MENU_WIDTH_RANGE, MQTT_CLIENT_EVENT, MQTT_DEFAULT_CONNECT_OPTIONS, MULTIPLE_TABS_KEY, MaterialEnum, MenuModeEnum, MenuSplitTyeEnum, MenuType, MenuTypeEnum, MessageType, MixSidebarTriggerEnum, Modal, ModeFnMap, ModeTabDict, ModeTabMap, ModelTypeOptions, MqttClient, MqttConnectionStatus, MqttManager, NUMBER_TYPE, Namespace, NodesConfigTypeEnum, OBJECT_TYPE, OTHER_LOGIN_KEYS, OpenMode, OperatorTypeEnum, OpinionTypeEnum, OverlayContainer, PLUGIN_BASE_URL, PROJ_CFG_KEY, PageEnum, PanelEnum, PassRule, PatternEnum, PermissionModeEnum, PersonalCenterType, Platform, PlatformSettingActions, PlatformSettingEnum, PlatformType, PluginModeEnum, PluginPgkUtil, PluginStaticResource, Postion, PrintModeEnums, PrintResourceEnum, PrintTypeEnum, ProcessStatusEnum, ProgressTypeEnum, ProjectName, PropGroup, RELATION_FIELDS, RETURN_TYPE_MAP, ROLES_KEY, RdoButtonOpeEnum, RequestEnum, ResetRuleType, ResultEnum, ReturnTypeEnum, ReturnTypeMaps, RoleEnum, RouterTransitionEnum, RowSelectionTypeEnums, SCOPE, SCOPEINFO, SEARCH_SERVICE, SHOW_FIELDTYPES, SIDE_BAR_MINI_WIDTH, SIDE_BAR_SHOW_TIT_MINI_WIDTH, STRING_TYPE, STYLE_NAMESPACE_TAG, SUB_TABLE_EDIT_MODE, SUB_TABLE_OPE_EVENT_TYPE, SUB_TABLE_OPE_EVENT_TYPE_INLINE, SYSTEM_LOGIN_KEYS, SYSTEM_VAR_PREFIX, SearchComponents, SelectPickerEnums, SessionTimeoutProcessingEnum, SettingButtonPositionEnum, SignatureStyleEnum, SignatureTypeEnum, SizeEnum, StatisticalMethodEnums, StyleGroup, TENANT_KEY, TEST_SINGLE_PATH_REG, THEME_COLORS, TIMETYPE_ENUM, TIMETYPE_LANG_ENUM, TODO_TYPE, TOKEN_KEY, TableEditingMethodEnum, TableSearchTypeEnum, TableTypeEnum, TagTypeEnum, TextAlign, TextDecoration, ThemeEnum, ToolkitEnum, TopMenuAlignEnum, TransactionMode, TreeHelper, TriggerEnum, TypeEnum, USER_INFO_KEY, UniqueConstraintType, UploadTypeEnum, Uploader, UserServiceType, VERIFICATIONCONDITIONS_TYPE, VITE_MINIO_PATH, VarTypeEnum, WATERMARK_INIT_DATA, WidgetInScopeEnum, WinMsgTypeEnum, WorkbenchType, afterFieldSet, afterValueSet, allOperator, biBackFunctionGroup, biBackFunctionMap, bindCmpStyleMap, booleanOperator, booleanTypes, buildItemRules, buildShortUUID, buildUUID, buttonShowType, cacheFnReturn, calcFontStyle, calcStyle, ch_ProcessStatusMap, computedEx, controlConfigEnum, copyTextToClipboard, createAppVue, createWhiteImageWithText, cssLoader, dataURLtoBlob, deepMerge, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, emitFieldSet, fixedAlignENUM, functionGroup, functionMap, gctMemoizeAsync, genUrl, getDeviceFingerprint, getLoginTypeOptions, getMobileBrowserFingerprint, getOperatorList, getPageIdentification, getTenant, getToken, globalRefStorage, hasEmojiAndSpecStr, hasEmojiAndSpecStr1, innerVarIds, innerVarList, insertCustomCssToHead, interceptors, ipaasBackFunctionGroup, ipaasBackFunctionMap, isDef, isMobile, isMultipleOperator, isSortFiled, mitt, mobileSearchListByFieldType, modelLoader, notSingleArr, nullDisplayEnum, numberOperator, numberTypes, openWindow, openWindowEnums, operateSysEnums, operator2FuncMap, padSearchListByFieldType, pageLayoutModeEnum, parseMatrixParams, parseValueUnit, permission, presetColor, randomUUID, returnBolOperator, screenEnum, screenMap, scriptTypeEnum, searchListByFieldType, selectionTypeEnums, setTenant, setToken, setupApp, setupErrorHandler, setupI18n, sha256, sizeEnum, sizeParser, sortTypeEnum, statisticalMethodEnum, stringifyMatrixParams, t, tableColumnTypeEnum, tableColumnWidthEnum, tabsTypeENUM, tagEnum, timeReg, transformBindCmp2CmpType, typeParser, uploaderFiles, urlReg, urlToBase64, useAppInst, useCopyToClipboard, useIFrameProps, useModal, useNamespace, usePermissionStore, usePlatformConfigStore, useTenantStore, useUUid, useUserStore, useWuJieBus, useWuJieProps, uuid2, validateEmoji, validateIsModelName, validateModelName, zeroWidthSpace };
|
|
@@ -23,14 +23,12 @@ export interface IGlobalActions {
|
|
|
23
23
|
*
|
|
24
24
|
* @param {string} id
|
|
25
25
|
*/
|
|
26
|
-
/**
|
|
27
|
-
* 设置多语言
|
|
28
|
-
*
|
|
29
|
-
* @param {string} lang
|
|
30
|
-
*/
|
|
31
|
-
setLang(lang: string): void;
|
|
32
26
|
/**
|
|
33
27
|
* 加载应用信息
|
|
34
28
|
*/
|
|
35
29
|
loadAppInfo(): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* 加载应用常量
|
|
32
|
+
*/
|
|
33
|
+
loadEmptySetting(): Promise<void>;
|
|
36
34
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { StateTree } from 'pinia';
|
|
2
|
-
import { ProjectName } from '../../enums';
|
|
2
|
+
import { ProjectName, nullDisplayEnum } from '../../enums';
|
|
3
3
|
import { IAppContext } from '../i-app-context/i-app-context';
|
|
4
|
+
import { UserLoginResp } from '@gct-paas/api/platform';
|
|
4
5
|
/**
|
|
5
6
|
* 全局 store 状态
|
|
6
7
|
*
|
|
@@ -20,21 +21,20 @@ export interface IGlobalState extends StateTree {
|
|
|
20
21
|
* @type {ProjectName}
|
|
21
22
|
*/
|
|
22
23
|
projectName: ProjectName;
|
|
23
|
-
/**
|
|
24
|
-
* 租户标识
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
*/
|
|
28
|
-
/**
|
|
29
|
-
* 多语言环境
|
|
30
|
-
*
|
|
31
|
-
* @default zh-CN
|
|
32
|
-
* @type {string}
|
|
33
|
-
*/
|
|
34
24
|
/**
|
|
35
25
|
* 应用信息, todo: 等 api 包完成后,实际类型从 api 导入
|
|
36
26
|
*
|
|
37
27
|
* @type {IObject}
|
|
38
28
|
*/
|
|
39
29
|
appInfo: IObject;
|
|
30
|
+
/**
|
|
31
|
+
* 用户信息(user.store.ts 中加载后赋值)
|
|
32
|
+
*
|
|
33
|
+
* @type {UserLoginResp}
|
|
34
|
+
*/
|
|
35
|
+
userInfo: UserLoginResp;
|
|
36
|
+
globalSetting: {
|
|
37
|
+
emptyDisplay: emptyDisplayType;
|
|
38
|
+
};
|
|
40
39
|
}
|
|
40
|
+
export type emptyDisplayType = keyof typeof nullDisplayEnum;
|
package/es/interface/index.d.ts
CHANGED
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
export type * from './controller';
|
|
2
|
-
export type * from './events';
|
|
3
|
-
export type * from './form';
|
|
4
1
|
export type * from './i-app-context/i-app-context';
|
|
2
|
+
export type { IGlobalRegister } from './i-global-register/i-global-register';
|
|
5
3
|
export type { IDictionary } from './i-dictionary/i-dictionary';
|
|
6
4
|
export type { IDictionaryItem } from './i-dictionary/i-dictionary-item';
|
|
7
5
|
export type { IFieldCodeChain } from './i-field-code-chain/i-field-code-chain';
|
|
8
6
|
export type { GlobalVar } from './i-global-var/i-global-var';
|
|
9
|
-
export type { IMessageParams, IMessageUtil, } from './i-message-util/i-message-util';
|
|
10
7
|
export type { IMobileHomeMenuItem } from './i-mobile-home-menu-item/i-mobile-home-menu-item';
|
|
11
|
-
export type { IModal } from './i-modal/i-modal';
|
|
12
|
-
export type { IModalData } from './i-modal-data/i-modal-data';
|
|
13
8
|
export type { IStyleIMportMap } from './i-import-style-map/i-import-style-map';
|
|
9
|
+
export type { IKitInfo } from './i-kit-info/i-kit-info';
|
|
14
10
|
export type { IGlobalActions } from './i-pinia-action/i-global-actions';
|
|
15
11
|
export type { IGlobalGetters } from './i-pinia-getter/i-global-getters';
|
|
16
|
-
export type { IGlobalState } from './i-pinia-state/i-global-state';
|
|
17
|
-
export type * from './
|
|
18
|
-
export type * from './open-util
|
|
12
|
+
export type { IGlobalState, emptyDisplayType, } from './i-pinia-state/i-global-state';
|
|
13
|
+
export type * from './model-designer/entity';
|
|
14
|
+
export type * from './open-util';
|
|
19
15
|
export type * from './provider';
|
|
20
|
-
export type * from './state';
|
|
21
16
|
export type * from './style';
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { FIELD_TYPE, FieldDefaultValueTypeEnum, FieldSysVarDefaultValueEnum, UniqueConstraintType } from '../../enums';
|
|
2
|
+
export interface FieldFormState {
|
|
3
|
+
id?: string;
|
|
4
|
+
modelKey: string;
|
|
5
|
+
name: string;
|
|
6
|
+
key: string;
|
|
7
|
+
type: FIELD_TYPE;
|
|
8
|
+
required: number;
|
|
9
|
+
parentField?: number;
|
|
10
|
+
uniqueConstraint: {
|
|
11
|
+
type: UniqueConstraintType;
|
|
12
|
+
fieldKeys?: string[];
|
|
13
|
+
};
|
|
14
|
+
/** 默认值 */
|
|
15
|
+
defaultValue: {
|
|
16
|
+
type: FieldDefaultValueTypeEnum;
|
|
17
|
+
value?: string | number | boolean | FieldSysVarDefaultValueEnum;
|
|
18
|
+
name?: string;
|
|
19
|
+
};
|
|
20
|
+
description: string;
|
|
21
|
+
/** 字段特性配置 */
|
|
22
|
+
specificConfig: {
|
|
23
|
+
/**数值/长度限制 */
|
|
24
|
+
minValue?: number;
|
|
25
|
+
/**数值/长度限制 */
|
|
26
|
+
maxValue?: number;
|
|
27
|
+
/**数值精度 */
|
|
28
|
+
digits?: number;
|
|
29
|
+
/** 布尔 true 文案 */
|
|
30
|
+
true?: string;
|
|
31
|
+
/** 布尔 false 文案 */
|
|
32
|
+
false?: string;
|
|
33
|
+
/** 上传数量 */
|
|
34
|
+
maxNumber?: number;
|
|
35
|
+
/** 文件大小 */
|
|
36
|
+
fileSize?: number;
|
|
37
|
+
/** 文件类型 */
|
|
38
|
+
fileTypes?: string[];
|
|
39
|
+
ruleType?: string;
|
|
40
|
+
/** 显示规则 人员、模型应用 */
|
|
41
|
+
displayRule?: {
|
|
42
|
+
exp: string;
|
|
43
|
+
exprInEditor: string;
|
|
44
|
+
relationColumns: string[];
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* 公式新增参数
|
|
48
|
+
* 2024年11月21日
|
|
49
|
+
*/
|
|
50
|
+
expType?: string;
|
|
51
|
+
/**实时计算 */
|
|
52
|
+
expRealCompute?: boolean;
|
|
53
|
+
/** 公式配置 */
|
|
54
|
+
expConfig?: unknown | {
|
|
55
|
+
exp: string;
|
|
56
|
+
expression: string;
|
|
57
|
+
relationColumns: string[];
|
|
58
|
+
};
|
|
59
|
+
/** 汇总配置 */
|
|
60
|
+
aggConfig?: {
|
|
61
|
+
/** 汇总类型 */
|
|
62
|
+
aggFunc: string;
|
|
63
|
+
/** 汇总字段名 */
|
|
64
|
+
relationColumns: string[];
|
|
65
|
+
};
|
|
66
|
+
ruleConfig?: unknown | {
|
|
67
|
+
nodes: IObject[];
|
|
68
|
+
designJson: IObject;
|
|
69
|
+
fieldKey: string;
|
|
70
|
+
};
|
|
71
|
+
[k: string]: unknown;
|
|
72
|
+
/**枚举 */
|
|
73
|
+
customEnumConfig?: {
|
|
74
|
+
enabled: number;
|
|
75
|
+
values: string[];
|
|
76
|
+
};
|
|
77
|
+
/**前端公式 */
|
|
78
|
+
formulaConfig?: {
|
|
79
|
+
exp: string;
|
|
80
|
+
expression: string;
|
|
81
|
+
showQrCode?: boolean;
|
|
82
|
+
digits?: number;
|
|
83
|
+
truelabel?: string;
|
|
84
|
+
falselabel?: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
/**关联信息KEY 如:枚举/主子/关联 */
|
|
88
|
+
bindInfo?: string;
|
|
89
|
+
/** 主子/引用关联模型类型 */
|
|
90
|
+
refModelType?: string;
|
|
91
|
+
i18nConfig?: string;
|
|
92
|
+
/**
|
|
93
|
+
* 普通数据类型 值为fieldType
|
|
94
|
+
* 映射类型(公式、函数等实际映射的类型)
|
|
95
|
+
*/
|
|
96
|
+
mappingType?: string;
|
|
97
|
+
/** 主子关联 绑定子模型字段 */
|
|
98
|
+
bindFieldKey?: string;
|
|
99
|
+
/** 在线表单新建字段中的子模型key */
|
|
100
|
+
subModelKey?: string;
|
|
101
|
+
}
|
|
102
|
+
export interface SpecificConfig {
|
|
103
|
+
exp?: string;
|
|
104
|
+
expression?: string;
|
|
105
|
+
relationColumns?: IObject[];
|
|
106
|
+
aggFunc?: string;
|
|
107
|
+
bindField?: string;
|
|
108
|
+
refModelType?: string;
|
|
109
|
+
digits?: number;
|
|
110
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 消息参数
|
|
3
|
+
*
|
|
4
|
+
* @export
|
|
5
|
+
* @interface IMessageParams
|
|
6
|
+
*/
|
|
7
|
+
export interface IMessageParams {
|
|
8
|
+
/**
|
|
9
|
+
* 持续时间,单位:秒,默认:1.5
|
|
10
|
+
*
|
|
11
|
+
* @type {number}
|
|
12
|
+
*/
|
|
13
|
+
duration?: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 顶部居中显示,并自动消失
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IMessageUtil
|
|
20
|
+
*/
|
|
21
|
+
export interface IMessageUtil {
|
|
22
|
+
/**
|
|
23
|
+
* 普通消息
|
|
24
|
+
*
|
|
25
|
+
* @param {string} msg
|
|
26
|
+
* @param {IMessageParams} [params]
|
|
27
|
+
* @return {*} {Promise<void>}
|
|
28
|
+
*/
|
|
29
|
+
info(msg: string, params?: IMessageParams): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* 成功消息
|
|
32
|
+
*
|
|
33
|
+
* @param {string} msg
|
|
34
|
+
* @param {IMessageParams} [params]
|
|
35
|
+
* @return {*} {Promise<void>}
|
|
36
|
+
*/
|
|
37
|
+
success(msg: string, params?: IMessageParams): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* 警告消息
|
|
40
|
+
*
|
|
41
|
+
* @param {string} msg
|
|
42
|
+
* @param {IMessageParams} [params]
|
|
43
|
+
* @return {*} {Promise<void>}
|
|
44
|
+
*/
|
|
45
|
+
warning(msg: string, params?: IMessageParams): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* 错误消息
|
|
48
|
+
*
|
|
49
|
+
* @param {string} msg
|
|
50
|
+
* @param {IMessageParams} [params]
|
|
51
|
+
* @return {*} {Promise<void>}
|
|
52
|
+
*/
|
|
53
|
+
error(msg: string, params?: IMessageParams): Promise<void>;
|
|
54
|
+
}
|