@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,249 @@
|
|
|
1
|
+
import { defineComponent as Y, inject as Z, reactive as ee, ref as A, computed as $, watch as I, onMounted as te, nextTick as R, openBlock as p, createElementBlock as h, normalizeClass as _, createElementVNode as q, normalizeStyle as J, toDisplayString as M, unref as le, createCommentVNode as se, Fragment as ie, renderList as ae, renderSlot as ne } from "vue";
|
|
2
|
+
import { C as i } from "../Shared/base-PQGakkrl.js";
|
|
3
|
+
import { u as oe } from "../Shared/language-DxTlvFs2.js";
|
|
4
|
+
const ce = { class: "selectTag-container" }, ue = ["onClick"], re = ["innerHTML"], de = { key: 1 }, ve = /* @__PURE__ */ Y({
|
|
5
|
+
name: "ClSelectTag",
|
|
6
|
+
__name: "Index",
|
|
7
|
+
props: {
|
|
8
|
+
value: [String, Number],
|
|
9
|
+
className: String,
|
|
10
|
+
theme: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: ""
|
|
13
|
+
// default | interval
|
|
14
|
+
},
|
|
15
|
+
type: {
|
|
16
|
+
type: String,
|
|
17
|
+
required: !0,
|
|
18
|
+
validator: (r) => ["checkbox", "radio"].indexOf(r) !== -1
|
|
19
|
+
},
|
|
20
|
+
list: {
|
|
21
|
+
type: Array,
|
|
22
|
+
default: () => []
|
|
23
|
+
},
|
|
24
|
+
disabled: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !1
|
|
27
|
+
},
|
|
28
|
+
width: String,
|
|
29
|
+
isShowAll: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: !1
|
|
32
|
+
},
|
|
33
|
+
showAllLabel: String,
|
|
34
|
+
checkChangeBefore: Function,
|
|
35
|
+
isInitRadioValue: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !0
|
|
38
|
+
},
|
|
39
|
+
isRadioClickCancel: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: !1
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
emits: ["update:value", "onChange", "onInit"],
|
|
45
|
+
setup(r, { expose: j, emit: N }) {
|
|
46
|
+
const a = r, E = N, { optPageLanguage: O, getPageLanguage: H } = oe();
|
|
47
|
+
H("common");
|
|
48
|
+
const C = Z("$ClGlobals"), x = ee({
|
|
49
|
+
theme: ""
|
|
50
|
+
}), K = `st-${i.getRandom(8)}`, V = A(!1), b = (e) => {
|
|
51
|
+
let l = [];
|
|
52
|
+
return i.isEmpty(e) || (l = e.toString().split(",")), l;
|
|
53
|
+
}, o = A(b(a.value));
|
|
54
|
+
let g = [], d = {};
|
|
55
|
+
const u = A(!1), G = $(() => {
|
|
56
|
+
const { className: e, theme: l } = a, t = {
|
|
57
|
+
"panel-selectTag": !0
|
|
58
|
+
};
|
|
59
|
+
let s = x.theme;
|
|
60
|
+
return i.isEmpty(l) || (s = l), i.isEmpty(s) || (t[`selectTag-${s}`] = !0), i.isEmpty(e) || e.split(" ").forEach((n) => {
|
|
61
|
+
i.isEmpty(n) || (t[n] = !0);
|
|
62
|
+
}), t;
|
|
63
|
+
}), P = $(() => {
|
|
64
|
+
const e = {};
|
|
65
|
+
return i.isEmpty(a.width) || (e.width = a.width), e;
|
|
66
|
+
}), z = (e) => {
|
|
67
|
+
const l = {};
|
|
68
|
+
return e.isHtml ? l.width = "auto" : i.isEmpty(e.width) ? i.isEmpty(a.width) || (l.width = a.width) : l.width = e.width, l;
|
|
69
|
+
}, f = (e) => {
|
|
70
|
+
const l = [];
|
|
71
|
+
i.isEmpty(e) || e.forEach((c) => {
|
|
72
|
+
i.isExistJsonKey(d, c) && l.push(i.getJsonClone(d[c]));
|
|
73
|
+
});
|
|
74
|
+
const t = e.join(","), s = l.length > 0 && l.length === g.length;
|
|
75
|
+
let n;
|
|
76
|
+
return a.type === "radio" ? (n = {}, l.length > 0 && (n = l[0])) : n = l, { value: t, info: n, isAll: s };
|
|
77
|
+
}, k = (e) => {
|
|
78
|
+
E("update:value", e);
|
|
79
|
+
}, B = (e) => {
|
|
80
|
+
if (!i.isEqualArr(o.value, e)) {
|
|
81
|
+
const l = i.getArrClone(o.value), t = f(l);
|
|
82
|
+
o.value = e;
|
|
83
|
+
const { value: s, isAll: n, info: c } = f(e);
|
|
84
|
+
k(s), E("onChange", s, c, n, {
|
|
85
|
+
value: t.value,
|
|
86
|
+
info: t.info
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}, L = () => {
|
|
90
|
+
R(() => {
|
|
91
|
+
const { value: e, isAll: l, info: t } = f(o.value);
|
|
92
|
+
E("onInit", e, t, l);
|
|
93
|
+
});
|
|
94
|
+
}, Q = () => {
|
|
95
|
+
if (C.globalsOption && C.globalsOption.selectTag) {
|
|
96
|
+
const e = C.globalsOption.selectTag;
|
|
97
|
+
i.isEmpty(e.theme) || (x.theme = e.theme);
|
|
98
|
+
}
|
|
99
|
+
}, S = (e) => {
|
|
100
|
+
const l = [];
|
|
101
|
+
if (e.length > 0) {
|
|
102
|
+
const t = d[e[0]], s = t && !i.isEmpty(t.type) ? t.type : a.type;
|
|
103
|
+
e.forEach((n) => {
|
|
104
|
+
if (i.isExistJsonKey(d, n)) {
|
|
105
|
+
const c = d[n];
|
|
106
|
+
if ((i.isEmpty(c.type) ? a.type : c.type) === s)
|
|
107
|
+
switch (s) {
|
|
108
|
+
case "radio":
|
|
109
|
+
l.length === 0 && l.push(n);
|
|
110
|
+
break;
|
|
111
|
+
case "checkbox":
|
|
112
|
+
l.push(n);
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
return l;
|
|
119
|
+
}, T = (e) => {
|
|
120
|
+
if (d = {}, g = [], !i.isEmpty(e)) {
|
|
121
|
+
const l = b(a.value);
|
|
122
|
+
e.forEach((t) => {
|
|
123
|
+
if (i.isExistJsonKey(t, "id")) {
|
|
124
|
+
const s = t.id.toString();
|
|
125
|
+
d[s] = t, t.isDisabled ? i.isExistValue(l, s) && g.push(s) : g.push(s);
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}, m = () => {
|
|
130
|
+
if (u.value) {
|
|
131
|
+
let e = [];
|
|
132
|
+
i.isEmpty(o.value) || (e = S(o.value), i.isEqualArr(o.value, e) || (o.value = e, k(e.join(",")))), a.isShowAll && (V.value = e.length > 0 && e.length === g.length);
|
|
133
|
+
}
|
|
134
|
+
}, v = () => {
|
|
135
|
+
if (a.type === "radio" && a.isInitRadioValue && i.isEmpty(o.value) && a.list.length > 0) {
|
|
136
|
+
const e = a.list[0].id.toString();
|
|
137
|
+
o.value = [e], k(e);
|
|
138
|
+
}
|
|
139
|
+
}, w = (e) => {
|
|
140
|
+
const l = b(e);
|
|
141
|
+
let t = i.isEqualArr(o.value, l);
|
|
142
|
+
t && (t = e === o.value.join(",")), t || (o.value = l);
|
|
143
|
+
}, U = () => {
|
|
144
|
+
Q(), u.value = a.list.length !== 0, T(a.list), v(), m();
|
|
145
|
+
};
|
|
146
|
+
I(u, (e) => {
|
|
147
|
+
e && L();
|
|
148
|
+
}), I(
|
|
149
|
+
() => a.list,
|
|
150
|
+
(e) => {
|
|
151
|
+
u.value || (u.value = !0, e.length === 0 && m());
|
|
152
|
+
}
|
|
153
|
+
), I(
|
|
154
|
+
[() => a.list, () => a.value],
|
|
155
|
+
([e, l], [t, s]) => {
|
|
156
|
+
const n = e;
|
|
157
|
+
!u.value && n.length > 0 && (u.value = !0), T(n), l !== s && w(l), v(), m();
|
|
158
|
+
}
|
|
159
|
+
), te(() => {
|
|
160
|
+
R(() => {
|
|
161
|
+
U();
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
const W = () => {
|
|
165
|
+
if (!a.disabled) {
|
|
166
|
+
const e = [];
|
|
167
|
+
a.list.forEach((t) => {
|
|
168
|
+
const s = t.id.toString();
|
|
169
|
+
t.isDisabled ? i.isExistValue(o.value, s) && e.push(s) : V.value || e.push(s);
|
|
170
|
+
});
|
|
171
|
+
const l = S(e);
|
|
172
|
+
B(l);
|
|
173
|
+
}
|
|
174
|
+
}, X = async (e) => {
|
|
175
|
+
if (!e.isDisabled && !a.disabled) {
|
|
176
|
+
let l = a.type;
|
|
177
|
+
l = i.isEmpty(e.type) ? l : e.type;
|
|
178
|
+
const t = i.getArrClone(o.value);
|
|
179
|
+
let s = [];
|
|
180
|
+
const n = e.id.toString();
|
|
181
|
+
if (t.length === 0)
|
|
182
|
+
s = [n];
|
|
183
|
+
else if (l === "radio")
|
|
184
|
+
i.isEqualArr(t, [n]) ? s = a.isRadioClickCancel ? [] : t : s = [n];
|
|
185
|
+
else {
|
|
186
|
+
const y = d[t[0]];
|
|
187
|
+
(i.isEmpty(y.type) ? a.type : y.type) === "radio" ? s = [n] : i.isExistValue(t, n) ? s = i.getArrRemoveById(t, n) : (s = t, s.push(n));
|
|
188
|
+
}
|
|
189
|
+
let c = !0;
|
|
190
|
+
if (a.checkChangeBefore) {
|
|
191
|
+
const { value: y } = f(s), F = f(t);
|
|
192
|
+
c = await a.checkChangeBefore(y, F.value), c = i.isBoolean(c) ? c : !0;
|
|
193
|
+
}
|
|
194
|
+
c && B(s);
|
|
195
|
+
}
|
|
196
|
+
}, D = () => S(o.value).join(",");
|
|
197
|
+
return j({
|
|
198
|
+
getValue: D,
|
|
199
|
+
getValueData: () => {
|
|
200
|
+
const e = D(), { info: l } = f(e.split(","));
|
|
201
|
+
return l;
|
|
202
|
+
},
|
|
203
|
+
setValue: (e) => {
|
|
204
|
+
w(e), v(), m();
|
|
205
|
+
},
|
|
206
|
+
runInitComplete: () => {
|
|
207
|
+
u.value || (u.value = !0, T(a.list), w(a.value), v(), m(), L());
|
|
208
|
+
}
|
|
209
|
+
}), (e, l) => (p(), h("div", {
|
|
210
|
+
class: _(G.value)
|
|
211
|
+
}, [
|
|
212
|
+
q("ul", ce, [
|
|
213
|
+
r.isShowAll ? (p(), h("li", {
|
|
214
|
+
key: 0,
|
|
215
|
+
class: _({
|
|
216
|
+
"selectTag-item": !0,
|
|
217
|
+
"selectTag-active": V.value,
|
|
218
|
+
"selectTag-disabled": r.disabled
|
|
219
|
+
}),
|
|
220
|
+
style: J(P.value),
|
|
221
|
+
onClick: l[0] || (l[0] = (t) => W())
|
|
222
|
+
}, [
|
|
223
|
+
q("span", null, M(r.showAllLabel || le(O).checkboxAll), 1)
|
|
224
|
+
], 6)) : se("", !0),
|
|
225
|
+
(p(!0), h(ie, null, ae(r.list, (t, s) => (p(), h("li", {
|
|
226
|
+
key: `${K}-${s}`,
|
|
227
|
+
class: _({
|
|
228
|
+
"selectTag-item": !0,
|
|
229
|
+
"selectTag-active": o.value.includes(t.id.toString()),
|
|
230
|
+
"selectTag-disabled": t.isDisabled || r.disabled
|
|
231
|
+
}),
|
|
232
|
+
style: J(z(t)),
|
|
233
|
+
onClick: (n) => X(t)
|
|
234
|
+
}, [
|
|
235
|
+
ne(e.$slots, "default", { data: t }, () => [
|
|
236
|
+
t.isHtml ? (p(), h("span", {
|
|
237
|
+
key: 0,
|
|
238
|
+
innerHTML: t.name
|
|
239
|
+
}, null, 8, re)) : (p(), h("span", de, M(t.name), 1))
|
|
240
|
+
])
|
|
241
|
+
], 14, ue))), 128))
|
|
242
|
+
])
|
|
243
|
+
], 2));
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
export {
|
|
247
|
+
ve as default
|
|
248
|
+
};
|
|
249
|
+
//# sourceMappingURL=ClSelectTag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClSelectTag.js","sources":["../../../src/libs/Web/SelectTag/Index.vue"],"sourcesContent":["<template>\n <div :class=\"clsParent\">\n <ul class=\"selectTag-container\">\n <li\n v-if=\"isShowAll\"\n :class=\"{\n 'selectTag-item': true,\n 'selectTag-active': optAllValue,\n 'selectTag-disabled': disabled,\n }\"\n :style=\"styItem\"\n @click=\"onClickAll()\"\n ><span>{{ showAllLabel || optPageLanguage.checkboxAll }}</span></li>\n <li\n v-for=\"(info, stIndex) in list\"\n :key=\"`${optKeyIndex}-${stIndex}`\"\n :class=\"{\n 'selectTag-item': true,\n 'selectTag-active': optTextValue.includes(info.id.toString()),\n 'selectTag-disabled': info.isDisabled || disabled,\n }\"\n :style=\"styItemFun(info)\"\n @click=\"onClickItem(info)\"\n >\n <slot :data=\"info\">\n <span\n v-if=\"info.isHtml\"\n v-html=\"info.name\"\n ></span>\n <span v-else>{{ info.name }}</span>\n </slot>\n </li>\n </ul>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { inject, onMounted, nextTick, watch, reactive, ref, computed } from 'vue'\nimport CommonBase from '../../Common/base'\nimport useLanguage from '../../Use/language'\nimport './index.css'\n\ndefineOptions({ name: 'ClSelectTag' })\n\nexport interface ListInfo {\n id: [string, number]\n name: string\n isDisabled: boolean\n type: string\n isHtml: boolean\n}\n\nconst props = defineProps({\n value: [String, Number],\n className: String,\n theme: {\n type: String,\n default: '', // default | interval\n },\n type: {\n type: String,\n required: true,\n validator: (value: string) => {\n return ['checkbox', 'radio'].indexOf(value) !== -1\n },\n },\n list: {\n type: Array as () => ListInfo[],\n default: () => [],\n },\n disabled: {\n type: Boolean,\n default: false,\n },\n width: String,\n isShowAll: {\n type: Boolean,\n default: false,\n },\n showAllLabel: String,\n checkChangeBefore: Function,\n isInitRadioValue: {\n type: Boolean,\n default: true,\n },\n isRadioClickCancel: {\n type: Boolean,\n default: false,\n },\n})\n\nconst emit = defineEmits(['update:value', 'onChange', 'onInit'])\n\nconst { optPageLanguage, getPageLanguage } = useLanguage()\ngetPageLanguage('common')\n\nconst _clGlobals: any = inject('$ClGlobals')\n\nconst optBase: any = reactive({\n theme: '',\n})\n\nconst optKeyIndex = `st-${CommonBase.getRandom(8)}`\nconst optAllValue = ref(false)\n\nconst _convertValueArr = (value: any) => {\n let arr: any[] = []\n if (!CommonBase.isEmpty(value)) {\n arr = value.toString().split(',')\n }\n return arr\n}\n\nconst optTextValue = ref(_convertValueArr(props.value))\nlet _listAllId: any[] = []\nlet _listDataToJson: any = {}\nconst _optIsFirstDataFinish = ref(false)\n\nconst clsParent = computed(() => {\n const { className, theme } = props\n const cls: any = {\n 'panel-selectTag': true,\n }\n let newTheme = optBase.theme\n if (!CommonBase.isEmpty(theme)) {\n newTheme = theme\n }\n if (!CommonBase.isEmpty(newTheme)) {\n cls[`selectTag-${newTheme}`] = true\n }\n if (!CommonBase.isEmpty(className)) {\n ;(className as string).split(' ').forEach((c: string) => {\n if (!CommonBase.isEmpty(c)) {\n cls[c] = true\n }\n })\n }\n return cls\n})\n\nconst styItem = computed(() => {\n const sty: any = {}\n if (!CommonBase.isEmpty(props.width)) {\n sty.width = props.width\n }\n return sty\n})\n\nconst styItemFun = (info: any) => {\n const sty: any = {}\n if (info.isHtml) {\n sty.width = 'auto'\n } else if (!CommonBase.isEmpty(info.width)) {\n sty.width = info.width\n } else if (!CommonBase.isEmpty(props.width)) {\n sty.width = props.width\n }\n return sty\n}\n\nconst _getValueInfo = (ids: string[]) => {\n const dataList: any[] = []\n if (!CommonBase.isEmpty(ids)) {\n ids.forEach((v: string) => {\n if (CommonBase.isExistJsonKey(_listDataToJson, v)) {\n dataList.push(CommonBase.getJsonClone(_listDataToJson[v]))\n }\n })\n }\n const value = ids.join(',')\n const isAll = dataList.length > 0 && dataList.length === _listAllId.length\n let info: any\n if (props.type === 'radio') {\n info = {}\n if (dataList.length > 0) {\n info = dataList[0]\n }\n } else {\n info = dataList\n }\n return { value, info, isAll }\n}\n\nconst _emitModelValue = (value: string) => {\n emit('update:value', value)\n}\n\nconst _emitChange = (arrIds: string[]) => {\n if (!CommonBase.isEqualArr(optTextValue.value, arrIds)) {\n const oldSelectValue = CommonBase.getArrClone(optTextValue.value)\n const oldSelectInfo = _getValueInfo(oldSelectValue)\n optTextValue.value = arrIds\n const { value, isAll, info } = _getValueInfo(arrIds)\n _emitModelValue(value)\n emit('onChange', value, info, isAll, {\n value: oldSelectInfo.value,\n info: oldSelectInfo.info,\n })\n }\n}\n\nconst _emitInit = () => {\n nextTick(() => {\n const { value, isAll, info } = _getValueInfo(optTextValue.value)\n emit('onInit', value, info, isAll)\n })\n}\n\nconst _initMergeGlobalsOption = () => {\n if (_clGlobals.globalsOption && _clGlobals.globalsOption.selectTag) {\n const opt = _clGlobals.globalsOption.selectTag\n if (!CommonBase.isEmpty(opt.theme)) {\n optBase.theme = opt.theme\n }\n }\n}\n\nconst _getEffectiveValue = (selectValue: any[]) => {\n const effectiveValue: any[] = []\n if (selectValue.length > 0) {\n const firstInfo = _listDataToJson[selectValue[0]]\n const firstType = firstInfo && !CommonBase.isEmpty(firstInfo.type) ? firstInfo.type : props.type\n selectValue.forEach((v: string) => {\n if (CommonBase.isExistJsonKey(_listDataToJson, v)) {\n const info = _listDataToJson[v]\n const type = CommonBase.isEmpty(info.type) ? props.type : info.type\n if (type === firstType) {\n switch (firstType) {\n case 'radio':\n if (effectiveValue.length === 0) {\n effectiveValue.push(v)\n }\n break\n case 'checkbox':\n effectiveValue.push(v)\n break\n }\n }\n }\n })\n }\n return effectiveValue\n}\n\nconst _convertListToJson = (list: any[]) => {\n _listDataToJson = {}\n _listAllId = []\n if (!CommonBase.isEmpty(list)) {\n const selectValue: any[] = _convertValueArr(props.value)\n list.forEach((info: any) => {\n if (CommonBase.isExistJsonKey(info, 'id')) {\n const id = info.id.toString()\n _listDataToJson[id] = info\n if (info.isDisabled) {\n if (CommonBase.isExistValue(selectValue, id)) {\n _listAllId.push(id)\n }\n } else {\n _listAllId.push(id)\n }\n }\n })\n }\n}\n\nconst _checkValueInList = () => {\n if (_optIsFirstDataFinish.value) {\n let effectiveValue = []\n if (!CommonBase.isEmpty(optTextValue.value)) {\n effectiveValue = _getEffectiveValue(optTextValue.value)\n if (!CommonBase.isEqualArr(optTextValue.value, effectiveValue)) {\n optTextValue.value = effectiveValue\n _emitModelValue(effectiveValue.join(','))\n }\n }\n if (props.isShowAll) {\n optAllValue.value = effectiveValue.length > 0 && effectiveValue.length === _listAllId.length\n }\n }\n}\n\nconst _initRadioDefaultValue = () => {\n if (\n props.type === 'radio' &&\n props.isInitRadioValue &&\n CommonBase.isEmpty(optTextValue.value) &&\n props.list.length > 0\n ) {\n const value = props.list[0].id.toString()\n optTextValue.value = [value]\n _emitModelValue(value)\n }\n}\n\nconst _setValue = (value: any) => {\n const arrValue = _convertValueArr(value)\n let isEqual = CommonBase.isEqualArr(optTextValue.value, arrValue)\n if (isEqual) {\n isEqual = value === optTextValue.value.join(',')\n }\n if (!isEqual) {\n optTextValue.value = arrValue\n }\n}\n\nconst _initMain = () => {\n _initMergeGlobalsOption()\n _optIsFirstDataFinish.value = props.list.length !== 0\n _convertListToJson(props.list)\n _initRadioDefaultValue()\n _checkValueInList()\n}\n\nwatch(_optIsFirstDataFinish, (newValue) => {\n if (newValue) {\n _emitInit()\n }\n})\n\nwatch(\n () => props.list,\n (newValue) => {\n if (!_optIsFirstDataFinish.value) {\n _optIsFirstDataFinish.value = true\n if (newValue.length === 0) {\n _checkValueInList()\n }\n }\n },\n)\n\nwatch(\n [() => props.list, () => props.value],\n ([newList, newValue], [_oldList, oldValue]) => {\n const list = newList as any[]\n if (!_optIsFirstDataFinish.value && list.length > 0) {\n _optIsFirstDataFinish.value = true\n }\n _convertListToJson(list)\n if (newValue !== oldValue) {\n _setValue(newValue)\n }\n _initRadioDefaultValue()\n _checkValueInList()\n },\n)\n\nonMounted(() => {\n nextTick(() => {\n _initMain()\n })\n})\n\nconst onClickAll = () => {\n if (!props.disabled) {\n const selectIds: string[] = []\n props.list.forEach((info: any) => {\n const id = info.id.toString()\n if (info.isDisabled) {\n if (CommonBase.isExistValue(optTextValue.value, id)) {\n selectIds.push(id)\n }\n } else if (!optAllValue.value) {\n selectIds.push(id)\n }\n })\n const arrValue = _getEffectiveValue(selectIds)\n _emitChange(arrValue)\n }\n}\n\nconst onClickItem = async (item: any) => {\n if (!item.isDisabled && !props.disabled) {\n let type = props.type\n type = CommonBase.isEmpty(item.type) ? type : item.type\n\n const oldSelectValue = CommonBase.getArrClone(optTextValue.value)\n let newSelectValue = []\n const value: string = item.id.toString()\n if (oldSelectValue.length === 0) {\n newSelectValue = [value]\n } else if (type === 'radio') {\n if (CommonBase.isEqualArr(oldSelectValue, [value])) {\n newSelectValue = props.isRadioClickCancel ? [] : oldSelectValue\n } else {\n newSelectValue = [value]\n }\n } else {\n const oldFirstInfo = _listDataToJson[oldSelectValue[0]]\n const oldFirstType = CommonBase.isEmpty(oldFirstInfo.type) ? props.type : oldFirstInfo.type\n if (oldFirstType === 'radio') {\n newSelectValue = [value]\n } else if (CommonBase.isExistValue(oldSelectValue, value)) {\n newSelectValue = CommonBase.getArrRemoveById(oldSelectValue, value)\n } else {\n newSelectValue = oldSelectValue\n newSelectValue.push(value)\n }\n }\n\n let tempCheck: any = true\n if (props.checkChangeBefore) {\n const { value: newVal } = _getValueInfo(newSelectValue)\n const oldInfo = _getValueInfo(oldSelectValue)\n tempCheck = await props.checkChangeBefore(newVal, oldInfo.value)\n tempCheck = CommonBase.isBoolean(tempCheck) ? tempCheck : true\n }\n if (tempCheck) {\n _emitChange(newSelectValue)\n }\n }\n}\n\nconst getValue = () => {\n const values = _getEffectiveValue(optTextValue.value)\n return values.join(',')\n}\nconst getValueData = () => {\n const value = getValue()\n const { info } = _getValueInfo(value.split(','))\n return info\n}\nconst setValue = (value: string) => {\n _setValue(value)\n _initRadioDefaultValue()\n _checkValueInList()\n}\nconst runInitComplete = () => {\n if (!_optIsFirstDataFinish.value) {\n _optIsFirstDataFinish.value = true\n _convertListToJson(props.list)\n _setValue(props.value)\n _initRadioDefaultValue()\n _checkValueInList()\n _emitInit()\n }\n}\n\ndefineExpose({\n getValue,\n getValueData,\n setValue,\n runInitComplete,\n})\n</script>\n"],"names":["props","__props","emit","__emit","optPageLanguage","getPageLanguage","useLanguage","_clGlobals","inject","optBase","reactive","optKeyIndex","CommonBase","optAllValue","ref","_convertValueArr","value","arr","optTextValue","_listAllId","_listDataToJson","_optIsFirstDataFinish","clsParent","computed","className","theme","cls","newTheme","c","styItem","sty","styItemFun","info","_getValueInfo","ids","dataList","v","isAll","_emitModelValue","_emitChange","arrIds","oldSelectValue","oldSelectInfo","_emitInit","nextTick","_initMergeGlobalsOption","opt","_getEffectiveValue","selectValue","effectiveValue","firstInfo","firstType","_convertListToJson","list","id","_checkValueInList","_initRadioDefaultValue","_setValue","arrValue","isEqual","_initMain","watch","newValue","newList","_oldList","oldValue","onMounted","onClickAll","selectIds","onClickItem","item","type","newSelectValue","oldFirstInfo","tempCheck","newVal","oldInfo","getValue","__expose","_createElementBlock","_createElementVNode","_hoisted_1","_normalizeClass","_toDisplayString","_unref","_openBlock","_Fragment","_renderList","stIndex","_normalizeStyle","$event","_renderSlot","_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B,EAAYrC,CAAI;AAAA,QAAA;UAExB2D,GAMOC,EAAA,QAAA,WAAA,EANA,MAAM5D,EAAA,GAAb,MAMO;AAAA,YAJGA,EAAK,eADb+C,EAGQ,QAAA;AAAA;cADN,WAAQ/C,EAAK;AAAA,YAAA,yBAEf+C,EAAmC,QAAAc,IAAAV,EAAnBnD,EAAK,IAAI,GAAA,CAAA;AAAA,UAAA;;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),u=require("../Shared/base-iCmnU-fv.js"),F={key:0,className:"selectTree-inText-num"},E={class:"selectTree-inDropdown-container"},L={class:"selectTree-inDropdown-search"},N={class:"selectTree-inDropdown-body"},P=e.defineComponent({name:"ClSelectTree",__name:"Index",props:{value:[String,Number],list:{type:Array,default:()=>[]},className:String,placeholder:String,classDropDown:String,disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},isClear:{type:Boolean,default:!1},arrowDirection:{type:String,default:"right"},searchPlaceholder:String,searchKey:{type:Array,default:()=>["name"]},searchKeyType:{type:String,default:"||"},showTextFormat:String,showDropDownTextFormat:String,onOpenBefore:Function,isSingleSelectParent:{type:Boolean,default:!1},isOutMerge:{type:Boolean,default:!0},parentKey:{type:String,default:"parentId"},topParentValue:{type:String,default:"0"}},emits:["update:value","onChange","onInit","onOpen"],setup(l,{expose:h,emit:g}){const o=l,s=g,r=e.ref(null),p=e.ref(null),n=e.reactive({isOpen:!1,isFirstDataFinish:!1,selectIds:"",selectLabel:[]}),d={prevSelectIds:[]},D=e.computed(()=>o.arrowDirection),C=e.computed(()=>{let a=["panel-selectTree","box-width"].join(" ");return u.CommonBase.isEmpty(o.className)||(a+=" "+o.className),a}),w=e.computed(()=>{const t=["selectTree-inDropdown"];return o.classDropDown&&!u.CommonBase.isEmpty(o.classDropDown)&&t.push(o.classDropDown),t.join(" ")}),y=t=>{s("update:value",t)},S=(t,a)=>{y(t),s("onChange",t,a)},v=()=>{e.nextTick(()=>{s("onInit")})},x=t=>{e.nextTick(()=>{s("onOpen",t)})},m=()=>{if(!n.isOpen){const t=n.selectIds,a=t.split(",");if(!u.CommonBase.isEqualArr(a,d.prevSelectIds)){d.prevSelectIds=a;const i=p.value.getValueData();S(t,i)}}},f=()=>{n.isFirstDataFinish||(n.isFirstDataFinish=!0,v())},V=()=>{o.list.length>0&&f()};e.watch([()=>o.value,()=>o.list],([t,a],[c,i])=>{t===c&&(n.isFirstDataFinish||f())}),e.onMounted(()=>{e.nextTick(()=>{V()})});const b=t=>{o.disabled||(n.isOpen=t,t?d.prevSelectIds=n.selectIds.split(","):m(),x(t))},B=()=>{o.disabled||(n.selectIds="",m())},I=()=>{r.value&&(r.value.checkCurrentIsOpen()||r.value.initCompleteOpen())},T=()=>{};return h({getValue:()=>n.selectIds,getValueData:()=>p.value.getValueData(),setValue:t=>{n.selectIds=t}}),(t,a)=>{const c=e.resolveComponent("cl-badge"),i=e.resolveComponent("cl-input-search"),O=e.resolveComponent("cl-tree"),k=e.resolveComponent("cl-dropdownlayer-list");return e.openBlock(),e.createBlock(k,{ref_key:"refElDropdownLayer",ref:r,classParent:C.value,classText:"selectTree-inText",classDropDown:w.value,placeholder:l.placeholder,isDisabled:l.disabled,isClear:l.isClear,textLabel:n.selectLabel.join(","),textArrowDirection:D.value,onOpenBeforeCallback:l.onOpenBefore,onOnChangeOpen:b,onOnClear:B},{textExtend:e.withCtx(()=>[l.multiple?(e.openBlock(),e.createElementBlock("span",F,[l.multiple&&n.selectLabel.length>1?(e.openBlock(),e.createBlock(c,{key:0,num:n.selectLabel.length},null,8,["num"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),dropdown:e.withCtx(()=>[e.createElementVNode("div",E,[e.createElementVNode("div",L,[e.createVNode(i,{ref:"refElSearch",onOnChange:T},null,512)]),e.createElementVNode("div",N,[e.createVNode(O,{ref_key:"refElList",ref:p,list:l.list,value:n.selectIds,"onUpdate:value":a[0]||(a[0]=_=>n.selectIds=_),multiple:l.multiple,textFormat:l.showDropDownTextFormat,isSingleSelectParent:l.isSingleSelectParent,parentKey:l.parentKey,topParentValue:l.topParentValue,shrinkColorBg:"transparent",onOnInit:I},null,8,["list","value","multiple","textFormat","isSingleSelectParent","parentKey","topParentValue"])])])]),_:1},8,["classParent","classDropDown","placeholder","isDisabled","isClear","textLabel","textArrowDirection","onOpenBeforeCallback"])}}});module.exports=P;
|
|
2
|
+
//# sourceMappingURL=ClSelectTree.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClSelectTree.cjs","sources":["../../../src/libs/Web/SelectTree/Index.vue"],"sourcesContent":["<template>\n <cl-dropdownlayer-list\n ref=\"refElDropdownLayer\"\n :classParent=\"clsParent\"\n classText=\"selectTree-inText\"\n :classDropDown=\"clsDropdown\"\n :placeholder=\"placeholder\"\n :isDisabled=\"disabled\"\n :isClear=\"isClear\"\n :textLabel=\"optBase.selectLabel.join(',')\"\n :textArrowDirection=\"optArrowDirection\"\n :onOpenBeforeCallback=\"onOpenBefore\"\n @onChangeOpen=\"onToggleOpen\"\n @onClear=\"onClearText\"\n >\n <template v-slot:textExtend>\n <span\n v-if=\"multiple\"\n className=\"selectTree-inText-num\"\n >\n <cl-badge\n v-if=\"multiple && optBase.selectLabel.length>1\"\n :num=\"optBase.selectLabel.length\"\n />\n </span>\n </template>\n <template v-slot:dropdown>\n <div class=\"selectTree-inDropdown-container\">\n <div class=\"selectTree-inDropdown-search\">\n <cl-input-search\n ref=\"refElSearch\"\n @onChange=\"onSearch\"\n />\n </div>\n <div class=\"selectTree-inDropdown-body\">\n <cl-tree\n ref=\"refElList\"\n :list=\"list\"\n v-model:value=\"optBase.selectIds\"\n :multiple=\"multiple\"\n :textFormat=\"showDropDownTextFormat\"\n :isSingleSelectParent=\"isSingleSelectParent\"\n :parentKey=\"parentKey\"\n :topParentValue=\"topParentValue\"\n shrinkColorBg=\"transparent\"\n @onInit=\"onInitComplete\"\n />\n </div>\n </div>\n </template>\n </cl-dropdownlayer-list>\n</template>\n\n<script setup lang=\"ts\">\nimport { onMounted, nextTick, watch, computed, ref, reactive } from 'vue'\nimport CommonBase from '../../Common/base'\nimport './index.css'\n\ndefineOptions({ name: 'ClSelectTree' })\n\nconst props = defineProps({\n value: [String, Number],\n list: {\n type: Array,\n default: () => [],\n },\n className: String,\n placeholder: String,\n classDropDown: String,\n disabled: {\n type: Boolean,\n default: false,\n },\n multiple: {\n type: Boolean,\n default: false,\n },\n isClear: {\n type: Boolean,\n default: false,\n },\n arrowDirection: {\n type: String,\n default: 'right', // left|right\n },\n searchPlaceholder: String,\n searchKey: {\n type: Array,\n default: () => ['name'],\n },\n searchKeyType: {\n type: String,\n default: '||', // || 或者 , && 并且\n },\n showTextFormat: String, // \"${id} ${name}\"\n showDropDownTextFormat: String,\n onOpenBefore: Function,\n isSingleSelectParent: {\n type: Boolean,\n default: false,\n },\n isOutMerge: {\n type: Boolean,\n default: true,\n },\n parentKey: {\n type: String,\n default: 'parentId',\n },\n topParentValue: {\n type: String,\n default: '0',\n },\n})\n\nconst emit = defineEmits(['update:value', 'onChange', 'onInit', 'onOpen'])\n\nconst refElDropdownLayer: any = ref(null)\nconst refElList: any = ref(null)\n\nconst optBase = reactive({\n isOpen: false,\n isFirstDataFinish: false,\n selectIds: '',\n selectLabel: [] as string[],\n})\n\nconst _pageData: any = {\n prevSelectIds: [] as string[],\n}\n\nconst optArrowDirection = computed(() => {\n return props.arrowDirection\n})\n\nconst clsParent = computed(() => {\n const cls = ['panel-selectTree', 'box-width']\n let strCls = cls.join(' ')\n if (!CommonBase.isEmpty(props.className)) {\n strCls += ' ' + props.className\n }\n return strCls\n})\n\nconst clsDropdown = computed(() => {\n const cls = ['selectTree-inDropdown']\n if (props.classDropDown && !CommonBase.isEmpty(props.classDropDown)) {\n cls.push(props.classDropDown)\n }\n return cls.join(' ')\n})\n\nconst _emitModelValue = (value: string) => {\n emit('update:value', value)\n}\n\nconst _emitChange = (value: string, data: any) => {\n _emitModelValue(value)\n emit('onChange', value, data)\n}\n\nconst _emitInit = () => {\n nextTick(() => {\n emit('onInit')\n })\n}\n\nconst _emitOpen = (isOpen: boolean) => {\n nextTick(() => {\n emit('onOpen', isOpen)\n })\n}\n\nconst _checkChangeValue = () => {\n if (!optBase.isOpen) {\n const value = optBase.selectIds\n const arrSelect = value.split(',')\n const isChange = !CommonBase.isEqualArr(arrSelect, _pageData.prevSelectIds)\n if (isChange) {\n _pageData.prevSelectIds = arrSelect\n const infoData = refElList.value.getValueData()\n _emitChange(value, infoData)\n }\n }\n}\n\nconst _initComplete = () => {\n if (!optBase.isFirstDataFinish) {\n optBase.isFirstDataFinish = true\n _emitInit()\n }\n}\n\nconst _initMain = () => {\n if (props.list.length > 0) {\n _initComplete()\n }\n}\n\nwatch(\n [() => props.value, () => props.list],\n ([newValue, _newList], [oldValue, _oldList]) => {\n if (newValue === oldValue) {\n if (!optBase.isFirstDataFinish) {\n _initComplete()\n }\n }\n },\n)\n\nonMounted(() => {\n nextTick(() => {\n _initMain()\n })\n})\n\nconst onToggleOpen = (value: boolean) => {\n if (!props.disabled) {\n optBase.isOpen = value\n if (value) {\n _pageData.prevSelectIds = optBase.selectIds.split(',')\n } else {\n _checkChangeValue()\n }\n _emitOpen(value)\n }\n}\n\nconst onClearText = () => {\n if (!props.disabled) {\n optBase.selectIds = ''\n _checkChangeValue()\n }\n}\n\nconst onInitComplete = () => {\n if (refElDropdownLayer.value) {\n if (!refElDropdownLayer.value.checkCurrentIsOpen()) {\n refElDropdownLayer.value.initCompleteOpen()\n }\n }\n}\n\nconst onSearch = () => {}\n\nconst getValue = () => {\n return optBase.selectIds\n}\n\nconst getValueData = () => {\n return refElList.value.getValueData()\n}\n\nconst setValue = (value: string) => {\n optBase.selectIds = value\n}\n\ndefineExpose({\n getValue,\n getValueData,\n setValue,\n})\n</script>\n"],"names":["props","__props","emit","__emit","refElDropdownLayer","ref","refElList","optBase","reactive","_pageData","optArrowDirection","computed","clsParent","strCls","CommonBase","clsDropdown","cls","_emitModelValue","value","_emitChange","data","_emitInit","nextTick","_emitOpen","isOpen","_checkChangeValue","arrSelect","infoData","_initComplete","_initMain","watch","newValue","_newList","oldValue","_oldList","onMounted","onToggleOpen","onClearText","onInitComplete","onSearch","__expose","_createBlock","_component_cl_dropdownlayer_list","_openBlock","_createElementBlock","_hoisted_1","_component_cl_badge","_createElementVNode","_hoisted_2","_hoisted_3","_createVNode","_component_cl_input_search","_hoisted_4","_component_cl_tree","_cache","$event"],"mappings":"w+BA4DA,MAAMA,EAAQC,EAuDRC,EAAOC,EAEPC,EAA0BC,EAAAA,IAAI,IAAI,EAClCC,EAAiBD,EAAAA,IAAI,IAAI,EAEzBE,EAAUC,EAAAA,SAAS,CACvB,OAAQ,GACR,kBAAmB,GACnB,UAAW,GACX,YAAa,CAAA,CAAC,CACf,EAEKC,EAAiB,CACrB,cAAe,CAAA,CAAC,EAGZC,EAAoBC,EAAAA,SAAS,IAC1BX,EAAM,cACd,EAEKY,EAAYD,EAAAA,SAAS,IAAM,CAE/B,IAAIE,EADQ,CAAC,mBAAoB,WAAW,EAC3B,KAAK,GAAG,EACzB,OAAKC,EAAAA,WAAW,QAAQd,EAAM,SAAS,IACrCa,GAAU,IAAMb,EAAM,WAEjBa,CACT,CAAC,EAEKE,EAAcJ,EAAAA,SAAS,IAAM,CACjC,MAAMK,EAAM,CAAC,uBAAuB,EACpC,OAAIhB,EAAM,eAAiB,CAACc,EAAAA,WAAW,QAAQd,EAAM,aAAa,GAChEgB,EAAI,KAAKhB,EAAM,aAAa,EAEvBgB,EAAI,KAAK,GAAG,CACrB,CAAC,EAEKC,EAAmBC,GAAkB,CACzChB,EAAK,eAAgBgB,CAAK,CAC5B,EAEMC,EAAc,CAACD,EAAeE,IAAc,CAChDH,EAAgBC,CAAK,EACrBhB,EAAK,WAAYgB,EAAOE,CAAI,CAC9B,EAEMC,EAAY,IAAM,CACtBC,EAAAA,SAAS,IAAM,CACbpB,EAAK,QAAQ,CACf,CAAC,CACH,EAEMqB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,aAAA,EAUvB,SAPgBY,GAAkB,CAClCX,EAAQ,UAAYW,CACtB,CAKE,CACD,4LApQCuB,EAAAA,YAiDwBC,EAAA,SAhDlB,qBAAJ,IAAItC,EACH,YAAaQ,EAAA,MACd,UAAU,oBACT,cAAeG,EAAA,MACf,YAAad,EAAA,YACb,WAAYA,EAAA,SACZ,QAASA,EAAA,QACT,UAAWM,EAAQ,YAAY,KAAI,GAAA,EACnC,mBAAoBG,EAAA,MACpB,qBAAsBT,EAAA,aACtB,eAAcmC,EACd,UAASC,CAAA,GAEO,qBACf,IAQO,CAPCpC,EAAA,UADR0C,EAAAA,UAAA,EAAAC,EAAAA,mBAQO,OARPC,EAQO,CAHG5C,EAAA,UAAYM,EAAQ,YAAY,OAAM,iBAD9CkC,EAAAA,YAGEK,EAAA,OADC,IAAKvC,EAAQ,YAAY,MAAA,gFAIf,mBACf,IAqBM,CArBNwC,EAAAA,mBAqBM,MArBNC,EAqBM,CApBJD,EAAAA,mBAKM,MALNE,EAKM,CAJJC,EAAAA,YAGEC,EAAA,CAFA,IAAI,cACH,WAAUZ,CAAA,cAGfQ,EAAAA,mBAaM,MAbNK,EAaM,CAZJF,EAAAA,YAWEG,EAAA,SAVI,YAAJ,IAAI/C,EACH,KAAML,EAAA,KACC,MAAOM,EAAQ,UAAR,iBAAA+C,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GAAAhD,EAAQ,UAASgD,GAC/B,SAAUtD,EAAA,SACV,WAAYA,EAAA,uBACZ,qBAAsBA,EAAA,qBACtB,UAAWA,EAAA,UACX,eAAgBA,EAAA,eACjB,cAAc,cACb,SAAQqC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.selectTree-inDropdown .selectTree-inDropdown-body{position:relative;max-height:210px;overflow-y:auto;overflow-x:hidden;padding-bottom:2px}.selectTree-inText .select-inText-num{display:inherit}.selectTree-inText .select-inText-num:empty{display:none}.selectTree-inText .select-inText-num>.badge{background-color:#cfcfcf!important;cursor:pointer;margin-left:5px;margin-bottom:1px}.panel-selectTree .dropdownLayer-disabled .selectTree-inText .selectTree-inText-num{cursor:no-drop}.selectTree-inDropdown .selectTree-inDropdown-search{padding:4px;position:relative;width:100%}.selectTree-inDropdown .selectTree-inDropdown-search>.panel-input-search{width:100%}.selectTree-inDropdown .selectTree-inDropdown-search>.panel-input-search .panel-input{width:auto}.selectTree-inDropdown .selectTree-inDropdown-search .form-control{width:100%;height:30px;line-height:30px;padding:4px 22px 4px 4px}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { defineComponent as q, ref as w, reactive as U, computed as u, watch as z, onMounted as G, nextTick as m, resolveComponent as c, openBlock as f, createBlock as C, withCtx as S, createElementVNode as h, createVNode as v, createElementBlock as H, createCommentVNode as x } from "vue";
|
|
2
|
+
import { C as g } from "../Shared/base-PQGakkrl.js";
|
|
3
|
+
const J = {
|
|
4
|
+
key: 0,
|
|
5
|
+
className: "selectTree-inText-num"
|
|
6
|
+
}, Q = { class: "selectTree-inDropdown-container" }, R = { class: "selectTree-inDropdown-search" }, W = { class: "selectTree-inDropdown-body" }, te = /* @__PURE__ */ q({
|
|
7
|
+
name: "ClSelectTree",
|
|
8
|
+
__name: "Index",
|
|
9
|
+
props: {
|
|
10
|
+
value: [String, Number],
|
|
11
|
+
list: {
|
|
12
|
+
type: Array,
|
|
13
|
+
default: () => []
|
|
14
|
+
},
|
|
15
|
+
className: String,
|
|
16
|
+
placeholder: String,
|
|
17
|
+
classDropDown: String,
|
|
18
|
+
disabled: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
},
|
|
22
|
+
multiple: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
isClear: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !1
|
|
29
|
+
},
|
|
30
|
+
arrowDirection: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "right"
|
|
33
|
+
// left|right
|
|
34
|
+
},
|
|
35
|
+
searchPlaceholder: String,
|
|
36
|
+
searchKey: {
|
|
37
|
+
type: Array,
|
|
38
|
+
default: () => ["name"]
|
|
39
|
+
},
|
|
40
|
+
searchKeyType: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: "||"
|
|
43
|
+
// || 或者 , && 并且
|
|
44
|
+
},
|
|
45
|
+
showTextFormat: String,
|
|
46
|
+
// "${id} ${name}"
|
|
47
|
+
showDropDownTextFormat: String,
|
|
48
|
+
onOpenBefore: Function,
|
|
49
|
+
isSingleSelectParent: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: !1
|
|
52
|
+
},
|
|
53
|
+
isOutMerge: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: !0
|
|
56
|
+
},
|
|
57
|
+
parentKey: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: "parentId"
|
|
60
|
+
},
|
|
61
|
+
topParentValue: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: "0"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
emits: ["update:value", "onChange", "onInit", "onOpen"],
|
|
67
|
+
setup(n, { expose: I, emit: b }) {
|
|
68
|
+
const l = n, s = b, o = w(null), p = w(null), t = U({
|
|
69
|
+
isOpen: !1,
|
|
70
|
+
isFirstDataFinish: !1,
|
|
71
|
+
selectIds: "",
|
|
72
|
+
selectLabel: []
|
|
73
|
+
}), d = {
|
|
74
|
+
prevSelectIds: []
|
|
75
|
+
}, O = u(() => l.arrowDirection), T = u(() => {
|
|
76
|
+
let a = ["panel-selectTree", "box-width"].join(" ");
|
|
77
|
+
return g.isEmpty(l.className) || (a += " " + l.className), a;
|
|
78
|
+
}), V = u(() => {
|
|
79
|
+
const e = ["selectTree-inDropdown"];
|
|
80
|
+
return l.classDropDown && !g.isEmpty(l.classDropDown) && e.push(l.classDropDown), e.join(" ");
|
|
81
|
+
}), B = (e) => {
|
|
82
|
+
s("update:value", e);
|
|
83
|
+
}, _ = (e, a) => {
|
|
84
|
+
B(e), s("onChange", e, a);
|
|
85
|
+
}, F = () => {
|
|
86
|
+
m(() => {
|
|
87
|
+
s("onInit");
|
|
88
|
+
});
|
|
89
|
+
}, k = (e) => {
|
|
90
|
+
m(() => {
|
|
91
|
+
s("onOpen", e);
|
|
92
|
+
});
|
|
93
|
+
}, D = () => {
|
|
94
|
+
if (!t.isOpen) {
|
|
95
|
+
const e = t.selectIds, a = e.split(",");
|
|
96
|
+
if (!g.isEqualArr(a, d.prevSelectIds)) {
|
|
97
|
+
d.prevSelectIds = a;
|
|
98
|
+
const i = p.value.getValueData();
|
|
99
|
+
_(e, i);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}, y = () => {
|
|
103
|
+
t.isFirstDataFinish || (t.isFirstDataFinish = !0, F());
|
|
104
|
+
}, L = () => {
|
|
105
|
+
l.list.length > 0 && y();
|
|
106
|
+
};
|
|
107
|
+
z(
|
|
108
|
+
[() => l.value, () => l.list],
|
|
109
|
+
([e, a], [r, i]) => {
|
|
110
|
+
e === r && (t.isFirstDataFinish || y());
|
|
111
|
+
}
|
|
112
|
+
), G(() => {
|
|
113
|
+
m(() => {
|
|
114
|
+
L();
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
const P = (e) => {
|
|
118
|
+
l.disabled || (t.isOpen = e, e ? d.prevSelectIds = t.selectIds.split(",") : D(), k(e));
|
|
119
|
+
}, E = () => {
|
|
120
|
+
l.disabled || (t.selectIds = "", D());
|
|
121
|
+
}, N = () => {
|
|
122
|
+
o.value && (o.value.checkCurrentIsOpen() || o.value.initCompleteOpen());
|
|
123
|
+
}, A = () => {
|
|
124
|
+
};
|
|
125
|
+
return I({
|
|
126
|
+
getValue: () => t.selectIds,
|
|
127
|
+
getValueData: () => p.value.getValueData(),
|
|
128
|
+
setValue: (e) => {
|
|
129
|
+
t.selectIds = e;
|
|
130
|
+
}
|
|
131
|
+
}), (e, a) => {
|
|
132
|
+
const r = c("cl-badge"), i = c("cl-input-search"), K = c("cl-tree"), M = c("cl-dropdownlayer-list");
|
|
133
|
+
return f(), C(M, {
|
|
134
|
+
ref_key: "refElDropdownLayer",
|
|
135
|
+
ref: o,
|
|
136
|
+
classParent: T.value,
|
|
137
|
+
classText: "selectTree-inText",
|
|
138
|
+
classDropDown: V.value,
|
|
139
|
+
placeholder: n.placeholder,
|
|
140
|
+
isDisabled: n.disabled,
|
|
141
|
+
isClear: n.isClear,
|
|
142
|
+
textLabel: t.selectLabel.join(","),
|
|
143
|
+
textArrowDirection: O.value,
|
|
144
|
+
onOpenBeforeCallback: n.onOpenBefore,
|
|
145
|
+
onOnChangeOpen: P,
|
|
146
|
+
onOnClear: E
|
|
147
|
+
}, {
|
|
148
|
+
textExtend: S(() => [
|
|
149
|
+
n.multiple ? (f(), H("span", J, [
|
|
150
|
+
n.multiple && t.selectLabel.length > 1 ? (f(), C(r, {
|
|
151
|
+
key: 0,
|
|
152
|
+
num: t.selectLabel.length
|
|
153
|
+
}, null, 8, ["num"])) : x("", !0)
|
|
154
|
+
])) : x("", !0)
|
|
155
|
+
]),
|
|
156
|
+
dropdown: S(() => [
|
|
157
|
+
h("div", Q, [
|
|
158
|
+
h("div", R, [
|
|
159
|
+
v(i, {
|
|
160
|
+
ref: "refElSearch",
|
|
161
|
+
onOnChange: A
|
|
162
|
+
}, null, 512)
|
|
163
|
+
]),
|
|
164
|
+
h("div", W, [
|
|
165
|
+
v(K, {
|
|
166
|
+
ref_key: "refElList",
|
|
167
|
+
ref: p,
|
|
168
|
+
list: n.list,
|
|
169
|
+
value: t.selectIds,
|
|
170
|
+
"onUpdate:value": a[0] || (a[0] = (j) => t.selectIds = j),
|
|
171
|
+
multiple: n.multiple,
|
|
172
|
+
textFormat: n.showDropDownTextFormat,
|
|
173
|
+
isSingleSelectParent: n.isSingleSelectParent,
|
|
174
|
+
parentKey: n.parentKey,
|
|
175
|
+
topParentValue: n.topParentValue,
|
|
176
|
+
shrinkColorBg: "transparent",
|
|
177
|
+
onOnInit: N
|
|
178
|
+
}, null, 8, ["list", "value", "multiple", "textFormat", "isSingleSelectParent", "parentKey", "topParentValue"])
|
|
179
|
+
])
|
|
180
|
+
])
|
|
181
|
+
]),
|
|
182
|
+
_: 1
|
|
183
|
+
}, 8, ["classParent", "classDropDown", "placeholder", "isDisabled", "isClear", "textLabel", "textArrowDirection", "onOpenBeforeCallback"]);
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
export {
|
|
188
|
+
te as default
|
|
189
|
+
};
|
|
190
|
+
//# sourceMappingURL=ClSelectTree.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClSelectTree.js","sources":["../../../src/libs/Web/SelectTree/Index.vue"],"sourcesContent":["<template>\n <cl-dropdownlayer-list\n ref=\"refElDropdownLayer\"\n :classParent=\"clsParent\"\n classText=\"selectTree-inText\"\n :classDropDown=\"clsDropdown\"\n :placeholder=\"placeholder\"\n :isDisabled=\"disabled\"\n :isClear=\"isClear\"\n :textLabel=\"optBase.selectLabel.join(',')\"\n :textArrowDirection=\"optArrowDirection\"\n :onOpenBeforeCallback=\"onOpenBefore\"\n @onChangeOpen=\"onToggleOpen\"\n @onClear=\"onClearText\"\n >\n <template v-slot:textExtend>\n <span\n v-if=\"multiple\"\n className=\"selectTree-inText-num\"\n >\n <cl-badge\n v-if=\"multiple && optBase.selectLabel.length>1\"\n :num=\"optBase.selectLabel.length\"\n />\n </span>\n </template>\n <template v-slot:dropdown>\n <div class=\"selectTree-inDropdown-container\">\n <div class=\"selectTree-inDropdown-search\">\n <cl-input-search\n ref=\"refElSearch\"\n @onChange=\"onSearch\"\n />\n </div>\n <div class=\"selectTree-inDropdown-body\">\n <cl-tree\n ref=\"refElList\"\n :list=\"list\"\n v-model:value=\"optBase.selectIds\"\n :multiple=\"multiple\"\n :textFormat=\"showDropDownTextFormat\"\n :isSingleSelectParent=\"isSingleSelectParent\"\n :parentKey=\"parentKey\"\n :topParentValue=\"topParentValue\"\n shrinkColorBg=\"transparent\"\n @onInit=\"onInitComplete\"\n />\n </div>\n </div>\n </template>\n </cl-dropdownlayer-list>\n</template>\n\n<script setup lang=\"ts\">\nimport { onMounted, nextTick, watch, computed, ref, reactive } from 'vue'\nimport CommonBase from '../../Common/base'\nimport './index.css'\n\ndefineOptions({ name: 'ClSelectTree' })\n\nconst props = defineProps({\n value: [String, Number],\n list: {\n type: Array,\n default: () => [],\n },\n className: String,\n placeholder: String,\n classDropDown: String,\n disabled: {\n type: Boolean,\n default: false,\n },\n multiple: {\n type: Boolean,\n default: false,\n },\n isClear: {\n type: Boolean,\n default: false,\n },\n arrowDirection: {\n type: String,\n default: 'right', // left|right\n },\n searchPlaceholder: String,\n searchKey: {\n type: Array,\n default: () => ['name'],\n },\n searchKeyType: {\n type: String,\n default: '||', // || 或者 , && 并且\n },\n showTextFormat: String, // \"${id} ${name}\"\n showDropDownTextFormat: String,\n onOpenBefore: Function,\n isSingleSelectParent: {\n type: Boolean,\n default: false,\n },\n isOutMerge: {\n type: Boolean,\n default: true,\n },\n parentKey: {\n type: String,\n default: 'parentId',\n },\n topParentValue: {\n type: String,\n default: '0',\n },\n})\n\nconst emit = defineEmits(['update:value', 'onChange', 'onInit', 'onOpen'])\n\nconst refElDropdownLayer: any = ref(null)\nconst refElList: any = ref(null)\n\nconst optBase = reactive({\n isOpen: false,\n isFirstDataFinish: false,\n selectIds: '',\n selectLabel: [] as string[],\n})\n\nconst _pageData: any = {\n prevSelectIds: [] as string[],\n}\n\nconst optArrowDirection = computed(() => {\n return props.arrowDirection\n})\n\nconst clsParent = computed(() => {\n const cls = ['panel-selectTree', 'box-width']\n let strCls = cls.join(' ')\n if (!CommonBase.isEmpty(props.className)) {\n strCls += ' ' + props.className\n }\n return strCls\n})\n\nconst clsDropdown = computed(() => {\n const cls = ['selectTree-inDropdown']\n if (props.classDropDown && !CommonBase.isEmpty(props.classDropDown)) {\n cls.push(props.classDropDown)\n }\n return cls.join(' ')\n})\n\nconst _emitModelValue = (value: string) => {\n emit('update:value', value)\n}\n\nconst _emitChange = (value: string, data: any) => {\n _emitModelValue(value)\n emit('onChange', value, data)\n}\n\nconst _emitInit = () => {\n nextTick(() => {\n emit('onInit')\n })\n}\n\nconst _emitOpen = (isOpen: boolean) => {\n nextTick(() => {\n emit('onOpen', isOpen)\n })\n}\n\nconst _checkChangeValue = () => {\n if (!optBase.isOpen) {\n const value = optBase.selectIds\n const arrSelect = value.split(',')\n const isChange = !CommonBase.isEqualArr(arrSelect, _pageData.prevSelectIds)\n if (isChange) {\n _pageData.prevSelectIds = arrSelect\n const infoData = refElList.value.getValueData()\n _emitChange(value, infoData)\n }\n }\n}\n\nconst _initComplete = () => {\n if (!optBase.isFirstDataFinish) {\n optBase.isFirstDataFinish = true\n _emitInit()\n }\n}\n\nconst _initMain = () => {\n if (props.list.length > 0) {\n _initComplete()\n }\n}\n\nwatch(\n [() => props.value, () => props.list],\n ([newValue, _newList], [oldValue, _oldList]) => {\n if (newValue === oldValue) {\n if (!optBase.isFirstDataFinish) {\n _initComplete()\n }\n }\n },\n)\n\nonMounted(() => {\n nextTick(() => {\n _initMain()\n })\n})\n\nconst onToggleOpen = (value: boolean) => {\n if (!props.disabled) {\n optBase.isOpen = value\n if (value) {\n _pageData.prevSelectIds = optBase.selectIds.split(',')\n } else {\n _checkChangeValue()\n }\n _emitOpen(value)\n }\n}\n\nconst onClearText = () => {\n if (!props.disabled) {\n optBase.selectIds = ''\n _checkChangeValue()\n }\n}\n\nconst onInitComplete = () => {\n if (refElDropdownLayer.value) {\n if (!refElDropdownLayer.value.checkCurrentIsOpen()) {\n refElDropdownLayer.value.initCompleteOpen()\n }\n }\n}\n\nconst onSearch = () => {}\n\nconst getValue = () => {\n return optBase.selectIds\n}\n\nconst getValueData = () => {\n return refElList.value.getValueData()\n}\n\nconst setValue = (value: string) => {\n optBase.selectIds = value\n}\n\ndefineExpose({\n getValue,\n getValueData,\n setValue,\n})\n</script>\n"],"names":["props","__props","emit","__emit","refElDropdownLayer","ref","refElList","optBase","reactive","_pageData","optArrowDirection","computed","clsParent","strCls","CommonBase","clsDropdown","cls","_emitModelValue","value","_emitChange","data","_emitInit","nextTick","_emitOpen","isOpen","_checkChangeValue","arrSelect","infoData","_initComplete","_initMain","watch","newValue","_newList","oldValue","_oldList","onMounted","onToggleOpen","onClearText","onInitComplete","onSearch","__expose","_createBlock","_component_cl_dropdownlayer_list","_openBlock","_createElementBlock","_hoisted_1","_component_cl_badge","_createElementVNode","_hoisted_2","_hoisted_3","_createVNode","_component_cl_input_search","_hoisted_4","_component_cl_tree","_cache","$event"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DA,UAAMA,IAAQC,GAuDRC,IAAOC,GAEPC,IAA0BC,EAAI,IAAI,GAClCC,IAAiBD,EAAI,IAAI,GAEzBE,IAAUC,EAAS;AAAA,MACvB,QAAQ;AAAA,MACR,mBAAmB;AAAA,MACnB,WAAW;AAAA,MACX,aAAa,CAAA;AAAA,IAAC,CACf,GAEKC,IAAiB;AAAA,MACrB,eAAe,CAAA;AAAA,IAAC,GAGZC,IAAoBC,EAAS,MAC1BX,EAAM,cACd,GAEKY,IAAYD,EAAS,MAAM;AAE/B,UAAIE,IADQ,CAAC,oBAAoB,WAAW,EAC3B,KAAK,GAAG;AACzB,aAAKC,EAAW,QAAQd,EAAM,SAAS,MACrCa,KAAU,MAAMb,EAAM,YAEjBa;AAAA,IACT,CAAC,GAEKE,IAAcJ,EAAS,MAAM;AACjC,YAAMK,IAAM,CAAC,uBAAuB;AACpC,aAAIhB,EAAM,iBAAiB,CAACc,EAAW,QAAQd,EAAM,aAAa,KAChEgB,EAAI,KAAKhB,EAAM,aAAa,GAEvBgB,EAAI,KAAK,GAAG;AAAA,IACrB,CAAC,GAEKC,IAAkB,CAACC,MAAkB;AACzC,MAAAhB,EAAK,gBAAgBgB,CAAK;AAAA,IAC5B,GAEMC,IAAc,CAACD,GAA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;AAAA,gBAAJ,KAAI/C;AAAA,gBACH,MAAML,EAAA;AAAA,gBACC,OAAOM,EAAQ;AAAA,gBAAR,kBAAA+C,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAAAhD,EAAQ,YAASgD;AAAA,gBAC/B,UAAUtD,EAAA;AAAA,gBACV,YAAYA,EAAA;AAAA,gBACZ,sBAAsBA,EAAA;AAAA,gBACtB,WAAWA,EAAA;AAAA,gBACX,gBAAgBA,EAAA;AAAA,gBACjB,eAAc;AAAA,gBACb,UAAQqC;AAAA,cAAA;;;;;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),t=require("../Shared/base-iCmnU-fv.js"),Y=require("../Shared/List.vue_vue_type_script_setup_true_lang-Dr6PppOP.js"),Q=require("../Shared/index-Ul6uY51t.js"),X=require("../Shared/language-D6gRWx8H.js"),Z=["onClick"],ee=["innerHTML"],te=e.defineComponent({name:"ClSelectmoveSearchUl",__name:"SearchTree",props:{list:{type:Array,default:()=>[]}},emits:["onClick"],setup(g,{emit:H}){const l=H,u=e.inject("$SelectmoveTop"),v=e.ref(`selectmove-search-tree-${u.keyIndex}`),M=c=>{l("onClick",c.toString())},o=c=>{M(c)},T=c=>{M(c)};return(c,k)=>{const I=e.resolveComponent("cl-checkbox-one"),D=e.resolveComponent("ClSelectmoveSearchUl");return e.openBlock(),e.createElementBlock("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.list,(L,$)=>(e.openBlock(),e.createElementBlock("li",{key:`${v.value}-${$}`},[e.createElementVNode("a",{href:"javascript:",tabindex:"-1",class:e.normalizeClass({"tree-hig":L.isHig,"tree-active":L.isSelected}),onClick:e.withModifiers(O=>o(L.id),["prevent","stop"])},[e.createVNode(I,{value:L.isSelected,indeterminate:L.isIndeterminate},null,8,["value","indeterminate"]),e.createElementVNode("span",{class:"tree-text",innerHTML:L.showTextLabel},null,8,ee)],10,Z),L.list.length>0?(e.openBlock(),e.createBlock(D,{key:0,list:L.list,onOnClick:T},null,8,["list"])):e.createCommentVNode("",!0)]))),128))])}}}),ne={class:"selectmove-search-list"},se={key:1},oe={class:"selectmove-search-empty"},le=e.defineComponent({name:"ClSelectmoveSearch",__name:"Search",props:{isDisabled:Boolean,placeholder:String,width:Number,searchKey:{type:Array,default:()=>["name"]},searchKeyType:{type:String,default:"||"},searchIsMultiple:{type:Boolean,default:!1},searchMultipleJoin:{type:String,default:","},searchTextFormat:[String,Array],selectId:{type:Array,default:()=>[]},parentKey:{type:String,default:"parentId"},topParentValue:{type:String,default:"0"}},emits:["onChange"],setup(g,{emit:H}){const l=g,u=H,{optPageLanguage:v,getPageLanguage:M}=X.useLanguage();M("common");const o=e.inject("$SelectmoveTop"),T=e.inject("$SelectmoveBase"),c=e.reactive({keyIndex:`selectmove-search-${o.keyIndex}`,isOpen:!1,isInitSelect:!1}),k=e.ref([]),I=e.ref([]),D={jsonSelectIds:{},jsonSelectHalfIds:[]},L=e.computed(()=>({"selectmove-search-input":!0,"selectmove-search-open":c.isOpen})),$=e.computed(()=>({"selectmove-search-dropdown":!0,"selectmove-search-open":c.isOpen})),O=e.computed(()=>{const r={};return l.width&&l.width>0&&(r.width=`${l.width}px`),r}),j=()=>{u("onChange",I.value.join(","))},m=()=>{c.isOpen=!1,k.value=[]},i=r=>{const d=T.convertSelectHalf(r);I.value=r,D.jsonSelectHalfIds=t.CommonBase.getArrConvertJson(d),D.jsonSelectIds=t.CommonBase.getArrConvertJson(r)},S=r=>{const d=[],x=r.toLowerCase(),E=l.searchIsMultiple?x.split(l.searchMultipleJoin):[x],_=l.searchKey.length,V=l.searchKey;return o.getDataList().forEach(w=>{const N=w.id.toString(),A=[];for(let q=0;q<_;q++){const n=w[V[q]].toLowerCase();for(let h=0;h<E.length;h++)E[h].length>0&&n.indexOf(E[h])>-1&&A.push(!0)}if(A.length>0)switch(l.searchKeyType){case"||":d.push(N);break;case"&&":A.length===_&&d.push(N);break}}),d},C=(r,d,x,E)=>{const _=[];return t.CommonBase.isExistJsonKey(d,r)&&d[r].forEach(V=>{const w=t.CommonBase.getJsonClone(o.getDataInfo(V));let N=w.name;const A=l.searchTextFormat;if(A&&A.length>0){let h="";t.CommonBase.isArray(A)?A.length>x&&(h=A[x]):t.CommonBase.isString(A)&&(h=A),t.CommonBase.isEmpty(h)||(N=t.CommonBase.convertStringFormat(h,w))}w.showTextLabel=N;let q=!1,n=t.CommonBase.isExistJsonKey(d,V);n?w.list=C(V,d,++x,E):(q=!0,w.list=[],o.getDataGroup(V).length>0&&(n=!0,q=!1)),w.isIndeterminate=t.CommonBase.isExistJsonKey(D.jsonSelectHalfIds,V),w.isSelected=t.CommonBase.isExistJsonKey(D.jsonSelectIds,V),w.isChild=n,w.isLast=q,w.treeLevel=x,w.isHig=t.CommonBase.isExistJsonKey(E,V),_.push(w)}),_},y=r=>{const{parentKey:d,topParentValue:x}=l,E={};let _=[];r.forEach(w=>{E[w]=!0;const N=T.getParentIds(w);_.push(...N),_.push(w)}),_=t.CommonBase.getArrUnique(_);const V={};return _.forEach(w=>{const N=o.getDataInfo(w)[d].toString(),A=N===x?o.getTopParentValue():N;t.CommonBase.isExistJsonKey(V,A)||(V[A]=[]),V[A].push(w)}),C(o.getTopParentValue(),V,0,E)},s=r=>{if(t.CommonBase.isEmpty(r))m();else{if(c.isInitSelect&&(c.isInitSelect=!1,!t.CommonBase.isEqualArr(l.selectId,I.value))){const _=T.convertSelectedValue(l.selectId,!0,[]);i(_)}const d=S(r),x=y(d);k.value=x,c.isOpen=!0}},a=r=>{const d=[];return r.forEach(x=>{const E=t.CommonBase.getJsonClone(x),_=E.id.toString();E.isIndeterminate=t.CommonBase.isExistJsonKey(D.jsonSelectHalfIds,_),E.isSelected=t.CommonBase.isExistJsonKey(D.jsonSelectIds,_),E.list&&E.list.length>0&&(E.list=a(E.list)),d.push(E)}),d},f=r=>{if(c.isOpen){const d=Q.CommonElement.getParent(r.target,".selectmove-search");t.CommonBase.isUndefined(d)&&(c.isOpen=!1)}};e.watch(()=>c.isOpen,r=>{r?document.body.addEventListener("click",f):document.body.removeEventListener("click",f)}),e.watch(()=>l.selectId,()=>{c.isInitSelect=!0}),e.onMounted(()=>{e.nextTick(()=>{})});const p=r=>{s(r)},b=r=>{c.isOpen||s(r)},B=r=>{const d=t.CommonBase.isExistJsonKey(D.jsonSelectIds,r),x=T.convertSelectedValue(r,!d,I.value);i(x);const E=a(k.value);k.value=[],e.nextTick(()=>{k.value=E}),j()};return(r,d)=>{const x=e.resolveComponent("cl-input-search");return e.openBlock(),e.createElementBlock("div",{class:"selectmove-search",style:e.normalizeStyle(O.value)},[e.createElementVNode("div",{class:e.normalizeClass(L.value)},[e.createVNode(x,{placeholder:g.placeholder,disabled:g.isDisabled,changDelayTime:1e3,onOnChange:p,onOnFocus:b},null,8,["placeholder","disabled"])],2),c.isOpen?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass($.value)},[e.createElementVNode("div",ne,[k.value.length>0?(e.openBlock(),e.createBlock(te,{key:0,list:k.value,onOnClick:B},null,8,["list"])):(e.openBlock(),e.createElementBlock("ul",se,[e.createElementVNode("li",oe,e.toDisplayString(e.unref(v).noResultsText),1)]))])],2)):e.createCommentVNode("",!0)],4)}}}),ae={class:"selectmove-tree"},ce={class:"selectmove-tree-head"},re={class:"selectmove-tree-head-title"},ie={class:"selectmove-tree-body"},de=["onClick"],ue=["innerHTML"],me={key:0,class:"clIconFont clIcon-angle-right sub-icon"},he=e.defineComponent({name:"ClSelectmoveTree",__name:"Tree",props:{isDisabled:Boolean,maxWidth:Number,width:Number,treeTitle:{type:Array,default:()=>[]},treeShowMinLevel:{type:Number,default:1},treeTextFormat:[String,Array],selectId:{type:Array,default:()=>[]},dataRefreshIndex:Number},emits:["onChange"],setup(g,{emit:H}){const l=g,u=H,v=e.inject("$SelectmoveTop"),M=e.inject("$SelectmoveBase"),o=e.reactive({keyIndex:`selectmove-tree-${v.keyIndex}`,selectIds:[],HalfSelectIds:[],openActiveId:[]}),T=e.ref([]),c=()=>{u("onChange",o.selectIds.join(","))},k=s=>{let a=0;const f=v.getDataGroup(s);if(f.length>0){const p=[],b=[];f.forEach(B=>{const r=B.id.toString();t.CommonBase.isExistValue(o.selectIds,r)&&p.push(r),t.CommonBase.isExistValue(o.HalfSelectIds,r)&&b.push(r)}),(b.length>0||p.length>0)&&(a=2),p.length>0&&p.length===f.length&&(a=1)}return a},I=(s,a,f)=>{const p={idx:s,pId:a,title:l.treeTitle.length>s?l.treeTitle[s]:f,list:[],checkAll:0,sty:{}};if(l.width&&l.maxWidth&&l.width>0){let b=l.width-3;const B=l.maxWidth/l.width;s+1>=B&&(b+=3),p.sty.width=`${b}px`}if(!t.CommonBase.isEmpty(a)){const b=v.getDataGroup(a);b.length>0&&(p.list=b.map(B=>{const r=B.id.toString(),d=t.CommonBase.getJsonClone(B);d.selected=t.CommonBase.isExistValue(o.selectIds,r),d.indeterminate=t.CommonBase.isExistValue(o.HalfSelectIds,r),d.isActive=t.CommonBase.isExistValue(o.openActiveId,r);const x=v.getDataGroup(r);d._childCount=x.length,d.isSub=d._childCount>0;let E=B.name;const _=l.treeTextFormat;if(_&&_.length>0){let V="";t.CommonBase.isArray(_)?_.length>s&&(V=_[s]):t.CommonBase.isString(_)&&(V=_),t.CommonBase.isEmpty(V)||(E=t.CommonBase.convertStringFormat(V,d))}return d.showTextLabel=E,d})),p.checkAll=k(a)}return p},D=s=>{const a=M.convertSelectedValue(s,!0,[]),f=M.convertSelectHalf(a);o.selectIds=a,o.HalfSelectIds=f},L=(s,a)=>{const f=[];T.value.forEach((p,b)=>{b<=s&&f.push(I(p.idx,p.pId,p.title))}),v.getDataGroup(a).length>0&&f.push(I(s+1,a,v.getDataInfo(a).name)),T.value=f},$=(s,a)=>{const f=s.id.toString(),p=t.CommonBase.getArrClone(o.openActiveId);p.splice(a),p.push(f),o.openActiveId=p,L(a,f)},O=(s,a)=>{const f=M.convertSelectedValue(s,a,o.selectIds),p=M.convertSelectHalf(f);o.selectIds=f,o.HalfSelectIds=p,T.value=T.value.map(b=>I(b.idx,b.pId,b.title)),c()},j=()=>{const s=T.value.length;if(s>0&&o.selectIds.length>0){let a;T.value[s-1].list.some(f=>{if(f.selected||f.indeterminate)return a=f,!0}),t.CommonBase.isUndefined(a)||a.isSub&&($(a,s-1),j())}},m=()=>{const s=[];return s.push(I(0,v.getTopParentValue(),"")),s},i=()=>{t.CommonBase.isEmpty(l.selectId)||(o.selectIds=t.CommonBase.getArrClone(l.selectId),D(l.selectId)),T.value=m(),j(),l.treeShowMinLevel>1&&o.selectIds.length===0&&e.nextTick(()=>{const s=T.value.length;if(l.treeShowMinLevel>s){const a=[];for(let f=s;f<l.treeShowMinLevel;f++)a.push(I(f,"",""));T.value=T.value.concat(a)}})};e.watch(()=>l.dataRefreshIndex,()=>{o.selectIds=t.CommonBase.getArrClone(l.selectId),i()}),e.watch(()=>l.selectId,s=>{t.CommonBase.isEqualArr(s,o.selectIds)||(D(s),T.value=T.value.map(f=>I(f.idx,f.pId,f.title)))}),e.onMounted(()=>{e.nextTick(()=>{i()})});const S=(s,a)=>{const f=v.getDataGroup(a.toString()).map(p=>p.id.toString());O(f,s.value)},C=(s,a)=>{O(a.toString(),s.value)},y=(s,a,f)=>{const p=a.id.toString();t.CommonBase.isEmpty(v.getDataGroup(p))&&(Q.CommonElement.getParent(s.target,".selectmove-option-checkbox",".selectmove-option")||O(p.toString(),!t.CommonBase.isExistValue(o.selectIds,p)));const b=t.CommonBase.getArrClone(o.openActiveId);b.splice(f),b.push(p),o.openActiveId=b,L(f,p)};return(s,a)=>{const f=e.resolveComponent("cl-checkbox-one");return e.openBlock(),e.createElementBlock("div",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(p,b)=>(e.openBlock(),e.createElementBlock("div",{key:`${o.keyIndex}-tree-${b}`,class:"selectmove-tree-item",style:e.normalizeStyle(p.sty)},[e.createElementVNode("div",ce,[e.withDirectives(e.createVNode(f,{disabled:g.isDisabled,value:p.checkAll===1,indeterminate:p.checkAll===2,valueData:p.pId,onOnChange:B=>S(B,p.pId)},null,8,["disabled","value","indeterminate","valueData","onOnChange"]),[[e.vShow,p.list.length>0]]),e.createElementVNode("div",re,e.toDisplayString(p.title),1)]),e.createElementVNode("div",ie,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.list,(B,r)=>(e.openBlock(),e.createElementBlock("li",{key:`${o.keyIndex}-option-${r}`,class:e.normalizeClass({"selectmove-option":!0,active:B.isActive}),onClick:d=>y(d,B,b)},[e.createElementVNode("div",null,[e.createVNode(f,{className:"selectmove-option-checkbox",disabled:g.isDisabled,value:B.selected,indeterminate:B.indeterminate,onOnChange:d=>C(d,B.id)},null,8,["disabled","value","indeterminate","onOnChange"]),e.createElementVNode("div",{class:"selectmove-option-text",innerHTML:B.showTextLabel},null,8,ue),B.isSub?(e.openBlock(),e.createElementBlock("i",me)):e.createCommentVNode("",!0)])],10,de))),128))])])],4))),128))])}}}),pe={class:"selectmove-result"},ge={class:"selectmove-result-head"},fe=["innerHTML"],Ce={class:"selectmove-result-body"},Ie=["innerHTML"],Se=["onClick"],ve=e.defineComponent({name:"ClSelectmoveResult",__name:"Result",props:{isDisabled:Boolean,width:Number,resultCountFormat:String,resultTextFormat:String,resultMergeParent:Boolean,selectId:{type:Array,default:()=>[]},dataRefreshIndex:Number},emits:["onChange"],setup(g,{emit:H}){const l=g,u=H,{optPageLanguage:v,getPageLanguage:M}=X.useLanguage();M("common");const o=e.inject("$SelectmoveTop"),T=e.inject("$SelectmoveBase"),c=e.reactive({keyIndex:`selectmove-result-${o.keyIndex}`,totalCount:0}),k=e.ref([]),I=e.computed(()=>l.resultCountFormat&&!t.CommonBase.isEmpty(l.resultCountFormat)?t.CommonBase.convertStringFormat(l.resultCountFormat,{_count:c.totalCount}):`${v.value.selected} ${c.totalCount} ${v.value.count}`),D=e.computed(()=>{const i={};return l.width&&l.width>0&&(i.width=`${l.width}px`),i}),L=i=>{u("onChange",i.join(","))},$=i=>t.CommonBase.isEmpty(i)?[]:(l.resultMergeParent?T.getValueMergeParent(i):T.getValueSplitChild(i)).map(C=>{const y=t.CommonBase.getJsonClone(o.getDataInfo(C)),s=l.resultTextFormat;return y.showTextLabel=s&&s.length>0?t.CommonBase.convertStringFormat(s,y):y.name,y}),O=()=>{t.CommonBase.isEmpty(l.selectId)||(k.value=$(l.selectId),c.totalCount=k.value.length)};e.watch(()=>l.selectId,i=>{const S=k.value.map(y=>y.id.toString());t.CommonBase.isEqualArr(i,S)||(k.value=$(i),c.totalCount=k.value.length)}),e.watch(()=>l.dataRefreshIndex,()=>{k.value=$(l.selectId),c.totalCount=k.value.length}),e.onMounted(()=>{e.nextTick(()=>{O()})});const j=()=>{k.value=[],c.totalCount=0,L([])},m=i=>{const S=[],C=[],y=i.id.toString();k.value.forEach(s=>{const a=s.id.toString();a!==y&&(C.push(t.CommonBase.getJsonClone(s)),S.push(a))}),k.value=C,c.totalCount=C.length,L(S)};return(i,S)=>(e.openBlock(),e.createElementBlock("div",pe,[e.createElementVNode("div",{class:"selectmove-result-container",style:e.normalizeStyle(D.value)},[e.createElementVNode("div",ge,[e.createElementVNode("span",null,[g.isDisabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn btn-cleanAll",type:"button",onClick:j},e.toDisplayString(e.unref(v).deleteAll),1))]),e.createElementVNode("span",{innerHTML:I.value},null,8,fe)]),e.createElementVNode("div",Ce,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(C,y)=>(e.openBlock(),e.createElementBlock("li",{key:`${c.keyIndex}-${y}-${C.id}`},[e.createElementVNode("div",null,[e.createElementVNode("div",{innerHTML:C.showTextLabel},null,8,Ie),g.isDisabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("i",{key:0,class:"clIconFont clIcon-close btn-clean",onClick:s=>m(C)},null,8,Se))])]))),128))])])],4)]))}}),ye={class:"selectmove-body"},Be={key:0,class:"selectmove-result"},z=e.defineComponent({name:"ClSelectmoveContainer",__name:"Container",props:{isDisabled:Boolean,width:Number,isSearch:{type:Boolean,default:!0},searchPlaceholder:String,searchKey:{type:Array,default:()=>["name"]},searchKeyType:{type:String,default:"||"},searchIsMultiple:{type:Boolean,default:!1},searchMultipleJoin:{type:String,default:","},searchTextFormat:[String,Array],treeTitle:{type:Array,default:()=>[]},treeShowMinLevel:{type:Number,default:1},treeTextFormat:[String,Array],resultIsShowSlot:Boolean,resultIsShowSubUnit:Boolean,resultTextFormat:String,resultCountFormat:String,resultMergeParent:{type:Boolean,default:!0},dataRefreshIndex:{type:Number,default:0},selectId:{type:Array,default:()=>[]},parentKey:{type:String,default:"parentId"},topParentValue:{type:String,default:"0"}},emits:["onSelectValue","onInitComplete"],setup(g,{emit:H}){const l=g,u=H,v=e.inject("$SelectmoveTop"),M=e.reactive({searchWidth:0,treeWidth:0,resultWidth:0}),o={parentIdsJson:{},childIdJson:{},childIdsJson:{}},T=m=>{u("onSelectValue",m)},c=()=>{e.nextTick(()=>{u("onInitComplete")})},k=m=>{let i=[];return t.CommonBase.isExistJsonKey(o.childIdJson,m)?i=o.childIdJson[m]:v.isCheckChildren(m)&&(v.getDataGroup(m).forEach(S=>{i.push(S.id.toString())}),i.length>0&&(o.childIdJson[m]=i)),i},I=m=>{let i=[];return t.CommonBase.isExistJsonKey(o.childIdsJson,m)&&o.childIdsJson[m].length>0?i=o.childIdsJson[m]:(v.isCheckChildren(m)&&v.getDataGroup(m).forEach(S=>{const C=S.id.toString();i.push(C);const y=I(C);y.length>0&&(i=i.concat(y))}),o.childIdsJson[m]=i),i},D=m=>{const{parentKey:i,topParentValue:S}=l;let C=[];if(t.CommonBase.isExistJsonKey(o.parentIdsJson,m)&&o.parentIdsJson[m].length>0)C=o.parentIdsJson[m];else{const y=v.getDataInfo(m);if(!t.CommonBase.isUndefined(y)){const s=y[i].toString();if(s!==S&&!t.CommonBase.isUndefined(v.getDataInfo(s))){C.push(s);const a=D(s);a.length>0&&(C=C.concat(a))}}o.parentIdsJson[m]=C}return C},L=(m,i,S)=>{const C=t.CommonBase.isObject(m)?m:[m],y=t.CommonBase.getArrConvertJson(S),s={},a=[],f=[];C.forEach(b=>{const B=[],r=[],d=b.toString();if(i){if(!(t.CommonBase.isExistJsonKey(y,d)||t.CommonBase.isExistJsonKey(s,d))){B.push(d);const E=I(d);E&&E.length>0&&B.push(...E);const _=D(d);for(let V=0;V<_.length;V++){const w=_[V].toString();if(t.CommonBase.isExistJsonKey(y,w)||t.CommonBase.isExistJsonKey(s,w))break;const N=k(w),A=[];if(N.forEach(q=>{const n=q.toString();(t.CommonBase.isExistJsonKey(y,n)||t.CommonBase.isExistJsonKey(s,n)||B.indexOf(n)>-1)&&A.push(n)}),N.length===A.length)B.push(w);else break}}}else{r.push(d);const x=I(d);x&&x.length>0&&r.push(...x);const E=D(d);r.push(...E)}B.length>0&&B.forEach(x=>{a.push(x),s[x]=!0}),r.length>0&&r.forEach(x=>{f.push(x)})});let p=t.CommonBase.getArrClone(S);return p.push(...a),p=t.CommonBase.getArrUnique(p),p=t.CommonBase.getArrRemoveById(p,f),p},$=m=>{const i=[],S={};m.forEach(s=>{S[s]=!0;const a=D(s);i.push(...a)});const C=[],y={};return i.forEach(s=>{!t.CommonBase.isExistJsonKey(y,s)&&!t.CommonBase.isExistJsonKey(S,s)&&(y[s]=!0,C.push(s))}),C},O=()=>{const m=l.width;if(m&&m>350){const i=parseInt((m/175).toString()),S=m/i;M.searchWidth=m,M.treeWidth=S,M.resultWidth=S}};e.watch(()=>l.dataRefreshIndex,()=>{o.parentIdsJson={},o.childIdJson={},o.childIdsJson={}}),e.onMounted(()=>{O(),e.nextTick(()=>{c()})});const j=m=>{T(m)};return e.provide("$SelectmoveBase",{convertSelectedValue:(m,i,S)=>{let C=!1;if(i&&t.CommonBase.isObject(m)&&m.length>100&&(C=!0),C){const y=v.getValueMergeParent(m);return L(y,i,S)}else return L(m,i,S)},convertSelectHalf:$,getChildIds:I,getParentIds:D,getLastChildIds:v.getLastChildIds,getValueMergeParent:v.getValueMergeParent,getValueSplitChild:v.getValueSplitChild}),(m,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[g.isSearch?(e.openBlock(),e.createBlock(le,{key:0,isDisabled:g.isDisabled,width:M.searchWidth,placeholder:g.searchPlaceholder,searchKey:g.searchKey,searchKeyType:g.searchKeyType,searchIsMultiple:g.searchIsMultiple,searchMultipleJoin:g.searchMultipleJoin,searchTextFormat:g.searchTextFormat,selectId:g.selectId,parentKey:g.parentKey,topParentValue:g.topParentValue,onOnChange:j},null,8,["isDisabled","width","placeholder","searchKey","searchKeyType","searchIsMultiple","searchMultipleJoin","searchTextFormat","selectId","parentKey","topParentValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",ye,[e.createVNode(he,{isDisabled:g.isDisabled,maxWidth:M.searchWidth,width:M.treeWidth,treeTitle:g.treeTitle,treeShowMinLevel:g.treeShowMinLevel,treeTextFormat:g.treeTextFormat,selectId:g.selectId,dataRefreshIndex:g.dataRefreshIndex,onOnChange:j},null,8,["isDisabled","maxWidth","width","treeTitle","treeShowMinLevel","treeTextFormat","selectId","dataRefreshIndex"]),g.resultIsShowSlot?(e.openBlock(),e.createElementBlock("div",Be,[e.renderSlot(m.$slots,"resultSelect")])):g.resultIsShowSubUnit?(e.openBlock(),e.createBlock(ve,{key:1,isDisabled:g.isDisabled,width:M.resultWidth,resultTextFormat:g.resultTextFormat,resultCountFormat:g.resultCountFormat,resultMergeParent:g.resultMergeParent,selectId:g.selectId,dataRefreshIndex:g.dataRefreshIndex,onOnChange:j},null,8,["isDisabled","width","resultTextFormat","resultCountFormat","resultMergeParent","selectId","dataRefreshIndex"])):e.createCommentVNode("",!0)])],64))}}),xe={className:"selectmove-text-num"},Ee={class:"selectmove-container"},ke=e.defineComponent({name:"ClSelectmove",__name:"Index",props:{value:String,list:{type:Array,default:()=>[]},className:String,isDropdown:{type:Boolean,default:!1},placeholder:String,disabled:{type:Boolean,default:!1},isClear:{type:Boolean,default:!1},containerWidth:{type:Number,default:350},isSearch:{type:Boolean,default:!0},searchPlaceholder:String,searchKey:{type:Array,default:()=>["name"]},searchKeyType:{type:String,default:"||"},searchIsMultiple:{type:Boolean,default:!1},searchMultipleJoin:{type:String,default:","},searchTextFormat:[String,Array],treeTitle:{type:Array,default:()=>[]},treeShowMinLevel:{type:Number,default:1},treeTextFormat:[String,Array],resultIsShow:{type:Boolean,default:!0},resultTextFormat:String,resultCountFormat:String,resultMergeParent:{type:Boolean,default:!0},isOutMerge:{type:Boolean,default:!0},parentKey:{type:String,default:"parentId"},topParentValue:{type:String,default:"0"}},emits:["update:value","onChange","onInit"],setup(g,{expose:H,emit:l}){const u=g,v=l,M=e.useSlots(),o=e.ref(null),T=e.ref(null),c=e.reactive({keyIndex:`selectmove-${t.CommonBase.getRandom(8)}`,isShowPopup:u.isDropdown,dataRefreshIndex:0,selectedIds:[],IsShowResultSlot:!t.CommonBase.isUndefined(M.resultSelect)}),k=e.ref([]),I={dataJson:{},dataGroup:{},childLastIdsJson:{},lastSelectedIds:[]},D=e.computed(()=>({isDisabled:u.disabled,width:u.containerWidth,isSearch:u.isSearch,searchPlaceholder:u.searchPlaceholder,searchKey:u.searchKey,searchIsMultiple:u.searchIsMultiple,searchMultipleJoin:u.searchMultipleJoin,searchTextFormat:u.searchTextFormat,treeTitle:u.treeTitle,treeShowMinLevel:u.treeShowMinLevel,treeTextFormat:u.treeTextFormat,resultIsShowSubUnit:u.resultIsShow,resultIsShowSlot:c.IsShowResultSlot,resultTextFormat:u.resultTextFormat,resultCountFormat:u.resultCountFormat,resultMergeParent:u.resultMergeParent,parentKey:u.parentKey,topParentValue:u.topParentValue})),L=e.computed(()=>{let n="panel-selectmove ";return u.className&&!t.CommonBase.isEmpty(u.className)&&(n+=u.className),u.isDropdown||u.disabled&&(n+=" selectmove-disabled "),n}),$=n=>{v("update:value",n)},O=(n,h)=>{$(n),v("onChange",n,h)},j=()=>{v("onInit")},m=()=>u.list,i=n=>t.CommonBase.isExistJsonKey(I.dataGroup,n.toString()),S=n=>{const h=n.toString();return i(h)?I.dataGroup[h]:[]},C=n=>{const h=n.toString();return t.CommonBase.isExistJsonKey(I.dataJson,h)?I.dataJson[h]:null},y=()=>`top_${u.topParentValue}`,s=n=>{const{parentKey:h,topParentValue:J}=u,K={},F={};t.CommonBase.isEmpty(n)||n.forEach(R=>{const P=t.CommonBase.getJsonClone(R),U=P.id.toString(),W=P[h].toString();K[U]=P;const G=W===J?y():W;t.CommonBase.isExistJsonKey(F,G)||(F[G]=[]),F[G].push(P)}),I.dataJson=K,I.dataGroup=F,I.childLastIdsJson={}},a=n=>{let h=[];return t.CommonBase.isExistJsonKey(I.childLastIdsJson,n)&&I.childLastIdsJson[n].length>0?h=I.childLastIdsJson[n]:(i(n)?S(n).forEach(J=>{const K=a(J.id.toString());K.length>0&&(h=h.concat(K))}):h.push(n),I.childLastIdsJson[n]=h),h},f=n=>{const{parentKey:h,topParentValue:J}=u,K={},F=[];let R=[];if(n.forEach(P=>{const U=C(P);if(!t.CommonBase.isUndefined(U)){const W=U[h].toString();W===J?R.push(P):(t.CommonBase.isExistJsonKey(K,W)||(K[W]=[]),K[W].push(P))}}),!t.CommonBase.isEmpty(K))for(const[P,U]of Object.entries(K))U.length===S(P).length?F.push(P):R=R.concat(U);if(F.length>0){R.push(...F);const P=t.CommonBase.getArrUnique(R);return f(P)}else return R},p=n=>{const h=[],J=t.CommonBase.getArrConvertJson(n);return n.forEach(F=>{const R=S(F);if(t.CommonBase.isEmpty(R))h.push(F);else{const P=[];R.forEach(U=>{t.CommonBase.isExistJsonKey(J,U.id.toString())&&P.push(U.id)}),R.length!==P.length&&h.push(F)}}),f(h)},b=n=>{let h=[];return n.forEach(J=>{const K=a(J);h.push(...K)}),h=t.CommonBase.getArrUnique(h),h},B=(n,h)=>(t.CommonBase.isBoolean(h)?h:u.isOutMerge)?p(n):b(n),r=n=>{const h=[],J=[];return n.forEach(K=>{const F=C(K);h.push(F),J.push(F.name)}),{list:h,label:J}},d=()=>{if(u.isDropdown)if(t.CommonBase.isEmpty(c.selectedIds))k.value=[];else{const n=B(c.selectedIds,u.resultMergeParent);k.value=r(n).label}},x=()=>{if(s(u.list),!t.CommonBase.isEmpty(u.value)&&u.value){const n=u.value.split(",");c.selectedIds=n}};e.watch(()=>u.value,(n,h)=>{if(n!==h&&!t.CommonBase.isUndefined(n)){const J=n&&!t.CommonBase.isEmpty(n)?n.split(","):[];t.CommonBase.isEqualArr(J,c.selectedIds)||(c.selectedIds=t.CommonBase.isEmpty(J)?[]:J,d())}}),e.watch(()=>u.list,n=>{n&&(s(n),c.dataRefreshIndex++,d())}),e.onMounted(()=>{e.nextTick(()=>{x()})});const E=n=>{u.disabled||n&&(I.lastSelectedIds=c.selectedIds)},_=()=>{u.disabled||(c.selectedIds=[],O("",[]))},V=()=>{c.isShowPopup?(d(),o.value&&(o.value.checkCurrentIsOpen()||o.value.initCompleteOpen())):j()},w=n=>{const h=t.CommonBase.isEmpty(n)?[]:n.split(",");c.selectedIds=h;const J=B(h),K=r(J);d(),O(J.join(","),K.list)};return e.provide("$SelectmoveTop",{keyIndex:c.keyIndex,isCheckChildren:i,getDataGroup:S,getDataInfo:C,getDataList:m,getLastChildIds:a,getValueMergeParent:p,getValueSplitChild:b,getTopParentValue:y}),H({getValue:()=>B(c.selectedIds).join(","),getValueData:()=>{const n=B(c.selectedIds);return r(n).list},setValue:n=>{c.selectedIds=t.CommonBase.isEmpty(n)?[]:n.split(","),d()}}),(n,h)=>{const J=e.resolveComponent("cl-badge");return g.isDropdown?(e.openBlock(),e.createBlock(Y._sfc_main,{key:0,ref_key:"refElDropdownLayer",ref:o,classParent:L.value,classText:"selectmove-text",classDropDown:"selectmove-dropdown",placeholder:g.placeholder,isDisabled:g.disabled,isClear:g.isClear,textLabel:k.value.join(","),textArrowDirection:"right",isUseDropdownArrow:!0,onOnChangeOpen:E,onOnClear:_},{textExtend:e.withCtx(()=>[e.createElementVNode("span",xe,[k.value.length>1?(e.openBlock(),e.createBlock(J,{key:0,num:k.value.length},null,8,["num"])):e.createCommentVNode("",!0)])]),dropdown:e.withCtx(()=>[e.createElementVNode("div",Ee,[e.createVNode(z,e.mergeProps({ref_key:"refElSelectMove",ref:T},D.value,{dataRefreshIndex:c.dataRefreshIndex,selectId:c.selectedIds,onOnSelectValue:w,onOnInitComplete:V}),{resultSelect:e.withCtx(()=>[e.renderSlot(n.$slots,"resultSelect")]),_:3},16,["dataRefreshIndex","selectId"])])]),_:3},8,["classParent","placeholder","isDisabled","isClear","textLabel"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(L.value)},[e.createVNode(z,e.mergeProps({ref_key:"refElSelectMove",ref:T},D.value,{dataRefreshIndex:c.dataRefreshIndex,selectId:c.selectedIds,onOnSelectValue:w,onOnInitComplete:V}),{resultSelect:e.withCtx(()=>[e.renderSlot(n.$slots,"resultSelect")]),_:3},16,["dataRefreshIndex","selectId"])],2))}}});module.exports=ke;
|
|
2
|
+
//# sourceMappingURL=ClSelectmove.cjs.map
|