@ibiz-template/core 0.7.38-alpha.57 → 0.7.40-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +106 -0
- package/dist/index.esm.js +591 -658
- package/dist/index.system.min.js +1 -1
- package/out/command/command-register.d.ts +23 -37
- package/out/command/command-register.d.ts.map +1 -1
- package/out/command/command-register.js +22 -36
- package/out/command/command.d.ts +28 -34
- package/out/command/command.d.ts.map +1 -1
- package/out/command/command.js +26 -32
- package/out/command/index.d.ts +1 -4
- package/out/command/index.d.ts.map +1 -1
- package/out/command/index.js +2 -4
- package/out/command/utils/util.d.ts +23 -15
- package/out/command/utils/util.d.ts.map +1 -1
- package/out/command/utils/util.js +22 -16
- package/out/constant/core/core.d.ts +18 -28
- package/out/constant/core/core.d.ts.map +1 -1
- package/out/constant/core/core.js +18 -28
- package/out/constant/emoji/emoji.d.ts.map +1 -1
- package/out/constant/emoji/emoji.js +2 -0
- package/out/constant/http-status-message/http-status-message.d.ts +0 -3
- package/out/constant/http-status-message/http-status-message.d.ts.map +1 -1
- package/out/constant/http-status-message/http-status-message.js +1 -3
- package/out/constant/index.d.ts +2 -4
- package/out/constant/index.d.ts.map +1 -1
- package/out/constant/index.js +2 -4
- package/out/constant/util/util.d.ts +0 -3
- package/out/constant/util/util.d.ts.map +1 -1
- package/out/constant/util/util.js +1 -3
- package/out/context/index.d.ts +34 -51
- package/out/context/index.d.ts.map +1 -1
- package/out/context/index.js +24 -33
- package/out/environment/environment.d.ts +0 -3
- package/out/environment/environment.d.ts.map +1 -1
- package/out/environment/environment.js +9 -4
- package/out/error/http-error/entity-error.d.ts +3 -17
- package/out/error/http-error/entity-error.d.ts.map +1 -1
- package/out/error/http-error/entity-error.js +2 -5
- package/out/error/http-error/http-error-factory.d.ts +5 -0
- package/out/error/http-error/http-error-factory.d.ts.map +1 -1
- package/out/error/http-error/http-error-factory.js +5 -0
- package/out/error/http-error/http-error.d.ts +3 -10
- package/out/error/http-error/http-error.d.ts.map +1 -1
- package/out/error/http-error/http-error.js +2 -5
- package/out/error/model-error/model-error.d.ts +5 -9
- package/out/error/model-error/model-error.d.ts.map +1 -1
- package/out/error/model-error/model-error.js +5 -9
- package/out/error/notice-error/notice-error.d.ts +2 -5
- package/out/error/notice-error/notice-error.d.ts.map +1 -1
- package/out/error/notice-error/notice-error.js +2 -5
- package/out/error/runtime-error/runtime-error.d.ts +2 -5
- package/out/error/runtime-error/runtime-error.d.ts.map +1 -1
- package/out/error/runtime-error/runtime-error.js +2 -5
- package/out/error/runtime-model-error/runtime-model-error.d.ts +5 -10
- package/out/error/runtime-model-error/runtime-model-error.d.ts.map +1 -1
- package/out/error/runtime-model-error/runtime-model-error.js +5 -10
- package/out/ibizsys.d.ts +24 -44
- package/out/ibizsys.d.ts.map +1 -1
- package/out/ibizsys.js +15 -29
- package/out/index.d.ts.map +1 -1
- package/out/install.d.ts +1 -4
- package/out/install.d.ts.map +1 -1
- package/out/install.js +1 -4
- package/out/interface/api/constant/index.d.ts +3 -0
- package/out/interface/api/constant/index.d.ts.map +1 -0
- package/out/interface/api/constant/index.js +2 -0
- package/out/{constant → interface/api/constant}/login-mode/login-mode.d.ts +1 -4
- package/out/interface/api/constant/login-mode/login-mode.d.ts.map +1 -0
- package/out/{constant → interface/api/constant}/login-mode/login-mode.js +1 -4
- package/out/{constant → interface/api/constant}/menu-permission-mode/menu-permission-mode.d.ts +1 -4
- package/out/interface/api/constant/menu-permission-mode/menu-permission-mode.d.ts.map +1 -0
- package/out/{constant → interface/api/constant}/menu-permission-mode/menu-permission-mode.js +1 -4
- package/out/interface/api/environment/i-devtool-config.d.ts +33 -0
- package/out/interface/api/environment/i-devtool-config.d.ts.map +1 -0
- package/out/interface/api/environment/i-environment.d.ts +282 -0
- package/out/interface/api/environment/i-environment.d.ts.map +1 -0
- package/out/interface/api/environment/index.d.ts +3 -0
- package/out/interface/api/environment/index.d.ts.map +1 -0
- package/out/interface/api/global-param/i-api-context.d.ts +33 -0
- package/out/interface/api/global-param/i-api-context.d.ts.map +1 -0
- package/out/interface/api/global-param/i-global-param.d.ts +25 -0
- package/out/interface/api/global-param/i-global-param.d.ts.map +1 -0
- package/out/interface/api/global-param/index.d.ts +3 -0
- package/out/interface/api/global-param/index.d.ts.map +1 -0
- package/out/interface/api/ibizsys/i-api-ibizsys.d.ts +48 -0
- package/out/interface/api/ibizsys/i-api-ibizsys.d.ts.map +1 -0
- package/out/interface/api/ibizsys/i-org-data.d.ts +32 -0
- package/out/interface/api/ibizsys/i-org-data.d.ts.map +1 -0
- package/out/interface/api/ibizsys/index.d.ts +3 -0
- package/out/interface/api/ibizsys/index.d.ts.map +1 -0
- package/out/interface/api/index.d.ts +6 -0
- package/out/interface/api/index.d.ts.map +1 -0
- package/out/interface/api/index.js +5 -0
- package/out/interface/api/utils/i-api-i18n.d.ts +51 -0
- package/out/interface/api/utils/i-api-i18n.d.ts.map +1 -0
- package/out/interface/api/utils/index.d.ts +5 -0
- package/out/interface/api/utils/index.d.ts.map +1 -0
- package/out/interface/api/utils/index.js +1 -0
- package/out/interface/api/utils/message-center/base/i-message-all.d.ts +10 -0
- package/out/interface/api/utils/message-center/base/i-message-all.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/base/i-message-base.d.ts +27 -0
- package/out/interface/api/utils/message-center/base/i-message-base.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/base/index.d.ts +3 -0
- package/out/interface/api/utils/message-center/base/index.d.ts.map +1 -0
- package/out/interface/{i-add-in-changed → api/utils/message-center/command/add-in-changed}/i-add-in-changed.d.ts +4 -8
- package/out/interface/api/utils/message-center/command/add-in-changed/i-add-in-changed.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.d.ts +17 -0
- package/out/interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/async-action/i-command-async-action.d.ts +17 -0
- package/out/interface/api/utils/message-center/command/async-action/i-command-async-action.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/change/i-command-change.d.ts +10 -0
- package/out/interface/api/utils/message-center/command/change/i-command-change.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/change/i-command-change.js +1 -0
- package/out/interface/api/utils/message-center/command/create/i-command-create.d.ts +18 -0
- package/out/interface/api/utils/message-center/command/create/i-command-create.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/create/i-command-create.js +1 -0
- package/out/interface/api/utils/message-center/command/i-command-base.d.ts +20 -0
- package/out/interface/api/utils/message-center/command/i-command-base.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/i-command-base.js +1 -0
- package/out/interface/api/utils/message-center/command/i-message-command.d.ts +82 -0
- package/out/interface/api/utils/message-center/command/i-message-command.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/i-message-command.js +1 -0
- package/out/interface/api/utils/message-center/command/index.d.ts +14 -0
- package/out/interface/api/utils/message-center/command/index.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/index.js +1 -0
- package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.d.ts +17 -0
- package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.js +1 -0
- package/out/interface/{i-internal-message → api/utils/message-center/command/internal-message}/i-internal-message.d.ts +35 -54
- package/out/interface/api/utils/message-center/command/internal-message/i-internal-message.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/internal-message/i-internal-message.js +1 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.d.ts +17 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.js +1 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.d.ts +46 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.js +1 -0
- package/out/interface/api/utils/message-center/command/remove/i-command-remove.d.ts +18 -0
- package/out/interface/api/utils/message-center/command/remove/i-command-remove.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/remove/i-command-remove.js +1 -0
- package/out/interface/api/utils/message-center/command/update/i-command-update.d.ts +18 -0
- package/out/interface/api/utils/message-center/command/update/i-command-update.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/update/i-command-update.js +1 -0
- package/out/interface/api/utils/message-center/common/i-app-data-entity.d.ts +16 -0
- package/out/interface/api/utils/message-center/common/i-app-data-entity.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/i-app-data-entity.js +1 -0
- package/out/interface/api/utils/message-center/common/i-message-center-event.d.ts +10 -0
- package/out/interface/api/utils/message-center/common/i-message-center-event.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/i-message-center-event.js +1 -0
- package/out/interface/api/utils/message-center/common/i-msg-meta-data.d.ts +14 -0
- package/out/interface/api/utils/message-center/common/i-msg-meta-data.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/i-msg-meta-data.js +1 -0
- package/out/interface/api/utils/message-center/common/i-portal-async-action.d.ts +134 -0
- package/out/interface/api/utils/message-center/common/i-portal-async-action.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/i-portal-async-action.js +1 -0
- package/out/interface/api/utils/message-center/common/i-portal-message.d.ts +70 -0
- package/out/interface/api/utils/message-center/common/i-portal-message.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/i-portal-message.js +1 -0
- package/out/interface/api/utils/message-center/common/index.d.ts +6 -0
- package/out/interface/api/utils/message-center/common/index.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/index.js +1 -0
- package/out/interface/api/utils/message-center/console/i-message-console.d.ts +17 -0
- package/out/interface/api/utils/message-center/console/i-message-console.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/console/i-message-console.js +1 -0
- package/out/interface/api/utils/message-center/error/i-message-error.d.ts +17 -0
- package/out/interface/api/utils/message-center/error/i-message-error.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/error/i-message-error.js +1 -0
- package/out/interface/api/utils/message-center/i-message-center.d.ts +48 -0
- package/out/interface/api/utils/message-center/i-message-center.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/i-message-center.js +1 -0
- package/out/interface/api/utils/message-center/index.d.ts +7 -0
- package/out/interface/api/utils/message-center/index.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/index.js +3 -0
- package/out/interface/api/utils/net/i-api-net.d.ts +65 -0
- package/out/interface/api/utils/net/i-api-net.d.ts.map +1 -0
- package/out/interface/api/utils/net/i-api-net.js +1 -0
- package/out/interface/api/utils/net/i-http-response.d.ts +60 -0
- package/out/interface/api/utils/net/i-http-response.d.ts.map +1 -0
- package/out/interface/api/utils/net/i-http-response.js +1 -0
- package/out/interface/click-outside/click-outside.d.ts +15 -36
- package/out/interface/click-outside/click-outside.d.ts.map +1 -1
- package/out/interface/command/command/i-command-option.d.ts +46 -0
- package/out/interface/command/command/i-command-option.d.ts.map +1 -0
- package/out/interface/command/command/i-command-option.js +1 -0
- package/out/interface/command/command/i-command.d.ts +61 -0
- package/out/interface/command/command/i-command.d.ts.map +1 -0
- package/out/interface/command/command/i-command.js +1 -0
- package/out/interface/command/disposable/i-disposable.d.ts +13 -0
- package/out/interface/command/disposable/i-disposable.d.ts.map +1 -0
- package/out/interface/command/disposable/i-disposable.js +1 -0
- package/out/interface/command/i-command-controller.d.ts +43 -0
- package/out/interface/command/i-command-controller.d.ts.map +1 -0
- package/out/interface/command/i-command-controller.js +1 -0
- package/out/interface/command/index.d.ts +5 -0
- package/out/interface/command/index.d.ts.map +1 -0
- package/out/interface/command/index.js +1 -0
- package/out/interface/context/index.d.ts +39 -0
- package/out/interface/context/index.d.ts.map +1 -0
- package/out/interface/context/index.js +1 -0
- package/out/interface/error/index.d.ts +12 -0
- package/out/interface/error/index.d.ts.map +1 -0
- package/out/interface/error/index.js +1 -0
- package/out/interface/i-chat-message/i-chat-message.d.ts +24 -37
- package/out/interface/i-chat-message/i-chat-message.d.ts.map +1 -1
- package/out/interface/ibizsys/i-ibizsys.d.ts +30 -0
- package/out/interface/ibizsys/i-ibizsys.d.ts.map +1 -0
- package/out/interface/ibizsys/i-ibizsys.js +1 -0
- package/out/interface/ibizsys/index.d.ts +2 -0
- package/out/interface/ibizsys/index.d.ts.map +1 -0
- package/out/interface/ibizsys/index.js +1 -0
- package/out/interface/index.d.ts +8 -9
- package/out/interface/index.d.ts.map +1 -1
- package/out/interface/index.js +6 -0
- package/out/interface/utils/i-18n.d.ts +21 -0
- package/out/interface/utils/i-18n.d.ts.map +1 -0
- package/out/interface/utils/i-18n.js +1 -0
- package/out/interface/utils/index.d.ts +2 -0
- package/out/interface/utils/index.d.ts.map +1 -0
- package/out/interface/utils/index.js +1 -0
- package/out/params/params.d.ts +20 -24
- package/out/params/params.d.ts.map +1 -1
- package/out/params/params.js +16 -18
- package/out/types.d.ts +5 -113
- package/out/types.d.ts.map +1 -1
- package/out/utils/bit-mask/bit-mask.d.ts +9 -32
- package/out/utils/bit-mask/bit-mask.d.ts.map +1 -1
- package/out/utils/bit-mask/bit-mask.js +10 -37
- package/out/utils/click-outside/click-outside.d.ts +1 -4
- package/out/utils/click-outside/click-outside.d.ts.map +1 -1
- package/out/utils/click-outside/click-outside.js +1 -4
- package/out/utils/clone/clone.d.ts +3 -7
- package/out/utils/clone/clone.d.ts.map +1 -1
- package/out/utils/clone/clone.js +7 -12
- package/out/utils/color/color.d.ts +4 -6
- package/out/utils/color/color.d.ts.map +1 -1
- package/out/utils/color/color.js +5 -8
- package/out/utils/cookie-util/cookie-util.d.ts +16 -27
- package/out/utils/cookie-util/cookie-util.d.ts.map +1 -1
- package/out/utils/cookie-util/cookie-util.js +126 -55
- package/out/utils/data-type/data-types.d.ts +13 -19
- package/out/utils/data-type/data-types.d.ts.map +1 -1
- package/out/utils/data-type/data-types.js +13 -19
- package/out/utils/download-file/download-file.d.ts +6 -15
- package/out/utils/download-file/download-file.d.ts.map +1 -1
- package/out/utils/download-file/download-file.js +6 -15
- package/out/utils/event/event.d.ts +6 -14
- package/out/utils/event/event.d.ts.map +1 -1
- package/out/utils/event/event.js +6 -14
- package/out/utils/history-list/history-item.d.ts +5 -10
- package/out/utils/history-list/history-item.d.ts.map +1 -1
- package/out/utils/history-list/history-item.js +5 -10
- package/out/utils/history-list/history-list.d.ts +31 -45
- package/out/utils/history-list/history-list.d.ts.map +1 -1
- package/out/utils/history-list/history-list.js +28 -40
- package/out/utils/index.d.ts +1 -2
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/interceptor/core-interceptor.d.ts +16 -4
- package/out/utils/interceptor/core-interceptor.d.ts.map +1 -1
- package/out/utils/interceptor/core-interceptor.js +62 -4
- package/out/utils/interceptor/interceptor.d.ts +29 -39
- package/out/utils/interceptor/interceptor.d.ts.map +1 -1
- package/out/utils/interceptor/interceptor.js +23 -31
- package/out/utils/message-center/base/message-all.d.ts +3 -5
- package/out/utils/message-center/base/message-all.d.ts.map +1 -1
- package/out/utils/message-center/base/message-all.js +1 -4
- package/out/utils/message-center/base/message-base.d.ts +23 -40
- package/out/utils/message-center/base/message-base.d.ts.map +1 -1
- package/out/utils/message-center/base/message-base.js +20 -26
- package/out/utils/message-center/command/add-in-changed/command-add-in-changed.d.ts +5 -6
- package/out/utils/message-center/command/add-in-changed/command-add-in-changed.d.ts.map +1 -1
- package/out/utils/message-center/command/add-in-changed/command-add-in-changed.js +3 -4
- package/out/utils/message-center/command/async-action/command-async-action.d.ts +6 -10
- package/out/utils/message-center/command/async-action/command-async-action.d.ts.map +1 -1
- package/out/utils/message-center/command/async-action/command-async-action.js +4 -8
- package/out/utils/message-center/command/change/command-change.d.ts +4 -5
- package/out/utils/message-center/command/change/command-change.d.ts.map +1 -1
- package/out/utils/message-center/command/change/command-change.js +2 -4
- package/out/utils/message-center/command/command-base/command-base.d.ts +10 -15
- package/out/utils/message-center/command/command-base/command-base.d.ts.map +1 -1
- package/out/utils/message-center/command/command-base/command-base.js +7 -12
- package/out/utils/message-center/command/create/command-create.d.ts +8 -12
- package/out/utils/message-center/command/create/command-create.d.ts.map +1 -1
- package/out/utils/message-center/command/create/command-create.js +6 -10
- package/out/utils/message-center/command/internal-message/command-internal-message.d.ts +7 -11
- package/out/utils/message-center/command/internal-message/command-internal-message.d.ts.map +1 -1
- package/out/utils/message-center/command/internal-message/command-internal-message.js +5 -9
- package/out/utils/message-center/command/mark-open-data/command-mark-open-data.d.ts +6 -10
- package/out/utils/message-center/command/mark-open-data/command-mark-open-data.d.ts.map +1 -1
- package/out/utils/message-center/command/mark-open-data/command-mark-open-data.js +4 -8
- package/out/utils/message-center/command/message-command.d.ts +31 -45
- package/out/utils/message-center/command/message-command.d.ts.map +1 -1
- package/out/utils/message-center/command/message-command.js +29 -43
- package/out/utils/message-center/command/remove/command-remove.d.ts +7 -11
- package/out/utils/message-center/command/remove/command-remove.d.ts.map +1 -1
- package/out/utils/message-center/command/remove/command-remove.js +5 -9
- package/out/utils/message-center/command/update/command-update.d.ts +7 -11
- package/out/utils/message-center/command/update/command-update.d.ts.map +1 -1
- package/out/utils/message-center/command/update/command-update.js +5 -9
- package/out/utils/message-center/console/message-console.d.ts +6 -9
- package/out/utils/message-center/console/message-console.d.ts.map +1 -1
- package/out/utils/message-center/console/message-console.js +4 -8
- package/out/utils/message-center/error/message-error.d.ts +6 -9
- package/out/utils/message-center/error/message-error.d.ts.map +1 -1
- package/out/utils/message-center/error/message-error.js +4 -8
- package/out/utils/message-center/index.d.ts +0 -1
- package/out/utils/message-center/index.d.ts.map +1 -1
- package/out/utils/message-center/message-center.d.ts +20 -35
- package/out/utils/message-center/message-center.d.ts.map +1 -1
- package/out/utils/message-center/message-center.js +18 -33
- package/out/utils/namespace/namespace.d.ts +45 -75
- package/out/utils/namespace/namespace.d.ts.map +1 -1
- package/out/utils/namespace/namespace.js +53 -81
- package/out/utils/net/http-response.d.ts +6 -66
- package/out/utils/net/http-response.d.ts.map +1 -1
- package/out/utils/net/http-response.js +4 -11
- package/out/utils/net/net.d.ts +57 -100
- package/out/utils/net/net.d.ts.map +1 -1
- package/out/utils/net/net.js +53 -94
- package/out/utils/recursive/find-recursive-child.d.ts +2 -10
- package/out/utils/recursive/find-recursive-child.d.ts.map +1 -1
- package/out/utils/recursive/find-recursive-child.js +4 -14
- package/out/utils/string-util/string-util.d.ts +19 -22
- package/out/utils/string-util/string-util.d.ts.map +1 -1
- package/out/utils/string-util/string-util.js +28 -22
- package/out/utils/style/remote-style.d.ts +1 -4
- package/out/utils/style/remote-style.d.ts.map +1 -1
- package/out/utils/style/remote-style.js +1 -4
- package/out/utils/sync/await-timeout.d.ts +1 -5
- package/out/utils/sync/await-timeout.d.ts.map +1 -1
- package/out/utils/sync/await-timeout.js +1 -5
- package/out/utils/sync/count-latch.d.ts +14 -30
- package/out/utils/sync/count-latch.d.ts.map +1 -1
- package/out/utils/sync/count-latch.js +14 -30
- package/out/utils/upload/select-file.d.ts +12 -29
- package/out/utils/upload/select-file.d.ts.map +1 -1
- package/out/utils/upload/select-file.js +3 -9
- package/out/utils/upload/upload-file.d.ts +6 -14
- package/out/utils/upload/upload-file.d.ts.map +1 -1
- package/out/utils/upload/upload-file.js +9 -23
- package/out/utils/url-helper/url-helper.d.ts +19 -30
- package/out/utils/url-helper/url-helper.d.ts.map +1 -1
- package/out/utils/url-helper/url-helper.js +19 -30
- package/out/utils/util/util.d.ts +6 -77
- package/out/utils/util/util.d.ts.map +1 -1
- package/out/utils/util/util.js +6 -77
- package/package.json +5 -8
- package/out/command/interface/command/command-option.d.ts +0 -23
- package/out/command/interface/command/command-option.d.ts.map +0 -1
- package/out/command/interface/command/command.d.ts +0 -74
- package/out/command/interface/command/command.d.ts.map +0 -1
- package/out/command/interface/disposable/disposable.d.ts +0 -4
- package/out/command/interface/disposable/disposable.d.ts.map +0 -1
- package/out/command/interface/index.d.ts +0 -4
- package/out/command/interface/index.d.ts.map +0 -1
- package/out/constant/login-mode/login-mode.d.ts.map +0 -1
- package/out/constant/menu-permission-mode/menu-permission-mode.d.ts.map +0 -1
- package/out/interface/i-18n/i-18n.d.ts +0 -81
- package/out/interface/i-18n/i-18n.d.ts.map +0 -1
- package/out/interface/i-add-in-changed/i-add-in-changed.d.ts.map +0 -1
- package/out/interface/i-devtool-config/i-devtool-config.d.ts +0 -40
- package/out/interface/i-devtool-config/i-devtool-config.d.ts.map +0 -1
- package/out/interface/i-environment/i-environment.d.ts +0 -339
- package/out/interface/i-environment/i-environment.d.ts.map +0 -1
- package/out/interface/i-internal-message/i-internal-message.d.ts.map +0 -1
- package/out/interface/i-mark-open-data/i-mark-open-data.d.ts +0 -43
- package/out/interface/i-mark-open-data/i-mark-open-data.d.ts.map +0 -1
- package/out/interface/i-portal-async-action/i-portal-async-action.d.ts +0 -163
- package/out/interface/i-portal-async-action/i-portal-async-action.d.ts.map +0 -1
- package/out/interface/i-portal-message/i-portal-message.d.ts +0 -89
- package/out/interface/i-portal-message/i-portal-message.d.ts.map +0 -1
- package/out/interface/org-data/org-data.d.ts +0 -43
- package/out/interface/org-data/org-data.d.ts.map +0 -1
- package/out/utils/message-center/interface/i-app-data-entity.d.ts +0 -20
- package/out/utils/message-center/interface/i-app-data-entity.d.ts.map +0 -1
- package/out/utils/message-center/interface/i-msg-meta-data.d.ts +0 -19
- package/out/utils/message-center/interface/i-msg-meta-data.d.ts.map +0 -1
- package/out/utils/message-center/interface/index.d.ts +0 -3
- package/out/utils/message-center/interface/index.d.ts.map +0 -1
- /package/out/interface/{i-devtool-config → api/environment}/i-devtool-config.js +0 -0
- /package/out/interface/{i-environment → api/environment}/i-environment.js +0 -0
- /package/out/{command/interface → interface/api/environment}/index.js +0 -0
- /package/out/{command/interface/command/command-option.js → interface/api/global-param/i-api-context.js} +0 -0
- /package/out/{command/interface/command/command.js → interface/api/global-param/i-global-param.js} +0 -0
- /package/out/{utils/message-center/interface → interface/api/global-param}/index.js +0 -0
- /package/out/{command/interface/disposable/disposable.js → interface/api/ibizsys/i-api-ibizsys.js} +0 -0
- /package/out/interface/{i-18n/i-18n.js → api/ibizsys/i-org-data.js} +0 -0
- /package/out/interface/{i-add-in-changed/i-add-in-changed.js → api/ibizsys/index.js} +0 -0
- /package/out/interface/{i-internal-message/i-internal-message.js → api/utils/i-api-i18n.js} +0 -0
- /package/out/interface/{i-mark-open-data/i-mark-open-data.js → api/utils/message-center/base/i-message-all.js} +0 -0
- /package/out/interface/{i-portal-async-action/i-portal-async-action.js → api/utils/message-center/base/i-message-base.js} +0 -0
- /package/out/interface/{i-portal-message/i-portal-message.js → api/utils/message-center/base/index.js} +0 -0
- /package/out/interface/{org-data/org-data.js → api/utils/message-center/command/add-in-changed/i-add-in-changed.js} +0 -0
- /package/out/{utils/message-center/interface/i-app-data-entity.js → interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.js} +0 -0
- /package/out/{utils/message-center/interface/i-msg-meta-data.js → interface/api/utils/message-center/command/async-action/i-command-async-action.js} +0 -0
|
@@ -1,50 +1,104 @@
|
|
|
1
|
+
import { CoreConst } from '../../constant';
|
|
1
2
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
* @description 获取所有的访问数据键名称
|
|
4
|
+
* @returns {string[]} 包含所有访问数据键名称的数组,如果出现错误则返回空数组
|
|
5
|
+
*/
|
|
6
|
+
function getAccessStoreAreakeys() {
|
|
7
|
+
try {
|
|
8
|
+
const key = CoreConst.ACCESS_STORE_AREA_KEYS;
|
|
9
|
+
let cookieAlls;
|
|
10
|
+
switch (ibiz.env.accessStoreArea) {
|
|
11
|
+
case 'LOCALSTORAGE':
|
|
12
|
+
cookieAlls = localStorage.getItem(key);
|
|
13
|
+
break;
|
|
14
|
+
case 'SESSIONSTORAGE':
|
|
15
|
+
cookieAlls = sessionStorage.getItem(key);
|
|
16
|
+
break;
|
|
17
|
+
default:
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
20
|
+
return JSON.parse(cookieAlls || '[]');
|
|
21
|
+
}
|
|
22
|
+
catch (error) {
|
|
23
|
+
ibiz.log.error(error);
|
|
24
|
+
return [];
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @description 将新的访问数据键名称添加到已有的名称列表中
|
|
29
|
+
* @param {string} name 要添加的访问数据键名称
|
|
30
|
+
*/
|
|
31
|
+
function setAccessStoreAreakeys(name) {
|
|
32
|
+
try {
|
|
33
|
+
const cookieAlls = [
|
|
34
|
+
...new Set(getAccessStoreAreakeys().concat([name])),
|
|
35
|
+
];
|
|
36
|
+
const key = CoreConst.ACCESS_STORE_AREA_KEYS;
|
|
37
|
+
switch (ibiz.env.accessStoreArea) {
|
|
38
|
+
case 'LOCALSTORAGE':
|
|
39
|
+
return localStorage.setItem(key, JSON.stringify(cookieAlls));
|
|
40
|
+
case 'SESSIONSTORAGE':
|
|
41
|
+
return sessionStorage.setItem(key, JSON.stringify(cookieAlls));
|
|
42
|
+
default:
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
catch (error) {
|
|
47
|
+
ibiz.log.error(error);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @description 设置cookie
|
|
52
|
+
* @export
|
|
53
|
+
* @param {string} name cookie名称
|
|
54
|
+
* @param {string} value cookie值
|
|
55
|
+
* @param {number} [day=0] 过期天数
|
|
8
56
|
* @param {boolean} [isDomain=false] 是否设置在主域下
|
|
9
57
|
* @param {string} [path='/'] 默认归属路径
|
|
10
58
|
* @param {string} [childDoMain=''] 子域,如果外部有传递,则需把cookie数据设置到传入子域上
|
|
11
|
-
* @memberof Util
|
|
12
59
|
*/
|
|
13
60
|
export function setCookie(name, value, day = 0, isDomain = false, path = '/', childDoMain = '') {
|
|
14
61
|
let domain = '';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
62
|
+
setAccessStoreAreakeys(name);
|
|
63
|
+
switch (ibiz.env.accessStoreArea) {
|
|
64
|
+
case 'LOCALSTORAGE':
|
|
65
|
+
return localStorage.setItem(name, value);
|
|
66
|
+
case 'SESSIONSTORAGE':
|
|
67
|
+
return sessionStorage.setItem(name, value);
|
|
68
|
+
default:
|
|
69
|
+
// 设置cookie到主域下
|
|
70
|
+
if (isDomain) {
|
|
71
|
+
// 是否为ip正则
|
|
72
|
+
const regExpr = /^(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)$/;
|
|
73
|
+
// 为ip时忽略
|
|
74
|
+
if (!regExpr.test(window.location.hostname)) {
|
|
75
|
+
const host = window.location.hostname;
|
|
76
|
+
if (host.indexOf('.') !== host.lastIndexOf('.')) {
|
|
77
|
+
domain = `;domain=${host.substring(host.indexOf('.'), host.length)}`;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
24
80
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
81
|
+
else if (childDoMain) {
|
|
82
|
+
domain = `;domain=${childDoMain}`;
|
|
83
|
+
}
|
|
84
|
+
// 当设置的时间等于0时,不设置expires属性,cookie在浏览器关闭后删除
|
|
85
|
+
if (day !== 0) {
|
|
86
|
+
const expires = day * 24 * 60 * 60 * 1000;
|
|
87
|
+
const date = new Date(new Date().getTime() + expires);
|
|
88
|
+
document.cookie = `${name}=${escape(value)};path=${path};expires=${date.toUTCString()}${domain}`;
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
document.cookie = `${name}=${escape(value)};path=${path}${domain}`;
|
|
92
|
+
}
|
|
93
|
+
break;
|
|
38
94
|
}
|
|
39
95
|
}
|
|
40
96
|
/**
|
|
41
|
-
* 设置应用cookie
|
|
42
|
-
*
|
|
43
|
-
* @
|
|
44
|
-
* @param {
|
|
45
|
-
* @param {
|
|
46
|
-
* @param {*} day 过期天数
|
|
47
|
-
* @memberof Util
|
|
97
|
+
* @description 设置应用cookie
|
|
98
|
+
* @export
|
|
99
|
+
* @param {string} name 名称
|
|
100
|
+
* @param {string} value 值
|
|
101
|
+
* @param {number} [day=0] 过期天数
|
|
48
102
|
*/
|
|
49
103
|
export function setAppCookie(name, value, day = 0) {
|
|
50
104
|
if (ibiz.env.cookieDomain &&
|
|
@@ -56,11 +110,9 @@ export function setAppCookie(name, value, day = 0) {
|
|
|
56
110
|
}
|
|
57
111
|
}
|
|
58
112
|
/**
|
|
59
|
-
* 清除应用cookie
|
|
60
|
-
*
|
|
61
|
-
* @static
|
|
113
|
+
* @description 清除应用cookie
|
|
114
|
+
* @export
|
|
62
115
|
* @param {string} cookieName
|
|
63
|
-
* @memberof Util
|
|
64
116
|
*/
|
|
65
117
|
export function clearAppCookie(cookieName) {
|
|
66
118
|
if (ibiz.env.cookieDomain &&
|
|
@@ -72,32 +124,51 @@ export function clearAppCookie(cookieName) {
|
|
|
72
124
|
}
|
|
73
125
|
}
|
|
74
126
|
/**
|
|
75
|
-
* 获取cookie
|
|
76
|
-
*
|
|
77
|
-
* @static
|
|
127
|
+
* @description 获取cookie
|
|
128
|
+
* @export
|
|
78
129
|
* @param {string} name
|
|
79
|
-
* @
|
|
80
|
-
* @memberof Util
|
|
130
|
+
* @returns {*} {(string | null)}
|
|
81
131
|
*/
|
|
82
132
|
export function getAppCookie(name) {
|
|
83
133
|
const reg = new RegExp(`(^| )${name}=([^;]*)(;|$)`);
|
|
84
134
|
const arr = document.cookie.match(reg);
|
|
85
|
-
|
|
86
|
-
|
|
135
|
+
switch (ibiz.env.accessStoreArea) {
|
|
136
|
+
case 'LOCALSTORAGE':
|
|
137
|
+
return localStorage.getItem(name);
|
|
138
|
+
case 'SESSIONSTORAGE':
|
|
139
|
+
return sessionStorage.getItem(name);
|
|
140
|
+
default:
|
|
141
|
+
if (arr && arr.length > 1) {
|
|
142
|
+
return unescape(arr[2]);
|
|
143
|
+
}
|
|
144
|
+
return null;
|
|
87
145
|
}
|
|
88
|
-
return null;
|
|
89
146
|
}
|
|
90
147
|
/**
|
|
91
|
-
* 重置应用cookie
|
|
92
|
-
*
|
|
93
|
-
* @author tony001
|
|
94
|
-
* @date 2025-01-07 16:01:18
|
|
148
|
+
* @description 重置应用cookie
|
|
95
149
|
* @export
|
|
96
150
|
*/
|
|
97
151
|
export function resetAppCookie() {
|
|
98
152
|
const cookies = document.cookie.split(';');
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
153
|
+
const cookieAlls = getAccessStoreAreakeys().concat([
|
|
154
|
+
CoreConst.ACCESS_STORE_AREA_KEYS,
|
|
155
|
+
]);
|
|
156
|
+
switch (ibiz.env.accessStoreArea) {
|
|
157
|
+
case 'LOCALSTORAGE':
|
|
158
|
+
for (const name of cookieAlls) {
|
|
159
|
+
localStorage.removeItem(name);
|
|
160
|
+
}
|
|
161
|
+
break;
|
|
162
|
+
case 'SESSIONSTORAGE':
|
|
163
|
+
for (const name of cookieAlls) {
|
|
164
|
+
sessionStorage.removeItem(name);
|
|
165
|
+
}
|
|
166
|
+
break;
|
|
167
|
+
default:
|
|
168
|
+
for (const cookie of cookies) {
|
|
169
|
+
const [cookieName, cookieValue] = cookie.split('=');
|
|
170
|
+
document.cookie = `${cookieName}=${cookieValue};expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/;domain=${window.location.host}`;
|
|
171
|
+
}
|
|
172
|
+
break;
|
|
102
173
|
}
|
|
103
174
|
}
|
|
@@ -1,46 +1,40 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 数据类型转换识别工具类
|
|
3
|
-
* @author lxm
|
|
4
|
-
* @date 2023-08-25 04:33:49
|
|
2
|
+
* @description 数据类型转换识别工具类
|
|
5
3
|
* @export
|
|
6
4
|
* @class DataTypes
|
|
7
5
|
*/
|
|
8
6
|
export declare class DataTypes {
|
|
9
7
|
/**
|
|
10
|
-
* 数字类型映射字符串类型
|
|
11
|
-
* @author lxm
|
|
12
|
-
* @date 2023-08-25 04:49:52
|
|
8
|
+
* @description 数字类型映射字符串类型
|
|
13
9
|
* @static
|
|
14
10
|
* @type {{ [p: number]: string }}
|
|
11
|
+
* @memberof DataTypes
|
|
15
12
|
*/
|
|
16
13
|
static readonly typeMap: {
|
|
17
14
|
[p: number]: string;
|
|
18
15
|
};
|
|
19
16
|
/**
|
|
20
|
-
* 是否是数值类型
|
|
21
|
-
* @author lxm
|
|
22
|
-
* @date 2023-08-25 04:53:30
|
|
17
|
+
* @description 是否是数值类型
|
|
23
18
|
* @static
|
|
24
|
-
* @param {number} dataType
|
|
25
|
-
* @
|
|
19
|
+
* @param {number} dataType
|
|
20
|
+
* @returns {*} {boolean}
|
|
21
|
+
* @memberof DataTypes
|
|
26
22
|
*/
|
|
27
23
|
static isNumber(dataType: number): boolean;
|
|
28
24
|
/**
|
|
29
|
-
* 是否是日期类型数据
|
|
30
|
-
*
|
|
25
|
+
* @description 是否是日期类型数据
|
|
31
26
|
* @static
|
|
32
27
|
* @param {number} dataType
|
|
33
|
-
* @
|
|
28
|
+
* @returns {*} {boolean}
|
|
34
29
|
* @memberof DataTypes
|
|
35
30
|
*/
|
|
36
31
|
static isDate(dataType: number): boolean;
|
|
37
32
|
/**
|
|
38
|
-
* 获取字符串数据类型
|
|
39
|
-
* @author lxm
|
|
40
|
-
* @date 2023-08-25 04:53:58
|
|
33
|
+
* @description 获取字符串数据类型
|
|
41
34
|
* @static
|
|
42
|
-
* @param {number} dataType
|
|
43
|
-
* @
|
|
35
|
+
* @param {number} dataType
|
|
36
|
+
* @returns {*} {string}
|
|
37
|
+
* @memberof DataTypes
|
|
44
38
|
*/
|
|
45
39
|
static toString(dataType: number): string;
|
|
46
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-types.d.ts","sourceRoot":"","sources":["../../../src/utils/data-type/data-types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"data-types.d.ts","sourceRoot":"","sources":["../../../src/utils/data-type/data-types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,SAAS;IACpB;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CA+B9C;IAEF;;;;;;OAMG;WACW,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAkBjD;;;;;;OAMG;WACW,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAK/C;;;;;;OAMG;WACW,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;CAGjD"}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 数据类型转换识别工具类
|
|
3
|
-
* @author lxm
|
|
4
|
-
* @date 2023-08-25 04:33:49
|
|
2
|
+
* @description 数据类型转换识别工具类
|
|
5
3
|
* @export
|
|
6
4
|
* @class DataTypes
|
|
7
5
|
*/
|
|
8
6
|
export class DataTypes {
|
|
9
7
|
/**
|
|
10
|
-
* 是否是数值类型
|
|
11
|
-
* @author lxm
|
|
12
|
-
* @date 2023-08-25 04:53:30
|
|
8
|
+
* @description 是否是数值类型
|
|
13
9
|
* @static
|
|
14
|
-
* @param {number} dataType
|
|
15
|
-
* @
|
|
10
|
+
* @param {number} dataType
|
|
11
|
+
* @returns {*} {boolean}
|
|
12
|
+
* @memberof DataTypes
|
|
16
13
|
*/
|
|
17
14
|
static isNumber(dataType) {
|
|
18
15
|
const numberTypes = [
|
|
@@ -32,11 +29,10 @@ export class DataTypes {
|
|
|
32
29
|
return numberTypes.includes(this.toString(dataType));
|
|
33
30
|
}
|
|
34
31
|
/**
|
|
35
|
-
* 是否是日期类型数据
|
|
36
|
-
*
|
|
32
|
+
* @description 是否是日期类型数据
|
|
37
33
|
* @static
|
|
38
34
|
* @param {number} dataType
|
|
39
|
-
* @
|
|
35
|
+
* @returns {*} {boolean}
|
|
40
36
|
* @memberof DataTypes
|
|
41
37
|
*/
|
|
42
38
|
static isDate(dataType) {
|
|
@@ -44,23 +40,21 @@ export class DataTypes {
|
|
|
44
40
|
return dateTypes.includes(this.toString(dataType));
|
|
45
41
|
}
|
|
46
42
|
/**
|
|
47
|
-
* 获取字符串数据类型
|
|
48
|
-
* @author lxm
|
|
49
|
-
* @date 2023-08-25 04:53:58
|
|
43
|
+
* @description 获取字符串数据类型
|
|
50
44
|
* @static
|
|
51
|
-
* @param {number} dataType
|
|
52
|
-
* @
|
|
45
|
+
* @param {number} dataType
|
|
46
|
+
* @returns {*} {string}
|
|
47
|
+
* @memberof DataTypes
|
|
53
48
|
*/
|
|
54
49
|
static toString(dataType) {
|
|
55
50
|
return this.typeMap[dataType];
|
|
56
51
|
}
|
|
57
52
|
}
|
|
58
53
|
/**
|
|
59
|
-
* 数字类型映射字符串类型
|
|
60
|
-
* @author lxm
|
|
61
|
-
* @date 2023-08-25 04:49:52
|
|
54
|
+
* @description 数字类型映射字符串类型
|
|
62
55
|
* @static
|
|
63
56
|
* @type {{ [p: number]: string }}
|
|
57
|
+
* @memberof DataTypes
|
|
64
58
|
*/
|
|
65
59
|
DataTypes.typeMap = {
|
|
66
60
|
0: 'UNKNOWN',
|
|
@@ -1,31 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 根据文件名称计算Mime类型
|
|
3
|
-
*
|
|
4
|
-
* @author lxm
|
|
5
|
-
* @date 2022-11-16 22:11:02
|
|
2
|
+
* @description 根据文件名称计算Mime类型
|
|
6
3
|
* @export
|
|
7
4
|
* @param {string} fileName
|
|
8
|
-
* @returns {*}
|
|
5
|
+
* @returns {*} {string}
|
|
9
6
|
*/
|
|
10
7
|
export declare function calcMimeByFileName(fileName: string): string;
|
|
11
8
|
/**
|
|
12
|
-
* 判断是否是图片格式
|
|
13
|
-
*
|
|
14
|
-
* @author lxm
|
|
15
|
-
* @date 2022-11-21 13:11:23
|
|
9
|
+
* @description 判断是否是图片格式
|
|
16
10
|
* @export
|
|
17
11
|
* @param {string} fileName
|
|
18
12
|
* @returns {*} {boolean}
|
|
19
13
|
*/
|
|
20
14
|
export declare function isImage(fileName: string): boolean;
|
|
21
15
|
/**
|
|
22
|
-
* 纯JS触发下载文件
|
|
23
|
-
*
|
|
24
|
-
* @author lxm
|
|
25
|
-
* @date 2022-11-16 22:11:24
|
|
16
|
+
* @description 纯JS触发下载文件
|
|
26
17
|
* @export
|
|
27
|
-
* @param {Blob} file
|
|
28
|
-
* @param {string} fileName
|
|
18
|
+
* @param {Blob} file
|
|
19
|
+
* @param {string} fileName
|
|
29
20
|
*/
|
|
30
21
|
export declare function downloadFileFromBlob(file: Blob, fileName: string): void;
|
|
31
22
|
//# sourceMappingURL=download-file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download-file.d.ts","sourceRoot":"","sources":["../../../src/utils/download-file/download-file.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"download-file.d.ts","sourceRoot":"","sources":["../../../src/utils/download-file/download-file.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAmD3D;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAOjD;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAmBvE"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 根据文件名称计算Mime类型
|
|
3
|
-
*
|
|
4
|
-
* @author lxm
|
|
5
|
-
* @date 2022-11-16 22:11:02
|
|
2
|
+
* @description 根据文件名称计算Mime类型
|
|
6
3
|
* @export
|
|
7
4
|
* @param {string} fileName
|
|
8
|
-
* @returns {*}
|
|
5
|
+
* @returns {*} {string}
|
|
9
6
|
*/
|
|
10
7
|
export function calcMimeByFileName(fileName) {
|
|
11
8
|
const ext = fileName.includes('.') ? fileName.split('.').pop() : '';
|
|
@@ -60,10 +57,7 @@ export function calcMimeByFileName(fileName) {
|
|
|
60
57
|
return mime;
|
|
61
58
|
}
|
|
62
59
|
/**
|
|
63
|
-
* 判断是否是图片格式
|
|
64
|
-
*
|
|
65
|
-
* @author lxm
|
|
66
|
-
* @date 2022-11-21 13:11:23
|
|
60
|
+
* @description 判断是否是图片格式
|
|
67
61
|
* @export
|
|
68
62
|
* @param {string} fileName
|
|
69
63
|
* @returns {*} {boolean}
|
|
@@ -77,13 +71,10 @@ export function isImage(fileName) {
|
|
|
77
71
|
return imageTypes.includes(ext);
|
|
78
72
|
}
|
|
79
73
|
/**
|
|
80
|
-
* 纯JS触发下载文件
|
|
81
|
-
*
|
|
82
|
-
* @author lxm
|
|
83
|
-
* @date 2022-11-16 22:11:24
|
|
74
|
+
* @description 纯JS触发下载文件
|
|
84
75
|
* @export
|
|
85
|
-
* @param {Blob} file
|
|
86
|
-
* @param {string} fileName
|
|
76
|
+
* @param {Blob} file
|
|
77
|
+
* @param {string} fileName
|
|
87
78
|
*/
|
|
88
79
|
export function downloadFileFromBlob(file, fileName) {
|
|
89
80
|
// 获取文件名
|
|
@@ -1,30 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 计算event的composedPath返回事件路径(兼容了IE)
|
|
3
|
-
*
|
|
4
|
-
* @author lxm
|
|
5
|
-
* @date 2022-10-28 17:10:14
|
|
2
|
+
* @description 计算event的composedPath返回事件路径(兼容了IE)
|
|
3
|
+
* @export
|
|
6
4
|
* @param {MouseEvent} event
|
|
7
|
-
* @returns {*}
|
|
5
|
+
* @returns {*} {((EventTarget | null)[])}
|
|
8
6
|
*/
|
|
9
7
|
export declare function eventPath(event: MouseEvent): (EventTarget | null)[];
|
|
10
8
|
/**
|
|
11
|
-
* 监听JS原生事件,返回cleanup回调,调用后删除该监听
|
|
12
|
-
*
|
|
13
|
-
* @author lxm
|
|
14
|
-
* @date 2022-10-28 18:10:36
|
|
9
|
+
* @description 监听JS原生事件,返回cleanup回调,调用后删除该监听
|
|
15
10
|
* @export
|
|
16
11
|
* @param {EventTarget} target 监听对象
|
|
17
12
|
* @param {string} eventName 监听事件名称
|
|
18
13
|
* @param {(..._args: any[]) => any} listener 监听回调
|
|
19
|
-
* @param {AddEventListenerOptions} options 额外参数
|
|
14
|
+
* @param {AddEventListenerOptions} [options={}] 额外参数
|
|
20
15
|
* @returns {*} {() => void}
|
|
21
16
|
*/
|
|
22
17
|
export declare function listenJSEvent(target: EventTarget, eventName: string, listener: (..._args: any[]) => any, options?: AddEventListenerOptions): () => void;
|
|
23
18
|
/**
|
|
24
|
-
* event是否是在目标元素内部触发的
|
|
25
|
-
*
|
|
26
|
-
* @author lxm
|
|
27
|
-
* @date 2022-10-31 11:10:49
|
|
19
|
+
* @description event是否是在目标元素内部触发的
|
|
28
20
|
* @export
|
|
29
21
|
* @param {MouseEvent} event 原生事件
|
|
30
22
|
* @param {HTMLElement} el 目标元素
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/utils/event/event.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/utils/event/event.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,CAmBnE;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,WAAW,EACnB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE,KAAK,GAAG,EAClC,OAAO,GAAE,uBAA4B,GACpC,MAAM,IAAI,CAYZ;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE,WAAW,GAAG,OAAO,CAEzE"}
|
package/out/utils/event/event.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
2
|
import { NOOP } from '../../constant';
|
|
3
3
|
/**
|
|
4
|
-
* 计算event的composedPath返回事件路径(兼容了IE)
|
|
5
|
-
*
|
|
6
|
-
* @author lxm
|
|
7
|
-
* @date 2022-10-28 17:10:14
|
|
4
|
+
* @description 计算event的composedPath返回事件路径(兼容了IE)
|
|
5
|
+
* @export
|
|
8
6
|
* @param {MouseEvent} event
|
|
9
|
-
* @returns {*}
|
|
7
|
+
* @returns {*} {((EventTarget | null)[])}
|
|
10
8
|
*/
|
|
11
9
|
export function eventPath(event) {
|
|
12
10
|
const path = ((event.composedPath && event.composedPath()) ||
|
|
@@ -23,15 +21,12 @@ export function eventPath(event) {
|
|
|
23
21
|
return [event.target].concat(getParents(event.target));
|
|
24
22
|
}
|
|
25
23
|
/**
|
|
26
|
-
* 监听JS原生事件,返回cleanup回调,调用后删除该监听
|
|
27
|
-
*
|
|
28
|
-
* @author lxm
|
|
29
|
-
* @date 2022-10-28 18:10:36
|
|
24
|
+
* @description 监听JS原生事件,返回cleanup回调,调用后删除该监听
|
|
30
25
|
* @export
|
|
31
26
|
* @param {EventTarget} target 监听对象
|
|
32
27
|
* @param {string} eventName 监听事件名称
|
|
33
28
|
* @param {(..._args: any[]) => any} listener 监听回调
|
|
34
|
-
* @param {AddEventListenerOptions} options 额外参数
|
|
29
|
+
* @param {AddEventListenerOptions} [options={}] 额外参数
|
|
35
30
|
* @returns {*} {() => void}
|
|
36
31
|
*/
|
|
37
32
|
export function listenJSEvent(target, eventName, listener, options = {}) {
|
|
@@ -46,10 +41,7 @@ export function listenJSEvent(target, eventName, listener, options = {}) {
|
|
|
46
41
|
};
|
|
47
42
|
}
|
|
48
43
|
/**
|
|
49
|
-
* event是否是在目标元素内部触发的
|
|
50
|
-
*
|
|
51
|
-
* @author lxm
|
|
52
|
-
* @date 2022-10-31 11:10:49
|
|
44
|
+
* @description event是否是在目标元素内部触发的
|
|
53
45
|
* @export
|
|
54
46
|
* @param {MouseEvent} event 原生事件
|
|
55
47
|
* @param {HTMLElement} el 目标元素
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 历史项
|
|
3
|
-
*
|
|
4
|
-
* @author chitanda
|
|
5
|
-
* @date 2023-12-28 21:12:38
|
|
2
|
+
* @description 历史项
|
|
6
3
|
* @export
|
|
7
|
-
* @class
|
|
4
|
+
* @class HistoryItem
|
|
8
5
|
* @template E
|
|
9
6
|
*/
|
|
10
7
|
export declare class HistoryItem<E> {
|
|
@@ -14,11 +11,9 @@ export declare class HistoryItem<E> {
|
|
|
14
11
|
data: E;
|
|
15
12
|
constructor(data?: unknown);
|
|
16
13
|
/**
|
|
17
|
-
* 克隆整个历史链
|
|
18
|
-
*
|
|
19
|
-
* @
|
|
20
|
-
* @date 2023-12-28 23:12:56
|
|
21
|
-
* @return {*} {HistoryItem<E>}
|
|
14
|
+
* @description 克隆整个历史链
|
|
15
|
+
* @returns {*} {HistoryItem<E>}
|
|
16
|
+
* @memberof HistoryItem
|
|
22
17
|
*/
|
|
23
18
|
clone(): HistoryItem<E>;
|
|
24
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-item.d.ts","sourceRoot":"","sources":["../../../src/utils/history-list/history-item.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"history-item.d.ts","sourceRoot":"","sources":["../../../src/utils/history-list/history-item.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,qBAAa,WAAW,CAAC,CAAC;IAExB,MAAM,CAAC,QAAQ,CAAC,SAAS,mBAAmC;IAE5D,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IAEtB,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IAEtB,IAAI,EAAE,CAAC,CAAC;gBAEI,IAAI,GAAE,OAAY;IAM9B;;;;OAIG;IACH,KAAK,IAAI,WAAW,CAAC,CAAC,CAAC;CAWxB"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { RuntimeError } from '../../error';
|
|
2
2
|
/**
|
|
3
|
-
* 历史项
|
|
4
|
-
*
|
|
5
|
-
* @author chitanda
|
|
6
|
-
* @date 2023-12-28 21:12:38
|
|
3
|
+
* @description 历史项
|
|
7
4
|
* @export
|
|
8
|
-
* @class
|
|
5
|
+
* @class HistoryItem
|
|
9
6
|
* @template E
|
|
10
7
|
*/
|
|
11
8
|
export class HistoryItem {
|
|
@@ -15,11 +12,9 @@ export class HistoryItem {
|
|
|
15
12
|
this._next = HistoryItem.Undefined;
|
|
16
13
|
}
|
|
17
14
|
/**
|
|
18
|
-
* 克隆整个历史链
|
|
19
|
-
*
|
|
20
|
-
* @
|
|
21
|
-
* @date 2023-12-28 23:12:56
|
|
22
|
-
* @return {*} {HistoryItem<E>}
|
|
15
|
+
* @description 克隆整个历史链
|
|
16
|
+
* @returns {*} {HistoryItem<E>}
|
|
17
|
+
* @memberof HistoryItem
|
|
23
18
|
*/
|
|
24
19
|
clone() {
|
|
25
20
|
// const history = new HistoryItem<E>(clone(this.data));
|