@cldemo/ui-kit 1.0.0
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/COMPONENT_CATALOG.md +210 -0
- package/LICENSE +21 -0
- package/README.md +120 -0
- package/buildLibs/all/index.cjs +99 -0
- package/buildLibs/all/index.cjs.map +1 -0
- package/buildLibs/all/index.d.ts +83 -0
- package/buildLibs/all/index.js +168 -0
- package/buildLibs/all/index.js.map +1 -0
- package/buildLibs/common/Element/Event/drag.d.ts +24 -0
- package/buildLibs/common/Element/Event/index.d.ts +9 -0
- package/buildLibs/common/Element/Event/resize.d.ts +20 -0
- package/buildLibs/common/Element/index.d.ts +104 -0
- package/buildLibs/common/Element_Event_drag-DeZYlveu.js +430 -0
- package/buildLibs/common/Element_Event_drag-DeZYlveu.js.map +1 -0
- package/buildLibs/common/Element_Event_drag-L_ZT9whD.cjs +3 -0
- package/buildLibs/common/Element_Event_drag-L_ZT9whD.cjs.map +1 -0
- package/buildLibs/common/Element_Event_resize-DA_sUt40.cjs +2 -0
- package/buildLibs/common/Element_Event_resize-DA_sUt40.cjs.map +1 -0
- package/buildLibs/common/Element_Event_resize-DqH_UT2k.js +49 -0
- package/buildLibs/common/Element_Event_resize-DqH_UT2k.js.map +1 -0
- package/buildLibs/common/Tools/animateEasing.d.ts +27 -0
- package/buildLibs/common/Tools/cookie.d.ts +8 -0
- package/buildLibs/common/Tools/delayFun.d.ts +9 -0
- package/buildLibs/common/Tools/index.d.ts +15 -0
- package/buildLibs/common/Tools/localStorage.d.ts +9 -0
- package/buildLibs/common/Tools/number.d.ts +8 -0
- package/buildLibs/common/Tools_animateEasing-C6TmrmvZ.cjs +2 -0
- package/buildLibs/common/Tools_animateEasing-C6TmrmvZ.cjs.map +1 -0
- package/buildLibs/common/Tools_animateEasing-D0lY_Vn8.js +50 -0
- package/buildLibs/common/Tools_animateEasing-D0lY_Vn8.js.map +1 -0
- package/buildLibs/common/Tools_cookie-CCTgXZb7.cjs +2 -0
- package/buildLibs/common/Tools_cookie-CCTgXZb7.cjs.map +1 -0
- package/buildLibs/common/Tools_cookie-DKctMXdK.js +31 -0
- package/buildLibs/common/Tools_cookie-DKctMXdK.js.map +1 -0
- package/buildLibs/common/Tools_delayFun-CA1ktv1L.js +21 -0
- package/buildLibs/common/Tools_delayFun-CA1ktv1L.js.map +1 -0
- package/buildLibs/common/Tools_delayFun-DYTkzlXE.cjs +2 -0
- package/buildLibs/common/Tools_delayFun-DYTkzlXE.cjs.map +1 -0
- package/buildLibs/common/Tools_localStorage-Cbecy4gj.cjs +2 -0
- package/buildLibs/common/Tools_localStorage-Cbecy4gj.cjs.map +1 -0
- package/buildLibs/common/Tools_localStorage-DVvhtzhL.js +48 -0
- package/buildLibs/common/Tools_localStorage-DVvhtzhL.js.map +1 -0
- package/buildLibs/common/Tools_number-Bh6hGO5U.cjs +2 -0
- package/buildLibs/common/Tools_number-Bh6hGO5U.cjs.map +1 -0
- package/buildLibs/common/Tools_number-C_MjN473.js +22 -0
- package/buildLibs/common/Tools_number-C_MjN473.js.map +1 -0
- package/buildLibs/common/axios-DZoeNi6y.cjs +2 -0
- package/buildLibs/common/axios-DZoeNi6y.cjs.map +1 -0
- package/buildLibs/common/axios-DqkFEq4Y.js +242 -0
- package/buildLibs/common/axios-DqkFEq4Y.js.map +1 -0
- package/buildLibs/common/axios.d.ts +28 -0
- package/buildLibs/common/base-PQGakkrl.js +808 -0
- package/buildLibs/common/base-PQGakkrl.js.map +1 -0
- package/buildLibs/common/base-iCmnU-fv.cjs +2 -0
- package/buildLibs/common/base-iCmnU-fv.cjs.map +1 -0
- package/buildLibs/common/base.d.ts +222 -0
- package/buildLibs/common/day-BzMalBXj.cjs +2 -0
- package/buildLibs/common/day-BzMalBXj.cjs.map +1 -0
- package/buildLibs/common/day-Dm_AnEZp.js +75 -0
- package/buildLibs/common/day-Dm_AnEZp.js.map +1 -0
- package/buildLibs/common/day.d.ts +25 -0
- package/buildLibs/common/echart-BtfUJ8lE.js +498 -0
- package/buildLibs/common/echart-BtfUJ8lE.js.map +1 -0
- package/buildLibs/common/echart-Cs3rQ-e9.cjs +2 -0
- package/buildLibs/common/echart-Cs3rQ-e9.cjs.map +1 -0
- package/buildLibs/common/echart.d.ts +82 -0
- package/buildLibs/common/i18n/en.d.ts +111 -0
- package/buildLibs/common/i18n/index.d.ts +25 -0
- package/buildLibs/common/i18n/zh_CN.d.ts +111 -0
- package/buildLibs/common/i18n_en-BHhFEbi6.js +114 -0
- package/buildLibs/common/i18n_en-BHhFEbi6.js.map +1 -0
- package/buildLibs/common/i18n_en-D-5antzy.cjs +2 -0
- package/buildLibs/common/i18n_en-D-5antzy.cjs.map +1 -0
- package/buildLibs/common/i18n_zh_CN-COzQ8Los.js +114 -0
- package/buildLibs/common/i18n_zh_CN-COzQ8Los.js.map +1 -0
- package/buildLibs/common/i18n_zh_CN-DTZIQXOQ.cjs +2 -0
- package/buildLibs/common/i18n_zh_CN-DTZIQXOQ.cjs.map +1 -0
- package/buildLibs/common/index.cjs +2 -0
- package/buildLibs/common/index.cjs.map +1 -0
- package/buildLibs/common/index.d.ts +10 -0
- package/buildLibs/common/index.js +124 -0
- package/buildLibs/common/index.js.map +1 -0
- package/buildLibs/common/promise-BtoePzHD.cjs +2 -0
- package/buildLibs/common/promise-BtoePzHD.cjs.map +1 -0
- package/buildLibs/common/promise-CPiVqqqL.js +44 -0
- package/buildLibs/common/promise-CPiVqqqL.js.map +1 -0
- package/buildLibs/common/promise.d.ts +14 -0
- package/buildLibs/common/tooltip-De0atcAJ.js +215 -0
- package/buildLibs/common/tooltip-De0atcAJ.js.map +1 -0
- package/buildLibs/common/tooltip-Dj_ol2ax.cjs +2 -0
- package/buildLibs/common/tooltip-Dj_ol2ax.cjs.map +1 -0
- package/buildLibs/common/tooltip.d.ts +37 -0
- package/buildLibs/mobile/index.cjs +56 -0
- package/buildLibs/mobile/index.cjs.map +1 -0
- package/buildLibs/mobile/index.d.ts +47 -0
- package/buildLibs/mobile/index.js +96 -0
- package/buildLibs/mobile/index.js.map +1 -0
- package/buildLibs/resolver/index.cjs +2 -0
- package/buildLibs/resolver/index.cjs.map +1 -0
- package/buildLibs/resolver/index.js +82 -0
- package/buildLibs/resolver/index.js.map +1 -0
- package/buildLibs/resolver/resolver.d.ts +7 -0
- package/buildLibs/utils/Element/ClAnchorNav.cjs +2 -0
- package/buildLibs/utils/Element/ClAnchorNav.cjs.map +1 -0
- package/buildLibs/utils/Element/ClAnchorNav.css +1 -0
- package/buildLibs/utils/Element/ClAnchorNav.d.ts +3 -0
- package/buildLibs/utils/Element/ClAnchorNav.js +55 -0
- package/buildLibs/utils/Element/ClAnchorNav.js.map +1 -0
- package/buildLibs/utils/Element/ClBadge.cjs +2 -0
- package/buildLibs/utils/Element/ClBadge.cjs.map +1 -0
- package/buildLibs/utils/Element/ClBadge.d.ts +3 -0
- package/buildLibs/utils/Element/ClBadge.js +5 -0
- package/buildLibs/utils/Element/ClBadge.js.map +1 -0
- package/buildLibs/utils/Element/ClButton.cjs +2 -0
- package/buildLibs/utils/Element/ClButton.cjs.map +1 -0
- package/buildLibs/utils/Element/ClButton.css +1 -0
- package/buildLibs/utils/Element/ClButton.d.ts +3 -0
- package/buildLibs/utils/Element/ClButton.js +226 -0
- package/buildLibs/utils/Element/ClButton.js.map +1 -0
- package/buildLibs/utils/Element/ClCheckbox.cjs +2 -0
- package/buildLibs/utils/Element/ClCheckbox.cjs.map +1 -0
- package/buildLibs/utils/Element/ClCheckbox.d.ts +3 -0
- package/buildLibs/utils/Element/ClCheckbox.js +205 -0
- package/buildLibs/utils/Element/ClCheckbox.js.map +1 -0
- package/buildLibs/utils/Element/ClCheckboxOne.d.ts +3 -0
- package/buildLibs/utils/Element/ClClipboard.cjs +2 -0
- package/buildLibs/utils/Element/ClClipboard.cjs.map +1 -0
- package/buildLibs/utils/Element/ClClipboard.d.ts +3 -0
- package/buildLibs/utils/Element/ClClipboard.js +5 -0
- package/buildLibs/utils/Element/ClClipboard.js.map +1 -0
- package/buildLibs/utils/Element/ClCountup.cjs +2 -0
- package/buildLibs/utils/Element/ClCountup.cjs.map +1 -0
- package/buildLibs/utils/Element/ClCountup.d.ts +3 -0
- package/buildLibs/utils/Element/ClCountup.js +56 -0
- package/buildLibs/utils/Element/ClCountup.js.map +1 -0
- package/buildLibs/utils/Element/ClCropper.cjs +2 -0
- package/buildLibs/utils/Element/ClCropper.cjs.map +1 -0
- package/buildLibs/utils/Element/ClCropper.d.ts +3 -0
- package/buildLibs/utils/Element/ClCropper.js +5 -0
- package/buildLibs/utils/Element/ClCropper.js.map +1 -0
- package/buildLibs/utils/Element/ClCropperPreview.css +1 -0
- package/buildLibs/utils/Element/ClDarg.cjs +7 -0
- package/buildLibs/utils/Element/ClDarg.cjs.map +1 -0
- package/buildLibs/utils/Element/ClDarg.css +1 -0
- package/buildLibs/utils/Element/ClDarg.d.ts +3 -0
- package/buildLibs/utils/Element/ClDarg.js +1554 -0
- package/buildLibs/utils/Element/ClDarg.js.map +1 -0
- package/buildLibs/utils/Element/ClEllipsis.cjs +2 -0
- package/buildLibs/utils/Element/ClEllipsis.cjs.map +1 -0
- package/buildLibs/utils/Element/ClEllipsis.css +1 -0
- package/buildLibs/utils/Element/ClEllipsis.d.ts +3 -0
- package/buildLibs/utils/Element/ClEllipsis.js +99 -0
- package/buildLibs/utils/Element/ClEllipsis.js.map +1 -0
- package/buildLibs/utils/Element/ClForm.cjs +2 -0
- package/buildLibs/utils/Element/ClForm.cjs.map +1 -0
- package/buildLibs/utils/Element/ClForm.css +1 -0
- package/buildLibs/utils/Element/ClForm.d.ts +3 -0
- package/buildLibs/utils/Element/ClForm.js +139 -0
- package/buildLibs/utils/Element/ClForm.js.map +1 -0
- package/buildLibs/utils/Element/ClFormGroup.cjs +2 -0
- package/buildLibs/utils/Element/ClFormGroup.cjs.map +1 -0
- package/buildLibs/utils/Element/ClFormGroup.css +1 -0
- package/buildLibs/utils/Element/ClFormGroup.d.ts +3 -0
- package/buildLibs/utils/Element/ClFormGroup.js +76 -0
- package/buildLibs/utils/Element/ClFormGroup.js.map +1 -0
- package/buildLibs/utils/Element/ClFormValidate.d.ts +3 -0
- package/buildLibs/utils/Element/ClIconFont.cjs +2 -0
- package/buildLibs/utils/Element/ClIconFont.cjs.map +1 -0
- package/buildLibs/utils/Element/ClIconFont.d.ts +3 -0
- package/buildLibs/utils/Element/ClIconFont.js +5 -0
- package/buildLibs/utils/Element/ClIconFont.js.map +1 -0
- package/buildLibs/utils/Element/ClImage.cjs +2 -0
- package/buildLibs/utils/Element/ClImage.cjs.map +1 -0
- package/buildLibs/utils/Element/ClImage.css +1 -0
- package/buildLibs/utils/Element/ClImage.d.ts +3 -0
- package/buildLibs/utils/Element/ClImage.js +195 -0
- package/buildLibs/utils/Element/ClImage.js.map +1 -0
- package/buildLibs/utils/Element/ClInput.cjs +2 -0
- package/buildLibs/utils/Element/ClInput.cjs.map +1 -0
- package/buildLibs/utils/Element/ClInput.d.ts +3 -0
- package/buildLibs/utils/Element/ClInput.js +5 -0
- package/buildLibs/utils/Element/ClInput.js.map +1 -0
- package/buildLibs/utils/Element/ClInputCaptcha.cjs +2 -0
- package/buildLibs/utils/Element/ClInputCaptcha.cjs.map +1 -0
- package/buildLibs/utils/Element/ClInputCaptcha.css +1 -0
- package/buildLibs/utils/Element/ClInputCaptcha.d.ts +3 -0
- package/buildLibs/utils/Element/ClInputCaptcha.js +111 -0
- package/buildLibs/utils/Element/ClInputCaptcha.js.map +1 -0
- package/buildLibs/utils/Element/ClInputNumber.cjs +2 -0
- package/buildLibs/utils/Element/ClInputNumber.cjs.map +1 -0
- package/buildLibs/utils/Element/ClInputNumber.d.ts +3 -0
- package/buildLibs/utils/Element/ClInputNumber.js +5 -0
- package/buildLibs/utils/Element/ClInputNumber.js.map +1 -0
- package/buildLibs/utils/Element/ClInputSearch.cjs +2 -0
- package/buildLibs/utils/Element/ClInputSearch.cjs.map +1 -0
- package/buildLibs/utils/Element/ClInputSearch.d.ts +3 -0
- package/buildLibs/utils/Element/ClInputSearch.js +5 -0
- package/buildLibs/utils/Element/ClInputSearch.js.map +1 -0
- package/buildLibs/utils/Element/ClInputTag.css +1 -0
- package/buildLibs/utils/Element/ClInputTextarea.cjs +2 -0
- package/buildLibs/utils/Element/ClInputTextarea.cjs.map +1 -0
- package/buildLibs/utils/Element/ClInputTextarea.d.ts +3 -0
- package/buildLibs/utils/Element/ClInputTextarea.js +5 -0
- package/buildLibs/utils/Element/ClInputTextarea.js.map +1 -0
- package/buildLibs/utils/Element/ClInputnumberButton.d.ts +3 -0
- package/buildLibs/utils/Element/ClLink.cjs +2 -0
- package/buildLibs/utils/Element/ClLink.cjs.map +1 -0
- package/buildLibs/utils/Element/ClLink.d.ts +3 -0
- package/buildLibs/utils/Element/ClLink.js +5 -0
- package/buildLibs/utils/Element/ClLink.js.map +1 -0
- package/buildLibs/utils/Element/ClLoad.cjs +2 -0
- package/buildLibs/utils/Element/ClLoad.cjs.map +1 -0
- package/buildLibs/utils/Element/ClLoad.d.ts +3 -0
- package/buildLibs/utils/Element/ClLoad.js +5 -0
- package/buildLibs/utils/Element/ClLoad.js.map +1 -0
- package/buildLibs/utils/Element/ClLoadFullCenter.d.ts +3 -0
- package/buildLibs/utils/Element/ClLoadIng.d.ts +3 -0
- package/buildLibs/utils/Element/ClLoadScreen.cjs +2 -0
- package/buildLibs/utils/Element/ClLoadScreen.cjs.map +1 -0
- package/buildLibs/utils/Element/ClLoadScreen.d.ts +3 -0
- package/buildLibs/utils/Element/ClLoadScreen.js +5 -0
- package/buildLibs/utils/Element/ClLoadScreen.js.map +1 -0
- package/buildLibs/utils/Element/ClLoadWarp.d.ts +3 -0
- package/buildLibs/utils/Element/ClModal.cjs +2 -0
- package/buildLibs/utils/Element/ClModal.cjs.map +1 -0
- package/buildLibs/utils/Element/ClModal.d.ts +3 -0
- package/buildLibs/utils/Element/ClModal.js +5 -0
- package/buildLibs/utils/Element/ClModal.js.map +1 -0
- package/buildLibs/utils/Element/ClProgress.cjs +2 -0
- package/buildLibs/utils/Element/ClProgress.cjs.map +1 -0
- package/buildLibs/utils/Element/ClProgress.css +1 -0
- package/buildLibs/utils/Element/ClProgress.d.ts +3 -0
- package/buildLibs/utils/Element/ClProgress.js +219 -0
- package/buildLibs/utils/Element/ClProgress.js.map +1 -0
- package/buildLibs/utils/Element/ClRadio.cjs +2 -0
- package/buildLibs/utils/Element/ClRadio.cjs.map +1 -0
- package/buildLibs/utils/Element/ClRadio.d.ts +3 -0
- package/buildLibs/utils/Element/ClRadio.js +176 -0
- package/buildLibs/utils/Element/ClRadio.js.map +1 -0
- package/buildLibs/utils/Element/ClRadioOne.d.ts +3 -0
- package/buildLibs/utils/Element/ClSlider.cjs +2 -0
- package/buildLibs/utils/Element/ClSlider.cjs.map +1 -0
- package/buildLibs/utils/Element/ClSlider.css +1 -0
- package/buildLibs/utils/Element/ClSlider.d.ts +3 -0
- package/buildLibs/utils/Element/ClSlider.js +721 -0
- package/buildLibs/utils/Element/ClSlider.js.map +1 -0
- package/buildLibs/utils/Element/ClSwitchery.cjs +2 -0
- package/buildLibs/utils/Element/ClSwitchery.cjs.map +1 -0
- package/buildLibs/utils/Element/ClSwitchery.css +1 -0
- package/buildLibs/utils/Element/ClSwitchery.d.ts +3 -0
- package/buildLibs/utils/Element/ClSwitchery.js +429 -0
- package/buildLibs/utils/Element/ClSwitchery.js.map +1 -0
- package/buildLibs/utils/Element/ClTags.cjs +2 -0
- package/buildLibs/utils/Element/ClTags.cjs.map +1 -0
- package/buildLibs/utils/Element/ClTags.d.ts +3 -0
- package/buildLibs/utils/Element/ClTags.js +5 -0
- package/buildLibs/utils/Element/ClTags.js.map +1 -0
- package/buildLibs/utils/Element/ClTransitionSlideupdown.d.ts +3 -0
- package/buildLibs/utils/Element/ClWaterfall.cjs +2 -0
- package/buildLibs/utils/Element/ClWaterfall.cjs.map +1 -0
- package/buildLibs/utils/Element/ClWaterfall.css +1 -0
- package/buildLibs/utils/Element/ClWaterfall.d.ts +3 -0
- package/buildLibs/utils/Element/ClWaterfall.js +167 -0
- package/buildLibs/utils/Element/ClWaterfall.js.map +1 -0
- package/buildLibs/utils/Element/ClWaterfallImage.d.ts +3 -0
- package/buildLibs/utils/Element/__provide__/Clipboard.cjs +2 -0
- package/buildLibs/utils/Element/__provide__/Clipboard.cjs.map +1 -0
- package/buildLibs/utils/Element/__provide__/Clipboard.d.ts +2 -0
- package/buildLibs/utils/Element/__provide__/Clipboard.js +62 -0
- package/buildLibs/utils/Element/__provide__/Clipboard.js.map +1 -0
- package/buildLibs/utils/Element/__provide__/LoadScreen.cjs +2 -0
- package/buildLibs/utils/Element/__provide__/LoadScreen.cjs.map +1 -0
- package/buildLibs/utils/Element/__provide__/LoadScreen.d.ts +2 -0
- package/buildLibs/utils/Element/__provide__/LoadScreen.js +17 -0
- package/buildLibs/utils/Element/__provide__/LoadScreen.js.map +1 -0
- package/buildLibs/utils/Element/__provide__/languagePack.cjs +2 -0
- package/buildLibs/utils/Element/__provide__/languagePack.cjs.map +1 -0
- package/buildLibs/utils/Element/__provide__/languagePack.d.ts +2 -0
- package/buildLibs/utils/Element/__provide__/languagePack.js +29 -0
- package/buildLibs/utils/Element/__provide__/languagePack.js.map +1 -0
- package/buildLibs/utils/Mobile/ClCell.cjs +2 -0
- package/buildLibs/utils/Mobile/ClCell.cjs.map +1 -0
- package/buildLibs/utils/Mobile/ClCell.css +1 -0
- package/buildLibs/utils/Mobile/ClCell.d.ts +3 -0
- package/buildLibs/utils/Mobile/ClCell.js +130 -0
- package/buildLibs/utils/Mobile/ClCell.js.map +1 -0
- package/buildLibs/utils/Mobile/ClPullToRefresh.cjs +2 -0
- package/buildLibs/utils/Mobile/ClPullToRefresh.cjs.map +1 -0
- package/buildLibs/utils/Mobile/ClPullToRefresh.css +1 -0
- package/buildLibs/utils/Mobile/ClPullToRefresh.d.ts +3 -0
- package/buildLibs/utils/Mobile/ClPullToRefresh.js +195 -0
- package/buildLibs/utils/Mobile/ClPullToRefresh.js.map +1 -0
- package/buildLibs/utils/Shared/Alert.css +1 -0
- package/buildLibs/utils/Shared/Base.css +1 -0
- package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-C_-WLPmH.js +2 -0
- package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-C_-WLPmH.js.map +1 -0
- package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-Duh9tbur.js +354 -0
- package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-Duh9tbur.js.map +1 -0
- package/buildLibs/utils/Shared/BaseTransition.css +1 -0
- package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DEXehdBc.js +2 -0
- package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DEXehdBc.js.map +1 -0
- package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DLAYzSgX.js +121 -0
- package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DLAYzSgX.js.map +1 -0
- package/buildLibs/utils/Shared/Highlight.css +1 -0
- package/buildLibs/utils/Shared/Index.css +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-AhjUdZHr.js +233 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-AhjUdZHr.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B3Jxjv3S.js +75 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B3Jxjv3S.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BSTGdmJD.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BSTGdmJD.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BWdaQyLA.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BWdaQyLA.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BYmK-TqX.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BYmK-TqX.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B_jfFc6B.js +143 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B_jfFc6B.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BjRPiJPA.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BjRPiJPA.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Bv5Aqano.js +24 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Bv5Aqano.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BvGrVSSF.js +1146 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BvGrVSSF.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BxtgFrvB.js +336 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BxtgFrvB.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C1ANWb2_.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C1ANWb2_.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C4XFCLbD.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C4XFCLbD.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C4rRquU-.js +165 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C4rRquU-.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CIdipm_Z.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CIdipm_Z.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CNa69faz.js +168 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CNa69faz.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CPWxeZzn.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CPWxeZzn.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CVPvV5cZ.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CVPvV5cZ.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CejRfZxl.js +70 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CejRfZxl.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Cjhn8JLr.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Cjhn8JLr.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Cuv5NgcY.js +84 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Cuv5NgcY.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-D5cJAhwe.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-D5cJAhwe.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DKAxas3I.js +98 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DKAxas3I.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DWw1B8Z2.js +342 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DWw1B8Z2.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Da4Z8GsB.js +166 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Da4Z8GsB.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Dd2V82en.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Dd2V82en.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DfYsa_hk.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DfYsa_hk.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DlCXpiu6.js +384 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DlCXpiu6.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DpxHzkjC.js +462 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DpxHzkjC.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Ds2Q0eNQ.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Ds2Q0eNQ.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DxWcQL_8.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DxWcQL_8.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-HDdyVujM.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-HDdyVujM.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-SO7WBNgE.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-SO7WBNgE.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-_Zu2nb2q.js +593 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-_Zu2nb2q.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-gzy5AIqr.js +54 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-gzy5AIqr.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-inXYfqWx.js +144 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-inXYfqWx.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-p08PZCov.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-p08PZCov.js.map +1 -0
- package/buildLibs/utils/Shared/Index10.css +1 -0
- package/buildLibs/utils/Shared/Index11.css +1 -0
- package/buildLibs/utils/Shared/Index12.css +1 -0
- package/buildLibs/utils/Shared/Index13.css +1 -0
- package/buildLibs/utils/Shared/Index14.css +1 -0
- package/buildLibs/utils/Shared/Index15.css +1 -0
- package/buildLibs/utils/Shared/Index16.css +1 -0
- package/buildLibs/utils/Shared/Index17.css +1 -0
- package/buildLibs/utils/Shared/Index18.css +1 -0
- package/buildLibs/utils/Shared/Index19.css +1 -0
- package/buildLibs/utils/Shared/Index2.css +1 -0
- package/buildLibs/utils/Shared/Index3.css +1 -0
- package/buildLibs/utils/Shared/Index4.css +1 -0
- package/buildLibs/utils/Shared/Index5.css +1 -0
- package/buildLibs/utils/Shared/Index6.css +1 -0
- package/buildLibs/utils/Shared/Index7.css +1 -0
- package/buildLibs/utils/Shared/Index8.css +1 -0
- package/buildLibs/utils/Shared/Index9.css +1 -0
- package/buildLibs/utils/Shared/Ing-C_3NkQxd.js +43 -0
- package/buildLibs/utils/Shared/Ing-C_3NkQxd.js.map +1 -0
- package/buildLibs/utils/Shared/Ing-D_cd5IxY.js +2 -0
- package/buildLibs/utils/Shared/Ing-D_cd5IxY.js.map +1 -0
- package/buildLibs/utils/Shared/Ing.css +1 -0
- package/buildLibs/utils/Shared/List.vue_vue_type_script_setup_true_lang-Dr6PppOP.js +2 -0
- package/buildLibs/utils/Shared/List.vue_vue_type_script_setup_true_lang-Dr6PppOP.js.map +1 -0
- package/buildLibs/utils/Shared/List.vue_vue_type_script_setup_true_lang-DzmylhZ6.js +141 -0
- package/buildLibs/utils/Shared/List.vue_vue_type_script_setup_true_lang-DzmylhZ6.js.map +1 -0
- package/buildLibs/utils/Shared/Notify.css +1 -0
- package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-BuNRS-9u.js +87 -0
- package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-BuNRS-9u.js.map +1 -0
- package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-E9U8wdGT.js +2 -0
- package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-E9U8wdGT.js.map +1 -0
- package/buildLibs/utils/Shared/Popup.vue_vue_type_script_setup_true_lang-CbaTn8Yz.js +109 -0
- package/buildLibs/utils/Shared/Popup.vue_vue_type_script_setup_true_lang-CbaTn8Yz.js.map +1 -0
- package/buildLibs/utils/Shared/Popup.vue_vue_type_script_setup_true_lang-D6uynoJZ.js +2 -0
- package/buildLibs/utils/Shared/Popup.vue_vue_type_script_setup_true_lang-D6uynoJZ.js.map +1 -0
- package/buildLibs/utils/Shared/Tooltip.css +1 -0
- package/buildLibs/utils/Shared/Waves.css +7 -0
- package/buildLibs/utils/Shared/_plugin-vue_export-helper-BHFhmbuH.js +2 -0
- package/buildLibs/utils/Shared/_plugin-vue_export-helper-BHFhmbuH.js.map +1 -0
- package/buildLibs/utils/Shared/_plugin-vue_export-helper-CHgC5LLL.js +10 -0
- package/buildLibs/utils/Shared/_plugin-vue_export-helper-CHgC5LLL.js.map +1 -0
- package/buildLibs/utils/Shared/base-PQGakkrl.js +808 -0
- package/buildLibs/utils/Shared/base-PQGakkrl.js.map +1 -0
- package/buildLibs/utils/Shared/base-iCmnU-fv.js +2 -0
- package/buildLibs/utils/Shared/base-iCmnU-fv.js.map +1 -0
- package/buildLibs/utils/Shared/day-Bz9LfelO.js +75 -0
- package/buildLibs/utils/Shared/day-Bz9LfelO.js.map +1 -0
- package/buildLibs/utils/Shared/day-CvcvgKjb.js +2 -0
- package/buildLibs/utils/Shared/day-CvcvgKjb.js.map +1 -0
- package/buildLibs/utils/Shared/drag-CzE5R222.js +2 -0
- package/buildLibs/utils/Shared/drag-CzE5R222.js.map +1 -0
- package/buildLibs/utils/Shared/drag-CzfhSB0g.js +42 -0
- package/buildLibs/utils/Shared/drag-CzfhSB0g.js.map +1 -0
- package/buildLibs/utils/Shared/index-BnerInzC.js +432 -0
- package/buildLibs/utils/Shared/index-BnerInzC.js.map +1 -0
- package/buildLibs/utils/Shared/index-C1R9HAvS.js +320 -0
- package/buildLibs/utils/Shared/index-C1R9HAvS.js.map +1 -0
- package/buildLibs/utils/Shared/index-CVBh8iTg.js +2 -0
- package/buildLibs/utils/Shared/index-CVBh8iTg.js.map +1 -0
- package/buildLibs/utils/Shared/index-Ul6uY51t.js +3 -0
- package/buildLibs/utils/Shared/index-Ul6uY51t.js.map +1 -0
- package/buildLibs/utils/Shared/language-D6gRWx8H.js +2 -0
- package/buildLibs/utils/Shared/language-D6gRWx8H.js.map +1 -0
- package/buildLibs/utils/Shared/language-DxTlvFs2.js +18 -0
- package/buildLibs/utils/Shared/language-DxTlvFs2.js.map +1 -0
- package/buildLibs/utils/Shared/resize-COkswDOq.js +2 -0
- package/buildLibs/utils/Shared/resize-COkswDOq.js.map +1 -0
- package/buildLibs/utils/Shared/resize-kOWxHVSP.js +54 -0
- package/buildLibs/utils/Shared/resize-kOWxHVSP.js.map +1 -0
- package/buildLibs/utils/Shared/vue-virtual-scroller.css +1 -0
- package/buildLibs/utils/Web/ClBreadcrumb.cjs +2 -0
- package/buildLibs/utils/Web/ClBreadcrumb.cjs.map +1 -0
- package/buildLibs/utils/Web/ClBreadcrumb.css +1 -0
- package/buildLibs/utils/Web/ClBreadcrumb.d.ts +3 -0
- package/buildLibs/utils/Web/ClBreadcrumb.js +82 -0
- package/buildLibs/utils/Web/ClBreadcrumb.js.map +1 -0
- package/buildLibs/utils/Web/ClCalendar.cjs +2 -0
- package/buildLibs/utils/Web/ClCalendar.cjs.map +1 -0
- package/buildLibs/utils/Web/ClCalendar.css +1 -0
- package/buildLibs/utils/Web/ClCalendar.d.ts +3 -0
- package/buildLibs/utils/Web/ClCalendar.js +179 -0
- package/buildLibs/utils/Web/ClCalendar.js.map +1 -0
- package/buildLibs/utils/Web/ClCard.cjs +2 -0
- package/buildLibs/utils/Web/ClCard.cjs.map +1 -0
- package/buildLibs/utils/Web/ClCard.d.ts +3 -0
- package/buildLibs/utils/Web/ClCard.js +5 -0
- package/buildLibs/utils/Web/ClCard.js.map +1 -0
- package/buildLibs/utils/Web/ClCardLegend.cjs +2 -0
- package/buildLibs/utils/Web/ClCardLegend.cjs.map +1 -0
- package/buildLibs/utils/Web/ClCardLegend.css +1 -0
- package/buildLibs/utils/Web/ClCardLegend.d.ts +3 -0
- package/buildLibs/utils/Web/ClCardLegend.js +128 -0
- package/buildLibs/utils/Web/ClCardLegend.js.map +1 -0
- package/buildLibs/utils/Web/ClCollapse.cjs +2 -0
- package/buildLibs/utils/Web/ClCollapse.cjs.map +1 -0
- package/buildLibs/utils/Web/ClCollapse.css +1 -0
- package/buildLibs/utils/Web/ClCollapse.d.ts +3 -0
- package/buildLibs/utils/Web/ClCollapse.js +111 -0
- package/buildLibs/utils/Web/ClCollapse.js.map +1 -0
- package/buildLibs/utils/Web/ClColorpicker.cjs +2 -0
- package/buildLibs/utils/Web/ClColorpicker.cjs.map +1 -0
- package/buildLibs/utils/Web/ClColorpicker.css +1 -0
- package/buildLibs/utils/Web/ClColorpicker.d.ts +3 -0
- package/buildLibs/utils/Web/ClColorpicker.js +1130 -0
- package/buildLibs/utils/Web/ClColorpicker.js.map +1 -0
- package/buildLibs/utils/Web/ClCropperPreview.cjs +2 -0
- package/buildLibs/utils/Web/ClCropperPreview.cjs.map +1 -0
- package/buildLibs/utils/Web/ClCropperPreview.d.ts +3 -0
- package/buildLibs/utils/Web/ClCropperPreview.js +175 -0
- package/buildLibs/utils/Web/ClCropperPreview.js.map +1 -0
- package/buildLibs/utils/Web/ClDatetime.cjs +2 -0
- package/buildLibs/utils/Web/ClDatetime.cjs.map +1 -0
- package/buildLibs/utils/Web/ClDatetime.css +1 -0
- package/buildLibs/utils/Web/ClDatetime.d.ts +3 -0
- package/buildLibs/utils/Web/ClDatetime.js +2002 -0
- package/buildLibs/utils/Web/ClDatetime.js.map +1 -0
- package/buildLibs/utils/Web/ClDropdownmenu.cjs +2 -0
- package/buildLibs/utils/Web/ClDropdownmenu.cjs.map +1 -0
- package/buildLibs/utils/Web/ClDropdownmenu.css +1 -0
- package/buildLibs/utils/Web/ClDropdownmenu.d.ts +3 -0
- package/buildLibs/utils/Web/ClDropdownmenu.js +75 -0
- package/buildLibs/utils/Web/ClDropdownmenu.js.map +1 -0
- package/buildLibs/utils/Web/ClDropdownmenuItem.d.ts +3 -0
- package/buildLibs/utils/Web/ClDropdownpopup.cjs +2 -0
- package/buildLibs/utils/Web/ClDropdownpopup.cjs.map +1 -0
- package/buildLibs/utils/Web/ClDropdownpopup.css +1 -0
- package/buildLibs/utils/Web/ClDropdownpopup.d.ts +3 -0
- package/buildLibs/utils/Web/ClDropdownpopup.js +89 -0
- package/buildLibs/utils/Web/ClDropdownpopup.js.map +1 -0
- package/buildLibs/utils/Web/ClEcharts.cjs +2 -0
- package/buildLibs/utils/Web/ClEcharts.cjs.map +1 -0
- package/buildLibs/utils/Web/ClEcharts.css +1 -0
- package/buildLibs/utils/Web/ClEcharts.d.ts +3 -0
- package/buildLibs/utils/Web/ClEcharts.js +297 -0
- package/buildLibs/utils/Web/ClEcharts.js.map +1 -0
- package/buildLibs/utils/Web/ClFileupload.cjs +2 -0
- package/buildLibs/utils/Web/ClFileupload.cjs.map +1 -0
- package/buildLibs/utils/Web/ClFileupload.d.ts +3 -0
- package/buildLibs/utils/Web/ClFileupload.js +5 -0
- package/buildLibs/utils/Web/ClFileupload.js.map +1 -0
- package/buildLibs/utils/Web/ClInputTag.cjs +6 -0
- package/buildLibs/utils/Web/ClInputTag.cjs.map +1 -0
- package/buildLibs/utils/Web/ClInputTag.d.ts +3 -0
- package/buildLibs/utils/Web/ClInputTag.js +854 -0
- package/buildLibs/utils/Web/ClInputTag.js.map +1 -0
- package/buildLibs/utils/Web/ClPaginate.cjs +2 -0
- package/buildLibs/utils/Web/ClPaginate.cjs.map +1 -0
- package/buildLibs/utils/Web/ClPaginate.css +1 -0
- package/buildLibs/utils/Web/ClPaginate.d.ts +3 -0
- package/buildLibs/utils/Web/ClPaginate.js +167 -0
- package/buildLibs/utils/Web/ClPaginate.js.map +1 -0
- package/buildLibs/utils/Web/ClPortlet.cjs +2 -0
- package/buildLibs/utils/Web/ClPortlet.cjs.map +1 -0
- package/buildLibs/utils/Web/ClPortlet.css +1 -0
- package/buildLibs/utils/Web/ClPortlet.d.ts +3 -0
- package/buildLibs/utils/Web/ClPortlet.js +47 -0
- package/buildLibs/utils/Web/ClPortlet.js.map +1 -0
- package/buildLibs/utils/Web/ClPreview.cjs +2 -0
- package/buildLibs/utils/Web/ClPreview.cjs.map +1 -0
- package/buildLibs/utils/Web/ClPreview.js +5 -0
- package/buildLibs/utils/Web/ClPreview.js.map +1 -0
- package/buildLibs/utils/Web/ClPreviewexample.cjs +2 -0
- package/buildLibs/utils/Web/ClPreviewexample.cjs.map +1 -0
- package/buildLibs/utils/Web/ClPreviewexample.d.ts +3 -0
- package/buildLibs/utils/Web/ClPreviewexample.js +5 -0
- package/buildLibs/utils/Web/ClPreviewexample.js.map +1 -0
- package/buildLibs/utils/Web/ClScrollXFence.cjs +2 -0
- package/buildLibs/utils/Web/ClScrollXFence.cjs.map +1 -0
- package/buildLibs/utils/Web/ClScrollXFence.css +1 -0
- package/buildLibs/utils/Web/ClScrollXFence.d.ts +3 -0
- package/buildLibs/utils/Web/ClScrollXFence.js +107 -0
- package/buildLibs/utils/Web/ClScrollXFence.js.map +1 -0
- package/buildLibs/utils/Web/ClSelect.cjs +2 -0
- package/buildLibs/utils/Web/ClSelect.cjs.map +1 -0
- package/buildLibs/utils/Web/ClSelect.d.ts +3 -0
- package/buildLibs/utils/Web/ClSelect.js +5 -0
- package/buildLibs/utils/Web/ClSelect.js.map +1 -0
- package/buildLibs/utils/Web/ClSelectCascade.cjs +2 -0
- package/buildLibs/utils/Web/ClSelectCascade.cjs.map +1 -0
- package/buildLibs/utils/Web/ClSelectCascade.css +1 -0
- package/buildLibs/utils/Web/ClSelectCascade.d.ts +3 -0
- package/buildLibs/utils/Web/ClSelectCascade.js +222 -0
- package/buildLibs/utils/Web/ClSelectCascade.js.map +1 -0
- package/buildLibs/utils/Web/ClSelectTag.cjs +2 -0
- package/buildLibs/utils/Web/ClSelectTag.cjs.map +1 -0
- package/buildLibs/utils/Web/ClSelectTag.css +1 -0
- package/buildLibs/utils/Web/ClSelectTag.d.ts +3 -0
- package/buildLibs/utils/Web/ClSelectTag.js +249 -0
- package/buildLibs/utils/Web/ClSelectTag.js.map +1 -0
- package/buildLibs/utils/Web/ClSelectTree.cjs +2 -0
- package/buildLibs/utils/Web/ClSelectTree.cjs.map +1 -0
- package/buildLibs/utils/Web/ClSelectTree.css +1 -0
- package/buildLibs/utils/Web/ClSelectTree.d.ts +3 -0
- package/buildLibs/utils/Web/ClSelectTree.js +190 -0
- package/buildLibs/utils/Web/ClSelectTree.js.map +1 -0
- package/buildLibs/utils/Web/ClSelectmove.cjs +2 -0
- package/buildLibs/utils/Web/ClSelectmove.cjs.map +1 -0
- package/buildLibs/utils/Web/ClSelectmove.css +1 -0
- package/buildLibs/utils/Web/ClSelectmove.d.ts +3 -0
- package/buildLibs/utils/Web/ClSelectmove.js +1090 -0
- package/buildLibs/utils/Web/ClSelectmove.js.map +1 -0
- package/buildLibs/utils/Web/ClSidemenu.cjs +2 -0
- package/buildLibs/utils/Web/ClSidemenu.cjs.map +1 -0
- package/buildLibs/utils/Web/ClSidemenu.css +1 -0
- package/buildLibs/utils/Web/ClSidemenu.d.ts +3 -0
- package/buildLibs/utils/Web/ClSidemenu.js +190 -0
- package/buildLibs/utils/Web/ClSidemenu.js.map +1 -0
- package/buildLibs/utils/Web/ClTable.cjs +2 -0
- package/buildLibs/utils/Web/ClTable.cjs.map +1 -0
- package/buildLibs/utils/Web/ClTable.css +1 -0
- package/buildLibs/utils/Web/ClTable.d.ts +3 -0
- package/buildLibs/utils/Web/ClTable.js +1914 -0
- package/buildLibs/utils/Web/ClTable.js.map +1 -0
- package/buildLibs/utils/Web/ClTabs.cjs +2 -0
- package/buildLibs/utils/Web/ClTabs.cjs.map +1 -0
- package/buildLibs/utils/Web/ClTabs.css +1 -0
- package/buildLibs/utils/Web/ClTabs.d.ts +3 -0
- package/buildLibs/utils/Web/ClTabs.js +276 -0
- package/buildLibs/utils/Web/ClTabs.js.map +1 -0
- package/buildLibs/utils/Web/ClTree.cjs +2 -0
- package/buildLibs/utils/Web/ClTree.cjs.map +1 -0
- package/buildLibs/utils/Web/ClTree.css +1 -0
- package/buildLibs/utils/Web/ClTree.d.ts +3 -0
- package/buildLibs/utils/Web/ClTree.js +416 -0
- package/buildLibs/utils/Web/ClTree.js.map +1 -0
- package/buildLibs/utils/Web/ClWeekhour.cjs +2 -0
- package/buildLibs/utils/Web/ClWeekhour.cjs.map +1 -0
- package/buildLibs/utils/Web/ClWeekhour.css +1 -0
- package/buildLibs/utils/Web/ClWeekhour.d.ts +3 -0
- package/buildLibs/utils/Web/ClWeekhour.js +679 -0
- package/buildLibs/utils/Web/ClWeekhour.js.map +1 -0
- package/buildLibs/utils/Web/ClXeditable.cjs +2 -0
- package/buildLibs/utils/Web/ClXeditable.cjs.map +1 -0
- package/buildLibs/utils/Web/ClXeditable.css +1 -0
- package/buildLibs/utils/Web/ClXeditable.d.ts +3 -0
- package/buildLibs/utils/Web/ClXeditable.js +593 -0
- package/buildLibs/utils/Web/ClXeditable.js.map +1 -0
- package/buildLibs/utils/Web/__directive__/Highlight.cjs +4 -0
- package/buildLibs/utils/Web/__directive__/Highlight.cjs.map +1 -0
- package/buildLibs/utils/Web/__directive__/Highlight.d.ts +2 -0
- package/buildLibs/utils/Web/__directive__/Highlight.js +3625 -0
- package/buildLibs/utils/Web/__directive__/Highlight.js.map +1 -0
- package/buildLibs/utils/Web/__directive__/Tooltip.cjs +2 -0
- package/buildLibs/utils/Web/__directive__/Tooltip.cjs.map +1 -0
- package/buildLibs/utils/Web/__directive__/Tooltip.d.ts +2 -0
- package/buildLibs/utils/Web/__directive__/Tooltip.js +356 -0
- package/buildLibs/utils/Web/__directive__/Tooltip.js.map +1 -0
- package/buildLibs/utils/Web/__directive__/Waves.cjs +9 -0
- package/buildLibs/utils/Web/__directive__/Waves.cjs.map +1 -0
- package/buildLibs/utils/Web/__directive__/Waves.d.ts +2 -0
- package/buildLibs/utils/Web/__directive__/Waves.js +256 -0
- package/buildLibs/utils/Web/__directive__/Waves.js.map +1 -0
- package/buildLibs/utils/Web/__provide__/Alert.cjs +2 -0
- package/buildLibs/utils/Web/__provide__/Alert.cjs.map +1 -0
- package/buildLibs/utils/Web/__provide__/Alert.d.ts +2 -0
- package/buildLibs/utils/Web/__provide__/Alert.js +236 -0
- package/buildLibs/utils/Web/__provide__/Alert.js.map +1 -0
- package/buildLibs/utils/Web/__provide__/Notify.cjs +2 -0
- package/buildLibs/utils/Web/__provide__/Notify.cjs.map +1 -0
- package/buildLibs/utils/Web/__provide__/Notify.d.ts +2 -0
- package/buildLibs/utils/Web/__provide__/Notify.js +235 -0
- package/buildLibs/utils/Web/__provide__/Notify.js.map +1 -0
- package/buildLibs/utils/Web/__provide__/Preview.cjs +2 -0
- package/buildLibs/utils/Web/__provide__/Preview.cjs.map +1 -0
- package/buildLibs/utils/Web/__provide__/Preview.d.ts +2 -0
- package/buildLibs/utils/Web/__provide__/Preview.js +26 -0
- package/buildLibs/utils/Web/__provide__/Preview.js.map +1 -0
- package/buildLibs/web/index.cjs +97 -0
- package/buildLibs/web/index.cjs.map +1 -0
- package/buildLibs/web/index.d.ts +81 -0
- package/buildLibs/web/index.js +164 -0
- package/buildLibs/web/index.js.map +1 -0
- package/docs/components/Element/AnchorNav.md +19 -0
- package/docs/components/Element/Badge.md +24 -0
- package/docs/components/Element/Button.md +45 -0
- package/docs/components/Element/Checkbox.md +48 -0
- package/docs/components/Element/Clipboard.md +34 -0
- package/docs/components/Element/Countup.md +12 -0
- package/docs/components/Element/Cropper.md +46 -0
- package/docs/components/Element/Darg.md +30 -0
- package/docs/components/Element/Ellipsis.md +12 -0
- package/docs/components/Element/Form.md +25 -0
- package/docs/components/Element/FormGroup.md +29 -0
- package/docs/components/Element/IconFont.md +12 -0
- package/docs/components/Element/Image.md +18 -0
- package/docs/components/Element/Input.md +65 -0
- package/docs/components/Element/InputCaptcha.md +27 -0
- package/docs/components/Element/InputNumber.md +51 -0
- package/docs/components/Element/InputSearch.md +43 -0
- package/docs/components/Element/InputTextarea.md +52 -0
- package/docs/components/Element/Link.md +41 -0
- package/docs/components/Element/Load.md +20 -0
- package/docs/components/Element/LoadScreen.md +19 -0
- package/docs/components/Element/Modal.md +51 -0
- package/docs/components/Element/Progress.md +28 -0
- package/docs/components/Element/Radio.md +41 -0
- package/docs/components/Element/Slider.md +33 -0
- package/docs/components/Element/Switchery.md +42 -0
- package/docs/components/Element/Tags.md +39 -0
- package/docs/components/Element/Waterfall.md +36 -0
- package/docs/components/Mobile/Cell.md +49 -0
- package/docs/components/Mobile/PullToRefresh.md +52 -0
- package/docs/components/Web/Breadcrumb.md +26 -0
- package/docs/components/Web/Calendar.md +34 -0
- package/docs/components/Web/Card.md +22 -0
- package/docs/components/Web/CardLegend.md +20 -0
- package/docs/components/Web/Collapse.md +26 -0
- package/docs/components/Web/Colorpicker.md +41 -0
- package/docs/components/Web/CropperPreview.md +43 -0
- package/docs/components/Web/Datetime.md +52 -0
- package/docs/components/Web/Dropdownmenu.md +33 -0
- package/docs/components/Web/Dropdownpopup.md +47 -0
- package/docs/components/Web/Echarts.md +43 -0
- package/docs/components/Web/Fileupload.md +60 -0
- package/docs/components/Web/InputTag.md +56 -0
- package/docs/components/Web/Paginate.md +30 -0
- package/docs/components/Web/Portlet.md +27 -0
- package/docs/components/Web/Preview.md +19 -0
- package/docs/components/Web/Previewexample.md +39 -0
- package/docs/components/Web/ScrollXFence.md +38 -0
- package/docs/components/Web/Select.md +56 -0
- package/docs/components/Web/SelectCascade.md +37 -0
- package/docs/components/Web/SelectTag.md +43 -0
- package/docs/components/Web/SelectTree.md +44 -0
- package/docs/components/Web/Selectmove.md +58 -0
- package/docs/components/Web/Sidemenu.md +25 -0
- package/docs/components/Web/Table.md +78 -0
- package/docs/components/Web/Tabs.md +47 -0
- package/docs/components/Web/Tree.md +44 -0
- package/docs/components/Web/Weekhour.md +29 -0
- package/docs/components/Web/Xeditable.md +52 -0
- package/docs/tools/CommonAxios.md +17 -0
- package/docs/tools/CommonBase.md +79 -0
- package/docs/tools/CommonDay.md +18 -0
- package/docs/tools/CommonEchart.md +19 -0
- package/docs/tools/CommonElement.md +42 -0
- package/docs/tools/CommonElementEvent.md +30 -0
- package/docs/tools/CommonI18n.md +18 -0
- package/docs/tools/CommonPromise.md +16 -0
- package/docs/tools/CommonTools.md +43 -0
- package/docs/tools/CommonTooltip.md +38 -0
- package/package.json +123 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const r=require("./base-iCmnU-fv.cjs");class i{static _guard(e,t){try{return e()}catch{return t}}static getItem(e){return this._guard(()=>{const t=window.localStorage.getItem(e);if(!r.CommonBase.isString(t))return t;try{return JSON.parse(t)}catch{return t}},null)}static setItem(e,t){return this._guard(()=>{let o;return r.CommonBase.isJson(t)&&r.CommonBase.isObject(t)&&(o=JSON.stringify(t)),window.localStorage.setItem(e,o||t)},void 0)}static removeItem(e){this._guard(()=>{window.localStorage.removeItem(e)},void 0)}static removeList(e){this._guard(()=>{r.CommonBase.isEmpty(e)||e.forEach(t=>{window.localStorage.removeItem(t)})},void 0)}static clearAll(){this._guard(()=>{window.localStorage.clear()},void 0)}}exports.LocalStorage=i;
|
|
2
|
+
//# sourceMappingURL=Tools_localStorage-Cbecy4gj.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tools_localStorage-Cbecy4gj.cjs","sources":["../../src/libs/Common/Tools/localStorage.ts"],"sourcesContent":["import CommonBase from \"../base\";\nclass LocalStorage {\n private static _guard<T>(fn: () => T, fallback: T): T {\n try {\n return fn();\n } catch {\n return fallback;\n }\n }\n\n static getItem(key: string): any {\n return this._guard(() => {\n const raw: any = window.localStorage.getItem(key);\n if (!CommonBase.isString(raw)) return raw;\n try {\n return JSON.parse(raw);\n } catch {\n return raw;\n }\n }, null);\n }\n static setItem(key: string, data: any): any {\n return this._guard(() => {\n let convertValue: any;\n if (CommonBase.isJson(data)) {\n if (CommonBase.isObject(data)) {\n convertValue = JSON.stringify(data);\n }\n }\n return window.localStorage.setItem(key, convertValue || data);\n }, undefined);\n }\n static removeItem(key: string): any {\n this._guard(() => { window.localStorage.removeItem(key); }, undefined);\n }\n static removeList(arr: string[]): any {\n this._guard(() => {\n if (!CommonBase.isEmpty(arr)) {\n arr.forEach((k: string) => {\n window.localStorage.removeItem(k);\n });\n }\n }, undefined);\n }\n static clearAll(): any {\n this._guard(() => { window.localStorage.clear(); }, undefined);\n }\n}\nexport default LocalStorage;\n"],"names":["LocalStorage","fn","fallback","key","raw","CommonBase","data","convertValue","arr","k"],"mappings":"oDACA,MAAMA,CAAa,CACf,OAAe,OAAUC,EAAaC,EAAgB,CAClD,GAAI,CACA,OAAOD,EAAA,CACX,MAAQ,CACJ,OAAOC,CACX,CACJ,CAEA,OAAO,QAAQC,EAAkB,CAC7B,OAAO,KAAK,OAAO,IAAM,CACrB,MAAMC,EAAW,OAAO,aAAa,QAAQD,CAAG,EAChD,GAAI,CAACE,EAAAA,WAAW,SAASD,CAAG,EAAG,OAAOA,EACtC,GAAI,CACA,OAAO,KAAK,MAAMA,CAAG,CACzB,MAAQ,CACJ,OAAOA,CACX,CACJ,EAAG,IAAI,CACX,CACA,OAAO,QAAQD,EAAaG,EAAgB,CACxC,OAAO,KAAK,OAAO,IAAM,CACrB,IAAIC,EACJ,OAAIF,EAAAA,WAAW,OAAOC,CAAI,GAClBD,EAAAA,WAAW,SAASC,CAAI,IACxBC,EAAe,KAAK,UAAUD,CAAI,GAGnC,OAAO,aAAa,QAAQH,EAAKI,GAAgBD,CAAI,CAChE,EAAG,MAAS,CAChB,CACA,OAAO,WAAWH,EAAkB,CAChC,KAAK,OAAO,IAAM,CAAE,OAAO,aAAa,WAAWA,CAAG,CAAG,EAAG,MAAS,CACzE,CACA,OAAO,WAAWK,EAAoB,CAClC,KAAK,OAAO,IAAM,CACTH,EAAAA,WAAW,QAAQG,CAAG,GACvBA,EAAI,QAASC,GAAc,CACvB,OAAO,aAAa,WAAWA,CAAC,CACpC,CAAC,CAET,EAAG,MAAS,CAChB,CACA,OAAO,UAAgB,CACnB,KAAK,OAAO,IAAM,CAAE,OAAO,aAAa,MAAA,CAAS,EAAG,MAAS,CACjE,CACJ"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { C as e } from "./base-PQGakkrl.js";
|
|
2
|
+
class s {
|
|
3
|
+
static _guard(r, t) {
|
|
4
|
+
try {
|
|
5
|
+
return r();
|
|
6
|
+
} catch {
|
|
7
|
+
return t;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
static getItem(r) {
|
|
11
|
+
return this._guard(() => {
|
|
12
|
+
const t = window.localStorage.getItem(r);
|
|
13
|
+
if (!e.isString(t)) return t;
|
|
14
|
+
try {
|
|
15
|
+
return JSON.parse(t);
|
|
16
|
+
} catch {
|
|
17
|
+
return t;
|
|
18
|
+
}
|
|
19
|
+
}, null);
|
|
20
|
+
}
|
|
21
|
+
static setItem(r, t) {
|
|
22
|
+
return this._guard(() => {
|
|
23
|
+
let o;
|
|
24
|
+
return e.isJson(t) && e.isObject(t) && (o = JSON.stringify(t)), window.localStorage.setItem(r, o || t);
|
|
25
|
+
}, void 0);
|
|
26
|
+
}
|
|
27
|
+
static removeItem(r) {
|
|
28
|
+
this._guard(() => {
|
|
29
|
+
window.localStorage.removeItem(r);
|
|
30
|
+
}, void 0);
|
|
31
|
+
}
|
|
32
|
+
static removeList(r) {
|
|
33
|
+
this._guard(() => {
|
|
34
|
+
e.isEmpty(r) || r.forEach((t) => {
|
|
35
|
+
window.localStorage.removeItem(t);
|
|
36
|
+
});
|
|
37
|
+
}, void 0);
|
|
38
|
+
}
|
|
39
|
+
static clearAll() {
|
|
40
|
+
this._guard(() => {
|
|
41
|
+
window.localStorage.clear();
|
|
42
|
+
}, void 0);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
s as L
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=Tools_localStorage-DVvhtzhL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tools_localStorage-DVvhtzhL.js","sources":["../../src/libs/Common/Tools/localStorage.ts"],"sourcesContent":["import CommonBase from \"../base\";\nclass LocalStorage {\n private static _guard<T>(fn: () => T, fallback: T): T {\n try {\n return fn();\n } catch {\n return fallback;\n }\n }\n\n static getItem(key: string): any {\n return this._guard(() => {\n const raw: any = window.localStorage.getItem(key);\n if (!CommonBase.isString(raw)) return raw;\n try {\n return JSON.parse(raw);\n } catch {\n return raw;\n }\n }, null);\n }\n static setItem(key: string, data: any): any {\n return this._guard(() => {\n let convertValue: any;\n if (CommonBase.isJson(data)) {\n if (CommonBase.isObject(data)) {\n convertValue = JSON.stringify(data);\n }\n }\n return window.localStorage.setItem(key, convertValue || data);\n }, undefined);\n }\n static removeItem(key: string): any {\n this._guard(() => { window.localStorage.removeItem(key); }, undefined);\n }\n static removeList(arr: string[]): any {\n this._guard(() => {\n if (!CommonBase.isEmpty(arr)) {\n arr.forEach((k: string) => {\n window.localStorage.removeItem(k);\n });\n }\n }, undefined);\n }\n static clearAll(): any {\n this._guard(() => { window.localStorage.clear(); }, undefined);\n }\n}\nexport default LocalStorage;\n"],"names":["LocalStorage","fn","fallback","key","raw","CommonBase","data","convertValue","arr","k"],"mappings":";AACA,MAAMA,EAAa;AAAA,EACf,OAAe,OAAUC,GAAaC,GAAgB;AAClD,QAAI;AACA,aAAOD,EAAA;AAAA,IACX,QAAQ;AACJ,aAAOC;AAAA,IACX;AAAA,EACJ;AAAA,EAEA,OAAO,QAAQC,GAAkB;AAC7B,WAAO,KAAK,OAAO,MAAM;AACrB,YAAMC,IAAW,OAAO,aAAa,QAAQD,CAAG;AAChD,UAAI,CAACE,EAAW,SAASD,CAAG,EAAG,QAAOA;AACtC,UAAI;AACA,eAAO,KAAK,MAAMA,CAAG;AAAA,MACzB,QAAQ;AACJ,eAAOA;AAAA,MACX;AAAA,IACJ,GAAG,IAAI;AAAA,EACX;AAAA,EACA,OAAO,QAAQD,GAAaG,GAAgB;AACxC,WAAO,KAAK,OAAO,MAAM;AACrB,UAAIC;AACJ,aAAIF,EAAW,OAAOC,CAAI,KAClBD,EAAW,SAASC,CAAI,MACxBC,IAAe,KAAK,UAAUD,CAAI,IAGnC,OAAO,aAAa,QAAQH,GAAKI,KAAgBD,CAAI;AAAA,IAChE,GAAG,MAAS;AAAA,EAChB;AAAA,EACA,OAAO,WAAWH,GAAkB;AAChC,SAAK,OAAO,MAAM;AAAE,aAAO,aAAa,WAAWA,CAAG;AAAA,IAAG,GAAG,MAAS;AAAA,EACzE;AAAA,EACA,OAAO,WAAWK,GAAoB;AAClC,SAAK,OAAO,MAAM;AACd,MAAKH,EAAW,QAAQG,CAAG,KACvBA,EAAI,QAAQ,CAACC,MAAc;AACvB,eAAO,aAAa,WAAWA,CAAC;AAAA,MACpC,CAAC;AAAA,IAET,GAAG,MAAS;AAAA,EAChB;AAAA,EACA,OAAO,WAAgB;AACnB,SAAK,OAAO,MAAM;AAAE,aAAO,aAAa,MAAA;AAAA,IAAS,GAAG,MAAS;AAAA,EACjE;AACJ;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("decimal.js");class m{static initDecimal(t){return new e(t)}static add(t,i){return this.initDecimal(t).add(this.initDecimal(i)).toNumber()}static sub(t,i){return this.initDecimal(t).sub(this.initDecimal(i)).toNumber()}static mul(t,i){return this.initDecimal(t).mul(this.initDecimal(i)).toNumber()}static div(t,i){return i===0||i===void 0||i===null?0:this.initDecimal(t).div(this.initDecimal(i)).toNumber()}}exports.CommNumber=m;
|
|
2
|
+
//# sourceMappingURL=Tools_number-Bh6hGO5U.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tools_number-Bh6hGO5U.cjs","sources":["../../src/libs/Common/Tools/number.ts"],"sourcesContent":["import Decimal from \"decimal.js\";\nclass CommNumber {\n static initDecimal(n: number): any {\n return new Decimal(n);\n }\n static add(n1: number, n2: number): any {\n return this.initDecimal(n1).add(this.initDecimal(n2)).toNumber();\n }\n static sub(n1: number, n2: number): any {\n return this.initDecimal(n1).sub(this.initDecimal(n2)).toNumber();\n }\n static mul(n1: number, n2: number): any {\n return this.initDecimal(n1).mul(this.initDecimal(n2)).toNumber();\n }\n static div(n1: number, n2: number): any {\n if (n2 === 0 || n2 === undefined || n2 === null) return 0;\n return this.initDecimal(n1).div(this.initDecimal(n2)).toNumber();\n }\n}\nexport default CommNumber;\n"],"names":["CommNumber","n","Decimal","n1","n2"],"mappings":"2CACA,MAAMA,CAAW,CACb,OAAO,YAAYC,EAAgB,CAC/B,OAAO,IAAIC,EAAQD,CAAC,CACxB,CACA,OAAO,IAAIE,EAAYC,EAAiB,CACpC,OAAO,KAAK,YAAYD,CAAE,EAAE,IAAI,KAAK,YAAYC,CAAE,CAAC,EAAE,SAAA,CAC1D,CACA,OAAO,IAAID,EAAYC,EAAiB,CACpC,OAAO,KAAK,YAAYD,CAAE,EAAE,IAAI,KAAK,YAAYC,CAAE,CAAC,EAAE,SAAA,CAC1D,CACA,OAAO,IAAID,EAAYC,EAAiB,CACpC,OAAO,KAAK,YAAYD,CAAE,EAAE,IAAI,KAAK,YAAYC,CAAE,CAAC,EAAE,SAAA,CAC1D,CACA,OAAO,IAAID,EAAYC,EAAiB,CACpC,OAAIA,IAAO,GAAKA,IAAO,QAAaA,IAAO,KAAa,EACjD,KAAK,YAAYD,CAAE,EAAE,IAAI,KAAK,YAAYC,CAAE,CAAC,EAAE,SAAA,CAC1D,CACJ"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import e from "decimal.js";
|
|
2
|
+
class a {
|
|
3
|
+
static initDecimal(t) {
|
|
4
|
+
return new e(t);
|
|
5
|
+
}
|
|
6
|
+
static add(t, i) {
|
|
7
|
+
return this.initDecimal(t).add(this.initDecimal(i)).toNumber();
|
|
8
|
+
}
|
|
9
|
+
static sub(t, i) {
|
|
10
|
+
return this.initDecimal(t).sub(this.initDecimal(i)).toNumber();
|
|
11
|
+
}
|
|
12
|
+
static mul(t, i) {
|
|
13
|
+
return this.initDecimal(t).mul(this.initDecimal(i)).toNumber();
|
|
14
|
+
}
|
|
15
|
+
static div(t, i) {
|
|
16
|
+
return i === 0 || i === void 0 || i === null ? 0 : this.initDecimal(t).div(this.initDecimal(i)).toNumber();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
a as C
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=Tools_number-C_MjN473.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tools_number-C_MjN473.js","sources":["../../src/libs/Common/Tools/number.ts"],"sourcesContent":["import Decimal from \"decimal.js\";\nclass CommNumber {\n static initDecimal(n: number): any {\n return new Decimal(n);\n }\n static add(n1: number, n2: number): any {\n return this.initDecimal(n1).add(this.initDecimal(n2)).toNumber();\n }\n static sub(n1: number, n2: number): any {\n return this.initDecimal(n1).sub(this.initDecimal(n2)).toNumber();\n }\n static mul(n1: number, n2: number): any {\n return this.initDecimal(n1).mul(this.initDecimal(n2)).toNumber();\n }\n static div(n1: number, n2: number): any {\n if (n2 === 0 || n2 === undefined || n2 === null) return 0;\n return this.initDecimal(n1).div(this.initDecimal(n2)).toNumber();\n }\n}\nexport default CommNumber;\n"],"names":["CommNumber","n","Decimal","n1","n2"],"mappings":";AACA,MAAMA,EAAW;AAAA,EACb,OAAO,YAAYC,GAAgB;AAC/B,WAAO,IAAIC,EAAQD,CAAC;AAAA,EACxB;AAAA,EACA,OAAO,IAAIE,GAAYC,GAAiB;AACpC,WAAO,KAAK,YAAYD,CAAE,EAAE,IAAI,KAAK,YAAYC,CAAE,CAAC,EAAE,SAAA;AAAA,EAC1D;AAAA,EACA,OAAO,IAAID,GAAYC,GAAiB;AACpC,WAAO,KAAK,YAAYD,CAAE,EAAE,IAAI,KAAK,YAAYC,CAAE,CAAC,EAAE,SAAA;AAAA,EAC1D;AAAA,EACA,OAAO,IAAID,GAAYC,GAAiB;AACpC,WAAO,KAAK,YAAYD,CAAE,EAAE,IAAI,KAAK,YAAYC,CAAE,CAAC,EAAE,SAAA;AAAA,EAC1D;AAAA,EACA,OAAO,IAAID,GAAYC,GAAiB;AACpC,WAAIA,MAAO,KAAKA,MAAO,UAAaA,MAAO,OAAa,IACjD,KAAK,YAAYD,CAAE,EAAE,IAAI,KAAK,YAAYC,CAAE,CAAC,EAAE,SAAA;AAAA,EAC1D;AACJ;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const h=require("axios"),_=require("qs"),r=require("./base-iCmnU-fv.cjs");class q{requestPendingList;globalOptions;constructor(){this.requestPendingList=new Map,this.globalOptions={},this._setInterceptors()}_initRequest(e,t,s){const a=this,n=this._getExtInfo(s.ext);return new Promise(i=>{const l=new Date;let p={url:e,timeout:1e3*15,responseType:"json",retry:3,retryDelay:1e3};p=r.CommonBase.getJsonMerge(p,s.options,t),h(p).then(o=>{if(s.ext._operateType==="fileDownBinary")s.ext.uploadDownBinaryCallback(o,n,i);else{const c=n.resultCallback?n.resultCallback(o):a._initResult(o,n.resultCode);a._initRequestResolve(i,c,n,l)}}).catch(o=>{if(n.errorCallback&&o.response){const c=n.errorCallback(o);c&&(c.then&&r.CommonBase.isFunction(c.then)?c.then(u=>{a._initRequestError(o,i,u,n,l)}):a._initRequestError(o,i,c,n,l))}else{let c="",u="";o.response?c=o.response.status.toString():o.code==="ECONNABORTED"?u="Axios:TimeOut Repeat":r.CommonBase.isEmpty(o.message)||(u=`Axios:${r.CommonBase.isEmpty(o.code)?"":o.code+"-"}${o.message}`);const d=a._initResultErr(c,u);a._initRequestError(o,i,d,n,l)}})})}_initRequestResolve(e,t,s,a){s.isTimeOut?this._timeOut(a,()=>{e(t)}):e(t)}_initRequestError(e,t,s,a,n){h.isCancel(e)||this._initRequestResolve(t,s,a,n)}initGet(e){const t={method:"get",headers:this._getHeader(e.ext),params:e.param};return this._initRequest(e.url,t,e)}initPost(e){const t={method:"post",headers:this._getHeader(e.ext),data:JSON.stringify(e.param)};return this._initRequest(e.url,t,e)}initPut(e){const t=e.url,s={method:"put",headers:this._getHeader(e.ext),data:JSON.stringify(e.param)};return this._initRequest(t,s,e)}initDelete(e){const t=e.url,s={method:"delete",headers:this._getHeader(e.ext),data:JSON.stringify(e.param)};return this._initRequest(t,s,e)}initFile(e){const t={method:"post"},s=this._getHeader(e.ext);t.headers=s;const a=new FormData;return Object.keys(e.param).forEach(n=>{const i=e.param[n];r.CommonBase.isArray(i)?i.forEach(l=>{a.append(n,l)}):a.append(n,e.param[n])}),t.data=a,this._initRequest(e.url,t,e)}initFileDownLoad(e){const t=this,s={method:"post",responseType:"blob"},a=r.CommonBase.isEmpty(e.options.method)?"post":e.options.method;s.method=a;const n=this._getHeader(e.ext);return n["Content-Type"]="application/json;",s.headers=n,r.CommonBase.isEmpty(e.param)||(a==="get"?s.params=e.param:s.data=JSON.stringify(e.param)),e.ext._operateType="fileDownBinary",e.ext.uploadDownBinaryCallback=(i,l,p)=>{const o=new FileReader;o.onload=function(c){try{const u=JSON.parse(c.currentTarget.result),d=l.resultCallback?l.resultCallback({data:u}):t._initResult({data:u},l.resultCode);d.success||p(d)}catch{const d=i.headers["content-disposition"];let m="";r.CommonBase.isEmpty(d)?m=e.param&&e.param.fileName?e.param.fileName:new Date().getTime().toString():m=window.decodeURIComponent(d.split("=")[1]),m=m.replace(/\"/g,"").replace(/'/g,"");let g="";const C=m.lastIndexOf(".");C>-1&&(g=m.substring(C+1));let y;switch(g){case"xls":case"xlsx":y={type:"application/vnd.ms-excel"};break;case"csv":y={type:"text/csv"};break;case"doc":case"docx":y={type:"application/msword"};break;case"pdf":y={type:"application/pdf"};break}const R=new Blob([i.data],y);if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(R,m);else{const f=document.createElement("a");f.href=(window.URL||window.webkitURL).createObjectURL(R),f.download=m,f.style.display="none",document.body.appendChild(f),f.click(),window.URL.revokeObjectURL(f.href)}p({success:!0})}},o.readAsText(i.data)},this._initRequest(e.url,s,e)}_getHeader(e){const t={"Content-Type":"application/json;charset=UTF-8","X-Requested-With":"XMLHttpRequest"};if(e&&e.headerCallback){const s=e.headerCallback();if(!r.CommonBase.isEmpty(s))for(const[a,n]of Object.entries(s))t[a]=n}return t}_getExtInfo(e){const t=r.CommonBase.getJsonClone(e);return t.isTimeOut=r.CommonBase.isBoolean(t.isTimeOut)?t.isTimeOut:!0,t}_timeOut(e,t){const n=new Date().getTime()-e.getTime()-200,i=n>0?0:Math.abs(n);i<=0?t():setTimeout(()=>{t()},i)}_initResult(e,t){const s={code:null,success:!1,msg:"",data:null};if(e.data){s.code=e.data.code.toString();const a=t.success||"200";s.code===a?(s.success=!0,s.data=e.data.data):(s.success=!1,s.msg=e.data.message,s.data=e.data.data)}return s}_initResultErr(e,t){const s={code:null,success:!1,msg:"Axios:Unknown error .",data:null},a=r.CommonBase.isEmpty(t)?`Axios:Unknown error ${e}`:t;return s.msg=a,s}_setInterceptors(){h.interceptors.request.use(e=>(this.globalOptions.interceptorsRequestCallback&&this.globalOptions.interceptorsRequestCallback(e),e&&(!r.CommonBase.isEmpty(e.__retryCount)&&e.__retryCount>0||(this._removeRequestPending(e),this._addRequestPending(e))),e),e=>Promise.reject(e)),h.interceptors.response.use(e=>(this.globalOptions.interceptorsResponseCallback&&this.globalOptions.interceptorsResponseCallback(e),this._removeRequestPending(e.config),e),e=>{if(e.code==="ECONNABORTED"&&e.message.indexOf("timeout")>-1){const t=e.config;return!t||!t.retry||(t.__retryCount=t.__retryCount||0,t.__retryCount>=t.retry)?Promise.reject(e):(t.__retryCount+=1,new Promise(a=>{setTimeout(function(){a()},t.retryDelay||1)}).then(function(){return h(t)}))}else return Promise.reject(e)})}_getRequestKeyMerge(e){const t=e._requestKeyMerge,s=r.CommonBase.isBoolean(e.isRequestCancelRepeat)?e.isRequestCancelRepeat:!0,a=[];return!r.CommonBase.isEmpty(e)&&s&&(r.CommonBase.isUndefined(t)?(a.push(e.method),a.push(e.url),r.CommonBase.isEmpty(e._ran)||a.push(e._ran)):["method","url","params","data","_ran"].forEach(n=>{if(r.CommonBase.isExistValue(t,n)&&!r.CommonBase.isEmpty(e[n])){let i=e[n];n==="params"||n==="data"?(r.CommonBase.isString(i)&&(i=JSON.parse(i)),a.push(_.stringify(i))):(n==="_ran"&&r.CommonBase.isEmpty(i)&&(i=new Date().getTime()),a.push(i))}})),a.join("&")}_addRequestPending(e){const t=this._getRequestKeyMerge(e);r.CommonBase.isEmpty(t)||(e.cancelToken=e.cancelToken||new h.CancelToken(s=>{this.requestPendingList.has(t)||this.requestPendingList.set(t,s)}))}_removeRequestPending(e){const t=this._getRequestKeyMerge(e);!r.CommonBase.isEmpty(t)&&this.requestPendingList.has(t)&&(this.requestPendingList.get(t)(`AxiosCancelRepeatRequest: ${t}`),this.requestPendingList.delete(t))}cancelAll(){const e=[];for(const t of this.requestPendingList)e.push(t[0]);e.forEach(t=>{this.requestPendingList.get(t)(`AxiosCancelRepeatRequest: ${t}`),this.requestPendingList.delete(t)})}setResendAgain(e,t={}){const s=e.config,a=r.CommonBase.isUndefined(t.retryDelay)?500:t.retryDelay;return!s||!s.retry?Promise.reject(e):new Promise(i=>{setTimeout(function(){i()},a||1)}).then(function(){return s.cancelToken=null,h(s)})}setGlobalOptions(e){this.globalOptions=r.CommonBase.getJsonMerge(this.globalOptions,e||{})}}const b=new q;exports.axios=b;
|
|
2
|
+
//# sourceMappingURL=axios-DZoeNi6y.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"axios-DZoeNi6y.cjs","sources":["../../src/libs/Common/axios.ts"],"sourcesContent":["import axios from \"axios\";\nimport qs from \"qs\";\nimport CommonBase from \"./base\";\nclass AxiosRequest {\n requestPendingList: any;\n globalOptions: any;\n constructor() {\n this.requestPendingList = new Map();\n this.globalOptions = {};\n this._setInterceptors();\n }\n private _initRequest(url: string, param: any, optionsAll: any): Promise<any> {\n const self = this;\n const newExtInfo = this._getExtInfo(optionsAll.ext);\n return new Promise((resolve) => {\n const startTime = new Date();\n let options: any = {\n url: url,\n timeout: 1000 * 15,\n responseType: \"json\",\n retry: 3,\n retryDelay: 1000,\n //_requestKeyMerge: [\"method\", \"url\", \"_ran\"],\n };\n options = CommonBase.getJsonMerge(options, optionsAll.options, param);\n\n axios(options).then((response) => {\n if (optionsAll.ext._operateType === \"fileDownBinary\") {\n optionsAll.ext.uploadDownBinaryCallback(response, newExtInfo, resolve);\n } else {\n const initResData = newExtInfo.resultCallback ? newExtInfo.resultCallback(response) : self._initResult(response, newExtInfo.resultCode);\n self._initRequestResolve(resolve, initResData, newExtInfo, startTime);\n }\n\n }).catch((error) => {\n if (newExtInfo.errorCallback && error.response) {\n const errCbResult = newExtInfo.errorCallback(error);\n if (errCbResult) {\n if (errCbResult.then && CommonBase.isFunction(errCbResult.then)) {\n errCbResult.then((result: any) => {\n self._initRequestError(error, resolve, result, newExtInfo, startTime);\n });\n } else {\n self._initRequestError(error, resolve, errCbResult, newExtInfo, startTime);\n }\n }\n } else {\n let errCode = \"\";\n let errMsg = \"\";\n if (error.response) {\n errCode = error.response.status.toString();\n } else if (error.code === \"ECONNABORTED\") {\n errMsg = \"Axios:TimeOut Repeat\";\n } else {\n if (!CommonBase.isEmpty(error.message)) {\n errMsg = `Axios:${CommonBase.isEmpty(error.code) ? \"\" : (error.code + \"-\")}${error.message}`;\n }\n }\n const initErrData = self._initResultErr(errCode, errMsg);\n self._initRequestError(error, resolve, initErrData, newExtInfo, startTime);\n }\n });\n });\n }\n _initRequestResolve(resolve: any, data: any, newExtInfo: any, startTime: any) {\n if (newExtInfo.isTimeOut) {\n this._timeOut(startTime, () => {\n resolve(data);\n });\n } else {\n resolve(data);\n }\n }\n _initRequestError(error: any, resolve: any, errData: any, newExtInfo: any, startTime: any) {\n if (axios.isCancel(error)) {\n //reject({ code: \"-1111\", success: false, msg: error.message });\n } else {\n this._initRequestResolve(resolve, errData, newExtInfo, startTime);\n }\n }\n initGet(options: any) {\n const param = {\n method: \"get\",\n headers: this._getHeader(options.ext),\n params: options.param,\n };\n return this._initRequest(options.url, param, options);\n }\n\n initPost(options: any) {\n const param = {\n method: \"post\",\n headers: this._getHeader(options.ext),\n data: JSON.stringify(options.param),\n };\n return this._initRequest(options.url, param, options);\n }\n\n initPut(options: any) {\n const url = options.url;\n const param = {\n method: \"put\",\n headers: this._getHeader(options.ext),\n data: JSON.stringify(options.param),\n };\n return this._initRequest(url, param, options);\n }\n\n initDelete(options: any) {\n const url = options.url;\n const param = {\n method: \"delete\",\n headers: this._getHeader(options.ext),\n data: JSON.stringify(options.param),\n };\n return this._initRequest(url, param, options);\n }\n\n initFile(options: any) {\n const param: any = {\n method: \"post\",\n };\n const headers: any = this._getHeader(options.ext);\n /* if (options.ext.headerCallback) {\n const headerData = options.ext.headerCallback();\n if (!CommonBase.isEmpty(headerData)) {\n for (const [k, v] of Object.entries(headerData)) {\n headers[k] = v;\n }\n }\n } */\n // headers[\"Content-Type\"] = \"multipart/form-data\";\n /* param.headers = this._getHeader({\n headerCallback: () => headers,\n }); */\n param.headers = headers;\n const formData = new FormData();\n Object.keys(options.param).forEach((pk) => {\n const pv = options.param[pk];\n if (CommonBase.isArray(pv)) {\n pv.forEach((v: any) => {\n formData.append(pk, v);\n });\n } else {\n formData.append(pk, options.param[pk]);\n }\n });\n param.data = formData;\n return this._initRequest(options.url, param, options);\n }\n\n initFileDownLoad(options: any) {\n const self = this;\n const param: any = {\n method: \"post\",\n responseType: \"blob\",\n };\n const methodType = !CommonBase.isEmpty(options.options.method) ? options.options.method : \"post\";\n param.method = methodType;\n\n const headers: any = this._getHeader(options.ext);\n headers[\"Content-Type\"] = \"application/json;\";\n param.headers = headers;\n\n if (!CommonBase.isEmpty(options.param)) {\n if (methodType === \"get\") {\n param.params = options.param;\n } else {\n param.data = JSON.stringify(options.param);\n }\n }\n\n options.ext._operateType = \"fileDownBinary\";\n options.ext.uploadDownBinaryCallback = (response: any, newExtInfo: any, resolve: any) => {\n const fr = new FileReader();\n fr.onload = function(resFr: any) {\n try {\n const resData = JSON.parse(resFr.currentTarget.result);\n const result = newExtInfo.resultCallback ? newExtInfo.resultCallback({ data: resData }) : self._initResult({ data: resData }, newExtInfo.resultCode);\n if (!result.success) {\n resolve(result);\n }\n } catch (err) {\n //const fileName = window.decodeURIComponent(response.headers[\"content-disposition\"].split(\"=\")[1]);\n const contentDisposition = response.headers[\"content-disposition\"];\n let fileName = \"\";\n if (!CommonBase.isEmpty(contentDisposition)) {\n fileName = window.decodeURIComponent(contentDisposition.split(\"=\")[1]);\n } else {\n fileName = options.param && options.param.fileName\n ? options.param.fileName\n : (new Date()).getTime().toString();\n }\n fileName = fileName.replace(/\\\"/g, \"\").replace(/'/g, \"\");\n let fileType = \"\";\n /* const arrFile = fileName.split(\".\");\n if (arrFile.length > 1) {\n fileType = arrFile[1];\n }\n let blobOption: any = undefined;\n if (fileType === \"xlsx\") {\n blobOption = { type: \"application/vnd.ms-excel\" };\n }*/\n const lastIndex = fileName.lastIndexOf(\".\");\n if (lastIndex > -1) {\n fileType = fileName.substring(lastIndex + 1);\n }\n let blobOption: any = undefined;\n switch (fileType) {\n case \"xls\":\n case \"xlsx\":\n blobOption = { type: \"application/vnd.ms-excel\" };\n break;\n case \"csv\":\n blobOption = { type: \"text/csv\" };\n break;\n case \"doc\":\n case \"docx\":\n blobOption = { type: \"application/msword\" };\n break;\n case \"pdf\":\n blobOption = { type: \"application/pdf\" };\n break;\n }\n const blob = new Blob([response.data], blobOption);\n\n //@ts-ignore\n if (window.navigator && window.navigator.msSaveOrOpenBlob) {\n //@ts-ignore\n window.navigator.msSaveOrOpenBlob(blob, fileName);\n } else {\n const link = document.createElement(\"a\");\n link.href = (window.URL || window.webkitURL).createObjectURL(blob);\n link.download = fileName;\n link.style.display = \"none\";\n document.body.appendChild(link);\n link.click();\n //document.body.removeChild(link);\n window.URL.revokeObjectURL(link.href);\n }\n resolve({ success: true });\n }\n };\n fr.readAsText(response.data);\n };\n return this._initRequest(options.url, param, options);\n }\n\n private _getHeader(extOptions: any) {\n const reqHeaders: any = {\n \"Content-Type\": \"application/json;charset=UTF-8\",\n \"X-Requested-With\": \"XMLHttpRequest\",\n };\n if (extOptions && extOptions.headerCallback) {\n const headerData = extOptions.headerCallback();\n if (!CommonBase.isEmpty(headerData)) {\n for (const [k, v] of Object.entries(headerData)) {\n reqHeaders[k] = v;\n }\n }\n }\n return reqHeaders;\n }\n\n private _getExtInfo(extOptions: any) {\n const ext = CommonBase.getJsonClone(extOptions);\n ext.isTimeOut = CommonBase.isBoolean(ext.isTimeOut) ? ext.isTimeOut : true;\n return ext;\n }\n private _timeOut(timeStart: any, cb: any) {\n const timeEnd = new Date();\n const timeDiff = timeEnd.getTime() - timeStart.getTime();\n const diff = timeDiff - 200;\n const timeout = diff > 0 ? 0 : Math.abs(diff);\n if (timeout <= 0) {\n cb();\n } else {\n setTimeout(() => {\n cb();\n }, timeout);\n }\n }\n\n private _initResult(res: any, extCode: any): any {\n const temp = { code: null, success: false, msg: \"\", data: null };\n if (res.data) {\n temp.code = res.data.code.toString();\n const successCode = extCode.success || \"200\";\n if (temp.code === successCode) {\n temp.success = true;\n temp.data = res.data.data;\n } else {\n temp.success = false;\n temp.msg = res.data.message;\n temp.data = res.data.data;\n }\n }\n return temp;\n }\n\n private _initResultErr(code: string, errMsg: string): any {\n const temp = { code: null, success: false, msg: \"Axios:Unknown error .\", data: null };\n //let msg = CommonBase.isExistJsonKey(this.clientErrCode[this.languageType], code) ? this.clientErrCode[this.languageType][code] : \"\";\n //if (CommonBase.isEmpty(msg)) {\n const msg = CommonBase.isEmpty(errMsg) ? `Axios:Unknown error ${code}` : errMsg;\n //}\n temp.msg = msg;\n return temp;\n }\n _setInterceptors() {\n //请求拦截 \n /// 取消重复请求\n axios.interceptors.request.use((config: any) => {\n if (this.globalOptions.interceptorsRequestCallback) {\n this.globalOptions.interceptorsRequestCallback(config);\n }\n if (config) {\n const isRunTimeout = !CommonBase.isEmpty(config.__retryCount) && config.__retryCount > 0;\n /// 超时重发,不执行取消操作\n if (!isRunTimeout) {\n this._removeRequestPending(config);\n this._addRequestPending(config);\n }\n }\n return config;\n }, (error: any) => {\n return Promise.reject(error);\n });\n\n //响应拦截 \n /// 设置 取消重复请求| 超时重发\n axios.interceptors.response.use((response: any) => {\n if (this.globalOptions.interceptorsResponseCallback) {\n this.globalOptions.interceptorsResponseCallback(response);\n }\n this._removeRequestPending(response.config);\n return response;\n }, (error: any) => {\n if (error.code === \"ECONNABORTED\" && error.message.indexOf(\"timeout\") > -1) {\n const config = error.config;\n // If config does not exist or the retry option is not set, reject\n if (!config || !config.retry) return Promise.reject(error);\n\n // Set the variable for keeping track of the retry count\n config.__retryCount = config.__retryCount || 0;\n\n // Check if we've maxed out the total number of retries\n if (config.__retryCount >= config.retry) {\n // Reject with the error\n return Promise.reject(error);\n }\n\n // Increase the retry count\n config.__retryCount += 1;\n\n // Create new promise to handle exponential backoff\n const backoff = new Promise((resolve: any) => {\n setTimeout(function() {\n resolve();\n }, config.retryDelay || 1);\n });\n\n // Return the promise in which recalls axios to retry the request\n return backoff.then(function() {\n return axios(config);\n });\n } else {\n /* this._removeRequestPending(error.config || {});\n if (axios.isCancel(error)) {\n console.log(`请求取消: ${error.message}`);\n } */\n //else {\n return Promise.reject(error);\n //}\n\n }\n });\n }\n private _getRequestKeyMerge(config: any) {\n const requestKeyMerge = config._requestKeyMerge;\n const isRequestCancelRepeat = CommonBase.isBoolean(config.isRequestCancelRepeat) ? config.isRequestCancelRepeat : true;\n const keyArr: string[] = [];\n if (!CommonBase.isEmpty(config) && isRequestCancelRepeat) {\n if (!CommonBase.isUndefined(requestKeyMerge)) {\n [\"method\", \"url\", \"params\", \"data\", \"_ran\"].forEach((k: string) => {\n if (CommonBase.isExistValue(requestKeyMerge, k) && !CommonBase.isEmpty(config[k])) {\n let v = config[k];\n if (k === \"params\" || k === \"data\") {\n if (CommonBase.isString(v)) {\n v = JSON.parse(v);\n }\n keyArr.push(qs.stringify(v));\n } else {\n if (k === \"_ran\" && CommonBase.isEmpty(v)) {\n v = (new Date()).getTime();\n }\n keyArr.push(v);\n }\n }\n });\n } else {\n keyArr.push(config.method);\n keyArr.push(config.url);\n if (!CommonBase.isEmpty(config._ran)) {\n keyArr.push(config._ran);\n }\n }\n }\n return keyArr.join(\"&\");\n }\n private _addRequestPending(config: any) {\n const requestKey = this._getRequestKeyMerge(config);\n if (!CommonBase.isEmpty(requestKey)) {\n config.cancelToken = config.cancelToken || new axios.CancelToken((cancel: any) => {\n if (!this.requestPendingList.has(requestKey)) {\n this.requestPendingList.set(requestKey, cancel);\n }\n });\n }\n }\n private _removeRequestPending(config: any) {\n const requestKey = this._getRequestKeyMerge(config);\n if (!CommonBase.isEmpty(requestKey) && this.requestPendingList.has(requestKey)) {\n const cancelToken = this.requestPendingList.get(requestKey);\n cancelToken(`AxiosCancelRepeatRequest: ${requestKey}`);\n this.requestPendingList.delete(requestKey);\n }\n }\n\n cancelAll() {\n const arrKeys = [];\n for (const arrCancel of this.requestPendingList) {\n arrKeys.push(arrCancel[0]);\n }\n arrKeys.forEach((sk: any) => {\n const cancelToken = this.requestPendingList.get(sk);\n cancelToken(`AxiosCancelRepeatRequest: ${sk}`);\n this.requestPendingList.delete(sk);\n });\n }\n setResendAgain(error: any, opt: any = {}) {//{}retryDelay = 100\n const config = error.config;\n //const retryMax = CommonBase.isUndefined(opt.retryMax) ? 3 : opt.retryMax;\n const retryDelay = CommonBase.isUndefined(opt.retryDelay) ? 500 : opt.retryDelay;\n if (!config || !config.retry) return Promise.reject(error);\n\n /* config.__retryCount = config.__retryCount || 0;\n if (config.__retryCount >= retryMax) {\n return Promise.reject(error);\n }\n config.__retryCount += 1; */\n\n const backoff = new Promise((resolve: any) => {\n setTimeout(function() {\n resolve();\n }, retryDelay || 1);\n });\n return backoff.then(function() {\n config.cancelToken = null;\n return axios(config);\n });\n }\n setGlobalOptions(options: any) {\n this.globalOptions = CommonBase.getJsonMerge(this.globalOptions, options || {});\n }\n}\nexport default new AxiosRequest();\n"],"names":["AxiosRequest","url","param","optionsAll","self","newExtInfo","resolve","startTime","options","CommonBase","axios","response","initResData","error","errCbResult","result","errCode","errMsg","initErrData","data","errData","headers","formData","pk","pv","v","methodType","fr","resFr","resData","contentDisposition","fileName","fileType","lastIndex","blobOption","blob","link","extOptions","reqHeaders","headerData","k","ext","timeStart","cb","diff","timeout","res","extCode","temp","successCode","code","msg","config","requestKeyMerge","isRequestCancelRepeat","keyArr","qs","requestKey","cancel","arrKeys","arrCancel","sk","opt","retryDelay"],"mappings":"uFAGA,MAAMA,CAAa,CACf,mBACA,cACA,aAAc,CACV,KAAK,uBAAyB,IAC9B,KAAK,cAAgB,CAAA,EACrB,KAAK,iBAAA,CACT,CACQ,aAAaC,EAAaC,EAAYC,EAA+B,CACzE,MAAMC,EAAO,KACPC,EAAa,KAAK,YAAYF,EAAW,GAAG,EAClD,OAAO,IAAI,QAASG,GAAY,C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D,EAAW,GAAI,CACtC,MAAMV,EAASvC,EAAM,OAEfkD,EAAatD,EAAAA,WAAW,YAAYqD,EAAI,UAAU,EAAI,IAAMA,EAAI,WACtE,MAAI,CAACV,GAAU,CAACA,EAAO,MAAc,QAAQ,OAAOvC,CAAK,EAQzC,IAAI,QAASP,GAAiB,CAC1C,WAAW,UAAW,CAClBA,EAAA,CACJ,EAAGyD,GAAc,CAAC,CACtB,CAAC,EACc,KAAK,UAAW,CAC3B,OAAAX,EAAO,YAAc,KACd1C,EAAM0C,CAAM,CACvB,CAAC,CACL,CACA,iBAAiB5C,EAAc,CAC3B,KAAK,cAAgBC,aAAW,aAAa,KAAK,cAAeD,GAAW,EAAE,CAClF,CACJ,CACA,MAAAE,EAAe,IAAIV"}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import p from "axios";
|
|
2
|
+
import q from "qs";
|
|
3
|
+
import { C as r } from "./base-PQGakkrl.js";
|
|
4
|
+
class b {
|
|
5
|
+
requestPendingList;
|
|
6
|
+
globalOptions;
|
|
7
|
+
constructor() {
|
|
8
|
+
this.requestPendingList = /* @__PURE__ */ new Map(), this.globalOptions = {}, this._setInterceptors();
|
|
9
|
+
}
|
|
10
|
+
_initRequest(e, t, s) {
|
|
11
|
+
const a = this, i = this._getExtInfo(s.ext);
|
|
12
|
+
return new Promise((n) => {
|
|
13
|
+
const l = /* @__PURE__ */ new Date();
|
|
14
|
+
let h = {
|
|
15
|
+
url: e,
|
|
16
|
+
timeout: 1e3 * 15,
|
|
17
|
+
responseType: "json",
|
|
18
|
+
retry: 3,
|
|
19
|
+
retryDelay: 1e3
|
|
20
|
+
//_requestKeyMerge: ["method", "url", "_ran"],
|
|
21
|
+
};
|
|
22
|
+
h = r.getJsonMerge(h, s.options, t), p(h).then((o) => {
|
|
23
|
+
if (s.ext._operateType === "fileDownBinary")
|
|
24
|
+
s.ext.uploadDownBinaryCallback(o, i, n);
|
|
25
|
+
else {
|
|
26
|
+
const c = i.resultCallback ? i.resultCallback(o) : a._initResult(o, i.resultCode);
|
|
27
|
+
a._initRequestResolve(n, c, i, l);
|
|
28
|
+
}
|
|
29
|
+
}).catch((o) => {
|
|
30
|
+
if (i.errorCallback && o.response) {
|
|
31
|
+
const c = i.errorCallback(o);
|
|
32
|
+
c && (c.then && r.isFunction(c.then) ? c.then((u) => {
|
|
33
|
+
a._initRequestError(o, n, u, i, l);
|
|
34
|
+
}) : a._initRequestError(o, n, c, i, l));
|
|
35
|
+
} else {
|
|
36
|
+
let c = "", u = "";
|
|
37
|
+
o.response ? c = o.response.status.toString() : o.code === "ECONNABORTED" ? u = "Axios:TimeOut Repeat" : r.isEmpty(o.message) || (u = `Axios:${r.isEmpty(o.code) ? "" : o.code + "-"}${o.message}`);
|
|
38
|
+
const m = a._initResultErr(c, u);
|
|
39
|
+
a._initRequestError(o, n, m, i, l);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
_initRequestResolve(e, t, s, a) {
|
|
45
|
+
s.isTimeOut ? this._timeOut(a, () => {
|
|
46
|
+
e(t);
|
|
47
|
+
}) : e(t);
|
|
48
|
+
}
|
|
49
|
+
_initRequestError(e, t, s, a, i) {
|
|
50
|
+
p.isCancel(e) || this._initRequestResolve(t, s, a, i);
|
|
51
|
+
}
|
|
52
|
+
initGet(e) {
|
|
53
|
+
const t = {
|
|
54
|
+
method: "get",
|
|
55
|
+
headers: this._getHeader(e.ext),
|
|
56
|
+
params: e.param
|
|
57
|
+
};
|
|
58
|
+
return this._initRequest(e.url, t, e);
|
|
59
|
+
}
|
|
60
|
+
initPost(e) {
|
|
61
|
+
const t = {
|
|
62
|
+
method: "post",
|
|
63
|
+
headers: this._getHeader(e.ext),
|
|
64
|
+
data: JSON.stringify(e.param)
|
|
65
|
+
};
|
|
66
|
+
return this._initRequest(e.url, t, e);
|
|
67
|
+
}
|
|
68
|
+
initPut(e) {
|
|
69
|
+
const t = e.url, s = {
|
|
70
|
+
method: "put",
|
|
71
|
+
headers: this._getHeader(e.ext),
|
|
72
|
+
data: JSON.stringify(e.param)
|
|
73
|
+
};
|
|
74
|
+
return this._initRequest(t, s, e);
|
|
75
|
+
}
|
|
76
|
+
initDelete(e) {
|
|
77
|
+
const t = e.url, s = {
|
|
78
|
+
method: "delete",
|
|
79
|
+
headers: this._getHeader(e.ext),
|
|
80
|
+
data: JSON.stringify(e.param)
|
|
81
|
+
};
|
|
82
|
+
return this._initRequest(t, s, e);
|
|
83
|
+
}
|
|
84
|
+
initFile(e) {
|
|
85
|
+
const t = {
|
|
86
|
+
method: "post"
|
|
87
|
+
}, s = this._getHeader(e.ext);
|
|
88
|
+
t.headers = s;
|
|
89
|
+
const a = new FormData();
|
|
90
|
+
return Object.keys(e.param).forEach((i) => {
|
|
91
|
+
const n = e.param[i];
|
|
92
|
+
r.isArray(n) ? n.forEach((l) => {
|
|
93
|
+
a.append(i, l);
|
|
94
|
+
}) : a.append(i, e.param[i]);
|
|
95
|
+
}), t.data = a, this._initRequest(e.url, t, e);
|
|
96
|
+
}
|
|
97
|
+
initFileDownLoad(e) {
|
|
98
|
+
const t = this, s = {
|
|
99
|
+
method: "post",
|
|
100
|
+
responseType: "blob"
|
|
101
|
+
}, a = r.isEmpty(e.options.method) ? "post" : e.options.method;
|
|
102
|
+
s.method = a;
|
|
103
|
+
const i = this._getHeader(e.ext);
|
|
104
|
+
return i["Content-Type"] = "application/json;", s.headers = i, r.isEmpty(e.param) || (a === "get" ? s.params = e.param : s.data = JSON.stringify(e.param)), e.ext._operateType = "fileDownBinary", e.ext.uploadDownBinaryCallback = (n, l, h) => {
|
|
105
|
+
const o = new FileReader();
|
|
106
|
+
o.onload = function(c) {
|
|
107
|
+
try {
|
|
108
|
+
const u = JSON.parse(c.currentTarget.result), m = l.resultCallback ? l.resultCallback({ data: u }) : t._initResult({ data: u }, l.resultCode);
|
|
109
|
+
m.success || h(m);
|
|
110
|
+
} catch {
|
|
111
|
+
const m = n.headers["content-disposition"];
|
|
112
|
+
let d = "";
|
|
113
|
+
r.isEmpty(m) ? d = e.param && e.param.fileName ? e.param.fileName : (/* @__PURE__ */ new Date()).getTime().toString() : d = window.decodeURIComponent(m.split("=")[1]), d = d.replace(/\"/g, "").replace(/'/g, "");
|
|
114
|
+
let g = "";
|
|
115
|
+
const R = d.lastIndexOf(".");
|
|
116
|
+
R > -1 && (g = d.substring(R + 1));
|
|
117
|
+
let y;
|
|
118
|
+
switch (g) {
|
|
119
|
+
case "xls":
|
|
120
|
+
case "xlsx":
|
|
121
|
+
y = { type: "application/vnd.ms-excel" };
|
|
122
|
+
break;
|
|
123
|
+
case "csv":
|
|
124
|
+
y = { type: "text/csv" };
|
|
125
|
+
break;
|
|
126
|
+
case "doc":
|
|
127
|
+
case "docx":
|
|
128
|
+
y = { type: "application/msword" };
|
|
129
|
+
break;
|
|
130
|
+
case "pdf":
|
|
131
|
+
y = { type: "application/pdf" };
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
const _ = new Blob([n.data], y);
|
|
135
|
+
if (window.navigator && window.navigator.msSaveOrOpenBlob)
|
|
136
|
+
window.navigator.msSaveOrOpenBlob(_, d);
|
|
137
|
+
else {
|
|
138
|
+
const f = document.createElement("a");
|
|
139
|
+
f.href = (window.URL || window.webkitURL).createObjectURL(_), f.download = d, f.style.display = "none", document.body.appendChild(f), f.click(), window.URL.revokeObjectURL(f.href);
|
|
140
|
+
}
|
|
141
|
+
h({ success: !0 });
|
|
142
|
+
}
|
|
143
|
+
}, o.readAsText(n.data);
|
|
144
|
+
}, this._initRequest(e.url, s, e);
|
|
145
|
+
}
|
|
146
|
+
_getHeader(e) {
|
|
147
|
+
const t = {
|
|
148
|
+
"Content-Type": "application/json;charset=UTF-8",
|
|
149
|
+
"X-Requested-With": "XMLHttpRequest"
|
|
150
|
+
};
|
|
151
|
+
if (e && e.headerCallback) {
|
|
152
|
+
const s = e.headerCallback();
|
|
153
|
+
if (!r.isEmpty(s))
|
|
154
|
+
for (const [a, i] of Object.entries(s))
|
|
155
|
+
t[a] = i;
|
|
156
|
+
}
|
|
157
|
+
return t;
|
|
158
|
+
}
|
|
159
|
+
_getExtInfo(e) {
|
|
160
|
+
const t = r.getJsonClone(e);
|
|
161
|
+
return t.isTimeOut = r.isBoolean(t.isTimeOut) ? t.isTimeOut : !0, t;
|
|
162
|
+
}
|
|
163
|
+
_timeOut(e, t) {
|
|
164
|
+
const i = (/* @__PURE__ */ new Date()).getTime() - e.getTime() - 200, n = i > 0 ? 0 : Math.abs(i);
|
|
165
|
+
n <= 0 ? t() : setTimeout(() => {
|
|
166
|
+
t();
|
|
167
|
+
}, n);
|
|
168
|
+
}
|
|
169
|
+
_initResult(e, t) {
|
|
170
|
+
const s = { code: null, success: !1, msg: "", data: null };
|
|
171
|
+
if (e.data) {
|
|
172
|
+
s.code = e.data.code.toString();
|
|
173
|
+
const a = t.success || "200";
|
|
174
|
+
s.code === a ? (s.success = !0, s.data = e.data.data) : (s.success = !1, s.msg = e.data.message, s.data = e.data.data);
|
|
175
|
+
}
|
|
176
|
+
return s;
|
|
177
|
+
}
|
|
178
|
+
_initResultErr(e, t) {
|
|
179
|
+
const s = { code: null, success: !1, msg: "Axios:Unknown error .", data: null }, a = r.isEmpty(t) ? `Axios:Unknown error ${e}` : t;
|
|
180
|
+
return s.msg = a, s;
|
|
181
|
+
}
|
|
182
|
+
_setInterceptors() {
|
|
183
|
+
p.interceptors.request.use((e) => (this.globalOptions.interceptorsRequestCallback && this.globalOptions.interceptorsRequestCallback(e), e && (!r.isEmpty(e.__retryCount) && e.__retryCount > 0 || (this._removeRequestPending(e), this._addRequestPending(e))), e), (e) => Promise.reject(e)), p.interceptors.response.use((e) => (this.globalOptions.interceptorsResponseCallback && this.globalOptions.interceptorsResponseCallback(e), this._removeRequestPending(e.config), e), (e) => {
|
|
184
|
+
if (e.code === "ECONNABORTED" && e.message.indexOf("timeout") > -1) {
|
|
185
|
+
const t = e.config;
|
|
186
|
+
return !t || !t.retry || (t.__retryCount = t.__retryCount || 0, t.__retryCount >= t.retry) ? Promise.reject(e) : (t.__retryCount += 1, new Promise((a) => {
|
|
187
|
+
setTimeout(function() {
|
|
188
|
+
a();
|
|
189
|
+
}, t.retryDelay || 1);
|
|
190
|
+
}).then(function() {
|
|
191
|
+
return p(t);
|
|
192
|
+
}));
|
|
193
|
+
} else
|
|
194
|
+
return Promise.reject(e);
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
_getRequestKeyMerge(e) {
|
|
198
|
+
const t = e._requestKeyMerge, s = r.isBoolean(e.isRequestCancelRepeat) ? e.isRequestCancelRepeat : !0, a = [];
|
|
199
|
+
return !r.isEmpty(e) && s && (r.isUndefined(t) ? (a.push(e.method), a.push(e.url), r.isEmpty(e._ran) || a.push(e._ran)) : ["method", "url", "params", "data", "_ran"].forEach((i) => {
|
|
200
|
+
if (r.isExistValue(t, i) && !r.isEmpty(e[i])) {
|
|
201
|
+
let n = e[i];
|
|
202
|
+
i === "params" || i === "data" ? (r.isString(n) && (n = JSON.parse(n)), a.push(q.stringify(n))) : (i === "_ran" && r.isEmpty(n) && (n = (/* @__PURE__ */ new Date()).getTime()), a.push(n));
|
|
203
|
+
}
|
|
204
|
+
})), a.join("&");
|
|
205
|
+
}
|
|
206
|
+
_addRequestPending(e) {
|
|
207
|
+
const t = this._getRequestKeyMerge(e);
|
|
208
|
+
r.isEmpty(t) || (e.cancelToken = e.cancelToken || new p.CancelToken((s) => {
|
|
209
|
+
this.requestPendingList.has(t) || this.requestPendingList.set(t, s);
|
|
210
|
+
}));
|
|
211
|
+
}
|
|
212
|
+
_removeRequestPending(e) {
|
|
213
|
+
const t = this._getRequestKeyMerge(e);
|
|
214
|
+
!r.isEmpty(t) && this.requestPendingList.has(t) && (this.requestPendingList.get(t)(`AxiosCancelRepeatRequest: ${t}`), this.requestPendingList.delete(t));
|
|
215
|
+
}
|
|
216
|
+
cancelAll() {
|
|
217
|
+
const e = [];
|
|
218
|
+
for (const t of this.requestPendingList)
|
|
219
|
+
e.push(t[0]);
|
|
220
|
+
e.forEach((t) => {
|
|
221
|
+
this.requestPendingList.get(t)(`AxiosCancelRepeatRequest: ${t}`), this.requestPendingList.delete(t);
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
setResendAgain(e, t = {}) {
|
|
225
|
+
const s = e.config, a = r.isUndefined(t.retryDelay) ? 500 : t.retryDelay;
|
|
226
|
+
return !s || !s.retry ? Promise.reject(e) : new Promise((n) => {
|
|
227
|
+
setTimeout(function() {
|
|
228
|
+
n();
|
|
229
|
+
}, a || 1);
|
|
230
|
+
}).then(function() {
|
|
231
|
+
return s.cancelToken = null, p(s);
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
setGlobalOptions(e) {
|
|
235
|
+
this.globalOptions = r.getJsonMerge(this.globalOptions, e || {});
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
const E = new b();
|
|
239
|
+
export {
|
|
240
|
+
E as a
|
|
241
|
+
};
|
|
242
|
+
//# sourceMappingURL=axios-DqkFEq4Y.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"axios-DqkFEq4Y.js","sources":["../../src/libs/Common/axios.ts"],"sourcesContent":["import axios from \"axios\";\nimport qs from \"qs\";\nimport CommonBase from \"./base\";\nclass AxiosRequest {\n requestPendingList: any;\n globalOptions: any;\n constructor() {\n this.requestPendingList = new Map();\n this.globalOptions = {};\n this._setInterceptors();\n }\n private _initRequest(url: string, param: any, optionsAll: any): Promise<any> {\n const self = this;\n const newExtInfo = this._getExtInfo(optionsAll.ext);\n return new Promise((resolve) => {\n const startTime = new Date();\n let options: any = {\n url: url,\n timeout: 1000 * 15,\n responseType: \"json\",\n retry: 3,\n retryDelay: 1000,\n //_requestKeyMerge: [\"method\", \"url\", \"_ran\"],\n };\n options = CommonBase.getJsonMerge(options, optionsAll.options, param);\n\n axios(options).then((response) => {\n if (optionsAll.ext._operateType === \"fileDownBinary\") {\n optionsAll.ext.uploadDownBinaryCallback(response, newExtInfo, resolve);\n } else {\n const initResData = newExtInfo.resultCallback ? newExtInfo.resultCallback(response) : self._initResult(response, newExtInfo.resultCode);\n self._initRequestResolve(resolve, initResData, newExtInfo, startTime);\n }\n\n }).catch((error) => {\n if (newExtInfo.errorCallback && error.response) {\n const errCbResult = newExtInfo.errorCallback(error);\n if (errCbResult) {\n if (errCbResult.then && CommonBase.isFunction(errCbResult.then)) {\n errCbResult.then((result: any) => {\n self._initRequestError(error, resolve, result, newExtInfo, startTime);\n });\n } else {\n self._initRequestError(error, resolve, errCbResult, newExtInfo, startTime);\n }\n }\n } else {\n let errCode = \"\";\n let errMsg = \"\";\n if (error.response) {\n errCode = error.response.status.toString();\n } else if (error.code === \"ECONNABORTED\") {\n errMsg = \"Axios:TimeOut Repeat\";\n } else {\n if (!CommonBase.isEmpty(error.message)) {\n errMsg = `Axios:${CommonBase.isEmpty(error.code) ? \"\" : (error.code + \"-\")}${error.message}`;\n }\n }\n const initErrData = self._initResultErr(errCode, errMsg);\n self._initRequestError(error, resolve, initErrData, newExtInfo, startTime);\n }\n });\n });\n }\n _initRequestResolve(resolve: any, data: any, newExtInfo: any, startTime: any) {\n if (newExtInfo.isTimeOut) {\n this._timeOut(startTime, () => {\n resolve(data);\n });\n } else {\n resolve(data);\n }\n }\n _initRequestError(error: any, resolve: any, errData: any, newExtInfo: any, startTime: any) {\n if (axios.isCancel(error)) {\n //reject({ code: \"-1111\", success: false, msg: error.message });\n } else {\n this._initRequestResolve(resolve, errData, newExtInfo, startTime);\n }\n }\n initGet(options: any) {\n const param = {\n method: \"get\",\n headers: this._getHeader(options.ext),\n params: options.param,\n };\n return this._initRequest(options.url, param, options);\n }\n\n initPost(options: any) {\n const param = {\n method: \"post\",\n headers: this._getHeader(options.ext),\n data: JSON.stringify(options.param),\n };\n return this._initRequest(options.url, param, options);\n }\n\n initPut(options: any) {\n const url = options.url;\n const param = {\n method: \"put\",\n headers: this._getHeader(options.ext),\n data: JSON.stringify(options.param),\n };\n return this._initRequest(url, param, options);\n }\n\n initDelete(options: any) {\n const url = options.url;\n const param = {\n method: \"delete\",\n headers: this._getHeader(options.ext),\n data: JSON.stringify(options.param),\n };\n return this._initRequest(url, param, options);\n }\n\n initFile(options: any) {\n const param: any = {\n method: \"post\",\n };\n const headers: any = this._getHeader(options.ext);\n /* if (options.ext.headerCallback) {\n const headerData = options.ext.headerCallback();\n if (!CommonBase.isEmpty(headerData)) {\n for (const [k, v] of Object.entries(headerData)) {\n headers[k] = v;\n }\n }\n } */\n // headers[\"Content-Type\"] = \"multipart/form-data\";\n /* param.headers = this._getHeader({\n headerCallback: () => headers,\n }); */\n param.headers = headers;\n const formData = new FormData();\n Object.keys(options.param).forEach((pk) => {\n const pv = options.param[pk];\n if (CommonBase.isArray(pv)) {\n pv.forEach((v: any) => {\n formData.append(pk, v);\n });\n } else {\n formData.append(pk, options.param[pk]);\n }\n });\n param.data = formData;\n return this._initRequest(options.url, param, options);\n }\n\n initFileDownLoad(options: any) {\n const self = this;\n const param: any = {\n method: \"post\",\n responseType: \"blob\",\n };\n const methodType = !CommonBase.isEmpty(options.options.method) ? options.options.method : \"post\";\n param.method = methodType;\n\n const headers: any = this._getHeader(options.ext);\n headers[\"Content-Type\"] = \"application/json;\";\n param.headers = headers;\n\n if (!CommonBase.isEmpty(options.param)) {\n if (methodType === \"get\") {\n param.params = options.param;\n } else {\n param.data = JSON.stringify(options.param);\n }\n }\n\n options.ext._operateType = \"fileDownBinary\";\n options.ext.uploadDownBinaryCallback = (response: any, newExtInfo: any, resolve: any) => {\n const fr = new FileReader();\n fr.onload = function(resFr: any) {\n try {\n const resData = JSON.parse(resFr.currentTarget.result);\n const result = newExtInfo.resultCallback ? newExtInfo.resultCallback({ data: resData }) : self._initResult({ data: resData }, newExtInfo.resultCode);\n if (!result.success) {\n resolve(result);\n }\n } catch (err) {\n //const fileName = window.decodeURIComponent(response.headers[\"content-disposition\"].split(\"=\")[1]);\n const contentDisposition = response.headers[\"content-disposition\"];\n let fileName = \"\";\n if (!CommonBase.isEmpty(contentDisposition)) {\n fileName = window.decodeURIComponent(contentDisposition.split(\"=\")[1]);\n } else {\n fileName = options.param && options.param.fileName\n ? options.param.fileName\n : (new Date()).getTime().toString();\n }\n fileName = fileName.replace(/\\\"/g, \"\").replace(/'/g, \"\");\n let fileType = \"\";\n /* const arrFile = fileName.split(\".\");\n if (arrFile.length > 1) {\n fileType = arrFile[1];\n }\n let blobOption: any = undefined;\n if (fileType === \"xlsx\") {\n blobOption = { type: \"application/vnd.ms-excel\" };\n }*/\n const lastIndex = fileName.lastIndexOf(\".\");\n if (lastIndex > -1) {\n fileType = fileName.substring(lastIndex + 1);\n }\n let blobOption: any = undefined;\n switch (fileType) {\n case \"xls\":\n case \"xlsx\":\n blobOption = { type: \"application/vnd.ms-excel\" };\n break;\n case \"csv\":\n blobOption = { type: \"text/csv\" };\n break;\n case \"doc\":\n case \"docx\":\n blobOption = { type: \"application/msword\" };\n break;\n case \"pdf\":\n blobOption = { type: \"application/pdf\" };\n break;\n }\n const blob = new Blob([response.data], blobOption);\n\n //@ts-ignore\n if (window.navigator && window.navigator.msSaveOrOpenBlob) {\n //@ts-ignore\n window.navigator.msSaveOrOpenBlob(blob, fileName);\n } else {\n const link = document.createElement(\"a\");\n link.href = (window.URL || window.webkitURL).createObjectURL(blob);\n link.download = fileName;\n link.style.display = \"none\";\n document.body.appendChild(link);\n link.click();\n //document.body.removeChild(link);\n window.URL.revokeObjectURL(link.href);\n }\n resolve({ success: true });\n }\n };\n fr.readAsText(response.data);\n };\n return this._initRequest(options.url, param, options);\n }\n\n private _getHeader(extOptions: any) {\n const reqHeaders: any = {\n \"Content-Type\": \"application/json;charset=UTF-8\",\n \"X-Requested-With\": \"XMLHttpRequest\",\n };\n if (extOptions && extOptions.headerCallback) {\n const headerData = extOptions.headerCallback();\n if (!CommonBase.isEmpty(headerData)) {\n for (const [k, v] of Object.entries(headerData)) {\n reqHeaders[k] = v;\n }\n }\n }\n return reqHeaders;\n }\n\n private _getExtInfo(extOptions: any) {\n const ext = CommonBase.getJsonClone(extOptions);\n ext.isTimeOut = CommonBase.isBoolean(ext.isTimeOut) ? ext.isTimeOut : true;\n return ext;\n }\n private _timeOut(timeStart: any, cb: any) {\n const timeEnd = new Date();\n const timeDiff = timeEnd.getTime() - timeStart.getTime();\n const diff = timeDiff - 200;\n const timeout = diff > 0 ? 0 : Math.abs(diff);\n if (timeout <= 0) {\n cb();\n } else {\n setTimeout(() => {\n cb();\n }, timeout);\n }\n }\n\n private _initResult(res: any, extCode: any): any {\n const temp = { code: null, success: false, msg: \"\", data: null };\n if (res.data) {\n temp.code = res.data.code.toString();\n const successCode = extCode.success || \"200\";\n if (temp.code === successCode) {\n temp.success = true;\n temp.data = res.data.data;\n } else {\n temp.success = false;\n temp.msg = res.data.message;\n temp.data = res.data.data;\n }\n }\n return temp;\n }\n\n private _initResultErr(code: string, errMsg: string): any {\n const temp = { code: null, success: false, msg: \"Axios:Unknown error .\", data: null };\n //let msg = CommonBase.isExistJsonKey(this.clientErrCode[this.languageType], code) ? this.clientErrCode[this.languageType][code] : \"\";\n //if (CommonBase.isEmpty(msg)) {\n const msg = CommonBase.isEmpty(errMsg) ? `Axios:Unknown error ${code}` : errMsg;\n //}\n temp.msg = msg;\n return temp;\n }\n _setInterceptors() {\n //请求拦截 \n /// 取消重复请求\n axios.interceptors.request.use((config: any) => {\n if (this.globalOptions.interceptorsRequestCallback) {\n this.globalOptions.interceptorsRequestCallback(config);\n }\n if (config) {\n const isRunTimeout = !CommonBase.isEmpty(config.__retryCount) && config.__retryCount > 0;\n /// 超时重发,不执行取消操作\n if (!isRunTimeout) {\n this._removeRequestPending(config);\n this._addRequestPending(config);\n }\n }\n return config;\n }, (error: any) => {\n return Promise.reject(error);\n });\n\n //响应拦截 \n /// 设置 取消重复请求| 超时重发\n axios.interceptors.response.use((response: any) => {\n if (this.globalOptions.interceptorsResponseCallback) {\n this.globalOptions.interceptorsResponseCallback(response);\n }\n this._removeRequestPending(response.config);\n return response;\n }, (error: any) => {\n if (error.code === \"ECONNABORTED\" && error.message.indexOf(\"timeout\") > -1) {\n const config = error.config;\n // If config does not exist or the retry option is not set, reject\n if (!config || !config.retry) return Promise.reject(error);\n\n // Set the variable for keeping track of the retry count\n config.__retryCount = config.__retryCount || 0;\n\n // Check if we've maxed out the total number of retries\n if (config.__retryCount >= config.retry) {\n // Reject with the error\n return Promise.reject(error);\n }\n\n // Increase the retry count\n config.__retryCount += 1;\n\n // Create new promise to handle exponential backoff\n const backoff = new Promise((resolve: any) => {\n setTimeout(function() {\n resolve();\n }, config.retryDelay || 1);\n });\n\n // Return the promise in which recalls axios to retry the request\n return backoff.then(function() {\n return axios(config);\n });\n } else {\n /* this._removeRequestPending(error.config || {});\n if (axios.isCancel(error)) {\n console.log(`请求取消: ${error.message}`);\n } */\n //else {\n return Promise.reject(error);\n //}\n\n }\n });\n }\n private _getRequestKeyMerge(config: any) {\n const requestKeyMerge = config._requestKeyMerge;\n const isRequestCancelRepeat = CommonBase.isBoolean(config.isRequestCancelRepeat) ? config.isRequestCancelRepeat : true;\n const keyArr: string[] = [];\n if (!CommonBase.isEmpty(config) && isRequestCancelRepeat) {\n if (!CommonBase.isUndefined(requestKeyMerge)) {\n [\"method\", \"url\", \"params\", \"data\", \"_ran\"].forEach((k: string) => {\n if (CommonBase.isExistValue(requestKeyMerge, k) && !CommonBase.isEmpty(config[k])) {\n let v = config[k];\n if (k === \"params\" || k === \"data\") {\n if (CommonBase.isString(v)) {\n v = JSON.parse(v);\n }\n keyArr.push(qs.stringify(v));\n } else {\n if (k === \"_ran\" && CommonBase.isEmpty(v)) {\n v = (new Date()).getTime();\n }\n keyArr.push(v);\n }\n }\n });\n } else {\n keyArr.push(config.method);\n keyArr.push(config.url);\n if (!CommonBase.isEmpty(config._ran)) {\n keyArr.push(config._ran);\n }\n }\n }\n return keyArr.join(\"&\");\n }\n private _addRequestPending(config: any) {\n const requestKey = this._getRequestKeyMerge(config);\n if (!CommonBase.isEmpty(requestKey)) {\n config.cancelToken = config.cancelToken || new axios.CancelToken((cancel: any) => {\n if (!this.requestPendingList.has(requestKey)) {\n this.requestPendingList.set(requestKey, cancel);\n }\n });\n }\n }\n private _removeRequestPending(config: any) {\n const requestKey = this._getRequestKeyMerge(config);\n if (!CommonBase.isEmpty(requestKey) && this.requestPendingList.has(requestKey)) {\n const cancelToken = this.requestPendingList.get(requestKey);\n cancelToken(`AxiosCancelRepeatRequest: ${requestKey}`);\n this.requestPendingList.delete(requestKey);\n }\n }\n\n cancelAll() {\n const arrKeys = [];\n for (const arrCancel of this.requestPendingList) {\n arrKeys.push(arrCancel[0]);\n }\n arrKeys.forEach((sk: any) => {\n const cancelToken = this.requestPendingList.get(sk);\n cancelToken(`AxiosCancelRepeatRequest: ${sk}`);\n this.requestPendingList.delete(sk);\n });\n }\n setResendAgain(error: any, opt: any = {}) {//{}retryDelay = 100\n const config = error.config;\n //const retryMax = CommonBase.isUndefined(opt.retryMax) ? 3 : opt.retryMax;\n const retryDelay = CommonBase.isUndefined(opt.retryDelay) ? 500 : opt.retryDelay;\n if (!config || !config.retry) return Promise.reject(error);\n\n /* config.__retryCount = config.__retryCount || 0;\n if (config.__retryCount >= retryMax) {\n return Promise.reject(error);\n }\n config.__retryCount += 1; */\n\n const backoff = new Promise((resolve: any) => {\n setTimeout(function() {\n resolve();\n }, retryDelay || 1);\n });\n return backoff.then(function() {\n config.cancelToken = null;\n return axios(config);\n });\n }\n setGlobalOptions(options: any) {\n this.globalOptions = CommonBase.getJsonMerge(this.globalOptions, options || {});\n }\n}\nexport default new AxiosRequest();\n"],"names":["AxiosRequest","url","param","optionsAll","self","newExtInfo","resolve","startTime","options","CommonBase","axios","response","initResData","error","errCbResult","result","errCode","errMsg","initErrData","data","errData","headers","formData","pk","pv","v","methodType","fr","resFr","resData","contentDisposition","fileName","fileType","lastIndex","blobOption","blob","link","extOptions","reqHeaders","headerData","k","ext","timeStart","cb","diff","timeout","res","extCode","temp","successCode","code","msg","config","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vC,EAAM,QAEfkD,IAAatD,EAAW,YAAYqD,EAAI,UAAU,IAAI,MAAMA,EAAI;AACtE,WAAI,CAACV,KAAU,CAACA,EAAO,QAAc,QAAQ,OAAOvC,CAAK,IAQzC,IAAI,QAAQ,CAACP,MAAiB;AAC1C,iBAAW,WAAW;AAClB,QAAAA,EAAA;AAAA,MACJ,GAAGyD,KAAc,CAAC;AAAA,IACtB,CAAC,EACc,KAAK,WAAW;AAC3B,aAAAX,EAAO,cAAc,MACd1C,EAAM0C,CAAM;AAAA,IACvB,CAAC;AAAA,EACL;AAAA,EACA,iBAAiB5C,GAAc;AAC3B,SAAK,gBAAgBC,EAAW,aAAa,KAAK,eAAeD,KAAW,EAAE;AAAA,EAClF;AACJ;AACA,MAAAE,IAAe,IAAIV,EAAA;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare class AxiosRequest {
|
|
2
|
+
requestPendingList: any;
|
|
3
|
+
globalOptions: any;
|
|
4
|
+
constructor();
|
|
5
|
+
private _initRequest;
|
|
6
|
+
_initRequestResolve(resolve: any, data: any, newExtInfo: any, startTime: any): void;
|
|
7
|
+
_initRequestError(error: any, resolve: any, errData: any, newExtInfo: any, startTime: any): void;
|
|
8
|
+
initGet(options: any): Promise<any>;
|
|
9
|
+
initPost(options: any): Promise<any>;
|
|
10
|
+
initPut(options: any): Promise<any>;
|
|
11
|
+
initDelete(options: any): Promise<any>;
|
|
12
|
+
initFile(options: any): Promise<any>;
|
|
13
|
+
initFileDownLoad(options: any): Promise<any>;
|
|
14
|
+
private _getHeader;
|
|
15
|
+
private _getExtInfo;
|
|
16
|
+
private _timeOut;
|
|
17
|
+
private _initResult;
|
|
18
|
+
private _initResultErr;
|
|
19
|
+
_setInterceptors(): void;
|
|
20
|
+
private _getRequestKeyMerge;
|
|
21
|
+
private _addRequestPending;
|
|
22
|
+
private _removeRequestPending;
|
|
23
|
+
cancelAll(): void;
|
|
24
|
+
setResendAgain(error: any, opt?: any): Promise<import('axios').AxiosResponse<any, any, {}>>;
|
|
25
|
+
setGlobalOptions(options: any): void;
|
|
26
|
+
}
|
|
27
|
+
declare const _default: AxiosRequest;
|
|
28
|
+
export default _default;
|