@ibiz-template/core 0.7.39 → 0.7.40
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 +543 -662
- 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 +8 -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 +42 -0
- package/out/interface/api/environment/i-devtool-config.d.ts.map +1 -0
- package/out/interface/api/environment/i-environment.d.ts +332 -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 +31 -12
- 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/logger/logger.js +3 -2
- 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 -2
- 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
|
@@ -1,65 +1,51 @@
|
|
|
1
|
-
import { ICommand, ICommandHandler, ICommandOption, ICommandRegistry, ICommandsMap, IDisposable } from '
|
|
1
|
+
import { ICommand, ICommandHandler, ICommandOption, ICommandRegistry, ICommandsMap, IDisposable } from '../interface';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @author chitanda
|
|
6
|
-
* @date 2022-06-27 13:06:50
|
|
3
|
+
* @description 指令注册中心
|
|
7
4
|
* @export
|
|
8
|
-
* @class
|
|
5
|
+
* @class CommandsRegistry
|
|
9
6
|
* @implements {ICommandRegistry}
|
|
10
7
|
*/
|
|
11
8
|
export declare class CommandsRegistry implements ICommandRegistry {
|
|
12
9
|
/**
|
|
13
|
-
* 已经注册的所有指令
|
|
14
|
-
*
|
|
15
|
-
* @author chitanda
|
|
16
|
-
* @date 2022-07-21 15:07:47
|
|
10
|
+
* @description 已经注册的所有指令
|
|
17
11
|
* @private
|
|
12
|
+
* @memberof CommandsRegistry
|
|
18
13
|
*/
|
|
19
14
|
private readonly commands;
|
|
20
15
|
/**
|
|
21
|
-
* 注册指令
|
|
22
|
-
*
|
|
23
|
-
* @
|
|
24
|
-
* @
|
|
25
|
-
* @
|
|
26
|
-
* @
|
|
27
|
-
* @return {*} {IDisposable}
|
|
16
|
+
* @description 注册指令
|
|
17
|
+
* @param {(string | ICommand)} idOrCommand 指令id或者指令对象
|
|
18
|
+
* @param {ICommandHandler} [handler] 指令处理器
|
|
19
|
+
* @param {ICommandOption} [opts] 指令配置参数
|
|
20
|
+
* @returns {*} {IDisposable} 返回一个可销毁对象,用于取消注册该指令
|
|
21
|
+
* @memberof CommandsRegistry
|
|
28
22
|
*/
|
|
29
23
|
registerCommand(idOrCommand: string | ICommand, handler?: ICommandHandler, opts?: ICommandOption): IDisposable;
|
|
30
24
|
/**
|
|
31
|
-
* 指令是否已经注册
|
|
32
|
-
*
|
|
33
|
-
* @author chitanda
|
|
34
|
-
* @date 2022-07-21 15:07:58
|
|
25
|
+
* @description 指令是否已经注册
|
|
35
26
|
* @param {string} id
|
|
36
|
-
* @
|
|
27
|
+
* @returns {*} {boolean}
|
|
28
|
+
* @memberof CommandsRegistry
|
|
37
29
|
*/
|
|
38
30
|
hasCommand(id: string): boolean;
|
|
39
31
|
/**
|
|
40
|
-
* 查找指令
|
|
41
|
-
*
|
|
42
|
-
* @author chitanda
|
|
43
|
-
* @date 2022-07-21 16:07:12
|
|
32
|
+
* @description 查找指令
|
|
44
33
|
* @param {string} id
|
|
45
|
-
* @
|
|
34
|
+
* @returns {*} {(ICommand | undefined)}
|
|
35
|
+
* @memberof CommandsRegistry
|
|
46
36
|
*/
|
|
47
37
|
getCommand(id: string): ICommand | undefined;
|
|
48
38
|
/**
|
|
49
|
-
* 获取所有指令
|
|
50
|
-
*
|
|
51
|
-
* @
|
|
52
|
-
* @date 2022-07-21 16:07:20
|
|
53
|
-
* @return {*} {ICommandsMap}
|
|
39
|
+
* @description 获取所有指令
|
|
40
|
+
* @returns {*} {ICommandsMap}
|
|
41
|
+
* @memberof CommandsRegistry
|
|
54
42
|
*/
|
|
55
43
|
getCommands(): ICommandsMap;
|
|
56
44
|
/**
|
|
57
|
-
* 获取指令配置参数
|
|
58
|
-
*
|
|
59
|
-
* @author chitanda
|
|
60
|
-
* @date 2022-07-21 16:07:27
|
|
45
|
+
* @description 获取指令配置参数
|
|
61
46
|
* @param {string} id
|
|
62
|
-
* @
|
|
47
|
+
* @returns {*} {(ICommandOption | undefined)}
|
|
48
|
+
* @memberof CommandsRegistry
|
|
63
49
|
*/
|
|
64
50
|
getCommandOpt(id: string): ICommandOption | undefined;
|
|
65
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-register.d.ts","sourceRoot":"","sources":["../../src/command/command-register.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACZ,MAAM,
|
|
1
|
+
{"version":3,"file":"command-register.d.ts","sourceRoot":"","sources":["../../src/command/command-register.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACZ,MAAM,cAAc,CAAC;AAGtB;;;;;GAKG;AACH,qBAAa,gBAAiB,YAAW,gBAAgB;IACvD;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA2C;IAEpE;;;;;;;OAOG;IACH,eAAe,CACb,WAAW,EAAE,MAAM,GAAG,QAAQ,EAC9B,OAAO,CAAC,EAAE,eAAe,EACzB,IAAI,CAAC,EAAE,cAAc,GACpB,WAAW;IAiCd;;;;;OAKG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAI/B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS;IAQ5C;;;;OAIG;IACH,WAAW,IAAI,YAAY;IAY3B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS;CAItD"}
|
|
@@ -1,32 +1,26 @@
|
|
|
1
1
|
import { LinkedList, toDisposable } from './utils';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @author chitanda
|
|
6
|
-
* @date 2022-06-27 13:06:50
|
|
3
|
+
* @description 指令注册中心
|
|
7
4
|
* @export
|
|
8
|
-
* @class
|
|
5
|
+
* @class CommandsRegistry
|
|
9
6
|
* @implements {ICommandRegistry}
|
|
10
7
|
*/
|
|
11
8
|
export class CommandsRegistry {
|
|
12
9
|
constructor() {
|
|
13
10
|
/**
|
|
14
|
-
* 已经注册的所有指令
|
|
15
|
-
*
|
|
16
|
-
* @author chitanda
|
|
17
|
-
* @date 2022-07-21 15:07:47
|
|
11
|
+
* @description 已经注册的所有指令
|
|
18
12
|
* @private
|
|
13
|
+
* @memberof CommandsRegistry
|
|
19
14
|
*/
|
|
20
15
|
this.commands = new Map();
|
|
21
16
|
}
|
|
22
17
|
/**
|
|
23
|
-
* 注册指令
|
|
24
|
-
*
|
|
25
|
-
* @
|
|
26
|
-
* @
|
|
27
|
-
* @
|
|
28
|
-
* @
|
|
29
|
-
* @return {*} {IDisposable}
|
|
18
|
+
* @description 注册指令
|
|
19
|
+
* @param {(string | ICommand)} idOrCommand 指令id或者指令对象
|
|
20
|
+
* @param {ICommandHandler} [handler] 指令处理器
|
|
21
|
+
* @param {ICommandOption} [opts] 指令配置参数
|
|
22
|
+
* @returns {*} {IDisposable} 返回一个可销毁对象,用于取消注册该指令
|
|
23
|
+
* @memberof CommandsRegistry
|
|
30
24
|
*/
|
|
31
25
|
registerCommand(idOrCommand, handler, opts) {
|
|
32
26
|
if (!idOrCommand) {
|
|
@@ -55,23 +49,19 @@ export class CommandsRegistry {
|
|
|
55
49
|
return ret;
|
|
56
50
|
}
|
|
57
51
|
/**
|
|
58
|
-
* 指令是否已经注册
|
|
59
|
-
*
|
|
60
|
-
* @author chitanda
|
|
61
|
-
* @date 2022-07-21 15:07:58
|
|
52
|
+
* @description 指令是否已经注册
|
|
62
53
|
* @param {string} id
|
|
63
|
-
* @
|
|
54
|
+
* @returns {*} {boolean}
|
|
55
|
+
* @memberof CommandsRegistry
|
|
64
56
|
*/
|
|
65
57
|
hasCommand(id) {
|
|
66
58
|
return this.commands.has(id);
|
|
67
59
|
}
|
|
68
60
|
/**
|
|
69
|
-
* 查找指令
|
|
70
|
-
*
|
|
71
|
-
* @author chitanda
|
|
72
|
-
* @date 2022-07-21 16:07:12
|
|
61
|
+
* @description 查找指令
|
|
73
62
|
* @param {string} id
|
|
74
|
-
* @
|
|
63
|
+
* @returns {*} {(ICommand | undefined)}
|
|
64
|
+
* @memberof CommandsRegistry
|
|
75
65
|
*/
|
|
76
66
|
getCommand(id) {
|
|
77
67
|
const list = this.commands.get(id);
|
|
@@ -81,11 +71,9 @@ export class CommandsRegistry {
|
|
|
81
71
|
return list[Symbol.iterator]().next().value;
|
|
82
72
|
}
|
|
83
73
|
/**
|
|
84
|
-
* 获取所有指令
|
|
85
|
-
*
|
|
86
|
-
* @
|
|
87
|
-
* @date 2022-07-21 16:07:20
|
|
88
|
-
* @return {*} {ICommandsMap}
|
|
74
|
+
* @description 获取所有指令
|
|
75
|
+
* @returns {*} {ICommandsMap}
|
|
76
|
+
* @memberof CommandsRegistry
|
|
89
77
|
*/
|
|
90
78
|
getCommands() {
|
|
91
79
|
const result = new Map();
|
|
@@ -99,12 +87,10 @@ export class CommandsRegistry {
|
|
|
99
87
|
return result;
|
|
100
88
|
}
|
|
101
89
|
/**
|
|
102
|
-
* 获取指令配置参数
|
|
103
|
-
*
|
|
104
|
-
* @author chitanda
|
|
105
|
-
* @date 2022-07-21 16:07:27
|
|
90
|
+
* @description 获取指令配置参数
|
|
106
91
|
* @param {string} id
|
|
107
|
-
* @
|
|
92
|
+
* @returns {*} {(ICommandOption | undefined)}
|
|
93
|
+
* @memberof CommandsRegistry
|
|
108
94
|
*/
|
|
109
95
|
getCommandOpt(id) {
|
|
110
96
|
const cmd = this.getCommand(id);
|
package/out/command/command.d.ts
CHANGED
|
@@ -1,53 +1,47 @@
|
|
|
1
|
-
import { ICommandHandler, ICommandOption, IDisposable } from '
|
|
1
|
+
import { ICommandController, ICommandHandler, ICommandOption, IDisposable } from '../interface/command';
|
|
2
2
|
/**
|
|
3
|
-
* 指令控制器
|
|
4
|
-
*
|
|
5
|
-
* @author chitanda
|
|
6
|
-
* @date 2022-06-28 19:06:51
|
|
3
|
+
* @description 指令控制器
|
|
7
4
|
* @export
|
|
8
5
|
* @class CommandController
|
|
9
6
|
*/
|
|
10
|
-
export declare class CommandController {
|
|
7
|
+
export declare class CommandController implements ICommandController {
|
|
8
|
+
/**
|
|
9
|
+
* @description 指令注册器
|
|
10
|
+
* @private
|
|
11
|
+
* @memberof CommandController
|
|
12
|
+
*/
|
|
11
13
|
private commandRegister;
|
|
12
14
|
/**
|
|
13
|
-
* 注册指令
|
|
14
|
-
*
|
|
15
|
-
* @
|
|
16
|
-
* @
|
|
17
|
-
* @
|
|
18
|
-
* @
|
|
19
|
-
* @param {ICommandOption} [opts]
|
|
20
|
-
* @return {*} {IDisposable}
|
|
15
|
+
* @description 注册指令
|
|
16
|
+
* @param {string} id 指令id
|
|
17
|
+
* @param {ICommandHandler} handler 指令处理回调
|
|
18
|
+
* @param {ICommandOption} [opts] 指令参数
|
|
19
|
+
* @returns {*} {IDisposable} 指令释放对象
|
|
20
|
+
* @memberof CommandController
|
|
21
21
|
*/
|
|
22
22
|
register(id: string, handler: ICommandHandler, opts?: ICommandOption): IDisposable;
|
|
23
23
|
/**
|
|
24
|
-
* 执行指令
|
|
25
|
-
*
|
|
26
|
-
* @author chitanda
|
|
27
|
-
* @date 2022-06-28 19:06:38
|
|
24
|
+
* @description 执行指令
|
|
28
25
|
* @template T
|
|
29
|
-
* @param {string} id
|
|
30
|
-
* @param {...unknown[]} args
|
|
31
|
-
* @
|
|
26
|
+
* @param {string} id 指令id
|
|
27
|
+
* @param {...unknown[]} args 指令参数
|
|
28
|
+
* @returns {*} {Promise<T>} 指令返回值
|
|
29
|
+
* @memberof CommandController
|
|
32
30
|
*/
|
|
33
31
|
execute<T = undefined>(id: string, ...args: unknown[]): Promise<T>;
|
|
34
32
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* @
|
|
38
|
-
* @
|
|
39
|
-
* @
|
|
40
|
-
* @param {boolean} [err]
|
|
41
|
-
* @return {*} {boolean}
|
|
33
|
+
* @description 判断指令是否存在,没有则直接抛出异常
|
|
34
|
+
* @param {string} id 指令id
|
|
35
|
+
* @param {boolean} [err] 是否抛出异常
|
|
36
|
+
* @returns {*} {boolean} 是否存在
|
|
37
|
+
* @memberof CommandController
|
|
42
38
|
*/
|
|
43
39
|
hasCommand(id: string, err?: boolean): boolean;
|
|
44
40
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* @
|
|
48
|
-
* @
|
|
49
|
-
* @param {string} id
|
|
50
|
-
* @return {*} {(ICommandOption | undefined)}
|
|
41
|
+
* @description 获取指令参数
|
|
42
|
+
* @param {string} id 指令id
|
|
43
|
+
* @returns {*} {(ICommandOption | undefined)} 指令参数
|
|
44
|
+
* @memberof CommandController
|
|
51
45
|
*/
|
|
52
46
|
getCommandOpts(id: string): ICommandOption | undefined;
|
|
53
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/command/command.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/command/command.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,WAAW,EACZ,MAAM,sBAAsB,CAAC;AAG9B;;;;GAIG;AACH,qBAAa,iBAAkB,YAAW,kBAAkB;IAC1D;;;;OAIG;IACH,OAAO,CAAC,eAAe,CAA0B;IAEjD;;;;;;;OAOG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,eAAe,EACxB,IAAI,CAAC,EAAE,cAAc,GACpB,WAAW;IAId;;;;;;;OAOG;IACG,OAAO,CAAC,CAAC,GAAG,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC;IAQxE;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,GAAG,OAAO;IAQ9C;;;;;OAKG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS;CAGvD"}
|
package/out/command/command.js
CHANGED
|
@@ -1,38 +1,36 @@
|
|
|
1
1
|
import { CommandsRegistry } from './command-register';
|
|
2
2
|
/**
|
|
3
|
-
* 指令控制器
|
|
4
|
-
*
|
|
5
|
-
* @author chitanda
|
|
6
|
-
* @date 2022-06-28 19:06:51
|
|
3
|
+
* @description 指令控制器
|
|
7
4
|
* @export
|
|
8
5
|
* @class CommandController
|
|
9
6
|
*/
|
|
10
7
|
export class CommandController {
|
|
11
8
|
constructor() {
|
|
9
|
+
/**
|
|
10
|
+
* @description 指令注册器
|
|
11
|
+
* @private
|
|
12
|
+
* @memberof CommandController
|
|
13
|
+
*/
|
|
12
14
|
this.commandRegister = new CommandsRegistry();
|
|
13
15
|
}
|
|
14
16
|
/**
|
|
15
|
-
* 注册指令
|
|
16
|
-
*
|
|
17
|
-
* @
|
|
18
|
-
* @
|
|
19
|
-
* @
|
|
20
|
-
* @
|
|
21
|
-
* @param {ICommandOption} [opts]
|
|
22
|
-
* @return {*} {IDisposable}
|
|
17
|
+
* @description 注册指令
|
|
18
|
+
* @param {string} id 指令id
|
|
19
|
+
* @param {ICommandHandler} handler 指令处理回调
|
|
20
|
+
* @param {ICommandOption} [opts] 指令参数
|
|
21
|
+
* @returns {*} {IDisposable} 指令释放对象
|
|
22
|
+
* @memberof CommandController
|
|
23
23
|
*/
|
|
24
24
|
register(id, handler, opts) {
|
|
25
25
|
return this.commandRegister.registerCommand(id, handler, opts);
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* 执行指令
|
|
29
|
-
*
|
|
30
|
-
* @author chitanda
|
|
31
|
-
* @date 2022-06-28 19:06:38
|
|
28
|
+
* @description 执行指令
|
|
32
29
|
* @template T
|
|
33
|
-
* @param {string} id
|
|
34
|
-
* @param {...unknown[]} args
|
|
35
|
-
* @
|
|
30
|
+
* @param {string} id 指令id
|
|
31
|
+
* @param {...unknown[]} args 指令参数
|
|
32
|
+
* @returns {*} {Promise<T>} 指令返回值
|
|
33
|
+
* @memberof CommandController
|
|
36
34
|
*/
|
|
37
35
|
async execute(id, ...args) {
|
|
38
36
|
const command = this.commandRegister.getCommand(id);
|
|
@@ -42,13 +40,11 @@ export class CommandController {
|
|
|
42
40
|
throw new Error(ibiz.i18n.t('core.command.unregisteredCommand', { id }));
|
|
43
41
|
}
|
|
44
42
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* @
|
|
48
|
-
* @
|
|
49
|
-
* @
|
|
50
|
-
* @param {boolean} [err]
|
|
51
|
-
* @return {*} {boolean}
|
|
43
|
+
* @description 判断指令是否存在,没有则直接抛出异常
|
|
44
|
+
* @param {string} id 指令id
|
|
45
|
+
* @param {boolean} [err] 是否抛出异常
|
|
46
|
+
* @returns {*} {boolean} 是否存在
|
|
47
|
+
* @memberof CommandController
|
|
52
48
|
*/
|
|
53
49
|
hasCommand(id, err) {
|
|
54
50
|
const bol = !!this.commandRegister.hasCommand(id);
|
|
@@ -58,12 +54,10 @@ export class CommandController {
|
|
|
58
54
|
return bol;
|
|
59
55
|
}
|
|
60
56
|
/**
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* @
|
|
64
|
-
* @
|
|
65
|
-
* @param {string} id
|
|
66
|
-
* @return {*} {(ICommandOption | undefined)}
|
|
57
|
+
* @description 获取指令参数
|
|
58
|
+
* @param {string} id 指令id
|
|
59
|
+
* @returns {*} {(ICommandOption | undefined)} 指令参数
|
|
60
|
+
* @memberof CommandController
|
|
67
61
|
*/
|
|
68
62
|
getCommandOpts(id) {
|
|
69
63
|
return this.commandRegister.getCommandOpt(id);
|
package/out/command/index.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { CommandController } from './command';
|
|
2
|
-
export * from '
|
|
2
|
+
export * from '../interface/command';
|
|
3
3
|
export * from './utils';
|
|
4
4
|
export { CommandsRegistry } from './command-register';
|
|
5
5
|
export { CommandController } from './command';
|
|
6
|
-
/**
|
|
7
|
-
* 命令控制器
|
|
8
|
-
*/
|
|
9
6
|
export declare const commands: CommandController;
|
|
10
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,eAAO,MAAM,QAAQ,mBAA0B,CAAC"}
|
package/out/command/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { CommandController } from './command';
|
|
2
|
-
export * from '
|
|
2
|
+
export * from '../interface/command';
|
|
3
3
|
export * from './utils';
|
|
4
4
|
export { CommandsRegistry } from './command-register';
|
|
5
5
|
export { CommandController } from './command';
|
|
6
|
-
|
|
7
|
-
* 命令控制器
|
|
8
|
-
*/
|
|
6
|
+
// 命令控制器
|
|
9
7
|
export const commands = new CommandController();
|
|
@@ -1,27 +1,35 @@
|
|
|
1
|
-
import { IDisposable } from '
|
|
1
|
+
import { IDisposable } from '../../interface';
|
|
2
|
+
/**
|
|
3
|
+
* @description 创建一个只能执行一次的包装函数
|
|
4
|
+
* @export
|
|
5
|
+
* @template T 函数类型
|
|
6
|
+
* @param {unknown} this 函数执行上下文
|
|
7
|
+
* @param {T} fn 需要包装的原始函数
|
|
8
|
+
* @returns {*} {T} 包装后的函数,只会执行一次原始函数
|
|
9
|
+
*/
|
|
2
10
|
export declare function once<T extends Function>(this: unknown, fn: T): T;
|
|
11
|
+
/**
|
|
12
|
+
* @description 将普通函数转换为一次性可销毁对象
|
|
13
|
+
* @export
|
|
14
|
+
* @param {() => void} fn 需要转换的函数
|
|
15
|
+
* @returns {*} {IDisposable} 可销毁对象
|
|
16
|
+
*/
|
|
3
17
|
export declare function toDisposable(fn: () => void): IDisposable;
|
|
4
18
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* @author chitanda
|
|
8
|
-
* @date 2022-06-29 19:06:15
|
|
19
|
+
* @description 函数防抖
|
|
9
20
|
* @export
|
|
10
|
-
* @param {((...args: unknown[]) => void | Promise<void>)} func
|
|
11
|
-
* @param {number} wait
|
|
21
|
+
* @param {((...args: unknown[]) => void | Promise<void>)} func 要执行的函数
|
|
22
|
+
* @param {number} wait 延迟时间(毫秒)
|
|
12
23
|
* @param {boolean} [immediate] 是否立即执行
|
|
13
|
-
* @
|
|
24
|
+
* @returns {*} {(...args: unknown[]) => void} 包装后的防抖函数
|
|
14
25
|
*/
|
|
15
26
|
export declare function debounce(func: (...args: unknown[]) => void | Promise<void>, wait: number, immediate?: boolean): (...args: unknown[]) => void;
|
|
16
27
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* @author chitanda
|
|
20
|
-
* @date 2022-06-29 20:06:38
|
|
28
|
+
* @description 节流函数,限制函数在指定时间间隔内只能执行一次
|
|
21
29
|
* @export
|
|
22
|
-
* @param {((...args: unknown[]) => void | Promise<void>)} fn
|
|
23
|
-
* @param {number} wait
|
|
24
|
-
* @
|
|
30
|
+
* @param {((...args: unknown[]) => void | Promise<void>)} fn 要执行的函数
|
|
31
|
+
* @param {number} wait 节流时间间隔(毫秒)
|
|
32
|
+
* @returns {*} {(...args: unknown[]) => void} 包装后的节流函数
|
|
25
33
|
*/
|
|
26
34
|
export declare function throttle(fn: (...args: unknown[]) => void | Promise<void>, wait: number): (...args: unknown[]) => void;
|
|
27
35
|
//# sourceMappingURL=util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/command/utils/util.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/command/utils/util.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,CAehE;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,WAAW,CAOxD;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EAClD,IAAI,EAAE,MAAM,EACZ,SAAS,CAAC,EAAE,OAAO,GAClB,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAqB9B;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EAChD,IAAI,EAAE,MAAM,GACX,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAU9B"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @description 创建一个只能执行一次的包装函数
|
|
3
|
+
* @export
|
|
4
|
+
* @template T 函数类型
|
|
5
|
+
* @param {unknown} this 函数执行上下文
|
|
6
|
+
* @param {T} fn 需要包装的原始函数
|
|
7
|
+
* @returns {*} {T} 包装后的函数,只会执行一次原始函数
|
|
8
|
+
*/
|
|
2
9
|
export function once(fn) {
|
|
3
|
-
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
4
10
|
const _this = this;
|
|
5
11
|
let didCall = false;
|
|
6
12
|
let result;
|
|
@@ -13,6 +19,12 @@ export function once(fn) {
|
|
|
13
19
|
return result;
|
|
14
20
|
};
|
|
15
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* @description 将普通函数转换为一次性可销毁对象
|
|
24
|
+
* @export
|
|
25
|
+
* @param {() => void} fn 需要转换的函数
|
|
26
|
+
* @returns {*} {IDisposable} 可销毁对象
|
|
27
|
+
*/
|
|
16
28
|
export function toDisposable(fn) {
|
|
17
29
|
const self = {
|
|
18
30
|
dispose: once(() => {
|
|
@@ -22,15 +34,12 @@ export function toDisposable(fn) {
|
|
|
22
34
|
return self;
|
|
23
35
|
}
|
|
24
36
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* @author chitanda
|
|
28
|
-
* @date 2022-06-29 19:06:15
|
|
37
|
+
* @description 函数防抖
|
|
29
38
|
* @export
|
|
30
|
-
* @param {((...args: unknown[]) => void | Promise<void>)} func
|
|
31
|
-
* @param {number} wait
|
|
39
|
+
* @param {((...args: unknown[]) => void | Promise<void>)} func 要执行的函数
|
|
40
|
+
* @param {number} wait 延迟时间(毫秒)
|
|
32
41
|
* @param {boolean} [immediate] 是否立即执行
|
|
33
|
-
* @
|
|
42
|
+
* @returns {*} {(...args: unknown[]) => void} 包装后的防抖函数
|
|
34
43
|
*/
|
|
35
44
|
export function debounce(func, wait, immediate) {
|
|
36
45
|
let timer;
|
|
@@ -55,14 +64,11 @@ export function debounce(func, wait, immediate) {
|
|
|
55
64
|
};
|
|
56
65
|
}
|
|
57
66
|
/**
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* @author chitanda
|
|
61
|
-
* @date 2022-06-29 20:06:38
|
|
67
|
+
* @description 节流函数,限制函数在指定时间间隔内只能执行一次
|
|
62
68
|
* @export
|
|
63
|
-
* @param {((...args: unknown[]) => void | Promise<void>)} fn
|
|
64
|
-
* @param {number} wait
|
|
65
|
-
* @
|
|
69
|
+
* @param {((...args: unknown[]) => void | Promise<void>)} fn 要执行的函数
|
|
70
|
+
* @param {number} wait 节流时间间隔(毫秒)
|
|
71
|
+
* @returns {*} {(...args: unknown[]) => void} 包装后的节流函数
|
|
66
72
|
*/
|
|
67
73
|
export function throttle(fn, wait) {
|
|
68
74
|
let timer = null;
|
|
@@ -1,59 +1,49 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 核心全局静态变量
|
|
3
|
-
*
|
|
4
|
-
* @author chitanda
|
|
5
|
-
* @date 2022-07-14 17:07:25
|
|
2
|
+
* @description 核心全局静态变量
|
|
6
3
|
* @export
|
|
7
|
-
* @
|
|
4
|
+
* @class CoreConst
|
|
8
5
|
*/
|
|
9
6
|
export declare class CoreConst {
|
|
10
7
|
/**
|
|
11
|
-
* 默认模型服务标识
|
|
12
|
-
*
|
|
13
|
-
* @author chitanda
|
|
14
|
-
* @date 2024-01-18 16:01:25
|
|
8
|
+
* @description 默认模型服务标识
|
|
15
9
|
* @static
|
|
10
|
+
* @memberof CoreConst
|
|
16
11
|
*/
|
|
17
12
|
static readonly DEFAULT_MODEL_SERVICE_TAG = "default";
|
|
18
13
|
/**
|
|
19
|
-
* 访问令牌标识
|
|
20
|
-
*
|
|
21
|
-
* @author chitanda
|
|
22
|
-
* @date 2022-07-20 15:07:28
|
|
14
|
+
* @description 访问令牌标识
|
|
23
15
|
* @static
|
|
16
|
+
* @memberof CoreConst
|
|
24
17
|
*/
|
|
25
18
|
static readonly TOKEN = "ibzuaa-token";
|
|
26
19
|
/**
|
|
27
|
-
* 刷新令牌标识
|
|
28
|
-
*
|
|
29
|
-
* @author chitanda
|
|
30
|
-
* @date 2024-01-18 16:01:54
|
|
20
|
+
* @description 刷新令牌标识
|
|
31
21
|
* @static
|
|
22
|
+
* @memberof CoreConst
|
|
32
23
|
*/
|
|
33
24
|
static readonly REFRESH_TOKEN = "ibzuaa-refresh-token";
|
|
34
25
|
/**
|
|
35
|
-
* 访问令牌标识过期时间
|
|
36
|
-
*
|
|
37
|
-
* @author lxm
|
|
38
|
-
* @date 2023-02-13 07:11:33
|
|
26
|
+
* @description 访问令牌标识过期时间
|
|
39
27
|
* @static
|
|
40
28
|
* @memberof CoreConst
|
|
41
29
|
*/
|
|
42
30
|
static readonly TOKEN_EXPIRES = "ibzuaa-token-expires";
|
|
43
31
|
/**
|
|
44
|
-
* 认证信息是走记住我模式的 cookie 标识
|
|
45
|
-
*
|
|
46
|
-
* @author chitanda
|
|
47
|
-
* @date 2023-12-13 15:12:28
|
|
32
|
+
* @description 认证信息是走记住我模式的 cookie 标识
|
|
48
33
|
* @static
|
|
34
|
+
* @memberof CoreConst
|
|
49
35
|
*/
|
|
50
36
|
static readonly TOKEN_REMEMBER = "ibizuaa-token-remember";
|
|
51
37
|
/**
|
|
52
|
-
* 是否是匿名用户登录的 cookie 标识
|
|
53
|
-
* @author lxm
|
|
54
|
-
* @date 2024-01-03 05:35:40
|
|
38
|
+
* @description 是否是匿名用户登录的 cookie 标识
|
|
55
39
|
* @static
|
|
40
|
+
* @memberof CoreConst
|
|
56
41
|
*/
|
|
57
42
|
static readonly IS_ANONYMOUS = "ibizuaa-is-anonymous";
|
|
43
|
+
/**
|
|
44
|
+
* @description 存储访问相关数据键的集合名称
|
|
45
|
+
* @static
|
|
46
|
+
*/
|
|
47
|
+
static readonly ACCESS_STORE_AREA_KEYS = "ibizuaa-access-store-area-keys";
|
|
58
48
|
}
|
|
59
49
|
//# sourceMappingURL=core.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/constant/core/core.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/constant/core/core.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,SAAS;IACpB;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,yBAAyB,aAAa;IAEtD;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,KAAK,kBAAkB;IAEvC;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,aAAa,0BAA0B;IAEvD;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,aAAa,0BAA0B;IAEvD;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,cAAc,4BAA4B;IAE1D;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,YAAY,0BAA0B;IAEtD;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,sBAAsB,oCAAoC;CAC3E"}
|