@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
|
@@ -7,12 +7,10 @@ const IterateOpts = {
|
|
|
7
7
|
};
|
|
8
8
|
const BreakError = new Error('中断操作');
|
|
9
9
|
/**
|
|
10
|
-
* 获取子属性集合
|
|
11
|
-
* @author lxm
|
|
12
|
-
* @date 2023-04-20 08:54:32
|
|
10
|
+
* @description 获取子属性集合
|
|
13
11
|
* @param {IData} parent
|
|
14
12
|
* @param {string[]} fields 子集合可能的属性名称
|
|
15
|
-
* @
|
|
13
|
+
* @returns {*} {(IData[] | undefined)}
|
|
16
14
|
*/
|
|
17
15
|
function getChildField(parent, fields) {
|
|
18
16
|
var _a;
|
|
@@ -39,9 +37,7 @@ function _recursiveIterate(parent, callback, opts) {
|
|
|
39
37
|
}
|
|
40
38
|
}
|
|
41
39
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* @description 递归遍历子元素 用法:传入数组和回调函数 无返回值
|
|
40
|
+
* @description 递归遍历子元素,递归遍历子元素 用法:传入数组和回调函数 无返回值
|
|
45
41
|
* @example
|
|
46
42
|
* ```
|
|
47
43
|
* const parent = {
|
|
@@ -63,8 +59,6 @@ function _recursiveIterate(parent, callback, opts) {
|
|
|
63
59
|
*
|
|
64
60
|
* result // => ['child1', 'grandchild1', 'grandchild2', 'child2', 'grandchild3']
|
|
65
61
|
* ```
|
|
66
|
-
* @author lxm
|
|
67
|
-
* @date 2023-04-23 09:07:06
|
|
68
62
|
* @export
|
|
69
63
|
* @param {IData} parent 父元素
|
|
70
64
|
* @param {(item: any) => boolean} callback 每一个子元素的回调
|
|
@@ -85,9 +79,7 @@ const CompareOpts = Object.assign(Object.assign({}, IterateOpts), {
|
|
|
85
79
|
/** 比较的属性 */
|
|
86
80
|
compareField: 'name' });
|
|
87
81
|
/**
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* @description 递归查找子元素 用法:传入数组和查找条件 返回值匹配的子元素或undefined
|
|
82
|
+
* @description 递归查找子元素,递归查找子元素 用法:传入数组和查找条件 返回值匹配的子元素或undefined
|
|
91
83
|
* @example
|
|
92
84
|
* ```
|
|
93
85
|
* const parent = {
|
|
@@ -105,8 +97,6 @@ const CompareOpts = Object.assign(Object.assign({}, IterateOpts), {
|
|
|
105
97
|
*
|
|
106
98
|
* result // => { name: 'child1', children: [{ name: 'grandchild1' }, { name: 'grandchild2' }] }
|
|
107
99
|
* ```
|
|
108
|
-
* @author lxm
|
|
109
|
-
* @date 2023-04-20 08:53:35
|
|
110
100
|
* @export
|
|
111
101
|
* @param {IData} parent 父对象
|
|
112
102
|
* @param {string} key 子元素的比较属性的值
|
|
@@ -1,45 +1,42 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 字符串工具类
|
|
3
|
-
*
|
|
4
|
-
* @author chitanda
|
|
5
|
-
* @date 2021-04-23 20:04:27
|
|
2
|
+
* @description 字符串工具类
|
|
6
3
|
* @export
|
|
7
4
|
* @class StringUtil
|
|
8
5
|
*/
|
|
9
6
|
export declare class StringUtil {
|
|
10
7
|
/**
|
|
11
|
-
* 上下文替换正则
|
|
12
|
-
*
|
|
13
|
-
* @author chitanda
|
|
14
|
-
* @date 2021-04-23 20:04:01
|
|
8
|
+
* @description 上下文替换正则
|
|
15
9
|
* @static
|
|
10
|
+
* @memberof StringUtil
|
|
16
11
|
*/
|
|
17
12
|
static contextReg: RegExp;
|
|
18
13
|
/**
|
|
19
|
-
* 数据替换正则
|
|
20
|
-
*
|
|
21
|
-
* @author chitanda
|
|
22
|
-
* @date 2021-04-23 20:04:09
|
|
14
|
+
* @description 数据替换正则
|
|
23
15
|
* @static
|
|
16
|
+
* @memberof StringUtil
|
|
24
17
|
*/
|
|
25
18
|
static dataReg: RegExp;
|
|
26
19
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
20
|
+
* @description 参数替换正则
|
|
21
|
+
* @static
|
|
22
|
+
* @memberof StringUtil
|
|
23
|
+
*/
|
|
24
|
+
static paramsReg: RegExp;
|
|
25
|
+
/**
|
|
29
26
|
* @description 填充字符串中的数据 用法:传入需要替换的字符串和对象 返回值是string类型
|
|
30
27
|
* @example
|
|
31
28
|
* ```
|
|
32
|
-
* StringUtil.fill('姓名:${context.name},年龄:${data.age}', { name: '张三', age: 10 }, { name: '李四', age: 25 }); // => '姓名:张三,年龄:25'
|
|
33
|
-
* StringUtil.fill('', { name: '张三', age: 10 }, { name: '李四', age: 25 }); // => ''
|
|
29
|
+
* StringUtil.fill('姓名:${context.name},年龄:${data.age}', { name: '张三', age: 10 }, {name: '王二', age: 19}, { name: '李四', age: 25 }); // => '姓名:张三,年龄:25'
|
|
30
|
+
* StringUtil.fill('', { name: '张三', age: 10 }, {name: '王二', age: 19}, { name: '李四', age: 25 }); // => ''
|
|
34
31
|
* ```
|
|
35
|
-
* @author chitanda
|
|
36
|
-
* @date 2021-04-23 20:04:17
|
|
37
32
|
* @static
|
|
38
|
-
* @param {string} str
|
|
39
|
-
* @param {
|
|
40
|
-
* @param {
|
|
33
|
+
* @param {string} str 需填充字符串
|
|
34
|
+
* @param {IContext} [context] 上下文
|
|
35
|
+
* @param {IParams} [params] 参数
|
|
36
|
+
* @param {IData} [data] 数据
|
|
41
37
|
* @return {*} {string}
|
|
38
|
+
* @memberof StringUtil
|
|
42
39
|
*/
|
|
43
|
-
static fill(str: string, context?: IContext, data?: IData): string;
|
|
40
|
+
static fill(str: string, context?: IContext, params?: IParams, data?: IData): string;
|
|
44
41
|
}
|
|
45
42
|
//# sourceMappingURL=string-util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string-util.d.ts","sourceRoot":"","sources":["../../../src/utils/string-util/string-util.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"string-util.d.ts","sourceRoot":"","sources":["../../../src/utils/string-util/string-util.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,qBAAa,UAAU;IACrB;;;;OAIG;IACH,MAAM,CAAC,UAAU,SAAgD;IAEjE;;;;OAIG;IACH,MAAM,CAAC,OAAO,SAA6C;IAE3D;;;;OAIG;IACH,MAAM,CAAC,SAAS,SAA+C;IAE/D;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,CACT,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,QAAQ,EAClB,MAAM,CAAC,EAAE,OAAO,EAChB,IAAI,CAAC,EAAE,KAAK,GACX,MAAM;CA4BV"}
|
|
@@ -1,31 +1,26 @@
|
|
|
1
1
|
import { notNilEmpty } from 'qx-util';
|
|
2
2
|
/**
|
|
3
|
-
* 字符串工具类
|
|
4
|
-
*
|
|
5
|
-
* @author chitanda
|
|
6
|
-
* @date 2021-04-23 20:04:27
|
|
3
|
+
* @description 字符串工具类
|
|
7
4
|
* @export
|
|
8
5
|
* @class StringUtil
|
|
9
6
|
*/
|
|
10
7
|
export class StringUtil {
|
|
11
8
|
/**
|
|
12
|
-
* 填充字符串中的数据
|
|
13
|
-
*
|
|
14
9
|
* @description 填充字符串中的数据 用法:传入需要替换的字符串和对象 返回值是string类型
|
|
15
10
|
* @example
|
|
16
11
|
* ```
|
|
17
|
-
* StringUtil.fill('姓名:${context.name},年龄:${data.age}', { name: '张三', age: 10 }, { name: '李四', age: 25 }); // => '姓名:张三,年龄:25'
|
|
18
|
-
* StringUtil.fill('', { name: '张三', age: 10 }, { name: '李四', age: 25 }); // => ''
|
|
12
|
+
* StringUtil.fill('姓名:${context.name},年龄:${data.age}', { name: '张三', age: 10 }, {name: '王二', age: 19}, { name: '李四', age: 25 }); // => '姓名:张三,年龄:25'
|
|
13
|
+
* StringUtil.fill('', { name: '张三', age: 10 }, {name: '王二', age: 19}, { name: '李四', age: 25 }); // => ''
|
|
19
14
|
* ```
|
|
20
|
-
* @author chitanda
|
|
21
|
-
* @date 2021-04-23 20:04:17
|
|
22
15
|
* @static
|
|
23
|
-
* @param {string} str
|
|
24
|
-
* @param {
|
|
25
|
-
* @param {
|
|
16
|
+
* @param {string} str 需填充字符串
|
|
17
|
+
* @param {IContext} [context] 上下文
|
|
18
|
+
* @param {IParams} [params] 参数
|
|
19
|
+
* @param {IData} [data] 数据
|
|
26
20
|
* @return {*} {string}
|
|
21
|
+
* @memberof StringUtil
|
|
27
22
|
*/
|
|
28
|
-
static fill(str, context, data) {
|
|
23
|
+
static fill(str, context, params, data) {
|
|
29
24
|
if (notNilEmpty(str)) {
|
|
30
25
|
if (notNilEmpty(context)) {
|
|
31
26
|
const strArr = str.match(this.contextReg);
|
|
@@ -34,6 +29,15 @@ export class StringUtil {
|
|
|
34
29
|
str = str.replace(`\${context.${key}}`, context[key] || '');
|
|
35
30
|
});
|
|
36
31
|
}
|
|
32
|
+
if (notNilEmpty(params)) {
|
|
33
|
+
const strArr = str.match(this.paramsReg);
|
|
34
|
+
strArr === null || strArr === void 0 ? void 0 : strArr.forEach(_key => {
|
|
35
|
+
const key = _key.slice(8, _key.length - 1);
|
|
36
|
+
if (params[key]) {
|
|
37
|
+
str = str.replace(`\${params.${key}}`, params[key]);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
37
41
|
if (notNilEmpty(data)) {
|
|
38
42
|
const strArr = str.match(this.dataReg);
|
|
39
43
|
strArr === null || strArr === void 0 ? void 0 : strArr.forEach(_key => {
|
|
@@ -46,18 +50,20 @@ export class StringUtil {
|
|
|
46
50
|
}
|
|
47
51
|
}
|
|
48
52
|
/**
|
|
49
|
-
* 上下文替换正则
|
|
50
|
-
*
|
|
51
|
-
* @author chitanda
|
|
52
|
-
* @date 2021-04-23 20:04:01
|
|
53
|
+
* @description 上下文替换正则
|
|
53
54
|
* @static
|
|
55
|
+
* @memberof StringUtil
|
|
54
56
|
*/
|
|
55
57
|
StringUtil.contextReg = /\$\{context.[a-zA-Z_$][a-zA-Z0-9_$]{1,}\}/g;
|
|
56
58
|
/**
|
|
57
|
-
* 数据替换正则
|
|
58
|
-
*
|
|
59
|
-
* @author chitanda
|
|
60
|
-
* @date 2021-04-23 20:04:09
|
|
59
|
+
* @description 数据替换正则
|
|
61
60
|
* @static
|
|
61
|
+
* @memberof StringUtil
|
|
62
62
|
*/
|
|
63
63
|
StringUtil.dataReg = /\$\{data.[a-zA-Z_$][a-zA-Z0-9_$]{1,}\}/g;
|
|
64
|
+
/**
|
|
65
|
+
* @description 参数替换正则
|
|
66
|
+
* @static
|
|
67
|
+
* @memberof StringUtil
|
|
68
|
+
*/
|
|
69
|
+
StringUtil.paramsReg = /\$\{params.[a-zA-Z_$][a-zA-Z0-9_$]{1,}\}/g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-style.d.ts","sourceRoot":"","sources":["../../../src/utils/style/remote-style.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"remote-style.d.ts","sourceRoot":"","sources":["../../../src/utils/style/remote-style.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAU/D"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 设置延迟wait毫米后执行fun方法,返回fun的返回值
|
|
3
|
-
*
|
|
4
|
-
* @description 设置延迟wait毫米后执行fun方法 用法:传入等待时间,函数和参数 返回fun的返回值
|
|
2
|
+
* @description 设置延迟wait毫米后执行fun方法,返回fun的返回值。用法:传入等待时间,函数和参数 返回fun的返回值
|
|
5
3
|
* @example
|
|
6
4
|
* ```
|
|
7
5
|
* awaitTimeout(100, () => 'Hello, World!'); // => 'Hello, World!'
|
|
8
6
|
* awaitTimeout(100, (name: string) => `Hello, ${name}!`, ['John']); // => 'Hello, John!'
|
|
9
7
|
* ```
|
|
10
|
-
* @author lxm
|
|
11
|
-
* @date 2023-03-06 08:20:57
|
|
12
8
|
* @export
|
|
13
9
|
* @template T
|
|
14
10
|
* @param {number} wait
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"await-timeout.d.ts","sourceRoot":"","sources":["../../../src/utils/sync/await-timeout.ts"],"names":[],"mappings":"AACA
|
|
1
|
+
{"version":3,"file":"await-timeout.d.ts","sourceRoot":"","sources":["../../../src/utils/sync/await-timeout.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;GAaG;AACH,wBAAsB,YAAY,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,EAChE,IAAI,EAAE,MAAM,EACZ,GAAG,CAAC,EAAE,CAAC,EACP,MAAM,CAAC,EAAE,GAAG,EAAE,GACb,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CASpC"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
2
|
/**
|
|
3
|
-
* 设置延迟wait毫米后执行fun方法,返回fun的返回值
|
|
4
|
-
*
|
|
5
|
-
* @description 设置延迟wait毫米后执行fun方法 用法:传入等待时间,函数和参数 返回fun的返回值
|
|
3
|
+
* @description 设置延迟wait毫米后执行fun方法,返回fun的返回值。用法:传入等待时间,函数和参数 返回fun的返回值
|
|
6
4
|
* @example
|
|
7
5
|
* ```
|
|
8
6
|
* awaitTimeout(100, () => 'Hello, World!'); // => 'Hello, World!'
|
|
9
7
|
* awaitTimeout(100, (name: string) => `Hello, ${name}!`, ['John']); // => 'Hello, John!'
|
|
10
8
|
* ```
|
|
11
|
-
* @author lxm
|
|
12
|
-
* @date 2023-03-06 08:20:57
|
|
13
9
|
* @export
|
|
14
10
|
* @template T
|
|
15
11
|
* @param {number} wait
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 计数插销工具类
|
|
3
|
-
*
|
|
4
|
-
* @author lxm
|
|
5
|
-
* @date 2022-11-24 19:11:49
|
|
2
|
+
* @description 计数插销工具类
|
|
6
3
|
* @export
|
|
7
4
|
* @class CountLatch
|
|
8
5
|
*/
|
|
@@ -10,50 +7,37 @@ export declare class CountLatch {
|
|
|
10
7
|
private promise;
|
|
11
8
|
private resolve;
|
|
12
9
|
/**
|
|
13
|
-
* 计数,当前等待的异步逻辑个数
|
|
14
|
-
*
|
|
15
|
-
* @author lxm
|
|
16
|
-
* @date 2022-11-24 19:11:59
|
|
10
|
+
* @description 计数,当前等待的异步逻辑个数
|
|
17
11
|
* @type {number}
|
|
12
|
+
* @memberof CountLatch
|
|
18
13
|
*/
|
|
19
14
|
count: number;
|
|
20
15
|
/**
|
|
21
|
-
* 开启promise
|
|
22
|
-
*
|
|
23
|
-
* @author lxm
|
|
24
|
-
* @date 2022-11-24 19:11:32
|
|
16
|
+
* @description 开启promise
|
|
25
17
|
* @private
|
|
18
|
+
* @memberof CountLatch
|
|
26
19
|
*/
|
|
27
20
|
private startPromise;
|
|
28
21
|
/**
|
|
29
|
-
* 结束promise
|
|
30
|
-
*
|
|
31
|
-
* @author lxm
|
|
32
|
-
* @date 2022-11-24 19:11:44
|
|
22
|
+
* @description 结束promise
|
|
33
23
|
* @private
|
|
24
|
+
* @memberof CountLatch
|
|
34
25
|
*/
|
|
35
26
|
private endPromise;
|
|
36
27
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* @author lxm
|
|
41
|
-
* @date 2022-11-24 19:11:27
|
|
28
|
+
* @description 上锁,计数加一,第一次计数,开启异步
|
|
29
|
+
* @memberof CountLatch
|
|
42
30
|
*/
|
|
43
31
|
lock(): void;
|
|
44
32
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* @author lxm
|
|
49
|
-
* @date 2022-11-24 19:11:47
|
|
33
|
+
* @description 解锁,计数减一,归零时结束异步
|
|
34
|
+
* @memberof CountLatch
|
|
50
35
|
*/
|
|
51
36
|
unlock(): void;
|
|
52
37
|
/**
|
|
53
|
-
* 等待,计数归零异步结束
|
|
54
|
-
*
|
|
55
|
-
* @
|
|
56
|
-
* @date 2022-11-24 19:11:20
|
|
38
|
+
* @description 等待,计数归零异步结束
|
|
39
|
+
* @returns {*} {Promise<void>}
|
|
40
|
+
* @memberof CountLatch
|
|
57
41
|
*/
|
|
58
42
|
await(): Promise<void>;
|
|
59
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"count-latch.d.ts","sourceRoot":"","sources":["../../../src/utils/sync/count-latch.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"count-latch.d.ts","sourceRoot":"","sources":["../../../src/utils/sync/count-latch.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,OAAO,CAA8B;IAE7C,OAAO,CAAC,OAAO,CAAwC;IAEvD;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAK;IAElB;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAMpB;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAQlB;;;OAGG;IACH,IAAI,IAAI,IAAI;IAOZ;;;OAGG;IACH,MAAM,IAAI,IAAI;IAUd;;;;OAIG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAK7B"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { RuntimeError } from '../../error';
|
|
2
2
|
/**
|
|
3
|
-
* 计数插销工具类
|
|
4
|
-
*
|
|
5
|
-
* @author lxm
|
|
6
|
-
* @date 2022-11-24 19:11:49
|
|
3
|
+
* @description 计数插销工具类
|
|
7
4
|
* @export
|
|
8
5
|
* @class CountLatch
|
|
9
6
|
*/
|
|
@@ -12,20 +9,16 @@ export class CountLatch {
|
|
|
12
9
|
this.promise = null;
|
|
13
10
|
this.resolve = null;
|
|
14
11
|
/**
|
|
15
|
-
* 计数,当前等待的异步逻辑个数
|
|
16
|
-
*
|
|
17
|
-
* @author lxm
|
|
18
|
-
* @date 2022-11-24 19:11:59
|
|
12
|
+
* @description 计数,当前等待的异步逻辑个数
|
|
19
13
|
* @type {number}
|
|
14
|
+
* @memberof CountLatch
|
|
20
15
|
*/
|
|
21
16
|
this.count = 0;
|
|
22
17
|
}
|
|
23
18
|
/**
|
|
24
|
-
* 开启promise
|
|
25
|
-
*
|
|
26
|
-
* @author lxm
|
|
27
|
-
* @date 2022-11-24 19:11:32
|
|
19
|
+
* @description 开启promise
|
|
28
20
|
* @private
|
|
21
|
+
* @memberof CountLatch
|
|
29
22
|
*/
|
|
30
23
|
startPromise() {
|
|
31
24
|
this.promise = new Promise(resolve => {
|
|
@@ -33,11 +26,9 @@ export class CountLatch {
|
|
|
33
26
|
});
|
|
34
27
|
}
|
|
35
28
|
/**
|
|
36
|
-
* 结束promise
|
|
37
|
-
*
|
|
38
|
-
* @author lxm
|
|
39
|
-
* @date 2022-11-24 19:11:44
|
|
29
|
+
* @description 结束promise
|
|
40
30
|
* @private
|
|
31
|
+
* @memberof CountLatch
|
|
41
32
|
*/
|
|
42
33
|
endPromise() {
|
|
43
34
|
if (this.resolve) {
|
|
@@ -47,11 +38,8 @@ export class CountLatch {
|
|
|
47
38
|
}
|
|
48
39
|
}
|
|
49
40
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* @author lxm
|
|
54
|
-
* @date 2022-11-24 19:11:27
|
|
41
|
+
* @description 上锁,计数加一,第一次计数,开启异步
|
|
42
|
+
* @memberof CountLatch
|
|
55
43
|
*/
|
|
56
44
|
lock() {
|
|
57
45
|
this.count += 1;
|
|
@@ -60,11 +48,8 @@ export class CountLatch {
|
|
|
60
48
|
}
|
|
61
49
|
}
|
|
62
50
|
/**
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* @author lxm
|
|
67
|
-
* @date 2022-11-24 19:11:47
|
|
51
|
+
* @description 解锁,计数减一,归零时结束异步
|
|
52
|
+
* @memberof CountLatch
|
|
68
53
|
*/
|
|
69
54
|
unlock() {
|
|
70
55
|
if (this.count < 1) {
|
|
@@ -76,10 +61,9 @@ export class CountLatch {
|
|
|
76
61
|
}
|
|
77
62
|
}
|
|
78
63
|
/**
|
|
79
|
-
* 等待,计数归零异步结束
|
|
80
|
-
*
|
|
81
|
-
* @
|
|
82
|
-
* @date 2022-11-24 19:11:20
|
|
64
|
+
* @description 等待,计数归零异步结束
|
|
65
|
+
* @returns {*} {Promise<void>}
|
|
66
|
+
* @memberof CountLatch
|
|
83
67
|
*/
|
|
84
68
|
async await() {
|
|
85
69
|
if (this.promise) {
|
|
@@ -1,58 +1,41 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 文件List转数组
|
|
3
|
-
*
|
|
4
|
-
* @author lxm
|
|
5
|
-
* @date 2022-11-18 13:11:03
|
|
2
|
+
* @description 文件List转数组
|
|
6
3
|
* @export
|
|
7
4
|
* @param {FileList} fileList
|
|
8
|
-
* @returns {*}
|
|
5
|
+
* @returns {*} {File[]}
|
|
9
6
|
*/
|
|
10
7
|
export declare function fileListToArr(fileList: FileList): File[];
|
|
11
8
|
/**
|
|
12
|
-
* JS打开文件上传操作配置参数
|
|
13
|
-
*
|
|
14
|
-
* @author lxm
|
|
15
|
-
* @date 2022-11-20 21:11:47
|
|
9
|
+
* @description JS打开文件上传操作配置参数
|
|
16
10
|
* @export
|
|
17
11
|
* @interface SelectFileOpts
|
|
18
12
|
*/
|
|
19
13
|
export interface SelectFileOpts {
|
|
20
14
|
/**
|
|
21
|
-
* 接受的文件类型
|
|
22
|
-
*
|
|
23
|
-
* @author lxm
|
|
24
|
-
* @date 2022-11-20 21:11:52
|
|
15
|
+
* @description 接受的文件类型
|
|
25
16
|
* @type {string}
|
|
17
|
+
* @memberof SelectFileOpts
|
|
26
18
|
*/
|
|
27
19
|
accept?: string;
|
|
28
20
|
/**
|
|
29
|
-
* 是否支持多选
|
|
30
|
-
*
|
|
31
|
-
* @author lxm
|
|
32
|
-
* @date 2022-11-20 21:11:52
|
|
21
|
+
* @description 是否支持多选
|
|
33
22
|
* @type {boolean}
|
|
23
|
+
* @memberof SelectFileOpts
|
|
34
24
|
*/
|
|
35
25
|
multiple?: boolean;
|
|
36
26
|
/**
|
|
37
|
-
* 选中文件后回调
|
|
38
|
-
*
|
|
39
|
-
* @author lxm
|
|
40
|
-
* @date 2022-11-20 21:11:50
|
|
27
|
+
* @description 选中文件后回调
|
|
28
|
+
* @memberof SelectFileOpts
|
|
41
29
|
*/
|
|
42
30
|
onSelected: (_fileList: File[]) => void;
|
|
43
31
|
/**
|
|
44
|
-
* 没有选中文件,点击了取消的场景
|
|
45
|
-
*
|
|
46
|
-
* @author lxm
|
|
47
|
-
* @date 2022-11-20 21:11:50
|
|
32
|
+
* @description 没有选中文件,点击了取消的场景
|
|
33
|
+
* @memberof SelectFileOpts
|
|
48
34
|
*/
|
|
49
35
|
onCancel?: () => void;
|
|
50
36
|
}
|
|
51
37
|
/**
|
|
52
|
-
* JS打开文件上传操作
|
|
53
|
-
*
|
|
54
|
-
* @author lxm
|
|
55
|
-
* @date 2022-11-20 21:11:31
|
|
38
|
+
* @description JS打开文件上传操作
|
|
56
39
|
* @export
|
|
57
40
|
* @param {SelectFileOpts} _opts 配置参数
|
|
58
41
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-file.d.ts","sourceRoot":"","sources":["../../../src/utils/upload/select-file.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"select-file.d.ts","sourceRoot":"","sources":["../../../src/utils/upload/select-file.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,EAAE,CAMxD;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,UAAU,EAAE,CAAC,SAAS,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,CAyCtD"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { merge } from 'lodash-es';
|
|
2
2
|
/**
|
|
3
|
-
* 文件List转数组
|
|
4
|
-
*
|
|
5
|
-
* @author lxm
|
|
6
|
-
* @date 2022-11-18 13:11:03
|
|
3
|
+
* @description 文件List转数组
|
|
7
4
|
* @export
|
|
8
5
|
* @param {FileList} fileList
|
|
9
|
-
* @returns {*}
|
|
6
|
+
* @returns {*} {File[]}
|
|
10
7
|
*/
|
|
11
8
|
export function fileListToArr(fileList) {
|
|
12
9
|
const files = [];
|
|
@@ -16,10 +13,7 @@ export function fileListToArr(fileList) {
|
|
|
16
13
|
return files;
|
|
17
14
|
}
|
|
18
15
|
/**
|
|
19
|
-
* JS打开文件上传操作
|
|
20
|
-
*
|
|
21
|
-
* @author lxm
|
|
22
|
-
* @date 2022-11-20 21:11:31
|
|
16
|
+
* @description JS打开文件上传操作
|
|
23
17
|
* @export
|
|
24
18
|
* @param {SelectFileOpts} _opts 配置参数
|
|
25
19
|
*/
|
|
@@ -10,19 +10,15 @@ export interface IUploadFile {
|
|
|
10
10
|
export interface IUploadFileOpts {
|
|
11
11
|
uploadUrl: string;
|
|
12
12
|
/**
|
|
13
|
-
* 接受的文件类型
|
|
14
|
-
*
|
|
15
|
-
* @author lxm
|
|
16
|
-
* @date 2022-11-20 21:11:52
|
|
13
|
+
* @description 接受的文件类型
|
|
17
14
|
* @type {string}
|
|
15
|
+
* @memberof IUploadFileOpts
|
|
18
16
|
*/
|
|
19
17
|
accept?: string;
|
|
20
18
|
/**
|
|
21
|
-
* 是否支持多选
|
|
22
|
-
*
|
|
23
|
-
* @
|
|
24
|
-
* @date 2022-11-20 21:11:52
|
|
25
|
-
* @type {Boolean}
|
|
19
|
+
* @description 是否支持多选
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof IUploadFileOpts
|
|
26
22
|
*/
|
|
27
23
|
multiple?: boolean;
|
|
28
24
|
separate?: string;
|
|
@@ -34,13 +30,9 @@ export interface IUploadFileOpts {
|
|
|
34
30
|
progress?: (_files: IUploadFile[]) => void;
|
|
35
31
|
}
|
|
36
32
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* @author lxm
|
|
40
|
-
* @date 2022-11-20 21:11:52
|
|
33
|
+
* @description 上传文件
|
|
41
34
|
* @export
|
|
42
35
|
* @param {IUploadFileOpts} _opts
|
|
43
|
-
* @returns {*}
|
|
44
36
|
*/
|
|
45
37
|
export declare function uploadFile(_opts: IUploadFileOpts): void;
|
|
46
38
|
//# sourceMappingURL=upload-file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-file.d.ts","sourceRoot":"","sources":["../../../src/utils/upload/upload-file.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGpD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAC;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB
|
|
1
|
+
{"version":3,"file":"upload-file.d.ts","sourceRoot":"","sources":["../../../src/utils/upload/upload-file.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGpD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAC;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;IACpD,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,OAAO,CAAC;IACrE,MAAM,CAAC,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IAC/C,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IACpE,KAAK,CAAC,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/D,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;CAC5C;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,CAqJvD"}
|
|
@@ -4,13 +4,9 @@ import { cloneDeep, isFunction, merge, round, uniqueId } from 'lodash-es';
|
|
|
4
4
|
import { RuntimeError } from '../../error';
|
|
5
5
|
import { selectFile } from './select-file';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* @author lxm
|
|
10
|
-
* @date 2022-11-20 21:11:52
|
|
7
|
+
* @description 上传文件
|
|
11
8
|
* @export
|
|
12
9
|
* @param {IUploadFileOpts} _opts
|
|
13
|
-
* @returns {*}
|
|
14
10
|
*/
|
|
15
11
|
export function uploadFile(_opts) {
|
|
16
12
|
const opts = merge({
|
|
@@ -24,10 +20,7 @@ export function uploadFile(_opts) {
|
|
|
24
20
|
progress: (_files) => { },
|
|
25
21
|
}, _opts);
|
|
26
22
|
/**
|
|
27
|
-
* 进度条回调
|
|
28
|
-
*
|
|
29
|
-
* @author lxm
|
|
30
|
-
* @date 2022-11-20 21:11:47
|
|
23
|
+
* @description 进度条回调
|
|
31
24
|
* @param {IParams} event
|
|
32
25
|
* @param {IUploadFile[]} files
|
|
33
26
|
*/
|
|
@@ -38,11 +31,9 @@ export function uploadFile(_opts) {
|
|
|
38
31
|
opts.progress(cloneDeep(files));
|
|
39
32
|
};
|
|
40
33
|
/**
|
|
41
|
-
* 上传请求方法,返回响应对象
|
|
42
|
-
*
|
|
43
|
-
* @author lxm
|
|
44
|
-
* @date 2022-11-18 13:11:57
|
|
34
|
+
* @description 上传请求方法,返回响应对象
|
|
45
35
|
* @param {File[]} files
|
|
36
|
+
* @param {(_event: IParams) => void} _onProgress
|
|
46
37
|
* @returns {*} {Promise<HttpResponse>}
|
|
47
38
|
*/
|
|
48
39
|
const uploadRequest = async (files, _onProgress) => {
|
|
@@ -66,11 +57,8 @@ export function uploadFile(_opts) {
|
|
|
66
57
|
throw new RuntimeError(ibiz.i18n.t('core.utils.multiApplicationMode'));
|
|
67
58
|
};
|
|
68
59
|
/**
|
|
69
|
-
* 执行一次上传,可能是一个文件也可能是多个文件
|
|
70
|
-
*
|
|
71
|
-
* @author lxm
|
|
72
|
-
* @date 2022-11-18 14:11:54
|
|
73
|
-
* @param {File[]} files 此次上传文件的集合
|
|
60
|
+
* @description 执行一次上传,可能是一个文件也可能是多个文件
|
|
61
|
+
* @param {File[]} files
|
|
74
62
|
* @returns {*} {Promise<IUploadFile[]>}
|
|
75
63
|
*/
|
|
76
64
|
const executeSingleUpload = async (files) => {
|
|
@@ -121,11 +109,9 @@ export function uploadFile(_opts) {
|
|
|
121
109
|
return resultFiles;
|
|
122
110
|
};
|
|
123
111
|
/**
|
|
124
|
-
* 执行上传文件逻辑
|
|
125
|
-
*
|
|
126
|
-
* @
|
|
127
|
-
* @date 2022-11-18 13:11:21
|
|
128
|
-
* @param {files} File[] 文件集合
|
|
112
|
+
* @description 执行上传文件逻辑
|
|
113
|
+
* @param {File[]} files
|
|
114
|
+
* @returns {*} {Promise<void>}
|
|
129
115
|
*/
|
|
130
116
|
const uploadFiles = async (files) => {
|
|
131
117
|
const uploadSequence = opts.separate ? files.map(file => [file]) : [files];
|