@ibiz-template/core 0.7.38-alpha.57 → 0.7.40-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +106 -0
- package/dist/index.esm.js +591 -658
- package/dist/index.system.min.js +1 -1
- package/out/command/command-register.d.ts +23 -37
- package/out/command/command-register.d.ts.map +1 -1
- package/out/command/command-register.js +22 -36
- package/out/command/command.d.ts +28 -34
- package/out/command/command.d.ts.map +1 -1
- package/out/command/command.js +26 -32
- package/out/command/index.d.ts +1 -4
- package/out/command/index.d.ts.map +1 -1
- package/out/command/index.js +2 -4
- package/out/command/utils/util.d.ts +23 -15
- package/out/command/utils/util.d.ts.map +1 -1
- package/out/command/utils/util.js +22 -16
- package/out/constant/core/core.d.ts +18 -28
- package/out/constant/core/core.d.ts.map +1 -1
- package/out/constant/core/core.js +18 -28
- package/out/constant/emoji/emoji.d.ts.map +1 -1
- package/out/constant/emoji/emoji.js +2 -0
- package/out/constant/http-status-message/http-status-message.d.ts +0 -3
- package/out/constant/http-status-message/http-status-message.d.ts.map +1 -1
- package/out/constant/http-status-message/http-status-message.js +1 -3
- package/out/constant/index.d.ts +2 -4
- package/out/constant/index.d.ts.map +1 -1
- package/out/constant/index.js +2 -4
- package/out/constant/util/util.d.ts +0 -3
- package/out/constant/util/util.d.ts.map +1 -1
- package/out/constant/util/util.js +1 -3
- package/out/context/index.d.ts +34 -51
- package/out/context/index.d.ts.map +1 -1
- package/out/context/index.js +24 -33
- package/out/environment/environment.d.ts +0 -3
- package/out/environment/environment.d.ts.map +1 -1
- package/out/environment/environment.js +9 -4
- package/out/error/http-error/entity-error.d.ts +3 -17
- package/out/error/http-error/entity-error.d.ts.map +1 -1
- package/out/error/http-error/entity-error.js +2 -5
- package/out/error/http-error/http-error-factory.d.ts +5 -0
- package/out/error/http-error/http-error-factory.d.ts.map +1 -1
- package/out/error/http-error/http-error-factory.js +5 -0
- package/out/error/http-error/http-error.d.ts +3 -10
- package/out/error/http-error/http-error.d.ts.map +1 -1
- package/out/error/http-error/http-error.js +2 -5
- package/out/error/model-error/model-error.d.ts +5 -9
- package/out/error/model-error/model-error.d.ts.map +1 -1
- package/out/error/model-error/model-error.js +5 -9
- package/out/error/notice-error/notice-error.d.ts +2 -5
- package/out/error/notice-error/notice-error.d.ts.map +1 -1
- package/out/error/notice-error/notice-error.js +2 -5
- package/out/error/runtime-error/runtime-error.d.ts +2 -5
- package/out/error/runtime-error/runtime-error.d.ts.map +1 -1
- package/out/error/runtime-error/runtime-error.js +2 -5
- package/out/error/runtime-model-error/runtime-model-error.d.ts +5 -10
- package/out/error/runtime-model-error/runtime-model-error.d.ts.map +1 -1
- package/out/error/runtime-model-error/runtime-model-error.js +5 -10
- package/out/ibizsys.d.ts +24 -44
- package/out/ibizsys.d.ts.map +1 -1
- package/out/ibizsys.js +15 -29
- package/out/index.d.ts.map +1 -1
- package/out/install.d.ts +1 -4
- package/out/install.d.ts.map +1 -1
- package/out/install.js +1 -4
- package/out/interface/api/constant/index.d.ts +3 -0
- package/out/interface/api/constant/index.d.ts.map +1 -0
- package/out/interface/api/constant/index.js +2 -0
- package/out/{constant → interface/api/constant}/login-mode/login-mode.d.ts +1 -4
- package/out/interface/api/constant/login-mode/login-mode.d.ts.map +1 -0
- package/out/{constant → interface/api/constant}/login-mode/login-mode.js +1 -4
- package/out/{constant → interface/api/constant}/menu-permission-mode/menu-permission-mode.d.ts +1 -4
- package/out/interface/api/constant/menu-permission-mode/menu-permission-mode.d.ts.map +1 -0
- package/out/{constant → interface/api/constant}/menu-permission-mode/menu-permission-mode.js +1 -4
- package/out/interface/api/environment/i-devtool-config.d.ts +33 -0
- package/out/interface/api/environment/i-devtool-config.d.ts.map +1 -0
- package/out/interface/api/environment/i-environment.d.ts +282 -0
- package/out/interface/api/environment/i-environment.d.ts.map +1 -0
- package/out/interface/api/environment/index.d.ts +3 -0
- package/out/interface/api/environment/index.d.ts.map +1 -0
- package/out/interface/api/global-param/i-api-context.d.ts +33 -0
- package/out/interface/api/global-param/i-api-context.d.ts.map +1 -0
- package/out/interface/api/global-param/i-global-param.d.ts +25 -0
- package/out/interface/api/global-param/i-global-param.d.ts.map +1 -0
- package/out/interface/api/global-param/index.d.ts +3 -0
- package/out/interface/api/global-param/index.d.ts.map +1 -0
- package/out/interface/api/ibizsys/i-api-ibizsys.d.ts +48 -0
- package/out/interface/api/ibizsys/i-api-ibizsys.d.ts.map +1 -0
- package/out/interface/api/ibizsys/i-org-data.d.ts +32 -0
- package/out/interface/api/ibizsys/i-org-data.d.ts.map +1 -0
- package/out/interface/api/ibizsys/index.d.ts +3 -0
- package/out/interface/api/ibizsys/index.d.ts.map +1 -0
- package/out/interface/api/index.d.ts +6 -0
- package/out/interface/api/index.d.ts.map +1 -0
- package/out/interface/api/index.js +5 -0
- package/out/interface/api/utils/i-api-i18n.d.ts +51 -0
- package/out/interface/api/utils/i-api-i18n.d.ts.map +1 -0
- package/out/interface/api/utils/index.d.ts +5 -0
- package/out/interface/api/utils/index.d.ts.map +1 -0
- package/out/interface/api/utils/index.js +1 -0
- package/out/interface/api/utils/message-center/base/i-message-all.d.ts +10 -0
- package/out/interface/api/utils/message-center/base/i-message-all.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/base/i-message-base.d.ts +27 -0
- package/out/interface/api/utils/message-center/base/i-message-base.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/base/index.d.ts +3 -0
- package/out/interface/api/utils/message-center/base/index.d.ts.map +1 -0
- package/out/interface/{i-add-in-changed → api/utils/message-center/command/add-in-changed}/i-add-in-changed.d.ts +4 -8
- package/out/interface/api/utils/message-center/command/add-in-changed/i-add-in-changed.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.d.ts +17 -0
- package/out/interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/async-action/i-command-async-action.d.ts +17 -0
- package/out/interface/api/utils/message-center/command/async-action/i-command-async-action.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/change/i-command-change.d.ts +10 -0
- package/out/interface/api/utils/message-center/command/change/i-command-change.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/change/i-command-change.js +1 -0
- package/out/interface/api/utils/message-center/command/create/i-command-create.d.ts +18 -0
- package/out/interface/api/utils/message-center/command/create/i-command-create.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/create/i-command-create.js +1 -0
- package/out/interface/api/utils/message-center/command/i-command-base.d.ts +20 -0
- package/out/interface/api/utils/message-center/command/i-command-base.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/i-command-base.js +1 -0
- package/out/interface/api/utils/message-center/command/i-message-command.d.ts +82 -0
- package/out/interface/api/utils/message-center/command/i-message-command.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/i-message-command.js +1 -0
- package/out/interface/api/utils/message-center/command/index.d.ts +14 -0
- package/out/interface/api/utils/message-center/command/index.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/index.js +1 -0
- package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.d.ts +17 -0
- package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/internal-message/i-command-internal-message.js +1 -0
- package/out/interface/{i-internal-message → api/utils/message-center/command/internal-message}/i-internal-message.d.ts +35 -54
- package/out/interface/api/utils/message-center/command/internal-message/i-internal-message.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/internal-message/i-internal-message.js +1 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.d.ts +17 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-command-mark-open-data.js +1 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.d.ts +46 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/mark-open-data/i-mark-open-data.js +1 -0
- package/out/interface/api/utils/message-center/command/remove/i-command-remove.d.ts +18 -0
- package/out/interface/api/utils/message-center/command/remove/i-command-remove.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/remove/i-command-remove.js +1 -0
- package/out/interface/api/utils/message-center/command/update/i-command-update.d.ts +18 -0
- package/out/interface/api/utils/message-center/command/update/i-command-update.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/command/update/i-command-update.js +1 -0
- package/out/interface/api/utils/message-center/common/i-app-data-entity.d.ts +16 -0
- package/out/interface/api/utils/message-center/common/i-app-data-entity.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/i-app-data-entity.js +1 -0
- package/out/interface/api/utils/message-center/common/i-message-center-event.d.ts +10 -0
- package/out/interface/api/utils/message-center/common/i-message-center-event.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/i-message-center-event.js +1 -0
- package/out/interface/api/utils/message-center/common/i-msg-meta-data.d.ts +14 -0
- package/out/interface/api/utils/message-center/common/i-msg-meta-data.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/i-msg-meta-data.js +1 -0
- package/out/interface/api/utils/message-center/common/i-portal-async-action.d.ts +134 -0
- package/out/interface/api/utils/message-center/common/i-portal-async-action.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/i-portal-async-action.js +1 -0
- package/out/interface/api/utils/message-center/common/i-portal-message.d.ts +70 -0
- package/out/interface/api/utils/message-center/common/i-portal-message.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/i-portal-message.js +1 -0
- package/out/interface/api/utils/message-center/common/index.d.ts +6 -0
- package/out/interface/api/utils/message-center/common/index.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/common/index.js +1 -0
- package/out/interface/api/utils/message-center/console/i-message-console.d.ts +17 -0
- package/out/interface/api/utils/message-center/console/i-message-console.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/console/i-message-console.js +1 -0
- package/out/interface/api/utils/message-center/error/i-message-error.d.ts +17 -0
- package/out/interface/api/utils/message-center/error/i-message-error.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/error/i-message-error.js +1 -0
- package/out/interface/api/utils/message-center/i-message-center.d.ts +48 -0
- package/out/interface/api/utils/message-center/i-message-center.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/i-message-center.js +1 -0
- package/out/interface/api/utils/message-center/index.d.ts +7 -0
- package/out/interface/api/utils/message-center/index.d.ts.map +1 -0
- package/out/interface/api/utils/message-center/index.js +3 -0
- package/out/interface/api/utils/net/i-api-net.d.ts +65 -0
- package/out/interface/api/utils/net/i-api-net.d.ts.map +1 -0
- package/out/interface/api/utils/net/i-api-net.js +1 -0
- package/out/interface/api/utils/net/i-http-response.d.ts +60 -0
- package/out/interface/api/utils/net/i-http-response.d.ts.map +1 -0
- package/out/interface/api/utils/net/i-http-response.js +1 -0
- package/out/interface/click-outside/click-outside.d.ts +15 -36
- package/out/interface/click-outside/click-outside.d.ts.map +1 -1
- package/out/interface/command/command/i-command-option.d.ts +46 -0
- package/out/interface/command/command/i-command-option.d.ts.map +1 -0
- package/out/interface/command/command/i-command-option.js +1 -0
- package/out/interface/command/command/i-command.d.ts +61 -0
- package/out/interface/command/command/i-command.d.ts.map +1 -0
- package/out/interface/command/command/i-command.js +1 -0
- package/out/interface/command/disposable/i-disposable.d.ts +13 -0
- package/out/interface/command/disposable/i-disposable.d.ts.map +1 -0
- package/out/interface/command/disposable/i-disposable.js +1 -0
- package/out/interface/command/i-command-controller.d.ts +43 -0
- package/out/interface/command/i-command-controller.d.ts.map +1 -0
- package/out/interface/command/i-command-controller.js +1 -0
- package/out/interface/command/index.d.ts +5 -0
- package/out/interface/command/index.d.ts.map +1 -0
- package/out/interface/command/index.js +1 -0
- package/out/interface/context/index.d.ts +39 -0
- package/out/interface/context/index.d.ts.map +1 -0
- package/out/interface/context/index.js +1 -0
- package/out/interface/error/index.d.ts +12 -0
- package/out/interface/error/index.d.ts.map +1 -0
- package/out/interface/error/index.js +1 -0
- package/out/interface/i-chat-message/i-chat-message.d.ts +24 -37
- package/out/interface/i-chat-message/i-chat-message.d.ts.map +1 -1
- package/out/interface/ibizsys/i-ibizsys.d.ts +30 -0
- package/out/interface/ibizsys/i-ibizsys.d.ts.map +1 -0
- package/out/interface/ibizsys/i-ibizsys.js +1 -0
- package/out/interface/ibizsys/index.d.ts +2 -0
- package/out/interface/ibizsys/index.d.ts.map +1 -0
- package/out/interface/ibizsys/index.js +1 -0
- package/out/interface/index.d.ts +8 -9
- package/out/interface/index.d.ts.map +1 -1
- package/out/interface/index.js +6 -0
- package/out/interface/utils/i-18n.d.ts +21 -0
- package/out/interface/utils/i-18n.d.ts.map +1 -0
- package/out/interface/utils/i-18n.js +1 -0
- package/out/interface/utils/index.d.ts +2 -0
- package/out/interface/utils/index.d.ts.map +1 -0
- package/out/interface/utils/index.js +1 -0
- package/out/params/params.d.ts +20 -24
- package/out/params/params.d.ts.map +1 -1
- package/out/params/params.js +16 -18
- package/out/types.d.ts +5 -113
- package/out/types.d.ts.map +1 -1
- package/out/utils/bit-mask/bit-mask.d.ts +9 -32
- package/out/utils/bit-mask/bit-mask.d.ts.map +1 -1
- package/out/utils/bit-mask/bit-mask.js +10 -37
- package/out/utils/click-outside/click-outside.d.ts +1 -4
- package/out/utils/click-outside/click-outside.d.ts.map +1 -1
- package/out/utils/click-outside/click-outside.js +1 -4
- package/out/utils/clone/clone.d.ts +3 -7
- package/out/utils/clone/clone.d.ts.map +1 -1
- package/out/utils/clone/clone.js +7 -12
- package/out/utils/color/color.d.ts +4 -6
- package/out/utils/color/color.d.ts.map +1 -1
- package/out/utils/color/color.js +5 -8
- package/out/utils/cookie-util/cookie-util.d.ts +16 -27
- package/out/utils/cookie-util/cookie-util.d.ts.map +1 -1
- package/out/utils/cookie-util/cookie-util.js +126 -55
- package/out/utils/data-type/data-types.d.ts +13 -19
- package/out/utils/data-type/data-types.d.ts.map +1 -1
- package/out/utils/data-type/data-types.js +13 -19
- package/out/utils/download-file/download-file.d.ts +6 -15
- package/out/utils/download-file/download-file.d.ts.map +1 -1
- package/out/utils/download-file/download-file.js +6 -15
- package/out/utils/event/event.d.ts +6 -14
- package/out/utils/event/event.d.ts.map +1 -1
- package/out/utils/event/event.js +6 -14
- package/out/utils/history-list/history-item.d.ts +5 -10
- package/out/utils/history-list/history-item.d.ts.map +1 -1
- package/out/utils/history-list/history-item.js +5 -10
- package/out/utils/history-list/history-list.d.ts +31 -45
- package/out/utils/history-list/history-list.d.ts.map +1 -1
- package/out/utils/history-list/history-list.js +28 -40
- package/out/utils/index.d.ts +1 -2
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/interceptor/core-interceptor.d.ts +16 -4
- package/out/utils/interceptor/core-interceptor.d.ts.map +1 -1
- package/out/utils/interceptor/core-interceptor.js +62 -4
- package/out/utils/interceptor/interceptor.d.ts +29 -39
- package/out/utils/interceptor/interceptor.d.ts.map +1 -1
- package/out/utils/interceptor/interceptor.js +23 -31
- package/out/utils/message-center/base/message-all.d.ts +3 -5
- package/out/utils/message-center/base/message-all.d.ts.map +1 -1
- package/out/utils/message-center/base/message-all.js +1 -4
- package/out/utils/message-center/base/message-base.d.ts +23 -40
- package/out/utils/message-center/base/message-base.d.ts.map +1 -1
- package/out/utils/message-center/base/message-base.js +20 -26
- package/out/utils/message-center/command/add-in-changed/command-add-in-changed.d.ts +5 -6
- package/out/utils/message-center/command/add-in-changed/command-add-in-changed.d.ts.map +1 -1
- package/out/utils/message-center/command/add-in-changed/command-add-in-changed.js +3 -4
- package/out/utils/message-center/command/async-action/command-async-action.d.ts +6 -10
- package/out/utils/message-center/command/async-action/command-async-action.d.ts.map +1 -1
- package/out/utils/message-center/command/async-action/command-async-action.js +4 -8
- package/out/utils/message-center/command/change/command-change.d.ts +4 -5
- package/out/utils/message-center/command/change/command-change.d.ts.map +1 -1
- package/out/utils/message-center/command/change/command-change.js +2 -4
- package/out/utils/message-center/command/command-base/command-base.d.ts +10 -15
- package/out/utils/message-center/command/command-base/command-base.d.ts.map +1 -1
- package/out/utils/message-center/command/command-base/command-base.js +7 -12
- package/out/utils/message-center/command/create/command-create.d.ts +8 -12
- package/out/utils/message-center/command/create/command-create.d.ts.map +1 -1
- package/out/utils/message-center/command/create/command-create.js +6 -10
- package/out/utils/message-center/command/internal-message/command-internal-message.d.ts +7 -11
- package/out/utils/message-center/command/internal-message/command-internal-message.d.ts.map +1 -1
- package/out/utils/message-center/command/internal-message/command-internal-message.js +5 -9
- package/out/utils/message-center/command/mark-open-data/command-mark-open-data.d.ts +6 -10
- package/out/utils/message-center/command/mark-open-data/command-mark-open-data.d.ts.map +1 -1
- package/out/utils/message-center/command/mark-open-data/command-mark-open-data.js +4 -8
- package/out/utils/message-center/command/message-command.d.ts +31 -45
- package/out/utils/message-center/command/message-command.d.ts.map +1 -1
- package/out/utils/message-center/command/message-command.js +29 -43
- package/out/utils/message-center/command/remove/command-remove.d.ts +7 -11
- package/out/utils/message-center/command/remove/command-remove.d.ts.map +1 -1
- package/out/utils/message-center/command/remove/command-remove.js +5 -9
- package/out/utils/message-center/command/update/command-update.d.ts +7 -11
- package/out/utils/message-center/command/update/command-update.d.ts.map +1 -1
- package/out/utils/message-center/command/update/command-update.js +5 -9
- package/out/utils/message-center/console/message-console.d.ts +6 -9
- package/out/utils/message-center/console/message-console.d.ts.map +1 -1
- package/out/utils/message-center/console/message-console.js +4 -8
- package/out/utils/message-center/error/message-error.d.ts +6 -9
- package/out/utils/message-center/error/message-error.d.ts.map +1 -1
- package/out/utils/message-center/error/message-error.js +4 -8
- package/out/utils/message-center/index.d.ts +0 -1
- package/out/utils/message-center/index.d.ts.map +1 -1
- package/out/utils/message-center/message-center.d.ts +20 -35
- package/out/utils/message-center/message-center.d.ts.map +1 -1
- package/out/utils/message-center/message-center.js +18 -33
- package/out/utils/namespace/namespace.d.ts +45 -75
- package/out/utils/namespace/namespace.d.ts.map +1 -1
- package/out/utils/namespace/namespace.js +53 -81
- package/out/utils/net/http-response.d.ts +6 -66
- package/out/utils/net/http-response.d.ts.map +1 -1
- package/out/utils/net/http-response.js +4 -11
- package/out/utils/net/net.d.ts +57 -100
- package/out/utils/net/net.d.ts.map +1 -1
- package/out/utils/net/net.js +53 -94
- package/out/utils/recursive/find-recursive-child.d.ts +2 -10
- package/out/utils/recursive/find-recursive-child.d.ts.map +1 -1
- package/out/utils/recursive/find-recursive-child.js +4 -14
- package/out/utils/string-util/string-util.d.ts +19 -22
- package/out/utils/string-util/string-util.d.ts.map +1 -1
- package/out/utils/string-util/string-util.js +28 -22
- package/out/utils/style/remote-style.d.ts +1 -4
- package/out/utils/style/remote-style.d.ts.map +1 -1
- package/out/utils/style/remote-style.js +1 -4
- package/out/utils/sync/await-timeout.d.ts +1 -5
- package/out/utils/sync/await-timeout.d.ts.map +1 -1
- package/out/utils/sync/await-timeout.js +1 -5
- package/out/utils/sync/count-latch.d.ts +14 -30
- package/out/utils/sync/count-latch.d.ts.map +1 -1
- package/out/utils/sync/count-latch.js +14 -30
- package/out/utils/upload/select-file.d.ts +12 -29
- package/out/utils/upload/select-file.d.ts.map +1 -1
- package/out/utils/upload/select-file.js +3 -9
- package/out/utils/upload/upload-file.d.ts +6 -14
- package/out/utils/upload/upload-file.d.ts.map +1 -1
- package/out/utils/upload/upload-file.js +9 -23
- package/out/utils/url-helper/url-helper.d.ts +19 -30
- package/out/utils/url-helper/url-helper.d.ts.map +1 -1
- package/out/utils/url-helper/url-helper.js +19 -30
- package/out/utils/util/util.d.ts +6 -77
- package/out/utils/util/util.d.ts.map +1 -1
- package/out/utils/util/util.js +6 -77
- package/package.json +5 -8
- package/out/command/interface/command/command-option.d.ts +0 -23
- package/out/command/interface/command/command-option.d.ts.map +0 -1
- package/out/command/interface/command/command.d.ts +0 -74
- package/out/command/interface/command/command.d.ts.map +0 -1
- package/out/command/interface/disposable/disposable.d.ts +0 -4
- package/out/command/interface/disposable/disposable.d.ts.map +0 -1
- package/out/command/interface/index.d.ts +0 -4
- package/out/command/interface/index.d.ts.map +0 -1
- package/out/constant/login-mode/login-mode.d.ts.map +0 -1
- package/out/constant/menu-permission-mode/menu-permission-mode.d.ts.map +0 -1
- package/out/interface/i-18n/i-18n.d.ts +0 -81
- package/out/interface/i-18n/i-18n.d.ts.map +0 -1
- package/out/interface/i-add-in-changed/i-add-in-changed.d.ts.map +0 -1
- package/out/interface/i-devtool-config/i-devtool-config.d.ts +0 -40
- package/out/interface/i-devtool-config/i-devtool-config.d.ts.map +0 -1
- package/out/interface/i-environment/i-environment.d.ts +0 -339
- package/out/interface/i-environment/i-environment.d.ts.map +0 -1
- package/out/interface/i-internal-message/i-internal-message.d.ts.map +0 -1
- package/out/interface/i-mark-open-data/i-mark-open-data.d.ts +0 -43
- package/out/interface/i-mark-open-data/i-mark-open-data.d.ts.map +0 -1
- package/out/interface/i-portal-async-action/i-portal-async-action.d.ts +0 -163
- package/out/interface/i-portal-async-action/i-portal-async-action.d.ts.map +0 -1
- package/out/interface/i-portal-message/i-portal-message.d.ts +0 -89
- package/out/interface/i-portal-message/i-portal-message.d.ts.map +0 -1
- package/out/interface/org-data/org-data.d.ts +0 -43
- package/out/interface/org-data/org-data.d.ts.map +0 -1
- package/out/utils/message-center/interface/i-app-data-entity.d.ts +0 -20
- package/out/utils/message-center/interface/i-app-data-entity.d.ts.map +0 -1
- package/out/utils/message-center/interface/i-msg-meta-data.d.ts +0 -19
- package/out/utils/message-center/interface/i-msg-meta-data.d.ts.map +0 -1
- package/out/utils/message-center/interface/index.d.ts +0 -3
- package/out/utils/message-center/interface/index.d.ts.map +0 -1
- /package/out/interface/{i-devtool-config → api/environment}/i-devtool-config.js +0 -0
- /package/out/interface/{i-environment → api/environment}/i-environment.js +0 -0
- /package/out/{command/interface → interface/api/environment}/index.js +0 -0
- /package/out/{command/interface/command/command-option.js → interface/api/global-param/i-api-context.js} +0 -0
- /package/out/{command/interface/command/command.js → interface/api/global-param/i-global-param.js} +0 -0
- /package/out/{utils/message-center/interface → interface/api/global-param}/index.js +0 -0
- /package/out/{command/interface/disposable/disposable.js → interface/api/ibizsys/i-api-ibizsys.js} +0 -0
- /package/out/interface/{i-18n/i-18n.js → api/ibizsys/i-org-data.js} +0 -0
- /package/out/interface/{i-add-in-changed/i-add-in-changed.js → api/ibizsys/index.js} +0 -0
- /package/out/interface/{i-internal-message/i-internal-message.js → api/utils/i-api-i18n.js} +0 -0
- /package/out/interface/{i-mark-open-data/i-mark-open-data.js → api/utils/message-center/base/i-message-all.js} +0 -0
- /package/out/interface/{i-portal-async-action/i-portal-async-action.js → api/utils/message-center/base/i-message-base.js} +0 -0
- /package/out/interface/{i-portal-message/i-portal-message.js → api/utils/message-center/base/index.js} +0 -0
- /package/out/interface/{org-data/org-data.js → api/utils/message-center/command/add-in-changed/i-add-in-changed.js} +0 -0
- /package/out/{utils/message-center/interface/i-app-data-entity.js → interface/api/utils/message-center/command/add-in-changed/i-command-add-in-changed.js} +0 -0
- /package/out/{utils/message-center/interface/i-msg-meta-data.js → interface/api/utils/message-center/command/async-action/i-command-async-action.js} +0 -0
package/out/types.d.ts
CHANGED
|
@@ -1,122 +1,14 @@
|
|
|
1
1
|
import { IBizSys } from './ibizsys';
|
|
2
|
-
import { IEnvironment } from './interface';
|
|
2
|
+
import { IApiContext, IApiData, IApiObject, IApiParams, IEnvironment } from './interface';
|
|
3
3
|
declare global {
|
|
4
4
|
const ibiz: IBizSys;
|
|
5
5
|
interface Window {
|
|
6
6
|
ibiz: IBizSys;
|
|
7
7
|
Environment: IEnvironment;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* @date 2022-07-14 15:07:52
|
|
14
|
-
* @interface IContext
|
|
15
|
-
*/
|
|
16
|
-
interface IContext {
|
|
17
|
-
[key: string | symbol]: any;
|
|
18
|
-
/**
|
|
19
|
-
* 界面域标识,每个独立路由导航的视图生成
|
|
20
|
-
*
|
|
21
|
-
* @author chitanda
|
|
22
|
-
* @date 2022-07-22 15:07:23
|
|
23
|
-
* @type {string}
|
|
24
|
-
*/
|
|
25
|
-
srfsessionid: string;
|
|
26
|
-
/**
|
|
27
|
-
* 应用标识
|
|
28
|
-
*
|
|
29
|
-
* @author chitanda
|
|
30
|
-
* @date 2022-07-22 15:07:23
|
|
31
|
-
* @type {string}
|
|
32
|
-
*/
|
|
33
|
-
srfappid: string;
|
|
34
|
-
/**
|
|
35
|
-
* 是否简单模式,简单模式下服务层会以界面数据为准,不会进行 DTO 处理
|
|
36
|
-
*
|
|
37
|
-
* @author chitanda
|
|
38
|
-
* @date 2024-02-29 10:02:08
|
|
39
|
-
* @type {boolean}
|
|
40
|
-
*/
|
|
41
|
-
srfsimple?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* 编辑视图上一个,下一步等功能数据来源的多数据部件标识
|
|
44
|
-
*
|
|
45
|
-
* @author tony001
|
|
46
|
-
* @date 2024-07-15 13:07:18
|
|
47
|
-
* @type {string}
|
|
48
|
-
*/
|
|
49
|
-
srfnavctrlid?: string;
|
|
50
|
-
}
|
|
51
|
-
interface IIBizContext extends IContext {
|
|
52
|
-
/**
|
|
53
|
-
* 返回自身的上下文,独有的和与父有差异的
|
|
54
|
-
*
|
|
55
|
-
* @author chitanda
|
|
56
|
-
* @date 2023-03-13 17:03:10
|
|
57
|
-
* @return {*} {IData}
|
|
58
|
-
*/
|
|
59
|
-
getOwnContext(): IData;
|
|
60
|
-
/**
|
|
61
|
-
* 销毁当前上下文
|
|
62
|
-
*
|
|
63
|
-
* @author chitanda
|
|
64
|
-
* @date 2023-03-13 17:03:37
|
|
65
|
-
*/
|
|
66
|
-
destroy(): void;
|
|
67
|
-
/**
|
|
68
|
-
* 克隆当前上下文
|
|
69
|
-
*
|
|
70
|
-
* @author chitanda
|
|
71
|
-
* @date 2023-03-13 17:03:45
|
|
72
|
-
* @return {*} {IContext}
|
|
73
|
-
*/
|
|
74
|
-
clone(): IContext;
|
|
75
|
-
/**
|
|
76
|
-
* @description 深度克隆
|
|
77
|
-
* @return {*} {IData}
|
|
78
|
-
* @memberof IIBizContext
|
|
79
|
-
*/
|
|
80
|
-
deepClone(): IData;
|
|
81
|
-
/**
|
|
82
|
-
* 在不改变对象引用的情况下,重置上下文
|
|
83
|
-
* 等效于重新实例化,但是引用不变
|
|
84
|
-
* @author lxm
|
|
85
|
-
* @date 2023-05-24 10:30:40
|
|
86
|
-
* @param {IData} [context={}] 默认值
|
|
87
|
-
* @param {IContext} [parent] 父上下文
|
|
88
|
-
*/
|
|
89
|
-
reset(context?: IData, parent?: IContext): void;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* 参数
|
|
93
|
-
*
|
|
94
|
-
* @author chitanda
|
|
95
|
-
* @date 2022-07-14 15:07:57
|
|
96
|
-
* @interface IParams
|
|
97
|
-
*/
|
|
98
|
-
interface IParams {
|
|
99
|
-
[key: string | symbol]: any;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* 数据
|
|
103
|
-
*
|
|
104
|
-
* @author chitanda
|
|
105
|
-
* @date 2022-07-14 15:07:31
|
|
106
|
-
* @interface IData
|
|
107
|
-
*/
|
|
108
|
-
interface IData {
|
|
109
|
-
[key: string | symbol]: any;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* 任意对象结构
|
|
113
|
-
*
|
|
114
|
-
* @author chitanda
|
|
115
|
-
* @date 2022-09-21 15:09:30
|
|
116
|
-
* @interface IObject
|
|
117
|
-
*/
|
|
118
|
-
interface IObject {
|
|
119
|
-
[key: string | symbol]: any;
|
|
120
|
-
}
|
|
9
|
+
type IContext = IApiContext;
|
|
10
|
+
type IParams = IApiParams;
|
|
11
|
+
type IData = IApiData;
|
|
12
|
+
type IObject = IApiObject;
|
|
121
13
|
}
|
|
122
14
|
//# sourceMappingURL=types.d.ts.map
|
package/out/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,YAAY,EACb,MAAM,aAAa,CAAC;AAErB,OAAO,CAAC,MAAM,CAAC;IACb,MAAM,IAAI,EAAE,OAAO,CAAC;IAEpB,UAAU,MAAM;QACd,IAAI,EAAE,OAAO,CAAC;QACd,WAAW,EAAE,YAAY,CAAC;KAC3B;IAED,KAAK,QAAQ,GAAG,WAAW,CAAC;IAE5B,KAAK,OAAO,GAAG,UAAU,CAAC;IAE1B,KAAK,KAAK,GAAG,QAAQ,CAAC;IAEtB,KAAK,OAAO,GAAG,UAAU,CAAC;CAC3B"}
|
|
@@ -1,66 +1,43 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @description 检查权限码是否是2的幂
|
|
2
|
+
* @description 检查权限码是否有效,权限码是否是2的幂
|
|
5
3
|
* @example
|
|
6
4
|
* ```typescript
|
|
7
5
|
* validate(1) // => true
|
|
8
6
|
* validate(3) // => false
|
|
9
7
|
* ```
|
|
10
|
-
* @author lxm
|
|
11
|
-
* @date 2023-11-10 10:49:57
|
|
12
8
|
* @static
|
|
13
9
|
* @param {number} permission
|
|
14
10
|
*/
|
|
15
11
|
declare function validate(permission: number): boolean;
|
|
16
12
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* @description 数字转二进制后进行|运算, 设置对应bit位为1(bit位为1代表有权限,bit位为0代表没有权限)
|
|
13
|
+
* @description 设置权限,数字转二进制后进行|运算, 设置对应bit位为1(bit位为1代表有权限,bit位为0代表没有权限)
|
|
20
14
|
* @example
|
|
21
15
|
* ```typescript
|
|
22
16
|
* setPermission(0, 1) // => 1
|
|
23
17
|
* setPermission(1, 4) // => 5
|
|
24
18
|
* ```
|
|
25
|
-
* @
|
|
26
|
-
* @
|
|
27
|
-
* @
|
|
28
|
-
* @param {number} [allPermissions=0] 当前所有权限
|
|
29
|
-
* @param {number} permission 要设置的权限
|
|
30
|
-
* @return {*} {number}
|
|
19
|
+
* @param {number} [allPermissions=0]
|
|
20
|
+
* @param {number} permission
|
|
21
|
+
* @returns {*} {number}
|
|
31
22
|
*/
|
|
32
23
|
declare function setPermission(allPermissions: number | undefined, permission: number): number;
|
|
33
24
|
/**
|
|
34
|
-
*
|
|
35
|
-
* @description 数字转二进制后进行取反并且进行&运算, 设置对应bit位为0(bit位为1代表有权限,bit位为0代表没有权限)
|
|
36
|
-
* @example
|
|
37
|
-
* ```typescript
|
|
38
|
-
* removePermission(9, 1) // => 8
|
|
39
|
-
* removePermission(17, 16) // => 1
|
|
40
|
-
* ```
|
|
41
|
-
* @author lxm
|
|
42
|
-
* @date 2023-11-10 10:50:45
|
|
43
|
-
* @static
|
|
25
|
+
* @description 移出权限,数字转二进制后进行取反并且进行&运算, 设置对应bit位为0(bit位为1代表有权限,bit位为0代表没有权限)
|
|
44
26
|
* @param {number} [allPermissions=0] 当前所有权限
|
|
45
27
|
* @param {number} permission 要移出的权限
|
|
46
|
-
* @
|
|
28
|
+
* @returns {*} {number}
|
|
47
29
|
*/
|
|
48
30
|
declare function removePermission(allPermissions: number | undefined, permission: number): number;
|
|
49
31
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* @description 数字转二进制后进行&运算,为1则有权限,为0则没有权限
|
|
32
|
+
* @description 检查是否有某个权限,数字转二进制后进行&运算,为1则有权限,为0则没有权限
|
|
53
33
|
* @example
|
|
54
34
|
* ```typescript
|
|
55
35
|
* checkPermission(0, 1) // => false
|
|
56
36
|
* checkPermission(5, 4) // => true
|
|
57
37
|
* ```
|
|
58
|
-
* @author lxm
|
|
59
|
-
* @date 2023-11-10 10:50:46
|
|
60
|
-
* @static
|
|
61
38
|
* @param {number} [allPermissions=0]
|
|
62
39
|
* @param {number} permission
|
|
63
|
-
* @
|
|
40
|
+
* @returns {*} {boolean}
|
|
64
41
|
*/
|
|
65
42
|
declare function checkPermission(allPermissions: number | undefined, permission: number): boolean;
|
|
66
43
|
export declare const BitMask: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bit-mask.d.ts","sourceRoot":"","sources":["../../../src/utils/bit-mask/bit-mask.ts"],"names":[],"mappings":"AAKA
|
|
1
|
+
{"version":3,"file":"bit-mask.d.ts","sourceRoot":"","sources":["../../../src/utils/bit-mask/bit-mask.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,iBAAS,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAE7C;AAeD;;;;;;;;;;GAUG;AACH,iBAAS,aAAa,CAAC,cAAc,oBAAY,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAG7E;AAED;;;;;GAKG;AACH,iBAAS,gBAAgB,CACvB,cAAc,oBAAY,EAC1B,UAAU,EAAE,MAAM,GACjB,MAAM,CAGR;AAED;;;;;;;;;;GAUG;AACH,iBAAS,eAAe,CACtB,cAAc,oBAAY,EAC1B,UAAU,EAAE,MAAM,GACjB,OAAO,CAGT;AAED,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC"}
|
|
@@ -2,16 +2,12 @@
|
|
|
2
2
|
/* eslint-disable no-bitwise */
|
|
3
3
|
import { RuntimeError } from '../../error';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* @description 检查权限码是否是2的幂
|
|
5
|
+
* @description 检查权限码是否有效,权限码是否是2的幂
|
|
8
6
|
* @example
|
|
9
7
|
* ```typescript
|
|
10
8
|
* validate(1) // => true
|
|
11
9
|
* validate(3) // => false
|
|
12
10
|
* ```
|
|
13
|
-
* @author lxm
|
|
14
|
-
* @date 2023-11-10 10:49:57
|
|
15
11
|
* @static
|
|
16
12
|
* @param {number} permission
|
|
17
13
|
*/
|
|
@@ -19,11 +15,7 @@ function validate(permission) {
|
|
|
19
15
|
return !!permission && !(permission & (permission - 1));
|
|
20
16
|
}
|
|
21
17
|
/**
|
|
22
|
-
* 检查权限码是否有效,无效抛错
|
|
23
|
-
* @author lxm
|
|
24
|
-
* @date 2023-11-10 10:56:00
|
|
25
|
-
* @private
|
|
26
|
-
* @static
|
|
18
|
+
* @description 检查权限码是否有效,无效抛错
|
|
27
19
|
* @param {number} permission
|
|
28
20
|
*/
|
|
29
21
|
function validateAndThrow(permission) {
|
|
@@ -33,59 +25,40 @@ function validateAndThrow(permission) {
|
|
|
33
25
|
}
|
|
34
26
|
}
|
|
35
27
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* @description 数字转二进制后进行|运算, 设置对应bit位为1(bit位为1代表有权限,bit位为0代表没有权限)
|
|
28
|
+
* @description 设置权限,数字转二进制后进行|运算, 设置对应bit位为1(bit位为1代表有权限,bit位为0代表没有权限)
|
|
39
29
|
* @example
|
|
40
30
|
* ```typescript
|
|
41
31
|
* setPermission(0, 1) // => 1
|
|
42
32
|
* setPermission(1, 4) // => 5
|
|
43
33
|
* ```
|
|
44
|
-
* @
|
|
45
|
-
* @
|
|
46
|
-
* @
|
|
47
|
-
* @param {number} [allPermissions=0] 当前所有权限
|
|
48
|
-
* @param {number} permission 要设置的权限
|
|
49
|
-
* @return {*} {number}
|
|
34
|
+
* @param {number} [allPermissions=0]
|
|
35
|
+
* @param {number} permission
|
|
36
|
+
* @returns {*} {number}
|
|
50
37
|
*/
|
|
51
38
|
function setPermission(allPermissions = 0, permission) {
|
|
52
39
|
validateAndThrow(permission);
|
|
53
40
|
return allPermissions | permission;
|
|
54
41
|
}
|
|
55
42
|
/**
|
|
56
|
-
*
|
|
57
|
-
* @description 数字转二进制后进行取反并且进行&运算, 设置对应bit位为0(bit位为1代表有权限,bit位为0代表没有权限)
|
|
58
|
-
* @example
|
|
59
|
-
* ```typescript
|
|
60
|
-
* removePermission(9, 1) // => 8
|
|
61
|
-
* removePermission(17, 16) // => 1
|
|
62
|
-
* ```
|
|
63
|
-
* @author lxm
|
|
64
|
-
* @date 2023-11-10 10:50:45
|
|
65
|
-
* @static
|
|
43
|
+
* @description 移出权限,数字转二进制后进行取反并且进行&运算, 设置对应bit位为0(bit位为1代表有权限,bit位为0代表没有权限)
|
|
66
44
|
* @param {number} [allPermissions=0] 当前所有权限
|
|
67
45
|
* @param {number} permission 要移出的权限
|
|
68
|
-
* @
|
|
46
|
+
* @returns {*} {number}
|
|
69
47
|
*/
|
|
70
48
|
function removePermission(allPermissions = 0, permission) {
|
|
71
49
|
validateAndThrow(permission);
|
|
72
50
|
return allPermissions & ~permission;
|
|
73
51
|
}
|
|
74
52
|
/**
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
* @description 数字转二进制后进行&运算,为1则有权限,为0则没有权限
|
|
53
|
+
* @description 检查是否有某个权限,数字转二进制后进行&运算,为1则有权限,为0则没有权限
|
|
78
54
|
* @example
|
|
79
55
|
* ```typescript
|
|
80
56
|
* checkPermission(0, 1) // => false
|
|
81
57
|
* checkPermission(5, 4) // => true
|
|
82
58
|
* ```
|
|
83
|
-
* @author lxm
|
|
84
|
-
* @date 2023-11-10 10:50:46
|
|
85
|
-
* @static
|
|
86
59
|
* @param {number} [allPermissions=0]
|
|
87
60
|
* @param {number} permission
|
|
88
|
-
* @
|
|
61
|
+
* @returns {*} {boolean}
|
|
89
62
|
*/
|
|
90
63
|
function checkPermission(allPermissions = 0, permission) {
|
|
91
64
|
validateAndThrow(permission);
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { OnClickOutsideHandler, OnClickOutsideOptions, OnClickOutsideResult } from '../../interface';
|
|
2
2
|
/**
|
|
3
|
-
* 监听目标元素之外的点击事件回调
|
|
4
|
-
*
|
|
5
|
-
* @author lxm
|
|
6
|
-
* @date 2022-10-28 18:10:25
|
|
3
|
+
* @description 监听目标元素之外的点击事件回调
|
|
7
4
|
* @export
|
|
8
5
|
* @param {HTMLElement} target 目标元素
|
|
9
6
|
* @param {OnClickOutsideHandler} handler 触发的时间回调
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"click-outside.d.ts","sourceRoot":"","sources":["../../../src/utils/click-outside/click-outside.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AAKzB
|
|
1
|
+
{"version":3,"file":"click-outside.d.ts","sourceRoot":"","sources":["../../../src/utils/click-outside/click-outside.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AAKzB;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,qBAAqB,EAC9B,OAAO,GAAE,qBAA0B,GAClC,oBAAoB,CAqFtB"}
|
|
@@ -2,10 +2,7 @@ import { RuntimeError } from '../../error';
|
|
|
2
2
|
import { eventPath, isEventInside, listenJSEvent } from '../event/event';
|
|
3
3
|
const defaultWindow = typeof window !== 'undefined' ? window : undefined;
|
|
4
4
|
/**
|
|
5
|
-
* 监听目标元素之外的点击事件回调
|
|
6
|
-
*
|
|
7
|
-
* @author lxm
|
|
8
|
-
* @date 2022-10-28 18:10:25
|
|
5
|
+
* @description 监听目标元素之外的点击事件回调
|
|
9
6
|
* @export
|
|
10
7
|
* @param {HTMLElement} target 目标元素
|
|
11
8
|
* @param {OnClickOutsideHandler} handler 触发的时间回调
|
|
@@ -2,16 +2,12 @@ export type CloneOpts = {
|
|
|
2
2
|
deep?: boolean;
|
|
3
3
|
};
|
|
4
4
|
/**
|
|
5
|
-
* 克隆方法(如果对象有clone方法会用clone方法调用clone)
|
|
6
|
-
* @author lxm
|
|
7
|
-
* @date 2023-10-25 06:24:18
|
|
5
|
+
* @description 克隆方法(如果对象有clone方法会用clone方法调用clone)
|
|
8
6
|
* @export
|
|
9
7
|
* @template T
|
|
10
|
-
* @param {
|
|
11
|
-
* @param {*} T
|
|
12
|
-
* @param {*} []
|
|
8
|
+
* @param {T} value
|
|
13
9
|
* @param {CloneOpts} [opts]
|
|
14
|
-
* @
|
|
10
|
+
* @returns {*} {T}
|
|
15
11
|
*/
|
|
16
12
|
export declare function clone<T>(value: T, opts?: CloneOpts): T;
|
|
17
13
|
//# sourceMappingURL=clone.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone.d.ts","sourceRoot":"","sources":["../../../src/utils/clone/clone.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"clone.d.ts","sourceRoot":"","sources":["../../../src/utils/clone/clone.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAkBF;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,CAAC,CAMtD"}
|
package/out/utils/clone/clone.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { cloneDeepWith, cloneWith, isFunction, isObject } from 'lodash-es';
|
|
2
2
|
import { mergeDeepRight } from 'ramda';
|
|
3
3
|
/**
|
|
4
|
-
* 自定义克隆逻辑,有clone方法的拿clone方法,否则直接用lodash的clone
|
|
5
|
-
* @
|
|
6
|
-
* @
|
|
7
|
-
* @
|
|
8
|
-
* @return {*} {unknown}
|
|
4
|
+
* @description 自定义克隆逻辑,有clone方法的拿clone方法,否则直接用lodash的clone
|
|
5
|
+
* @template T
|
|
6
|
+
* @param {T} value
|
|
7
|
+
* @returns {*} {(T | undefined)}
|
|
9
8
|
*/
|
|
10
9
|
function customizeFn(value) {
|
|
11
10
|
if (isObject(value) && isFunction(value.clone)) {
|
|
@@ -16,16 +15,12 @@ const DefaultCloneOpts = {
|
|
|
16
15
|
deep: true,
|
|
17
16
|
};
|
|
18
17
|
/**
|
|
19
|
-
* 克隆方法(如果对象有clone方法会用clone方法调用clone)
|
|
20
|
-
* @author lxm
|
|
21
|
-
* @date 2023-10-25 06:24:18
|
|
18
|
+
* @description 克隆方法(如果对象有clone方法会用clone方法调用clone)
|
|
22
19
|
* @export
|
|
23
20
|
* @template T
|
|
24
|
-
* @param {
|
|
25
|
-
* @param {*} T
|
|
26
|
-
* @param {*} []
|
|
21
|
+
* @param {T} value
|
|
27
22
|
* @param {CloneOpts} [opts]
|
|
28
|
-
* @
|
|
23
|
+
* @returns {*} {T}
|
|
29
24
|
*/
|
|
30
25
|
export function clone(value, opts) {
|
|
31
26
|
const options = mergeDeepRight(DefaultCloneOpts, opts || {});
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 混合两种颜色,颜色格式支持hex和rgb
|
|
3
|
-
*
|
|
4
|
-
* rgb(245 245 245 / 80%)
|
|
5
|
-
*
|
|
2
|
+
* @description 混合两种颜色,颜色格式支持hex和rgb,如:#46b5d555,#fff,转化结果为rgb(245 245 245 / 80%)
|
|
3
|
+
* @export
|
|
6
4
|
* @param {string} color1 颜色1
|
|
7
5
|
* @param {string} color2 颜色2
|
|
8
6
|
* @param {number} [p=0.5] 颜色1占多少百分比,小数格式
|
|
9
|
-
* @param {(
|
|
10
|
-
* @returns {*}
|
|
7
|
+
* @param {('hex' | 'rgb')} [format='hex'] 输出的格式,hex或rgb
|
|
8
|
+
* @returns {*} {string}
|
|
11
9
|
*/
|
|
12
10
|
export declare function colorBlend(color1: string, color2: string, p?: number, format?: 'hex' | 'rgb'): string;
|
|
13
11
|
//# sourceMappingURL=color.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../src/utils/color/color.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../src/utils/color/color.ts"],"names":[],"mappings":"AA4CA;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,CAAC,SAAM,EACP,MAAM,GAAE,KAAK,GAAG,KAAa,GAC5B,MAAM,CAyBR"}
|
package/out/utils/color/color.js
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
/* eslint-disable no-nested-ternary */
|
|
3
3
|
const r = Math.round;
|
|
4
4
|
/**
|
|
5
|
-
* 把颜色字符串转成RGBA数组
|
|
6
|
-
*
|
|
5
|
+
* @description 把颜色字符串转成RGBA数组
|
|
7
6
|
* @param {string} color 颜色字符串
|
|
8
7
|
* @returns {*} {number[]}
|
|
9
8
|
*/
|
|
@@ -42,15 +41,13 @@ function toRGBA(color) {
|
|
|
42
41
|
return rgba;
|
|
43
42
|
}
|
|
44
43
|
/**
|
|
45
|
-
* 混合两种颜色,颜色格式支持hex和rgb
|
|
46
|
-
*
|
|
47
|
-
* rgb(245 245 245 / 80%)
|
|
48
|
-
*
|
|
44
|
+
* @description 混合两种颜色,颜色格式支持hex和rgb,如:#46b5d555,#fff,转化结果为rgb(245 245 245 / 80%)
|
|
45
|
+
* @export
|
|
49
46
|
* @param {string} color1 颜色1
|
|
50
47
|
* @param {string} color2 颜色2
|
|
51
48
|
* @param {number} [p=0.5] 颜色1占多少百分比,小数格式
|
|
52
|
-
* @param {(
|
|
53
|
-
* @returns {*}
|
|
49
|
+
* @param {('hex' | 'rgb')} [format='hex'] 输出的格式,hex或rgb
|
|
50
|
+
* @returns {*} {string}
|
|
54
51
|
*/
|
|
55
52
|
export function colorBlend(color1, color2, p = 0.5, format = 'hex') {
|
|
56
53
|
color1 = color1.trim();
|
|
@@ -1,48 +1,37 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 设置cookie
|
|
3
|
-
*
|
|
4
|
-
* @
|
|
5
|
-
* @param {
|
|
6
|
-
* @param {
|
|
7
|
-
* @param {*} day 过期天数
|
|
2
|
+
* @description 设置cookie
|
|
3
|
+
* @export
|
|
4
|
+
* @param {string} name cookie名称
|
|
5
|
+
* @param {string} value cookie值
|
|
6
|
+
* @param {number} [day=0] 过期天数
|
|
8
7
|
* @param {boolean} [isDomain=false] 是否设置在主域下
|
|
9
8
|
* @param {string} [path='/'] 默认归属路径
|
|
10
9
|
* @param {string} [childDoMain=''] 子域,如果外部有传递,则需把cookie数据设置到传入子域上
|
|
11
|
-
* @memberof Util
|
|
12
10
|
*/
|
|
13
11
|
export declare function setCookie(name: string, value: string, day?: number, isDomain?: boolean, path?: string, childDoMain?: string): void;
|
|
14
12
|
/**
|
|
15
|
-
* 设置应用cookie
|
|
16
|
-
*
|
|
17
|
-
* @
|
|
18
|
-
* @param {
|
|
19
|
-
* @param {
|
|
20
|
-
* @param {*} day 过期天数
|
|
21
|
-
* @memberof Util
|
|
13
|
+
* @description 设置应用cookie
|
|
14
|
+
* @export
|
|
15
|
+
* @param {string} name 名称
|
|
16
|
+
* @param {string} value 值
|
|
17
|
+
* @param {number} [day=0] 过期天数
|
|
22
18
|
*/
|
|
23
19
|
export declare function setAppCookie(name: string, value: string, day?: number): void;
|
|
24
20
|
/**
|
|
25
|
-
* 清除应用cookie
|
|
26
|
-
*
|
|
27
|
-
* @static
|
|
21
|
+
* @description 清除应用cookie
|
|
22
|
+
* @export
|
|
28
23
|
* @param {string} cookieName
|
|
29
|
-
* @memberof Util
|
|
30
24
|
*/
|
|
31
25
|
export declare function clearAppCookie(cookieName: string): void;
|
|
32
26
|
/**
|
|
33
|
-
* 获取cookie
|
|
34
|
-
*
|
|
35
|
-
* @static
|
|
27
|
+
* @description 获取cookie
|
|
28
|
+
* @export
|
|
36
29
|
* @param {string} name
|
|
37
|
-
* @
|
|
38
|
-
* @memberof Util
|
|
30
|
+
* @returns {*} {(string | null)}
|
|
39
31
|
*/
|
|
40
32
|
export declare function getAppCookie(name: string): string | null;
|
|
41
33
|
/**
|
|
42
|
-
* 重置应用cookie
|
|
43
|
-
*
|
|
44
|
-
* @author tony001
|
|
45
|
-
* @date 2025-01-07 16:01:18
|
|
34
|
+
* @description 重置应用cookie
|
|
46
35
|
* @export
|
|
47
36
|
*/
|
|
48
37
|
export declare function resetAppCookie(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cookie-util.d.ts","sourceRoot":"","sources":["../../../src/utils/cookie-util/cookie-util.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cookie-util.d.ts","sourceRoot":"","sources":["../../../src/utils/cookie-util/cookie-util.ts"],"names":[],"mappings":"AAkDA;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,GAAG,SAAI,EACP,QAAQ,UAAQ,EAChB,IAAI,SAAM,EACV,WAAW,GAAE,MAAW,GACvB,IAAI,CAoCN;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,GAAG,GAAE,MAAU,GACd,IAAI,CASN;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CASvD;AACD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAcxD;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAuBrC"}
|