@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
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { FIELD_TYPE } from "../../enums/appEnum.mjs";
|
|
2
|
+
import "../../enums/index.mjs";
|
|
3
|
+
//#region src/utils/is-sort-filed/is-sort-filed.ts
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* @author zhanghanrui
|
|
8
|
+
* @date 2024-09-04 09:09:08
|
|
9
|
+
* @export
|
|
10
|
+
* @param {string} fieldType 字段类型, 只支持[文本、整数、长整数、小数、精度小数、日期、时间、日期时间、布尔、人员关联、人员多选、部门关联、部门多选、枚举关联、枚举多选、模型关联、模型多选、版本模型关联、公式、汇总、序列号]
|
|
11
|
+
* @return {*} {boolean}
|
|
12
|
+
*/
|
|
13
|
+
function isSortFiled(fieldType) {
|
|
14
|
+
switch (fieldType) {
|
|
15
|
+
case FIELD_TYPE.TEXT:
|
|
16
|
+
case FIELD_TYPE.INTEGER:
|
|
17
|
+
case FIELD_TYPE.LONG:
|
|
18
|
+
case FIELD_TYPE.DOUBLE:
|
|
19
|
+
case FIELD_TYPE.DECIMAL:
|
|
20
|
+
case FIELD_TYPE.DATE:
|
|
21
|
+
case FIELD_TYPE.TIME:
|
|
22
|
+
case FIELD_TYPE.DATE_TIME:
|
|
23
|
+
case FIELD_TYPE.BOOLEAN:
|
|
24
|
+
case FIELD_TYPE.USER:
|
|
25
|
+
case FIELD_TYPE.USER_MULTI:
|
|
26
|
+
case FIELD_TYPE.ORG:
|
|
27
|
+
case FIELD_TYPE.ORG_MULTI:
|
|
28
|
+
case FIELD_TYPE.ENUM:
|
|
29
|
+
case FIELD_TYPE.ENUM_MULTI:
|
|
30
|
+
case FIELD_TYPE.REF:
|
|
31
|
+
case FIELD_TYPE.REF_MULTI:
|
|
32
|
+
case FIELD_TYPE.RDO_REF:
|
|
33
|
+
case FIELD_TYPE.EXPRESSION:
|
|
34
|
+
case FIELD_TYPE.AGG:
|
|
35
|
+
case FIELD_TYPE.SERIAL:
|
|
36
|
+
case FIELD_TYPE.DOCUMENT_TEMPLATE:
|
|
37
|
+
case FIELD_TYPE.PRINTER:
|
|
38
|
+
case FIELD_TYPE.TRANSACTION:
|
|
39
|
+
case FIELD_TYPE.MESSAGE_TMPL:
|
|
40
|
+
case FIELD_TYPE.RANGE_USER: return true;
|
|
41
|
+
default: return false;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { isSortFiled };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PluginModeEnum } from '../../enums';
|
|
2
|
+
import { IKitInfo } from '../../interface';
|
|
3
|
+
import { App } from 'vue';
|
|
4
|
+
/**
|
|
5
|
+
* 用于加载套件包的工具类
|
|
6
|
+
*
|
|
7
|
+
* @export
|
|
8
|
+
* @class KitPkgUtil
|
|
9
|
+
*/
|
|
10
|
+
export declare class KitPkgUtil {
|
|
11
|
+
protected static readonly KIT_PKG_BASE_PATH = "/kits";
|
|
12
|
+
protected static cache: Map<string, IKitInfo>;
|
|
13
|
+
protected static joinPaths(...paths: string[]): string;
|
|
14
|
+
/**
|
|
15
|
+
* 加载套件包配置
|
|
16
|
+
*
|
|
17
|
+
* @static
|
|
18
|
+
* @param {string} kit
|
|
19
|
+
* @return {*} {(Promise<IKitInfo | undefined>)}
|
|
20
|
+
*/
|
|
21
|
+
static loadKitPkgInfo(kit: string): Promise<IKitInfo | undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* 加载套件包内的插件
|
|
24
|
+
*
|
|
25
|
+
* @static
|
|
26
|
+
* @param {App} app
|
|
27
|
+
* @param {(string | string[])} kit
|
|
28
|
+
* @param {PluginModeEnum} mode
|
|
29
|
+
* @return {*} {Promise<void>}
|
|
30
|
+
*/
|
|
31
|
+
static loadKits(app: App, kit: string | string[], mode: PluginModeEnum): Promise<void>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
//#region src/utils/kit-pkg-util/kit-pkg-util.ts
|
|
2
|
+
/**
|
|
3
|
+
* 用于加载套件包的工具类
|
|
4
|
+
*
|
|
5
|
+
* @export
|
|
6
|
+
* @class KitPkgUtil
|
|
7
|
+
*/
|
|
8
|
+
var KitPkgUtil = class {
|
|
9
|
+
static KIT_PKG_BASE_PATH = "/kits";
|
|
10
|
+
static cache = /* @__PURE__ */ new Map();
|
|
11
|
+
static joinPaths(...paths) {
|
|
12
|
+
return paths.filter((p) => p && p.length > 0).map((p, index) => {
|
|
13
|
+
let normalized = p;
|
|
14
|
+
if (normalized.startsWith("./")) normalized = normalized.slice(2);
|
|
15
|
+
if (normalized.endsWith("/") && index < paths.length - 1) normalized = normalized.slice(0, -1);
|
|
16
|
+
return normalized;
|
|
17
|
+
}).join("/");
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 加载套件包配置
|
|
21
|
+
*
|
|
22
|
+
* @static
|
|
23
|
+
* @param {string} kit
|
|
24
|
+
* @return {*} {(Promise<IKitInfo | undefined>)}
|
|
25
|
+
*/
|
|
26
|
+
static async loadKitPkgInfo(kit) {
|
|
27
|
+
if (this.cache.has(kit)) return this.cache.get(kit);
|
|
28
|
+
try {
|
|
29
|
+
const url = this.joinPaths(this.KIT_PKG_BASE_PATH, kit.toUpperCase(), "kit-info.json");
|
|
30
|
+
const response = await fetch(url);
|
|
31
|
+
if (!response.ok) throw new Error(`Failed to load kit package from ${url}`);
|
|
32
|
+
const config = await response.json();
|
|
33
|
+
this.cache.set(kit, config);
|
|
34
|
+
return config;
|
|
35
|
+
} catch (error) {
|
|
36
|
+
console.error(`Error loading kit package ${kit}:`, error);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* 加载套件包内的插件
|
|
41
|
+
*
|
|
42
|
+
* @static
|
|
43
|
+
* @param {App} app
|
|
44
|
+
* @param {(string | string[])} kit
|
|
45
|
+
* @param {PluginModeEnum} mode
|
|
46
|
+
* @return {*} {Promise<void>}
|
|
47
|
+
*/
|
|
48
|
+
static async loadKits(app, kit, mode) {
|
|
49
|
+
const kits = Array.isArray(kit) ? kit : [kit];
|
|
50
|
+
for (const k of kits) {
|
|
51
|
+
if (this.cache.has(k)) {
|
|
52
|
+
console.warn(`Kit package ${k} is already loaded, skipping.`);
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const config = await this.loadKitPkgInfo(k);
|
|
56
|
+
if (config) {
|
|
57
|
+
const loaderUrl = this.joinPaths(this.KIT_PKG_BASE_PATH, config.kit.toUpperCase(), mode, `loader.esm.min.js?version=${config.version || "0.0.0"}`);
|
|
58
|
+
try {
|
|
59
|
+
const module = await import(
|
|
60
|
+
/* @vite-ignore */
|
|
61
|
+
loaderUrl
|
|
62
|
+
);
|
|
63
|
+
if (module && module.default) app.use(module.default);
|
|
64
|
+
else console.warn(`Kit ${config.kit} does not export a default function`);
|
|
65
|
+
} catch (error) {
|
|
66
|
+
console.error(`Error loading kit ${config.kit} from ${loaderUrl}:`, error);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
//#endregion
|
|
73
|
+
export { KitPkgUtil };
|
|
@@ -1,119 +1,116 @@
|
|
|
1
|
-
import { LinkedNode } from
|
|
2
|
-
|
|
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
|
-
}
|
|
118
|
-
|
|
1
|
+
import { LinkedNode } from "../linked-node/linked-node.mjs";
|
|
2
|
+
//#region src/utils/linked-list/linked-list.ts
|
|
3
|
+
/**
|
|
4
|
+
* 链表列表
|
|
5
|
+
*
|
|
6
|
+
* @author zhanghanrui
|
|
7
|
+
* @date 2024-07-31 15:07:37
|
|
8
|
+
* @export
|
|
9
|
+
* @class LinkedList
|
|
10
|
+
*/
|
|
11
|
+
var LinkedList = class {
|
|
12
|
+
/**
|
|
13
|
+
* 当前激活节点
|
|
14
|
+
*
|
|
15
|
+
* @author zhanghanrui
|
|
16
|
+
* @date 2024-07-31 15:07:02
|
|
17
|
+
* @type {(LinkedNode<T> | null)}
|
|
18
|
+
*/
|
|
19
|
+
active = null;
|
|
20
|
+
/**
|
|
21
|
+
* 新增节点
|
|
22
|
+
*
|
|
23
|
+
* @author zhanghanrui
|
|
24
|
+
* @date 2024-07-31 15:07:45
|
|
25
|
+
* @param {T} data
|
|
26
|
+
*/
|
|
27
|
+
add(data) {
|
|
28
|
+
if (!this.active) this.active = new LinkedNode(data);
|
|
29
|
+
else {
|
|
30
|
+
if (this.active.next) {
|
|
31
|
+
let next = this.active.next;
|
|
32
|
+
while (next) {
|
|
33
|
+
next = next.next;
|
|
34
|
+
if (next) next.clear();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const node = new LinkedNode(data, null, this.active);
|
|
38
|
+
this.active.next = node;
|
|
39
|
+
this.active = node;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* 删除节点
|
|
44
|
+
*
|
|
45
|
+
* @author zhanghanrui
|
|
46
|
+
* @date 2024-07-31 15:07:11
|
|
47
|
+
* @param {LinkedNode<T>} node
|
|
48
|
+
*/
|
|
49
|
+
delete(node) {
|
|
50
|
+
const { prev, next } = node;
|
|
51
|
+
if (prev) prev.next = next;
|
|
52
|
+
if (next) next.prev = prev;
|
|
53
|
+
node.clear();
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* 上一个节点
|
|
57
|
+
*
|
|
58
|
+
* @author zhanghanrui
|
|
59
|
+
* @date 2024-07-31 16:07:41
|
|
60
|
+
*/
|
|
61
|
+
prev() {
|
|
62
|
+
if (this.active && this.active.prev) this.active = this.active.prev;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* 下一个节点
|
|
66
|
+
*
|
|
67
|
+
* @author zhanghanrui
|
|
68
|
+
* @date 2024-07-31 16:07:57
|
|
69
|
+
*/
|
|
70
|
+
next() {
|
|
71
|
+
if (this.active && this.active.next) this.active = this.active.next;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* 清理所有缓存
|
|
75
|
+
*
|
|
76
|
+
* @author zhanghanrui
|
|
77
|
+
* @date 2024-07-31 16:07:43
|
|
78
|
+
*/
|
|
79
|
+
clearAll() {
|
|
80
|
+
if (this.active) {
|
|
81
|
+
let prev = this.active.prev;
|
|
82
|
+
let next = this.active.next;
|
|
83
|
+
while (prev) {
|
|
84
|
+
prev.clear();
|
|
85
|
+
prev = prev.prev;
|
|
86
|
+
}
|
|
87
|
+
while (next) {
|
|
88
|
+
next.clear();
|
|
89
|
+
next = next.next;
|
|
90
|
+
}
|
|
91
|
+
this.active.clear();
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* 是否可以撤销
|
|
96
|
+
*
|
|
97
|
+
* @author zhanghanrui
|
|
98
|
+
* @date 2024-08-21 15:08:57
|
|
99
|
+
* @return {*} {boolean}
|
|
100
|
+
*/
|
|
101
|
+
canUndo() {
|
|
102
|
+
return !!this.active && !!this.active.prev;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* 是否可以重做
|
|
106
|
+
*
|
|
107
|
+
* @author zhanghanrui
|
|
108
|
+
* @date 2024-08-21 15:08:33
|
|
109
|
+
* @return {*} {boolean}
|
|
110
|
+
*/
|
|
111
|
+
canRedo() {
|
|
112
|
+
return !!this.active && !!this.active.next;
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
//#endregion
|
|
119
116
|
export { LinkedList };
|
|
@@ -1,32 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
1
|
+
//#region src/utils/linked-node/linked-node.ts
|
|
2
|
+
/**
|
|
3
|
+
* 链表节点
|
|
4
|
+
*
|
|
5
|
+
* @author zhanghanrui
|
|
6
|
+
* @date 2024-07-31 15:07:21
|
|
7
|
+
* @export
|
|
8
|
+
* @class LinkedNode
|
|
9
|
+
* @template T
|
|
10
|
+
*/
|
|
11
|
+
var LinkedNode = class {
|
|
12
|
+
data;
|
|
13
|
+
next;
|
|
14
|
+
prev;
|
|
15
|
+
/**
|
|
16
|
+
* Creates an instance of LinkedNode.
|
|
17
|
+
*
|
|
18
|
+
* @author zhanghanrui
|
|
19
|
+
* @date 2024-07-31 15:07:43
|
|
20
|
+
* @param {T} data 当前节点数据
|
|
21
|
+
* @param {(LinkedNode | null)} [next=null] 下一个节点
|
|
22
|
+
* @param {(LinkedNode | null)} [prev=null] 上一个节点
|
|
23
|
+
*/
|
|
24
|
+
constructor(data, next = null, prev = null) {
|
|
25
|
+
this.data = data;
|
|
26
|
+
this.next = next;
|
|
27
|
+
this.prev = prev;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* 清理链表,避免内存泄漏
|
|
31
|
+
*
|
|
32
|
+
* @author zhanghanrui
|
|
33
|
+
* @date 2024-07-31 15:07:34
|
|
34
|
+
*/
|
|
35
|
+
clear() {
|
|
36
|
+
this.data = null;
|
|
37
|
+
this.next = null;
|
|
38
|
+
this.prev = null;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
32
42
|
export { LinkedNode };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const insertCustomCssToHead: (cssCode: string, modalId?: string) => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { isEmpty } from "lodash-es";
|
|
2
|
+
//#region src/utils/lowcode/utils.ts
|
|
3
|
+
var insertCustomCssToHead = function(cssCode, modalId = "") {
|
|
4
|
+
const head = document.getElementsByTagName("head")[0];
|
|
5
|
+
const oldStyle = document.getElementById("gct-custom-css" + modalId);
|
|
6
|
+
if (oldStyle) head.removeChild(oldStyle);
|
|
7
|
+
const newStyle = document.createElement("style");
|
|
8
|
+
newStyle.id = "gct-custom-css" + modalId;
|
|
9
|
+
newStyle.type = "text/css";
|
|
10
|
+
if (isEmpty(modalId)) newStyle.innerHTML = cssCode;
|
|
11
|
+
else newStyle.innerHTML = `#${modalId}{${cssCode}}`;
|
|
12
|
+
head.appendChild(newStyle);
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { insertCustomCssToHead };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface Validation {
|
|
2
|
+
required?: boolean;
|
|
3
|
+
reg?: string | RegExp;
|
|
4
|
+
regHint?: string;
|
|
5
|
+
validateFn?: any;
|
|
6
|
+
}
|
|
7
|
+
interface Rule {
|
|
8
|
+
required?: boolean;
|
|
9
|
+
message?: string;
|
|
10
|
+
validator?: any;
|
|
11
|
+
}
|
|
12
|
+
export declare function buildItemRules(validation: Validation): Rule[];
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { t } from "../i18n/index.mjs";
|
|
2
|
+
//#region src/utils/lowcode/validate.ts
|
|
3
|
+
function buildItemRules(validation) {
|
|
4
|
+
const rules = [];
|
|
5
|
+
if (validation.required) rules.push({
|
|
6
|
+
required: true,
|
|
7
|
+
message: t("sys.notNull")
|
|
8
|
+
});
|
|
9
|
+
if (validation.reg) {
|
|
10
|
+
const { reg, regHint } = validation;
|
|
11
|
+
const regExg = new RegExp(reg);
|
|
12
|
+
const validator = (val) => regExg.test(val);
|
|
13
|
+
rules.push({
|
|
14
|
+
validator,
|
|
15
|
+
message: regHint ?? t("sys.regError")
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
const validateEvent = validation.validateFn;
|
|
19
|
+
if (validateEvent) rules.push({ validator: validateEvent });
|
|
20
|
+
return rules;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { buildItemRules };
|
package/es/utils/mitt/mitt.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Mitt from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import Mitt from "mitt";
|
|
2
|
+
//#region src/utils/mitt/mitt.ts
|
|
3
|
+
var mitt = Mitt();
|
|
4
|
+
//#endregion
|
|
5
5
|
export { mitt };
|