@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,39 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 路径解析助手
|
|
3
|
-
*
|
|
4
|
-
* @author lxm
|
|
5
|
-
* @date 2022-10-11 14:10:12
|
|
2
|
+
* @description 路径解析助手
|
|
6
3
|
* @export
|
|
7
4
|
* @class UrlHelper
|
|
8
5
|
*/
|
|
9
6
|
export declare class UrlHelper {
|
|
10
7
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* @
|
|
16
|
-
* @date 2022-10-11 20:10:29
|
|
17
|
-
* @returns {*}
|
|
8
|
+
* @description 路由路径前面的基础路径。如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123,返回:http://172.16.103.120:30061/portalwebapp/#
|
|
9
|
+
* @readonly
|
|
10
|
+
* @static
|
|
11
|
+
* @type {string}
|
|
12
|
+
* @memberof UrlHelper
|
|
18
13
|
*/
|
|
19
14
|
static get routeBase(): string;
|
|
20
15
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* @
|
|
26
|
-
* @date 2022-10-11 20:10:29
|
|
27
|
-
* @returns {*}
|
|
16
|
+
* @description 应用的的基础路径。如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123,返回:http://172.16.103.120:30061/portalwebapp
|
|
17
|
+
* @readonly
|
|
18
|
+
* @static
|
|
19
|
+
* @type {string}
|
|
20
|
+
* @memberof UrlHelper
|
|
28
21
|
*/
|
|
29
22
|
static get appBase(): string;
|
|
30
23
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* @
|
|
36
|
-
* @date 2022-10-11 16:10:40
|
|
37
|
-
* @returns {*}
|
|
24
|
+
* @description #开始到末尾,即路由地址。如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123,返回:/index/appportalview?params=123
|
|
25
|
+
* @readonly
|
|
26
|
+
* @static
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UrlHelper
|
|
38
29
|
*/
|
|
39
30
|
static get routePath(): string;
|
|
40
31
|
/**
|
|
41
|
-
*
|
|
42
|
-
* 如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123
|
|
43
|
-
*
|
|
44
|
-
* @author lxm
|
|
45
|
-
* @date 2022-10-11 21:10:39
|
|
32
|
+
* @description 当前地址的全路径,包含域名和参数。如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123
|
|
46
33
|
* @readonly
|
|
47
34
|
* @static
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof UrlHelper
|
|
48
37
|
*/
|
|
49
38
|
static get fullPath(): string;
|
|
50
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url-helper.d.ts","sourceRoot":"","sources":["../../../src/utils/url-helper/url-helper.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"url-helper.d.ts","sourceRoot":"","sources":["../../../src/utils/url-helper/url-helper.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,SAAS;IACpB;;;;;;OAMG;IACH,MAAM,KAAK,SAAS,IAAI,MAAM,CAG7B;IAED;;;;;;OAMG;IACH,MAAM,KAAK,OAAO,IAAI,MAAM,CAG3B;IAED;;;;;;OAMG;IACH,MAAM,KAAK,SAAS,IAAI,MAAM,CAE7B;IAED;;;;;;OAMG;IACH,MAAM,KAAK,QAAQ,IAAI,MAAM,CAE5B;CACF"}
|
|
@@ -1,58 +1,47 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 路径解析助手
|
|
3
|
-
*
|
|
4
|
-
* @author lxm
|
|
5
|
-
* @date 2022-10-11 14:10:12
|
|
2
|
+
* @description 路径解析助手
|
|
6
3
|
* @export
|
|
7
4
|
* @class UrlHelper
|
|
8
5
|
*/
|
|
9
6
|
export class UrlHelper {
|
|
10
7
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* @
|
|
16
|
-
* @date 2022-10-11 20:10:29
|
|
17
|
-
* @returns {*}
|
|
8
|
+
* @description 路由路径前面的基础路径。如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123,返回:http://172.16.103.120:30061/portalwebapp/#
|
|
9
|
+
* @readonly
|
|
10
|
+
* @static
|
|
11
|
+
* @type {string}
|
|
12
|
+
* @memberof UrlHelper
|
|
18
13
|
*/
|
|
19
14
|
static get routeBase() {
|
|
20
15
|
const hashIndex = window.location.href.lastIndexOf('#/');
|
|
21
16
|
return window.location.href.slice(0, hashIndex + 1);
|
|
22
17
|
}
|
|
23
18
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* @
|
|
29
|
-
* @date 2022-10-11 20:10:29
|
|
30
|
-
* @returns {*}
|
|
19
|
+
* @description 应用的的基础路径。如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123,返回:http://172.16.103.120:30061/portalwebapp
|
|
20
|
+
* @readonly
|
|
21
|
+
* @static
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof UrlHelper
|
|
31
24
|
*/
|
|
32
25
|
static get appBase() {
|
|
33
26
|
const { origin, pathname } = window.location;
|
|
34
27
|
return `${origin}${pathname}`.replace(/\/$/, '');
|
|
35
28
|
}
|
|
36
29
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* @
|
|
42
|
-
* @date 2022-10-11 16:10:40
|
|
43
|
-
* @returns {*}
|
|
30
|
+
* @description #开始到末尾,即路由地址。如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123,返回:/index/appportalview?params=123
|
|
31
|
+
* @readonly
|
|
32
|
+
* @static
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof UrlHelper
|
|
44
35
|
*/
|
|
45
36
|
static get routePath() {
|
|
46
37
|
return window.location.hash.replace('#', '');
|
|
47
38
|
}
|
|
48
39
|
/**
|
|
49
|
-
*
|
|
50
|
-
* 如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123
|
|
51
|
-
*
|
|
52
|
-
* @author lxm
|
|
53
|
-
* @date 2022-10-11 21:10:39
|
|
40
|
+
* @description 当前地址的全路径,包含域名和参数。如:http://172.16.103.120:30061/portalwebapp/#/index/appportalview?params=123
|
|
54
41
|
* @readonly
|
|
55
42
|
* @static
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof UrlHelper
|
|
56
45
|
*/
|
|
57
46
|
static get fullPath() {
|
|
58
47
|
return window.location.href;
|
package/out/utils/util/util.d.ts
CHANGED
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 获取认证令牌
|
|
3
|
-
*
|
|
4
|
-
* @author chitanda
|
|
5
|
-
* @date 2022-07-20 18:07:39
|
|
2
|
+
* @description 获取认证令牌
|
|
6
3
|
* @export
|
|
7
|
-
* @
|
|
4
|
+
* @returns {*} {(string | null)}
|
|
8
5
|
*/
|
|
9
6
|
export declare function getToken(): string | null;
|
|
10
7
|
/**
|
|
11
|
-
* 判断两个数组是否有相同的元素
|
|
12
|
-
*
|
|
13
8
|
* @description 判断两个数组是否有相同的元素, 用法: 传入两个数组 返回值为boolean类型
|
|
14
9
|
* @example
|
|
15
10
|
* ```
|
|
16
11
|
* isOverlap([1, 2, 3], [3, 4, 5]) // => true
|
|
17
12
|
* isOverlap([1, 2, 3], [4, 5, 6]) // => false
|
|
18
13
|
* ```
|
|
19
|
-
* @author lxm
|
|
20
|
-
* @date 2022-09-20 19:09:29
|
|
21
14
|
* @export
|
|
22
15
|
* @param {any[]} arr1
|
|
23
16
|
* @param {any[]} arr2
|
|
@@ -25,14 +18,10 @@ export declare function getToken(): string | null;
|
|
|
25
18
|
*/
|
|
26
19
|
export declare function isOverlap(arr1: any[], arr2: any[]): boolean;
|
|
27
20
|
/**
|
|
28
|
-
* 是否元素相同
|
|
29
|
-
*
|
|
30
21
|
* @description 判断两个数组是否元素相同, 用法:传入需要判断的数组 返回值是boolean类型
|
|
31
22
|
* @example
|
|
32
23
|
* isOverlap([1, 2, 3], [1, 2, 3]) // => true
|
|
33
24
|
* isOverlap([{ test1: 1, test2: 2, test3: 3 }, { test1: 2, test2: 2, test3: 3 }], [{ test1: 1, test2: 2, test3: 3 }, { test1: 2, test2: 2, test3: 3 }], 'test1') // => true
|
|
34
|
-
* @author lxm
|
|
35
|
-
* @date 2023-05-22 12:50:53
|
|
36
25
|
* @export
|
|
37
26
|
* @param {any[]} arr1
|
|
38
27
|
* @param {any[]} arr2
|
|
@@ -41,9 +30,6 @@ export declare function isOverlap(arr1: any[], arr2: any[]): boolean;
|
|
|
41
30
|
*/
|
|
42
31
|
export declare function isElementSame(arr1: any[], arr2: any[], field?: string): boolean;
|
|
43
32
|
/**
|
|
44
|
-
* 防抖并合并每次的参数,
|
|
45
|
-
* 最后一次才会执行
|
|
46
|
-
*
|
|
47
33
|
* @description 防抖并合并每次的参数,最后一次才会执行 用法:传入要防抖的函数和合并参数函数 有需要又可以传入时间 返回防抖函数执行值
|
|
48
34
|
* @example
|
|
49
35
|
* ```
|
|
@@ -68,8 +54,6 @@ export declare function isElementSame(arr1: any[], arr2: any[], field?: string):
|
|
|
68
54
|
* debouncedTestFunc(3, 4);
|
|
69
55
|
* debouncedTestFunc(4, 5); // testFunc called with (1, 5)
|
|
70
56
|
* ```
|
|
71
|
-
* @author lxm
|
|
72
|
-
* @date 2022-09-20 21:09:53
|
|
73
57
|
* @export
|
|
74
58
|
* @template T
|
|
75
59
|
* @param {T} func 要防抖的函数
|
|
@@ -82,9 +66,6 @@ export declare function isElementSame(arr1: any[], arr2: any[], field?: string):
|
|
|
82
66
|
*/
|
|
83
67
|
export declare function debounceAndMerge<T extends (...args: any[]) => any>(func: T, mergeFunc: (oldParams: Parameters<T>, newParams: Parameters<T>) => Parameters<T>, wait?: number): (...args: Parameters<T>) => any;
|
|
84
68
|
/**
|
|
85
|
-
* 防抖并合并每次的参数,最后一次才会执行
|
|
86
|
-
* 绑定方法为异步方法,给每次调用返回最终执行那次的结果
|
|
87
|
-
*
|
|
88
69
|
* @description 防抖并合并每次的参数,最后一次才会执行,绑定方法为异步方法,给每次调用返回最终执行那次的结果 用法:传入要防抖的函数和合并参数函数 返回Promise
|
|
89
70
|
* @example
|
|
90
71
|
* ```
|
|
@@ -123,8 +104,6 @@ export declare function debounceAndMerge<T extends (...args: any[]) => any>(func
|
|
|
123
104
|
* });
|
|
124
105
|
* }, 2000);
|
|
125
106
|
* ```
|
|
126
|
-
* @author lxm
|
|
127
|
-
* @date 2022-09-20 21:09:53
|
|
128
107
|
* @export
|
|
129
108
|
* @template T
|
|
130
109
|
* @param {T} func 要防抖的函数
|
|
@@ -137,39 +116,29 @@ export declare function debounceAndMerge<T extends (...args: any[]) => any>(func
|
|
|
137
116
|
*/
|
|
138
117
|
export declare function debounceAndAsyncMerge<T extends (...args: any[]) => Promise<any>>(func: T, mergeFunc: (oldParams: Parameters<T>, newParams: Parameters<T>) => Parameters<T>, wait?: number): T;
|
|
139
118
|
/**
|
|
140
|
-
* 把右侧的对象里非空的属性合并到左侧对象里
|
|
141
|
-
*
|
|
142
119
|
* @description 把右侧的对象里非空的属性合并到左侧对象里, 用法:传入需要合并的数组 无返回值
|
|
143
120
|
* @example
|
|
144
121
|
* ```
|
|
145
122
|
* obj1 = { a: 1, b: 2 }; obj2 = { c: null, d: false, e: undefined, f: 0, g: {} }; mergeInLeft(obj1, obj2); // => obj1 修改为 { a: 1, b: 2, d: false, f: 0, g: {} }
|
|
146
123
|
* obj1 = { a: 1, b: 2 }; obj2 = { a: 2, b: 3, c: null, d: false, e: undefined, f: 0, g: {} }; // => obj1 修改为 { a: 2, b: 3, d: false, f: 0, g: {} }
|
|
147
124
|
* ```
|
|
148
|
-
* @author lxm
|
|
149
|
-
* @date 2023-05-16 02:23:39
|
|
150
125
|
* @param {IData} l
|
|
151
126
|
* @param {IData} r
|
|
152
127
|
*/
|
|
153
128
|
export declare function mergeInLeft(l: IData, r: IData): void;
|
|
154
129
|
/**
|
|
155
|
-
* 把右侧的对象里非空的属性合并到左侧对象属性为空里
|
|
156
|
-
*
|
|
157
130
|
* @description 把右侧的对象里非空的属性合并到左侧对象属性为空里, 用法:传入需要合并的数组 无返回值
|
|
158
131
|
* @example
|
|
159
132
|
* ```
|
|
160
133
|
* obj1 = { a: 1, b: 2 }; obj2 = { c: null, d: false, e: undefined, f: 0, g: {} }; mergeInLeft(obj1, obj2); // => obj1 修改为 { a: 1, b: 2, d: false, f: 0, g: {} }
|
|
161
134
|
* obj1 = { a: 1, b: 2 }; obj2 = { a: 2, b: 3, c: null, d: false, e: undefined, f: 0, g: {} }; // => obj1 修改为 { a: 1, b: 2, d: false, f: 0, g: {} }
|
|
162
135
|
* ```
|
|
163
|
-
* @author zk
|
|
164
|
-
* @date 2023-06-01 02:06:36
|
|
165
136
|
* @export
|
|
166
137
|
* @param {IData} l
|
|
167
138
|
* @param {IData} r
|
|
168
139
|
*/
|
|
169
140
|
export declare function mergeDefaultInLeft(l: IData, r: IData): void;
|
|
170
141
|
/**
|
|
171
|
-
* 比较两个数组集合,找出相同和不同的元素
|
|
172
|
-
*
|
|
173
142
|
* @description 比较两个数组集合,找出相同和不同的元素 用法:传入需要比较的两个数组 返回值是{more: IData[], less: IData[], same: IData[]}
|
|
174
143
|
* @example
|
|
175
144
|
* ```
|
|
@@ -178,8 +147,6 @@ export declare function mergeDefaultInLeft(l: IData, r: IData): void;
|
|
|
178
147
|
* 数组中有引用对象
|
|
179
148
|
* compareArr([{ id: 1, name: 'John' }, { id: 2, name: 'Jane' }], [{ id: 2, name: 'Jane' }, { id: 3, name: 'Bob' }], 'id') // => {more: [{ id: 1, name: 'John' }], less: [{ id: 3, name: 'Bob' }], same: [{ id: 2, name: 'Jane' }, { id: 2, name: 'Jane' }]}
|
|
180
149
|
* ```
|
|
181
|
-
* @author lxm
|
|
182
|
-
* @date 2023-05-29 12:33:55
|
|
183
150
|
* @export
|
|
184
151
|
* @param {IData[]} arr1 数组一
|
|
185
152
|
* @param {IData[]} arr2 数组二
|
|
@@ -196,41 +163,29 @@ export declare function compareArr(arr1: IData[], arr2: IData[], keyField?: stri
|
|
|
196
163
|
same: IData[];
|
|
197
164
|
};
|
|
198
165
|
/**
|
|
199
|
-
* 转换为数字或undefined
|
|
200
|
-
* - 如果是undefined或null 返回undefined
|
|
201
|
-
* - 其他情况转成数字,能转成数字的返回数字,NaN的返回undefined
|
|
202
|
-
*
|
|
203
166
|
* @description 转换为数字或undefined,如果是undefined或null 返回undefined,其他情况转成数字,能转成数字的返回数字,NaN的返回undefined 用法:传入任意值 返回值为number或undefined类型
|
|
204
167
|
* @example
|
|
205
168
|
* ```
|
|
206
169
|
* toNumberOrNil(5); // => 5
|
|
207
170
|
* toNumberOrNil(undefined); // => undefined
|
|
208
171
|
* ```
|
|
209
|
-
* @author lxm
|
|
210
|
-
* @date 2023-06-08 06:30:57
|
|
211
172
|
* @param {unknown} value 值
|
|
212
173
|
* @return {*} {(number | undefined)}
|
|
213
174
|
*/
|
|
214
175
|
export declare function toNumberOrNil(value: unknown): number | undefined;
|
|
215
176
|
/**
|
|
216
|
-
* 判断字符串是否是svg的格式
|
|
217
|
-
*
|
|
218
177
|
* @description 判断字符串是否是svg的格式 用法:传入svg字符串 返回值为Boolean类型
|
|
219
178
|
* @example
|
|
220
179
|
* ```
|
|
221
180
|
* isSvg('<svg xmlns="http://www.w3.org/2000/svg"><rect x="10" y="10" width="100" height="100" fill="red" /></svg>'); // => true
|
|
222
181
|
* isSvg('<svg1 xmlns="http://www.w3.org/2000/svg"><rect x="10" y="10" width="100" height="100" fill="red" /></svg1>'); // => false
|
|
223
182
|
* ```
|
|
224
|
-
* @author lxm
|
|
225
|
-
* @date 2023-10-17 02:04:28
|
|
226
183
|
* @export
|
|
227
184
|
* @param {string} str
|
|
228
185
|
* @return {*} {boolean}
|
|
229
186
|
*/
|
|
230
187
|
export declare function isSvg(str: string): boolean;
|
|
231
188
|
/**
|
|
232
|
-
* 处理浮点数相加
|
|
233
|
-
*
|
|
234
189
|
* @description 处理浮点数相加 用法:传入需要相加的数值 返回值为number类型
|
|
235
190
|
* @example
|
|
236
191
|
* ```
|
|
@@ -240,30 +195,21 @@ export declare function isSvg(str: string): boolean;
|
|
|
240
195
|
* @param {number} a
|
|
241
196
|
* @param {number} b
|
|
242
197
|
* @return {*}
|
|
243
|
-
* @author: zhujiamin
|
|
244
|
-
* @Date: 2023-11-08 17:04:09
|
|
245
198
|
*/
|
|
246
199
|
export declare function plus(a: number, b: number): number;
|
|
247
200
|
/**
|
|
248
|
-
* 根据给定的属性名称集合,
|
|
249
|
-
* 查看目标对象是否具有该属性,如果没有设置undefined的定义
|
|
250
|
-
*
|
|
251
201
|
* @description 根据给定的属性名称集合,查看目标对象是否具有该属性,如果没有设置undefined的定义 ,用法:传入对象和字符串 无返回值
|
|
252
202
|
* @example
|
|
253
203
|
* ```
|
|
254
204
|
* obj = { a: '' }; updateKeyDefine(obj, ['b']); // => obj 修改为 {a: '', b: undefined}
|
|
255
205
|
* obj = { a: '' }; updateKeyDefine(obj, ['a', 'b']) // => obj 修改为 {a: '', b: undefined}
|
|
256
206
|
* ```
|
|
257
|
-
* @author lxm
|
|
258
|
-
* @date 2023-12-20 05:21:47
|
|
259
207
|
* @export
|
|
260
208
|
* @param {IParams} target 目标对象
|
|
261
209
|
* @param {s(string | symbol)[]} keys 需要支持的属性名称集合
|
|
262
210
|
*/
|
|
263
211
|
export declare function updateKeyDefine(target: IParams, keys: (string | symbol)[]): void;
|
|
264
212
|
/**
|
|
265
|
-
* 判断字符串是否为Base64图片格式
|
|
266
|
-
*
|
|
267
213
|
* @description 判断字符串是否为Base64图片格式, 用法传入字符串 返回值为boolean类型
|
|
268
214
|
* @example
|
|
269
215
|
* ```
|
|
@@ -272,12 +218,9 @@ export declare function updateKeyDefine(target: IParams, keys: (string | symbol)
|
|
|
272
218
|
* ```
|
|
273
219
|
* @param {string} str
|
|
274
220
|
* @return {*}
|
|
275
|
-
* @author: zhujiamin
|
|
276
|
-
* @Date: 2023-12-28 10:49:23
|
|
277
221
|
*/
|
|
278
222
|
export declare function isBase64Image(str: string): boolean;
|
|
279
223
|
/**
|
|
280
|
-
* 判断字符串是否为Base64格式
|
|
281
224
|
* @description 判断字符串是否为Base64格式, 用法传入字符串 返回值为boolean类型
|
|
282
225
|
* ```
|
|
283
226
|
* isBase64('JUYwJTlGJTk4JTg0') => true
|
|
@@ -289,7 +232,6 @@ export declare function isBase64Image(str: string): boolean;
|
|
|
289
232
|
*/
|
|
290
233
|
export declare function isBase64(str: string): boolean;
|
|
291
234
|
/**
|
|
292
|
-
* 判断字符串是否为表情符号格式
|
|
293
235
|
* @description 判断字符串是否为表情符号格式, 用法传入字符串 返回值为boolean类型
|
|
294
236
|
* ```
|
|
295
237
|
* isEmoji('JUYwJTlGJTk4JTg0') => true
|
|
@@ -301,8 +243,7 @@ export declare function isBase64(str: string): boolean;
|
|
|
301
243
|
*/
|
|
302
244
|
export declare function isEmoji(str: string): boolean;
|
|
303
245
|
/**
|
|
304
|
-
* 字符串转Base64格式字符串
|
|
305
|
-
* @description 主要用于将UTF-8字符串转为Base64格式字符串
|
|
246
|
+
* @description 字符串转Base64格式字符串,主要用于将UTF-8字符串转为Base64格式字符串
|
|
306
247
|
* ```
|
|
307
248
|
* strToBase64('😄') => 'JUYwJTlGJTk4JTg0'
|
|
308
249
|
* ```
|
|
@@ -312,8 +253,7 @@ export declare function isEmoji(str: string): boolean;
|
|
|
312
253
|
*/
|
|
313
254
|
export declare function strToBase64(str: string): string;
|
|
314
255
|
/**
|
|
315
|
-
* Base64
|
|
316
|
-
* @description 主要用于将UTF-8字符串转为的Base64格式字符串转回UTF-8字符串
|
|
256
|
+
* @description Base64格式字符串转普通字符串,主要用于将UTF-8字符串转为的Base64格式字符串转回UTF-8字符串
|
|
317
257
|
* ```
|
|
318
258
|
* base64ToStr('JUYwJTlGJTk4JTg0') => '😄'
|
|
319
259
|
* ```
|
|
@@ -330,8 +270,6 @@ export declare function base64ToStr(base64: string): string;
|
|
|
330
270
|
*/
|
|
331
271
|
export declare function base64ToBlob(base64: string): Blob;
|
|
332
272
|
/**
|
|
333
|
-
* 计算各种视图打开方式的样式
|
|
334
|
-
*
|
|
335
273
|
* @description 用于计算各种视图打开方式的样式, 用法:传入数值和视图类型 返回值为number或string类型
|
|
336
274
|
* @example
|
|
337
275
|
* ```
|
|
@@ -340,12 +278,9 @@ export declare function base64ToBlob(base64: string): Blob;
|
|
|
340
278
|
* ```
|
|
341
279
|
* @param {number} value
|
|
342
280
|
* @return {*}
|
|
343
|
-
* @author: zhujiamin
|
|
344
|
-
* @Date: 2024-01-30 09:39:03
|
|
345
281
|
*/
|
|
346
282
|
export declare function calcOpenModeStyle(value: number, type: 'drawer' | 'modal' | 'popover'): string | number;
|
|
347
283
|
/**
|
|
348
|
-
* 计算title
|
|
349
284
|
* @description 根据环境变量判断是否展示title, 返回值为string或undefined类型
|
|
350
285
|
* ```
|
|
351
286
|
* enableTitle: true
|
|
@@ -359,20 +294,14 @@ export declare function calcOpenModeStyle(value: number, type: 'drawer' | 'modal
|
|
|
359
294
|
*/
|
|
360
295
|
export declare function showTitle(str: string | undefined): string | undefined;
|
|
361
296
|
/**
|
|
362
|
-
* 将非标准JSON字符串转为JSON
|
|
363
|
-
*
|
|
364
|
-
* 1. 将单引号替换为双引号
|
|
365
|
-
* 2. 给对象的属性名加上双引号
|
|
366
|
-
* 3. 去除最后一个元素后的多余逗号
|
|
367
|
-
* 4. 去除多余的空格和换行符
|
|
297
|
+
* @description 将非标准JSON字符串转为JSON对象(自动修复常见的格式问题)。1. 将单引号替换为双引号,2. 给对象的属性名加上双引号,3. 去除最后一个元素后的多余逗号,4. 去除多余的空格和换行符
|
|
368
298
|
* @export
|
|
369
299
|
* @param {string} str
|
|
370
300
|
* @return {*} {*}
|
|
371
301
|
*/
|
|
372
302
|
export declare function fixJsonString(str: string): any;
|
|
373
303
|
/**
|
|
374
|
-
*
|
|
375
|
-
* - 默认获取 0 - 1000 的随机数
|
|
304
|
+
* @description 获取随机数,默认获取 0 - 1000 的随机数
|
|
376
305
|
* @export
|
|
377
306
|
* @param {number} [min=0] 随机数最小值
|
|
378
307
|
* @param {number} [max=1000] 随机数最大值
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/utils/util/util.ts"],"names":[],"mappings":"AAOA
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/utils/util/util.ts"],"names":[],"mappings":"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"}
|