@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
|
@@ -3,54 +3,43 @@ import { MessageCommand } from './command/message-command';
|
|
|
3
3
|
import { MessageConsole } from './console/message-console';
|
|
4
4
|
import { MessageError } from './error/message-error';
|
|
5
5
|
/**
|
|
6
|
-
* 界面消息中心
|
|
7
|
-
*
|
|
8
|
-
* @author chitanda
|
|
9
|
-
* @date 2023-09-05 15:09:14
|
|
6
|
+
* @description 界面消息中心
|
|
10
7
|
* @export
|
|
11
8
|
* @class MessageCenter
|
|
9
|
+
* @implements {IMessageCenter}
|
|
12
10
|
*/
|
|
13
11
|
export class MessageCenter {
|
|
14
12
|
constructor() {
|
|
15
13
|
/**
|
|
16
|
-
* 所有消息
|
|
17
|
-
*
|
|
18
|
-
* @author chitanda
|
|
19
|
-
* @date 2023-09-05 16:09:12
|
|
14
|
+
* @description 所有消息
|
|
15
|
+
* @protected
|
|
20
16
|
* @type {MessageAll}
|
|
17
|
+
* @memberof MessageCenter
|
|
21
18
|
*/
|
|
22
19
|
this.all = new MessageAll();
|
|
23
20
|
/**
|
|
24
|
-
* 指令消息
|
|
25
|
-
*
|
|
26
|
-
* @author chitanda
|
|
27
|
-
* @date 2023-09-05 16:09:28
|
|
21
|
+
* @description 指令消息
|
|
28
22
|
* @type {MessageCommand}
|
|
23
|
+
* @memberof MessageCenter
|
|
29
24
|
*/
|
|
30
25
|
this.command = new MessageCommand(this.all);
|
|
31
26
|
/**
|
|
32
|
-
* 日志消息
|
|
33
|
-
*
|
|
34
|
-
* @author chitanda
|
|
35
|
-
* @date 2023-09-05 16:09:48
|
|
27
|
+
* @description 日志消息
|
|
36
28
|
* @type {MessageConsole}
|
|
29
|
+
* @memberof MessageCenter
|
|
37
30
|
*/
|
|
38
31
|
this.console = new MessageConsole(this.all);
|
|
39
32
|
/**
|
|
40
|
-
* 错误消息
|
|
41
|
-
*
|
|
42
|
-
* @author tony001
|
|
43
|
-
* @date 2024-04-28 10:04:25
|
|
33
|
+
* @description 错误消息
|
|
44
34
|
* @type {MessageError}
|
|
35
|
+
* @memberof MessageCenter
|
|
45
36
|
*/
|
|
46
37
|
this.error = new MessageError(this.all);
|
|
47
38
|
}
|
|
48
39
|
/**
|
|
49
|
-
* 发送消息
|
|
50
|
-
*
|
|
51
|
-
* @
|
|
52
|
-
* @date 2023-09-05 15:09:49
|
|
53
|
-
* @param {IPortalMessage} msg
|
|
40
|
+
* @description 发送消息
|
|
41
|
+
* @param {IPortalMessage} msg 消息
|
|
42
|
+
* @memberof MessageCenter
|
|
54
43
|
*/
|
|
55
44
|
next(msg) {
|
|
56
45
|
// 消息分子类型,子类型发完消息后,会让父发消息
|
|
@@ -66,21 +55,17 @@ export class MessageCenter {
|
|
|
66
55
|
}
|
|
67
56
|
}
|
|
68
57
|
/**
|
|
69
|
-
* 订阅消息
|
|
70
|
-
*
|
|
71
|
-
* @author chitanda
|
|
72
|
-
* @date 2023-09-05 17:09:32
|
|
58
|
+
* @description 订阅消息
|
|
73
59
|
* @param {(msg: IPortalMessage) => void} callback
|
|
60
|
+
* @memberof MessageCenter
|
|
74
61
|
*/
|
|
75
62
|
on(callback) {
|
|
76
63
|
this.all.on(callback);
|
|
77
64
|
}
|
|
78
65
|
/**
|
|
79
|
-
* 取消订阅
|
|
80
|
-
*
|
|
81
|
-
* @author chitanda
|
|
82
|
-
* @date 2023-09-05 17:09:38
|
|
66
|
+
* @description 取消订阅
|
|
83
67
|
* @param {(msg: IPortalMessage) => void} callback
|
|
68
|
+
* @memberof MessageCenter
|
|
84
69
|
*/
|
|
85
70
|
off(callback) {
|
|
86
71
|
this.all.off(callback);
|
|
@@ -1,147 +1,117 @@
|
|
|
1
1
|
export declare const defaultNamespace = "ibiz";
|
|
2
2
|
/**
|
|
3
|
-
* 全局样式处理命名空间
|
|
4
|
-
*
|
|
5
|
-
* @author chitanda
|
|
6
|
-
* @date 2022-09-06 11:09:50
|
|
3
|
+
* @description 全局样式处理命名空间
|
|
7
4
|
* @export
|
|
8
5
|
* @class Namespace
|
|
9
6
|
*/
|
|
10
7
|
export declare class Namespace {
|
|
11
8
|
protected block: string;
|
|
12
9
|
/**
|
|
13
|
-
* 命名空间
|
|
14
|
-
*
|
|
15
|
-
* @author chitanda
|
|
16
|
-
* @date 2022-09-06 12:09:01
|
|
10
|
+
* @description 命名空间
|
|
17
11
|
* @type {string}
|
|
12
|
+
* @memberof Namespace
|
|
18
13
|
*/
|
|
19
14
|
namespace: string;
|
|
20
15
|
/**
|
|
21
16
|
* Creates an instance of Namespace.
|
|
22
|
-
*
|
|
23
|
-
* @author chitanda
|
|
24
|
-
* @date 2022-09-06 12:09:12
|
|
25
17
|
* @param {string} block 当前命名空间的根模块,例如组件的名称
|
|
26
18
|
* @param {string} [namespace] 指定命名空间,未指定使用默认值 ibiz
|
|
19
|
+
* @memberof Namespace
|
|
27
20
|
*/
|
|
28
21
|
constructor(block: string, namespace?: string);
|
|
29
22
|
/**
|
|
30
|
-
* namespace-block
|
|
31
|
-
* namespace-block-blockSuffix
|
|
32
|
-
*
|
|
33
|
-
* @author chitanda
|
|
34
|
-
* @date 2022-09-06 12:09:08
|
|
23
|
+
* @description namespace-block、namespace-block-blockSuffix
|
|
35
24
|
* @param {string} [blockSuffix='']
|
|
36
|
-
* @
|
|
25
|
+
* @returns {*} {string}
|
|
26
|
+
* @memberof Namespace
|
|
37
27
|
*/
|
|
38
28
|
b(blockSuffix?: string): string;
|
|
39
29
|
/**
|
|
40
|
-
* namespace-block__element
|
|
41
|
-
*
|
|
42
|
-
* @author chitanda
|
|
43
|
-
* @date 2022-09-06 12:09:48
|
|
30
|
+
* @description namespace-block__element
|
|
44
31
|
* @param {string} [element]
|
|
45
|
-
* @
|
|
32
|
+
* @returns {*} {string}
|
|
33
|
+
* @memberof Namespace
|
|
46
34
|
*/
|
|
47
35
|
e(element?: string): string;
|
|
48
36
|
/**
|
|
49
|
-
* namespace-block--modifier
|
|
50
|
-
*
|
|
51
|
-
* @author chitanda
|
|
52
|
-
* @date 2022-09-06 12:09:37
|
|
37
|
+
* @description namespace-block--modifier
|
|
53
38
|
* @param {string} [modifier]
|
|
54
|
-
* @
|
|
39
|
+
* @returns {*} {string}
|
|
40
|
+
* @memberof Namespace
|
|
55
41
|
*/
|
|
56
42
|
m(modifier?: string): string;
|
|
57
43
|
/**
|
|
58
|
-
* namespace-block-blockSuffix__element
|
|
59
|
-
*
|
|
60
|
-
* @author chitanda
|
|
61
|
-
* @date 2022-09-06 12:09:52
|
|
44
|
+
* @description namespace-block-blockSuffix__element
|
|
62
45
|
* @param {string} [blockSuffix]
|
|
63
46
|
* @param {string} [element]
|
|
64
|
-
* @
|
|
47
|
+
* @returns {*} {string}
|
|
48
|
+
* @memberof Namespace
|
|
65
49
|
*/
|
|
66
50
|
be(blockSuffix?: string, element?: string): string;
|
|
67
51
|
/**
|
|
68
|
-
* namespace-block__element--modifier
|
|
69
|
-
*
|
|
70
|
-
* @author chitanda
|
|
71
|
-
* @date 2022-09-06 12:09:19
|
|
52
|
+
* @description namespace-block__element--modifier
|
|
72
53
|
* @param {string} [element]
|
|
73
54
|
* @param {string} [modifier]
|
|
74
|
-
* @
|
|
55
|
+
* @returns {*} {string}
|
|
56
|
+
* @memberof Namespace
|
|
75
57
|
*/
|
|
76
58
|
em(element?: string, modifier?: string): string;
|
|
77
59
|
/**
|
|
78
|
-
* namespace-block-blockSuffix--modifier
|
|
79
|
-
*
|
|
80
|
-
* @author chitanda
|
|
81
|
-
* @date 2022-09-06 12:09:59
|
|
60
|
+
* @description namespace-block-blockSuffix--modifier
|
|
82
61
|
* @param {string} [blockSuffix]
|
|
83
62
|
* @param {string} [modifier]
|
|
84
|
-
* @
|
|
63
|
+
* @returns {*} {string}
|
|
64
|
+
* @memberof Namespace
|
|
85
65
|
*/
|
|
86
66
|
bm(blockSuffix?: string, modifier?: string): string;
|
|
87
67
|
/**
|
|
88
|
-
* namespace-block-blockSuffix__element--modifier
|
|
89
|
-
*
|
|
90
|
-
* @author chitanda
|
|
91
|
-
* @date 2022-09-06 12:09:37
|
|
68
|
+
* @description namespace-block-blockSuffix__element--modifier
|
|
92
69
|
* @param {string} [blockSuffix]
|
|
93
70
|
* @param {string} [element]
|
|
94
71
|
* @param {string} [modifier]
|
|
95
|
-
* @
|
|
72
|
+
* @returns {*} {string}
|
|
73
|
+
* @memberof Namespace
|
|
96
74
|
*/
|
|
97
75
|
bem(blockSuffix?: string, element?: string, modifier?: string): string;
|
|
98
76
|
/**
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* is('loading', false) => '';
|
|
102
|
-
* is('loading', true) => 'is-loading';
|
|
103
|
-
*
|
|
104
|
-
* @author chitanda
|
|
105
|
-
* @date 2022-09-06 12:09:57
|
|
77
|
+
* @description 返回状态类
|
|
106
78
|
* @param {string} name
|
|
107
79
|
* @param {boolean} [state]
|
|
108
|
-
* @
|
|
80
|
+
* @example
|
|
81
|
+
* ```typescript
|
|
82
|
+
* is('loading', false) => '';
|
|
83
|
+
* is('loading', true) => 'is-loading';
|
|
84
|
+
* ```
|
|
85
|
+
* @returns {*} {string}
|
|
86
|
+
* @memberof Namespace
|
|
109
87
|
*/
|
|
110
88
|
is(name: string, state?: boolean): string;
|
|
111
89
|
/**
|
|
112
|
-
* 生成使用到的 css 变量 style 对象
|
|
113
|
-
*
|
|
114
|
-
* @author chitanda
|
|
115
|
-
* @date 2022-09-06 15:09:41
|
|
90
|
+
* @description 生成使用到的 css 变量 style 对象
|
|
116
91
|
* @param {Record<string, string>} object
|
|
117
|
-
* @
|
|
92
|
+
* @returns {*} {Record<string, string>}
|
|
93
|
+
* @memberof Namespace
|
|
118
94
|
*/
|
|
119
95
|
cssVar(object: Record<string, string>): Record<string, string>;
|
|
120
96
|
/**
|
|
121
|
-
* 生成使用到的 css block 变量 style 对象
|
|
122
|
-
*
|
|
123
|
-
* @author chitanda
|
|
124
|
-
* @date 2022-09-06 15:09:03
|
|
97
|
+
* @description 生成使用到的 css block 变量 style 对象
|
|
125
98
|
* @param {Record<string, string>} object
|
|
126
|
-
* @
|
|
99
|
+
* @returns {*} {Record<string, string>}
|
|
100
|
+
* @memberof Namespace
|
|
127
101
|
*/
|
|
128
102
|
cssVarBlock(object: Record<string, string>): Record<string, string>;
|
|
129
103
|
/**
|
|
130
|
-
* 生成 css var 变量名称
|
|
131
|
-
*
|
|
132
|
-
* @author chitanda
|
|
133
|
-
* @date 2022-09-06 15:09:21
|
|
104
|
+
* @description 生成 css var 变量名称
|
|
134
105
|
* @param {string} name
|
|
135
|
-
* @
|
|
106
|
+
* @returns {*} {string}
|
|
107
|
+
* @memberof Namespace
|
|
136
108
|
*/
|
|
137
109
|
cssVarName(name: string): string;
|
|
138
110
|
/**
|
|
139
|
-
* 生成块 css var 变量名称
|
|
140
|
-
*
|
|
141
|
-
* @author chitanda
|
|
142
|
-
* @date 2022-09-06 15:09:35
|
|
111
|
+
* @description 生成块 css var 变量名称
|
|
143
112
|
* @param {string} name
|
|
144
|
-
* @
|
|
113
|
+
* @returns {*} {string}
|
|
114
|
+
* @memberof Namespace
|
|
145
115
|
*/
|
|
146
116
|
cssVarBlockName(name: string): string;
|
|
147
117
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespace.d.ts","sourceRoot":"","sources":["../../../src/utils/namespace/namespace.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAwCvC
|
|
1
|
+
{"version":3,"file":"namespace.d.ts","sourceRoot":"","sources":["../../../src/utils/namespace/namespace.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAwCvC;;;;GAIG;AACH,qBAAa,SAAS;IAelB,SAAS,CAAC,KAAK,EAAE,MAAM;IAdzB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;gBAES,KAAK,EAAE,MAAM,EACvB,SAAS,CAAC,EAAE,MAAM;IAKpB;;;;;OAKG;IACH,CAAC,CAAC,WAAW,GAAE,MAAW,GAAG,MAAM;IAInC;;;;;OAKG;IACH,CAAC,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM;IAI3B;;;;;OAKG;IACH,CAAC,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM;IAI5B;;;;;;OAMG;IACH,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM;IAMlD;;;;;;OAMG;IACH,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM;IAM/C;;;;;;OAMG;IACH,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM;IAMnD;;;;;;;OAOG;IACH,GAAG,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM;IAMtE;;;;;;;;;;;OAWG;IACH,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM;IAIzC;;;;;OAKG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAU9D;;;;;OAKG;IACH,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAUnE;;;;;OAKG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAIhC;;;;;OAKG;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAGtC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
export const defaultNamespace = 'ibiz';
|
|
2
2
|
const statePrefix = 'is-';
|
|
3
3
|
/**
|
|
4
|
-
* css bem
|
|
4
|
+
* @description 拼接css bem命名
|
|
5
|
+
* @param {string} namespace 命名空间
|
|
6
|
+
* @param {string} block 块
|
|
7
|
+
* @param {string} [blockSuffix] 块后缀
|
|
8
|
+
* @param {string} [element] 元素
|
|
9
|
+
* @param {string} [modifier] 修饰符
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
5
12
|
* _bem('ibiz', 'layout') => ibiz-layout
|
|
6
13
|
* _bem('ibiz', 'layout', '', 'title') => ibiz-layout__title
|
|
7
14
|
* _bem('ibiz', 'layout', '', '', 'right') => ibiz-layout--right
|
|
8
15
|
* _bem('ibiz', 'layout', '', 'title', 'right') => ibiz-layout__title--right
|
|
9
16
|
* _bem('ibiz', 'layout', 'header', 'title', 'right') => ibiz-layout-header__title--right
|
|
10
|
-
*
|
|
11
|
-
* @
|
|
12
|
-
* @date 2022-09-06 11:09:42
|
|
13
|
-
* @param {string} namespace 命名空间
|
|
14
|
-
* @param {string} block 块
|
|
15
|
-
* @param {string} blockSuffix 块后缀
|
|
16
|
-
* @param {string} element 元素
|
|
17
|
-
* @param {string} modifier 修饰符
|
|
18
|
-
* @return {*} {string}
|
|
17
|
+
* ```
|
|
18
|
+
* @returns {*} {string}
|
|
19
19
|
*/
|
|
20
20
|
function _bem(namespace, block, blockSuffix, element, modifier) {
|
|
21
21
|
let cls = `${namespace}-${block}`;
|
|
@@ -31,68 +31,54 @@ function _bem(namespace, block, blockSuffix, element, modifier) {
|
|
|
31
31
|
return cls;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* 全局样式处理命名空间
|
|
35
|
-
*
|
|
36
|
-
* @author chitanda
|
|
37
|
-
* @date 2022-09-06 11:09:50
|
|
34
|
+
* @description 全局样式处理命名空间
|
|
38
35
|
* @export
|
|
39
36
|
* @class Namespace
|
|
40
37
|
*/
|
|
41
38
|
export class Namespace {
|
|
42
39
|
/**
|
|
43
40
|
* Creates an instance of Namespace.
|
|
44
|
-
*
|
|
45
|
-
* @author chitanda
|
|
46
|
-
* @date 2022-09-06 12:09:12
|
|
47
41
|
* @param {string} block 当前命名空间的根模块,例如组件的名称
|
|
48
42
|
* @param {string} [namespace] 指定命名空间,未指定使用默认值 ibiz
|
|
43
|
+
* @memberof Namespace
|
|
49
44
|
*/
|
|
50
45
|
constructor(block, namespace) {
|
|
51
46
|
this.block = block;
|
|
52
47
|
this.namespace = namespace || defaultNamespace;
|
|
53
48
|
}
|
|
54
49
|
/**
|
|
55
|
-
* namespace-block
|
|
56
|
-
* namespace-block-blockSuffix
|
|
57
|
-
*
|
|
58
|
-
* @author chitanda
|
|
59
|
-
* @date 2022-09-06 12:09:08
|
|
50
|
+
* @description namespace-block、namespace-block-blockSuffix
|
|
60
51
|
* @param {string} [blockSuffix='']
|
|
61
|
-
* @
|
|
52
|
+
* @returns {*} {string}
|
|
53
|
+
* @memberof Namespace
|
|
62
54
|
*/
|
|
63
55
|
b(blockSuffix = '') {
|
|
64
56
|
return _bem(this.namespace, this.block, blockSuffix, '', '');
|
|
65
57
|
}
|
|
66
58
|
/**
|
|
67
|
-
* namespace-block__element
|
|
68
|
-
*
|
|
69
|
-
* @author chitanda
|
|
70
|
-
* @date 2022-09-06 12:09:48
|
|
59
|
+
* @description namespace-block__element
|
|
71
60
|
* @param {string} [element]
|
|
72
|
-
* @
|
|
61
|
+
* @returns {*} {string}
|
|
62
|
+
* @memberof Namespace
|
|
73
63
|
*/
|
|
74
64
|
e(element) {
|
|
75
65
|
return element ? _bem(this.namespace, this.block, '', element, '') : '';
|
|
76
66
|
}
|
|
77
67
|
/**
|
|
78
|
-
* namespace-block--modifier
|
|
79
|
-
*
|
|
80
|
-
* @author chitanda
|
|
81
|
-
* @date 2022-09-06 12:09:37
|
|
68
|
+
* @description namespace-block--modifier
|
|
82
69
|
* @param {string} [modifier]
|
|
83
|
-
* @
|
|
70
|
+
* @returns {*} {string}
|
|
71
|
+
* @memberof Namespace
|
|
84
72
|
*/
|
|
85
73
|
m(modifier) {
|
|
86
74
|
return modifier ? _bem(this.namespace, this.block, '', '', modifier) : '';
|
|
87
75
|
}
|
|
88
76
|
/**
|
|
89
|
-
* namespace-block-blockSuffix__element
|
|
90
|
-
*
|
|
91
|
-
* @author chitanda
|
|
92
|
-
* @date 2022-09-06 12:09:52
|
|
77
|
+
* @description namespace-block-blockSuffix__element
|
|
93
78
|
* @param {string} [blockSuffix]
|
|
94
79
|
* @param {string} [element]
|
|
95
|
-
* @
|
|
80
|
+
* @returns {*} {string}
|
|
81
|
+
* @memberof Namespace
|
|
96
82
|
*/
|
|
97
83
|
be(blockSuffix, element) {
|
|
98
84
|
return blockSuffix && element
|
|
@@ -100,13 +86,11 @@ export class Namespace {
|
|
|
100
86
|
: '';
|
|
101
87
|
}
|
|
102
88
|
/**
|
|
103
|
-
* namespace-block__element--modifier
|
|
104
|
-
*
|
|
105
|
-
* @author chitanda
|
|
106
|
-
* @date 2022-09-06 12:09:19
|
|
89
|
+
* @description namespace-block__element--modifier
|
|
107
90
|
* @param {string} [element]
|
|
108
91
|
* @param {string} [modifier]
|
|
109
|
-
* @
|
|
92
|
+
* @returns {*} {string}
|
|
93
|
+
* @memberof Namespace
|
|
110
94
|
*/
|
|
111
95
|
em(element, modifier) {
|
|
112
96
|
return element && modifier
|
|
@@ -114,13 +98,11 @@ export class Namespace {
|
|
|
114
98
|
: '';
|
|
115
99
|
}
|
|
116
100
|
/**
|
|
117
|
-
* namespace-block-blockSuffix--modifier
|
|
118
|
-
*
|
|
119
|
-
* @author chitanda
|
|
120
|
-
* @date 2022-09-06 12:09:59
|
|
101
|
+
* @description namespace-block-blockSuffix--modifier
|
|
121
102
|
* @param {string} [blockSuffix]
|
|
122
103
|
* @param {string} [modifier]
|
|
123
|
-
* @
|
|
104
|
+
* @returns {*} {string}
|
|
105
|
+
* @memberof Namespace
|
|
124
106
|
*/
|
|
125
107
|
bm(blockSuffix, modifier) {
|
|
126
108
|
return blockSuffix && modifier
|
|
@@ -128,14 +110,12 @@ export class Namespace {
|
|
|
128
110
|
: '';
|
|
129
111
|
}
|
|
130
112
|
/**
|
|
131
|
-
* namespace-block-blockSuffix__element--modifier
|
|
132
|
-
*
|
|
133
|
-
* @author chitanda
|
|
134
|
-
* @date 2022-09-06 12:09:37
|
|
113
|
+
* @description namespace-block-blockSuffix__element--modifier
|
|
135
114
|
* @param {string} [blockSuffix]
|
|
136
115
|
* @param {string} [element]
|
|
137
116
|
* @param {string} [modifier]
|
|
138
|
-
* @
|
|
117
|
+
* @returns {*} {string}
|
|
118
|
+
* @memberof Namespace
|
|
139
119
|
*/
|
|
140
120
|
bem(blockSuffix, element, modifier) {
|
|
141
121
|
return blockSuffix && element && modifier
|
|
@@ -143,27 +123,25 @@ export class Namespace {
|
|
|
143
123
|
: '';
|
|
144
124
|
}
|
|
145
125
|
/**
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
* is('loading', false) => '';
|
|
149
|
-
* is('loading', true) => 'is-loading';
|
|
150
|
-
*
|
|
151
|
-
* @author chitanda
|
|
152
|
-
* @date 2022-09-06 12:09:57
|
|
126
|
+
* @description 返回状态类
|
|
153
127
|
* @param {string} name
|
|
154
128
|
* @param {boolean} [state]
|
|
155
|
-
* @
|
|
129
|
+
* @example
|
|
130
|
+
* ```typescript
|
|
131
|
+
* is('loading', false) => '';
|
|
132
|
+
* is('loading', true) => 'is-loading';
|
|
133
|
+
* ```
|
|
134
|
+
* @returns {*} {string}
|
|
135
|
+
* @memberof Namespace
|
|
156
136
|
*/
|
|
157
137
|
is(name, state) {
|
|
158
138
|
return name && state ? `${statePrefix}${name}` : '';
|
|
159
139
|
}
|
|
160
140
|
/**
|
|
161
|
-
* 生成使用到的 css 变量 style 对象
|
|
162
|
-
*
|
|
163
|
-
* @author chitanda
|
|
164
|
-
* @date 2022-09-06 15:09:41
|
|
141
|
+
* @description 生成使用到的 css 变量 style 对象
|
|
165
142
|
* @param {Record<string, string>} object
|
|
166
|
-
* @
|
|
143
|
+
* @returns {*} {Record<string, string>}
|
|
144
|
+
* @memberof Namespace
|
|
167
145
|
*/
|
|
168
146
|
cssVar(object) {
|
|
169
147
|
const styles = {};
|
|
@@ -175,12 +153,10 @@ export class Namespace {
|
|
|
175
153
|
return styles;
|
|
176
154
|
}
|
|
177
155
|
/**
|
|
178
|
-
* 生成使用到的 css block 变量 style 对象
|
|
179
|
-
*
|
|
180
|
-
* @author chitanda
|
|
181
|
-
* @date 2022-09-06 15:09:03
|
|
156
|
+
* @description 生成使用到的 css block 变量 style 对象
|
|
182
157
|
* @param {Record<string, string>} object
|
|
183
|
-
* @
|
|
158
|
+
* @returns {*} {Record<string, string>}
|
|
159
|
+
* @memberof Namespace
|
|
184
160
|
*/
|
|
185
161
|
cssVarBlock(object) {
|
|
186
162
|
const styles = {};
|
|
@@ -192,23 +168,19 @@ export class Namespace {
|
|
|
192
168
|
return styles;
|
|
193
169
|
}
|
|
194
170
|
/**
|
|
195
|
-
* 生成 css var 变量名称
|
|
196
|
-
*
|
|
197
|
-
* @author chitanda
|
|
198
|
-
* @date 2022-09-06 15:09:21
|
|
171
|
+
* @description 生成 css var 变量名称
|
|
199
172
|
* @param {string} name
|
|
200
|
-
* @
|
|
173
|
+
* @returns {*} {string}
|
|
174
|
+
* @memberof Namespace
|
|
201
175
|
*/
|
|
202
176
|
cssVarName(name) {
|
|
203
177
|
return `--${this.namespace}-${name}`;
|
|
204
178
|
}
|
|
205
179
|
/**
|
|
206
|
-
* 生成块 css var 变量名称
|
|
207
|
-
*
|
|
208
|
-
* @author chitanda
|
|
209
|
-
* @date 2022-09-06 15:09:35
|
|
180
|
+
* @description 生成块 css var 变量名称
|
|
210
181
|
* @param {string} name
|
|
211
|
-
* @
|
|
182
|
+
* @returns {*} {string}
|
|
183
|
+
* @memberof Namespace
|
|
212
184
|
*/
|
|
213
185
|
cssVarBlockName(name) {
|
|
214
186
|
return `--${this.namespace}-${this.block}-${name}`;
|
|
@@ -1,63 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AxiosResponseHeaders, InternalAxiosRequestConfig, RawAxiosResponseHeaders } from 'axios';
|
|
2
|
+
import { IHttpResponse } from '../../interface';
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @author chitanda
|
|
6
|
-
* @date 2022-08-21 17:08:06
|
|
7
|
-
* @export
|
|
8
|
-
* @interface IHttpResponse
|
|
9
|
-
* @extends {AxiosResponse}
|
|
10
|
-
* @template T
|
|
11
|
-
*/
|
|
12
|
-
export interface IHttpResponse<T = IData> extends AxiosResponse {
|
|
13
|
-
/**
|
|
14
|
-
* 是否请求成功
|
|
15
|
-
*
|
|
16
|
-
* @description 当状态码为 200-299 时认为成功
|
|
17
|
-
* @author chitanda
|
|
18
|
-
* @date 2022-07-14 16:07:59
|
|
19
|
-
* @type {boolean}
|
|
20
|
-
*/
|
|
21
|
-
ok: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* 是否为本地仿造响应
|
|
24
|
-
*
|
|
25
|
-
* @description 只有当值为 true 时, 才认为是本地仿造响应
|
|
26
|
-
* @author chitanda
|
|
27
|
-
* @date 2022-08-18 15:08:44
|
|
28
|
-
* @type {boolean}
|
|
29
|
-
*/
|
|
30
|
-
local: boolean;
|
|
31
|
-
data: T;
|
|
32
|
-
/**
|
|
33
|
-
* 当前页
|
|
34
|
-
*/
|
|
35
|
-
page?: number;
|
|
36
|
-
/**
|
|
37
|
-
* 分页条数
|
|
38
|
-
*/
|
|
39
|
-
size?: number;
|
|
40
|
-
/**
|
|
41
|
-
* 总条数
|
|
42
|
-
*/
|
|
43
|
-
total?: number;
|
|
44
|
-
/**
|
|
45
|
-
* 全部计数条数
|
|
46
|
-
*
|
|
47
|
-
* @type {number}
|
|
48
|
-
* @memberof IHttpResponse
|
|
49
|
-
*/
|
|
50
|
-
totalx?: number;
|
|
51
|
-
/**
|
|
52
|
-
* 总页数
|
|
53
|
-
*/
|
|
54
|
-
totalPages?: number;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* 本地请求仿造响应
|
|
58
|
-
*
|
|
59
|
-
* @author chitanda
|
|
60
|
-
* @date 2022-08-21 17:08:00
|
|
4
|
+
* @description 本地请求仿造响应
|
|
61
5
|
* @export
|
|
62
6
|
* @class HttpResponse
|
|
63
7
|
* @implements {IHttpResponse<T>}
|
|
@@ -65,10 +9,8 @@ export interface IHttpResponse<T = IData> extends AxiosResponse {
|
|
|
65
9
|
*/
|
|
66
10
|
export declare class HttpResponse<T = IData> implements IHttpResponse<T> {
|
|
67
11
|
/**
|
|
68
|
-
* 本地仿造响应
|
|
69
|
-
*
|
|
70
|
-
* @author chitanda
|
|
71
|
-
* @date 2022-08-18 15:08:06
|
|
12
|
+
* @description 本地仿造响应
|
|
13
|
+
* @memberof HttpResponse
|
|
72
14
|
*/
|
|
73
15
|
local: boolean;
|
|
74
16
|
ok: boolean;
|
|
@@ -79,12 +21,10 @@ export declare class HttpResponse<T = IData> implements IHttpResponse<T> {
|
|
|
79
21
|
config: InternalAxiosRequestConfig<IData>;
|
|
80
22
|
/**
|
|
81
23
|
* Creates an instance of HttpResponse.
|
|
82
|
-
*
|
|
83
|
-
* @author chitanda
|
|
84
|
-
* @date 2022-08-18 15:08:11
|
|
85
24
|
* @param {unknown} [data] 返回的数据
|
|
86
25
|
* @param {number} [status] 状态码 (默认为 200)
|
|
87
26
|
* @param {string} [statusText] 状态描述 (默认为空字符)
|
|
27
|
+
* @memberof HttpResponse
|
|
88
28
|
*/
|
|
89
29
|
constructor(data?: unknown, status?: number, statusText?: string);
|
|
90
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-response.d.ts","sourceRoot":"","sources":["../../../src/utils/net/http-response.ts"],"names":[],"mappings":"AAAA,OAAc,EACZ,
|
|
1
|
+
{"version":3,"file":"http-response.d.ts","sourceRoot":"","sources":["../../../src/utils/net/http-response.ts"],"names":[],"mappings":"AAAA,OAAc,EACZ,oBAAoB,EACpB,0BAA0B,EAC1B,uBAAuB,EACxB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;;;GAMG;AACH,qBAAa,YAAY,CAAC,CAAC,GAAG,KAAK,CAAE,YAAW,aAAa,CAAC,CAAC,CAAC;IAC9D;;;OAGG;IACH,KAAK,UAAQ;IAEb,EAAE,UAAS;IAEX,IAAI,EAAE,CAAC,CAAC;IAER,MAAM,EAAE,MAAM,CAAC;IAEf,UAAU,EAAE,MAAM,CAAC;IAEnB,OAAO,EAAE,uBAAuB,GAAG,oBAAoB,CAAM;IAE7D,MAAM,EAAE,0BAA0B,CAAC,KAAK,CAAC,CAEvC;IAEF;;;;;;OAMG;gBACS,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM;CAQjE"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
/**
|
|
3
|
-
* 本地请求仿造响应
|
|
4
|
-
*
|
|
5
|
-
* @author chitanda
|
|
6
|
-
* @date 2022-08-21 17:08:00
|
|
3
|
+
* @description 本地请求仿造响应
|
|
7
4
|
* @export
|
|
8
5
|
* @class HttpResponse
|
|
9
6
|
* @implements {IHttpResponse<T>}
|
|
@@ -12,19 +9,15 @@ import axios from 'axios';
|
|
|
12
9
|
export class HttpResponse {
|
|
13
10
|
/**
|
|
14
11
|
* Creates an instance of HttpResponse.
|
|
15
|
-
*
|
|
16
|
-
* @author chitanda
|
|
17
|
-
* @date 2022-08-18 15:08:11
|
|
18
12
|
* @param {unknown} [data] 返回的数据
|
|
19
13
|
* @param {number} [status] 状态码 (默认为 200)
|
|
20
14
|
* @param {string} [statusText] 状态描述 (默认为空字符)
|
|
15
|
+
* @memberof HttpResponse
|
|
21
16
|
*/
|
|
22
17
|
constructor(data, status, statusText) {
|
|
23
18
|
/**
|
|
24
|
-
* 本地仿造响应
|
|
25
|
-
*
|
|
26
|
-
* @author chitanda
|
|
27
|
-
* @date 2022-08-18 15:08:06
|
|
19
|
+
* @description 本地仿造响应
|
|
20
|
+
* @memberof HttpResponse
|
|
28
21
|
*/
|
|
29
22
|
this.local = true;
|
|
30
23
|
this.ok = false;
|