@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 @@
|
|
|
1
|
+
{"version":3,"file":"base-PQGakkrl.js","sources":["../../../src/libs/Common/base.ts"],"sourcesContent":["// Format handler registry — registered by day.ts to avoid circular import\nconst _formatHandlers: Record<string, (value: any, format: string) => any> = {}\n\nexport function registerFormatHandler(type: string, handler: (value: any, format: string) => any) {\n _formatHandlers[type] = handler\n}\n\nclass CommonBase {\n // constructor() {}\n /**\n * 获取 typeof 类型\n * @param value\n * @returns {string}\n */\n static getTypeof(value: any): string {\n return typeof value;\n }\n private static _toStringCall(value: any): string {\n return Object.prototype.toString.call(value);\n }\n\n static isUndefined(value: any): boolean {\n return this.getTypeof(value) === \"undefined\" || value === null;\n }\n\n static isBoolean(value: any): boolean {\n return this.getTypeof(value) === \"boolean\";\n }\n\n static isString(value: any): boolean {\n return this.getTypeof(value) === \"string\";\n }\n\n static isFunction(value: any): boolean {\n return this.getTypeof(value) === \"function\" && this._toStringCall(value) === \"[object Function]\";\n }\n\n static isObject(value: any): boolean {\n return !this.isUndefined(value) && this.getTypeof(value) === \"object\";\n }\n static isBlob(value: any): boolean {\n return this._toStringCall(value) === \"[object Blob]\";\n }\n static isFile(value: any): boolean {\n return this._toStringCall(value) === \"[object File]\";\n }\n\n static isNumber(value: any): boolean {\n let b = false;\n if (this.isString(value)) {\n return (/^(-)?(([1-9]\\d*)|0)(\\.\\d+)?$/).test(value);\n } else if (this.getTypeof(value) === \"number\") {\n b = true;\n }\n return b;\n }\n\n static isInt(value: number): boolean {\n let check = true;\n if (!this.isEmpty(value)) {\n const reg: any = /^[1-9]\\d*$|^0$/;\n check = reg.test(value.toString());\n }\n return check;\n }\n static isHtml(value: string): boolean {\n return (/^<([a-z][a-z0-9]*)\\b[^>]*>(.*?)<\\/\\1>$/i).test(value);\n }\n static isJson(value: any): boolean {\n let check = false;\n if (this.isString(value)) {\n try {\n const obj = JSON.parse(value);\n if (this.isObject(obj)) {\n check = true;\n }\n } catch (e) { }\n } else if (this.isObject(value)) {\n check = true;\n }\n return check;\n }\n\n static isWindow(obj: any): boolean {\n return !this.isUndefined(obj) && obj === obj.window;\n }\n\n private static _isEmptyObject(value: any): boolean {\n return this.isUndefined(value) ? true : Object.keys(value).length === 0;\n }\n\n static isArray(value: any): boolean {\n return Array.isArray(value) && this._toStringCall(value) === \"[object Array]\";\n }\n static isLocationLngLat(value: any) {\n let b = false;\n if (!this.isEmpty(value)) {\n let arr: any;\n if (this.isString(value)) {\n arr = value.split(\",\");\n } else if (this.isArray(value)) {\n arr = value;\n } else {\n arr = [];\n }\n if (arr.length === 2) {\n const lng = arr[0];\n const lat = arr[1];\n const lngRegex = /^-?(180(\\.0+)?|1[0-7]?\\d?(\\.\\d+)?|[1-9]?\\d?(\\.\\d+)?)$/;\n const latRegex = /^-?(90(\\.0+)?|[1-8]?\\d?(\\.\\d+)?)$/;\n b = lngRegex.test(lng) && latRegex.test(lat);\n }\n }\n return b;\n }\n\n static isEmpty(value: any, def?: any): boolean {\n let b = this.isUndefined(value);\n if (!b) {\n const objType: string = this.getTypeof(value);\n if (this.isString(value)) {\n b = this.trim(value).length === 0;\n } else if (this.isArray(value)) {\n b = value.length === 0;\n } else if (objType === \"object\") {\n if (this.isFile(value)) {\n b = false;\n } else {\n b = this._isEmptyObject(value);\n }\n }\n if (!b && !this.isUndefined(def)) {\n let strValue = value;\n if (this.isNumber(value)) {\n strValue = strValue.toString();\n }\n let strDef = def;\n if (this.isNumber(def)) {\n strDef = strDef.toString();\n }\n b = this.isEqual(strValue, strDef);\n }\n }\n return b;\n }\n\n static isEqual(value1: any, value2: any): boolean {\n return Object.is(value1, value2);\n }\n\n static isEqualArr(arr1: any[], arr2: any[], isInOrder = false): boolean {\n let b = false;\n const isEmpty1 = this.isEmpty(arr1);\n const isEmpty2 = this.isEmpty(arr2);\n if (isEmpty1 && isEmpty2) {\n b = true;\n } else {\n if (arr1.length === arr2.length) {\n b = true;\n if (isInOrder) {\n for (let i = 0; i < arr1.length; i++) {\n if (arr1[i].toString() !== arr2[i].toString()) {\n b = false;\n break;\n }\n }\n } else {\n const json2 = this.getArrConvertJson(arr2);\n for (let i = 0; i < arr1.length; i++) {\n if (!this.isExistJsonKey(json2, arr1[i].toString())) {\n b = false;\n break;\n }\n }\n }\n } else {\n b = false;\n }\n }\n return b;\n }\n\n static isEqualList(list1: any[], list2: any[], key = [\"id\"]): boolean {\n let b = false;\n const isEmpty1 = this.isEmpty(list1);\n const isEmpty2 = this.isEmpty(list2);\n if (isEmpty1 && isEmpty2) {\n b = true;\n } else {\n if (list1.length === list2.length) {\n const arr1: string[] = list1.map(info1 => {\n return key.map((k) => info1[k].toString()).join(\",\");\n });\n b = true;\n list2.some((info2: any) => {\n const k2 = key.map((k) => info2[k].toString()).join(\",\");\n if (!this.isExistValue(arr1, k2)) {\n b = false;\n return true;\n }\n });\n } else {\n b = false;\n }\n }\n return b;\n }\n\n /**\n * 数组1是否包含数组2\n * @param arr1\n * @param arr2\n */\n static isContainArr(arr1: any[], arr2: any[]): boolean {\n let b = false;\n const isEmpty1 = this.isEmpty(arr1);\n const isEmpty2 = this.isEmpty(arr2);\n if (isEmpty1 && isEmpty2) {\n b = true;\n } else {\n if (arr1.length >= arr2.length) {\n b = true;\n arr2.some((v: string) => {\n if (!this.isExistValue(arr1, v)) {\n b = false;\n return true;\n }\n });\n } else {\n b = false;\n }\n }\n return b;\n }\n\n /**\n * 是否存在 大量循环时误用(慢)\n * @param value\n * @param key\n * @returns\n */\n static isExistValue(value: any, key: string): boolean {\n if (this.isUndefined(value)) {\n return false;\n }\n if (value.includes) {\n return value.includes(key);\n }\n return value.indexOf(key) > -1;\n }\n\n /**\n * 是否存在(专用json)\n * @param json\n * @param key\n * @returns\n */\n static isExistJsonKey(json: any, key: string): boolean {\n if (this.isUndefined(json)) {\n return false;\n }\n return Object.prototype.hasOwnProperty.call(json, key);\n }\n /**\n * 操作系统类型 仅浏览器端使用\n * @returns \n */\n static osType() {\n const ua = navigator.userAgent,\n //isWindowsPhone = /(?:Windows Phone)/.test(ua),\n //isSymbian = /(?:SymbianOS)/.test(ua) || isWindowsPhone,\n isAndroid = /(?:Android)/.test(ua),\n isFireFox = /(?:Firefox)/.test(ua),\n //isChrome = /(?:Chrome|CriOS)/.test(ua),\n isTablet = /(?:iPad|PlayBook)/.test(ua) || (isAndroid && !/(?:Mobile)/.test(ua)) || (isFireFox && /(?:Tablet)/.test(ua)),\n isIOS = /(?:iPhone)/.test(ua) && !isTablet,\n isPc = !isIOS && !isAndroid; //&& !isSymbian;\n return {\n isTablet: isTablet,\n isIOS: isIOS,\n isAndroid: isAndroid,\n isMobile: isIOS || isAndroid,\n isPc: isPc,\n };\n }\n /**\n * 移除空格\n * @param value\n * @returns {string}\n */\n static trim(value: any): any {\n if (this.isUndefined(value)) return value;\n const newValue: string = value.toString();\n if (newValue.trim) {\n return newValue.trim();\n }\n return newValue.replace(/^\\s+|\\s+$/gm, \"\");\n }\n\n static split(str: string, sign = \",\"): string[] {\n let newValue: string[];\n if (this.isEmpty(str)) {\n newValue = [];\n } else {\n let newStr = str;\n if (sign === \",\") {\n newStr = newStr.replace(/,/g, \",\");\n }\n newValue = newStr.toString().split(sign);\n }\n return newValue;\n }\n static kebabCase(value: string): string {\n const result = value.replace(/([A-Z])/g, \" $1\").trim();\n return result.split(\" \").join(\"-\").toLowerCase();\n }\n /**\n * 获取字节长度\n * @param {string} str\n * @returns {number}\n */\n static getByteLen(str: string): number {\n let len = 0;\n for (let i = 0; i < str.length; i += 1) {\n const si = str.charAt(i);\n if (si.match(/[^\\x00-\\xff]/ig) !== null) { // eslint-disable-line\n len += 3;\n } else {\n len += 1;\n }\n }\n return len;\n }\n\n /**\n * 复制json\n * @param json {Object}\n * @returns\n */\n static getJsonClone(json: any, isDeep = false, opt: any = {}): any {\n if (isDeep) {\n return this._getJsonCloneDeep(json, opt);\n } else {\n const exclude = this.isUndefined(opt.exclude) ? [] : opt.exclude;\n if (exclude.length === 0) {\n return this.getJsonMerge(json);\n } else {\n const clone: any = {};\n Object.keys(json).forEach((key: any) => {\n if (!this.isExistValue(exclude, key)) {\n clone[key] = json[key];\n }\n });\n return clone;\n }\n }\n }\n\n /**\n * 复制json 深拷贝\n * @param json\n * @returns\n */\n private static _getJsonCloneDeep(json: any, opt: any = {}): any {\n const newJson: any = this.isArray(json) ? [] : {};\n const exclude = this.isUndefined(opt.exclude) ? [] : opt.exclude;\n Object.keys(json).forEach((key: any) => {\n const isCheckExclude = exclude.length === 0 || !this.isExistValue(exclude, key);\n if (isCheckExclude) {\n const value = json[key];\n if (this.isUndefined(value) || !this.isObject(value)) {\n if (this.isArray(value)) {\n newJson[key] = this.getListClone(value, true);\n } else {\n newJson[key] = value;\n }\n } else {\n newJson[key] = this._getJsonCloneDeep(value);\n }\n }\n });\n return newJson;\n }\n\n static getJsonCloneByKeyArr(sourceJson: any, keyArr: string[]): any {\n const tempFormValue: any = {};\n keyArr.forEach(k => {\n const v = sourceJson[k];\n tempFormValue[k] = this.isUndefined(v)\n ? \"\"\n : (this.isObject(v) ? this.getJsonClone(v) : v);\n });\n return tempFormValue;\n }\n\n static getJsonCloneByKeyJson(sourceJson: any, keyJson: any): any {\n const keyArr: string[] = Object.keys(keyJson);\n return this.getJsonCloneByKeyArr(sourceJson, keyArr);\n }\n\n static getJsonCloneByRemoveArr(sourceJson: any, removeArr: string[]): any {\n const temp: any = {};\n if (removeArr.length === 0) {\n return sourceJson;\n }\n Object.keys(sourceJson).forEach((k) => {\n if (!this.isExistValue(removeArr, k)) {\n temp[k] = sourceJson[k];\n }\n });\n return temp;\n }\n\n static getJsonMerge(...target: any): any {\n return Object.assign({}, ...target);\n }\n static getJsonReversal(json: any): any {\n const newJson: any = {};\n Object.keys(json).forEach((k: string) => {\n newJson[json[k]] = k;\n });\n return newJson;\n }\n\n\n static getJsonMergeDeep(...target: any): any {\n const newJson = {};\n const len = target.length;\n for (let i = 0; i < len; i++) {\n this._mergeJsonDeep(newJson, target[i] || {});\n }\n return newJson;\n }\n\n private static _mergeJsonDeep(json1: any, json2: any) {\n Object.keys(json2).forEach((k: any) => {\n const value = json2[k];\n if (this.isUndefined(value)) {\n json1[k] = value;\n } else {\n if (this.isArray(value)) {\n json1[k] = this.getListClone(value, true);\n } else if (this.isObject(value) && this.isExistJsonKey(json1, k)) {\n this._mergeJsonDeep(json1[k], value);\n } else {\n json1[k] = value;\n }\n }\n });\n }\n\n static getJsonMap(json: any, map: any, isDef = false): any {\n const newJson: any = {};\n if (!this.isEmpty(json) && !this._isEmptyObject(map)) {\n for (const [k, v] of Object.entries(map)) {\n let strValue = (v as string).toString();\n let valueType = \"\";\n if (strValue.indexOf(\"|\") > -1) {\n const arrValue = strValue.split(\"|\");\n strValue = arrValue[0];\n valueType = arrValue[1];\n }\n if (strValue.indexOf(\".\") > -1) {\n const arrTemp: string[] = this.split(strValue, \".\");\n let tempValue: any = this.getJsonClone(json, true);\n arrTemp.forEach((vi: string, i: number) => {\n const tt = tempValue[vi];\n const isE = this.isEmpty(tt);\n if (i === arrTemp.length - 1) {\n if (this.isUndefined(tt)) {\n tempValue = isDef ? \"\" : tt;\n } else {\n if (isE) {\n tempValue = \"\";\n } else {\n if (valueType && valueType.length > 0) {\n tempValue = this.isEmpty(tt) ? \"\" : this.getValueByFormat(tt, valueType);\n } else {\n tempValue = tt;\n }\n }\n }\n } else {\n tempValue = isE ? {} : tt;\n }\n });\n newJson[k] = this.isString(tempValue) ? this.trim(tempValue) : tempValue;\n } else {\n if (this.isExistJsonKey(json, strValue)) {\n const value: any = json[strValue];\n let tempValue;\n if (this.isUndefined(value)) {\n tempValue = isDef ? \"\" : value;\n } else {\n if (valueType && valueType.length > 0) {\n tempValue = this.isEmpty(value) ? \"\" : this.getValueByFormat(value, valueType);\n } else {\n tempValue = value;\n }\n }\n newJson[k] = this.isString(tempValue) ? this.trim(tempValue) : tempValue;\n } else {\n if (isDef) {\n newJson[k] = \"\";\n }\n }\n }\n }\n }\n return newJson;\n }\n\n static getJsonByList(list: any, key?: string, isFormat = false): any {\n const json: any = {};\n if (!this.isEmpty(list)) {\n const newKey = key && !this.isEmpty(key) ? key : \"id\";\n list.forEach((info: any) => {\n let k = \"\";\n if (isFormat) {\n if (key) {\n k = this.convertStringFormat(key, info);\n }\n } else {\n k = this.isExistJsonKey(info, newKey) ? info[newKey].toString() : \"\";\n }\n if (k.length > 0) {\n json[k] = this.getJsonClone(info);\n }\n });\n }\n return json;\n }\n static getJsonByArr(arr: string[]): any {\n const json: any = {};\n if (!this.isEmpty(arr)) {\n arr.forEach((k: string) => {\n json[k] = k;\n });\n }\n return json;\n }\n static getGroupByList(list: any, key: string): any {\n const json: any = {};\n if (!this.isEmpty(list)) {\n list.forEach((info: any) => {\n const k = this.isExistJsonKey(info, key) ? info[key].toString() : \"\";\n if (k.length > 0) {\n if (!this.isExistJsonKey(json, k)) {\n json[k] = [];\n }\n json[k].push(this.getJsonClone(info));\n }\n });\n }\n return json;\n }\n\n static getJsonByBlob(blob: any): any {\n return new Promise((resolve, reject) => {\n const reader: any = new FileReader();\n reader.onload = () => {\n try {\n const json = JSON.parse(reader.result);\n resolve(json);\n } catch (error) {\n reject(error);\n }\n };\n reader.onerror = reject;\n reader.readAsText(blob);\n });\n }\n static getBase64ByFile(files: any): any {\n return new Promise((resolve) => {\n if (files.length > 0) {\n const file = files[0];\n if (file instanceof File) {\n const reader = new FileReader();\n reader.onload = (e: any) => {\n resolve(e.target.result);\n };\n reader.readAsDataURL(file);\n } else {\n resolve(\"\");\n }\n } else {\n resolve(\"\");\n }\n });\n }\n /**\n * 获取list 层级结构\n * @param {any[]} list\n * @returns {any}\n */\n static getTreeList(list: any[]): any {\n let tree: any[] = [];\n const topId: string[] = [];\n // const lastChildId: string[] = [];\n const json: any = {};\n const group: any = {};\n if (!this.isEmpty(list)) {\n list.forEach((info: any) => {\n const id = info.id.toString();\n const pId = info.parentId.toString();\n if (pId === \"0\") {\n topId.push(id);\n }\n json[id] = info;\n\n if (!this.isExistJsonKey(group, pId)) {\n group[pId] = [];\n }\n group[pId].push(info);\n });\n topId.forEach((tId: string) => {\n tree = tree.concat(this._recursionChild(tId, group, json));\n });\n }\n return { tree, group, json, list };\n }\n\n static getTreeLastParent(id: string, json: any, isShowSelf = true): any {\n let list = [];\n if (this.isExistJsonKey(json, id)) {\n list = this._recursionParent(id, json);\n if (!isShowSelf) {\n list.splice(0, 1);\n }\n list.reverse();\n }\n return list;\n }\n\n private static _recursionChild(id: string, group: any, json: any): any[] {\n const list: any[] = [];\n const pInfo: any = this.getJsonClone(json[id]);\n if (this.isExistJsonKey(group, id)) {\n pInfo.list = [];\n const data: any[] = group[id];\n data.forEach((info: any) => {\n const cId = info.id.toString();\n pInfo.list = pInfo.list.concat(this._recursionChild(cId, group, json));\n });\n }\n list.push(pInfo);\n return list;\n }\n\n private static _recursionParent(id: string, json: any): any[] {\n let list: any[] = [];\n if (this.isExistJsonKey(json, id)) {\n const info = json[id];\n const pId = info.parentId.toString();\n list.push(info);\n list = list.concat(this._recursionParent(pId, json));\n }\n return list;\n }\n /**\n * 获取list tree转list\n * @param tree \n * @param opt \n * @returns \n */\n static getListByTree(tree: any, opt: any = {}): any {\n const idKey: string = this.isEmpty(opt.idKey) ? \"id\" : opt.idKey;\n const cKey: string = this.isEmpty(opt.cKey) ? \"list\" : opt.cKey;\n const pKey: string = this.isEmpty(opt.pKey) ? \"parentId\" : opt.pKey;\n const topPV: string = this.isEmpty(opt.topPV) ? \"0\" : opt.topPV;\n const list = this._recursionListByTree(tree, topPV, { idKey, cKey, pKey });\n return list;\n }\n private static _recursionListByTree(tree: any[], pId: string, opt: any): any[] {\n const list: any[] = [];\n tree.forEach((info: any) => {\n const temp = this.getJsonClone(info, false, { exclude: [opt.cKey] });\n temp[opt.pKey] = pId;\n const isUndefinedCKey = this.isUndefined(info[opt.cKey]);\n temp.isLastLevel = isUndefinedCKey;\n list.push(temp);\n if (!isUndefinedCKey) {\n const tempList = this._recursionListByTree(info[opt.cKey], temp[opt.idKey], opt);\n list.push(...tempList);\n }\n });\n return list;\n }\n /**\n * 复制list\n * @param list\n */\n static getListClone(list: any, isDeep = false): any {\n if (this.isEmpty(list)) {\n return [];\n }\n return list.map((info: any) => {\n if (this.isObject(info)) {\n return this.getJsonClone(info, isDeep);\n } else {\n return info;\n }\n });\n }\n\n /**\n * list 合并\n * @param newList 新\n * @param oldList 旧\n * @param key id\n * @returns list\n */\n static getListMergeDeep(newList: any[], oldList: any[], key = \"id\"): any {\n const list: any = [];\n if (newList.length > 0) {\n const oldJson = this.getJsonByList(oldList, key);\n newList.forEach((info: any) => {\n let initJson = {};\n let idKey = info[key];\n if (!this.isEmpty(idKey)) {\n idKey = idKey.toString();\n initJson = this.isExistJsonKey(oldJson, idKey) ? oldJson[idKey] : {};\n }\n const newInfo = this.getJsonMergeDeep(initJson, info);\n list.push(newInfo);\n });\n }\n return list;\n }\n\n static getRecursionParentList(json: any, pId: [string, number], pKey = \"parentId\"): any {\n let result: any = [];\n const strPId = pId.toString();\n if (strPId !== \"0\" && this.isExistJsonKey(json, strPId)) {\n const tempInfo = json[strPId];\n result.push(tempInfo);\n const newStrPid = tempInfo[pKey].toString();\n const tempResult: any = this.getRecursionParentList(json, newStrPid);\n if (!this.isEmpty(tempResult)) {\n result = result.concat(tempResult);\n }\n }\n return result;\n }\n static getListExistValue(list: any, value: string, key = \"id\"): any {\n let newInfo: any;\n let inx = -1;\n if (!this.isEmpty(list)) {\n list.forEach((info: any, i: number) => {\n if (this.isExistJsonKey(info, key)) {\n if (info[key].toString() === value.toString()) {\n newInfo = this.getJsonClone(info);\n inx = i;\n }\n }\n });\n }\n return inx === -1 ? null : { info: newInfo, inx };\n }\n /**\n * 复制数组\n * @param arr\n * @returns {Array}\n */\n static getArrClone(arr: any): any {\n return this.isEmpty(arr) ? [] : arr.map((a: any) => a);\n }\n\n static getArrByList(list: any[], key = \"id\") {\n const arr: any = [];\n if (!this.isEmpty(list)) {\n list.forEach((info: any) => {\n if (this.isExistJsonKey(info, key)) {\n arr.push(info[key]);\n }\n });\n }\n return arr;\n }\n\n\n static getArrRemoveById(arr: any, ids: any): string[] {\n if (this.isEmpty(ids)) {\n return arr;\n }\n const newArr: string[] = [];\n const arrParam = this.isArray(ids) ? ids : this.split(ids.toString());\n const jsonParam = this.getArrConvertJson(arrParam);\n arr.forEach((id: string) => {\n const isExist = this.isExistJsonKey(jsonParam, id.toString());\n if (!isExist) {\n newArr.push(id);\n }\n });\n return newArr;\n }\n\n static getArrByMinMax(min = 1, max: number): number[] {\n const arr: number[] = [];\n for (let i = min; i <= max; i += 1) {\n arr.push(i);\n }\n return arr;\n }\n\n /**\n * 数组去重\n * @param arr \n * @returns \n */\n static getArrUnique(arr: any): any {\n const result = [];\n if (arr.length > 0) {\n const hash: any = {};\n let elem = null;\n for (let i = 0; i < arr.length; i += 1) {\n elem = arr[i];\n if (elem !== null && !hash[elem]) {\n result.push(elem);\n hash[elem] = true;\n }\n }\n }\n return result;\n }\n\n static getArrConvertJson(arr: any[]): any {\n const tempFormValue: any = {};\n arr.forEach(a => {\n tempFormValue[a.toString()] = true;\n });\n return tempFormValue;\n }\n\n // //数组排序\n static getArrAsc(arr: any, type: string): any[] {\n let funAsc;\n switch (type) {\n case \"date\":\n funAsc = (a: any, b: any) => { return Date.parse(a) - Date.parse(b); };\n break;\n case \"number\":\n funAsc = (a: number, b: number) => { return a - b; };\n break;\n default: {\n funAsc = (a: string, b: string) => { return this._arrSortString(a.toString(), b.toString()); };\n }\n }\n return arr.sort(funAsc);\n }\n\n static getArrDesc(arr: any, type: string): any[] {\n let funDesc;\n switch (type) {\n case \"date\":\n funDesc = (a: any, b: any) => { return Date.parse(b) - Date.parse(a); };\n break;\n case \"number\":\n funDesc = (a: number, b: number) => { return b - a; };\n break;\n default: {\n funDesc = (a: string, b: string) => { return this._arrSortString(b.toString(), a.toString()); };\n }\n }\n return arr.sort(funDesc);\n }\n\n private static _arrSortString(s1: string, s2: string): number {\n let res = 0;\n for (let i = 0; ; i++) {\n if (!s1[i] || !s2[i]) {\n res = s1.length - s2.length;\n break;\n }\n const char1 = s1[i];\n const char1Type = this._getChartType(char1);\n const char2 = s2[i];\n const char2Type = this._getChartType(char2);\n // 类型相同的逐个比较字符\n if (char1Type[0] === char2Type[0]) {\n if (char1 === char2) {\n continue;\n } else {\n if (char1Type[0] === \"zh\") {\n res = char1.localeCompare(char2);\n } else if (char1Type[0] === \"en\") {\n res = char1.charCodeAt(0) - char2.charCodeAt(0);\n } else {\n res = (char1 as any) - (char2 as any);\n }\n break;\n }\n } else {\n // 类型不同的,直接用返回的数字相减\n res = char1Type[1] - char2Type[1];\n break;\n }\n }\n return res;\n }\n\n private static _getChartType(char: string): [string, number] {\n // 数字,大写字母,小写字母,中文,其他\n if (/^[0-9]$/.test(char)) {\n return [\"number\", 100];\n }\n if (/^[a-zA-Z]$/.test(char)) {\n return [\"en\", 200];\n }\n if (/^[\\u4e00-\\u9fa5]$/.test(char)) {\n return [\"zh\", 300];\n }\n return [\"others\", 999];\n }\n\n static getZeroCount(len: number): string {\n if (len <= 0) { return \"\"; }\n const zero = [];\n for (let i = 0; i < len; i += 1) {\n zero.push(\"0\");\n }\n return zero.join(\"\");\n }\n\n /** 补全零 */\n static getFillZero(value: any, len = 2, around = \"l\"): string {\n const zero = this.getZeroCount(len);\n const strValue = this.isEmpty(value) ? \"\" : value.toString();\n let temp = \"\";\n let result = \"\";\n if (around === \"l\") {\n temp = zero + strValue;\n result = temp.substring(temp.length - len);\n } else {\n temp = strValue.toString() + zero;\n result = temp.substring(0, len);\n }\n return result;\n }\n\n /**\n * 获取随机数\n * @param {number} len\n * @returns {any}\n */\n static getRandom(len = 3): string {\n const lens = len > 0 ? len : 1;\n let r = Math.random();\n r = Math.ceil(r * (10 ** (lens - 1)));\n return this.getFillZero(r, len, \"r\");\n }\n\n /**\n * 指定范围获取随机数\n * @param {number} min\n * @param {number} max\n * @returns {number}\n */\n static getRandomRange(min: number, max: number, isRound = true): number {\n const range = max - min;\n const rand = Math.random();\n return min + (isRound ? Math.round(range * rand) : (range * rand));\n }\n /**\n * 验证码\n */\n static getCaptcha(len = 6) {\n const digits = \"0123456789\";\n let captcha = \"\";\n for (let i = 0; i < len; i++) {\n captcha += digits.charAt(Math.floor(Math.random() * digits.length));\n }\n return captcha;\n }\n /**\n * 字符串格式化(int float2)\n * @param value\n * @param type num int float float2 float3 date dateTime time string intArray\n */\n static getValueByFormat(value: any, type: string, extInfo: any = {}): string {\n let newValue: any;\n switch (type) {\n case \"num\":\n case \"int\":\n case \"float\":\n case \"float2\":\n case \"float3\":\n case \"number\": {\n if (this.isNumber(value)) {\n if (this.isEmpty(value)) {\n const isEmptyDefault = this.isBoolean(extInfo.isEmptyDefault) ? extInfo.isEmptyDefault : true;\n newValue = isEmptyDefault ? \"0\" : value;\n } else {\n let useValue = value.toString();\n useValue = this.isExistValue(useValue, \",\") ? this.removeReplace(useValue) : useValue;\n if (type === \"number\") {\n newValue = Number(useValue);\n } else {\n let fixedNum = 0;\n if (type === \"num\") {\n fixedNum = this.isExistValue(useValue, \".\") ? 2 : 0;\n } else if (type === \"int\") {\n fixedNum = 0;\n } else if (type === \"float\") {\n if (this.isNumber(extInfo.decimalNum)) {\n fixedNum = parseInt(extInfo.decimalNum);\n }\n } else if (type === \"float2\") {\n fixedNum = 2;\n } else if (type === \"float3\") {\n fixedNum = 3;\n }\n const isRounding = this.isBoolean(extInfo.isRounding) ? extInfo.isRounding : true;\n if (isRounding) {\n newValue = parseFloat(useValue).toFixed(fixedNum);\n } else {\n if (fixedNum > 0) {\n const temp = useValue.split(\".\");\n const len = temp[1].length;\n newValue = temp[0] + \".\" + temp[1].substring(0, len > fixedNum ? fixedNum : len);\n } else {\n newValue = parseInt(useValue).toString();\n }\n }\n newValue = Number(newValue).toFixed(fixedNum);\n const isThousands = this.isBoolean(extInfo.isThousands) ? extInfo.isThousands : true;\n if (isThousands) {\n newValue = this.getFormatThousands(newValue);\n }\n }\n }\n } else {\n newValue = value;\n }\n break;\n }\n case \"date\":\n case \"dateTime\":\n case \"time\": {\n if (this.isEmpty(value)) {\n newValue = value;\n } else {\n let newFormat = \"\";\n if (this.isEmpty(extInfo.dateFormat)) {\n if (type === \"dateTime\") {\n newFormat = \"YYYY-MM-DD HH:mm:ss\";\n } else if (type === \"time\") {\n newFormat = \"HH:mm:ss\";\n } else {\n newFormat = \"YYYY-MM-DD\";\n }\n } else {\n newFormat = extInfo.dateFormat;\n }\n const handler = _formatHandlers[type]\n if (handler) {\n newValue = handler(value, newFormat)\n } else {\n newValue = value\n }\n }\n break;\n }\n case \"string\":\n newValue = value.toString();\n break;\n case \"intArray\":\n newValue = value.split(\",\").map((id: string) => parseInt(id));\n break;\n default:\n newValue = value;\n }\n return newValue;\n }\n\n /**\n * 小时格式\n * @param start 开始\n * @param end 结束\n * @returns 格式: 01:00-02:59\n */\n static getHourInterval(start: any, end: any = \"\"): string {\n const newE = this.isEmpty(end) ? start : end;\n return `${this.getFillZero(start)}:00-${this.getFillZero(newE)}:59`;\n }\n\n /** 转化千分位 */\n static getFormatThousands(value: any): string {\n if (!this.isNumber(value)) {\n return \"\";\n }\n const arrNum = this.split(value.toString(), \".\");\n return arrNum[0].replace(/(\\d{1,3})(?=(?:\\d{3})+(?!\\d))/g, \"$1,\") + (arrNum.length > 1 ? (`.${arrNum[1]}`) : \"\");\n }\n\n /**\n * 指定位 数字加一,位之后零补充\n * @param value 值\n * @param opt inxPos(第几位 默认第二位) isCeil(最后数字是否ceil) isRounding(是否四舍五入,优先isCeil) isEndFive (最后数字是否5/0)\n * @returns\n */\n static getNumCeil(value: any, opt: any = {}): number {\n /* if (inxPos <= 0) {\n return Math.ceil(value);\n } */\n if (!this.isNumber(value)) {\n return 0;\n }\n const numValue = Number(value);\n const isMinus = numValue < 0;\n const absValue = Math.abs(numValue);\n if (absValue === 0) {\n return 0;\n }\n const isLess1 = absValue < 1;\n let zeroLenL = 0;\n let strValue = absValue.toString();\n let indexDot = -1;\n if (isLess1) {\n indexDot = -1;\n if (absValue > 0) {\n const tempLess1 = strValue.split(\".\")[1];\n strValue = Number(tempLess1).toString();\n zeroLenL = tempLess1.length - strValue.length;\n }\n } else {\n zeroLenL = 0;\n indexDot = strValue.indexOf(\".\");\n if (indexDot > -1) {\n strValue = strValue.replace(\".\", \"\");\n }\n }\n\n const isCeil = this.isBoolean(opt.isCeil) ? opt.isCeil : true;\n const inxPos = this.isUndefined(opt.inxPos) ? 2 : parseInt(opt.inxPos);\n const isEndFive = this.isBoolean(opt.isEndFive) ? opt.isEndFive : false;\n const isRounding = this.isBoolean(opt.isRounding) ? opt.isRounding : false;\n\n // 拆分\n let l;\n let r = \"\";\n if (inxPos < strValue.length) {\n l = strValue.substring(0, inxPos);\n r = strValue.substring(inxPos);\n } else {\n l = strValue;\n }\n\n /// 左\n let newL = \"\";\n const strL = isCeil || (isRounding && r.length > 0 && parseInt(r.substring(0, 1)) >= 5)\n ? (parseInt(l) + 1).toString()\n : parseInt(l).toString();\n const lastL = parseInt(strL.substring(strL.length - 1));\n if (isEndFive) {\n // 四舍六入五保留\n if (lastL === 5 || lastL === 0) {\n newL = strL;\n } else {\n const f = parseInt(strL.substring(0, inxPos - 1));\n if (lastL > 5) {\n newL = `${f + 1}0`;\n } else if (lastL < 5) {\n newL = `${f}5`;\n }\n if (strL.length > inxPos && newL.length === inxPos) {\n newL = `${newL}0`;\n }\n }\n } else {\n newL = strL;\n }\n\n /// 右\n let newR = \"\";\n let zeroLenR = 0;\n if (indexDot === -1) {\n zeroLenR = r.length;\n } else {\n if (indexDot < inxPos) {\n zeroLenR = 0;\n newL = (Number(newL) / ((inxPos - indexDot) * 10)).toString();\n } else if (indexDot > inxPos) {\n zeroLenR = indexDot - inxPos;\n }\n }\n newR = this.getZeroCount(zeroLenR);\n\n if (isLess1) {\n const zeroL = this.getZeroCount(zeroLenL);\n newL = `0.${zeroL}${newL}`;\n }\n const newValue = newL + newR;\n\n return Number(newValue) * (isMinus ? -1 : 1);\n }\n\n static removeReplace(value: any, key = \",\") {\n if (this.isUndefined(value)) {\n return \"\";\n }\n const reg = new RegExp(`[${key}]`, \"g\");\n return value.toString().replace(reg, \"\");\n }\n\n /**\n * 转换空为零\n * @param json \n * @param mapKey \n * @param optExt \n * @returns \n */\n static conversionEmptyZero(json: any, mapKey: string[], optExt?: any) {\n const newJson = json;\n if (!this.isEmpty(mapKey)) {\n let defEmpty: any = 0;\n let defUndefined: any = 0;\n if (optExt) {\n let newOptExt: any = {};\n if (this.isString(optExt)) {\n newOptExt.emptyDef = optExt;\n } else if (this.isObject(optExt)) {\n newOptExt = optExt;\n }\n const isEmptyExtUndefinedDef = this.isEmpty(newOptExt.undefinedDef);\n if (!isEmptyExtUndefinedDef) {\n defUndefined = newOptExt.undefinedDef;\n }\n if (!this.isEmpty(newOptExt.emptyDef)) {\n defEmpty = newOptExt.emptyDef;\n if (isEmptyExtUndefinedDef) {\n defUndefined = newOptExt.emptyDef;\n }\n }\n }\n mapKey.forEach((k: string) => {\n if (this.isEmpty(json[k])) {\n if (this.isUndefined(json[k])) {\n newJson[k] = defUndefined;\n } else {\n newJson[k] = defEmpty;\n }\n }\n });\n }\n return newJson;\n }\n /**\n * 转换百分比\n * @param {any} json\n * @param {string[]} mapKey\n */\n static conversionPercentage(json: any, mapKey: string[], isMultiply = true) {\n const newJson = json;\n if (!this.isEmpty(mapKey)) {\n mapKey.forEach((k: string) => {\n const v = json[k];\n if (this.isEmpty(v)) {\n newJson[k] = 0;\n } else {\n if (this.isNumber(v)) {\n newJson[k] = isMultiply\n ? v * 100\n : v / 100;\n } else {\n newJson[k] = v;\n }\n }\n });\n }\n return newJson;\n }\n\n /**\n * 转换格式化的字符串\n * @param {string} strFormat\n * @param {any} json\n * @returns {string}\n */\n static convertStringFormat(strFormat: string, json: any): string {\n let newStr = strFormat;\n if (!this.isEmpty(json)) {\n newStr = strFormat.replace(/[$]{[^}]+}/g, ($1) => {\n const k = $1.replace(\"${\", \"\").replace(\"}\", \"\");\n return this.isExistJsonKey(json, k) ? json[k] : $1;\n });\n }\n return newStr;\n }\n\n static getQueryString(url: string, name: string): string {\n const reg: any = new RegExp(`(^|&)${name}=([^&]*)(&|$)`, \"i\");\n const r: any = url.substring(url.indexOf(\"?\") + 1).match(reg);\n if (r !== null) return decodeURI(r[2]);\n return \"\";\n }\n\n static getQueryStringByHash(name: string): string {\n return this.getQueryString(window.location.hash, name);\n }\n\n static encodeHTML(source: string) {\n return String(source)\n .replace(/&/g, \"&\")\n .replace(/</g, \"<\")\n .replace(/>/g, \">\")\n .replace(/\"/g, \""\")\n .replace(/'/g, \"'\");\n }\n static removeHTMLTags(str: string) {\n return str.replace(/<[^>]*>/g, \"\");\n }\n\n static requestAnimationFrame(nextCb: any) {\n const rAF = window.requestAnimationFrame\n || (window as any).webkitRequestAnimationFrame\n || (window as any).mozRequestAnimationFrame\n || (window as any).oRequestAnimationFrame\n || (window as any).msRequestAnimationFrame;\n if (rAF) {\n return rAF.call(window, nextCb);\n }\n return window.setTimeout(nextCb, 1000 / 60);\n }\n\n static cancelAnimationFrame(handle: any) {\n const cAF = window.cancelAnimationFrame\n || (window as any).webkitCancelAnimationFrame\n || (window as any).mozCancelAnimationFrame\n || (window as any).oCancelAnimationFrame\n || (window as any).msCancelAnimationFrame;\n if (cAF) {\n cAF.call(window, handle);\n } else {\n window.clearTimeout(handle);\n }\n }\n}\nexport default CommonBase;\n"],"names":["_formatHandlers","registerFormatHandler","type","handler","CommonBase","value","b","check","obj","arr","lng","lat","lngRegex","latRegex","def","objType","strValue","strDef","value1","value2","arr1","arr2","isInOrder","isEmpty1","isEmpty2","i","json2","list1","list2","key","info1","k","info2","k2","v","json","ua","isAndroid","isFireFox","isTablet","isIOS","newValue","str","sign","newStr","len","isDeep","opt","exclude","clone","newJson","sourceJson","keyArr","tempFormValue","keyJson","removeArr","temp","target","json1","map","isDef","valueType","arrValue","arrTemp","tempValue","vi","tt","isE","list","isFormat","newKey","info","blob","resolve","reject","reader","error","files","file","e","tree","topId","group","id","pId","tId","isShowSelf","pInfo","cId","idKey","cKey","pKey","topPV","isUndefinedCKey","tempList","newList","oldList","oldJson","initJson","newInfo","result","strPId","tempInfo","newStrPid","tempResult","inx","a","ids","newArr","arrParam","jsonParam","min","max","hash","elem","funAsc","funDesc","s1","s2","res","char1","char1Type","char2","char2Type","char","zero","around","lens","r","isRound","range","rand","digits","captcha","extInfo","useValue","fixedNum","newFormat","start","end","newE","arrNum","numValue","isMinus","absValue","isLess1","zeroLenL","indexDot","tempLess1","isCeil","inxPos","isEndFive","isRounding","l","newL","strL","lastL","f","newR","zeroLenR","reg","mapKey","optExt","defEmpty","defUndefined","newOptExt","isEmptyExtUndefined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AE,MAAMV,CAAG;AAC5D,WAAIhC,MAAM,OAAa,UAAUA,EAAE,CAAC,CAAC,IAC9B;AAAA,EACX;AAAA,EAEA,OAAO,qBAAqB2C,GAAsB;AAC9C,WAAO,KAAK,eAAe,OAAO,SAAS,MAAMA,CAAI;AAAA,EACzD;AAAA,EAEA,OAAO,WAAWC,GAAgB;AAC9B,WAAO,OAAOA,CAAM,EACf,QAAQ,MAAM,OAAO,EACrB,QAAQ,MAAM,MAAM,EACpB,QAAQ,MAAM,MAAM,EACpB,QAAQ,MAAM,QAAQ,EACtB,QAAQ,MAAM,OAAO;AAAA,EAC9B;AAAA,EACA,OAAO,eAAelI,GAAa;AAC/B,WAAOA,EAAI,QAAQ,YAAY,EAAE;AAAA,EACrC;AAAA,EAEA,OAAO,sBAAsBmI,GAAa;AACtC,UAAMC,IAAM,OAAO,yBACX,OAAe,+BACf,OAAe,4BACf,OAAe,0BACf,OAAe;AACvB,WAAIA,IACOA,EAAI,KAAK,QAAQD,CAAM,IAE3B,OAAO,WAAWA,GAAQ,MAAO,EAAE;AAAA,EAC9C;AAAA,EAEA,OAAO,qBAAqBE,GAAa;AACrC,UAAMC,IAAM,OAAO,wBACX,OAAe,8BACf,OAAe,2BACf,OAAe,yBACf,OAAe;AACvB,IAAIA,IACAA,EAAI,KAAK,QAAQD,CAAM,IAEvB,OAAO,aAAaA,CAAM;AAAA,EAElC;AACJ;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const J={};function A(S,t){J[S]=t}class F{static getTypeof(t){return typeof t}static _toStringCall(t){return Object.prototype.toString.call(t)}static isUndefined(t){return this.getTypeof(t)==="undefined"||t===null}static isBoolean(t){return this.getTypeof(t)==="boolean"}static isString(t){return this.getTypeof(t)==="string"}static isFunction(t){return this.getTypeof(t)==="function"&&this._toStringCall(t)==="[object Function]"}static isObject(t){return!this.isUndefined(t)&&this.getTypeof(t)==="object"}static isBlob(t){return this._toStringCall(t)==="[object Blob]"}static isFile(t){return this._toStringCall(t)==="[object File]"}static isNumber(t){let e=!1;return this.isString(t)?/^(-)?(([1-9]\d*)|0)(\.\d+)?$/.test(t):(this.getTypeof(t)==="number"&&(e=!0),e)}static isInt(t){let e=!0;return this.isEmpty(t)||(e=/^[1-9]\d*$|^0$/.test(t.toString())),e}static isHtml(t){return/^<([a-z][a-z0-9]*)\b[^>]*>(.*?)<\/\1>$/i.test(t)}static isJson(t){let e=!1;if(this.isString(t))try{const s=JSON.parse(t);this.isObject(s)&&(e=!0)}catch{}else this.isObject(t)&&(e=!0);return e}static isWindow(t){return!this.isUndefined(t)&&t===t.window}static _isEmptyObject(t){return this.isUndefined(t)?!0:Object.keys(t).length===0}static isArray(t){return Array.isArray(t)&&this._toStringCall(t)==="[object Array]"}static isLocationLngLat(t){let e=!1;if(!this.isEmpty(t)){let s;if(this.isString(t)?s=t.split(","):this.isArray(t)?s=t:s=[],s.length===2){const i=s[0],n=s[1],r=/^-?(180(\.0+)?|1[0-7]?\d?(\.\d+)?|[1-9]?\d?(\.\d+)?)$/,o=/^-?(90(\.0+)?|[1-8]?\d?(\.\d+)?)$/;e=r.test(i)&&o.test(n)}}return e}static isEmpty(t,e){let s=this.isUndefined(t);if(!s){const i=this.getTypeof(t);if(this.isString(t)?s=this.trim(t).length===0:this.isArray(t)?s=t.length===0:i==="object"&&(this.isFile(t)?s=!1:s=this._isEmptyObject(t)),!s&&!this.isUndefined(e)){let n=t;this.isNumber(t)&&(n=n.toString());let r=e;this.isNumber(e)&&(r=r.toString()),s=this.isEqual(n,r)}}return s}static isEqual(t,e){return Object.is(t,e)}static isEqualArr(t,e,s=!1){let i=!1;const n=this.isEmpty(t),r=this.isEmpty(e);if(n&&r)i=!0;else if(t.length===e.length)if(i=!0,s){for(let o=0;o<t.length;o++)if(t[o].toString()!==e[o].toString()){i=!1;break}}else{const o=this.getArrConvertJson(e);for(let c=0;c<t.length;c++)if(!this.isExistJsonKey(o,t[c].toString())){i=!1;break}}else i=!1;return i}static isEqualList(t,e,s=["id"]){let i=!1;const n=this.isEmpty(t),r=this.isEmpty(e);if(n&&r)i=!0;else if(t.length===e.length){const o=t.map(c=>s.map(a=>c[a].toString()).join(","));i=!0,e.some(c=>{const a=s.map(l=>c[l].toString()).join(",");if(!this.isExistValue(o,a))return i=!1,!0})}else i=!1;return i}static isContainArr(t,e){let s=!1;const i=this.isEmpty(t),n=this.isEmpty(e);return i&&n?s=!0:t.length>=e.length?(s=!0,e.some(r=>{if(!this.isExistValue(t,r))return s=!1,!0})):s=!1,s}static isExistValue(t,e){return this.isUndefined(t)?!1:t.includes?t.includes(e):t.indexOf(e)>-1}static isExistJsonKey(t,e){return this.isUndefined(t)?!1:Object.prototype.hasOwnProperty.call(t,e)}static osType(){const t=navigator.userAgent,e=/(?:Android)/.test(t),s=/(?:Firefox)/.test(t),i=/(?:iPad|PlayBook)/.test(t)||e&&!/(?:Mobile)/.test(t)||s&&/(?:Tablet)/.test(t),n=/(?:iPhone)/.test(t)&&!i;return{isTablet:i,isIOS:n,isAndroid:e,isMobile:n||e,isPc:!n&&!e}}static trim(t){if(this.isUndefined(t))return t;const e=t.toString();return e.trim?e.trim():e.replace(/^\s+|\s+$/gm,"")}static split(t,e=","){let s;if(this.isEmpty(t))s=[];else{let i=t;e===","&&(i=i.replace(/,/g,",")),s=i.toString().split(e)}return s}static kebabCase(t){return t.replace(/([A-Z])/g," $1").trim().split(" ").join("-").toLowerCase()}static getByteLen(t){let e=0;for(let s=0;s<t.length;s+=1)t.charAt(s).match(/[^\x00-\xff]/ig)!==null?e+=3:e+=1;return e}static getJsonClone(t,e=!1,s={}){if(e)return this._getJsonCloneDeep(t,s);{const i=this.isUndefined(s.exclude)?[]:s.exclude;if(i.length===0)return this.getJsonMerge(t);{const n={};return Object.keys(t).forEach(r=>{this.isExistValue(i,r)||(n[r]=t[r])}),n}}}static _getJsonCloneDeep(t,e={}){const s=this.isArray(t)?[]:{},i=this.isUndefined(e.exclude)?[]:e.exclude;return Object.keys(t).forEach(n=>{if(i.length===0||!this.isExistValue(i,n)){const o=t[n];this.isUndefined(o)||!this.isObject(o)?this.isArray(o)?s[n]=this.getListClone(o,!0):s[n]=o:s[n]=this._getJsonCloneDeep(o)}}),s}static getJsonCloneByKeyArr(t,e){const s={};return e.forEach(i=>{const n=t[i];s[i]=this.isUndefined(n)?"":this.isObject(n)?this.getJsonClone(n):n}),s}static getJsonCloneByKeyJson(t,e){const s=Object.keys(e);return this.getJsonCloneByKeyArr(t,s)}static getJsonCloneByRemoveArr(t,e){const s={};return e.length===0?t:(Object.keys(t).forEach(i=>{this.isExistValue(e,i)||(s[i]=t[i])}),s)}static getJsonMerge(...t){return Object.assign({},...t)}static getJsonReversal(t){const e={};return Object.keys(t).forEach(s=>{e[t[s]]=s}),e}static getJsonMergeDeep(...t){const e={},s=t.length;for(let i=0;i<s;i++)this._mergeJsonDeep(e,t[i]||{});return e}static _mergeJsonDeep(t,e){Object.keys(e).forEach(s=>{const i=e[s];this.isUndefined(i)?t[s]=i:this.isArray(i)?t[s]=this.getListClone(i,!0):this.isObject(i)&&this.isExistJsonKey(t,s)?this._mergeJsonDeep(t[s],i):t[s]=i})}static getJsonMap(t,e,s=!1){const i={};if(!this.isEmpty(t)&&!this._isEmptyObject(e))for(const[n,r]of Object.entries(e)){let o=r.toString(),c="";if(o.indexOf("|")>-1){const a=o.split("|");o=a[0],c=a[1]}if(o.indexOf(".")>-1){const a=this.split(o,".");let l=this.getJsonClone(t,!0);a.forEach((h,b)=>{const f=l[h],g=this.isEmpty(f);b===a.length-1?this.isUndefined(f)?l=s?"":f:g?l="":c&&c.length>0?l=this.isEmpty(f)?"":this.getValueByFormat(f,c):l=f:l=g?{}:f}),i[n]=this.isString(l)?this.trim(l):l}else if(this.isExistJsonKey(t,o)){const a=t[o];let l;this.isUndefined(a)?l=s?"":a:c&&c.length>0?l=this.isEmpty(a)?"":this.getValueByFormat(a,c):l=a,i[n]=this.isString(l)?this.trim(l):l}else s&&(i[n]="")}return i}static getJsonByList(t,e,s=!1){const i={};if(!this.isEmpty(t)){const n=e&&!this.isEmpty(e)?e:"id";t.forEach(r=>{let o="";s?e&&(o=this.convertStringFormat(e,r)):o=this.isExistJsonKey(r,n)?r[n].toString():"",o.length>0&&(i[o]=this.getJsonClone(r))})}return i}static getJsonByArr(t){const e={};return this.isEmpty(t)||t.forEach(s=>{e[s]=s}),e}static getGroupByList(t,e){const s={};return this.isEmpty(t)||t.forEach(i=>{const n=this.isExistJsonKey(i,e)?i[e].toString():"";n.length>0&&(this.isExistJsonKey(s,n)||(s[n]=[]),s[n].push(this.getJsonClone(i)))}),s}static getJsonByBlob(t){return new Promise((e,s)=>{const i=new FileReader;i.onload=()=>{try{const n=JSON.parse(i.result);e(n)}catch(n){s(n)}},i.onerror=s,i.readAsText(t)})}static getBase64ByFile(t){return new Promise(e=>{if(t.length>0){const s=t[0];if(s instanceof File){const i=new FileReader;i.onload=n=>{e(n.target.result)},i.readAsDataURL(s)}else e("")}else e("")})}static getTreeList(t){let e=[];const s=[],i={},n={};return this.isEmpty(t)||(t.forEach(r=>{const o=r.id.toString(),c=r.parentId.toString();c==="0"&&s.push(o),i[o]=r,this.isExistJsonKey(n,c)||(n[c]=[]),n[c].push(r)}),s.forEach(r=>{e=e.concat(this._recursionChild(r,n,i))})),{tree:e,group:n,json:i,list:t}}static getTreeLastParent(t,e,s=!0){let i=[];return this.isExistJsonKey(e,t)&&(i=this._recursionParent(t,e),s||i.splice(0,1),i.reverse()),i}static _recursionChild(t,e,s){const i=[],n=this.getJsonClone(s[t]);return this.isExistJsonKey(e,t)&&(n.list=[],e[t].forEach(o=>{const c=o.id.toString();n.list=n.list.concat(this._recursionChild(c,e,s))})),i.push(n),i}static _recursionParent(t,e){let s=[];if(this.isExistJsonKey(e,t)){const i=e[t],n=i.parentId.toString();s.push(i),s=s.concat(this._recursionParent(n,e))}return s}static getListByTree(t,e={}){const s=this.isEmpty(e.idKey)?"id":e.idKey,i=this.isEmpty(e.cKey)?"list":e.cKey,n=this.isEmpty(e.pKey)?"parentId":e.pKey,r=this.isEmpty(e.topPV)?"0":e.topPV;return this._recursionListByTree(t,r,{idKey:s,cKey:i,pKey:n})}static _recursionListByTree(t,e,s){const i=[];return t.forEach(n=>{const r=this.getJsonClone(n,!1,{exclude:[s.cKey]});r[s.pKey]=e;const o=this.isUndefined(n[s.cKey]);if(r.isLastLevel=o,i.push(r),!o){const c=this._recursionListByTree(n[s.cKey],r[s.idKey],s);i.push(...c)}}),i}static getListClone(t,e=!1){return this.isEmpty(t)?[]:t.map(s=>this.isObject(s)?this.getJsonClone(s,e):s)}static getListMergeDeep(t,e,s="id"){const i=[];if(t.length>0){const n=this.getJsonByList(e,s);t.forEach(r=>{let o={},c=r[s];this.isEmpty(c)||(c=c.toString(),o=this.isExistJsonKey(n,c)?n[c]:{});const a=this.getJsonMergeDeep(o,r);i.push(a)})}return i}static getRecursionParentList(t,e,s="parentId"){let i=[];const n=e.toString();if(n!=="0"&&this.isExistJsonKey(t,n)){const r=t[n];i.push(r);const o=r[s].toString(),c=this.getRecursionParentList(t,o);this.isEmpty(c)||(i=i.concat(c))}return i}static getListExistValue(t,e,s="id"){let i,n=-1;return this.isEmpty(t)||t.forEach((r,o)=>{this.isExistJsonKey(r,s)&&r[s].toString()===e.toString()&&(i=this.getJsonClone(r),n=o)}),n===-1?null:{info:i,inx:n}}static getArrClone(t){return this.isEmpty(t)?[]:t.map(e=>e)}static getArrByList(t,e="id"){const s=[];return this.isEmpty(t)||t.forEach(i=>{this.isExistJsonKey(i,e)&&s.push(i[e])}),s}static getArrRemoveById(t,e){if(this.isEmpty(e))return t;const s=[],i=this.isArray(e)?e:this.split(e.toString()),n=this.getArrConvertJson(i);return t.forEach(r=>{this.isExistJsonKey(n,r.toString())||s.push(r)}),s}static getArrByMinMax(t=1,e){const s=[];for(let i=t;i<=e;i+=1)s.push(i);return s}static getArrUnique(t){const e=[];if(t.length>0){const s={};let i=null;for(let n=0;n<t.length;n+=1)i=t[n],i!==null&&!s[i]&&(e.push(i),s[i]=!0)}return e}static getArrConvertJson(t){const e={};return t.forEach(s=>{e[s.toString()]=!0}),e}static getArrAsc(t,e){let s;switch(e){case"date":s=(i,n)=>Date.parse(i)-Date.parse(n);break;case"number":s=(i,n)=>i-n;break;default:s=(i,n)=>this._arrSortString(i.toString(),n.toString())}return t.sort(s)}static getArrDesc(t,e){let s;switch(e){case"date":s=(i,n)=>Date.parse(n)-Date.parse(i);break;case"number":s=(i,n)=>n-i;break;default:s=(i,n)=>this._arrSortString(n.toString(),i.toString())}return t.sort(s)}static _arrSortString(t,e){let s=0;for(let i=0;;i++){if(!t[i]||!e[i]){s=t.length-e.length;break}const n=t[i],r=this._getChartType(n),o=e[i],c=this._getChartType(o);if(r[0]===c[0]){if(n===o)continue;r[0]==="zh"?s=n.localeCompare(o):r[0]==="en"?s=n.charCodeAt(0)-o.charCodeAt(0):s=n-o;break}else{s=r[1]-c[1];break}}return s}static _getChartType(t){return/^[0-9]$/.test(t)?["number",100]:/^[a-zA-Z]$/.test(t)?["en",200]:/^[\u4e00-\u9fa5]$/.test(t)?["zh",300]:["others",999]}static getZeroCount(t){if(t<=0)return"";const e=[];for(let s=0;s<t;s+=1)e.push("0");return e.join("")}static getFillZero(t,e=2,s="l"){const i=this.getZeroCount(e),n=this.isEmpty(t)?"":t.toString();let r="",o="";return s==="l"?(r=i+n,o=r.substring(r.length-e)):(r=n.toString()+i,o=r.substring(0,e)),o}static getRandom(t=3){const e=t>0?t:1;let s=Math.random();return s=Math.ceil(s*10**(e-1)),this.getFillZero(s,t,"r")}static getRandomRange(t,e,s=!0){const i=e-t,n=Math.random();return t+(s?Math.round(i*n):i*n)}static getCaptcha(t=6){const e="0123456789";let s="";for(let i=0;i<t;i++)s+=e.charAt(Math.floor(Math.random()*e.length));return s}static getValueByFormat(t,e,s={}){let i;switch(e){case"num":case"int":case"float":case"float2":case"float3":case"number":{if(this.isNumber(t))if(this.isEmpty(t))i=(this.isBoolean(s.isEmptyDefault)?s.isEmptyDefault:!0)?"0":t;else{let n=t.toString();if(n=this.isExistValue(n,",")?this.removeReplace(n):n,e==="number")i=Number(n);else{let r=0;if(e==="num"?r=this.isExistValue(n,".")?2:0:e==="int"?r=0:e==="float"?this.isNumber(s.decimalNum)&&(r=parseInt(s.decimalNum)):e==="float2"?r=2:e==="float3"&&(r=3),this.isBoolean(s.isRounding)?s.isRounding:!0)i=parseFloat(n).toFixed(r);else if(r>0){const a=n.split("."),l=a[1].length;i=a[0]+"."+a[1].substring(0,l>r?r:l)}else i=parseInt(n).toString();i=Number(i).toFixed(r),(this.isBoolean(s.isThousands)?s.isThousands:!0)&&(i=this.getFormatThousands(i))}}else i=t;break}case"date":case"dateTime":case"time":{if(this.isEmpty(t))i=t;else{let n="";this.isEmpty(s.dateFormat)?e==="dateTime"?n="YYYY-MM-DD HH:mm:ss":e==="time"?n="HH:mm:ss":n="YYYY-MM-DD":n=s.dateFormat;const r=J[e];r?i=r(t,n):i=t}break}case"string":i=t.toString();break;case"intArray":i=t.split(",").map(n=>parseInt(n));break;default:i=t}return i}static getHourInterval(t,e=""){const s=this.isEmpty(e)?t:e;return`${this.getFillZero(t)}:00-${this.getFillZero(s)}:59`}static getFormatThousands(t){if(!this.isNumber(t))return"";const e=this.split(t.toString(),".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?`.${e[1]}`:"")}static getNumCeil(t,e={}){if(!this.isNumber(t))return 0;const s=Number(t),i=s<0,n=Math.abs(s);if(n===0)return 0;const r=n<1;let o=0,c=n.toString(),a=-1;if(r){if(a=-1,n>0){const d=c.split(".")[1];c=Number(d).toString(),o=d.length-c.length}}else o=0,a=c.indexOf("."),a>-1&&(c=c.replace(".",""));const l=this.isBoolean(e.isCeil)?e.isCeil:!0,h=this.isUndefined(e.inxPos)?2:parseInt(e.inxPos),b=this.isBoolean(e.isEndFive)?e.isEndFive:!1,f=this.isBoolean(e.isRounding)?e.isRounding:!1;let g,p="";h<c.length?(g=c.substring(0,h),p=c.substring(h)):g=c;let u="";const m=l||f&&p.length>0&&parseInt(p.substring(0,1))>=5?(parseInt(g)+1).toString():parseInt(g).toString(),y=parseInt(m.substring(m.length-1));if(b)if(y===5||y===0)u=m;else{const d=parseInt(m.substring(0,h-1));y>5?u=`${d+1}0`:y<5&&(u=`${d}5`),m.length>h&&u.length===h&&(u=`${u}0`)}else u=m;let w="",E=0;a===-1?E=p.length:a<h?(E=0,u=(Number(u)/((h-a)*10)).toString()):a>h&&(E=a-h),w=this.getZeroCount(E),r&&(u=`0.${this.getZeroCount(o)}${u}`);const C=u+w;return Number(C)*(i?-1:1)}static removeReplace(t,e=","){if(this.isUndefined(t))return"";const s=new RegExp(`[${e}]`,"g");return t.toString().replace(s,"")}static conversionEmptyZero(t,e,s){const i=t;if(!this.isEmpty(e)){let n=0,r=0;if(s){let o={};this.isString(s)?o.emptyDef=s:this.isObject(s)&&(o=s);const c=this.isEmpty(o.undefinedDef);c||(r=o.undefinedDef),this.isEmpty(o.emptyDef)||(n=o.emptyDef,c&&(r=o.emptyDef))}e.forEach(o=>{this.isEmpty(t[o])&&(this.isUndefined(t[o])?i[o]=r:i[o]=n)})}return i}static conversionPercentage(t,e,s=!0){const i=t;return this.isEmpty(e)||e.forEach(n=>{const r=t[n];this.isEmpty(r)?i[n]=0:this.isNumber(r)?i[n]=s?r*100:r/100:i[n]=r}),i}static convertStringFormat(t,e){let s=t;return this.isEmpty(e)||(s=t.replace(/[$]{[^}]+}/g,i=>{const n=i.replace("${","").replace("}","");return this.isExistJsonKey(e,n)?e[n]:i})),s}static getQueryString(t,e){const s=new RegExp(`(^|&)${e}=([^&]*)(&|$)`,"i"),i=t.substring(t.indexOf("?")+1).match(s);return i!==null?decodeURI(i[2]):""}static getQueryStringByHash(t){return this.getQueryString(window.location.hash,t)}static encodeHTML(t){return String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}static removeHTMLTags(t){return t.replace(/<[^>]*>/g,"")}static requestAnimationFrame(t){const e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;return e?e.call(window,t):window.setTimeout(t,1e3/60)}static cancelAnimationFrame(t){const e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;e?e.call(window,t):window.clearTimeout(t)}}exports.CommonBase=F;exports.registerFormatHandler=A;
|
|
2
|
+
//# sourceMappingURL=base-iCmnU-fv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-iCmnU-fv.js","sources":["../../../src/libs/Common/base.ts"],"sourcesContent":["// Format handler registry — registered by day.ts to avoid circular import\nconst _formatHandlers: Record<string, (value: any, format: string) => any> = {}\n\nexport function registerFormatHandler(type: string, handler: (value: any, format: string) => any) {\n _formatHandlers[type] = handler\n}\n\nclass CommonBase {\n // constructor() {}\n /**\n * 获取 typeof 类型\n * @param value\n * @returns {string}\n */\n static getTypeof(value: any): string {\n return typeof value;\n }\n private static _toStringCall(value: any): string {\n return Object.prototype.toString.call(value);\n }\n\n static isUndefined(value: any): boolean {\n return this.getTypeof(value) === \"undefined\" || value === null;\n }\n\n static isBoolean(value: any): boolean {\n return this.getTypeof(value) === \"boolean\";\n }\n\n static isString(value: any): boolean {\n return this.getTypeof(value) === \"string\";\n }\n\n static isFunction(value: any): boolean {\n return this.getTypeof(value) === \"function\" && this._toStringCall(value) === \"[object Function]\";\n }\n\n static isObject(value: any): boolean {\n return !this.isUndefined(value) && this.getTypeof(value) === \"object\";\n }\n static isBlob(value: any): boolean {\n return this._toStringCall(value) === \"[object Blob]\";\n }\n static isFile(value: any): boolean {\n return this._toStringCall(value) === \"[object File]\";\n }\n\n static isNumber(value: any): boolean {\n let b = false;\n if (this.isString(value)) {\n return (/^(-)?(([1-9]\\d*)|0)(\\.\\d+)?$/).test(value);\n } else if (this.getTypeof(value) === \"number\") {\n b = true;\n }\n return b;\n }\n\n static isInt(value: number): boolean {\n let check = true;\n if (!this.isEmpty(value)) {\n const reg: any = /^[1-9]\\d*$|^0$/;\n check = reg.test(value.toString());\n }\n return check;\n }\n static isHtml(value: string): boolean {\n return (/^<([a-z][a-z0-9]*)\\b[^>]*>(.*?)<\\/\\1>$/i).test(value);\n }\n static isJson(value: any): boolean {\n let check = false;\n if (this.isString(value)) {\n try {\n const obj = JSON.parse(value);\n if (this.isObject(obj)) {\n check = true;\n }\n } catch (e) { }\n } else if (this.isObject(value)) {\n check = true;\n }\n return check;\n }\n\n static isWindow(obj: any): boolean {\n return !this.isUndefined(obj) && obj === obj.window;\n }\n\n private static _isEmptyObject(value: any): boolean {\n return this.isUndefined(value) ? true : Object.keys(value).length === 0;\n }\n\n static isArray(value: any): boolean {\n return Array.isArray(value) && this._toStringCall(value) === \"[object Array]\";\n }\n static isLocationLngLat(value: any) {\n let b = false;\n if (!this.isEmpty(value)) {\n let arr: any;\n if (this.isString(value)) {\n arr = value.split(\",\");\n } else if (this.isArray(value)) {\n arr = value;\n } else {\n arr = [];\n }\n if (arr.length === 2) {\n const lng = arr[0];\n const lat = arr[1];\n const lngRegex = /^-?(180(\\.0+)?|1[0-7]?\\d?(\\.\\d+)?|[1-9]?\\d?(\\.\\d+)?)$/;\n const latRegex = /^-?(90(\\.0+)?|[1-8]?\\d?(\\.\\d+)?)$/;\n b = lngRegex.test(lng) && latRegex.test(lat);\n }\n }\n return b;\n }\n\n static isEmpty(value: any, def?: any): boolean {\n let b = this.isUndefined(value);\n if (!b) {\n const objType: string = this.getTypeof(value);\n if (this.isString(value)) {\n b = this.trim(value).length === 0;\n } else if (this.isArray(value)) {\n b = value.length === 0;\n } else if (objType === \"object\") {\n if (this.isFile(value)) {\n b = false;\n } else {\n b = this._isEmptyObject(value);\n }\n }\n if (!b && !this.isUndefined(def)) {\n let strValue = value;\n if (this.isNumber(value)) {\n strValue = strValue.toString();\n }\n let strDef = def;\n if (this.isNumber(def)) {\n strDef = strDef.toString();\n }\n b = this.isEqual(strValue, strDef);\n }\n }\n return b;\n }\n\n static isEqual(value1: any, value2: any): boolean {\n return Object.is(value1, value2);\n }\n\n static isEqualArr(arr1: any[], arr2: any[], isInOrder = false): boolean {\n let b = false;\n const isEmpty1 = this.isEmpty(arr1);\n const isEmpty2 = this.isEmpty(arr2);\n if (isEmpty1 && isEmpty2) {\n b = true;\n } else {\n if (arr1.length === arr2.length) {\n b = true;\n if (isInOrder) {\n for (let i = 0; i < arr1.length; i++) {\n if (arr1[i].toString() !== arr2[i].toString()) {\n b = false;\n break;\n }\n }\n } else {\n const json2 = this.getArrConvertJson(arr2);\n for (let i = 0; i < arr1.length; i++) {\n if (!this.isExistJsonKey(json2, arr1[i].toString())) {\n b = false;\n break;\n }\n }\n }\n } else {\n b = false;\n }\n }\n return b;\n }\n\n static isEqualList(list1: any[], list2: any[], key = [\"id\"]): boolean {\n let b = false;\n const isEmpty1 = this.isEmpty(list1);\n const isEmpty2 = this.isEmpty(list2);\n if (isEmpty1 && isEmpty2) {\n b = true;\n } else {\n if (list1.length === list2.length) {\n const arr1: string[] = list1.map(info1 => {\n return key.map((k) => info1[k].toString()).join(\",\");\n });\n b = true;\n list2.some((info2: any) => {\n const k2 = key.map((k) => info2[k].toString()).join(\",\");\n if (!this.isExistValue(arr1, k2)) {\n b = false;\n return true;\n }\n });\n } else {\n b = false;\n }\n }\n return b;\n }\n\n /**\n * 数组1是否包含数组2\n * @param arr1\n * @param arr2\n */\n static isContainArr(arr1: any[], arr2: any[]): boolean {\n let b = false;\n const isEmpty1 = this.isEmpty(arr1);\n const isEmpty2 = this.isEmpty(arr2);\n if (isEmpty1 && isEmpty2) {\n b = true;\n } else {\n if (arr1.length >= arr2.length) {\n b = true;\n arr2.some((v: string) => {\n if (!this.isExistValue(arr1, v)) {\n b = false;\n return true;\n }\n });\n } else {\n b = false;\n }\n }\n return b;\n }\n\n /**\n * 是否存在 大量循环时误用(慢)\n * @param value\n * @param key\n * @returns\n */\n static isExistValue(value: any, key: string): boolean {\n if (this.isUndefined(value)) {\n return false;\n }\n if (value.includes) {\n return value.includes(key);\n }\n return value.indexOf(key) > -1;\n }\n\n /**\n * 是否存在(专用json)\n * @param json\n * @param key\n * @returns\n */\n static isExistJsonKey(json: any, key: string): boolean {\n if (this.isUndefined(json)) {\n return false;\n }\n return Object.prototype.hasOwnProperty.call(json, key);\n }\n /**\n * 操作系统类型 仅浏览器端使用\n * @returns \n */\n static osType() {\n const ua = navigator.userAgent,\n //isWindowsPhone = /(?:Windows Phone)/.test(ua),\n //isSymbian = /(?:SymbianOS)/.test(ua) || isWindowsPhone,\n isAndroid = /(?:Android)/.test(ua),\n isFireFox = /(?:Firefox)/.test(ua),\n //isChrome = /(?:Chrome|CriOS)/.test(ua),\n isTablet = /(?:iPad|PlayBook)/.test(ua) || (isAndroid && !/(?:Mobile)/.test(ua)) || (isFireFox && /(?:Tablet)/.test(ua)),\n isIOS = /(?:iPhone)/.test(ua) && !isTablet,\n isPc = !isIOS && !isAndroid; //&& !isSymbian;\n return {\n isTablet: isTablet,\n isIOS: isIOS,\n isAndroid: isAndroid,\n isMobile: isIOS || isAndroid,\n isPc: isPc,\n };\n }\n /**\n * 移除空格\n * @param value\n * @returns {string}\n */\n static trim(value: any): any {\n if (this.isUndefined(value)) return value;\n const newValue: string = value.toString();\n if (newValue.trim) {\n return newValue.trim();\n }\n return newValue.replace(/^\\s+|\\s+$/gm, \"\");\n }\n\n static split(str: string, sign = \",\"): string[] {\n let newValue: string[];\n if (this.isEmpty(str)) {\n newValue = [];\n } else {\n let newStr = str;\n if (sign === \",\") {\n newStr = newStr.replace(/,/g, \",\");\n }\n newValue = newStr.toString().split(sign);\n }\n return newValue;\n }\n static kebabCase(value: string): string {\n const result = value.replace(/([A-Z])/g, \" $1\").trim();\n return result.split(\" \").join(\"-\").toLowerCase();\n }\n /**\n * 获取字节长度\n * @param {string} str\n * @returns {number}\n */\n static getByteLen(str: string): number {\n let len = 0;\n for (let i = 0; i < str.length; i += 1) {\n const si = str.charAt(i);\n if (si.match(/[^\\x00-\\xff]/ig) !== null) { // eslint-disable-line\n len += 3;\n } else {\n len += 1;\n }\n }\n return len;\n }\n\n /**\n * 复制json\n * @param json {Object}\n * @returns\n */\n static getJsonClone(json: any, isDeep = false, opt: any = {}): any {\n if (isDeep) {\n return this._getJsonCloneDeep(json, opt);\n } else {\n const exclude = this.isUndefined(opt.exclude) ? [] : opt.exclude;\n if (exclude.length === 0) {\n return this.getJsonMerge(json);\n } else {\n const clone: any = {};\n Object.keys(json).forEach((key: any) => {\n if (!this.isExistValue(exclude, key)) {\n clone[key] = json[key];\n }\n });\n return clone;\n }\n }\n }\n\n /**\n * 复制json 深拷贝\n * @param json\n * @returns\n */\n private static _getJsonCloneDeep(json: any, opt: any = {}): any {\n const newJson: any = this.isArray(json) ? [] : {};\n const exclude = this.isUndefined(opt.exclude) ? [] : opt.exclude;\n Object.keys(json).forEach((key: any) => {\n const isCheckExclude = exclude.length === 0 || !this.isExistValue(exclude, key);\n if (isCheckExclude) {\n const value = json[key];\n if (this.isUndefined(value) || !this.isObject(value)) {\n if (this.isArray(value)) {\n newJson[key] = this.getListClone(value, true);\n } else {\n newJson[key] = value;\n }\n } else {\n newJson[key] = this._getJsonCloneDeep(value);\n }\n }\n });\n return newJson;\n }\n\n static getJsonCloneByKeyArr(sourceJson: any, keyArr: string[]): any {\n const tempFormValue: any = {};\n keyArr.forEach(k => {\n const v = sourceJson[k];\n tempFormValue[k] = this.isUndefined(v)\n ? \"\"\n : (this.isObject(v) ? this.getJsonClone(v) : v);\n });\n return tempFormValue;\n }\n\n static getJsonCloneByKeyJson(sourceJson: any, keyJson: any): any {\n const keyArr: string[] = Object.keys(keyJson);\n return this.getJsonCloneByKeyArr(sourceJson, keyArr);\n }\n\n static getJsonCloneByRemoveArr(sourceJson: any, removeArr: string[]): any {\n const temp: any = {};\n if (removeArr.length === 0) {\n return sourceJson;\n }\n Object.keys(sourceJson).forEach((k) => {\n if (!this.isExistValue(removeArr, k)) {\n temp[k] = sourceJson[k];\n }\n });\n return temp;\n }\n\n static getJsonMerge(...target: any): any {\n return Object.assign({}, ...target);\n }\n static getJsonReversal(json: any): any {\n const newJson: any = {};\n Object.keys(json).forEach((k: string) => {\n newJson[json[k]] = k;\n });\n return newJson;\n }\n\n\n static getJsonMergeDeep(...target: any): any {\n const newJson = {};\n const len = target.length;\n for (let i = 0; i < len; i++) {\n this._mergeJsonDeep(newJson, target[i] || {});\n }\n return newJson;\n }\n\n private static _mergeJsonDeep(json1: any, json2: any) {\n Object.keys(json2).forEach((k: any) => {\n const value = json2[k];\n if (this.isUndefined(value)) {\n json1[k] = value;\n } else {\n if (this.isArray(value)) {\n json1[k] = this.getListClone(value, true);\n } else if (this.isObject(value) && this.isExistJsonKey(json1, k)) {\n this._mergeJsonDeep(json1[k], value);\n } else {\n json1[k] = value;\n }\n }\n });\n }\n\n static getJsonMap(json: any, map: any, isDef = false): any {\n const newJson: any = {};\n if (!this.isEmpty(json) && !this._isEmptyObject(map)) {\n for (const [k, v] of Object.entries(map)) {\n let strValue = (v as string).toString();\n let valueType = \"\";\n if (strValue.indexOf(\"|\") > -1) {\n const arrValue = strValue.split(\"|\");\n strValue = arrValue[0];\n valueType = arrValue[1];\n }\n if (strValue.indexOf(\".\") > -1) {\n const arrTemp: string[] = this.split(strValue, \".\");\n let tempValue: any = this.getJsonClone(json, true);\n arrTemp.forEach((vi: string, i: number) => {\n const tt = tempValue[vi];\n const isE = this.isEmpty(tt);\n if (i === arrTemp.length - 1) {\n if (this.isUndefined(tt)) {\n tempValue = isDef ? \"\" : tt;\n } else {\n if (isE) {\n tempValue = \"\";\n } else {\n if (valueType && valueType.length > 0) {\n tempValue = this.isEmpty(tt) ? \"\" : this.getValueByFormat(tt, valueType);\n } else {\n tempValue = tt;\n }\n }\n }\n } else {\n tempValue = isE ? {} : tt;\n }\n });\n newJson[k] = this.isString(tempValue) ? this.trim(tempValue) : tempValue;\n } else {\n if (this.isExistJsonKey(json, strValue)) {\n const value: any = json[strValue];\n let tempValue;\n if (this.isUndefined(value)) {\n tempValue = isDef ? \"\" : value;\n } else {\n if (valueType && valueType.length > 0) {\n tempValue = this.isEmpty(value) ? \"\" : this.getValueByFormat(value, valueType);\n } else {\n tempValue = value;\n }\n }\n newJson[k] = this.isString(tempValue) ? this.trim(tempValue) : tempValue;\n } else {\n if (isDef) {\n newJson[k] = \"\";\n }\n }\n }\n }\n }\n return newJson;\n }\n\n static getJsonByList(list: any, key?: string, isFormat = false): any {\n const json: any = {};\n if (!this.isEmpty(list)) {\n const newKey = key && !this.isEmpty(key) ? key : \"id\";\n list.forEach((info: any) => {\n let k = \"\";\n if (isFormat) {\n if (key) {\n k = this.convertStringFormat(key, info);\n }\n } else {\n k = this.isExistJsonKey(info, newKey) ? info[newKey].toString() : \"\";\n }\n if (k.length > 0) {\n json[k] = this.getJsonClone(info);\n }\n });\n }\n return json;\n }\n static getJsonByArr(arr: string[]): any {\n const json: any = {};\n if (!this.isEmpty(arr)) {\n arr.forEach((k: string) => {\n json[k] = k;\n });\n }\n return json;\n }\n static getGroupByList(list: any, key: string): any {\n const json: any = {};\n if (!this.isEmpty(list)) {\n list.forEach((info: any) => {\n const k = this.isExistJsonKey(info, key) ? info[key].toString() : \"\";\n if (k.length > 0) {\n if (!this.isExistJsonKey(json, k)) {\n json[k] = [];\n }\n json[k].push(this.getJsonClone(info));\n }\n });\n }\n return json;\n }\n\n static getJsonByBlob(blob: any): any {\n return new Promise((resolve, reject) => {\n const reader: any = new FileReader();\n reader.onload = () => {\n try {\n const json = JSON.parse(reader.result);\n resolve(json);\n } catch (error) {\n reject(error);\n }\n };\n reader.onerror = reject;\n reader.readAsText(blob);\n });\n }\n static getBase64ByFile(files: any): any {\n return new Promise((resolve) => {\n if (files.length > 0) {\n const file = files[0];\n if (file instanceof File) {\n const reader = new FileReader();\n reader.onload = (e: any) => {\n resolve(e.target.result);\n };\n reader.readAsDataURL(file);\n } else {\n resolve(\"\");\n }\n } else {\n resolve(\"\");\n }\n });\n }\n /**\n * 获取list 层级结构\n * @param {any[]} list\n * @returns {any}\n */\n static getTreeList(list: any[]): any {\n let tree: any[] = [];\n const topId: string[] = [];\n // const lastChildId: string[] = [];\n const json: any = {};\n const group: any = {};\n if (!this.isEmpty(list)) {\n list.forEach((info: any) => {\n const id = info.id.toString();\n const pId = info.parentId.toString();\n if (pId === \"0\") {\n topId.push(id);\n }\n json[id] = info;\n\n if (!this.isExistJsonKey(group, pId)) {\n group[pId] = [];\n }\n group[pId].push(info);\n });\n topId.forEach((tId: string) => {\n tree = tree.concat(this._recursionChild(tId, group, json));\n });\n }\n return { tree, group, json, list };\n }\n\n static getTreeLastParent(id: string, json: any, isShowSelf = true): any {\n let list = [];\n if (this.isExistJsonKey(json, id)) {\n list = this._recursionParent(id, json);\n if (!isShowSelf) {\n list.splice(0, 1);\n }\n list.reverse();\n }\n return list;\n }\n\n private static _recursionChild(id: string, group: any, json: any): any[] {\n const list: any[] = [];\n const pInfo: any = this.getJsonClone(json[id]);\n if (this.isExistJsonKey(group, id)) {\n pInfo.list = [];\n const data: any[] = group[id];\n data.forEach((info: any) => {\n const cId = info.id.toString();\n pInfo.list = pInfo.list.concat(this._recursionChild(cId, group, json));\n });\n }\n list.push(pInfo);\n return list;\n }\n\n private static _recursionParent(id: string, json: any): any[] {\n let list: any[] = [];\n if (this.isExistJsonKey(json, id)) {\n const info = json[id];\n const pId = info.parentId.toString();\n list.push(info);\n list = list.concat(this._recursionParent(pId, json));\n }\n return list;\n }\n /**\n * 获取list tree转list\n * @param tree \n * @param opt \n * @returns \n */\n static getListByTree(tree: any, opt: any = {}): any {\n const idKey: string = this.isEmpty(opt.idKey) ? \"id\" : opt.idKey;\n const cKey: string = this.isEmpty(opt.cKey) ? \"list\" : opt.cKey;\n const pKey: string = this.isEmpty(opt.pKey) ? \"parentId\" : opt.pKey;\n const topPV: string = this.isEmpty(opt.topPV) ? \"0\" : opt.topPV;\n const list = this._recursionListByTree(tree, topPV, { idKey, cKey, pKey });\n return list;\n }\n private static _recursionListByTree(tree: any[], pId: string, opt: any): any[] {\n const list: any[] = [];\n tree.forEach((info: any) => {\n const temp = this.getJsonClone(info, false, { exclude: [opt.cKey] });\n temp[opt.pKey] = pId;\n const isUndefinedCKey = this.isUndefined(info[opt.cKey]);\n temp.isLastLevel = isUndefinedCKey;\n list.push(temp);\n if (!isUndefinedCKey) {\n const tempList = this._recursionListByTree(info[opt.cKey], temp[opt.idKey], opt);\n list.push(...tempList);\n }\n });\n return list;\n }\n /**\n * 复制list\n * @param list\n */\n static getListClone(list: any, isDeep = false): any {\n if (this.isEmpty(list)) {\n return [];\n }\n return list.map((info: any) => {\n if (this.isObject(info)) {\n return this.getJsonClone(info, isDeep);\n } else {\n return info;\n }\n });\n }\n\n /**\n * list 合并\n * @param newList 新\n * @param oldList 旧\n * @param key id\n * @returns list\n */\n static getListMergeDeep(newList: any[], oldList: any[], key = \"id\"): any {\n const list: any = [];\n if (newList.length > 0) {\n const oldJson = this.getJsonByList(oldList, key);\n newList.forEach((info: any) => {\n let initJson = {};\n let idKey = info[key];\n if (!this.isEmpty(idKey)) {\n idKey = idKey.toString();\n initJson = this.isExistJsonKey(oldJson, idKey) ? oldJson[idKey] : {};\n }\n const newInfo = this.getJsonMergeDeep(initJson, info);\n list.push(newInfo);\n });\n }\n return list;\n }\n\n static getRecursionParentList(json: any, pId: [string, number], pKey = \"parentId\"): any {\n let result: any = [];\n const strPId = pId.toString();\n if (strPId !== \"0\" && this.isExistJsonKey(json, strPId)) {\n const tempInfo = json[strPId];\n result.push(tempInfo);\n const newStrPid = tempInfo[pKey].toString();\n const tempResult: any = this.getRecursionParentList(json, newStrPid);\n if (!this.isEmpty(tempResult)) {\n result = result.concat(tempResult);\n }\n }\n return result;\n }\n static getListExistValue(list: any, value: string, key = \"id\"): any {\n let newInfo: any;\n let inx = -1;\n if (!this.isEmpty(list)) {\n list.forEach((info: any, i: number) => {\n if (this.isExistJsonKey(info, key)) {\n if (info[key].toString() === value.toString()) {\n newInfo = this.getJsonClone(info);\n inx = i;\n }\n }\n });\n }\n return inx === -1 ? null : { info: newInfo, inx };\n }\n /**\n * 复制数组\n * @param arr\n * @returns {Array}\n */\n static getArrClone(arr: any): any {\n return this.isEmpty(arr) ? [] : arr.map((a: any) => a);\n }\n\n static getArrByList(list: any[], key = \"id\") {\n const arr: any = [];\n if (!this.isEmpty(list)) {\n list.forEach((info: any) => {\n if (this.isExistJsonKey(info, key)) {\n arr.push(info[key]);\n }\n });\n }\n return arr;\n }\n\n\n static getArrRemoveById(arr: any, ids: any): string[] {\n if (this.isEmpty(ids)) {\n return arr;\n }\n const newArr: string[] = [];\n const arrParam = this.isArray(ids) ? ids : this.split(ids.toString());\n const jsonParam = this.getArrConvertJson(arrParam);\n arr.forEach((id: string) => {\n const isExist = this.isExistJsonKey(jsonParam, id.toString());\n if (!isExist) {\n newArr.push(id);\n }\n });\n return newArr;\n }\n\n static getArrByMinMax(min = 1, max: number): number[] {\n const arr: number[] = [];\n for (let i = min; i <= max; i += 1) {\n arr.push(i);\n }\n return arr;\n }\n\n /**\n * 数组去重\n * @param arr \n * @returns \n */\n static getArrUnique(arr: any): any {\n const result = [];\n if (arr.length > 0) {\n const hash: any = {};\n let elem = null;\n for (let i = 0; i < arr.length; i += 1) {\n elem = arr[i];\n if (elem !== null && !hash[elem]) {\n result.push(elem);\n hash[elem] = true;\n }\n }\n }\n return result;\n }\n\n static getArrConvertJson(arr: any[]): any {\n const tempFormValue: any = {};\n arr.forEach(a => {\n tempFormValue[a.toString()] = true;\n });\n return tempFormValue;\n }\n\n // //数组排序\n static getArrAsc(arr: any, type: string): any[] {\n let funAsc;\n switch (type) {\n case \"date\":\n funAsc = (a: any, b: any) => { return Date.parse(a) - Date.parse(b); };\n break;\n case \"number\":\n funAsc = (a: number, b: number) => { return a - b; };\n break;\n default: {\n funAsc = (a: string, b: string) => { return this._arrSortString(a.toString(), b.toString()); };\n }\n }\n return arr.sort(funAsc);\n }\n\n static getArrDesc(arr: any, type: string): any[] {\n let funDesc;\n switch (type) {\n case \"date\":\n funDesc = (a: any, b: any) => { return Date.parse(b) - Date.parse(a); };\n break;\n case \"number\":\n funDesc = (a: number, b: number) => { return b - a; };\n break;\n default: {\n funDesc = (a: string, b: string) => { return this._arrSortString(b.toString(), a.toString()); };\n }\n }\n return arr.sort(funDesc);\n }\n\n private static _arrSortString(s1: string, s2: string): number {\n let res = 0;\n for (let i = 0; ; i++) {\n if (!s1[i] || !s2[i]) {\n res = s1.length - s2.length;\n break;\n }\n const char1 = s1[i];\n const char1Type = this._getChartType(char1);\n const char2 = s2[i];\n const char2Type = this._getChartType(char2);\n // 类型相同的逐个比较字符\n if (char1Type[0] === char2Type[0]) {\n if (char1 === char2) {\n continue;\n } else {\n if (char1Type[0] === \"zh\") {\n res = char1.localeCompare(char2);\n } else if (char1Type[0] === \"en\") {\n res = char1.charCodeAt(0) - char2.charCodeAt(0);\n } else {\n res = (char1 as any) - (char2 as any);\n }\n break;\n }\n } else {\n // 类型不同的,直接用返回的数字相减\n res = char1Type[1] - char2Type[1];\n break;\n }\n }\n return res;\n }\n\n private static _getChartType(char: string): [string, number] {\n // 数字,大写字母,小写字母,中文,其他\n if (/^[0-9]$/.test(char)) {\n return [\"number\", 100];\n }\n if (/^[a-zA-Z]$/.test(char)) {\n return [\"en\", 200];\n }\n if (/^[\\u4e00-\\u9fa5]$/.test(char)) {\n return [\"zh\", 300];\n }\n return [\"others\", 999];\n }\n\n static getZeroCount(len: number): string {\n if (len <= 0) { return \"\"; }\n const zero = [];\n for (let i = 0; i < len; i += 1) {\n zero.push(\"0\");\n }\n return zero.join(\"\");\n }\n\n /** 补全零 */\n static getFillZero(value: any, len = 2, around = \"l\"): string {\n const zero = this.getZeroCount(len);\n const strValue = this.isEmpty(value) ? \"\" : value.toString();\n let temp = \"\";\n let result = \"\";\n if (around === \"l\") {\n temp = zero + strValue;\n result = temp.substring(temp.length - len);\n } else {\n temp = strValue.toString() + zero;\n result = temp.substring(0, len);\n }\n return result;\n }\n\n /**\n * 获取随机数\n * @param {number} len\n * @returns {any}\n */\n static getRandom(len = 3): string {\n const lens = len > 0 ? len : 1;\n let r = Math.random();\n r = Math.ceil(r * (10 ** (lens - 1)));\n return this.getFillZero(r, len, \"r\");\n }\n\n /**\n * 指定范围获取随机数\n * @param {number} min\n * @param {number} max\n * @returns {number}\n */\n static getRandomRange(min: number, max: number, isRound = true): number {\n const range = max - min;\n const rand = Math.random();\n return min + (isRound ? Math.round(range * rand) : (range * rand));\n }\n /**\n * 验证码\n */\n static getCaptcha(len = 6) {\n const digits = \"0123456789\";\n let captcha = \"\";\n for (let i = 0; i < len; i++) {\n captcha += digits.charAt(Math.floor(Math.random() * digits.length));\n }\n return captcha;\n }\n /**\n * 字符串格式化(int float2)\n * @param value\n * @param type num int float float2 float3 date dateTime time string intArray\n */\n static getValueByFormat(value: any, type: string, extInfo: any = {}): string {\n let newValue: any;\n switch (type) {\n case \"num\":\n case \"int\":\n case \"float\":\n case \"float2\":\n case \"float3\":\n case \"number\": {\n if (this.isNumber(value)) {\n if (this.isEmpty(value)) {\n const isEmptyDefault = this.isBoolean(extInfo.isEmptyDefault) ? extInfo.isEmptyDefault : true;\n newValue = isEmptyDefault ? \"0\" : value;\n } else {\n let useValue = value.toString();\n useValue = this.isExistValue(useValue, \",\") ? this.removeReplace(useValue) : useValue;\n if (type === \"number\") {\n newValue = Number(useValue);\n } else {\n let fixedNum = 0;\n if (type === \"num\") {\n fixedNum = this.isExistValue(useValue, \".\") ? 2 : 0;\n } else if (type === \"int\") {\n fixedNum = 0;\n } else if (type === \"float\") {\n if (this.isNumber(extInfo.decimalNum)) {\n fixedNum = parseInt(extInfo.decimalNum);\n }\n } else if (type === \"float2\") {\n fixedNum = 2;\n } else if (type === \"float3\") {\n fixedNum = 3;\n }\n const isRounding = this.isBoolean(extInfo.isRounding) ? extInfo.isRounding : true;\n if (isRounding) {\n newValue = parseFloat(useValue).toFixed(fixedNum);\n } else {\n if (fixedNum > 0) {\n const temp = useValue.split(\".\");\n const len = temp[1].length;\n newValue = temp[0] + \".\" + temp[1].substring(0, len > fixedNum ? fixedNum : len);\n } else {\n newValue = parseInt(useValue).toString();\n }\n }\n newValue = Number(newValue).toFixed(fixedNum);\n const isThousands = this.isBoolean(extInfo.isThousands) ? extInfo.isThousands : true;\n if (isThousands) {\n newValue = this.getFormatThousands(newValue);\n }\n }\n }\n } else {\n newValue = value;\n }\n break;\n }\n case \"date\":\n case \"dateTime\":\n case \"time\": {\n if (this.isEmpty(value)) {\n newValue = value;\n } else {\n let newFormat = \"\";\n if (this.isEmpty(extInfo.dateFormat)) {\n if (type === \"dateTime\") {\n newFormat = \"YYYY-MM-DD HH:mm:ss\";\n } else if (type === \"time\") {\n newFormat = \"HH:mm:ss\";\n } else {\n newFormat = \"YYYY-MM-DD\";\n }\n } else {\n newFormat = extInfo.dateFormat;\n }\n const handler = _formatHandlers[type]\n if (handler) {\n newValue = handler(value, newFormat)\n } else {\n newValue = value\n }\n }\n break;\n }\n case \"string\":\n newValue = value.toString();\n break;\n case \"intArray\":\n newValue = value.split(\",\").map((id: string) => parseInt(id));\n break;\n default:\n newValue = value;\n }\n return newValue;\n }\n\n /**\n * 小时格式\n * @param start 开始\n * @param end 结束\n * @returns 格式: 01:00-02:59\n */\n static getHourInterval(start: any, end: any = \"\"): string {\n const newE = this.isEmpty(end) ? start : end;\n return `${this.getFillZero(start)}:00-${this.getFillZero(newE)}:59`;\n }\n\n /** 转化千分位 */\n static getFormatThousands(value: any): string {\n if (!this.isNumber(value)) {\n return \"\";\n }\n const arrNum = this.split(value.toString(), \".\");\n return arrNum[0].replace(/(\\d{1,3})(?=(?:\\d{3})+(?!\\d))/g, \"$1,\") + (arrNum.length > 1 ? (`.${arrNum[1]}`) : \"\");\n }\n\n /**\n * 指定位 数字加一,位之后零补充\n * @param value 值\n * @param opt inxPos(第几位 默认第二位) isCeil(最后数字是否ceil) isRounding(是否四舍五入,优先isCeil) isEndFive (最后数字是否5/0)\n * @returns\n */\n static getNumCeil(value: any, opt: any = {}): number {\n /* if (inxPos <= 0) {\n return Math.ceil(value);\n } */\n if (!this.isNumber(value)) {\n return 0;\n }\n const numValue = Number(value);\n const isMinus = numValue < 0;\n const absValue = Math.abs(numValue);\n if (absValue === 0) {\n return 0;\n }\n const isLess1 = absValue < 1;\n let zeroLenL = 0;\n let strValue = absValue.toString();\n let indexDot = -1;\n if (isLess1) {\n indexDot = -1;\n if (absValue > 0) {\n const tempLess1 = strValue.split(\".\")[1];\n strValue = Number(tempLess1).toString();\n zeroLenL = tempLess1.length - strValue.length;\n }\n } else {\n zeroLenL = 0;\n indexDot = strValue.indexOf(\".\");\n if (indexDot > -1) {\n strValue = strValue.replace(\".\", \"\");\n }\n }\n\n const isCeil = this.isBoolean(opt.isCeil) ? opt.isCeil : true;\n const inxPos = this.isUndefined(opt.inxPos) ? 2 : parseInt(opt.inxPos);\n const isEndFive = this.isBoolean(opt.isEndFive) ? opt.isEndFive : false;\n const isRounding = this.isBoolean(opt.isRounding) ? opt.isRounding : false;\n\n // 拆分\n let l;\n let r = \"\";\n if (inxPos < strValue.length) {\n l = strValue.substring(0, inxPos);\n r = strValue.substring(inxPos);\n } else {\n l = strValue;\n }\n\n /// 左\n let newL = \"\";\n const strL = isCeil || (isRounding && r.length > 0 && parseInt(r.substring(0, 1)) >= 5)\n ? (parseInt(l) + 1).toString()\n : parseInt(l).toString();\n const lastL = parseInt(strL.substring(strL.length - 1));\n if (isEndFive) {\n // 四舍六入五保留\n if (lastL === 5 || lastL === 0) {\n newL = strL;\n } else {\n const f = parseInt(strL.substring(0, inxPos - 1));\n if (lastL > 5) {\n newL = `${f + 1}0`;\n } else if (lastL < 5) {\n newL = `${f}5`;\n }\n if (strL.length > inxPos && newL.length === inxPos) {\n newL = `${newL}0`;\n }\n }\n } else {\n newL = strL;\n }\n\n /// 右\n let newR = \"\";\n let zeroLenR = 0;\n if (indexDot === -1) {\n zeroLenR = r.length;\n } else {\n if (indexDot < inxPos) {\n zeroLenR = 0;\n newL = (Number(newL) / ((inxPos - indexDot) * 10)).toString();\n } else if (indexDot > inxPos) {\n zeroLenR = indexDot - inxPos;\n }\n }\n newR = this.getZeroCount(zeroLenR);\n\n if (isLess1) {\n const zeroL = this.getZeroCount(zeroLenL);\n newL = `0.${zeroL}${newL}`;\n }\n const newValue = newL + newR;\n\n return Number(newValue) * (isMinus ? -1 : 1);\n }\n\n static removeReplace(value: any, key = \",\") {\n if (this.isUndefined(value)) {\n return \"\";\n }\n const reg = new RegExp(`[${key}]`, \"g\");\n return value.toString().replace(reg, \"\");\n }\n\n /**\n * 转换空为零\n * @param json \n * @param mapKey \n * @param optExt \n * @returns \n */\n static conversionEmptyZero(json: any, mapKey: string[], optExt?: any) {\n const newJson = json;\n if (!this.isEmpty(mapKey)) {\n let defEmpty: any = 0;\n let defUndefined: any = 0;\n if (optExt) {\n let newOptExt: any = {};\n if (this.isString(optExt)) {\n newOptExt.emptyDef = optExt;\n } else if (this.isObject(optExt)) {\n newOptExt = optExt;\n }\n const isEmptyExtUndefinedDef = this.isEmpty(newOptExt.undefinedDef);\n if (!isEmptyExtUndefinedDef) {\n defUndefined = newOptExt.undefinedDef;\n }\n if (!this.isEmpty(newOptExt.emptyDef)) {\n defEmpty = newOptExt.emptyDef;\n if (isEmptyExtUndefinedDef) {\n defUndefined = newOptExt.emptyDef;\n }\n }\n }\n mapKey.forEach((k: string) => {\n if (this.isEmpty(json[k])) {\n if (this.isUndefined(json[k])) {\n newJson[k] = defUndefined;\n } else {\n newJson[k] = defEmpty;\n }\n }\n });\n }\n return newJson;\n }\n /**\n * 转换百分比\n * @param {any} json\n * @param {string[]} mapKey\n */\n static conversionPercentage(json: any, mapKey: string[], isMultiply = true) {\n const newJson = json;\n if (!this.isEmpty(mapKey)) {\n mapKey.forEach((k: string) => {\n const v = json[k];\n if (this.isEmpty(v)) {\n newJson[k] = 0;\n } else {\n if (this.isNumber(v)) {\n newJson[k] = isMultiply\n ? v * 100\n : v / 100;\n } else {\n newJson[k] = v;\n }\n }\n });\n }\n return newJson;\n }\n\n /**\n * 转换格式化的字符串\n * @param {string} strFormat\n * @param {any} json\n * @returns {string}\n */\n static convertStringFormat(strFormat: string, json: any): string {\n let newStr = strFormat;\n if (!this.isEmpty(json)) {\n newStr = strFormat.replace(/[$]{[^}]+}/g, ($1) => {\n const k = $1.replace(\"${\", \"\").replace(\"}\", \"\");\n return this.isExistJsonKey(json, k) ? json[k] : $1;\n });\n }\n return newStr;\n }\n\n static getQueryString(url: string, name: string): string {\n const reg: any = new RegExp(`(^|&)${name}=([^&]*)(&|$)`, \"i\");\n const r: any = url.substring(url.indexOf(\"?\") + 1).match(reg);\n if (r !== null) return decodeURI(r[2]);\n return \"\";\n }\n\n static getQueryStringByHash(name: string): string {\n return this.getQueryString(window.location.hash, name);\n }\n\n static encodeHTML(source: string) {\n return String(source)\n .replace(/&/g, \"&\")\n .replace(/</g, \"<\")\n .replace(/>/g, \">\")\n .replace(/\"/g, \""\")\n .replace(/'/g, \"'\");\n }\n static removeHTMLTags(str: string) {\n return str.replace(/<[^>]*>/g, \"\");\n }\n\n static requestAnimationFrame(nextCb: any) {\n const rAF = window.requestAnimationFrame\n || (window as any).webkitRequestAnimationFrame\n || (window as any).mozRequestAnimationFrame\n || (window as any).oRequestAnimationFrame\n || (window as any).msRequestAnimationFrame;\n if (rAF) {\n return rAF.call(window, nextCb);\n }\n return window.setTimeout(nextCb, 1000 / 60);\n }\n\n static cancelAnimationFrame(handle: any) {\n const cAF = window.cancelAnimationFrame\n || (window as any).webkitCancelAnimationFrame\n || (window as any).mozCancelAnimationFrame\n || (window as any).oCancelAnimationFrame\n || (window as any).msCancelAnimationFrame;\n if (cAF) {\n cAF.call(window, handle);\n } else {\n window.clearTimeout(handle);\n }\n }\n}\nexport default CommonBase;\n"],"names":["_formatHandlers","registerFormatHandler","type","handler","CommonBase","value","b","check","obj","arr","lng","lat","lngRegex","latRegex","def","objType","strValue","strDef","value1","value2","arr1","arr2","isInOrder","isEmpty1","isEmpty2","i","json2","list1","list2","key","info1","k","info2","k2","v","json","ua","isAndroid","isFireFox","isTablet","isIOS","newValue","str","sign","newStr","len","isDeep","opt","exclude","clone","newJson","sourceJson","keyArr","tempFormValue","keyJson","removeArr","temp","target","json1","map","isDef","valueType","arrValue","arrTemp","tempValue","vi","tt","isE","list","isFormat","newKey","info","blob","resolve","reject","reader","error","files","file","e","tree","topId","group","id","pId","tId","isShowSelf","pInfo","cId","idKey","cKey","pKey","topPV","isUndefinedCKey","tempList","newList","oldList","oldJson","initJson","newInfo","result","strPId","tempInfo","newStrPid","tempResult","inx","a","ids","newArr","arrParam","jsonParam","min","max","hash","elem","funAsc","funDesc","s1","s2","res","char1","char1Type","char2","char2Type","char","zero","around","lens","r","isRound","range","rand","digits","captcha","extInfo","useValue","fixedNum","newFormat","start","end","newE","arrNum","numValue","isMinus","absValue","isLess1","zeroLenL","indexDot","tempLess1","isCeil","inxPos","isEndFive","isRounding","l","newL","strL","lastL","f","newR","zeroLenR","reg","mapKey","optExt","defEmpty","defUndefined","newOptExt","isEmptyExtUndefinedDef","isMultiply","strFormat","$1","url","name","source","nextCb","rAF","handle","cAF"],"mappings":"aACA,MAAMA,EAAuE,CAAA,EAEtE,SAASC,EAAsBC,EAAcC,EAA8C,CAChGH,EAAgBE,CAAI,EAAIC,CAC1B,CAEA,MAAMC,CAAW,CAOb,OAAO,UAAUC,EAAoB,CACjC,OAAO,OAAOA,CAClB,CACA,OAAe,cAAcA,EAAoB,CAC7C,OAAO,OAAO,UAAU,SAAS,KAAKA,CAAK,CAC/C,CAEA,OAAO,YAAYA,EAAqB,CACpC,OAAO,KAAK,UAAUA,CAAK,IAAM,aAAeA,IAAU,IAC9D,CAEA,OAAO,UAAUA,EAAqB,CAClC,OAAO,KAAK,UAAUA,CAAK,IAAM,SACrC,CAEA,OAAO,SAASA,EAAqB,CACjC,OAAO,KAAK,UAAUA,CAAK,IAAM,QAC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C,EAAE,MAAMV,CAAG,EAC5D,OAAIhC,IAAM,KAAa,UAAUA,EAAE,CAAC,CAAC,EAC9B,EACX,CAEA,OAAO,qBAAqB2C,EAAsB,CAC9C,OAAO,KAAK,eAAe,OAAO,SAAS,KAAMA,CAAI,CACzD,CAEA,OAAO,WAAWC,EAAgB,CAC9B,OAAO,OAAOA,CAAM,EACf,QAAQ,KAAM,OAAO,EACrB,QAAQ,KAAM,MAAM,EACpB,QAAQ,KAAM,MAAM,EACpB,QAAQ,KAAM,QAAQ,EACtB,QAAQ,KAAM,OAAO,CAC9B,CACA,OAAO,eAAelI,EAAa,CAC/B,OAAOA,EAAI,QAAQ,WAAY,EAAE,CACrC,CAEA,OAAO,sBAAsBmI,EAAa,CACtC,MAAMC,EAAM,OAAO,uBACX,OAAe,6BACf,OAAe,0BACf,OAAe,wBACf,OAAe,wBACvB,OAAIA,EACOA,EAAI,KAAK,OAAQD,CAAM,EAE3B,OAAO,WAAWA,EAAQ,IAAO,EAAE,CAC9C,CAEA,OAAO,qBAAqBE,EAAa,CACrC,MAAMC,EAAM,OAAO,sBACX,OAAe,4BACf,OAAe,yBACf,OAAe,uBACf,OAAe,uBACnBA,EACAA,EAAI,KAAK,OAAQD,CAAM,EAEvB,OAAO,aAAaA,CAAM,CAElC,CACJ"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import i from "dayjs";
|
|
2
|
+
import { r as m, C as a } from "./base-PQGakkrl.js";
|
|
3
|
+
import "dayjs/locale/zh-cn";
|
|
4
|
+
import "dayjs/locale/en";
|
|
5
|
+
import o from "dayjs/plugin/localeData";
|
|
6
|
+
import c from "dayjs/plugin/objectSupport";
|
|
7
|
+
import f from "dayjs/plugin/isSameOrAfter";
|
|
8
|
+
import D from "dayjs/plugin/isSameOrBefore";
|
|
9
|
+
import j from "dayjs/plugin/isoWeek";
|
|
10
|
+
import l from "dayjs-lunar";
|
|
11
|
+
import u from "dayjs/plugin/utc";
|
|
12
|
+
import b from "dayjs/plugin/timezone";
|
|
13
|
+
i.locale("zh-cn");
|
|
14
|
+
i.extend(o);
|
|
15
|
+
i.extend(c);
|
|
16
|
+
i.extend(f);
|
|
17
|
+
i.extend(D);
|
|
18
|
+
i.extend(j);
|
|
19
|
+
i.extend(u);
|
|
20
|
+
i.extend(b);
|
|
21
|
+
i.extend(l);
|
|
22
|
+
class n {
|
|
23
|
+
static objDay = i;
|
|
24
|
+
static timezone = "PRC";
|
|
25
|
+
// desc: 时区配置,默认中国时区,可设置为 "UTC"、 "America/New_York" 等
|
|
26
|
+
static initDay(t) {
|
|
27
|
+
return (a.isUndefined(t) ? i() : t).tz(this.timezone);
|
|
28
|
+
}
|
|
29
|
+
static getDayjsObject(t) {
|
|
30
|
+
if (a.isEmpty(t))
|
|
31
|
+
return this.initDay(i());
|
|
32
|
+
if (i.isDayjs(t))
|
|
33
|
+
return this.initDay(t.clone());
|
|
34
|
+
let e;
|
|
35
|
+
return a.isString(t) ? e = t.replace(/[/]/g, "-").replace(/:/g, ":") : a.isInt(t) ? e = new Date(parseInt(t, 10)) : a.isObject(t) && (e = t), this.initDay(i(e, "YYYY-MM-DD HH:mm:ss"));
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 获取时间格式
|
|
39
|
+
* @param options string|int| new Date() | dayjs() | {value,format}
|
|
40
|
+
* @returns
|
|
41
|
+
*/
|
|
42
|
+
static initFormat(t) {
|
|
43
|
+
let e = { value: "", format: "YYYY-MM-DD" }, r;
|
|
44
|
+
return a.isObject(t) ? i.isDayjs(t) ? r = t : (t.format && (e = a.getJsonMerge(e, t)), t.value || t.format ? r = this.getDayjsObject(t.value || "") : r = this.getDayjsObject(t)) : r = this.getDayjsObject(t), r.format(e.format);
|
|
45
|
+
}
|
|
46
|
+
static addTime(t, e, r = "days") {
|
|
47
|
+
return this.getDayjsObject(t).add(e, r);
|
|
48
|
+
}
|
|
49
|
+
static subtractTime(t, e, r = "days") {
|
|
50
|
+
return this.getDayjsObject(t).subtract(e, r);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* 比较时间差值
|
|
54
|
+
* @param time1 开始时间
|
|
55
|
+
* @param timeDiff2 比较时间
|
|
56
|
+
* @param type day week month year hour minute second millisecond
|
|
57
|
+
* @returns
|
|
58
|
+
*/
|
|
59
|
+
static diffTime(t, e, r = "millisecond") {
|
|
60
|
+
return this.getDayjsObject(t).diff(this.getDayjsObject(e), r);
|
|
61
|
+
}
|
|
62
|
+
/* static isValid(time: any, checkFormat = "YYYY-MM-DD"): any {
|
|
63
|
+
return Dayjs(time, checFormat, true).isValid();
|
|
64
|
+
} */
|
|
65
|
+
static lunar(t) {
|
|
66
|
+
return this.getDayjsObject(t).lunar();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
m("date", (s, t) => n.initFormat({ value: s, format: t }));
|
|
70
|
+
m("dateTime", (s, t) => n.initFormat({ value: s, format: t }));
|
|
71
|
+
m("time", (s, t) => n.initFormat({ value: s, format: t }));
|
|
72
|
+
export {
|
|
73
|
+
n as C
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=day-Bz9LfelO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"day-Bz9LfelO.js","sources":["../../../src/libs/Common/day.ts"],"sourcesContent":["import dayjs from \"dayjs\";\nimport CommonBase, { registerFormatHandler } from \"./base\";\nimport \"dayjs/locale/zh-cn\";\nimport \"dayjs/locale/en\";\nimport localeData from \"dayjs/plugin/localeData\";\nimport objectSupport from \"dayjs/plugin/objectSupport\";\nimport isSameOrAfter from \"dayjs/plugin/isSameOrAfter\";\nimport isSameOrBefore from \"dayjs/plugin/isSameOrBefore\";\nimport isoWeek from \"dayjs/plugin/isoWeek\";\n\nimport lunar from \"dayjs-lunar\";\n//import customParseFormat from \"dayjs/plugin/customParseFormat\";\n\n\nimport utc from \"dayjs/plugin/utc\";\nimport timezone from \"dayjs/plugin/timezone\";\n\ndayjs.locale(\"zh-cn\");\ndayjs.extend(localeData);\ndayjs.extend(objectSupport);\ndayjs.extend(isSameOrAfter);\ndayjs.extend(isSameOrBefore);\ndayjs.extend(isoWeek);\n//dayjs.extend(customParseFormat);\n\ndayjs.extend(utc);\ndayjs.extend(timezone);\n\ndayjs.extend(lunar);\n\nclass CommDay {\n static objDay: any = dayjs;\n static timezone = \"PRC\"; // desc: 时区配置,默认中国时区,可设置为 \"UTC\"、 \"America/New_York\" 等\n\n static initDay(d?: any): any {\n const newDay = CommonBase.isUndefined(d) ? dayjs() : d;\n return newDay.tz(this.timezone);\n }\n\n\n static getDayjsObject(day: any): any {\n if (CommonBase.isEmpty(day)) {\n return this.initDay(dayjs());\n }\n if (dayjs.isDayjs(day)) {\n return this.initDay(day.clone());\n }\n let value: any;\n if (CommonBase.isString(day)) {\n value = day.replace(/[/]/g, \"-\").replace(/:/g, \":\");\n } else if (CommonBase.isInt(day)) {\n value = new Date(parseInt(day, 10));\n } else if (CommonBase.isObject(day)) {\n value = day;\n }\n return this.initDay(dayjs(value, \"YYYY-MM-DD HH:mm:ss\"));\n }\n\n /**\n * 获取时间格式\n * @param options string|int| new Date() | dayjs() | {value,format}\n * @returns\n */\n static initFormat(options?: any): string {\n let optionBase: any = { value: \"\", format: \"YYYY-MM-DD\" };\n let objDay: any;\n if (CommonBase.isObject(options)) {\n if (dayjs.isDayjs(options)) {\n objDay = options;\n } else {\n if (options.format) {\n optionBase = CommonBase.getJsonMerge(optionBase, options);\n }\n if (options.value || options.format) {\n objDay = this.getDayjsObject(options.value || \"\");\n } else {\n objDay = this.getDayjsObject(options);\n }\n }\n } else {\n objDay = this.getDayjsObject(options);\n }\n return objDay.format(optionBase.format);\n }\n\n static addTime(time: any, num: number, type = \"days\"): any {\n return this.getDayjsObject(time).add(num, type);\n }\n\n static subtractTime(time: any, num: number, type = \"days\"): any {\n return this.getDayjsObject(time).subtract(num, type);\n }\n\n /**\n * 比较时间差值\n * @param time1 开始时间\n * @param timeDiff2 比较时间\n * @param type day week month year hour minute second millisecond\n * @returns\n */\n static diffTime(time1: any, timeDiff2: any, type = \"millisecond\") {\n const diff = this.getDayjsObject(time1).diff(this.getDayjsObject(timeDiff2), type);\n return diff;\n }\n\n /* static isValid(time: any, checkFormat = \"YYYY-MM-DD\"): any {\n return Dayjs(time, checFormat, true).isValid();\n } */\n\n static lunar(value: string) {\n const objDay = this.getDayjsObject(value);\n const newValue = objDay.lunar();\n return newValue;\n }\n}\n\n// Register date format handlers into base.ts to avoid circular import\nregisterFormatHandler('date', (value: any, format: string) => CommDay.initFormat({ value, format }))\nregisterFormatHandler('dateTime', (value: any, format: string) => CommDay.initFormat({ value, format }))\nregisterFormatHandler('time', (value: any, format: string) => CommDay.initFormat({ value, format }))\n\nexport default CommDay;\n"],"names":["dayjs","localeData","objectSupport","isSameOrAfter","isSameOrBefore","isoWeek","utc","timezone","lunar","CommDay","d","CommonBase","day","value","options","optionBase","objDay","time","num","type","time1","timeDiff2","registerFormatHandler","format"],"mappings":";;;;;;;;;;;;AAiBAA,EAAM,OAAO,OAAO;AACpBA,EAAM,OAAOC,CAAU;AACvBD,EAAM,OAAOE,CAAa;AAC1BF,EAAM,OAAOG,CAAa;AAC1BH,EAAM,OAAOI,CAAc;AAC3BJ,EAAM,OAAOK,CAAO;AAGpBL,EAAM,OAAOM,CAAG;AAChBN,EAAM,OAAOO,CAAQ;AAErBP,EAAM,OAAOQ,CAAK;AAElB,MAAMC,EAAQ;AAAA,EACV,OAAO,SAAcT;AAAAA,EACrB,OAAO,WAAW;AAAA;AAAA,EAElB,OAAO,QAAQU,GAAc;AAEzB,YADeC,EAAW,YAAYD,CAAC,IAAIV,MAAUU,GACvC,GAAG,KAAK,QAAQ;AAAA,EAClC;AAAA,EAGA,OAAO,eAAeE,GAAe;AACjC,QAAID,EAAW,QAAQC,CAAG;AACtB,aAAO,KAAK,QAAQZ,GAAO;AAE/B,QAAIA,EAAM,QAAQY,CAAG;AACjB,aAAO,KAAK,QAAQA,EAAI,MAAA,CAAO;AAEnC,QAAIC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;AAAA,EAE5B;AACJ;AAGAS,EAAsB,QAAQ,CAACT,GAAYU,MAAmBd,EAAQ,WAAW,EAAE,OAAAI,GAAO,QAAAU,EAAA,CAAQ,CAAC;AACnGD,EAAsB,YAAY,CAACT,GAAYU,MAAmBd,EAAQ,WAAW,EAAE,OAAAI,GAAO,QAAAU,EAAA,CAAQ,CAAC;AACvGD,EAAsB,QAAQ,CAACT,GAAYU,MAAmBd,EAAQ,WAAW,EAAE,OAAAI,GAAO,QAAAU,EAAA,CAAQ,CAAC;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const i=require("dayjs"),s=require("./base-iCmnU-fv.js");require("dayjs/locale/zh-cn");require("dayjs/locale/en");const c=require("dayjs/plugin/localeData"),m=require("dayjs/plugin/objectSupport"),o=require("dayjs/plugin/isSameOrAfter"),u=require("dayjs/plugin/isSameOrBefore"),l=require("dayjs/plugin/isoWeek"),D=require("dayjs-lunar"),j=require("dayjs/plugin/utc"),f=require("dayjs/plugin/timezone");i.locale("zh-cn");i.extend(c);i.extend(m);i.extend(o);i.extend(u);i.extend(l);i.extend(j);i.extend(f);i.extend(D);class n{static objDay=i;static timezone="PRC";static initDay(e){return(s.CommonBase.isUndefined(e)?i():e).tz(this.timezone)}static getDayjsObject(e){if(s.CommonBase.isEmpty(e))return this.initDay(i());if(i.isDayjs(e))return this.initDay(e.clone());let t;return s.CommonBase.isString(e)?t=e.replace(/[/]/g,"-").replace(/:/g,":"):s.CommonBase.isInt(e)?t=new Date(parseInt(e,10)):s.CommonBase.isObject(e)&&(t=e),this.initDay(i(t,"YYYY-MM-DD HH:mm:ss"))}static initFormat(e){let t={value:"",format:"YYYY-MM-DD"},r;return s.CommonBase.isObject(e)?i.isDayjs(e)?r=e:(e.format&&(t=s.CommonBase.getJsonMerge(t,e)),e.value||e.format?r=this.getDayjsObject(e.value||""):r=this.getDayjsObject(e)):r=this.getDayjsObject(e),r.format(t.format)}static addTime(e,t,r="days"){return this.getDayjsObject(e).add(t,r)}static subtractTime(e,t,r="days"){return this.getDayjsObject(e).subtract(t,r)}static diffTime(e,t,r="millisecond"){return this.getDayjsObject(e).diff(this.getDayjsObject(t),r)}static lunar(e){return this.getDayjsObject(e).lunar()}}s.registerFormatHandler("date",(a,e)=>n.initFormat({value:a,format:e}));s.registerFormatHandler("dateTime",(a,e)=>n.initFormat({value:a,format:e}));s.registerFormatHandler("time",(a,e)=>n.initFormat({value:a,format:e}));exports.CommDay=n;
|
|
2
|
+
//# sourceMappingURL=day-CvcvgKjb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"day-CvcvgKjb.js","sources":["../../../src/libs/Common/day.ts"],"sourcesContent":["import dayjs from \"dayjs\";\nimport CommonBase, { registerFormatHandler } from \"./base\";\nimport \"dayjs/locale/zh-cn\";\nimport \"dayjs/locale/en\";\nimport localeData from \"dayjs/plugin/localeData\";\nimport objectSupport from \"dayjs/plugin/objectSupport\";\nimport isSameOrAfter from \"dayjs/plugin/isSameOrAfter\";\nimport isSameOrBefore from \"dayjs/plugin/isSameOrBefore\";\nimport isoWeek from \"dayjs/plugin/isoWeek\";\n\nimport lunar from \"dayjs-lunar\";\n//import customParseFormat from \"dayjs/plugin/customParseFormat\";\n\n\nimport utc from \"dayjs/plugin/utc\";\nimport timezone from \"dayjs/plugin/timezone\";\n\ndayjs.locale(\"zh-cn\");\ndayjs.extend(localeData);\ndayjs.extend(objectSupport);\ndayjs.extend(isSameOrAfter);\ndayjs.extend(isSameOrBefore);\ndayjs.extend(isoWeek);\n//dayjs.extend(customParseFormat);\n\ndayjs.extend(utc);\ndayjs.extend(timezone);\n\ndayjs.extend(lunar);\n\nclass CommDay {\n static objDay: any = dayjs;\n static timezone = \"PRC\"; // desc: 时区配置,默认中国时区,可设置为 \"UTC\"、 \"America/New_York\" 等\n\n static initDay(d?: any): any {\n const newDay = CommonBase.isUndefined(d) ? dayjs() : d;\n return newDay.tz(this.timezone);\n }\n\n\n static getDayjsObject(day: any): any {\n if (CommonBase.isEmpty(day)) {\n return this.initDay(dayjs());\n }\n if (dayjs.isDayjs(day)) {\n return this.initDay(day.clone());\n }\n let value: any;\n if (CommonBase.isString(day)) {\n value = day.replace(/[/]/g, \"-\").replace(/:/g, \":\");\n } else if (CommonBase.isInt(day)) {\n value = new Date(parseInt(day, 10));\n } else if (CommonBase.isObject(day)) {\n value = day;\n }\n return this.initDay(dayjs(value, \"YYYY-MM-DD HH:mm:ss\"));\n }\n\n /**\n * 获取时间格式\n * @param options string|int| new Date() | dayjs() | {value,format}\n * @returns\n */\n static initFormat(options?: any): string {\n let optionBase: any = { value: \"\", format: \"YYYY-MM-DD\" };\n let objDay: any;\n if (CommonBase.isObject(options)) {\n if (dayjs.isDayjs(options)) {\n objDay = options;\n } else {\n if (options.format) {\n optionBase = CommonBase.getJsonMerge(optionBase, options);\n }\n if (options.value || options.format) {\n objDay = this.getDayjsObject(options.value || \"\");\n } else {\n objDay = this.getDayjsObject(options);\n }\n }\n } else {\n objDay = this.getDayjsObject(options);\n }\n return objDay.format(optionBase.format);\n }\n\n static addTime(time: any, num: number, type = \"days\"): any {\n return this.getDayjsObject(time).add(num, type);\n }\n\n static subtractTime(time: any, num: number, type = \"days\"): any {\n return this.getDayjsObject(time).subtract(num, type);\n }\n\n /**\n * 比较时间差值\n * @param time1 开始时间\n * @param timeDiff2 比较时间\n * @param type day week month year hour minute second millisecond\n * @returns\n */\n static diffTime(time1: any, timeDiff2: any, type = \"millisecond\") {\n const diff = this.getDayjsObject(time1).diff(this.getDayjsObject(timeDiff2), type);\n return diff;\n }\n\n /* static isValid(time: any, checkFormat = \"YYYY-MM-DD\"): any {\n return Dayjs(time, checFormat, true).isValid();\n } */\n\n static lunar(value: string) {\n const objDay = this.getDayjsObject(value);\n const newValue = objDay.lunar();\n return newValue;\n }\n}\n\n// Register date format handlers into base.ts to avoid circular import\nregisterFormatHandler('date', (value: any, format: string) => CommDay.initFormat({ value, format }))\nregisterFormatHandler('dateTime', (value: any, format: string) => CommDay.initFormat({ value, format }))\nregisterFormatHandler('time', (value: any, format: string) => CommDay.initFormat({ value, format }))\n\nexport default CommDay;\n"],"names":["dayjs","localeData","objectSupport","isSameOrAfter","isSameOrBefore","isoWeek","utc","timezone","lunar","CommDay","d","CommonBase","day","value","options","optionBase","objDay","time","num","type","time1","timeDiff2","registerFormatHandler","format"],"mappings":"+ZAiBAA,EAAM,OAAO,OAAO,EACpBA,EAAM,OAAOC,CAAU,EACvBD,EAAM,OAAOE,CAAa,EAC1BF,EAAM,OAAOG,CAAa,EAC1BH,EAAM,OAAOI,CAAc,EAC3BJ,EAAM,OAAOK,CAAO,EAGpBL,EAAM,OAAOM,CAAG,EAChBN,EAAM,OAAOO,CAAQ,EAErBP,EAAM,OAAOQ,CAAK,EAElB,MAAMC,CAAQ,CACV,OAAO,OAAcT,EACrB,OAAO,SAAW,MAElB,OAAO,QAAQU,EAAc,CAEzB,OADeC,EAAAA,WAAW,YAAYD,CAAC,EAAIV,IAAUU,GACvC,GAAG,KAAK,QAAQ,CAClC,CAGA,OAAO,eAAeE,EAAe,CACjC,GAAID,EAAAA,WAAW,QAAQC,CAAG,EACtB,OAAO,KAAK,QAAQZ,GAAO,EAE/B,GAAIA,EAAM,QAAQY,CAAG,EACjB,OAAO,KAAK,QAAQA,EAAI,MAAA,CAAO,EAEnC,IAAIC,EACJ,OAAIF,EAAAA,WAAW,SAASC,CAAG,EACvBC,EAAQD,EAAI,QAAQ,OAAQ,GAAG,EAAE,QAAQ,KAAM,GAAG,EAC3CD,EAAAA,WAAW,MAAMC,CAAG,EAC3BC,EAAQ,IAAI,KAAK,SAASD,EAAK,EAAE,CAAC,EAC3BD,EAAAA,WAAW,SAASC,CAAG,IAC9BC,EAAQD,GAEL,KAAK,QAAQZ,EAAMa,EAAO,qBAAqB,CAAC,CAC3D,CAOA,OAAO,WAAWC,EAAuB,CACrC,IAAIC,EAAkB,CAAE,MAAO,GAAI,OAAQ,YAAA,EACvCC,EACJ,OAAIL,EA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ag=i,this._isDragging=!1,this._init(n)}_init(n){this._bindRunDragStart=this._runDragStart.bind(this),this._bindRunDragIng=this._runDraggIng.bind(this),this._bindRunDragEnd=this._runDragEnd.bind(this),t.CommonElement.onListener(n,"mousedown",this._bindRunDragStart),t.CommonElement.onListener(n,"touchstart",this._bindRunDragStart)}_runDragStart(n){if(this._isDragging)return;const i=t.CommonElement.getClientXY(n);let e=!0;this.optionsDrag.start&&(e=this.optionsDrag.start(n,i)),e=o.CommonBase.isBoolean(e)?e:!0,e?(n.preventDefault(),n.stopPropagation(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,this._isDragging=!0,t.CommonElement.onListener(window,"mousemove",this._bindRunDragIng),t.CommonElement.onListener(window,"touchmove",this._bindRunDragIng),t.CommonElement.onListener(window,"mouseup",this._bindRunDragEnd),t.CommonElement.onListener(window,"touchend",this._bindRunDragEnd),t.CommonElement.onListener(window,"contextmenu",this._bindRunDragEnd)):this._isDragging=!1}_runDraggIng(n){if(!this._isDragging)return;const i=t.CommonElement.getClientXY(n);this.optionsDrag.ing&&this.optionsDrag.ing(n,i)}_runDragEnd(n){if(!this._isDragging)return;this._isDragging=!1;const i=t.CommonElement.getClientXY(n);this.optionsDrag.end&&this.optionsDrag.end(n,i),this._offListener()}_offListener(){t.CommonElement.offListener(window,"mousemove",this._bindRunDragIng),t.CommonElement.offListener(window,"touchmove",this._bindRunDragIng),t.CommonElement.offListener(window,"mouseup",this._bindRunDragEnd),t.CommonElement.offListener(window,"touchend",this._bindRunDragEnd),t.CommonElement.offListener(window,"contextmenu",this._bindRunDragEnd)}end(){this._isDragging=!1,this._offListener()}}exports.Drag=s;
|
|
2
|
+
//# sourceMappingURL=drag-CzE5R222.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drag-CzE5R222.js","sources":["../../../src/libs/Common/Element/Event/drag.ts"],"sourcesContent":["import CommonBase from \"../../base\";\nimport CommonElement from \"../index\";\ndeclare interface IClientXY {\n clientX: number\n clientY: number\n}\ndeclare interface IOptions {\n start?: (event: Event, clientXYInfo: IClientXY) => void\n ing?: (event: Event, clientXYInfo: IClientXY) => void\n end?: (event: Event, clientXYInfo: IClientXY) => void\n}\nclass Drag {\n optionsDrag: IOptions;\n private _isDragging: boolean;\n private _bindRunDragStart: any;\n private _bindRunDragIng: any;\n private _bindRunDragEnd: any;\n constructor(element: HTMLElement | null, options: IOptions) {\n this.optionsDrag = options;\n this._isDragging = false;\n this._init(element);\n }\n private _init(element: HTMLElement | null) {\n this._bindRunDragStart = this._runDragStart.bind(this);\n this._bindRunDragIng = this._runDraggIng.bind(this);\n this._bindRunDragEnd = this._runDragEnd.bind(this);\n CommonElement.onListener(element, \"mousedown\", this._bindRunDragStart);\n CommonElement.onListener(element, \"touchstart\", this._bindRunDragStart);\n }\n private _runDragStart(e: Event) {\n if (this._isDragging) return;\n\n const clientXYInfo = CommonElement.getClientXY(e);\n let tempRun: any = true;\n if (this.optionsDrag.start) {\n tempRun = this.optionsDrag.start(e, clientXYInfo);\n }\n tempRun = CommonBase.isBoolean(tempRun) ? tempRun : true;\n if (tempRun) {\n e.preventDefault();\n e.stopPropagation();\n\n document.onselectstart = () => false;\n document.ondragstart = () => false;\n\n this._isDragging = true;\n\n CommonElement.onListener(window, \"mousemove\", this._bindRunDragIng);\n CommonElement.onListener(window, \"touchmove\", this._bindRunDragIng);\n CommonElement.onListener(window, \"mouseup\", this._bindRunDragEnd);\n CommonElement.onListener(window, \"touchend\", this._bindRunDragEnd);\n CommonElement.onListener(window, \"contextmenu\", this._bindRunDragEnd);\n } else {\n this._isDragging = false;\n }\n }\n private _runDraggIng(e: Event) {\n if (!this._isDragging) return;\n const clientXYInfo = CommonElement.getClientXY(e);\n if (this.optionsDrag.ing) {\n this.optionsDrag.ing(e, clientXYInfo);\n }\n }\n private _runDragEnd(e: Event) {\n if (!this._isDragging) return;\n this._isDragging = false;\n const clientXYInfo = CommonElement.getClientXY(e);\n if (this.optionsDrag.end) {\n this.optionsDrag.end(e, clientXYInfo);\n }\n this._offListener();\n }\n private _offListener() {\n CommonElement.offListener(window, \"mousemove\", this._bindRunDragIng);\n CommonElement.offListener(window, \"touchmove\", this._bindRunDragIng);\n CommonElement.offListener(window, \"mouseup\", this._bindRunDragEnd);\n CommonElement.offListener(window, \"touchend\", this._bindRunDragEnd);\n CommonElement.offListener(window, \"contextmenu\", this._bindRunDragEnd);\n }\n end() {\n this._isDragging = false;\n this._offListener();\n }\n}\nexport default Drag;\n"],"names":["Drag","element","options","CommonElement","e","clientXYInfo","tempRun","CommonBase"],"mappings":"oFAWA,MAAMA,CAAK,CACP,YACQ,YACA,kBACA,gBACA,gBACR,YAAYC,EAA6BC,EAAmB,CACxD,KAAK,YAAcA,EACnB,KAAK,YAAc,GACnB,KAAK,MAAMD,CAAO,CACtB,CACQ,MAAMA,EAA6B,CACvC,KAAK,kBAAoB,KAAK,cAAc,KAAK,IAAI,EACrD,KAAK,gBAAkB,KAAK,aAAa,KAAK,IAAI,EAClD,KAAK,gBAAkB,KAAK,YAAY,KAAK,IAAI,EACjDE,EAAAA,cAAc,WAAWF,EAAS,YAAa,KAAK,iBAAiB,EACrEE,EAAAA,cAAc,WAAWF,EAAS,aAAc,KAAK,iBAAiB,CAC1E,CACQ,cAAcG,EAAU,CAC5B,GAAI,KAAK,YAAa,OAEtB,MAAMC,EAAeF,EAAAA,cAAc,YAAYC,CAAC,EAChD,IAAIE,EAAe,GACf,KAAK,YAAY,QACjBA,EAAU,KAAK,YAAY,MAAMF,EAAGC,CAAY,GAEpDC,EAAUC,EAAAA,WAAW,UAAUD,CAAO,EAAIA,EAAU,GAChDA,GACAF,EAAE,eAAA,EACFA,EAAE,gBAAA,EAEF,SAAS,cAAgB,IAAM,GAC/B,SAAS,YAAc,IAAM,GAE7B,KAAK,YAAc,GAEnBD,EAAAA,cAAc,WAAW,OAAQ,YAAa,KAAK,eAAe,EAClEA,EAAAA,cAAc,WAAW,OAAQ,YAAa,KAAK,eAAe,EAClEA,EAAAA,cAAc,WAAW,OAAQ,UAAW,KAAK,eAAe,EAChEA,EAAAA,cAAc,WAAW,OAAQ,WAAY,KAAK,eAAe,EACjEA,EAAAA,cAAc,WAAW,OAAQ,cAAe,KAAK,eAAe,GAEpE,KAAK,YAAc,EAE3B,CACQ,aAAaC,EAAU,CAC3B,GAAI,CAAC,KAAK,YAAa,OACvB,MAAMC,EAAeF,EAAAA,cAAc,YAAYC,CAAC,EAC5C,KAAK,YAAY,KACjB,KAAK,YAAY,IAAIA,EAAGC,CAAY,CAE5C,CACQ,YAAYD,EAAU,CAC1B,GAAI,CAAC,KAAK,YAAa,OACvB,KAAK,YAAc,GACnB,MAAMC,EAAeF,EAAAA,cAAc,YAAYC,CAAC,EAC5C,KAAK,YAAY,KACjB,KAAK,YAAY,IAAIA,EAAGC,CAAY,EAExC,KAAK,aAAA,CACT,CACQ,cAAe,CACnBF,EAAAA,cAAc,YAAY,OAAQ,YAAa,KAAK,eAAe,EACnEA,EAAAA,cAAc,YAAY,OAAQ,YAAa,KAAK,eAAe,EACnEA,EAAAA,cAAc,YAAY,OAAQ,UAAW,KAAK,eAAe,EACjEA,EAAAA,cAAc,YAAY,OAAQ,WAAY,KAAK,eAAe,EAClEA,EAAAA,cAAc,YAAY,OAAQ,cAAe,KAAK,eAAe,CACzE,CACA,KAAM,CACF,KAAK,YAAc,GACnB,KAAK,aAAA,CACT,CACJ"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { C as r } from "./base-PQGakkrl.js";
|
|
2
|
+
import { C as i } from "./index-BnerInzC.js";
|
|
3
|
+
class a {
|
|
4
|
+
optionsDrag;
|
|
5
|
+
_isDragging;
|
|
6
|
+
_bindRunDragStart;
|
|
7
|
+
_bindRunDragIng;
|
|
8
|
+
_bindRunDragEnd;
|
|
9
|
+
constructor(n, t) {
|
|
10
|
+
this.optionsDrag = t, this._isDragging = !1, this._init(n);
|
|
11
|
+
}
|
|
12
|
+
_init(n) {
|
|
13
|
+
this._bindRunDragStart = this._runDragStart.bind(this), this._bindRunDragIng = this._runDraggIng.bind(this), this._bindRunDragEnd = this._runDragEnd.bind(this), i.onListener(n, "mousedown", this._bindRunDragStart), i.onListener(n, "touchstart", this._bindRunDragStart);
|
|
14
|
+
}
|
|
15
|
+
_runDragStart(n) {
|
|
16
|
+
if (this._isDragging) return;
|
|
17
|
+
const t = i.getClientXY(n);
|
|
18
|
+
let s = !0;
|
|
19
|
+
this.optionsDrag.start && (s = this.optionsDrag.start(n, t)), s = r.isBoolean(s) ? s : !0, s ? (n.preventDefault(), n.stopPropagation(), document.onselectstart = () => !1, document.ondragstart = () => !1, this._isDragging = !0, i.onListener(window, "mousemove", this._bindRunDragIng), i.onListener(window, "touchmove", this._bindRunDragIng), i.onListener(window, "mouseup", this._bindRunDragEnd), i.onListener(window, "touchend", this._bindRunDragEnd), i.onListener(window, "contextmenu", this._bindRunDragEnd)) : this._isDragging = !1;
|
|
20
|
+
}
|
|
21
|
+
_runDraggIng(n) {
|
|
22
|
+
if (!this._isDragging) return;
|
|
23
|
+
const t = i.getClientXY(n);
|
|
24
|
+
this.optionsDrag.ing && this.optionsDrag.ing(n, t);
|
|
25
|
+
}
|
|
26
|
+
_runDragEnd(n) {
|
|
27
|
+
if (!this._isDragging) return;
|
|
28
|
+
this._isDragging = !1;
|
|
29
|
+
const t = i.getClientXY(n);
|
|
30
|
+
this.optionsDrag.end && this.optionsDrag.end(n, t), this._offListener();
|
|
31
|
+
}
|
|
32
|
+
_offListener() {
|
|
33
|
+
i.offListener(window, "mousemove", this._bindRunDragIng), i.offListener(window, "touchmove", this._bindRunDragIng), i.offListener(window, "mouseup", this._bindRunDragEnd), i.offListener(window, "touchend", this._bindRunDragEnd), i.offListener(window, "contextmenu", this._bindRunDragEnd);
|
|
34
|
+
}
|
|
35
|
+
end() {
|
|
36
|
+
this._isDragging = !1, this._offListener();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
a as D
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=drag-CzfhSB0g.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drag-CzfhSB0g.js","sources":["../../../src/libs/Common/Element/Event/drag.ts"],"sourcesContent":["import CommonBase from \"../../base\";\nimport CommonElement from \"../index\";\ndeclare interface IClientXY {\n clientX: number\n clientY: number\n}\ndeclare interface IOptions {\n start?: (event: Event, clientXYInfo: IClientXY) => void\n ing?: (event: Event, clientXYInfo: IClientXY) => void\n end?: (event: Event, clientXYInfo: IClientXY) => void\n}\nclass Drag {\n optionsDrag: IOptions;\n private _isDragging: boolean;\n private _bindRunDragStart: any;\n private _bindRunDragIng: any;\n private _bindRunDragEnd: any;\n constructor(element: HTMLElement | null, options: IOptions) {\n this.optionsDrag = options;\n this._isDragging = false;\n this._init(element);\n }\n private _init(element: HTMLElement | null) {\n this._bindRunDragStart = this._runDragStart.bind(this);\n this._bindRunDragIng = this._runDraggIng.bind(this);\n this._bindRunDragEnd = this._runDragEnd.bind(this);\n CommonElement.onListener(element, \"mousedown\", this._bindRunDragStart);\n CommonElement.onListener(element, \"touchstart\", this._bindRunDragStart);\n }\n private _runDragStart(e: Event) {\n if (this._isDragging) return;\n\n const clientXYInfo = CommonElement.getClientXY(e);\n let tempRun: any = true;\n if (this.optionsDrag.start) {\n tempRun = this.optionsDrag.start(e, clientXYInfo);\n }\n tempRun = CommonBase.isBoolean(tempRun) ? tempRun : true;\n if (tempRun) {\n e.preventDefault();\n e.stopPropagation();\n\n document.onselectstart = () => false;\n document.ondragstart = () => false;\n\n this._isDragging = true;\n\n CommonElement.onListener(window, \"mousemove\", this._bindRunDragIng);\n CommonElement.onListener(window, \"touchmove\", this._bindRunDragIng);\n CommonElement.onListener(window, \"mouseup\", this._bindRunDragEnd);\n CommonElement.onListener(window, \"touchend\", this._bindRunDragEnd);\n CommonElement.onListener(window, \"contextmenu\", this._bindRunDragEnd);\n } else {\n this._isDragging = false;\n }\n }\n private _runDraggIng(e: Event) {\n if (!this._isDragging) return;\n const clientXYInfo = CommonElement.getClientXY(e);\n if (this.optionsDrag.ing) {\n this.optionsDrag.ing(e, clientXYInfo);\n }\n }\n private _runDragEnd(e: Event) {\n if (!this._isDragging) return;\n this._isDragging = false;\n const clientXYInfo = CommonElement.getClientXY(e);\n if (this.optionsDrag.end) {\n this.optionsDrag.end(e, clientXYInfo);\n }\n this._offListener();\n }\n private _offListener() {\n CommonElement.offListener(window, \"mousemove\", this._bindRunDragIng);\n CommonElement.offListener(window, \"touchmove\", this._bindRunDragIng);\n CommonElement.offListener(window, \"mouseup\", this._bindRunDragEnd);\n CommonElement.offListener(window, \"touchend\", this._bindRunDragEnd);\n CommonElement.offListener(window, \"contextmenu\", this._bindRunDragEnd);\n }\n end() {\n this._isDragging = false;\n this._offListener();\n }\n}\nexport default Drag;\n"],"names":["Drag","element","options","CommonElement","e","clientXYInfo","tempRun","CommonBase"],"mappings":";;AAWA,MAAMA,EAAK;AAAA,EACP;AAAA,EACQ;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACR,YAAYC,GAA6BC,GAAmB;AACxD,SAAK,cAAcA,GACnB,KAAK,cAAc,IACnB,KAAK,MAAMD,CAAO;AAAA,EACtB;AAAA,EACQ,MAAMA,GAA6B;AACvC,SAAK,oBAAoB,KAAK,cAAc,KAAK,IAAI,GACrD,KAAK,kBAAkB,KAAK,aAAa,KAAK,IAAI,GAClD,KAAK,kBAAkB,KAAK,YAAY,KAAK,IAAI,GACjDE,EAAc,WAAWF,GAAS,aAAa,KAAK,iBAAiB,GACrEE,EAAc,WAAWF,GAAS,cAAc,KAAK,iBAAiB;AAAA,EAC1E;AAAA,EACQ,cAAcG,GAAU;AAC5B,QAAI,KAAK,YAAa;AAEtB,UAAMC,IAAeF,EAAc,YAAYC,CAAC;AAChD,QAAIE,IAAe;AACnB,IAAI,KAAK,YAAY,UACjBA,IAAU,KAAK,YAAY,MAAMF,GAAGC,CAAY,IAEpDC,IAAUC,EAAW,UAAUD,CAA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