@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
package/dist/index.esm.js
CHANGED
|
@@ -358,22 +358,19 @@ function throttle(fn, wait) {
|
|
|
358
358
|
var CommandsRegistry = class {
|
|
359
359
|
constructor() {
|
|
360
360
|
/**
|
|
361
|
-
* 已经注册的所有指令
|
|
362
|
-
*
|
|
363
|
-
* @author chitanda
|
|
364
|
-
* @date 2022-07-21 15:07:47
|
|
361
|
+
* @description 已经注册的所有指令
|
|
365
362
|
* @private
|
|
363
|
+
* @memberof CommandsRegistry
|
|
366
364
|
*/
|
|
367
365
|
this.commands = /* @__PURE__ */ new Map();
|
|
368
366
|
}
|
|
369
367
|
/**
|
|
370
|
-
* 注册指令
|
|
371
|
-
*
|
|
372
|
-
* @
|
|
373
|
-
* @
|
|
374
|
-
* @
|
|
375
|
-
* @
|
|
376
|
-
* @return {*} {IDisposable}
|
|
368
|
+
* @description 注册指令
|
|
369
|
+
* @param {(string | ICommand)} idOrCommand 指令id或者指令对象
|
|
370
|
+
* @param {ICommandHandler} [handler] 指令处理器
|
|
371
|
+
* @param {ICommandOption} [opts] 指令配置参数
|
|
372
|
+
* @returns {*} {IDisposable} 返回一个可销毁对象,用于取消注册该指令
|
|
373
|
+
* @memberof CommandsRegistry
|
|
377
374
|
*/
|
|
378
375
|
registerCommand(idOrCommand, handler, opts) {
|
|
379
376
|
if (!idOrCommand) {
|
|
@@ -402,23 +399,19 @@ var CommandsRegistry = class {
|
|
|
402
399
|
return ret;
|
|
403
400
|
}
|
|
404
401
|
/**
|
|
405
|
-
* 指令是否已经注册
|
|
406
|
-
*
|
|
407
|
-
* @author chitanda
|
|
408
|
-
* @date 2022-07-21 15:07:58
|
|
402
|
+
* @description 指令是否已经注册
|
|
409
403
|
* @param {string} id
|
|
410
|
-
* @
|
|
404
|
+
* @returns {*} {boolean}
|
|
405
|
+
* @memberof CommandsRegistry
|
|
411
406
|
*/
|
|
412
407
|
hasCommand(id) {
|
|
413
408
|
return this.commands.has(id);
|
|
414
409
|
}
|
|
415
410
|
/**
|
|
416
|
-
* 查找指令
|
|
417
|
-
*
|
|
418
|
-
* @author chitanda
|
|
419
|
-
* @date 2022-07-21 16:07:12
|
|
411
|
+
* @description 查找指令
|
|
420
412
|
* @param {string} id
|
|
421
|
-
* @
|
|
413
|
+
* @returns {*} {(ICommand | undefined)}
|
|
414
|
+
* @memberof CommandsRegistry
|
|
422
415
|
*/
|
|
423
416
|
getCommand(id) {
|
|
424
417
|
const list = this.commands.get(id);
|
|
@@ -428,11 +421,9 @@ var CommandsRegistry = class {
|
|
|
428
421
|
return list[Symbol.iterator]().next().value;
|
|
429
422
|
}
|
|
430
423
|
/**
|
|
431
|
-
* 获取所有指令
|
|
432
|
-
*
|
|
433
|
-
* @
|
|
434
|
-
* @date 2022-07-21 16:07:20
|
|
435
|
-
* @return {*} {ICommandsMap}
|
|
424
|
+
* @description 获取所有指令
|
|
425
|
+
* @returns {*} {ICommandsMap}
|
|
426
|
+
* @memberof CommandsRegistry
|
|
436
427
|
*/
|
|
437
428
|
getCommands() {
|
|
438
429
|
const result = /* @__PURE__ */ new Map();
|
|
@@ -446,12 +437,10 @@ var CommandsRegistry = class {
|
|
|
446
437
|
return result;
|
|
447
438
|
}
|
|
448
439
|
/**
|
|
449
|
-
* 获取指令配置参数
|
|
450
|
-
*
|
|
451
|
-
* @author chitanda
|
|
452
|
-
* @date 2022-07-21 16:07:27
|
|
440
|
+
* @description 获取指令配置参数
|
|
453
441
|
* @param {string} id
|
|
454
|
-
* @
|
|
442
|
+
* @returns {*} {(ICommandOption | undefined)}
|
|
443
|
+
* @memberof CommandsRegistry
|
|
455
444
|
*/
|
|
456
445
|
getCommandOpt(id) {
|
|
457
446
|
const cmd = this.getCommand(id);
|
|
@@ -462,30 +451,31 @@ var CommandsRegistry = class {
|
|
|
462
451
|
// src/command/command.ts
|
|
463
452
|
var CommandController = class {
|
|
464
453
|
constructor() {
|
|
454
|
+
/**
|
|
455
|
+
* @description 指令注册器
|
|
456
|
+
* @private
|
|
457
|
+
* @memberof CommandController
|
|
458
|
+
*/
|
|
465
459
|
this.commandRegister = new CommandsRegistry();
|
|
466
460
|
}
|
|
467
461
|
/**
|
|
468
|
-
* 注册指令
|
|
469
|
-
*
|
|
470
|
-
* @
|
|
471
|
-
* @
|
|
472
|
-
* @
|
|
473
|
-
* @
|
|
474
|
-
* @param {ICommandOption} [opts]
|
|
475
|
-
* @return {*} {IDisposable}
|
|
462
|
+
* @description 注册指令
|
|
463
|
+
* @param {string} id 指令id
|
|
464
|
+
* @param {ICommandHandler} handler 指令处理回调
|
|
465
|
+
* @param {ICommandOption} [opts] 指令参数
|
|
466
|
+
* @returns {*} {IDisposable} 指令释放对象
|
|
467
|
+
* @memberof CommandController
|
|
476
468
|
*/
|
|
477
469
|
register(id, handler, opts) {
|
|
478
470
|
return this.commandRegister.registerCommand(id, handler, opts);
|
|
479
471
|
}
|
|
480
472
|
/**
|
|
481
|
-
* 执行指令
|
|
482
|
-
*
|
|
483
|
-
* @author chitanda
|
|
484
|
-
* @date 2022-06-28 19:06:38
|
|
473
|
+
* @description 执行指令
|
|
485
474
|
* @template T
|
|
486
|
-
* @param {string} id
|
|
487
|
-
* @param {...unknown[]} args
|
|
488
|
-
* @
|
|
475
|
+
* @param {string} id 指令id
|
|
476
|
+
* @param {...unknown[]} args 指令参数
|
|
477
|
+
* @returns {*} {Promise<T>} 指令返回值
|
|
478
|
+
* @memberof CommandController
|
|
489
479
|
*/
|
|
490
480
|
async execute(id, ...args) {
|
|
491
481
|
const command = this.commandRegister.getCommand(id);
|
|
@@ -495,13 +485,11 @@ var CommandController = class {
|
|
|
495
485
|
throw new Error(ibiz.i18n.t("core.command.unregisteredCommand", { id }));
|
|
496
486
|
}
|
|
497
487
|
/**
|
|
498
|
-
*
|
|
499
|
-
*
|
|
500
|
-
* @
|
|
501
|
-
* @
|
|
502
|
-
* @
|
|
503
|
-
* @param {boolean} [err]
|
|
504
|
-
* @return {*} {boolean}
|
|
488
|
+
* @description 判断指令是否存在,没有则直接抛出异常
|
|
489
|
+
* @param {string} id 指令id
|
|
490
|
+
* @param {boolean} [err] 是否抛出异常
|
|
491
|
+
* @returns {*} {boolean} 是否存在
|
|
492
|
+
* @memberof CommandController
|
|
505
493
|
*/
|
|
506
494
|
hasCommand(id, err) {
|
|
507
495
|
const bol = !!this.commandRegister.hasCommand(id);
|
|
@@ -511,12 +499,10 @@ var CommandController = class {
|
|
|
511
499
|
return bol;
|
|
512
500
|
}
|
|
513
501
|
/**
|
|
514
|
-
*
|
|
515
|
-
*
|
|
516
|
-
* @
|
|
517
|
-
* @
|
|
518
|
-
* @param {string} id
|
|
519
|
-
* @return {*} {(ICommandOption | undefined)}
|
|
502
|
+
* @description 获取指令参数
|
|
503
|
+
* @param {string} id 指令id
|
|
504
|
+
* @returns {*} {(ICommandOption | undefined)} 指令参数
|
|
505
|
+
* @memberof CommandController
|
|
520
506
|
*/
|
|
521
507
|
getCommandOpts(id) {
|
|
522
508
|
return this.commandRegister.getCommandOpt(id);
|
|
@@ -530,53 +516,46 @@ var commands = new CommandController();
|
|
|
530
516
|
var CoreConst = class {
|
|
531
517
|
};
|
|
532
518
|
/**
|
|
533
|
-
* 默认模型服务标识
|
|
534
|
-
*
|
|
535
|
-
* @author chitanda
|
|
536
|
-
* @date 2024-01-18 16:01:25
|
|
519
|
+
* @description 默认模型服务标识
|
|
537
520
|
* @static
|
|
521
|
+
* @memberof CoreConst
|
|
538
522
|
*/
|
|
539
523
|
CoreConst.DEFAULT_MODEL_SERVICE_TAG = "default";
|
|
540
524
|
/**
|
|
541
|
-
* 访问令牌标识
|
|
542
|
-
*
|
|
543
|
-
* @author chitanda
|
|
544
|
-
* @date 2022-07-20 15:07:28
|
|
525
|
+
* @description 访问令牌标识
|
|
545
526
|
* @static
|
|
527
|
+
* @memberof CoreConst
|
|
546
528
|
*/
|
|
547
529
|
CoreConst.TOKEN = "ibzuaa-token";
|
|
548
530
|
/**
|
|
549
|
-
* 刷新令牌标识
|
|
550
|
-
*
|
|
551
|
-
* @author chitanda
|
|
552
|
-
* @date 2024-01-18 16:01:54
|
|
531
|
+
* @description 刷新令牌标识
|
|
553
532
|
* @static
|
|
533
|
+
* @memberof CoreConst
|
|
554
534
|
*/
|
|
555
535
|
CoreConst.REFRESH_TOKEN = "ibzuaa-refresh-token";
|
|
556
536
|
/**
|
|
557
|
-
* 访问令牌标识过期时间
|
|
558
|
-
*
|
|
559
|
-
* @author lxm
|
|
560
|
-
* @date 2023-02-13 07:11:33
|
|
537
|
+
* @description 访问令牌标识过期时间
|
|
561
538
|
* @static
|
|
562
539
|
* @memberof CoreConst
|
|
563
540
|
*/
|
|
564
541
|
CoreConst.TOKEN_EXPIRES = "ibzuaa-token-expires";
|
|
565
542
|
/**
|
|
566
|
-
* 认证信息是走记住我模式的 cookie 标识
|
|
567
|
-
*
|
|
568
|
-
* @author chitanda
|
|
569
|
-
* @date 2023-12-13 15:12:28
|
|
543
|
+
* @description 认证信息是走记住我模式的 cookie 标识
|
|
570
544
|
* @static
|
|
545
|
+
* @memberof CoreConst
|
|
571
546
|
*/
|
|
572
547
|
CoreConst.TOKEN_REMEMBER = "ibizuaa-token-remember";
|
|
573
548
|
/**
|
|
574
|
-
* 是否是匿名用户登录的 cookie 标识
|
|
575
|
-
* @author lxm
|
|
576
|
-
* @date 2024-01-03 05:35:40
|
|
549
|
+
* @description 是否是匿名用户登录的 cookie 标识
|
|
577
550
|
* @static
|
|
551
|
+
* @memberof CoreConst
|
|
578
552
|
*/
|
|
579
553
|
CoreConst.IS_ANONYMOUS = "ibizuaa-is-anonymous";
|
|
554
|
+
/**
|
|
555
|
+
* @description 存储访问相关数据键的集合名称
|
|
556
|
+
* @static
|
|
557
|
+
*/
|
|
558
|
+
CoreConst.ACCESS_STORE_AREA_KEYS = "ibizuaa-access-store-area-keys";
|
|
580
559
|
|
|
581
560
|
// src/constant/util/util.ts
|
|
582
561
|
var NOOP = () => {
|
|
@@ -3530,35 +3509,15 @@ var HttpStatusMessageConst = {
|
|
|
3530
3509
|
504: "\u7F51\u5173\u8D85\u65F6\u3002"
|
|
3531
3510
|
};
|
|
3532
3511
|
|
|
3533
|
-
// src/constant/login-mode/login-mode.ts
|
|
3534
|
-
var LoginMode = /* @__PURE__ */ ((LoginMode2) => {
|
|
3535
|
-
LoginMode2["DEFAULT"] = "DEFAULT";
|
|
3536
|
-
LoginMode2["CUSTOM"] = "CUSTOM";
|
|
3537
|
-
LoginMode2["CAS"] = "CAS";
|
|
3538
|
-
LoginMode2["OAUTH"] = "OAUTH";
|
|
3539
|
-
return LoginMode2;
|
|
3540
|
-
})(LoginMode || {});
|
|
3541
|
-
|
|
3542
|
-
// src/constant/menu-permission-mode/menu-permission-mode.ts
|
|
3543
|
-
var MenuPermissionMode = /* @__PURE__ */ ((MenuPermissionMode2) => {
|
|
3544
|
-
MenuPermissionMode2["MIXIN"] = "MIXIN";
|
|
3545
|
-
MenuPermissionMode2["RESOURCE"] = "RESOURCE";
|
|
3546
|
-
MenuPermissionMode2["RT"] = "RT";
|
|
3547
|
-
return MenuPermissionMode2;
|
|
3548
|
-
})(MenuPermissionMode || {});
|
|
3549
|
-
|
|
3550
3512
|
// src/context/index.ts
|
|
3551
3513
|
import { clone } from "ramda";
|
|
3552
3514
|
var IBizContext = class _IBizContext {
|
|
3553
3515
|
/**
|
|
3554
3516
|
* Creates an instance of IBizContext.
|
|
3555
|
-
*
|
|
3556
|
-
* @author chitanda
|
|
3557
|
-
* @date 2022-07-14 10:07:15
|
|
3558
3517
|
* @param {IData} [context={}] 自身的上下文
|
|
3559
|
-
* @param {IContext} [parent]
|
|
3518
|
+
* @param {IContext} [parent] 父的上下文源对象
|
|
3519
|
+
* @memberof IBizContext
|
|
3560
3520
|
*/
|
|
3561
|
-
// eslint-disable-next-line default-param-last
|
|
3562
3521
|
constructor(context = {}, parent) {
|
|
3563
3522
|
Object.defineProperty(this, "_associationContext", {
|
|
3564
3523
|
enumerable: false,
|
|
@@ -3570,6 +3529,12 @@ var IBizContext = class _IBizContext {
|
|
|
3570
3529
|
}
|
|
3571
3530
|
Object.assign(this, context);
|
|
3572
3531
|
}
|
|
3532
|
+
/**
|
|
3533
|
+
* @description 初始化上下文,并关联父上下文
|
|
3534
|
+
* @private
|
|
3535
|
+
* @param {IContext} parent
|
|
3536
|
+
* @memberof IBizContext
|
|
3537
|
+
*/
|
|
3573
3538
|
initWithParent(parent) {
|
|
3574
3539
|
const self = this;
|
|
3575
3540
|
Object.defineProperty(this, "_parent", {
|
|
@@ -3612,11 +3577,9 @@ var IBizContext = class _IBizContext {
|
|
|
3612
3577
|
Object.defineProperties(this, properties);
|
|
3613
3578
|
}
|
|
3614
3579
|
/**
|
|
3615
|
-
*
|
|
3616
|
-
*
|
|
3617
|
-
* @author lxm
|
|
3618
|
-
* @date 2022-12-08 17:12:26
|
|
3580
|
+
* @description 返回自身独有的上下文,和父有差异的
|
|
3619
3581
|
* @returns {*} {IData}
|
|
3582
|
+
* @memberof IBizContext
|
|
3620
3583
|
*/
|
|
3621
3584
|
getOwnContext() {
|
|
3622
3585
|
const result = {};
|
|
@@ -3628,10 +3591,8 @@ var IBizContext = class _IBizContext {
|
|
|
3628
3591
|
return result;
|
|
3629
3592
|
}
|
|
3630
3593
|
/**
|
|
3631
|
-
* 销毁当前上下文对象
|
|
3632
|
-
*
|
|
3633
|
-
* @author chitanda
|
|
3634
|
-
* @date 2023-03-13 15:03:04
|
|
3594
|
+
* @description 销毁当前上下文对象
|
|
3595
|
+
* @memberof IBizContext
|
|
3635
3596
|
*/
|
|
3636
3597
|
destroy() {
|
|
3637
3598
|
this._parent = void 0;
|
|
@@ -3641,11 +3602,9 @@ var IBizContext = class _IBizContext {
|
|
|
3641
3602
|
});
|
|
3642
3603
|
}
|
|
3643
3604
|
/**
|
|
3644
|
-
* 在非视图中,需要断开视图上下文联系时。只能使用 clone 创建新的局部上下文
|
|
3645
|
-
*
|
|
3646
|
-
* @
|
|
3647
|
-
* @date 2023-03-13 16:03:13
|
|
3648
|
-
* @return {*} {IBizContext}
|
|
3605
|
+
* @description 在非视图中,需要断开视图上下文联系时。只能使用 clone 创建新的局部上下文
|
|
3606
|
+
* @returns {*} {IBizContext}
|
|
3607
|
+
* @memberof IBizContext
|
|
3649
3608
|
*/
|
|
3650
3609
|
clone() {
|
|
3651
3610
|
const newContext = new _IBizContext(
|
|
@@ -3657,7 +3616,7 @@ var IBizContext = class _IBizContext {
|
|
|
3657
3616
|
}
|
|
3658
3617
|
/**
|
|
3659
3618
|
* @description 深度克隆,只返回现有数据
|
|
3660
|
-
* @
|
|
3619
|
+
* @returns {*} {IData}
|
|
3661
3620
|
* @memberof IBizContext
|
|
3662
3621
|
*/
|
|
3663
3622
|
deepClone() {
|
|
@@ -3668,14 +3627,11 @@ var IBizContext = class _IBizContext {
|
|
|
3668
3627
|
return result;
|
|
3669
3628
|
}
|
|
3670
3629
|
/**
|
|
3671
|
-
*
|
|
3672
|
-
* 等效于重新实例化,但是引用不变
|
|
3673
|
-
* @author lxm
|
|
3674
|
-
* @date 2023-05-24 10:30:40
|
|
3630
|
+
* @description 在不改变对象引用的情况下,重置上下文,等效于重新实例化,但是引用不变
|
|
3675
3631
|
* @param {IData} [context={}]
|
|
3676
3632
|
* @param {IContext} [parent]
|
|
3633
|
+
* @memberof IBizContext
|
|
3677
3634
|
*/
|
|
3678
|
-
// eslint-disable-next-line default-param-last
|
|
3679
3635
|
reset(context = {}, parent) {
|
|
3680
3636
|
this._associationContext.forEach((item) => {
|
|
3681
3637
|
item.destroy();
|
|
@@ -3696,14 +3652,12 @@ var IBizContext = class _IBizContext {
|
|
|
3696
3652
|
Object.assign(this, context);
|
|
3697
3653
|
}
|
|
3698
3654
|
/**
|
|
3699
|
-
* 上下文只有在视图初始化时,调用 create 方法
|
|
3700
|
-
*
|
|
3701
|
-
* @author chitanda
|
|
3702
|
-
* @date 2023-03-13 16:03:32
|
|
3655
|
+
* @description 上下文只有在视图初始化时,调用 create 方法
|
|
3703
3656
|
* @static
|
|
3704
3657
|
* @param {IData} [context]
|
|
3705
3658
|
* @param {IContext} [parent]
|
|
3706
|
-
* @
|
|
3659
|
+
* @returns {*} {IBizContext}
|
|
3660
|
+
* @memberof IBizContext
|
|
3707
3661
|
*/
|
|
3708
3662
|
static create(context, parent) {
|
|
3709
3663
|
return new _IBizContext(context, parent);
|
|
@@ -3712,6 +3666,12 @@ var IBizContext = class _IBizContext {
|
|
|
3712
3666
|
|
|
3713
3667
|
// src/params/params.ts
|
|
3714
3668
|
var IBizParams = class {
|
|
3669
|
+
/**
|
|
3670
|
+
* Creates an instance of IBizParams.
|
|
3671
|
+
* @param {IParams} [params] 自身的参数
|
|
3672
|
+
* @param {IParams} [parent] 父视图参数
|
|
3673
|
+
* @memberof IBizParams
|
|
3674
|
+
*/
|
|
3715
3675
|
constructor(params, parent) {
|
|
3716
3676
|
Object.defineProperty(this, "_parent", {
|
|
3717
3677
|
enumerable: false,
|
|
@@ -3728,12 +3688,10 @@ var IBizParams = class {
|
|
|
3728
3688
|
return this.createProxy();
|
|
3729
3689
|
}
|
|
3730
3690
|
/**
|
|
3731
|
-
*
|
|
3732
|
-
*
|
|
3733
|
-
* @author lxm
|
|
3734
|
-
* @date 2023-10-27 03:53:14
|
|
3691
|
+
* @description 创建代理对象
|
|
3735
3692
|
* @protected
|
|
3736
|
-
* @
|
|
3693
|
+
* @returns {*} {IBizParams}
|
|
3694
|
+
* @memberof IBizParams
|
|
3737
3695
|
*/
|
|
3738
3696
|
createProxy() {
|
|
3739
3697
|
function updateKeyDefine2(target, keys) {
|
|
@@ -3781,22 +3739,18 @@ var IBizParams = class {
|
|
|
3781
3739
|
});
|
|
3782
3740
|
}
|
|
3783
3741
|
/**
|
|
3784
|
-
*
|
|
3785
|
-
*
|
|
3786
|
-
* @
|
|
3787
|
-
* @
|
|
3788
|
-
* @param {IParams} [params]
|
|
3789
|
-
* @param {IParams} [parent]
|
|
3742
|
+
* @description 在不改变对象引用的情况下,重置视图参数,等效于重新实例化,但是引用不变
|
|
3743
|
+
* @param {IParams} [params] 视图参数
|
|
3744
|
+
* @param {IParams} [parent] 父视图参数
|
|
3745
|
+
* @memberof IBizParams
|
|
3790
3746
|
*/
|
|
3791
3747
|
reset(params, parent) {
|
|
3792
3748
|
this._params = params || {};
|
|
3793
3749
|
this._parent = parent;
|
|
3794
3750
|
}
|
|
3795
3751
|
/**
|
|
3796
|
-
*
|
|
3797
|
-
*
|
|
3798
|
-
* @author lxm
|
|
3799
|
-
* @date 2023-10-27 03:57:44
|
|
3752
|
+
* @description 销毁视图参数,避免内存泄漏
|
|
3753
|
+
* @memberof IBizParams
|
|
3800
3754
|
*/
|
|
3801
3755
|
destroy() {
|
|
3802
3756
|
this._params = {};
|
|
@@ -3804,6 +3758,23 @@ var IBizParams = class {
|
|
|
3804
3758
|
}
|
|
3805
3759
|
};
|
|
3806
3760
|
|
|
3761
|
+
// src/interface/api/constant/login-mode/login-mode.ts
|
|
3762
|
+
var LoginMode = /* @__PURE__ */ ((LoginMode2) => {
|
|
3763
|
+
LoginMode2["DEFAULT"] = "DEFAULT";
|
|
3764
|
+
LoginMode2["CUSTOM"] = "CUSTOM";
|
|
3765
|
+
LoginMode2["CAS"] = "CAS";
|
|
3766
|
+
LoginMode2["OAUTH"] = "OAUTH";
|
|
3767
|
+
return LoginMode2;
|
|
3768
|
+
})(LoginMode || {});
|
|
3769
|
+
|
|
3770
|
+
// src/interface/api/constant/menu-permission-mode/menu-permission-mode.ts
|
|
3771
|
+
var MenuPermissionMode = /* @__PURE__ */ ((MenuPermissionMode2) => {
|
|
3772
|
+
MenuPermissionMode2["MIXIN"] = "MIXIN";
|
|
3773
|
+
MenuPermissionMode2["RESOURCE"] = "RESOURCE";
|
|
3774
|
+
MenuPermissionMode2["RT"] = "RT";
|
|
3775
|
+
return MenuPermissionMode2;
|
|
3776
|
+
})(MenuPermissionMode || {});
|
|
3777
|
+
|
|
3807
3778
|
// src/environment/environment.ts
|
|
3808
3779
|
var Environment = {
|
|
3809
3780
|
dev: false,
|
|
@@ -3814,6 +3785,7 @@ var Environment = {
|
|
|
3814
3785
|
anonymousUser: "",
|
|
3815
3786
|
anonymousPwd: "",
|
|
3816
3787
|
enableAnonymous: false,
|
|
3788
|
+
accessStoreArea: "COOKIE",
|
|
3817
3789
|
logLevel: "ERROR",
|
|
3818
3790
|
baseUrl: "/api",
|
|
3819
3791
|
appId: "",
|
|
@@ -3847,7 +3819,13 @@ var Environment = {
|
|
|
3847
3819
|
cookieDomain: "",
|
|
3848
3820
|
appLoadingTheme: "DEFAULT",
|
|
3849
3821
|
environmentTag: "development",
|
|
3850
|
-
mobMenuShowMode: "DEFAULT"
|
|
3822
|
+
mobMenuShowMode: "DEFAULT",
|
|
3823
|
+
appVersion: "",
|
|
3824
|
+
devtoolConfig: {
|
|
3825
|
+
studioBaseUrl: "https://open.ibizlab.cn/modeldesign/#/",
|
|
3826
|
+
v9Mode: false
|
|
3827
|
+
},
|
|
3828
|
+
enableAI: true
|
|
3851
3829
|
};
|
|
3852
3830
|
|
|
3853
3831
|
// src/error/http-error/http-error.ts
|
|
@@ -3889,11 +3867,9 @@ var HttpError = class extends Error {
|
|
|
3889
3867
|
var ModelError = class extends Error {
|
|
3890
3868
|
/**
|
|
3891
3869
|
* Creates an instance of ModelError.
|
|
3892
|
-
*
|
|
3893
|
-
* @
|
|
3894
|
-
* @
|
|
3895
|
-
* @param {IModelObject} model 模板未支持的模型
|
|
3896
|
-
* @param {string} [msg]
|
|
3870
|
+
* @param {IData} model 模板未支持的模型
|
|
3871
|
+
* @param {string} [msg] 错误信息
|
|
3872
|
+
* @memberof ModelError
|
|
3897
3873
|
*/
|
|
3898
3874
|
constructor(model, msg) {
|
|
3899
3875
|
super(
|
|
@@ -3919,12 +3895,10 @@ var RuntimeError = class extends Error {
|
|
|
3919
3895
|
// src/error/runtime-model-error/runtime-model-error.ts
|
|
3920
3896
|
var RuntimeModelError = class extends Error {
|
|
3921
3897
|
/**
|
|
3922
|
-
* Creates an instance of
|
|
3923
|
-
*
|
|
3924
|
-
* @author chitanda
|
|
3925
|
-
* @date 2022-08-30 16:08:58
|
|
3926
|
-
* @param {IModelObject} model 丢失配置的模型
|
|
3898
|
+
* Creates an instance of RuntimeModelError.
|
|
3899
|
+
* @param {IData} model 丢失配置的模型
|
|
3927
3900
|
* @param {string} [msg] 缺失配置描述
|
|
3901
|
+
* @memberof RuntimeModelError
|
|
3928
3902
|
*/
|
|
3929
3903
|
constructor(model, msg) {
|
|
3930
3904
|
super(
|
|
@@ -3990,27 +3964,74 @@ import { debounce as debounce2 } from "lodash-es";
|
|
|
3990
3964
|
import { isNotNil, isNil } from "ramda";
|
|
3991
3965
|
|
|
3992
3966
|
// src/utils/cookie-util/cookie-util.ts
|
|
3967
|
+
function getAccessStoreAreakeys() {
|
|
3968
|
+
try {
|
|
3969
|
+
const key = CoreConst.ACCESS_STORE_AREA_KEYS;
|
|
3970
|
+
let cookieAlls;
|
|
3971
|
+
switch (ibiz.env.accessStoreArea) {
|
|
3972
|
+
case "LOCALSTORAGE":
|
|
3973
|
+
cookieAlls = localStorage.getItem(key);
|
|
3974
|
+
break;
|
|
3975
|
+
case "SESSIONSTORAGE":
|
|
3976
|
+
cookieAlls = sessionStorage.getItem(key);
|
|
3977
|
+
break;
|
|
3978
|
+
default:
|
|
3979
|
+
break;
|
|
3980
|
+
}
|
|
3981
|
+
return JSON.parse(cookieAlls || "[]");
|
|
3982
|
+
} catch (error) {
|
|
3983
|
+
ibiz.log.error(error);
|
|
3984
|
+
return [];
|
|
3985
|
+
}
|
|
3986
|
+
}
|
|
3987
|
+
function setAccessStoreAreakeys(name) {
|
|
3988
|
+
try {
|
|
3989
|
+
const cookieAlls = [
|
|
3990
|
+
...new Set(getAccessStoreAreakeys().concat([name]))
|
|
3991
|
+
];
|
|
3992
|
+
const key = CoreConst.ACCESS_STORE_AREA_KEYS;
|
|
3993
|
+
switch (ibiz.env.accessStoreArea) {
|
|
3994
|
+
case "LOCALSTORAGE":
|
|
3995
|
+
return localStorage.setItem(key, JSON.stringify(cookieAlls));
|
|
3996
|
+
case "SESSIONSTORAGE":
|
|
3997
|
+
return sessionStorage.setItem(key, JSON.stringify(cookieAlls));
|
|
3998
|
+
default:
|
|
3999
|
+
break;
|
|
4000
|
+
}
|
|
4001
|
+
} catch (error) {
|
|
4002
|
+
ibiz.log.error(error);
|
|
4003
|
+
}
|
|
4004
|
+
}
|
|
3993
4005
|
function setCookie(name, value, day = 0, isDomain = false, path = "/", childDoMain = "") {
|
|
3994
4006
|
let domain = "";
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4007
|
+
setAccessStoreAreakeys(name);
|
|
4008
|
+
switch (ibiz.env.accessStoreArea) {
|
|
4009
|
+
case "LOCALSTORAGE":
|
|
4010
|
+
return localStorage.setItem(name, value);
|
|
4011
|
+
case "SESSIONSTORAGE":
|
|
4012
|
+
return sessionStorage.setItem(name, value);
|
|
4013
|
+
default:
|
|
4014
|
+
if (isDomain) {
|
|
4015
|
+
const regExpr = /^(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)$/;
|
|
4016
|
+
if (!regExpr.test(window.location.hostname)) {
|
|
4017
|
+
const host = window.location.hostname;
|
|
4018
|
+
if (host.indexOf(".") !== host.lastIndexOf(".")) {
|
|
4019
|
+
domain = ";domain=".concat(host.substring(host.indexOf("."), host.length));
|
|
4020
|
+
}
|
|
4021
|
+
}
|
|
4022
|
+
} else if (childDoMain) {
|
|
4023
|
+
domain = ";domain=".concat(childDoMain);
|
|
4001
4024
|
}
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
} else {
|
|
4013
|
-
document.cookie = "".concat(name, "=").concat(escape(value), ";path=").concat(path).concat(domain);
|
|
4025
|
+
if (day !== 0) {
|
|
4026
|
+
const expires = day * 24 * 60 * 60 * 1e3;
|
|
4027
|
+
const date = new Date((/* @__PURE__ */ new Date()).getTime() + expires);
|
|
4028
|
+
document.cookie = "".concat(name, "=").concat(escape(
|
|
4029
|
+
value
|
|
4030
|
+
), ";path=").concat(path, ";expires=").concat(date.toUTCString()).concat(domain);
|
|
4031
|
+
} else {
|
|
4032
|
+
document.cookie = "".concat(name, "=").concat(escape(value), ";path=").concat(path).concat(domain);
|
|
4033
|
+
}
|
|
4034
|
+
break;
|
|
4014
4035
|
}
|
|
4015
4036
|
}
|
|
4016
4037
|
function setAppCookie(name, value, day = 0) {
|
|
@@ -4030,16 +4051,40 @@ function clearAppCookie(cookieName) {
|
|
|
4030
4051
|
function getAppCookie(name) {
|
|
4031
4052
|
const reg = new RegExp("(^| )".concat(name, "=([^;]*)(;|$)"));
|
|
4032
4053
|
const arr = document.cookie.match(reg);
|
|
4033
|
-
|
|
4034
|
-
|
|
4054
|
+
switch (ibiz.env.accessStoreArea) {
|
|
4055
|
+
case "LOCALSTORAGE":
|
|
4056
|
+
return localStorage.getItem(name);
|
|
4057
|
+
case "SESSIONSTORAGE":
|
|
4058
|
+
return sessionStorage.getItem(name);
|
|
4059
|
+
default:
|
|
4060
|
+
if (arr && arr.length > 1) {
|
|
4061
|
+
return unescape(arr[2]);
|
|
4062
|
+
}
|
|
4063
|
+
return null;
|
|
4035
4064
|
}
|
|
4036
|
-
return null;
|
|
4037
4065
|
}
|
|
4038
4066
|
function resetAppCookie() {
|
|
4039
4067
|
const cookies = document.cookie.split(";");
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4068
|
+
const cookieAlls = getAccessStoreAreakeys().concat([
|
|
4069
|
+
CoreConst.ACCESS_STORE_AREA_KEYS
|
|
4070
|
+
]);
|
|
4071
|
+
switch (ibiz.env.accessStoreArea) {
|
|
4072
|
+
case "LOCALSTORAGE":
|
|
4073
|
+
for (const name of cookieAlls) {
|
|
4074
|
+
localStorage.removeItem(name);
|
|
4075
|
+
}
|
|
4076
|
+
break;
|
|
4077
|
+
case "SESSIONSTORAGE":
|
|
4078
|
+
for (const name of cookieAlls) {
|
|
4079
|
+
sessionStorage.removeItem(name);
|
|
4080
|
+
}
|
|
4081
|
+
break;
|
|
4082
|
+
default:
|
|
4083
|
+
for (const cookie of cookies) {
|
|
4084
|
+
const [cookieName, cookieValue] = cookie.split("=");
|
|
4085
|
+
document.cookie = "".concat(cookieName, "=").concat(cookieValue, ";expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/;domain=").concat(window.location.host);
|
|
4086
|
+
}
|
|
4087
|
+
break;
|
|
4043
4088
|
}
|
|
4044
4089
|
}
|
|
4045
4090
|
|
|
@@ -4256,59 +4301,56 @@ function getRandomInt(min = 0, max = 1e3) {
|
|
|
4256
4301
|
// src/utils/interceptor/interceptor.ts
|
|
4257
4302
|
var Interceptor = class {
|
|
4258
4303
|
/**
|
|
4259
|
-
* 请求之前处理
|
|
4260
|
-
*
|
|
4261
|
-
* @author lxm
|
|
4262
|
-
* @date 2022-10-27 17:10:41
|
|
4304
|
+
* @description 请求之前处理
|
|
4263
4305
|
* @protected
|
|
4264
4306
|
* @param {InternalAxiosRequestConfig} config
|
|
4265
4307
|
* @returns {*} {Promise<InternalAxiosRequestConfig>}
|
|
4308
|
+
* @memberof Interceptor
|
|
4266
4309
|
*/
|
|
4267
4310
|
async onBeforeRequest(config) {
|
|
4268
4311
|
return config;
|
|
4269
4312
|
}
|
|
4270
4313
|
/**
|
|
4271
|
-
* 请求失败之后处理
|
|
4272
|
-
*
|
|
4273
|
-
* @author lxm
|
|
4274
|
-
* @date 2022-10-27 17:10:40
|
|
4314
|
+
* @description 请求失败之后处理
|
|
4275
4315
|
* @protected
|
|
4276
|
-
* @param {
|
|
4316
|
+
* @param {Error} error
|
|
4317
|
+
* @returns {*} {Promise<never>}
|
|
4318
|
+
* @memberof Interceptor
|
|
4277
4319
|
*/
|
|
4278
4320
|
onRequestError(error) {
|
|
4279
4321
|
return Promise.reject(error);
|
|
4280
4322
|
}
|
|
4281
4323
|
/**
|
|
4282
|
-
* 响应成功之后处理
|
|
4283
|
-
*
|
|
4284
|
-
* @author lxm
|
|
4285
|
-
* @date 2022-10-27 17:10:38
|
|
4324
|
+
* @description 响应成功之后处理
|
|
4286
4325
|
* @protected
|
|
4287
4326
|
* @param {AxiosResponse} config
|
|
4288
|
-
* @returns {*} {Promise<
|
|
4327
|
+
* @returns {*} {Promise<AxiosResponse>}
|
|
4328
|
+
* @memberof Interceptor
|
|
4289
4329
|
*/
|
|
4290
4330
|
async onResponseSuccess(config) {
|
|
4291
4331
|
return config;
|
|
4292
4332
|
}
|
|
4293
4333
|
/**
|
|
4294
|
-
* 响应失败之后处理
|
|
4295
|
-
*
|
|
4296
|
-
* @author lxm
|
|
4297
|
-
* @date 2022-10-27 17:10:37
|
|
4334
|
+
* @description 响应失败之后处理
|
|
4298
4335
|
* @protected
|
|
4299
|
-
* @param {
|
|
4336
|
+
* @param {Error} error
|
|
4337
|
+
* @returns {*} {Promise<never>}
|
|
4338
|
+
* @memberof Interceptor
|
|
4300
4339
|
*/
|
|
4301
4340
|
onResponseError(error) {
|
|
4302
4341
|
return Promise.reject(error);
|
|
4303
4342
|
}
|
|
4304
4343
|
/**
|
|
4305
|
-
* 使用拦截器
|
|
4306
|
-
*
|
|
4307
|
-
* @author lxm
|
|
4308
|
-
* @date 2022-10-27 17:10:28
|
|
4344
|
+
* @description 使用拦截器
|
|
4309
4345
|
* @param {AxiosInstance} instance
|
|
4346
|
+
* @memberof Interceptor
|
|
4310
4347
|
*/
|
|
4311
4348
|
use(instance) {
|
|
4349
|
+
this.instance = instance;
|
|
4350
|
+
this.onBeforeRequest = this.onBeforeRequest.bind(this);
|
|
4351
|
+
this.onRequestError = this.onRequestError.bind(this);
|
|
4352
|
+
this.onResponseSuccess = this.onResponseSuccess.bind(this);
|
|
4353
|
+
this.onResponseError = this.onResponseError.bind(this);
|
|
4312
4354
|
this.requestTag = instance.interceptors.request.use(
|
|
4313
4355
|
this.onBeforeRequest,
|
|
4314
4356
|
this.onRequestError
|
|
@@ -4319,11 +4361,9 @@ var Interceptor = class {
|
|
|
4319
4361
|
);
|
|
4320
4362
|
}
|
|
4321
4363
|
/**
|
|
4322
|
-
* 移出拦截器
|
|
4323
|
-
*
|
|
4324
|
-
* @author lxm
|
|
4325
|
-
* @date 2022-10-27 17:10:27
|
|
4364
|
+
* @description 移出拦截器
|
|
4326
4365
|
* @param {AxiosInstance} instance
|
|
4366
|
+
* @memberof Interceptor
|
|
4327
4367
|
*/
|
|
4328
4368
|
eject(instance) {
|
|
4329
4369
|
if (this.requestTag) {
|
|
@@ -4337,6 +4377,13 @@ var Interceptor = class {
|
|
|
4337
4377
|
|
|
4338
4378
|
// src/utils/interceptor/core-interceptor.ts
|
|
4339
4379
|
var CoreInterceptor = class extends Interceptor {
|
|
4380
|
+
/**
|
|
4381
|
+
* @description 请求之前处理
|
|
4382
|
+
* @protected
|
|
4383
|
+
* @param {InternalAxiosRequestConfig} config
|
|
4384
|
+
* @returns {*} {Promise<InternalAxiosRequestConfig>}
|
|
4385
|
+
* @memberof CoreInterceptor
|
|
4386
|
+
*/
|
|
4340
4387
|
async onBeforeRequest(config) {
|
|
4341
4388
|
config = await super.onBeforeRequest(config);
|
|
4342
4389
|
const { headers } = config;
|
|
@@ -4360,29 +4407,74 @@ var CoreInterceptor = class extends Interceptor {
|
|
|
4360
4407
|
headers.set("srfsystemid", systemId);
|
|
4361
4408
|
return config;
|
|
4362
4409
|
}
|
|
4410
|
+
/**
|
|
4411
|
+
* @description 响应失败之后处理
|
|
4412
|
+
* @protected
|
|
4413
|
+
* @param {Error} error
|
|
4414
|
+
* @returns {*} {Promise<never>}
|
|
4415
|
+
* @memberof CoreInterceptor
|
|
4416
|
+
*/
|
|
4417
|
+
async onResponseError(error) {
|
|
4418
|
+
const { config, response } = error;
|
|
4419
|
+
if (this.instance && (response == null ? void 0 : response.status) === 401 && config && !config._retry && config.url && // 排除获取系统信息、应用数据、刷新 token 预定义接口
|
|
4420
|
+
(config.url.indexOf("/uaa/getbydcsystem/") === -1 || config.url.indexOf("/appdata") !== -1 || config.url.indexOf("/uaa/refresh_token/") !== -1)) {
|
|
4421
|
+
try {
|
|
4422
|
+
config._retry = true;
|
|
4423
|
+
await ibiz.auth.refreshToken();
|
|
4424
|
+
const res = await ibiz.net.get("/appdata");
|
|
4425
|
+
if (res && res.ok) {
|
|
4426
|
+
ibiz.appData = res.data;
|
|
4427
|
+
}
|
|
4428
|
+
const { headers } = config;
|
|
4429
|
+
const token = getToken();
|
|
4430
|
+
if (token) {
|
|
4431
|
+
headers.set(
|
|
4432
|
+
"".concat(ibiz.env.tokenHeader, "Authorization"),
|
|
4433
|
+
"".concat(ibiz.env.tokenPrefix, "Bearer ").concat(token)
|
|
4434
|
+
);
|
|
4435
|
+
}
|
|
4436
|
+
let systemId = ibiz.env.dcSystem;
|
|
4437
|
+
const { orgData } = ibiz;
|
|
4438
|
+
if (orgData) {
|
|
4439
|
+
if (orgData.systemid) {
|
|
4440
|
+
systemId = orgData.systemid;
|
|
4441
|
+
}
|
|
4442
|
+
if (orgData.orgid) {
|
|
4443
|
+
headers.set("srforgid", orgData.orgid);
|
|
4444
|
+
}
|
|
4445
|
+
}
|
|
4446
|
+
headers.set("srfsystemid", systemId);
|
|
4447
|
+
return this.instance(config);
|
|
4448
|
+
} catch (err) {
|
|
4449
|
+
return Promise.reject(error);
|
|
4450
|
+
}
|
|
4451
|
+
}
|
|
4452
|
+
return Promise.reject(error);
|
|
4453
|
+
}
|
|
4363
4454
|
};
|
|
4364
4455
|
|
|
4365
4456
|
// src/utils/message-center/base/message-base.ts
|
|
4366
4457
|
import { QXEvent } from "qx-util";
|
|
4367
4458
|
var MessageBase = class {
|
|
4459
|
+
/**
|
|
4460
|
+
* Creates an instance of MessageBase.
|
|
4461
|
+
* @param {MessageBase} [parent]
|
|
4462
|
+
* @memberof MessageBase
|
|
4463
|
+
*/
|
|
4368
4464
|
constructor(parent) {
|
|
4369
4465
|
this.parent = parent;
|
|
4370
4466
|
/**
|
|
4371
|
-
*
|
|
4372
|
-
*
|
|
4373
|
-
* @author chitanda
|
|
4374
|
-
* @date 2023-09-05 16:09:58
|
|
4467
|
+
* @description 事件对象
|
|
4375
4468
|
* @protected
|
|
4376
|
-
* @type {QXEvent<
|
|
4469
|
+
* @type {QXEvent<IMessageCenterEvent>}
|
|
4470
|
+
* @memberof MessageBase
|
|
4377
4471
|
*/
|
|
4378
4472
|
this.evt = new QXEvent(1e3);
|
|
4379
4473
|
}
|
|
4380
4474
|
/**
|
|
4381
|
-
* 推送标准结构消息
|
|
4382
|
-
*
|
|
4383
|
-
* @author chitanda
|
|
4384
|
-
* @date 2023-09-05 16:09:40
|
|
4475
|
+
* @description 推送标准结构消息
|
|
4385
4476
|
* @param {IPortalMessage} msg
|
|
4477
|
+
* @memberof MessageBase
|
|
4386
4478
|
*/
|
|
4387
4479
|
next(msg) {
|
|
4388
4480
|
this.evt.emit("all", msg);
|
|
@@ -4391,12 +4483,10 @@ var MessageBase = class {
|
|
|
4391
4483
|
}
|
|
4392
4484
|
}
|
|
4393
4485
|
/**
|
|
4394
|
-
*
|
|
4395
|
-
*
|
|
4396
|
-
* @author chitanda
|
|
4397
|
-
* @date 2023-09-05 17:09:08
|
|
4486
|
+
* @description 向父级推送消息(私有方法)
|
|
4398
4487
|
* @protected
|
|
4399
4488
|
* @param {IPortalMessage} msg
|
|
4489
|
+
* @memberof MessageBase
|
|
4400
4490
|
*/
|
|
4401
4491
|
nextParent(msg) {
|
|
4402
4492
|
if (this.parent) {
|
|
@@ -4405,21 +4495,17 @@ var MessageBase = class {
|
|
|
4405
4495
|
}
|
|
4406
4496
|
}
|
|
4407
4497
|
/**
|
|
4408
|
-
* 订阅消息
|
|
4409
|
-
*
|
|
4410
|
-
* @
|
|
4411
|
-
* @date 2023-09-05 15:09:21
|
|
4412
|
-
* @param {(msg: IPortalMessage) => void} evt
|
|
4498
|
+
* @description 订阅消息
|
|
4499
|
+
* @param {(msg: IPortalMessage) => void} cb
|
|
4500
|
+
* @memberof MessageBase
|
|
4413
4501
|
*/
|
|
4414
4502
|
on(cb) {
|
|
4415
4503
|
this.evt.on("all", cb);
|
|
4416
4504
|
}
|
|
4417
4505
|
/**
|
|
4418
|
-
*
|
|
4419
|
-
*
|
|
4420
|
-
* @author chitanda
|
|
4421
|
-
* @date 2023-09-05 15:09:50
|
|
4506
|
+
* @description 取消订阅消息
|
|
4422
4507
|
* @param {(msg: IPortalMessage) => void} cb
|
|
4508
|
+
* @memberof MessageBase
|
|
4423
4509
|
*/
|
|
4424
4510
|
off(cb) {
|
|
4425
4511
|
this.evt.off("all", cb);
|
|
@@ -4437,14 +4523,11 @@ import { createUUID as createUUID2 } from "qx-util";
|
|
|
4437
4523
|
import { createUUID } from "qx-util";
|
|
4438
4524
|
var CommandBase = class extends MessageBase {
|
|
4439
4525
|
/**
|
|
4440
|
-
*
|
|
4441
|
-
*
|
|
4442
|
-
* @
|
|
4443
|
-
* @
|
|
4444
|
-
* @
|
|
4445
|
-
* @param {IData} data 数据
|
|
4446
|
-
* @param {IPortalMessage['subtype']} subtype 子类型 数据更新 | 数据删除 | 数据创建
|
|
4447
|
-
* @param {string} [triggerKey] 触发源
|
|
4526
|
+
* @description 发送指令消息
|
|
4527
|
+
* @param {IData} data
|
|
4528
|
+
* @param {IPortalMessage['subtype']} subtype
|
|
4529
|
+
* @param {string} [triggerKey]
|
|
4530
|
+
* @memberof CommandBase
|
|
4448
4531
|
*/
|
|
4449
4532
|
sendCommand(data, subtype, triggerKey) {
|
|
4450
4533
|
const msg = {
|
|
@@ -4462,12 +4545,10 @@ var CommandBase = class extends MessageBase {
|
|
|
4462
4545
|
// src/utils/message-center/command/create/command-create.ts
|
|
4463
4546
|
var CommandCreate = class extends CommandBase {
|
|
4464
4547
|
/**
|
|
4465
|
-
*
|
|
4466
|
-
*
|
|
4467
|
-
* @
|
|
4468
|
-
* @
|
|
4469
|
-
* @param {IAppDataEntity} data 实体数据
|
|
4470
|
-
* @param {IMsgMetaData} meta 元数据
|
|
4548
|
+
* @description 发送消息
|
|
4549
|
+
* @param {IAppDataEntity} data
|
|
4550
|
+
* @param {IMsgMetaData} [meta]
|
|
4551
|
+
* @memberof CommandCreate
|
|
4471
4552
|
*/
|
|
4472
4553
|
send(data, meta) {
|
|
4473
4554
|
this.sendCommand(data, "OBJECTCREATED", meta == null ? void 0 : meta.triggerKey);
|
|
@@ -4477,12 +4558,10 @@ var CommandCreate = class extends CommandBase {
|
|
|
4477
4558
|
// src/utils/message-center/command/update/command-update.ts
|
|
4478
4559
|
var CommandUpdate = class extends CommandBase {
|
|
4479
4560
|
/**
|
|
4480
|
-
*
|
|
4481
|
-
*
|
|
4482
|
-
* @author tony001
|
|
4483
|
-
* @date 2024-03-26 20:03:28
|
|
4561
|
+
* @description 发送消息
|
|
4484
4562
|
* @param {IAppDataEntity} data 实体数据
|
|
4485
|
-
* @param {IMsgMetaData} meta 元数据
|
|
4563
|
+
* @param {IMsgMetaData} [meta] 元数据
|
|
4564
|
+
* @memberof CommandUpdate
|
|
4486
4565
|
*/
|
|
4487
4566
|
send(data, meta) {
|
|
4488
4567
|
this.sendCommand(data, "OBJECTUPDATED", meta == null ? void 0 : meta.triggerKey);
|
|
@@ -4492,12 +4571,10 @@ var CommandUpdate = class extends CommandBase {
|
|
|
4492
4571
|
// src/utils/message-center/command/remove/command-remove.ts
|
|
4493
4572
|
var CommandRemove = class extends CommandBase {
|
|
4494
4573
|
/**
|
|
4495
|
-
*
|
|
4496
|
-
*
|
|
4497
|
-
* @author tony001
|
|
4498
|
-
* @date 2024-03-26 20:03:05
|
|
4574
|
+
* @description 发送消息
|
|
4499
4575
|
* @param {IAppDataEntity} data 实体数据
|
|
4500
|
-
* @param {IMsgMetaData} meta 元数据
|
|
4576
|
+
* @param {IMsgMetaData} [meta] 元数据
|
|
4577
|
+
* @memberof CommandRemove
|
|
4501
4578
|
*/
|
|
4502
4579
|
send(data, meta) {
|
|
4503
4580
|
this.sendCommand(data, "OBJECTREMOVED", meta == null ? void 0 : meta.triggerKey);
|
|
@@ -4511,11 +4588,9 @@ var CommandChange = class extends CommandBase {
|
|
|
4511
4588
|
// src/utils/message-center/command/async-action/command-async-action.ts
|
|
4512
4589
|
var CommandAsyncAction = class extends CommandBase {
|
|
4513
4590
|
/**
|
|
4514
|
-
*
|
|
4515
|
-
*
|
|
4516
|
-
* @author chitanda
|
|
4517
|
-
* @date 2023-10-23 17:10:46
|
|
4591
|
+
* @description 发送消息
|
|
4518
4592
|
* @param {IPortalAsyncAction} data
|
|
4593
|
+
* @memberof CommandAsyncAction
|
|
4519
4594
|
*/
|
|
4520
4595
|
send(data) {
|
|
4521
4596
|
this.sendCommand(data, "ASYNCACTION");
|
|
@@ -4525,11 +4600,9 @@ var CommandAsyncAction = class extends CommandBase {
|
|
|
4525
4600
|
// src/utils/message-center/command/internal-message/command-internal-message.ts
|
|
4526
4601
|
var CommandInternalMessage = class extends CommandBase {
|
|
4527
4602
|
/**
|
|
4528
|
-
*
|
|
4529
|
-
*
|
|
4530
|
-
* @
|
|
4531
|
-
* @date 2023-10-23 17:10:46
|
|
4532
|
-
* @param {IPortalInternalMessage} data
|
|
4603
|
+
* @description 发送消息
|
|
4604
|
+
* @param {IInternalMessage} data
|
|
4605
|
+
* @memberof CommandInternalMessage
|
|
4533
4606
|
*/
|
|
4534
4607
|
send(data) {
|
|
4535
4608
|
this.sendCommand(data, "INTERNALMESSAGE");
|
|
@@ -4539,11 +4612,9 @@ var CommandInternalMessage = class extends CommandBase {
|
|
|
4539
4612
|
// src/utils/message-center/command/mark-open-data/command-mark-open-data.ts
|
|
4540
4613
|
var CommandMarkOpenData = class extends CommandBase {
|
|
4541
4614
|
/**
|
|
4542
|
-
*
|
|
4543
|
-
*
|
|
4544
|
-
* @author lxm
|
|
4545
|
-
* @date 2024-02-01 03:42:40
|
|
4615
|
+
* @description 发送消息
|
|
4546
4616
|
* @param {IMarkOpenData} data
|
|
4617
|
+
* @memberof CommandMarkOpenData
|
|
4547
4618
|
*/
|
|
4548
4619
|
send(data) {
|
|
4549
4620
|
this.sendCommand(data, "MARKOPENDATA");
|
|
@@ -4553,8 +4624,7 @@ var CommandMarkOpenData = class extends CommandBase {
|
|
|
4553
4624
|
// src/utils/message-center/command/add-in-changed/command-add-in-changed.ts
|
|
4554
4625
|
var CommandAddInChanged = class extends CommandBase {
|
|
4555
4626
|
/**
|
|
4556
|
-
*
|
|
4557
|
-
*
|
|
4627
|
+
* @description 发送消息
|
|
4558
4628
|
* @param {IAddInChanged} data
|
|
4559
4629
|
* @memberof CommandAddInChanged
|
|
4560
4630
|
*/
|
|
@@ -4568,76 +4638,60 @@ var MessageCommand = class extends MessageBase {
|
|
|
4568
4638
|
constructor() {
|
|
4569
4639
|
super(...arguments);
|
|
4570
4640
|
/**
|
|
4571
|
-
*
|
|
4572
|
-
*
|
|
4573
|
-
* @author chitanda
|
|
4574
|
-
* @date 2023-09-05 17:09:15
|
|
4641
|
+
* @description 数据变更指令消息控制器
|
|
4575
4642
|
* @type {CommandChange}
|
|
4643
|
+
* @memberof MessageCommand
|
|
4576
4644
|
*/
|
|
4577
4645
|
this.change = new CommandChange();
|
|
4578
4646
|
/**
|
|
4579
|
-
*
|
|
4580
|
-
*
|
|
4581
|
-
* @author chitanda
|
|
4582
|
-
* @date 2023-09-05 17:09:55
|
|
4647
|
+
* @description 新建数据指令消息控制器
|
|
4583
4648
|
* @type {CommandCreate}
|
|
4649
|
+
* @memberof MessageCommand
|
|
4584
4650
|
*/
|
|
4585
4651
|
this.create = new CommandCreate(this);
|
|
4586
4652
|
/**
|
|
4587
|
-
*
|
|
4588
|
-
*
|
|
4589
|
-
* @author chitanda
|
|
4590
|
-
* @date 2023-09-05 17:09:01
|
|
4653
|
+
* @description 更新数据指令消息控制器
|
|
4591
4654
|
* @type {CommandUpdate}
|
|
4655
|
+
* @memberof MessageCommand
|
|
4592
4656
|
*/
|
|
4593
4657
|
this.update = new CommandUpdate(this);
|
|
4594
4658
|
/**
|
|
4595
|
-
*
|
|
4596
|
-
*
|
|
4597
|
-
* @author chitanda
|
|
4598
|
-
* @date 2023-09-05 17:09:05
|
|
4659
|
+
* @description 删除数据指令消息控制器
|
|
4599
4660
|
* @type {CommandRemove}
|
|
4661
|
+
* @memberof MessageCommand
|
|
4600
4662
|
*/
|
|
4601
4663
|
this.remove = new CommandRemove(this);
|
|
4602
4664
|
/**
|
|
4603
|
-
*
|
|
4604
|
-
*
|
|
4605
|
-
* @author chitanda
|
|
4606
|
-
* @date 2023-10-23 17:10:56
|
|
4665
|
+
* @description 异步指令消息控制器
|
|
4607
4666
|
* @type {CommandAsyncAction}
|
|
4667
|
+
* @memberof MessageCommand
|
|
4608
4668
|
*/
|
|
4609
4669
|
this.asyncAction = new CommandAsyncAction(this);
|
|
4610
4670
|
/**
|
|
4611
|
-
*
|
|
4612
|
-
*
|
|
4613
|
-
* @author chitanda
|
|
4614
|
-
* @date 2023-10-23 17:10:56
|
|
4671
|
+
* @description 站内信消息指令消息控制器
|
|
4615
4672
|
* @type {CommandInternalMessage}
|
|
4673
|
+
* @memberof MessageCommand
|
|
4616
4674
|
*/
|
|
4617
4675
|
this.internalMessage = new CommandInternalMessage(
|
|
4618
4676
|
this
|
|
4619
4677
|
);
|
|
4620
4678
|
/**
|
|
4621
|
-
*
|
|
4622
|
-
*
|
|
4679
|
+
* @description 协同指令消息控制器
|
|
4623
4680
|
* @type {CommandMarkOpenData}
|
|
4624
4681
|
* @memberof MessageCommand
|
|
4625
4682
|
*/
|
|
4626
4683
|
this.markOpenData = new CommandMarkOpenData(this);
|
|
4627
4684
|
/**
|
|
4628
|
-
*
|
|
4629
|
-
*
|
|
4685
|
+
* @description 添加变更指令消息控制器
|
|
4630
4686
|
* @type {CommandAddInChanged}
|
|
4631
4687
|
* @memberof MessageCommand
|
|
4632
4688
|
*/
|
|
4633
4689
|
this.addInChanged = new CommandAddInChanged(this);
|
|
4634
4690
|
}
|
|
4635
4691
|
/**
|
|
4636
|
-
* 推送指令消息
|
|
4637
|
-
*
|
|
4638
|
-
* @author chitanda
|
|
4639
|
-
* @date 2023-09-05 17:09:50
|
|
4692
|
+
* @description 推送指令消息
|
|
4640
4693
|
* @param {IPortalMessage} msg
|
|
4694
|
+
* @memberof MessageCommand
|
|
4641
4695
|
*/
|
|
4642
4696
|
next(msg) {
|
|
4643
4697
|
switch (msg.subtype) {
|
|
@@ -4669,6 +4723,12 @@ var MessageCommand = class extends MessageBase {
|
|
|
4669
4723
|
super.next(msg);
|
|
4670
4724
|
}
|
|
4671
4725
|
}
|
|
4726
|
+
/**
|
|
4727
|
+
* @description 发送消息给父级
|
|
4728
|
+
* @protected
|
|
4729
|
+
* @param {IPortalMessage} msg
|
|
4730
|
+
* @memberof MessageCommand
|
|
4731
|
+
*/
|
|
4672
4732
|
nextParent(msg) {
|
|
4673
4733
|
switch (msg.subtype) {
|
|
4674
4734
|
case "OBJECTCREATED":
|
|
@@ -4685,13 +4745,11 @@ var MessageCommand = class extends MessageBase {
|
|
|
4685
4745
|
super.nextParent(msg);
|
|
4686
4746
|
}
|
|
4687
4747
|
/**
|
|
4688
|
-
* 发送指令消息
|
|
4689
|
-
*
|
|
4690
|
-
* @
|
|
4691
|
-
* @
|
|
4692
|
-
* @
|
|
4693
|
-
* @param {IPortalMessage['subtype']} subtype 子类型
|
|
4694
|
-
* @param {string} [triggerKey] 触发源
|
|
4748
|
+
* @description 发送指令消息
|
|
4749
|
+
* @param {IData} data
|
|
4750
|
+
* @param {IPortalMessage['subtype']} subtype
|
|
4751
|
+
* @param {string} [triggerKey]
|
|
4752
|
+
* @memberof MessageCommand
|
|
4695
4753
|
*/
|
|
4696
4754
|
send(data, subtype, triggerKey) {
|
|
4697
4755
|
const msg = {
|
|
@@ -4710,11 +4768,9 @@ var MessageCommand = class extends MessageBase {
|
|
|
4710
4768
|
import { createUUID as createUUID3 } from "qx-util";
|
|
4711
4769
|
var MessageConsole = class extends MessageBase {
|
|
4712
4770
|
/**
|
|
4713
|
-
*
|
|
4714
|
-
*
|
|
4715
|
-
* @author chitanda
|
|
4716
|
-
* @date 2023-09-05 16:09:25
|
|
4771
|
+
* @description 发送消息
|
|
4717
4772
|
* @param {(IData | string)} data
|
|
4773
|
+
* @memberof MessageConsole
|
|
4718
4774
|
*/
|
|
4719
4775
|
send(data) {
|
|
4720
4776
|
const msg = {
|
|
@@ -4731,11 +4787,9 @@ var MessageConsole = class extends MessageBase {
|
|
|
4731
4787
|
import { createUUID as createUUID4 } from "qx-util";
|
|
4732
4788
|
var MessageError = class extends MessageBase {
|
|
4733
4789
|
/**
|
|
4734
|
-
*
|
|
4735
|
-
*
|
|
4736
|
-
* @author tony001
|
|
4737
|
-
* @date 2024-04-28 10:04:16
|
|
4790
|
+
* @description 发送消息
|
|
4738
4791
|
* @param {(IData | string)} data
|
|
4792
|
+
* @memberof MessageError
|
|
4739
4793
|
*/
|
|
4740
4794
|
send(data) {
|
|
4741
4795
|
const msg = {
|
|
@@ -4752,44 +4806,35 @@ var MessageError = class extends MessageBase {
|
|
|
4752
4806
|
var MessageCenter = class {
|
|
4753
4807
|
constructor() {
|
|
4754
4808
|
/**
|
|
4755
|
-
* 所有消息
|
|
4756
|
-
*
|
|
4757
|
-
* @author chitanda
|
|
4758
|
-
* @date 2023-09-05 16:09:12
|
|
4809
|
+
* @description 所有消息
|
|
4810
|
+
* @protected
|
|
4759
4811
|
* @type {MessageAll}
|
|
4812
|
+
* @memberof MessageCenter
|
|
4760
4813
|
*/
|
|
4761
4814
|
this.all = new MessageAll();
|
|
4762
4815
|
/**
|
|
4763
|
-
* 指令消息
|
|
4764
|
-
*
|
|
4765
|
-
* @author chitanda
|
|
4766
|
-
* @date 2023-09-05 16:09:28
|
|
4816
|
+
* @description 指令消息
|
|
4767
4817
|
* @type {MessageCommand}
|
|
4818
|
+
* @memberof MessageCenter
|
|
4768
4819
|
*/
|
|
4769
4820
|
this.command = new MessageCommand(this.all);
|
|
4770
4821
|
/**
|
|
4771
|
-
* 日志消息
|
|
4772
|
-
*
|
|
4773
|
-
* @author chitanda
|
|
4774
|
-
* @date 2023-09-05 16:09:48
|
|
4822
|
+
* @description 日志消息
|
|
4775
4823
|
* @type {MessageConsole}
|
|
4824
|
+
* @memberof MessageCenter
|
|
4776
4825
|
*/
|
|
4777
4826
|
this.console = new MessageConsole(this.all);
|
|
4778
4827
|
/**
|
|
4779
|
-
* 错误消息
|
|
4780
|
-
*
|
|
4781
|
-
* @author tony001
|
|
4782
|
-
* @date 2024-04-28 10:04:25
|
|
4828
|
+
* @description 错误消息
|
|
4783
4829
|
* @type {MessageError}
|
|
4830
|
+
* @memberof MessageCenter
|
|
4784
4831
|
*/
|
|
4785
4832
|
this.error = new MessageError(this.all);
|
|
4786
4833
|
}
|
|
4787
4834
|
/**
|
|
4788
|
-
* 发送消息
|
|
4789
|
-
*
|
|
4790
|
-
* @
|
|
4791
|
-
* @date 2023-09-05 15:09:49
|
|
4792
|
-
* @param {IPortalMessage} msg
|
|
4835
|
+
* @description 发送消息
|
|
4836
|
+
* @param {IPortalMessage} msg 消息
|
|
4837
|
+
* @memberof MessageCenter
|
|
4793
4838
|
*/
|
|
4794
4839
|
next(msg) {
|
|
4795
4840
|
if (msg.type === "COMMAND") {
|
|
@@ -4801,21 +4846,17 @@ var MessageCenter = class {
|
|
|
4801
4846
|
}
|
|
4802
4847
|
}
|
|
4803
4848
|
/**
|
|
4804
|
-
* 订阅消息
|
|
4805
|
-
*
|
|
4806
|
-
* @author chitanda
|
|
4807
|
-
* @date 2023-09-05 17:09:32
|
|
4849
|
+
* @description 订阅消息
|
|
4808
4850
|
* @param {(msg: IPortalMessage) => void} callback
|
|
4851
|
+
* @memberof MessageCenter
|
|
4809
4852
|
*/
|
|
4810
4853
|
on(callback) {
|
|
4811
4854
|
this.all.on(callback);
|
|
4812
4855
|
}
|
|
4813
4856
|
/**
|
|
4814
|
-
* 取消订阅
|
|
4815
|
-
*
|
|
4816
|
-
* @author chitanda
|
|
4817
|
-
* @date 2023-09-05 17:09:38
|
|
4857
|
+
* @description 取消订阅
|
|
4818
4858
|
* @param {(msg: IPortalMessage) => void} callback
|
|
4859
|
+
* @memberof MessageCenter
|
|
4819
4860
|
*/
|
|
4820
4861
|
off(callback) {
|
|
4821
4862
|
this.all.off(callback);
|
|
@@ -4841,121 +4882,102 @@ function _bem(namespace, block, blockSuffix, element, modifier) {
|
|
|
4841
4882
|
var Namespace = class {
|
|
4842
4883
|
/**
|
|
4843
4884
|
* Creates an instance of Namespace.
|
|
4844
|
-
*
|
|
4845
|
-
* @author chitanda
|
|
4846
|
-
* @date 2022-09-06 12:09:12
|
|
4847
4885
|
* @param {string} block 当前命名空间的根模块,例如组件的名称
|
|
4848
4886
|
* @param {string} [namespace] 指定命名空间,未指定使用默认值 ibiz
|
|
4887
|
+
* @memberof Namespace
|
|
4849
4888
|
*/
|
|
4850
4889
|
constructor(block, namespace) {
|
|
4851
4890
|
this.block = block;
|
|
4852
4891
|
this.namespace = namespace || defaultNamespace;
|
|
4853
4892
|
}
|
|
4854
4893
|
/**
|
|
4855
|
-
* namespace-block
|
|
4856
|
-
* namespace-block-blockSuffix
|
|
4857
|
-
*
|
|
4858
|
-
* @author chitanda
|
|
4859
|
-
* @date 2022-09-06 12:09:08
|
|
4894
|
+
* @description namespace-block、namespace-block-blockSuffix
|
|
4860
4895
|
* @param {string} [blockSuffix='']
|
|
4861
|
-
* @
|
|
4896
|
+
* @returns {*} {string}
|
|
4897
|
+
* @memberof Namespace
|
|
4862
4898
|
*/
|
|
4863
4899
|
b(blockSuffix = "") {
|
|
4864
4900
|
return _bem(this.namespace, this.block, blockSuffix, "", "");
|
|
4865
4901
|
}
|
|
4866
4902
|
/**
|
|
4867
|
-
* namespace-block__element
|
|
4868
|
-
*
|
|
4869
|
-
* @author chitanda
|
|
4870
|
-
* @date 2022-09-06 12:09:48
|
|
4903
|
+
* @description namespace-block__element
|
|
4871
4904
|
* @param {string} [element]
|
|
4872
|
-
* @
|
|
4905
|
+
* @returns {*} {string}
|
|
4906
|
+
* @memberof Namespace
|
|
4873
4907
|
*/
|
|
4874
4908
|
e(element) {
|
|
4875
4909
|
return element ? _bem(this.namespace, this.block, "", element, "") : "";
|
|
4876
4910
|
}
|
|
4877
4911
|
/**
|
|
4878
|
-
* namespace-block--modifier
|
|
4879
|
-
*
|
|
4880
|
-
* @author chitanda
|
|
4881
|
-
* @date 2022-09-06 12:09:37
|
|
4912
|
+
* @description namespace-block--modifier
|
|
4882
4913
|
* @param {string} [modifier]
|
|
4883
|
-
* @
|
|
4914
|
+
* @returns {*} {string}
|
|
4915
|
+
* @memberof Namespace
|
|
4884
4916
|
*/
|
|
4885
4917
|
m(modifier) {
|
|
4886
4918
|
return modifier ? _bem(this.namespace, this.block, "", "", modifier) : "";
|
|
4887
4919
|
}
|
|
4888
4920
|
/**
|
|
4889
|
-
* namespace-block-blockSuffix__element
|
|
4890
|
-
*
|
|
4891
|
-
* @author chitanda
|
|
4892
|
-
* @date 2022-09-06 12:09:52
|
|
4921
|
+
* @description namespace-block-blockSuffix__element
|
|
4893
4922
|
* @param {string} [blockSuffix]
|
|
4894
4923
|
* @param {string} [element]
|
|
4895
|
-
* @
|
|
4924
|
+
* @returns {*} {string}
|
|
4925
|
+
* @memberof Namespace
|
|
4896
4926
|
*/
|
|
4897
4927
|
be(blockSuffix, element) {
|
|
4898
4928
|
return blockSuffix && element ? _bem(this.namespace, this.block, blockSuffix, element, "") : "";
|
|
4899
4929
|
}
|
|
4900
4930
|
/**
|
|
4901
|
-
* namespace-block__element--modifier
|
|
4902
|
-
*
|
|
4903
|
-
* @author chitanda
|
|
4904
|
-
* @date 2022-09-06 12:09:19
|
|
4931
|
+
* @description namespace-block__element--modifier
|
|
4905
4932
|
* @param {string} [element]
|
|
4906
4933
|
* @param {string} [modifier]
|
|
4907
|
-
* @
|
|
4934
|
+
* @returns {*} {string}
|
|
4935
|
+
* @memberof Namespace
|
|
4908
4936
|
*/
|
|
4909
4937
|
em(element, modifier) {
|
|
4910
4938
|
return element && modifier ? _bem(this.namespace, this.block, "", element, modifier) : "";
|
|
4911
4939
|
}
|
|
4912
4940
|
/**
|
|
4913
|
-
* namespace-block-blockSuffix--modifier
|
|
4914
|
-
*
|
|
4915
|
-
* @author chitanda
|
|
4916
|
-
* @date 2022-09-06 12:09:59
|
|
4941
|
+
* @description namespace-block-blockSuffix--modifier
|
|
4917
4942
|
* @param {string} [blockSuffix]
|
|
4918
4943
|
* @param {string} [modifier]
|
|
4919
|
-
* @
|
|
4944
|
+
* @returns {*} {string}
|
|
4945
|
+
* @memberof Namespace
|
|
4920
4946
|
*/
|
|
4921
4947
|
bm(blockSuffix, modifier) {
|
|
4922
4948
|
return blockSuffix && modifier ? _bem(this.namespace, this.block, blockSuffix, "", modifier) : "";
|
|
4923
4949
|
}
|
|
4924
4950
|
/**
|
|
4925
|
-
* namespace-block-blockSuffix__element--modifier
|
|
4926
|
-
*
|
|
4927
|
-
* @author chitanda
|
|
4928
|
-
* @date 2022-09-06 12:09:37
|
|
4951
|
+
* @description namespace-block-blockSuffix__element--modifier
|
|
4929
4952
|
* @param {string} [blockSuffix]
|
|
4930
4953
|
* @param {string} [element]
|
|
4931
4954
|
* @param {string} [modifier]
|
|
4932
|
-
* @
|
|
4955
|
+
* @returns {*} {string}
|
|
4956
|
+
* @memberof Namespace
|
|
4933
4957
|
*/
|
|
4934
4958
|
bem(blockSuffix, element, modifier) {
|
|
4935
4959
|
return blockSuffix && element && modifier ? _bem(this.namespace, this.block, blockSuffix, element, modifier) : "";
|
|
4936
4960
|
}
|
|
4937
4961
|
/**
|
|
4938
|
-
*
|
|
4939
|
-
*
|
|
4940
|
-
* is('loading', false) => '';
|
|
4941
|
-
* is('loading', true) => 'is-loading';
|
|
4942
|
-
*
|
|
4943
|
-
* @author chitanda
|
|
4944
|
-
* @date 2022-09-06 12:09:57
|
|
4962
|
+
* @description 返回状态类
|
|
4945
4963
|
* @param {string} name
|
|
4946
4964
|
* @param {boolean} [state]
|
|
4947
|
-
* @
|
|
4965
|
+
* @example
|
|
4966
|
+
* ```typescript
|
|
4967
|
+
* is('loading', false) => '';
|
|
4968
|
+
* is('loading', true) => 'is-loading';
|
|
4969
|
+
* ```
|
|
4970
|
+
* @returns {*} {string}
|
|
4971
|
+
* @memberof Namespace
|
|
4948
4972
|
*/
|
|
4949
4973
|
is(name, state) {
|
|
4950
4974
|
return name && state ? "".concat(statePrefix).concat(name) : "";
|
|
4951
4975
|
}
|
|
4952
4976
|
/**
|
|
4953
|
-
* 生成使用到的 css 变量 style 对象
|
|
4954
|
-
*
|
|
4955
|
-
* @author chitanda
|
|
4956
|
-
* @date 2022-09-06 15:09:41
|
|
4977
|
+
* @description 生成使用到的 css 变量 style 对象
|
|
4957
4978
|
* @param {Record<string, string>} object
|
|
4958
|
-
* @
|
|
4979
|
+
* @returns {*} {Record<string, string>}
|
|
4980
|
+
* @memberof Namespace
|
|
4959
4981
|
*/
|
|
4960
4982
|
cssVar(object) {
|
|
4961
4983
|
const styles = {};
|
|
@@ -4967,12 +4989,10 @@ var Namespace = class {
|
|
|
4967
4989
|
return styles;
|
|
4968
4990
|
}
|
|
4969
4991
|
/**
|
|
4970
|
-
* 生成使用到的 css block 变量 style 对象
|
|
4971
|
-
*
|
|
4972
|
-
* @author chitanda
|
|
4973
|
-
* @date 2022-09-06 15:09:03
|
|
4992
|
+
* @description 生成使用到的 css block 变量 style 对象
|
|
4974
4993
|
* @param {Record<string, string>} object
|
|
4975
|
-
* @
|
|
4994
|
+
* @returns {*} {Record<string, string>}
|
|
4995
|
+
* @memberof Namespace
|
|
4976
4996
|
*/
|
|
4977
4997
|
cssVarBlock(object) {
|
|
4978
4998
|
const styles = {};
|
|
@@ -4984,23 +5004,19 @@ var Namespace = class {
|
|
|
4984
5004
|
return styles;
|
|
4985
5005
|
}
|
|
4986
5006
|
/**
|
|
4987
|
-
* 生成 css var 变量名称
|
|
4988
|
-
*
|
|
4989
|
-
* @author chitanda
|
|
4990
|
-
* @date 2022-09-06 15:09:21
|
|
5007
|
+
* @description 生成 css var 变量名称
|
|
4991
5008
|
* @param {string} name
|
|
4992
|
-
* @
|
|
5009
|
+
* @returns {*} {string}
|
|
5010
|
+
* @memberof Namespace
|
|
4993
5011
|
*/
|
|
4994
5012
|
cssVarName(name) {
|
|
4995
5013
|
return "--".concat(this.namespace, "-").concat(name);
|
|
4996
5014
|
}
|
|
4997
5015
|
/**
|
|
4998
|
-
* 生成块 css var 变量名称
|
|
4999
|
-
*
|
|
5000
|
-
* @author chitanda
|
|
5001
|
-
* @date 2022-09-06 15:09:35
|
|
5016
|
+
* @description 生成块 css var 变量名称
|
|
5002
5017
|
* @param {string} name
|
|
5003
|
-
* @
|
|
5018
|
+
* @returns {*} {string}
|
|
5019
|
+
* @memberof Namespace
|
|
5004
5020
|
*/
|
|
5005
5021
|
cssVarBlockName(name) {
|
|
5006
5022
|
return "--".concat(this.namespace, "-").concat(this.block, "-").concat(name);
|
|
@@ -5012,19 +5028,15 @@ import axios from "axios";
|
|
|
5012
5028
|
var HttpResponse = class {
|
|
5013
5029
|
/**
|
|
5014
5030
|
* Creates an instance of HttpResponse.
|
|
5015
|
-
*
|
|
5016
|
-
* @author chitanda
|
|
5017
|
-
* @date 2022-08-18 15:08:11
|
|
5018
5031
|
* @param {unknown} [data] 返回的数据
|
|
5019
5032
|
* @param {number} [status] 状态码 (默认为 200)
|
|
5020
5033
|
* @param {string} [statusText] 状态描述 (默认为空字符)
|
|
5034
|
+
* @memberof HttpResponse
|
|
5021
5035
|
*/
|
|
5022
5036
|
constructor(data, status, statusText) {
|
|
5023
5037
|
/**
|
|
5024
|
-
* 本地仿造响应
|
|
5025
|
-
*
|
|
5026
|
-
* @author chitanda
|
|
5027
|
-
* @date 2022-08-18 15:08:06
|
|
5038
|
+
* @description 本地仿造响应
|
|
5039
|
+
* @memberof HttpResponse
|
|
5028
5040
|
*/
|
|
5029
5041
|
this.local = true;
|
|
5030
5042
|
this.ok = false;
|
|
@@ -5050,35 +5062,26 @@ import { mergeDeepRight } from "ramda";
|
|
|
5050
5062
|
var Net = class {
|
|
5051
5063
|
/**
|
|
5052
5064
|
* Creates an instance of Net.
|
|
5053
|
-
* @author lxm
|
|
5054
|
-
* @date 2022-10-27 16:10:05
|
|
5055
5065
|
* @param {CreateAxiosDefaults} [config] 创建实例用的默认配置
|
|
5066
|
+
* @memberof Net
|
|
5056
5067
|
*/
|
|
5057
5068
|
constructor(config) {
|
|
5058
5069
|
/**
|
|
5059
|
-
* 是否为 http || https 开头
|
|
5060
|
-
*
|
|
5061
|
-
* @author chitanda
|
|
5062
|
-
* @date 2022-11-07 14:11:28
|
|
5070
|
+
* @description 是否为 http || https 开头
|
|
5063
5071
|
* @protected
|
|
5072
|
+
* @memberof Net
|
|
5064
5073
|
*/
|
|
5065
5074
|
this.urlReg = /^http[s]?:\/\/[^\s]*/;
|
|
5066
5075
|
/**
|
|
5067
|
-
*
|
|
5068
|
-
* key: 由请求的 config 生成的字符串,用于唯一标识请求
|
|
5069
|
-
* value: 当前正在请求的 Promise
|
|
5070
|
-
*
|
|
5071
|
-
* @author chitanda
|
|
5072
|
-
* @date 2023-06-07 14:06:19
|
|
5076
|
+
* @description 请求等待队列,防止重复请求。当有完全相同请求参数的请求时,会等待上一个请求完成后把结果返回给当前请求,不会重复请求(key: 由请求的 config 生成的字符串,用于唯一标识请求,value: 当前正在请求的 Promise)
|
|
5073
5077
|
* @protected
|
|
5078
|
+
* @memberof Net
|
|
5074
5079
|
*/
|
|
5075
5080
|
this.waitRequest = /* @__PURE__ */ new Map();
|
|
5076
5081
|
/**
|
|
5077
|
-
* 注册的拦截器
|
|
5078
|
-
*
|
|
5079
|
-
* @author lxm
|
|
5080
|
-
* @date 2022-10-27 17:10:18
|
|
5082
|
+
* @description 注册的拦截器
|
|
5081
5083
|
* @type {Map<string, Interceptor>}
|
|
5084
|
+
* @memberof Net
|
|
5082
5085
|
*/
|
|
5083
5086
|
this.interceptors = /* @__PURE__ */ new Map();
|
|
5084
5087
|
this.instance = axios2.create(config);
|
|
@@ -5088,23 +5091,19 @@ var Net = class {
|
|
|
5088
5091
|
return this.instance.defaults.baseURL || "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId);
|
|
5089
5092
|
}
|
|
5090
5093
|
/**
|
|
5091
|
-
* 添加拦截器
|
|
5092
|
-
*
|
|
5093
|
-
* @author lxm
|
|
5094
|
-
* @date 2022-10-27 17:10:42
|
|
5094
|
+
* @description 添加拦截器
|
|
5095
5095
|
* @param {string} name 唯一标识
|
|
5096
5096
|
* @param {Interceptor} interceptor 拦截器
|
|
5097
|
+
* @memberof Net
|
|
5097
5098
|
*/
|
|
5098
5099
|
addInterceptor(name, interceptor) {
|
|
5099
5100
|
interceptor.use(this.instance);
|
|
5100
5101
|
this.interceptors.set(name, interceptor);
|
|
5101
5102
|
}
|
|
5102
5103
|
/**
|
|
5103
|
-
* 删除拦截器
|
|
5104
|
-
*
|
|
5105
|
-
* @author lxm
|
|
5106
|
-
* @date 2022-10-27 17:10:27
|
|
5104
|
+
* @description 删除拦截器
|
|
5107
5105
|
* @param {string} name 唯一标识
|
|
5106
|
+
* @memberof Net
|
|
5108
5107
|
*/
|
|
5109
5108
|
removeInterceptor(name) {
|
|
5110
5109
|
const interceptor = this.interceptors.get(name);
|
|
@@ -5114,13 +5113,11 @@ var Net = class {
|
|
|
5114
5113
|
}
|
|
5115
5114
|
}
|
|
5116
5115
|
/**
|
|
5117
|
-
* 预置config,绑定动态的配置
|
|
5118
|
-
*
|
|
5119
|
-
* @author lxm
|
|
5120
|
-
* @date 2022-10-27 16:10:48
|
|
5116
|
+
* @description 预置config,绑定动态的配置
|
|
5121
5117
|
* @readonly
|
|
5122
5118
|
* @protected
|
|
5123
5119
|
* @type {AxiosRequestConfig}
|
|
5120
|
+
* @memberof Net
|
|
5124
5121
|
*/
|
|
5125
5122
|
get presetConfig() {
|
|
5126
5123
|
return {
|
|
@@ -5133,13 +5130,11 @@ var Net = class {
|
|
|
5133
5130
|
};
|
|
5134
5131
|
}
|
|
5135
5132
|
/**
|
|
5136
|
-
* 从左到右递归合并配置参数(内置第一个合并的预置参数)
|
|
5137
|
-
*
|
|
5138
|
-
* @author lxm
|
|
5139
|
-
* @date 2022-10-27 16:10:09
|
|
5133
|
+
* @description 从左到右递归合并配置参数(内置第一个合并的预置参数)
|
|
5140
5134
|
* @protected
|
|
5141
5135
|
* @param {...AxiosRequestConfig[]} configs
|
|
5142
|
-
* @returns {*}
|
|
5136
|
+
* @returns {*} {AxiosRequestConfig}
|
|
5137
|
+
* @memberof Net
|
|
5143
5138
|
*/
|
|
5144
5139
|
mergeConfig(...configs) {
|
|
5145
5140
|
const config = this.presetConfig;
|
|
@@ -5153,15 +5148,13 @@ var Net = class {
|
|
|
5153
5148
|
return merge(config, ...configs);
|
|
5154
5149
|
}
|
|
5155
5150
|
/**
|
|
5156
|
-
* Post 请求
|
|
5157
|
-
*
|
|
5158
|
-
* @author chitanda
|
|
5159
|
-
* @date 2022-10-19 11:10:30
|
|
5151
|
+
* @description Post 请求
|
|
5160
5152
|
* @param {string} url
|
|
5161
5153
|
* @param {IData} data
|
|
5162
5154
|
* @param {IParams} [params={}]
|
|
5163
5155
|
* @param {RawAxiosRequestHeaders} [headers={}]
|
|
5164
|
-
* @
|
|
5156
|
+
* @returns {*} {Promise<IHttpResponse>}
|
|
5157
|
+
* @memberof Net
|
|
5165
5158
|
*/
|
|
5166
5159
|
async post(url, data, params = {}, headers = {}) {
|
|
5167
5160
|
url = this.handleAppPresetParam(url, params, data);
|
|
@@ -5177,15 +5170,13 @@ var Net = class {
|
|
|
5177
5170
|
}
|
|
5178
5171
|
}
|
|
5179
5172
|
/**
|
|
5180
|
-
* Get 请求
|
|
5181
|
-
*
|
|
5182
|
-
* @author chitanda
|
|
5183
|
-
* @date 2022-10-19 11:10:24
|
|
5173
|
+
* @description Get 请求
|
|
5184
5174
|
* @param {string} url
|
|
5185
5175
|
* @param {IParams} [params={}]
|
|
5186
5176
|
* @param {RawAxiosRequestHeaders} [headers={}]
|
|
5187
|
-
* @param {
|
|
5188
|
-
* @
|
|
5177
|
+
* @param {AxiosRequestConfig} [option={}]
|
|
5178
|
+
* @returns {*} {Promise<IHttpResponse>}
|
|
5179
|
+
* @memberof Net
|
|
5189
5180
|
*/
|
|
5190
5181
|
async get(url, params = {}, headers = {}, option = {}) {
|
|
5191
5182
|
url = this.attachUrlParam(url, params);
|
|
@@ -5200,14 +5191,12 @@ var Net = class {
|
|
|
5200
5191
|
}
|
|
5201
5192
|
}
|
|
5202
5193
|
/**
|
|
5203
|
-
* Delete 请求
|
|
5204
|
-
*
|
|
5205
|
-
* @author chitanda
|
|
5206
|
-
* @date 2022-10-19 11:10:17
|
|
5194
|
+
* @description Delete 请求
|
|
5207
5195
|
* @param {string} url
|
|
5208
|
-
* @param {IParams} [params]
|
|
5196
|
+
* @param {IParams} [params={}]
|
|
5209
5197
|
* @param {RawAxiosRequestHeaders} [headers={}]
|
|
5210
|
-
* @
|
|
5198
|
+
* @returns {*} {Promise<IHttpResponse>}
|
|
5199
|
+
* @memberof Net
|
|
5211
5200
|
*/
|
|
5212
5201
|
async delete(url, params = {}, headers = {}) {
|
|
5213
5202
|
url = this.handleAppPresetParam(url, params);
|
|
@@ -5219,15 +5208,13 @@ var Net = class {
|
|
|
5219
5208
|
}
|
|
5220
5209
|
}
|
|
5221
5210
|
/**
|
|
5222
|
-
* Put 请求
|
|
5223
|
-
*
|
|
5224
|
-
* @author chitanda
|
|
5225
|
-
* @date 2022-10-19 11:10:11
|
|
5211
|
+
* @description Put 请求
|
|
5226
5212
|
* @param {string} url
|
|
5227
5213
|
* @param {IData} data
|
|
5228
5214
|
* @param {IParams} [params={}]
|
|
5229
5215
|
* @param {RawAxiosRequestHeaders} [headers={}]
|
|
5230
|
-
* @
|
|
5216
|
+
* @returns {*} {Promise<IHttpResponse>}
|
|
5217
|
+
* @memberof Net
|
|
5231
5218
|
*/
|
|
5232
5219
|
async put(url, data, params = {}, headers = {}) {
|
|
5233
5220
|
url = this.handleAppPresetParam(url, params);
|
|
@@ -5243,13 +5230,11 @@ var Net = class {
|
|
|
5243
5230
|
}
|
|
5244
5231
|
}
|
|
5245
5232
|
/**
|
|
5246
|
-
* 获取模型数据
|
|
5247
|
-
*
|
|
5248
|
-
* @author chitanda
|
|
5249
|
-
* @date 2022-07-14 15:07:15
|
|
5233
|
+
* @description 获取模型数据
|
|
5250
5234
|
* @param {string} url
|
|
5251
5235
|
* @param {RawAxiosRequestHeaders} [headers={}]
|
|
5252
|
-
* @
|
|
5236
|
+
* @returns {*} {Promise<IHttpResponse>}
|
|
5237
|
+
* @memberof Net
|
|
5253
5238
|
*/
|
|
5254
5239
|
async getModel(url, headers = {}) {
|
|
5255
5240
|
try {
|
|
@@ -5262,13 +5247,11 @@ var Net = class {
|
|
|
5262
5247
|
}
|
|
5263
5248
|
}
|
|
5264
5249
|
/**
|
|
5265
|
-
* 基础请求方法,会合并预置配置
|
|
5266
|
-
*
|
|
5267
|
-
* @author lxm
|
|
5268
|
-
* @date 2022-10-27 14:10:06
|
|
5250
|
+
* @description 基础请求方法,会合并预置配置
|
|
5269
5251
|
* @param {string} url
|
|
5270
5252
|
* @param {AxiosRequestConfig} [config={}]
|
|
5271
5253
|
* @returns {*} {Promise<IHttpResponse>}
|
|
5254
|
+
* @memberof Net
|
|
5272
5255
|
*/
|
|
5273
5256
|
async request(url, config = {}) {
|
|
5274
5257
|
const cfg = this.mergeConfig({ url }, config);
|
|
@@ -5294,25 +5277,21 @@ var Net = class {
|
|
|
5294
5277
|
}
|
|
5295
5278
|
}
|
|
5296
5279
|
/**
|
|
5297
|
-
* 创建标准 axios 请求
|
|
5298
|
-
*
|
|
5299
|
-
* @author chitanda
|
|
5300
|
-
* @date 2023-01-30 15:01:27
|
|
5280
|
+
* @description 创建标准 axios 请求
|
|
5301
5281
|
* @param {AxiosRequestConfig<IData>} config
|
|
5302
|
-
* @
|
|
5282
|
+
* @returns {*} {Promise<AxiosResponse>}
|
|
5283
|
+
* @memberof Net
|
|
5303
5284
|
*/
|
|
5304
5285
|
axios(config) {
|
|
5305
5286
|
return axios2(config);
|
|
5306
5287
|
}
|
|
5307
5288
|
/**
|
|
5308
|
-
* 触发 sse 请求
|
|
5309
|
-
*
|
|
5310
|
-
* @author chitanda
|
|
5311
|
-
* @date 2023-10-10 16:10:08
|
|
5289
|
+
* @description 触发 sse 请求
|
|
5312
5290
|
* @param {string} url
|
|
5313
5291
|
* @param {IParams} params
|
|
5314
5292
|
* @param {FetchEventSourceInit} [options={}]
|
|
5315
|
-
* @
|
|
5293
|
+
* @returns {*} {Promise<void>}
|
|
5294
|
+
* @memberof Net
|
|
5316
5295
|
*/
|
|
5317
5296
|
async sse(url, params, options = {}) {
|
|
5318
5297
|
url = this.attachUrlParam(this.baseUrl + url, params);
|
|
@@ -5347,13 +5326,11 @@ var Net = class {
|
|
|
5347
5326
|
await fetchEventSource(url, config);
|
|
5348
5327
|
}
|
|
5349
5328
|
/**
|
|
5350
|
-
* 统一处理请求返回
|
|
5351
|
-
*
|
|
5352
|
-
* @author chitanda
|
|
5353
|
-
* @date 2022-07-14 16:07:23
|
|
5329
|
+
* @description 统一处理请求返回
|
|
5354
5330
|
* @private
|
|
5355
5331
|
* @param {AxiosResponse} response
|
|
5356
|
-
* @
|
|
5332
|
+
* @returns {*} {IHttpResponse}
|
|
5333
|
+
* @memberof Net
|
|
5357
5334
|
*/
|
|
5358
5335
|
doResponseResult(response) {
|
|
5359
5336
|
const res = response;
|
|
@@ -5367,15 +5344,13 @@ var Net = class {
|
|
|
5367
5344
|
return res;
|
|
5368
5345
|
}
|
|
5369
5346
|
/**
|
|
5370
|
-
* 处理平台预定义参数
|
|
5371
|
-
*
|
|
5372
|
-
* @author tony001
|
|
5373
|
-
* @date 2024-04-18 10:04:52
|
|
5347
|
+
* @description 处理平台预定义参数
|
|
5374
5348
|
* @private
|
|
5375
5349
|
* @param {string} url
|
|
5350
|
+
* @param {IParams} params
|
|
5376
5351
|
* @param {IData} [data={}]
|
|
5377
|
-
* @
|
|
5378
|
-
* @
|
|
5352
|
+
* @returns {*} {string}
|
|
5353
|
+
* @memberof Net
|
|
5379
5354
|
*/
|
|
5380
5355
|
handleAppPresetParam(url, params, data = {}) {
|
|
5381
5356
|
if (data && Object.prototype.hasOwnProperty.call(data, "srfversionid")) {
|
|
@@ -5390,14 +5365,12 @@ var Net = class {
|
|
|
5390
5365
|
return url;
|
|
5391
5366
|
}
|
|
5392
5367
|
/**
|
|
5393
|
-
* url 附加请求参数,并处理路径的字符转换 encode
|
|
5394
|
-
*
|
|
5395
|
-
* @author chitanda
|
|
5396
|
-
* @date 2022-07-14 15:07:34
|
|
5368
|
+
* @description url 附加请求参数,并处理路径的字符转换 encode
|
|
5397
5369
|
* @private
|
|
5398
5370
|
* @param {string} url
|
|
5399
5371
|
* @param {IParams} params
|
|
5400
|
-
* @
|
|
5372
|
+
* @returns {*} {string}
|
|
5373
|
+
* @memberof Net
|
|
5401
5374
|
*/
|
|
5402
5375
|
attachUrlParam(url, params) {
|
|
5403
5376
|
if (params && Object.prototype.hasOwnProperty.call(params, "srfdefdata")) {
|
|
@@ -5428,23 +5401,21 @@ var Net = class {
|
|
|
5428
5401
|
import { notNilEmpty as notNilEmpty2 } from "qx-util";
|
|
5429
5402
|
var StringUtil = class {
|
|
5430
5403
|
/**
|
|
5431
|
-
* 填充字符串中的数据
|
|
5432
|
-
*
|
|
5433
5404
|
* @description 填充字符串中的数据 用法:传入需要替换的字符串和对象 返回值是string类型
|
|
5434
5405
|
* @example
|
|
5435
5406
|
* ```
|
|
5436
|
-
* StringUtil.fill('姓名:${context.name},年龄:${data.age}', { name: '张三', age: 10 }, { name: '李四', age: 25 }); // => '姓名:张三,年龄:25'
|
|
5437
|
-
* StringUtil.fill('', { name: '张三', age: 10 }, { name: '李四', age: 25 }); // => ''
|
|
5407
|
+
* StringUtil.fill('姓名:${context.name},年龄:${data.age}', { name: '张三', age: 10 }, {name: '王二', age: 19}, { name: '李四', age: 25 }); // => '姓名:张三,年龄:25'
|
|
5408
|
+
* StringUtil.fill('', { name: '张三', age: 10 }, {name: '王二', age: 19}, { name: '李四', age: 25 }); // => ''
|
|
5438
5409
|
* ```
|
|
5439
|
-
* @author chitanda
|
|
5440
|
-
* @date 2021-04-23 20:04:17
|
|
5441
5410
|
* @static
|
|
5442
|
-
* @param {string} str
|
|
5443
|
-
* @param {
|
|
5444
|
-
* @param {
|
|
5411
|
+
* @param {string} str 需填充字符串
|
|
5412
|
+
* @param {IContext} [context] 上下文
|
|
5413
|
+
* @param {IParams} [params] 参数
|
|
5414
|
+
* @param {IData} [data] 数据
|
|
5445
5415
|
* @return {*} {string}
|
|
5416
|
+
* @memberof StringUtil
|
|
5446
5417
|
*/
|
|
5447
|
-
static fill(str, context, data) {
|
|
5418
|
+
static fill(str, context, params, data) {
|
|
5448
5419
|
if (notNilEmpty2(str)) {
|
|
5449
5420
|
if (notNilEmpty2(context)) {
|
|
5450
5421
|
const strArr = str.match(this.contextReg);
|
|
@@ -5453,6 +5424,15 @@ var StringUtil = class {
|
|
|
5453
5424
|
str = str.replace("${context.".concat(key, "}"), context[key] || "");
|
|
5454
5425
|
});
|
|
5455
5426
|
}
|
|
5427
|
+
if (notNilEmpty2(params)) {
|
|
5428
|
+
const strArr = str.match(this.paramsReg);
|
|
5429
|
+
strArr == null ? void 0 : strArr.forEach((_key) => {
|
|
5430
|
+
const key = _key.slice(8, _key.length - 1);
|
|
5431
|
+
if (params[key]) {
|
|
5432
|
+
str = str.replace("${params.".concat(key, "}"), params[key]);
|
|
5433
|
+
}
|
|
5434
|
+
});
|
|
5435
|
+
}
|
|
5456
5436
|
if (notNilEmpty2(data)) {
|
|
5457
5437
|
const strArr = str.match(this.dataReg);
|
|
5458
5438
|
strArr == null ? void 0 : strArr.forEach((_key) => {
|
|
@@ -5465,70 +5445,64 @@ var StringUtil = class {
|
|
|
5465
5445
|
}
|
|
5466
5446
|
};
|
|
5467
5447
|
/**
|
|
5468
|
-
* 上下文替换正则
|
|
5469
|
-
*
|
|
5470
|
-
* @author chitanda
|
|
5471
|
-
* @date 2021-04-23 20:04:01
|
|
5448
|
+
* @description 上下文替换正则
|
|
5472
5449
|
* @static
|
|
5450
|
+
* @memberof StringUtil
|
|
5473
5451
|
*/
|
|
5474
5452
|
StringUtil.contextReg = /\$\{context.[a-zA-Z_$][a-zA-Z0-9_$]{1,}\}/g;
|
|
5475
5453
|
/**
|
|
5476
|
-
* 数据替换正则
|
|
5477
|
-
*
|
|
5478
|
-
* @author chitanda
|
|
5479
|
-
* @date 2021-04-23 20:04:09
|
|
5454
|
+
* @description 数据替换正则
|
|
5480
5455
|
* @static
|
|
5456
|
+
* @memberof StringUtil
|
|
5481
5457
|
*/
|
|
5482
5458
|
StringUtil.dataReg = /\$\{data.[a-zA-Z_$][a-zA-Z0-9_$]{1,}\}/g;
|
|
5459
|
+
/**
|
|
5460
|
+
* @description 参数替换正则
|
|
5461
|
+
* @static
|
|
5462
|
+
* @memberof StringUtil
|
|
5463
|
+
*/
|
|
5464
|
+
StringUtil.paramsReg = /\$\{params.[a-zA-Z_$][a-zA-Z0-9_$]{1,}\}/g;
|
|
5483
5465
|
|
|
5484
5466
|
// src/utils/url-helper/url-helper.ts
|
|
5485
5467
|
var UrlHelper = class {
|
|
5486
5468
|
/**
|
|
5487
|
-
*
|
|
5488
|
-
*
|
|
5489
|
-
*
|
|
5490
|
-
*
|
|
5491
|
-
* @
|
|
5492
|
-
* @date 2022-10-11 20:10:29
|
|
5493
|
-
* @returns {*}
|
|
5469
|
+
* @description 路由路径前面的基础路径。如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123,返回:http://172.16.103.120:30061/portalwebapp/#
|
|
5470
|
+
* @readonly
|
|
5471
|
+
* @static
|
|
5472
|
+
* @type {string}
|
|
5473
|
+
* @memberof UrlHelper
|
|
5494
5474
|
*/
|
|
5495
5475
|
static get routeBase() {
|
|
5496
5476
|
const hashIndex = window.location.href.lastIndexOf("#/");
|
|
5497
5477
|
return window.location.href.slice(0, hashIndex + 1);
|
|
5498
5478
|
}
|
|
5499
5479
|
/**
|
|
5500
|
-
*
|
|
5501
|
-
*
|
|
5502
|
-
*
|
|
5503
|
-
*
|
|
5504
|
-
* @
|
|
5505
|
-
* @date 2022-10-11 20:10:29
|
|
5506
|
-
* @returns {*}
|
|
5480
|
+
* @description 应用的的基础路径。如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123,返回:http://172.16.103.120:30061/portalwebapp
|
|
5481
|
+
* @readonly
|
|
5482
|
+
* @static
|
|
5483
|
+
* @type {string}
|
|
5484
|
+
* @memberof UrlHelper
|
|
5507
5485
|
*/
|
|
5508
5486
|
static get appBase() {
|
|
5509
5487
|
const { origin, pathname } = window.location;
|
|
5510
5488
|
return "".concat(origin).concat(pathname).replace(/\/$/, "");
|
|
5511
5489
|
}
|
|
5512
5490
|
/**
|
|
5513
|
-
*
|
|
5514
|
-
*
|
|
5515
|
-
*
|
|
5516
|
-
*
|
|
5517
|
-
* @
|
|
5518
|
-
* @date 2022-10-11 16:10:40
|
|
5519
|
-
* @returns {*}
|
|
5491
|
+
* @description #开始到末尾,即路由地址。如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123,返回:/index/appportalview?params=123
|
|
5492
|
+
* @readonly
|
|
5493
|
+
* @static
|
|
5494
|
+
* @type {string}
|
|
5495
|
+
* @memberof UrlHelper
|
|
5520
5496
|
*/
|
|
5521
5497
|
static get routePath() {
|
|
5522
5498
|
return window.location.hash.replace("#", "");
|
|
5523
5499
|
}
|
|
5524
5500
|
/**
|
|
5525
|
-
*
|
|
5526
|
-
* 如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123
|
|
5527
|
-
*
|
|
5528
|
-
* @author lxm
|
|
5529
|
-
* @date 2022-10-11 21:10:39
|
|
5501
|
+
* @description 当前地址的全路径,包含域名和参数。如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123
|
|
5530
5502
|
* @readonly
|
|
5531
5503
|
* @static
|
|
5504
|
+
* @type {string}
|
|
5505
|
+
* @memberof UrlHelper
|
|
5532
5506
|
*/
|
|
5533
5507
|
static get fullPath() {
|
|
5534
5508
|
return window.location.href;
|
|
@@ -5568,11 +5542,9 @@ var _HistoryItem = class _HistoryItem {
|
|
|
5568
5542
|
this._next = _HistoryItem.Undefined;
|
|
5569
5543
|
}
|
|
5570
5544
|
/**
|
|
5571
|
-
* 克隆整个历史链
|
|
5572
|
-
*
|
|
5573
|
-
* @
|
|
5574
|
-
* @date 2023-12-28 23:12:56
|
|
5575
|
-
* @return {*} {HistoryItem<E>}
|
|
5545
|
+
* @description 克隆整个历史链
|
|
5546
|
+
* @returns {*} {HistoryItem<E>}
|
|
5547
|
+
* @memberof HistoryItem
|
|
5576
5548
|
*/
|
|
5577
5549
|
clone() {
|
|
5578
5550
|
throw new RuntimeError(ibiz.i18n.t("core.utils.unrealized"));
|
|
@@ -5586,24 +5558,26 @@ var HistoryItem = _HistoryItem;
|
|
|
5586
5558
|
import { clone as clone2 } from "ramda";
|
|
5587
5559
|
var HistoryList = class _HistoryList {
|
|
5588
5560
|
/**
|
|
5589
|
-
* 当前的数据
|
|
5590
|
-
*
|
|
5591
|
-
* @author chitanda
|
|
5592
|
-
* @date 2023-12-28 18:12:27
|
|
5561
|
+
* @description 当前的数据
|
|
5562
|
+
* @readonly
|
|
5593
5563
|
* @type {E}
|
|
5564
|
+
* @memberof HistoryList
|
|
5594
5565
|
*/
|
|
5595
5566
|
get data() {
|
|
5596
5567
|
return this._cur.data;
|
|
5597
5568
|
}
|
|
5569
|
+
/**
|
|
5570
|
+
* Creates an instance of HistoryList.
|
|
5571
|
+
* @param {E} data
|
|
5572
|
+
* @memberof HistoryList
|
|
5573
|
+
*/
|
|
5598
5574
|
constructor(data) {
|
|
5599
5575
|
this._cur = new HistoryItem(data);
|
|
5600
5576
|
}
|
|
5601
5577
|
/**
|
|
5602
|
-
* 先创建一次历史记录,再赋值
|
|
5603
|
-
*
|
|
5604
|
-
* @author chitanda
|
|
5605
|
-
* @date 2023-12-28 17:12:05
|
|
5578
|
+
* @description 先创建一次历史记录,再赋值
|
|
5606
5579
|
* @param {IData} data
|
|
5580
|
+
* @memberof HistoryList
|
|
5607
5581
|
*/
|
|
5608
5582
|
assign(data) {
|
|
5609
5583
|
if (data) {
|
|
@@ -5612,10 +5586,8 @@ var HistoryList = class _HistoryList {
|
|
|
5612
5586
|
}
|
|
5613
5587
|
}
|
|
5614
5588
|
/**
|
|
5615
|
-
* 创建一次历史记录
|
|
5616
|
-
*
|
|
5617
|
-
* @author chitanda
|
|
5618
|
-
* @date 2023-12-28 20:12:13
|
|
5589
|
+
* @description 创建一次历史记录
|
|
5590
|
+
* @memberof HistoryList
|
|
5619
5591
|
*/
|
|
5620
5592
|
save() {
|
|
5621
5593
|
const oldCur = this._cur;
|
|
@@ -5628,11 +5600,9 @@ var HistoryList = class _HistoryList {
|
|
|
5628
5600
|
this._cur = history;
|
|
5629
5601
|
}
|
|
5630
5602
|
/**
|
|
5631
|
-
* 上一步
|
|
5632
|
-
*
|
|
5633
|
-
* @
|
|
5634
|
-
* @date 2023-12-28 16:12:28
|
|
5635
|
-
* @return {*} {boolean}
|
|
5603
|
+
* @description 上一步
|
|
5604
|
+
* @returns {*} {boolean}
|
|
5605
|
+
* @memberof HistoryList
|
|
5636
5606
|
*/
|
|
5637
5607
|
prev() {
|
|
5638
5608
|
if (this._cur._prev && this._cur._prev !== HistoryItem.Undefined) {
|
|
@@ -5642,11 +5612,9 @@ var HistoryList = class _HistoryList {
|
|
|
5642
5612
|
return false;
|
|
5643
5613
|
}
|
|
5644
5614
|
/**
|
|
5645
|
-
* 下一步
|
|
5646
|
-
*
|
|
5647
|
-
* @
|
|
5648
|
-
* @date 2023-12-28 16:12:20
|
|
5649
|
-
* @return {*} {boolean}
|
|
5615
|
+
* @description 下一步
|
|
5616
|
+
* @returns {*} {boolean}
|
|
5617
|
+
* @memberof HistoryList
|
|
5650
5618
|
*/
|
|
5651
5619
|
next() {
|
|
5652
5620
|
if (this._cur._next && this._cur._next !== HistoryItem.Undefined) {
|
|
@@ -5656,12 +5624,10 @@ var HistoryList = class _HistoryList {
|
|
|
5656
5624
|
return false;
|
|
5657
5625
|
}
|
|
5658
5626
|
/**
|
|
5659
|
-
* 清空引用,避免内存泄漏
|
|
5660
|
-
*
|
|
5661
|
-
* @author chitanda
|
|
5662
|
-
* @date 2023-12-28 22:12:43
|
|
5627
|
+
* @description 清空引用,避免内存泄漏
|
|
5663
5628
|
* @protected
|
|
5664
5629
|
* @param {HistoryItem<E>} h
|
|
5630
|
+
* @memberof HistoryList
|
|
5665
5631
|
*/
|
|
5666
5632
|
_clear(h) {
|
|
5667
5633
|
if (h._prev && h._prev !== HistoryItem.Undefined) {
|
|
@@ -5677,12 +5643,10 @@ var HistoryList = class _HistoryList {
|
|
|
5677
5643
|
h.data = {};
|
|
5678
5644
|
}
|
|
5679
5645
|
/**
|
|
5680
|
-
* 禁止克隆,直接返回当前实例
|
|
5681
|
-
*
|
|
5682
|
-
* @
|
|
5683
|
-
* @
|
|
5684
|
-
* @private
|
|
5685
|
-
* @return {*} {HistoryList<E>}
|
|
5646
|
+
* @description 禁止克隆,直接返回当前实例
|
|
5647
|
+
* @protected
|
|
5648
|
+
* @returns {*} {HistoryList<E>}
|
|
5649
|
+
* @memberof HistoryList
|
|
5686
5650
|
*/
|
|
5687
5651
|
clone() {
|
|
5688
5652
|
const history = new _HistoryList({});
|
|
@@ -5690,10 +5654,8 @@ var HistoryList = class _HistoryList {
|
|
|
5690
5654
|
return this;
|
|
5691
5655
|
}
|
|
5692
5656
|
/**
|
|
5693
|
-
* 销毁
|
|
5694
|
-
*
|
|
5695
|
-
* @author chitanda
|
|
5696
|
-
* @date 2023-12-28 21:12:34
|
|
5657
|
+
* @description 销毁
|
|
5658
|
+
* @memberof HistoryList
|
|
5697
5659
|
*/
|
|
5698
5660
|
destroy() {
|
|
5699
5661
|
this._clear(this._cur);
|
|
@@ -6058,20 +6020,16 @@ var CountLatch = class {
|
|
|
6058
6020
|
this.promise = null;
|
|
6059
6021
|
this.resolve = null;
|
|
6060
6022
|
/**
|
|
6061
|
-
* 计数,当前等待的异步逻辑个数
|
|
6062
|
-
*
|
|
6063
|
-
* @author lxm
|
|
6064
|
-
* @date 2022-11-24 19:11:59
|
|
6023
|
+
* @description 计数,当前等待的异步逻辑个数
|
|
6065
6024
|
* @type {number}
|
|
6025
|
+
* @memberof CountLatch
|
|
6066
6026
|
*/
|
|
6067
6027
|
this.count = 0;
|
|
6068
6028
|
}
|
|
6069
6029
|
/**
|
|
6070
|
-
* 开启promise
|
|
6071
|
-
*
|
|
6072
|
-
* @author lxm
|
|
6073
|
-
* @date 2022-11-24 19:11:32
|
|
6030
|
+
* @description 开启promise
|
|
6074
6031
|
* @private
|
|
6032
|
+
* @memberof CountLatch
|
|
6075
6033
|
*/
|
|
6076
6034
|
startPromise() {
|
|
6077
6035
|
this.promise = new Promise((resolve) => {
|
|
@@ -6079,11 +6037,9 @@ var CountLatch = class {
|
|
|
6079
6037
|
});
|
|
6080
6038
|
}
|
|
6081
6039
|
/**
|
|
6082
|
-
* 结束promise
|
|
6083
|
-
*
|
|
6084
|
-
* @author lxm
|
|
6085
|
-
* @date 2022-11-24 19:11:44
|
|
6040
|
+
* @description 结束promise
|
|
6086
6041
|
* @private
|
|
6042
|
+
* @memberof CountLatch
|
|
6087
6043
|
*/
|
|
6088
6044
|
endPromise() {
|
|
6089
6045
|
if (this.resolve) {
|
|
@@ -6093,11 +6049,8 @@ var CountLatch = class {
|
|
|
6093
6049
|
}
|
|
6094
6050
|
}
|
|
6095
6051
|
/**
|
|
6096
|
-
*
|
|
6097
|
-
*
|
|
6098
|
-
*
|
|
6099
|
-
* @author lxm
|
|
6100
|
-
* @date 2022-11-24 19:11:27
|
|
6052
|
+
* @description 上锁,计数加一,第一次计数,开启异步
|
|
6053
|
+
* @memberof CountLatch
|
|
6101
6054
|
*/
|
|
6102
6055
|
lock() {
|
|
6103
6056
|
this.count += 1;
|
|
@@ -6106,11 +6059,8 @@ var CountLatch = class {
|
|
|
6106
6059
|
}
|
|
6107
6060
|
}
|
|
6108
6061
|
/**
|
|
6109
|
-
*
|
|
6110
|
-
*
|
|
6111
|
-
*
|
|
6112
|
-
* @author lxm
|
|
6113
|
-
* @date 2022-11-24 19:11:47
|
|
6062
|
+
* @description 解锁,计数减一,归零时结束异步
|
|
6063
|
+
* @memberof CountLatch
|
|
6114
6064
|
*/
|
|
6115
6065
|
unlock() {
|
|
6116
6066
|
if (this.count < 1) {
|
|
@@ -6122,10 +6072,9 @@ var CountLatch = class {
|
|
|
6122
6072
|
}
|
|
6123
6073
|
}
|
|
6124
6074
|
/**
|
|
6125
|
-
* 等待,计数归零异步结束
|
|
6126
|
-
*
|
|
6127
|
-
* @
|
|
6128
|
-
* @date 2022-11-24 19:11:20
|
|
6075
|
+
* @description 等待,计数归零异步结束
|
|
6076
|
+
* @returns {*} {Promise<void>}
|
|
6077
|
+
* @memberof CountLatch
|
|
6129
6078
|
*/
|
|
6130
6079
|
async await() {
|
|
6131
6080
|
if (this.promise) {
|
|
@@ -6214,12 +6163,11 @@ function findRecursiveChild(parent, key, opts) {
|
|
|
6214
6163
|
// src/utils/data-type/data-types.ts
|
|
6215
6164
|
var DataTypes = class {
|
|
6216
6165
|
/**
|
|
6217
|
-
* 是否是数值类型
|
|
6218
|
-
* @author lxm
|
|
6219
|
-
* @date 2023-08-25 04:53:30
|
|
6166
|
+
* @description 是否是数值类型
|
|
6220
6167
|
* @static
|
|
6221
|
-
* @param {number} dataType
|
|
6222
|
-
* @
|
|
6168
|
+
* @param {number} dataType
|
|
6169
|
+
* @returns {*} {boolean}
|
|
6170
|
+
* @memberof DataTypes
|
|
6223
6171
|
*/
|
|
6224
6172
|
static isNumber(dataType) {
|
|
6225
6173
|
const numberTypes = [
|
|
@@ -6239,11 +6187,10 @@ var DataTypes = class {
|
|
|
6239
6187
|
return numberTypes.includes(this.toString(dataType));
|
|
6240
6188
|
}
|
|
6241
6189
|
/**
|
|
6242
|
-
* 是否是日期类型数据
|
|
6243
|
-
*
|
|
6190
|
+
* @description 是否是日期类型数据
|
|
6244
6191
|
* @static
|
|
6245
6192
|
* @param {number} dataType
|
|
6246
|
-
* @
|
|
6193
|
+
* @returns {*} {boolean}
|
|
6247
6194
|
* @memberof DataTypes
|
|
6248
6195
|
*/
|
|
6249
6196
|
static isDate(dataType) {
|
|
@@ -6251,23 +6198,21 @@ var DataTypes = class {
|
|
|
6251
6198
|
return dateTypes.includes(this.toString(dataType));
|
|
6252
6199
|
}
|
|
6253
6200
|
/**
|
|
6254
|
-
* 获取字符串数据类型
|
|
6255
|
-
* @author lxm
|
|
6256
|
-
* @date 2023-08-25 04:53:58
|
|
6201
|
+
* @description 获取字符串数据类型
|
|
6257
6202
|
* @static
|
|
6258
|
-
* @param {number} dataType
|
|
6259
|
-
* @
|
|
6203
|
+
* @param {number} dataType
|
|
6204
|
+
* @returns {*} {string}
|
|
6205
|
+
* @memberof DataTypes
|
|
6260
6206
|
*/
|
|
6261
6207
|
static toString(dataType) {
|
|
6262
6208
|
return this.typeMap[dataType];
|
|
6263
6209
|
}
|
|
6264
6210
|
};
|
|
6265
6211
|
/**
|
|
6266
|
-
* 数字类型映射字符串类型
|
|
6267
|
-
* @author lxm
|
|
6268
|
-
* @date 2023-08-25 04:49:52
|
|
6212
|
+
* @description 数字类型映射字符串类型
|
|
6269
6213
|
* @static
|
|
6270
6214
|
* @type {{ [p: number]: string }}
|
|
6215
|
+
* @memberof DataTypes
|
|
6271
6216
|
*/
|
|
6272
6217
|
DataTypes.typeMap = {
|
|
6273
6218
|
0: "UNKNOWN",
|
|
@@ -6443,52 +6388,40 @@ prefix.apply(logger);
|
|
|
6443
6388
|
var IBizSys = class {
|
|
6444
6389
|
constructor() {
|
|
6445
6390
|
/**
|
|
6446
|
-
* 环境变量
|
|
6447
|
-
*
|
|
6448
|
-
* @author chitanda
|
|
6449
|
-
* @date 2022-07-19 18:07:04
|
|
6391
|
+
* @description 环境变量
|
|
6392
|
+
* @memberof IBizSys
|
|
6450
6393
|
*/
|
|
6451
6394
|
this.env = Environment;
|
|
6452
6395
|
/**
|
|
6453
|
-
* 日志输出工具类
|
|
6454
|
-
*
|
|
6455
|
-
* @author chitanda
|
|
6456
|
-
* @date 2023-07-10 18:07:05
|
|
6396
|
+
* @description 日志输出工具类
|
|
6457
6397
|
* @type {Logger}
|
|
6398
|
+
* @memberof IBizSys
|
|
6458
6399
|
*/
|
|
6459
6400
|
this.log = logger;
|
|
6460
6401
|
/**
|
|
6461
|
-
* 网络请求工具类(发送默认请求)
|
|
6462
|
-
*
|
|
6463
|
-
* @author chitanda
|
|
6464
|
-
* @date 2022-07-19 17:07:56
|
|
6402
|
+
* @description 网络请求工具类(发送默认请求)
|
|
6465
6403
|
* @type {Net}
|
|
6404
|
+
* @memberof IBizSys
|
|
6466
6405
|
*/
|
|
6467
6406
|
this.net = new Net();
|
|
6468
6407
|
/**
|
|
6469
|
-
*
|
|
6470
|
-
*
|
|
6471
|
-
* @
|
|
6472
|
-
* @date 2022-07-20 10:07:33
|
|
6473
|
-
* @type {AuthService}
|
|
6408
|
+
* @description 指令工具类
|
|
6409
|
+
* @type {CommandController}
|
|
6410
|
+
* @memberof IBizSys
|
|
6474
6411
|
*/
|
|
6475
6412
|
this.commands = new CommandController();
|
|
6476
6413
|
/**
|
|
6477
|
-
*
|
|
6478
|
-
*
|
|
6479
|
-
* @author chitanda
|
|
6480
|
-
* @date 2023-09-05 17:09:38
|
|
6414
|
+
* @description 消息中心
|
|
6481
6415
|
* @type {MessageCenter}
|
|
6416
|
+
* @memberof IBizSys
|
|
6482
6417
|
*/
|
|
6483
6418
|
this.mc = new MessageCenter();
|
|
6484
6419
|
}
|
|
6485
6420
|
/**
|
|
6486
|
-
* 注册全局扩展,用于替换预置能力
|
|
6487
|
-
*
|
|
6488
|
-
* @author tony001
|
|
6489
|
-
* @date 2025-01-24 15:01:33
|
|
6421
|
+
* @description 注册全局扩展,用于替换预置能力
|
|
6490
6422
|
* @param {keyof IBizSys} key
|
|
6491
6423
|
* @param {*} value
|
|
6424
|
+
* @memberof IBizSys
|
|
6492
6425
|
*/
|
|
6493
6426
|
registerExtension(key, value) {
|
|
6494
6427
|
const self = this;
|