@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,85 +1,71 @@
|
|
|
1
1
|
import { HistoryItem } from './history-item';
|
|
2
2
|
/**
|
|
3
|
-
* 数据对象历史记录,只支持纯对象形式的数据。并未支持数组
|
|
4
|
-
*
|
|
5
|
-
* @author chitanda
|
|
6
|
-
* @date 2023-12-28 17:12:05
|
|
3
|
+
* @description 数据对象历史记录,只支持纯对象形式的数据。并未支持数组
|
|
7
4
|
* @export
|
|
8
5
|
* @class HistoryList
|
|
6
|
+
* @template E
|
|
9
7
|
*/
|
|
10
8
|
export declare class HistoryList<E = IData> {
|
|
11
9
|
/**
|
|
12
|
-
* 当前步骤的历史记录
|
|
13
|
-
*
|
|
14
|
-
* @author chitanda
|
|
15
|
-
* @date 2023-12-28 20:12:08
|
|
10
|
+
* @description 当前步骤的历史记录
|
|
16
11
|
* @private
|
|
17
|
-
* @type {
|
|
12
|
+
* @type {HistoryItem<E>}
|
|
13
|
+
* @memberof HistoryList
|
|
18
14
|
*/
|
|
19
15
|
private _cur;
|
|
20
16
|
/**
|
|
21
|
-
* 当前的数据
|
|
22
|
-
*
|
|
23
|
-
* @author chitanda
|
|
24
|
-
* @date 2023-12-28 18:12:27
|
|
17
|
+
* @description 当前的数据
|
|
18
|
+
* @readonly
|
|
25
19
|
* @type {E}
|
|
20
|
+
* @memberof HistoryList
|
|
26
21
|
*/
|
|
27
22
|
get data(): E;
|
|
23
|
+
/**
|
|
24
|
+
* Creates an instance of HistoryList.
|
|
25
|
+
* @param {E} data
|
|
26
|
+
* @memberof HistoryList
|
|
27
|
+
*/
|
|
28
28
|
constructor(data: E);
|
|
29
29
|
/**
|
|
30
|
-
* 先创建一次历史记录,再赋值
|
|
31
|
-
*
|
|
32
|
-
* @author chitanda
|
|
33
|
-
* @date 2023-12-28 17:12:05
|
|
30
|
+
* @description 先创建一次历史记录,再赋值
|
|
34
31
|
* @param {IData} data
|
|
32
|
+
* @memberof HistoryList
|
|
35
33
|
*/
|
|
36
34
|
assign(data: IData): void;
|
|
37
35
|
/**
|
|
38
|
-
* 创建一次历史记录
|
|
39
|
-
*
|
|
40
|
-
* @author chitanda
|
|
41
|
-
* @date 2023-12-28 20:12:13
|
|
36
|
+
* @description 创建一次历史记录
|
|
37
|
+
* @memberof HistoryList
|
|
42
38
|
*/
|
|
43
39
|
save(): void;
|
|
44
40
|
/**
|
|
45
|
-
* 上一步
|
|
46
|
-
*
|
|
47
|
-
* @
|
|
48
|
-
* @date 2023-12-28 16:12:28
|
|
49
|
-
* @return {*} {boolean}
|
|
41
|
+
* @description 上一步
|
|
42
|
+
* @returns {*} {boolean}
|
|
43
|
+
* @memberof HistoryList
|
|
50
44
|
*/
|
|
51
45
|
prev(): boolean;
|
|
52
46
|
/**
|
|
53
|
-
* 下一步
|
|
54
|
-
*
|
|
55
|
-
* @
|
|
56
|
-
* @date 2023-12-28 16:12:20
|
|
57
|
-
* @return {*} {boolean}
|
|
47
|
+
* @description 下一步
|
|
48
|
+
* @returns {*} {boolean}
|
|
49
|
+
* @memberof HistoryList
|
|
58
50
|
*/
|
|
59
51
|
next(): boolean;
|
|
60
52
|
/**
|
|
61
|
-
* 清空引用,避免内存泄漏
|
|
62
|
-
*
|
|
63
|
-
* @author chitanda
|
|
64
|
-
* @date 2023-12-28 22:12:43
|
|
53
|
+
* @description 清空引用,避免内存泄漏
|
|
65
54
|
* @protected
|
|
66
55
|
* @param {HistoryItem<E>} h
|
|
56
|
+
* @memberof HistoryList
|
|
67
57
|
*/
|
|
68
58
|
protected _clear(h: HistoryItem<E>): void;
|
|
69
59
|
/**
|
|
70
|
-
* 禁止克隆,直接返回当前实例
|
|
71
|
-
*
|
|
72
|
-
* @
|
|
73
|
-
* @
|
|
74
|
-
* @private
|
|
75
|
-
* @return {*} {HistoryList<E>}
|
|
60
|
+
* @description 禁止克隆,直接返回当前实例
|
|
61
|
+
* @protected
|
|
62
|
+
* @returns {*} {HistoryList<E>}
|
|
63
|
+
* @memberof HistoryList
|
|
76
64
|
*/
|
|
77
65
|
protected clone(): HistoryList<E>;
|
|
78
66
|
/**
|
|
79
|
-
* 销毁
|
|
80
|
-
*
|
|
81
|
-
* @author chitanda
|
|
82
|
-
* @date 2023-12-28 21:12:34
|
|
67
|
+
* @description 销毁
|
|
68
|
+
* @memberof HistoryList
|
|
83
69
|
*/
|
|
84
70
|
destroy(): void;
|
|
85
71
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-list.d.ts","sourceRoot":"","sources":["../../../src/utils/history-list/history-list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C
|
|
1
|
+
{"version":3,"file":"history-list.d.ts","sourceRoot":"","sources":["../../../src/utils/history-list/history-list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;;GAKG;AACH,qBAAa,WAAW,CAAC,CAAC,GAAG,KAAK;IAChC;;;;;OAKG;IACH,OAAO,CAAC,IAAI,CAAiB;IAE7B;;;;;OAKG;IACH,IAAI,IAAI,IAAI,CAAC,CAEZ;IAED;;;;OAIG;gBACS,IAAI,EAAE,CAAC;IAInB;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI;IAOzB;;;OAGG;IACH,IAAI,IAAI,IAAI;IAkBZ;;;;OAIG;IACH,IAAI,IAAI,OAAO;IAQf;;;;OAIG;IACH,IAAI,IAAI,OAAO;IAQf;;;;;OAKG;IACH,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI;IAczC;;;;;OAKG;IACH,SAAS,CAAC,KAAK,IAAI,WAAW,CAAC,CAAC,CAAC;IAMjC;;;OAGG;IACH,OAAO,IAAI,IAAI;CAGhB"}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { clone } from 'ramda';
|
|
2
2
|
import { HistoryItem } from './history-item';
|
|
3
3
|
/**
|
|
4
|
-
* 数据对象历史记录,只支持纯对象形式的数据。并未支持数组
|
|
5
|
-
*
|
|
6
|
-
* @author chitanda
|
|
7
|
-
* @date 2023-12-28 17:12:05
|
|
4
|
+
* @description 数据对象历史记录,只支持纯对象形式的数据。并未支持数组
|
|
8
5
|
* @export
|
|
9
6
|
* @class HistoryList
|
|
7
|
+
* @template E
|
|
10
8
|
*/
|
|
11
9
|
export class HistoryList {
|
|
12
10
|
/**
|
|
13
|
-
* 当前的数据
|
|
14
|
-
*
|
|
15
|
-
* @author chitanda
|
|
16
|
-
* @date 2023-12-28 18:12:27
|
|
11
|
+
* @description 当前的数据
|
|
12
|
+
* @readonly
|
|
17
13
|
* @type {E}
|
|
14
|
+
* @memberof HistoryList
|
|
18
15
|
*/
|
|
19
16
|
get data() {
|
|
20
17
|
return this._cur.data;
|
|
21
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Creates an instance of HistoryList.
|
|
21
|
+
* @param {E} data
|
|
22
|
+
* @memberof HistoryList
|
|
23
|
+
*/
|
|
22
24
|
constructor(data) {
|
|
23
25
|
this._cur = new HistoryItem(data);
|
|
24
26
|
}
|
|
25
27
|
/**
|
|
26
|
-
* 先创建一次历史记录,再赋值
|
|
27
|
-
*
|
|
28
|
-
* @author chitanda
|
|
29
|
-
* @date 2023-12-28 17:12:05
|
|
28
|
+
* @description 先创建一次历史记录,再赋值
|
|
30
29
|
* @param {IData} data
|
|
30
|
+
* @memberof HistoryList
|
|
31
31
|
*/
|
|
32
32
|
assign(data) {
|
|
33
33
|
if (data) {
|
|
@@ -36,10 +36,8 @@ export class HistoryList {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
|
-
* 创建一次历史记录
|
|
40
|
-
*
|
|
41
|
-
* @author chitanda
|
|
42
|
-
* @date 2023-12-28 20:12:13
|
|
39
|
+
* @description 创建一次历史记录
|
|
40
|
+
* @memberof HistoryList
|
|
43
41
|
*/
|
|
44
42
|
save() {
|
|
45
43
|
const oldCur = this._cur;
|
|
@@ -59,11 +57,9 @@ export class HistoryList {
|
|
|
59
57
|
this._cur = history;
|
|
60
58
|
}
|
|
61
59
|
/**
|
|
62
|
-
* 上一步
|
|
63
|
-
*
|
|
64
|
-
* @
|
|
65
|
-
* @date 2023-12-28 16:12:28
|
|
66
|
-
* @return {*} {boolean}
|
|
60
|
+
* @description 上一步
|
|
61
|
+
* @returns {*} {boolean}
|
|
62
|
+
* @memberof HistoryList
|
|
67
63
|
*/
|
|
68
64
|
prev() {
|
|
69
65
|
if (this._cur._prev && this._cur._prev !== HistoryItem.Undefined) {
|
|
@@ -73,11 +69,9 @@ export class HistoryList {
|
|
|
73
69
|
return false;
|
|
74
70
|
}
|
|
75
71
|
/**
|
|
76
|
-
* 下一步
|
|
77
|
-
*
|
|
78
|
-
* @
|
|
79
|
-
* @date 2023-12-28 16:12:20
|
|
80
|
-
* @return {*} {boolean}
|
|
72
|
+
* @description 下一步
|
|
73
|
+
* @returns {*} {boolean}
|
|
74
|
+
* @memberof HistoryList
|
|
81
75
|
*/
|
|
82
76
|
next() {
|
|
83
77
|
if (this._cur._next && this._cur._next !== HistoryItem.Undefined) {
|
|
@@ -87,12 +81,10 @@ export class HistoryList {
|
|
|
87
81
|
return false;
|
|
88
82
|
}
|
|
89
83
|
/**
|
|
90
|
-
* 清空引用,避免内存泄漏
|
|
91
|
-
*
|
|
92
|
-
* @author chitanda
|
|
93
|
-
* @date 2023-12-28 22:12:43
|
|
84
|
+
* @description 清空引用,避免内存泄漏
|
|
94
85
|
* @protected
|
|
95
86
|
* @param {HistoryItem<E>} h
|
|
87
|
+
* @memberof HistoryList
|
|
96
88
|
*/
|
|
97
89
|
_clear(h) {
|
|
98
90
|
if (h._prev && h._prev !== HistoryItem.Undefined) {
|
|
@@ -108,12 +100,10 @@ export class HistoryList {
|
|
|
108
100
|
h.data = {};
|
|
109
101
|
}
|
|
110
102
|
/**
|
|
111
|
-
* 禁止克隆,直接返回当前实例
|
|
112
|
-
*
|
|
113
|
-
* @
|
|
114
|
-
* @
|
|
115
|
-
* @private
|
|
116
|
-
* @return {*} {HistoryList<E>}
|
|
103
|
+
* @description 禁止克隆,直接返回当前实例
|
|
104
|
+
* @protected
|
|
105
|
+
* @returns {*} {HistoryList<E>}
|
|
106
|
+
* @memberof HistoryList
|
|
117
107
|
*/
|
|
118
108
|
clone() {
|
|
119
109
|
const history = new HistoryList({});
|
|
@@ -121,10 +111,8 @@ export class HistoryList {
|
|
|
121
111
|
return this;
|
|
122
112
|
}
|
|
123
113
|
/**
|
|
124
|
-
* 销毁
|
|
125
|
-
*
|
|
126
|
-
* @author chitanda
|
|
127
|
-
* @date 2023-12-28 21:12:34
|
|
114
|
+
* @description 销毁
|
|
115
|
+
* @memberof HistoryList
|
|
128
116
|
*/
|
|
129
117
|
destroy() {
|
|
130
118
|
this._clear(this._cur);
|
package/out/utils/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from './interceptor';
|
|
2
|
-
export { MessageCenter
|
|
2
|
+
export { MessageCenter } from './message-center';
|
|
3
3
|
export { Namespace } from './namespace/namespace';
|
|
4
|
-
export type { IHttpResponse } from './net/http-response';
|
|
5
4
|
export { HttpResponse } from './net/http-response';
|
|
6
5
|
export { Net } from './net/net';
|
|
7
6
|
export { StringUtil } from './string-util/string-util';
|
package/out/utils/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,eAAe,CAAC;AAC9B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,kCAAkC,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,cAAc,2BAA2B,CAAC"}
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import { InternalAxiosRequestConfig } from 'axios';
|
|
2
2
|
import { Interceptor } from './interceptor';
|
|
3
3
|
/**
|
|
4
|
-
* 核心包拦截器
|
|
5
|
-
*
|
|
6
|
-
* @author lxm
|
|
7
|
-
* @date 2022-10-27 17:10:48
|
|
4
|
+
* @description 核心包拦截器
|
|
8
5
|
* @export
|
|
9
6
|
* @class CoreInterceptor
|
|
10
7
|
* @extends {Interceptor}
|
|
11
8
|
*/
|
|
12
9
|
export declare class CoreInterceptor extends Interceptor {
|
|
10
|
+
/**
|
|
11
|
+
* @description 请求之前处理
|
|
12
|
+
* @protected
|
|
13
|
+
* @param {InternalAxiosRequestConfig} config
|
|
14
|
+
* @returns {*} {Promise<InternalAxiosRequestConfig>}
|
|
15
|
+
* @memberof CoreInterceptor
|
|
16
|
+
*/
|
|
13
17
|
protected onBeforeRequest(config: InternalAxiosRequestConfig): Promise<InternalAxiosRequestConfig>;
|
|
14
18
|
/**
|
|
15
|
-
* 响应失败之后处理
|
|
16
|
-
*
|
|
17
|
-
* @author tony001
|
|
18
|
-
* @date 2025-03-24 14:03:23
|
|
19
|
+
* @description 响应失败之后处理
|
|
19
20
|
* @protected
|
|
20
21
|
* @param {Error} error
|
|
21
|
-
* @
|
|
22
|
+
* @returns {*} {Promise<never>}
|
|
23
|
+
* @memberof CoreInterceptor
|
|
22
24
|
*/
|
|
23
25
|
protected onResponseError(error: Error): Promise<never>;
|
|
24
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-interceptor.d.ts","sourceRoot":"","sources":["../../../src/utils/interceptor/core-interceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"core-interceptor.d.ts","sourceRoot":"","sources":["../../../src/utils/interceptor/core-interceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;OAMG;cACa,eAAe,CAC7B,MAAM,EAAE,0BAA0B,GACjC,OAAO,CAAC,0BAA0B,CAAC;IA8BtC;;;;;;OAMG;cACa,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;CAmE9D"}
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { getToken } from '../util/util';
|
|
2
2
|
import { Interceptor } from './interceptor';
|
|
3
|
+
import { getAppCookie } from '../cookie-util/cookie-util';
|
|
4
|
+
import { CoreConst } from '../../constant';
|
|
3
5
|
/**
|
|
4
|
-
* 核心包拦截器
|
|
5
|
-
*
|
|
6
|
-
* @author lxm
|
|
7
|
-
* @date 2022-10-27 17:10:48
|
|
6
|
+
* @description 核心包拦截器
|
|
8
7
|
* @export
|
|
9
8
|
* @class CoreInterceptor
|
|
10
9
|
* @extends {Interceptor}
|
|
11
10
|
*/
|
|
12
11
|
export class CoreInterceptor extends Interceptor {
|
|
12
|
+
/**
|
|
13
|
+
* @description 请求之前处理
|
|
14
|
+
* @protected
|
|
15
|
+
* @param {InternalAxiosRequestConfig} config
|
|
16
|
+
* @returns {*} {Promise<InternalAxiosRequestConfig>}
|
|
17
|
+
* @memberof CoreInterceptor
|
|
18
|
+
*/
|
|
13
19
|
async onBeforeRequest(config) {
|
|
14
20
|
config = await super.onBeforeRequest(config);
|
|
15
21
|
const { headers } = config;
|
|
@@ -33,13 +39,11 @@ export class CoreInterceptor extends Interceptor {
|
|
|
33
39
|
return config;
|
|
34
40
|
}
|
|
35
41
|
/**
|
|
36
|
-
* 响应失败之后处理
|
|
37
|
-
*
|
|
38
|
-
* @author tony001
|
|
39
|
-
* @date 2025-03-24 14:03:23
|
|
42
|
+
* @description 响应失败之后处理
|
|
40
43
|
* @protected
|
|
41
44
|
* @param {Error} error
|
|
42
|
-
* @
|
|
45
|
+
* @returns {*} {Promise<never>}
|
|
46
|
+
* @memberof CoreInterceptor
|
|
43
47
|
*/
|
|
44
48
|
async onResponseError(error) {
|
|
45
49
|
const { config, response } = error;
|
|
@@ -55,10 +59,25 @@ export class CoreInterceptor extends Interceptor {
|
|
|
55
59
|
try {
|
|
56
60
|
// 标记为已重试
|
|
57
61
|
config._retry = true;
|
|
58
|
-
// 刷新 token
|
|
59
|
-
|
|
62
|
+
// 刷新 token(匿名登录通过登录换算token,非匿名登录通过refreshToken换算新的token)
|
|
63
|
+
if (ibiz.env.enableAnonymous) {
|
|
64
|
+
const authInfo = ibiz.auth.getAuthInfo();
|
|
65
|
+
const refreshToken = getAppCookie(CoreConst.REFRESH_TOKEN);
|
|
66
|
+
// 匿名登录、匿名登录无refreshToken情况通过登录换算token
|
|
67
|
+
if (authInfo.isAnonymous || !refreshToken) {
|
|
68
|
+
const tempOrgData = ibiz.orgData;
|
|
69
|
+
await ibiz.auth.anonymousLogin();
|
|
70
|
+
ibiz.orgData = tempOrgData;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
await ibiz.auth.refreshToken();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
await ibiz.auth.refreshToken();
|
|
78
|
+
}
|
|
60
79
|
// 重新加载应用数据
|
|
61
|
-
const res = await ibiz.net.get('/appdata');
|
|
80
|
+
const res = await ibiz.net.get('/appdata', ibiz.appUtil.getAppContext());
|
|
62
81
|
if (res && res.ok) {
|
|
63
82
|
ibiz.appData = res.data;
|
|
64
83
|
}
|
|
@@ -1,92 +1,73 @@
|
|
|
1
1
|
import { AxiosInstance, InternalAxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
2
|
/**
|
|
3
|
-
* 拦截器基类
|
|
4
|
-
*
|
|
5
|
-
* @author chitanda
|
|
6
|
-
* @date 2022-07-20 18:07:11
|
|
3
|
+
* @description 拦截器基类
|
|
7
4
|
* @export
|
|
8
5
|
* @class Interceptor
|
|
9
6
|
*/
|
|
10
7
|
export declare class Interceptor {
|
|
11
8
|
/**
|
|
12
|
-
* 请求拦截器绑定标识
|
|
13
|
-
*
|
|
14
|
-
* @author lxm
|
|
15
|
-
* @date 2022-10-27 17:10:20
|
|
9
|
+
* @description 请求拦截器绑定标识
|
|
16
10
|
* @private
|
|
17
11
|
* @type {number}
|
|
12
|
+
* @memberof Interceptor
|
|
18
13
|
*/
|
|
19
14
|
private requestTag?;
|
|
20
15
|
/**
|
|
21
|
-
* 响应拦截器绑定标识
|
|
22
|
-
*
|
|
23
|
-
* @author lxm
|
|
24
|
-
* @date 2022-10-27 17:10:19
|
|
16
|
+
* @description 响应拦截器绑定标识
|
|
25
17
|
* @private
|
|
26
18
|
* @type {number}
|
|
19
|
+
* @memberof Interceptor
|
|
27
20
|
*/
|
|
28
21
|
private responseTag?;
|
|
29
22
|
/**
|
|
30
|
-
* axios实例
|
|
31
|
-
*
|
|
32
|
-
* @author tony001
|
|
33
|
-
* @date 2025-03-21 19:03:26
|
|
23
|
+
* @description axios实例
|
|
34
24
|
* @protected
|
|
35
25
|
* @type {(AxiosInstance | undefined)}
|
|
26
|
+
* @memberof Interceptor
|
|
36
27
|
*/
|
|
37
28
|
protected instance: AxiosInstance | undefined;
|
|
38
29
|
/**
|
|
39
|
-
* 请求之前处理
|
|
40
|
-
*
|
|
41
|
-
* @author lxm
|
|
42
|
-
* @date 2022-10-27 17:10:41
|
|
30
|
+
* @description 请求之前处理
|
|
43
31
|
* @protected
|
|
44
32
|
* @param {InternalAxiosRequestConfig} config
|
|
45
33
|
* @returns {*} {Promise<InternalAxiosRequestConfig>}
|
|
34
|
+
* @memberof Interceptor
|
|
46
35
|
*/
|
|
47
36
|
protected onBeforeRequest(config: InternalAxiosRequestConfig): Promise<InternalAxiosRequestConfig>;
|
|
48
37
|
/**
|
|
49
|
-
* 请求失败之后处理
|
|
50
|
-
*
|
|
51
|
-
* @author lxm
|
|
52
|
-
* @date 2022-10-27 17:10:40
|
|
38
|
+
* @description 请求失败之后处理
|
|
53
39
|
* @protected
|
|
54
|
-
* @param {
|
|
40
|
+
* @param {Error} error
|
|
41
|
+
* @returns {*} {Promise<never>}
|
|
42
|
+
* @memberof Interceptor
|
|
55
43
|
*/
|
|
56
44
|
protected onRequestError(error: Error): Promise<never>;
|
|
57
45
|
/**
|
|
58
|
-
* 响应成功之后处理
|
|
59
|
-
*
|
|
60
|
-
* @author lxm
|
|
61
|
-
* @date 2022-10-27 17:10:38
|
|
46
|
+
* @description 响应成功之后处理
|
|
62
47
|
* @protected
|
|
63
48
|
* @param {AxiosResponse} config
|
|
64
|
-
* @returns {*} {Promise<
|
|
49
|
+
* @returns {*} {Promise<AxiosResponse>}
|
|
50
|
+
* @memberof Interceptor
|
|
65
51
|
*/
|
|
66
52
|
protected onResponseSuccess(config: AxiosResponse): Promise<AxiosResponse>;
|
|
67
53
|
/**
|
|
68
|
-
* 响应失败之后处理
|
|
69
|
-
*
|
|
70
|
-
* @author lxm
|
|
71
|
-
* @date 2022-10-27 17:10:37
|
|
54
|
+
* @description 响应失败之后处理
|
|
72
55
|
* @protected
|
|
73
|
-
* @param {
|
|
56
|
+
* @param {Error} error
|
|
57
|
+
* @returns {*} {Promise<never>}
|
|
58
|
+
* @memberof Interceptor
|
|
74
59
|
*/
|
|
75
60
|
protected onResponseError(error: Error): Promise<never>;
|
|
76
61
|
/**
|
|
77
|
-
* 使用拦截器
|
|
78
|
-
*
|
|
79
|
-
* @author lxm
|
|
80
|
-
* @date 2022-10-27 17:10:28
|
|
62
|
+
* @description 使用拦截器
|
|
81
63
|
* @param {AxiosInstance} instance
|
|
64
|
+
* @memberof Interceptor
|
|
82
65
|
*/
|
|
83
66
|
use(instance: AxiosInstance): void;
|
|
84
67
|
/**
|
|
85
|
-
* 移出拦截器
|
|
86
|
-
*
|
|
87
|
-
* @author lxm
|
|
88
|
-
* @date 2022-10-27 17:10:27
|
|
68
|
+
* @description 移出拦截器
|
|
89
69
|
* @param {AxiosInstance} instance
|
|
70
|
+
* @memberof Interceptor
|
|
90
71
|
*/
|
|
91
72
|
eject(instance: AxiosInstance): void;
|
|
92
73
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interceptor.d.ts","sourceRoot":"","sources":["../../../src/utils/interceptor/interceptor.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,0BAA0B,EAC1B,aAAa,EACd,MAAM,OAAO,CAAC;AAEf
|
|
1
|
+
{"version":3,"file":"interceptor.d.ts","sourceRoot":"","sources":["../../../src/utils/interceptor/interceptor.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,0BAA0B,EAC1B,aAAa,EACd,MAAM,OAAO,CAAC;AAEf;;;;GAIG;AACH,qBAAa,WAAW;IACtB;;;;;OAKG;IACH,OAAO,CAAC,UAAU,CAAC,CAAS;IAE5B;;;;;OAKG;IACH,OAAO,CAAC,WAAW,CAAC,CAAS;IAE7B;;;;;OAKG;IACH,SAAS,CAAC,QAAQ,EAAE,aAAa,GAAG,SAAS,CAAC;IAE9C;;;;;;OAMG;cACa,eAAe,CAC7B,MAAM,EAAE,0BAA0B,GACjC,OAAO,CAAC,0BAA0B,CAAC;IAItC;;;;;;OAMG;IACH,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;IAKtD;;;;;;OAMG;cACa,iBAAiB,CAC/B,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,aAAa,CAAC;IAIzB;;;;;;OAMG;IACH,SAAS,CAAC,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;IAKvD;;;;OAIG;IACH,GAAG,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI;IAgBlC;;;;OAIG;IACH,KAAK,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI;CAQrC"}
|
|
@@ -1,66 +1,55 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 拦截器基类
|
|
3
|
-
*
|
|
4
|
-
* @author chitanda
|
|
5
|
-
* @date 2022-07-20 18:07:11
|
|
2
|
+
* @description 拦截器基类
|
|
6
3
|
* @export
|
|
7
4
|
* @class Interceptor
|
|
8
5
|
*/
|
|
9
6
|
export class Interceptor {
|
|
10
7
|
/**
|
|
11
|
-
* 请求之前处理
|
|
12
|
-
*
|
|
13
|
-
* @author lxm
|
|
14
|
-
* @date 2022-10-27 17:10:41
|
|
8
|
+
* @description 请求之前处理
|
|
15
9
|
* @protected
|
|
16
10
|
* @param {InternalAxiosRequestConfig} config
|
|
17
11
|
* @returns {*} {Promise<InternalAxiosRequestConfig>}
|
|
12
|
+
* @memberof Interceptor
|
|
18
13
|
*/
|
|
19
14
|
async onBeforeRequest(config) {
|
|
20
15
|
return config;
|
|
21
16
|
}
|
|
22
17
|
/**
|
|
23
|
-
* 请求失败之后处理
|
|
24
|
-
*
|
|
25
|
-
* @author lxm
|
|
26
|
-
* @date 2022-10-27 17:10:40
|
|
18
|
+
* @description 请求失败之后处理
|
|
27
19
|
* @protected
|
|
28
|
-
* @param {
|
|
20
|
+
* @param {Error} error
|
|
21
|
+
* @returns {*} {Promise<never>}
|
|
22
|
+
* @memberof Interceptor
|
|
29
23
|
*/
|
|
30
24
|
onRequestError(error) {
|
|
31
25
|
// 处理请求错误
|
|
32
26
|
return Promise.reject(error);
|
|
33
27
|
}
|
|
34
28
|
/**
|
|
35
|
-
* 响应成功之后处理
|
|
36
|
-
*
|
|
37
|
-
* @author lxm
|
|
38
|
-
* @date 2022-10-27 17:10:38
|
|
29
|
+
* @description 响应成功之后处理
|
|
39
30
|
* @protected
|
|
40
31
|
* @param {AxiosResponse} config
|
|
41
|
-
* @returns {*} {Promise<
|
|
32
|
+
* @returns {*} {Promise<AxiosResponse>}
|
|
33
|
+
* @memberof Interceptor
|
|
42
34
|
*/
|
|
43
35
|
async onResponseSuccess(config) {
|
|
44
36
|
return config;
|
|
45
37
|
}
|
|
46
38
|
/**
|
|
47
|
-
* 响应失败之后处理
|
|
48
|
-
*
|
|
49
|
-
* @author lxm
|
|
50
|
-
* @date 2022-10-27 17:10:37
|
|
39
|
+
* @description 响应失败之后处理
|
|
51
40
|
* @protected
|
|
52
|
-
* @param {
|
|
41
|
+
* @param {Error} error
|
|
42
|
+
* @returns {*} {Promise<never>}
|
|
43
|
+
* @memberof Interceptor
|
|
53
44
|
*/
|
|
54
45
|
onResponseError(error) {
|
|
55
46
|
// 处理响应错误
|
|
56
47
|
return Promise.reject(error);
|
|
57
48
|
}
|
|
58
49
|
/**
|
|
59
|
-
* 使用拦截器
|
|
60
|
-
*
|
|
61
|
-
* @author lxm
|
|
62
|
-
* @date 2022-10-27 17:10:28
|
|
50
|
+
* @description 使用拦截器
|
|
63
51
|
* @param {AxiosInstance} instance
|
|
52
|
+
* @memberof Interceptor
|
|
64
53
|
*/
|
|
65
54
|
use(instance) {
|
|
66
55
|
this.instance = instance;
|
|
@@ -72,11 +61,9 @@ export class Interceptor {
|
|
|
72
61
|
this.responseTag = instance.interceptors.response.use(this.onResponseSuccess, this.onResponseError);
|
|
73
62
|
}
|
|
74
63
|
/**
|
|
75
|
-
* 移出拦截器
|
|
76
|
-
*
|
|
77
|
-
* @author lxm
|
|
78
|
-
* @date 2022-10-27 17:10:27
|
|
64
|
+
* @description 移出拦截器
|
|
79
65
|
* @param {AxiosInstance} instance
|
|
66
|
+
* @memberof Interceptor
|
|
80
67
|
*/
|
|
81
68
|
eject(instance) {
|
|
82
69
|
if (this.requestTag) {
|
|
@@ -6,15 +6,16 @@ import prefix from 'loglevel-plugin-prefix';
|
|
|
6
6
|
const originalFactory = Logger.methodFactory;
|
|
7
7
|
const NOOP = (message) => { };
|
|
8
8
|
Logger.methodFactory = (methodName, logLevel, loggerName) => {
|
|
9
|
+
var _a, _b;
|
|
9
10
|
const rawMethod = originalFactory(methodName, logLevel, loggerName);
|
|
10
|
-
if (window.Environment.environmentTag === 'production') {
|
|
11
|
+
if (((_a = window.Environment) === null || _a === void 0 ? void 0 : _a.environmentTag) === 'production') {
|
|
11
12
|
if (methodName === 'error' ||
|
|
12
13
|
methodName === 'warn' ||
|
|
13
14
|
methodName === 'debug') {
|
|
14
15
|
return NOOP;
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
|
-
if (window.Environment.environmentTag === 'test') {
|
|
18
|
+
if (((_b = window.Environment) === null || _b === void 0 ? void 0 : _b.environmentTag) === 'test') {
|
|
18
19
|
if (methodName === 'error' || methodName === 'warn') {
|
|
19
20
|
return NOOP;
|
|
20
21
|
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { IMessageAll } from '../../../interface';
|
|
1
2
|
import { MessageBase } from './message-base';
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @author chitanda
|
|
6
|
-
* @date 2023-09-05 16:09:34
|
|
4
|
+
* @description 所有消息控制器
|
|
7
5
|
* @export
|
|
8
6
|
* @class MessageAll
|
|
9
7
|
* @extends {MessageBase}
|
|
10
8
|
*/
|
|
11
|
-
export declare class MessageAll extends MessageBase {
|
|
9
|
+
export declare class MessageAll extends MessageBase implements IMessageAll {
|
|
12
10
|
}
|
|
13
11
|
//# sourceMappingURL=message-all.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-all.d.ts","sourceRoot":"","sources":["../../../../src/utils/message-center/base/message-all.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C
|
|
1
|
+
{"version":3,"file":"message-all.d.ts","sourceRoot":"","sources":["../../../../src/utils/message-center/base/message-all.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;;GAKG;AACH,qBAAa,UAAW,SAAQ,WAAY,YAAW,WAAW;CAAG"}
|