@cldemo/ui-kit 1.1.1 → 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.d.ts +2 -0
- 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/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 -28
- 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/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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),ee=require("./log-gqSePaMZ.js"),n=require("./base-DbuX_Y3x.js"),T=require("./index-rFJmbgyH.js"),L=require("./Index.vue_vue_type_script_setup_true_lang-Bbk1BxEq.js"),te=require("./Index.vue_vue_type_script_setup_true_lang-BKrRiRoF.js"),oe=require("./Index.vue_vue_type_script_setup_true_lang-DU1H_1lY.js"),ne=require("./index-BHXq3tfy.js");;/* empty css */const le=["id"],ae=["disabled","aria-label"],re={key:2,class:"btn-label"},se={key:0,class:"btn-loading"},ce={class:"btn-body-backdrop-container"},ie={class:"btn-body-backdrop-text"},ue=e.defineComponent({name:"ClButton",directives:{clwaves:ne.wavesBind},__name:"Index",props:{id:String,className:String,disabled:{type:Boolean,default:!1},classBtn:String,label:String,icon:String,iconName:String,color:{type:String,default:"default"},size:{type:String,validator:l=>l===void 0||["large","small","xl"].indexOf(l)!==-1},isShowLoad:{type:Boolean,default:!1},loadPos:{type:String,default:"right",validator:l=>["right","zoom-out","fixedCenter"].indexOf(l)!==-1},loadTheme:{type:String,default:"rotaryLine"},loadColor:String,loadDrift:{type:Boolean,default:!0},loadText:{type:String,default:"加载中"},isShowBackDrop:{type:Boolean,default:!1},teleportTarget:{type:String,default:""},backdropOpacity:{type:Number,default:.02,validator:l=>l>=0&&l<=1},isShowWaves:{type:Boolean,default:!0},wavesColor:{type:String,default:"white"},loadStatusIsIng:{type:[Boolean,null],default:null}},emits:{onClick:()=>!0},setup(l,{expose:N,emit:I}){const t=l,D=I,R=t.id,_=e.useSlots(),a=e.ref(!1),i=e.ref(!1),p=e.ref(!1),r=e.useTemplateRef("refElBtn"),f=e.useTemplateRef("refElContent"),v=e.ref(!1),C=e.ref("");let s=null,B=!1,u=null;typeof window<"u"&&n.CommonBase.isEmpty(t.label)&&n.CommonBase.isEmpty(t.icon)&&n.CommonBase.isEmpty(t.iconName)&&!_.default&&ee.clLog.warn("ClButton","警告:label、icon、iconName 或默认插槽必须传一个值");const g=e.computed(()=>!n.CommonBase.isEmpty(t.label)||!!_.default),b=e.computed(()=>{const o=t.icon||t.iconName;return n.CommonBase.isNonEmptyString(o)?o:""}),V=e.computed(()=>g.value&&t.label||"按钮"),q=e.computed(()=>t.disabled?!0:a.value),d=e.computed(()=>t.loadPos==="fixedCenter"),O=e.computed(()=>t.loadColor||"var(--cl-bg, #ffffff)"),W=e.computed(()=>t.loadColor||C.value),F=e.computed(()=>`rgba(0, 0, 0, ${t.backdropOpacity})`),$=e.computed(()=>{let o=t.wavesColor||"white";return(n.CommonBase.isExistValue(t.color,"white")||n.CommonBase.isExistValue(t.color,"grayLight")||n.CommonBase.isExistValue(t.color,"text"))&&(o="black"),o}),P=e.computed(()=>t.isShowWaves?{color:$.value}:!1),k=e.computed(()=>{let o=t.loadPos||"right";return n.CommonBase.isExistValue(t.classBtn,"btn-circle")&&n.CommonBase.isExistValue(o,"right")&&(o="zoom-out"),o}),w=e.computed(()=>{let o="";switch(t.loadTheme){case"rotaryLine":o=n.CommonBase.isExistValue(t.classBtn,"btn-circle")?"":"large";break;case"circleNotch":default:o="large";break;case"circleBubble":o="";break}return o}),J=e.computed(()=>{const o={"panel-button":!0};return n.CommonBase.getJsonMerge(o,T.CommonElement.getClassNameJson(t.className))}),M=e.computed(()=>{let o={"btn-parent":!0,btn:!0};return n.CommonBase.isEmpty(t.color)||(o[`btn-${t.color}`]=!0),o=n.CommonBase.getJsonMerge(o,T.CommonElement.getClassNameJson(t.classBtn)),n.CommonBase.isEmpty(t.size)||(o[`btn-${t.size}`]=!0),o["btn-load-ing"]=a.value,a.value&&(o[`btn-load-${k.value}`]=!0,o[`btn-load-${t.loadTheme}`]=!0,o["btn-load-nodrift"]=!t.loadDrift||k.value==="right"&&v.value),o}),A=e.computed(()=>{const o=a.value&&d.value;return{"btn-body-backdrop-main":!0,animated:!0,zoomIn:o,zoomOut:!o}}),U=e.computed(()=>{const o={};return(g.value||b.value)&&k.value==="zoom-out"&&a.value&&!d.value&&(o.opacity=0),o}),j=()=>{D("onClick")},G=()=>{if(n.CommonBase.isExistValue(t.classBtn,"btn-circle"))return 20;switch(t.loadTheme){case"circleNotch":return 24;case"circleBubble":return 30;case"rotaryLine":default:return t.size==="small"?20:30}},S=()=>{if(typeof window>"u"||!r.value)return;const o=r.value.querySelector(".btn-label")||r.value.querySelector(".btn-icon")||r.value,m=window.getComputedStyle(o).color;n.CommonBase.isEmpty(m)||(C.value=m)},h=()=>{if(typeof window>"u"||!r.value||!f.value||a.value)return;const o=r.value,c=f.value.children;if(!c.length){v.value=!0;return}const Q=o.getBoundingClientRect(),z=c[c.length-1].getBoundingClientRect(),X=z.right-c[0].getBoundingClientRect().left,Y=Q.right-z.right,Z=G()+6+5;v.value=Y>=Z&&X>0},H=()=>{E(),!(typeof window>"u"||!r.value||!window.ResizeObserver)&&(u=new window.ResizeObserver(()=>{h()}),u.observe(r.value))},E=()=>{u&&(u.disconnect(),u=null)},y=()=>{a.value||(s&&(clearTimeout(s),s=null),t.isShowBackDrop&&(i.value=!0,p.value=!0),a.value=!0)},x=()=>{t.isShowBackDrop&&(d.value?e.nextTick(()=>{B||(s=setTimeout(()=>{B||(i.value=!1,p.value=!1,s=null)},200))}):i.value=!1),a.value=!1};e.onMounted(()=>{e.nextTick(()=>{S(),h(),H()})}),e.onBeforeUnmount(()=>{B=!0,E(),s&&(clearTimeout(s),s=null)}),e.watch(()=>[t.label,t.icon,t.iconName,t.size,t.loadTheme,t.classBtn,t.loadDrift,t.color],()=>{e.nextTick(()=>{S(),h()})}),e.watch(()=>t.loadStatusIsIng,o=>{n.CommonBase.isBoolean(o)&&(o?y():x())},{immediate:!0});const K=()=>{t.disabled||(t.isShowLoad&&y(),j())};return N({loadStart:()=>{y()},loadStop:()=>{x()}}),(o,m)=>{const c=e.resolveDirective("clwaves");return e.openBlock(),e.createElementBlock("span",{id:e.unref(R),class:e.normalizeClass(J.value)},[e.withDirectives((e.openBlock(),e.createElementBlock("button",{type:"button",class:e.normalizeClass(M.value),disabled:q.value,"aria-label":V.value,ref_key:"refElBtn",ref:r,onClick:K},[e.createElementVNode("span",{style:e.normalizeStyle(U.value),ref_key:"refElContent",ref:f},[b.value?(e.openBlock(),e.createBlock(oe._sfc_main,{key:0,name:b.value,className:"btn-icon"},null,8,["name"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),g.value?(e.openBlock(),e.createElementBlock("span",re,[e.renderSlot(o.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(l.label),1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],4),a.value&&!d.value?(e.openBlock(),e.createElementBlock("span",se,[e.createVNode(L._sfc_main,{theme:l.loadTheme,size:w.value,color:W.value},null,8,["theme","size","color"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],10,ae)),[[c,P.value]]),i.value?(e.openBlock(),e.createBlock(te._sfc_main,{key:0,show:i.value,zIndex:1000001,duration:0,isLockScroll:!1,background:F.value,teleportTarget:l.teleportTarget},{default:e.withCtx(()=>[d.value&&p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(A.value)},[e.createElementVNode("div",ce,[e.createVNode(L._sfc_main,{theme:l.loadTheme,size:w.value,color:O.value},null,8,["theme","size","color"]),e.createElementVNode("div",ie,e.toDisplayString(l.loadText||"加载中"),1)])],2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))]),_:1},8,["show","background","teleportTarget"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],10,le)}}});exports._sfc_main=ue;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),l=require("./base-DbuX_Y3x.js"),N=require("./index-rFJmbgyH.js"),q=require("./Index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";const t=require("vue"),l=require("./base-DbuX_Y3x.js"),N=require("./index-rFJmbgyH.js"),q=require("./Index.vue_vue_type_script_setup_true_lang-DU1H_1lY.js");;/* empty css */;/* empty css */const M=["id"],w=["name","placeholder","disabled","aria-label"],g="100px",R=t.defineComponent({name:"ClInputTextarea",__name:"Index",props:{id:{type:String,default:""},name:{type:String,default:""},value:{type:String,default:""},className:{type:String,default:""},disabled:{type:Boolean,default:!1},width:{type:String,default:""},height:{type:String,default:"100px"},placeholder:{type:String,default:""},isClean:{type:Boolean,default:!1},isAutoHeight:{type:Boolean,default:!1},changeDelayTime:{type:Number,default:200},heightMax:{type:String,default:""},isPlaintext:{type:Boolean,default:!1}},emits:["update:value","update:modelValue","onChange","onInit","onKeydownEnter","onKeyupEnter","onFocus","onBlur","onChangeDelay"],setup(c,{expose:v,emit:x}){const a=c,s=x,C=a.id,m=t.useTemplateRef("refElTextarea"),p=t.reactive({height:a.height||g}),r=t.ref(l.CommonBase.isString(a.value)?a.value:""),o={lastValue:l.CommonBase.isString(a.value)?a.value:"",prevDelayValue:l.CommonBase.isString(a.value)?a.value:"",valueDelayRun:!1},B=t.computed(()=>{let e=a.name;return l.CommonBase.isEmpty(e)&&(e=`textarea_${l.CommonBase.getRandom(8)}`),e}),E=t.computed(()=>a.isClean&&!a.disabled&&!l.CommonBase.isEmpty(r.value)),k=t.computed(()=>{let e={"panel-input-textarea":!0,"textarea-clean":a.isClean&&!a.isPlaintext};return a.isPlaintext&&(e["cl-plaintext-value"]=!0,e["cl-plaintext-value-pre"]=!0),e=l.CommonBase.getJsonMerge(e,N.CommonElement.getClassNameJson(a.className)),e}),D=t.computed(()=>{const e=r.value;return l.CommonBase.isString(e)?e.replace(/<\/?br\s*\/?>/gi,`
|
|
2
2
|
`):""}),T=t.computed(()=>{const{width:e,heightMax:n}=a,u={};return l.CommonBase.isNonEmptyString(e)&&(u.width=e),a.isPlaintext||(l.CommonBase.isEmpty(p.height)||(u.height=p.height),l.CommonBase.isNonEmptyString(n)&&(u["max-height"]=n)),u});let i;const _=e=>{i&&(clearTimeout(i),i=null),o.valueDelayRun=!0,i=setTimeout(()=>{o.valueDelayRun=!1,o.prevDelayValue!==e&&(o.prevDelayValue=e,s("onChangeDelay",e))},Math.max(a.changeDelayTime,0))},h=e=>{e!==o.lastValue&&(o.lastValue=e,s("update:value",e),s("update:modelValue",e),s("onChange",e),_(e))},d=()=>{if(a.isAutoHeight){const e=m.value;if(e){e.style.height=a.height||g;const n=e.scrollHeight+e.scrollTop+(e.offsetHeight-e.clientHeight);e.style.height="100%",p.height=n>0?`${n}px`:a.height||g}}},f=()=>{m.value?.focus()},S=()=>{t.nextTick(()=>{s("onInit")})};t.onMounted(()=>{S()}),t.onBeforeUnmount(()=>{i&&(clearTimeout(i),i=null)}),t.watch(()=>a.value,(e,n)=>{e!==n&&(r.value=l.CommonBase.isString(e)?e:"",o.lastValue=l.CommonBase.isString(e)?e:"",requestAnimationFrame(()=>d()),o.valueDelayRun||(o.prevDelayValue=e||""))});const V=e=>{const n=e.target;if(!n)return;const u=n.value;requestAnimationFrame(()=>d()),h(u)},b=e=>{e.key==="Enter"&&s("onKeydownEnter",e)},H=e=>{e.key==="Enter"&&s("onKeyupEnter",e)},I=()=>{r.value="",h(""),f()},P=()=>{s("onFocus")},F=()=>{s("onBlur")},y=()=>l.CommonBase.trim(r.value);return v({getValue:y,getValueData:()=>({value:y(),show:r.value}),setValue:e=>{i&&(clearTimeout(i),i=null,o.valueDelayRun=!1);const n=l.CommonBase.isEmpty(e)?"":e;o.lastValue=n,o.prevDelayValue=n,r.value=n,d()},initHeight:()=>{p.height=a.height||g,a.isAutoHeight&&d()},focus:()=>{f()},getParentElement:()=>m.value?.parentElement||null}),(e,n)=>(t.openBlock(),t.createElementBlock("div",{id:t.unref(C),class:t.normalizeClass(k.value),style:t.normalizeStyle(T.value)},[c.isPlaintext?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.value),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.withDirectives(t.createElementVNode("textarea",{ref_key:"refElTextarea",ref:m,class:"form-control text-area","onUpdate:modelValue":n[0]||(n[0]=u=>r.value=u),name:B.value,placeholder:c.placeholder,disabled:c.disabled,"aria-label":c.placeholder||"文本输入区域",onInput:V,onKeydown:b,onKeyup:H,onFocus:P,onBlur:F},null,40,w),[[t.vModelText,r.value]]),E.value?(t.openBlock(),t.createBlock(q._sfc_main,{key:0,name:"close-circle-fill",class:"textarea-clear-icon","aria-label":"清除输入内容",onClick:t.withModifiers(I,["stop"])})):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64))],64))],14,M))}});exports._sfc_main=R;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as Q, ref as M, computed as f, watch as x, openBlock as c, createElementBlock as m, normalizeClass as O, unref as k, createElementVNode as b, toDisplayString as P, Fragment as B, renderList as W, withKeys as J, withModifiers as X, createVNode as D } from "vue";
|
|
2
2
|
import { C as l } from "./base-fr2I80sU.js";
|
|
3
3
|
import { C as Y } from "./index-B477PjJ3.js";
|
|
4
|
-
import { _ as Z } from "./Index.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as ee } from "./Index.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as te } from "./Index.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { a as ae } from "./language-
|
|
4
|
+
import { _ as Z } from "./Index.vue_vue_type_script_setup_true_lang-BmRO42R2.js";
|
|
5
|
+
import { _ as ee } from "./Index.vue_vue_type_script_setup_true_lang-ef-Lbwxl.js";
|
|
6
|
+
import { _ as te } from "./Index.vue_vue_type_script_setup_true_lang-BtlpTQO-.js";
|
|
7
|
+
import { a as ae } from "./language-BaLIp7bA.js";
|
|
8
8
|
const ie = ["id"], ne = { class: "paginate-statistic" }, se = { class: "paginate-list" }, le = {
|
|
9
9
|
class: "pagination",
|
|
10
10
|
role: "navigation",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),n=require("./base-DbuX_Y3x.js"),W=require("./index-rFJmbgyH.js"),X=require("./globalConfig-
|
|
1
|
+
"use strict";const t=require("vue"),n=require("./base-DbuX_Y3x.js"),W=require("./index-rFJmbgyH.js"),X=require("./globalConfig-BjG8BDet.js"),Y=require("./language-CBZjQ9dC.js");;/* empty css */const Z=["id"],ee={key:0,class:"cl-plaintext-value"},te={key:2,class:"selectTag-container"},se=["aria-selected","aria-disabled","tabindex"],oe=["aria-selected","aria-disabled","tabindex","onClick","onKeydown"],ne=["innerHTML"],ae={key:1},le=t.defineComponent({name:"ClSelectTag",__name:"Index",props:{id:String,value:[String,Number],className:String,disabled:Boolean,type:{type:String,required:!0,validator:m=>["checkbox","radio"].indexOf(m)!==-1},list:{type:Array,default:()=>[]},theme:String,width:String,isShowAll:Boolean,showAllLabel:String,isInitRadioValue:{type:Boolean,default:!0},isRadioClickCancel:Boolean,checkChangeBefore:Function,isPlaintext:{type:Boolean,default:!1},plaintextSeparator:{type:String,default:","}},emits:{"update:value":m=>!0,"update:modelValue":m=>!0,onChange:(m,b,S,a)=>!0,onInit:(m,b,S)=>!0,onError:m=>!0},setup(m,{expose:b,emit:S}){const a=m,y=S,{optPageLanguage:K,getPageLanguage:R}=Y.useLanguage();R("common");const J=`s-${n.CommonBase.getRandom(5)}`,N=a.id,T=t.reactive({theme:""}),h=t.ref(!1),D=e=>{let s=[];return n.CommonBase.isEmpty(e)||(s=e.toString().split(",")),s},c=t.ref(D(a.value));let C=[],d={};const q=t.ref(0),g=t.ref(!1);let B=0;const P=t.computed(()=>{const e=a.list;return n.CommonBase.isArray(e)?e.filter(s=>!n.CommonBase.isEmpty(s)):[]}),j=t.computed(()=>{const e=n.CommonBase.isString(a.plaintextSeparator)?a.plaintextSeparator:",";a.list,q.value;const s=[];return c.value.forEach(o=>{const i=n.CommonBase.isExistJsonKey(d,o)?d[o]:void 0;i&&n.CommonBase.isNonEmptyString(i.name)&&s.push(i.name)}),s.join(e)}),z=t.computed(()=>{const{theme:e}=a,s={"panel-select-tag":!0};let o=T.theme;return e&&(o=e),n.CommonBase.isEmpty(o)||(s[`selectTag-${o}`]=!0),n.CommonBase.getJsonMerge(s,W.CommonElement.getClassNameJson(a.className))}),H=t.computed(()=>{const e={};return n.CommonBase.isEmpty(a.width)||(e.width=a.width),e}),v=e=>{y("update:value",e),y("update:modelValue",e)},L=e=>{if(!n.CommonBase.isEqualArr(c.value,e)){const s=n.CommonBase.getArrClone(c.value),o=f(s);c.value=n.CommonBase.getArrClone(e);const{value:i,isAll:l,info:r}=f(e);a.isShowAll&&(h.value=l),v(i),y("onChange",i,r,l,{value:o.value,info:o.info})}},G=()=>{t.nextTick(()=>{const{value:e,isAll:s,info:o}=f(c.value);y("onInit",e,o,s)})},f=e=>{const s=[];n.CommonBase.isEmpty(e)||e.forEach(r=>{n.CommonBase.isExistJsonKey(d,r)&&s.push(n.CommonBase.getJsonClone(d[r]))});const o=e.join(","),i=s.length>0&&s.length===C.length;let l;return a.type==="radio"?(l={},s.length>0&&(l=s[0])):l=s,{value:o,info:l,isAll:i}},M=e=>!n.CommonBase.isEmpty(e.id)&&c.value.includes(e.id.toString()),O=e=>{const s={};return e.isHtml?s.width="auto":n.CommonBase.isEmpty(e.width)?n.CommonBase.isEmpty(a.width)||(s.width=a.width):s.width=e.width,s},Q=()=>{const e=X.getGlobalConfig("selectTag");e?.theme&&(T.theme=e.theme)},w=e=>{const s=[];if(e.length>0){const o=d[e[0]],i=o&&!n.CommonBase.isEmpty(o.type)?o.type:a.type;e.forEach(l=>{if(n.CommonBase.isExistJsonKey(d,l)){const r=d[l];if((n.CommonBase.isEmpty(r.type)?a.type:r.type)===i)switch(i){case"radio":s.length===0&&s.push(l);break;case"checkbox":s.push(l);break}}})}return s},E=e=>{if(d={},C=[],!n.CommonBase.isEmpty(e)){const s=n.CommonBase.getArrClone(c.value);e.forEach(o=>{if(n.CommonBase.isEmpty(o?.id))return;const i=o.id.toString();d[i]=o,o.isDisabled?n.CommonBase.isExistValue(s,i)&&C.push(i):C.push(i)})}q.value+=1},k=()=>{if(g.value){let e=[];n.CommonBase.isEmpty(c.value)||(e=w(c.value),n.CommonBase.isEqualArr(c.value,e)||(c.value=e,v(e.join(",")))),a.isShowAll&&(h.value=e.length>0&&e.length===C.length)}},x=()=>{if(a.type==="radio"&&a.isInitRadioValue&&n.CommonBase.isEmpty(c.value)&&!n.CommonBase.isEmpty(a.list)){const e=a.list.find(s=>!s.isDisabled);if(e&&!n.CommonBase.isEmpty(e.id)){const s=e.id.toString();c.value=[s],v(s)}}},A=e=>{const s=D(e);n.CommonBase.isEqualArr(c.value,s)||(c.value=s,v(s.join(",")))},U=()=>{Q(),g.value=!n.CommonBase.isEmpty(a.list),E(a.list),x(),k()};t.onMounted(()=>{t.nextTick(()=>{U()})}),t.watch(g,e=>{e&&G()}),t.watch([()=>a.list,()=>a.value,()=>a.type],([e,s],[o,i])=>{const l=e;!g.value&&l!==o&&(g.value=!0),s!==i&&A(s),E(l),s===i&&x(),k()});const V=async()=>{if(!a.disabled&&!n.CommonBase.isEmpty(a.list)){const e=++B;if(!a.list.some(r=>!r.isDisabled))return;const o=[];a.list.forEach(r=>{if(n.CommonBase.isEmpty(r.id))return;const u=r.id.toString();r.isDisabled?n.CommonBase.isExistValue(c.value,u)&&o.push(u):h.value||o.push(u)});const i=w(o);let l=!0;if(a.checkChangeBefore){const{value:r}=f(i),u=f(n.CommonBase.getArrClone(c.value));try{l=await a.checkChangeBefore(r,u.value),l=n.CommonBase.isBoolean(l)?l:!0}catch(p){l=!1,y("onError",p instanceof Error?p.message:String(p))}}l&&e===B&&L(i)}},I=async e=>{if(!e.isDisabled&&!a.disabled&&!n.CommonBase.isEmpty(e.id)){const s=++B;let o=a.type;o=n.CommonBase.isEmpty(e.type)?o:e.type;const i=n.CommonBase.getArrClone(c.value);let l=[];const r=e.id.toString();if(i.length===0)l=[r];else if(o==="radio")n.CommonBase.isEqualArr(i,[r])?l=a.isRadioClickCancel?[]:i:l=[r];else{const p=d[i[0]];(p&&!n.CommonBase.isEmpty(p.type)?p.type:a.type)==="radio"?l=[r]:n.CommonBase.isExistValue(i,r)?l=n.CommonBase.getArrRemoveById(i,r):(l=n.CommonBase.getArrClone(i),l.push(r))}let u=!0;if(a.checkChangeBefore){const{value:p}=f(l),F=f(i);try{u=await a.checkChangeBefore(p,F.value),u=n.CommonBase.isBoolean(u)?u:!0}catch(_){u=!1,y("onError",_ instanceof Error?_.message:String(_))}}u&&s===B&&L(l)}},$=()=>w(c.value).join(",");return b({getValue:$,getValueData:()=>{const{value:e,info:s}=f($().split(","));return a.type==="radio"&&n.CommonBase.isEmpty(e)?null:s},setValue:e=>{A(e),E(a.list),k()},runInitComplete:()=>{g.value||(g.value=!0,A(a.value),E(a.list),x(),k())}}),(e,s)=>(t.openBlock(),t.createElementBlock("div",{id:t.unref(N),class:t.normalizeClass(z.value)},[m.isPlaintext?(t.openBlock(),t.createElementBlock("div",ee,t.toDisplayString(j.value),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64)),m.isPlaintext?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("ul",te,[m.isShowAll?(t.openBlock(),t.createElementBlock("li",{key:0,role:"option","aria-selected":h.value,"aria-disabled":m.disabled,tabindex:m.disabled?-1:0,class:t.normalizeClass({"selectTag-item":!0,"selectTag-active":h.value,"selectTag-disabled":m.disabled}),style:t.normalizeStyle(H.value),onClick:s[0]||(s[0]=o=>V()),onKeydown:[s[1]||(s[1]=t.withKeys(t.withModifiers(o=>V(),["prevent"]),["enter"])),s[2]||(s[2]=t.withKeys(t.withModifiers(o=>V(),["prevent"]),["space"]))]},[t.createElementVNode("span",null,t.toDisplayString(m.showAllLabel||t.unref(K).checkboxAll),1)],46,se)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(P.value,(o,i)=>(t.openBlock(),t.createElementBlock("li",{key:`${J}-${o.id}-${i}`,role:"option","aria-selected":M(o),"aria-disabled":o.isDisabled||m.disabled,tabindex:o.isDisabled||m.disabled?-1:0,class:t.normalizeClass({"selectTag-item":!0,"selectTag-active":M(o),"selectTag-disabled":o.isDisabled||m.disabled}),style:t.normalizeStyle(O(o)),onClick:l=>I(o),onKeydown:[t.withKeys(t.withModifiers(l=>I(o),["prevent"]),["enter"]),t.withKeys(t.withModifiers(l=>I(o),["prevent"]),["space"])]},[t.renderSlot(e.$slots,"default",{data:o},()=>[o.isHtml?(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:t.unref(n.CommonBase).encodeHTML(o.name)},null,8,ne)):(t.openBlock(),t.createElementBlock("span",ae,t.toDisplayString(o.name),1))])],46,oe))),128))]))],10,Z))}});exports._sfc_main=le;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as te, useTemplateRef as ne, computed as E, onMounted as fe, nextTick as me, onBeforeUnmount as oe, openBlock as F, createElementBlock as R, normalizeClass as ae, renderSlot as ie, reactive as X, ref as pe, watch as be, unref as ge, createVNode as L, createSlots as ye, withCtx as U, Fragment as Y } from "vue";
|
|
2
|
-
import { c as le } from "./log-
|
|
2
|
+
import { c as le } from "./log-CSNil8va.js";
|
|
3
3
|
import { C as a } from "./base-fr2I80sU.js";
|
|
4
4
|
import { C as j } from "./index-B477PjJ3.js";
|
|
5
|
-
import { _ as ee } from "./Index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as ee } from "./Index.vue_vue_type_script_setup_true_lang-DQBa9Pny.js";
|
|
6
6
|
import { D as De } from "./drag-BBk0X740.js";
|
|
7
|
-
import { _ as z } from "./Index.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as z } from "./Index.vue_vue_type_script_setup_true_lang-BmRO42R2.js";
|
|
8
8
|
const we = ["aria-disabled"], q = /* @__PURE__ */ te({
|
|
9
9
|
name: "ClInputnumberstepperButton",
|
|
10
10
|
__name: "Button",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as B, ref as L, useTemplateRef as O, computed as r, onBeforeUnmount as z, watch as M, nextTick as $, onMounted as D, openBlock as b, createBlock as F, Teleport as q, createVNode as J, Transition as V, withCtx as A, withDirectives as P, createElementVNode as R, withModifiers as U, normalizeStyle as Z, normalizeClass as j, unref as G, renderSlot as H, vShow as K, createElementBlock as Q, Fragment as W } from "vue";
|
|
2
|
-
import { c as k } from "./log-
|
|
2
|
+
import { c as k } from "./log-CSNil8va.js";
|
|
3
3
|
import { C as l } from "./base-fr2I80sU.js";
|
|
4
4
|
import { C as X } from "./index-B477PjJ3.js";
|
|
5
5
|
import { u as Y, l as ee } from "./scrollLock-DQEGK5um.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),p=require("./log-
|
|
1
|
+
"use strict";const e=require("vue"),p=require("./log-gqSePaMZ.js"),s=require("./base-DbuX_Y3x.js"),N=require("./index-rFJmbgyH.js"),C=["id","aria-labelledby"],y={key:0,class:"tip-must"},B=["id"],E=e.defineComponent({name:"ClFormGroupHorizontal",__name:"Index",props:{id:String,className:{type:String,default:""},colRatio:{type:String,default:"2:10"},label:String,isTipMust:{type:Boolean,default:!1},isPlaintext:{type:Boolean,default:!1}},setup(a){const r=a,u=r.id;let c;r.id&&(c=`${u}-label`);const d=e.computed(()=>{let o={"panel-form-group-horizontal":!0,"form-group":!0,"form-group-plaintext":r.isPlaintext,row:!0};return o=s.CommonBase.getJsonMerge(o,N.CommonElement.getClassNameJson(r.className)),o}),i=e.computed(()=>r.colRatio.split(":")),f=e.computed(()=>{const o=i.value,n=m(o[0],2),t={"control-label":!0};return t[`col-sm-${n}`]=!0,t[`col-${n}`]=!0,t}),g=e.computed(()=>{const o=i.value,n=m(o[1],10),t={"form-group-content":!0};return t[`col-sm-${n}`]=!0,t[`col-${n}`]=!0,t}),m=(o,n)=>{if(!s.CommonBase.isNonEmptyString(o))return n;const t=parseInt(o,10);return isNaN(t)||t<1||t>12?n:t};return e.watch(i,([o,n])=>{if(!s.CommonBase.isNonEmptyString(o)||!s.CommonBase.isNonEmptyString(n))return;const t=parseInt(o,10),l=parseInt(n,10);if(isNaN(t)||isNaN(l)||t<1||t>12||l<1||l>12){p.clLog.warn("ClFormGroupHorizontal",`colRatio 值 "${o}:${n}" 不在 1-12 有效范围内,已使用默认值 2:10`);return}t+l!==12&&p.clLog.warn("ClFormGroupHorizontal",`colRatio 两值之和需为 12(当前 ${t}+${l}=${t+l}),布局可能出现异常`)},{immediate:!0}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(u),class:e.normalizeClass(d.value),role:"group","aria-labelledby":e.unref(c)},[e.createElementVNode("div",{class:e.normalizeClass(f.value)},[e.createElementVNode("span",null,[a.isTipMust?(e.openBlock(),e.createElementBlock("span",y,"*")):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("span",{class:"control-label-text",id:e.unref(c)},e.toDisplayString(a.label),9,B),e.renderSlot(o.$slots,"labelExtend")])],2),e.createElementVNode("div",{class:e.normalizeClass(g.value)},[e.renderSlot(o.$slots,"default")],2)],10,C))}});exports._sfc_main=E;
|
|
@@ -3,7 +3,7 @@ import { defineComponent as Y, useTemplateRef as Z, computed as d, openBlock as
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { C as u } from "./base-fr2I80sU.js";
|
|
5
5
|
import { C as ge } from "./index-B477PjJ3.js";
|
|
6
|
-
import { _ as X } from "./Index.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as X } from "./Index.vue_vue_type_script_setup_true_lang-BmRO42R2.js";
|
|
7
7
|
const ve = ["id"], he = ["type", "inputmode", "name", "value", "placeholder", "disabled", "readonly"], Ce = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "input-floating-label"
|
|
@@ -2,7 +2,7 @@ import { defineComponent as dt, inject as Vt, useTemplateRef as et, reactive as
|
|
|
2
2
|
import { C as d } from "./base-fr2I80sU.js";
|
|
3
3
|
import { C as ft } from "./index-B477PjJ3.js";
|
|
4
4
|
import { D as Ct } from "./drag-BBk0X740.js";
|
|
5
|
-
import {
|
|
5
|
+
import { t as xt, a as Tt } from "./index-DoxFaAkn.js";
|
|
6
6
|
/* empty css */
|
|
7
7
|
const Lt = ["id"], Pt = /* @__PURE__ */ dt({
|
|
8
8
|
name: "ClSliderBar",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue");;/* empty css */;/* empty css */const s=require("./base-DbuX_Y3x.js"),G=require("./index-rFJmbgyH.js"),P=require("./Index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";const e=require("vue");;/* empty css */;/* empty css */const s=require("./base-DbuX_Y3x.js"),G=require("./index-rFJmbgyH.js"),P=require("./Index.vue_vue_type_script_setup_true_lang-DU1H_1lY.js"),H=["id"],Q=["type","inputmode","name","value","placeholder","disabled","readonly"],W={key:0,class:"input-floating-label"},X={key:3,class:"input-suffix"},F=e.defineComponent({name:"ClInputContainer",components:{ClIconFont:P._sfc_main},__name:"Container",props:{id:String,name:String,value:[String,Number],inputType:{type:String,default:"text"},inputmode:{type:String,default:""},autocomplete:{type:String,default:"off"},placeholder:String,label:String,isFloating:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1},isClean:{type:Boolean,default:!0},isShowSuffix:{type:Boolean,default:!1}},emits:["onInputText","onKeydown","onKeyup","onFocus","onBlur","onClear"],setup(o,{expose:S,emit:E}){const t=o,l=E,w=t.id,r=e.useTemplateRef("refElInput"),v=e.computed(()=>{let a=t.name;return s.CommonBase.isEmpty(a)&&(a=`input_${s.CommonBase.getRandom(8)}`),a}),y=e.computed(()=>s.CommonBase.isEmpty(t.inputmode)?void 0:t.inputmode),u=e.computed(()=>{const a={};return s.CommonBase.isNonEmptyString(t.autocomplete)&&(a.autocomplete=t.autocomplete),a}),p=e.computed(()=>t.isClean&&!t.disabled&&!t.isReadonly),C=e.computed(()=>p.value&&!s.CommonBase.isEmpty(t.value)),c=e.computed(()=>t.isFloating?t.label||t.placeholder:""),m=e.computed(()=>({"input-container":!0,"input-clean":t.isClean,"input-suffix":t.isShowSuffix,"input-floating":t.isFloating})),x=a=>{const h=a.target;h&&l("onInputText",h.value)},b=a=>{l("onKeydown",a)},I=a=>{l("onKeyup",a)},g=()=>{l("onFocus")},k=()=>{l("onBlur")},B=()=>{l("onClear")};return S({getInputElement:()=>r.value,focus:()=>{r.value?.focus()}}),(a,h)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(w),class:e.normalizeClass(m.value)},[e.createElementVNode("input",e.mergeProps({ref_key:"refElInput",ref:r,type:o.inputType,inputmode:y.value,name:v.value},u.value,{class:"form-control",value:o.value,placeholder:o.placeholder,disabled:o.disabled,readonly:o.isReadonly,onInput:x,onKeydown:b,onKeyup:I,onFocus:g,onBlur:k}),null,16,Q),c.value?(e.openBlock(),e.createElementBlock("label",W,e.toDisplayString(c.value),1)):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createBlock(P._sfc_main,{key:1,name:"close-circle-fill",class:"input-clear-icon","aria-label":"清除输入内容",role:"button",tabindex:"-1",onClick:e.withModifiers(B,["stop"]),onKeydown:[e.withKeys(e.withModifiers(B,["stop"]),["enter"]),e.withKeys(e.withModifiers(B,["stop","prevent"]),["space"])]},null,8,["onKeydown"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[],64)),o.isShowSuffix?(e.openBlock(),e.createElementBlock("div",X,[e.renderSlot(a.$slots,"suffix")])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[],64))],10,H))}}),Y=["id"],Z={key:0,class:"cl-plaintext-value"},_={key:0,class:"input-group-prepend"},ee={class:"input-group-text"},ne={key:2,class:"input-group-append"},te={class:"input-group-text"},oe=e.defineComponent({name:"ClInput",components:{ClInputContainer:F},__name:"Index",props:{id:String,name:String,value:[String,Number],className:String,disabled:{type:Boolean,default:!1},theme:{type:String,default:"default"},inputType:String,inputmode:{type:String,default:""},autocomplete:{type:String,default:"off"},width:String,placeholder:String,label:String,isFloating:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1},isClean:{type:Boolean,default:!0},isPlaintext:{type:Boolean,default:!1},changeDelayTime:{type:Number,default:200}},emits:["update:value","update:modelValue","onChange","onFocus","onBlur","onChangeBlur","onKeyupEnter","onClear","onInit","onKeydown","onKeyup","onChangeDelay"],setup(o,{expose:S,emit:E}){const t=o,l=E,w=t.id,r=e.useTemplateRef("refElContainer"),v=e.ref(!1),y=s.CommonBase.isString(t.value)?t.value:t.value!==void 0&&s.CommonBase.isNumber(t.value)&&s.CommonBase.isFinite(t.value)?t.value.toString():"",u=e.ref(y),p=e.ref(y),C=e.ref(y),c={prevDelayValue:y,valueDelayRun:!1};let m=null;const x=e.computed(()=>{let n={"panel-input":!0,"input-disabled":t.disabled,"input-readonly":t.isReadonly};return n=s.CommonBase.getJsonMerge(n,G.CommonElement.getClassNameJson(t.className)),s.CommonBase.isEmpty(t.theme,"default")||(n[`input-${t.theme}`]=!0),n}),b=e.computed(()=>{const n={};return s.CommonBase.isNonEmptyString(t.width)&&(n.width=t.width),n}),I=n=>{g(),c.valueDelayRun=!0,m=setTimeout(()=>{m=null,p.value===n&&(c.valueDelayRun=!1,c.prevDelayValue!==n&&(c.prevDelayValue=n,l("onChangeDelay",n)))},t.changeDelayTime)},g=()=>{m&&(clearTimeout(m),m=null),c.valueDelayRun=!1},k=n=>{if(n!==p.value){p.value=n;const i=d(n);l("update:value",i),l("update:modelValue",i),l("onChange",i),I(i)}},B=n=>{v.value=!0,C.value=n,l("onFocus",n)},V=n=>{v.value=!1,l("onBlur",n),n!==C.value&&(C.value=n,l("onChangeBlur",n))},T=n=>{l("onKeyupEnter",n)},a=n=>{l("onKeydown",n)},h=n=>{l("onKeyup",n)},z=()=>{l("onClear")},J=()=>{e.nextTick(()=>{l("onInit")})},d=n=>s.CommonBase.isString(n)||s.CommonBase.isNumber(n)&&s.CommonBase.isFinite(n)?n.toString():"",K=()=>{r.value?.focus()},L=()=>{const n=d(t.value);s.CommonBase.isEmpty(n)||(u.value=n,p.value=n),J()};e.onMounted(()=>{L()}),e.onBeforeUnmount(()=>{g()}),e.watch(()=>t.value,n=>{const i=d(n);i!==u.value&&(u.value=i,p.value=i,c.prevDelayValue=i,c.valueDelayRun&&g())});const D=n=>{u.value=n,k(n)},R=n=>{a(n)},$=n=>{const i=n.key,f=n.keyCode;if(i==="Enter"||f===13){const A=n.target,j=d(A.value);T(j)}else h(n)},N=()=>{const n=d(u.value);B(n)},O=()=>{const n=d(u.value);V(n)},q=()=>{u.value="",k(""),z(),K()},U=()=>{const n=r.value;return n?n.getInputElement():null},M=()=>d(u.value);return S({getValue:M,getValueData:()=>({value:M(),show:u.value}),setValue:(n,i)=>{const f=d(n);u.value=f,p.value=f,c.prevDelayValue=f,c.valueDelayRun&&g(),i&&(l("update:value",f),l("update:modelValue",f))},focus:()=>{K()},getInputElement:U}),(n,i)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(w),class:e.normalizeClass(x.value),style:e.normalizeStyle(b.value)},[o.isPlaintext?(e.openBlock(),e.createElementBlock("div",Z,e.toDisplayString(u.value),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.$slots.prepend||n.$slots.append?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({"input-group":!0,"input-group-focus":v.value})},[n.$slots.prepend?(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("span",ee,[e.renderSlot(n.$slots,"prepend")])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createVNode(F,{ref_key:"refElContainer",ref:r,value:u.value,inputType:o.inputType,inputmode:o.inputmode,autocomplete:o.autocomplete,name:o.name,placeholder:o.placeholder,disabled:o.disabled,isReadonly:o.isReadonly,isClean:o.isClean,isShowSuffix:!!n.$slots.suffix,label:o.label,isFloating:o.isFloating,onOnInputText:D,onOnKeydown:R,onOnKeyup:$,onOnFocus:N,onOnBlur:O,onOnClear:q},e.createSlots({_:2},[n.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"suffix")]),key:"0"}:{name:"suffix",fn:e.withCtx(()=>[]),key:"1"}]),1032,["value","inputType","inputmode","autocomplete","name","placeholder","disabled","isReadonly","isClean","isShowSuffix","label","isFloating"]),n.$slots.append?(e.openBlock(),e.createElementBlock("div",ne,[e.createElementVNode("span",te,[e.renderSlot(n.$slots,"append")])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],2)):(e.openBlock(),e.createBlock(F,{key:1,ref_key:"refElContainer",ref:r,value:u.value,inputType:o.inputType,inputmode:o.inputmode,autocomplete:o.autocomplete,name:o.name,placeholder:o.placeholder,disabled:o.disabled,isReadonly:o.isReadonly,isClean:o.isClean,isShowSuffix:!!n.$slots.suffix,label:o.label,isFloating:o.isFloating,onOnInputText:D,onOnKeydown:R,onOnKeyup:$,onOnFocus:N,onOnBlur:O,onOnClear:q},e.createSlots({_:2},[n.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"suffix")]),key:"0"}:{name:"suffix",fn:e.withCtx(()=>[]),key:"1"}]),1032,["value","inputType","inputmode","autocomplete","name","placeholder","disabled","isReadonly","isClean","isShowSuffix","label","isFloating"]))],64))],14,Y))}});exports._sfc_main=oe;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),n=require("./base-DbuX_Y3x.js"),ee=require("./index-rFJmbgyH.js"),Ee=require("./List.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";const e=require("vue"),n=require("./base-DbuX_Y3x.js"),ee=require("./index-rFJmbgyH.js"),Ee=require("./List.vue_vue_type_script_setup_true_lang-G2klceWn.js"),ke=require("./Index.vue_vue_type_script_setup_true_lang-KKIG3pkE.js"),we=require("./Index.vue_vue_type_script_setup_true_lang-RBYo7N7Z.js"),xe=require("./Index.vue_vue_type_script_setup_true_lang-D6yVZJvt.js"),Te=require("./Index.vue_vue_type_script_setup_true_lang-fgqA2nof.js"),be=require("./Index.vue_vue_type_script_setup_true_lang-BC8lIalF.js"),Ie=require("./Index.vue_vue_type_script_setup_true_lang-DU1H_1lY.js"),_e=require("./Index.vue_vue_type_script_setup_true_lang-DfHi5Zuv.js"),fe=require("./One.vue_vue_type_script_setup_true_lang-D89MNwcx.js"),Le=require("./Ing.vue_vue_type_script_setup_true_lang-CGFlREiD.js"),De=require("./language-CBZjQ9dC.js");;/* empty css */const Ve={key:0},Ke={key:1},Oe={class:"inputTag-operate"},he=e.defineComponent({name:"ClInputTagInput",__name:"Input",props:{value:String,placeholder:String,disabled:Boolean,isClean:{type:Boolean,default:!0},multiple:Boolean,isCopy:Boolean,isCopyMultipleWrap:{type:Boolean,default:!0},copyJoinKey:{type:String,default:","},minHeight:String,joinKey:{type:String,default:","},isDropdownLayer:{type:Boolean,default:!0},textMaxHeight:String,tagsMaxHeight:String,isShowNum:Boolean},emits:["onInit","onChange","onChangeInput","onFocus"],setup(i,{expose:se,emit:ie}){const a=i,H=ie,q=e.inject("$InputTagTop"),O=e.useTemplateRef("refElTag"),u=e.useTemplateRef("refElTextarea"),N=e.useTemplateRef("refElInput"),B=e.reactive({isFocus:!1}),I=e.ref([]),w=e.ref([]),L=e.ref(""),F=e.computed(()=>!n.CommonBase.isEmpty(w.value)||!n.CommonBase.isEmpty(L.value)),te=e.computed(()=>a.isClean&&!a.disabled&&F.value),A=e.computed(()=>({"dropdownLayer-text-container":a.isDropdownLayer,"inputTag-container":!0,"inputTag-multiple":a.multiple,"inputTag-focus":B.isFocus})),J=e.computed(()=>{const l={};return a.multiple&&(a.disabled?l["min-height"]="40px":n.CommonBase.isNonEmptyString(a.minHeight)&&w.value.length>0&&(l["min-height"]=a.minHeight)),l}),C=e.computed(()=>{const l={},{multiple:d,tagsMaxHeight:b}=a;return d&&n.CommonBase.isNonEmptyString(b)&&(l["max-height"]=b),l}),P=(l="tag")=>{const d=v();H("onChange",d,l)},G=()=>{e.nextTick(()=>{H("onInit")})},D=l=>{H("onChangeInput",l)},M=l=>{H("onFocus",l)},Q=()=>{let l="";if(a.multiple){const d=a.copyJoinKey+(a.isCopyMultipleWrap?`
|
|
2
2
|
`:"");l=w.value.join(d)}else l=L.value;return l},v=()=>a.multiple?w.value.join(a.joinKey||","):L.value,R=l=>{if(n.CommonBase.isEmpty(l))I.value=[],w.value=[],L.value="";else if(l!==v())if(a.multiple){const d=[],b=[];n.CommonBase.split(l,a.joinKey||",").forEach(U=>{const V=n.CommonBase.trim(U);!n.CommonBase.isEmpty(V)&&!n.CommonBase.isExistValue(b,V)&&(d.push({id:`inputTag_${n.CommonBase.getRandom(8)}`,name:V}),b.push(V))}),I.value=d,w.value=Array.from(new Set(b))}else L.value=l},X=l=>{const d=n.CommonBase.trim(l);O.value&&O.value.addInfo({id:`inputTag_${n.CommonBase.getRandom(8)}`,name:d}),u.value&&(u.value.initHeight(),u.value.setValue(""))},$=()=>{a.multiple?u.value&&u.value.focus():N.value&&N.value.focus()},ne=(l,d=!0)=>{if(a.multiple){const b=e.toRaw(w.value);n.CommonBase.split(l,a.joinKey||",").forEach(U=>{const V=n.CommonBase.trim(U);if(!n.CommonBase.isEmpty(V))if(d)X(V),n.CommonBase.isExistValue(b,V)||b.push(V);else{const W=I.value.findIndex(le=>le.name===V);W>-1&&I.value.splice(W,1);const z=b.indexOf(V);z>-1&&b.splice(z,1)}}),w.value=Array.from(new Set(b))}else L.value=d?l:"";a.multiple&&$(),P("drop")},oe=()=>{R(a.value??""),G()};e.onMounted(()=>{e.nextTick(()=>{oe()})}),e.watch(()=>a.value,(l,d)=>{l!==d&&l!==v()&&(R(l??""),u.value&&(u.value.setValue(""),u.value.initHeight()))});const ae=l=>{if(a.multiple){const d=u.value?u.value.getParentElement():null;(!d||!d.contains(l.target))&&$()}else $()},re=l=>{if(l.isComposing||l.keyCode===229||l.shiftKey)return;const d=q?q.getListHoverValueKeydown():"";n.CommonBase.isEmpty(d)&&(l.preventDefault(),l.stopPropagation())},r=l=>{if(l.isComposing||l.keyCode===229||l.shiftKey)return;const d=l.target.value,b=q?q.getListHoverValueKeydown():"";if(n.CommonBase.isEmpty(b)){if(l.preventDefault(),l.stopPropagation(),!n.CommonBase.isEmpty(d)){const U=e.toRaw(w.value);let V=[];n.CommonBase.isExistValue(d,`
|
|
3
3
|
`)?n.CommonBase.split(d,`
|
|
4
4
|
`).forEach(W=>{n.CommonBase.isEmpty(W)||V.push(...n.CommonBase.split(W,a.joinKey||","))}):V=n.CommonBase.split(d,a.joinKey||","),V.forEach(W=>{const z=n.CommonBase.trim(W);n.CommonBase.isEmpty(z)||(X(z),n.CommonBase.isExistValue(U,z)||U.push(z))}),w.value=Array.from(new Set(U)),P()}}else u.value&&(u.value.initHeight(),u.value.setValue(""))},g=()=>{B.isFocus=!0,M(v())},k=()=>{B.isFocus=!1},E=()=>{if(!O.value)return;const l=O.value.getData();w.value=l.filter(d=>n.CommonBase.isNonEmptyString(d.name)).map(d=>d.name),I.value=l,D(""),P()},_=()=>{I.value=[],w.value=[],L.value="",u.value&&(u.value.setValue(""),u.value.initHeight()),P(),$()},K=l=>{D(l)},j=()=>{M(L.value)};return se({getValue:()=>v(),setValue:l=>{R(l),u.value&&(u.value.setValue(""),u.value.initHeight())},focus:()=>{$()},updateValue:(l,d=!0)=>{ne(l,d)}}),(l,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(A.value),style:e.normalizeStyle(J.value),onClick:e.withModifiers(ae,["stop"])},[i.multiple?(e.openBlock(),e.createElementBlock("div",Ve,[e.createElementVNode("div",{class:"inputTag-tags",style:e.normalizeStyle(C.value)},[e.createVNode(xe._sfc_main,{ref_key:"refElTag",ref:O,disabled:i.disabled,list:I.value,onOnRemove:E},null,8,["disabled","list"])],4),e.withDirectives(e.createVNode(we._sfc_main,{ref_key:"refElTextarea",ref:u,height:"24px",heightMax:i.textMaxHeight,disabled:i.disabled,placeholder:i.disabled?"":i.placeholder,isClean:!1,isAutoHeight:!0,onOnKeydownEnter:re,onOnKeyupEnter:r,onOnFocus:g,onOnBlur:k,onOnChangeDelay:K},null,8,["heightMax","disabled","placeholder"]),[[e.vShow,!i.disabled]])])):(e.openBlock(),e.createElementBlock("div",Ke,[e.createVNode(Te._sfc_main,{ref_key:"refElInput",ref:N,value:L.value,"onUpdate:value":d[0]||(d[0]=b=>L.value=b),placeholder:i.placeholder,isClean:!1,disabled:i.disabled,onOnFocus:j,onOnChangeDelay:K},null,8,["value","placeholder","disabled"])])),e.createElementVNode("div",Oe,[i.isShowNum&&i.multiple&&w.value.length>1?(e.openBlock(),e.createBlock(ke._sfc_main,{key:0,num:w.value.length},null,8,["num"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),te.value?(e.openBlock(),e.createBlock(Ie._sfc_main,{key:2,name:"close-circle-fill",className:"inputTag-operate-btn","aria-label":"清空",tabindex:"-1",role:"button",onClick:e.withModifiers(_,["stop"]),onKeydown:[e.withKeys(e.withModifiers(_,["stop","prevent"]),["enter"]),e.withKeys(e.withModifiers(_,["stop","prevent"]),["space"])]},null,8,["onKeydown"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64)),i.isCopy&&F.value?(e.openBlock(),e.createBlock(be._sfc_main,{key:4,className:"inputTag-operate-btn",textLabel:Q})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[],64))])],6))}}),Me={class:"dropdownLayer-list-container"},He={key:0,class:"dropdownLayer-list-search"},Fe={key:2,class:"dropdownLayer-list-checkboxAll"},Ne=["aria-activedescendant"],Pe=["id","aria-selected","aria-disabled","onClick","onMouseenter","onMouseleave"],Re={key:0,class:"dropdownLayer-list-checkbox"},$e=["innerHTML"],Ae={key:1},Je={key:0,class:"dropdownLayer-list-empty"},je={key:1,class:"inputTag-load"},qe=180,Ue=50,We=100,ze=130,Ge=e.defineComponent({name:"ClDropdownlayerSearchList",__name:"Dropdown",props:{isSearch:Boolean,searchValue:String,searchPlaceholder:String,searchKey:{type:Array,default:()=>["name"]},searchKeyType:{type:String,default:"||",validator:i=>["||","&&"].indexOf(i)>-1},isMultiple:Boolean,isCheckBoxAll:Boolean,showDropDownTextFormat:String,showDropDownTextFormatSub:String,isCascade:Boolean,parentSelectable:Boolean,parentKey:{type:String,default:"parentId"},topParentValue:{type:String,default:"0"},originalData:{type:Array,default:()=>[]},keyIndex:String,selectId:{type:Array,default:()=>[]},isShowEmptyLabel:{type:Boolean,default:!0},isShowLoading:Boolean,serverCallback:Function},emits:["onChange","onSearchResult","onError"],setup(i,{expose:se,emit:ie}){const a=i,H=ie,{optPageLanguage:q,getPageLanguage:O}=De.useLanguage();O("common");const u=e.inject("$InputTagTop"),N=e.useTemplateRef("refElSearch"),B=e.useTemplateRef("refElList"),I=`inputtag-${n.CommonBase.getRandom(5)}`;let w=0,L=0,F=0,te=0,A=!1,J=!1;const C={start:-1,end:-1,limit:50},P=e.reactive({isRunLoading:!1}),G=`dropdownLayer-list-${a.keyIndex||I}`,D=e.ref(""),M=e.ref([]),Q=e.ref([]);let v=[],R=[],X=!1;const $={isScrollLoadIng:!1},ne=e.computed(()=>{let t=!1;return Q.value.length>0&&a.selectId.length>=Q.value.length&&(t=n.CommonBase.isContainArr(a.selectId.map(o=>o.toString()),Q.value)),t}),oe=e.computed(()=>new Set(a.selectId.map(t=>t.toString()))),ae=(t,s)=>{H("onChange",t,s)},re=(t,s)=>{H("onSearchResult",{search:n.CommonBase.isNonEmptyString(t)?t:"",isEmpty:s})},r=t=>{H("onError",t)},g=t=>n.CommonBase.isEmpty(t)?[]:t.filter(s=>s?n.CommonBase.isString(s.id)&&!n.CommonBase.isEmpty(s.id)||n.CommonBase.isNumber(s.id)&&n.CommonBase.isFinite(s.id):!1),k=async t=>{F++;const s=F;let o=[];if(a.serverCallback){a.isShowLoading&&(P.isRunLoading=!0);try{if(o=await a.serverCallback({search:t,offset:0}),s!==F)return;e.nextTick(()=>{s===F&&(P.isRunLoading=!1,u&&u.convertListToJson(o),e.nextTick(()=>{E(t,o)}))})}catch{s===F&&(P.isRunLoading=!1,r("服务端搜索失败,请稍后重试"))}}else if(n.CommonBase.isEmpty(t))o=a.originalData,E(t,o);else if(n.CommonBase.isNonEmptyString(t)){const c=t.toLowerCase(),p=a.searchKey.length,y=a.searchKey;a.originalData.forEach(h=>{const f=[];for(let S=0;S<p;S++){const m=h[y[S]];n.CommonBase.isNonEmptyString(m)&&m.toLowerCase().indexOf(c)>-1&&f.push(!0)}if(f.length>0)switch(a.searchKeyType){case"||":o.push(h);break;case"&&":f.length===p&&o.push(h);break}}),E(t,o)}},E=(t,s)=>{a.isCascade?(n.CommonBase.isEmpty(t)||(s=j(s,a.originalData)),R=s,s=K(s)):s=g(s),v=s,M.value=Y(0,C.limit),B.value&&(B.value.scrollTop=0),ce(0,C.limit),_(),D.value="",re(t,s.length===0)},_=()=>{const t=[],s=a.selectId.map(o=>o.toString());v.forEach(o=>{if(n.CommonBase.isEmpty(o.id))return;const c=o.id.toString();o.isDisabled?n.CommonBase.isExistValue(s,c)&&t.push(c):t.push(c)}),Q.value=t},K=t=>{const s=a.parentKey||"parentId",o=a.topParentValue||"0",c={};t.forEach(S=>{if(n.CommonBase.isEmpty(S.id))return;const m=S[s];if(!n.CommonBase.isEmpty(m)&&m.toString()!==o){const x=m.toString();c[x]||(c[x]=[]),c[x].push(S)}});const p=[],y=t.filter(S=>{if(n.CommonBase.isEmpty(S.id))return!1;const m=S[s];return n.CommonBase.isEmpty(m)||m.toString()===o}),h=new Set,f=(S,m,x)=>{S.forEach(T=>{const Z=T.id.toString();if(h.has(Z))return;h.add(Z);const ue=c[Z]||[];p.push({...T,_level:m,_parentName:x,_hasChildren:ue.length>0,isDisabled:T.isDisabled||ue.length>0&&!a.parentSelectable}),ue.length>0&&f(ue,m+1,T.name)})};return f(y,0,""),p},j=(t,s)=>{const o=a.parentKey||"parentId",c=a.topParentValue||"0",p={},y={};s.forEach(m=>{if(n.CommonBase.isEmpty(m.id))return;const x=m.id.toString();p[x]=m;const T=m[o];!n.CommonBase.isEmpty(T)&&T.toString()!==c&&(y[T.toString()]||(y[T.toString()]=[]),y[T.toString()].push(x))});const h=new Set,f=new Set;t.forEach(m=>{n.CommonBase.isEmpty(m.id)||f.add(m.id.toString())});const S=m=>{let x=p[m],T=0;for(;x&&T<100;){h.add(x.id.toString());const Z=x[o];if(n.CommonBase.isEmpty(Z)||Z.toString()===c)break;x=p[Z.toString()],T++}};return t.forEach(m=>{if(n.CommonBase.isEmpty(m.id))return;const x=m.id.toString();S(x),y[x]&&y[x].forEach(T=>{h.add(T)})}),s.filter(m=>n.CommonBase.isEmpty(m.id)?!1:h.has(m.id.toString()))},Y=(t,s)=>{const o=[],c=v.length,p=t<0?0:t,y=s<=c?s:c;if(p<y)for(let h=p;h<y;h++)o.push(v[h]);return o},me=(t,s)=>{let o=0,c=0;switch(s){case"prev":o=t-C.limit,c=t;break;case"next":o=t,c=o+C.limit;break}return Y(o,c)},ce=(t,s)=>{let o=C.start;(o===-1||t<o)&&(o=t),o=o<=0?0:o;let c=C.end;s>c&&(c=s),c=s<=v.length?s:v.length,C.start=o,C.end=c},de=()=>{let t=-1,s="";if(!n.CommonBase.isEmpty(a.selectId)){const p=a.selectId.map(y=>y.toString());v.some((y,h)=>{if(n.CommonBase.isEmpty(y.id))return!1;const f=y.id.toString(),S=n.CommonBase.isExistValue(p,f);return S&&(t=h,s=f),S})}let o=0,c=0;t===-1?(w=0,o=0,c=C.limit):(o=t-C.limit*1,c=t+C.limit*1),M.value=Y(o,c),C.start=o<=0?0:o,C.end=c>=v.length?v.length:c,n.CommonBase.isEmpty(s)||M.value.some((p,y)=>{if(n.CommonBase.isEmpty(p.id))return!1;const h=p.id.toString()===s;return h&&(w=y),h})},l=t=>{e.nextTick(()=>{const s=B.value;if(!(!s||!s.children[0]))if(t>0){const o=s.children[0].children[t];s.scrollTop=o&&o.offsetTop>qe?o.offsetTop-Ue:0}else s.scrollTop=0})},d=()=>{a.isCascade?(R=g(a.originalData),v=K(R)):v=g(a.originalData),de(),e.nextTick(()=>{n.CommonBase.isEmpty(a.searchValue)&&(N.value&&N.value.setValue(""),B.value&&l(w))})},b=async t=>{const s=Date.now(),o=t.target,c=o.scrollTop;if(s-te<150){L=c;return}te=s;const p=o.offsetHeight;if(!o.children[0]){L=c;return}const y=o.children[0].offsetHeight;if(c>L){if(c+p+We>y&&!$.isScrollLoadIng){if($.isScrollLoadIng=!0,C.end>=v.length&&a.serverCallback){const h=F,f=a.searchValue,S={offset:v.length};n.CommonBase.isEmpty(f)||(S.search=f);try{const m=await a.serverCallback(S);if(J)return;h===F&&a.searchValue===f&&(a.isCascade?(R.push(...g(m)),v=K(R)):v.push(...g(m)),_(),u&&u.convertListToJson(v))}catch{h===F&&r("服务端加载更多失败,请稍后重试")}}if(C.end<v.length){const h=me(C.end,"next");M.value.push(...h),ce(C.start,C.end+C.limit)}$.isScrollLoadIng=!1}}else if(c<ze&&C.start>0){const h=me(C.start,"prev"),f=h.length;f>0&&(M.value.unshift(...h),ce(C.start-C.limit,C.end),e.nextTick(()=>{const S=B.value;if(!S||!S.children[0])return;let m=0;const x=S.children[0].children;for(let T=0;T<f&&x[T];T++)m+=x[T].offsetHeight;S.scrollTop+=m}))}L=c},U=()=>{X||e.nextTick(()=>{B.value&&(B.value.addEventListener("scroll",b),X=!0)})},V=t=>{let s=a.showDropDownTextFormat;if(t._level>=1&&!n.CommonBase.isEmpty(a.showDropDownTextFormatSub)&&(s=a.showDropDownTextFormatSub),n.CommonBase.isEmpty(s)){if(n.CommonBase.isEmpty(t.name))return"";const o=t.name;return n.CommonBase.isString(o)?n.CommonBase.encodeHTML(o):String(o)}return n.CommonBase.convertStringFormatEncodeHTML(s,t)},W=t=>{const s=[];return a.isMultiple?(a.selectId.forEach(o=>{o.toString()!==t&&s.push(o)}),n.CommonBase.isExistValue(a.selectId.map(o=>o.toString()),t)||s.push(t)):s.push(t),s},z=t=>{const s=M.value;if(s.length===0){D.value="";return}let o=-1;const c=D.value;c.length>0?(s.forEach((p,y)=>{p.id.toString()===c&&(o=y)}),o+=t,o<0?o=0:o>=s.length&&(o=s.length-1)):o=0,D.value=n.CommonBase.isEmpty(s[o].id)?"":s[o].id.toString(),l(o)},le=t=>{if(t.isComposing||t.keyCode===229)return;let s=t.keyCode;if(!n.CommonBase.isUndefined(s))switch(s=s.toString(),s){case"13":if(t.shiftKey)break;t.preventDefault(),t.stopPropagation();break;case"38":t.preventDefault(),t.stopPropagation(),z(-1);break;case"40":t.preventDefault(),t.stopPropagation(),z(1);break}},pe=t=>{if(t.isComposing||t.keyCode===229)return;let s=t.keyCode;if(!n.CommonBase.isUndefined(s))switch(s=s.toString(),s){case"27":u&&u.setDropdownOpen(!1);break;case"13":{if(t.shiftKey)break;const o=D.value;if(!n.CommonBase.isEmpty(o)){const c=M.value.find(p=>p.id.toString()===o);if(c&&!c.isDisabled){const p=W(o);ae(p,{id:o,isSelect:a.selectId.map(y=>y.toString()).indexOf(o)===-1})}}break}}},ge=()=>{d(),_(),U();const{searchValue:t}=a;n.CommonBase.isNonEmptyString(t)&&k(t)};e.onMounted(()=>{ge()}),e.onBeforeUnmount(()=>{J=!0,ee.CommonElement.offListener(window,"keydown",le,!0),ee.CommonElement.offListener(window,"keyup",pe,!0),A=!1,B.value&&B.value.removeEventListener("scroll",b)}),e.watch(()=>a.originalData,t=>{a.isCascade?(R=g(t),v=K(R)):v=g(t),de(),_(),U()}),e.watch(()=>a.searchValue,t=>{k(t)});const ye=t=>{k(t)},Ce=t=>{if(!t||!a.isMultiple)return;const s=a.selectId.map(f=>f.toString()),o=new Set;v.forEach(f=>{f.isDisabled&&!n.CommonBase.isEmpty(f.id)&&o.add(f.id.toString())});const c=[],p=[],y=[];Q.value.forEach(f=>{t.value?n.CommonBase.isExistValue(s,f)||p.push(f):n.CommonBase.isExistValue(s,f)&&!o.has(f)&&y.push(f),c.push(f)});const h=n.CommonBase.getArrClone(a.selectId);y.length>0&&y.forEach(f=>{const S=h.findIndex(m=>m.toString()===f);S>-1&&h.splice(S,1)}),p.length>0&&h.push(...p),ae(h,{id:c,isSelect:t.value})},ve=t=>{if(!t.isDisabled&&!n.CommonBase.isEmpty(t.id)){const s=t.id.toString(),o=W(s);ae(o,{id:s,isSelect:a.selectId.map(c=>c.toString()).indexOf(s)===-1})}},Se=t=>{!t||n.CommonBase.isEmpty(t.id)||(D.value=t.id.toString())},Be=t=>{!t||n.CommonBase.isEmpty(t.id)||D.value===t.id.toString()&&(D.value="")};return se({initOpenShow:t=>{t?A||(ee.CommonElement.onListener(window,"keydown",le,!0),ee.CommonElement.onListener(window,"keyup",pe,!0),A=!0):A&&(ee.CommonElement.offListener(window,"keydown",le,!0),ee.CommonElement.offListener(window,"keyup",pe,!0),A=!1)},getHoverKeydown:()=>D.value}),(t,s)=>(e.openBlock(),e.createElementBlock("div",Me,[P.isRunLoading?(e.openBlock(),e.createElementBlock("div",je,[e.createVNode(Le._sfc_main,{isLoadIng:P.isRunLoading},null,8,["isLoadIng"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.isSearch?(e.openBlock(),e.createElementBlock("div",He,[e.createVNode(_e._sfc_main,{ref_key:"refElSearch",ref:N,placeholder:i.searchPlaceholder,onOnChange:ye},null,8,["placeholder"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),i.isMultiple&&i.isCheckBoxAll?(e.openBlock(),e.createElementBlock("div",Fe,[e.createVNode(fe._sfc_main,{forId:`${G}-cb-all`,label:e.unref(q).checkboxAll,value:ne.value,onOnChange:Ce},null,8,["forId","label","value"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64)),e.createElementVNode("div",{class:"dropdownLayer-list-body",ref_key:"refElList",ref:B},[M.value.length>0?(e.openBlock(),e.createElementBlock("ul",{key:0,role:"listbox","aria-activedescendant":D.value?`${G}-opt-${D.value}`:void 0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(o,c)=>(e.openBlock(),e.createElementBlock("li",{key:`${I}-${o.id}-${c}`,id:`${G}-opt-${o.id}`,role:"option","aria-selected":oe.value.has(o.id.toString()),"aria-disabled":o.isDisabled,class:e.normalizeClass({"option-selected":oe.value.has(o.id.toString()),"option-disabled":o.isDisabled,"option-hoverKeydown":D.value===o.id.toString(),"inputTag-dropdown-item-child":o._level>=1}),style:e.normalizeStyle({paddingLeft:o._level?o._level*20+"px":void 0}),onClick:p=>ve(o),onMouseenter:p=>Se(o),onMouseleave:p=>Be(o)},[e.createElementVNode("div",null,[i.isMultiple?(e.openBlock(),e.createElementBlock("div",Re,[e.createVNode(fe._sfc_main,{name:`${G}-cb`,forId:`${G}-cb-${o.id}`,value:oe.value.has(o.id.toString()),disabled:o.isDisabled},null,8,["name","forId","value","disabled"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("div",{class:"dropdownLayer-list-title",innerHTML:V(o)},null,8,$e)])],46,Pe))),128))],8,Ne)):(e.openBlock(),e.createElementBlock("ul",Ae,[i.isShowEmptyLabel?(e.openBlock(),e.createElementBlock("li",Je,e.toDisplayString(e.unref(q).noResultsText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))]))],512)],64))]))}}),Qe=["id"],Xe=e.defineComponent({name:"ClInputTag",__name:"Index",props:{id:String,value:String,className:String,placeholder:String,disabled:Boolean,isClean:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},isCopy:Boolean,isCopyMultipleWrap:{type:Boolean,default:!0},copyJoinKey:{type:String,default:","},minHeight:{type:String,default:"70px"},joinKey:{type:String,default:","},isAutofill:Boolean,list:{type:Array,default:()=>[]},searchKey:{type:Array,default:()=>["name"]},searchKeyType:{type:String,default:"||",validator:i=>["||","&&"].indexOf(i)>-1},showDropDownTextFormat:String,showDropDownTextFormatSub:String,isCascade:Boolean,parentSelectable:Boolean,parentKey:{type:String,default:"parentId"},topParentValue:{type:String,default:"0"},isFocusShowDrop:Boolean,textMaxHeight:String,tagsMaxHeight:String,isShowNum:Boolean,isShowLoading:Boolean,serverCallback:Function,isPlaintext:{type:Boolean,default:!1},appendContainer:{type:String,default:""}},emits:["onInit","update:value","update:modelValue","onChange","onError"],setup(i,{expose:se,emit:ie}){const a=i,H=ie,q=a.id,O=e.useTemplateRef("refElDropdownLayer"),u=e.useTemplateRef("refElInput"),N=e.useTemplateRef("refElList"),B=e.reactive({keyIndex:`inputTag-${n.CommonBase.getRandom(8)}`,searchValue:"",dropdownSelectId:[],isUseData:!1}),I={listNameJson:{},listIdJson:{}},w=e.computed(()=>{let r={"panel-input-tag":!0,"inputTag-disabled":a.disabled||a.isPlaintext,"cl-plaintext-static":a.isPlaintext,"cl-plaintext-inputtag":a.isPlaintext};return r=n.CommonBase.getJsonMerge(r,ee.CommonElement.getClassNameJson(a.className)),n.CommonBase.getStringByJson(r," ")}),L=e.computed(()=>{let r="inputTag-dropdown ";return B.isUseData||(r+=" inputTag-dropdown-nodata "),r}),F=(r,g="")=>{H("update:value",r),H("update:modelValue",r),H("onChange",r,g)},te=()=>{e.nextTick(()=>{H("onInit")})},A=r=>{const k=n.CommonBase.isEmpty(r)?[]:r.filter(E=>{if(!E)return!1;const _=n.CommonBase.isString(E.id)&&!n.CommonBase.isEmpty(E.id)||n.CommonBase.isNumber(E.id)&&n.CommonBase.isFinite(E.id),K=n.CommonBase.isNonEmptyString(E.name)||n.CommonBase.isNumber(E.name)&&!n.CommonBase.isEmpty(E.name);return _&&K});I.listNameJson=n.CommonBase.getJsonByList(k,"name"),I.listIdJson=n.CommonBase.getJsonByList(k,"id")},J=r=>{if(O.value){const g=O.value.checkIsShowOpen();if(r){if(!g){const k=[],E=u.value?u.value.getValue():"",_=n.CommonBase.isEmpty(E)?[]:n.CommonBase.split(E,a.joinKey||",");_.length>0&&_.forEach(K=>{if(n.CommonBase.isExistJsonKey(I.listNameJson,K)){const j=I.listNameJson[K];j&&!n.CommonBase.isEmpty(j.id)&&k.push(j.id.toString())}}),B.dropdownSelectId=k,B.isUseData=!n.CommonBase.isEmpty(a.list)||!!a.serverCallback,O.value.setOpen(!0),e.nextTick(()=>{O.value&&O.value.initCompleteOpen()})}}else B.isUseData=!0,g&&O.value.setOpen(!1)}},C=()=>{n.CommonBase.isEmpty(a.list)||A(a.list)};e.onMounted(()=>{e.nextTick(()=>{C()})}),e.watch(()=>a.list,r=>{A(r),B.isUseData=!n.CommonBase.isEmpty(r)||!!a.serverCallback});const P=()=>{te()},G=r=>{r&&a.disabled||e.nextTick(()=>{N.value&&N.value.initOpenShow(r)})},D=r=>{const g=r.toLowerCase(),k=a.searchKey;let E=!1;return a.list.forEach(_=>{if(E)return;let K=0;for(let j=0;j<k.length;j++){const Y=_[k[j]];n.CommonBase.isNonEmptyString(Y)&&Y.toLowerCase().indexOf(g)>-1&&K++}K>0&&(a.searchKeyType==="||"||a.searchKeyType==="&&"&&K===k.length)&&(E=!0)}),E},M=r=>{B.searchValue=r;let g=!0;if(n.CommonBase.isNonEmptyString(r)&&(r.indexOf(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),r=require("./base-DbuX_Y3x.js"),m=require("./Index.vue_vue_type_script_setup_true_lang-Bbk1BxEq.js"),_=require("./Index.vue_vue_type_script_setup_true_lang-BKrRiRoF.js"),p=require("./language-CBZjQ9dC.js"),g=["aria-label"],f={class:"loadScreen-main"},v={key:0,class:"loadScreen-text"},y=e.defineComponent({name:"ClLoadScreen",__name:"Index",props:{id:String,className:String,teleportTarget:{type:String,default:"body"}},setup(l,{expose:c}){const{optA11yText:u}=p.useA11yLanguage(),i=l.id||`loadscreen-${r.CommonBase.getRandom(5)}`,n=e.ref(!1),o=e.reactive({id:i,text:""});let t=null;const d=a=>{t&&(clearTimeout(t),t=null),t=setTimeout(()=>{n.value=!1,t=null},a)};return e.onBeforeUnmount(()=>{t&&(clearTimeout(t),t=null),n.value=!1}),c({show:(a,s)=>{t&&(clearTimeout(t),t=null),o.id=r.CommonBase.isNonEmptyString(s?.id)?s.id:i,o.text=r.CommonBase.isNonEmptyString(a)?a:"",n.value=!0},hide:(a=0)=>{a>0?d(a):(t&&(clearTimeout(t),t=null),n.value=!1)}}),(a,s)=>(e.openBlock(),e.createBlock(_._sfc_main,{id:o.id,show:n.value,teleportTarget:l.teleportTarget,zIndex:1000002,duration:0,isLockScroll:!1,background:"var(--cl-mask, rgba(0, 0, 0, 0.4))",className:l.className},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"loadScreen-container",role:"alert","aria-label":e.unref(u).loading||"加载中"},[e.createElementVNode("div",f,[o.text.length>0?(e.openBlock(),e.createElementBlock("span",v,e.toDisplayString(o.text),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createVNode(m._sfc_main,{color:"white",size:"large"})])],8,g)]),_:1},8,["id","show","teleportTarget","className"]))}});exports._sfc_main=y;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as R, useTemplateRef as A, reactive as K, ref as U, computed as c, onMounted as $, onBeforeUnmount as q, watch as z, openBlock as m, createElementBlock as g, normalizeStyle as J, normalizeClass as G, unref as L, Fragment as y, createTextVNode as j, toDisplayString as O, withDirectives as Q, createElementVNode as W, vModelText as X, createBlock as Y, withModifiers as Z, nextTick as ee } from "vue";
|
|
2
2
|
import { C as l } from "./base-fr2I80sU.js";
|
|
3
3
|
import { C as te } from "./index-B477PjJ3.js";
|
|
4
|
-
import { _ as ae } from "./Index.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as ae } from "./Index.vue_vue_type_script_setup_true_lang-BmRO42R2.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
const le = ["id"], ne = ["name", "placeholder", "disabled", "aria-label"], d = "100px", de = /* @__PURE__ */ R({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),t=require("./base-DbuX_Y3x.js"),pe=require("./index-rFJmbgyH.js"),ve=require("./log-C2ZbqiAV.js"),Ce=require("./Index.vue_vue_type_script_setup_true_lang-WePMnXeI.js"),D=require("./Index.vue_vue_type_script_setup_true_lang-B4dpfPSy.js"),Be=require("./language-Q4AGYtUe.js"),be=require("./Index.vue_vue_type_script_setup_true_lang-CDslbo4h.js");;/* empty css */const O={format:{img:["jpg","jpe","jpeg","png","gif","bmp","ico"],video:["mp4","rmvb","3gp","avi","asf","asf","dv","mov","mpg4","mpeg","mpg","wm","wmx","flv","mkv","mp4a","rm","wmv","swf","swfl"],audio:["mp3","ogg","wav","wma","mid","ra","ram"],zip:["rar","zip"],excel:["xls","xlsx","csv"],pdf:["pdf"],txt:["txt"],doc:["doc","docx"]},icon:{img:"image",video:"video",audio:"music",txt:"text",zip:"zip",excel:"excel",pdf:"pdf",doc:"word",default:"file"},suffix:{jpg:["jpg","jpe","jpeg"],jpe:["jpg","jpe","jpeg"],jpeg:["jpg","jpe","jpeg"],png:["png"],gif:["gif"],bmp:["bmp"],ico:["ico"],mp4:["mp4"],rmvb:["rmvb"],"3gp":["3gp"],avi:["avi"],asf:["asf"],dv:["dv"],mov:["mov"],mpg4:["mpg4"],mpeg:["mpeg"],mpg:["mpg"],wm:["wm"],wmx:["wmx"],flv:["flv"],mkv:["mkv"],mp4a:["mp4a"],rm:["rm"],wmv:["wmv"],swf:["swf"],swfl:["swfl"],mp3:["mp3"],ogg:["ogg"],wav:["wav"],wma:["wma"],mid:["mid"],ra:["ra"],ram:["ram"],rar:["rar"],zip:["zip"],txt:["txt"],xls:["xls","xlsx","csv"],xlsx:["xls","xlsx","csv"],csv:["xls","xlsx","csv"],pdf:["pdf"],doc:["doc","docx"]},mime:{jpg:["image/jpg","image/jpeg","image/pjpeg"],jpe:["image/jpg","image/jpeg","image/pjpeg"],jpeg:["image/jpg","image/jpeg","image/pjpeg"],png:["image/png","image/x-png"],gif:["image/gif"],bmp:["image/bmp"],ico:["ico"],mp4:["video/mp4"],rmvb:["audio/x-pn-realaudio"],"3gp":["video/3gpp"],avi:["video/x-msvideo"],asf:["video/x-ms-asf"],dv:["video/x-dv"],mov:["video/quicktime"],mpg4:["video/mp4"],mpeg:["video/mpeg"],mpg:["video/mpeg"],wm:["video/x-ms-wmv"],wmx:["video/x-ms-wmx"],flv:["video/x-flv"],mkv:["video/x-matroska"],mp4a:["audio/mp4"],rm:["audio/x-pn-realaudio"],wmv:["audio/x-ms-wmv"],swf:["application/x-shockwave-flash"],swfl:["application/x-shockwave-flash"],mp3:["audio/mpeg"],ogg:["audio/ogg"],wav:["audio/wav"],wma:["audio/x-ms-wma"],mid:["audio/midi"],ra:["audio/x-pn-realaudio"],ram:["audio/x-pn-realaudio"],rar:["application/x-rar-compressed"],zip:["application/zip","application/x-zip-compressed"],txt:["text/plain"],xls:["application/vnd.ms-excel","application/wps-office.xls"],xlsx:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/wps-office.xlsx"],csv:["text/csv"],pdf:["application/pdf"],doc:["application/msword"],docx:["application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},getFormatGroup:i=>{let d=[];return t.CommonBase.isNonEmptyString(i)&&(i.split(",").forEach(o=>{for(const[k,_]of Object.entries(O.format))t.CommonBase.isExistValue(_,o.toLocaleLowerCase())&&d.push(k)}),d=t.CommonBase.getArrUnique(d)),d},getIcon:i=>{let d="";return t.CommonBase.isEmpty(i)?d=O.icon.default:d=t.CommonBase.isExistJsonKey(O.icon,i)?O.icon[i]:O.icon.default,d},getSuffix:i=>{let d=[];return t.CommonBase.isEmpty(i)||(i.forEach(g=>{const o=O.suffix[g.toLocaleLowerCase()];t.CommonBase.isUndefined(o)||(d=d.concat(o))}),t.CommonBase.isEmpty(d)&&(d=i)),d=t.CommonBase.getArrUnique(d),d},getRegexBySuffix:i=>{if(t.CommonBase.isEmpty(i))return null;const d=`\\.(?:${i.join("|")})$`;return new RegExp(d,"i")},getMime:i=>{let d=[];return t.CommonBase.isEmpty(i)||i.forEach(g=>{const o=O.mime[g];t.CommonBase.isUndefined(o)||(d=d.concat(o))}),d=t.CommonBase.getArrUnique(d),d},getRegexByMime:i=>{if(t.CommonBase.isEmpty(i))return null;const d=`^(?:${i.join("|").replace(/\//g,"\\/")})$`;return new RegExp(d,"i")},getImageThumbnail:(i,d,g)=>{let o=null;try{const k=document.createElement("canvas");k.width=d,k.height=g,k.getContext("2d").drawImage(i,0,0,i.width,i.height,0,0,d,g),o=k.toDataURL("image/gif")}catch{o=null}return o}},Se=(i,d)=>{let g=i;const o=e.reactive({mime:[],suffix:[],isCheckImgWH:!1});let k=null;const _=m=>{g=t.CommonBase.getJsonMerge(g,m),j()},M=m=>{const p=g.checkMsg;return t.CommonBase.isString(p)&&!t.CommonBase.isEmpty(p)?p:t.CommonBase.isObject(p)&&!t.CommonBase.isEmpty(p[m])?p[m]:d.value[m]},j=()=>{const m=t.CommonBase.isNonEmptyString(g.checkFormat)?O.getSuffix(g.checkFormat.split(",")):[],p=O.getMime(m),B=!t.CommonBase.isEmpty(g.checkWidth)&&!t.CommonBase.isEmpty(g.checkHeight);o.mime=p,o.suffix=m,o.isCheckImgWH=B},z=m=>{const p=O.getIcon(m);return{type:m,icon:p,isImage:m==="img",isVideo:m==="video",isAudio:m==="audio",isTxt:m==="txt",isZip:m==="zip"}},R=(m,p)=>{if(t.CommonBase.isUndefined(k)){k={};for(const[s,a]of Object.entries(O.format)){const S=O.getSuffix(a),h=O.getMime(S),x=O.getRegexBySuffix(S),F=O.getRegexByMime(h);k[s]={suffix:S,mime:h,regSuffix:x,regMime:F}}}let B="";return Object.keys(k).forEach(s=>{if(B.length===0){const a=k[s];(a.regSuffix&&a.regSuffix.test(m)||p&&a.regMime&&a.regMime.test(p))&&(B=s)}}),z(B)},G=m=>{const p=O.getFormatGroup(t.CommonBase.isEmpty(m)?g.checkFormat:m),B=p.length===1?p[0]:"";return z(B)},q=m=>{if(!t.CommonBase.isString(m))return R("");if(m.startsWith("data:")||m.startsWith("blob:")){const B=m.match(/^[a-z]+:([a-zA-Z0-9.+-]+\/[a-zA-Z0-9.+-]+)/);return R("",B?B[1]:"")}const p=m.substring(m.lastIndexOf("/")+1).split("?")[0].split("#")[0];return R(p)},A=(m,p,B,s,a)=>{const S=t.CommonBase.isFinite(B)&&B>0?B:0,h=t.CommonBase.isFinite(s)&&s>0?s:0;let x=a;(x==="height"||x==="contain")&&h===0&&(x="width");let F=1;switch(x){case"height":F=h>0?h/p:1;break;case"contain":F=Math.min(S>0?S/m:1,h>0?h/p:1);break;case"width":default:F=S>0?S/m:1;break}return F>1&&(F=1),{tw:Math.round(m*F),th:Math.round(p*F)}},te=(m,p,B,s)=>new Promise((a,S)=>{const h=document.createElement("img");h.onload=x=>{const F=x.target.width,P=x.target.height,{tw:J,th:W}=A(F,P,p,B,s),N=x.target.src;a({src:N,w:F,h:P,tw:J,th:W,isImage:!0})},h.onerror=()=>{S(new Error("fail: temp create image"))},h.src=m}),oe=(m,p)=>{const B=t.CommonBase.isEmpty(g.checkWidth)?0:parseInt(g.checkWidth,10),s=t.CommonBase.isEmpty(g.checkHeight)?0:parseInt(g.checkHeight,10);if(!t.CommonBase.isFinite(B)||!t.CommonBase.isFinite(s)||B===0||s===0)return!0;let a=!0;switch(g.checkWHType){case"greater":a=m>=B&&p>=s;break;case"less":a=m<=B&&p<=s;break;case"equal":a=m===B&&p===s;break;default:a=!0;break}return a},ie=(m,p)=>new Promise((B,s)=>{if(m instanceof File){const a=new FileReader;a.onload=S=>{te(S.target.result,p.maxWidth,p.maxHeight,p.imgFit).then(h=>{(o.isCheckImgWH?oe(h.w,h.h):!0)?B(h):s(new Error(M("checkImageWHLabel")))}).catch(h=>{s(h)})},a.onerror=()=>{s(new Error("fail: new FileReader image onload()"))},a.readAsDataURL(m)}else s(new Error("fail: file is not a File instance"))}),Y=async(m,p)=>{let B=[];const s=[],a=[],S=O.getRegexBySuffix(o.suffix),h=O.getRegexByMime(o.mime),x=W=>{const N=t.CommonBase.isEmpty(W)?NaN:parseInt(W,10);return t.CommonBase.isFinite(N)?N*1024:null},F=x(g.checkMinSize),P=x(g.checkMaxSize),J=m.length;for(let W=0;W<J;W+=1){const N=[],L=m[W],r={suffix:!1,mime:!1,size:!1},w=L.name;S&&!S.test(w)&&(r.suffix=!0);const y=L.type;!t.CommonBase.isEmpty(y)&&h&&!h.test(y)&&(r.mime=!0),F&&L.size<F&&(r.size=!0),P&&L.size>P&&(r.size=!0),(r.suffix||r.mime)&&N.push(M("checkSuffixMimeLabel")),r.size&&N.push(M("checkSizeLabel"));const v=R(w,y);let I=null;v.isImage&&(I=await ie(L,p).catch(b=>{N.push(b.message)})),t.CommonBase.isUndefined(I)&&(I={}),I=t.CommonBase.getJsonMerge(I,v),I.fileName=w,I.file=L,N.length===0?(s.push(L),a.push(I)):J===1?B=N.map(b=>`${M("uploadFile")} ${b}`):B.push(`${w}:${N.join(",")}`)}return new Promise(W=>{setTimeout(()=>{W({errorMsg:B,passFiles:s,passFilesInfo:a,original:m})},200)})};return j(),{optBase:o,getTypeByFormat:G,getTypeByUrl:q,createTempImg:te,checkFile:Y,setBaseOptions:_}},we=()=>({setFileInfo:(d,g)=>{const o=g&&g.fileUrl?g.fileUrl:"";if(!t.CommonBase.isString(o))return{name:"",url:"",imgSrc:"",imgWidth:0,imgHeight:0};const k=t.CommonBase.isEmpty(o);let _="";k||o.startsWith("blob:")?_=d.fileName:_=o.substr(o.lastIndexOf("/")+1);let M="",j=0,z=0;return d.isImage&&(M=k?d.src:o,j=d.tw||0,z=d.th||0),{name:_,url:o,imgSrc:M,imgWidth:j,imgHeight:z}}}),ye=()=>{const i=(g,o)=>{window.open(g)};return{downloadHref:i,downloadBlob:g=>{if(!t.CommonBase.isEmpty(g)){const o=g.lastIndexOf("/"),k=g.substring(o+1),_=g.replace(/\\/g,"/"),M=new XMLHttpRequest;M.open("GET",_,!0),M.responseType="blob",M.onload=()=>{if(M.status===200){const j=window.URL||window.webkitURL||window,z=new Blob([M.response]),R=document.createElementNS("http://www.w3.org/1999/xhtml","a");R.href=j.createObjectURL(z),R.download=k,R.click(),setTimeout(()=>URL.revokeObjectURL(R.href),1e3)}else i(g)},M.onerror=()=>{i(g)},M.send()}}}},Ee=["name","accept"],xe=["name"],Fe={class:"fileUpload-label"},Ue={key:0,class:"fileUpload-img"},Me={class:"fileUpload-img-container"},Ie=["src","width","height"],Te={key:0,class:"file-complete-img-msg"},_e=["title"],Ne=["title"],He={key:1,class:"fileUpload-video"},Re=["src"],We=["title"],Oe={key:2,class:"fileUpload-file"},ze=["title"],Le={key:0,class:"fileUpload-load"},je=e.defineComponent({name:"ClFileUploadDefault",__name:"Default",props:{name:String,value:[String,Array,Object],className:String,disabled:{type:Boolean,default:!1},defaultHoverTitle:String,defaultIcon:String,checkFormat:String,checkMinSize:[String,Number],checkMaxSize:[String,Number],checkWidth:[String,Number],checkHeight:[String,Number],checkWHType:{type:String,default:"equal",validator:i=>["equal","greater","less"].includes(i)},imgFit:{type:String,default:"width",validator:i=>["width","height","contain"].includes(i)},isServerCallback:Boolean,isShowPreview:{type:Boolean,default:!0},isShowDownload:{type:Boolean,default:!0},isShowCompleteMsg:{type:Boolean,default:!0}},emits:["onChange","onError","onRemove","onPreview","onSaveFile"],setup(i,{expose:d,emit:g}){const o=i,k=g,{optPageLanguage:_,getPageLanguage:M}=Be.useLanguage();M("fileUpload");const j=e.inject("$FileuploadTop",null);j||ve.clLog.warn("FileUpload","Default 主题缺少 $FileuploadTop 注入,使用空校验配置");const{setFileInfo:z}=we(),R=()=>t.CommonBase.getJsonMerge(j?.getFileCheckInfo()??{},{checkFormat:o.checkFormat,checkWidth:o.checkWidth,checkHeight:o.checkHeight,checkWHType:o.checkWHType,checkMinSize:o.checkMinSize,checkMaxSize:o.checkMaxSize}),{optBase:G,getTypeByFormat:q,getTypeByUrl:A,createTempImg:te,checkFile:oe,setBaseOptions:ie}=Se(R(),_),{downloadBlob:Y,downloadHref:m}=ye(),p=e.useTemplateRef("refElTopParent"),B=()=>{const n=p.value;if(!n)return{maxWidth:0,maxHeight:0};const f=4,T=n.clientWidth>0?Math.max(n.clientWidth-f,0):0;let V=0;if(o.imgFit==="height"||o.imgFit==="contain"){const $=n.parentElement;$&&$.clientHeight>0&&(V=getComputedStyle($).height==="auto"?0:Math.max($.clientHeight-f,0))}return{maxWidth:T,maxHeight:V}},s=e.reactive({isImage:!1,isVideo:!1,icon:"",completeMsgTxt:"",isInitFileInput:!0,runOperateType:"init"}),a=e.reactive({name:"",url:"",imgSrc:"",imgWidth:0,imgHeight:0}),S={file:null};let h=0,x=null;const F=`fileUpload_${t.CommonBase.getRandom(8)}`,P=e.computed(()=>{let n=o.name;return t.CommonBase.isEmpty(n)&&(n=`fileUpload_${t.CommonBase.getRandom(8)}`),n}),J=e.computed(()=>{let n={"fileUpload-default":!0};return n=t.CommonBase.getJsonMerge(n,pe.CommonElement.getClassNameJson(o.className)),n}),W=e.computed(()=>({"fileUpload-wait":!0,"fileUpload-disabled":o.disabled})),N=e.computed(()=>({"fileUpload-complete":!0,"fileUpload-disabled":o.disabled})),L=n=>{k("onChange",n)},r=n=>{k("onError",n)},w=()=>{k("onRemove")},y=(n,f)=>{k("onPreview",n,f)},v=(n,f)=>{k("onSaveFile",n,f)},I=n=>{s.isImage=n.isImage,s.isVideo=n.isVideo,s.icon=n.icon},b=()=>{const n=q();t.CommonBase.isNonEmptyString(o.defaultIcon)&&(n.icon=o.defaultIcon),I(n)},E=n=>{n!=="load"&&(s.isInitFileInput=!0);let f="";switch(n){case"remove":case"clean":{f="init",b();break}case"fail":{let T=!0;s.isImage?(!t.CommonBase.isEmpty(a.url)||!t.CommonBase.isEmpty(a.imgSrc))&&(T=!1):t.CommonBase.isEmpty(a.url)||(T=!1),f=T?"init":"complete";break}default:f=n}s.runOperateType=f},X=n=>{const f=a;for(const[T,V]of Object.entries(n))t.CommonBase.isUndefined(f[T])||(f[T]=V);S.file=n.file??S.file},K=(n,f)=>{ae(),I(n);const T=z(n,f);X(T),E("complete")},ne=()=>{let n=null;return t.CommonBase.isString(a.url)&&a.url.startsWith("blob:")?n=S.file:t.CommonBase.isEmpty(a.url)?s.isImage&&!t.CommonBase.isEmpty(a.imgSrc)?n=a.imgSrc:n=S.file:n=a.url,t.CommonBase.isUndefined(n)&&(n=""),n},me=n=>{if(n.length>0&&s.runOperateType!=="load"){s.isInitFileInput=!1,E("load"),h+=1;const f={...B(),imgFit:o.imgFit};oe(n,f).then(T=>{if(s.runOperateType==="load")if(T.passFiles.length>0){const V=T.passFiles[0],$=T.passFilesInfo[0];if($.isImage)o.isServerCallback?(v(V,$),ue()):(K($,{}),S.file=V,L($.src));else if(o.isServerCallback)v(V,$),ue();else{const re={};if($.isVideo){const de=URL.createObjectURL(V);re.fileUrl=de}K($,re),S.file=V,L(V)}}else E("fail"),T.errorMsg.length>0&&r(T.errorMsg)}).catch(()=>{s.runOperateType==="load"&&(E("fail"),r(["文件校验失败,请重试"]))})}},le=n=>{if(!t.CommonBase.isNonEmptyString(n)){(t.CommonBase.isString(n)||t.CommonBase.isUndefined(n))&&ge();return}const f=++h,T=A(n);if(s.isImage&&T.isImage){const{maxWidth:V,maxHeight:$}=B();te(n,V,$,o.imgFit).then(re=>{if(f!==h)return;const de=t.CommonBase.getJsonMerge(re,T);K(de,{fileUrl:n})}).catch(()=>{f===h&&(E("fail"),r(["图片加载失败,请检查图片地址"]))})}else K(T,{fileUrl:n})},ae=()=>{t.CommonBase.isString(a.url)&&a.url.startsWith("blob:")&&URL.revokeObjectURL(a.url)},ee=()=>{x&&(clearTimeout(x),x=null)},ue=()=>{ee(),x=setTimeout(()=>{s.runOperateType==="load"&&(E("fail"),r(["服务端保存超时,请重试"]))},6e4)},ge=()=>{h+=1,S.file=null,X({name:"",url:"",imgSrc:"",imgWidth:0,imgHeight:0}),E("init")},ce=()=>{if(t.CommonBase.isEmpty(o.value)){b();return}I(A(o.value))},fe=()=>{let n=o.defaultHoverTitle;s.isImage&&G.isCheckImgWH&&t.CommonBase.isEmpty(n)&&(n=`${o.checkWidth}x${o.checkHeight}`),s.completeMsgTxt=n},he=()=>{ce(),fe(),le(o.value)};e.onMounted(()=>{e.nextTick(()=>{he()})}),e.watch(()=>o.value,(n,f)=>{if(n!==f){const T=ne();n!==T&&(ee(),ce(),le(n))}}),e.watch([()=>o.checkFormat,()=>o.checkWidth,()=>o.checkHeight,()=>o.checkWHType,()=>o.checkMinSize,()=>o.checkMaxSize],()=>{if(ee(),ie(R()),ce(),fe(),s.runOperateType==="load")return;const n=ne();o.value===n&&le(o.value)});const ke=n=>{n.preventDefault(),n.stopPropagation(),!o.disabled&&n.dataTransfer&&me(n.dataTransfer.files)},l=n=>{o.disabled||me(n.currentTarget.files)},c=()=>{ee(),h+=1,ae(),S.file=null,X({name:"",url:"",imgSrc:"",imgWidth:0,imgHeight:0}),E("remove");const n=document.getElementById(F);n&&(n.value=""),w()},u=n=>{const f=t.CommonBase.isEmpty(a.url)?a.imgSrc:a.url;y(f,"image"),n.preventDefault(),n.stopPropagation()},U=n=>{t.CommonBase.isEmpty(a.url)||y(a.url,"video"),n.preventDefault(),n.stopPropagation()},C=n=>{t.CommonBase.isEmpty(a.url)?m(a.imgSrc,a.name):Y(a.url),n.preventDefault(),n.stopPropagation()},H=n=>{if(t.CommonBase.isString(a.url)&&a.url.startsWith("blob:")){const f=document.createElement("a");f.href=a.url,f.download=a.name,f.click()}else Y(a.url);n.preventDefault(),n.stopPropagation()};return d({saveServerCallback:n=>{if(ee(),s.runOperateType!=="load")return;if(!n||!n.res||!t.CommonBase.isBoolean(n.res.success)){E("fail"),r(["文件保存失败,请重试"]);return}if(!n.res.success){E("fail"),r(["文件保存失败,请重试"]);return}if(!n.req){E("fail"),r(["文件保存失败,请重试"]);return}let f="";if(t.CommonBase.isString(n.res.fileUrl)?f=n.res.fileUrl:t.CommonBase.isArray(n.res.fileUrl)&&n.res.fileUrl.length>0&&t.CommonBase.isString(n.res.fileUrl[0])&&(f=n.res.fileUrl[0]),t.CommonBase.isEmpty(f)){S.file=null,X({name:"",url:"",imgSrc:"",imgWidth:0,imgHeight:0}),E("init");return}K(n.req,{fileUrl:f}),L(f)},getValue:()=>ne(),cleanReduction:()=>{ee(),h+=1,ae(),S.file=null,X({name:"",url:"",imgSrc:"",imgWidth:0,imgHeight:0}),E("clean")}}),e.onBeforeUnmount(()=>{ee(),ae()}),(n,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(J.value),ref_key:"refElTopParent",ref:p},[e.createElementVNode("div",{class:"fileUpload-default-container",onDrop:ke,onDragover:f[0]||(f[0]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("label",{for:F},[s.isInitFileInput&&!i.disabled?(e.openBlock(),e.createElementBlock("input",{key:0,type:"file",id:F,name:P.value,onChange:l,accept:e.unref(G).mime.join(",")},null,40,Ee)):(e.openBlock(),e.createElementBlock("input",{key:1,id:F,name:P.value,style:{display:"none !important"}},null,8,xe)),s.runOperateType==="init"?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(W.value)},[e.createVNode(D._sfc_main,{name:s.icon,class:"fileUpload-icon"},null,8,["name"]),e.createElementVNode("span",Fe,[e.renderSlot(n.$slots,"label")])],2)):s.runOperateType==="complete"?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(N.value)},[s.isImage?(e.openBlock(),e.createElementBlock("span",Ue,[e.createElementVNode("span",Me,[e.createElementVNode("img",{src:a.imgSrc,width:a.imgWidth,height:a.imgHeight},null,8,Ie)]),i.isShowCompleteMsg?(e.openBlock(),e.createElementBlock("span",Te,e.toDisplayString(s.completeMsgTxt),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),i.isShowPreview&&!i.disabled?(e.openBlock(),e.createElementBlock("i",{key:2,class:"preview-icon",title:e.unref(_).common.preview,onClick:e.withModifiers(u,["stop"])},[e.createVNode(D._sfc_main,{name:"search-plus"})],8,_e)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64)),i.isShowDownload&&!i.disabled?(e.openBlock(),e.createElementBlock("i",{key:4,class:"download-icon",title:e.unref(_).common.download,onClick:e.withModifiers(C,["stop"])},[e.createVNode(D._sfc_main,{name:"download"})],8,Ne)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[],64))])):s.isVideo?(e.openBlock(),e.createElementBlock("span",He,[e.createElementVNode("video",{src:a.url},null,8,Re),i.isShowPreview&&!i.disabled?(e.openBlock(),e.createElementBlock("span",{key:0,class:"preview-icon",onClick:e.withModifiers(U,["stop"])},[e.createVNode(D._sfc_main,{name:"play"})])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),i.isShowDownload&&!i.disabled?(e.openBlock(),e.createElementBlock("i",{key:2,class:"download-icon",title:e.unref(_).common.download,onClick:e.withModifiers(H,["stop"])},[e.createVNode(D._sfc_main,{name:"download"})],8,We)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))])):(e.openBlock(),e.createElementBlock("span",Oe,[e.createVNode(D._sfc_main,{name:s.icon,class:"fileUpload-icon"},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(a.name),1)])),i.disabled?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[],64)):(e.openBlock(),e.createElementBlock("a",{key:3,class:"file-complete-remove",href:"javascript:",title:e.unref(_).common.delete,onClick:e.withModifiers(c,["stop"])},[e.createVNode(D._sfc_main,{name:"close"})],8,ze))],2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[],64))])],32),s.runOperateType==="load"?(e.openBlock(),e.createElementBlock("div",Le,[e.createVNode(Ce._sfc_main,{theme:"circleBubble",size:"large"})])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],2))}}),Pe=["id","name","multiple","accept"],$e=["id","name","disabled","accept"],Ve=["for"],De={key:0,class:"fileUpload-list"},qe={key:0,class:"fileUpload-item-icon fileUpload-item-img"},Ae=["src"],Je=["title","onClick"],Ge={key:1,class:"fileUpload-item-icon fileUpload-item-video"},Xe=["src"],Ke=["onClick"],Ze={class:"fileUpload-item-name"},Qe={class:"fileUpload-item-operate"},Ye=["title","onClick"],et=["title","onClick"],tt=e.defineComponent({name:"ClFileUploadButton",__name:"Button",props:{name:String,value:[String,Array,Object],className:String,disabled:{type:Boolean,default:!1},isMultiple:Boolean,buttonClass:String,buttonLabel:String,buttonIcon:{type:String,default:""},buttonColor:{type:String,default:"default"},checkFormat:String,checkMinSize:[String,Number],checkMaxSize:[String,Number],checkWidth:[String,Number],checkHeight:[String,Number],checkWHType:{type:String,default:"equal",validator:i=>["equal","greater","less"].includes(i)},isServerCallback:Boolean,isShowUploadResult:{type:Boolean,default:!0},isShowUploadIng:{type:Boolean,default:!0},isShowPreview:{type:Boolean,default:!0},isShowDownload:{type:Boolean,default:!0}},emits:["onChange","onError","onRemove","onPreview","onSaveFile"],setup(i,{expose:d,emit:g}){const o=i,k=g,_=`fileupload-${t.CommonBase.getRandom(5)}`,{optPageLanguage:M,getPageLanguage:j}=Be.useLanguage();j("fileUpload");const z=e.inject("$FileuploadTop",null);z||ve.clLog.warn("FileUpload","Button 主题缺少 $FileuploadTop 注入,使用空校验配置");const R=()=>t.CommonBase.getJsonMerge(z?.getFileCheckInfo()??{},{checkFormat:o.checkFormat,checkWidth:o.checkWidth,checkHeight:o.checkHeight,checkWHType:o.checkWHType,checkMinSize:o.checkMinSize,checkMaxSize:o.checkMaxSize}),{setFileInfo:G}=we(),{optBase:q,getTypeByUrl:A,checkFile:te,setBaseOptions:oe}=Se(R(),M),{downloadBlob:ie,downloadHref:Y}=ye(),m=e.useTemplateRef("refElButton"),p=e.useTemplateRef("refElLabel"),B=t.CommonBase.getRandom(8),s=e.reactive({elFileId:`btnFile${B}`,isInitFileInput:!0}),a=e.ref([]),S=e.ref([]);let h=null,x=null,F=null;const P=e.computed(()=>{let l=o.name;return t.CommonBase.isEmpty(l)&&(l=`fileUpload_${t.CommonBase.getRandom(8)}`),l}),J=e.computed(()=>{let l={"fileUpload-button":!0};return l=t.CommonBase.getJsonMerge(l,pe.CommonElement.getClassNameJson(o.className)),l}),W=(l,c)=>{k("onChange",l,c)},N=l=>{k("onError",l)},L=()=>{k("onRemove")},r=(l,c,u)=>{k("onPreview",l,c,u)},w=(l,c)=>{k("onSaveFile",l,c)},y=()=>{v(),h=setTimeout(()=>{h=null,s.isInitFileInput||(b("fail"),N(["服务端保存超时,请重试"]))},6e4)},v=()=>{h&&(clearTimeout(h),h=null)},I=()=>{a.value.forEach(l=>{t.CommonBase.isString(l.url)&&l.url.startsWith("blob:")&&URL.revokeObjectURL(l.url)})},b=l=>{switch(l){case"load":o.isShowUploadIng&&m.value?.loadStart();break;case"fail":case"complete":o.isShowUploadIng&&m.value?.loadStop();break}s.isInitFileInput=l!=="load"},E=(l,c)=>{o.isMultiple||(I(),a.value=[]);const u=[],U=[];a.value.forEach(C=>{u.push(C),U.push(C.rId)});for(let C=0;C<l.length;C++){let H=c.length>C?{fileUrl:c[C]}:{};t.CommonBase.isEmpty(H.fileUrl)&&l[C].isVideo&&l[C].file&&(H={fileUrl:URL.createObjectURL(l[C].file)});let Z=G(l[C],H);Z.rId=t.CommonBase.getRandom(9),Z=t.CommonBase.getJsonMerge(l[C],Z),u.push(Z),U.push(Z.rId)}a.value=u,b("complete"),e.nextTick(()=>{S.value=U})},X=()=>{const l=[];return a.value.forEach(c=>{let u=null;t.CommonBase.isString(c.url)&&c.url.startsWith("blob:")?u=c.file:t.CommonBase.isEmpty(c.url)?c.isImage&&!t.CommonBase.isEmpty(c.imgSrc)?u=c.imgSrc:u=c.file:u=c.url,t.CommonBase.isUndefined(u)||l.push(u)}),l.length===0?"":o.isMultiple?l:l[0]},K=l=>{if(t.CommonBase.isArray(l)){I(),a.value=[];const U=[],C=[];l.forEach(H=>{if(t.CommonBase.isNonEmptyString(H)){const Z=A(H);U.push(Z),C.push(H)}}),E(U,C);return}if(!t.CommonBase.isNonEmptyString(l)){t.CommonBase.isString(l)&&ne();return}I(),a.value=[];const c=[],u=[];l.split(",").filter(U=>t.CommonBase.isNonEmptyString(U)).forEach(U=>{const C=A(U);c.push(C),u.push(U)}),E(c,u)},ne=()=>{I(),b("init"),a.value=[]},me=()=>{K(o.value)};e.onMounted(()=>{e.nextTick(()=>{me()})}),e.onBeforeUnmount(()=>{v(),x&&(clearTimeout(x),x=null),I()}),e.watch(()=>o.value,(l,c)=>{if(l!==c){const u=X();l!==u&&(v(),K(l))}}),e.watch([()=>o.checkFormat,()=>o.checkWidth,()=>o.checkHeight,()=>o.checkWHType,()=>o.checkMinSize,()=>o.checkMaxSize],()=>{s.isInitFileInput&&v(),oe(R())});const le=l=>{o.disabled||s.isInitFileInput&&l.currentTarget.files.length>0&&(b("load"),te(l.currentTarget.files,{}).then(c=>{if(!s.isInitFileInput){if(c.passFiles.length>0)if(o.isServerCallback){const u=o.isMultiple?c.passFiles:c.passFiles[0],U=o.isMultiple?c.passFilesInfo:c.passFilesInfo[0];w(u,U),y()}else o.isMultiple?(E(c.passFilesInfo,[]),W(c.passFiles,c.passFilesInfo)):(E(c.passFilesInfo,[]),W(c.passFiles[0],c.passFilesInfo[0]));else c.errorMsg.length===0&&(b("fail"),N(["文件校验失败,请重试"]));c.errorMsg.length>0&&(N(c.errorMsg),c.passFiles.length===0&&b("fail"))}}).catch(()=>{s.isInitFileInput||(b("fail"),N(["文件校验失败,请重试"]))}))},ae=(l,c)=>{const u=t.CommonBase.isEmpty(l.url)?l.src:l.url;r(u,"image",c)},ee=(l,c)=>{t.CommonBase.isEmpty(l.url)||r(l.url,"video",c)},ue=l=>{if(F===l)return;F=l,v(),s.isInitFileInput||b("complete");const c=a.value.find(H=>H.rId===l);c&&t.CommonBase.isString(c.url)&&c.url.startsWith("blob:")&&URL.revokeObjectURL(c.url);const u=[],U=[];a.value.forEach(H=>{H.rId!==l&&(u.push(H),U.push(H.rId))}),S.value=U;const C=document.getElementById(s.elFileId);C&&(C.value=""),e.nextTick(()=>{u.length>0?(a.value=u,F=null,L()):x=setTimeout(()=>{x=null,a.value=a.value.filter(H=>H.rId!==l),F=null,L()},500)})},ge=l=>{if(l.isImage&&t.CommonBase.isEmpty(l.url))Y(l.imgSrc,l.name);else if(t.CommonBase.isString(l.url)&&l.url.startsWith("blob:")){const c=document.createElement("a");c.href=l.url,c.download=l.name,c.click()}else if(t.CommonBase.isEmpty(l.url)&&l.file){const c=URL.createObjectURL(l.file),u=document.createElement("a");u.href=c,u.download=l.name,u.click(),setTimeout(()=>{URL.revokeObjectURL(c)},1e3)}else ie(l.url)},ce=()=>{p.value?.click()};return d({saveServerCallback:l=>{if(v(),!s.isInitFileInput){if(t.CommonBase.isUndefined(l)||t.CommonBase.isUndefined(l.res)||!t.CommonBase.isBoolean(l.res.success)||t.CommonBase.isUndefined(l.req)){b("fail"),N(["文件保存失败,请重试"]);return}if(l.res.success){let c=[];const u=[];if(t.CommonBase.isNonEmptyString(l.res.fileUrl)?(c.push(l.res.fileUrl),u.push(0)):t.CommonBase.isArray(l.res.fileUrl)&&l.res.fileUrl.forEach((se,Q)=>{t.CommonBase.isNonEmptyString(se)&&(c.push(se),u.push(Q))}),c.length===0){b("complete");return}const U=o.isMultiple?l.req:[l.req];let C=[],H=[];if(!o.isMultiple)C=c,H=U;else{const se=a.value.map(Q=>Q.url).filter(Q=>t.CommonBase.isNonEmptyString(Q));c.forEach((Q,n)=>{const f=u[n];se.indexOf(Q)>-1||t.CommonBase.isUndefined(U[f])||(se.push(Q),C.push(Q),H.push(U[f]))})}if(C.length===0){b("complete");return}E(H,C);const Z=o.isMultiple?C:C[0];W(Z)}else b("fail"),N(["文件保存失败,请重试"])}},getValue:()=>X(),cleanReduction:()=>{v(),ne()}}),(l,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass(J.value)},[s.isInitFileInput&&!i.disabled?(e.openBlock(),e.createElementBlock("input",{key:0,type:"file",id:s.elFileId,name:P.value,multiple:i.isMultiple,accept:e.unref(q).mime.join(","),onChange:le},null,40,Pe)):(e.openBlock(),e.createElementBlock("input",{key:1,id:s.elFileId,name:P.value,disabled:i.disabled,accept:e.unref(q).mime.join(","),style:{display:"none !important"},onChange:le},null,40,$e)),e.createElementVNode("label",{ref_key:"refElLabel",ref:p,for:s.elFileId},[e.createVNode(be._sfc_main,{ref_key:"refElButton",ref:m,className:i.buttonClass,isShowBackDrop:!0,disabled:i.disabled,label:i.buttonLabel||e.unref(M).common.upload,iconName:i.buttonIcon,color:i.buttonColor,onOnClick:ce},null,8,["className","disabled","label","iconName","color"])],8,Ve)],2),e.renderSlot(l.$slots,"label"),a.value.length>0&&i.isShowUploadResult?(e.openBlock(),e.createElementBlock("ul",De,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(u,U)=>(e.openBlock(),e.createBlock(e.Transition,{key:`${u.rId}-${U}`,name:"fileUploadButton","enter-active-class":"fileupload-anim-in","leave-active-class":"fileupload-anim-out"},{default:e.withCtx(()=>[S.value.indexOf(u.rId)>-1?(e.openBlock(),e.createElementBlock("li",{key:`${_}-${u.rId}-${U}`,class:"fileUpload-item"},[u.isImage?(e.openBlock(),e.createElementBlock("span",qe,[e.createElementVNode("img",{src:u.imgSrc},null,8,Ae),i.isShowPreview?(e.openBlock(),e.createElementBlock("i",{key:0,class:"preview-icon",title:e.unref(M).common.preview,onClick:e.withModifiers(C=>ae(u,U),["stop"])},[e.createVNode(D._sfc_main,{name:"search-plus"})],8,Je)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])):u.isVideo?(e.openBlock(),e.createElementBlock("span",Ge,[e.createElementVNode("video",{src:u.url},null,8,Xe),i.isShowPreview?(e.openBlock(),e.createElementBlock("span",{key:0,class:"preview-icon",onClick:e.withModifiers(C=>ee(u,U),["stop"])},[e.createVNode(D._sfc_main,{name:"play"})],8,Ke)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])):(e.openBlock(),e.createBlock(D._sfc_main,{key:2,name:u.icon,class:"fileUpload-item-icon"},null,8,["name"])),e.createElementVNode("span",Ze,e.toDisplayString(u.name),1),e.createElementVNode("span",Qe,[i.isShowDownload?(e.openBlock(),e.createElementBlock("i",{key:0,class:"download-icon",title:e.unref(M).common.download,onClick:e.withModifiers(C=>ge(u),["stop"])},[e.createVNode(D._sfc_main,{name:"download"})],8,Ye)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),i.disabled?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64)):(e.openBlock(),e.createElementBlock("a",{key:2,class:"file-complete-remove",href:"javascript:",title:e.unref(M).common.delete,onClick:e.withModifiers(C=>ue(u.rId),["stop"])},[e.createVNode(D._sfc_main,{name:"close"})],8,et))])])):e.createCommentVNode("",!0)]),_:2},1024))),128))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],64))}}),ot=["id"],it={key:0,class:"cl-plaintext-value"},nt=["src","alt"],lt=["src"],at={key:0},st=e.defineComponent({name:"ClFileUpload",__name:"Index",props:{id:String,name:String,value:[String,Array,Object],className:String,disabled:{type:Boolean,default:!1},theme:{type:String,default:"default",validator:i=>["default","button"].includes(i)},isMultiple:{type:Boolean,default:!1},defaultHoverTitle:String,defaultIcon:String,isShowCompleteMsg:{type:Boolean,default:!0},buttonClass:String,buttonLabel:String,buttonIcon:String,buttonColor:String,checkFormat:String,checkMinSize:[String,Number],checkMaxSize:[String,Number],checkWidth:[String,Number],checkHeight:[String,Number],checkWHType:{type:String,default:"equal"},imgFit:{type:String,default:"width"},isShowPreview:{type:Boolean,default:!0},isShowDownload:{type:Boolean,default:!0},isShowUploadResult:{type:Boolean,default:!0},isShowUploadIng:{type:Boolean,default:!0},serverFileCallback:Function,isPlaintext:{type:Boolean,default:!1},plaintextSeparator:{type:String,default:","}},emits:["update:value","update:modelValue","onChange","onRemove","onError"],setup(i,{expose:d,emit:g}){const o=i,k=g,_=e.inject("$ClGlobals",null),M=e.useAttrs(),j=o.id,z=e.useTemplateRef("refElFileDefault"),R=e.useTemplateRef("refElFileButton");let G=0,q=0;const A=e.computed(()=>t.CommonBase.isFunction(o.serverFileCallback)),te=["jpg","jpeg","png","gif","webp","bmp","svg"],oe=["mp4","webm","ogg","ogv","mov","avi","mkv"],ie=r=>{const w=r.split("?")[0].split("#")[0],y=w.split("/"),v=y.length>0?y[y.length-1]:w;return t.CommonBase.isEmpty(v)?r:decodeURIComponent(v)},Y=e.computed(()=>{const r=o.value,w=Array.isArray(r)?r:t.CommonBase.isEmpty(r)?[]:[r],y=[];return w.forEach(v=>{if(t.CommonBase.isString(v)){t.CommonBase.isNonEmptyString(v)&&y.push({url:v,name:ie(v),type:"file"});return}v&&t.CommonBase.isNonEmptyString(v.name)&&y.push({url:"",name:v.name,type:"file"})}),y.map(v=>{if(t.CommonBase.isEmpty(v.url))return v;const I=v.name.lastIndexOf("."),b=I>-1?v.name.slice(I+1).toLowerCase():"";let E="file";return te.indexOf(b)>-1?E="image":oe.indexOf(b)>-1&&(E="video"),{...v,type:E}})}),m=e.computed(()=>Y.value.filter(r=>r.type!=="file")),p=e.computed(()=>{const r=t.CommonBase.isString(o.plaintextSeparator)?o.plaintextSeparator:",";return Y.value.filter(w=>w.type==="file").map(w=>w.name).join(r)}),B=e.computed(()=>{let r={"panel-file-upload":!0};return r=t.CommonBase.getJsonMerge(r,pe.CommonElement.getClassNameJson(o.className)),r}),s=(r,w,y)=>{k("update:value",r),k("update:modelValue",r),k("onChange",w,y)},a=()=>{k("onRemove")},S=()=>{let r=null;switch(o.theme){case"default":r=z.value?.getValue();break;case"button":r=R.value?.getValue();break}return r},h=(r,w)=>{switch(r){case"default":z.value?.saveServerCallback(w);break;case"button":R.value?.saveServerCallback(w);break}},x=(r,w)=>{const y=S(),v=A.value?y:r;s(y,v,w)},F=r=>{t.CommonBase.isArray(r)&&k("onError",r)},P=()=>{q+=1,a();const r=S();s(r,r)},J=async(r,w,y)=>{_&&await _.preview.show({type:w,src:r,showIndex:y??0})},W=async(r,w)=>{const y=o.theme,v=++G,I=q;let b=!0;if(o.serverFileCallback)try{const X=!o.isMultiple&&t.CommonBase.isObject(w)&&t.CommonBase.isBoolean(w.isImage)?w.isImage:!1,K=pe.CommonElement.getElementData(M);b=await o.serverFileCallback(r,X,K)}catch{v===G&&q===I&&o.theme===y&&h(y,{req:w,res:{success:!1}});return}let E={};if(t.CommonBase.isBoolean(b)?E.success=b:t.CommonBase.isUndefined(b)?E.success=!0:t.CommonBase.isString(b)||t.CommonBase.isArray(b)?(E.success=!0,E.fileUrl=b):t.CommonBase.isObject(b)?E=b:E.success=!1,o.theme!==y){k("onError",["保存期间主题已切换,本次保存结果未写入"]);return}v!==G||q!==I||h(y,{req:w,res:E})};return e.provide("$FileuploadTop",e.reactive({getFileCheckInfo:()=>({checkFormat:o.checkFormat,checkWidth:o.checkWidth,checkHeight:o.checkHeight,checkWHType:o.checkWHType,checkMinSize:o.checkMinSize,checkMaxSize:o.checkMaxSize})})),d({getValue:()=>S(),cleanReduction:()=>{switch(o.theme){case"default":z.value?.cleanReduction();break;case"button":R.value?.cleanReduction();break}s("","")}}),(r,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(B.value),id:e.unref(j)},[i.isPlaintext?(e.openBlock(),e.createElementBlock("div",it,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(y,v)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`plain-${v}`},[y.type==="image"?(e.openBlock(),e.createElementBlock("img",{key:0,src:y.url,alt:y.name,class:"cl-plaintext-media"},null,8,nt)):(e.openBlock(),e.createElementBlock("video",{key:1,src:y.url,controls:"",class:"cl-plaintext-media"},null,8,lt))],64))),128)),p.value?(e.openBlock(),e.createElementBlock("span",at,e.toDisplayString(p.value),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),!i.isPlaintext&&i.theme==="button"?(e.openBlock(),e.createBlock(tt,{key:2,ref_key:"refElFileButton",ref:R,value:i.value,name:i.name,disabled:i.disabled,isMultiple:i.isMultiple,buttonClass:i.buttonClass,buttonLabel:i.buttonLabel,buttonIcon:i.buttonIcon,buttonColor:i.buttonColor,checkFormat:i.checkFormat,checkMinSize:i.checkMinSize,checkMaxSize:i.checkMaxSize,checkWidth:i.checkWidth,checkHeight:i.checkHeight,checkWHType:i.checkWHType,isServerCallback:A.value,isShowUploadResult:i.isShowUploadResult,isShowUploadIng:i.isShowUploadIng,isShowPreview:i.isShowPreview,isShowDownload:i.isShowDownload,onOnChange:x,onOnError:F,onOnRemove:P,onOnPreview:J,onOnSaveFile:W},{label:e.withCtx(()=>[e.renderSlot(r.$slots,"label")]),_:3},8,["value","name","disabled","isMultiple","buttonClass","buttonLabel","buttonIcon","buttonColor","checkFormat","checkMinSize","checkMaxSize","checkWidth","checkHeight","checkWHType","isServerCallback","isShowUploadResult","isShowUploadIng","isShowPreview","isShowDownload"])):!i.isPlaintext&&i.theme==="default"?(e.openBlock(),e.createBlock(je,{key:3,ref_key:"refElFileDefault",ref:z,value:i.value,name:i.name,disabled:i.disabled,defaultHoverTitle:i.defaultHoverTitle,defaultIcon:i.defaultIcon,isShowCompleteMsg:i.isShowCompleteMsg,checkFormat:i.checkFormat,checkMinSize:i.checkMinSize,checkMaxSize:i.checkMaxSize,checkWidth:i.checkWidth,checkHeight:i.checkHeight,checkWHType:i.checkWHType,imgFit:i.imgFit,isServerCallback:A.value,isShowPreview:i.isShowPreview,isShowDownload:i.isShowDownload,onOnChange:x,onOnError:F,onOnRemove:P,onOnPreview:J,onOnSaveFile:W},{label:e.withCtx(()=>[e.renderSlot(r.$slots,"label")]),_:3},8,["value","name","disabled","defaultHoverTitle","defaultIcon","isShowCompleteMsg","checkFormat","checkMinSize","checkMaxSize","checkWidth","checkHeight","checkWHType","imgFit","isServerCallback","isShowPreview","isShowDownload"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[],64))],10,ot))}});exports._sfc_main=st;
|
|
1
|
+
"use strict";const e=require("vue"),t=require("./base-DbuX_Y3x.js"),pe=require("./index-rFJmbgyH.js"),ve=require("./log-gqSePaMZ.js"),Ce=require("./Index.vue_vue_type_script_setup_true_lang-Bbk1BxEq.js"),D=require("./Index.vue_vue_type_script_setup_true_lang-DU1H_1lY.js"),Be=require("./language-CBZjQ9dC.js"),be=require("./Index.vue_vue_type_script_setup_true_lang-EG5hgxoY.js");;/* empty css */const O={format:{img:["jpg","jpe","jpeg","png","gif","bmp","ico"],video:["mp4","rmvb","3gp","avi","asf","asf","dv","mov","mpg4","mpeg","mpg","wm","wmx","flv","mkv","mp4a","rm","wmv","swf","swfl"],audio:["mp3","ogg","wav","wma","mid","ra","ram"],zip:["rar","zip"],excel:["xls","xlsx","csv"],pdf:["pdf"],txt:["txt"],doc:["doc","docx"]},icon:{img:"image",video:"video",audio:"music",txt:"text",zip:"zip",excel:"excel",pdf:"pdf",doc:"word",default:"file"},suffix:{jpg:["jpg","jpe","jpeg"],jpe:["jpg","jpe","jpeg"],jpeg:["jpg","jpe","jpeg"],png:["png"],gif:["gif"],bmp:["bmp"],ico:["ico"],mp4:["mp4"],rmvb:["rmvb"],"3gp":["3gp"],avi:["avi"],asf:["asf"],dv:["dv"],mov:["mov"],mpg4:["mpg4"],mpeg:["mpeg"],mpg:["mpg"],wm:["wm"],wmx:["wmx"],flv:["flv"],mkv:["mkv"],mp4a:["mp4a"],rm:["rm"],wmv:["wmv"],swf:["swf"],swfl:["swfl"],mp3:["mp3"],ogg:["ogg"],wav:["wav"],wma:["wma"],mid:["mid"],ra:["ra"],ram:["ram"],rar:["rar"],zip:["zip"],txt:["txt"],xls:["xls","xlsx","csv"],xlsx:["xls","xlsx","csv"],csv:["xls","xlsx","csv"],pdf:["pdf"],doc:["doc","docx"]},mime:{jpg:["image/jpg","image/jpeg","image/pjpeg"],jpe:["image/jpg","image/jpeg","image/pjpeg"],jpeg:["image/jpg","image/jpeg","image/pjpeg"],png:["image/png","image/x-png"],gif:["image/gif"],bmp:["image/bmp"],ico:["ico"],mp4:["video/mp4"],rmvb:["audio/x-pn-realaudio"],"3gp":["video/3gpp"],avi:["video/x-msvideo"],asf:["video/x-ms-asf"],dv:["video/x-dv"],mov:["video/quicktime"],mpg4:["video/mp4"],mpeg:["video/mpeg"],mpg:["video/mpeg"],wm:["video/x-ms-wmv"],wmx:["video/x-ms-wmx"],flv:["video/x-flv"],mkv:["video/x-matroska"],mp4a:["audio/mp4"],rm:["audio/x-pn-realaudio"],wmv:["audio/x-ms-wmv"],swf:["application/x-shockwave-flash"],swfl:["application/x-shockwave-flash"],mp3:["audio/mpeg"],ogg:["audio/ogg"],wav:["audio/wav"],wma:["audio/x-ms-wma"],mid:["audio/midi"],ra:["audio/x-pn-realaudio"],ram:["audio/x-pn-realaudio"],rar:["application/x-rar-compressed"],zip:["application/zip","application/x-zip-compressed"],txt:["text/plain"],xls:["application/vnd.ms-excel","application/wps-office.xls"],xlsx:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/wps-office.xlsx"],csv:["text/csv"],pdf:["application/pdf"],doc:["application/msword"],docx:["application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},getFormatGroup:i=>{let d=[];return t.CommonBase.isNonEmptyString(i)&&(i.split(",").forEach(o=>{for(const[v,H]of Object.entries(O.format))t.CommonBase.isExistValue(H,o.toLocaleLowerCase())&&d.push(v)}),d=t.CommonBase.getArrUnique(d)),d},getIcon:i=>{let d="";return t.CommonBase.isEmpty(i)?d=O.icon.default:d=t.CommonBase.isExistJsonKey(O.icon,i)?O.icon[i]:O.icon.default,d},getSuffix:i=>{let d=[];return t.CommonBase.isEmpty(i)||(i.forEach(g=>{const o=O.suffix[g.toLocaleLowerCase()];t.CommonBase.isUndefined(o)||(d=d.concat(o))}),t.CommonBase.isEmpty(d)&&(d=i)),d=t.CommonBase.getArrUnique(d),d},getRegexBySuffix:i=>{if(t.CommonBase.isEmpty(i))return null;const d=`\\.(?:${i.join("|")})$`;return new RegExp(d,"i")},getMime:i=>{let d=[];return t.CommonBase.isEmpty(i)||i.forEach(g=>{const o=O.mime[g];t.CommonBase.isUndefined(o)||(d=d.concat(o))}),d=t.CommonBase.getArrUnique(d),d},getRegexByMime:i=>{if(t.CommonBase.isEmpty(i))return null;const d=`^(?:${i.join("|").replace(/\//g,"\\/")})$`;return new RegExp(d,"i")},getImageThumbnail:(i,d,g)=>{let o=null;try{const v=document.createElement("canvas");v.width=d,v.height=g,v.getContext("2d").drawImage(i,0,0,i.width,i.height,0,0,d,g),o=v.toDataURL("image/gif")}catch{o=null}return o}},Se=(i,d)=>{let g=i;const o=e.reactive({mime:[],suffix:[],isCheckImgWH:!1});let v=null;const H=m=>{g=t.CommonBase.getJsonMerge(g,m),j()},M=m=>{const p=g.checkMsg;return t.CommonBase.isString(p)&&!t.CommonBase.isEmpty(p)?p:t.CommonBase.isObject(p)&&!t.CommonBase.isEmpty(p[m])?p[m]:d.value[m]},j=()=>{const m=t.CommonBase.isNonEmptyString(g.checkFormat)?O.getSuffix(g.checkFormat.split(",")):[],p=O.getMime(m),B=!t.CommonBase.isEmpty(g.checkWidth)&&!t.CommonBase.isEmpty(g.checkHeight);o.mime=p,o.suffix=m,o.isCheckImgWH=B},z=m=>{const p=O.getIcon(m);return{type:m,icon:p,isImage:m==="img",isVideo:m==="video",isAudio:m==="audio",isTxt:m==="txt",isZip:m==="zip"}},R=(m,p)=>{if(t.CommonBase.isUndefined(v)){v={};for(const[s,a]of Object.entries(O.format)){const S=O.getSuffix(a),k=O.getMime(S),x=O.getRegexBySuffix(S),F=O.getRegexByMime(k);v[s]={suffix:S,mime:k,regSuffix:x,regMime:F}}}let B="";return Object.keys(v).forEach(s=>{if(B.length===0){const a=v[s];(a.regSuffix&&a.regSuffix.test(m)||p&&a.regMime&&a.regMime.test(p))&&(B=s)}}),z(B)},G=m=>{const p=O.getFormatGroup(t.CommonBase.isEmpty(m)?g.checkFormat:m),B=p.length===1?p[0]:"";return z(B)},q=m=>{if(!t.CommonBase.isString(m))return R("");if(m.startsWith("data:")||m.startsWith("blob:")){const B=m.match(/^[a-z]+:([a-zA-Z0-9.+-]+\/[a-zA-Z0-9.+-]+)/);return R("",B?B[1]:"")}const p=m.substring(m.lastIndexOf("/")+1).split("?")[0].split("#")[0];return R(p)},A=(m,p,B,s,a)=>{const S=t.CommonBase.isFinite(B)&&B>0?B:0,k=t.CommonBase.isFinite(s)&&s>0?s:0;let x=a;(x==="height"||x==="contain")&&k===0&&(x="width");let F=1;switch(x){case"height":F=k>0?k/p:1;break;case"contain":F=Math.min(S>0?S/m:1,k>0?k/p:1);break;case"width":default:F=S>0?S/m:1;break}return F>1&&(F=1),{tw:Math.round(m*F),th:Math.round(p*F)}},te=(m,p,B,s)=>new Promise((a,S)=>{const k=document.createElement("img");k.onload=x=>{const F=x.target.width,P=x.target.height,{tw:J,th:W}=A(F,P,p,B,s),_=x.target.src;a({src:_,w:F,h:P,tw:J,th:W,isImage:!0})},k.onerror=()=>{S(new Error("fail: temp create image"))},k.src=m}),oe=(m,p)=>{const B=t.CommonBase.isEmpty(g.checkWidth)?0:parseInt(g.checkWidth,10),s=t.CommonBase.isEmpty(g.checkHeight)?0:parseInt(g.checkHeight,10);if(!t.CommonBase.isFinite(B)||!t.CommonBase.isFinite(s)||B===0||s===0)return!0;let a=!0;switch(g.checkWHType){case"greater":a=m>=B&&p>=s;break;case"less":a=m<=B&&p<=s;break;case"equal":a=m===B&&p===s;break;default:a=!0;break}return a},ie=(m,p)=>new Promise((B,s)=>{if(m instanceof File){const a=new FileReader;a.onload=S=>{te(S.target.result,p.maxWidth,p.maxHeight,p.imgFit).then(k=>{(o.isCheckImgWH?oe(k.w,k.h):!0)?B(k):s(new Error(M("checkImageWHLabel")))}).catch(k=>{s(k)})},a.onerror=()=>{s(new Error("fail: new FileReader image onload()"))},a.readAsDataURL(m)}else s(new Error("fail: file is not a File instance"))}),Y=async(m,p)=>{let B=[];const s=[],a=[],S=O.getRegexBySuffix(o.suffix),k=O.getRegexByMime(o.mime),x=W=>{const _=t.CommonBase.isEmpty(W)?NaN:parseInt(W,10);return t.CommonBase.isFinite(_)?_*1024:null},F=x(g.checkMinSize),P=x(g.checkMaxSize),J=m.length;for(let W=0;W<J;W+=1){const _=[],L=m[W],r={suffix:!1,mime:!1,size:!1},w=L.name;S&&!S.test(w)&&(r.suffix=!0);const y=L.type;!t.CommonBase.isEmpty(y)&&k&&!k.test(y)&&(r.mime=!0),F&&L.size<F&&(r.size=!0),P&&L.size>P&&(r.size=!0),(r.suffix||r.mime)&&_.push(M("checkSuffixMimeLabel")),r.size&&_.push(M("checkSizeLabel"));const h=R(w,y);let I=null;h.isImage&&(I=await ie(L,p).catch(b=>{_.push(b.message)})),t.CommonBase.isUndefined(I)&&(I={}),I=t.CommonBase.getJsonMerge(I,h),I.fileName=w,I.file=L,_.length===0?(s.push(L),a.push(I)):J===1?B=_.map(b=>`${M("uploadFile")} ${b}`):B.push(`${w}:${_.join(",")}`)}return new Promise(W=>{setTimeout(()=>{W({errorMsg:B,passFiles:s,passFilesInfo:a,original:m})},200)})};return j(),{optBase:o,getTypeByFormat:G,getTypeByUrl:q,createTempImg:te,checkFile:Y,setBaseOptions:H}},we=()=>({setFileInfo:(d,g)=>{const o=g&&g.fileUrl?g.fileUrl:"";if(!t.CommonBase.isString(o))return{name:"",url:"",imgSrc:"",imgWidth:0,imgHeight:0};const v=t.CommonBase.isEmpty(o);let H="";v||o.startsWith("blob:")?H=d.fileName:H=o.substr(o.lastIndexOf("/")+1);let M="",j=0,z=0;return d.isImage&&(M=v?d.src:o,j=d.tw||0,z=d.th||0),{name:H,url:o,imgSrc:M,imgWidth:j,imgHeight:z}}}),ye=()=>{const i=(g,o)=>{window.open(g)};return{downloadHref:i,downloadBlob:g=>{if(!t.CommonBase.isEmpty(g)){const o=g.lastIndexOf("/"),v=g.substring(o+1),H=g.replace(/\\/g,"/"),M=new XMLHttpRequest;M.open("GET",H,!0),M.responseType="blob",M.onload=()=>{if(M.status===200){const j=window.URL||window.webkitURL||window,z=new Blob([M.response]),R=document.createElementNS("http://www.w3.org/1999/xhtml","a");R.href=j.createObjectURL(z),R.download=v,R.click(),setTimeout(()=>URL.revokeObjectURL(R.href),1e3)}else i(g)},M.onerror=()=>{i(g)},M.send()}}}},Ee=["name","accept"],xe=["name"],Fe={class:"fileUpload-label"},Ue={key:0,class:"fileUpload-img"},Me={class:"fileUpload-img-container"},Ie=["src","width","height"],Te={key:0,class:"file-complete-img-msg"},_e=["title"],Ne=["title"],He={key:1,class:"fileUpload-video"},Re=["src"],We=["title"],Oe={key:2,class:"fileUpload-file"},ze=["title"],Le={key:0,class:"fileUpload-load"},je=e.defineComponent({name:"ClFileUploadDefault",__name:"Default",props:{name:String,value:[String,Array,Object],className:String,disabled:{type:Boolean,default:!1},defaultHoverTitle:String,defaultIcon:String,checkFormat:String,checkMinSize:[String,Number],checkMaxSize:[String,Number],checkWidth:[String,Number],checkHeight:[String,Number],checkWHType:{type:String,default:"equal",validator:i=>["equal","greater","less"].includes(i)},imgFit:{type:String,default:"width",validator:i=>["width","height","contain"].includes(i)},isServerCallback:Boolean,isShowPreview:{type:Boolean,default:!0},isShowDownload:{type:Boolean,default:!0},isShowCompleteMsg:{type:Boolean,default:!0}},emits:["onChange","onError","onRemove","onPreview","onSaveFile"],setup(i,{expose:d,emit:g}){const o=i,v=g,{optPageLanguage:H,getPageLanguage:M}=Be.useLanguage();M("fileUpload");const j=e.inject("$FileuploadTop",null);j||ve.clLog.warn("FileUpload","Default 主题缺少 $FileuploadTop 注入,使用空校验配置");const{setFileInfo:z}=we(),R=()=>t.CommonBase.getJsonMerge(j?.getFileCheckInfo()??{},{checkFormat:o.checkFormat,checkWidth:o.checkWidth,checkHeight:o.checkHeight,checkWHType:o.checkWHType,checkMinSize:o.checkMinSize,checkMaxSize:o.checkMaxSize}),{optBase:G,getTypeByFormat:q,getTypeByUrl:A,createTempImg:te,checkFile:oe,setBaseOptions:ie}=Se(R(),H),{downloadBlob:Y,downloadHref:m}=ye(),p=e.useTemplateRef("refElTopParent"),B=()=>{const n=p.value;if(!n)return{maxWidth:0,maxHeight:0};const f=4,T=n.clientWidth>0?Math.max(n.clientWidth-f,0):0;let V=0;if(o.imgFit==="height"||o.imgFit==="contain"){const $=n.parentElement;$&&$.clientHeight>0&&(V=getComputedStyle($).height==="auto"?0:Math.max($.clientHeight-f,0))}return{maxWidth:T,maxHeight:V}},s=e.reactive({isImage:!1,isVideo:!1,icon:"",completeMsgTxt:"",isInitFileInput:!0,runOperateType:"init"}),a=e.reactive({name:"",url:"",imgSrc:"",imgWidth:0,imgHeight:0}),S={file:null};let k=0,x=null;const F=`fileUpload_${t.CommonBase.getRandom(8)}`,P=e.computed(()=>{let n=o.name;return t.CommonBase.isEmpty(n)&&(n=`fileUpload_${t.CommonBase.getRandom(8)}`),n}),J=e.computed(()=>{let n={"fileUpload-default":!0};return n=t.CommonBase.getJsonMerge(n,pe.CommonElement.getClassNameJson(o.className)),n}),W=e.computed(()=>({"fileUpload-wait":!0,"fileUpload-disabled":o.disabled})),_=e.computed(()=>({"fileUpload-complete":!0,"fileUpload-disabled":o.disabled})),L=n=>{v("onChange",n)},r=n=>{v("onError",n)},w=()=>{v("onRemove")},y=(n,f)=>{v("onPreview",n,f)},h=(n,f)=>{v("onSaveFile",n,f)},I=n=>{s.isImage=n.isImage,s.isVideo=n.isVideo,s.icon=n.icon},b=()=>{const n=q();t.CommonBase.isNonEmptyString(o.defaultIcon)&&(n.icon=o.defaultIcon),I(n)},E=n=>{n!=="load"&&(s.isInitFileInput=!0);let f="";switch(n){case"remove":case"clean":{f="init",b();break}case"fail":{let T=!0;s.isImage?(!t.CommonBase.isEmpty(a.url)||!t.CommonBase.isEmpty(a.imgSrc))&&(T=!1):t.CommonBase.isEmpty(a.url)||(T=!1),f=T?"init":"complete";break}default:f=n}s.runOperateType=f},X=n=>{const f=a;for(const[T,V]of Object.entries(n))t.CommonBase.isUndefined(f[T])||(f[T]=V);S.file=n.file??S.file},K=(n,f)=>{ae(),I(n);const T=z(n,f);X(T),E("complete")},ne=()=>{let n=null;return t.CommonBase.isString(a.url)&&a.url.startsWith("blob:")?n=S.file:t.CommonBase.isEmpty(a.url)?s.isImage&&!t.CommonBase.isEmpty(a.imgSrc)?n=a.imgSrc:n=S.file:n=a.url,t.CommonBase.isUndefined(n)&&(n=""),n},me=n=>{if(n.length>0&&s.runOperateType!=="load"){s.isInitFileInput=!1,E("load"),k+=1;const f={...B(),imgFit:o.imgFit};oe(n,f).then(T=>{if(s.runOperateType==="load")if(T.passFiles.length>0){const V=T.passFiles[0],$=T.passFilesInfo[0];if($.isImage)o.isServerCallback?(h(V,$),ue()):(K($,{}),S.file=V,L($.src));else if(o.isServerCallback)h(V,$),ue();else{const re={};if($.isVideo){const de=URL.createObjectURL(V);re.fileUrl=de}K($,re),S.file=V,L(V)}}else E("fail"),T.errorMsg.length>0&&r(T.errorMsg)}).catch(()=>{s.runOperateType==="load"&&(E("fail"),r(["文件校验失败,请重试"]))})}},le=n=>{if(!t.CommonBase.isNonEmptyString(n)){(t.CommonBase.isString(n)||t.CommonBase.isUndefined(n))&&ge();return}const f=++k,T=A(n);if(s.isImage&&T.isImage){const{maxWidth:V,maxHeight:$}=B();te(n,V,$,o.imgFit).then(re=>{if(f!==k)return;const de=t.CommonBase.getJsonMerge(re,T);K(de,{fileUrl:n})}).catch(()=>{f===k&&(E("fail"),r(["图片加载失败,请检查图片地址"]))})}else K(T,{fileUrl:n})},ae=()=>{t.CommonBase.isString(a.url)&&a.url.startsWith("blob:")&&URL.revokeObjectURL(a.url)},ee=()=>{x&&(clearTimeout(x),x=null)},ue=()=>{ee(),x=setTimeout(()=>{s.runOperateType==="load"&&(E("fail"),r(["服务端保存超时,请重试"]))},6e4)},ge=()=>{k+=1,S.file=null,X({name:"",url:"",imgSrc:"",imgWidth:0,imgHeight:0}),E("init")},ce=()=>{if(t.CommonBase.isEmpty(o.value)){b();return}I(A(o.value))},fe=()=>{let n=o.defaultHoverTitle;s.isImage&&G.isCheckImgWH&&t.CommonBase.isEmpty(n)&&(n=`${o.checkWidth}x${o.checkHeight}`),s.completeMsgTxt=n},he=()=>{ce(),fe(),le(o.value)};e.onMounted(()=>{e.nextTick(()=>{he()})}),e.watch(()=>o.value,(n,f)=>{if(n!==f){const T=ne();n!==T&&(ee(),ce(),le(n))}}),e.watch([()=>o.checkFormat,()=>o.checkWidth,()=>o.checkHeight,()=>o.checkWHType,()=>o.checkMinSize,()=>o.checkMaxSize],()=>{if(ee(),ie(R()),ce(),fe(),s.runOperateType==="load")return;const n=ne();o.value===n&&le(o.value)});const ke=n=>{n.preventDefault(),n.stopPropagation(),!o.disabled&&n.dataTransfer&&me(n.dataTransfer.files)},l=n=>{o.disabled||me(n.currentTarget.files)},c=()=>{ee(),k+=1,ae(),S.file=null,X({name:"",url:"",imgSrc:"",imgWidth:0,imgHeight:0}),E("remove");const n=document.getElementById(F);n&&(n.value=""),w()},u=n=>{const f=t.CommonBase.isEmpty(a.url)?a.imgSrc:a.url;y(f,"image"),n.preventDefault(),n.stopPropagation()},U=n=>{t.CommonBase.isEmpty(a.url)||y(a.url,"video"),n.preventDefault(),n.stopPropagation()},C=n=>{t.CommonBase.isEmpty(a.url)?m(a.imgSrc,a.name):Y(a.url),n.preventDefault(),n.stopPropagation()},N=n=>{if(t.CommonBase.isString(a.url)&&a.url.startsWith("blob:")){const f=document.createElement("a");f.href=a.url,f.download=a.name,f.click()}else Y(a.url);n.preventDefault(),n.stopPropagation()};return d({saveServerCallback:n=>{if(ee(),s.runOperateType!=="load")return;if(!n||!n.res||!t.CommonBase.isBoolean(n.res.success)){E("fail"),r(["文件保存失败,请重试"]);return}if(!n.res.success){E("fail"),r(["文件保存失败,请重试"]);return}if(!n.req){E("fail"),r(["文件保存失败,请重试"]);return}let f="";if(t.CommonBase.isString(n.res.fileUrl)?f=n.res.fileUrl:t.CommonBase.isArray(n.res.fileUrl)&&n.res.fileUrl.length>0&&t.CommonBase.isString(n.res.fileUrl[0])&&(f=n.res.fileUrl[0]),t.CommonBase.isEmpty(f)){S.file=null,X({name:"",url:"",imgSrc:"",imgWidth:0,imgHeight:0}),E("init");return}K(n.req,{fileUrl:f}),L(f)},getValue:()=>ne(),cleanReduction:()=>{ee(),k+=1,ae(),S.file=null,X({name:"",url:"",imgSrc:"",imgWidth:0,imgHeight:0}),E("clean")}}),e.onBeforeUnmount(()=>{ee(),ae()}),(n,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(J.value),ref_key:"refElTopParent",ref:p},[e.createElementVNode("div",{class:"fileUpload-default-container",onDrop:ke,onDragover:f[0]||(f[0]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("label",{for:F},[s.isInitFileInput&&!i.disabled?(e.openBlock(),e.createElementBlock("input",{key:0,type:"file",id:F,name:P.value,onChange:l,accept:e.unref(G).mime.join(",")},null,40,Ee)):(e.openBlock(),e.createElementBlock("input",{key:1,id:F,name:P.value,style:{display:"none !important"}},null,8,xe)),s.runOperateType==="init"?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(W.value)},[e.createVNode(D._sfc_main,{name:s.icon,class:"fileUpload-icon"},null,8,["name"]),e.createElementVNode("span",Fe,[e.renderSlot(n.$slots,"label")])],2)):s.runOperateType==="complete"?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(_.value)},[s.isImage?(e.openBlock(),e.createElementBlock("span",Ue,[e.createElementVNode("span",Me,[e.createElementVNode("img",{src:a.imgSrc,width:a.imgWidth,height:a.imgHeight},null,8,Ie)]),i.isShowCompleteMsg?(e.openBlock(),e.createElementBlock("span",Te,e.toDisplayString(s.completeMsgTxt),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),i.isShowPreview&&!i.disabled?(e.openBlock(),e.createElementBlock("i",{key:2,class:"preview-icon",title:e.unref(H).common.preview,onClick:e.withModifiers(u,["stop"])},[e.createVNode(D._sfc_main,{name:"search-plus"})],8,_e)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64)),i.isShowDownload&&!i.disabled?(e.openBlock(),e.createElementBlock("i",{key:4,class:"download-icon",title:e.unref(H).common.download,onClick:e.withModifiers(C,["stop"])},[e.createVNode(D._sfc_main,{name:"download"})],8,Ne)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[],64))])):s.isVideo?(e.openBlock(),e.createElementBlock("span",He,[e.createElementVNode("video",{src:a.url},null,8,Re),i.isShowPreview&&!i.disabled?(e.openBlock(),e.createElementBlock("span",{key:0,class:"preview-icon",onClick:e.withModifiers(U,["stop"])},[e.createVNode(D._sfc_main,{name:"play"})])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),i.isShowDownload&&!i.disabled?(e.openBlock(),e.createElementBlock("i",{key:2,class:"download-icon",title:e.unref(H).common.download,onClick:e.withModifiers(N,["stop"])},[e.createVNode(D._sfc_main,{name:"download"})],8,We)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))])):(e.openBlock(),e.createElementBlock("span",Oe,[e.createVNode(D._sfc_main,{name:s.icon,class:"fileUpload-icon"},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(a.name),1)])),i.disabled?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[],64)):(e.openBlock(),e.createElementBlock("a",{key:3,class:"file-complete-remove",href:"javascript:",title:e.unref(H).common.delete,onClick:e.withModifiers(c,["stop"])},[e.createVNode(D._sfc_main,{name:"close"})],8,ze))],2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[],64))])],32),s.runOperateType==="load"?(e.openBlock(),e.createElementBlock("div",Le,[e.createVNode(Ce._sfc_main,{theme:"circleBubble",size:"large"})])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],2))}}),Pe=["id","name","multiple","accept"],$e=["id","name","disabled","accept"],Ve=["for"],De={key:0,class:"fileUpload-list"},qe={key:0,class:"fileUpload-item-icon fileUpload-item-img"},Ae=["src"],Je=["title","onClick"],Ge={key:1,class:"fileUpload-item-icon fileUpload-item-video"},Xe=["src"],Ke=["onClick"],Ze={class:"fileUpload-item-name"},Qe={class:"fileUpload-item-operate"},Ye=["title","onClick"],et=["title","onClick"],tt=e.defineComponent({name:"ClFileUploadButton",__name:"Button",props:{name:String,value:[String,Array,Object],className:String,disabled:{type:Boolean,default:!1},isMultiple:Boolean,buttonClass:String,buttonLabel:String,buttonIcon:{type:String,default:""},buttonColor:{type:String,default:"default"},checkFormat:String,checkMinSize:[String,Number],checkMaxSize:[String,Number],checkWidth:[String,Number],checkHeight:[String,Number],checkWHType:{type:String,default:"equal",validator:i=>["equal","greater","less"].includes(i)},isServerCallback:Boolean,isShowUploadResult:{type:Boolean,default:!0},isShowUploadIng:{type:Boolean,default:!0},isShowPreview:{type:Boolean,default:!0},isShowDownload:{type:Boolean,default:!0}},emits:["onChange","onError","onRemove","onPreview","onSaveFile"],setup(i,{expose:d,emit:g}){const o=i,v=g,H=`fileupload-${t.CommonBase.getRandom(5)}`,{optPageLanguage:M,getPageLanguage:j}=Be.useLanguage();j("fileUpload");const z=e.inject("$FileuploadTop",null);z||ve.clLog.warn("FileUpload","Button 主题缺少 $FileuploadTop 注入,使用空校验配置");const R=()=>t.CommonBase.getJsonMerge(z?.getFileCheckInfo()??{},{checkFormat:o.checkFormat,checkWidth:o.checkWidth,checkHeight:o.checkHeight,checkWHType:o.checkWHType,checkMinSize:o.checkMinSize,checkMaxSize:o.checkMaxSize}),{setFileInfo:G}=we(),{optBase:q,getTypeByUrl:A,checkFile:te,setBaseOptions:oe}=Se(R(),M),{downloadBlob:ie,downloadHref:Y}=ye(),m=e.useTemplateRef("refElButton"),p=e.useTemplateRef("refElLabel"),B=t.CommonBase.getRandom(8),s=e.reactive({elFileId:`btnFile${B}`,isInitFileInput:!0}),a=e.ref([]),S=e.ref([]);let k=null,x=null,F=null;const P=e.computed(()=>{let l=o.name;return t.CommonBase.isEmpty(l)&&(l=`fileUpload_${t.CommonBase.getRandom(8)}`),l}),J=e.computed(()=>{let l={"fileUpload-button":!0};return l=t.CommonBase.getJsonMerge(l,pe.CommonElement.getClassNameJson(o.className)),l}),W=(l,c)=>{v("onChange",l,c)},_=l=>{v("onError",l)},L=()=>{v("onRemove")},r=(l,c,u)=>{v("onPreview",l,c,u)},w=(l,c)=>{v("onSaveFile",l,c)},y=()=>{h(),k=setTimeout(()=>{k=null,s.isInitFileInput||(b("fail"),_(["服务端保存超时,请重试"]))},6e4)},h=()=>{k&&(clearTimeout(k),k=null)},I=()=>{a.value.forEach(l=>{t.CommonBase.isString(l.url)&&l.url.startsWith("blob:")&&URL.revokeObjectURL(l.url)})},b=l=>{switch(l){case"load":o.isShowUploadIng&&m.value?.loadStart();break;case"fail":case"complete":o.isShowUploadIng&&m.value?.loadStop();break}s.isInitFileInput=l!=="load"},E=(l,c)=>{o.isMultiple||(I(),a.value=[]);const u=[],U=[];a.value.forEach(C=>{u.push(C),U.push(C.rId)});for(let C=0;C<l.length;C++){let N=c.length>C?{fileUrl:c[C]}:{};t.CommonBase.isEmpty(N.fileUrl)&&l[C].isVideo&&l[C].file&&(N={fileUrl:URL.createObjectURL(l[C].file)});let Z=G(l[C],N);Z.rId=t.CommonBase.getRandom(9),Z=t.CommonBase.getJsonMerge(l[C],Z),u.push(Z),U.push(Z.rId)}a.value=u,b("complete"),e.nextTick(()=>{S.value=U})},X=()=>{const l=[];return a.value.forEach(c=>{let u=null;t.CommonBase.isString(c.url)&&c.url.startsWith("blob:")?u=c.file:t.CommonBase.isEmpty(c.url)?c.isImage&&!t.CommonBase.isEmpty(c.imgSrc)?u=c.imgSrc:u=c.file:u=c.url,t.CommonBase.isUndefined(u)||l.push(u)}),l.length===0?"":o.isMultiple?l:l[0]},K=l=>{if(t.CommonBase.isArray(l)){I(),a.value=[];const U=[],C=[];l.forEach(N=>{if(t.CommonBase.isNonEmptyString(N)){const Z=A(N);U.push(Z),C.push(N)}}),E(U,C);return}if(!t.CommonBase.isNonEmptyString(l)){t.CommonBase.isString(l)&&ne();return}I(),a.value=[];const c=[],u=[];l.split(",").filter(U=>t.CommonBase.isNonEmptyString(U)).forEach(U=>{const C=A(U);c.push(C),u.push(U)}),E(c,u)},ne=()=>{I(),b("init"),a.value=[]},me=()=>{K(o.value)};e.onMounted(()=>{e.nextTick(()=>{me()})}),e.onBeforeUnmount(()=>{h(),x&&(clearTimeout(x),x=null),I()}),e.watch(()=>o.value,(l,c)=>{if(l!==c){const u=X();l!==u&&(h(),K(l))}}),e.watch([()=>o.checkFormat,()=>o.checkWidth,()=>o.checkHeight,()=>o.checkWHType,()=>o.checkMinSize,()=>o.checkMaxSize],()=>{s.isInitFileInput&&h(),oe(R())});const le=l=>{o.disabled||s.isInitFileInput&&l.currentTarget.files.length>0&&(b("load"),te(l.currentTarget.files,{}).then(c=>{if(!s.isInitFileInput){if(c.passFiles.length>0)if(o.isServerCallback){const u=o.isMultiple?c.passFiles:c.passFiles[0],U=o.isMultiple?c.passFilesInfo:c.passFilesInfo[0];w(u,U),y()}else o.isMultiple?(E(c.passFilesInfo,[]),W(c.passFiles,c.passFilesInfo)):(E(c.passFilesInfo,[]),W(c.passFiles[0],c.passFilesInfo[0]));else c.errorMsg.length===0&&(b("fail"),_(["文件校验失败,请重试"]));c.errorMsg.length>0&&(_(c.errorMsg),c.passFiles.length===0&&b("fail"))}}).catch(()=>{s.isInitFileInput||(b("fail"),_(["文件校验失败,请重试"]))}))},ae=(l,c)=>{const u=t.CommonBase.isEmpty(l.url)?l.src:l.url;r(u,"image",c)},ee=(l,c)=>{t.CommonBase.isEmpty(l.url)||r(l.url,"video",c)},ue=l=>{if(F===l)return;F=l,h(),s.isInitFileInput||b("complete");const c=a.value.find(N=>N.rId===l);c&&t.CommonBase.isString(c.url)&&c.url.startsWith("blob:")&&URL.revokeObjectURL(c.url);const u=[],U=[];a.value.forEach(N=>{N.rId!==l&&(u.push(N),U.push(N.rId))}),S.value=U;const C=document.getElementById(s.elFileId);C&&(C.value=""),e.nextTick(()=>{u.length>0?(a.value=u,F=null,L()):x=setTimeout(()=>{x=null,a.value=a.value.filter(N=>N.rId!==l),F=null,L()},500)})},ge=l=>{if(l.isImage&&t.CommonBase.isEmpty(l.url))Y(l.imgSrc,l.name);else if(t.CommonBase.isString(l.url)&&l.url.startsWith("blob:")){const c=document.createElement("a");c.href=l.url,c.download=l.name,c.click()}else if(t.CommonBase.isEmpty(l.url)&&l.file){const c=URL.createObjectURL(l.file),u=document.createElement("a");u.href=c,u.download=l.name,u.click(),setTimeout(()=>{URL.revokeObjectURL(c)},1e3)}else ie(l.url)},ce=()=>{p.value?.click()};return d({saveServerCallback:l=>{if(h(),!s.isInitFileInput){if(t.CommonBase.isUndefined(l)||t.CommonBase.isUndefined(l.res)||!t.CommonBase.isBoolean(l.res.success)||t.CommonBase.isUndefined(l.req)){b("fail"),_(["文件保存失败,请重试"]);return}if(l.res.success){let c=[];const u=[];if(t.CommonBase.isNonEmptyString(l.res.fileUrl)?(c.push(l.res.fileUrl),u.push(0)):t.CommonBase.isArray(l.res.fileUrl)&&l.res.fileUrl.forEach((se,Q)=>{t.CommonBase.isNonEmptyString(se)&&(c.push(se),u.push(Q))}),c.length===0){b("complete");return}const U=o.isMultiple?l.req:[l.req];let C=[],N=[];if(!o.isMultiple)C=c,N=U;else{const se=a.value.map(Q=>Q.url).filter(Q=>t.CommonBase.isNonEmptyString(Q));c.forEach((Q,n)=>{const f=u[n];se.indexOf(Q)>-1||t.CommonBase.isUndefined(U[f])||(se.push(Q),C.push(Q),N.push(U[f]))})}if(C.length===0){b("complete");return}E(N,C);const Z=o.isMultiple?C:C[0];W(Z)}else b("fail"),_(["文件保存失败,请重试"])}},getValue:()=>X(),cleanReduction:()=>{h(),ne()}}),(l,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass(J.value)},[s.isInitFileInput&&!i.disabled?(e.openBlock(),e.createElementBlock("input",{key:0,type:"file",id:s.elFileId,name:P.value,multiple:i.isMultiple,accept:e.unref(q).mime.join(","),onChange:le},null,40,Pe)):(e.openBlock(),e.createElementBlock("input",{key:1,id:s.elFileId,name:P.value,disabled:i.disabled,accept:e.unref(q).mime.join(","),style:{display:"none !important"},onChange:le},null,40,$e)),e.createElementVNode("label",{ref_key:"refElLabel",ref:p,for:s.elFileId},[e.createVNode(be._sfc_main,{ref_key:"refElButton",ref:m,className:i.buttonClass,isShowBackDrop:!0,disabled:i.disabled,label:i.buttonLabel||e.unref(M).common.upload,iconName:i.buttonIcon,color:i.buttonColor,onOnClick:ce},null,8,["className","disabled","label","iconName","color"])],8,Ve)],2),e.renderSlot(l.$slots,"label"),a.value.length>0&&i.isShowUploadResult?(e.openBlock(),e.createElementBlock("ul",De,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(u,U)=>(e.openBlock(),e.createBlock(e.Transition,{key:`${u.rId}-${U}`,name:"fileUploadButton","enter-active-class":"fileupload-anim-in","leave-active-class":"fileupload-anim-out"},{default:e.withCtx(()=>[S.value.indexOf(u.rId)>-1?(e.openBlock(),e.createElementBlock("li",{key:`${H}-${u.rId}-${U}`,class:"fileUpload-item"},[u.isImage?(e.openBlock(),e.createElementBlock("span",qe,[e.createElementVNode("img",{src:u.imgSrc},null,8,Ae),i.isShowPreview?(e.openBlock(),e.createElementBlock("i",{key:0,class:"preview-icon",title:e.unref(M).common.preview,onClick:e.withModifiers(C=>ae(u,U),["stop"])},[e.createVNode(D._sfc_main,{name:"search-plus"})],8,Je)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])):u.isVideo?(e.openBlock(),e.createElementBlock("span",Ge,[e.createElementVNode("video",{src:u.url},null,8,Xe),i.isShowPreview?(e.openBlock(),e.createElementBlock("span",{key:0,class:"preview-icon",onClick:e.withModifiers(C=>ee(u,U),["stop"])},[e.createVNode(D._sfc_main,{name:"play"})],8,Ke)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])):(e.openBlock(),e.createBlock(D._sfc_main,{key:2,name:u.icon,class:"fileUpload-item-icon"},null,8,["name"])),e.createElementVNode("span",Ze,e.toDisplayString(u.name),1),e.createElementVNode("span",Qe,[i.isShowDownload?(e.openBlock(),e.createElementBlock("i",{key:0,class:"download-icon",title:e.unref(M).common.download,onClick:e.withModifiers(C=>ge(u),["stop"])},[e.createVNode(D._sfc_main,{name:"download"})],8,Ye)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),i.disabled?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64)):(e.openBlock(),e.createElementBlock("a",{key:2,class:"file-complete-remove",href:"javascript:",title:e.unref(M).common.delete,onClick:e.withModifiers(C=>ue(u.rId),["stop"])},[e.createVNode(D._sfc_main,{name:"close"})],8,et))])])):e.createCommentVNode("",!0)]),_:2},1024))),128))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],64))}}),ot=["id"],it={key:0,class:"cl-plaintext-value"},nt=["src","alt"],lt=["src"],at={key:0},st=e.defineComponent({name:"ClFileUpload",__name:"Index",props:{id:String,name:String,value:[String,Array,Object],className:String,disabled:{type:Boolean,default:!1},theme:{type:String,default:"default",validator:i=>["default","button"].includes(i)},isMultiple:{type:Boolean,default:!1},defaultHoverTitle:String,defaultIcon:String,isShowCompleteMsg:{type:Boolean,default:!0},buttonClass:String,buttonLabel:String,buttonIcon:String,buttonColor:String,checkFormat:String,checkMinSize:[String,Number],checkMaxSize:[String,Number],checkWidth:[String,Number],checkHeight:[String,Number],checkWHType:{type:String,default:"equal"},imgFit:{type:String,default:"width"},isShowPreview:{type:Boolean,default:!0},isShowDownload:{type:Boolean,default:!0},isShowUploadResult:{type:Boolean,default:!0},isShowUploadIng:{type:Boolean,default:!0},serverFileCallback:Function,isPlaintext:{type:Boolean,default:!1},plaintextSeparator:{type:String,default:","}},emits:["update:value","update:modelValue","onChange","onRemove","onError"],setup(i,{expose:d,emit:g}){const o=i,v=g,H=e.inject("$ClGlobals",null),M=e.useAttrs(),j=o.id,z=e.useTemplateRef("refElFileDefault"),R=e.useTemplateRef("refElFileButton");let G=0,q=0;const A=e.computed(()=>t.CommonBase.isFunction(o.serverFileCallback)),te=["jpg","jpeg","png","gif","webp","bmp","svg"],oe=["mp4","webm","ogg","ogv","mov","avi","mkv"],ie=r=>{const w=r.split("?")[0].split("#")[0],y=w.split("/"),h=y.length>0?y[y.length-1]:w;return t.CommonBase.isEmpty(h)?r:decodeURIComponent(h)},Y=e.computed(()=>{const r=o.value,w=Array.isArray(r)?r:t.CommonBase.isEmpty(r)?[]:[r],y=[];return w.forEach(h=>{if(t.CommonBase.isString(h)){t.CommonBase.isNonEmptyString(h)&&y.push({url:h,name:ie(h),type:"file"});return}h&&t.CommonBase.isNonEmptyString(h.name)&&y.push({url:"",name:h.name,type:"file"})}),y.map(h=>{if(t.CommonBase.isEmpty(h.url))return h;const I=h.name.lastIndexOf("."),b=I>-1?h.name.slice(I+1).toLowerCase():"";let E="file";return te.indexOf(b)>-1?E="image":oe.indexOf(b)>-1&&(E="video"),{...h,type:E}})}),m=e.computed(()=>Y.value.filter(r=>r.type!=="file")),p=e.computed(()=>{const r=t.CommonBase.isString(o.plaintextSeparator)?o.plaintextSeparator:",";return Y.value.filter(w=>w.type==="file").map(w=>w.name).join(r)}),B=e.computed(()=>{let r={"panel-file-upload":!0};return r=t.CommonBase.getJsonMerge(r,pe.CommonElement.getClassNameJson(o.className)),r}),s=(r,w,y)=>{v("update:value",r),v("update:modelValue",r),v("onChange",w,y)},a=()=>{v("onRemove")},S=()=>{let r=null;switch(o.theme){case"default":r=z.value?.getValue();break;case"button":r=R.value?.getValue();break}return r},k=(r,w)=>{switch(r){case"default":z.value?.saveServerCallback(w);break;case"button":R.value?.saveServerCallback(w);break}},x=(r,w)=>{const y=S(),h=A.value?y:r;s(y,h,w)},F=r=>{t.CommonBase.isArray(r)&&v("onError",r)},P=()=>{q+=1,a();const r=S();s(r,r)},J=async(r,w,y)=>{const h=H?.preview;h&&await h.show({type:w,src:r,showIndex:y??0})},W=async(r,w)=>{const y=o.theme,h=++G,I=q;let b=!0;if(o.serverFileCallback)try{const X=!o.isMultiple&&t.CommonBase.isObject(w)&&t.CommonBase.isBoolean(w.isImage)?w.isImage:!1,K=pe.CommonElement.getElementData(M);b=await o.serverFileCallback(r,X,K)}catch{h===G&&q===I&&o.theme===y&&k(y,{req:w,res:{success:!1}});return}let E={};if(t.CommonBase.isBoolean(b)?E.success=b:t.CommonBase.isUndefined(b)?E.success=!0:t.CommonBase.isString(b)||t.CommonBase.isArray(b)?(E.success=!0,E.fileUrl=b):t.CommonBase.isObject(b)?E=b:E.success=!1,o.theme!==y){v("onError",["保存期间主题已切换,本次保存结果未写入"]);return}h!==G||q!==I||k(y,{req:w,res:E})};return e.provide("$FileuploadTop",e.reactive({getFileCheckInfo:()=>({checkFormat:o.checkFormat,checkWidth:o.checkWidth,checkHeight:o.checkHeight,checkWHType:o.checkWHType,checkMinSize:o.checkMinSize,checkMaxSize:o.checkMaxSize})})),d({getValue:()=>S(),cleanReduction:()=>{switch(o.theme){case"default":z.value?.cleanReduction();break;case"button":R.value?.cleanReduction();break}s("","")}}),(r,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(B.value),id:e.unref(j)},[i.isPlaintext?(e.openBlock(),e.createElementBlock("div",it,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(y,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`plain-${h}`},[y.type==="image"?(e.openBlock(),e.createElementBlock("img",{key:0,src:y.url,alt:y.name,class:"cl-plaintext-media"},null,8,nt)):(e.openBlock(),e.createElementBlock("video",{key:1,src:y.url,controls:"",class:"cl-plaintext-media"},null,8,lt))],64))),128)),p.value?(e.openBlock(),e.createElementBlock("span",at,e.toDisplayString(p.value),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),!i.isPlaintext&&i.theme==="button"?(e.openBlock(),e.createBlock(tt,{key:2,ref_key:"refElFileButton",ref:R,value:i.value,name:i.name,disabled:i.disabled,isMultiple:i.isMultiple,buttonClass:i.buttonClass,buttonLabel:i.buttonLabel,buttonIcon:i.buttonIcon,buttonColor:i.buttonColor,checkFormat:i.checkFormat,checkMinSize:i.checkMinSize,checkMaxSize:i.checkMaxSize,checkWidth:i.checkWidth,checkHeight:i.checkHeight,checkWHType:i.checkWHType,isServerCallback:A.value,isShowUploadResult:i.isShowUploadResult,isShowUploadIng:i.isShowUploadIng,isShowPreview:i.isShowPreview,isShowDownload:i.isShowDownload,onOnChange:x,onOnError:F,onOnRemove:P,onOnPreview:J,onOnSaveFile:W},{label:e.withCtx(()=>[e.renderSlot(r.$slots,"label")]),_:3},8,["value","name","disabled","isMultiple","buttonClass","buttonLabel","buttonIcon","buttonColor","checkFormat","checkMinSize","checkMaxSize","checkWidth","checkHeight","checkWHType","isServerCallback","isShowUploadResult","isShowUploadIng","isShowPreview","isShowDownload"])):!i.isPlaintext&&i.theme==="default"?(e.openBlock(),e.createBlock(je,{key:3,ref_key:"refElFileDefault",ref:z,value:i.value,name:i.name,disabled:i.disabled,defaultHoverTitle:i.defaultHoverTitle,defaultIcon:i.defaultIcon,isShowCompleteMsg:i.isShowCompleteMsg,checkFormat:i.checkFormat,checkMinSize:i.checkMinSize,checkMaxSize:i.checkMaxSize,checkWidth:i.checkWidth,checkHeight:i.checkHeight,checkWHType:i.checkWHType,imgFit:i.imgFit,isServerCallback:A.value,isShowPreview:i.isShowPreview,isShowDownload:i.isShowDownload,onOnChange:x,onOnError:F,onOnRemove:P,onOnPreview:J,onOnSaveFile:W},{label:e.withCtx(()=>[e.renderSlot(r.$slots,"label")]),_:3},8,["value","name","disabled","defaultHoverTitle","defaultIcon","isShowCompleteMsg","checkFormat","checkMinSize","checkMaxSize","checkWidth","checkHeight","checkWHType","imgFit","isServerCallback","isShowPreview","isShowDownload"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[],64))],10,ot))}});exports._sfc_main=st;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as N, computed as v, resolveComponent as w, openBlock as o, createElementBlock as l, Fragment as h, normalizeClass as r, unref as i, renderSlot as u, createElementVNode as g, withModifiers as B, createBlock as E, withCtx as J } from "vue";
|
|
2
|
-
import { c as $ } from "./log-
|
|
2
|
+
import { c as $ } from "./log-CSNil8va.js";
|
|
3
3
|
import { C as d } from "./base-fr2I80sU.js";
|
|
4
4
|
import { C as H } from "./index-B477PjJ3.js";
|
|
5
5
|
/* empty css */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.panel-
|
|
1
|
+
.panel-overlay{position:fixed;inset:0;transition:opacity var(--overlay-duration, .3s) ease;cursor:default}.panel-overlay-self{position:absolute}.panel-overlay-fade-enter-active,.panel-overlay-fade-leave-active{transition:opacity var(--overlay-duration, .3s) ease}.panel-overlay-fade-enter-from,.panel-overlay-fade-leave-to{opacity:0}.modal-open{overflow:hidden}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.badge{display:inline-block;padding:0 2px;text-align:center;white-space:nowrap;vertical-align:baseline;text-transform:none;font-weight:500;font-size:12px;color:var(--cl-bg, #ffffff);border-radius:8px;min-width:16px;min-height:16px;line-height:normal;cursor:default}.badge:empty{display:none}.bg-default{background-color:var(--cl-primary, #1088f0)!important}.bg-green{background-color:var(--cl-success, #12b76a)!important}.bg-red{background-color:var(--cl-danger, #ee0a24)!important}.bg-yellow{background-color:#fbe300!important}.bg-black{background-color:var(--cl-text-primary, #323233)!important}.bg-gray{background-color:#848d98!important}.badge-dot{padding:0;margin:0;min-width:7px;min-height:7px;border-radius:50%}.badge.badge-dot:empty{display:inline-block}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.panel-
|
|
1
|
+
.panel-card{padding:0}.card-box{background-color:var(--cl-bg, #ffffff);cursor:default}.card-box>.card-body{padding:16px}.card-box>.card-head+.card-body{padding-top:10px}.card-box .card-body.card-body-padding-0{padding:0}.card-box>.card-footer{padding:16px;border-radius:0;background-color:var(--cl-bg, #ffffff);border-top:1px solid #eaeefb}.card-box.card-default{box-shadow:0 4px 12px #31465914;border-radius:4px}.card-box.card-default>.card-head{padding:12px 16px 0}.card-box.card-default>.card-head>.card-title,.card-box.card-default>.card-head>.card-head-flex>.card-title{font-size:16px;font-weight:700;margin-bottom:0;margin-top:0;letter-spacing:.03em;color:var(--cl-text-primary, #323233);cursor:default}.card-box.card-loopline{box-shadow:none;border:1px solid var(--cl-bg-muted, #f5f5f5);border-radius:4px;-webkit-transition:all .2s;transition:all .2s}.card-box.card-loopline>.card-head{position:relative;min-height:15px}.card-box.card-loopline>.card-head>.card-title,.card-box.card-loopline>.card-head>.card-head-flex>.card-title{position:absolute;top:-10px;margin-left:24px;margin-bottom:0;padding:1px 12px;background:var(--cl-bg, #ffffff);font-weight:700}.card-box.card-loopline>.card-head>.card-explain{padding:16px 16px 0}.card-body .card-box.card-default{box-shadow:none;border:1px solid var(--cl-border, #cfcfcf)}.card-body .tab-content .card-box.card-default{border-width:0}.card-head-flex{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap}.card-box.card-loopline>.card-head>.card-title:empty,.card-box.card-loopline>.card-head>.card-head-flex>.card-title:empty{display:none}
|