@ibiz-template/core 0.7.38-alpha.57 → 0.7.40-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +106 -0
- package/dist/index.esm.js +591 -658
- 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 +9 -4
- package/out/error/http-error/entity-error.d.ts +3 -17
- package/out/error/http-error/entity-error.d.ts.map +1 -1
- package/out/error/http-error/entity-error.js +2 -5
- package/out/error/http-error/http-error-factory.d.ts +5 -0
- package/out/error/http-error/http-error-factory.d.ts.map +1 -1
- package/out/error/http-error/http-error-factory.js +5 -0
- package/out/error/http-error/http-error.d.ts +3 -10
- package/out/error/http-error/http-error.d.ts.map +1 -1
- package/out/error/http-error/http-error.js +2 -5
- package/out/error/model-error/model-error.d.ts +5 -9
- package/out/error/model-error/model-error.d.ts.map +1 -1
- package/out/error/model-error/model-error.js +5 -9
- package/out/error/notice-error/notice-error.d.ts +2 -5
- package/out/error/notice-error/notice-error.d.ts.map +1 -1
- package/out/error/notice-error/notice-error.js +2 -5
- package/out/error/runtime-error/runtime-error.d.ts +2 -5
- package/out/error/runtime-error/runtime-error.d.ts.map +1 -1
- package/out/error/runtime-error/runtime-error.js +2 -5
- package/out/error/runtime-model-error/runtime-model-error.d.ts +5 -10
- package/out/error/runtime-model-error/runtime-model-error.d.ts.map +1 -1
- package/out/error/runtime-model-error/runtime-model-error.js +5 -10
- package/out/ibizsys.d.ts +24 -44
- package/out/ibizsys.d.ts.map +1 -1
- package/out/ibizsys.js +15 -29
- package/out/index.d.ts.map +1 -1
- package/out/install.d.ts +1 -4
- package/out/install.d.ts.map +1 -1
- package/out/install.js +1 -4
- package/out/interface/api/constant/index.d.ts +3 -0
- package/out/interface/api/constant/index.d.ts.map +1 -0
- package/out/interface/api/constant/index.js +2 -0
- package/out/{constant → interface/api/constant}/login-mode/login-mode.d.ts +1 -4
- package/out/interface/api/constant/login-mode/login-mode.d.ts.map +1 -0
- package/out/{constant → interface/api/constant}/login-mode/login-mode.js +1 -4
- package/out/{constant → interface/api/constant}/menu-permission-mode/menu-permission-mode.d.ts +1 -4
- package/out/interface/api/constant/menu-permission-mode/menu-permission-mode.d.ts.map +1 -0
- package/out/{constant → interface/api/constant}/menu-permission-mode/menu-permission-mode.js +1 -4
- package/out/interface/api/environment/i-devtool-config.d.ts +33 -0
- package/out/interface/api/environment/i-devtool-config.d.ts.map +1 -0
- package/out/interface/api/environment/i-environment.d.ts +282 -0
- package/out/interface/api/environment/i-environment.d.ts.map +1 -0
- package/out/interface/api/environment/index.d.ts +3 -0
- package/out/interface/api/environment/index.d.ts.map +1 -0
- package/out/interface/api/global-param/i-api-context.d.ts +33 -0
- package/out/interface/api/global-param/i-api-context.d.ts.map +1 -0
- package/out/interface/api/global-param/i-global-param.d.ts +25 -0
- package/out/interface/api/global-param/i-global-param.d.ts.map +1 -0
- package/out/interface/api/global-param/index.d.ts +3 -0
- package/out/interface/api/global-param/index.d.ts.map +1 -0
- package/out/interface/api/ibizsys/i-api-ibizsys.d.ts +48 -0
- package/out/interface/api/ibizsys/i-api-ibizsys.d.ts.map +1 -0
- package/out/interface/api/ibizsys/i-org-data.d.ts +32 -0
- package/out/interface/api/ibizsys/i-org-data.d.ts.map +1 -0
- package/out/interface/api/ibizsys/index.d.ts +3 -0
- package/out/interface/api/ibizsys/index.d.ts.map +1 -0
- package/out/interface/api/index.d.ts +6 -0
- package/out/interface/api/index.d.ts.map +1 -0
- package/out/interface/api/index.js +5 -0
- package/out/interface/api/utils/i-api-i18n.d.ts +51 -0
- package/out/interface/api/utils/i-api-i18n.d.ts.map +1 -0
- package/out/interface/api/utils/index.d.ts +5 -0
- package/out/interface/api/utils/index.d.ts.map +1 -0
- package/out/interface/api/utils/index.js +1 -0
- package/out/interface/api/utils/message-center/base/i-message-all.d.ts +10 -0
- package/out/interface/api/utils/message-center/base/i-message-all.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/base/i-message-base.d.ts +27 -0
- package/out/interface/api/utils/message-center/base/i-message-base.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/base/index.d.ts +3 -0
- package/out/interface/api/utils/message-center/base/index.d.ts.map +1 -0
- package/out/interface/{i-add-in-changed → api/utils/message-center/command/add-in-changed}/i-add-in-changed.d.ts +4 -8
- package/out/interface/api/utils/message-center/command/add-in-changed/i-add-in-changed.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.d.ts +17 -0
- package/out/interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/async-action/i-command-async-action.d.ts +17 -0
- package/out/interface/api/utils/message-center/command/async-action/i-command-async-action.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/change/i-command-change.d.ts +10 -0
- package/out/interface/api/utils/message-center/command/change/i-command-change.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/change/i-command-change.js +1 -0
- package/out/interface/api/utils/message-center/command/create/i-command-create.d.ts +18 -0
- package/out/interface/api/utils/message-center/command/create/i-command-create.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/create/i-command-create.js +1 -0
- package/out/interface/api/utils/message-center/command/i-command-base.d.ts +20 -0
- package/out/interface/api/utils/message-center/command/i-command-base.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/i-command-base.js +1 -0
- package/out/interface/api/utils/message-center/command/i-message-command.d.ts +82 -0
- package/out/interface/api/utils/message-center/command/i-message-command.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/i-message-command.js +1 -0
- package/out/interface/api/utils/message-center/command/index.d.ts +14 -0
- package/out/interface/api/utils/message-center/command/index.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/index.js +1 -0
- package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.d.ts +17 -0
- package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.js +1 -0
- package/out/interface/{i-internal-message → api/utils/message-center/command/internal-message}/i-internal-message.d.ts +35 -54
- package/out/interface/api/utils/message-center/command/internal-message/i-internal-message.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/internal-message/i-internal-message.js +1 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.d.ts +17 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.js +1 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.d.ts +46 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.js +1 -0
- package/out/interface/api/utils/message-center/command/remove/i-command-remove.d.ts +18 -0
- package/out/interface/api/utils/message-center/command/remove/i-command-remove.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/remove/i-command-remove.js +1 -0
- package/out/interface/api/utils/message-center/command/update/i-command-update.d.ts +18 -0
- package/out/interface/api/utils/message-center/command/update/i-command-update.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/update/i-command-update.js +1 -0
- package/out/interface/api/utils/message-center/common/i-app-data-entity.d.ts +16 -0
- package/out/interface/api/utils/message-center/common/i-app-data-entity.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/i-app-data-entity.js +1 -0
- package/out/interface/api/utils/message-center/common/i-message-center-event.d.ts +10 -0
- package/out/interface/api/utils/message-center/common/i-message-center-event.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/i-message-center-event.js +1 -0
- package/out/interface/api/utils/message-center/common/i-msg-meta-data.d.ts +14 -0
- package/out/interface/api/utils/message-center/common/i-msg-meta-data.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/i-msg-meta-data.js +1 -0
- package/out/interface/api/utils/message-center/common/i-portal-async-action.d.ts +134 -0
- package/out/interface/api/utils/message-center/common/i-portal-async-action.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/i-portal-async-action.js +1 -0
- package/out/interface/api/utils/message-center/common/i-portal-message.d.ts +70 -0
- package/out/interface/api/utils/message-center/common/i-portal-message.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/i-portal-message.js +1 -0
- package/out/interface/api/utils/message-center/common/index.d.ts +6 -0
- package/out/interface/api/utils/message-center/common/index.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/index.js +1 -0
- package/out/interface/api/utils/message-center/console/i-message-console.d.ts +17 -0
- package/out/interface/api/utils/message-center/console/i-message-console.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/console/i-message-console.js +1 -0
- package/out/interface/api/utils/message-center/error/i-message-error.d.ts +17 -0
- package/out/interface/api/utils/message-center/error/i-message-error.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/error/i-message-error.js +1 -0
- package/out/interface/api/utils/message-center/i-message-center.d.ts +48 -0
- package/out/interface/api/utils/message-center/i-message-center.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/i-message-center.js +1 -0
- package/out/interface/api/utils/message-center/index.d.ts +7 -0
- package/out/interface/api/utils/message-center/index.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/index.js +3 -0
- package/out/interface/api/utils/net/i-api-net.d.ts +65 -0
- package/out/interface/api/utils/net/i-api-net.d.ts.map +1 -0
- package/out/interface/api/utils/net/i-api-net.js +1 -0
- package/out/interface/api/utils/net/i-http-response.d.ts +60 -0
- package/out/interface/api/utils/net/i-http-response.d.ts.map +1 -0
- package/out/interface/api/utils/net/i-http-response.js +1 -0
- package/out/interface/click-outside/click-outside.d.ts +15 -36
- package/out/interface/click-outside/click-outside.d.ts.map +1 -1
- package/out/interface/command/command/i-command-option.d.ts +46 -0
- package/out/interface/command/command/i-command-option.d.ts.map +1 -0
- package/out/interface/command/command/i-command-option.js +1 -0
- package/out/interface/command/command/i-command.d.ts +61 -0
- package/out/interface/command/command/i-command.d.ts.map +1 -0
- package/out/interface/command/command/i-command.js +1 -0
- package/out/interface/command/disposable/i-disposable.d.ts +13 -0
- package/out/interface/command/disposable/i-disposable.d.ts.map +1 -0
- package/out/interface/command/disposable/i-disposable.js +1 -0
- package/out/interface/command/i-command-controller.d.ts +43 -0
- package/out/interface/command/i-command-controller.d.ts.map +1 -0
- package/out/interface/command/i-command-controller.js +1 -0
- package/out/interface/command/index.d.ts +5 -0
- package/out/interface/command/index.d.ts.map +1 -0
- package/out/interface/command/index.js +1 -0
- package/out/interface/context/index.d.ts +39 -0
- package/out/interface/context/index.d.ts.map +1 -0
- package/out/interface/context/index.js +1 -0
- package/out/interface/error/index.d.ts +12 -0
- package/out/interface/error/index.d.ts.map +1 -0
- package/out/interface/error/index.js +1 -0
- package/out/interface/i-chat-message/i-chat-message.d.ts +24 -37
- package/out/interface/i-chat-message/i-chat-message.d.ts.map +1 -1
- package/out/interface/ibizsys/i-ibizsys.d.ts +30 -0
- package/out/interface/ibizsys/i-ibizsys.d.ts.map +1 -0
- package/out/interface/ibizsys/i-ibizsys.js +1 -0
- package/out/interface/ibizsys/index.d.ts +2 -0
- package/out/interface/ibizsys/index.d.ts.map +1 -0
- package/out/interface/ibizsys/index.js +1 -0
- package/out/interface/index.d.ts +8 -9
- package/out/interface/index.d.ts.map +1 -1
- package/out/interface/index.js +6 -0
- package/out/interface/utils/i-18n.d.ts +21 -0
- package/out/interface/utils/i-18n.d.ts.map +1 -0
- package/out/interface/utils/i-18n.js +1 -0
- package/out/interface/utils/index.d.ts +2 -0
- package/out/interface/utils/index.d.ts.map +1 -0
- package/out/interface/utils/index.js +1 -0
- package/out/params/params.d.ts +20 -24
- package/out/params/params.d.ts.map +1 -1
- package/out/params/params.js +16 -18
- package/out/types.d.ts +5 -113
- package/out/types.d.ts.map +1 -1
- package/out/utils/bit-mask/bit-mask.d.ts +9 -32
- package/out/utils/bit-mask/bit-mask.d.ts.map +1 -1
- package/out/utils/bit-mask/bit-mask.js +10 -37
- package/out/utils/click-outside/click-outside.d.ts +1 -4
- package/out/utils/click-outside/click-outside.d.ts.map +1 -1
- package/out/utils/click-outside/click-outside.js +1 -4
- package/out/utils/clone/clone.d.ts +3 -7
- package/out/utils/clone/clone.d.ts.map +1 -1
- package/out/utils/clone/clone.js +7 -12
- package/out/utils/color/color.d.ts +4 -6
- package/out/utils/color/color.d.ts.map +1 -1
- package/out/utils/color/color.js +5 -8
- package/out/utils/cookie-util/cookie-util.d.ts +16 -27
- package/out/utils/cookie-util/cookie-util.d.ts.map +1 -1
- package/out/utils/cookie-util/cookie-util.js +126 -55
- package/out/utils/data-type/data-types.d.ts +13 -19
- package/out/utils/data-type/data-types.d.ts.map +1 -1
- package/out/utils/data-type/data-types.js +13 -19
- package/out/utils/download-file/download-file.d.ts +6 -15
- package/out/utils/download-file/download-file.d.ts.map +1 -1
- package/out/utils/download-file/download-file.js +6 -15
- package/out/utils/event/event.d.ts +6 -14
- package/out/utils/event/event.d.ts.map +1 -1
- package/out/utils/event/event.js +6 -14
- package/out/utils/history-list/history-item.d.ts +5 -10
- package/out/utils/history-list/history-item.d.ts.map +1 -1
- package/out/utils/history-list/history-item.js +5 -10
- package/out/utils/history-list/history-list.d.ts +31 -45
- package/out/utils/history-list/history-list.d.ts.map +1 -1
- package/out/utils/history-list/history-list.js +28 -40
- package/out/utils/index.d.ts +1 -2
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/interceptor/core-interceptor.d.ts +16 -4
- package/out/utils/interceptor/core-interceptor.d.ts.map +1 -1
- package/out/utils/interceptor/core-interceptor.js +62 -4
- package/out/utils/interceptor/interceptor.d.ts +29 -39
- package/out/utils/interceptor/interceptor.d.ts.map +1 -1
- package/out/utils/interceptor/interceptor.js +23 -31
- package/out/utils/message-center/base/message-all.d.ts +3 -5
- package/out/utils/message-center/base/message-all.d.ts.map +1 -1
- package/out/utils/message-center/base/message-all.js +1 -4
- package/out/utils/message-center/base/message-base.d.ts +23 -40
- package/out/utils/message-center/base/message-base.d.ts.map +1 -1
- package/out/utils/message-center/base/message-base.js +20 -26
- package/out/utils/message-center/command/add-in-changed/command-add-in-changed.d.ts +5 -6
- package/out/utils/message-center/command/add-in-changed/command-add-in-changed.d.ts.map +1 -1
- package/out/utils/message-center/command/add-in-changed/command-add-in-changed.js +3 -4
- package/out/utils/message-center/command/async-action/command-async-action.d.ts +6 -10
- package/out/utils/message-center/command/async-action/command-async-action.d.ts.map +1 -1
- package/out/utils/message-center/command/async-action/command-async-action.js +4 -8
- package/out/utils/message-center/command/change/command-change.d.ts +4 -5
- package/out/utils/message-center/command/change/command-change.d.ts.map +1 -1
- package/out/utils/message-center/command/change/command-change.js +2 -4
- package/out/utils/message-center/command/command-base/command-base.d.ts +10 -15
- package/out/utils/message-center/command/command-base/command-base.d.ts.map +1 -1
- package/out/utils/message-center/command/command-base/command-base.js +7 -12
- package/out/utils/message-center/command/create/command-create.d.ts +8 -12
- package/out/utils/message-center/command/create/command-create.d.ts.map +1 -1
- package/out/utils/message-center/command/create/command-create.js +6 -10
- package/out/utils/message-center/command/internal-message/command-internal-message.d.ts +7 -11
- package/out/utils/message-center/command/internal-message/command-internal-message.d.ts.map +1 -1
- package/out/utils/message-center/command/internal-message/command-internal-message.js +5 -9
- package/out/utils/message-center/command/mark-open-data/command-mark-open-data.d.ts +6 -10
- package/out/utils/message-center/command/mark-open-data/command-mark-open-data.d.ts.map +1 -1
- package/out/utils/message-center/command/mark-open-data/command-mark-open-data.js +4 -8
- package/out/utils/message-center/command/message-command.d.ts +31 -45
- package/out/utils/message-center/command/message-command.d.ts.map +1 -1
- package/out/utils/message-center/command/message-command.js +29 -43
- package/out/utils/message-center/command/remove/command-remove.d.ts +7 -11
- package/out/utils/message-center/command/remove/command-remove.d.ts.map +1 -1
- package/out/utils/message-center/command/remove/command-remove.js +5 -9
- package/out/utils/message-center/command/update/command-update.d.ts +7 -11
- package/out/utils/message-center/command/update/command-update.d.ts.map +1 -1
- package/out/utils/message-center/command/update/command-update.js +5 -9
- package/out/utils/message-center/console/message-console.d.ts +6 -9
- package/out/utils/message-center/console/message-console.d.ts.map +1 -1
- package/out/utils/message-center/console/message-console.js +4 -8
- package/out/utils/message-center/error/message-error.d.ts +6 -9
- package/out/utils/message-center/error/message-error.d.ts.map +1 -1
- package/out/utils/message-center/error/message-error.js +4 -8
- package/out/utils/message-center/index.d.ts +0 -1
- package/out/utils/message-center/index.d.ts.map +1 -1
- package/out/utils/message-center/message-center.d.ts +20 -35
- package/out/utils/message-center/message-center.d.ts.map +1 -1
- package/out/utils/message-center/message-center.js +18 -33
- package/out/utils/namespace/namespace.d.ts +45 -75
- package/out/utils/namespace/namespace.d.ts.map +1 -1
- package/out/utils/namespace/namespace.js +53 -81
- package/out/utils/net/http-response.d.ts +6 -66
- package/out/utils/net/http-response.d.ts.map +1 -1
- package/out/utils/net/http-response.js +4 -11
- package/out/utils/net/net.d.ts +57 -100
- package/out/utils/net/net.d.ts.map +1 -1
- package/out/utils/net/net.js +53 -94
- package/out/utils/recursive/find-recursive-child.d.ts +2 -10
- package/out/utils/recursive/find-recursive-child.d.ts.map +1 -1
- package/out/utils/recursive/find-recursive-child.js +4 -14
- package/out/utils/string-util/string-util.d.ts +19 -22
- package/out/utils/string-util/string-util.d.ts.map +1 -1
- package/out/utils/string-util/string-util.js +28 -22
- 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 +5 -8
- 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 -339
- 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,15 +1,27 @@
|
|
|
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>;
|
|
18
|
+
/**
|
|
19
|
+
* @description 响应失败之后处理
|
|
20
|
+
* @protected
|
|
21
|
+
* @param {Error} error
|
|
22
|
+
* @returns {*} {Promise<never>}
|
|
23
|
+
* @memberof CoreInterceptor
|
|
24
|
+
*/
|
|
25
|
+
protected onResponseError(error: Error): Promise<never>;
|
|
14
26
|
}
|
|
15
27
|
//# sourceMappingURL=core-interceptor.d.ts.map
|
|
@@ -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;AAE5C
|
|
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;AAE5C;;;;;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;CAmD9D"}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { getToken } from '../util/util';
|
|
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 class CoreInterceptor extends Interceptor {
|
|
10
|
+
/**
|
|
11
|
+
* @description 请求之前处理
|
|
12
|
+
* @protected
|
|
13
|
+
* @param {InternalAxiosRequestConfig} config
|
|
14
|
+
* @returns {*} {Promise<InternalAxiosRequestConfig>}
|
|
15
|
+
* @memberof CoreInterceptor
|
|
16
|
+
*/
|
|
13
17
|
async onBeforeRequest(config) {
|
|
14
18
|
config = await super.onBeforeRequest(config);
|
|
15
19
|
const { headers } = config;
|
|
@@ -32,4 +36,58 @@ export class CoreInterceptor extends Interceptor {
|
|
|
32
36
|
headers.set('srfsystemid', systemId);
|
|
33
37
|
return config;
|
|
34
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* @description 响应失败之后处理
|
|
41
|
+
* @protected
|
|
42
|
+
* @param {Error} error
|
|
43
|
+
* @returns {*} {Promise<never>}
|
|
44
|
+
* @memberof CoreInterceptor
|
|
45
|
+
*/
|
|
46
|
+
async onResponseError(error) {
|
|
47
|
+
const { config, response } = error;
|
|
48
|
+
if (this.instance &&
|
|
49
|
+
(response === null || response === void 0 ? void 0 : response.status) === 401 &&
|
|
50
|
+
config &&
|
|
51
|
+
!config._retry &&
|
|
52
|
+
config.url &&
|
|
53
|
+
// 排除获取系统信息、应用数据、刷新 token 预定义接口
|
|
54
|
+
(config.url.indexOf('/uaa/getbydcsystem/') === -1 ||
|
|
55
|
+
config.url.indexOf('/appdata') !== -1 ||
|
|
56
|
+
config.url.indexOf('/uaa/refresh_token/') !== -1)) {
|
|
57
|
+
try {
|
|
58
|
+
// 标记为已重试
|
|
59
|
+
config._retry = true;
|
|
60
|
+
// 刷新 token
|
|
61
|
+
await ibiz.auth.refreshToken();
|
|
62
|
+
// 重新加载应用数据
|
|
63
|
+
const res = await ibiz.net.get('/appdata');
|
|
64
|
+
if (res && res.ok) {
|
|
65
|
+
ibiz.appData = res.data;
|
|
66
|
+
}
|
|
67
|
+
// 重新发起原始请求
|
|
68
|
+
const { headers } = config;
|
|
69
|
+
const token = getToken();
|
|
70
|
+
if (token) {
|
|
71
|
+
headers.set(`${ibiz.env.tokenHeader}Authorization`, `${ibiz.env.tokenPrefix}Bearer ${token}`);
|
|
72
|
+
}
|
|
73
|
+
let systemId = ibiz.env.dcSystem;
|
|
74
|
+
const { orgData } = ibiz;
|
|
75
|
+
if (orgData) {
|
|
76
|
+
if (orgData.systemid) {
|
|
77
|
+
systemId = orgData.systemid;
|
|
78
|
+
}
|
|
79
|
+
if (orgData.orgid) {
|
|
80
|
+
headers.set('srforgid', orgData.orgid);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
headers.set('srfsystemid', systemId);
|
|
84
|
+
return this.instance(config);
|
|
85
|
+
}
|
|
86
|
+
catch (err) {
|
|
87
|
+
return Promise.reject(error);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
// 处理响应错误
|
|
91
|
+
return Promise.reject(error);
|
|
92
|
+
}
|
|
35
93
|
}
|
|
@@ -1,83 +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
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* @
|
|
33
|
-
* @
|
|
23
|
+
* @description axios实例
|
|
24
|
+
* @protected
|
|
25
|
+
* @type {(AxiosInstance | undefined)}
|
|
26
|
+
* @memberof Interceptor
|
|
27
|
+
*/
|
|
28
|
+
protected instance: AxiosInstance | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* @description 请求之前处理
|
|
34
31
|
* @protected
|
|
35
32
|
* @param {InternalAxiosRequestConfig} config
|
|
36
33
|
* @returns {*} {Promise<InternalAxiosRequestConfig>}
|
|
34
|
+
* @memberof Interceptor
|
|
37
35
|
*/
|
|
38
36
|
protected onBeforeRequest(config: InternalAxiosRequestConfig): Promise<InternalAxiosRequestConfig>;
|
|
39
37
|
/**
|
|
40
|
-
* 请求失败之后处理
|
|
41
|
-
*
|
|
42
|
-
* @author lxm
|
|
43
|
-
* @date 2022-10-27 17:10:40
|
|
38
|
+
* @description 请求失败之后处理
|
|
44
39
|
* @protected
|
|
45
|
-
* @param {
|
|
40
|
+
* @param {Error} error
|
|
41
|
+
* @returns {*} {Promise<never>}
|
|
42
|
+
* @memberof Interceptor
|
|
46
43
|
*/
|
|
47
44
|
protected onRequestError(error: Error): Promise<never>;
|
|
48
45
|
/**
|
|
49
|
-
* 响应成功之后处理
|
|
50
|
-
*
|
|
51
|
-
* @author lxm
|
|
52
|
-
* @date 2022-10-27 17:10:38
|
|
46
|
+
* @description 响应成功之后处理
|
|
53
47
|
* @protected
|
|
54
48
|
* @param {AxiosResponse} config
|
|
55
|
-
* @returns {*} {Promise<
|
|
49
|
+
* @returns {*} {Promise<AxiosResponse>}
|
|
50
|
+
* @memberof Interceptor
|
|
56
51
|
*/
|
|
57
52
|
protected onResponseSuccess(config: AxiosResponse): Promise<AxiosResponse>;
|
|
58
53
|
/**
|
|
59
|
-
* 响应失败之后处理
|
|
60
|
-
*
|
|
61
|
-
* @author lxm
|
|
62
|
-
* @date 2022-10-27 17:10:37
|
|
54
|
+
* @description 响应失败之后处理
|
|
63
55
|
* @protected
|
|
64
|
-
* @param {
|
|
56
|
+
* @param {Error} error
|
|
57
|
+
* @returns {*} {Promise<never>}
|
|
58
|
+
* @memberof Interceptor
|
|
65
59
|
*/
|
|
66
60
|
protected onResponseError(error: Error): Promise<never>;
|
|
67
61
|
/**
|
|
68
|
-
* 使用拦截器
|
|
69
|
-
*
|
|
70
|
-
* @author lxm
|
|
71
|
-
* @date 2022-10-27 17:10:28
|
|
62
|
+
* @description 使用拦截器
|
|
72
63
|
* @param {AxiosInstance} instance
|
|
64
|
+
* @memberof Interceptor
|
|
73
65
|
*/
|
|
74
66
|
use(instance: AxiosInstance): void;
|
|
75
67
|
/**
|
|
76
|
-
* 移出拦截器
|
|
77
|
-
*
|
|
78
|
-
* @author lxm
|
|
79
|
-
* @date 2022-10-27 17:10:27
|
|
68
|
+
* @description 移出拦截器
|
|
80
69
|
* @param {AxiosInstance} instance
|
|
70
|
+
* @memberof Interceptor
|
|
81
71
|
*/
|
|
82
72
|
eject(instance: AxiosInstance): void;
|
|
83
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,77 +1,69 @@
|
|
|
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) {
|
|
55
|
+
this.instance = instance;
|
|
56
|
+
this.onBeforeRequest = this.onBeforeRequest.bind(this);
|
|
57
|
+
this.onRequestError = this.onRequestError.bind(this);
|
|
58
|
+
this.onResponseSuccess = this.onResponseSuccess.bind(this);
|
|
59
|
+
this.onResponseError = this.onResponseError.bind(this);
|
|
66
60
|
this.requestTag = instance.interceptors.request.use(this.onBeforeRequest, this.onRequestError);
|
|
67
61
|
this.responseTag = instance.interceptors.response.use(this.onResponseSuccess, this.onResponseError);
|
|
68
62
|
}
|
|
69
63
|
/**
|
|
70
|
-
* 移出拦截器
|
|
71
|
-
*
|
|
72
|
-
* @author lxm
|
|
73
|
-
* @date 2022-10-27 17:10:27
|
|
64
|
+
* @description 移出拦截器
|
|
74
65
|
* @param {AxiosInstance} instance
|
|
66
|
+
* @memberof Interceptor
|
|
75
67
|
*/
|
|
76
68
|
eject(instance) {
|
|
77
69
|
if (this.requestTag) {
|
|
@@ -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"}
|