@ibiz-template/core 0.7.39 → 0.7.40-alpha.7
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.js +517 -656
- package/dist/index.system.min.js +1 -1
- package/out/command/command-register.d.ts +23 -37
- package/out/command/command-register.d.ts.map +1 -1
- package/out/command/command-register.js +22 -36
- package/out/command/command.d.ts +28 -34
- package/out/command/command.d.ts.map +1 -1
- package/out/command/command.js +26 -32
- package/out/command/index.d.ts +1 -4
- package/out/command/index.d.ts.map +1 -1
- package/out/command/index.js +2 -4
- package/out/command/utils/util.d.ts +23 -15
- package/out/command/utils/util.d.ts.map +1 -1
- package/out/command/utils/util.js +22 -16
- package/out/constant/core/core.d.ts +18 -28
- package/out/constant/core/core.d.ts.map +1 -1
- package/out/constant/core/core.js +18 -28
- package/out/constant/emoji/emoji.d.ts.map +1 -1
- package/out/constant/emoji/emoji.js +2 -0
- package/out/constant/http-status-message/http-status-message.d.ts +0 -3
- package/out/constant/http-status-message/http-status-message.d.ts.map +1 -1
- package/out/constant/http-status-message/http-status-message.js +1 -3
- package/out/constant/index.d.ts +2 -4
- package/out/constant/index.d.ts.map +1 -1
- package/out/constant/index.js +2 -4
- package/out/constant/util/util.d.ts +0 -3
- package/out/constant/util/util.d.ts.map +1 -1
- package/out/constant/util/util.js +1 -3
- package/out/context/index.d.ts +34 -51
- package/out/context/index.d.ts.map +1 -1
- package/out/context/index.js +24 -33
- package/out/environment/environment.d.ts +0 -3
- package/out/environment/environment.d.ts.map +1 -1
- package/out/environment/environment.js +4 -4
- package/out/error/http-error/entity-error.d.ts +3 -17
- package/out/error/http-error/entity-error.d.ts.map +1 -1
- package/out/error/http-error/entity-error.js +2 -5
- package/out/error/http-error/http-error-factory.d.ts +5 -0
- package/out/error/http-error/http-error-factory.d.ts.map +1 -1
- package/out/error/http-error/http-error-factory.js +5 -0
- package/out/error/http-error/http-error.d.ts +3 -10
- package/out/error/http-error/http-error.d.ts.map +1 -1
- package/out/error/http-error/http-error.js +2 -5
- package/out/error/model-error/model-error.d.ts +5 -9
- package/out/error/model-error/model-error.d.ts.map +1 -1
- package/out/error/model-error/model-error.js +5 -9
- package/out/error/notice-error/notice-error.d.ts +2 -5
- package/out/error/notice-error/notice-error.d.ts.map +1 -1
- package/out/error/notice-error/notice-error.js +2 -5
- package/out/error/runtime-error/runtime-error.d.ts +2 -5
- package/out/error/runtime-error/runtime-error.d.ts.map +1 -1
- package/out/error/runtime-error/runtime-error.js +2 -5
- package/out/error/runtime-model-error/runtime-model-error.d.ts +5 -10
- package/out/error/runtime-model-error/runtime-model-error.d.ts.map +1 -1
- package/out/error/runtime-model-error/runtime-model-error.js +5 -10
- package/out/ibizsys.d.ts +24 -44
- package/out/ibizsys.d.ts.map +1 -1
- package/out/ibizsys.js +15 -29
- package/out/index.d.ts.map +1 -1
- package/out/install.d.ts +1 -4
- package/out/install.d.ts.map +1 -1
- package/out/install.js +1 -4
- package/out/interface/api/constant/index.d.ts +3 -0
- package/out/interface/api/constant/index.d.ts.map +1 -0
- package/out/interface/api/constant/index.js +2 -0
- package/out/{constant → interface/api/constant}/login-mode/login-mode.d.ts +1 -4
- package/out/interface/api/constant/login-mode/login-mode.d.ts.map +1 -0
- package/out/{constant → interface/api/constant}/login-mode/login-mode.js +1 -4
- package/out/{constant → interface/api/constant}/menu-permission-mode/menu-permission-mode.d.ts +1 -4
- package/out/interface/api/constant/menu-permission-mode/menu-permission-mode.d.ts.map +1 -0
- package/out/{constant → interface/api/constant}/menu-permission-mode/menu-permission-mode.js +1 -4
- package/out/interface/api/environment/i-devtool-config.d.ts +33 -0
- package/out/interface/api/environment/i-devtool-config.d.ts.map +1 -0
- package/out/interface/api/environment/i-environment.d.ts +282 -0
- package/out/interface/api/environment/i-environment.d.ts.map +1 -0
- package/out/interface/api/environment/index.d.ts +3 -0
- package/out/interface/api/environment/index.d.ts.map +1 -0
- package/out/interface/api/global-param/i-api-context.d.ts +33 -0
- package/out/interface/api/global-param/i-api-context.d.ts.map +1 -0
- package/out/interface/api/global-param/i-global-param.d.ts +25 -0
- package/out/interface/api/global-param/i-global-param.d.ts.map +1 -0
- package/out/interface/api/global-param/index.d.ts +3 -0
- package/out/interface/api/global-param/index.d.ts.map +1 -0
- package/out/interface/api/ibizsys/i-api-ibizsys.d.ts +48 -0
- package/out/interface/api/ibizsys/i-api-ibizsys.d.ts.map +1 -0
- package/out/interface/api/ibizsys/i-org-data.d.ts +32 -0
- package/out/interface/api/ibizsys/i-org-data.d.ts.map +1 -0
- package/out/interface/api/ibizsys/index.d.ts +3 -0
- package/out/interface/api/ibizsys/index.d.ts.map +1 -0
- package/out/interface/api/index.d.ts +6 -0
- package/out/interface/api/index.d.ts.map +1 -0
- package/out/interface/api/index.js +5 -0
- package/out/interface/api/utils/i-api-i18n.d.ts +51 -0
- package/out/interface/api/utils/i-api-i18n.d.ts.map +1 -0
- package/out/interface/api/utils/index.d.ts +5 -0
- package/out/interface/api/utils/index.d.ts.map +1 -0
- package/out/interface/api/utils/index.js +1 -0
- package/out/interface/api/utils/message-center/base/i-message-all.d.ts +10 -0
- package/out/interface/api/utils/message-center/base/i-message-all.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/base/i-message-base.d.ts +27 -0
- package/out/interface/api/utils/message-center/base/i-message-base.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/base/index.d.ts +3 -0
- package/out/interface/api/utils/message-center/base/index.d.ts.map +1 -0
- package/out/interface/{i-add-in-changed → api/utils/message-center/command/add-in-changed}/i-add-in-changed.d.ts +4 -8
- package/out/interface/api/utils/message-center/command/add-in-changed/i-add-in-changed.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.d.ts +17 -0
- package/out/interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/async-action/i-command-async-action.d.ts +17 -0
- package/out/interface/api/utils/message-center/command/async-action/i-command-async-action.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/change/i-command-change.d.ts +10 -0
- package/out/interface/api/utils/message-center/command/change/i-command-change.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/change/i-command-change.js +1 -0
- package/out/interface/api/utils/message-center/command/create/i-command-create.d.ts +18 -0
- package/out/interface/api/utils/message-center/command/create/i-command-create.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/create/i-command-create.js +1 -0
- package/out/interface/api/utils/message-center/command/i-command-base.d.ts +20 -0
- package/out/interface/api/utils/message-center/command/i-command-base.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/i-command-base.js +1 -0
- package/out/interface/api/utils/message-center/command/i-message-command.d.ts +82 -0
- package/out/interface/api/utils/message-center/command/i-message-command.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/i-message-command.js +1 -0
- package/out/interface/api/utils/message-center/command/index.d.ts +14 -0
- package/out/interface/api/utils/message-center/command/index.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/index.js +1 -0
- package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.d.ts +17 -0
- package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.js +1 -0
- package/out/interface/{i-internal-message → api/utils/message-center/command/internal-message}/i-internal-message.d.ts +35 -54
- package/out/interface/api/utils/message-center/command/internal-message/i-internal-message.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/internal-message/i-internal-message.js +1 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.d.ts +17 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.js +1 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.d.ts +46 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.js +1 -0
- package/out/interface/api/utils/message-center/command/remove/i-command-remove.d.ts +18 -0
- package/out/interface/api/utils/message-center/command/remove/i-command-remove.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/remove/i-command-remove.js +1 -0
- package/out/interface/api/utils/message-center/command/update/i-command-update.d.ts +18 -0
- package/out/interface/api/utils/message-center/command/update/i-command-update.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/update/i-command-update.js +1 -0
- package/out/interface/api/utils/message-center/common/i-app-data-entity.d.ts +16 -0
- package/out/interface/api/utils/message-center/common/i-app-data-entity.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/i-app-data-entity.js +1 -0
- package/out/interface/api/utils/message-center/common/i-message-center-event.d.ts +10 -0
- package/out/interface/api/utils/message-center/common/i-message-center-event.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/i-message-center-event.js +1 -0
- package/out/interface/api/utils/message-center/common/i-msg-meta-data.d.ts +14 -0
- package/out/interface/api/utils/message-center/common/i-msg-meta-data.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/i-msg-meta-data.js +1 -0
- package/out/interface/api/utils/message-center/common/i-portal-async-action.d.ts +134 -0
- package/out/interface/api/utils/message-center/common/i-portal-async-action.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/i-portal-async-action.js +1 -0
- package/out/interface/api/utils/message-center/common/i-portal-message.d.ts +70 -0
- package/out/interface/api/utils/message-center/common/i-portal-message.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/i-portal-message.js +1 -0
- package/out/interface/api/utils/message-center/common/index.d.ts +6 -0
- package/out/interface/api/utils/message-center/common/index.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/index.js +1 -0
- package/out/interface/api/utils/message-center/console/i-message-console.d.ts +17 -0
- package/out/interface/api/utils/message-center/console/i-message-console.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/console/i-message-console.js +1 -0
- package/out/interface/api/utils/message-center/error/i-message-error.d.ts +17 -0
- package/out/interface/api/utils/message-center/error/i-message-error.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/error/i-message-error.js +1 -0
- package/out/interface/api/utils/message-center/i-message-center.d.ts +48 -0
- package/out/interface/api/utils/message-center/i-message-center.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/i-message-center.js +1 -0
- package/out/interface/api/utils/message-center/index.d.ts +7 -0
- package/out/interface/api/utils/message-center/index.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/index.js +3 -0
- package/out/interface/api/utils/net/i-api-net.d.ts +65 -0
- package/out/interface/api/utils/net/i-api-net.d.ts.map +1 -0
- package/out/interface/api/utils/net/i-api-net.js +1 -0
- package/out/interface/api/utils/net/i-http-response.d.ts +60 -0
- package/out/interface/api/utils/net/i-http-response.d.ts.map +1 -0
- package/out/interface/api/utils/net/i-http-response.js +1 -0
- package/out/interface/click-outside/click-outside.d.ts +15 -36
- package/out/interface/click-outside/click-outside.d.ts.map +1 -1
- package/out/interface/command/command/i-command-option.d.ts +46 -0
- package/out/interface/command/command/i-command-option.d.ts.map +1 -0
- package/out/interface/command/command/i-command-option.js +1 -0
- package/out/interface/command/command/i-command.d.ts +61 -0
- package/out/interface/command/command/i-command.d.ts.map +1 -0
- package/out/interface/command/command/i-command.js +1 -0
- package/out/interface/command/disposable/i-disposable.d.ts +13 -0
- package/out/interface/command/disposable/i-disposable.d.ts.map +1 -0
- package/out/interface/command/disposable/i-disposable.js +1 -0
- package/out/interface/command/i-command-controller.d.ts +43 -0
- package/out/interface/command/i-command-controller.d.ts.map +1 -0
- package/out/interface/command/i-command-controller.js +1 -0
- package/out/interface/command/index.d.ts +5 -0
- package/out/interface/command/index.d.ts.map +1 -0
- package/out/interface/command/index.js +1 -0
- package/out/interface/context/index.d.ts +39 -0
- package/out/interface/context/index.d.ts.map +1 -0
- package/out/interface/context/index.js +1 -0
- package/out/interface/error/index.d.ts +12 -0
- package/out/interface/error/index.d.ts.map +1 -0
- package/out/interface/error/index.js +1 -0
- package/out/interface/i-chat-message/i-chat-message.d.ts +24 -37
- package/out/interface/i-chat-message/i-chat-message.d.ts.map +1 -1
- package/out/interface/ibizsys/i-ibizsys.d.ts +30 -0
- package/out/interface/ibizsys/i-ibizsys.d.ts.map +1 -0
- package/out/interface/ibizsys/i-ibizsys.js +1 -0
- package/out/interface/ibizsys/index.d.ts +2 -0
- package/out/interface/ibizsys/index.d.ts.map +1 -0
- package/out/interface/ibizsys/index.js +1 -0
- package/out/interface/index.d.ts +8 -9
- package/out/interface/index.d.ts.map +1 -1
- package/out/interface/index.js +6 -0
- package/out/interface/utils/i-18n.d.ts +21 -0
- package/out/interface/utils/i-18n.d.ts.map +1 -0
- package/out/interface/utils/i-18n.js +1 -0
- package/out/interface/utils/index.d.ts +2 -0
- package/out/interface/utils/index.d.ts.map +1 -0
- package/out/interface/utils/index.js +1 -0
- package/out/params/params.d.ts +20 -24
- package/out/params/params.d.ts.map +1 -1
- package/out/params/params.js +16 -18
- package/out/types.d.ts +5 -113
- package/out/types.d.ts.map +1 -1
- package/out/utils/bit-mask/bit-mask.d.ts +9 -32
- package/out/utils/bit-mask/bit-mask.d.ts.map +1 -1
- package/out/utils/bit-mask/bit-mask.js +10 -37
- package/out/utils/click-outside/click-outside.d.ts +1 -4
- package/out/utils/click-outside/click-outside.d.ts.map +1 -1
- package/out/utils/click-outside/click-outside.js +1 -4
- package/out/utils/clone/clone.d.ts +3 -7
- package/out/utils/clone/clone.d.ts.map +1 -1
- package/out/utils/clone/clone.js +7 -12
- package/out/utils/color/color.d.ts +4 -6
- package/out/utils/color/color.d.ts.map +1 -1
- package/out/utils/color/color.js +5 -8
- package/out/utils/cookie-util/cookie-util.d.ts +16 -27
- package/out/utils/cookie-util/cookie-util.d.ts.map +1 -1
- package/out/utils/cookie-util/cookie-util.js +126 -55
- package/out/utils/data-type/data-types.d.ts +13 -19
- package/out/utils/data-type/data-types.d.ts.map +1 -1
- package/out/utils/data-type/data-types.js +13 -19
- package/out/utils/download-file/download-file.d.ts +6 -15
- package/out/utils/download-file/download-file.d.ts.map +1 -1
- package/out/utils/download-file/download-file.js +6 -15
- package/out/utils/event/event.d.ts +6 -14
- package/out/utils/event/event.d.ts.map +1 -1
- package/out/utils/event/event.js +6 -14
- package/out/utils/history-list/history-item.d.ts +5 -10
- package/out/utils/history-list/history-item.d.ts.map +1 -1
- package/out/utils/history-list/history-item.js +5 -10
- package/out/utils/history-list/history-list.d.ts +31 -45
- package/out/utils/history-list/history-list.d.ts.map +1 -1
- package/out/utils/history-list/history-list.js +28 -40
- package/out/utils/index.d.ts +1 -2
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/interceptor/core-interceptor.d.ts +11 -9
- package/out/utils/interceptor/core-interceptor.d.ts.map +1 -1
- package/out/utils/interceptor/core-interceptor.js +11 -9
- package/out/utils/interceptor/interceptor.d.ts +24 -43
- package/out/utils/interceptor/interceptor.d.ts.map +1 -1
- package/out/utils/interceptor/interceptor.js +18 -31
- package/out/utils/message-center/base/message-all.d.ts +3 -5
- package/out/utils/message-center/base/message-all.d.ts.map +1 -1
- package/out/utils/message-center/base/message-all.js +1 -4
- package/out/utils/message-center/base/message-base.d.ts +23 -40
- package/out/utils/message-center/base/message-base.d.ts.map +1 -1
- package/out/utils/message-center/base/message-base.js +20 -26
- package/out/utils/message-center/command/add-in-changed/command-add-in-changed.d.ts +5 -6
- package/out/utils/message-center/command/add-in-changed/command-add-in-changed.d.ts.map +1 -1
- package/out/utils/message-center/command/add-in-changed/command-add-in-changed.js +3 -4
- package/out/utils/message-center/command/async-action/command-async-action.d.ts +6 -10
- package/out/utils/message-center/command/async-action/command-async-action.d.ts.map +1 -1
- package/out/utils/message-center/command/async-action/command-async-action.js +4 -8
- package/out/utils/message-center/command/change/command-change.d.ts +4 -5
- package/out/utils/message-center/command/change/command-change.d.ts.map +1 -1
- package/out/utils/message-center/command/change/command-change.js +2 -4
- package/out/utils/message-center/command/command-base/command-base.d.ts +10 -15
- package/out/utils/message-center/command/command-base/command-base.d.ts.map +1 -1
- package/out/utils/message-center/command/command-base/command-base.js +7 -12
- package/out/utils/message-center/command/create/command-create.d.ts +8 -12
- package/out/utils/message-center/command/create/command-create.d.ts.map +1 -1
- package/out/utils/message-center/command/create/command-create.js +6 -10
- package/out/utils/message-center/command/internal-message/command-internal-message.d.ts +7 -11
- package/out/utils/message-center/command/internal-message/command-internal-message.d.ts.map +1 -1
- package/out/utils/message-center/command/internal-message/command-internal-message.js +5 -9
- package/out/utils/message-center/command/mark-open-data/command-mark-open-data.d.ts +6 -10
- package/out/utils/message-center/command/mark-open-data/command-mark-open-data.d.ts.map +1 -1
- package/out/utils/message-center/command/mark-open-data/command-mark-open-data.js +4 -8
- package/out/utils/message-center/command/message-command.d.ts +31 -45
- package/out/utils/message-center/command/message-command.d.ts.map +1 -1
- package/out/utils/message-center/command/message-command.js +29 -43
- package/out/utils/message-center/command/remove/command-remove.d.ts +7 -11
- package/out/utils/message-center/command/remove/command-remove.d.ts.map +1 -1
- package/out/utils/message-center/command/remove/command-remove.js +5 -9
- package/out/utils/message-center/command/update/command-update.d.ts +7 -11
- package/out/utils/message-center/command/update/command-update.d.ts.map +1 -1
- package/out/utils/message-center/command/update/command-update.js +5 -9
- package/out/utils/message-center/console/message-console.d.ts +6 -9
- package/out/utils/message-center/console/message-console.d.ts.map +1 -1
- package/out/utils/message-center/console/message-console.js +4 -8
- package/out/utils/message-center/error/message-error.d.ts +6 -9
- package/out/utils/message-center/error/message-error.d.ts.map +1 -1
- package/out/utils/message-center/error/message-error.js +4 -8
- package/out/utils/message-center/index.d.ts +0 -1
- package/out/utils/message-center/index.d.ts.map +1 -1
- package/out/utils/message-center/message-center.d.ts +20 -35
- package/out/utils/message-center/message-center.d.ts.map +1 -1
- package/out/utils/message-center/message-center.js +18 -33
- package/out/utils/namespace/namespace.d.ts +45 -75
- package/out/utils/namespace/namespace.d.ts.map +1 -1
- package/out/utils/namespace/namespace.js +53 -81
- package/out/utils/net/http-response.d.ts +6 -66
- package/out/utils/net/http-response.d.ts.map +1 -1
- package/out/utils/net/http-response.js +4 -11
- package/out/utils/net/net.d.ts +57 -100
- package/out/utils/net/net.d.ts.map +1 -1
- package/out/utils/net/net.js +53 -94
- package/out/utils/recursive/find-recursive-child.d.ts +2 -10
- package/out/utils/recursive/find-recursive-child.d.ts.map +1 -1
- package/out/utils/recursive/find-recursive-child.js +4 -14
- package/out/utils/string-util/string-util.d.ts +6 -16
- package/out/utils/string-util/string-util.d.ts.map +1 -1
- package/out/utils/string-util/string-util.js +6 -16
- package/out/utils/style/remote-style.d.ts +1 -4
- package/out/utils/style/remote-style.d.ts.map +1 -1
- package/out/utils/style/remote-style.js +1 -4
- package/out/utils/sync/await-timeout.d.ts +1 -5
- package/out/utils/sync/await-timeout.d.ts.map +1 -1
- package/out/utils/sync/await-timeout.js +1 -5
- package/out/utils/sync/count-latch.d.ts +14 -30
- package/out/utils/sync/count-latch.d.ts.map +1 -1
- package/out/utils/sync/count-latch.js +14 -30
- package/out/utils/upload/select-file.d.ts +12 -29
- package/out/utils/upload/select-file.d.ts.map +1 -1
- package/out/utils/upload/select-file.js +3 -9
- package/out/utils/upload/upload-file.d.ts +6 -14
- package/out/utils/upload/upload-file.d.ts.map +1 -1
- package/out/utils/upload/upload-file.js +9 -23
- package/out/utils/url-helper/url-helper.d.ts +19 -30
- package/out/utils/url-helper/url-helper.d.ts.map +1 -1
- package/out/utils/url-helper/url-helper.js +19 -30
- package/out/utils/util/util.d.ts +6 -77
- package/out/utils/util/util.d.ts.map +1 -1
- package/out/utils/util/util.js +6 -77
- package/package.json +2 -3
- package/out/command/interface/command/command-option.d.ts +0 -23
- package/out/command/interface/command/command-option.d.ts.map +0 -1
- package/out/command/interface/command/command.d.ts +0 -74
- package/out/command/interface/command/command.d.ts.map +0 -1
- package/out/command/interface/disposable/disposable.d.ts +0 -4
- package/out/command/interface/disposable/disposable.d.ts.map +0 -1
- package/out/command/interface/index.d.ts +0 -4
- package/out/command/interface/index.d.ts.map +0 -1
- package/out/constant/login-mode/login-mode.d.ts.map +0 -1
- package/out/constant/menu-permission-mode/menu-permission-mode.d.ts.map +0 -1
- package/out/interface/i-18n/i-18n.d.ts +0 -81
- package/out/interface/i-18n/i-18n.d.ts.map +0 -1
- package/out/interface/i-add-in-changed/i-add-in-changed.d.ts.map +0 -1
- package/out/interface/i-devtool-config/i-devtool-config.d.ts +0 -40
- package/out/interface/i-devtool-config/i-devtool-config.d.ts.map +0 -1
- package/out/interface/i-environment/i-environment.d.ts +0 -346
- package/out/interface/i-environment/i-environment.d.ts.map +0 -1
- package/out/interface/i-internal-message/i-internal-message.d.ts.map +0 -1
- package/out/interface/i-mark-open-data/i-mark-open-data.d.ts +0 -43
- package/out/interface/i-mark-open-data/i-mark-open-data.d.ts.map +0 -1
- package/out/interface/i-portal-async-action/i-portal-async-action.d.ts +0 -163
- package/out/interface/i-portal-async-action/i-portal-async-action.d.ts.map +0 -1
- package/out/interface/i-portal-message/i-portal-message.d.ts +0 -89
- package/out/interface/i-portal-message/i-portal-message.d.ts.map +0 -1
- package/out/interface/org-data/org-data.d.ts +0 -43
- package/out/interface/org-data/org-data.d.ts.map +0 -1
- package/out/utils/message-center/interface/i-app-data-entity.d.ts +0 -20
- package/out/utils/message-center/interface/i-app-data-entity.d.ts.map +0 -1
- package/out/utils/message-center/interface/i-msg-meta-data.d.ts +0 -19
- package/out/utils/message-center/interface/i-msg-meta-data.d.ts.map +0 -1
- package/out/utils/message-center/interface/index.d.ts +0 -3
- package/out/utils/message-center/interface/index.d.ts.map +0 -1
- /package/out/interface/{i-devtool-config → api/environment}/i-devtool-config.js +0 -0
- /package/out/interface/{i-environment → api/environment}/i-environment.js +0 -0
- /package/out/{command/interface → interface/api/environment}/index.js +0 -0
- /package/out/{command/interface/command/command-option.js → interface/api/global-param/i-api-context.js} +0 -0
- /package/out/{command/interface/command/command.js → interface/api/global-param/i-global-param.js} +0 -0
- /package/out/{utils/message-center/interface → interface/api/global-param}/index.js +0 -0
- /package/out/{command/interface/disposable/disposable.js → interface/api/ibizsys/i-api-ibizsys.js} +0 -0
- /package/out/interface/{i-18n/i-18n.js → api/ibizsys/i-org-data.js} +0 -0
- /package/out/interface/{i-add-in-changed/i-add-in-changed.js → api/ibizsys/index.js} +0 -0
- /package/out/interface/{i-internal-message/i-internal-message.js → api/utils/i-api-i18n.js} +0 -0
- /package/out/interface/{i-mark-open-data/i-mark-open-data.js → api/utils/message-center/base/i-message-all.js} +0 -0
- /package/out/interface/{i-portal-async-action/i-portal-async-action.js → api/utils/message-center/base/i-message-base.js} +0 -0
- /package/out/interface/{i-portal-message/i-portal-message.js → api/utils/message-center/base/index.js} +0 -0
- /package/out/interface/{org-data/org-data.js → api/utils/message-center/command/add-in-changed/i-add-in-changed.js} +0 -0
- /package/out/{utils/message-center/interface/i-app-data-entity.js → interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.js} +0 -0
- /package/out/{utils/message-center/interface/i-msg-meta-data.js → interface/api/utils/message-center/command/async-action/i-command-async-action.js} +0 -0
package/out/utils/util/util.js
CHANGED
|
@@ -5,27 +5,20 @@ import { isNotNil, isNil } from 'ramda';
|
|
|
5
5
|
import { CoreConst, EMOJIMAP } from '../../constant';
|
|
6
6
|
import { getAppCookie } from '../cookie-util/cookie-util';
|
|
7
7
|
/**
|
|
8
|
-
* 获取认证令牌
|
|
9
|
-
*
|
|
10
|
-
* @author chitanda
|
|
11
|
-
* @date 2022-07-20 18:07:39
|
|
8
|
+
* @description 获取认证令牌
|
|
12
9
|
* @export
|
|
13
|
-
* @
|
|
10
|
+
* @returns {*} {(string | null)}
|
|
14
11
|
*/
|
|
15
12
|
export function getToken() {
|
|
16
13
|
return getAppCookie(CoreConst.TOKEN);
|
|
17
14
|
}
|
|
18
15
|
/**
|
|
19
|
-
* 判断两个数组是否有相同的元素
|
|
20
|
-
*
|
|
21
16
|
* @description 判断两个数组是否有相同的元素, 用法: 传入两个数组 返回值为boolean类型
|
|
22
17
|
* @example
|
|
23
18
|
* ```
|
|
24
19
|
* isOverlap([1, 2, 3], [3, 4, 5]) // => true
|
|
25
20
|
* isOverlap([1, 2, 3], [4, 5, 6]) // => false
|
|
26
21
|
* ```
|
|
27
|
-
* @author lxm
|
|
28
|
-
* @date 2022-09-20 19:09:29
|
|
29
22
|
* @export
|
|
30
23
|
* @param {any[]} arr1
|
|
31
24
|
* @param {any[]} arr2
|
|
@@ -36,14 +29,10 @@ export function isOverlap(arr1, arr2) {
|
|
|
36
29
|
return newArr.length !== arr1.length + arr2.length;
|
|
37
30
|
}
|
|
38
31
|
/**
|
|
39
|
-
* 是否元素相同
|
|
40
|
-
*
|
|
41
32
|
* @description 判断两个数组是否元素相同, 用法:传入需要判断的数组 返回值是boolean类型
|
|
42
33
|
* @example
|
|
43
34
|
* isOverlap([1, 2, 3], [1, 2, 3]) // => true
|
|
44
35
|
* isOverlap([{ test1: 1, test2: 2, test3: 3 }, { test1: 2, test2: 2, test3: 3 }], [{ test1: 1, test2: 2, test3: 3 }, { test1: 2, test2: 2, test3: 3 }], 'test1') // => true
|
|
45
|
-
* @author lxm
|
|
46
|
-
* @date 2023-05-22 12:50:53
|
|
47
36
|
* @export
|
|
48
37
|
* @param {any[]} arr1
|
|
49
38
|
* @param {any[]} arr2
|
|
@@ -61,9 +50,6 @@ export function isElementSame(arr1, arr2, field) {
|
|
|
61
50
|
return newArr.length === arr1.length;
|
|
62
51
|
}
|
|
63
52
|
/**
|
|
64
|
-
* 防抖并合并每次的参数,
|
|
65
|
-
* 最后一次才会执行
|
|
66
|
-
*
|
|
67
53
|
* @description 防抖并合并每次的参数,最后一次才会执行 用法:传入要防抖的函数和合并参数函数 有需要又可以传入时间 返回防抖函数执行值
|
|
68
54
|
* @example
|
|
69
55
|
* ```
|
|
@@ -88,8 +74,6 @@ export function isElementSame(arr1, arr2, field) {
|
|
|
88
74
|
* debouncedTestFunc(3, 4);
|
|
89
75
|
* debouncedTestFunc(4, 5); // testFunc called with (1, 5)
|
|
90
76
|
* ```
|
|
91
|
-
* @author lxm
|
|
92
|
-
* @date 2022-09-20 21:09:53
|
|
93
77
|
* @export
|
|
94
78
|
* @template T
|
|
95
79
|
* @param {T} func 要防抖的函数
|
|
@@ -119,9 +103,6 @@ export function debounceAndMerge(func, mergeFunc, wait) {
|
|
|
119
103
|
};
|
|
120
104
|
}
|
|
121
105
|
/**
|
|
122
|
-
* 防抖并合并每次的参数,最后一次才会执行
|
|
123
|
-
* 绑定方法为异步方法,给每次调用返回最终执行那次的结果
|
|
124
|
-
*
|
|
125
106
|
* @description 防抖并合并每次的参数,最后一次才会执行,绑定方法为异步方法,给每次调用返回最终执行那次的结果 用法:传入要防抖的函数和合并参数函数 返回Promise
|
|
126
107
|
* @example
|
|
127
108
|
* ```
|
|
@@ -160,8 +141,6 @@ export function debounceAndMerge(func, mergeFunc, wait) {
|
|
|
160
141
|
* });
|
|
161
142
|
* }, 2000);
|
|
162
143
|
* ```
|
|
163
|
-
* @author lxm
|
|
164
|
-
* @date 2022-09-20 21:09:53
|
|
165
144
|
* @export
|
|
166
145
|
* @template T
|
|
167
146
|
* @param {T} func 要防抖的函数
|
|
@@ -211,16 +190,12 @@ export function debounceAndAsyncMerge(func, mergeFunc, wait) {
|
|
|
211
190
|
return fun;
|
|
212
191
|
}
|
|
213
192
|
/**
|
|
214
|
-
* 把右侧的对象里非空的属性合并到左侧对象里
|
|
215
|
-
*
|
|
216
193
|
* @description 把右侧的对象里非空的属性合并到左侧对象里, 用法:传入需要合并的数组 无返回值
|
|
217
194
|
* @example
|
|
218
195
|
* ```
|
|
219
196
|
* obj1 = { a: 1, b: 2 }; obj2 = { c: null, d: false, e: undefined, f: 0, g: {} }; mergeInLeft(obj1, obj2); // => obj1 修改为 { a: 1, b: 2, d: false, f: 0, g: {} }
|
|
220
197
|
* obj1 = { a: 1, b: 2 }; obj2 = { a: 2, b: 3, c: null, d: false, e: undefined, f: 0, g: {} }; // => obj1 修改为 { a: 2, b: 3, d: false, f: 0, g: {} }
|
|
221
198
|
* ```
|
|
222
|
-
* @author lxm
|
|
223
|
-
* @date 2023-05-16 02:23:39
|
|
224
199
|
* @param {IData} l
|
|
225
200
|
* @param {IData} r
|
|
226
201
|
*/
|
|
@@ -232,16 +207,12 @@ export function mergeInLeft(l, r) {
|
|
|
232
207
|
});
|
|
233
208
|
}
|
|
234
209
|
/**
|
|
235
|
-
* 把右侧的对象里非空的属性合并到左侧对象属性为空里
|
|
236
|
-
*
|
|
237
210
|
* @description 把右侧的对象里非空的属性合并到左侧对象属性为空里, 用法:传入需要合并的数组 无返回值
|
|
238
211
|
* @example
|
|
239
212
|
* ```
|
|
240
213
|
* obj1 = { a: 1, b: 2 }; obj2 = { c: null, d: false, e: undefined, f: 0, g: {} }; mergeInLeft(obj1, obj2); // => obj1 修改为 { a: 1, b: 2, d: false, f: 0, g: {} }
|
|
241
214
|
* obj1 = { a: 1, b: 2 }; obj2 = { a: 2, b: 3, c: null, d: false, e: undefined, f: 0, g: {} }; // => obj1 修改为 { a: 1, b: 2, d: false, f: 0, g: {} }
|
|
242
215
|
* ```
|
|
243
|
-
* @author zk
|
|
244
|
-
* @date 2023-06-01 02:06:36
|
|
245
216
|
* @export
|
|
246
217
|
* @param {IData} l
|
|
247
218
|
* @param {IData} r
|
|
@@ -254,8 +225,6 @@ export function mergeDefaultInLeft(l, r) {
|
|
|
254
225
|
});
|
|
255
226
|
}
|
|
256
227
|
/**
|
|
257
|
-
* 比较两个数组集合,找出相同和不同的元素
|
|
258
|
-
*
|
|
259
228
|
* @description 比较两个数组集合,找出相同和不同的元素 用法:传入需要比较的两个数组 返回值是{more: IData[], less: IData[], same: IData[]}
|
|
260
229
|
* @example
|
|
261
230
|
* ```
|
|
@@ -264,8 +233,6 @@ export function mergeDefaultInLeft(l, r) {
|
|
|
264
233
|
* 数组中有引用对象
|
|
265
234
|
* compareArr([{ id: 1, name: 'John' }, { id: 2, name: 'Jane' }], [{ id: 2, name: 'Jane' }, { id: 3, name: 'Bob' }], 'id') // => {more: [{ id: 1, name: 'John' }], less: [{ id: 3, name: 'Bob' }], same: [{ id: 2, name: 'Jane' }, { id: 2, name: 'Jane' }]}
|
|
266
235
|
* ```
|
|
267
|
-
* @author lxm
|
|
268
|
-
* @date 2023-05-29 12:33:55
|
|
269
236
|
* @export
|
|
270
237
|
* @param {IData[]} arr1 数组一
|
|
271
238
|
* @param {IData[]} arr2 数组二
|
|
@@ -316,18 +283,12 @@ export function compareArr(arr1, arr2, keyField) {
|
|
|
316
283
|
};
|
|
317
284
|
}
|
|
318
285
|
/**
|
|
319
|
-
* 转换为数字或undefined
|
|
320
|
-
* - 如果是undefined或null 返回undefined
|
|
321
|
-
* - 其他情况转成数字,能转成数字的返回数字,NaN的返回undefined
|
|
322
|
-
*
|
|
323
286
|
* @description 转换为数字或undefined,如果是undefined或null 返回undefined,其他情况转成数字,能转成数字的返回数字,NaN的返回undefined 用法:传入任意值 返回值为number或undefined类型
|
|
324
287
|
* @example
|
|
325
288
|
* ```
|
|
326
289
|
* toNumberOrNil(5); // => 5
|
|
327
290
|
* toNumberOrNil(undefined); // => undefined
|
|
328
291
|
* ```
|
|
329
|
-
* @author lxm
|
|
330
|
-
* @date 2023-06-08 06:30:57
|
|
331
292
|
* @param {unknown} value 值
|
|
332
293
|
* @return {*} {(number | undefined)}
|
|
333
294
|
*/
|
|
@@ -343,16 +304,12 @@ export function toNumberOrNil(value) {
|
|
|
343
304
|
}
|
|
344
305
|
const SvgPattern = /<svg\b[^>]*>[\s\S]*?<\/svg>/;
|
|
345
306
|
/**
|
|
346
|
-
* 判断字符串是否是svg的格式
|
|
347
|
-
*
|
|
348
307
|
* @description 判断字符串是否是svg的格式 用法:传入svg字符串 返回值为Boolean类型
|
|
349
308
|
* @example
|
|
350
309
|
* ```
|
|
351
310
|
* isSvg('<svg xmlns="http://www.w3.org/2000/svg"><rect x="10" y="10" width="100" height="100" fill="red" /></svg>'); // => true
|
|
352
311
|
* isSvg('<svg1 xmlns="http://www.w3.org/2000/svg"><rect x="10" y="10" width="100" height="100" fill="red" /></svg1>'); // => false
|
|
353
312
|
* ```
|
|
354
|
-
* @author lxm
|
|
355
|
-
* @date 2023-10-17 02:04:28
|
|
356
313
|
* @export
|
|
357
314
|
* @param {string} str
|
|
358
315
|
* @return {*} {boolean}
|
|
@@ -361,8 +318,6 @@ export function isSvg(str) {
|
|
|
361
318
|
return SvgPattern.test(str);
|
|
362
319
|
}
|
|
363
320
|
/**
|
|
364
|
-
* 处理浮点数相加
|
|
365
|
-
*
|
|
366
321
|
* @description 处理浮点数相加 用法:传入需要相加的数值 返回值为number类型
|
|
367
322
|
* @example
|
|
368
323
|
* ```
|
|
@@ -372,8 +327,6 @@ export function isSvg(str) {
|
|
|
372
327
|
* @param {number} a
|
|
373
328
|
* @param {number} b
|
|
374
329
|
* @return {*}
|
|
375
|
-
* @author: zhujiamin
|
|
376
|
-
* @Date: 2023-11-08 17:04:09
|
|
377
330
|
*/
|
|
378
331
|
export function plus(a, b) {
|
|
379
332
|
let c;
|
|
@@ -394,17 +347,12 @@ export function plus(a, b) {
|
|
|
394
347
|
return (a * e + b * e) / e;
|
|
395
348
|
}
|
|
396
349
|
/**
|
|
397
|
-
* 根据给定的属性名称集合,
|
|
398
|
-
* 查看目标对象是否具有该属性,如果没有设置undefined的定义
|
|
399
|
-
*
|
|
400
350
|
* @description 根据给定的属性名称集合,查看目标对象是否具有该属性,如果没有设置undefined的定义 ,用法:传入对象和字符串 无返回值
|
|
401
351
|
* @example
|
|
402
352
|
* ```
|
|
403
353
|
* obj = { a: '' }; updateKeyDefine(obj, ['b']); // => obj 修改为 {a: '', b: undefined}
|
|
404
354
|
* obj = { a: '' }; updateKeyDefine(obj, ['a', 'b']) // => obj 修改为 {a: '', b: undefined}
|
|
405
355
|
* ```
|
|
406
|
-
* @author lxm
|
|
407
|
-
* @date 2023-12-20 05:21:47
|
|
408
356
|
* @export
|
|
409
357
|
* @param {IParams} target 目标对象
|
|
410
358
|
* @param {s(string | symbol)[]} keys 需要支持的属性名称集合
|
|
@@ -422,8 +370,6 @@ export function updateKeyDefine(target, keys) {
|
|
|
422
370
|
});
|
|
423
371
|
}
|
|
424
372
|
/**
|
|
425
|
-
* 判断字符串是否为Base64图片格式
|
|
426
|
-
*
|
|
427
373
|
* @description 判断字符串是否为Base64图片格式, 用法传入字符串 返回值为boolean类型
|
|
428
374
|
* @example
|
|
429
375
|
* ```
|
|
@@ -432,15 +378,12 @@ export function updateKeyDefine(target, keys) {
|
|
|
432
378
|
* ```
|
|
433
379
|
* @param {string} str
|
|
434
380
|
* @return {*}
|
|
435
|
-
* @author: zhujiamin
|
|
436
|
-
* @Date: 2023-12-28 10:49:23
|
|
437
381
|
*/
|
|
438
382
|
export function isBase64Image(str) {
|
|
439
383
|
// 使用正则表达式检查字符串是否以"data:image/"开头,后面紧跟着base64编码
|
|
440
384
|
return /^data:image\/[a-zA-Z+]+;base64,([/+=\w\s]+|[^,]+)$/.test(str);
|
|
441
385
|
}
|
|
442
386
|
/**
|
|
443
|
-
* 判断字符串是否为Base64格式
|
|
444
387
|
* @description 判断字符串是否为Base64格式, 用法传入字符串 返回值为boolean类型
|
|
445
388
|
* ```
|
|
446
389
|
* isBase64('JUYwJTlGJTk4JTg0') => true
|
|
@@ -455,7 +398,6 @@ export function isBase64(str) {
|
|
|
455
398
|
return /^[A-Za-z0-9+/=]+$/.test(str) && str.length % 4 === 0;
|
|
456
399
|
}
|
|
457
400
|
/**
|
|
458
|
-
* 判断字符串是否为表情符号格式
|
|
459
401
|
* @description 判断字符串是否为表情符号格式, 用法传入字符串 返回值为boolean类型
|
|
460
402
|
* ```
|
|
461
403
|
* isEmoji('JUYwJTlGJTk4JTg0') => true
|
|
@@ -469,8 +411,7 @@ export function isEmoji(str) {
|
|
|
469
411
|
return EMOJIMAP.has(str);
|
|
470
412
|
}
|
|
471
413
|
/**
|
|
472
|
-
* 字符串转Base64格式字符串
|
|
473
|
-
* @description 主要用于将UTF-8字符串转为Base64格式字符串
|
|
414
|
+
* @description 字符串转Base64格式字符串,主要用于将UTF-8字符串转为Base64格式字符串
|
|
474
415
|
* ```
|
|
475
416
|
* strToBase64('😄') => 'JUYwJTlGJTk4JTg0'
|
|
476
417
|
* ```
|
|
@@ -482,8 +423,7 @@ export function strToBase64(str) {
|
|
|
482
423
|
return btoa(encodeURIComponent(str));
|
|
483
424
|
}
|
|
484
425
|
/**
|
|
485
|
-
* Base64
|
|
486
|
-
* @description 主要用于将UTF-8字符串转为的Base64格式字符串转回UTF-8字符串
|
|
426
|
+
* @description Base64格式字符串转普通字符串,主要用于将UTF-8字符串转为的Base64格式字符串转回UTF-8字符串
|
|
487
427
|
* ```
|
|
488
428
|
* base64ToStr('JUYwJTlGJTk4JTg0') => '😄'
|
|
489
429
|
* ```
|
|
@@ -510,8 +450,6 @@ export function base64ToBlob(base64) {
|
|
|
510
450
|
return new Blob([arr]);
|
|
511
451
|
}
|
|
512
452
|
/**
|
|
513
|
-
* 计算各种视图打开方式的样式
|
|
514
|
-
*
|
|
515
453
|
* @description 用于计算各种视图打开方式的样式, 用法:传入数值和视图类型 返回值为number或string类型
|
|
516
454
|
* @example
|
|
517
455
|
* ```
|
|
@@ -520,8 +458,6 @@ export function base64ToBlob(base64) {
|
|
|
520
458
|
* ```
|
|
521
459
|
* @param {number} value
|
|
522
460
|
* @return {*}
|
|
523
|
-
* @author: zhujiamin
|
|
524
|
-
* @Date: 2024-01-30 09:39:03
|
|
525
461
|
*/
|
|
526
462
|
export function calcOpenModeStyle(value, type) {
|
|
527
463
|
if (value >= 0 && value <= 100) {
|
|
@@ -535,7 +471,6 @@ export function calcOpenModeStyle(value, type) {
|
|
|
535
471
|
return '';
|
|
536
472
|
}
|
|
537
473
|
/**
|
|
538
|
-
* 计算title
|
|
539
474
|
* @description 根据环境变量判断是否展示title, 返回值为string或undefined类型
|
|
540
475
|
* ```
|
|
541
476
|
* enableTitle: true
|
|
@@ -551,12 +486,7 @@ export function showTitle(str) {
|
|
|
551
486
|
return ibiz.env.enableTitle ? str : undefined;
|
|
552
487
|
}
|
|
553
488
|
/**
|
|
554
|
-
* 将非标准JSON字符串转为JSON
|
|
555
|
-
*
|
|
556
|
-
* 1. 将单引号替换为双引号
|
|
557
|
-
* 2. 给对象的属性名加上双引号
|
|
558
|
-
* 3. 去除最后一个元素后的多余逗号
|
|
559
|
-
* 4. 去除多余的空格和换行符
|
|
489
|
+
* @description 将非标准JSON字符串转为JSON对象(自动修复常见的格式问题)。1. 将单引号替换为双引号,2. 给对象的属性名加上双引号,3. 去除最后一个元素后的多余逗号,4. 去除多余的空格和换行符
|
|
560
490
|
* @export
|
|
561
491
|
* @param {string} str
|
|
562
492
|
* @return {*} {*}
|
|
@@ -580,8 +510,7 @@ export function fixJsonString(str) {
|
|
|
580
510
|
}
|
|
581
511
|
}
|
|
582
512
|
/**
|
|
583
|
-
*
|
|
584
|
-
* - 默认获取 0 - 1000 的随机数
|
|
513
|
+
* @description 获取随机数,默认获取 0 - 1000 的随机数
|
|
585
514
|
* @export
|
|
586
515
|
* @param {number} [min=0] 随机数最小值
|
|
587
516
|
* @param {number} [max=1000] 随机数最大值
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/core",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.40-alpha.7",
|
|
4
4
|
"description": "运行时核心库",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "out/index.js",
|
|
@@ -49,6 +49,5 @@
|
|
|
49
49
|
"qs": "^6.11.0",
|
|
50
50
|
"qx-util": "^0.4.8",
|
|
51
51
|
"ramda": "^0.29.0"
|
|
52
|
-
}
|
|
53
|
-
"gitHead": "763fadf3223009ad5ac7bbb63fc03b6c7b0d6905"
|
|
52
|
+
}
|
|
54
53
|
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 指令参数, 主要用于在指令呈现时的展示参数
|
|
3
|
-
*
|
|
4
|
-
* @author chitanda
|
|
5
|
-
* @date 2022-06-28 17:06:47
|
|
6
|
-
* @export
|
|
7
|
-
* @interface ICommandOption
|
|
8
|
-
*/
|
|
9
|
-
export interface ICommandOption {
|
|
10
|
-
readonly id: string;
|
|
11
|
-
readonly title: string;
|
|
12
|
-
readonly tooltip?: string;
|
|
13
|
-
readonly description?: string;
|
|
14
|
-
/**
|
|
15
|
-
* 只支持 svg 图标
|
|
16
|
-
*
|
|
17
|
-
* @author chitanda
|
|
18
|
-
* @date 2022-06-29 14:06:42
|
|
19
|
-
* @type {string}
|
|
20
|
-
*/
|
|
21
|
-
readonly icon?: string;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=command-option.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-option.d.ts","sourceRoot":"","sources":["../../../../src/command/interface/command/command-option.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { IDisposable } from '../disposable/disposable';
|
|
2
|
-
import { ICommandOption } from './command-option';
|
|
3
|
-
/**
|
|
4
|
-
* 注册指令
|
|
5
|
-
*
|
|
6
|
-
* @author chitanda
|
|
7
|
-
* @date 2022-06-27 13:06:25
|
|
8
|
-
* @export
|
|
9
|
-
* @interface ICommand
|
|
10
|
-
*/
|
|
11
|
-
export interface ICommand {
|
|
12
|
-
id: string;
|
|
13
|
-
handler: ICommandHandler;
|
|
14
|
-
opts?: ICommandOption;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* 触发指令声明
|
|
18
|
-
*
|
|
19
|
-
* @author chitanda
|
|
20
|
-
* @date 2022-06-28 17:06:10
|
|
21
|
-
* @export
|
|
22
|
-
* @interface Command
|
|
23
|
-
*/
|
|
24
|
-
export interface Command {
|
|
25
|
-
/**
|
|
26
|
-
* Title of the command, like `save`.
|
|
27
|
-
*/
|
|
28
|
-
title: string;
|
|
29
|
-
/**
|
|
30
|
-
* The identifier of the actual command handler.
|
|
31
|
-
* @see {@link commands.registerCommand}
|
|
32
|
-
*/
|
|
33
|
-
command: string;
|
|
34
|
-
/**
|
|
35
|
-
* A tooltip for the command, when represented in the UI.
|
|
36
|
-
*/
|
|
37
|
-
tooltip?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Arguments that the command handler should be
|
|
40
|
-
* invoked with.
|
|
41
|
-
*/
|
|
42
|
-
arguments?: any[];
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* 指令处理回调
|
|
46
|
-
*
|
|
47
|
-
* @author chitanda
|
|
48
|
-
* @date 2022-06-27 13:06:33
|
|
49
|
-
* @export
|
|
50
|
-
* @interface ICommandHandler
|
|
51
|
-
*/
|
|
52
|
-
export interface ICommandHandler {
|
|
53
|
-
(...args: any[]): unknown | Promise<unknown>;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* 指令控制器集
|
|
57
|
-
*/
|
|
58
|
-
export type ICommandsMap = Map<string, ICommand>;
|
|
59
|
-
/**
|
|
60
|
-
* 注册服务
|
|
61
|
-
*
|
|
62
|
-
* @author chitanda
|
|
63
|
-
* @date 2022-06-27 13:06:16
|
|
64
|
-
* @export
|
|
65
|
-
* @interface ICommandRegistry
|
|
66
|
-
*/
|
|
67
|
-
export interface ICommandRegistry {
|
|
68
|
-
registerCommand(id: string, command: ICommandHandler, opts: ICommandOption): IDisposable;
|
|
69
|
-
registerCommand(id: string, command: ICommandHandler): IDisposable;
|
|
70
|
-
registerCommand(command: ICommand): IDisposable;
|
|
71
|
-
getCommand(id: string): ICommand | undefined;
|
|
72
|
-
getCommands(): ICommandsMap;
|
|
73
|
-
}
|
|
74
|
-
//# sourceMappingURL=command.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../src/command/interface/command/command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;;GAOG;AACH,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,eAAe,CAAC;IACzB,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAEjD;;;;;;;GAOG;AACH,MAAM,WAAW,gBAAgB;IAC/B,eAAe,CACb,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,cAAc,GACnB,WAAW,CAAC;IACf,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,WAAW,CAAC;IACnE,eAAe,CAAC,OAAO,EAAE,QAAQ,GAAG,WAAW,CAAC;IAChD,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC7C,WAAW,IAAI,YAAY,CAAC;CAC7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"disposable.d.ts","sourceRoot":"","sources":["../../../../src/command/interface/disposable/disposable.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,OAAO,IAAI,IAAI,CAAC;CACjB"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export type { ICommand, Command, ICommandHandler, ICommandsMap, ICommandRegistry, } from './command/command';
|
|
2
|
-
export type { ICommandOption } from './command/command-option';
|
|
3
|
-
export type { IDisposable } from './disposable/disposable';
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/command/interface/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,QAAQ,EACR,OAAO,EACP,eAAe,EACf,YAAY,EACZ,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,YAAY,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"login-mode.d.ts","sourceRoot":"","sources":["../../../src/constant/login-mode/login-mode.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AACH,oBAAY,SAAS;IACnB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,MAAM,WAAW;IACjB;;OAEG;IACH,GAAG,QAAQ;IAEX;;OAEG;IACH,KAAK,UAAU;CAChB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menu-permission-mode.d.ts","sourceRoot":"","sources":["../../../src/constant/menu-permission-mode/menu-permission-mode.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AACH,oBAAY,kBAAkB;IAC5B;;OAEG;IACH,KAAK,UAAU;IACf;;OAEG;IACH,QAAQ,aAAa;IACrB;;OAEG;IACH,EAAE,OAAO;CACV"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 多语言接口
|
|
3
|
-
*
|
|
4
|
-
* @author chitanda
|
|
5
|
-
* @date 2023-08-11 16:08:21
|
|
6
|
-
* @export
|
|
7
|
-
* @interface I18n
|
|
8
|
-
*/
|
|
9
|
-
export interface I18n {
|
|
10
|
-
/**
|
|
11
|
-
* 异步初始化,加载多语言文件
|
|
12
|
-
*
|
|
13
|
-
* @author chitanda
|
|
14
|
-
* @date 2023-08-24 17:08:03
|
|
15
|
-
* @return {*} {Promise<void>}
|
|
16
|
-
*/
|
|
17
|
-
init(): Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* 设置异步加载的多语言模块
|
|
20
|
-
*
|
|
21
|
-
* @author chitanda
|
|
22
|
-
* @date 2023-08-24 23:08:28
|
|
23
|
-
* @param {Record<string, () => Promise<IData>>} languages
|
|
24
|
-
*/
|
|
25
|
-
setLangConfigs(languages: Record<string, () => Promise<IData>>): void;
|
|
26
|
-
/**
|
|
27
|
-
* 设置当前语言
|
|
28
|
-
*
|
|
29
|
-
* @author chitanda
|
|
30
|
-
* @date 2023-08-24 16:08:11
|
|
31
|
-
* @param {string} lang
|
|
32
|
-
*/
|
|
33
|
-
setLang(lang: string): void;
|
|
34
|
-
/**
|
|
35
|
-
* 获取当前语言
|
|
36
|
-
*
|
|
37
|
-
* @author chitanda
|
|
38
|
-
* @date 2023-08-24 16:08:04
|
|
39
|
-
* @return {*} {string}
|
|
40
|
-
*/
|
|
41
|
-
getLang(): string;
|
|
42
|
-
/**
|
|
43
|
-
* 消息格式化
|
|
44
|
-
*
|
|
45
|
-
* @author chitanda
|
|
46
|
-
* @date 2023-08-11 16:08:40
|
|
47
|
-
* @param {string} tag
|
|
48
|
-
* @param {IParams} [options]
|
|
49
|
-
* @return {*} {string}
|
|
50
|
-
*/
|
|
51
|
-
t(tag: string, options?: IParams): string;
|
|
52
|
-
/**
|
|
53
|
-
* 消息格式化
|
|
54
|
-
*
|
|
55
|
-
* @author chitanda
|
|
56
|
-
* @date 2023-08-11 16:08:42
|
|
57
|
-
* @param {string} tag
|
|
58
|
-
* @param {string} [defaultMsg]
|
|
59
|
-
* @param {IParams} [options]
|
|
60
|
-
* @return {*} {string}
|
|
61
|
-
*/
|
|
62
|
-
t(tag: string, defaultMsg?: string, options?: IParams): string;
|
|
63
|
-
/**
|
|
64
|
-
* 合并指定语言语言资源
|
|
65
|
-
*
|
|
66
|
-
* @author tony001
|
|
67
|
-
* @date 2024-05-20 22:05:03
|
|
68
|
-
* @param {string} lang
|
|
69
|
-
* @param {IParams} data
|
|
70
|
-
*/
|
|
71
|
-
mergeLocaleMessage(lang: string, data: IParams): void;
|
|
72
|
-
/**
|
|
73
|
-
* 合并语言资源
|
|
74
|
-
*
|
|
75
|
-
* @author tony001
|
|
76
|
-
* @date 2024-05-20 22:05:29
|
|
77
|
-
* @param {IParams} data
|
|
78
|
-
*/
|
|
79
|
-
mergeLocaleMessage(data: IParams): void;
|
|
80
|
-
}
|
|
81
|
-
//# sourceMappingURL=i-18n.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i-18n.d.ts","sourceRoot":"","sources":["../../../src/interface/i-18n/i-18n.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,IAAI;IACnB;;;;;;OAMG;IACH,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtB;;;;;;OAMG;IACH,cAAc,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC;IAEtE;;;;;;OAMG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;;;;;OAMG;IACH,OAAO,IAAI,MAAM,CAAC;IAElB;;;;;;;;OAQG;IACH,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAE1C;;;;;;;;;OASG;IACH,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAE/D;;;;;;;OAOG;IACH,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAEtD;;;;;;OAMG;IACH,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;CACzC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i-add-in-changed.d.ts","sourceRoot":"","sources":["../../../src/interface/i-add-in-changed/i-add-in-changed.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { LogLevelDesc } from 'loglevel';
|
|
2
|
-
/**
|
|
3
|
-
* devtool的配置对象
|
|
4
|
-
* @author lxm
|
|
5
|
-
* @date 2024-01-29 11:29:59
|
|
6
|
-
* @export
|
|
7
|
-
* @interface IDevToolConfig
|
|
8
|
-
*/
|
|
9
|
-
export interface IDevToolConfig {
|
|
10
|
-
/**
|
|
11
|
-
* 配置平台基础路径
|
|
12
|
-
* @author lxm
|
|
13
|
-
* @date 2024-01-19 05:26:35
|
|
14
|
-
* @type {string}
|
|
15
|
-
*/
|
|
16
|
-
studioBaseUrl?: string;
|
|
17
|
-
/**
|
|
18
|
-
* 模型预览宽度
|
|
19
|
-
* @return {*}
|
|
20
|
-
* @author: zhujiamin
|
|
21
|
-
* @Date: 2024-02-20 13:28:20
|
|
22
|
-
*/
|
|
23
|
-
modelPreviewWidth?: number;
|
|
24
|
-
/**
|
|
25
|
-
* 日志级别
|
|
26
|
-
* @return {*}
|
|
27
|
-
* @author: zhujiamin
|
|
28
|
-
* @Date: 2024-02-20 13:28:20
|
|
29
|
-
*/
|
|
30
|
-
logLevel?: LogLevelDesc;
|
|
31
|
-
/**
|
|
32
|
-
* v9模式
|
|
33
|
-
*
|
|
34
|
-
* @author tony001
|
|
35
|
-
* @date 2025-02-07 13:02:02
|
|
36
|
-
* @type {boolean}
|
|
37
|
-
*/
|
|
38
|
-
v9Mode?: boolean;
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=i-devtool-config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i-devtool-config.d.ts","sourceRoot":"","sources":["../../../src/interface/i-devtool-config/i-devtool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;IAExB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
|