@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
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IEditorBasic } from './i-editor-basic';
|
|
2
|
-
import { EditorType } from '../../../constants';
|
|
3
|
-
/**
|
|
4
|
-
* 颜色选择编辑器模型
|
|
5
|
-
* @author lingxiaoming
|
|
6
|
-
* @date 2024-07-17 04:32:52
|
|
7
|
-
* @export
|
|
8
|
-
* @interface IColor
|
|
9
|
-
* @extends {IEditorBasic}
|
|
10
|
-
*/
|
|
11
|
-
export interface IColorEditor extends IEditorBasic {
|
|
12
|
-
readonly type: EditorType.COLOR;
|
|
13
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { IFormEditItemController } from '../../controller';
|
|
2
|
-
import { IEditorProvider } from '../../provider';
|
|
3
|
-
import { IFormItem } from '../i-form/i-form-item';
|
|
4
|
-
/**
|
|
5
|
-
* 编辑器基础接口
|
|
6
|
-
*
|
|
7
|
-
* @export
|
|
8
|
-
* @interface IEditorBasic
|
|
9
|
-
*/
|
|
10
|
-
export interface IEditorBasic {
|
|
11
|
-
/**
|
|
12
|
-
* 编辑器类型
|
|
13
|
-
*
|
|
14
|
-
* @type {string}
|
|
15
|
-
*/
|
|
16
|
-
type: string;
|
|
17
|
-
/**
|
|
18
|
-
* 输入框占提示位符
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
*/
|
|
22
|
-
placeholder?: string;
|
|
23
|
-
/**
|
|
24
|
-
* 格式化配置
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
|
-
format?: string | ((data: IData, model: IFormItem, c: IFormEditItemController) => string);
|
|
28
|
-
/**
|
|
29
|
-
* 是否只读模式
|
|
30
|
-
*
|
|
31
|
-
* @type {boolean}
|
|
32
|
-
*/
|
|
33
|
-
readonly?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* 是否默认为禁用状态
|
|
36
|
-
*
|
|
37
|
-
* @type {boolean}
|
|
38
|
-
*/
|
|
39
|
-
disabled?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* 编辑器高度
|
|
42
|
-
*
|
|
43
|
-
* @type {string}
|
|
44
|
-
*/
|
|
45
|
-
height?: string;
|
|
46
|
-
/**
|
|
47
|
-
* 编辑器宽度
|
|
48
|
-
*
|
|
49
|
-
* @type {string}
|
|
50
|
-
*/
|
|
51
|
-
width?: string;
|
|
52
|
-
/**
|
|
53
|
-
* 最大字符或值
|
|
54
|
-
*
|
|
55
|
-
* @type {number}
|
|
56
|
-
*/
|
|
57
|
-
max?: number;
|
|
58
|
-
/**
|
|
59
|
-
* 最小字符或值
|
|
60
|
-
*
|
|
61
|
-
* @type {number}
|
|
62
|
-
*/
|
|
63
|
-
min?: number;
|
|
64
|
-
/**
|
|
65
|
-
* 额外的编辑器参数
|
|
66
|
-
*
|
|
67
|
-
* @type {*}
|
|
68
|
-
*/
|
|
69
|
-
props?: IParams;
|
|
70
|
-
/**
|
|
71
|
-
* 定制化编辑器适配器
|
|
72
|
-
*
|
|
73
|
-
* @type {IEditorProvider}
|
|
74
|
-
*/
|
|
75
|
-
provider?: IEditorProvider;
|
|
76
|
-
/**
|
|
77
|
-
* 额外的类名
|
|
78
|
-
*
|
|
79
|
-
* @type {string}
|
|
80
|
-
*/
|
|
81
|
-
class?: string;
|
|
82
|
-
/**
|
|
83
|
-
* 额外行内的样式
|
|
84
|
-
* @type {StyleValue}
|
|
85
|
-
*/
|
|
86
|
-
style?: IParams;
|
|
87
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { EditorType } from '../../../constants';
|
|
2
|
-
import { IEditorBasic } from './i-editor-basic';
|
|
3
|
-
/**
|
|
4
|
-
* 图标选择编辑器
|
|
5
|
-
*
|
|
6
|
-
* @author zhanghanrui
|
|
7
|
-
* @date 2024-07-26 10:07:49
|
|
8
|
-
* @export
|
|
9
|
-
* @interface IIconSelectEditor
|
|
10
|
-
* @extends {IEditorBasic}
|
|
11
|
-
*/
|
|
12
|
-
export interface IIconSelectEditor extends IEditorBasic {
|
|
13
|
-
readonly type: EditorType.ICON_SELECT;
|
|
14
|
-
label?: string;
|
|
15
|
-
size?: number;
|
|
16
|
-
showColor?: boolean;
|
|
17
|
-
showBackground?: boolean;
|
|
18
|
-
defaultIcon?: string;
|
|
19
|
-
defaultColor?: string;
|
|
20
|
-
defaultBackground?: string;
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { EditorType } from '../../../constants';
|
|
2
|
-
import { ITextEditor } from './i-text-editor';
|
|
3
|
-
export interface IInfoEditor extends ITextEditor {
|
|
4
|
-
readonly type: EditorType.INFO;
|
|
5
|
-
/**
|
|
6
|
-
* 图标
|
|
7
|
-
*
|
|
8
|
-
* @author zhanghanrui
|
|
9
|
-
* @date 2024-06-06 17:06:39
|
|
10
|
-
* @type {string}
|
|
11
|
-
*/
|
|
12
|
-
icon?: string;
|
|
13
|
-
/**
|
|
14
|
-
* 呈现内容
|
|
15
|
-
*
|
|
16
|
-
* @author zhanghanrui
|
|
17
|
-
* @date 2024-06-06 17:06:51
|
|
18
|
-
* @type {string}
|
|
19
|
-
*/
|
|
20
|
-
content?: string;
|
|
21
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { EditorType } from '../../../constants';
|
|
2
|
-
import { IEditorBasic } from './i-editor-basic';
|
|
3
|
-
/**
|
|
4
|
-
* 带单位长度字符串编辑器模型
|
|
5
|
-
* @author lingxiaoming
|
|
6
|
-
* @date 2024-07-17 04:32:52
|
|
7
|
-
* @export
|
|
8
|
-
* @interface ILengthUnit
|
|
9
|
-
* @extends {IEditorBasic}
|
|
10
|
-
*/
|
|
11
|
-
export interface ILengthUnitEditor extends IEditorBasic {
|
|
12
|
-
readonly type: EditorType.LENGTH_UNIT;
|
|
13
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IEditorBasic } from '../..';
|
|
2
|
-
import { FIELD_TYPE } from '../../../enums';
|
|
3
|
-
import { EditorType } from '../../../constants';
|
|
4
|
-
export interface IModelFieldSelectEditor extends IEditorBasic {
|
|
5
|
-
readonly type: EditorType.FORM_MODEL_FIELD_SELECT;
|
|
6
|
-
/**
|
|
7
|
-
* 排除的字段类型
|
|
8
|
-
*
|
|
9
|
-
* @type {FIELD_TYPE[]}
|
|
10
|
-
*/
|
|
11
|
-
excludeFieldType?: FIELD_TYPE[];
|
|
12
|
-
/**
|
|
13
|
-
* 排除的字段键
|
|
14
|
-
*
|
|
15
|
-
* @type {string[]}
|
|
16
|
-
*/
|
|
17
|
-
excludeFieldKey?: string[];
|
|
18
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ITextEditor } from './i-text-editor';
|
|
2
|
-
import { EditorType } from '../../../constants';
|
|
3
|
-
/**
|
|
4
|
-
* 数值编辑器
|
|
5
|
-
*
|
|
6
|
-
* @author zhanghanrui
|
|
7
|
-
* @date 2024-04-02 17:04:17
|
|
8
|
-
* @export
|
|
9
|
-
* @interface INumberEditor
|
|
10
|
-
* @extends {ITextEditor}
|
|
11
|
-
*/
|
|
12
|
-
export interface INumberEditor extends ITextEditor {
|
|
13
|
-
readonly type: EditorType.NUMBER;
|
|
14
|
-
/**
|
|
15
|
-
* 小数精度个数
|
|
16
|
-
* @author lxm
|
|
17
|
-
* @date 2024-05-10 02:53:51
|
|
18
|
-
* @type {number}
|
|
19
|
-
*/
|
|
20
|
-
precision?: number;
|
|
21
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { IEditorBasic } from './i-editor-basic';
|
|
2
|
-
import { EditorType } from '../../../constants';
|
|
3
|
-
/**
|
|
4
|
-
* 数据选择编辑器
|
|
5
|
-
*
|
|
6
|
-
* @author zhanghanrui
|
|
7
|
-
* @date 2024-04-02 11:04:42
|
|
8
|
-
* @export
|
|
9
|
-
* @interface IPickerEditor
|
|
10
|
-
* @extends {IEditorBasic}
|
|
11
|
-
*/
|
|
12
|
-
export interface IPickerEditor extends IEditorBasic {
|
|
13
|
-
readonly type: EditorType.PICKER;
|
|
14
|
-
/**
|
|
15
|
-
* 是否支持搜索
|
|
16
|
-
*
|
|
17
|
-
* @author zhanghanrui
|
|
18
|
-
* @date 2024-04-02 17:04:53
|
|
19
|
-
* @type {boolean}
|
|
20
|
-
*/
|
|
21
|
-
isSearch?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* 显示字段文本名称
|
|
24
|
-
*
|
|
25
|
-
* @author zhanghanrui
|
|
26
|
-
* @date 2024-10-12 15:10:47
|
|
27
|
-
* @type {string}
|
|
28
|
-
*/
|
|
29
|
-
nameField?: string;
|
|
30
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IEditorBasic } from './i-editor-basic';
|
|
2
|
-
import { EditorType } from '../../../constants';
|
|
3
|
-
/**
|
|
4
|
-
* 单选框编辑器
|
|
5
|
-
*
|
|
6
|
-
* @author zhanghanrui
|
|
7
|
-
* @date 2024-04-02 11:04:43
|
|
8
|
-
* @export
|
|
9
|
-
* @interface IRadioEditor
|
|
10
|
-
* @extends {IEditorBasic}
|
|
11
|
-
*/
|
|
12
|
-
export interface IRadioEditor extends IEditorBasic {
|
|
13
|
-
readonly type: EditorType.RADIO;
|
|
14
|
-
/**
|
|
15
|
-
* 是否是按钮样式
|
|
16
|
-
* @author lingxiaoming
|
|
17
|
-
* @date 2024-07-18 07:43:27
|
|
18
|
-
* @type {boolean}
|
|
19
|
-
*/
|
|
20
|
-
buttonMode?: boolean;
|
|
21
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IEditorBasic } from './i-editor-basic';
|
|
2
|
-
import { EditorType } from '../../../constants';
|
|
3
|
-
/**
|
|
4
|
-
* 下拉选择编辑器
|
|
5
|
-
*
|
|
6
|
-
* @author zhanghanrui
|
|
7
|
-
* @date 2024-04-02 11:04:43
|
|
8
|
-
* @export
|
|
9
|
-
* @interface ISelectEditor
|
|
10
|
-
* @extends {IEditorBasic}
|
|
11
|
-
*/
|
|
12
|
-
export interface ISelectEditor extends IEditorBasic {
|
|
13
|
-
readonly type: EditorType.SELECT;
|
|
14
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { EditorType } from '../../../constants';
|
|
2
|
-
import { ITextEditor } from './i-text-editor';
|
|
3
|
-
/**
|
|
4
|
-
* 纯文本展示编辑器
|
|
5
|
-
*
|
|
6
|
-
* @author zhanghanrui
|
|
7
|
-
* @date 2024-04-08 13:04:47
|
|
8
|
-
* @export
|
|
9
|
-
* @interface ISpanEditor
|
|
10
|
-
* @extends {ITextEditor}
|
|
11
|
-
*/
|
|
12
|
-
export interface ISpanEditor extends ITextEditor {
|
|
13
|
-
readonly type: EditorType.SPAN;
|
|
14
|
-
/**
|
|
15
|
-
* 是否可复制
|
|
16
|
-
*
|
|
17
|
-
* @default false
|
|
18
|
-
* @author zhanghanrui
|
|
19
|
-
* @date 2024-04-08 13:04:21
|
|
20
|
-
* @type {boolean}
|
|
21
|
-
*/
|
|
22
|
-
copy?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* 展示的前置字体图标
|
|
25
|
-
*
|
|
26
|
-
* @author zhanghanrui
|
|
27
|
-
* @date 2024-04-24 16:04:23
|
|
28
|
-
*/
|
|
29
|
-
icon?: string | ((data: IData) => string);
|
|
30
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { EditorType } from '../../../constants';
|
|
2
|
-
import { IEditorBasic } from './i-editor-basic';
|
|
3
|
-
/**
|
|
4
|
-
* 开关编辑器
|
|
5
|
-
*
|
|
6
|
-
* @author zhanghanrui
|
|
7
|
-
* @date 2024-07-29 13:07:53
|
|
8
|
-
* @export
|
|
9
|
-
* @interface ISwitchEditor
|
|
10
|
-
* @extends {IEditorBasic}
|
|
11
|
-
*/
|
|
12
|
-
export interface ISwitchEditor extends IEditorBasic {
|
|
13
|
-
readonly type: EditorType.SWITCH;
|
|
14
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { IEditorBasic } from './i-editor-basic';
|
|
2
|
-
import { EditorType } from '../../../constants';
|
|
3
|
-
/**
|
|
4
|
-
* 文本编辑器
|
|
5
|
-
*
|
|
6
|
-
* @author zhanghanrui
|
|
7
|
-
* @date 2024-04-02 11:04:04
|
|
8
|
-
* @export
|
|
9
|
-
* @interface ITextEditor
|
|
10
|
-
* @extends {IEditorBasic}
|
|
11
|
-
*/
|
|
12
|
-
export interface ITextEditor extends IEditorBasic {
|
|
13
|
-
readonly type: EditorType.TEXT | string;
|
|
14
|
-
/**
|
|
15
|
-
* 前缀
|
|
16
|
-
*
|
|
17
|
-
* @author zhanghanrui
|
|
18
|
-
* @date 2024-04-02 11:04:39
|
|
19
|
-
* @type {string}
|
|
20
|
-
*/
|
|
21
|
-
prefix?: string;
|
|
22
|
-
/**
|
|
23
|
-
* 后缀
|
|
24
|
-
*
|
|
25
|
-
* @author zhanghanrui
|
|
26
|
-
* @date 2024-04-02 11:04:42
|
|
27
|
-
* @type {string}
|
|
28
|
-
*/
|
|
29
|
-
suffix?: string;
|
|
30
|
-
/**
|
|
31
|
-
* 前置标签
|
|
32
|
-
*
|
|
33
|
-
* @author zhanghanrui
|
|
34
|
-
* @date 2024-04-02 11:04:16
|
|
35
|
-
* @type {string}
|
|
36
|
-
*/
|
|
37
|
-
addonBefore?: string;
|
|
38
|
-
/**
|
|
39
|
-
* 后置标签
|
|
40
|
-
*
|
|
41
|
-
* @author zhanghanrui
|
|
42
|
-
* @date 2024-04-02 11:04:20
|
|
43
|
-
* @type {string}
|
|
44
|
-
*/
|
|
45
|
-
addonAfter?: string;
|
|
46
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { EditorType } from '../../../constants';
|
|
2
|
-
import { IEditorBasic } from './i-editor-basic';
|
|
3
|
-
/**
|
|
4
|
-
* 多行文本域编辑器
|
|
5
|
-
*
|
|
6
|
-
* @author zhanghanrui
|
|
7
|
-
* @date 2024-04-02 11:04:33
|
|
8
|
-
* @export
|
|
9
|
-
* @interface ITextareaEditor
|
|
10
|
-
* @extends {IEditorBasic}
|
|
11
|
-
*/
|
|
12
|
-
export interface ITextareaEditor extends IEditorBasic {
|
|
13
|
-
readonly type: EditorType.TEXTAREA;
|
|
14
|
-
/**
|
|
15
|
-
* 多行文本行数
|
|
16
|
-
*
|
|
17
|
-
* @author zhanghanrui
|
|
18
|
-
* @date 2024-04-02 16:04:18
|
|
19
|
-
* @type {(boolean | { minRows: number; maxRows: number })}
|
|
20
|
-
*/
|
|
21
|
-
autoSize?: boolean | {
|
|
22
|
-
minRows: number;
|
|
23
|
-
maxRows: number;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { IFormController } from '../../controller';
|
|
2
|
-
import { IForm } from './i-form';
|
|
3
|
-
/**
|
|
4
|
-
* 编辑表单
|
|
5
|
-
*
|
|
6
|
-
* @author zhanghanrui
|
|
7
|
-
* @date 2024-04-01 18:04:17
|
|
8
|
-
* @export
|
|
9
|
-
* @interface IEditForm
|
|
10
|
-
* @extends {IForm}
|
|
11
|
-
*/
|
|
12
|
-
export interface IEditForm extends IForm {
|
|
13
|
-
readonly type: 'edit';
|
|
14
|
-
/**
|
|
15
|
-
* 监控表单项值变更
|
|
16
|
-
*
|
|
17
|
-
* @author zhanghanrui
|
|
18
|
-
* @date 2024-06-11 17:06:55
|
|
19
|
-
*/
|
|
20
|
-
watch?: Record<string, (form: IFormController, val: any, oldValue: any) => void>;
|
|
21
|
-
/**
|
|
22
|
-
* 自动保存
|
|
23
|
-
*
|
|
24
|
-
* @type {boolean}
|
|
25
|
-
*/
|
|
26
|
-
autosave?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* 新建请求
|
|
29
|
-
*
|
|
30
|
-
* @author zhanghanrui
|
|
31
|
-
* @date 2024-04-03 16:04:31
|
|
32
|
-
* @param {IData} data
|
|
33
|
-
* @return {*} {Promise<IData>}
|
|
34
|
-
*/
|
|
35
|
-
newRequest?(data: IData): Promise<IData>;
|
|
36
|
-
/**
|
|
37
|
-
* 更新请求
|
|
38
|
-
*
|
|
39
|
-
* @author zhanghanrui
|
|
40
|
-
* @date 2024-04-03 16:04:34
|
|
41
|
-
* @param {{ id: string }} params
|
|
42
|
-
* @param {IData} data
|
|
43
|
-
* @return {*} {Promise<IData>}
|
|
44
|
-
*/
|
|
45
|
-
updateRequest?(params: {
|
|
46
|
-
id: string;
|
|
47
|
-
}, data: IData): Promise<IData>;
|
|
48
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { IFormContainer } from './i-form-container';
|
|
2
|
-
/**
|
|
3
|
-
* 表单折叠面板项
|
|
4
|
-
* @author lingxiaoming
|
|
5
|
-
* @date 2024-07-14 01:38:20
|
|
6
|
-
* @export
|
|
7
|
-
* @interface IFormCollapsePane
|
|
8
|
-
* @extends {IFormContainer}
|
|
9
|
-
*/
|
|
10
|
-
export interface IFormCollapsePane extends IFormContainer {
|
|
11
|
-
type: 'collapse-pane';
|
|
12
|
-
/**
|
|
13
|
-
* 是否是容器
|
|
14
|
-
*/
|
|
15
|
-
isContainer: true;
|
|
16
|
-
/**
|
|
17
|
-
* 面板头部标题
|
|
18
|
-
* @author lingxiaoming
|
|
19
|
-
* @date 2024-07-15 11:02:21
|
|
20
|
-
* @type {string}
|
|
21
|
-
*/
|
|
22
|
-
title: string;
|
|
23
|
-
/**
|
|
24
|
-
* 是否可以折叠(默认可折叠)
|
|
25
|
-
* @author lingxiaoming
|
|
26
|
-
* @date 2024-07-15 11:02:37
|
|
27
|
-
* @type {boolean}
|
|
28
|
-
*/
|
|
29
|
-
collapsible?: boolean;
|
|
30
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { IFormCollapsePane } from './i-form-collapse-pane';
|
|
2
|
-
import { IFormContainer } from './i-form-container';
|
|
3
|
-
/**
|
|
4
|
-
* 表单折叠面板
|
|
5
|
-
* @author lingxiaoming
|
|
6
|
-
* @date 2024-07-14 01:38:20
|
|
7
|
-
* @export
|
|
8
|
-
* @interface IFormCollapse
|
|
9
|
-
* @extends {IFormContainer}
|
|
10
|
-
*/
|
|
11
|
-
export interface IFormCollapse extends IFormContainer {
|
|
12
|
-
type: 'collapse';
|
|
13
|
-
/**
|
|
14
|
-
* 手风琴模式(开启后同时只能展开一个面板)
|
|
15
|
-
* @author lingxiaoming
|
|
16
|
-
* @date 2024-07-15 11:00:57
|
|
17
|
-
* @type {boolean}
|
|
18
|
-
*/
|
|
19
|
-
accordion?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* 折叠图标位置
|
|
22
|
-
* @author lingxiaoming
|
|
23
|
-
* @date 2024-07-15 11:28:29
|
|
24
|
-
* @type {('left' | 'right')}
|
|
25
|
-
*/
|
|
26
|
-
expandIconPosition?: 'left' | 'right';
|
|
27
|
-
/**
|
|
28
|
-
* 折叠图标呈现样式(第一个是展开的状态,第二个是折叠的状态)
|
|
29
|
-
* @author lingxiaoming
|
|
30
|
-
* @date 2024-07-15 02:50:01
|
|
31
|
-
* @type {('down-right' | 'up-down')}
|
|
32
|
-
*/
|
|
33
|
-
expandIconStyle?: 'down-right' | 'up-down';
|
|
34
|
-
children?: IFormCollapsePane[];
|
|
35
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { IFlexContainer, IGridContainer } from '../../layout';
|
|
2
|
-
import { IFormItemBasic } from './i-form-item-basic';
|
|
3
|
-
/**
|
|
4
|
-
* 表单容器类型基础
|
|
5
|
-
*
|
|
6
|
-
* @author zhanghanrui
|
|
7
|
-
* @date 2024-03-26 20:03:35
|
|
8
|
-
* @export
|
|
9
|
-
* @interface IFormContainer
|
|
10
|
-
* @extends {IFormItemBasic}
|
|
11
|
-
*/
|
|
12
|
-
export interface IFormContainer extends IFormItemBasic {
|
|
13
|
-
/**
|
|
14
|
-
* 表单容器
|
|
15
|
-
*
|
|
16
|
-
* @author zhanghanrui
|
|
17
|
-
* @date 2024-04-01 15:04:25
|
|
18
|
-
* @type {'container'}
|
|
19
|
-
*/
|
|
20
|
-
type: 'container' | string;
|
|
21
|
-
/**
|
|
22
|
-
* 布局模式
|
|
23
|
-
*
|
|
24
|
-
* @author zhanghanrui
|
|
25
|
-
* @date 2024-03-26 19:03:31
|
|
26
|
-
* @type {('flex' | 'grid')}
|
|
27
|
-
*/
|
|
28
|
-
layout: 'flex' | 'grid';
|
|
29
|
-
/**
|
|
30
|
-
* flex box 流式布局
|
|
31
|
-
*
|
|
32
|
-
* @author zhanghanrui
|
|
33
|
-
* @date 2024-03-26 19:03:25
|
|
34
|
-
* @type {IFlexContainer}
|
|
35
|
-
*/
|
|
36
|
-
flex?: IFlexContainer;
|
|
37
|
-
/**
|
|
38
|
-
* 栅格布局
|
|
39
|
-
*
|
|
40
|
-
* @author zhanghanrui
|
|
41
|
-
* @date 2024-03-26 19:03:22
|
|
42
|
-
* @type {IGridContainer}
|
|
43
|
-
*/
|
|
44
|
-
grid?: IGridContainer;
|
|
45
|
-
/**
|
|
46
|
-
* 子元素
|
|
47
|
-
*
|
|
48
|
-
* @author zhanghanrui
|
|
49
|
-
* @date 2024-04-01 15:04:57
|
|
50
|
-
* @type {IFormItemBasic[]}
|
|
51
|
-
*/
|
|
52
|
-
children?: IFormItemBasic[];
|
|
53
|
-
}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { Rule } from 'async-validator';
|
|
2
|
-
import { IDictionary } from '../../i-dictionary/i-dictionary';
|
|
3
|
-
import { IEditorBasic } from '../i-editor/i-editor-basic';
|
|
4
|
-
import { IFormItemBasic } from './i-form-item-basic';
|
|
5
|
-
/**
|
|
6
|
-
* 表单编辑项
|
|
7
|
-
*
|
|
8
|
-
* @author zhanghanrui
|
|
9
|
-
* @date 2024-04-02 20:04:09
|
|
10
|
-
* @export
|
|
11
|
-
* @interface IFormEditItem
|
|
12
|
-
* @extends {IFormItemBasic}
|
|
13
|
-
*/
|
|
14
|
-
export interface IFormEditItem extends IFormItemBasic {
|
|
15
|
-
/**
|
|
16
|
-
* 项类型
|
|
17
|
-
*
|
|
18
|
-
* @author zhanghanrui
|
|
19
|
-
* @date 2024-04-01 13:04:44
|
|
20
|
-
* @type {'item'}
|
|
21
|
-
*/
|
|
22
|
-
type: 'item' | 'hidden';
|
|
23
|
-
/**
|
|
24
|
-
* 表单项标识
|
|
25
|
-
*
|
|
26
|
-
* @author zhanghanrui
|
|
27
|
-
* @date 2024-03-27 09:03:25
|
|
28
|
-
* @type {string}
|
|
29
|
-
*/
|
|
30
|
-
name: string;
|
|
31
|
-
/**
|
|
32
|
-
* 表单项映射字段(用于提交数据,未指定时取 name)
|
|
33
|
-
*
|
|
34
|
-
* @author zhanghanrui
|
|
35
|
-
* @date 2024-04-03 10:04:17
|
|
36
|
-
* @type {string}
|
|
37
|
-
*/
|
|
38
|
-
field?: string;
|
|
39
|
-
/**
|
|
40
|
-
* 默认值
|
|
41
|
-
*
|
|
42
|
-
* @author zhanghanrui
|
|
43
|
-
* @date 2024-04-02 20:04:11
|
|
44
|
-
* @type {*}
|
|
45
|
-
*/
|
|
46
|
-
defaultValue?: unknown;
|
|
47
|
-
/**
|
|
48
|
-
* 编辑器
|
|
49
|
-
*
|
|
50
|
-
* @author zhanghanrui
|
|
51
|
-
* @date 2024-03-27 09:03:57
|
|
52
|
-
* @type {IEditorBasic}
|
|
53
|
-
*/
|
|
54
|
-
editor: IEditorBasic;
|
|
55
|
-
/**
|
|
56
|
-
* 标题
|
|
57
|
-
*
|
|
58
|
-
* @author zhanghanrui
|
|
59
|
-
* @date 2024-03-27 09:03:50
|
|
60
|
-
* @type {string}
|
|
61
|
-
*/
|
|
62
|
-
label?: string;
|
|
63
|
-
/**
|
|
64
|
-
* 标题后面加个问号的tooltip
|
|
65
|
-
*
|
|
66
|
-
* @author zhanghanrui
|
|
67
|
-
* @date 2024-03-27 09:03:50
|
|
68
|
-
* @type {string}
|
|
69
|
-
*/
|
|
70
|
-
labelTooltip?: string;
|
|
71
|
-
/**
|
|
72
|
-
* 标题宽度
|
|
73
|
-
*
|
|
74
|
-
* @author zhanghanrui
|
|
75
|
-
* @date 2024-04-02 09:04:52
|
|
76
|
-
* @type {string}
|
|
77
|
-
*/
|
|
78
|
-
labelWidth?: string;
|
|
79
|
-
/**
|
|
80
|
-
* 标题位置
|
|
81
|
-
* @author lingxiaoming
|
|
82
|
-
* @date 2024-07-18 11:36:31
|
|
83
|
-
* @type {('left' | 'top')}
|
|
84
|
-
*/
|
|
85
|
-
labelPosition?: 'left' | 'top';
|
|
86
|
-
/**
|
|
87
|
-
* 开启后label不显示冒号
|
|
88
|
-
* @author lingxiaoming
|
|
89
|
-
* @date 2024-07-18 03:55:12
|
|
90
|
-
* @type {boolean}
|
|
91
|
-
*/
|
|
92
|
-
noColon?: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* label文字的对齐方式,默认right
|
|
95
|
-
* @author lingxiaoming
|
|
96
|
-
* @date 2024-07-18 03:56:31
|
|
97
|
-
* @type {('left' | 'right')}
|
|
98
|
-
*/
|
|
99
|
-
labelAlign?: 'left' | 'right';
|
|
100
|
-
/**
|
|
101
|
-
* 编辑器的对齐方式,默认left
|
|
102
|
-
* @author lingxiaoming
|
|
103
|
-
* @date 2024-07-18 03:56:31
|
|
104
|
-
* @type {('left' | 'right')}
|
|
105
|
-
*/
|
|
106
|
-
editorAlign?: 'left' | 'right';
|
|
107
|
-
/**
|
|
108
|
-
* 属性项
|
|
109
|
-
*
|
|
110
|
-
* @author zhanghanrui
|
|
111
|
-
* @date 2024-03-27 14:03:29
|
|
112
|
-
* @type {string[]}
|
|
113
|
-
*/
|
|
114
|
-
fields?: string[];
|
|
115
|
-
/**
|
|
116
|
-
* 表单项规则
|
|
117
|
-
*
|
|
118
|
-
* @author zhanghanrui
|
|
119
|
-
* @date 2024-04-01 19:04:48
|
|
120
|
-
* @type {Rule[]>}
|
|
121
|
-
*/
|
|
122
|
-
rules?: Rule[];
|
|
123
|
-
/**
|
|
124
|
-
* 代码表标识
|
|
125
|
-
*
|
|
126
|
-
* @description 用于从全局获取代码表的标识
|
|
127
|
-
* @author zhanghanrui
|
|
128
|
-
* @date 2024-04-02 21:04:06
|
|
129
|
-
* @type {string}
|
|
130
|
-
*/
|
|
131
|
-
dictionaryTag?: string;
|
|
132
|
-
/**
|
|
133
|
-
* 代码表(数据字典),优先级高于 codeTag
|
|
134
|
-
*
|
|
135
|
-
* @author zhanghanrui
|
|
136
|
-
* @date 2024-04-02 21:04:58
|
|
137
|
-
* @type {IDictionary}
|
|
138
|
-
*/
|
|
139
|
-
dictionary?: IDictionary;
|
|
140
|
-
}
|