@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":"Waves.cjs","sources":["../../../../src/libs/Web/Waves/waves.js","../../../../src/libs/Web/Waves/index.ts"],"sourcesContent":["/*!\n * Waves v0.7.6\n * http://fian.my.id/Waves\n *\n * Copyright 2014-2018 Alfiana E. Sibuea and other contributors\n * Released under the MIT license\n * https://github.com/fians/Waves/blob/master/LICENSE\n */\n\n;(function(window, factory) {\n 'use strict';\n\n // AMD. Register as an anonymous module. Wrap in function so we have access\n // to root via `this`.\n if (typeof define === 'function' && define.amd) {\n define([], function() {\n window.Waves = factory.call(window);\n return window.Waves;\n });\n }\n\n // Node. Does not work with strict CommonJS, but only CommonJS-like\n // environments that support module.exports, like Node.\n else if (typeof exports === 'object') {\n module.exports = factory.call(window);\n }\n\n // Browser globals.\n else {\n (window||Window).Waves = factory.call(window);\n }\n})(typeof global === 'object' ? global : this, function() {\n 'use strict';\n\n var Waves = Waves || {};\n var $$ = document.querySelectorAll.bind(document);\n var toString = Object.prototype.toString;\n var isTouchAvailable = 'ontouchstart' in window;\n\n\n // Find exact position of element\n function isWindow(obj) {\n return obj !== null && obj === obj.window;\n }\n\n function getWindow(elem) {\n return isWindow(elem) ? elem : elem.nodeType === 9 && elem.defaultView;\n }\n\n function isObject(value) {\n var type = typeof value;\n return type === 'function' || type === 'object' && !!value;\n }\n\n function isDOMNode(obj) {\n return isObject(obj) && obj.nodeType > 0;\n }\n\n function getWavesElements(nodes) {\n var stringRepr = toString.call(nodes);\n\n if (stringRepr === '[object String]') {\n return $$(nodes);\n } else if (isObject(nodes) && /^\\[object (Array|HTMLCollection|NodeList|Object)\\]$/.test(stringRepr) && nodes.hasOwnProperty('length')) {\n return nodes;\n } else if (isDOMNode(nodes)) {\n return [nodes];\n }\n\n return [];\n }\n\n function offset(elem) {\n var docElem, win,\n box = { top: 0, left: 0 },\n doc = elem && elem.ownerDocument;\n\n docElem = doc.documentElement;\n\n if (typeof elem.getBoundingClientRect !== typeof undefined) {\n box = elem.getBoundingClientRect();\n }\n win = getWindow(doc);\n return {\n top: box.top + win.pageYOffset - docElem.clientTop,\n left: box.left + win.pageXOffset - docElem.clientLeft\n };\n }\n\n function convertStyle(styleObj) {\n var style = '';\n\n for (var prop in styleObj) {\n if (styleObj.hasOwnProperty(prop)) {\n style += (prop + ':' + styleObj[prop] + ';');\n }\n }\n\n return style;\n }\n\n var Effect = {\n\n // Effect duration\n duration: 750,\n\n // Effect delay (check for scroll before showing effect)\n delay: 200,\n\n show: function(e, element, velocity) {\n\n // Disable right click\n if (e.button === 2) {\n return false;\n }\n\n element = element || this;\n\n // Create ripple\n var ripple = document.createElement('div');\n ripple.className = 'waves-ripple waves-rippling';\n element.appendChild(ripple);\n\n // Get click coordinate and element width\n var pos = offset(element);\n var relativeY = 0;\n var relativeX = 0;\n // Support for touch devices\n if('touches' in e && e.touches.length) {\n relativeY = (e.touches[0].pageY - pos.top);\n relativeX = (e.touches[0].pageX - pos.left);\n }\n //Normal case\n else {\n relativeY = (e.pageY - pos.top);\n relativeX = (e.pageX - pos.left);\n }\n // Support for synthetic events\n relativeX = relativeX >= 0 ? relativeX : 0;\n relativeY = relativeY >= 0 ? relativeY : 0;\n\n var scale = 'scale(' + ((element.clientWidth / 100) * 3) + ')';\n var translate = 'translate(0,0)';\n\n if (velocity) {\n translate = 'translate(' + (velocity.x) + 'px, ' + (velocity.y) + 'px)';\n }\n\n // Attach data to element\n ripple.setAttribute('data-hold', Date.now());\n ripple.setAttribute('data-x', relativeX);\n ripple.setAttribute('data-y', relativeY);\n ripple.setAttribute('data-scale', scale);\n ripple.setAttribute('data-translate', translate);\n\n // Set ripple position\n var rippleStyle = {\n top: relativeY + 'px',\n left: relativeX + 'px'\n };\n\n ripple.classList.add('waves-notransition');\n ripple.setAttribute('style', convertStyle(rippleStyle));\n ripple.classList.remove('waves-notransition');\n\n // Scale the ripple\n rippleStyle['-webkit-transform'] = scale + ' ' + translate;\n rippleStyle['-moz-transform'] = scale + ' ' + translate;\n rippleStyle['-ms-transform'] = scale + ' ' + translate;\n rippleStyle['-o-transform'] = scale + ' ' + translate;\n rippleStyle.transform = scale + ' ' + translate;\n rippleStyle.opacity = '1';\n\n var duration = e.type === 'mousemove' ? 2500 : Effect.duration;\n rippleStyle['-webkit-transition-duration'] = duration + 'ms';\n rippleStyle['-moz-transition-duration'] = duration + 'ms';\n rippleStyle['-o-transition-duration'] = duration + 'ms';\n rippleStyle['transition-duration'] = duration + 'ms';\n\n ripple.setAttribute('style', convertStyle(rippleStyle));\n },\n\n hide: function(e, element) {\n element = element || this;\n\n var ripples = element.getElementsByClassName('waves-rippling');\n\n for (var i = 0, len = ripples.length; i < len; i++) {\n removeRipple(e, element, ripples[i]);\n }\n\n if (isTouchAvailable) {\n element.removeEventListener('touchend', Effect.hide);\n element.removeEventListener('touchcancel', Effect.hide);\n }\n\n element.removeEventListener('mouseup', Effect.hide);\n element.removeEventListener('mouseleave', Effect.hide);\n }\n };\n\n /**\n * Collection of wrapper for HTML element that only have single tag\n * like <input> and <img>\n */\n var TagWrapper = {\n\n // Wrap <input> tag so it can perform the effect\n input: function(element) {\n\n var parent = element.parentNode;\n\n // If input already have parent just pass through\n if (parent.tagName.toLowerCase() === 'i' && parent.classList.contains('waves-effect')) {\n return;\n }\n\n // Put element class and style to the specified parent\n var wrapper = document.createElement('i');\n wrapper.className = element.className + ' waves-input-wrapper';\n element.className = 'waves-button-input';\n\n // Put element as child\n parent.replaceChild(wrapper, element);\n wrapper.appendChild(element);\n\n // Apply element color and background color to wrapper\n var elementStyle = window.getComputedStyle(element, null);\n var color = elementStyle.color;\n var backgroundColor = elementStyle.backgroundColor;\n\n wrapper.setAttribute('style', 'color:' + color + ';background:' + backgroundColor);\n element.setAttribute('style', 'background-color:rgba(0,0,0,0);');\n\n },\n\n // Wrap <img> tag so it can perform the effect\n img: function(element) {\n\n var parent = element.parentNode;\n\n // If input already have parent just pass through\n if (parent.tagName.toLowerCase() === 'i' && parent.classList.contains('waves-effect')) {\n return;\n }\n\n // Put element as child\n var wrapper = document.createElement('i');\n parent.replaceChild(wrapper, element);\n wrapper.appendChild(element);\n\n }\n };\n\n /**\n * Hide the effect and remove the ripple. Must be\n * a separate function to pass the JSLint...\n */\n function removeRipple(e, el, ripple) {\n\n // Check if the ripple still exist\n if (!ripple) {\n return;\n }\n\n ripple.classList.remove('waves-rippling');\n\n var relativeX = ripple.getAttribute('data-x');\n var relativeY = ripple.getAttribute('data-y');\n var scale = ripple.getAttribute('data-scale');\n var translate = ripple.getAttribute('data-translate');\n\n // Get delay beetween mousedown and mouse leave\n var diff = Date.now() - Number(ripple.getAttribute('data-hold'));\n var delay = 350 - diff;\n\n if (delay < 0) {\n delay = 0;\n }\n\n if (e.type === 'mousemove') {\n delay = 150;\n }\n\n // Fade out ripple after delay\n var duration = e.type === 'mousemove' ? 2500 : Effect.duration;\n\n setTimeout(function() {\n\n var style = {\n top: relativeY + 'px',\n left: relativeX + 'px',\n opacity: '0',\n\n // Duration\n '-webkit-transition-duration': duration + 'ms',\n '-moz-transition-duration': duration + 'ms',\n '-o-transition-duration': duration + 'ms',\n 'transition-duration': duration + 'ms',\n '-webkit-transform': scale + ' ' + translate,\n '-moz-transform': scale + ' ' + translate,\n '-ms-transform': scale + ' ' + translate,\n '-o-transform': scale + ' ' + translate,\n 'transform': scale + ' ' + translate\n };\n\n ripple.setAttribute('style', convertStyle(style));\n\n setTimeout(function() {\n try {\n el.removeChild(ripple);\n } catch (e) {\n return false;\n }\n }, duration);\n\n }, delay);\n }\n\n\n /**\n * Disable mousedown event for 500ms during and after touch\n */\n var TouchHandler = {\n\n /* uses an integer rather than bool so there's no issues with\n * needing to clear timeouts if another touch event occurred\n * within the 500ms. Cannot mouseup between touchstart and\n * touchend, nor in the 500ms after touchend. */\n touches: 0,\n\n allowEvent: function(e) {\n\n var allow = true;\n\n if (/^(mousedown|mousemove)$/.test(e.type) && TouchHandler.touches) {\n allow = false;\n }\n\n return allow;\n },\n registerEvent: function(e) {\n var eType = e.type;\n\n if (eType === 'touchstart') {\n\n TouchHandler.touches += 1; // push\n\n } else if (/^(touchend|touchcancel)$/.test(eType)) {\n\n setTimeout(function() {\n if (TouchHandler.touches) {\n TouchHandler.touches -= 1; // pop after 500ms\n }\n }, 500);\n\n }\n }\n };\n\n\n /**\n * Delegated click handler for .waves-effect element.\n * returns null when .waves-effect element not in \"click tree\"\n */\n function getWavesEffectElement(e) {\n\n if (TouchHandler.allowEvent(e) === false) {\n return null;\n }\n\n var element = null;\n var target = e.target || e.srcElement;\n\n while (target.parentElement) {\n if ( (!(target instanceof SVGElement)) && target.classList.contains('waves-effect')) {\n element = target;\n break;\n }\n target = target.parentElement;\n }\n\n return element;\n }\n\n /**\n * Bubble the click and show effect if .waves-effect elem was found\n */\n function showEffect(e) {\n\n // Disable effect if element has \"disabled\" property on it\n // In some cases, the event is not triggered by the current element\n // if (e.target.getAttribute('disabled') !== null) {\n // return;\n // }\n\n var element = getWavesEffectElement(e);\n\n if (element !== null) {\n\n // Make it sure the element has either disabled property, disabled attribute or 'disabled' class\n if (element.disabled || element.getAttribute('disabled') || element.classList.contains('disabled')) {\n return;\n }\n\n TouchHandler.registerEvent(e);\n\n if (e.type === 'touchstart' && Effect.delay) {\n\n var hidden = false;\n\n var timer = setTimeout(function () {\n timer = null;\n Effect.show(e, element);\n }, Effect.delay);\n\n var hideEffect = function(hideEvent) {\n\n // if touch hasn't moved, and effect not yet started: start effect now\n if (timer) {\n clearTimeout(timer);\n timer = null;\n Effect.show(e, element);\n }\n if (!hidden) {\n hidden = true;\n Effect.hide(hideEvent, element);\n }\n\n removeListeners();\n };\n\n var touchMove = function(moveEvent) {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n hideEffect(moveEvent);\n\n removeListeners();\n };\n\n element.addEventListener('touchmove', touchMove, false);\n element.addEventListener('touchend', hideEffect, false);\n element.addEventListener('touchcancel', hideEffect, false);\n\n var removeListeners = function() {\n element.removeEventListener('touchmove', touchMove);\n element.removeEventListener('touchend', hideEffect);\n element.removeEventListener('touchcancel', hideEffect);\n };\n } else {\n\n Effect.show(e, element);\n\n if (isTouchAvailable) {\n element.addEventListener('touchend', Effect.hide, false);\n element.addEventListener('touchcancel', Effect.hide, false);\n }\n\n element.addEventListener('mouseup', Effect.hide, false);\n element.addEventListener('mouseleave', Effect.hide, false);\n }\n }\n }\n\n Waves.init = function(options) {\n var body = document.body;\n\n options = options || {};\n\n if ('duration' in options) {\n Effect.duration = options.duration;\n }\n\n if ('delay' in options) {\n Effect.delay = options.delay;\n }\n\n if (isTouchAvailable) {\n body.addEventListener('touchstart', showEffect, false);\n body.addEventListener('touchcancel', TouchHandler.registerEvent, false);\n body.addEventListener('touchend', TouchHandler.registerEvent, false);\n }\n\n body.addEventListener('mousedown', showEffect, false);\n };\n\n\n /**\n * Attach Waves to dynamically loaded inputs, or add .waves-effect and other\n * waves classes to a set of elements. Set drag to true if the ripple mouseover\n * or skimming effect should be applied to the elements.\n */\n Waves.attach = function(elements, classes) {\n\n elements = getWavesElements(elements);\n\n if (toString.call(classes) === '[object Array]') {\n classes = classes.join(' ');\n }\n\n classes = classes ? ' ' + classes : '';\n\n var element, tagName;\n\n for (var i = 0, len = elements.length; i < len; i++) {\n\n element = elements[i];\n tagName = element.tagName.toLowerCase();\n\n if (['input', 'img'].indexOf(tagName) !== -1) {\n TagWrapper[tagName](element);\n element = element.parentElement;\n }\n\n if (element.className.indexOf('waves-effect') === -1) {\n element.className += ' waves-effect' + classes;\n }\n }\n };\n\n\n /**\n * Cause a ripple to appear in an element via code.\n */\n Waves.ripple = function(elements, options) {\n elements = getWavesElements(elements);\n var elementsLen = elements.length;\n\n options = options || {};\n options.wait = options.wait || 0;\n options.position = options.position || null; // default = centre of element\n\n\n if (elementsLen) {\n var element, pos, off, centre = {}, i = 0;\n var mousedown = {\n type: 'mousedown',\n button: 1\n };\n var hideRipple = function(mouseup, element) {\n return function() {\n Effect.hide(mouseup, element);\n };\n };\n\n for (; i < elementsLen; i++) {\n element = elements[i];\n pos = options.position || {\n x: element.clientWidth / 2,\n y: element.clientHeight / 2\n };\n\n off = offset(element);\n centre.x = off.left + pos.x;\n centre.y = off.top + pos.y;\n\n mousedown.pageX = centre.x;\n mousedown.pageY = centre.y;\n\n Effect.show(mousedown, element);\n\n if (options.wait >= 0 && options.wait !== null) {\n var mouseup = {\n type: 'mouseup',\n button: 1\n };\n\n setTimeout(hideRipple(mouseup, element), options.wait);\n }\n }\n }\n };\n\n /**\n * Remove all ripples from an element.\n */\n Waves.calm = function(elements) {\n elements = getWavesElements(elements);\n var mouseup = {\n type: 'mouseup',\n button: 1\n };\n\n for (var i = 0, len = elements.length; i < len; i++) {\n Effect.hide(mouseup, elements[i]);\n }\n };\n\n /**\n * Deprecated API fallback\n */\n Waves.displayEffect = function(options) {\n console.error('Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect');\n Waves.init(options);\n };\n\n return Waves;\n});\n","import \"./waves.css\";\r\nimport \"./waves.js\";\r\nimport CommonBase from \"../../Common/base\";\r\n\r\nconst _waves = {\r\n init: (options: any) => {\r\n const newOption = CommonBase.getJsonMerge({ name: \"waves\", duration: 500, delay: 200 }, options);\r\n // @ts-ignore\r\n if (Window.Waves) {\r\n // @ts-ignore\r\n Window.Waves.init(newOption);\r\n }\r\n },\r\n bind: (el: any, binding: any) => {\r\n const newOptions = CommonBase.isObject(binding.value) ? binding.value : {};\r\n const isInit = CommonBase.isBoolean(newOptions.init) ? newOptions.init : true;\r\n if (isInit) {\r\n const isEmpty = CommonBase.isEmpty(binding.modifiers);\r\n let classes;\r\n if (isEmpty) {\r\n let colorBg = \"\";\r\n if (!CommonBase.isEmpty(newOptions.color)) {\r\n switch (newOptions.color) {\r\n case \"white\":\r\n colorBg = \"light\";\r\n break;\r\n case \"black\":\r\n colorBg = \"\";\r\n break;\r\n }\r\n }\r\n if (!CommonBase.isEmpty(colorBg)) {\r\n classes = `waves-${colorBg}`;\r\n }\r\n } else {\r\n classes = [\"button\", \"circle\", \"block\", \"float\", \"light\", \"classic\"]\r\n .filter((cls) => binding.modifiers[cls])\r\n .map((cls) => `waves-${cls}`);\r\n }\r\n // @ts-ignore\r\n if (Window.Waves) {\r\n // @ts-ignore\r\n Window.Waves.attach(el, classes);\r\n }\r\n }\r\n },\r\n};\r\nexport const name = \"clwaves\";\r\nexport const directive = (options: any) => {\r\n _waves.init(options);\r\n return {\r\n deep: true,\r\n mounted: _waves.bind,\r\n };\r\n};\r\nexport const wavesBind = {\r\n mounted: _waves.bind,\r\n};\r\n"],"names":["window","factory","this","Waves","$$","toString","isTouchAvailable","isWindow","obj","getWindow","elem","isObject","value","type","isDOMNode","getWavesElements","nodes","stringRepr","offset","docElem","win","box","doc","convertStyle","styleObj","style","prop","Effect","e","element","velocity","ripple","pos","relativeY","relativeX","scale","translate","rippleStyle","duration","ripples","i","len","removeRipple","TagWrapper","parent","wrapper","elementStyle","color","backgroundColor","el","diff","delay","TouchHandler","allow","eType","getWavesEffectElement","target","showEffect","hidden","timer","hideEffect","hideEvent","removeListeners","touchMove","moveEvent","options","body","elements","classes","tagName","elementsLen","off","centre","mousedown","hideRipple","mouseup","_waves","newOption","CommonBase","binding","newOptions","isEmpty","colorBg","cls","name","directive","wavesBind"],"mappings":"iIAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASE,SAASA,EAAQC,EAAS,CAKpB,OAAO,QAAW,YAAc,OAAO,IACvC,OAAO,CAAA,EAAI,UAAW,CAClB,OAAAD,EAAO,MAAQC,EAAQ,KAAKD,CAAM,EAC3BA,EAAO,KAClB,CAAC,EAKI,OAAO,SAAY,SACxB,OAAO,QAAUC,EAAQ,KAAKD,CAAM,GAKnCA,GAAQ,QAAQ,MAAQC,EAAQ,KAAKD,CAAM,CAEpD,GAAG,OAAO,QAAW,SAAW,OAASE,OAAM,UAAW,CAGtD,IAAIC,EAAmBA,GAAS,CAAA,EAC5BC,EAAmB,SAAS,iBAAiB,KAAK,QAAQ,EAC1DC,EAAmB,OAAO,UAAU,SACpCC,EAAmB,iBAAkB,OAIzC,SAASC,EAASC,EAAK,CACnB,OAAOA,IAAQ,MAAQA,IAAQA,EAAI,MACvC,CAEA,SAASC,EAAUC,EAAM,CACrB,OAAOH,EAASG,CAAI,EAAIA,EAAOA,EAAK,WAAa,GAAKA,EAAK,WAC/D,CAEA,SAASC,EAASC,EAAO,CACrB,IAAIC,EAAO,OAAOD,EAClB,OAAOC,IAAS,YAAcA,IAAS,UAAY,CAAC,CAACD,CACzD,CAEA,SAASE,EAAUN,EAAK,CACpB,OAAOG,EAASH,CAA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,KAAM,CAAC5B,EAAS8B,IAAiB,CAC7B,MAAMC,EAAaF,EAAAA,WAAW,SAASC,EAAQ,KAAK,EAAIA,EAAQ,MAAQ,CAAA,EAExE,GADeD,EAAAA,WAAW,UAAUE,EAAW,IAAI,EAAIA,EAAW,KAAO,GAC7D,CACR,MAAMC,EAAUH,EAAAA,WAAW,QAAQC,EAAQ,SAAS,EACpD,IAAIX,EACJ,GAAIa,EAAS,CACT,IAAIC,EAAU,GACd,GAAI,CAACJ,EAAAA,WAAW,QAAQE,EAAW,KAAK,EACpC,OAAQA,EAAW,MAAA,CACf,IAAK,QACDE,EAAU,QACV,MACJ,IAAK,QACDA,EAAU,GACV,KAAA,CAGPJ,EAAAA,WAAW,QAAQI,CAAO,IAC3Bd,EAAU,SAASc,CAAO,GAElC,MACId,EAAU,CAAC,SAAU,SAAU,QAAS,QAAS,QAAS,SAAS,EAC9D,OAAQe,GAAQJ,EAAQ,UAAUI,CAAG,CAAC,EACtC,IAAKA,GAAQ,SAASA,CAAG,EAAE,EAGhC,OAAO,OAEP,OAAO,MAAM,OAAOlC,EAAImB,CAAO,CAEvC,CACJ,CACJ,EACagB,EAAO,UACPC,EAAapB,IACtBW,EAAO,KAAKX,CAAO,EACZ,CACH,KAAM,GACN,QAASW,EAAO,IAAA,GAGXU,EAAY,CACrB,QAASV,EAAO,IACpB"}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { C as w } from "../../Shared/base-PQGakkrl.js";
|
|
2
|
+
/*!
|
|
3
|
+
* Waves v0.7.6
|
|
4
|
+
* http://fian.my.id/Waves
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2014-2018 Alfiana E. Sibuea and other contributors
|
|
7
|
+
* Released under the MIT license
|
|
8
|
+
* https://github.com/fians/Waves/blob/master/LICENSE
|
|
9
|
+
*/
|
|
10
|
+
(function(o, d) {
|
|
11
|
+
typeof define == "function" && define.amd ? define([], function() {
|
|
12
|
+
return o.Waves = d.call(o), o.Waves;
|
|
13
|
+
}) : typeof exports == "object" ? module.exports = d.call(o) : (o || Window).Waves = d.call(o);
|
|
14
|
+
})(typeof global == "object" ? global : void 0, function() {
|
|
15
|
+
var o = o || {}, d = document.querySelectorAll.bind(document), h = Object.prototype.toString, y = "ontouchstart" in window;
|
|
16
|
+
function b(t) {
|
|
17
|
+
return t !== null && t === t.window;
|
|
18
|
+
}
|
|
19
|
+
function g(t) {
|
|
20
|
+
return b(t) ? t : t.nodeType === 9 && t.defaultView;
|
|
21
|
+
}
|
|
22
|
+
function v(t) {
|
|
23
|
+
var e = typeof t;
|
|
24
|
+
return e === "function" || e === "object" && !!t;
|
|
25
|
+
}
|
|
26
|
+
function N(t) {
|
|
27
|
+
return v(t) && t.nodeType > 0;
|
|
28
|
+
}
|
|
29
|
+
function E(t) {
|
|
30
|
+
var e = h.call(t);
|
|
31
|
+
return e === "[object String]" ? d(t) : v(t) && /^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(e) && t.hasOwnProperty("length") ? t : N(t) ? [t] : [];
|
|
32
|
+
}
|
|
33
|
+
function A(t) {
|
|
34
|
+
var e, a, n = { top: 0, left: 0 }, r = t && t.ownerDocument;
|
|
35
|
+
return e = r.documentElement, typeof t.getBoundingClientRect < "u" && (n = t.getBoundingClientRect()), a = g(r), {
|
|
36
|
+
top: n.top + a.pageYOffset - e.clientTop,
|
|
37
|
+
left: n.left + a.pageXOffset - e.clientLeft
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function L(t) {
|
|
41
|
+
var e = "";
|
|
42
|
+
for (var a in t)
|
|
43
|
+
t.hasOwnProperty(a) && (e += a + ":" + t[a] + ";");
|
|
44
|
+
return e;
|
|
45
|
+
}
|
|
46
|
+
var s = {
|
|
47
|
+
// Effect duration
|
|
48
|
+
duration: 750,
|
|
49
|
+
// Effect delay (check for scroll before showing effect)
|
|
50
|
+
delay: 200,
|
|
51
|
+
show: function(t, e, a) {
|
|
52
|
+
if (t.button === 2)
|
|
53
|
+
return !1;
|
|
54
|
+
e = e || this;
|
|
55
|
+
var n = document.createElement("div");
|
|
56
|
+
n.className = "waves-ripple waves-rippling", e.appendChild(n);
|
|
57
|
+
var r = A(e), i = 0, u = 0;
|
|
58
|
+
"touches" in t && t.touches.length ? (i = t.touches[0].pageY - r.top, u = t.touches[0].pageX - r.left) : (i = t.pageY - r.top, u = t.pageX - r.left), u = u >= 0 ? u : 0, i = i >= 0 ? i : 0;
|
|
59
|
+
var l = "scale(" + e.clientWidth / 100 * 3 + ")", f = "translate(0,0)";
|
|
60
|
+
a && (f = "translate(" + a.x + "px, " + a.y + "px)"), n.setAttribute("data-hold", Date.now()), n.setAttribute("data-x", u), n.setAttribute("data-y", i), n.setAttribute("data-scale", l), n.setAttribute("data-translate", f);
|
|
61
|
+
var c = {
|
|
62
|
+
top: i + "px",
|
|
63
|
+
left: u + "px"
|
|
64
|
+
};
|
|
65
|
+
n.classList.add("waves-notransition"), n.setAttribute("style", L(c)), n.classList.remove("waves-notransition"), c["-webkit-transform"] = l + " " + f, c["-moz-transform"] = l + " " + f, c["-ms-transform"] = l + " " + f, c["-o-transform"] = l + " " + f, c.transform = l + " " + f, c.opacity = "1";
|
|
66
|
+
var m = t.type === "mousemove" ? 2500 : s.duration;
|
|
67
|
+
c["-webkit-transition-duration"] = m + "ms", c["-moz-transition-duration"] = m + "ms", c["-o-transition-duration"] = m + "ms", c["transition-duration"] = m + "ms", n.setAttribute("style", L(c));
|
|
68
|
+
},
|
|
69
|
+
hide: function(t, e) {
|
|
70
|
+
e = e || this;
|
|
71
|
+
for (var a = e.getElementsByClassName("waves-rippling"), n = 0, r = a.length; n < r; n++)
|
|
72
|
+
k(t, e, a[n]);
|
|
73
|
+
y && (e.removeEventListener("touchend", s.hide), e.removeEventListener("touchcancel", s.hide)), e.removeEventListener("mouseup", s.hide), e.removeEventListener("mouseleave", s.hide);
|
|
74
|
+
}
|
|
75
|
+
}, T = {
|
|
76
|
+
// Wrap <input> tag so it can perform the effect
|
|
77
|
+
input: function(t) {
|
|
78
|
+
var e = t.parentNode;
|
|
79
|
+
if (!(e.tagName.toLowerCase() === "i" && e.classList.contains("waves-effect"))) {
|
|
80
|
+
var a = document.createElement("i");
|
|
81
|
+
a.className = t.className + " waves-input-wrapper", t.className = "waves-button-input", e.replaceChild(a, t), a.appendChild(t);
|
|
82
|
+
var n = window.getComputedStyle(t, null), r = n.color, i = n.backgroundColor;
|
|
83
|
+
a.setAttribute("style", "color:" + r + ";background:" + i), t.setAttribute("style", "background-color:rgba(0,0,0,0);");
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
// Wrap <img> tag so it can perform the effect
|
|
87
|
+
img: function(t) {
|
|
88
|
+
var e = t.parentNode;
|
|
89
|
+
if (!(e.tagName.toLowerCase() === "i" && e.classList.contains("waves-effect"))) {
|
|
90
|
+
var a = document.createElement("i");
|
|
91
|
+
e.replaceChild(a, t), a.appendChild(t);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
function k(t, e, a) {
|
|
96
|
+
if (a) {
|
|
97
|
+
a.classList.remove("waves-rippling");
|
|
98
|
+
var n = a.getAttribute("data-x"), r = a.getAttribute("data-y"), i = a.getAttribute("data-scale"), u = a.getAttribute("data-translate"), l = Date.now() - Number(a.getAttribute("data-hold")), f = 350 - l;
|
|
99
|
+
f < 0 && (f = 0), t.type === "mousemove" && (f = 150);
|
|
100
|
+
var c = t.type === "mousemove" ? 2500 : s.duration;
|
|
101
|
+
setTimeout(function() {
|
|
102
|
+
var m = {
|
|
103
|
+
top: r + "px",
|
|
104
|
+
left: n + "px",
|
|
105
|
+
opacity: "0",
|
|
106
|
+
// Duration
|
|
107
|
+
"-webkit-transition-duration": c + "ms",
|
|
108
|
+
"-moz-transition-duration": c + "ms",
|
|
109
|
+
"-o-transition-duration": c + "ms",
|
|
110
|
+
"transition-duration": c + "ms",
|
|
111
|
+
"-webkit-transform": i + " " + u,
|
|
112
|
+
"-moz-transform": i + " " + u,
|
|
113
|
+
"-ms-transform": i + " " + u,
|
|
114
|
+
"-o-transform": i + " " + u,
|
|
115
|
+
transform: i + " " + u
|
|
116
|
+
};
|
|
117
|
+
a.setAttribute("style", L(m)), setTimeout(function() {
|
|
118
|
+
try {
|
|
119
|
+
e.removeChild(a);
|
|
120
|
+
} catch {
|
|
121
|
+
return !1;
|
|
122
|
+
}
|
|
123
|
+
}, c);
|
|
124
|
+
}, f);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
var p = {
|
|
128
|
+
/* uses an integer rather than bool so there's no issues with
|
|
129
|
+
* needing to clear timeouts if another touch event occurred
|
|
130
|
+
* within the 500ms. Cannot mouseup between touchstart and
|
|
131
|
+
* touchend, nor in the 500ms after touchend. */
|
|
132
|
+
touches: 0,
|
|
133
|
+
allowEvent: function(t) {
|
|
134
|
+
var e = !0;
|
|
135
|
+
return /^(mousedown|mousemove)$/.test(t.type) && p.touches && (e = !1), e;
|
|
136
|
+
},
|
|
137
|
+
registerEvent: function(t) {
|
|
138
|
+
var e = t.type;
|
|
139
|
+
e === "touchstart" ? p.touches += 1 : /^(touchend|touchcancel)$/.test(e) && setTimeout(function() {
|
|
140
|
+
p.touches && (p.touches -= 1);
|
|
141
|
+
}, 500);
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
function O(t) {
|
|
145
|
+
if (p.allowEvent(t) === !1)
|
|
146
|
+
return null;
|
|
147
|
+
for (var e = null, a = t.target || t.srcElement; a.parentElement; ) {
|
|
148
|
+
if (!(a instanceof SVGElement) && a.classList.contains("waves-effect")) {
|
|
149
|
+
e = a;
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
a = a.parentElement;
|
|
153
|
+
}
|
|
154
|
+
return e;
|
|
155
|
+
}
|
|
156
|
+
function x(t) {
|
|
157
|
+
var e = O(t);
|
|
158
|
+
if (e !== null) {
|
|
159
|
+
if (e.disabled || e.getAttribute("disabled") || e.classList.contains("disabled"))
|
|
160
|
+
return;
|
|
161
|
+
if (p.registerEvent(t), t.type === "touchstart" && s.delay) {
|
|
162
|
+
var a = !1, n = setTimeout(function() {
|
|
163
|
+
n = null, s.show(t, e);
|
|
164
|
+
}, s.delay), r = function(l) {
|
|
165
|
+
n && (clearTimeout(n), n = null, s.show(t, e)), a || (a = !0, s.hide(l, e)), u();
|
|
166
|
+
}, i = function(l) {
|
|
167
|
+
n && (clearTimeout(n), n = null), r(l), u();
|
|
168
|
+
};
|
|
169
|
+
e.addEventListener("touchmove", i, !1), e.addEventListener("touchend", r, !1), e.addEventListener("touchcancel", r, !1);
|
|
170
|
+
var u = function() {
|
|
171
|
+
e.removeEventListener("touchmove", i), e.removeEventListener("touchend", r), e.removeEventListener("touchcancel", r);
|
|
172
|
+
};
|
|
173
|
+
} else
|
|
174
|
+
s.show(t, e), y && (e.addEventListener("touchend", s.hide, !1), e.addEventListener("touchcancel", s.hide, !1)), e.addEventListener("mouseup", s.hide, !1), e.addEventListener("mouseleave", s.hide, !1);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return o.init = function(t) {
|
|
178
|
+
var e = document.body;
|
|
179
|
+
t = t || {}, "duration" in t && (s.duration = t.duration), "delay" in t && (s.delay = t.delay), y && (e.addEventListener("touchstart", x, !1), e.addEventListener("touchcancel", p.registerEvent, !1), e.addEventListener("touchend", p.registerEvent, !1)), e.addEventListener("mousedown", x, !1);
|
|
180
|
+
}, o.attach = function(t, e) {
|
|
181
|
+
t = E(t), h.call(e) === "[object Array]" && (e = e.join(" ")), e = e ? " " + e : "";
|
|
182
|
+
for (var a, n, r = 0, i = t.length; r < i; r++)
|
|
183
|
+
a = t[r], n = a.tagName.toLowerCase(), ["input", "img"].indexOf(n) !== -1 && (T[n](a), a = a.parentElement), a.className.indexOf("waves-effect") === -1 && (a.className += " waves-effect" + e);
|
|
184
|
+
}, o.ripple = function(t, e) {
|
|
185
|
+
t = E(t);
|
|
186
|
+
var a = t.length;
|
|
187
|
+
if (e = e || {}, e.wait = e.wait || 0, e.position = e.position || null, a) {
|
|
188
|
+
for (var n, r, i, u = {}, l = 0, f = {
|
|
189
|
+
type: "mousedown",
|
|
190
|
+
button: 1
|
|
191
|
+
}, c = function(C, S) {
|
|
192
|
+
return function() {
|
|
193
|
+
s.hide(C, S);
|
|
194
|
+
};
|
|
195
|
+
}; l < a; l++)
|
|
196
|
+
if (n = t[l], r = e.position || {
|
|
197
|
+
x: n.clientWidth / 2,
|
|
198
|
+
y: n.clientHeight / 2
|
|
199
|
+
}, i = A(n), u.x = i.left + r.x, u.y = i.top + r.y, f.pageX = u.x, f.pageY = u.y, s.show(f, n), e.wait >= 0 && e.wait !== null) {
|
|
200
|
+
var m = {
|
|
201
|
+
type: "mouseup",
|
|
202
|
+
button: 1
|
|
203
|
+
};
|
|
204
|
+
setTimeout(c(m, n), e.wait);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}, o.calm = function(t) {
|
|
208
|
+
t = E(t);
|
|
209
|
+
for (var e = {
|
|
210
|
+
type: "mouseup",
|
|
211
|
+
button: 1
|
|
212
|
+
}, a = 0, n = t.length; a < n; a++)
|
|
213
|
+
s.hide(e, t[a]);
|
|
214
|
+
}, o.displayEffect = function(t) {
|
|
215
|
+
console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect"), o.init(t);
|
|
216
|
+
}, o;
|
|
217
|
+
});
|
|
218
|
+
const W = {
|
|
219
|
+
init: (o) => {
|
|
220
|
+
const d = w.getJsonMerge({ name: "waves", duration: 500, delay: 200 }, o);
|
|
221
|
+
Window.Waves && Window.Waves.init(d);
|
|
222
|
+
},
|
|
223
|
+
bind: (o, d) => {
|
|
224
|
+
const h = w.isObject(d.value) ? d.value : {};
|
|
225
|
+
if (w.isBoolean(h.init) ? h.init : !0) {
|
|
226
|
+
const b = w.isEmpty(d.modifiers);
|
|
227
|
+
let g;
|
|
228
|
+
if (b) {
|
|
229
|
+
let v = "";
|
|
230
|
+
if (!w.isEmpty(h.color))
|
|
231
|
+
switch (h.color) {
|
|
232
|
+
case "white":
|
|
233
|
+
v = "light";
|
|
234
|
+
break;
|
|
235
|
+
case "black":
|
|
236
|
+
v = "";
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
239
|
+
w.isEmpty(v) || (g = `waves-${v}`);
|
|
240
|
+
} else
|
|
241
|
+
g = ["button", "circle", "block", "float", "light", "classic"].filter((v) => d.modifiers[v]).map((v) => `waves-${v}`);
|
|
242
|
+
Window.Waves && Window.Waves.attach(o, g);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}, $ = "clwaves", j = (o) => (W.init(o), {
|
|
246
|
+
deep: !0,
|
|
247
|
+
mounted: W.bind
|
|
248
|
+
}), X = {
|
|
249
|
+
mounted: W.bind
|
|
250
|
+
};
|
|
251
|
+
export {
|
|
252
|
+
j as directive,
|
|
253
|
+
$ as name,
|
|
254
|
+
X as wavesBind
|
|
255
|
+
};
|
|
256
|
+
//# sourceMappingURL=Waves.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Waves.js","sources":["../../../../src/libs/Web/Waves/waves.js","../../../../src/libs/Web/Waves/index.ts"],"sourcesContent":["/*!\n * Waves v0.7.6\n * http://fian.my.id/Waves\n *\n * Copyright 2014-2018 Alfiana E. Sibuea and other contributors\n * Released under the MIT license\n * https://github.com/fians/Waves/blob/master/LICENSE\n */\n\n;(function(window, factory) {\n 'use strict';\n\n // AMD. Register as an anonymous module. Wrap in function so we have access\n // to root via `this`.\n if (typeof define === 'function' && define.amd) {\n define([], function() {\n window.Waves = factory.call(window);\n return window.Waves;\n });\n }\n\n // Node. Does not work with strict CommonJS, but only CommonJS-like\n // environments that support module.exports, like Node.\n else if (typeof exports === 'object') {\n module.exports = factory.call(window);\n }\n\n // Browser globals.\n else {\n (window||Window).Waves = factory.call(window);\n }\n})(typeof global === 'object' ? global : this, function() {\n 'use strict';\n\n var Waves = Waves || {};\n var $$ = document.querySelectorAll.bind(document);\n var toString = Object.prototype.toString;\n var isTouchAvailable = 'ontouchstart' in window;\n\n\n // Find exact position of element\n function isWindow(obj) {\n return obj !== null && obj === obj.window;\n }\n\n function getWindow(elem) {\n return isWindow(elem) ? elem : elem.nodeType === 9 && elem.defaultView;\n }\n\n function isObject(value) {\n var type = typeof value;\n return type === 'function' || type === 'object' && !!value;\n }\n\n function isDOMNode(obj) {\n return isObject(obj) && obj.nodeType > 0;\n }\n\n function getWavesElements(nodes) {\n var stringRepr = toString.call(nodes);\n\n if (stringRepr === '[object String]') {\n return $$(nodes);\n } else if (isObject(nodes) && /^\\[object (Array|HTMLCollection|NodeList|Object)\\]$/.test(stringRepr) && nodes.hasOwnProperty('length')) {\n return nodes;\n } else if (isDOMNode(nodes)) {\n return [nodes];\n }\n\n return [];\n }\n\n function offset(elem) {\n var docElem, win,\n box = { top: 0, left: 0 },\n doc = elem && elem.ownerDocument;\n\n docElem = doc.documentElement;\n\n if (typeof elem.getBoundingClientRect !== typeof undefined) {\n box = elem.getBoundingClientRect();\n }\n win = getWindow(doc);\n return {\n top: box.top + win.pageYOffset - docElem.clientTop,\n left: box.left + win.pageXOffset - docElem.clientLeft\n };\n }\n\n function convertStyle(styleObj) {\n var style = '';\n\n for (var prop in styleObj) {\n if (styleObj.hasOwnProperty(prop)) {\n style += (prop + ':' + styleObj[prop] + ';');\n }\n }\n\n return style;\n }\n\n var Effect = {\n\n // Effect duration\n duration: 750,\n\n // Effect delay (check for scroll before showing effect)\n delay: 200,\n\n show: function(e, element, velocity) {\n\n // Disable right click\n if (e.button === 2) {\n return false;\n }\n\n element = element || this;\n\n // Create ripple\n var ripple = document.createElement('div');\n ripple.className = 'waves-ripple waves-rippling';\n element.appendChild(ripple);\n\n // Get click coordinate and element width\n var pos = offset(element);\n var relativeY = 0;\n var relativeX = 0;\n // Support for touch devices\n if('touches' in e && e.touches.length) {\n relativeY = (e.touches[0].pageY - pos.top);\n relativeX = (e.touches[0].pageX - pos.left);\n }\n //Normal case\n else {\n relativeY = (e.pageY - pos.top);\n relativeX = (e.pageX - pos.left);\n }\n // Support for synthetic events\n relativeX = relativeX >= 0 ? relativeX : 0;\n relativeY = relativeY >= 0 ? relativeY : 0;\n\n var scale = 'scale(' + ((element.clientWidth / 100) * 3) + ')';\n var translate = 'translate(0,0)';\n\n if (velocity) {\n translate = 'translate(' + (velocity.x) + 'px, ' + (velocity.y) + 'px)';\n }\n\n // Attach data to element\n ripple.setAttribute('data-hold', Date.now());\n ripple.setAttribute('data-x', relativeX);\n ripple.setAttribute('data-y', relativeY);\n ripple.setAttribute('data-scale', scale);\n ripple.setAttribute('data-translate', translate);\n\n // Set ripple position\n var rippleStyle = {\n top: relativeY + 'px',\n left: relativeX + 'px'\n };\n\n ripple.classList.add('waves-notransition');\n ripple.setAttribute('style', convertStyle(rippleStyle));\n ripple.classList.remove('waves-notransition');\n\n // Scale the ripple\n rippleStyle['-webkit-transform'] = scale + ' ' + translate;\n rippleStyle['-moz-transform'] = scale + ' ' + translate;\n rippleStyle['-ms-transform'] = scale + ' ' + translate;\n rippleStyle['-o-transform'] = scale + ' ' + translate;\n rippleStyle.transform = scale + ' ' + translate;\n rippleStyle.opacity = '1';\n\n var duration = e.type === 'mousemove' ? 2500 : Effect.duration;\n rippleStyle['-webkit-transition-duration'] = duration + 'ms';\n rippleStyle['-moz-transition-duration'] = duration + 'ms';\n rippleStyle['-o-transition-duration'] = duration + 'ms';\n rippleStyle['transition-duration'] = duration + 'ms';\n\n ripple.setAttribute('style', convertStyle(rippleStyle));\n },\n\n hide: function(e, element) {\n element = element || this;\n\n var ripples = element.getElementsByClassName('waves-rippling');\n\n for (var i = 0, len = ripples.length; i < len; i++) {\n removeRipple(e, element, ripples[i]);\n }\n\n if (isTouchAvailable) {\n element.removeEventListener('touchend', Effect.hide);\n element.removeEventListener('touchcancel', Effect.hide);\n }\n\n element.removeEventListener('mouseup', Effect.hide);\n element.removeEventListener('mouseleave', Effect.hide);\n }\n };\n\n /**\n * Collection of wrapper for HTML element that only have single tag\n * like <input> and <img>\n */\n var TagWrapper = {\n\n // Wrap <input> tag so it can perform the effect\n input: function(element) {\n\n var parent = element.parentNode;\n\n // If input already have parent just pass through\n if (parent.tagName.toLowerCase() === 'i' && parent.classList.contains('waves-effect')) {\n return;\n }\n\n // Put element class and style to the specified parent\n var wrapper = document.createElement('i');\n wrapper.className = element.className + ' waves-input-wrapper';\n element.className = 'waves-button-input';\n\n // Put element as child\n parent.replaceChild(wrapper, element);\n wrapper.appendChild(element);\n\n // Apply element color and background color to wrapper\n var elementStyle = window.getComputedStyle(element, null);\n var color = elementStyle.color;\n var backgroundColor = elementStyle.backgroundColor;\n\n wrapper.setAttribute('style', 'color:' + color + ';background:' + backgroundColor);\n element.setAttribute('style', 'background-color:rgba(0,0,0,0);');\n\n },\n\n // Wrap <img> tag so it can perform the effect\n img: function(element) {\n\n var parent = element.parentNode;\n\n // If input already have parent just pass through\n if (parent.tagName.toLowerCase() === 'i' && parent.classList.contains('waves-effect')) {\n return;\n }\n\n // Put element as child\n var wrapper = document.createElement('i');\n parent.replaceChild(wrapper, element);\n wrapper.appendChild(element);\n\n }\n };\n\n /**\n * Hide the effect and remove the ripple. Must be\n * a separate function to pass the JSLint...\n */\n function removeRipple(e, el, ripple) {\n\n // Check if the ripple still exist\n if (!ripple) {\n return;\n }\n\n ripple.classList.remove('waves-rippling');\n\n var relativeX = ripple.getAttribute('data-x');\n var relativeY = ripple.getAttribute('data-y');\n var scale = ripple.getAttribute('data-scale');\n var translate = ripple.getAttribute('data-translate');\n\n // Get delay beetween mousedown and mouse leave\n var diff = Date.now() - Number(ripple.getAttribute('data-hold'));\n var delay = 350 - diff;\n\n if (delay < 0) {\n delay = 0;\n }\n\n if (e.type === 'mousemove') {\n delay = 150;\n }\n\n // Fade out ripple after delay\n var duration = e.type === 'mousemove' ? 2500 : Effect.duration;\n\n setTimeout(function() {\n\n var style = {\n top: relativeY + 'px',\n left: relativeX + 'px',\n opacity: '0',\n\n // Duration\n '-webkit-transition-duration': duration + 'ms',\n '-moz-transition-duration': duration + 'ms',\n '-o-transition-duration': duration + 'ms',\n 'transition-duration': duration + 'ms',\n '-webkit-transform': scale + ' ' + translate,\n '-moz-transform': scale + ' ' + translate,\n '-ms-transform': scale + ' ' + translate,\n '-o-transform': scale + ' ' + translate,\n 'transform': scale + ' ' + translate\n };\n\n ripple.setAttribute('style', convertStyle(style));\n\n setTimeout(function() {\n try {\n el.removeChild(ripple);\n } catch (e) {\n return false;\n }\n }, duration);\n\n }, delay);\n }\n\n\n /**\n * Disable mousedown event for 500ms during and after touch\n */\n var TouchHandler = {\n\n /* uses an integer rather than bool so there's no issues with\n * needing to clear timeouts if another touch event occurred\n * within the 500ms. Cannot mouseup between touchstart and\n * touchend, nor in the 500ms after touchend. */\n touches: 0,\n\n allowEvent: function(e) {\n\n var allow = true;\n\n if (/^(mousedown|mousemove)$/.test(e.type) && TouchHandler.touches) {\n allow = false;\n }\n\n return allow;\n },\n registerEvent: function(e) {\n var eType = e.type;\n\n if (eType === 'touchstart') {\n\n TouchHandler.touches += 1; // push\n\n } else if (/^(touchend|touchcancel)$/.test(eType)) {\n\n setTimeout(function() {\n if (TouchHandler.touches) {\n TouchHandler.touches -= 1; // pop after 500ms\n }\n }, 500);\n\n }\n }\n };\n\n\n /**\n * Delegated click handler for .waves-effect element.\n * returns null when .waves-effect element not in \"click tree\"\n */\n function getWavesEffectElement(e) {\n\n if (TouchHandler.allowEvent(e) === false) {\n return null;\n }\n\n var element = null;\n var target = e.target || e.srcElement;\n\n while (target.parentElement) {\n if ( (!(target instanceof SVGElement)) && target.classList.contains('waves-effect')) {\n element = target;\n break;\n }\n target = target.parentElement;\n }\n\n return element;\n }\n\n /**\n * Bubble the click and show effect if .waves-effect elem was found\n */\n function showEffect(e) {\n\n // Disable effect if element has \"disabled\" property on it\n // In some cases, the event is not triggered by the current element\n // if (e.target.getAttribute('disabled') !== null) {\n // return;\n // }\n\n var element = getWavesEffectElement(e);\n\n if (element !== null) {\n\n // Make it sure the element has either disabled property, disabled attribute or 'disabled' class\n if (element.disabled || element.getAttribute('disabled') || element.classList.contains('disabled')) {\n return;\n }\n\n TouchHandler.registerEvent(e);\n\n if (e.type === 'touchstart' && Effect.delay) {\n\n var hidden = false;\n\n var timer = setTimeout(function () {\n timer = null;\n Effect.show(e, element);\n }, Effect.delay);\n\n var hideEffect = function(hideEvent) {\n\n // if touch hasn't moved, and effect not yet started: start effect now\n if (timer) {\n clearTimeout(timer);\n timer = null;\n Effect.show(e, element);\n }\n if (!hidden) {\n hidden = true;\n Effect.hide(hideEvent, element);\n }\n\n removeListeners();\n };\n\n var touchMove = function(moveEvent) {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n hideEffect(moveEvent);\n\n removeListeners();\n };\n\n element.addEventListener('touchmove', touchMove, false);\n element.addEventListener('touchend', hideEffect, false);\n element.addEventListener('touchcancel', hideEffect, false);\n\n var removeListeners = function() {\n element.removeEventListener('touchmove', touchMove);\n element.removeEventListener('touchend', hideEffect);\n element.removeEventListener('touchcancel', hideEffect);\n };\n } else {\n\n Effect.show(e, element);\n\n if (isTouchAvailable) {\n element.addEventListener('touchend', Effect.hide, false);\n element.addEventListener('touchcancel', Effect.hide, false);\n }\n\n element.addEventListener('mouseup', Effect.hide, false);\n element.addEventListener('mouseleave', Effect.hide, false);\n }\n }\n }\n\n Waves.init = function(options) {\n var body = document.body;\n\n options = options || {};\n\n if ('duration' in options) {\n Effect.duration = options.duration;\n }\n\n if ('delay' in options) {\n Effect.delay = options.delay;\n }\n\n if (isTouchAvailable) {\n body.addEventListener('touchstart', showEffect, false);\n body.addEventListener('touchcancel', TouchHandler.registerEvent, false);\n body.addEventListener('touchend', TouchHandler.registerEvent, false);\n }\n\n body.addEventListener('mousedown', showEffect, false);\n };\n\n\n /**\n * Attach Waves to dynamically loaded inputs, or add .waves-effect and other\n * waves classes to a set of elements. Set drag to true if the ripple mouseover\n * or skimming effect should be applied to the elements.\n */\n Waves.attach = function(elements, classes) {\n\n elements = getWavesElements(elements);\n\n if (toString.call(classes) === '[object Array]') {\n classes = classes.join(' ');\n }\n\n classes = classes ? ' ' + classes : '';\n\n var element, tagName;\n\n for (var i = 0, len = elements.length; i < len; i++) {\n\n element = elements[i];\n tagName = element.tagName.toLowerCase();\n\n if (['input', 'img'].indexOf(tagName) !== -1) {\n TagWrapper[tagName](element);\n element = element.parentElement;\n }\n\n if (element.className.indexOf('waves-effect') === -1) {\n element.className += ' waves-effect' + classes;\n }\n }\n };\n\n\n /**\n * Cause a ripple to appear in an element via code.\n */\n Waves.ripple = function(elements, options) {\n elements = getWavesElements(elements);\n var elementsLen = elements.length;\n\n options = options || {};\n options.wait = options.wait || 0;\n options.position = options.position || null; // default = centre of element\n\n\n if (elementsLen) {\n var element, pos, off, centre = {}, i = 0;\n var mousedown = {\n type: 'mousedown',\n button: 1\n };\n var hideRipple = function(mouseup, element) {\n return function() {\n Effect.hide(mouseup, element);\n };\n };\n\n for (; i < elementsLen; i++) {\n element = elements[i];\n pos = options.position || {\n x: element.clientWidth / 2,\n y: element.clientHeight / 2\n };\n\n off = offset(element);\n centre.x = off.left + pos.x;\n centre.y = off.top + pos.y;\n\n mousedown.pageX = centre.x;\n mousedown.pageY = centre.y;\n\n Effect.show(mousedown, element);\n\n if (options.wait >= 0 && options.wait !== null) {\n var mouseup = {\n type: 'mouseup',\n button: 1\n };\n\n setTimeout(hideRipple(mouseup, element), options.wait);\n }\n }\n }\n };\n\n /**\n * Remove all ripples from an element.\n */\n Waves.calm = function(elements) {\n elements = getWavesElements(elements);\n var mouseup = {\n type: 'mouseup',\n button: 1\n };\n\n for (var i = 0, len = elements.length; i < len; i++) {\n Effect.hide(mouseup, elements[i]);\n }\n };\n\n /**\n * Deprecated API fallback\n */\n Waves.displayEffect = function(options) {\n console.error('Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect');\n Waves.init(options);\n };\n\n return Waves;\n});\n","import \"./waves.css\";\r\nimport \"./waves.js\";\r\nimport CommonBase from \"../../Common/base\";\r\n\r\nconst _waves = {\r\n init: (options: any) => {\r\n const newOption = CommonBase.getJsonMerge({ name: \"waves\", duration: 500, delay: 200 }, options);\r\n // @ts-ignore\r\n if (Window.Waves) {\r\n // @ts-ignore\r\n Window.Waves.init(newOption);\r\n }\r\n },\r\n bind: (el: any, binding: any) => {\r\n const newOptions = CommonBase.isObject(binding.value) ? binding.value : {};\r\n const isInit = CommonBase.isBoolean(newOptions.init) ? newOptions.init : true;\r\n if (isInit) {\r\n const isEmpty = CommonBase.isEmpty(binding.modifiers);\r\n let classes;\r\n if (isEmpty) {\r\n let colorBg = \"\";\r\n if (!CommonBase.isEmpty(newOptions.color)) {\r\n switch (newOptions.color) {\r\n case \"white\":\r\n colorBg = \"light\";\r\n break;\r\n case \"black\":\r\n colorBg = \"\";\r\n break;\r\n }\r\n }\r\n if (!CommonBase.isEmpty(colorBg)) {\r\n classes = `waves-${colorBg}`;\r\n }\r\n } else {\r\n classes = [\"button\", \"circle\", \"block\", \"float\", \"light\", \"classic\"]\r\n .filter((cls) => binding.modifiers[cls])\r\n .map((cls) => `waves-${cls}`);\r\n }\r\n // @ts-ignore\r\n if (Window.Waves) {\r\n // @ts-ignore\r\n Window.Waves.attach(el, classes);\r\n }\r\n }\r\n },\r\n};\r\nexport const name = \"clwaves\";\r\nexport const directive = (options: any) => {\r\n _waves.init(options);\r\n return {\r\n deep: true,\r\n mounted: _waves.bind,\r\n };\r\n};\r\nexport const wavesBind = {\r\n mounted: _waves.bind,\r\n};\r\n"],"names":["window","factory","this","Waves","$$","toString","isTouchAvailable","isWindow","obj","getWindow","elem","isObject","value","type","isDOMNode","getWavesElements","nodes","stringRepr","offset","docElem","win","box","doc","convertStyle","styleObj","style","prop","Effect","e","element","velocity","ripple","pos","relativeY","relativeX","scale","translate","rippleStyle","duration","ripples","i","len","removeRipple","TagWrapper","parent","wrapper","elementStyle","color","backgroundColor","el","diff","delay","TouchHandler","allow","eType","getWavesEffectElement","target","showEffect","hidden","timer","hideEffect","hideEvent","removeListeners","touchMove","moveEvent","options","body","elements","classes","tagName","elementsLen","off","centre","mousedown","hideRipple","mouseup","_waves","newOption","CommonBase","binding","newOptions","isEmpty","colorBg","cls","name","directive","wavesBind"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CASE,SAASA,GAAQC,GAAS;AAKxB,EAAI,OAAO,UAAW,cAAc,OAAO,MACvC,OAAO,CAAA,GAAI,WAAW;AAClB,WAAAD,EAAO,QAAQC,EAAQ,KAAKD,CAAM,GAC3BA,EAAO;AAAA,EAClB,CAAC,IAKI,OAAO,WAAY,WACxB,OAAO,UAAUC,EAAQ,KAAKD,CAAM,KAKnCA,KAAQ,QAAQ,QAAQC,EAAQ,KAAKD,CAAM;AAEpD,GAAG,OAAO,UAAW,WAAW,SAASE,QAAM,WAAW;AAGtD,MAAIC,IAAmBA,KAAS,CAAA,GAC5BC,IAAmB,SAAS,iBAAiB,KAAK,QAAQ,GAC1DC,IAAmB,OAAO,UAAU,UACpCC,IAAmB,kBAAkB;AAIzC,WAASC,EAASC,GAAK;AACnB,WAAOA,MAAQ,QAAQA,MAAQA,EAAI;AAAA,EACvC;AAEA,WAASC,EAAUC,GAAM;AACrB,WAAOH,EAASG,CAAI,IAAIA,IAAOA,EAAK,aAAa,KAAKA,EAAK;AAAA,EAC/D;AAEA,WAASC,EAASC,GAAO;AACrB,QAAIC,IAAO,OAAOD;AAClB,WAAOC,MAAS,cAAcA,MAAS,YAAY,CAAC,CAACD;AAAA,EACzD;AAEA,WAASE,EAAUN,GAAK;AACpB,WAAOG,EAASH,CAAG,KAAKA,EAAI,WAAW;AAAA,EAC3C;AAEA,WAASO,EAAiBC,GAAO;AAC7B,QAAIC,IAAaZ,EAAS,KAAKW,CAAK;AAEpC,WAAIC,MAAe,oBACRb,EAAGY,CAAK,IACRL,EAASK,CAAK,KAAK,sDAAsD,KAAKC,CAAU,KAAKD,EAAM,eAAe,QAAQ,IAC1HA,IACAF,EAAUE,CAAK,IACf,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O,MAAM,OAAOlC,GAAImB,CAAO;AAAA,IAEvC;AAAA,EACJ;AACJ,GACagB,IAAO,WACPC,IAAY,CAACpB,OACtBW,EAAO,KAAKX,CAAO,GACZ;AAAA,EACH,MAAM;AAAA,EACN,SAASW,EAAO;AAAA,IAGXU,IAAY;AAAA,EACrB,SAASV,EAAO;AACpB;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const o=require("vue"),n=require("../../Shared/base-iCmnU-fv.js"),J=require("../../Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DEXehdBc.js"),E=require("../../Element/ClButton.cjs"),z={class:"alert-body"},j={key:0,class:"alert-icon"},K={key:1,class:"alert-title"},U={key:2,class:"alert-text"},G=["innerHTML"],Q={key:1},R={key:3,class:"alert-operate"},W=o.defineComponent({name:"ClAlert",__name:"Alert",props:{isBackClick:{type:Boolean},submitLabel:{},submitColor:{},cancelLabel:{},cancelColor:{}},setup(d,{expose:k}){const i=d,s=o.ref(null),t=o.ref(null),a=o.ref(null),r=o.reactive({isLoadBackClick:!0}),c=o.reactive({isBackClick:!1,clsIcon:"",isShowIcon:!1,title:"",isShowTitle:!1,text:"",html:"",isShowTextHtml:!1,isShowText:!1,submitLabel:"",submitIcon:"",submitColor:"default",cancelLabel:"",cancelIcon:"",cancelColor:"grayLight",isShowSubmit:!1,isShowSubmitLoad:!1,isShowCancel:!1,isShowOperate:!1,isShow:!1}),l=o.reactive({submit:null,cancel:null});let b=null;const h={icon:{info:"clIconFont clIcon-info-circle color-default",success:"clIconFont clIcon-check-circle color-green",error:"clIconFont clIcon-exclamation-circle color-red",warn:"clIconFont clIcon-warn-fill color-yellow",doubt:"clIconFont clIcon-question-circle color-cyan"}},f=()=>document.querySelector("body"),S=()=>document.querySelector("body>.panel-alert"),w=()=>{const e=S();return!n.CommonBase.isUndefined(e)},T=()=>{w()?(clearTimeout(b),b=null):f()?.appendChild(s.value)},v=()=>{o.nextTick(()=>{w()&&(b=setTimeout(()=>{const e=S();f()?.removeChild(e)},2*1e3))})},x=e=>{const u=n.CommonBase.isBoolean(e.isBackClick)?e.isBackClick:i.isBackClick??!0;let m="";n.CommonBase.isEmpty(e.iconType)||(m=n.CommonBase.isExistJsonKey(h.icon,e.iconType)?h.icon[e.iconType]:""),n.CommonBase.isEmpty(m)&&!n.CommonBase.isEmpty(e.icon)&&(m=e.icon);const B=!n.CommonBase.isEmpty(m),y=!n.CommonBase.isEmpty(e.title),_=!n.CommonBase.isEmpty(e.html),p=!n.CommonBase.isEmpty(e.text)||_,F=n.CommonBase.isEmpty(e.submitLabel)?i.submitLabel||"确定":e.submitLabel,q=n.CommonBase.isEmpty(e.submitColor)?i.submitColor||"default":e.submitColor,H=n.CommonBase.isEmpty(e.cancelLabel)?i.cancelLabel||"取消":e.cancelLabel,A=n.CommonBase.isEmpty(e.cancelColor)?i.cancelColor||"grayLight":e.cancelColor,L=n.CommonBase.isBoolean(e.isSubmit)?e.isSubmit:!1,D=n.CommonBase.isBoolean(e.isLoad)?e.isLoad:!1,I=n.CommonBase.isBoolean(e.isCancel)?e.isCancel:!1,M=L||I,P=y||p;return{isBackClick:u,clsIcon:m,isShowIcon:B,title:e.title,isShowTitle:y,text:e.text,html:e.html,isShowTextHtml:_,isShowText:p,submitLabel:F,submitIcon:e.submitIcon,submitColor:q,isShowSubmit:L,isShowSubmitLoad:D,cancelLabel:H,cancelIcon:e.cancelIcon,cancelColor:A,isShowCancel:I,isShowOperate:M,isShow:P}},g=e=>{const u=x(e);if(T(),u.isShow){for(const[m,B]of Object.entries(u))c[m]=B;l.submit=e.submitCallback,l.cancel=e.cancelCallback,t.value.show()}else l.submit=null,l.cancel=null,t.value.hide(),c.isShow=!1},C=()=>{t.value.hide(),r.isLoadBackClick=!0,c.isShow=!1};o.watch(()=>c.isShow,e=>{e||v()});const N=()=>{c.isShowSubmitLoad&&(r.isLoadBackClick=!1),n.CommonBase.isFunction(l.submit)?l.submit():C()},V=()=>{C(),n.CommonBase.isFunction(l.cancel)&&l.cancel()},O=()=>{C(),n.CommonBase.isFunction(l.cancel)&&l.cancel()};return k({open:e=>{g(e)},hide:()=>{c.isShowSubmitLoad&&a.value?.loadStop(),C()},reset:()=>{c.isShowSubmitLoad&&a.value?.loadStop()}}),(e,u)=>(o.openBlock(),o.createElementBlock("div",{class:"panel-alert",ref_key:"refElTopParent",ref:s},[o.createVNode(J._sfc_main,{isBackClick:c.isBackClick&&r.isLoadBackClick,classTransitionEnter:"animated zoomIn",width:"500px",onOnClickBack:O,ref_key:"refElTransition",ref:t},{default:o.withCtx(()=>[o.createElementVNode("div",z,[c.isShowIcon?(o.openBlock(),o.createElementBlock("div",j,[o.createElementVNode("i",{class:o.normalizeClass(c.clsIcon)},null,2)])):o.createCommentVNode("",!0),c.isShowTitle?(o.openBlock(),o.createElementBlock("div",K,o.toDisplayString(c.title),1)):o.createCommentVNode("",!0),c.isShowText?(o.openBlock(),o.createElementBlock("div",U,[c.isShowTextHtml?(o.openBlock(),o.createElementBlock("div",{key:0,innerHTML:c.html},null,8,G)):(o.openBlock(),o.createElementBlock("div",Q,o.toDisplayString(c.text),1))])):o.createCommentVNode("",!0),c.isShowOperate?(o.openBlock(),o.createElementBlock("div",R,[c.isShowSubmit?(o.openBlock(),o.createBlock(E,{key:0,ref_key:"refElBtnSubmit",ref:a,className:"alert-submit",isShowLoad:c.isShowSubmitLoad,isShowBackDrop:!0,label:c.submitLabel,icon:c.submitIcon,color:c.submitColor,onOnClick:N},null,8,["isShowLoad","label","icon","color"])):o.createCommentVNode("",!0),c.isShowCancel?(o.openBlock(),o.createBlock(E,{key:1,className:"alert-cancel",label:c.cancelLabel,icon:c.cancelIcon,color:c.cancelColor,onOnClick:V},null,8,["label","icon","color"])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)])]),_:1},8,["isBackClick"])],512))}}),X=(d={})=>{const k=o.createApp(W,d),i=document.createElement("div"),s=k.mount(i);return{alert:(t,a={})=>{const r=n.CommonBase.getJsonMerge({isSubmit:!0},a,{title:t,isCancel:!1,cancelCallback:null});s.open(r)},confirm:(t,a)=>{const r=n.CommonBase.getJsonMerge({isSubmit:!0,isCancel:!0},a,{title:t});s.open(r)},custom:t=>{s.open(t)},close:()=>{s.hide()},reset:()=>{s.reset()}}};module.exports=X;
|
|
2
|
+
//# sourceMappingURL=Alert.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.cjs","sources":["../../../../src/libs/Web/Alert/Alert.vue","../../../../src/libs/Web/Alert/index.ts"],"sourcesContent":["<template>\n <div class=\"panel-alert\" ref=\"refElTopParent\">\n <ClModalBaseTransition :isBackClick=\"optItemInfo.isBackClick && optBase.isLoadBackClick\"\n classTransitionEnter=\"animated zoomIn\" width=\"500px\" @onClickBack=\"onClickBack\" ref=\"refElTransition\">\n <div class=\"alert-body\">\n <div v-if=\"optItemInfo.isShowIcon\" class=\"alert-icon\"><i :class=\"optItemInfo.clsIcon\"></i></div>\n <div v-if=\"optItemInfo.isShowTitle\" class=\"alert-title\">{{ optItemInfo.title }}</div>\n <div v-if=\"optItemInfo.isShowText\" class=\"alert-text\">\n <div v-if=\"optItemInfo.isShowTextHtml\" v-html=\"optItemInfo.html\"></div>\n <div v-else>{{ optItemInfo.text }}</div>\n </div>\n <div v-if=\"optItemInfo.isShowOperate\" class=\"alert-operate\">\n <ClButton ref=\"refElBtnSubmit\" v-if=\"optItemInfo.isShowSubmit\" className=\"alert-submit\"\n :isShowLoad=\"optItemInfo.isShowSubmitLoad\" :isShowBackDrop=\"true\" :label=\"optItemInfo.submitLabel\"\n :icon=\"optItemInfo.submitIcon\" :color=\"optItemInfo.submitColor\" @onClick=\"onSubmit\"></ClButton>\n <ClButton v-if=\"optItemInfo.isShowCancel\" className=\"alert-cancel\" :label=\"optItemInfo.cancelLabel\"\n :icon=\"optItemInfo.cancelIcon\" :color=\"optItemInfo.cancelColor\" @onClick=\"onCancel\"></ClButton>\n </div>\n </div>\n </ClModalBaseTransition>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport './Index.css'\nimport { ref, reactive, watch, nextTick } from 'vue'\nimport CommonBase from '../../Common/base'\nimport ClModalBaseTransition from '../../Element/Modal/BaseTransition.vue'\nimport ClButton from '../../Element/Button/Index.vue'\n\n// defineOptions\ndefineOptions({ name: 'ClAlert' })\n\n// props\nconst props = defineProps<{\n isBackClick?: boolean\n submitLabel?: string\n submitColor?: string\n cancelLabel?: string\n cancelColor?: string\n}>()\n\n// refs\nconst refElTopParent = ref<HTMLElement | null>(null)\nconst refElTransition = ref<any>(null)\nconst refElBtnSubmit = ref<any>(null)\n\n// reactive\nconst optBase = reactive({\n isLoadBackClick: true,\n})\n\nconst optItemInfo = reactive({\n isBackClick: false,\n clsIcon: '',\n isShowIcon: false,\n title: '',\n isShowTitle: false,\n text: '',\n html: '',\n isShowTextHtml: false,\n isShowText: false,\n submitLabel: '',\n submitIcon: '',\n submitColor: 'default',\n cancelLabel: '',\n cancelIcon: '',\n cancelColor: 'grayLight',\n isShowSubmit: false,\n isShowSubmitLoad: false,\n isShowCancel: false,\n isShowOperate: false,\n isShow: false,\n})\n\n// 内部数据\nconst _funItemInfo = reactive({\n submit: null as any,\n cancel: null as any,\n})\n\nlet _timeOutDestroyContainer: any = null\n\n// 常量\nconst defaultAlertCommon: any = {\n icon: {\n info: 'clIconFont clIcon-info-circle color-default',\n success: 'clIconFont clIcon-check-circle color-green',\n error: 'clIconFont clIcon-exclamation-circle color-red',\n warn: 'clIconFont clIcon-warn-fill color-yellow',\n doubt: 'clIconFont clIcon-question-circle color-cyan',\n },\n}\n\n// 内部方法\nconst _getBody = () => {\n const el = document.querySelector('body')\n return el\n}\n\nconst _getTopEl = () => {\n const el = document.querySelector('body>.panel-alert')\n return el\n}\n\nconst _checkContainer = () => {\n const el = _getTopEl()\n return !CommonBase.isUndefined(el)\n}\n\nconst _creatorContainer = () => {\n if (!_checkContainer()) {\n _getBody()?.appendChild(refElTopParent.value!)\n } else {\n clearTimeout(_timeOutDestroyContainer)\n _timeOutDestroyContainer = null\n }\n}\n\nconst _destroyContainer = () => {\n nextTick(() => {\n if (_checkContainer()) {\n _timeOutDestroyContainer = setTimeout(() => {\n const el = _getTopEl()\n _getBody()?.removeChild(el!)\n }, 2 * 1000)\n }\n })\n}\n\nconst _analysisItemProps = (opt: any) => {\n const isBackClick = CommonBase.isBoolean(opt.isBackClick) ? opt.isBackClick : props.isBackClick ?? true\n\n let clsIcon = ''\n if (!CommonBase.isEmpty(opt.iconType)) {\n clsIcon = CommonBase.isExistJsonKey(defaultAlertCommon.icon, opt.iconType)\n ? defaultAlertCommon.icon[opt.iconType]\n : ''\n }\n if (CommonBase.isEmpty(clsIcon) && !CommonBase.isEmpty(opt.icon)) {\n clsIcon = opt.icon\n }\n const isShowIcon = !CommonBase.isEmpty(clsIcon)\n\n const isShowTitle = !CommonBase.isEmpty(opt.title)\n\n const isShowTextHtml = !CommonBase.isEmpty(opt.html)\n const isShowText = !CommonBase.isEmpty(opt.text) || isShowTextHtml\n\n const submitLabel = CommonBase.isEmpty(opt.submitLabel)\n ? props.submitLabel || '确定'\n : opt.submitLabel\n const submitColor = CommonBase.isEmpty(opt.submitColor) ? props.submitColor || 'default' : opt.submitColor\n const cancelLabel = CommonBase.isEmpty(opt.cancelLabel)\n ? props.cancelLabel || '取消'\n : opt.cancelLabel\n const cancelColor = CommonBase.isEmpty(opt.cancelColor) ? props.cancelColor || 'grayLight' : opt.cancelColor\n\n const isShowSubmit = CommonBase.isBoolean(opt.isSubmit) ? opt.isSubmit : false\n const isShowSubmitLoad = CommonBase.isBoolean(opt.isLoad) ? opt.isLoad : false\n const isShowCancel = CommonBase.isBoolean(opt.isCancel) ? opt.isCancel : false\n const isShowOperate = isShowSubmit || isShowCancel\n\n const isShow = isShowTitle || isShowText\n return {\n isBackClick,\n clsIcon,\n isShowIcon,\n title: opt.title,\n isShowTitle,\n text: opt.text,\n html: opt.html,\n isShowTextHtml,\n isShowText,\n submitLabel,\n submitIcon: opt.submitIcon,\n submitColor,\n isShowSubmit,\n isShowSubmitLoad,\n cancelLabel,\n cancelIcon: opt.cancelIcon,\n cancelColor,\n isShowCancel,\n isShowOperate,\n isShow,\n }\n}\n\nconst _creatorItem = (optExt: any) => {\n const newOptions = _analysisItemProps(optExt)\n _creatorContainer()\n if (newOptions.isShow) {\n for (const [ko, vo] of Object.entries(newOptions)) {\n // @ts-ignore\n optItemInfo[ko] = vo\n }\n _funItemInfo.submit = optExt.submitCallback\n _funItemInfo.cancel = optExt.cancelCallback\n refElTransition.value.show()\n } else {\n _funItemInfo.submit = null\n _funItemInfo.cancel = null\n refElTransition.value.hide()\n optItemInfo.isShow = false\n }\n}\n\nconst _closeHide = () => {\n refElTransition.value.hide()\n optBase.isLoadBackClick = true\n optItemInfo.isShow = false\n}\n\n// watch\nwatch(\n () => optItemInfo.isShow,\n (newValue: boolean) => {\n if (!newValue) {\n _destroyContainer()\n }\n }\n)\n\n// 内部触发的事件 on\nconst onSubmit = () => {\n if (optItemInfo.isShowSubmitLoad) {\n optBase.isLoadBackClick = false\n }\n if (CommonBase.isFunction(_funItemInfo.submit)) {\n _funItemInfo.submit()\n } else {\n _closeHide()\n }\n}\n\nconst onCancel = () => {\n _closeHide()\n if (CommonBase.isFunction(_funItemInfo.cancel)) {\n _funItemInfo.cancel()\n }\n}\n\nconst onClickBack = () => {\n _closeHide()\n if (CommonBase.isFunction(_funItemInfo.cancel)) {\n _funItemInfo.cancel()\n }\n}\n\n// 外部调用\nconst open = (opt: any) => {\n _creatorItem(opt)\n}\n\nconst hide = () => {\n if (optItemInfo.isShowSubmitLoad) {\n refElBtnSubmit.value?.loadStop()\n }\n _closeHide()\n}\n\nconst reset = () => {\n if (optItemInfo.isShowSubmitLoad) {\n refElBtnSubmit.value?.loadStop()\n }\n}\n\n// 暴露给外部的方法\nexport interface ClAlertExpose {\n open: () => void\n hide: () => void\n reset: () => void\n}\n\ndefineExpose({\n open,\n hide,\n reset\n})\n</script>\n","import { createApp } from \"vue\";\nimport ElementAlert from \"./Alert.vue\";\nimport CommonBase from \"../../Common/base\";\n\nexport default (options = {}) => {\n const VNotify = createApp(ElementAlert, options);\n const tempParent = document.createElement(\"div\");\n const alert: any = VNotify.mount(tempParent);\n return {\n alert: (title: string, optExt = {}) => {\n const opt = CommonBase.getJsonMerge(\n {\n isSubmit: true,\n },\n optExt,\n {\n title,\n isCancel: false,\n cancelCallback: null,\n }\n );\n alert.open(opt);\n },\n confirm: (title: string, optExt: any) => {\n const opt = CommonBase.getJsonMerge(\n {\n isSubmit: true,\n isCancel: true,\n },\n optExt,\n {\n title,\n }\n );\n alert.open(opt);\n },\n custom: (opt: any) => {\n alert.open(opt);\n },\n close: () => {\n alert.hide();\n },\n reset: () => {\n alert.reset();\n },\n };\n};\n"],"names":["props","__props","refElTopParent","ref","refElTransition","refElBtnSubmit","optBase","reactive","optItemInfo","_funItemInfo","_timeOutDestroyContainer","defaultAlertCommon","_getBody","_getTopEl","_checkContainer","el","CommonBase","_creatorContainer","_destroyContainer","nextTick","_analysisItemProps","opt","isBackClick","clsIcon","isShowIcon","isShowTitle","isShowTextHtml","isShowText","submitLabel","submitColor","cancelLabel","cancelColor","isShowSubmit","isShowSubmitLoad","isShowCancel","isShowOperate","isShow","_creatorItem","optExt","newOptions","ko","vo","_closeHide","watch","newValue","onSubmit","onCancel","onClickBack","__expose","_createElementBlock","_createVNode","ClModalBaseTransition","_createElementVNode","_hoisted_1","_openBlock","_hoisted_2","_normalizeClass","_hoisted_3","_toDisplayString","_hoisted_4","_hoisted_6","_hoisted_7","_createBlock","ClButton","index","options","VNotify","createApp","ElementAlert","tempParent","alert","title"],"mappings":"+hBAkCA,MAAMA,EAAQC,EASRC,EAAiBC,EAAAA,IAAwB,IAAI,EAC7CC,EAAkBD,EAAAA,IAAS,IAAI,EAC/BE,EAAiBF,EAAAA,IAAS,IAAI,EAG9BG,EAAUC,EAAAA,SAAS,CACvB,gBAAiB,EAAA,CAClB,EAEKC,EAAcD,EAAAA,SAAS,CAC3B,YA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