@cldemo/ui-kit 1.1.0 → 1.1.2
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 +125 -42
- package/README.md +8 -7
- package/buildLibs/all/{BallColor4-CYDMNYIL.js → BallColor4-B1tO7Tbf.js} +1 -1
- package/buildLibs/{web/BallColor4-CvdyEpUB.cjs → all/BallColor4-XAmB3sGF.cjs} +1 -1
- package/buildLibs/{web/ToastRing-KEtXZej2.cjs → all/ToastRing-BIV-zK0K.cjs} +1 -1
- package/buildLibs/{web/ToastRing-DxVDUCSx.js → all/ToastRing-D7_Cqd_W.js} +1 -1
- package/buildLibs/all/{Video-Bbk0_YWw.js → Video-BCsixuXq.js} +1 -1
- package/buildLibs/all/{Video-BV-GRW4X.cjs → Video-kyxIjktP.cjs} +1 -1
- package/buildLibs/all/{index-Cap0WJgK.cjs → index-0NOmwWqO.cjs} +9 -9
- package/buildLibs/all/{index-sPYdePtz.js → index-CIctx5VJ.js} +110 -102
- package/buildLibs/all/index.cjs +1 -1
- package/buildLibs/all/index.js +1 -1
- package/buildLibs/common/Element/Event/index.d.ts +2 -0
- package/buildLibs/common/Element/index.d.ts +2 -0
- package/buildLibs/common/Tools/index.d.ts +2 -0
- package/buildLibs/common/axios.d.ts +2 -0
- package/buildLibs/common/base.d.ts +2 -0
- package/buildLibs/common/browserProgress.cjs +1 -1
- package/buildLibs/common/browserProgress.d.ts +2 -0
- package/buildLibs/common/browserProgress.js +24 -15
- package/buildLibs/common/day.d.ts +2 -0
- package/buildLibs/common/echart.d.ts +2 -0
- package/buildLibs/common/globalConfig.cjs +1 -1
- package/buildLibs/common/globalConfig.d.ts +2 -0
- package/buildLibs/common/globalConfig.js +12 -8
- package/buildLibs/common/globalTypes.d.ts +1 -0
- package/buildLibs/common/i18n/index.d.ts +2 -0
- package/buildLibs/common/log.d.ts +2 -0
- package/buildLibs/common/promise.d.ts +2 -0
- package/buildLibs/common/tooltip.d.ts +2 -0
- package/buildLibs/core/alert.cjs +1 -0
- package/buildLibs/core/alert.d.ts +1 -0
- package/buildLibs/core/alert.js +1 -0
- package/buildLibs/core/clipboard.cjs +1 -0
- package/buildLibs/core/clipboard.d.ts +1 -0
- package/buildLibs/core/clipboard.js +1 -0
- package/buildLibs/core/codeHighlight.cjs +1 -0
- package/buildLibs/core/codeHighlight.d.ts +1 -0
- package/buildLibs/core/codeHighlight.js +1 -0
- package/buildLibs/core/languagePack.cjs +1 -0
- package/buildLibs/core/languagePack.d.ts +1 -0
- package/buildLibs/core/languagePack.js +1 -0
- package/buildLibs/core/lazyImage.cjs +1 -0
- package/buildLibs/core/lazyImage.d.ts +1 -0
- package/buildLibs/core/lazyImage.js +1 -0
- package/buildLibs/core/loadScreen.cjs +1 -0
- package/buildLibs/core/loadScreen.d.ts +1 -0
- package/buildLibs/core/loadScreen.js +1 -0
- package/buildLibs/core/notify.cjs +1 -0
- package/buildLibs/core/notify.d.ts +1 -0
- package/buildLibs/core/notify.js +1 -0
- package/buildLibs/core/notifyM.cjs +1 -0
- package/buildLibs/core/notifyM.d.ts +1 -0
- package/buildLibs/core/notifyM.js +1 -0
- package/buildLibs/core/preview.cjs +1 -0
- package/buildLibs/core/preview.d.ts +1 -0
- package/buildLibs/core/preview.js +1 -0
- package/buildLibs/core/toast.cjs +1 -0
- package/buildLibs/core/toast.d.ts +1 -0
- package/buildLibs/core/toast.js +1 -0
- package/buildLibs/core/tooltip.cjs +1 -0
- package/buildLibs/core/tooltip.d.ts +1 -0
- package/buildLibs/core/tooltip.js +1 -0
- package/buildLibs/core/validate.cjs +1 -0
- package/buildLibs/core/validate.d.ts +1 -0
- package/buildLibs/core/validate.js +1 -0
- package/buildLibs/core/waves.cjs +1 -0
- package/buildLibs/core/waves.d.ts +1 -0
- package/buildLibs/core/waves.js +1 -0
- package/buildLibs/{all/BallColor4-CaqTfMcX.cjs → mobile/BallColor4-D5cOCCwS.cjs} +1 -1
- package/buildLibs/mobile/{BallColor4-DogqtiHo.js → BallColor4-DW64tRd6.js} +1 -1
- package/buildLibs/{all/ToastRing-BW0hddZN.js → mobile/ToastRing-CBnFEhCg.js} +1 -1
- package/buildLibs/mobile/{ToastRing-BQAASeWu.cjs → ToastRing-DUy5-KJI.cjs} +1 -1
- package/buildLibs/mobile/{index-Bh4jt080.js → index-Ccqb6JSg.js} +1276 -1269
- package/buildLibs/mobile/{index-DmdxP8hd.cjs → index-SXa7oZIH.cjs} +5 -5
- package/buildLibs/mobile/index.cjs +1 -1
- package/buildLibs/mobile/index.js +1 -1
- package/buildLibs/modules/actionSheet.d.ts +1 -1
- package/buildLibs/modules/actionSheet.js +1 -212
- package/buildLibs/modules/anchorNav.d.ts +1 -1
- package/buildLibs/modules/anchorNav.js +1 -147
- package/buildLibs/modules/backTop.d.ts +1 -1
- package/buildLibs/modules/backTop.js +1 -139
- package/buildLibs/modules/badge.d.ts +1 -1
- package/buildLibs/modules/badge.js +1 -4
- package/buildLibs/modules/banner.d.ts +1 -1
- package/buildLibs/modules/banner.js +2 -332
- package/buildLibs/modules/breadcrumb.d.ts +1 -1
- package/buildLibs/modules/breadcrumb.js +1 -73
- package/buildLibs/modules/button.d.ts +1 -1
- package/buildLibs/modules/button.js +1 -4
- package/buildLibs/modules/calendar.d.ts +1 -1
- package/buildLibs/modules/calendar.js +1 -353
- package/buildLibs/modules/calendarM.d.ts +1 -1
- package/buildLibs/modules/calendarM.js +1 -473
- package/buildLibs/modules/callout.d.ts +1 -1
- package/buildLibs/modules/callout.js +1 -45
- package/buildLibs/modules/card.d.ts +1 -1
- package/buildLibs/modules/card.js +1 -4
- package/buildLibs/modules/cardColor.d.ts +1 -1
- package/buildLibs/modules/cardColor.js +1 -54
- package/buildLibs/modules/cell.d.ts +1 -1
- package/buildLibs/modules/cell.js +1 -109
- package/buildLibs/modules/cellSwipe.d.ts +1 -1
- package/buildLibs/modules/cellSwipe.js +1 -159
- package/buildLibs/modules/checkbox.d.ts +1 -1
- package/buildLibs/modules/checkbox.js +1 -4
- package/buildLibs/modules/checkboxOne.d.ts +1 -1
- package/buildLibs/modules/checkboxOne.js +1 -4
- package/buildLibs/modules/clipboard.d.ts +1 -1
- package/buildLibs/modules/clipboard.js +1 -4
- package/buildLibs/modules/codeLegend.d.ts +1 -1
- package/buildLibs/modules/codeLegend.js +1 -149
- package/buildLibs/modules/codeLegendM.d.ts +1 -1
- package/buildLibs/modules/codeLegendM.js +1 -196
- package/buildLibs/modules/collapse.d.ts +1 -1
- package/buildLibs/modules/collapse.js +1 -133
- package/buildLibs/modules/colorPicker.d.ts +1 -1
- package/buildLibs/modules/colorPicker.js +1 -1196
- package/buildLibs/modules/countDown.d.ts +1 -1
- package/buildLibs/modules/countDown.js +1 -139
- package/buildLibs/modules/cropper.d.ts +1 -1
- package/buildLibs/modules/cropper.js +1 -4
- package/buildLibs/modules/cropperM.d.ts +1 -1
- package/buildLibs/modules/cropperM.js +1 -450
- package/buildLibs/modules/cropperPreview.d.ts +1 -1
- package/buildLibs/modules/cropperPreview.js +1 -222
- package/buildLibs/modules/darg.d.ts +1 -1
- package/buildLibs/modules/darg.js +1 -2160
- package/buildLibs/modules/dateTime.d.ts +1 -1
- package/buildLibs/modules/dateTime.js +1 -4
- package/buildLibs/modules/divider.d.ts +1 -1
- package/buildLibs/modules/divider.js +1 -4
- package/buildLibs/modules/dropdownMenu.d.ts +1 -1
- package/buildLibs/modules/dropdownMenu.js +1 -168
- package/buildLibs/modules/dropdownMenuItem.d.ts +1 -1
- package/buildLibs/modules/dropdownMenuItem.js +1 -88
- package/buildLibs/modules/dropdownMenuM.d.ts +1 -1
- package/buildLibs/modules/dropdownMenuM.js +1 -216
- package/buildLibs/modules/dropdownMenuMItem.d.ts +1 -1
- package/buildLibs/modules/dropdownMenuMItem.js +1 -178
- package/buildLibs/modules/dropdownPopup.d.ts +1 -1
- package/buildLibs/modules/dropdownPopup.js +1 -122
- package/buildLibs/modules/echarts.d.ts +1 -1
- package/buildLibs/modules/echarts.js +1 -4
- package/buildLibs/modules/echartsLineAxisTag.d.ts +1 -1
- package/buildLibs/modules/echartsLineAxisTag.js +1 -920
- package/buildLibs/modules/ellipsis.d.ts +1 -1
- package/buildLibs/modules/ellipsis.js +1 -4
- package/buildLibs/modules/empty.d.ts +1 -1
- package/buildLibs/modules/empty.js +1 -65
- package/buildLibs/modules/fileUpload.d.ts +1 -1
- package/buildLibs/modules/fileUpload.js +1 -4
- package/buildLibs/modules/floatBubble.d.ts +1 -1
- package/buildLibs/modules/floatBubble.js +1 -192
- package/buildLibs/modules/floatPanel.d.ts +1 -1
- package/buildLibs/modules/floatPanel.js +1 -279
- package/buildLibs/modules/form.d.ts +1 -1
- package/buildLibs/modules/form.js +1 -4
- package/buildLibs/modules/formGroupBtns.d.ts +1 -1
- package/buildLibs/modules/formGroupBtns.js +1 -87
- package/buildLibs/modules/formGroupHorizontal.d.ts +1 -1
- package/buildLibs/modules/formGroupHorizontal.js +1 -4
- package/buildLibs/modules/formGroupVertical.d.ts +1 -1
- package/buildLibs/modules/formGroupVertical.js +1 -62
- package/buildLibs/modules/formValidate.d.ts +1 -1
- package/buildLibs/modules/formValidate.js +1 -4
- package/buildLibs/modules/framePhone.d.ts +1 -1
- package/buildLibs/modules/framePhone.js +1 -71
- package/buildLibs/modules/grid.d.ts +1 -1
- package/buildLibs/modules/grid.js +1 -95
- package/buildLibs/modules/iconFont.d.ts +1 -1
- package/buildLibs/modules/iconFont.js +1 -4
- package/buildLibs/modules/image.d.ts +1 -1
- package/buildLibs/modules/image.js +1 -4
- package/buildLibs/modules/indexBar.d.ts +1 -1
- package/buildLibs/modules/indexBar.js +1 -173
- package/buildLibs/modules/input.d.ts +1 -1
- package/buildLibs/modules/input.js +1 -4
- package/buildLibs/modules/inputCaptcha.d.ts +1 -1
- package/buildLibs/modules/inputCaptcha.js +1 -136
- package/buildLibs/modules/inputNumber.d.ts +1 -1
- package/buildLibs/modules/inputNumber.js +1 -4
- package/buildLibs/modules/inputNumberStepper.d.ts +1 -1
- package/buildLibs/modules/inputNumberStepper.js +1 -4
- package/buildLibs/modules/inputPassword.d.ts +1 -1
- package/buildLibs/modules/inputPassword.js +1 -149
- package/buildLibs/modules/inputPin.d.ts +1 -1
- package/buildLibs/modules/inputPin.js +1 -182
- package/buildLibs/modules/inputSearch.d.ts +1 -1
- package/buildLibs/modules/inputSearch.js +1 -4
- package/buildLibs/modules/inputTag.d.ts +1 -1
- package/buildLibs/modules/inputTag.js +1 -4
- package/buildLibs/modules/inputTextarea.d.ts +1 -1
- package/buildLibs/modules/inputTextarea.js +1 -4
- package/buildLibs/modules/link.d.ts +1 -1
- package/buildLibs/modules/link.js +1 -4
- package/buildLibs/modules/load.d.ts +1 -1
- package/buildLibs/modules/load.js +1 -4
- package/buildLibs/modules/loadFullCenter.d.ts +1 -1
- package/buildLibs/modules/loadFullCenter.js +1 -44
- package/buildLibs/modules/loadIng.d.ts +1 -1
- package/buildLibs/modules/loadIng.js +1 -4
- package/buildLibs/modules/loadScreen.d.ts +1 -1
- package/buildLibs/modules/loadScreen.js +1 -74
- package/buildLibs/modules/loadWarp.d.ts +1 -1
- package/buildLibs/modules/loadWarp.js +1 -52
- package/buildLibs/modules/modal.d.ts +1 -1
- package/buildLibs/modules/modal.js +1 -4
- package/buildLibs/modules/navBar.d.ts +1 -1
- package/buildLibs/modules/navBar.js +1 -119
- package/buildLibs/modules/noticeBar.d.ts +1 -1
- package/buildLibs/modules/noticeBar.js +1 -145
- package/buildLibs/modules/notifyM.d.ts +1 -1
- package/buildLibs/modules/notifyM.js +1 -277
- package/buildLibs/modules/numberKeyboard.d.ts +1 -1
- package/buildLibs/modules/numberKeyboard.js +1 -287
- package/buildLibs/modules/numberRoll.d.ts +1 -1
- package/buildLibs/modules/numberRoll.js +1 -96
- package/buildLibs/modules/overlay.d.ts +1 -1
- package/buildLibs/modules/overlay.js +1 -4
- package/buildLibs/modules/paginate.d.ts +1 -1
- package/buildLibs/modules/paginate.js +1 -4
- package/buildLibs/modules/picker.d.ts +1 -1
- package/buildLibs/modules/picker.js +1 -4
- package/buildLibs/modules/pickerArea.d.ts +1 -1
- package/buildLibs/modules/pickerArea.js +1 -255
- package/buildLibs/modules/pickerCascader.d.ts +1 -1
- package/buildLibs/modules/pickerCascader.js +1 -316
- package/buildLibs/modules/pickerDate.d.ts +1 -1
- package/buildLibs/modules/pickerDate.js +1 -220
- package/buildLibs/modules/pickerTime.d.ts +1 -1
- package/buildLibs/modules/pickerTime.js +1 -230
- package/buildLibs/modules/popup.d.ts +1 -1
- package/buildLibs/modules/popup.js +1 -4
- package/buildLibs/modules/portlet.d.ts +1 -1
- package/buildLibs/modules/portlet.js +1 -51
- package/buildLibs/modules/previewExample.d.ts +1 -1
- package/buildLibs/modules/previewExample.js +1 -4
- package/buildLibs/modules/progress.d.ts +1 -1
- package/buildLibs/modules/progress.js +1 -262
- package/buildLibs/modules/pullToRefresh.d.ts +1 -1
- package/buildLibs/modules/pullToRefresh.js +1 -4
- package/buildLibs/modules/radio.d.ts +1 -1
- package/buildLibs/modules/radio.js +1 -4
- package/buildLibs/modules/radioOne.d.ts +1 -1
- package/buildLibs/modules/radioOne.js +1 -4
- package/buildLibs/modules/rate.d.ts +1 -1
- package/buildLibs/modules/rate.js +1 -235
- package/buildLibs/modules/scrollCard.d.ts +1 -1
- package/buildLibs/modules/scrollCard.js +1 -368
- package/buildLibs/modules/scrollXFence.d.ts +1 -1
- package/buildLibs/modules/scrollXFence.js +1 -4
- package/buildLibs/modules/select.d.ts +1 -1
- package/buildLibs/modules/select.js +1 -4
- package/buildLibs/modules/selectCascade.d.ts +1 -1
- package/buildLibs/modules/selectCascade.js +1 -4
- package/buildLibs/modules/selectMove.d.ts +1 -1
- package/buildLibs/modules/selectMove.js +1 -1352
- package/buildLibs/modules/selectTag.d.ts +1 -1
- package/buildLibs/modules/selectTag.js +1 -4
- package/buildLibs/modules/selectTree.d.ts +1 -1
- package/buildLibs/modules/selectTree.js +1 -377
- package/buildLibs/modules/sharePanel.d.ts +1 -1
- package/buildLibs/modules/sharePanel.js +1 -151
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-GSyMXu17.js → Index.vue_vue_type_script_setup_true_lang-C4t0E13G.js} +1 -1
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-DtsjjKBG.js → Index.vue_vue_type_script_setup_true_lang-DfsrIstV.js} +274 -273
- package/buildLibs/modules/shared/Validate.vue_vue_type_script_setup_true_lang-CJNHymo3.js +419 -0
- package/buildLibs/modules/sideMenu.d.ts +1 -1
- package/buildLibs/modules/sideMenu.js +1 -227
- package/buildLibs/modules/sidebar.d.ts +1 -1
- package/buildLibs/modules/sidebar.js +1 -63
- package/buildLibs/modules/sidebarSelect.d.ts +1 -1
- package/buildLibs/modules/sidebarSelect.js +1 -86
- package/buildLibs/modules/signature.d.ts +1 -1
- package/buildLibs/modules/signature.js +1 -250
- package/buildLibs/modules/slider.d.ts +1 -1
- package/buildLibs/modules/slider.js +1 -4
- package/buildLibs/modules/steps.d.ts +1 -1
- package/buildLibs/modules/steps.js +1 -112
- package/buildLibs/modules/swipe.d.ts +1 -1
- package/buildLibs/modules/swipe.js +1 -177
- package/buildLibs/modules/switchery.d.ts +1 -1
- package/buildLibs/modules/switchery.js +1 -261
- package/buildLibs/modules/tabM.d.ts +1 -1
- package/buildLibs/modules/tabM.js +1 -115
- package/buildLibs/modules/tabbar.d.ts +1 -1
- package/buildLibs/modules/tabbar.js +1 -119
- package/buildLibs/modules/table.d.ts +1 -1
- package/buildLibs/modules/table.js +1 -2409
- package/buildLibs/modules/tableEdit.d.ts +1 -1
- package/buildLibs/modules/tableEdit.js +1 -79
- package/buildLibs/modules/tableSimple.d.ts +1 -1
- package/buildLibs/modules/tableSimple.js +1 -74
- package/buildLibs/modules/tabs.d.ts +1 -1
- package/buildLibs/modules/tabs.js +1 -358
- package/buildLibs/modules/tags.d.ts +1 -1
- package/buildLibs/modules/tags.js +1 -4
- package/buildLibs/modules/textHighlight.d.ts +1 -1
- package/buildLibs/modules/textHighlight.js +1 -68
- package/buildLibs/modules/toast.d.ts +1 -1
- package/buildLibs/modules/toast.js +1 -198
- package/buildLibs/modules/transitionSlideUpDown.d.ts +1 -1
- package/buildLibs/modules/transitionSlideUpDown.js +1 -4
- package/buildLibs/modules/tree.d.ts +1 -1
- package/buildLibs/modules/tree.js +1 -4
- package/buildLibs/modules/waterfall.d.ts +1 -1
- package/buildLibs/modules/waterfall.js +1 -174
- package/buildLibs/modules/waterfallImage.d.ts +1 -1
- package/buildLibs/modules/waterfallImage.js +1 -49
- package/buildLibs/modules/watermark.d.ts +1 -1
- package/buildLibs/modules/watermark.js +1 -77
- package/buildLibs/modules/weekHour.d.ts +1 -1
- package/buildLibs/modules/weekHour.js +1 -765
- package/buildLibs/modules/xEditable.d.ts +1 -1
- package/buildLibs/modules/xEditable.js +1 -772
- package/buildLibs/styles/Common/meta.json +2 -0
- package/buildLibs/styles/Element/__provide__/LoadScreen.css +0 -31
- package/buildLibs/types/Common/browserProgress.d.ts +3 -1
- package/buildLibs/types/Common/globalConfig.d.ts +35 -2
- package/buildLibs/types/Common/globalTypes.d.ts +12 -2
- package/buildLibs/types/Web/Preview/lazy.d.ts +21 -0
- package/buildLibs/utils/Element/ClBadge.cjs +1 -1
- package/buildLibs/utils/Element/ClBadge.d.ts +1 -1
- package/buildLibs/utils/Element/ClBadge.js +1 -1
- package/buildLibs/utils/Element/ClBreadcrumb.cjs +1 -1
- package/buildLibs/utils/Element/ClBreadcrumb.d.ts +1 -1
- package/buildLibs/utils/Element/ClBreadcrumb.js +1 -1
- package/buildLibs/utils/Element/ClButton.cjs +1 -1
- package/buildLibs/utils/Element/ClButton.d.ts +1 -1
- package/buildLibs/utils/Element/ClButton.js +1 -1
- package/buildLibs/utils/Element/ClCallout.d.ts +1 -1
- package/buildLibs/utils/Element/ClCard.cjs +1 -1
- package/buildLibs/utils/Element/ClCard.d.ts +1 -1
- package/buildLibs/utils/Element/ClCard.js +1 -1
- package/buildLibs/utils/Element/ClCardColor.d.ts +1 -1
- package/buildLibs/utils/Element/ClCheckbox.cjs +1 -1
- package/buildLibs/utils/Element/ClCheckbox.d.ts +1 -1
- package/buildLibs/utils/Element/ClCheckbox.js +1 -1
- package/buildLibs/utils/Element/ClCheckboxOne.cjs +1 -1
- package/buildLibs/utils/Element/ClCheckboxOne.d.ts +1 -1
- package/buildLibs/utils/Element/ClCheckboxOne.js +1 -1
- package/buildLibs/utils/Element/ClClipboard.cjs +1 -1
- package/buildLibs/utils/Element/ClClipboard.d.ts +1 -1
- package/buildLibs/utils/Element/ClClipboard.js +1 -1
- package/buildLibs/utils/Element/ClCollapse.cjs +1 -1
- package/buildLibs/utils/Element/ClCollapse.d.ts +1 -1
- package/buildLibs/utils/Element/ClCollapse.js +1 -1
- package/buildLibs/utils/Element/ClCountDown.d.ts +1 -1
- package/buildLibs/utils/Element/ClDarg.cjs +1 -1
- package/buildLibs/utils/Element/ClDarg.d.ts +1 -1
- package/buildLibs/utils/Element/ClDarg.js +1 -1
- package/buildLibs/utils/Element/ClDivider.cjs +1 -1
- package/buildLibs/utils/Element/ClDivider.d.ts +1 -1
- package/buildLibs/utils/Element/ClDivider.js +1 -1
- package/buildLibs/utils/Element/ClEllipsis.cjs +1 -1
- package/buildLibs/utils/Element/ClEllipsis.d.ts +1 -1
- package/buildLibs/utils/Element/ClEllipsis.js +1 -1
- package/buildLibs/utils/Element/ClEmpty.d.ts +1 -1
- package/buildLibs/utils/Element/ClForm.cjs +1 -1
- package/buildLibs/utils/Element/ClForm.d.ts +1 -1
- package/buildLibs/utils/Element/ClForm.js +1 -1
- package/buildLibs/utils/Element/ClFormGroupBtns.cjs +1 -1
- package/buildLibs/utils/Element/ClFormGroupBtns.d.ts +1 -1
- package/buildLibs/utils/Element/ClFormGroupBtns.js +1 -1
- package/buildLibs/utils/Element/ClFormGroupHorizontal.cjs +1 -1
- package/buildLibs/utils/Element/ClFormGroupHorizontal.d.ts +1 -1
- package/buildLibs/utils/Element/ClFormGroupHorizontal.js +1 -1
- package/buildLibs/utils/Element/ClFormGroupVertical.d.ts +1 -1
- package/buildLibs/utils/Element/ClFormValidate.cjs +1 -1
- package/buildLibs/utils/Element/ClFormValidate.d.ts +1 -1
- package/buildLibs/utils/Element/ClFormValidate.js +1 -1
- package/buildLibs/utils/Element/ClIconFont.cjs +1 -1
- package/buildLibs/utils/Element/ClIconFont.d.ts +1 -1
- package/buildLibs/utils/Element/ClIconFont.js +1 -1
- package/buildLibs/utils/Element/ClImage.cjs +1 -1
- package/buildLibs/utils/Element/ClImage.d.ts +1 -1
- package/buildLibs/utils/Element/ClImage.js +1 -1
- package/buildLibs/utils/Element/ClInput.cjs +1 -1
- package/buildLibs/utils/Element/ClInput.d.ts +1 -1
- package/buildLibs/utils/Element/ClInput.js +1 -1
- package/buildLibs/utils/Element/ClInputCaptcha.cjs +1 -1
- package/buildLibs/utils/Element/ClInputCaptcha.d.ts +1 -1
- package/buildLibs/utils/Element/ClInputCaptcha.js +2 -2
- package/buildLibs/utils/Element/ClInputNumber.cjs +1 -1
- package/buildLibs/utils/Element/ClInputNumber.d.ts +1 -1
- package/buildLibs/utils/Element/ClInputNumber.js +1 -1
- package/buildLibs/utils/Element/ClInputNumberStepper.cjs +1 -1
- package/buildLibs/utils/Element/ClInputNumberStepper.d.ts +1 -1
- package/buildLibs/utils/Element/ClInputNumberStepper.js +1 -1
- package/buildLibs/utils/Element/ClInputPassword.cjs +1 -1
- package/buildLibs/utils/Element/ClInputPassword.d.ts +1 -1
- package/buildLibs/utils/Element/ClInputPassword.js +2 -2
- package/buildLibs/utils/Element/ClInputSearch.cjs +1 -1
- package/buildLibs/utils/Element/ClInputSearch.d.ts +1 -1
- package/buildLibs/utils/Element/ClInputSearch.js +1 -1
- package/buildLibs/utils/Element/ClInputTextarea.cjs +1 -1
- package/buildLibs/utils/Element/ClInputTextarea.d.ts +1 -1
- package/buildLibs/utils/Element/ClInputTextarea.js +1 -1
- package/buildLibs/utils/Element/ClLink.cjs +1 -1
- package/buildLibs/utils/Element/ClLink.d.ts +1 -1
- package/buildLibs/utils/Element/ClLink.js +1 -1
- package/buildLibs/utils/Element/ClLoad.cjs +1 -1
- package/buildLibs/utils/Element/ClLoad.d.ts +1 -1
- package/buildLibs/utils/Element/ClLoad.js +1 -1
- package/buildLibs/utils/Element/ClLoadFullCenter.cjs +1 -1
- package/buildLibs/utils/Element/ClLoadFullCenter.d.ts +1 -1
- package/buildLibs/utils/Element/ClLoadFullCenter.js +2 -2
- package/buildLibs/utils/Element/ClLoadIng.cjs +1 -1
- package/buildLibs/utils/Element/ClLoadIng.d.ts +1 -1
- package/buildLibs/utils/Element/ClLoadIng.js +1 -1
- package/buildLibs/utils/Element/ClLoadScreen.cjs +1 -1
- package/buildLibs/utils/Element/ClLoadScreen.d.ts +1 -1
- package/buildLibs/utils/Element/ClLoadScreen.js +2 -72
- package/buildLibs/utils/Element/ClLoadWarp.cjs +1 -1
- package/buildLibs/utils/Element/ClLoadWarp.d.ts +1 -1
- package/buildLibs/utils/Element/ClLoadWarp.js +1 -1
- package/buildLibs/utils/Element/ClModal.cjs +1 -1
- package/buildLibs/utils/Element/ClModal.d.ts +1 -1
- package/buildLibs/utils/Element/ClModal.js +1 -1
- package/buildLibs/utils/Element/ClNumberRoll.d.ts +1 -1
- package/buildLibs/utils/Element/ClOverlay.cjs +1 -1
- package/buildLibs/utils/Element/ClOverlay.d.ts +1 -1
- package/buildLibs/utils/Element/ClOverlay.js +1 -1
- package/buildLibs/utils/Element/ClProgress.cjs +1 -1
- package/buildLibs/utils/Element/ClProgress.d.ts +1 -1
- package/buildLibs/utils/Element/ClProgress.js +1 -1
- package/buildLibs/utils/Element/ClRadio.cjs +1 -1
- package/buildLibs/utils/Element/ClRadio.d.ts +1 -1
- package/buildLibs/utils/Element/ClRadio.js +1 -1
- package/buildLibs/utils/Element/ClRadioOne.cjs +1 -1
- package/buildLibs/utils/Element/ClRadioOne.d.ts +1 -1
- package/buildLibs/utils/Element/ClRadioOne.js +1 -1
- package/buildLibs/utils/Element/ClSlider.cjs +1 -1
- package/buildLibs/utils/Element/ClSlider.d.ts +1 -1
- package/buildLibs/utils/Element/ClSlider.js +1 -1
- package/buildLibs/utils/Element/ClSwitchery.cjs +1 -1
- package/buildLibs/utils/Element/ClSwitchery.d.ts +1 -1
- package/buildLibs/utils/Element/ClSwitchery.js +2 -2
- package/buildLibs/utils/Element/ClTags.cjs +1 -1
- package/buildLibs/utils/Element/ClTags.d.ts +1 -1
- package/buildLibs/utils/Element/ClTags.js +1 -1
- package/buildLibs/utils/Element/ClTransitionSlideUpDown.d.ts +1 -1
- package/buildLibs/utils/Element/ClWaterfall.d.ts +1 -1
- package/buildLibs/utils/Element/ClWaterfallImage.cjs +1 -1
- package/buildLibs/utils/Element/ClWaterfallImage.d.ts +1 -1
- package/buildLibs/utils/Element/ClWaterfallImage.js +2 -2
- package/buildLibs/utils/Element/__directive__/LazyImage.cjs +1 -0
- package/buildLibs/utils/Element/__directive__/LazyImage.d.ts +1 -0
- package/buildLibs/utils/Element/__directive__/LazyImage.js +6 -0
- package/buildLibs/utils/Element/__provide__/Clipboard.cjs +1 -0
- package/buildLibs/utils/Element/__provide__/Clipboard.d.ts +1 -0
- package/buildLibs/utils/Element/__provide__/Clipboard.js +37 -0
- package/buildLibs/utils/Element/__provide__/LanguagePack.cjs +1 -0
- package/buildLibs/utils/Element/__provide__/LanguagePack.d.ts +1 -0
- package/buildLibs/utils/Element/__provide__/LanguagePack.js +28 -0
- package/buildLibs/utils/Element/__provide__/LoadScreen.cjs +1 -0
- package/buildLibs/utils/Element/__provide__/LoadScreen.d.ts +1 -0
- package/buildLibs/utils/Element/__provide__/LoadScreen.js +23 -0
- package/buildLibs/utils/Element/__provide__/Validate.cjs +1 -0
- package/buildLibs/utils/Element/__provide__/Validate.d.ts +1 -0
- package/buildLibs/utils/Element/__provide__/Validate.js +104 -0
- package/buildLibs/utils/Element/installCommon.cjs +1 -0
- package/buildLibs/utils/Element/installCommon.d.ts +1 -0
- package/buildLibs/utils/Element/installCommon.js +24 -0
- package/buildLibs/utils/Mobile/ClActionSheet.cjs +1 -1
- package/buildLibs/utils/Mobile/ClActionSheet.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClActionSheet.js +3 -3
- package/buildLibs/utils/Mobile/ClBackTop.cjs +1 -1
- package/buildLibs/utils/Mobile/ClBackTop.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClBackTop.js +2 -2
- package/buildLibs/utils/Mobile/ClBanner.cjs +1 -1
- package/buildLibs/utils/Mobile/ClBanner.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClBanner.js +3 -3
- package/buildLibs/utils/Mobile/ClCalendarM.cjs +1 -1
- package/buildLibs/utils/Mobile/ClCalendarM.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClCalendarM.js +4 -4
- package/buildLibs/utils/Mobile/ClCell.cjs +1 -1
- package/buildLibs/utils/Mobile/ClCell.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClCell.js +2 -2
- package/buildLibs/utils/Mobile/ClCellSwipe.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClCodeLegendM.cjs +1 -1
- package/buildLibs/utils/Mobile/ClCodeLegendM.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClCodeLegendM.js +2 -2
- package/buildLibs/utils/Mobile/ClCropperM.cjs +1 -1
- package/buildLibs/utils/Mobile/ClCropperM.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClCropperM.js +4 -4
- package/buildLibs/utils/Mobile/ClDropdownMenuM.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClDropdownMenuMItem.cjs +1 -1
- package/buildLibs/utils/Mobile/ClDropdownMenuMItem.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClDropdownMenuMItem.js +3 -3
- package/buildLibs/utils/Mobile/ClFloatBubble.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClFloatPanel.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClGrid.cjs +1 -1
- package/buildLibs/utils/Mobile/ClGrid.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClGrid.js +1 -1
- package/buildLibs/utils/Mobile/ClIndexBar.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClInputPin.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClNavBar.cjs +1 -1
- package/buildLibs/utils/Mobile/ClNavBar.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClNavBar.js +1 -1
- package/buildLibs/utils/Mobile/ClNoticeBar.cjs +1 -1
- package/buildLibs/utils/Mobile/ClNoticeBar.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClNoticeBar.js +1 -1
- package/buildLibs/utils/Mobile/ClNotifyM.cjs +1 -1
- package/buildLibs/utils/Mobile/ClNotifyM.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClNotifyM.js +1 -1
- package/buildLibs/utils/Mobile/ClNumberKeyboard.cjs +1 -1
- package/buildLibs/utils/Mobile/ClNumberKeyboard.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClNumberKeyboard.js +2 -2
- package/buildLibs/utils/Mobile/ClPicker.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPicker.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClPicker.js +1 -1
- package/buildLibs/utils/Mobile/ClPickerArea.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPickerArea.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClPickerArea.js +1 -1
- package/buildLibs/utils/Mobile/ClPickerCascader.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPickerCascader.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClPickerCascader.js +2 -2
- package/buildLibs/utils/Mobile/ClPickerDate.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPickerDate.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClPickerDate.js +2 -2
- package/buildLibs/utils/Mobile/ClPickerTime.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPickerTime.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClPickerTime.js +2 -2
- package/buildLibs/utils/Mobile/ClPopup.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPopup.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClPopup.js +1 -1
- package/buildLibs/utils/Mobile/ClPullToRefresh.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPullToRefresh.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClPullToRefresh.js +1 -1
- package/buildLibs/utils/Mobile/ClRate.cjs +1 -1
- package/buildLibs/utils/Mobile/ClRate.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClRate.js +2 -2
- package/buildLibs/utils/Mobile/ClScrollCard.cjs +1 -1
- package/buildLibs/utils/Mobile/ClScrollCard.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClScrollCard.js +3 -3
- package/buildLibs/utils/Mobile/ClSharePanel.cjs +1 -1
- package/buildLibs/utils/Mobile/ClSharePanel.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClSharePanel.js +2 -2
- package/buildLibs/utils/Mobile/ClSidebar.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClSidebarSelect.cjs +1 -1
- package/buildLibs/utils/Mobile/ClSidebarSelect.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClSidebarSelect.js +1 -1
- package/buildLibs/utils/Mobile/ClSignature.cjs +1 -1
- package/buildLibs/utils/Mobile/ClSignature.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClSignature.js +1 -1
- package/buildLibs/utils/Mobile/ClSteps.cjs +1 -1
- package/buildLibs/utils/Mobile/ClSteps.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClSteps.js +1 -1
- package/buildLibs/utils/Mobile/ClSwipe.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClTabM.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClTabbar.cjs +1 -1
- package/buildLibs/utils/Mobile/ClTabbar.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClTabbar.js +2 -2
- package/buildLibs/utils/Mobile/ClTextHighlight.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClToast.cjs +1 -1
- package/buildLibs/utils/Mobile/ClToast.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClToast.js +1 -1
- package/buildLibs/utils/Mobile/ClWatermark.d.ts +1 -1
- package/buildLibs/utils/Mobile/__provide__/NotifyM.cjs +1 -1
- package/buildLibs/utils/Mobile/__provide__/NotifyM.d.ts +1 -1
- package/buildLibs/utils/Mobile/__provide__/NotifyM.js +11 -11
- package/buildLibs/utils/Mobile/__provide__/Toast.cjs +1 -1
- package/buildLibs/utils/Mobile/__provide__/Toast.d.ts +1 -1
- package/buildLibs/utils/Mobile/__provide__/Toast.js +17 -17
- package/buildLibs/utils/Shared/{Base.vue_vue_type_script_setup_true_lang-5_vbZ_4R.js → Base.vue_vue_type_script_setup_true_lang-Dl0UiFuI.js} +1 -1
- package/buildLibs/utils/Shared/{Base.vue_vue_type_script_setup_true_lang-BReU8HHD.js → Base.vue_vue_type_script_setup_true_lang-Dn7s_GGz.js} +1 -1
- package/buildLibs/utils/Shared/{BaseTransition.vue_vue_type_script_setup_true_lang-CmETUA__.js → BaseTransition.vue_vue_type_script_setup_true_lang-DA34fqR6.js} +1 -1
- package/buildLibs/utils/Shared/{BaseTransition.vue_vue_type_script_setup_true_lang-D4VcdHQo.js → BaseTransition.vue_vue_type_script_setup_true_lang-I6J8vBkR.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BJuly3Dc.js → Index.vue_vue_type_script_setup_true_lang-2ZL3h4ke.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-yQG3rOxU.js → Index.vue_vue_type_script_setup_true_lang-B2xxe-gj.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BTikeo7T.js → Index.vue_vue_type_script_setup_true_lang-B4wLYUS7.js} +5 -5
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B-LBJS_U.js → Index.vue_vue_type_script_setup_true_lang-B6aiJ0T_.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-d8FRnWoo.js → Index.vue_vue_type_script_setup_true_lang-B6mrwacu.js} +1 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BC8lIalF.js +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BKNG_Cdl.js +1 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CPwtuGiA.js → Index.vue_vue_type_script_setup_true_lang-BKrRiRoF.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-D53FO2PF.js → Index.vue_vue_type_script_setup_true_lang-BPu2Wq9y.js} +2 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BQwt39eR.js +120 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BXQl9ZJr.js → Index.vue_vue_type_script_setup_true_lang-BXWa903T.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DsTDQ4p-.js → Index.vue_vue_type_script_setup_true_lang-BZ0pwI22.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-WePMnXeI.js → Index.vue_vue_type_script_setup_true_lang-Bbk1BxEq.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BahSP_of.js → Index.vue_vue_type_script_setup_true_lang-BeY40OpW.js} +2 -2
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BRyvdWb7.js → Index.vue_vue_type_script_setup_true_lang-Bfji2Whf.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BppPP2_o.js → Index.vue_vue_type_script_setup_true_lang-Bj0lKDBR.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-SE1_-Y3D.js → Index.vue_vue_type_script_setup_true_lang-BnFtwIqC.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BLr46kTp.js → Index.vue_vue_type_script_setup_true_lang-Br1jq8i6.js} +6 -6
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DiFMOo2n.js → Index.vue_vue_type_script_setup_true_lang-BtlpTQO-.js} +8 -8
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DBEuF9lY.js → Index.vue_vue_type_script_setup_true_lang-BuEtcpnj.js} +1 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Butq4gj-.js +1 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DlaLkFjd.js → Index.vue_vue_type_script_setup_true_lang-ByrpuVbR.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BO2XU-fq.js → Index.vue_vue_type_script_setup_true_lang-Bz0g83T6.js} +2 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BzhSu_r3.js +1 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DTnllTwD.js → Index.vue_vue_type_script_setup_true_lang-BzuiaXQe.js} +2 -2
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B-K0phQ2.js → Index.vue_vue_type_script_setup_true_lang-C52WPuaY.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CIky1_fS.js → Index.vue_vue_type_script_setup_true_lang-C7M_3HR0.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BFq7G64T.js → Index.vue_vue_type_script_setup_true_lang-CCor2Ugz.js} +3 -3
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B2cccX6M.js → Index.vue_vue_type_script_setup_true_lang-CFen6ULY.js} +1 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CNLr4FbS.js +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CNoHvb2F.js +1 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-08Gdtb7o.js → Index.vue_vue_type_script_setup_true_lang-CUq-x89X.js} +2 -2
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-COprcd8r.js → Index.vue_vue_type_script_setup_true_lang-Ch6eF_cp.js} +2 -2
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-PraAnYLk.js → Index.vue_vue_type_script_setup_true_lang-ChmL4TJs.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-D15_sdie.js → Index.vue_vue_type_script_setup_true_lang-Cl7fkQ6_.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BLoX4k7J.js → Index.vue_vue_type_script_setup_true_lang-CumsUcci.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CSt6K9AQ.js → Index.vue_vue_type_script_setup_true_lang-D4PQKd5b.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Bn3f-2m-.js → Index.vue_vue_type_script_setup_true_lang-D6yVZJvt.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DjwVdgdl.js → Index.vue_vue_type_script_setup_true_lang-D7M1S5lI.js} +279 -278
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-0xVPFBUW.js → Index.vue_vue_type_script_setup_true_lang-DFppMubk.js} +7 -6
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Cm8_ZNJ7.js → Index.vue_vue_type_script_setup_true_lang-DJYEGSnc.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-b4R4PHf0.js → Index.vue_vue_type_script_setup_true_lang-DK0hs8bb.js} +1 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DNjo2kbg.js +74 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CQVg87mD.js → Index.vue_vue_type_script_setup_true_lang-DQBa9Pny.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Bd56L0m6.js → Index.vue_vue_type_script_setup_true_lang-DQmXTEq-.js} +3 -3
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BhGGH7ms.js → Index.vue_vue_type_script_setup_true_lang-DX9SitGp.js} +11 -11
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DAuZLHen.js → Index.vue_vue_type_script_setup_true_lang-D_GsoOLm.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-M72THnHz.js → Index.vue_vue_type_script_setup_true_lang-DfHi5Zuv.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B5MSug5Q.js → Index.vue_vue_type_script_setup_true_lang-DfvtkXRU.js} +4 -4
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CgNMWZqs.js → Index.vue_vue_type_script_setup_true_lang-DjeTtNM6.js} +34 -34
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B2kyuq50.js → Index.vue_vue_type_script_setup_true_lang-DmeDtJvz.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Dnw-Opme.js → Index.vue_vue_type_script_setup_true_lang-Dn63CT7W.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-bKzsLLvg.js → Index.vue_vue_type_script_setup_true_lang-DuZNkaR0.js} +1 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-EG5hgxoY.js +1 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B9xISM7N.js → Index.vue_vue_type_script_setup_true_lang-RBYo7N7Z.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CtBOIjdU.js → Index.vue_vue_type_script_setup_true_lang-_F9J4-Q1.js} +4 -4
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DZSulESm.js → Index.vue_vue_type_script_setup_true_lang-_jJNPocq.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B0NaQAuE.js → Index.vue_vue_type_script_setup_true_lang-bYE_Eer4.js} +3 -3
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Cx56SGXr.js → Index.vue_vue_type_script_setup_true_lang-bybpF3my.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BRJ2Ll2r.js → Index.vue_vue_type_script_setup_true_lang-c085vJ-u.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-qOys54ns.js → Index.vue_vue_type_script_setup_true_lang-ef-Lbwxl.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CnLyIXBs.js → Index.vue_vue_type_script_setup_true_lang-f6va8eHF.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Dq-sCBRz.js → Index.vue_vue_type_script_setup_true_lang-fgqA2nof.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-8-8svPDH.js → Index.vue_vue_type_script_setup_true_lang-gR6txSCA.js} +1 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-jyymIwdR.js +1 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-K7pBVuwe.js → Index.vue_vue_type_script_setup_true_lang-tmqr2c2p.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BxWYROZH.js → Index.vue_vue_type_script_setup_true_lang-wPTIA5Lr.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BAUA1fQJ.js → Index.vue_vue_type_script_setup_true_lang-xW9nixd_.js} +1 -1
- package/buildLibs/utils/Shared/Index10.css +1 -1
- package/buildLibs/utils/Shared/Index11.css +1 -1
- package/buildLibs/utils/Shared/Index12.css +1 -1
- package/buildLibs/utils/Shared/Index13.css +1 -1
- package/buildLibs/utils/Shared/Index14.css +1 -1
- package/buildLibs/utils/Shared/Index15.css +1 -1
- package/buildLibs/utils/Shared/Index16.css +1 -1
- package/buildLibs/utils/Shared/Index17.css +1 -1
- package/buildLibs/utils/Shared/Index18.css +1 -1
- package/buildLibs/utils/Shared/Index19.css +1 -1
- package/buildLibs/utils/Shared/Index20.css +1 -1
- package/buildLibs/utils/Shared/Index21.css +1 -1
- package/buildLibs/utils/Shared/Index22.css +1 -1
- package/buildLibs/utils/Shared/Index23.css +1 -1
- package/buildLibs/utils/Shared/Index24.css +1 -1
- package/buildLibs/utils/Shared/Index25.css +1 -1
- package/buildLibs/utils/Shared/Index26.css +1 -1
- package/buildLibs/utils/Shared/Index27.css +1 -1
- package/buildLibs/utils/Shared/Index28.css +1 -1
- package/buildLibs/utils/Shared/Index29.css +1 -1
- package/buildLibs/utils/Shared/Index30.css +1 -1
- package/buildLibs/utils/Shared/Index31.css +1 -1
- package/buildLibs/utils/Shared/Index32.css +1 -1
- package/buildLibs/utils/Shared/Index33.css +1 -1
- package/buildLibs/utils/Shared/Index34.css +1 -1
- package/buildLibs/utils/Shared/Index35.css +1 -1
- package/buildLibs/utils/Shared/Index36.css +1 -1
- package/buildLibs/utils/Shared/Index37.css +1 -1
- package/buildLibs/utils/Shared/Index38.css +1 -1
- package/buildLibs/utils/Shared/Index39.css +1 -0
- package/buildLibs/utils/Shared/Index4.css +1 -1
- package/buildLibs/utils/Shared/Index40.css +1 -0
- package/buildLibs/utils/Shared/Index41.css +1 -0
- package/buildLibs/utils/Shared/Index5.css +1 -1
- package/buildLibs/utils/Shared/Index6.css +1 -1
- package/buildLibs/utils/Shared/Index7.css +1 -1
- package/buildLibs/utils/Shared/Index8.css +1 -1
- package/buildLibs/utils/Shared/Index9.css +1 -1
- package/buildLibs/utils/Shared/{Ing.vue_vue_type_script_setup_true_lang-DPFunPx2.js → Ing.vue_vue_type_script_setup_true_lang-CGFlREiD.js} +1 -1
- package/buildLibs/utils/Shared/{Ing.vue_vue_type_script_setup_true_lang-Zb0-4POE.js → Ing.vue_vue_type_script_setup_true_lang-CXLxBRdP.js} +1 -1
- package/buildLibs/utils/Shared/{List.vue_vue_type_script_setup_true_lang-BLgui2Zv.js → List.vue_vue_type_script_setup_true_lang-0EtOdp73.js} +3 -3
- package/buildLibs/utils/Shared/{List.vue_vue_type_script_setup_true_lang-DJAqJJnH.js → List.vue_vue_type_script_setup_true_lang-G2klceWn.js} +1 -1
- package/buildLibs/utils/Shared/{One.vue_vue_type_script_setup_true_lang-BRIVGray.js → One.vue_vue_type_script_setup_true_lang-CLUQLstT.js} +2 -2
- package/buildLibs/utils/Shared/{One.vue_vue_type_script_setup_true_lang-Du9X7x9H.js → One.vue_vue_type_script_setup_true_lang-CREhY2it.js} +2 -2
- package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-D89MNwcx.js +1 -0
- package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-_Oip87Q5.js +1 -0
- package/buildLibs/utils/Shared/{Popup.vue_vue_type_script_setup_true_lang-d2TT0lCU.js → Popup.vue_vue_type_script_setup_true_lang-B1FPgy2w.js} +1 -1
- package/buildLibs/utils/Shared/{Popup.vue_vue_type_script_setup_true_lang-hfNlyh_i.js → Popup.vue_vue_type_script_setup_true_lang-lq2pb7vN.js} +2 -2
- package/buildLibs/utils/Shared/Validate.vue_vue_type_script_setup_true_lang-BwcOP-Dw.js +321 -0
- package/buildLibs/utils/Shared/Validate.vue_vue_type_script_setup_true_lang-iQhIBpru.js +1 -0
- package/buildLibs/utils/Shared/core-C6MTnOZl.js +17 -0
- package/buildLibs/utils/Shared/core-DkTnn6Hr.js +1 -0
- package/buildLibs/utils/Shared/globalConfig-BjG8BDet.js +1 -0
- package/buildLibs/utils/Shared/globalConfig-C5mivGXK.js +20 -0
- package/buildLibs/utils/Shared/index-BHXq3tfy.js +1 -0
- package/buildLibs/utils/Shared/{language-pMmux6Js.js → index-BIzRLXG5.js} +44 -151
- package/buildLibs/utils/Shared/index-C2go56jd.js +1 -0
- package/buildLibs/utils/Shared/index-CH1kcNPT.js +23 -0
- package/buildLibs/utils/Shared/index-CZoT585K.js +1 -0
- package/buildLibs/utils/Shared/index-CmFWmRVX.js +1 -0
- package/buildLibs/utils/Shared/index-CmQXtjeZ.js +370 -0
- package/buildLibs/utils/Shared/index-CtGhbcyx.js +1 -0
- package/buildLibs/utils/Shared/index-DDMSc-Kb.js +59 -0
- package/buildLibs/utils/Shared/index-DOlH83KS.js +19 -0
- package/buildLibs/utils/Shared/index-Dc_m9J6h.js +1 -0
- package/buildLibs/utils/Shared/index-DoxFaAkn.js +420 -0
- package/buildLibs/utils/Shared/language-BaLIp7bA.js +111 -0
- package/buildLibs/utils/Shared/language-CBZjQ9dC.js +1 -0
- package/buildLibs/utils/Shared/{use-CRdlCpEV.js → lazy-BnJvXuIy.js} +34 -47
- package/buildLibs/utils/Shared/lazy-CkM9Gsf2.js +1 -0
- package/buildLibs/utils/Shared/{log-BbLqiWNM.js → log-CSNil8va.js} +1 -1
- package/buildLibs/utils/Shared/{log-C2ZbqiAV.js → log-gqSePaMZ.js} +1 -1
- package/buildLibs/utils/Shared/use-BDiunhgx.js +1 -0
- package/buildLibs/utils/Shared/use-DJuwo6MI.js +17 -0
- package/buildLibs/utils/Web/ClAnchorNav.cjs +1 -1
- package/buildLibs/utils/Web/ClAnchorNav.d.ts +1 -1
- package/buildLibs/utils/Web/ClAnchorNav.js +2 -2
- package/buildLibs/utils/Web/ClCalendar.cjs +1 -1
- package/buildLibs/utils/Web/ClCalendar.d.ts +1 -1
- package/buildLibs/utils/Web/ClCalendar.js +4 -4
- package/buildLibs/utils/Web/ClCodeLegend.cjs +1 -1
- package/buildLibs/utils/Web/ClCodeLegend.d.ts +1 -1
- package/buildLibs/utils/Web/ClCodeLegend.js +2 -2
- package/buildLibs/utils/Web/ClColorPicker.cjs +1 -1
- package/buildLibs/utils/Web/ClColorPicker.d.ts +1 -1
- package/buildLibs/utils/Web/ClColorPicker.js +5 -5
- package/buildLibs/utils/Web/ClCropper.cjs +1 -1
- package/buildLibs/utils/Web/ClCropper.d.ts +1 -1
- package/buildLibs/utils/Web/ClCropper.js +1 -1
- package/buildLibs/utils/Web/ClCropperPreview.cjs +1 -1
- package/buildLibs/utils/Web/ClCropperPreview.d.ts +1 -1
- package/buildLibs/utils/Web/ClCropperPreview.js +5 -5
- package/buildLibs/utils/Web/ClDateTime.cjs +1 -1
- package/buildLibs/utils/Web/ClDateTime.d.ts +1 -1
- package/buildLibs/utils/Web/ClDateTime.js +1 -1
- package/buildLibs/utils/Web/ClDropdownMenu.cjs +1 -1
- package/buildLibs/utils/Web/ClDropdownMenu.d.ts +1 -1
- package/buildLibs/utils/Web/ClDropdownMenu.js +2 -2
- package/buildLibs/utils/Web/ClDropdownMenuItem.cjs +1 -1
- package/buildLibs/utils/Web/ClDropdownMenuItem.d.ts +1 -1
- package/buildLibs/utils/Web/ClDropdownMenuItem.js +1 -1
- package/buildLibs/utils/Web/ClDropdownPopup.cjs +1 -1
- package/buildLibs/utils/Web/ClDropdownPopup.d.ts +1 -1
- package/buildLibs/utils/Web/ClDropdownPopup.js +2 -2
- package/buildLibs/utils/Web/ClEcharts.cjs +1 -1
- package/buildLibs/utils/Web/ClEcharts.d.ts +1 -1
- package/buildLibs/utils/Web/ClEcharts.js +1 -1
- package/buildLibs/utils/Web/ClEchartsLineAxisTag.cjs +1 -1
- package/buildLibs/utils/Web/ClEchartsLineAxisTag.d.ts +1 -1
- package/buildLibs/utils/Web/ClEchartsLineAxisTag.js +2 -2
- package/buildLibs/utils/Web/ClFileUpload.cjs +1 -1
- package/buildLibs/utils/Web/ClFileUpload.d.ts +1 -1
- package/buildLibs/utils/Web/ClFileUpload.js +1 -1
- package/buildLibs/utils/Web/ClFramePhone.d.ts +1 -1
- package/buildLibs/utils/Web/ClInputTag.cjs +1 -1
- package/buildLibs/utils/Web/ClInputTag.d.ts +1 -1
- package/buildLibs/utils/Web/ClInputTag.js +1 -1
- package/buildLibs/utils/Web/ClPaginate.cjs +1 -1
- package/buildLibs/utils/Web/ClPaginate.d.ts +1 -1
- package/buildLibs/utils/Web/ClPaginate.js +1 -1
- package/buildLibs/utils/Web/ClPortlet.d.ts +1 -1
- package/buildLibs/utils/Web/ClPreviewExample.cjs +1 -1
- package/buildLibs/utils/Web/ClPreviewExample.d.ts +1 -1
- package/buildLibs/utils/Web/ClPreviewExample.js +1 -1
- package/buildLibs/utils/Web/ClScrollXFence.cjs +1 -1
- package/buildLibs/utils/Web/ClScrollXFence.d.ts +1 -1
- package/buildLibs/utils/Web/ClScrollXFence.js +1 -1
- package/buildLibs/utils/Web/ClSelect.cjs +1 -1
- package/buildLibs/utils/Web/ClSelect.d.ts +1 -1
- package/buildLibs/utils/Web/ClSelect.js +1 -1
- package/buildLibs/utils/Web/ClSelectCascade.cjs +1 -1
- package/buildLibs/utils/Web/ClSelectCascade.d.ts +1 -1
- package/buildLibs/utils/Web/ClSelectCascade.js +1 -1
- package/buildLibs/utils/Web/ClSelectMove.cjs +1 -1
- package/buildLibs/utils/Web/ClSelectMove.d.ts +1 -1
- package/buildLibs/utils/Web/ClSelectMove.js +7 -7
- package/buildLibs/utils/Web/ClSelectTag.cjs +1 -1
- package/buildLibs/utils/Web/ClSelectTag.d.ts +1 -1
- package/buildLibs/utils/Web/ClSelectTag.js +1 -1
- package/buildLibs/utils/Web/ClSelectTree.cjs +1 -1
- package/buildLibs/utils/Web/ClSelectTree.d.ts +1 -1
- package/buildLibs/utils/Web/ClSelectTree.js +4 -4
- package/buildLibs/utils/Web/ClSideMenu.cjs +1 -1
- package/buildLibs/utils/Web/ClSideMenu.d.ts +1 -1
- package/buildLibs/utils/Web/ClSideMenu.js +2 -2
- package/buildLibs/utils/Web/ClTable.cjs +1 -1
- package/buildLibs/utils/Web/ClTable.d.ts +1 -1
- package/buildLibs/utils/Web/ClTable.js +10 -10
- package/buildLibs/utils/Web/ClTableEdit.d.ts +1 -1
- package/buildLibs/utils/Web/ClTableSimple.d.ts +1 -1
- package/buildLibs/utils/Web/ClTabs.cjs +1 -1
- package/buildLibs/utils/Web/ClTabs.d.ts +1 -1
- package/buildLibs/utils/Web/ClTabs.js +3 -3
- package/buildLibs/utils/Web/ClTree.cjs +1 -1
- package/buildLibs/utils/Web/ClTree.d.ts +1 -1
- package/buildLibs/utils/Web/ClTree.js +1 -1
- package/buildLibs/utils/Web/ClWeekHour.cjs +1 -1
- package/buildLibs/utils/Web/ClWeekHour.d.ts +1 -1
- package/buildLibs/utils/Web/ClWeekHour.js +3 -3
- package/buildLibs/utils/Web/ClXEditable.cjs +1 -1
- package/buildLibs/utils/Web/ClXEditable.d.ts +1 -1
- package/buildLibs/utils/Web/ClXEditable.js +19 -19
- package/buildLibs/utils/Web/__directive__/CodeHighlight.cjs +1 -1
- package/buildLibs/utils/Web/__directive__/CodeHighlight.js +3 -16
- package/buildLibs/utils/Web/__directive__/Tooltip.cjs +1 -1
- package/buildLibs/utils/Web/__directive__/Tooltip.js +6 -410
- package/buildLibs/utils/Web/__directive__/Waves.cjs +1 -1
- package/buildLibs/utils/Web/__directive__/Waves.js +4 -51
- package/buildLibs/utils/Web/__provide__/Alert.cjs +1 -1
- package/buildLibs/utils/Web/__provide__/Alert.d.ts +1 -1
- package/buildLibs/utils/Web/__provide__/Alert.js +39 -39
- package/buildLibs/utils/Web/__provide__/Notify.cjs +1 -1
- package/buildLibs/utils/Web/__provide__/Notify.d.ts +1 -1
- package/buildLibs/utils/Web/__provide__/Notify.js +8 -8
- package/buildLibs/utils/Web/__provide__/Preview.cjs +1 -1
- package/buildLibs/utils/Web/__provide__/Preview.d.ts +1 -1
- package/buildLibs/utils/Web/__provide__/Preview.js +8 -365
- package/buildLibs/utils/core/all.cjs +1 -0
- package/buildLibs/utils/core/all.js +7 -0
- package/buildLibs/utils/core/mobile.cjs +1 -0
- package/buildLibs/utils/core/mobile.js +14 -0
- package/buildLibs/utils/core/web.cjs +1 -0
- package/buildLibs/utils/core/web.js +26 -0
- package/buildLibs/web/{BallColor4-Bk0PbmjR.js → BallColor4-CGz84e-8.js} +1 -1
- package/buildLibs/{mobile/BallColor4-C7lQaABY.cjs → web/BallColor4-DsHSwHqh.cjs} +1 -1
- package/buildLibs/{mobile/ToastRing-ZSOlED5s.js → web/ToastRing-D7GSFx_o.js} +1 -1
- package/buildLibs/{all/ToastRing-DqiGLTLN.cjs → web/ToastRing-DyynyXeD.cjs} +1 -1
- package/buildLibs/web/{Video-7bB5a3gv.cjs → Video-DbKxr-i7.cjs} +1 -1
- package/buildLibs/web/{Video-D36W46Pk.js → Video-b6MvLQBG.js} +1 -1
- package/buildLibs/web/{index-jOBQ0InH.cjs → index-By7v49Ku.cjs} +4 -4
- package/buildLibs/web/{index-ai_LrIsJ.js → index-CJJp0mfH.js} +120 -112
- package/buildLibs/web/index.cjs +1 -1
- package/buildLibs/web/index.js +1 -1
- package/docs/tools/CommonBrowserProgress.md +39 -0
- package/docs/tools/CommonGlobalConfig.md +46 -0
- package/docs/tools/clLog.md +39 -0
- package/docs/tools/globalTypes.md +43 -0
- package/package.json +42 -1
- package/buildLibs/common/Common/Element/Event/drag.d.ts +0 -30
- package/buildLibs/common/Common/Element/Event/index.d.ts +0 -9
- package/buildLibs/common/Common/Element/Event/resize.d.ts +0 -20
- package/buildLibs/common/Common/Element/index.d.ts +0 -111
- package/buildLibs/common/Common/Tools/animateEasing.d.ts +0 -27
- package/buildLibs/common/Common/Tools/cookie.d.ts +0 -8
- package/buildLibs/common/Common/Tools/delayFun.d.ts +0 -9
- package/buildLibs/common/Common/Tools/device.d.ts +0 -33
- package/buildLibs/common/Common/Tools/index.d.ts +0 -18
- package/buildLibs/common/Common/Tools/localStorage.d.ts +0 -9
- package/buildLibs/common/Common/Tools/number.d.ts +0 -9
- package/buildLibs/common/Common/axios.d.ts +0 -28
- package/buildLibs/common/Common/base.d.ts +0 -233
- package/buildLibs/common/Common/browserProgress.d.ts +0 -26
- package/buildLibs/common/Common/day.d.ts +0 -30
- package/buildLibs/common/Common/echart.d.ts +0 -91
- package/buildLibs/common/Common/globalConfig.d.ts +0 -28
- package/buildLibs/common/Common/globalTypes.d.ts +0 -88
- package/buildLibs/common/Common/i18n/a11y.d.ts +0 -62
- package/buildLibs/common/Common/i18n/en.d.ts +0 -112
- package/buildLibs/common/Common/i18n/index.d.ts +0 -25
- package/buildLibs/common/Common/i18n/zh_CN.d.ts +0 -112
- package/buildLibs/common/Common/index.d.ts +0 -13
- package/buildLibs/common/Common/log.d.ts +0 -7
- package/buildLibs/common/Common/promise.d.ts +0 -14
- package/buildLibs/common/Common/tooltip.d.ts +0 -40
- package/buildLibs/common/browserProgress.css +0 -1
- package/buildLibs/modules/shared/Validate.vue_vue_type_script_setup_true_lang-FZ6qiA6w.js +0 -411
- package/buildLibs/utils/Element/ClLoadScreen.css +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CDslbo4h.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CFNQBTiQ.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-D4BokTL9.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-D8TDafMl.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DYj0GzN0.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DtTJLC6m.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Gp7OJJx5.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-oFF20mhc.js +0 -152
- package/buildLibs/utils/Shared/Index2.css +0 -1
- package/buildLibs/utils/Shared/Index3.css +0 -1
- package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-BC8yzPg5.js +0 -1
- package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-BKTdt1M7.js +0 -1
- package/buildLibs/utils/Shared/Validate.vue_vue_type_script_setup_true_lang-DidPD12P.js +0 -411
- package/buildLibs/utils/Shared/Validate.vue_vue_type_script_setup_true_lang-DyOZ5QGN.js +0 -1
- package/buildLibs/utils/Shared/globalConfig-D1-9RCQO.js +0 -5
- package/buildLibs/utils/Shared/globalConfig-vNEDVL2C.js +0 -1
- package/buildLibs/utils/Shared/language-Q4AGYtUe.js +0 -1
- package/buildLibs/utils/Shared/use-BBpYjALT.js +0 -1
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DlFdXr6k.js → Index.vue_vue_type_script_setup_true_lang-BGGMHKo2.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-0GHFohjQ.js → Index.vue_vue_type_script_setup_true_lang-BHonqwfb.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-afRTRRcb.js → Index.vue_vue_type_script_setup_true_lang-BmRO42R2.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BbxnIsLt.js → Index.vue_vue_type_script_setup_true_lang-BwZ2C-6b.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Dyo4Sh1B.js → Index.vue_vue_type_script_setup_true_lang-D5_ktvRf.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B4dpfPSy.js → Index.vue_vue_type_script_setup_true_lang-DU1H_1lY.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-C242QFDV.js → Index.vue_vue_type_script_setup_true_lang-Db7kCHWV.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-D3h6Q_pB.js → Index.vue_vue_type_script_setup_true_lang-DfJX3uyy.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Cb49VSDS.js → Index.vue_vue_type_script_setup_true_lang-DyBY0DG5.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CyYCIkzr.js → Index.vue_vue_type_script_setup_true_lang-KKIG3pkE.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DQBXyVuV.js → Index.vue_vue_type_script_setup_true_lang-cceO6cqW.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-C1Z3g7mN.js → Index.vue_vue_type_script_setup_true_lang-hGx0sqwu.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CAEbDVL3.js → Index.vue_vue_type_script_setup_true_lang-p_9-WY4K.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BsE_zUs_.js → Index.vue_vue_type_script_setup_true_lang-vm_cblnn.js} +0 -0
- /package/buildLibs/utils/Shared/{Waves.css → index2.css} +0 -0
- /package/buildLibs/utils/Shared/{Tooltip.css → index3.css} +0 -0
- /package/buildLibs/utils/Shared/{Preview.css → index42.css} +0 -0
- /package/buildLibs/utils/Shared/{index39.css → index43.css} +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { onMounted as I, nextTick as E, onUnmounted as l, watch as d } from "vue";
|
|
2
1
|
import { C as o } from "./base-fr2I80sU.js";
|
|
3
2
|
const s = {
|
|
4
3
|
loading: "data:image/gif;base64,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",
|
|
@@ -7,7 +6,7 @@ const s = {
|
|
|
7
6
|
timeOutId: "data-lazy-timeout-id"
|
|
8
7
|
}
|
|
9
8
|
};
|
|
10
|
-
class
|
|
9
|
+
class E {
|
|
11
10
|
options = {
|
|
12
11
|
loading: s.loading,
|
|
13
12
|
error: s.error,
|
|
@@ -26,31 +25,31 @@ class C {
|
|
|
26
25
|
this.options = o.getJsonMergeDeep(this.options, A);
|
|
27
26
|
}
|
|
28
27
|
_initValue(A, t) {
|
|
29
|
-
let
|
|
30
|
-
return o.isObject(A) ? (
|
|
31
|
-
src:
|
|
28
|
+
let i = "", r = this.options.loading, e = this.options.error, n = this.options.callback, g = this.options.delay;
|
|
29
|
+
return o.isObject(A) ? (i = A.src, r = o.isUndefined(A.loading) ? this.options.loading : A.loading, e = o.isUndefined(A.error) ? this.options.error : A.error, n = o.isUndefined(A.callback) ? this.options.callback : A.callback, g = o.isUndefined(A.delay) ? this.options.delay : A.delay) : o.isString(A) ? i = A : o.isUndefined(A) && (i = t && t.src || ""), {
|
|
30
|
+
src: i,
|
|
32
31
|
loading: r,
|
|
33
|
-
error:
|
|
32
|
+
error: e,
|
|
34
33
|
callback: n,
|
|
35
|
-
delay:
|
|
34
|
+
delay: g
|
|
36
35
|
};
|
|
37
36
|
}
|
|
38
37
|
mount(A, t) {
|
|
39
38
|
if (o.isUndefined(A)) return;
|
|
40
|
-
const
|
|
41
|
-
if (this._setCallback(A, "loading",
|
|
42
|
-
this._setImageSrc(A, r, n,
|
|
39
|
+
const i = o.isString(t) ? t : t.value, { src: r, loading: e, error: n, callback: g, delay: a } = this._initValue(i, A);
|
|
40
|
+
if (this._setCallback(A, "loading", g), A.setAttribute("src", e || s.loading), !this._checkIntersectionObserver()) {
|
|
41
|
+
this._setImageSrc(A, r, n, g), this._log(() => {
|
|
43
42
|
throw new Error("Not support IntersectionObserver!");
|
|
44
43
|
});
|
|
45
44
|
return;
|
|
46
45
|
}
|
|
47
|
-
this._initIntersectionObserver(A, r, n,
|
|
46
|
+
this._initIntersectionObserver(A, r, n, g, a);
|
|
48
47
|
}
|
|
49
48
|
update(A, t) {
|
|
50
49
|
if (o.isUndefined(A)) return;
|
|
51
50
|
this._realObserver(A)?.unobserve(A), A.hasAttribute(s.attr.timeOutId) && (clearTimeout(Number(A.getAttribute(s.attr.timeOutId))), A.removeAttribute(s.attr.timeOutId));
|
|
52
|
-
const
|
|
53
|
-
this._initIntersectionObserver(A, r,
|
|
51
|
+
const i = o.isString(t) ? t : t.value, { src: r, error: e, callback: n, delay: g } = this._initValue(i, A);
|
|
52
|
+
this._initIntersectionObserver(A, r, e, n, g);
|
|
54
53
|
}
|
|
55
54
|
unmount(A) {
|
|
56
55
|
if (!o.isUndefined(A)) {
|
|
@@ -61,29 +60,29 @@ class C {
|
|
|
61
60
|
this._images.delete(A);
|
|
62
61
|
}
|
|
63
62
|
}
|
|
64
|
-
_setImageSrc(A, t,
|
|
63
|
+
_setImageSrc(A, t, i, r) {
|
|
65
64
|
if (A.tagName.toLowerCase() === "img") {
|
|
66
|
-
const
|
|
67
|
-
o.isEmpty(t) ? (
|
|
68
|
-
t && this._setCallback(
|
|
69
|
-
},
|
|
70
|
-
|
|
65
|
+
const e = A;
|
|
66
|
+
o.isEmpty(t) ? (e.onload = null, this._setCallback(e, "error", r), this._realObserver(e)?.disconnect(), i ? e.setAttribute("src", i) : e.removeAttribute("src")) : (this.options.isCrossOrigin && (e.crossOrigin = "Anonymous"), t && e.getAttribute("src") !== t && e.setAttribute("src", t), e.onload = () => {
|
|
67
|
+
t && this._setCallback(e, "loaded", r);
|
|
68
|
+
}, e.onerror = () => {
|
|
69
|
+
e.onload = null, this._setCallback(e, "error", r), this._realObserver(e)?.disconnect(), i && e.getAttribute("src") !== i && e.setAttribute("src", i), this._log(() => {
|
|
71
70
|
throw new Error(`Image failed to load!And failed src was: ${t} `);
|
|
72
71
|
});
|
|
73
72
|
});
|
|
74
73
|
} else
|
|
75
74
|
A.style.backgroundImage = `url('${t}')`;
|
|
76
75
|
}
|
|
77
|
-
_setCallback(A, t,
|
|
76
|
+
_setCallback(A, t, i) {
|
|
78
77
|
switch (A?.setAttribute("lazy", t), t) {
|
|
79
78
|
case "loading":
|
|
80
|
-
|
|
79
|
+
i?.loading && i.loading(A);
|
|
81
80
|
break;
|
|
82
81
|
case "loaded":
|
|
83
|
-
|
|
82
|
+
i?.loaded && i.loaded(A);
|
|
84
83
|
break;
|
|
85
84
|
case "error":
|
|
86
|
-
|
|
85
|
+
i?.error && i.error(A);
|
|
87
86
|
break;
|
|
88
87
|
}
|
|
89
88
|
}
|
|
@@ -106,27 +105,27 @@ class C {
|
|
|
106
105
|
}
|
|
107
106
|
return !1;
|
|
108
107
|
}
|
|
109
|
-
_initIntersectionObserver(A, t,
|
|
108
|
+
_initIntersectionObserver(A, t, i, r, e) {
|
|
110
109
|
const n = this.options.observerOptions;
|
|
111
110
|
this._images.set(
|
|
112
111
|
A,
|
|
113
|
-
new IntersectionObserver((
|
|
114
|
-
Array.prototype.forEach.call(
|
|
115
|
-
|
|
112
|
+
new IntersectionObserver((g) => {
|
|
113
|
+
Array.prototype.forEach.call(g, (a) => {
|
|
114
|
+
e && e > 0 ? this._delayedIntersectionCallback(A, a, e, t, i, r) : this._intersectionCallback(A, a, t, i, r);
|
|
116
115
|
});
|
|
117
116
|
}, n)
|
|
118
117
|
), this._realObserver(A)?.observe(A);
|
|
119
118
|
}
|
|
120
|
-
_intersectionCallback(A, t,
|
|
121
|
-
t.isIntersecting && (this._realObserver(A)?.unobserve(t.target), this._setImageSrc(A,
|
|
119
|
+
_intersectionCallback(A, t, i, r, e) {
|
|
120
|
+
t.isIntersecting && (this._realObserver(A)?.unobserve(t.target), this._setImageSrc(A, i, r, e));
|
|
122
121
|
}
|
|
123
|
-
_delayedIntersectionCallback(A, t,
|
|
122
|
+
_delayedIntersectionCallback(A, t, i, r, e, n) {
|
|
124
123
|
if (t.isIntersecting) {
|
|
125
124
|
if (t.target.hasAttribute(s.attr.timeOutId)) return;
|
|
126
|
-
const
|
|
127
|
-
this._intersectionCallback(A, t, r,
|
|
128
|
-
},
|
|
129
|
-
t.target.setAttribute(s.attr.timeOutId, String(
|
|
125
|
+
const g = setTimeout(() => {
|
|
126
|
+
this._intersectionCallback(A, t, r, e, n), t.target.removeAttribute(s.attr.timeOutId);
|
|
127
|
+
}, i);
|
|
128
|
+
t.target.setAttribute(s.attr.timeOutId, String(g));
|
|
130
129
|
} else
|
|
131
130
|
t.target.hasAttribute(s.attr.timeOutId) && (clearTimeout(Number(t.target.getAttribute(s.attr.timeOutId))), t.target.removeAttribute(s.attr.timeOutId));
|
|
132
131
|
}
|
|
@@ -134,18 +133,6 @@ class C {
|
|
|
134
133
|
this.options.log && A();
|
|
135
134
|
}
|
|
136
135
|
}
|
|
137
|
-
const Q = (g, A, t) => {
|
|
138
|
-
const e = new C(t);
|
|
139
|
-
I(() => {
|
|
140
|
-
E(() => {
|
|
141
|
-
g.value && e.mount(g.value, A);
|
|
142
|
-
});
|
|
143
|
-
}), l(() => {
|
|
144
|
-
g.value && e.unmount(g.value);
|
|
145
|
-
}), d(A, (r) => {
|
|
146
|
-
g.value && e.update(g.value, r);
|
|
147
|
-
});
|
|
148
|
-
};
|
|
149
136
|
export {
|
|
150
|
-
|
|
137
|
+
E as L
|
|
151
138
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./base-DbuX_Y3x.js"),r={loading:"data:image/gif;base64,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",error:"data:image/png;base64,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",attr:{timeOutId:"data-lazy-timeout-id"}};class c{options={loading:r.loading,error:r.error,observerOptions:{rootMargin:"0px",threshold:0},log:!1,callback:{}};_images=new WeakMap;constructor(A){this.config(A)}config(A={}){this.options=o.CommonBase.getJsonMergeDeep(this.options,A)}_initValue(A,t){let i="",s=this.options.loading,e=this.options.error,n=this.options.callback,a=this.options.delay;return o.CommonBase.isObject(A)?(i=A.src,s=o.CommonBase.isUndefined(A.loading)?this.options.loading:A.loading,e=o.CommonBase.isUndefined(A.error)?this.options.error:A.error,n=o.CommonBase.isUndefined(A.callback)?this.options.callback:A.callback,a=o.CommonBase.isUndefined(A.delay)?this.options.delay:A.delay):o.CommonBase.isString(A)?i=A:o.CommonBase.isUndefined(A)&&(i=t&&t.src||""),{src:i,loading:s,error:e,callback:n,delay:a}}mount(A,t){if(o.CommonBase.isUndefined(A))return;const i=o.CommonBase.isString(t)?t:t.value,{src:s,loading:e,error:n,callback:a,delay:g}=this._initValue(i,A);if(this._setCallback(A,"loading",a),A.setAttribute("src",e||r.loading),!this._checkIntersectionObserver()){this._setImageSrc(A,s,n,a),this._log(()=>{throw new Error("Not support IntersectionObserver!")});return}this._initIntersectionObserver(A,s,n,a,g)}update(A,t){if(o.CommonBase.isUndefined(A))return;this._realObserver(A)?.unobserve(A),A.hasAttribute(r.attr.timeOutId)&&(clearTimeout(Number(A.getAttribute(r.attr.timeOutId))),A.removeAttribute(r.attr.timeOutId));const i=o.CommonBase.isString(t)?t:t.value,{src:s,error:e,callback:n,delay:a}=this._initValue(i,A);this._initIntersectionObserver(A,s,e,n,a)}unmount(A){if(!o.CommonBase.isUndefined(A)){if(this._realObserver(A)?.unobserve(A),A.hasAttribute(r.attr.timeOutId)&&(clearTimeout(Number(A.getAttribute(r.attr.timeOutId))),A.removeAttribute(r.attr.timeOutId)),A.tagName.toLowerCase()==="img"){const t=A;t.onload=null,t.onerror=null}this._images.delete(A)}}_setImageSrc(A,t,i,s){if(A.tagName.toLowerCase()==="img"){const e=A;o.CommonBase.isEmpty(t)?(e.onload=null,this._setCallback(e,"error",s),this._realObserver(e)?.disconnect(),i?e.setAttribute("src",i):e.removeAttribute("src")):(this.options.isCrossOrigin&&(e.crossOrigin="Anonymous"),t&&e.getAttribute("src")!==t&&e.setAttribute("src",t),e.onload=()=>{t&&this._setCallback(e,"loaded",s)},e.onerror=()=>{e.onload=null,this._setCallback(e,"error",s),this._realObserver(e)?.disconnect(),i&&e.getAttribute("src")!==i&&e.setAttribute("src",i),this._log(()=>{throw new Error(`Image failed to load!And failed src was: ${t} `)})})}else A.style.backgroundImage=`url('${t}')`}_setCallback(A,t,i){switch(A?.setAttribute("lazy",t),t){case"loading":i?.loading&&i.loading(A);break;case"loaded":i?.loaded&&i.loaded(A);break;case"error":i?.error&&i.error(A);break}}_realObserver(A){return this._images.get(A)}_checkIntersectionObserver(){if(typeof window<"u"&&window!==null&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){if(!("isIntersecting"in window.IntersectionObserverEntry.prototype))try{Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get(){return this.intersectionRatio>0}})}catch{return!1}return!0}return!1}_initIntersectionObserver(A,t,i,s,e){const n=this.options.observerOptions;this._images.set(A,new IntersectionObserver(a=>{Array.prototype.forEach.call(a,g=>{e&&e>0?this._delayedIntersectionCallback(A,g,e,t,i,s):this._intersectionCallback(A,g,t,i,s)})},n)),this._realObserver(A)?.observe(A)}_intersectionCallback(A,t,i,s,e){t.isIntersecting&&(this._realObserver(A)?.unobserve(t.target),this._setImageSrc(A,i,s,e))}_delayedIntersectionCallback(A,t,i,s,e,n){if(t.isIntersecting){if(t.target.hasAttribute(r.attr.timeOutId))return;const a=setTimeout(()=>{this._intersectionCallback(A,t,s,e,n),t.target.removeAttribute(r.attr.timeOutId)},i);t.target.setAttribute(r.attr.timeOutId,String(a))}else t.target.hasAttribute(r.attr.timeOutId)&&(clearTimeout(Number(t.target.getAttribute(r.attr.timeOutId))),t.target.removeAttribute(r.attr.timeOutId))}_log(A){this.options.log&&A()}}exports.Lazy=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./globalConfig-
|
|
1
|
+
"use strict";const a=require("./globalConfig-BjG8BDet.js"),n="[ui-kit]";function o(){const r=a.getGlobalConfig("debug"),e=!1;return r===!0?{warn:!0,error:!0}:r===!1?{warn:!1,error:!1}:r&&typeof r=="object"?{warn:r.warn??e,error:r.error??!0}:{warn:e,error:!0}}function t(r,e){return[r?`${n}[${r}]`:n,...e]}const u={warn(r,...e){o().warn&&console.warn(...t(r,e))},error(r,...e){o().error&&console.error(...t(r,e))}};exports.clLog=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("vue"),i=require("./lazy-CkM9Gsf2.js"),s=(u,n,t)=>{const e=new i.Lazy(t);a.onMounted(()=>{a.nextTick(()=>{u.value&&e.mount(u.value,n)})}),a.onUnmounted(()=>{u.value&&e.unmount(u.value)}),a.watch(n,o=>{u.value&&e.update(u.value,o)})};exports.useLazyload=s;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { onMounted as e, nextTick as m, onUnmounted as i, watch as v } from "vue";
|
|
2
|
+
import { L as d } from "./lazy-BnJvXuIy.js";
|
|
3
|
+
const c = (a, u, n) => {
|
|
4
|
+
const o = new d(n);
|
|
5
|
+
e(() => {
|
|
6
|
+
m(() => {
|
|
7
|
+
a.value && o.mount(a.value, u);
|
|
8
|
+
});
|
|
9
|
+
}), i(() => {
|
|
10
|
+
a.value && o.unmount(a.value);
|
|
11
|
+
}), v(u, (t) => {
|
|
12
|
+
a.value && o.update(a.value, t);
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
c as u
|
|
17
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),p=require("../Shared/base-DbuX_Y3x.js"),C=require("../Shared/index-rFJmbgyH.js"),E=require("
|
|
1
|
+
"use strict";const e=require("vue"),p=require("../Shared/base-DbuX_Y3x.js"),C=require("../Shared/index-rFJmbgyH.js"),E=require("../Shared/index-CmFWmRVX.js"),x=require("../Shared/Index.vue_vue_type_script_setup_true_lang-DU1H_1lY.js"),B=["id"],N=["onKeydown","aria-expanded","aria-label"],A=["onClick","onKeydown","aria-label"],I={class:"anchor-label"},K=e.defineComponent({name:"ClAnchorNav",directives:{cltooltip:E.tooltipDirectives},__name:"Index",props:{id:String,className:String,list:{type:Array,required:!0},isOpen:{type:Boolean,default:!1},offsetShow:{type:Number,default:100}},setup(g){const l=g,b=`anchorNav-${p.CommonBase.getRandom(5)}`,y=l.id,d=e.ref(""),f=e.ref(!1),s=e.ref(!l.isOpen);let c=null;const k=e.computed(()=>{const i={"panel-anchor-nav":!0,"is-fixed":f.value,"is-collapsed":s.value};return p.CommonBase.getJsonMerge(i,C.CommonElement.getClassNameJson(l.className))}),h=e.computed(()=>(l.list||[]).filter(i=>!!i)),a=()=>{l.list&&c===null&&(c=requestAnimationFrame(()=>{if(c=null,!l.list)return;const i=window.scrollY,t=window.innerHeight;f.value=i>(p.CommonBase.isFinite(l.offsetShow)?l.offsetShow:100);const r=h.value.map(o=>({id:o.id,element:document.getElementById(o.id)})).filter(o=>o.element!==null);if(r.length===0){d.value="";return}if(i+t>=document.documentElement.scrollHeight-1){d.value=r[r.length-1].id;return}let n=!1;for(let o=r.length-1;o>=0;o--)if(r[o].element.getBoundingClientRect().top<=t/2){d.value=r[o].id,n=!0;break}n||(d.value="")}))},_=()=>{window.addEventListener("scroll",a),window.addEventListener("resize",a)},w=()=>{c!==null&&(cancelAnimationFrame(c),c=null),window.removeEventListener("scroll",a),window.removeEventListener("resize",a)};e.onMounted(()=>{_(),a()}),e.onActivated(()=>{_(),a()}),e.onDeactivated(()=>{w()}),e.onUnmounted(()=>{w()}),e.watch(()=>l.list,()=>{a()},{deep:!0});const u=()=>{s.value=!s.value},m=i=>{const t=document.getElementById(i);t&&(t.scrollIntoView({behavior:"smooth",block:"start"}),t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1"),t.focus({preventScroll:!0}))};return(i,t)=>{const r=e.resolveDirective("cltooltip");return e.openBlock(),e.createElementBlock("div",{id:e.unref(y),class:e.normalizeClass(k.value),role:"navigation","aria-label":"页面锚点导航"},[e.createElementVNode("div",{class:"anchor-toggle",onClick:u,onKeydown:[e.withKeys(u,["enter"]),e.withKeys(e.withModifiers(u,["prevent"]),["space"])],role:"button","aria-expanded":!s.value,"aria-label":s.value?"展开导航":"收起导航",tabindex:"0"},[e.createVNode(x._sfc_main,{name:s.value?"caret-left":"caret-right"},null,8,["name"])],40,N),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(n,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:`${b}-${n.id}-${o}`,class:e.normalizeClass(["anchor-item",{active:d.value===n.id}]),onClick:v=>m(n.id),onKeydown:[e.withKeys(v=>m(n.id),["enter"]),e.withKeys(e.withModifiers(v=>m(n.id),["prevent"]),["space"])],role:"link","aria-label":n.label??"",tabindex:"0"},[t[0]||(t[0]=e.createElementVNode("span",{class:"anchor-dot"},null,-1)),e.createElementVNode("span",I,e.toDisplayString(n.label??""),1)],42,A)),[[r,s.value?{html:n.label??"",position:"left",className:"tooltip-anchorNav",isHtml:!1}:{init:!1}]])),128))],10,B)}}});module.exports=K;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { default } from '../../types/Web/AnchorNav/Index.vue.d.ts';
|
|
@@ -5,8 +5,8 @@ import '../../styles/Web/ClAnchorNav.css';
|
|
|
5
5
|
import { defineComponent as $, ref as f, computed as x, onMounted as B, onActivated as I, onDeactivated as D, onUnmounted as F, watch as K, resolveDirective as H, openBlock as p, createElementBlock as h, normalizeClass as k, unref as z, createElementVNode as w, withKeys as d, withModifiers as E, createVNode as M, Fragment as V, renderList as q, withDirectives as J, toDisplayString as O } from "vue";
|
|
6
6
|
import { C as g } from "../Shared/base-fr2I80sU.js";
|
|
7
7
|
import { C as R } from "../Shared/index-B477PjJ3.js";
|
|
8
|
-
import {
|
|
9
|
-
import { _ as P } from "../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { t as T } from "../Shared/index-DoxFaAkn.js";
|
|
9
|
+
import { _ as P } from "../Shared/Index.vue_vue_type_script_setup_true_lang-BmRO42R2.js";
|
|
10
10
|
const U = ["id"], Y = ["onKeydown", "aria-expanded", "aria-label"], j = ["onClick", "onKeydown", "aria-label"], G = { class: "anchor-label" }, ne = /* @__PURE__ */ $({
|
|
11
11
|
name: "ClAnchorNav",
|
|
12
12
|
directives: { cltooltip: T },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ee=Object.create;var K=Object.defineProperty;var te=Object.getOwnPropertyDescriptor;var ne=Object.getOwnPropertyNames;var ae=Object.getPrototypeOf,oe=Object.prototype.hasOwnProperty;var se=(d,y,i,h)=>{if(y&&typeof y=="object"||typeof y=="function")for(let g of ne(y))!oe.call(d,g)&&g!==i&&K(d,g,{get:()=>y[g],enumerable:!(h=te(y,g))||h.enumerable});return d};var re=(d,y,i)=>(i=d!=null?ee(ae(d)):{},se(y||!d||!d.__esModule?K(i,"default",{value:d,enumerable:!0}):i,d));const e=require("vue"),V=require("../Shared/log-C2ZbqiAV.js"),m=require("../Shared/base-DbuX_Y3x.js"),f=require("../Shared/day-C_LrDb1h.js"),W=require("../Shared/index-rFJmbgyH.js"),S=require("../Shared/globalConfig-vNEDVL2C.js"),ie=require("../Shared/language-Q4AGYtUe.js"),q=require("../Shared/Index.vue_vue_type_script_setup_true_lang-B4dpfPSy.js");;/* empty css */const le=["id"],ce={class:"calendar-container table-base"},de={colspan:"7"},ue={class:"calendar-head-label"},me=["title","onKeydown"],ye={class:"calendar-head-label-year"},fe={class:"calendar-head-label-month"},he={class:"calendar-head-label-next"},ge=["title","onKeydown"],pe={class:"calendar-head-Week"},ke=["tabindex","aria-label","aria-selected","onClick","onMouseover","onMouseout","onKeydown"],ve={key:0,class:"day-today"},we={class:"day-num"},Ce={key:3,class:"day-lunar-num"},De=e.defineComponent({name:"ClCalendar",__name:"Index",props:{id:String,className:String,viewDateTime:String,weekFirst:{type:String,default:"sunday",validator:d=>{const y=["monday","sunday"].includes(d);return y||V.clLog.warn("ClCalendar",`警告:weekFirst 仅支持 'monday' 或 'sunday',收到 '${d}',已按 sunday 处理`),y}},isShowLunar:Boolean,isWeekendRest:{type:Boolean,default:void 0},restDays:{type:Array,default:()=>[]},workDays:{type:Array,default:()=>[]}},emits:{onChange:d=>!0,onClick:d=>!0,onHover:(d,y)=>!0,onInit:d=>!0,onError:d=>!0},setup(d,{emit:y}){const i=d,h=y,g=`calendar-${m.CommonBase.getRandom(5)}`,j=i.id,{optPageLanguage:E,getPageLanguage:H}=ie.useLanguage();H("dataTime");const s=e.reactive({selectId:"",focusedId:""}),w=e.reactive({titleYear:"",titleMonth:""}),B=e.useTemplateRef("calendarRoot"),T=e.ref([]),b=e.ref([]),u={viewDate:null,currentDate:f.CommDay.initDay(),isAnimating:!1},O=e.computed(()=>{if(i.isWeekendRest!==void 0)return i.isWeekendRest;const t=S.getGlobalConfig("calendar");return t?.isWeekendRest!==void 0?t.isWeekendRest:!0}),L=e.computed(()=>i.restDays.length>0?i.restDays:S.getGlobalConfig("calendar")?.restDays||[]),Y=e.computed(()=>i.workDays.length>0?i.workDays:S.getGlobalConfig("calendar")?.workDays||[]),P=e.computed(()=>{const t={"panel-calendar":!0};return m.CommonBase.getJsonMerge(t,W.CommonElement.getClassNameJson(i.className))}),z=()=>{if(!u.viewDate)return;const t=u.viewDate.localeData(),n=u.viewDate.year(),o=t.monthsShort(u.viewDate);w.titleYear=`${n}${E.value.year}`,w.titleMonth=o;const l=t.weekdaysMin(),a=t.firstDayOfWeek();let c=[];i.weekFirst==="sunday"?c=l:l.forEach((r,D)=>{c[(7+D-a)%7]=r}),T.value=c};let I=null;const C=e.ref(!1),R=async()=>{if(!C.value)try{I=(await import("lunar-typescript")).Lunar,C.value=!0}catch(t){V.clLog.warn("ClCalendar","农历插件加载失败,本次不显示农历",t)}},G=t=>{if(!I)return"";try{const n=I.fromDate(t.toDate()),o=n.getFestivals();if(m.CommonBase.isNonEmptyString(o[0]))return o[0];const l=n.getJieQi();if(m.CommonBase.isNonEmptyString(l))return l;const a=n.getDayInChinese();return m.CommonBase.isNonEmptyString(a)?a:""}catch(n){return V.clLog.warn("ClCalendar","农历计算异常,该格不显示农历",n),""}},J=t=>{const n=o=>o.some(l=>f.CommDay.objDay(l).isSame(t,"day"));if(Y.value.length>0&&n(Y.value))return{text:"班"};if(L.value.length>0&&n(L.value))return{text:"休"};if(O.value){const o=t.day();if(o===0||o===6)return{text:"休"}}return null},Q=(t,n,o,l)=>{const a=t.date(),c=f.CommDay.initFormat(t),r=i.isShowLunar&&C.value?G(t):"",D=J(t),_=t.year()===n&&t.month()<o||t.year()<n,M=t.year()===n&&t.month()>o||t.year()>n,$=l&&t.isSame(l,"day")&&!_&&!M;return{id:`day-${c}`,cls:W.CommonElement.getAddClass("calendar-day",{old:_,new:M,today:$}),day:c,dayNum:a,lunar:r,restMark:D?D.text:void 0,isOld:_,isNew:M,isCurrentMonth:!_&&!M,isToday:$}},U=()=>{const t=u.viewDate.clone(),n=u.currentDate;let o=t.clone().subtract(1,"months");o=o.date(o.daysInMonth()).startOf("week"),i.weekFirst==="sunday"&&(o=o.subtract(1,"days"));const l=[];let a=[];for(let c=0;c<42;c+=1){c>0&&(o=o.add(1,"days"));const r=Q(o.clone(),t.year(),t.month(),n);a.push(r),r.isCurrentMonth&&!m.CommonBase.isEmpty(s.selectId)&&r.dayNum===s.selectId&&(s.selectId=r.id),a.length===7&&(l.push({days:a}),a=[])}if(b.value=l,!m.CommonBase.isEmpty(s.selectId))s.focusedId=s.selectId;else{const c=l.flatMap(r=>r.days).find(r=>r.isCurrentMonth);s.focusedId=c?c.id:""}},p=t=>{u.viewDate=m.CommonBase.isEmpty(t)?f.CommDay.initDay():f.CommDay.getDayjsObject(t),u.viewDate&&typeof u.viewDate.isValid=="function"&&u.viewDate.isValid()||(u.viewDate=f.CommDay.initDay()),z(),U()},v=t=>!t||!m.CommonBase.isString(t)||m.CommonBase.isEmpty(t)?(s.selectId=f.CommDay.getDayjsObject("").date(),f.CommDay.initFormat({format:"YYYY-MM"})):t.split("-").length===3?(s.selectId=f.CommDay.getDayjsObject(t).date(),f.CommDay.initFormat({value:t,format:"YYYY-MM"})):(s.selectId="",t),X=()=>{p(v(i.viewDateTime)),e.nextTick(()=>{k(s.focusedId),!m.CommonBase.isEmpty(s.selectId)&&m.CommonBase.isString(s.selectId)&&h("onInit",s.selectId.replace("day-",""))})},k=t=>{if(!m.CommonBase.isString(t)||m.CommonBase.isEmpty(t)||!B.value)return;const n=B.value.querySelector(`[aria-label="${t.replace("day-","")}"]`);if(!n)return;n.focus({preventScroll:!0});const o=n.getBoundingClientRect();(o.top<0||o.bottom>window.innerHeight)&&n.scrollIntoView({block:"nearest",behavior:"auto"})};e.onMounted(async()=>{i.isShowLunar&&await R(),e.nextTick(()=>{X(),i.isShowLunar&&C.value&&p(v(i.viewDateTime))})}),e.watch(()=>i.isShowLunar,t=>{t?R().then(()=>{p(v(i.viewDateTime)),e.nextTick(()=>k(s.focusedId))}):p(v(i.viewDateTime))}),e.watch(()=>i.viewDateTime,t=>{m.CommonBase.isEmpty(t)||(p(v(t)),e.nextTick(()=>k(s.focusedId)))});const A=(t,n)=>{t.preventDefault(),t.stopPropagation(),n.isCurrentMonth&&(s.focusedId=n.id,e.nextTick(()=>k(n.id)),s.selectId!==n.id&&(s.selectId=n.id,h("onClick",n.day)))},F=(t,n,o)=>{t.preventDefault(),t.stopPropagation(),n.isCurrentMonth&&h("onHover",n.day,o)},Z=(t,n,o)=>{const l=b.value.flatMap(r=>r.days);if(l.length===0)return;const a=n*7+o;let c=a;switch(t.key){case"ArrowLeft":t.preventDefault(),c=Math.max(0,a-1);break;case"ArrowRight":t.preventDefault(),c=Math.min(41,a+1);break;case"ArrowUp":t.preventDefault(),c=Math.max(0,a-7);break;case"ArrowDown":t.preventDefault(),c=Math.min(41,a+7);break;case"Enter":case" ":t.preventDefault(),A(t,l[a]);return;default:return}if(c!==a){const r=l[c];if(!r.isCurrentMonth)return;s.focusedId=r.id,e.nextTick(()=>k(r.id))}},N=()=>{if(!u.isAnimating){u.isAnimating=!0;try{const t=u.viewDate.clone();let n=f.CommDay.subtractTime(t,1,"months");n=f.CommDay.initFormat({value:n,format:"YYYY-MM"}),p(n),h("onChange",n),e.nextTick(()=>k(s.focusedId))}catch{h("onError","切换到上一月失败")}finally{u.isAnimating=!1}}},x=()=>{if(!u.isAnimating){u.isAnimating=!0;try{const t=u.viewDate.clone();let n=f.CommDay.addTime(t,1,"months");n=f.CommDay.initFormat({value:n,format:"YYYY-MM"}),p(n),h("onChange",n),e.nextTick(()=>k(s.focusedId))}catch{h("onError","切换到下一月失败")}finally{u.isAnimating=!1}}};return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(P.value),id:e.unref(j),ref_key:"calendarRoot",ref:B},[e.createElementVNode("table",ce,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",de,[e.createElementVNode("div",ue,[e.createElementVNode("span",{class:"calendar-head-label-prev-month",title:e.unref(E).prevMonth,role:"button",tabindex:"0",onClick:N,onKeydown:[e.withKeys(e.withModifiers(N,["prevent"]),["enter"]),e.withKeys(e.withModifiers(N,["prevent"]),["space"])]},[e.createVNode(q._sfc_main,{name:"angle-left"})],40,me),e.createElementVNode("span",null,[e.createElementVNode("span",ye,e.toDisplayString(w.titleYear),1),e.createElementVNode("span",fe,e.toDisplayString(w.titleMonth),1)]),e.createElementVNode("span",he,[e.createElementVNode("span",{class:"calendar-head-label-next-month",title:e.unref(E).nextMonth,role:"button",tabindex:"0",onClick:x,onKeydown:[e.withKeys(e.withModifiers(x,["prevent"]),["enter"]),e.withKeys(e.withModifiers(x,["prevent"]),["space"])]},[e.createVNode(q._sfc_main,{name:"angle-right"})],40,ge)])])])]),e.createElementVNode("tr",pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(o,l)=>(e.openBlock(),e.createElementBlock("th",{key:`${g}-week-${l}`},e.toDisplayString(o),1))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(o,l)=>(e.openBlock(),e.createElementBlock("tr",{key:`${g}-days-${l}`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.days,(a,c)=>(e.openBlock(),e.createElementBlock("td",{key:`${g}-day-${c}`,class:e.normalizeClass([a.cls,s.selectId===a.id?"calendar-day-select":"",s.focusedId===a.id?"calendar-day-focused":""]),tabindex:a.isCurrentMonth?s.focusedId===a.id?"0":"-1":void 0,role:"gridcell","aria-label":a.day,"aria-selected":s.selectId===a.id?"true":"false",onClick:e.withModifiers(r=>A(r,a),["stop"]),onMouseover:r=>F(r,a,!0),onMouseout:r=>F(r,a,!1),onKeydown:r=>Z(r,l,c)},[a.isToday?(e.openBlock(),e.createElementBlock("span",ve,"今")):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("div",we,e.toDisplayString(a.dayNum),1),a.restMark?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["day-rest",a.restMark==="班"?"day-rest-work":"day-rest-rest"])},e.toDisplayString(a.restMark),3)):e.createCommentVNode("",!0),a.lunar?(e.openBlock(),e.createElementBlock("div",Ce,e.toDisplayString(a.lunar),1)):e.createCommentVNode("",!0),a.isCurrentMonth?e.renderSlot(t.$slots,"day",{key:4,time:a.day,data:a.dayNum}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[],64))],42,ke))),128))]))),128))])])],10,le))}});module.exports=De;
|
|
1
|
+
"use strict";var ee=Object.create;var K=Object.defineProperty;var te=Object.getOwnPropertyDescriptor;var ne=Object.getOwnPropertyNames;var ae=Object.getPrototypeOf,oe=Object.prototype.hasOwnProperty;var se=(d,y,i,h)=>{if(y&&typeof y=="object"||typeof y=="function")for(let g of ne(y))!oe.call(d,g)&&g!==i&&K(d,g,{get:()=>y[g],enumerable:!(h=te(y,g))||h.enumerable});return d};var re=(d,y,i)=>(i=d!=null?ee(ae(d)):{},se(y||!d||!d.__esModule?K(i,"default",{value:d,enumerable:!0}):i,d));const e=require("vue"),V=require("../Shared/log-gqSePaMZ.js"),m=require("../Shared/base-DbuX_Y3x.js"),f=require("../Shared/day-C_LrDb1h.js"),W=require("../Shared/index-rFJmbgyH.js"),S=require("../Shared/globalConfig-BjG8BDet.js"),ie=require("../Shared/language-CBZjQ9dC.js"),q=require("../Shared/Index.vue_vue_type_script_setup_true_lang-DU1H_1lY.js");;/* empty css */const le=["id"],ce={class:"calendar-container table-base"},de={colspan:"7"},ue={class:"calendar-head-label"},me=["title","onKeydown"],ye={class:"calendar-head-label-year"},fe={class:"calendar-head-label-month"},he={class:"calendar-head-label-next"},ge=["title","onKeydown"],pe={class:"calendar-head-Week"},ke=["tabindex","aria-label","aria-selected","onClick","onMouseover","onMouseout","onKeydown"],ve={key:0,class:"day-today"},we={class:"day-num"},Ce={key:3,class:"day-lunar-num"},De=e.defineComponent({name:"ClCalendar",__name:"Index",props:{id:String,className:String,viewDateTime:String,weekFirst:{type:String,default:"sunday",validator:d=>{const y=["monday","sunday"].includes(d);return y||V.clLog.warn("ClCalendar",`警告:weekFirst 仅支持 'monday' 或 'sunday',收到 '${d}',已按 sunday 处理`),y}},isShowLunar:Boolean,isWeekendRest:{type:Boolean,default:void 0},restDays:{type:Array,default:()=>[]},workDays:{type:Array,default:()=>[]}},emits:{onChange:d=>!0,onClick:d=>!0,onHover:(d,y)=>!0,onInit:d=>!0,onError:d=>!0},setup(d,{emit:y}){const i=d,h=y,g=`calendar-${m.CommonBase.getRandom(5)}`,j=i.id,{optPageLanguage:E,getPageLanguage:H}=ie.useLanguage();H("dataTime");const s=e.reactive({selectId:"",focusedId:""}),w=e.reactive({titleYear:"",titleMonth:""}),B=e.useTemplateRef("calendarRoot"),T=e.ref([]),b=e.ref([]),u={viewDate:null,currentDate:f.CommDay.initDay(),isAnimating:!1},O=e.computed(()=>{if(i.isWeekendRest!==void 0)return i.isWeekendRest;const t=S.getGlobalConfig("calendar");return t?.isWeekendRest!==void 0?t.isWeekendRest:!0}),L=e.computed(()=>i.restDays.length>0?i.restDays:S.getGlobalConfig("calendar")?.restDays||[]),Y=e.computed(()=>i.workDays.length>0?i.workDays:S.getGlobalConfig("calendar")?.workDays||[]),P=e.computed(()=>{const t={"panel-calendar":!0};return m.CommonBase.getJsonMerge(t,W.CommonElement.getClassNameJson(i.className))}),z=()=>{if(!u.viewDate)return;const t=u.viewDate.localeData(),n=u.viewDate.year(),o=t.monthsShort(u.viewDate);w.titleYear=`${n}${E.value.year}`,w.titleMonth=o;const l=t.weekdaysMin(),a=t.firstDayOfWeek();let c=[];i.weekFirst==="sunday"?c=l:l.forEach((r,D)=>{c[(7+D-a)%7]=r}),T.value=c};let I=null;const C=e.ref(!1),R=async()=>{if(!C.value)try{I=(await import("lunar-typescript")).Lunar,C.value=!0}catch(t){V.clLog.warn("ClCalendar","农历插件加载失败,本次不显示农历",t)}},G=t=>{if(!I)return"";try{const n=I.fromDate(t.toDate()),o=n.getFestivals();if(m.CommonBase.isNonEmptyString(o[0]))return o[0];const l=n.getJieQi();if(m.CommonBase.isNonEmptyString(l))return l;const a=n.getDayInChinese();return m.CommonBase.isNonEmptyString(a)?a:""}catch(n){return V.clLog.warn("ClCalendar","农历计算异常,该格不显示农历",n),""}},J=t=>{const n=o=>o.some(l=>f.CommDay.objDay(l).isSame(t,"day"));if(Y.value.length>0&&n(Y.value))return{text:"班"};if(L.value.length>0&&n(L.value))return{text:"休"};if(O.value){const o=t.day();if(o===0||o===6)return{text:"休"}}return null},Q=(t,n,o,l)=>{const a=t.date(),c=f.CommDay.initFormat(t),r=i.isShowLunar&&C.value?G(t):"",D=J(t),_=t.year()===n&&t.month()<o||t.year()<n,M=t.year()===n&&t.month()>o||t.year()>n,$=l&&t.isSame(l,"day")&&!_&&!M;return{id:`day-${c}`,cls:W.CommonElement.getAddClass("calendar-day",{old:_,new:M,today:$}),day:c,dayNum:a,lunar:r,restMark:D?D.text:void 0,isOld:_,isNew:M,isCurrentMonth:!_&&!M,isToday:$}},U=()=>{const t=u.viewDate.clone(),n=u.currentDate;let o=t.clone().subtract(1,"months");o=o.date(o.daysInMonth()).startOf("week"),i.weekFirst==="sunday"&&(o=o.subtract(1,"days"));const l=[];let a=[];for(let c=0;c<42;c+=1){c>0&&(o=o.add(1,"days"));const r=Q(o.clone(),t.year(),t.month(),n);a.push(r),r.isCurrentMonth&&!m.CommonBase.isEmpty(s.selectId)&&r.dayNum===s.selectId&&(s.selectId=r.id),a.length===7&&(l.push({days:a}),a=[])}if(b.value=l,!m.CommonBase.isEmpty(s.selectId))s.focusedId=s.selectId;else{const c=l.flatMap(r=>r.days).find(r=>r.isCurrentMonth);s.focusedId=c?c.id:""}},p=t=>{u.viewDate=m.CommonBase.isEmpty(t)?f.CommDay.initDay():f.CommDay.getDayjsObject(t),u.viewDate&&typeof u.viewDate.isValid=="function"&&u.viewDate.isValid()||(u.viewDate=f.CommDay.initDay()),z(),U()},v=t=>!t||!m.CommonBase.isString(t)||m.CommonBase.isEmpty(t)?(s.selectId=f.CommDay.getDayjsObject("").date(),f.CommDay.initFormat({format:"YYYY-MM"})):t.split("-").length===3?(s.selectId=f.CommDay.getDayjsObject(t).date(),f.CommDay.initFormat({value:t,format:"YYYY-MM"})):(s.selectId="",t),X=()=>{p(v(i.viewDateTime)),e.nextTick(()=>{k(s.focusedId),!m.CommonBase.isEmpty(s.selectId)&&m.CommonBase.isString(s.selectId)&&h("onInit",s.selectId.replace("day-",""))})},k=t=>{if(!m.CommonBase.isString(t)||m.CommonBase.isEmpty(t)||!B.value)return;const n=B.value.querySelector(`[aria-label="${t.replace("day-","")}"]`);if(!n)return;n.focus({preventScroll:!0});const o=n.getBoundingClientRect();(o.top<0||o.bottom>window.innerHeight)&&n.scrollIntoView({block:"nearest",behavior:"auto"})};e.onMounted(async()=>{i.isShowLunar&&await R(),e.nextTick(()=>{X(),i.isShowLunar&&C.value&&p(v(i.viewDateTime))})}),e.watch(()=>i.isShowLunar,t=>{t?R().then(()=>{p(v(i.viewDateTime)),e.nextTick(()=>k(s.focusedId))}):p(v(i.viewDateTime))}),e.watch(()=>i.viewDateTime,t=>{m.CommonBase.isEmpty(t)||(p(v(t)),e.nextTick(()=>k(s.focusedId)))});const A=(t,n)=>{t.preventDefault(),t.stopPropagation(),n.isCurrentMonth&&(s.focusedId=n.id,e.nextTick(()=>k(n.id)),s.selectId!==n.id&&(s.selectId=n.id,h("onClick",n.day)))},F=(t,n,o)=>{t.preventDefault(),t.stopPropagation(),n.isCurrentMonth&&h("onHover",n.day,o)},Z=(t,n,o)=>{const l=b.value.flatMap(r=>r.days);if(l.length===0)return;const a=n*7+o;let c=a;switch(t.key){case"ArrowLeft":t.preventDefault(),c=Math.max(0,a-1);break;case"ArrowRight":t.preventDefault(),c=Math.min(41,a+1);break;case"ArrowUp":t.preventDefault(),c=Math.max(0,a-7);break;case"ArrowDown":t.preventDefault(),c=Math.min(41,a+7);break;case"Enter":case" ":t.preventDefault(),A(t,l[a]);return;default:return}if(c!==a){const r=l[c];if(!r.isCurrentMonth)return;s.focusedId=r.id,e.nextTick(()=>k(r.id))}},N=()=>{if(!u.isAnimating){u.isAnimating=!0;try{const t=u.viewDate.clone();let n=f.CommDay.subtractTime(t,1,"months");n=f.CommDay.initFormat({value:n,format:"YYYY-MM"}),p(n),h("onChange",n),e.nextTick(()=>k(s.focusedId))}catch{h("onError","切换到上一月失败")}finally{u.isAnimating=!1}}},x=()=>{if(!u.isAnimating){u.isAnimating=!0;try{const t=u.viewDate.clone();let n=f.CommDay.addTime(t,1,"months");n=f.CommDay.initFormat({value:n,format:"YYYY-MM"}),p(n),h("onChange",n),e.nextTick(()=>k(s.focusedId))}catch{h("onError","切换到下一月失败")}finally{u.isAnimating=!1}}};return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(P.value),id:e.unref(j),ref_key:"calendarRoot",ref:B},[e.createElementVNode("table",ce,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",de,[e.createElementVNode("div",ue,[e.createElementVNode("span",{class:"calendar-head-label-prev-month",title:e.unref(E).prevMonth,role:"button",tabindex:"0",onClick:N,onKeydown:[e.withKeys(e.withModifiers(N,["prevent"]),["enter"]),e.withKeys(e.withModifiers(N,["prevent"]),["space"])]},[e.createVNode(q._sfc_main,{name:"angle-left"})],40,me),e.createElementVNode("span",null,[e.createElementVNode("span",ye,e.toDisplayString(w.titleYear),1),e.createElementVNode("span",fe,e.toDisplayString(w.titleMonth),1)]),e.createElementVNode("span",he,[e.createElementVNode("span",{class:"calendar-head-label-next-month",title:e.unref(E).nextMonth,role:"button",tabindex:"0",onClick:x,onKeydown:[e.withKeys(e.withModifiers(x,["prevent"]),["enter"]),e.withKeys(e.withModifiers(x,["prevent"]),["space"])]},[e.createVNode(q._sfc_main,{name:"angle-right"})],40,ge)])])])]),e.createElementVNode("tr",pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(o,l)=>(e.openBlock(),e.createElementBlock("th",{key:`${g}-week-${l}`},e.toDisplayString(o),1))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(o,l)=>(e.openBlock(),e.createElementBlock("tr",{key:`${g}-days-${l}`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.days,(a,c)=>(e.openBlock(),e.createElementBlock("td",{key:`${g}-day-${c}`,class:e.normalizeClass([a.cls,s.selectId===a.id?"calendar-day-select":"",s.focusedId===a.id?"calendar-day-focused":""]),tabindex:a.isCurrentMonth?s.focusedId===a.id?"0":"-1":void 0,role:"gridcell","aria-label":a.day,"aria-selected":s.selectId===a.id?"true":"false",onClick:e.withModifiers(r=>A(r,a),["stop"]),onMouseover:r=>F(r,a,!0),onMouseout:r=>F(r,a,!1),onKeydown:r=>Z(r,l,c)},[a.isToday?(e.openBlock(),e.createElementBlock("span",ve,"今")):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("div",we,e.toDisplayString(a.dayNum),1),a.restMark?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["day-rest",a.restMark==="班"?"day-rest-work":"day-rest-rest"])},e.toDisplayString(a.restMark),3)):e.createCommentVNode("",!0),a.lunar?(e.openBlock(),e.createElementBlock("div",Ce,e.toDisplayString(a.lunar),1)):e.createCommentVNode("",!0),a.isCurrentMonth?e.renderSlot(t.$slots,"day",{key:4,time:a.day,data:a.dayNum}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[],64))],42,ke))),128))]))),128))])])],10,le))}});module.exports=De;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { default } from '../../types/Web/Calendar/Index.vue.d.ts';
|
|
@@ -3,13 +3,13 @@ import '../../styles/Common/IconFont-base.css';
|
|
|
3
3
|
import '../../styles/Common/Table-base.css';
|
|
4
4
|
import '../../styles/Web/ClCalendar.css';
|
|
5
5
|
import { defineComponent as he, reactive as X, useTemplateRef as pe, ref as W, computed as Y, onMounted as ve, nextTick as p, watch as Z, openBlock as f, createElementBlock as m, unref as j, normalizeClass as K, createElementVNode as u, withKeys as L, withModifiers as M, createVNode as ee, toDisplayString as _, Fragment as C, renderList as B, createCommentVNode as te, renderSlot as ge } from "vue";
|
|
6
|
-
import { c as H } from "../Shared/log-
|
|
6
|
+
import { c as H } from "../Shared/log-CSNil8va.js";
|
|
7
7
|
import { C as d } from "../Shared/base-fr2I80sU.js";
|
|
8
8
|
import { C as y } from "../Shared/day-B3hhmAm_.js";
|
|
9
9
|
import { C as ae } from "../Shared/index-B477PjJ3.js";
|
|
10
|
-
import { g as O } from "../Shared/globalConfig-
|
|
11
|
-
import { a as we } from "../Shared/language-
|
|
12
|
-
import { _ as ne } from "../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { g as O } from "../Shared/globalConfig-C5mivGXK.js";
|
|
11
|
+
import { a as we } from "../Shared/language-BaLIp7bA.js";
|
|
12
|
+
import { _ as ne } from "../Shared/Index.vue_vue_type_script_setup_true_lang-BmRO42R2.js";
|
|
13
13
|
/* empty css */
|
|
14
14
|
const _e = ["id"], ke = { class: "calendar-container table-base" }, De = { colspan: "7" }, Me = { class: "calendar-head-label" }, Ce = ["title", "onKeydown"], Ie = { class: "calendar-head-label-year" }, be = { class: "calendar-head-label-month" }, Se = { class: "calendar-head-label-next" }, xe = ["title", "onKeydown"], Ee = { class: "calendar-head-Week" }, Ye = ["tabindex", "aria-label", "aria-selected", "onClick", "onMouseover", "onMouseout", "onKeydown"], Le = {
|
|
15
15
|
key: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),h=require("../Shared/base-DbuX_Y3x.js"),b=require("../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";const e=require("vue"),h=require("../Shared/base-DbuX_Y3x.js"),b=require("../Shared/Index.vue_vue_type_script_setup_true_lang-hGx0sqwu.js"),I=require("../Shared/Index.vue_vue_type_script_setup_true_lang-DU1H_1lY.js");;/* empty css */const W={class:"code-legend-demo"},q={class:"code-legend-code"},D=["aria-label"],k=25,V=100,z=e.defineComponent({name:"ClCodeLegend",__name:"Index",props:{id:{},className:{},title:{}},setup(_){const i=_,w=i.id,p=e.useTemplateRef("refElCard"),E=e.useTemplateRef("refElFoot"),n=e.ref(!1),a=e.ref(!1),r=e.ref("auto");let c=null,u=null,l=null;const F=e.computed(()=>{const t=["code-legend"];return i.className&&h.CommonBase.isString(i.className)&&!h.CommonBase.isEmpty(i.className)&&i.className.split(" ").forEach(o=>{h.CommonBase.isEmpty(o)||t.push(o)}),t.join(" ")}),x=e.computed(()=>({"code-legend-footer":!0,"card-footer-fixed":a.value})),N=e.computed(()=>({"icon-rotate":!0,"rotate-180":n.value})),m=()=>{c&&(clearTimeout(c),c=null),u&&(clearTimeout(u),u=null)},d=()=>{if(n.value){const t=p.value?.$el;if(!t)return;const o=t.clientWidth,s=E.value;if(!s)return;const $=s.getBoundingClientRect(),y=t.getBoundingClientRect(),C=window.innerHeight;y.top<C&&y.bottom>C?(a.value=!0,r.value=o.toString()+"px",s.style.left=$.left+"px"):(a.value=!1,r.value="auto",s.style.left="")}else a.value=!1,r.value="auto"},g=()=>{l||(l=setTimeout(()=>{l=null,d()},V))};e.watch(()=>n.value,(t,o)=>{t!==o&&(m(),t?f():v())});const T=()=>{n.value=!n.value},S=t=>{(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),T())},B=t=>{const o=t;o.style.height="auto";const s=window.getComputedStyle(o,null).height;o.style.height="0",c=setTimeout(function(){o.style.height=s},k)},L=t=>{const o=t;u=setTimeout(function(){o.style.height="0"},k)},R=()=>{e.nextTick(()=>{d()})},A=()=>{e.nextTick(()=>{d()})},f=()=>{window.addEventListener("scroll",g)},v=()=>{window.removeEventListener("scroll",g),l&&(clearTimeout(l),l=null)};return e.onMounted(()=>{n.value&&f()}),e.onActivated(()=>{n.value&&(f(),d())}),e.onDeactivated(()=>{v(),m()}),e.onUnmounted(()=>{v(),m()}),(t,o)=>(e.openBlock(),e.createBlock(b._sfc_main,{ref_key:"refElCard",ref:p,id:e.unref(w),theme:"loopline",className:F.value},{headTitle:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.title),1)]),headExplain:e.withCtx(()=>[t.$slots.remark?e.renderSlot(t.$slots,"remark",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))]),default:e.withCtx(()=>[e.createElementVNode("div",W,[e.renderSlot(t.$slots,"demo")]),e.createVNode(e.Transition,{name:"slide-fade",onEnter:B,onAfterEnter:R,onLeave:L,onAfterLeave:A},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[e.createElementVNode("div",q,[e.renderSlot(t.$slots,"code")])],512),[[e.vShow,n.value]])]),_:3})]),foot:e.withCtx(()=>[t.$slots.code?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"refElFoot",ref:E,class:e.normalizeClass(x.value),role:"button",tabindex:"0","aria-label":n.value?"收起代码":"展开代码",onClick:T,onKeydown:S,style:e.normalizeStyle({width:r.value})},[e.createVNode(I._sfc_main,{name:"caret-down",class:e.normalizeClass(N.value)},null,8,["class"])],46,D)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))]),_:3},8,["id","className"]))}});module.exports=z;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { default } from '../../types/Web/CodeLegend/Index.vue.d.ts';
|
|
@@ -4,8 +4,8 @@ import '../../styles/Common/IconRotate-base.css';
|
|
|
4
4
|
import '../../styles/Web/ClCodeLegend.css';
|
|
5
5
|
import { defineComponent as P, useTemplateRef as $, ref as p, computed as g, watch as U, onMounted as Y, onActivated as q, onDeactivated as G, onUnmounted as J, openBlock as f, createBlock as Q, unref as X, withCtx as i, createElementBlock as E, normalizeStyle as Z, normalizeClass as x, createVNode as A, Fragment as R, createElementVNode as T, renderSlot as _, Transition as ee, withDirectives as te, vShow as oe, createTextVNode as ne, toDisplayString as le, nextTick as B } from "vue";
|
|
6
6
|
import { C as y } from "../Shared/base-fr2I80sU.js";
|
|
7
|
-
import { _ as se } from "../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as ie } from "../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as se } from "../Shared/Index.vue_vue_type_script_setup_true_lang-p_9-WY4K.js";
|
|
8
|
+
import { _ as ie } from "../Shared/Index.vue_vue_type_script_setup_true_lang-BmRO42R2.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
const ae = { class: "code-legend-demo" }, re = { class: "code-legend-code" }, ce = ["aria-label"], W = 25, de = 100, pe = /* @__PURE__ */ P({
|
|
11
11
|
name: "ClCodeLegend",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),y=require("../Shared/base-DbuX_Y3x.js"),S=require("../Shared/Index.vue_vue_type_script_setup_true_lang-B4dpfPSy.js"),ee=require("../Shared/Popup.vue_vue_type_script_setup_true_lang-d2TT0lCU.js"),M=require("../Shared/drag-BB4KOliP.js"),J=require("../Shared/index-rFJmbgyH.js"),E=require("../Shared/Index.vue_vue_type_script_setup_true_lang-Dq-sCBRz.js"),te=require("../Shared/Index.vue_vue_type_script_setup_true_lang-DYj0GzN0.js"),le=require("../Shared/language-Q4AGYtUe.js");;/* empty css */const G=(a,t)=>Object.prototype.hasOwnProperty.call(a,t),oe=(a,t,o)=>{const n=(2-t)*o/2,p=n===0||n===1?0:t*o/(n<.5?n*2:2-n*2);return[a,p,n]},ne=a=>typeof a=="string"&&a.includes(".")&&Number.parseFloat(a)===1,ae=a=>typeof a=="string"&&a.includes("%"),T=(a,t)=>{ne(a)&&(a="100%");const o=ae(a);return a=Math.min(t,Math.max(0,Number.parseFloat(`${a}`))),o&&(a=Number.parseInt(`${a*t}`,10)/100),Math.abs(a-t)<1e-6?1:a%t/Number.parseFloat(t)},j={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},A=a=>{a=Math.min(Math.round(a),255);const t=Math.floor(a/16),o=a%16;return`${j[t]||t}${j[o]||o}`},Y=({r:a,g:t,b:o})=>Number.isNaN(+a)||Number.isNaN(+t)||Number.isNaN(+o)?"":`#${A(a)}${A(t)}${A(o)}`,H={A:10,B:11,C:12,D:13,E:14,F:15},x=a=>a.length===2?(H[a[0].toUpperCase()]||+a[0])*16+(H[a[1].toUpperCase()]||+a[1]):H[a[1].toUpperCase()]||+a[1],re=(a,t,o)=>{t=t/100,o=o/100;let n=t;const p=Math.max(o,.01);o*=2,t*=o<=1?o:2-o,n*=p<=1?p:2-p;const r=(o+t)/2,d=o===0?2*n/(p+n):2*t/(o+t);return{h:a,s:d*100,v:r*100}},Q=(a,t,o)=>{a=T(a,255),t=T(t,255),o=T(o,255);const n=Math.max(a,t,o),p=Math.min(a,t,o);let r=0;const d=n,l=n-p,c=n===0?0:l/n;if(n===p)r=0;else{switch(n){case a:{r=(t-o)/l+(t<o?6:0);break}case t:{r=(o-a)/l+2;break}case o:{r=(a-t)/l+4;break}}r/=6}return{h:r*360,s:c*100,v:d*100}},D=(a,t,o)=>{a=T(a,360)*6,t=T(t,100),o=T(o,100);const n=Math.floor(a),p=a-n,r=o*(1-t),d=o*(1-p*t),l=o*(1-(1-p)*t),c=n%6,s=[o,d,r,r,l,o][c],m=[l,o,o,d,r,r][c],C=[r,r,l,o,o,d][c];return{r:Math.round(s*255),g:Math.round(m*255),b:Math.round(C*255)}};class se{_hue=0;_saturation=100;_value=100;_alpha=100;enableAlpha=!1;format="hex";value="";selected;constructor(t){t=t||{};for(const o in t)G(t,o)&&(this[o]=t[o]);t.value?this.fromString(t.value):this.doOnChange()}set(t,o){if(arguments.length===1&&typeof t=="object"){for(const n in t)G(t,n)&&this.set(n,t[n]);return}this[`_${t}`]=o,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return D(this._hue,this._saturation,this._value)}fromString(t){if(!t)return;const o=this._convertValueInfo(t);o&&(this._hue=o.hue,this._saturation=o.saturation,this._value=o.value,this._alpha=o.alpha,this.doOnChange())}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:o,_value:n,_alpha:p,format:r}=this,d={hue:t,saturation:o,value:n,alpha:p};let l=this._convertFormat(r,d);l.length===0&&(l=this._getValueRGB(d)),this.value=l}checkValue(t){let o=!1,n="";if(/^rgb\(/.test(t)?n="^[rR][gG][Bb][\\(]([\\s]*(2[0-4][0-9]|25[0-5]|[01]?[0-9][0-9]?)[\\s]*,){2}[\\s]*(2[0-4]\\d|25[0-5]|[01]?\\d\\d?)[\\s]*[\\)]{1}$":/^rgba\(/.test(t)?n="^[rR][gG][Bb][Aa][\\(]([\\s]*(2[0-4][0-9]|25[0-5]|[01]?[0-9][0-9]?)[\\s]*,){3}[\\s]*(1|1.0|0|0.[0-9])[\\s]*[\\)]{1}$":/^#/.test(t)?n="^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$":/^hsl\(/.test(t)?n="^[hH][Ss][Ll][\\(]([\\s]*(2[0-9][0-9]|360|3[0-5][0-9]|[01]?[0-9][0-9]?)[\\s]*,)([\\s]*((100|[0-9][0-9]?)%|0)[\\s]*,)([\\s]*((100|[0-9][0-9]?)%|0)[\\s]*)[\\)]$":/^hsla\(/.test(t)?n="^[hH][Ss][Ll][Aa][\\(]([\\s]*(2[0-9][0-9]|360|3[0-5][0-9]|[01]?[0-9][0-9]?)[\\s]*,)([\\s]*((100|[0-9][0-9]?)%|0)[\\s]*,){2}([\\s]*(1|1.0|0|0.[0-9])[\\s]*)[\\)]$":/^hsv\(/.test(t)?n="^[hH][Ss][Vv][\\(]([\\s]*(2[0-9][0-9]|360|3[0-5][0-9]|[01]?[0-9][0-9]?)[\\s]*,)([\\s]*((100|[0-9][0-9]?)%|0)[\\s]*,)([\\s]*((100|[0-9][0-9]?)%|0)[\\s]*)[\\)]$":/^hsva\(/.test(t)&&(n="^[hH][Ss][Vv][Aa][\\(]([\\s]*(2[0-9][0-9]|360|3[0-5][0-9]|[01]?[0-9][0-9]?)[\\s]*,)([\\s]*((100|[0-9][0-9]?)%|0)[\\s]*,){2}([\\s]*(1|1.0|0|0.[0-9])[\\s]*)[\\)]$"),n.length>0){const p=new RegExp(n);o=t.match(p)!==null}return o}getValueFormat(t,o){const n=this._convertValueInfo(t);return n?this._convertFormat(o,n):t}_convertValueInfo(t){let o=0,n=100,p=100,r=100;if(t){let d;if(t.includes("hsl")){const l=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(c=>c!=="").map((c,s)=>s>2?Number.parseFloat(c):Number.parseInt(c,10));l.length===4?(r=Number.parseFloat(l[3].toString()),r=r>1?1:r,r=r*100):l.length===3&&(r=100),l.length>=3&&(d=re(l[0],l[1],l[2]))}else if(t.includes("hsv")){const l=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(c=>c!=="").map((c,s)=>s>2?Number.parseFloat(c):Number.parseInt(c,10));l.length===4?(r=Number.parseFloat(l[3].toString()),r=r>1?1:r,r=r*100):l.length===3&&(r=100),l.length>=3&&(d={h:l[0],s:l[1],v:l[2]})}else if(t.includes("rgb")){const l=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(c=>c!=="").map((c,s)=>s>2?Number.parseFloat(c):Number.parseInt(c,10));l.length===4?(r=Number.parseFloat(l[3].toString()),r=r>1?1:r,r=r*100):l.length===3&&(r=100),l.length>=3&&(d=Q(l[0],l[1],l[2]))}else if(t.includes("#")){const l=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(l))return;let c=0,s=0,m=0;l.length===3?(c=x(l[0]+l[0]),s=x(l[1]+l[1]),m=x(l[2]+l[2])):(l.length===6||l.length===8)&&(c=x(l.slice(0,2)),s=x(l.slice(2,4)),m=x(l.slice(4,6))),l.length===8?(r=x(l.slice(6))/255,r=r>1?1:r,r=r*100):(l.length===3||l.length===6)&&(r=100),d=Q(c,s,m)}d&&(o=Math.max(0,Math.min(360,d.h)),n=Math.max(0,Math.min(100,d.s)),p=Math.max(0,Math.min(100,d.v)))}return{hue:o,saturation:n,value:p,alpha:r}}_convertFormat(t,o){let n="";switch(t){case"hsl":{n=this._getValueHSL(o);break}case"hsv":{n=this._getValueHSV(o);break}case"rgb":{n=this._getValueRGB(o);break}case"hex":n=this._getValueHEX(o)}return n}_isShowAlpha(t){return t!==100}_getValueHSL(t){const o=Math.floor(t.alpha),n=this._isShowAlpha(t.alpha),p=oe(t.hue,t.saturation/100,t.value/100),r=Math.round(t.hue),d=Math.round(p[1]*100),l=Math.round(p[2]*100);return n?`hsla(${r}, ${d}%, ${l}%, ${o/100})`:`hsl(${r}, ${d}%, ${l}%)`}_getValueHSV(t){const o=Math.floor(t.alpha),n=this._isShowAlpha(o),p=Math.round(t.hue),r=Math.round(t.saturation),d=Math.round(t.value);return n?`hsva(${p}, ${r}%, ${d}%, ${o/100})`:`hsv(${p}, ${r}%, ${d}%)`}_getValueHEX(t){const o=Math.floor(t.alpha);return this._isShowAlpha(o)?`${Y(D(t.hue,t.saturation,t.value))}${A(o*255/100)}`:Y(D(t.hue,t.saturation,t.value))}_getValueRGB(t){const o=Math.floor(t.alpha),n=this._isShowAlpha(o),{r:p,g:r,b:d}=D(t.hue,t.saturation,t.value);return n?`rgba(${p}, ${r}, ${d}, ${this.get("alpha")/100})`:`rgb(${p}, ${r}, ${d})`}}const ce=e.defineComponent({name:"ClColorPickerPalette",__name:"Palette",props:{color:{type:Object,required:!0}},setup(a){const t=a,o=e.useTemplateRef("refElTopParent"),n=e.reactive({background:"hsl(0, 100%, 50%)",btnLeft:0,btnTop:0}),p=e.computed(()=>{const c=t.color.get("hue"),s=t.color.get("value");return{hue:c,value:s}}),r=(c,s)=>{const C=o.value.getBoundingClientRect();let v=s.clientX-C.left,h=s.clientY-C.top;v=Math.max(0,v),v=Math.min(v,C.width),h=Math.max(0,h),h=Math.min(h,C.height),n.btnLeft=v,n.btnTop=h,t.color.set({saturation:v/C.width*100,value:100-h/C.height*100})},d=()=>{const c=o.value,s=t.color.get("saturation"),m=t.color.get("value"),{clientWidth:C,clientHeight:v}=c;n.btnLeft=s*C/100,n.btnTop=(100-m)*v/100,n.background=`hsl(${t.color.get("hue")}, 100%, 50%)`},l=()=>{const c={ing:(s,m)=>{r(s,m)},end:(s,m)=>{r(s,m)}};new M.Drag(o.value,c),d()};return e.onMounted(()=>{e.nextTick(()=>{l()})}),e.watch(()=>p.value,()=>{d()}),(c,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"refElTopParent",ref:o,class:"panel-colorpicker-palette",style:e.normalizeStyle({backgroundColor:n.background})},[s[1]||(s[1]=e.createElementVNode("div",{class:"panel-colorpicker-palette-white"},null,-1)),s[2]||(s[2]=e.createElementVNode("div",{class:"panel-colorpicker-palette-black"},null,-1)),e.createElementVNode("div",{class:"panel-colorpicker-palette-btn",style:e.normalizeStyle({top:n.btnTop+"px",left:n.btnLeft+"px"})},[...s[0]||(s[0]=[e.createElementVNode("div",null,null,-1)])],4)],4))}}),ie=e.defineComponent({name:"ClColorPickerHue",__name:"Hue",props:{color:{type:Object,required:!0}},setup(a){const t=a,o=e.useTemplateRef("refElTopParent"),n=e.useTemplateRef("refElContainer"),p=e.useTemplateRef("refElBtn"),r=e.reactive({btnTop:0}),d=e.computed(()=>t.color.get("hue")),l=(v,h)=>{const V=o.value.getBoundingClientRect();let b=h.clientY-V.top;b=Math.max(0,b),b=Math.min(b,V.height);const _=Math.round(b/V.height*360);t.color.set("hue",_)},c=()=>{const v=o.value,h=t.color.get("hue");return Math.round(h*v.offsetHeight/360)},s=()=>{r.btnTop=c()},m=()=>{const v={ing:(h,g)=>{l(h,g)},end:(h,g)=>{l(h,g)}};new M.Drag(n.value,v),new M.Drag(p.value,v),s()};e.onMounted(()=>{e.nextTick(()=>{m()})}),e.watch(()=>d.value,()=>{s()});const C=v=>{if(v.target!==p.value){const g=J.CommonElement.getClientXY(v);l(v,g)}};return(v,h)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"refElTopParent",ref:o,class:"panel-colorpicker-hue"},[e.createElementVNode("div",{ref_key:"refElContainer",ref:n,class:"panel-colorpicker-hue-container",onClick:C},null,512),e.createElementVNode("div",{ref_key:"refElBtn",ref:p,class:"panel-colorpicker-hue-btn",style:e.normalizeStyle({top:r.btnTop+"px"})},null,4)],512))}}),ue=e.defineComponent({name:"ClColorPickerAlpha",__name:"Alpha",props:{color:{type:Object,required:!0}},setup(a){const t=a,o=e.useTemplateRef("refElTopParent"),n=e.useTemplateRef("refElContainer"),p=e.useTemplateRef("refElBtn"),r=e.reactive({background:null,btnLeft:0}),d=e.computed(()=>t.color.get("alpha")),l=(h,g)=>{const b=o.value.getBoundingClientRect();let _=g.clientX-b.left;_=Math.max(0,_),_=Math.min(_,b.width);const B=Math.round(_/b.width*100);t.color.set("alpha",B)},c=()=>{const h=o.value,g=t.color.get("alpha");return Math.round(g*h.offsetWidth/100)},s=()=>{if(t.color&&t.color.value){const{r:h,g,b:V}=t.color.toRgb();return`linear-gradient(to right, rgba(${h}, ${g}, ${V}, 0) 0%, rgba(${h}, ${g}, ${V}, 1) 100%)`}return null},m=()=>{r.btnLeft=c(),r.background=s()},C=()=>{const h={ing:(g,V)=>{l(g,V)},end:(g,V)=>{l(g,V)}};new M.Drag(n.value,h),new M.Drag(p.value,h),m()};e.onMounted(()=>{e.nextTick(()=>{C()})}),e.watch(()=>d.value,()=>{m()}),e.watch(()=>t.color.value,()=>{m()});const v=h=>{if(h.target!==p.value){const V=J.CommonElement.getClientXY(h);l(h,V)}};return(h,g)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"refElTopParent",ref:o,class:"panel-colorpicker-alpha"},[e.createElementVNode("div",{ref_key:"refElContainer",ref:n,class:"panel-colorpicker-alpha-container",style:e.normalizeStyle({background:r.background}),onClick:v},null,4),e.createElementVNode("div",{ref_key:"refElBtn",ref:p,class:"panel-colorpicker-alpha-btn",style:e.normalizeStyle({left:r.btnLeft+"px"})},null,4)],512))}}),K=e.defineComponent({name:"ClColorPickerItemBlock",__name:"ItemBlock",props:{className:String,color:String},emits:{onClick:a=>!0},setup(a,{emit:t}){const o=a,n=t,p=e.computed(()=>{let d="panel-colorpicker-item-block ";const{className:l}=o;return l&&!y.CommonBase.isEmpty(l)&&(d+=l),d}),r=()=>{n("onClick",o.color||"")};return(d,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(p.value),onClick:r},[l[0]||(l[0]=e.createElementVNode("div",{class:"panel-colorpicker-bg-alpha"},null,-1)),e.createElementVNode("div",{style:e.normalizeStyle({background:a.color})},null,4)],2))}}),pe={class:"panel-colorpicker-preset"},de=e.defineComponent({name:"ClColorPickerPreset",__name:"Preset",emits:{onClick:a=>!0},setup(a,{emit:t}){const o=t,n=e.reactive({keyIndex:`ColorpickerPreset-${y.CommonBase.getRandom(8)}`}),p=e.ref([]),r=()=>{const l=["var(--cl-text-primary, #323233)","var(--cl-bg, #ffffff)","#f44336","#E91E63","#9c27b0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548","#9E9E9E","#607D8B","rgba(255, 69, 0, 0.68)","rgba(31, 147, 255, 0.73)","var(--cl-transparent, rgba(0, 0, 0, 0))"];p.value=l};e.onMounted(()=>{r()});const d=l=>{o("onClick",l)};return(l,c)=>(e.openBlock(),e.createElementBlock("div",pe,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(s,m)=>(e.openBlock(),e.createElementBlock("li",{key:`${n.keyIndex}-${m}`},[e.createVNode(K,{color:s,onOnClick:d},null,8,["color"])]))),128))])]))}}),me={class:"panel-colorpicker-value"},he={key:0,class:"panel-colorpicker-hex"},fe={key:1,class:"panel-colorpicker-rgb"},ve={key:2,class:"panel-colorpicker-hsl"},ge={key:3,class:"panel-colorpicker-hsv"},ke=e.defineComponent({name:"ClColorPickerValue",__name:"Value",props:{color:{type:Object,required:!0}},emits:{onChangeType:a=>!0},setup(a,{expose:t,emit:o}){const n=a,p=o,r=e.reactive({type:"hex",hex:"",rgb:"",hsl:"",hsv:""}),d=e.ref(""),l=e.reactive({r:"",g:"",b:"",a:""}),c=e.reactive({h:"",s:"",l:"",a:""}),s=e.reactive({h:"",s:"",v:"",a:""}),m={typeList:["hex","rgb","hsl","hsv"]},C=e.computed(()=>n.color.value),v=u=>{const f=u.substring(u.indexOf("(")+1,u.indexOf(")")).split(",").map($=>y.CommonBase.trim($));return f.length===3&&f.push("1"),f},h=(u,i)=>{const f=u||C.value,{color:$}=n,U=i==="hex"?f:$.getValueFormat(f,"hex"),q=$.getValueFormat(f,"rgb"),z=$.getValueFormat(f,"hsl"),X=$.getValueFormat(f,"hsv");r.hex=U,r.rgb=q,r.hsl=z,r.hsv=X,e.nextTick(()=>{d.value=U;const O=v(q);l.r=O[0],l.g=O[1],l.b=O[2],l.a=O[3];const R=v(z);c.h=R[0],c.s=R[1],c.l=R[2],c.a=R[3];const P=v(X);s.h=P[0],s.s=P[1],s.v=P[2],s.a=P[3]})},g=u=>{let i=m.typeList.indexOf(r.type);i+=u;const f=m.typeList.length;i<0?i=f-1:i>=f&&(i=0);const $=m.typeList[i];r.type=$,p("onChangeType",$)},V=u=>{let i="";switch(u){case"hex":{d.value.length>0&&(i=d.value);break}case"rgb":{l.r.length>0&&l.g.length>0&&l.b.length>0&&l.a.length>0&&(i=`rgba(${l.r}, ${l.g}, ${l.b},${l.a})`);break}case"hsl":{c.h.length>0&&c.s.length>0&&c.l.length>0&&c.a.length>0&&(i=`hsla(${c.h}, ${c.s}, ${c.l},${c.a})`);break}case"hsv":{s.h.length>0&&s.s.length>0&&s.v.length>0&&s.a.length>0&&(i=`hsva(${s.h}, ${s.s}, ${s.v},${s.a})`);break}}if(i.length>0&&n.color.checkValue(i)){const f=n.color.getValueFormat(i,u);i!==f&&(h(i,u),e.nextTick(()=>{n.color.fromString(i)}),p("onChangeType",u))}},b=()=>{h()};e.onMounted(()=>{e.nextTick(()=>{b()})}),e.watch(()=>C.value,u=>{const i=n.color.getValueFormat(u,"rgb");r.rgb!==i&&h()});const _=()=>{V("hex")},B=()=>{V("rgb")},N=()=>{V("hsl")},w=()=>{V("hsv")},F=()=>{g(-1)},I=()=>{g(1)};return t({setType:u=>{r.type=u},clearInputs:()=>{d.value="",l.r="",l.g="",l.b="",l.a="",c.h="",c.s="",c.l="",c.a="",s.h="",s.s="",s.v="",s.a=""}}),(u,i)=>(e.openBlock(),e.createElementBlock("div",me,[e.createElementVNode("div",null,[r.type==="hex"?(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:d.value,"onUpdate:value":i[0]||(i[0]=f=>d.value=f),isClean:!1,onOnChange:_},null,8,["value"]),i[13]||(i[13]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"十六进制",-1))])])):r.type==="rgb"?(e.openBlock(),e.createElementBlock("div",fe,[e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:l.r,"onUpdate:value":i[1]||(i[1]=f=>l.r=f),isClean:!1,onOnChange:B},null,8,["value"]),i[14]||(i[14]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"R",-1))]),e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:l.g,"onUpdate:value":i[2]||(i[2]=f=>l.g=f),isClean:!1,onOnChange:B},null,8,["value"]),i[15]||(i[15]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"G",-1))]),e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:l.b,"onUpdate:value":i[3]||(i[3]=f=>l.b=f),isClean:!1,onOnChange:B},null,8,["value"]),i[16]||(i[16]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"B",-1))]),e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:l.a,"onUpdate:value":i[4]||(i[4]=f=>l.a=f),isClean:!1,onOnChange:B},null,8,["value"]),i[17]||(i[17]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"A",-1))])])):r.type==="hsl"?(e.openBlock(),e.createElementBlock("div",ve,[e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:c.h,"onUpdate:value":i[5]||(i[5]=f=>c.h=f),isClean:!1,onOnChange:N},null,8,["value"]),i[18]||(i[18]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"H",-1))]),e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:c.s,"onUpdate:value":i[6]||(i[6]=f=>c.s=f),isClean:!1,onOnChange:N},null,8,["value"]),i[19]||(i[19]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"S",-1))]),e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:c.l,"onUpdate:value":i[7]||(i[7]=f=>c.l=f),isClean:!1,onOnChange:N},null,8,["value"]),i[20]||(i[20]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"L",-1))]),e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:c.a,"onUpdate:value":i[8]||(i[8]=f=>c.a=f),isClean:!1,onOnChange:N},null,8,["value"]),i[21]||(i[21]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"A",-1))])])):r.type==="hsv"?(e.openBlock(),e.createElementBlock("div",ge,[e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:s.h,"onUpdate:value":i[9]||(i[9]=f=>s.h=f),isClean:!1,onOnChange:w},null,8,["value"]),i[22]||(i[22]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"H",-1))]),e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:s.s,"onUpdate:value":i[10]||(i[10]=f=>s.s=f),isClean:!1,onOnChange:w},null,8,["value"]),i[23]||(i[23]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"S",-1))]),e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:s.v,"onUpdate:value":i[11]||(i[11]=f=>s.v=f),isClean:!1,onOnChange:w},null,8,["value"]),i[24]||(i[24]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"V",-1))]),e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:s.a,"onUpdate:value":i[12]||(i[12]=f=>s.a=f),isClean:!1,onOnChange:w},null,8,["value"]),i[25]||(i[25]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"A",-1))])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[],64))]),e.createElementVNode("div",null,[e.createVNode(S._sfc_main,{name:"caret-up",onClick:F}),e.createVNode(S._sfc_main,{name:"caret-down",onClick:I})])]))}}),Ce={key:0,class:"panel-colorpicker-copy-icon"},W=e.defineComponent({name:"ClColorPickerCopy",__name:"Copy",props:{className:String,color:String,getTxtCallback:Function},setup(a){const t=a,o=e.useSlots(),n=e.reactive({isHover:!1}),p=e.computed(()=>!y.CommonBase.isUndefined(o.default)),r=e.computed(()=>{let s=!1;return p.value?s=n.isHover:s=!0,s}),d=e.computed(()=>{const s={"panel-colorpicker-copy":!0,"panel-colorpicker-copy-hover":n.isHover},{className:m}=t;return m&&!y.CommonBase.isEmpty(m)&&m.split(" ").forEach(C=>{y.CommonBase.isEmpty(C)||(s[C]=!0)}),s}),l=()=>{p.value&&(n.isHover=!0)},c=()=>{p.value&&(n.isHover=!1)};return(s,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(d.value),onMouseenter:l,onMouseleave:c},[e.renderSlot(s.$slots,"default"),r.value?(e.openBlock(),e.createElementBlock("div",Ce,[e.createVNode(te._sfc_main,{textLabel:a.getTxtCallback||a.color||""},null,8,["textLabel"])])):e.createCommentVNode("",!0)],34))}}),Ve={class:"panel-colorpicker-container"},be={key:0},_e={key:0,class:"panel-colorpicker-format"},Ee={class:"panel-colorpicker-format-show"},ye={key:1,class:"panel-colorpicker-operate"},Z=e.defineComponent({name:"ClColorPickerBase",__name:"Color",props:{value:String,disabled:{type:Boolean,default:!1},isAlpha:{type:Boolean,default:!0},isFormat:{type:Boolean,default:!0},isOperate:{type:Boolean,default:!0},isPreset:{type:Boolean,default:!0},isDropdown:{type:Boolean,default:!0}},emits:{onChange:a=>!0,onSubmit:()=>!0,onInit:()=>!0},setup(a,{expose:t,emit:o}){const n=a,p=o,{optPageLanguage:r,getPageLanguage:d}=le.useLanguage();d("common");const l=e.useTemplateRef("refElColorResult"),c=e.useTemplateRef("refElColorValue"),s=e.reactive({isShowColorResult:!1,colorResult:"",formatShow:"hex"}),m=e.reactive(new se({value:n.value,format:"",enableAlpha:!0})),C={isColorChangeResult:!0},v=()=>m.get("alpha").toString()==="100"?"hex":"rgb",h=(u,i=!0)=>{let f="";u&&!y.CommonBase.isEmpty(u)&&s.isShowColorResult&&(f=m.getValueFormat(u,s.formatShow)),s.colorResult=f,i&&p("onChange",f)},g=u=>{u&&!y.CommonBase.isEmpty(u)?(s.isShowColorResult=!0,m.fromString(u),h(m.value,!1)):(s.isShowColorResult=!1,C.isColorChangeResult=!1,h("",!1),m.fromString(""),e.nextTick(()=>{C.isColorChangeResult=!0}))},V=()=>{const{value:u}=n;g(u),p("onInit")};e.onMounted(()=>{e.nextTick(()=>{V()})}),e.watch(()=>n.value,u=>{g(u)}),e.watch(()=>m.value,u=>{y.CommonBase.isEmpty(n.value)&&(s.isShowColorResult=!0),C.isColorChangeResult&&h(u),C.isColorChangeResult=!0});const b=()=>m.getValueFormat(m.value,s.formatShow),_=u=>{m.fromString(u)},B=u=>{s.formatShow=u,h(m.value,!1)},N=()=>{const u=n.value||"";s.isShowColorResult=!y.CommonBase.isEmpty(u),y.CommonBase.isEmpty(u)?m.set({hue:0,saturation:0,value:100,alpha:100}):(C.isColorChangeResult=!1,h(u),m.fromString(u))},w=()=>{m.set({hue:0,saturation:0,value:100,alpha:100})},F=()=>{p("onSubmit")};return t({getValue:()=>{let u=s.colorResult;if(u.length>0){const i=v();u=m.getValueFormat(u,i)}return u},setValue:u=>{g(u)},initValueType:()=>{const u=v();s.formatShow=u,c.value&&c.value.setType(u)}}),(u,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["panel-colorpicker-wrapper",{"panel-colorpicker-wrapper-disabled":a.disabled}])},[e.createElementVNode("div",Ve,[e.createElementVNode("div",null,[e.createVNode(ce,{color:m},null,8,["color"]),e.createVNode(ie,{color:m},null,8,["color"])]),a.isAlpha?(e.openBlock(),e.createElementBlock("div",be,[e.createVNode(ue,{color:m},null,8,["color"]),i[0]||(i[0]=e.createElementVNode("div",null,null,-1))])):e.createCommentVNode("",!0)]),a.isFormat?(e.openBlock(),e.createElementBlock("div",_e,[e.createElementVNode("div",Ee,[e.createVNode(W,{className:"panel-colorpicker-tip-current",getTxtCallback:b},{default:e.withCtx(()=>[e.createVNode(K,{color:m.value},null,8,["color"])]),_:1})]),e.createVNode(ke,{ref_key:"refElColorValue",ref:c,color:m,onOnChangeType:B},null,8,["color"])])):e.createCommentVNode("",!0),a.isOperate?(e.openBlock(),e.createElementBlock("div",ye,[e.createElementVNode("div",{ref_key:"refElColorResult",ref:l},e.toDisplayString(s.colorResult),513),e.createElementVNode("div",null,[e.createElementVNode("div",{onClick:N},[e.createVNode(S._sfc_main,{name:"restore",title:e.unref(r).restore},null,8,["title"])]),e.createElementVNode("div",{onClick:w},[e.createVNode(S._sfc_main,{name:"clear",title:e.unref(r).clearEmpty},null,8,["title"])]),e.createVNode(W,{color:s.colorResult},null,8,["color"]),a.isDropdown?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:F},[e.createVNode(S._sfc_main,{name:"check",title:e.unref(r).submit},null,8,["title"])])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),a.isPreset?(e.openBlock(),e.createBlock(de,{key:2,onOnClick:_})):e.createCommentVNode("",!0)],2))}}),Be={class:"panel-colorpicker-dropdown-text"},Ne={key:0,class:"panel-colorpicker-dropdown-arrow"},we=e.defineComponent({name:"ClColorPicker",__name:"Index",props:{id:String,value:String,className:String,disabled:{type:Boolean,default:!1},isDropdown:{type:Boolean,default:!0},isAlpha:{type:Boolean,default:!0},isFormat:{type:Boolean,default:!0},isOperate:{type:Boolean,default:!0},isPreset:{type:Boolean,default:!0},isPlaintext:{type:Boolean,default:!1}},emits:{"update:value":a=>!0,"update:modelValue":a=>!0,onChange:a=>!0,onInit:()=>!0},setup(a,{expose:t,emit:o}){const n=a,p=n.id,r=o,d=e.useTemplateRef("refElDropdownLayer"),l=e.useTemplateRef("refElColorpicker"),c=e.reactive({isInitShow:!n.isDropdown,dropdownTextValue:"",currentValue:""}),s={lastValue:""},m=e.computed(()=>{let k="panel-colorpicker ";const{className:u}=n;return u&&!y.CommonBase.isEmpty(u)&&(k+=u),n.isPlaintext&&(k+="cl-plaintext-static "),k}),C=()=>{const k=c.currentValue;let u=!1;n.isDropdown?u=k!==s.lastValue:u=!0,u&&(s.lastValue=k,r("update:value",k),r("update:modelValue",k),r("onChange",k))},v=k=>{let u="transparent";k&&!y.CommonBase.isEmpty(k)&&(u=k),c.dropdownTextValue=u},h=k=>{const u=k||"";s.lastValue=u,n.isDropdown||(c.currentValue=u),v(u)},g=()=>{const k=l.value.getValue();c.dropdownTextValue=k,c.currentValue=k,C()},V=()=>{h(n.value)};e.watch(()=>n.value,k=>{h(k)}),e.onMounted(()=>{e.nextTick(()=>{V()})});const b=()=>{r("onInit")},_=k=>{n.disabled||(k?l.value&&l.value.initValueType():n.isOperate?c.currentValue!==l.value.getValue()&&c.currentValue===s.lastValue&&l.value.setValue(s.lastValue):g())},B=()=>{c.isInitShow=!0,c.currentValue=s.lastValue},N=()=>{n.isDropdown||g()},w=()=>{g(),n.isDropdown&&d.value&&d.value.setOpen(!1)};return t({getValue:()=>c.currentValue,getValueData:()=>({value:c.currentValue}),setValue:k=>{h(k)}}),(k,u)=>a.isDropdown?(e.openBlock(),e.createBlock(ee._sfc_main,{key:0,ref_key:"refElDropdownLayer",ref:d,id:e.unref(p),classParent:m.value,classDropDown:"panel-colorpicker-dropdown",isUseDropdownArrow:!0,isDisabled:a.disabled,onOnChangeOpen:_,onOnOpenComplete:B},{label:e.withCtx(()=>[e.createElementVNode("div",Be,[u[0]||(u[0]=e.createElementVNode("div",{class:"panel-colorpicker-bg-alpha"},null,-1)),e.createElementVNode("div",{style:e.normalizeStyle({"background-color":c.dropdownTextValue})},null,4),a.isPlaintext?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)):(e.openBlock(),e.createElementBlock("div",Ne,[e.createVNode(S._sfc_main,{name:"angle-down"})]))])]),dropdown:e.withCtx(()=>[c.isInitShow?(e.openBlock(),e.createBlock(Z,{key:0,ref_key:"refElColorpicker",ref:l,value:c.currentValue,isAlpha:a.isAlpha,isFormat:a.isFormat,isOperate:a.isOperate,isPreset:a.isPreset,isDropdown:a.isDropdown,onOnChange:N,onOnSubmit:w,onOnInit:b},null,8,["value","isAlpha","isFormat","isOperate","isPreset","isDropdown"])):e.createCommentVNode("",!0)]),_:1},8,["id","classParent","isDisabled"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(m.value)},[c.isInitShow?(e.openBlock(),e.createBlock(Z,{key:0,ref_key:"refElColorpicker",ref:l,value:c.currentValue,disabled:a.disabled,isAlpha:a.isAlpha,isFormat:a.isFormat,isOperate:a.isOperate,isPreset:a.isPreset,isDropdown:a.isDropdown,onOnChange:N,onOnSubmit:w,onOnInit:b},null,8,["value","disabled","isAlpha","isFormat","isOperate","isPreset","isDropdown"])):e.createCommentVNode("",!0)],2))}});module.exports=we;
|
|
1
|
+
"use strict";const e=require("vue"),y=require("../Shared/base-DbuX_Y3x.js"),S=require("../Shared/Index.vue_vue_type_script_setup_true_lang-DU1H_1lY.js"),ee=require("../Shared/Popup.vue_vue_type_script_setup_true_lang-B1FPgy2w.js"),M=require("../Shared/drag-BB4KOliP.js"),J=require("../Shared/index-rFJmbgyH.js"),E=require("../Shared/Index.vue_vue_type_script_setup_true_lang-fgqA2nof.js"),te=require("../Shared/Index.vue_vue_type_script_setup_true_lang-BC8lIalF.js"),le=require("../Shared/language-CBZjQ9dC.js");;/* empty css */const G=(a,t)=>Object.prototype.hasOwnProperty.call(a,t),oe=(a,t,o)=>{const n=(2-t)*o/2,p=n===0||n===1?0:t*o/(n<.5?n*2:2-n*2);return[a,p,n]},ne=a=>typeof a=="string"&&a.includes(".")&&Number.parseFloat(a)===1,ae=a=>typeof a=="string"&&a.includes("%"),T=(a,t)=>{ne(a)&&(a="100%");const o=ae(a);return a=Math.min(t,Math.max(0,Number.parseFloat(`${a}`))),o&&(a=Number.parseInt(`${a*t}`,10)/100),Math.abs(a-t)<1e-6?1:a%t/Number.parseFloat(t)},j={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},A=a=>{a=Math.min(Math.round(a),255);const t=Math.floor(a/16),o=a%16;return`${j[t]||t}${j[o]||o}`},Y=({r:a,g:t,b:o})=>Number.isNaN(+a)||Number.isNaN(+t)||Number.isNaN(+o)?"":`#${A(a)}${A(t)}${A(o)}`,H={A:10,B:11,C:12,D:13,E:14,F:15},x=a=>a.length===2?(H[a[0].toUpperCase()]||+a[0])*16+(H[a[1].toUpperCase()]||+a[1]):H[a[1].toUpperCase()]||+a[1],re=(a,t,o)=>{t=t/100,o=o/100;let n=t;const p=Math.max(o,.01);o*=2,t*=o<=1?o:2-o,n*=p<=1?p:2-p;const r=(o+t)/2,d=o===0?2*n/(p+n):2*t/(o+t);return{h:a,s:d*100,v:r*100}},Q=(a,t,o)=>{a=T(a,255),t=T(t,255),o=T(o,255);const n=Math.max(a,t,o),p=Math.min(a,t,o);let r=0;const d=n,l=n-p,c=n===0?0:l/n;if(n===p)r=0;else{switch(n){case a:{r=(t-o)/l+(t<o?6:0);break}case t:{r=(o-a)/l+2;break}case o:{r=(a-t)/l+4;break}}r/=6}return{h:r*360,s:c*100,v:d*100}},D=(a,t,o)=>{a=T(a,360)*6,t=T(t,100),o=T(o,100);const n=Math.floor(a),p=a-n,r=o*(1-t),d=o*(1-p*t),l=o*(1-(1-p)*t),c=n%6,s=[o,d,r,r,l,o][c],m=[l,o,o,d,r,r][c],C=[r,r,l,o,o,d][c];return{r:Math.round(s*255),g:Math.round(m*255),b:Math.round(C*255)}};class se{_hue=0;_saturation=100;_value=100;_alpha=100;enableAlpha=!1;format="hex";value="";selected;constructor(t){t=t||{};for(const o in t)G(t,o)&&(this[o]=t[o]);t.value?this.fromString(t.value):this.doOnChange()}set(t,o){if(arguments.length===1&&typeof t=="object"){for(const n in t)G(t,n)&&this.set(n,t[n]);return}this[`_${t}`]=o,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return D(this._hue,this._saturation,this._value)}fromString(t){if(!t)return;const o=this._convertValueInfo(t);o&&(this._hue=o.hue,this._saturation=o.saturation,this._value=o.value,this._alpha=o.alpha,this.doOnChange())}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:o,_value:n,_alpha:p,format:r}=this,d={hue:t,saturation:o,value:n,alpha:p};let l=this._convertFormat(r,d);l.length===0&&(l=this._getValueRGB(d)),this.value=l}checkValue(t){let o=!1,n="";if(/^rgb\(/.test(t)?n="^[rR][gG][Bb][\\(]([\\s]*(2[0-4][0-9]|25[0-5]|[01]?[0-9][0-9]?)[\\s]*,){2}[\\s]*(2[0-4]\\d|25[0-5]|[01]?\\d\\d?)[\\s]*[\\)]{1}$":/^rgba\(/.test(t)?n="^[rR][gG][Bb][Aa][\\(]([\\s]*(2[0-4][0-9]|25[0-5]|[01]?[0-9][0-9]?)[\\s]*,){3}[\\s]*(1|1.0|0|0.[0-9])[\\s]*[\\)]{1}$":/^#/.test(t)?n="^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$":/^hsl\(/.test(t)?n="^[hH][Ss][Ll][\\(]([\\s]*(2[0-9][0-9]|360|3[0-5][0-9]|[01]?[0-9][0-9]?)[\\s]*,)([\\s]*((100|[0-9][0-9]?)%|0)[\\s]*,)([\\s]*((100|[0-9][0-9]?)%|0)[\\s]*)[\\)]$":/^hsla\(/.test(t)?n="^[hH][Ss][Ll][Aa][\\(]([\\s]*(2[0-9][0-9]|360|3[0-5][0-9]|[01]?[0-9][0-9]?)[\\s]*,)([\\s]*((100|[0-9][0-9]?)%|0)[\\s]*,){2}([\\s]*(1|1.0|0|0.[0-9])[\\s]*)[\\)]$":/^hsv\(/.test(t)?n="^[hH][Ss][Vv][\\(]([\\s]*(2[0-9][0-9]|360|3[0-5][0-9]|[01]?[0-9][0-9]?)[\\s]*,)([\\s]*((100|[0-9][0-9]?)%|0)[\\s]*,)([\\s]*((100|[0-9][0-9]?)%|0)[\\s]*)[\\)]$":/^hsva\(/.test(t)&&(n="^[hH][Ss][Vv][Aa][\\(]([\\s]*(2[0-9][0-9]|360|3[0-5][0-9]|[01]?[0-9][0-9]?)[\\s]*,)([\\s]*((100|[0-9][0-9]?)%|0)[\\s]*,){2}([\\s]*(1|1.0|0|0.[0-9])[\\s]*)[\\)]$"),n.length>0){const p=new RegExp(n);o=t.match(p)!==null}return o}getValueFormat(t,o){const n=this._convertValueInfo(t);return n?this._convertFormat(o,n):t}_convertValueInfo(t){let o=0,n=100,p=100,r=100;if(t){let d;if(t.includes("hsl")){const l=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(c=>c!=="").map((c,s)=>s>2?Number.parseFloat(c):Number.parseInt(c,10));l.length===4?(r=Number.parseFloat(l[3].toString()),r=r>1?1:r,r=r*100):l.length===3&&(r=100),l.length>=3&&(d=re(l[0],l[1],l[2]))}else if(t.includes("hsv")){const l=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(c=>c!=="").map((c,s)=>s>2?Number.parseFloat(c):Number.parseInt(c,10));l.length===4?(r=Number.parseFloat(l[3].toString()),r=r>1?1:r,r=r*100):l.length===3&&(r=100),l.length>=3&&(d={h:l[0],s:l[1],v:l[2]})}else if(t.includes("rgb")){const l=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(c=>c!=="").map((c,s)=>s>2?Number.parseFloat(c):Number.parseInt(c,10));l.length===4?(r=Number.parseFloat(l[3].toString()),r=r>1?1:r,r=r*100):l.length===3&&(r=100),l.length>=3&&(d=Q(l[0],l[1],l[2]))}else if(t.includes("#")){const l=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(l))return;let c=0,s=0,m=0;l.length===3?(c=x(l[0]+l[0]),s=x(l[1]+l[1]),m=x(l[2]+l[2])):(l.length===6||l.length===8)&&(c=x(l.slice(0,2)),s=x(l.slice(2,4)),m=x(l.slice(4,6))),l.length===8?(r=x(l.slice(6))/255,r=r>1?1:r,r=r*100):(l.length===3||l.length===6)&&(r=100),d=Q(c,s,m)}d&&(o=Math.max(0,Math.min(360,d.h)),n=Math.max(0,Math.min(100,d.s)),p=Math.max(0,Math.min(100,d.v)))}return{hue:o,saturation:n,value:p,alpha:r}}_convertFormat(t,o){let n="";switch(t){case"hsl":{n=this._getValueHSL(o);break}case"hsv":{n=this._getValueHSV(o);break}case"rgb":{n=this._getValueRGB(o);break}case"hex":n=this._getValueHEX(o)}return n}_isShowAlpha(t){return t!==100}_getValueHSL(t){const o=Math.floor(t.alpha),n=this._isShowAlpha(t.alpha),p=oe(t.hue,t.saturation/100,t.value/100),r=Math.round(t.hue),d=Math.round(p[1]*100),l=Math.round(p[2]*100);return n?`hsla(${r}, ${d}%, ${l}%, ${o/100})`:`hsl(${r}, ${d}%, ${l}%)`}_getValueHSV(t){const o=Math.floor(t.alpha),n=this._isShowAlpha(o),p=Math.round(t.hue),r=Math.round(t.saturation),d=Math.round(t.value);return n?`hsva(${p}, ${r}%, ${d}%, ${o/100})`:`hsv(${p}, ${r}%, ${d}%)`}_getValueHEX(t){const o=Math.floor(t.alpha);return this._isShowAlpha(o)?`${Y(D(t.hue,t.saturation,t.value))}${A(o*255/100)}`:Y(D(t.hue,t.saturation,t.value))}_getValueRGB(t){const o=Math.floor(t.alpha),n=this._isShowAlpha(o),{r:p,g:r,b:d}=D(t.hue,t.saturation,t.value);return n?`rgba(${p}, ${r}, ${d}, ${this.get("alpha")/100})`:`rgb(${p}, ${r}, ${d})`}}const ce=e.defineComponent({name:"ClColorPickerPalette",__name:"Palette",props:{color:{type:Object,required:!0}},setup(a){const t=a,o=e.useTemplateRef("refElTopParent"),n=e.reactive({background:"hsl(0, 100%, 50%)",btnLeft:0,btnTop:0}),p=e.computed(()=>{const c=t.color.get("hue"),s=t.color.get("value");return{hue:c,value:s}}),r=(c,s)=>{const C=o.value.getBoundingClientRect();let v=s.clientX-C.left,h=s.clientY-C.top;v=Math.max(0,v),v=Math.min(v,C.width),h=Math.max(0,h),h=Math.min(h,C.height),n.btnLeft=v,n.btnTop=h,t.color.set({saturation:v/C.width*100,value:100-h/C.height*100})},d=()=>{const c=o.value,s=t.color.get("saturation"),m=t.color.get("value"),{clientWidth:C,clientHeight:v}=c;n.btnLeft=s*C/100,n.btnTop=(100-m)*v/100,n.background=`hsl(${t.color.get("hue")}, 100%, 50%)`},l=()=>{const c={ing:(s,m)=>{r(s,m)},end:(s,m)=>{r(s,m)}};new M.Drag(o.value,c),d()};return e.onMounted(()=>{e.nextTick(()=>{l()})}),e.watch(()=>p.value,()=>{d()}),(c,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"refElTopParent",ref:o,class:"panel-colorpicker-palette",style:e.normalizeStyle({backgroundColor:n.background})},[s[1]||(s[1]=e.createElementVNode("div",{class:"panel-colorpicker-palette-white"},null,-1)),s[2]||(s[2]=e.createElementVNode("div",{class:"panel-colorpicker-palette-black"},null,-1)),e.createElementVNode("div",{class:"panel-colorpicker-palette-btn",style:e.normalizeStyle({top:n.btnTop+"px",left:n.btnLeft+"px"})},[...s[0]||(s[0]=[e.createElementVNode("div",null,null,-1)])],4)],4))}}),ie=e.defineComponent({name:"ClColorPickerHue",__name:"Hue",props:{color:{type:Object,required:!0}},setup(a){const t=a,o=e.useTemplateRef("refElTopParent"),n=e.useTemplateRef("refElContainer"),p=e.useTemplateRef("refElBtn"),r=e.reactive({btnTop:0}),d=e.computed(()=>t.color.get("hue")),l=(v,h)=>{const V=o.value.getBoundingClientRect();let b=h.clientY-V.top;b=Math.max(0,b),b=Math.min(b,V.height);const _=Math.round(b/V.height*360);t.color.set("hue",_)},c=()=>{const v=o.value,h=t.color.get("hue");return Math.round(h*v.offsetHeight/360)},s=()=>{r.btnTop=c()},m=()=>{const v={ing:(h,g)=>{l(h,g)},end:(h,g)=>{l(h,g)}};new M.Drag(n.value,v),new M.Drag(p.value,v),s()};e.onMounted(()=>{e.nextTick(()=>{m()})}),e.watch(()=>d.value,()=>{s()});const C=v=>{if(v.target!==p.value){const g=J.CommonElement.getClientXY(v);l(v,g)}};return(v,h)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"refElTopParent",ref:o,class:"panel-colorpicker-hue"},[e.createElementVNode("div",{ref_key:"refElContainer",ref:n,class:"panel-colorpicker-hue-container",onClick:C},null,512),e.createElementVNode("div",{ref_key:"refElBtn",ref:p,class:"panel-colorpicker-hue-btn",style:e.normalizeStyle({top:r.btnTop+"px"})},null,4)],512))}}),ue=e.defineComponent({name:"ClColorPickerAlpha",__name:"Alpha",props:{color:{type:Object,required:!0}},setup(a){const t=a,o=e.useTemplateRef("refElTopParent"),n=e.useTemplateRef("refElContainer"),p=e.useTemplateRef("refElBtn"),r=e.reactive({background:null,btnLeft:0}),d=e.computed(()=>t.color.get("alpha")),l=(h,g)=>{const b=o.value.getBoundingClientRect();let _=g.clientX-b.left;_=Math.max(0,_),_=Math.min(_,b.width);const B=Math.round(_/b.width*100);t.color.set("alpha",B)},c=()=>{const h=o.value,g=t.color.get("alpha");return Math.round(g*h.offsetWidth/100)},s=()=>{if(t.color&&t.color.value){const{r:h,g,b:V}=t.color.toRgb();return`linear-gradient(to right, rgba(${h}, ${g}, ${V}, 0) 0%, rgba(${h}, ${g}, ${V}, 1) 100%)`}return null},m=()=>{r.btnLeft=c(),r.background=s()},C=()=>{const h={ing:(g,V)=>{l(g,V)},end:(g,V)=>{l(g,V)}};new M.Drag(n.value,h),new M.Drag(p.value,h),m()};e.onMounted(()=>{e.nextTick(()=>{C()})}),e.watch(()=>d.value,()=>{m()}),e.watch(()=>t.color.value,()=>{m()});const v=h=>{if(h.target!==p.value){const V=J.CommonElement.getClientXY(h);l(h,V)}};return(h,g)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"refElTopParent",ref:o,class:"panel-colorpicker-alpha"},[e.createElementVNode("div",{ref_key:"refElContainer",ref:n,class:"panel-colorpicker-alpha-container",style:e.normalizeStyle({background:r.background}),onClick:v},null,4),e.createElementVNode("div",{ref_key:"refElBtn",ref:p,class:"panel-colorpicker-alpha-btn",style:e.normalizeStyle({left:r.btnLeft+"px"})},null,4)],512))}}),K=e.defineComponent({name:"ClColorPickerItemBlock",__name:"ItemBlock",props:{className:String,color:String},emits:{onClick:a=>!0},setup(a,{emit:t}){const o=a,n=t,p=e.computed(()=>{let d="panel-colorpicker-item-block ";const{className:l}=o;return l&&!y.CommonBase.isEmpty(l)&&(d+=l),d}),r=()=>{n("onClick",o.color||"")};return(d,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(p.value),onClick:r},[l[0]||(l[0]=e.createElementVNode("div",{class:"panel-colorpicker-bg-alpha"},null,-1)),e.createElementVNode("div",{style:e.normalizeStyle({background:a.color})},null,4)],2))}}),pe={class:"panel-colorpicker-preset"},de=e.defineComponent({name:"ClColorPickerPreset",__name:"Preset",emits:{onClick:a=>!0},setup(a,{emit:t}){const o=t,n=e.reactive({keyIndex:`ColorpickerPreset-${y.CommonBase.getRandom(8)}`}),p=e.ref([]),r=()=>{const l=["var(--cl-text-primary, #323233)","var(--cl-bg, #ffffff)","#f44336","#E91E63","#9c27b0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548","#9E9E9E","#607D8B","rgba(255, 69, 0, 0.68)","rgba(31, 147, 255, 0.73)","var(--cl-transparent, rgba(0, 0, 0, 0))"];p.value=l};e.onMounted(()=>{r()});const d=l=>{o("onClick",l)};return(l,c)=>(e.openBlock(),e.createElementBlock("div",pe,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(s,m)=>(e.openBlock(),e.createElementBlock("li",{key:`${n.keyIndex}-${m}`},[e.createVNode(K,{color:s,onOnClick:d},null,8,["color"])]))),128))])]))}}),me={class:"panel-colorpicker-value"},he={key:0,class:"panel-colorpicker-hex"},fe={key:1,class:"panel-colorpicker-rgb"},ve={key:2,class:"panel-colorpicker-hsl"},ge={key:3,class:"panel-colorpicker-hsv"},ke=e.defineComponent({name:"ClColorPickerValue",__name:"Value",props:{color:{type:Object,required:!0}},emits:{onChangeType:a=>!0},setup(a,{expose:t,emit:o}){const n=a,p=o,r=e.reactive({type:"hex",hex:"",rgb:"",hsl:"",hsv:""}),d=e.ref(""),l=e.reactive({r:"",g:"",b:"",a:""}),c=e.reactive({h:"",s:"",l:"",a:""}),s=e.reactive({h:"",s:"",v:"",a:""}),m={typeList:["hex","rgb","hsl","hsv"]},C=e.computed(()=>n.color.value),v=u=>{const f=u.substring(u.indexOf("(")+1,u.indexOf(")")).split(",").map($=>y.CommonBase.trim($));return f.length===3&&f.push("1"),f},h=(u,i)=>{const f=u||C.value,{color:$}=n,U=i==="hex"?f:$.getValueFormat(f,"hex"),q=$.getValueFormat(f,"rgb"),z=$.getValueFormat(f,"hsl"),X=$.getValueFormat(f,"hsv");r.hex=U,r.rgb=q,r.hsl=z,r.hsv=X,e.nextTick(()=>{d.value=U;const O=v(q);l.r=O[0],l.g=O[1],l.b=O[2],l.a=O[3];const R=v(z);c.h=R[0],c.s=R[1],c.l=R[2],c.a=R[3];const P=v(X);s.h=P[0],s.s=P[1],s.v=P[2],s.a=P[3]})},g=u=>{let i=m.typeList.indexOf(r.type);i+=u;const f=m.typeList.length;i<0?i=f-1:i>=f&&(i=0);const $=m.typeList[i];r.type=$,p("onChangeType",$)},V=u=>{let i="";switch(u){case"hex":{d.value.length>0&&(i=d.value);break}case"rgb":{l.r.length>0&&l.g.length>0&&l.b.length>0&&l.a.length>0&&(i=`rgba(${l.r}, ${l.g}, ${l.b},${l.a})`);break}case"hsl":{c.h.length>0&&c.s.length>0&&c.l.length>0&&c.a.length>0&&(i=`hsla(${c.h}, ${c.s}, ${c.l},${c.a})`);break}case"hsv":{s.h.length>0&&s.s.length>0&&s.v.length>0&&s.a.length>0&&(i=`hsva(${s.h}, ${s.s}, ${s.v},${s.a})`);break}}if(i.length>0&&n.color.checkValue(i)){const f=n.color.getValueFormat(i,u);i!==f&&(h(i,u),e.nextTick(()=>{n.color.fromString(i)}),p("onChangeType",u))}},b=()=>{h()};e.onMounted(()=>{e.nextTick(()=>{b()})}),e.watch(()=>C.value,u=>{const i=n.color.getValueFormat(u,"rgb");r.rgb!==i&&h()});const _=()=>{V("hex")},B=()=>{V("rgb")},N=()=>{V("hsl")},w=()=>{V("hsv")},F=()=>{g(-1)},I=()=>{g(1)};return t({setType:u=>{r.type=u},clearInputs:()=>{d.value="",l.r="",l.g="",l.b="",l.a="",c.h="",c.s="",c.l="",c.a="",s.h="",s.s="",s.v="",s.a=""}}),(u,i)=>(e.openBlock(),e.createElementBlock("div",me,[e.createElementVNode("div",null,[r.type==="hex"?(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:d.value,"onUpdate:value":i[0]||(i[0]=f=>d.value=f),isClean:!1,onOnChange:_},null,8,["value"]),i[13]||(i[13]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"十六进制",-1))])])):r.type==="rgb"?(e.openBlock(),e.createElementBlock("div",fe,[e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:l.r,"onUpdate:value":i[1]||(i[1]=f=>l.r=f),isClean:!1,onOnChange:B},null,8,["value"]),i[14]||(i[14]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"R",-1))]),e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:l.g,"onUpdate:value":i[2]||(i[2]=f=>l.g=f),isClean:!1,onOnChange:B},null,8,["value"]),i[15]||(i[15]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"G",-1))]),e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:l.b,"onUpdate:value":i[3]||(i[3]=f=>l.b=f),isClean:!1,onOnChange:B},null,8,["value"]),i[16]||(i[16]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"B",-1))]),e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:l.a,"onUpdate:value":i[4]||(i[4]=f=>l.a=f),isClean:!1,onOnChange:B},null,8,["value"]),i[17]||(i[17]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"A",-1))])])):r.type==="hsl"?(e.openBlock(),e.createElementBlock("div",ve,[e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:c.h,"onUpdate:value":i[5]||(i[5]=f=>c.h=f),isClean:!1,onOnChange:N},null,8,["value"]),i[18]||(i[18]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"H",-1))]),e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:c.s,"onUpdate:value":i[6]||(i[6]=f=>c.s=f),isClean:!1,onOnChange:N},null,8,["value"]),i[19]||(i[19]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"S",-1))]),e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:c.l,"onUpdate:value":i[7]||(i[7]=f=>c.l=f),isClean:!1,onOnChange:N},null,8,["value"]),i[20]||(i[20]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"L",-1))]),e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:c.a,"onUpdate:value":i[8]||(i[8]=f=>c.a=f),isClean:!1,onOnChange:N},null,8,["value"]),i[21]||(i[21]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"A",-1))])])):r.type==="hsv"?(e.openBlock(),e.createElementBlock("div",ge,[e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:s.h,"onUpdate:value":i[9]||(i[9]=f=>s.h=f),isClean:!1,onOnChange:w},null,8,["value"]),i[22]||(i[22]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"H",-1))]),e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:s.s,"onUpdate:value":i[10]||(i[10]=f=>s.s=f),isClean:!1,onOnChange:w},null,8,["value"]),i[23]||(i[23]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"S",-1))]),e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:s.v,"onUpdate:value":i[11]||(i[11]=f=>s.v=f),isClean:!1,onOnChange:w},null,8,["value"]),i[24]||(i[24]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"V",-1))]),e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{value:s.a,"onUpdate:value":i[12]||(i[12]=f=>s.a=f),isClean:!1,onOnChange:w},null,8,["value"]),i[25]||(i[25]=e.createElementVNode("div",{class:"panel-colorpicker-value-lable"},"A",-1))])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[],64))]),e.createElementVNode("div",null,[e.createVNode(S._sfc_main,{name:"caret-up",onClick:F}),e.createVNode(S._sfc_main,{name:"caret-down",onClick:I})])]))}}),Ce={key:0,class:"panel-colorpicker-copy-icon"},W=e.defineComponent({name:"ClColorPickerCopy",__name:"Copy",props:{className:String,color:String,getTxtCallback:Function},setup(a){const t=a,o=e.useSlots(),n=e.reactive({isHover:!1}),p=e.computed(()=>!y.CommonBase.isUndefined(o.default)),r=e.computed(()=>{let s=!1;return p.value?s=n.isHover:s=!0,s}),d=e.computed(()=>{const s={"panel-colorpicker-copy":!0,"panel-colorpicker-copy-hover":n.isHover},{className:m}=t;return m&&!y.CommonBase.isEmpty(m)&&m.split(" ").forEach(C=>{y.CommonBase.isEmpty(C)||(s[C]=!0)}),s}),l=()=>{p.value&&(n.isHover=!0)},c=()=>{p.value&&(n.isHover=!1)};return(s,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(d.value),onMouseenter:l,onMouseleave:c},[e.renderSlot(s.$slots,"default"),r.value?(e.openBlock(),e.createElementBlock("div",Ce,[e.createVNode(te._sfc_main,{textLabel:a.getTxtCallback||a.color||""},null,8,["textLabel"])])):e.createCommentVNode("",!0)],34))}}),Ve={class:"panel-colorpicker-container"},be={key:0},_e={key:0,class:"panel-colorpicker-format"},Ee={class:"panel-colorpicker-format-show"},ye={key:1,class:"panel-colorpicker-operate"},Z=e.defineComponent({name:"ClColorPickerBase",__name:"Color",props:{value:String,disabled:{type:Boolean,default:!1},isAlpha:{type:Boolean,default:!0},isFormat:{type:Boolean,default:!0},isOperate:{type:Boolean,default:!0},isPreset:{type:Boolean,default:!0},isDropdown:{type:Boolean,default:!0}},emits:{onChange:a=>!0,onSubmit:()=>!0,onInit:()=>!0},setup(a,{expose:t,emit:o}){const n=a,p=o,{optPageLanguage:r,getPageLanguage:d}=le.useLanguage();d("common");const l=e.useTemplateRef("refElColorResult"),c=e.useTemplateRef("refElColorValue"),s=e.reactive({isShowColorResult:!1,colorResult:"",formatShow:"hex"}),m=e.reactive(new se({value:n.value,format:"",enableAlpha:!0})),C={isColorChangeResult:!0},v=()=>m.get("alpha").toString()==="100"?"hex":"rgb",h=(u,i=!0)=>{let f="";u&&!y.CommonBase.isEmpty(u)&&s.isShowColorResult&&(f=m.getValueFormat(u,s.formatShow)),s.colorResult=f,i&&p("onChange",f)},g=u=>{u&&!y.CommonBase.isEmpty(u)?(s.isShowColorResult=!0,m.fromString(u),h(m.value,!1)):(s.isShowColorResult=!1,C.isColorChangeResult=!1,h("",!1),m.fromString(""),e.nextTick(()=>{C.isColorChangeResult=!0}))},V=()=>{const{value:u}=n;g(u),p("onInit")};e.onMounted(()=>{e.nextTick(()=>{V()})}),e.watch(()=>n.value,u=>{g(u)}),e.watch(()=>m.value,u=>{y.CommonBase.isEmpty(n.value)&&(s.isShowColorResult=!0),C.isColorChangeResult&&h(u),C.isColorChangeResult=!0});const b=()=>m.getValueFormat(m.value,s.formatShow),_=u=>{m.fromString(u)},B=u=>{s.formatShow=u,h(m.value,!1)},N=()=>{const u=n.value||"";s.isShowColorResult=!y.CommonBase.isEmpty(u),y.CommonBase.isEmpty(u)?m.set({hue:0,saturation:0,value:100,alpha:100}):(C.isColorChangeResult=!1,h(u),m.fromString(u))},w=()=>{m.set({hue:0,saturation:0,value:100,alpha:100})},F=()=>{p("onSubmit")};return t({getValue:()=>{let u=s.colorResult;if(u.length>0){const i=v();u=m.getValueFormat(u,i)}return u},setValue:u=>{g(u)},initValueType:()=>{const u=v();s.formatShow=u,c.value&&c.value.setType(u)}}),(u,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["panel-colorpicker-wrapper",{"panel-colorpicker-wrapper-disabled":a.disabled}])},[e.createElementVNode("div",Ve,[e.createElementVNode("div",null,[e.createVNode(ce,{color:m},null,8,["color"]),e.createVNode(ie,{color:m},null,8,["color"])]),a.isAlpha?(e.openBlock(),e.createElementBlock("div",be,[e.createVNode(ue,{color:m},null,8,["color"]),i[0]||(i[0]=e.createElementVNode("div",null,null,-1))])):e.createCommentVNode("",!0)]),a.isFormat?(e.openBlock(),e.createElementBlock("div",_e,[e.createElementVNode("div",Ee,[e.createVNode(W,{className:"panel-colorpicker-tip-current",getTxtCallback:b},{default:e.withCtx(()=>[e.createVNode(K,{color:m.value},null,8,["color"])]),_:1})]),e.createVNode(ke,{ref_key:"refElColorValue",ref:c,color:m,onOnChangeType:B},null,8,["color"])])):e.createCommentVNode("",!0),a.isOperate?(e.openBlock(),e.createElementBlock("div",ye,[e.createElementVNode("div",{ref_key:"refElColorResult",ref:l},e.toDisplayString(s.colorResult),513),e.createElementVNode("div",null,[e.createElementVNode("div",{onClick:N},[e.createVNode(S._sfc_main,{name:"restore",title:e.unref(r).restore},null,8,["title"])]),e.createElementVNode("div",{onClick:w},[e.createVNode(S._sfc_main,{name:"clear",title:e.unref(r).clearEmpty},null,8,["title"])]),e.createVNode(W,{color:s.colorResult},null,8,["color"]),a.isDropdown?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:F},[e.createVNode(S._sfc_main,{name:"check",title:e.unref(r).submit},null,8,["title"])])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),a.isPreset?(e.openBlock(),e.createBlock(de,{key:2,onOnClick:_})):e.createCommentVNode("",!0)],2))}}),Be={class:"panel-colorpicker-dropdown-text"},Ne={key:0,class:"panel-colorpicker-dropdown-arrow"},we=e.defineComponent({name:"ClColorPicker",__name:"Index",props:{id:String,value:String,className:String,disabled:{type:Boolean,default:!1},isDropdown:{type:Boolean,default:!0},isAlpha:{type:Boolean,default:!0},isFormat:{type:Boolean,default:!0},isOperate:{type:Boolean,default:!0},isPreset:{type:Boolean,default:!0},isPlaintext:{type:Boolean,default:!1}},emits:{"update:value":a=>!0,"update:modelValue":a=>!0,onChange:a=>!0,onInit:()=>!0},setup(a,{expose:t,emit:o}){const n=a,p=n.id,r=o,d=e.useTemplateRef("refElDropdownLayer"),l=e.useTemplateRef("refElColorpicker"),c=e.reactive({isInitShow:!n.isDropdown,dropdownTextValue:"",currentValue:""}),s={lastValue:""},m=e.computed(()=>{let k="panel-colorpicker ";const{className:u}=n;return u&&!y.CommonBase.isEmpty(u)&&(k+=u),n.isPlaintext&&(k+="cl-plaintext-static "),k}),C=()=>{const k=c.currentValue;let u=!1;n.isDropdown?u=k!==s.lastValue:u=!0,u&&(s.lastValue=k,r("update:value",k),r("update:modelValue",k),r("onChange",k))},v=k=>{let u="transparent";k&&!y.CommonBase.isEmpty(k)&&(u=k),c.dropdownTextValue=u},h=k=>{const u=k||"";s.lastValue=u,n.isDropdown||(c.currentValue=u),v(u)},g=()=>{const k=l.value.getValue();c.dropdownTextValue=k,c.currentValue=k,C()},V=()=>{h(n.value)};e.watch(()=>n.value,k=>{h(k)}),e.onMounted(()=>{e.nextTick(()=>{V()})});const b=()=>{r("onInit")},_=k=>{n.disabled||(k?l.value&&l.value.initValueType():n.isOperate?c.currentValue!==l.value.getValue()&&c.currentValue===s.lastValue&&l.value.setValue(s.lastValue):g())},B=()=>{c.isInitShow=!0,c.currentValue=s.lastValue},N=()=>{n.isDropdown||g()},w=()=>{g(),n.isDropdown&&d.value&&d.value.setOpen(!1)};return t({getValue:()=>c.currentValue,getValueData:()=>({value:c.currentValue}),setValue:k=>{h(k)}}),(k,u)=>a.isDropdown?(e.openBlock(),e.createBlock(ee._sfc_main,{key:0,ref_key:"refElDropdownLayer",ref:d,id:e.unref(p),classParent:m.value,classDropDown:"panel-colorpicker-dropdown",isUseDropdownArrow:!0,isDisabled:a.disabled,onOnChangeOpen:_,onOnOpenComplete:B},{label:e.withCtx(()=>[e.createElementVNode("div",Be,[u[0]||(u[0]=e.createElementVNode("div",{class:"panel-colorpicker-bg-alpha"},null,-1)),e.createElementVNode("div",{style:e.normalizeStyle({"background-color":c.dropdownTextValue})},null,4),a.isPlaintext?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)):(e.openBlock(),e.createElementBlock("div",Ne,[e.createVNode(S._sfc_main,{name:"angle-down"})]))])]),dropdown:e.withCtx(()=>[c.isInitShow?(e.openBlock(),e.createBlock(Z,{key:0,ref_key:"refElColorpicker",ref:l,value:c.currentValue,isAlpha:a.isAlpha,isFormat:a.isFormat,isOperate:a.isOperate,isPreset:a.isPreset,isDropdown:a.isDropdown,onOnChange:N,onOnSubmit:w,onOnInit:b},null,8,["value","isAlpha","isFormat","isOperate","isPreset","isDropdown"])):e.createCommentVNode("",!0)]),_:1},8,["id","classParent","isDisabled"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(m.value)},[c.isInitShow?(e.openBlock(),e.createBlock(Z,{key:0,ref_key:"refElColorpicker",ref:l,value:c.currentValue,disabled:a.disabled,isAlpha:a.isAlpha,isFormat:a.isFormat,isOperate:a.isOperate,isPreset:a.isPreset,isDropdown:a.isDropdown,onOnChange:N,onOnSubmit:w,onOnInit:b},null,8,["value","disabled","isAlpha","isFormat","isOperate","isPreset","isDropdown"])):e.createCommentVNode("",!0)],2))}});module.exports=we;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { default } from '../../types/Web/ColorPicker/Index.vue.d.ts';
|
|
@@ -4,13 +4,13 @@ import '../../styles/Common/Input-base.css';
|
|
|
4
4
|
import '../../styles/Web/ClColorPicker.css';
|
|
5
5
|
import { defineComponent as D, useTemplateRef as M, reactive as E, computed as P, onMounted as L, nextTick as A, watch as R, openBlock as y, createElementBlock as w, normalizeStyle as N, createElementVNode as f, normalizeClass as K, ref as ge, Fragment as ne, renderList as Ce, createVNode as k, useSlots as be, renderSlot as ke, createCommentVNode as I, withCtx as le, toDisplayString as ye, unref as W, createBlock as Z } from "vue";
|
|
6
6
|
import { C as x } from "../Shared/base-fr2I80sU.js";
|
|
7
|
-
import { _ as U } from "../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as we } from "../Shared/Popup.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as U } from "../Shared/Index.vue_vue_type_script_setup_true_lang-BmRO42R2.js";
|
|
8
|
+
import { _ as we } from "../Shared/Popup.vue_vue_type_script_setup_true_lang-lq2pb7vN.js";
|
|
9
9
|
import { D as G } from "../Shared/drag-BBk0X740.js";
|
|
10
10
|
import { C as ve } from "../Shared/index-B477PjJ3.js";
|
|
11
|
-
import { _ as S } from "../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { _ as Ve } from "../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { a as _e } from "../Shared/language-
|
|
11
|
+
import { _ as S } from "../Shared/Index.vue_vue_type_script_setup_true_lang-ef-Lbwxl.js";
|
|
12
|
+
import { _ as Ve } from "../Shared/Index.vue_vue_type_script_setup_true_lang-BQwt39eR.js";
|
|
13
|
+
import { a as _e } from "../Shared/language-BaLIp7bA.js";
|
|
14
14
|
/* empty css */
|
|
15
15
|
const ue = (o, e) => Object.prototype.hasOwnProperty.call(o, e), $e = (o, e, l) => {
|
|
16
16
|
const n = (2 - e) * l / 2, c = n === 0 || n === 1 ? 0 : e * l / (n < 0.5 ? n * 2 : 2 - n * 2);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";const e=require("../Shared/Index.vue_vue_type_script_setup_true_lang-B6aiJ0T_.js");module.exports=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { default } from '../../types/Web/Cropper/Index.vue.d.ts';
|
|
@@ -5,7 +5,7 @@ import '../../styles/Common/Btn-base.css';
|
|
|
5
5
|
import '../../styles/Common/Fade-base.css';
|
|
6
6
|
import '../../styles/Common/Overlay-base.css';
|
|
7
7
|
import '../../styles/Web/ClCropper.css';
|
|
8
|
-
import { _ as f } from "../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as f } from "../Shared/Index.vue_vue_type_script_setup_true_lang-DfvtkXRU.js";
|
|
9
9
|
export {
|
|
10
10
|
f as default
|
|
11
11
|
};
|