@cldemo/ui-kit 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/COMPONENT_CATALOG.md +125 -42
- package/README.md +8 -7
- package/buildLibs/all/{BallColor4-CYDMNYIL.js → BallColor4-B1tO7Tbf.js} +1 -1
- package/buildLibs/{web/BallColor4-CvdyEpUB.cjs → all/BallColor4-XAmB3sGF.cjs} +1 -1
- package/buildLibs/{web/ToastRing-KEtXZej2.cjs → all/ToastRing-BIV-zK0K.cjs} +1 -1
- package/buildLibs/{web/ToastRing-DxVDUCSx.js → all/ToastRing-D7_Cqd_W.js} +1 -1
- package/buildLibs/all/{Video-Bbk0_YWw.js → Video-BCsixuXq.js} +1 -1
- package/buildLibs/all/{Video-BV-GRW4X.cjs → Video-kyxIjktP.cjs} +1 -1
- package/buildLibs/all/{index-Cap0WJgK.cjs → index-0NOmwWqO.cjs} +9 -9
- package/buildLibs/all/{index-sPYdePtz.js → index-CIctx5VJ.js} +110 -102
- package/buildLibs/all/index.cjs +1 -1
- package/buildLibs/all/index.js +1 -1
- package/buildLibs/common/Element/Event/index.d.ts +2 -0
- package/buildLibs/common/Element/index.d.ts +2 -0
- package/buildLibs/common/Tools/index.d.ts +2 -0
- package/buildLibs/common/axios.d.ts +2 -0
- package/buildLibs/common/base.d.ts +2 -0
- package/buildLibs/common/browserProgress.cjs +1 -1
- package/buildLibs/common/browserProgress.d.ts +2 -0
- package/buildLibs/common/browserProgress.js +24 -15
- package/buildLibs/common/day.d.ts +2 -0
- package/buildLibs/common/echart.d.ts +2 -0
- package/buildLibs/common/globalConfig.cjs +1 -1
- package/buildLibs/common/globalConfig.d.ts +2 -0
- package/buildLibs/common/globalConfig.js +12 -8
- package/buildLibs/common/globalTypes.d.ts +1 -0
- package/buildLibs/common/i18n/index.d.ts +2 -0
- package/buildLibs/common/log.d.ts +2 -0
- package/buildLibs/common/promise.d.ts +2 -0
- package/buildLibs/common/tooltip.d.ts +2 -0
- package/buildLibs/core/alert.cjs +1 -0
- package/buildLibs/core/alert.d.ts +1 -0
- package/buildLibs/core/alert.js +1 -0
- package/buildLibs/core/clipboard.cjs +1 -0
- package/buildLibs/core/clipboard.d.ts +1 -0
- package/buildLibs/core/clipboard.js +1 -0
- package/buildLibs/core/codeHighlight.cjs +1 -0
- package/buildLibs/core/codeHighlight.d.ts +1 -0
- package/buildLibs/core/codeHighlight.js +1 -0
- package/buildLibs/core/languagePack.cjs +1 -0
- package/buildLibs/core/languagePack.d.ts +1 -0
- package/buildLibs/core/languagePack.js +1 -0
- package/buildLibs/core/lazyImage.cjs +1 -0
- package/buildLibs/core/lazyImage.d.ts +1 -0
- package/buildLibs/core/lazyImage.js +1 -0
- package/buildLibs/core/loadScreen.cjs +1 -0
- package/buildLibs/core/loadScreen.d.ts +1 -0
- package/buildLibs/core/loadScreen.js +1 -0
- package/buildLibs/core/notify.cjs +1 -0
- package/buildLibs/core/notify.d.ts +1 -0
- package/buildLibs/core/notify.js +1 -0
- package/buildLibs/core/notifyM.cjs +1 -0
- package/buildLibs/core/notifyM.d.ts +1 -0
- package/buildLibs/core/notifyM.js +1 -0
- package/buildLibs/core/preview.cjs +1 -0
- package/buildLibs/core/preview.d.ts +1 -0
- package/buildLibs/core/preview.js +1 -0
- package/buildLibs/core/toast.cjs +1 -0
- package/buildLibs/core/toast.d.ts +1 -0
- package/buildLibs/core/toast.js +1 -0
- package/buildLibs/core/tooltip.cjs +1 -0
- package/buildLibs/core/tooltip.d.ts +1 -0
- package/buildLibs/core/tooltip.js +1 -0
- package/buildLibs/core/validate.cjs +1 -0
- package/buildLibs/core/validate.d.ts +1 -0
- package/buildLibs/core/validate.js +1 -0
- package/buildLibs/core/waves.cjs +1 -0
- package/buildLibs/core/waves.d.ts +1 -0
- package/buildLibs/core/waves.js +1 -0
- package/buildLibs/{all/BallColor4-CaqTfMcX.cjs → mobile/BallColor4-D5cOCCwS.cjs} +1 -1
- package/buildLibs/mobile/{BallColor4-DogqtiHo.js → BallColor4-DW64tRd6.js} +1 -1
- package/buildLibs/{all/ToastRing-BW0hddZN.js → mobile/ToastRing-CBnFEhCg.js} +1 -1
- package/buildLibs/mobile/{ToastRing-BQAASeWu.cjs → ToastRing-DUy5-KJI.cjs} +1 -1
- package/buildLibs/mobile/{index-Bh4jt080.js → index-Ccqb6JSg.js} +1276 -1269
- package/buildLibs/mobile/{index-DmdxP8hd.cjs → index-SXa7oZIH.cjs} +5 -5
- package/buildLibs/mobile/index.cjs +1 -1
- package/buildLibs/mobile/index.js +1 -1
- package/buildLibs/modules/actionSheet.d.ts +1 -1
- package/buildLibs/modules/actionSheet.js +1 -212
- package/buildLibs/modules/anchorNav.d.ts +1 -1
- package/buildLibs/modules/anchorNav.js +1 -147
- package/buildLibs/modules/backTop.d.ts +1 -1
- package/buildLibs/modules/backTop.js +1 -139
- package/buildLibs/modules/badge.d.ts +1 -1
- package/buildLibs/modules/badge.js +1 -4
- package/buildLibs/modules/banner.d.ts +1 -1
- package/buildLibs/modules/banner.js +2 -332
- package/buildLibs/modules/breadcrumb.d.ts +1 -1
- package/buildLibs/modules/breadcrumb.js +1 -73
- package/buildLibs/modules/button.d.ts +1 -1
- package/buildLibs/modules/button.js +1 -4
- package/buildLibs/modules/calendar.d.ts +1 -1
- package/buildLibs/modules/calendar.js +1 -353
- package/buildLibs/modules/calendarM.d.ts +1 -1
- package/buildLibs/modules/calendarM.js +1 -473
- package/buildLibs/modules/callout.d.ts +1 -1
- package/buildLibs/modules/callout.js +1 -45
- package/buildLibs/modules/card.d.ts +1 -1
- package/buildLibs/modules/card.js +1 -4
- package/buildLibs/modules/cardColor.d.ts +1 -1
- package/buildLibs/modules/cardColor.js +1 -54
- package/buildLibs/modules/cell.d.ts +1 -1
- package/buildLibs/modules/cell.js +1 -109
- package/buildLibs/modules/cellSwipe.d.ts +1 -1
- package/buildLibs/modules/cellSwipe.js +1 -159
- package/buildLibs/modules/checkbox.d.ts +1 -1
- package/buildLibs/modules/checkbox.js +1 -4
- package/buildLibs/modules/checkboxOne.d.ts +1 -1
- package/buildLibs/modules/checkboxOne.js +1 -4
- package/buildLibs/modules/clipboard.d.ts +1 -1
- package/buildLibs/modules/clipboard.js +1 -4
- package/buildLibs/modules/codeLegend.d.ts +1 -1
- package/buildLibs/modules/codeLegend.js +1 -149
- package/buildLibs/modules/codeLegendM.d.ts +1 -1
- package/buildLibs/modules/codeLegendM.js +1 -196
- package/buildLibs/modules/collapse.d.ts +1 -1
- package/buildLibs/modules/collapse.js +1 -133
- package/buildLibs/modules/colorPicker.d.ts +1 -1
- package/buildLibs/modules/colorPicker.js +1 -1196
- package/buildLibs/modules/countDown.d.ts +1 -1
- package/buildLibs/modules/countDown.js +1 -139
- package/buildLibs/modules/cropper.d.ts +1 -1
- package/buildLibs/modules/cropper.js +1 -4
- package/buildLibs/modules/cropperM.d.ts +1 -1
- package/buildLibs/modules/cropperM.js +1 -450
- package/buildLibs/modules/cropperPreview.d.ts +1 -1
- package/buildLibs/modules/cropperPreview.js +1 -222
- package/buildLibs/modules/darg.d.ts +1 -1
- package/buildLibs/modules/darg.js +1 -2160
- package/buildLibs/modules/dateTime.d.ts +1 -1
- package/buildLibs/modules/dateTime.js +1 -4
- package/buildLibs/modules/divider.d.ts +1 -1
- package/buildLibs/modules/divider.js +1 -4
- package/buildLibs/modules/dropdownMenu.d.ts +1 -1
- package/buildLibs/modules/dropdownMenu.js +1 -168
- package/buildLibs/modules/dropdownMenuItem.d.ts +1 -1
- package/buildLibs/modules/dropdownMenuItem.js +1 -88
- package/buildLibs/modules/dropdownMenuM.d.ts +1 -1
- package/buildLibs/modules/dropdownMenuM.js +1 -216
- package/buildLibs/modules/dropdownMenuMItem.d.ts +1 -1
- package/buildLibs/modules/dropdownMenuMItem.js +1 -178
- package/buildLibs/modules/dropdownPopup.d.ts +1 -1
- package/buildLibs/modules/dropdownPopup.js +1 -122
- package/buildLibs/modules/echarts.d.ts +1 -1
- package/buildLibs/modules/echarts.js +1 -4
- package/buildLibs/modules/echartsLineAxisTag.d.ts +1 -1
- package/buildLibs/modules/echartsLineAxisTag.js +1 -920
- package/buildLibs/modules/ellipsis.d.ts +1 -1
- package/buildLibs/modules/ellipsis.js +1 -4
- package/buildLibs/modules/empty.d.ts +1 -1
- package/buildLibs/modules/empty.js +1 -65
- package/buildLibs/modules/fileUpload.d.ts +1 -1
- package/buildLibs/modules/fileUpload.js +1 -4
- package/buildLibs/modules/floatBubble.d.ts +1 -1
- package/buildLibs/modules/floatBubble.js +1 -192
- package/buildLibs/modules/floatPanel.d.ts +1 -1
- package/buildLibs/modules/floatPanel.js +1 -279
- package/buildLibs/modules/form.d.ts +1 -1
- package/buildLibs/modules/form.js +1 -4
- package/buildLibs/modules/formGroupBtns.d.ts +1 -1
- package/buildLibs/modules/formGroupBtns.js +1 -87
- package/buildLibs/modules/formGroupHorizontal.d.ts +1 -1
- package/buildLibs/modules/formGroupHorizontal.js +1 -4
- package/buildLibs/modules/formGroupVertical.d.ts +1 -1
- package/buildLibs/modules/formGroupVertical.js +1 -62
- package/buildLibs/modules/formValidate.d.ts +1 -1
- package/buildLibs/modules/formValidate.js +1 -4
- package/buildLibs/modules/framePhone.d.ts +1 -1
- package/buildLibs/modules/framePhone.js +1 -71
- package/buildLibs/modules/grid.d.ts +1 -1
- package/buildLibs/modules/grid.js +1 -95
- package/buildLibs/modules/iconFont.d.ts +1 -1
- package/buildLibs/modules/iconFont.js +1 -4
- package/buildLibs/modules/image.d.ts +1 -1
- package/buildLibs/modules/image.js +1 -4
- package/buildLibs/modules/indexBar.d.ts +1 -1
- package/buildLibs/modules/indexBar.js +1 -173
- package/buildLibs/modules/input.d.ts +1 -1
- package/buildLibs/modules/input.js +1 -4
- package/buildLibs/modules/inputCaptcha.d.ts +1 -1
- package/buildLibs/modules/inputCaptcha.js +1 -136
- package/buildLibs/modules/inputNumber.d.ts +1 -1
- package/buildLibs/modules/inputNumber.js +1 -4
- package/buildLibs/modules/inputNumberStepper.d.ts +1 -1
- package/buildLibs/modules/inputNumberStepper.js +1 -4
- package/buildLibs/modules/inputPassword.d.ts +1 -1
- package/buildLibs/modules/inputPassword.js +1 -149
- package/buildLibs/modules/inputPin.d.ts +1 -1
- package/buildLibs/modules/inputPin.js +1 -182
- package/buildLibs/modules/inputSearch.d.ts +1 -1
- package/buildLibs/modules/inputSearch.js +1 -4
- package/buildLibs/modules/inputTag.d.ts +1 -1
- package/buildLibs/modules/inputTag.js +1 -4
- package/buildLibs/modules/inputTextarea.d.ts +1 -1
- package/buildLibs/modules/inputTextarea.js +1 -4
- package/buildLibs/modules/link.d.ts +1 -1
- package/buildLibs/modules/link.js +1 -4
- package/buildLibs/modules/load.d.ts +1 -1
- package/buildLibs/modules/load.js +1 -4
- package/buildLibs/modules/loadFullCenter.d.ts +1 -1
- package/buildLibs/modules/loadFullCenter.js +1 -44
- package/buildLibs/modules/loadIng.d.ts +1 -1
- package/buildLibs/modules/loadIng.js +1 -4
- package/buildLibs/modules/loadScreen.d.ts +1 -1
- package/buildLibs/modules/loadScreen.js +1 -74
- package/buildLibs/modules/loadWarp.d.ts +1 -1
- package/buildLibs/modules/loadWarp.js +1 -52
- package/buildLibs/modules/modal.d.ts +1 -1
- package/buildLibs/modules/modal.js +1 -4
- package/buildLibs/modules/navBar.d.ts +1 -1
- package/buildLibs/modules/navBar.js +1 -119
- package/buildLibs/modules/noticeBar.d.ts +1 -1
- package/buildLibs/modules/noticeBar.js +1 -145
- package/buildLibs/modules/notifyM.d.ts +1 -1
- package/buildLibs/modules/notifyM.js +1 -277
- package/buildLibs/modules/numberKeyboard.d.ts +1 -1
- package/buildLibs/modules/numberKeyboard.js +1 -287
- package/buildLibs/modules/numberRoll.d.ts +1 -1
- package/buildLibs/modules/numberRoll.js +1 -96
- package/buildLibs/modules/overlay.d.ts +1 -1
- package/buildLibs/modules/overlay.js +1 -4
- package/buildLibs/modules/paginate.d.ts +1 -1
- package/buildLibs/modules/paginate.js +1 -4
- package/buildLibs/modules/picker.d.ts +1 -1
- package/buildLibs/modules/picker.js +1 -4
- package/buildLibs/modules/pickerArea.d.ts +1 -1
- package/buildLibs/modules/pickerArea.js +1 -255
- package/buildLibs/modules/pickerCascader.d.ts +1 -1
- package/buildLibs/modules/pickerCascader.js +1 -316
- package/buildLibs/modules/pickerDate.d.ts +1 -1
- package/buildLibs/modules/pickerDate.js +1 -220
- package/buildLibs/modules/pickerTime.d.ts +1 -1
- package/buildLibs/modules/pickerTime.js +1 -230
- package/buildLibs/modules/popup.d.ts +1 -1
- package/buildLibs/modules/popup.js +1 -4
- package/buildLibs/modules/portlet.d.ts +1 -1
- package/buildLibs/modules/portlet.js +1 -51
- package/buildLibs/modules/previewExample.d.ts +1 -1
- package/buildLibs/modules/previewExample.js +1 -4
- package/buildLibs/modules/progress.d.ts +1 -1
- package/buildLibs/modules/progress.js +1 -262
- package/buildLibs/modules/pullToRefresh.d.ts +1 -1
- package/buildLibs/modules/pullToRefresh.js +1 -4
- package/buildLibs/modules/radio.d.ts +1 -1
- package/buildLibs/modules/radio.js +1 -4
- package/buildLibs/modules/radioOne.d.ts +1 -1
- package/buildLibs/modules/radioOne.js +1 -4
- package/buildLibs/modules/rate.d.ts +1 -1
- package/buildLibs/modules/rate.js +1 -235
- package/buildLibs/modules/scrollCard.d.ts +1 -1
- package/buildLibs/modules/scrollCard.js +1 -368
- package/buildLibs/modules/scrollXFence.d.ts +1 -1
- package/buildLibs/modules/scrollXFence.js +1 -4
- package/buildLibs/modules/select.d.ts +1 -1
- package/buildLibs/modules/select.js +1 -4
- package/buildLibs/modules/selectCascade.d.ts +1 -1
- package/buildLibs/modules/selectCascade.js +1 -4
- package/buildLibs/modules/selectMove.d.ts +1 -1
- package/buildLibs/modules/selectMove.js +1 -1352
- package/buildLibs/modules/selectTag.d.ts +1 -1
- package/buildLibs/modules/selectTag.js +1 -4
- package/buildLibs/modules/selectTree.d.ts +1 -1
- package/buildLibs/modules/selectTree.js +1 -377
- package/buildLibs/modules/sharePanel.d.ts +1 -1
- package/buildLibs/modules/sharePanel.js +1 -151
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-GSyMXu17.js → Index.vue_vue_type_script_setup_true_lang-C4t0E13G.js} +1 -1
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-DtsjjKBG.js → Index.vue_vue_type_script_setup_true_lang-DfsrIstV.js} +274 -273
- package/buildLibs/modules/shared/Validate.vue_vue_type_script_setup_true_lang-CJNHymo3.js +419 -0
- package/buildLibs/modules/sideMenu.d.ts +1 -1
- package/buildLibs/modules/sideMenu.js +1 -227
- package/buildLibs/modules/sidebar.d.ts +1 -1
- package/buildLibs/modules/sidebar.js +1 -63
- package/buildLibs/modules/sidebarSelect.d.ts +1 -1
- package/buildLibs/modules/sidebarSelect.js +1 -86
- package/buildLibs/modules/signature.d.ts +1 -1
- package/buildLibs/modules/signature.js +1 -250
- package/buildLibs/modules/slider.d.ts +1 -1
- package/buildLibs/modules/slider.js +1 -4
- package/buildLibs/modules/steps.d.ts +1 -1
- package/buildLibs/modules/steps.js +1 -112
- package/buildLibs/modules/swipe.d.ts +1 -1
- package/buildLibs/modules/swipe.js +1 -177
- package/buildLibs/modules/switchery.d.ts +1 -1
- package/buildLibs/modules/switchery.js +1 -261
- package/buildLibs/modules/tabM.d.ts +1 -1
- package/buildLibs/modules/tabM.js +1 -115
- package/buildLibs/modules/tabbar.d.ts +1 -1
- package/buildLibs/modules/tabbar.js +1 -119
- package/buildLibs/modules/table.d.ts +1 -1
- package/buildLibs/modules/table.js +1 -2409
- package/buildLibs/modules/tableEdit.d.ts +1 -1
- package/buildLibs/modules/tableEdit.js +1 -79
- package/buildLibs/modules/tableSimple.d.ts +1 -1
- package/buildLibs/modules/tableSimple.js +1 -74
- package/buildLibs/modules/tabs.d.ts +1 -1
- package/buildLibs/modules/tabs.js +1 -358
- package/buildLibs/modules/tags.d.ts +1 -1
- package/buildLibs/modules/tags.js +1 -4
- package/buildLibs/modules/textHighlight.d.ts +1 -1
- package/buildLibs/modules/textHighlight.js +1 -68
- package/buildLibs/modules/toast.d.ts +1 -1
- package/buildLibs/modules/toast.js +1 -198
- package/buildLibs/modules/transitionSlideUpDown.d.ts +1 -1
- package/buildLibs/modules/transitionSlideUpDown.js +1 -4
- package/buildLibs/modules/tree.d.ts +1 -1
- package/buildLibs/modules/tree.js +1 -4
- package/buildLibs/modules/waterfall.d.ts +1 -1
- package/buildLibs/modules/waterfall.js +1 -174
- package/buildLibs/modules/waterfallImage.d.ts +1 -1
- package/buildLibs/modules/waterfallImage.js +1 -49
- package/buildLibs/modules/watermark.d.ts +1 -1
- package/buildLibs/modules/watermark.js +1 -77
- package/buildLibs/modules/weekHour.d.ts +1 -1
- package/buildLibs/modules/weekHour.js +1 -765
- package/buildLibs/modules/xEditable.d.ts +1 -1
- package/buildLibs/modules/xEditable.js +1 -772
- package/buildLibs/styles/Common/meta.json +2 -0
- package/buildLibs/styles/Element/__provide__/LoadScreen.css +0 -31
- package/buildLibs/types/Common/browserProgress.d.ts +3 -1
- package/buildLibs/types/Common/globalConfig.d.ts +35 -2
- package/buildLibs/types/Common/globalTypes.d.ts +12 -2
- package/buildLibs/types/Web/Preview/lazy.d.ts +21 -0
- package/buildLibs/utils/Element/ClBadge.cjs +1 -1
- package/buildLibs/utils/Element/ClBadge.d.ts +1 -1
- package/buildLibs/utils/Element/ClBadge.js +1 -1
- package/buildLibs/utils/Element/ClBreadcrumb.cjs +1 -1
- package/buildLibs/utils/Element/ClBreadcrumb.d.ts +1 -1
- package/buildLibs/utils/Element/ClBreadcrumb.js +1 -1
- package/buildLibs/utils/Element/ClButton.cjs +1 -1
- package/buildLibs/utils/Element/ClButton.d.ts +1 -1
- package/buildLibs/utils/Element/ClButton.js +1 -1
- package/buildLibs/utils/Element/ClCallout.d.ts +1 -1
- package/buildLibs/utils/Element/ClCard.cjs +1 -1
- package/buildLibs/utils/Element/ClCard.d.ts +1 -1
- package/buildLibs/utils/Element/ClCard.js +1 -1
- package/buildLibs/utils/Element/ClCardColor.d.ts +1 -1
- package/buildLibs/utils/Element/ClCheckbox.cjs +1 -1
- package/buildLibs/utils/Element/ClCheckbox.d.ts +1 -1
- package/buildLibs/utils/Element/ClCheckbox.js +1 -1
- package/buildLibs/utils/Element/ClCheckboxOne.cjs +1 -1
- package/buildLibs/utils/Element/ClCheckboxOne.d.ts +1 -1
- package/buildLibs/utils/Element/ClCheckboxOne.js +1 -1
- package/buildLibs/utils/Element/ClClipboard.cjs +1 -1
- package/buildLibs/utils/Element/ClClipboard.d.ts +1 -1
- package/buildLibs/utils/Element/ClClipboard.js +1 -1
- package/buildLibs/utils/Element/ClCollapse.cjs +1 -1
- package/buildLibs/utils/Element/ClCollapse.d.ts +1 -1
- package/buildLibs/utils/Element/ClCollapse.js +1 -1
- package/buildLibs/utils/Element/ClCountDown.d.ts +1 -1
- package/buildLibs/utils/Element/ClDarg.cjs +1 -1
- package/buildLibs/utils/Element/ClDarg.d.ts +1 -1
- package/buildLibs/utils/Element/ClDarg.js +1 -1
- package/buildLibs/utils/Element/ClDivider.cjs +1 -1
- package/buildLibs/utils/Element/ClDivider.d.ts +1 -1
- package/buildLibs/utils/Element/ClDivider.js +1 -1
- package/buildLibs/utils/Element/ClEllipsis.cjs +1 -1
- package/buildLibs/utils/Element/ClEllipsis.d.ts +1 -1
- package/buildLibs/utils/Element/ClEllipsis.js +1 -1
- package/buildLibs/utils/Element/ClEmpty.d.ts +1 -1
- package/buildLibs/utils/Element/ClForm.cjs +1 -1
- package/buildLibs/utils/Element/ClForm.d.ts +1 -1
- package/buildLibs/utils/Element/ClForm.js +1 -1
- package/buildLibs/utils/Element/ClFormGroupBtns.cjs +1 -1
- package/buildLibs/utils/Element/ClFormGroupBtns.d.ts +1 -1
- package/buildLibs/utils/Element/ClFormGroupBtns.js +1 -1
- package/buildLibs/utils/Element/ClFormGroupHorizontal.cjs +1 -1
- package/buildLibs/utils/Element/ClFormGroupHorizontal.d.ts +1 -1
- package/buildLibs/utils/Element/ClFormGroupHorizontal.js +1 -1
- package/buildLibs/utils/Element/ClFormGroupVertical.d.ts +1 -1
- package/buildLibs/utils/Element/ClFormValidate.cjs +1 -1
- package/buildLibs/utils/Element/ClFormValidate.d.ts +1 -1
- package/buildLibs/utils/Element/ClFormValidate.js +1 -1
- package/buildLibs/utils/Element/ClIconFont.cjs +1 -1
- package/buildLibs/utils/Element/ClIconFont.d.ts +1 -1
- package/buildLibs/utils/Element/ClIconFont.js +1 -1
- package/buildLibs/utils/Element/ClImage.cjs +1 -1
- package/buildLibs/utils/Element/ClImage.d.ts +1 -1
- package/buildLibs/utils/Element/ClImage.js +1 -1
- package/buildLibs/utils/Element/ClInput.cjs +1 -1
- package/buildLibs/utils/Element/ClInput.d.ts +1 -1
- package/buildLibs/utils/Element/ClInput.js +1 -1
- package/buildLibs/utils/Element/ClInputCaptcha.cjs +1 -1
- package/buildLibs/utils/Element/ClInputCaptcha.d.ts +1 -1
- package/buildLibs/utils/Element/ClInputCaptcha.js +2 -2
- package/buildLibs/utils/Element/ClInputNumber.cjs +1 -1
- package/buildLibs/utils/Element/ClInputNumber.d.ts +1 -1
- package/buildLibs/utils/Element/ClInputNumber.js +1 -1
- package/buildLibs/utils/Element/ClInputNumberStepper.cjs +1 -1
- package/buildLibs/utils/Element/ClInputNumberStepper.d.ts +1 -1
- package/buildLibs/utils/Element/ClInputNumberStepper.js +1 -1
- package/buildLibs/utils/Element/ClInputPassword.cjs +1 -1
- package/buildLibs/utils/Element/ClInputPassword.d.ts +1 -1
- package/buildLibs/utils/Element/ClInputPassword.js +2 -2
- package/buildLibs/utils/Element/ClInputSearch.cjs +1 -1
- package/buildLibs/utils/Element/ClInputSearch.d.ts +1 -1
- package/buildLibs/utils/Element/ClInputSearch.js +1 -1
- package/buildLibs/utils/Element/ClInputTextarea.cjs +1 -1
- package/buildLibs/utils/Element/ClInputTextarea.d.ts +1 -1
- package/buildLibs/utils/Element/ClInputTextarea.js +1 -1
- package/buildLibs/utils/Element/ClLink.cjs +1 -1
- package/buildLibs/utils/Element/ClLink.d.ts +1 -1
- package/buildLibs/utils/Element/ClLink.js +1 -1
- package/buildLibs/utils/Element/ClLoad.cjs +1 -1
- package/buildLibs/utils/Element/ClLoad.d.ts +1 -1
- package/buildLibs/utils/Element/ClLoad.js +1 -1
- package/buildLibs/utils/Element/ClLoadFullCenter.cjs +1 -1
- package/buildLibs/utils/Element/ClLoadFullCenter.d.ts +1 -1
- package/buildLibs/utils/Element/ClLoadFullCenter.js +2 -2
- package/buildLibs/utils/Element/ClLoadIng.cjs +1 -1
- package/buildLibs/utils/Element/ClLoadIng.d.ts +1 -1
- package/buildLibs/utils/Element/ClLoadIng.js +1 -1
- package/buildLibs/utils/Element/ClLoadScreen.cjs +1 -1
- package/buildLibs/utils/Element/ClLoadScreen.d.ts +1 -1
- package/buildLibs/utils/Element/ClLoadScreen.js +2 -72
- package/buildLibs/utils/Element/ClLoadWarp.cjs +1 -1
- package/buildLibs/utils/Element/ClLoadWarp.d.ts +1 -1
- package/buildLibs/utils/Element/ClLoadWarp.js +1 -1
- package/buildLibs/utils/Element/ClModal.cjs +1 -1
- package/buildLibs/utils/Element/ClModal.d.ts +1 -1
- package/buildLibs/utils/Element/ClModal.js +1 -1
- package/buildLibs/utils/Element/ClNumberRoll.d.ts +1 -1
- package/buildLibs/utils/Element/ClOverlay.cjs +1 -1
- package/buildLibs/utils/Element/ClOverlay.d.ts +1 -1
- package/buildLibs/utils/Element/ClOverlay.js +1 -1
- package/buildLibs/utils/Element/ClProgress.cjs +1 -1
- package/buildLibs/utils/Element/ClProgress.d.ts +1 -1
- package/buildLibs/utils/Element/ClProgress.js +1 -1
- package/buildLibs/utils/Element/ClRadio.cjs +1 -1
- package/buildLibs/utils/Element/ClRadio.d.ts +1 -1
- package/buildLibs/utils/Element/ClRadio.js +1 -1
- package/buildLibs/utils/Element/ClRadioOne.cjs +1 -1
- package/buildLibs/utils/Element/ClRadioOne.d.ts +1 -1
- package/buildLibs/utils/Element/ClRadioOne.js +1 -1
- package/buildLibs/utils/Element/ClSlider.cjs +1 -1
- package/buildLibs/utils/Element/ClSlider.d.ts +1 -1
- package/buildLibs/utils/Element/ClSlider.js +1 -1
- package/buildLibs/utils/Element/ClSwitchery.cjs +1 -1
- package/buildLibs/utils/Element/ClSwitchery.d.ts +1 -1
- package/buildLibs/utils/Element/ClSwitchery.js +2 -2
- package/buildLibs/utils/Element/ClTags.cjs +1 -1
- package/buildLibs/utils/Element/ClTags.d.ts +1 -1
- package/buildLibs/utils/Element/ClTags.js +1 -1
- package/buildLibs/utils/Element/ClTransitionSlideUpDown.d.ts +1 -1
- package/buildLibs/utils/Element/ClWaterfall.d.ts +1 -1
- package/buildLibs/utils/Element/ClWaterfallImage.cjs +1 -1
- package/buildLibs/utils/Element/ClWaterfallImage.d.ts +1 -1
- package/buildLibs/utils/Element/ClWaterfallImage.js +2 -2
- package/buildLibs/utils/Element/__directive__/LazyImage.cjs +1 -0
- package/buildLibs/utils/Element/__directive__/LazyImage.d.ts +1 -0
- package/buildLibs/utils/Element/__directive__/LazyImage.js +6 -0
- package/buildLibs/utils/Element/__provide__/Clipboard.cjs +1 -0
- package/buildLibs/utils/Element/__provide__/Clipboard.d.ts +1 -0
- package/buildLibs/utils/Element/__provide__/Clipboard.js +37 -0
- package/buildLibs/utils/Element/__provide__/LanguagePack.cjs +1 -0
- package/buildLibs/utils/Element/__provide__/LanguagePack.d.ts +1 -0
- package/buildLibs/utils/Element/__provide__/LanguagePack.js +28 -0
- package/buildLibs/utils/Element/__provide__/LoadScreen.cjs +1 -0
- package/buildLibs/utils/Element/__provide__/LoadScreen.d.ts +1 -0
- package/buildLibs/utils/Element/__provide__/LoadScreen.js +23 -0
- package/buildLibs/utils/Element/__provide__/Validate.cjs +1 -0
- package/buildLibs/utils/Element/__provide__/Validate.d.ts +1 -0
- package/buildLibs/utils/Element/__provide__/Validate.js +104 -0
- package/buildLibs/utils/Element/installCommon.cjs +1 -0
- package/buildLibs/utils/Element/installCommon.d.ts +1 -0
- package/buildLibs/utils/Element/installCommon.js +24 -0
- package/buildLibs/utils/Mobile/ClActionSheet.cjs +1 -1
- package/buildLibs/utils/Mobile/ClActionSheet.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClActionSheet.js +3 -3
- package/buildLibs/utils/Mobile/ClBackTop.cjs +1 -1
- package/buildLibs/utils/Mobile/ClBackTop.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClBackTop.js +2 -2
- package/buildLibs/utils/Mobile/ClBanner.cjs +1 -1
- package/buildLibs/utils/Mobile/ClBanner.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClBanner.js +3 -3
- package/buildLibs/utils/Mobile/ClCalendarM.cjs +1 -1
- package/buildLibs/utils/Mobile/ClCalendarM.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClCalendarM.js +4 -4
- package/buildLibs/utils/Mobile/ClCell.cjs +1 -1
- package/buildLibs/utils/Mobile/ClCell.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClCell.js +2 -2
- package/buildLibs/utils/Mobile/ClCellSwipe.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClCodeLegendM.cjs +1 -1
- package/buildLibs/utils/Mobile/ClCodeLegendM.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClCodeLegendM.js +2 -2
- package/buildLibs/utils/Mobile/ClCropperM.cjs +1 -1
- package/buildLibs/utils/Mobile/ClCropperM.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClCropperM.js +4 -4
- package/buildLibs/utils/Mobile/ClDropdownMenuM.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClDropdownMenuMItem.cjs +1 -1
- package/buildLibs/utils/Mobile/ClDropdownMenuMItem.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClDropdownMenuMItem.js +3 -3
- package/buildLibs/utils/Mobile/ClFloatBubble.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClFloatPanel.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClGrid.cjs +1 -1
- package/buildLibs/utils/Mobile/ClGrid.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClGrid.js +1 -1
- package/buildLibs/utils/Mobile/ClIndexBar.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClInputPin.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClNavBar.cjs +1 -1
- package/buildLibs/utils/Mobile/ClNavBar.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClNavBar.js +1 -1
- package/buildLibs/utils/Mobile/ClNoticeBar.cjs +1 -1
- package/buildLibs/utils/Mobile/ClNoticeBar.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClNoticeBar.js +1 -1
- package/buildLibs/utils/Mobile/ClNotifyM.cjs +1 -1
- package/buildLibs/utils/Mobile/ClNotifyM.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClNotifyM.js +1 -1
- package/buildLibs/utils/Mobile/ClNumberKeyboard.cjs +1 -1
- package/buildLibs/utils/Mobile/ClNumberKeyboard.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClNumberKeyboard.js +2 -2
- package/buildLibs/utils/Mobile/ClPicker.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPicker.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClPicker.js +1 -1
- package/buildLibs/utils/Mobile/ClPickerArea.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPickerArea.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClPickerArea.js +1 -1
- package/buildLibs/utils/Mobile/ClPickerCascader.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPickerCascader.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClPickerCascader.js +2 -2
- package/buildLibs/utils/Mobile/ClPickerDate.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPickerDate.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClPickerDate.js +2 -2
- package/buildLibs/utils/Mobile/ClPickerTime.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPickerTime.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClPickerTime.js +2 -2
- package/buildLibs/utils/Mobile/ClPopup.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPopup.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClPopup.js +1 -1
- package/buildLibs/utils/Mobile/ClPullToRefresh.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPullToRefresh.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClPullToRefresh.js +1 -1
- package/buildLibs/utils/Mobile/ClRate.cjs +1 -1
- package/buildLibs/utils/Mobile/ClRate.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClRate.js +2 -2
- package/buildLibs/utils/Mobile/ClScrollCard.cjs +1 -1
- package/buildLibs/utils/Mobile/ClScrollCard.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClScrollCard.js +3 -3
- package/buildLibs/utils/Mobile/ClSharePanel.cjs +1 -1
- package/buildLibs/utils/Mobile/ClSharePanel.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClSharePanel.js +2 -2
- package/buildLibs/utils/Mobile/ClSidebar.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClSidebarSelect.cjs +1 -1
- package/buildLibs/utils/Mobile/ClSidebarSelect.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClSidebarSelect.js +1 -1
- package/buildLibs/utils/Mobile/ClSignature.cjs +1 -1
- package/buildLibs/utils/Mobile/ClSignature.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClSignature.js +1 -1
- package/buildLibs/utils/Mobile/ClSteps.cjs +1 -1
- package/buildLibs/utils/Mobile/ClSteps.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClSteps.js +1 -1
- package/buildLibs/utils/Mobile/ClSwipe.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClTabM.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClTabbar.cjs +1 -1
- package/buildLibs/utils/Mobile/ClTabbar.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClTabbar.js +2 -2
- package/buildLibs/utils/Mobile/ClTextHighlight.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClToast.cjs +1 -1
- package/buildLibs/utils/Mobile/ClToast.d.ts +1 -1
- package/buildLibs/utils/Mobile/ClToast.js +1 -1
- package/buildLibs/utils/Mobile/ClWatermark.d.ts +1 -1
- package/buildLibs/utils/Mobile/__provide__/NotifyM.cjs +1 -1
- package/buildLibs/utils/Mobile/__provide__/NotifyM.d.ts +1 -1
- package/buildLibs/utils/Mobile/__provide__/NotifyM.js +11 -11
- package/buildLibs/utils/Mobile/__provide__/Toast.cjs +1 -1
- package/buildLibs/utils/Mobile/__provide__/Toast.d.ts +1 -1
- package/buildLibs/utils/Mobile/__provide__/Toast.js +17 -17
- package/buildLibs/utils/Shared/{Base.vue_vue_type_script_setup_true_lang-5_vbZ_4R.js → Base.vue_vue_type_script_setup_true_lang-Dl0UiFuI.js} +1 -1
- package/buildLibs/utils/Shared/{Base.vue_vue_type_script_setup_true_lang-BReU8HHD.js → Base.vue_vue_type_script_setup_true_lang-Dn7s_GGz.js} +1 -1
- package/buildLibs/utils/Shared/{BaseTransition.vue_vue_type_script_setup_true_lang-CmETUA__.js → BaseTransition.vue_vue_type_script_setup_true_lang-DA34fqR6.js} +1 -1
- package/buildLibs/utils/Shared/{BaseTransition.vue_vue_type_script_setup_true_lang-D4VcdHQo.js → BaseTransition.vue_vue_type_script_setup_true_lang-I6J8vBkR.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BJuly3Dc.js → Index.vue_vue_type_script_setup_true_lang-2ZL3h4ke.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-yQG3rOxU.js → Index.vue_vue_type_script_setup_true_lang-B2xxe-gj.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BTikeo7T.js → Index.vue_vue_type_script_setup_true_lang-B4wLYUS7.js} +5 -5
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B-LBJS_U.js → Index.vue_vue_type_script_setup_true_lang-B6aiJ0T_.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-d8FRnWoo.js → Index.vue_vue_type_script_setup_true_lang-B6mrwacu.js} +1 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BC8lIalF.js +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BKNG_Cdl.js +1 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CPwtuGiA.js → Index.vue_vue_type_script_setup_true_lang-BKrRiRoF.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-D53FO2PF.js → Index.vue_vue_type_script_setup_true_lang-BPu2Wq9y.js} +2 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BQwt39eR.js +120 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BXQl9ZJr.js → Index.vue_vue_type_script_setup_true_lang-BXWa903T.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DsTDQ4p-.js → Index.vue_vue_type_script_setup_true_lang-BZ0pwI22.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-WePMnXeI.js → Index.vue_vue_type_script_setup_true_lang-Bbk1BxEq.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BahSP_of.js → Index.vue_vue_type_script_setup_true_lang-BeY40OpW.js} +2 -2
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BRyvdWb7.js → Index.vue_vue_type_script_setup_true_lang-Bfji2Whf.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BppPP2_o.js → Index.vue_vue_type_script_setup_true_lang-Bj0lKDBR.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-SE1_-Y3D.js → Index.vue_vue_type_script_setup_true_lang-BnFtwIqC.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BLr46kTp.js → Index.vue_vue_type_script_setup_true_lang-Br1jq8i6.js} +6 -6
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DiFMOo2n.js → Index.vue_vue_type_script_setup_true_lang-BtlpTQO-.js} +8 -8
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DBEuF9lY.js → Index.vue_vue_type_script_setup_true_lang-BuEtcpnj.js} +1 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Butq4gj-.js +1 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DlaLkFjd.js → Index.vue_vue_type_script_setup_true_lang-ByrpuVbR.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BO2XU-fq.js → Index.vue_vue_type_script_setup_true_lang-Bz0g83T6.js} +2 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BzhSu_r3.js +1 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DTnllTwD.js → Index.vue_vue_type_script_setup_true_lang-BzuiaXQe.js} +2 -2
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B-K0phQ2.js → Index.vue_vue_type_script_setup_true_lang-C52WPuaY.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CIky1_fS.js → Index.vue_vue_type_script_setup_true_lang-C7M_3HR0.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BFq7G64T.js → Index.vue_vue_type_script_setup_true_lang-CCor2Ugz.js} +3 -3
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B2cccX6M.js → Index.vue_vue_type_script_setup_true_lang-CFen6ULY.js} +1 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CNLr4FbS.js +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CNoHvb2F.js +1 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-08Gdtb7o.js → Index.vue_vue_type_script_setup_true_lang-CUq-x89X.js} +2 -2
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-COprcd8r.js → Index.vue_vue_type_script_setup_true_lang-Ch6eF_cp.js} +2 -2
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-PraAnYLk.js → Index.vue_vue_type_script_setup_true_lang-ChmL4TJs.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-D15_sdie.js → Index.vue_vue_type_script_setup_true_lang-Cl7fkQ6_.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BLoX4k7J.js → Index.vue_vue_type_script_setup_true_lang-CumsUcci.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CSt6K9AQ.js → Index.vue_vue_type_script_setup_true_lang-D4PQKd5b.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Bn3f-2m-.js → Index.vue_vue_type_script_setup_true_lang-D6yVZJvt.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DjwVdgdl.js → Index.vue_vue_type_script_setup_true_lang-D7M1S5lI.js} +279 -278
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-0xVPFBUW.js → Index.vue_vue_type_script_setup_true_lang-DFppMubk.js} +7 -6
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Cm8_ZNJ7.js → Index.vue_vue_type_script_setup_true_lang-DJYEGSnc.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-b4R4PHf0.js → Index.vue_vue_type_script_setup_true_lang-DK0hs8bb.js} +1 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DNjo2kbg.js +74 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CQVg87mD.js → Index.vue_vue_type_script_setup_true_lang-DQBa9Pny.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Bd56L0m6.js → Index.vue_vue_type_script_setup_true_lang-DQmXTEq-.js} +3 -3
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BhGGH7ms.js → Index.vue_vue_type_script_setup_true_lang-DX9SitGp.js} +11 -11
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DAuZLHen.js → Index.vue_vue_type_script_setup_true_lang-D_GsoOLm.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-M72THnHz.js → Index.vue_vue_type_script_setup_true_lang-DfHi5Zuv.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B5MSug5Q.js → Index.vue_vue_type_script_setup_true_lang-DfvtkXRU.js} +4 -4
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CgNMWZqs.js → Index.vue_vue_type_script_setup_true_lang-DjeTtNM6.js} +34 -34
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B2kyuq50.js → Index.vue_vue_type_script_setup_true_lang-DmeDtJvz.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Dnw-Opme.js → Index.vue_vue_type_script_setup_true_lang-Dn63CT7W.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-bKzsLLvg.js → Index.vue_vue_type_script_setup_true_lang-DuZNkaR0.js} +1 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-EG5hgxoY.js +1 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B9xISM7N.js → Index.vue_vue_type_script_setup_true_lang-RBYo7N7Z.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CtBOIjdU.js → Index.vue_vue_type_script_setup_true_lang-_F9J4-Q1.js} +4 -4
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DZSulESm.js → Index.vue_vue_type_script_setup_true_lang-_jJNPocq.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B0NaQAuE.js → Index.vue_vue_type_script_setup_true_lang-bYE_Eer4.js} +3 -3
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Cx56SGXr.js → Index.vue_vue_type_script_setup_true_lang-bybpF3my.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BRJ2Ll2r.js → Index.vue_vue_type_script_setup_true_lang-c085vJ-u.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-qOys54ns.js → Index.vue_vue_type_script_setup_true_lang-ef-Lbwxl.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CnLyIXBs.js → Index.vue_vue_type_script_setup_true_lang-f6va8eHF.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Dq-sCBRz.js → Index.vue_vue_type_script_setup_true_lang-fgqA2nof.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-8-8svPDH.js → Index.vue_vue_type_script_setup_true_lang-gR6txSCA.js} +1 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-jyymIwdR.js +1 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-K7pBVuwe.js → Index.vue_vue_type_script_setup_true_lang-tmqr2c2p.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BxWYROZH.js → Index.vue_vue_type_script_setup_true_lang-wPTIA5Lr.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BAUA1fQJ.js → Index.vue_vue_type_script_setup_true_lang-xW9nixd_.js} +1 -1
- package/buildLibs/utils/Shared/Index10.css +1 -1
- package/buildLibs/utils/Shared/Index11.css +1 -1
- package/buildLibs/utils/Shared/Index12.css +1 -1
- package/buildLibs/utils/Shared/Index13.css +1 -1
- package/buildLibs/utils/Shared/Index14.css +1 -1
- package/buildLibs/utils/Shared/Index15.css +1 -1
- package/buildLibs/utils/Shared/Index16.css +1 -1
- package/buildLibs/utils/Shared/Index17.css +1 -1
- package/buildLibs/utils/Shared/Index18.css +1 -1
- package/buildLibs/utils/Shared/Index19.css +1 -1
- package/buildLibs/utils/Shared/Index20.css +1 -1
- package/buildLibs/utils/Shared/Index21.css +1 -1
- package/buildLibs/utils/Shared/Index22.css +1 -1
- package/buildLibs/utils/Shared/Index23.css +1 -1
- package/buildLibs/utils/Shared/Index24.css +1 -1
- package/buildLibs/utils/Shared/Index25.css +1 -1
- package/buildLibs/utils/Shared/Index26.css +1 -1
- package/buildLibs/utils/Shared/Index27.css +1 -1
- package/buildLibs/utils/Shared/Index28.css +1 -1
- package/buildLibs/utils/Shared/Index29.css +1 -1
- package/buildLibs/utils/Shared/Index30.css +1 -1
- package/buildLibs/utils/Shared/Index31.css +1 -1
- package/buildLibs/utils/Shared/Index32.css +1 -1
- package/buildLibs/utils/Shared/Index33.css +1 -1
- package/buildLibs/utils/Shared/Index34.css +1 -1
- package/buildLibs/utils/Shared/Index35.css +1 -1
- package/buildLibs/utils/Shared/Index36.css +1 -1
- package/buildLibs/utils/Shared/Index37.css +1 -1
- package/buildLibs/utils/Shared/Index38.css +1 -1
- package/buildLibs/utils/Shared/Index39.css +1 -0
- package/buildLibs/utils/Shared/Index4.css +1 -1
- package/buildLibs/utils/Shared/Index40.css +1 -0
- package/buildLibs/utils/Shared/Index41.css +1 -0
- package/buildLibs/utils/Shared/Index5.css +1 -1
- package/buildLibs/utils/Shared/Index6.css +1 -1
- package/buildLibs/utils/Shared/Index7.css +1 -1
- package/buildLibs/utils/Shared/Index8.css +1 -1
- package/buildLibs/utils/Shared/Index9.css +1 -1
- package/buildLibs/utils/Shared/{Ing.vue_vue_type_script_setup_true_lang-DPFunPx2.js → Ing.vue_vue_type_script_setup_true_lang-CGFlREiD.js} +1 -1
- package/buildLibs/utils/Shared/{Ing.vue_vue_type_script_setup_true_lang-Zb0-4POE.js → Ing.vue_vue_type_script_setup_true_lang-CXLxBRdP.js} +1 -1
- package/buildLibs/utils/Shared/{List.vue_vue_type_script_setup_true_lang-BLgui2Zv.js → List.vue_vue_type_script_setup_true_lang-0EtOdp73.js} +3 -3
- package/buildLibs/utils/Shared/{List.vue_vue_type_script_setup_true_lang-DJAqJJnH.js → List.vue_vue_type_script_setup_true_lang-G2klceWn.js} +1 -1
- package/buildLibs/utils/Shared/{One.vue_vue_type_script_setup_true_lang-BRIVGray.js → One.vue_vue_type_script_setup_true_lang-CLUQLstT.js} +2 -2
- package/buildLibs/utils/Shared/{One.vue_vue_type_script_setup_true_lang-Du9X7x9H.js → One.vue_vue_type_script_setup_true_lang-CREhY2it.js} +2 -2
- package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-D89MNwcx.js +1 -0
- package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-_Oip87Q5.js +1 -0
- package/buildLibs/utils/Shared/{Popup.vue_vue_type_script_setup_true_lang-d2TT0lCU.js → Popup.vue_vue_type_script_setup_true_lang-B1FPgy2w.js} +1 -1
- package/buildLibs/utils/Shared/{Popup.vue_vue_type_script_setup_true_lang-hfNlyh_i.js → Popup.vue_vue_type_script_setup_true_lang-lq2pb7vN.js} +2 -2
- package/buildLibs/utils/Shared/Validate.vue_vue_type_script_setup_true_lang-BwcOP-Dw.js +321 -0
- package/buildLibs/utils/Shared/Validate.vue_vue_type_script_setup_true_lang-iQhIBpru.js +1 -0
- package/buildLibs/utils/Shared/core-C6MTnOZl.js +17 -0
- package/buildLibs/utils/Shared/core-DkTnn6Hr.js +1 -0
- package/buildLibs/utils/Shared/globalConfig-BjG8BDet.js +1 -0
- package/buildLibs/utils/Shared/globalConfig-C5mivGXK.js +20 -0
- package/buildLibs/utils/Shared/index-BHXq3tfy.js +1 -0
- package/buildLibs/utils/Shared/{language-pMmux6Js.js → index-BIzRLXG5.js} +44 -151
- package/buildLibs/utils/Shared/index-C2go56jd.js +1 -0
- package/buildLibs/utils/Shared/index-CH1kcNPT.js +23 -0
- package/buildLibs/utils/Shared/index-CZoT585K.js +1 -0
- package/buildLibs/utils/Shared/index-CmFWmRVX.js +1 -0
- package/buildLibs/utils/Shared/index-CmQXtjeZ.js +370 -0
- package/buildLibs/utils/Shared/index-CtGhbcyx.js +1 -0
- package/buildLibs/utils/Shared/index-DDMSc-Kb.js +59 -0
- package/buildLibs/utils/Shared/index-DOlH83KS.js +19 -0
- package/buildLibs/utils/Shared/index-Dc_m9J6h.js +1 -0
- package/buildLibs/utils/Shared/index-DoxFaAkn.js +420 -0
- package/buildLibs/utils/Shared/language-BaLIp7bA.js +111 -0
- package/buildLibs/utils/Shared/language-CBZjQ9dC.js +1 -0
- package/buildLibs/utils/Shared/{use-CRdlCpEV.js → lazy-BnJvXuIy.js} +34 -47
- package/buildLibs/utils/Shared/lazy-CkM9Gsf2.js +1 -0
- package/buildLibs/utils/Shared/{log-BbLqiWNM.js → log-CSNil8va.js} +1 -1
- package/buildLibs/utils/Shared/{log-C2ZbqiAV.js → log-gqSePaMZ.js} +1 -1
- package/buildLibs/utils/Shared/use-BDiunhgx.js +1 -0
- package/buildLibs/utils/Shared/use-DJuwo6MI.js +17 -0
- package/buildLibs/utils/Web/ClAnchorNav.cjs +1 -1
- package/buildLibs/utils/Web/ClAnchorNav.d.ts +1 -1
- package/buildLibs/utils/Web/ClAnchorNav.js +2 -2
- package/buildLibs/utils/Web/ClCalendar.cjs +1 -1
- package/buildLibs/utils/Web/ClCalendar.d.ts +1 -1
- package/buildLibs/utils/Web/ClCalendar.js +4 -4
- package/buildLibs/utils/Web/ClCodeLegend.cjs +1 -1
- package/buildLibs/utils/Web/ClCodeLegend.d.ts +1 -1
- package/buildLibs/utils/Web/ClCodeLegend.js +2 -2
- package/buildLibs/utils/Web/ClColorPicker.cjs +1 -1
- package/buildLibs/utils/Web/ClColorPicker.d.ts +1 -1
- package/buildLibs/utils/Web/ClColorPicker.js +5 -5
- package/buildLibs/utils/Web/ClCropper.cjs +1 -1
- package/buildLibs/utils/Web/ClCropper.d.ts +1 -1
- package/buildLibs/utils/Web/ClCropper.js +1 -1
- package/buildLibs/utils/Web/ClCropperPreview.cjs +1 -1
- package/buildLibs/utils/Web/ClCropperPreview.d.ts +1 -1
- package/buildLibs/utils/Web/ClCropperPreview.js +5 -5
- package/buildLibs/utils/Web/ClDateTime.cjs +1 -1
- package/buildLibs/utils/Web/ClDateTime.d.ts +1 -1
- package/buildLibs/utils/Web/ClDateTime.js +1 -1
- package/buildLibs/utils/Web/ClDropdownMenu.cjs +1 -1
- package/buildLibs/utils/Web/ClDropdownMenu.d.ts +1 -1
- package/buildLibs/utils/Web/ClDropdownMenu.js +2 -2
- package/buildLibs/utils/Web/ClDropdownMenuItem.cjs +1 -1
- package/buildLibs/utils/Web/ClDropdownMenuItem.d.ts +1 -1
- package/buildLibs/utils/Web/ClDropdownMenuItem.js +1 -1
- package/buildLibs/utils/Web/ClDropdownPopup.cjs +1 -1
- package/buildLibs/utils/Web/ClDropdownPopup.d.ts +1 -1
- package/buildLibs/utils/Web/ClDropdownPopup.js +2 -2
- package/buildLibs/utils/Web/ClEcharts.cjs +1 -1
- package/buildLibs/utils/Web/ClEcharts.d.ts +1 -1
- package/buildLibs/utils/Web/ClEcharts.js +1 -1
- package/buildLibs/utils/Web/ClEchartsLineAxisTag.cjs +1 -1
- package/buildLibs/utils/Web/ClEchartsLineAxisTag.d.ts +1 -1
- package/buildLibs/utils/Web/ClEchartsLineAxisTag.js +2 -2
- package/buildLibs/utils/Web/ClFileUpload.cjs +1 -1
- package/buildLibs/utils/Web/ClFileUpload.d.ts +1 -1
- package/buildLibs/utils/Web/ClFileUpload.js +1 -1
- package/buildLibs/utils/Web/ClFramePhone.d.ts +1 -1
- package/buildLibs/utils/Web/ClInputTag.cjs +1 -1
- package/buildLibs/utils/Web/ClInputTag.d.ts +1 -1
- package/buildLibs/utils/Web/ClInputTag.js +1 -1
- package/buildLibs/utils/Web/ClPaginate.cjs +1 -1
- package/buildLibs/utils/Web/ClPaginate.d.ts +1 -1
- package/buildLibs/utils/Web/ClPaginate.js +1 -1
- package/buildLibs/utils/Web/ClPortlet.d.ts +1 -1
- package/buildLibs/utils/Web/ClPreviewExample.cjs +1 -1
- package/buildLibs/utils/Web/ClPreviewExample.d.ts +1 -1
- package/buildLibs/utils/Web/ClPreviewExample.js +1 -1
- package/buildLibs/utils/Web/ClScrollXFence.cjs +1 -1
- package/buildLibs/utils/Web/ClScrollXFence.d.ts +1 -1
- package/buildLibs/utils/Web/ClScrollXFence.js +1 -1
- package/buildLibs/utils/Web/ClSelect.cjs +1 -1
- package/buildLibs/utils/Web/ClSelect.d.ts +1 -1
- package/buildLibs/utils/Web/ClSelect.js +1 -1
- package/buildLibs/utils/Web/ClSelectCascade.cjs +1 -1
- package/buildLibs/utils/Web/ClSelectCascade.d.ts +1 -1
- package/buildLibs/utils/Web/ClSelectCascade.js +1 -1
- package/buildLibs/utils/Web/ClSelectMove.cjs +1 -1
- package/buildLibs/utils/Web/ClSelectMove.d.ts +1 -1
- package/buildLibs/utils/Web/ClSelectMove.js +7 -7
- package/buildLibs/utils/Web/ClSelectTag.cjs +1 -1
- package/buildLibs/utils/Web/ClSelectTag.d.ts +1 -1
- package/buildLibs/utils/Web/ClSelectTag.js +1 -1
- package/buildLibs/utils/Web/ClSelectTree.cjs +1 -1
- package/buildLibs/utils/Web/ClSelectTree.d.ts +1 -1
- package/buildLibs/utils/Web/ClSelectTree.js +4 -4
- package/buildLibs/utils/Web/ClSideMenu.cjs +1 -1
- package/buildLibs/utils/Web/ClSideMenu.d.ts +1 -1
- package/buildLibs/utils/Web/ClSideMenu.js +2 -2
- package/buildLibs/utils/Web/ClTable.cjs +1 -1
- package/buildLibs/utils/Web/ClTable.d.ts +1 -1
- package/buildLibs/utils/Web/ClTable.js +10 -10
- package/buildLibs/utils/Web/ClTableEdit.d.ts +1 -1
- package/buildLibs/utils/Web/ClTableSimple.d.ts +1 -1
- package/buildLibs/utils/Web/ClTabs.cjs +1 -1
- package/buildLibs/utils/Web/ClTabs.d.ts +1 -1
- package/buildLibs/utils/Web/ClTabs.js +3 -3
- package/buildLibs/utils/Web/ClTree.cjs +1 -1
- package/buildLibs/utils/Web/ClTree.d.ts +1 -1
- package/buildLibs/utils/Web/ClTree.js +1 -1
- package/buildLibs/utils/Web/ClWeekHour.cjs +1 -1
- package/buildLibs/utils/Web/ClWeekHour.d.ts +1 -1
- package/buildLibs/utils/Web/ClWeekHour.js +3 -3
- package/buildLibs/utils/Web/ClXEditable.cjs +1 -1
- package/buildLibs/utils/Web/ClXEditable.d.ts +1 -1
- package/buildLibs/utils/Web/ClXEditable.js +19 -19
- package/buildLibs/utils/Web/__directive__/CodeHighlight.cjs +1 -1
- package/buildLibs/utils/Web/__directive__/CodeHighlight.js +3 -16
- package/buildLibs/utils/Web/__directive__/Tooltip.cjs +1 -1
- package/buildLibs/utils/Web/__directive__/Tooltip.js +6 -410
- package/buildLibs/utils/Web/__directive__/Waves.cjs +1 -1
- package/buildLibs/utils/Web/__directive__/Waves.js +4 -51
- package/buildLibs/utils/Web/__provide__/Alert.cjs +1 -1
- package/buildLibs/utils/Web/__provide__/Alert.d.ts +1 -1
- package/buildLibs/utils/Web/__provide__/Alert.js +39 -39
- package/buildLibs/utils/Web/__provide__/Notify.cjs +1 -1
- package/buildLibs/utils/Web/__provide__/Notify.d.ts +1 -1
- package/buildLibs/utils/Web/__provide__/Notify.js +8 -8
- package/buildLibs/utils/Web/__provide__/Preview.cjs +1 -1
- package/buildLibs/utils/Web/__provide__/Preview.d.ts +1 -1
- package/buildLibs/utils/Web/__provide__/Preview.js +8 -365
- package/buildLibs/utils/core/all.cjs +1 -0
- package/buildLibs/utils/core/all.js +7 -0
- package/buildLibs/utils/core/mobile.cjs +1 -0
- package/buildLibs/utils/core/mobile.js +14 -0
- package/buildLibs/utils/core/web.cjs +1 -0
- package/buildLibs/utils/core/web.js +26 -0
- package/buildLibs/web/{BallColor4-Bk0PbmjR.js → BallColor4-CGz84e-8.js} +1 -1
- package/buildLibs/{mobile/BallColor4-C7lQaABY.cjs → web/BallColor4-DsHSwHqh.cjs} +1 -1
- package/buildLibs/{mobile/ToastRing-ZSOlED5s.js → web/ToastRing-D7GSFx_o.js} +1 -1
- package/buildLibs/{all/ToastRing-DqiGLTLN.cjs → web/ToastRing-DyynyXeD.cjs} +1 -1
- package/buildLibs/web/{Video-7bB5a3gv.cjs → Video-DbKxr-i7.cjs} +1 -1
- package/buildLibs/web/{Video-D36W46Pk.js → Video-b6MvLQBG.js} +1 -1
- package/buildLibs/web/{index-jOBQ0InH.cjs → index-By7v49Ku.cjs} +4 -4
- package/buildLibs/web/{index-ai_LrIsJ.js → index-CJJp0mfH.js} +120 -112
- package/buildLibs/web/index.cjs +1 -1
- package/buildLibs/web/index.js +1 -1
- package/docs/tools/CommonBrowserProgress.md +39 -0
- package/docs/tools/CommonGlobalConfig.md +46 -0
- package/docs/tools/clLog.md +39 -0
- package/docs/tools/globalTypes.md +43 -0
- package/package.json +42 -1
- package/buildLibs/common/Common/Element/Event/drag.d.ts +0 -30
- package/buildLibs/common/Common/Element/Event/index.d.ts +0 -9
- package/buildLibs/common/Common/Element/Event/resize.d.ts +0 -20
- package/buildLibs/common/Common/Element/index.d.ts +0 -111
- package/buildLibs/common/Common/Tools/animateEasing.d.ts +0 -27
- package/buildLibs/common/Common/Tools/cookie.d.ts +0 -8
- package/buildLibs/common/Common/Tools/delayFun.d.ts +0 -9
- package/buildLibs/common/Common/Tools/device.d.ts +0 -33
- package/buildLibs/common/Common/Tools/index.d.ts +0 -18
- package/buildLibs/common/Common/Tools/localStorage.d.ts +0 -9
- package/buildLibs/common/Common/Tools/number.d.ts +0 -9
- package/buildLibs/common/Common/axios.d.ts +0 -28
- package/buildLibs/common/Common/base.d.ts +0 -233
- package/buildLibs/common/Common/browserProgress.d.ts +0 -26
- package/buildLibs/common/Common/day.d.ts +0 -30
- package/buildLibs/common/Common/echart.d.ts +0 -91
- package/buildLibs/common/Common/globalConfig.d.ts +0 -28
- package/buildLibs/common/Common/globalTypes.d.ts +0 -88
- package/buildLibs/common/Common/i18n/a11y.d.ts +0 -62
- package/buildLibs/common/Common/i18n/en.d.ts +0 -112
- package/buildLibs/common/Common/i18n/index.d.ts +0 -25
- package/buildLibs/common/Common/i18n/zh_CN.d.ts +0 -112
- package/buildLibs/common/Common/index.d.ts +0 -13
- package/buildLibs/common/Common/log.d.ts +0 -7
- package/buildLibs/common/Common/promise.d.ts +0 -14
- package/buildLibs/common/Common/tooltip.d.ts +0 -40
- package/buildLibs/common/browserProgress.css +0 -1
- package/buildLibs/modules/shared/Validate.vue_vue_type_script_setup_true_lang-FZ6qiA6w.js +0 -411
- package/buildLibs/utils/Element/ClLoadScreen.css +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CDslbo4h.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CFNQBTiQ.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-D4BokTL9.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-D8TDafMl.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DYj0GzN0.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DtTJLC6m.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Gp7OJJx5.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-oFF20mhc.js +0 -152
- package/buildLibs/utils/Shared/Index2.css +0 -1
- package/buildLibs/utils/Shared/Index3.css +0 -1
- package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-BC8yzPg5.js +0 -1
- package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-BKTdt1M7.js +0 -1
- package/buildLibs/utils/Shared/Validate.vue_vue_type_script_setup_true_lang-DidPD12P.js +0 -411
- package/buildLibs/utils/Shared/Validate.vue_vue_type_script_setup_true_lang-DyOZ5QGN.js +0 -1
- package/buildLibs/utils/Shared/globalConfig-D1-9RCQO.js +0 -5
- package/buildLibs/utils/Shared/globalConfig-vNEDVL2C.js +0 -1
- package/buildLibs/utils/Shared/language-Q4AGYtUe.js +0 -1
- package/buildLibs/utils/Shared/use-BBpYjALT.js +0 -1
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DlFdXr6k.js → Index.vue_vue_type_script_setup_true_lang-BGGMHKo2.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-0GHFohjQ.js → Index.vue_vue_type_script_setup_true_lang-BHonqwfb.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-afRTRRcb.js → Index.vue_vue_type_script_setup_true_lang-BmRO42R2.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BbxnIsLt.js → Index.vue_vue_type_script_setup_true_lang-BwZ2C-6b.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Dyo4Sh1B.js → Index.vue_vue_type_script_setup_true_lang-D5_ktvRf.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B4dpfPSy.js → Index.vue_vue_type_script_setup_true_lang-DU1H_1lY.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-C242QFDV.js → Index.vue_vue_type_script_setup_true_lang-Db7kCHWV.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-D3h6Q_pB.js → Index.vue_vue_type_script_setup_true_lang-DfJX3uyy.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Cb49VSDS.js → Index.vue_vue_type_script_setup_true_lang-DyBY0DG5.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CyYCIkzr.js → Index.vue_vue_type_script_setup_true_lang-KKIG3pkE.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DQBXyVuV.js → Index.vue_vue_type_script_setup_true_lang-cceO6cqW.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-C1Z3g7mN.js → Index.vue_vue_type_script_setup_true_lang-hGx0sqwu.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CAEbDVL3.js → Index.vue_vue_type_script_setup_true_lang-p_9-WY4K.js} +0 -0
- /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BsE_zUs_.js → Index.vue_vue_type_script_setup_true_lang-vm_cblnn.js} +0 -0
- /package/buildLibs/utils/Shared/{Waves.css → index2.css} +0 -0
- /package/buildLibs/utils/Shared/{Tooltip.css → index3.css} +0 -0
- /package/buildLibs/utils/Shared/{Preview.css → index42.css} +0 -0
- /package/buildLibs/utils/Shared/{index39.css → index43.css} +0 -0
|
@@ -1,2160 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { c as Oe } from "./shared/log-BbLqiWNM.js";
|
|
3
|
-
import { C as tt } from "./shared/base-fr2I80sU.js";
|
|
4
|
-
import { C as tn } from "./shared/index-B477PjJ3.js";
|
|
5
|
-
/**!
|
|
6
|
-
* Sortable 1.15.0
|
|
7
|
-
* @author RubaXa <trash@rubaxa.org>
|
|
8
|
-
* @author owenm <owen23355@gmail.com>
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/
|
|
11
|
-
function Et(n, e) {
|
|
12
|
-
var r = Object.keys(n);
|
|
13
|
-
if (Object.getOwnPropertySymbols) {
|
|
14
|
-
var t = Object.getOwnPropertySymbols(n);
|
|
15
|
-
e && (t = t.filter(function(o) {
|
|
16
|
-
return Object.getOwnPropertyDescriptor(n, o).enumerable;
|
|
17
|
-
})), r.push.apply(r, t);
|
|
18
|
-
}
|
|
19
|
-
return r;
|
|
20
|
-
}
|
|
21
|
-
function ee(n) {
|
|
22
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
23
|
-
var r = arguments[e] != null ? arguments[e] : {};
|
|
24
|
-
e % 2 ? Et(Object(r), !0).forEach(function(t) {
|
|
25
|
-
nn(n, t, r[t]);
|
|
26
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(r)) : Et(Object(r)).forEach(function(t) {
|
|
27
|
-
Object.defineProperty(n, t, Object.getOwnPropertyDescriptor(r, t));
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
return n;
|
|
31
|
-
}
|
|
32
|
-
function Ge(n) {
|
|
33
|
-
"@babel/helpers - typeof";
|
|
34
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ge = function(e) {
|
|
35
|
-
return typeof e;
|
|
36
|
-
} : Ge = function(e) {
|
|
37
|
-
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
38
|
-
}, Ge(n);
|
|
39
|
-
}
|
|
40
|
-
function nn(n, e, r) {
|
|
41
|
-
return e in n ? Object.defineProperty(n, e, {
|
|
42
|
-
value: r,
|
|
43
|
-
enumerable: !0,
|
|
44
|
-
configurable: !0,
|
|
45
|
-
writable: !0
|
|
46
|
-
}) : n[e] = r, n;
|
|
47
|
-
}
|
|
48
|
-
function re() {
|
|
49
|
-
return re = Object.assign || function(n) {
|
|
50
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
51
|
-
var r = arguments[e];
|
|
52
|
-
for (var t in r)
|
|
53
|
-
Object.prototype.hasOwnProperty.call(r, t) && (n[t] = r[t]);
|
|
54
|
-
}
|
|
55
|
-
return n;
|
|
56
|
-
}, re.apply(this, arguments);
|
|
57
|
-
}
|
|
58
|
-
function rn(n, e) {
|
|
59
|
-
if (n == null) return {};
|
|
60
|
-
var r = {}, t = Object.keys(n), o, i;
|
|
61
|
-
for (i = 0; i < t.length; i++)
|
|
62
|
-
o = t[i], !(e.indexOf(o) >= 0) && (r[o] = n[o]);
|
|
63
|
-
return r;
|
|
64
|
-
}
|
|
65
|
-
function on(n, e) {
|
|
66
|
-
if (n == null) return {};
|
|
67
|
-
var r = rn(n, e), t, o;
|
|
68
|
-
if (Object.getOwnPropertySymbols) {
|
|
69
|
-
var i = Object.getOwnPropertySymbols(n);
|
|
70
|
-
for (o = 0; o < i.length; o++)
|
|
71
|
-
t = i[o], !(e.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(n, t) && (r[t] = n[t]);
|
|
72
|
-
}
|
|
73
|
-
return r;
|
|
74
|
-
}
|
|
75
|
-
var an = "1.15.0";
|
|
76
|
-
function ne(n) {
|
|
77
|
-
if (typeof window < "u" && window.navigator)
|
|
78
|
-
return !!/* @__PURE__ */ navigator.userAgent.match(n);
|
|
79
|
-
}
|
|
80
|
-
var oe = ne(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Me = ne(/Edge/i), wt = ne(/firefox/i), Re = ne(/safari/i) && !ne(/chrome/i) && !ne(/android/i), It = ne(/iP(ad|od|hone)/i), At = ne(/chrome/i) && ne(/android/i), xt = {
|
|
81
|
-
capture: !1,
|
|
82
|
-
passive: !1
|
|
83
|
-
};
|
|
84
|
-
function C(n, e, r) {
|
|
85
|
-
n.addEventListener(e, r, !oe && xt);
|
|
86
|
-
}
|
|
87
|
-
function _(n, e, r) {
|
|
88
|
-
n.removeEventListener(e, r, !oe && xt);
|
|
89
|
-
}
|
|
90
|
-
function $e(n, e) {
|
|
91
|
-
if (e) {
|
|
92
|
-
if (e[0] === ">" && (e = e.substring(1)), n)
|
|
93
|
-
try {
|
|
94
|
-
if (n.matches)
|
|
95
|
-
return n.matches(e);
|
|
96
|
-
if (n.msMatchesSelector)
|
|
97
|
-
return n.msMatchesSelector(e);
|
|
98
|
-
if (n.webkitMatchesSelector)
|
|
99
|
-
return n.webkitMatchesSelector(e);
|
|
100
|
-
} catch {
|
|
101
|
-
return !1;
|
|
102
|
-
}
|
|
103
|
-
return !1;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
function ln(n) {
|
|
107
|
-
return n.host && n !== document && n.host.nodeType ? n.host : n.parentNode;
|
|
108
|
-
}
|
|
109
|
-
function Q(n, e, r, t) {
|
|
110
|
-
if (n) {
|
|
111
|
-
r = r || document;
|
|
112
|
-
do {
|
|
113
|
-
if (e != null && (e[0] === ">" ? n.parentNode === r && $e(n, e) : $e(n, e)) || t && n === r)
|
|
114
|
-
return n;
|
|
115
|
-
if (n === r) break;
|
|
116
|
-
} while (n = ln(n));
|
|
117
|
-
}
|
|
118
|
-
return null;
|
|
119
|
-
}
|
|
120
|
-
var Dt = /\s+/g;
|
|
121
|
-
function H(n, e, r) {
|
|
122
|
-
if (n && e)
|
|
123
|
-
if (n.classList)
|
|
124
|
-
n.classList[r ? "add" : "remove"](e);
|
|
125
|
-
else {
|
|
126
|
-
var t = (" " + n.className + " ").replace(Dt, " ").replace(" " + e + " ", " ");
|
|
127
|
-
n.className = (t + (r ? " " + e : "")).replace(Dt, " ");
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
function E(n, e, r) {
|
|
131
|
-
var t = n && n.style;
|
|
132
|
-
if (t) {
|
|
133
|
-
if (r === void 0)
|
|
134
|
-
return document.defaultView && document.defaultView.getComputedStyle ? r = document.defaultView.getComputedStyle(n, "") : n.currentStyle && (r = n.currentStyle), e === void 0 ? r : r[e];
|
|
135
|
-
!(e in t) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), t[e] = r + (typeof r == "string" ? "" : "px");
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
function _e(n, e) {
|
|
139
|
-
var r = "";
|
|
140
|
-
if (typeof n == "string")
|
|
141
|
-
r = n;
|
|
142
|
-
else
|
|
143
|
-
do {
|
|
144
|
-
var t = E(n, "transform");
|
|
145
|
-
t && t !== "none" && (r = t + " " + r);
|
|
146
|
-
} while (!e && (n = n.parentNode));
|
|
147
|
-
var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
148
|
-
return o && new o(r);
|
|
149
|
-
}
|
|
150
|
-
function Pt(n, e, r) {
|
|
151
|
-
if (n) {
|
|
152
|
-
var t = n.getElementsByTagName(e), o = 0, i = t.length;
|
|
153
|
-
if (r)
|
|
154
|
-
for (; o < i; o++)
|
|
155
|
-
r(t[o], o);
|
|
156
|
-
return t;
|
|
157
|
-
}
|
|
158
|
-
return [];
|
|
159
|
-
}
|
|
160
|
-
function U() {
|
|
161
|
-
var n = document.scrollingElement;
|
|
162
|
-
return n || document.documentElement;
|
|
163
|
-
}
|
|
164
|
-
function R(n, e, r, t, o) {
|
|
165
|
-
if (!(!n.getBoundingClientRect && n !== window)) {
|
|
166
|
-
var i, a, l, s, u, f, h;
|
|
167
|
-
if (n !== window && n.parentNode && n !== U())
|
|
168
|
-
i = n.getBoundingClientRect(), a = i.top, l = i.left, s = i.bottom, u = i.right, f = i.height, h = i.width;
|
|
169
|
-
else {
|
|
170
|
-
var m = document.documentElement.clientWidth || document.body.clientWidth || window.innerWidth, p = document.documentElement.clientHeight || document.body.clientHeight || window.innerHeight;
|
|
171
|
-
a = 0, l = 0, s = p, u = m, f = p, h = m;
|
|
172
|
-
}
|
|
173
|
-
if ((e || r) && n !== window && (o = o || n.parentNode, !oe))
|
|
174
|
-
do
|
|
175
|
-
if (o && o.getBoundingClientRect && (E(o, "transform") !== "none" || r && E(o, "position") !== "static")) {
|
|
176
|
-
var g = o.getBoundingClientRect();
|
|
177
|
-
a -= g.top + parseInt(E(o, "border-top-width")), l -= g.left + parseInt(E(o, "border-left-width")), s = a + i.height, u = l + i.width;
|
|
178
|
-
break;
|
|
179
|
-
}
|
|
180
|
-
while (o = o.parentNode);
|
|
181
|
-
if (t && n !== window) {
|
|
182
|
-
var v = _e(o || n), D = v && v.a, F = v && v.d;
|
|
183
|
-
v && (a /= F, l /= D, h /= D, f /= F, s = a + f, u = l + h);
|
|
184
|
-
}
|
|
185
|
-
return {
|
|
186
|
-
top: a,
|
|
187
|
-
left: l,
|
|
188
|
-
bottom: s,
|
|
189
|
-
right: u,
|
|
190
|
-
width: h,
|
|
191
|
-
height: f
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
function _t(n, e, r) {
|
|
196
|
-
for (var t = de(n, !0), o = R(n)[e]; t; ) {
|
|
197
|
-
var i = R(t)[r], a = void 0;
|
|
198
|
-
if (a = o >= i, !a) return t;
|
|
199
|
-
if (t === U()) break;
|
|
200
|
-
t = de(t, !1);
|
|
201
|
-
}
|
|
202
|
-
return !1;
|
|
203
|
-
}
|
|
204
|
-
function Se(n, e, r, t) {
|
|
205
|
-
for (var o = 0, i = 0, a = n.children; i < a.length; ) {
|
|
206
|
-
if (a[i].style.display !== "none" && a[i] !== b.ghostClone && (t || a[i] !== b.dragged) && Q(a[i], r.draggable, n, !1)) {
|
|
207
|
-
if (o === e)
|
|
208
|
-
return a[i];
|
|
209
|
-
o++;
|
|
210
|
-
}
|
|
211
|
-
i++;
|
|
212
|
-
}
|
|
213
|
-
return null;
|
|
214
|
-
}
|
|
215
|
-
function mt(n, e) {
|
|
216
|
-
for (var r = n.lastElementChild; r && (r === b.ghostClone || E(r, "display") === "none" || e && !$e(r, e)); )
|
|
217
|
-
r = r.previousElementSibling;
|
|
218
|
-
return r || null;
|
|
219
|
-
}
|
|
220
|
-
function z(n, e) {
|
|
221
|
-
var r = 0;
|
|
222
|
-
if (!n || !n.parentNode)
|
|
223
|
-
return -1;
|
|
224
|
-
for (; n = n.previousElementSibling; )
|
|
225
|
-
n.nodeName.toUpperCase() !== "TEMPLATE" && n !== b.clone && (!e || $e(n, e)) && r++;
|
|
226
|
-
return r;
|
|
227
|
-
}
|
|
228
|
-
function St(n) {
|
|
229
|
-
var e = 0, r = 0, t = U();
|
|
230
|
-
if (n)
|
|
231
|
-
do {
|
|
232
|
-
var o = _e(n), i = o.a, a = o.d;
|
|
233
|
-
e += n.scrollLeft * i, r += n.scrollTop * a;
|
|
234
|
-
} while (n !== t && (n = n.parentNode));
|
|
235
|
-
return [e, r];
|
|
236
|
-
}
|
|
237
|
-
function sn(n, e) {
|
|
238
|
-
for (var r in n)
|
|
239
|
-
if (n.hasOwnProperty(r)) {
|
|
240
|
-
for (var t in e)
|
|
241
|
-
if (e.hasOwnProperty(t) && e[t] === n[r][t]) return Number(r);
|
|
242
|
-
}
|
|
243
|
-
return -1;
|
|
244
|
-
}
|
|
245
|
-
function de(n, e) {
|
|
246
|
-
if (!n || !n.getBoundingClientRect) return U();
|
|
247
|
-
var r = n, t = !1;
|
|
248
|
-
do
|
|
249
|
-
if (r.clientWidth < r.scrollWidth || r.clientHeight < r.scrollHeight) {
|
|
250
|
-
var o = E(r);
|
|
251
|
-
if (r.clientWidth < r.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || r.clientHeight < r.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) {
|
|
252
|
-
if (!r.getBoundingClientRect || r === document.body)
|
|
253
|
-
return U();
|
|
254
|
-
if (t || e) return r;
|
|
255
|
-
t = !0;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
while (r = r.parentNode);
|
|
259
|
-
return U();
|
|
260
|
-
}
|
|
261
|
-
function un(n, e) {
|
|
262
|
-
if (n && e)
|
|
263
|
-
for (var r in e)
|
|
264
|
-
e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
265
|
-
return n;
|
|
266
|
-
}
|
|
267
|
-
function nt(n, e) {
|
|
268
|
-
return Math.round(n.top) === Math.round(e.top) && Math.round(n.left) === Math.round(e.left) && Math.round(n.height) === Math.round(e.height) && Math.round(n.width) === Math.round(e.width);
|
|
269
|
-
}
|
|
270
|
-
var Fe;
|
|
271
|
-
function Bt(n, e) {
|
|
272
|
-
return function() {
|
|
273
|
-
if (!Fe) {
|
|
274
|
-
var r = arguments, t = this;
|
|
275
|
-
r.length === 1 ? n.call(t, r[0]) : n.apply(t, r), Fe = setTimeout(function() {
|
|
276
|
-
Fe = void 0;
|
|
277
|
-
}, e);
|
|
278
|
-
}
|
|
279
|
-
};
|
|
280
|
-
}
|
|
281
|
-
function dn() {
|
|
282
|
-
clearTimeout(Fe), Fe = void 0;
|
|
283
|
-
}
|
|
284
|
-
function Rt(n, e, r) {
|
|
285
|
-
n.scrollLeft += e, n.scrollTop += r;
|
|
286
|
-
}
|
|
287
|
-
function Ft(n) {
|
|
288
|
-
var e = window.Polymer, r = window.jQuery || window.Zepto;
|
|
289
|
-
return e && e.dom ? e.dom(n).cloneNode(!0) : r ? r(n).clone(!0)[0] : n.cloneNode(!0);
|
|
290
|
-
}
|
|
291
|
-
var M = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
292
|
-
function cn() {
|
|
293
|
-
var n = [], e;
|
|
294
|
-
return {
|
|
295
|
-
captureAnimationState: function() {
|
|
296
|
-
if (n = [], !!this.options.animation) {
|
|
297
|
-
var t = [].slice.call(this.el.children);
|
|
298
|
-
t.forEach(function(o) {
|
|
299
|
-
if (!(E(o, "display") === "none" || o === b.ghostClone)) {
|
|
300
|
-
n.push({
|
|
301
|
-
target: o,
|
|
302
|
-
rect: R(o)
|
|
303
|
-
});
|
|
304
|
-
var i = ee({}, n[n.length - 1].rect);
|
|
305
|
-
if (o.thisAnimationDuration) {
|
|
306
|
-
var a = _e(o, !0);
|
|
307
|
-
a && (i.top -= a.f, i.left -= a.e);
|
|
308
|
-
}
|
|
309
|
-
o.fromRect = i;
|
|
310
|
-
}
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
},
|
|
314
|
-
addAnimationState: function(t) {
|
|
315
|
-
n.push(t);
|
|
316
|
-
},
|
|
317
|
-
removeAnimationState: function(t) {
|
|
318
|
-
n.splice(
|
|
319
|
-
sn(n, {
|
|
320
|
-
target: t
|
|
321
|
-
}),
|
|
322
|
-
1
|
|
323
|
-
);
|
|
324
|
-
},
|
|
325
|
-
animateAll: function(t) {
|
|
326
|
-
var o = this;
|
|
327
|
-
if (!this.options.animation) {
|
|
328
|
-
clearTimeout(e), typeof t == "function" && t();
|
|
329
|
-
return;
|
|
330
|
-
}
|
|
331
|
-
var i = !1, a = 0;
|
|
332
|
-
n.forEach(function(l) {
|
|
333
|
-
var s = 0, u = l.target, f = u.fromRect, h = R(u), m = u.prevFromRect, p = u.prevToRect, g = l.rect, v = _e(u, !0);
|
|
334
|
-
v && (h.top -= v.f, h.left -= v.e), u.toRect = h, u.thisAnimationDuration && nt(m, h) && !nt(f, h) && // Make sure animatingRect is on line between toRect & fromRect
|
|
335
|
-
(g.top - h.top) / (g.left - h.left) === (f.top - h.top) / (f.left - h.left) && (s = hn(g, m, p, o.options)), nt(h, f) || (u.prevFromRect = f, u.prevToRect = h, s || (s = o.options.animation), o.animate(u, g, h, s)), s && (i = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
336
|
-
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
337
|
-
}, s), u.thisAnimationDuration = s);
|
|
338
|
-
}), clearTimeout(e), i ? e = setTimeout(function() {
|
|
339
|
-
typeof t == "function" && t();
|
|
340
|
-
}, a) : typeof t == "function" && t(), n = [];
|
|
341
|
-
},
|
|
342
|
-
animate: function(t, o, i, a) {
|
|
343
|
-
if (a) {
|
|
344
|
-
E(t, "transition", ""), E(t, "transform", "");
|
|
345
|
-
var l = _e(this.el), s = l && l.a, u = l && l.d, f = (o.left - i.left) / (s || 1), h = (o.top - i.top) / (u || 1);
|
|
346
|
-
t.animatingX = !!f, t.animatingY = !!h, E(t, "transform", "translate3d(" + f + "px," + h + "px,0)"), this.forRepaintDummy = fn(t), E(
|
|
347
|
-
t,
|
|
348
|
-
"transition",
|
|
349
|
-
"transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")
|
|
350
|
-
), E(t, "transform", "translate3d(0,0,0)"), typeof t.animated == "number" && clearTimeout(t.animated), t.animated = setTimeout(function() {
|
|
351
|
-
E(t, "transition", ""), E(t, "transform", ""), t.animated = !1, t.animatingX = !1, t.animatingY = !1;
|
|
352
|
-
}, a);
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
}
|
|
357
|
-
function fn(n) {
|
|
358
|
-
return n.offsetWidth;
|
|
359
|
-
}
|
|
360
|
-
function hn(n, e, r, t) {
|
|
361
|
-
return Math.sqrt(
|
|
362
|
-
Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)
|
|
363
|
-
) / Math.sqrt(
|
|
364
|
-
Math.pow(e.top - r.top, 2) + Math.pow(e.left - r.left, 2)
|
|
365
|
-
) * t.animation;
|
|
366
|
-
}
|
|
367
|
-
var me = [], rt = {
|
|
368
|
-
initializeByDefault: !0
|
|
369
|
-
}, Ye = {
|
|
370
|
-
mount: function(e) {
|
|
371
|
-
for (var r in rt)
|
|
372
|
-
rt.hasOwnProperty(r) && !(r in e) && (e[r] = rt[r]);
|
|
373
|
-
me.forEach(function(t) {
|
|
374
|
-
if (t.pluginName === e.pluginName)
|
|
375
|
-
throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
|
|
376
|
-
}), me.push(e);
|
|
377
|
-
},
|
|
378
|
-
pluginEvent: function(e, r, t) {
|
|
379
|
-
var o = this;
|
|
380
|
-
this.eventCanceled = !1, t.cancel = function() {
|
|
381
|
-
o.eventCanceled = !0;
|
|
382
|
-
};
|
|
383
|
-
var i = e + "Global";
|
|
384
|
-
me.forEach(function(a) {
|
|
385
|
-
r[a.pluginName] && (r[a.pluginName][i] && r[a.pluginName][i](
|
|
386
|
-
ee(
|
|
387
|
-
{
|
|
388
|
-
sortable: r
|
|
389
|
-
},
|
|
390
|
-
t
|
|
391
|
-
)
|
|
392
|
-
), r.options[a.pluginName] && r[a.pluginName][e] && r[a.pluginName][e](
|
|
393
|
-
ee(
|
|
394
|
-
{
|
|
395
|
-
sortable: r
|
|
396
|
-
},
|
|
397
|
-
t
|
|
398
|
-
)
|
|
399
|
-
));
|
|
400
|
-
});
|
|
401
|
-
},
|
|
402
|
-
initializePlugins: function(e, r, t, o) {
|
|
403
|
-
me.forEach(function(l) {
|
|
404
|
-
var s = l.pluginName;
|
|
405
|
-
if (!(!e.options[s] && !l.initializeByDefault)) {
|
|
406
|
-
var u = new l(e, r, e.options);
|
|
407
|
-
u.sortable = e, u.options = e.options, e[s] = u, re(t, u.defaults);
|
|
408
|
-
}
|
|
409
|
-
});
|
|
410
|
-
for (var i in e.options)
|
|
411
|
-
if (e.options.hasOwnProperty(i)) {
|
|
412
|
-
var a = this.modifyOption(e, i, e.options[i]);
|
|
413
|
-
typeof a < "u" && (e.options[i] = a);
|
|
414
|
-
}
|
|
415
|
-
},
|
|
416
|
-
getEventProperties: function(e, r) {
|
|
417
|
-
var t = {};
|
|
418
|
-
return me.forEach(function(o) {
|
|
419
|
-
typeof o.eventProperties == "function" && re(t, o.eventProperties.call(r[o.pluginName], e));
|
|
420
|
-
}), t;
|
|
421
|
-
},
|
|
422
|
-
modifyOption: function(e, r, t) {
|
|
423
|
-
var o;
|
|
424
|
-
return me.forEach(function(i) {
|
|
425
|
-
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[r] == "function" && (o = i.optionListeners[r].call(e[i.pluginName], t));
|
|
426
|
-
}), o;
|
|
427
|
-
}
|
|
428
|
-
};
|
|
429
|
-
function pn(n) {
|
|
430
|
-
var e = n.sortable, r = n.rootEl, t = n.name, o = n.targetEl, i = n.cloneEl, a = n.toEl, l = n.fromEl, s = n.oldIndex, u = n.newIndex, f = n.oldDraggableIndex, h = n.newDraggableIndex, m = n.originalEvent, p = n.putSortable, g = n.extraEventProperties;
|
|
431
|
-
if (e = e || r && r[M], !!e) {
|
|
432
|
-
var v, D = e.options, F = "on" + t.charAt(0).toUpperCase() + t.substr(1);
|
|
433
|
-
window.CustomEvent && !oe && !Me ? v = new CustomEvent(t, {
|
|
434
|
-
bubbles: !0,
|
|
435
|
-
cancelable: !0
|
|
436
|
-
}) : (v = document.createEvent("Event"), v.initEvent(t, !0, !0)), v.to = a || r, v.from = l || r, v.item = o || r, v.clone = i, v.oldIndex = s, v.newIndex = u, v.oldDraggableIndex = f, v.newDraggableIndex = h, v.originalEvent = m, v.pullMode = p ? p.lastPutMode : void 0;
|
|
437
|
-
var P = ee(
|
|
438
|
-
ee({}, g),
|
|
439
|
-
Ye.getEventProperties(t, e)
|
|
440
|
-
);
|
|
441
|
-
for (var O in P)
|
|
442
|
-
v[O] = P[O];
|
|
443
|
-
r && r.dispatchEvent(v), D[F] && D[F].call(e, v);
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
var gn = ["evt"], j = function(e, r) {
|
|
447
|
-
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = t.evt, i = on(t, gn);
|
|
448
|
-
Ye.pluginEvent.bind(b)(
|
|
449
|
-
e,
|
|
450
|
-
r,
|
|
451
|
-
ee(
|
|
452
|
-
{
|
|
453
|
-
dragEl: d,
|
|
454
|
-
parentEl: A,
|
|
455
|
-
ghostEl: y,
|
|
456
|
-
rootEl: T,
|
|
457
|
-
nextEl: he,
|
|
458
|
-
lastDownEl: ze,
|
|
459
|
-
cloneEl: I,
|
|
460
|
-
cloneHidden: ue,
|
|
461
|
-
dragStarted: xe,
|
|
462
|
-
putSortable: X,
|
|
463
|
-
activeSortable: b.active,
|
|
464
|
-
originalEvent: o,
|
|
465
|
-
oldIndex: De,
|
|
466
|
-
oldDraggableIndex: ke,
|
|
467
|
-
newIndex: G,
|
|
468
|
-
newDraggableIndex: se,
|
|
469
|
-
hideGhostForTarget: Mt,
|
|
470
|
-
unhideGhostForTarget: Yt,
|
|
471
|
-
cloneNowHidden: function() {
|
|
472
|
-
ue = !0;
|
|
473
|
-
},
|
|
474
|
-
cloneNowShown: function() {
|
|
475
|
-
ue = !1;
|
|
476
|
-
},
|
|
477
|
-
dispatchSortableEvent: function(l) {
|
|
478
|
-
Y({
|
|
479
|
-
sortable: r,
|
|
480
|
-
name: l,
|
|
481
|
-
originalEvent: o
|
|
482
|
-
});
|
|
483
|
-
}
|
|
484
|
-
},
|
|
485
|
-
i
|
|
486
|
-
)
|
|
487
|
-
);
|
|
488
|
-
};
|
|
489
|
-
function Y(n) {
|
|
490
|
-
pn(
|
|
491
|
-
ee(
|
|
492
|
-
{
|
|
493
|
-
putSortable: X,
|
|
494
|
-
cloneEl: I,
|
|
495
|
-
targetEl: d,
|
|
496
|
-
rootEl: T,
|
|
497
|
-
oldIndex: De,
|
|
498
|
-
oldDraggableIndex: ke,
|
|
499
|
-
newIndex: G,
|
|
500
|
-
newDraggableIndex: se
|
|
501
|
-
},
|
|
502
|
-
n
|
|
503
|
-
)
|
|
504
|
-
);
|
|
505
|
-
}
|
|
506
|
-
var d, Ee, A, y, Ae, Ne, T, he, ze, I, ue, De, G, ke, se, ve, X, we = !1, Je = !1, Ke = [], q, J, ot, it, Ct, Tt, xe, be, Xe, Le = !1, We = !1, Ue, N, at = [], ft = !1, Ze = [], Ie = null, Z = null, lt = null, te = null, et = typeof document < "u", ye = It, Ot = Me || oe ? "cssFloat" : "float", mn = et && !At && !It && "draggable" in document.createElement("div"), kt = (function() {
|
|
507
|
-
if (et) {
|
|
508
|
-
if (oe)
|
|
509
|
-
return !1;
|
|
510
|
-
var n = document.createElement("x");
|
|
511
|
-
return n.style.cssText = "pointer-events:auto", n.style.pointerEvents === "auto";
|
|
512
|
-
}
|
|
513
|
-
})(), Xt = function(e, r) {
|
|
514
|
-
var t = E(e), o = parseInt(t.width) - parseInt(t.paddingLeft) - parseInt(t.paddingRight) - parseInt(t.borderLeftWidth) - parseInt(t.borderRightWidth), i = Se(e, 0, r), a = Se(e, 1, r), l = i && E(i), s = a && E(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + R(i).width, f = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + R(a).width;
|
|
515
|
-
if (t.display === "flex")
|
|
516
|
-
return t.flexDirection === "column" || t.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
517
|
-
if (t.display === "grid")
|
|
518
|
-
return t.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
519
|
-
if (i && l.float && l.float !== "none") {
|
|
520
|
-
var h = l.float === "left" ? "left" : "right";
|
|
521
|
-
return a && (s.clear === "both" || s.clear === h) ? "vertical" : "horizontal";
|
|
522
|
-
}
|
|
523
|
-
return i && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= o && t[Ot] === "none" || a && t[Ot] === "none" && u + f > o) ? "vertical" : "horizontal";
|
|
524
|
-
}, vn = function(e, r, t) {
|
|
525
|
-
var o = t ? e.left : e.top, i = t ? e.right : e.bottom, a = t ? e.width : e.height, l = t ? r.left : r.top, s = t ? r.right : r.bottom, u = t ? r.width : r.height;
|
|
526
|
-
return o === l || i === s || o + a / 2 === l + u / 2;
|
|
527
|
-
}, bn = function(e, r) {
|
|
528
|
-
var t;
|
|
529
|
-
return Ke.some(function(o) {
|
|
530
|
-
var i = o[M].options.emptyInsertThreshold;
|
|
531
|
-
if (!(!i || mt(o))) {
|
|
532
|
-
var a = R(o), l = e >= a.left - i && e <= a.right + i, s = r >= a.top - i && r <= a.bottom + i;
|
|
533
|
-
if (l && s)
|
|
534
|
-
return t = o;
|
|
535
|
-
}
|
|
536
|
-
}), t;
|
|
537
|
-
}, Lt = function(e) {
|
|
538
|
-
function r(i, a) {
|
|
539
|
-
return function(l, s, u, f) {
|
|
540
|
-
var h = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
|
|
541
|
-
if (i == null && (a || h))
|
|
542
|
-
return !0;
|
|
543
|
-
if (i == null || i === !1)
|
|
544
|
-
return !1;
|
|
545
|
-
if (a && i === "clone")
|
|
546
|
-
return i;
|
|
547
|
-
if (typeof i == "function")
|
|
548
|
-
return r(i(l, s, u, f), a)(l, s, u, f);
|
|
549
|
-
var m = (a ? l : s).options.group.name;
|
|
550
|
-
return i === !0 || typeof i == "string" && i === m || i.join && i.indexOf(m) > -1;
|
|
551
|
-
};
|
|
552
|
-
}
|
|
553
|
-
var t = {}, o = e.group;
|
|
554
|
-
(!o || Ge(o) != "object") && (o = {
|
|
555
|
-
name: o
|
|
556
|
-
}), t.name = o.name, t.checkPull = r(o.pull, !0), t.checkPut = r(o.put), t.revertClone = o.revertClone, e.group = t;
|
|
557
|
-
}, Mt = function() {
|
|
558
|
-
!kt && y && E(y, "display", "none");
|
|
559
|
-
}, Yt = function() {
|
|
560
|
-
!kt && y && E(y, "display", "");
|
|
561
|
-
};
|
|
562
|
-
et && !At && document.addEventListener(
|
|
563
|
-
"click",
|
|
564
|
-
function(n) {
|
|
565
|
-
if (Je)
|
|
566
|
-
return n.preventDefault(), n.stopPropagation && n.stopPropagation(), n.stopImmediatePropagation && n.stopImmediatePropagation(), Je = !1, !1;
|
|
567
|
-
},
|
|
568
|
-
!0
|
|
569
|
-
);
|
|
570
|
-
var fe = function(e) {
|
|
571
|
-
if (d) {
|
|
572
|
-
e = e.touches ? e.touches[0] : e;
|
|
573
|
-
var r = bn(e.clientX, e.clientY);
|
|
574
|
-
if (r) {
|
|
575
|
-
var t = {};
|
|
576
|
-
for (var o in e)
|
|
577
|
-
e.hasOwnProperty(o) && (t[o] = e[o]);
|
|
578
|
-
t.clientX = e.clientX, t.clientY = e.clientY, t.pageX = e.pageX !== void 0 ? e.pageX : e.clientX, t.pageY = e.pageY !== void 0 ? e.pageY : e.clientY, t.target = t.rootEl = r, t.preventDefault = void 0, t.stopPropagation = void 0, r[M]._onDragOver(t);
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
}, yn = function(e) {
|
|
582
|
-
if (d) {
|
|
583
|
-
var r = c._findOwnerSortable(d.parentNode);
|
|
584
|
-
r && r._isOutsideThisEl(e.target);
|
|
585
|
-
}
|
|
586
|
-
};
|
|
587
|
-
function b(n, e) {
|
|
588
|
-
if (!(n && n.nodeType && n.nodeType === 1))
|
|
589
|
-
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));
|
|
590
|
-
this.el = n, this.options = e = re({}, e), n[M] = this;
|
|
591
|
-
var r = {
|
|
592
|
-
group: null,
|
|
593
|
-
sort: !0,
|
|
594
|
-
disabled: !1,
|
|
595
|
-
store: null,
|
|
596
|
-
handle: null,
|
|
597
|
-
draggable: /^[uo]l$/i.test(n.nodeName) ? ">li" : ">*",
|
|
598
|
-
swapThreshold: 1,
|
|
599
|
-
// percentage; 0 <= x <= 1
|
|
600
|
-
invertSwap: !1,
|
|
601
|
-
// invert always
|
|
602
|
-
invertedSwapThreshold: null,
|
|
603
|
-
// will be set to same as swapThreshold if default
|
|
604
|
-
removeCloneOnHide: !0,
|
|
605
|
-
direction: function() {
|
|
606
|
-
return Xt(n, this.options);
|
|
607
|
-
},
|
|
608
|
-
ghostClass: "sortable-ghost",
|
|
609
|
-
chosenClass: "sortable-chosen",
|
|
610
|
-
dragClass: "sortable-drag",
|
|
611
|
-
ignore: "a, img",
|
|
612
|
-
filter: null,
|
|
613
|
-
preventOnFilter: !0,
|
|
614
|
-
animation: 0,
|
|
615
|
-
easing: null,
|
|
616
|
-
setData: function(a, l) {
|
|
617
|
-
a.setData("Text", l.textContent);
|
|
618
|
-
},
|
|
619
|
-
dropBubble: !1,
|
|
620
|
-
dragoverBubble: !1,
|
|
621
|
-
dataIdAttr: "data-id",
|
|
622
|
-
delay: 0,
|
|
623
|
-
delayOnTouchOnly: !1,
|
|
624
|
-
touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
|
|
625
|
-
forceFallback: !1,
|
|
626
|
-
fallbackClass: "sortable-fallback",
|
|
627
|
-
fallbackOnBody: !1,
|
|
628
|
-
fallbackTolerance: 0,
|
|
629
|
-
fallbackOffset: {
|
|
630
|
-
x: 0,
|
|
631
|
-
y: 0
|
|
632
|
-
},
|
|
633
|
-
supportPointer: b.supportPointer !== !1 && "PointerEvent" in window && !Re,
|
|
634
|
-
emptyInsertThreshold: 5,
|
|
635
|
-
extOption: {
|
|
636
|
-
boundary: {
|
|
637
|
-
isOut: !1,
|
|
638
|
-
element: "",
|
|
639
|
-
x: 0,
|
|
640
|
-
y: 0
|
|
641
|
-
},
|
|
642
|
-
wrapBody: {
|
|
643
|
-
isWrap: !1,
|
|
644
|
-
element: ""
|
|
645
|
-
},
|
|
646
|
-
cross: {
|
|
647
|
-
isCross: !1,
|
|
648
|
-
isSameStruct: !0,
|
|
649
|
-
dropEndBeforeCallback: null
|
|
650
|
-
},
|
|
651
|
-
tree: {
|
|
652
|
-
isTree: !1,
|
|
653
|
-
maxDepth: 3,
|
|
654
|
-
indentThreshold: 20,
|
|
655
|
-
isOnlyInnerMove: !1,
|
|
656
|
-
isDragToChild: !0,
|
|
657
|
-
isDragToParent: !0,
|
|
658
|
-
rootId: "",
|
|
659
|
-
regionCls: ".darg-region"
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
};
|
|
663
|
-
Ye.initializePlugins(this, n, r);
|
|
664
|
-
for (var t in r)
|
|
665
|
-
!(t in e) && (e[t] = r[t]);
|
|
666
|
-
Lt(e);
|
|
667
|
-
for (var o in this)
|
|
668
|
-
o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
|
|
669
|
-
this.nativeDraggable = e.forceFallback ? !1 : mn, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? C(n, "pointerdown", this._onTapStart) : (C(n, "mousedown", this._onTapStart), C(n, "touchstart", this._onTapStart)), this.nativeDraggable && (C(n, "dragover", this), C(n, "dragenter", this)), Ke.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), re(this, cn());
|
|
670
|
-
}
|
|
671
|
-
b.prototype = /** @lends Sortable.prototype */
|
|
672
|
-
{
|
|
673
|
-
constructor: b,
|
|
674
|
-
_isOutsideThisEl: function(e) {
|
|
675
|
-
!this.el.contains(e) && e !== this.el && (be = null);
|
|
676
|
-
},
|
|
677
|
-
_getDirection: function(e, r) {
|
|
678
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, r, d) : this.options.direction;
|
|
679
|
-
},
|
|
680
|
-
_onTapStart: function(e) {
|
|
681
|
-
if (e.cancelable) {
|
|
682
|
-
var r = this, t = this.el, o = this.options, i = o.preventOnFilter, a = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, f = o.filter;
|
|
683
|
-
if (On(t), !d && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Re && s && s.tagName.toUpperCase() === "SELECT")) {
|
|
684
|
-
var h = t;
|
|
685
|
-
if (c.isTreeMode(o)) {
|
|
686
|
-
var m = c._treeRegionCls(o), p = c.getOwnerRegion(s, m);
|
|
687
|
-
p && (h = p);
|
|
688
|
-
}
|
|
689
|
-
if (s = Q(s, o.draggable, h, !1), !(s && s.animated) && ze !== s) {
|
|
690
|
-
if (De = z(s), ke = z(s, o.draggable), typeof f == "function") {
|
|
691
|
-
if (f.call(this, e, s, this)) {
|
|
692
|
-
Y({
|
|
693
|
-
sortable: r,
|
|
694
|
-
rootEl: u,
|
|
695
|
-
name: "filter",
|
|
696
|
-
targetEl: s,
|
|
697
|
-
toEl: t,
|
|
698
|
-
fromEl: t
|
|
699
|
-
}), j("filter", r, {
|
|
700
|
-
evt: e
|
|
701
|
-
}), i && e.cancelable && e.preventDefault();
|
|
702
|
-
return;
|
|
703
|
-
}
|
|
704
|
-
} else if (f && (f = f.split(",").some(function(g) {
|
|
705
|
-
if (g = Q(u, g.trim(), t, !1), g)
|
|
706
|
-
return Y({
|
|
707
|
-
sortable: r,
|
|
708
|
-
rootEl: g,
|
|
709
|
-
name: "filter",
|
|
710
|
-
targetEl: s,
|
|
711
|
-
fromEl: t,
|
|
712
|
-
toEl: t
|
|
713
|
-
}), j("filter", r, {
|
|
714
|
-
evt: e
|
|
715
|
-
}), !0;
|
|
716
|
-
}), f)) {
|
|
717
|
-
i && e.cancelable && e.preventDefault();
|
|
718
|
-
return;
|
|
719
|
-
}
|
|
720
|
-
o.handle && !Q(u, o.handle, t, !1) || this._prepareDragStart(e, l, s);
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
},
|
|
725
|
-
_prepareDragStart: function(e, r, t) {
|
|
726
|
-
var o = this, i = o.el, a = o.options, l = i.ownerDocument, s, u = !!(a.extOption && a.extOption.tree && a.extOption.tree.isTree), f = !1;
|
|
727
|
-
if (t && !d) {
|
|
728
|
-
if (t.parentNode === i)
|
|
729
|
-
f = !0;
|
|
730
|
-
else if (u && i.contains(t)) {
|
|
731
|
-
var h = c.findNearestTreeRoot(t, i);
|
|
732
|
-
f = h === i;
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
if (f) {
|
|
736
|
-
var m = R(t);
|
|
737
|
-
if (T = i, d = t, A = d.parentNode, he = d.nextSibling, ze = t, ve = a.group, b.dragged = d, q = {
|
|
738
|
-
target: d,
|
|
739
|
-
clientX: (r || e).clientX,
|
|
740
|
-
clientY: (r || e).clientY
|
|
741
|
-
}, Ct = q.clientX - m.left, Tt = q.clientY - m.top, this._lastX = (r || e).clientX, this._lastY = (r || e).clientY, c.isTreeMode(a)) {
|
|
742
|
-
var p = r || e;
|
|
743
|
-
c._tree.startPageX = p.pageX !== void 0 ? p.pageX : p.clientX, c._tree.dropInfo = null, c._tree.startDragDepth = c.getNodeDepth(
|
|
744
|
-
d,
|
|
745
|
-
c._treeRegionCls(a)
|
|
746
|
-
);
|
|
747
|
-
var g = window.pageXOffset || document.documentElement.scrollLeft || 0;
|
|
748
|
-
c._tree.startLeftPage = d.getBoundingClientRect().left + g;
|
|
749
|
-
}
|
|
750
|
-
if (d.style["will-change"] = "transform", s = function() {
|
|
751
|
-
if (j("delayEnded", o, {
|
|
752
|
-
evt: e
|
|
753
|
-
}), b.eventCanceled) {
|
|
754
|
-
o._onDrop();
|
|
755
|
-
return;
|
|
756
|
-
}
|
|
757
|
-
o._disableDelayedDragEvents(), !wt && o.nativeDraggable && (d.draggable = !0), o._triggerDragStart(e, r), Y({
|
|
758
|
-
sortable: o,
|
|
759
|
-
name: "choose",
|
|
760
|
-
originalEvent: e
|
|
761
|
-
}), H(d, a.chosenClass, !0);
|
|
762
|
-
}, a.ignore.split(",").forEach(function(v) {
|
|
763
|
-
Pt(d, v.trim(), st);
|
|
764
|
-
}), C(l, "dragover", fe), C(l, "mousemove", fe), C(l, "touchmove", fe), C(l, "mouseup", o._onDrop), C(l, "touchend", o._onDrop), C(l, "touchcancel", o._onDrop), wt && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), j("delayStart", this, {
|
|
765
|
-
evt: e
|
|
766
|
-
}), a.delay && (!a.delayOnTouchOnly || r) && (!this.nativeDraggable || !(Me || oe))) {
|
|
767
|
-
if (b.eventCanceled) {
|
|
768
|
-
this._onDrop();
|
|
769
|
-
return;
|
|
770
|
-
}
|
|
771
|
-
C(l, "mouseup", o._disableDelayedDrag), C(l, "touchend", o._disableDelayedDrag), C(l, "touchcancel", o._disableDelayedDrag), C(l, "mousemove", o._delayedDragTouchMoveHandler), C(l, "touchmove", o._delayedDragTouchMoveHandler), a.supportPointer && C(l, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(s, a.delay);
|
|
772
|
-
} else
|
|
773
|
-
s();
|
|
774
|
-
}
|
|
775
|
-
},
|
|
776
|
-
_delayedDragTouchMoveHandler: function(e) {
|
|
777
|
-
var r = e.touches ? e.touches[0] : e;
|
|
778
|
-
Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) >= Math.floor(
|
|
779
|
-
this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)
|
|
780
|
-
) && this._disableDelayedDrag();
|
|
781
|
-
},
|
|
782
|
-
_disableDelayedDrag: function() {
|
|
783
|
-
d && st(d), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
784
|
-
},
|
|
785
|
-
_disableDelayedDragEvents: function() {
|
|
786
|
-
var e = this.el.ownerDocument;
|
|
787
|
-
_(e, "mouseup", this._disableDelayedDrag), _(e, "touchend", this._disableDelayedDrag), _(e, "touchcancel", this._disableDelayedDrag), _(e, "mousemove", this._delayedDragTouchMoveHandler), _(e, "touchmove", this._delayedDragTouchMoveHandler), _(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
788
|
-
},
|
|
789
|
-
_triggerDragStart: function(e, r) {
|
|
790
|
-
r = r || e.pointerType == "touch" && e, !this.nativeDraggable || r ? this.options.supportPointer ? C(document, "pointermove", this._onTouchMove) : r ? C(document, "touchmove", this._onTouchMove) : C(document, "mousemove", this._onTouchMove) : (C(d, "dragend", this), C(T, "dragstart", this._onDragStart));
|
|
791
|
-
try {
|
|
792
|
-
document.selection ? qe(function() {
|
|
793
|
-
document.selection.empty();
|
|
794
|
-
}) : window.getSelection().removeAllRanges();
|
|
795
|
-
} catch {
|
|
796
|
-
}
|
|
797
|
-
},
|
|
798
|
-
_dragStarted: function(e, r) {
|
|
799
|
-
if (we = !1, T && d) {
|
|
800
|
-
j("dragStarted", this, {
|
|
801
|
-
evt: r
|
|
802
|
-
}), this.nativeDraggable && C(document, "dragover", yn);
|
|
803
|
-
var t = this.options;
|
|
804
|
-
!e && H(d, t.dragClass, !1), H(d, t.ghostClass, !0), b.active = this, e && this._appendGhost(), Y({
|
|
805
|
-
sortable: this,
|
|
806
|
-
name: "start",
|
|
807
|
-
originalEvent: r
|
|
808
|
-
});
|
|
809
|
-
} else
|
|
810
|
-
this._nulling();
|
|
811
|
-
},
|
|
812
|
-
_emulateDragOver: function() {
|
|
813
|
-
if (J) {
|
|
814
|
-
this._lastX = J.clientX, this._lastY = J.clientY, Mt();
|
|
815
|
-
for (var e = document.elementFromPoint(J.clientX, J.clientY), r = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(J.clientX, J.clientY), e !== r); )
|
|
816
|
-
r = e;
|
|
817
|
-
var t = c._findOwnerSortable(d.parentNode);
|
|
818
|
-
if (t && t._isOutsideThisEl(e), r)
|
|
819
|
-
do {
|
|
820
|
-
if (r[M]) {
|
|
821
|
-
var o = void 0;
|
|
822
|
-
if (o = r[M]._onDragOver({
|
|
823
|
-
clientX: J.clientX,
|
|
824
|
-
clientY: J.clientY,
|
|
825
|
-
target: e,
|
|
826
|
-
rootEl: r
|
|
827
|
-
}), o && !this.options.dragoverBubble)
|
|
828
|
-
break;
|
|
829
|
-
}
|
|
830
|
-
e = r;
|
|
831
|
-
} while (
|
|
832
|
-
/* jshint boss:true */
|
|
833
|
-
r = r.parentNode
|
|
834
|
-
);
|
|
835
|
-
Yt();
|
|
836
|
-
}
|
|
837
|
-
},
|
|
838
|
-
_onTouchMove: function(e) {
|
|
839
|
-
if (q) {
|
|
840
|
-
var r = this.options, t = r.fallbackTolerance, o = r.fallbackOffset, i = e.touches ? e.touches[0] : e, a = y && (lt || (lt = _e(y, !0))), l = y && a && a.a, s = y && a && a.d, u, f = ye && N ? U() : null, h, m;
|
|
841
|
-
if (ye && N && (te && te.el === N && te.scrollLeft === N.scrollLeft && te.scrollTop === N.scrollTop && te.winTop === f.scrollTop && te.winLeft === f.scrollLeft ? u = te.offset : (u = St(N), te = {
|
|
842
|
-
el: N,
|
|
843
|
-
scrollLeft: N.scrollLeft,
|
|
844
|
-
scrollTop: N.scrollTop,
|
|
845
|
-
winTop: f.scrollTop,
|
|
846
|
-
winLeft: f.scrollLeft,
|
|
847
|
-
offset: u
|
|
848
|
-
})), h = (i.clientX - q.clientX + o.x) / (l || 1) + (u ? u[0] - at[0] : 0) / (l || 1), m = (i.clientY - q.clientY + o.y) / (s || 1) + (u ? u[1] - at[1] : 0) / (s || 1), !b.active && !we) {
|
|
849
|
-
if (t && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < t)
|
|
850
|
-
return;
|
|
851
|
-
this._onDragStart(e, !0);
|
|
852
|
-
}
|
|
853
|
-
if (y) {
|
|
854
|
-
a ? (a.e += h - (ot || 0), a.f += m - (it || 0)) : a = {
|
|
855
|
-
a: 1,
|
|
856
|
-
b: 0,
|
|
857
|
-
c: 0,
|
|
858
|
-
d: 1,
|
|
859
|
-
e: h,
|
|
860
|
-
f: m
|
|
861
|
-
};
|
|
862
|
-
var p = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
863
|
-
E(y, "transform", p), ot = h, it = m, J = i;
|
|
864
|
-
const D = c.checkMoveOutBoundary(
|
|
865
|
-
y,
|
|
866
|
-
this.el,
|
|
867
|
-
this.options
|
|
868
|
-
);
|
|
869
|
-
if (D.isOut) {
|
|
870
|
-
var g = 0;
|
|
871
|
-
ye || (Ie == null && (Ie = U().scrollTop), g = U().scrollTop - Ie), Ne ? (a.e = Ne.e, a.f = Ne.f - g) : (D.top && (a.f = D.x * -1 - g), D.right && (a.e = D.y), D.bottom && (a.f = D.x - g), D.left && (a.e = D.y * -1));
|
|
872
|
-
var v = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
873
|
-
E(y, "transform", v);
|
|
874
|
-
} else
|
|
875
|
-
Ie = null, Ne = {
|
|
876
|
-
a: a.a,
|
|
877
|
-
b: a.b,
|
|
878
|
-
c: a.c,
|
|
879
|
-
d: a.d,
|
|
880
|
-
e: a.e,
|
|
881
|
-
f: a.f
|
|
882
|
-
};
|
|
883
|
-
}
|
|
884
|
-
e.cancelable && e.preventDefault();
|
|
885
|
-
}
|
|
886
|
-
},
|
|
887
|
-
_appendGhost: function() {
|
|
888
|
-
if (!y) {
|
|
889
|
-
var e = this.options.fallbackOnBody ? document.body : T, r = R(d, !0, ye, !0, e), t = this.options;
|
|
890
|
-
if (ye) {
|
|
891
|
-
for (N = e; E(N, "position") === "static" && E(N, "transform") === "none" && N !== document; )
|
|
892
|
-
N = N.parentNode;
|
|
893
|
-
N !== document.body && N !== document.documentElement ? (N === document && (N = U()), r.top += N.scrollTop, r.left += N.scrollLeft) : N = U(), at = St(N);
|
|
894
|
-
}
|
|
895
|
-
Ae = d.cloneNode(!0), y = d.cloneNode(!0), y = c.setWrapBody(y, this.el, this.options), H(y, t.ghostClass, !1), H(y, t.fallbackClass, !0), H(y, t.dragClass, !0), E(y, "transition", ""), E(y, "transform", ""), E(y, "box-sizing", "border-box"), E(y, "margin", 0), E(y, "top", r.top), E(y, "left", r.left), E(y, "width", r.width), E(y, "height", r.height), E(y, "opacity", "0.8"), E(y, "position", ye ? "absolute" : "fixed"), E(y, "zIndex", "100000"), E(y, "pointerEvents", "none"), b.ghost = y, b.ghostClone = Ae, e.appendChild(y), E(
|
|
896
|
-
y,
|
|
897
|
-
"transform-origin",
|
|
898
|
-
Ct / parseInt(y.style.width) * 100 + "% " + Tt / parseInt(y.style.height) * 100 + "%"
|
|
899
|
-
);
|
|
900
|
-
}
|
|
901
|
-
},
|
|
902
|
-
_onDragStart: function(e, r) {
|
|
903
|
-
var t = this, o = e.dataTransfer, i = t.options;
|
|
904
|
-
if (j("dragStart", this, {
|
|
905
|
-
evt: e
|
|
906
|
-
}), b.eventCanceled) {
|
|
907
|
-
this._onDrop();
|
|
908
|
-
return;
|
|
909
|
-
}
|
|
910
|
-
j("setupClone", this), b.eventCanceled || (I = Ft(d), I.removeAttribute("id"), I.draggable = !1, I.style["will-change"] = "", this._hideClone(), H(I, this.options.chosenClass, !1), b.clone = I), t.cloneId = qe(function() {
|
|
911
|
-
j("clone", t), !b.eventCanceled && (t.options.removeCloneOnHide || T.insertBefore(I, d), t._hideClone(), Y({
|
|
912
|
-
sortable: t,
|
|
913
|
-
name: "clone"
|
|
914
|
-
}));
|
|
915
|
-
}), !r && H(d, i.dragClass, !0), r ? (Je = !0, t._loopId = setInterval(t._emulateDragOver, 50)) : (_(document, "mouseup", t._onDrop), _(document, "touchend", t._onDrop), _(document, "touchcancel", t._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(t, o, d)), C(document, "drop", t), E(d, "transform", "translateZ(0)")), we = !0, t._dragStartId = qe(t._dragStarted.bind(t, r, e)), C(document, "selectstart", t), xe = !0, Re && E(document.body, "user-select", "none");
|
|
916
|
-
},
|
|
917
|
-
// Returns true - if no further action is needed (either inserted or another condition)
|
|
918
|
-
_onDragOver: function(e) {
|
|
919
|
-
var r = this.el, t = e.target, o, i, a, l = this.options, s = l.group, u = b.active, f = ve === s, h = l.sort, m = X || u, p, g = this, v = !1;
|
|
920
|
-
if (ft) return;
|
|
921
|
-
if (c.isTreeMode(l)) {
|
|
922
|
-
var D = f;
|
|
923
|
-
if (!D && s && ve) {
|
|
924
|
-
var F = !!s.name && s.name === ve.name;
|
|
925
|
-
F && (D = typeof s.checkPut == "function" ? !!s.checkPut(this, u, d, e) : !0);
|
|
926
|
-
}
|
|
927
|
-
if (!D) {
|
|
928
|
-
c._tree.dropInfo = { isReject: !0, reason: "out-of-group" }, c.renderTreeIndicator(this, e), e.cancelable && e.preventDefault();
|
|
929
|
-
return;
|
|
930
|
-
}
|
|
931
|
-
c.treeDragOver(this, e, t), c.renderTreeIndicator(this, e), e.cancelable && e.preventDefault();
|
|
932
|
-
return;
|
|
933
|
-
}
|
|
934
|
-
function P(Te, je) {
|
|
935
|
-
j(
|
|
936
|
-
Te,
|
|
937
|
-
g,
|
|
938
|
-
ee(
|
|
939
|
-
{
|
|
940
|
-
evt: e,
|
|
941
|
-
isOwner: f,
|
|
942
|
-
axis: p ? "vertical" : "horizontal",
|
|
943
|
-
revert: a,
|
|
944
|
-
dragRect: o,
|
|
945
|
-
targetRect: i,
|
|
946
|
-
canSort: h,
|
|
947
|
-
fromSortable: m,
|
|
948
|
-
target: t,
|
|
949
|
-
completed: w,
|
|
950
|
-
onMove: function(yt, Wt) {
|
|
951
|
-
return He(T, r, d, o, yt, R(yt), e, Wt);
|
|
952
|
-
},
|
|
953
|
-
changed: x
|
|
954
|
-
},
|
|
955
|
-
je
|
|
956
|
-
)
|
|
957
|
-
);
|
|
958
|
-
}
|
|
959
|
-
function O() {
|
|
960
|
-
P("dragOverAnimationCapture"), g.captureAnimationState(), g !== m && m.captureAnimationState();
|
|
961
|
-
}
|
|
962
|
-
function w(Te) {
|
|
963
|
-
if (P("dragOverCompleted", {
|
|
964
|
-
insertion: Te
|
|
965
|
-
}), Te && (f ? u._hideClone() : u._showClone(g), g !== m && (H(
|
|
966
|
-
d,
|
|
967
|
-
X ? X.options.ghostClass : u.options.ghostClass,
|
|
968
|
-
!1
|
|
969
|
-
), H(d, l.ghostClass, !0)), X !== g && g !== b.active ? X = g : g === b.active && X && (X = null), m === g && (g._ignoreWhileAnimating = t), g.animateAll(function() {
|
|
970
|
-
P("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
|
|
971
|
-
}), g !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (t === d && !d.animated || t === r && !t.animated) && (be = null), !l.dragoverBubble && !e.rootEl && t !== document) {
|
|
972
|
-
var je = c._findOwnerSortable(d.parentNode);
|
|
973
|
-
je && je._isOutsideThisEl(e.target), !Te && fe(e);
|
|
974
|
-
}
|
|
975
|
-
return !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), v = !0;
|
|
976
|
-
}
|
|
977
|
-
function x() {
|
|
978
|
-
G = z(d), se = z(d, l.draggable), Y({
|
|
979
|
-
sortable: g,
|
|
980
|
-
name: "change",
|
|
981
|
-
toEl: r,
|
|
982
|
-
newIndex: G,
|
|
983
|
-
newDraggableIndex: se,
|
|
984
|
-
originalEvent: e
|
|
985
|
-
});
|
|
986
|
-
}
|
|
987
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), t = Q(t, l.draggable, r, !0), P("dragOver"), b.eventCanceled) return v;
|
|
988
|
-
if (d.contains(e.target) || t.animated && t.animatingX && t.animatingY || g._ignoreWhileAnimating === t)
|
|
989
|
-
return w(!1);
|
|
990
|
-
if (Je = !1, u && !l.disabled && (f ? h || (a = A !== T) : X === this || (this.lastPutMode = ve.checkPull(this, u, d, e)) && s.checkPut(this, u, d, e))) {
|
|
991
|
-
if (p = this._getDirection(e, t) === "vertical", o = R(d), P("dragOverValid"), b.eventCanceled) return v;
|
|
992
|
-
if (a)
|
|
993
|
-
return A = T, O(), this._hideClone(), P("revert"), b.eventCanceled || (c.setCrossEl(t, this.options), he ? T.insertBefore(d, he) : T.appendChild(d)), w(!0);
|
|
994
|
-
var S = mt(r, l.draggable);
|
|
995
|
-
if (!S || _n(e, p, this) && !S.animated) {
|
|
996
|
-
if (S === d)
|
|
997
|
-
return w(!1);
|
|
998
|
-
if (S && r === e.target && (t = S), t && (i = R(t)), He(T, r, d, o, t, i, e, !!t) !== !1)
|
|
999
|
-
return O(), c.setCrossEl(t, this.options), S && S.nextSibling ? r.insertBefore(d, S.nextSibling) : r.appendChild(d), A = r, x(), w(!0);
|
|
1000
|
-
} else if (S && Dn(e, p, this)) {
|
|
1001
|
-
var k = Se(r, 0, l, !0);
|
|
1002
|
-
if (k === d)
|
|
1003
|
-
return w(!1);
|
|
1004
|
-
if (t = k, i = R(t), He(T, r, d, o, t, i, e, !1) !== !1)
|
|
1005
|
-
return O(), c.setCrossEl(t, this.options), r.insertBefore(d, k), A = r, x(), w(!0);
|
|
1006
|
-
} else if (t.parentNode === r) {
|
|
1007
|
-
i = R(t);
|
|
1008
|
-
var W = 0, L, pe = d.parentNode !== r, ie = !vn(
|
|
1009
|
-
d.animated && d.toRect || o,
|
|
1010
|
-
t.animated && t.toRect || i,
|
|
1011
|
-
p
|
|
1012
|
-
), ae = p ? "top" : "left", V = _t(t, "top", "top") || _t(d, "top", "top"), le = V ? V.scrollTop : void 0;
|
|
1013
|
-
be !== t && (L = i[ae], Le = !1, We = !ie && l.invertSwap || pe), W = Sn(
|
|
1014
|
-
e,
|
|
1015
|
-
t,
|
|
1016
|
-
i,
|
|
1017
|
-
p,
|
|
1018
|
-
ie ? 1 : l.swapThreshold,
|
|
1019
|
-
l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold,
|
|
1020
|
-
We,
|
|
1021
|
-
be === t
|
|
1022
|
-
);
|
|
1023
|
-
var K;
|
|
1024
|
-
if (W !== 0) {
|
|
1025
|
-
var ce = z(d);
|
|
1026
|
-
do
|
|
1027
|
-
ce -= W, K = A.children[ce];
|
|
1028
|
-
while (K && (E(K, "display") === "none" || K === Ae));
|
|
1029
|
-
}
|
|
1030
|
-
if (W === 0 || K === t)
|
|
1031
|
-
return w(!1);
|
|
1032
|
-
be = t, Xe = W;
|
|
1033
|
-
var Ce = t.nextElementSibling, $ = !1;
|
|
1034
|
-
$ = W === 1;
|
|
1035
|
-
var ge = He(T, r, d, o, t, i, e, $);
|
|
1036
|
-
if (ge !== !1)
|
|
1037
|
-
return (ge === 1 || ge === -1) && ($ = ge === 1), ft = !0, setTimeout(wn, 30), O(), c.setCrossEl(t, this.options), $ && !Ce ? r.appendChild(d) : t.parentNode.insertBefore(d, $ ? Ce : t), V && Rt(V, 0, le - V.scrollTop), A = d.parentNode, L !== void 0 && !We && (Ue = Math.abs(L - R(t)[ae])), x(), w(!0);
|
|
1038
|
-
}
|
|
1039
|
-
if (r.contains(d))
|
|
1040
|
-
return w(!1);
|
|
1041
|
-
}
|
|
1042
|
-
return !1;
|
|
1043
|
-
},
|
|
1044
|
-
_ignoreWhileAnimating: null,
|
|
1045
|
-
_offMoveEvents: function() {
|
|
1046
|
-
_(document, "mousemove", this._onTouchMove), _(document, "touchmove", this._onTouchMove), _(document, "pointermove", this._onTouchMove), _(document, "dragover", fe), _(document, "mousemove", fe), _(document, "touchmove", fe);
|
|
1047
|
-
},
|
|
1048
|
-
_offUpEvents: function() {
|
|
1049
|
-
var e = this.el.ownerDocument;
|
|
1050
|
-
_(e, "mouseup", this._onDrop), _(e, "touchend", this._onDrop), _(e, "pointerup", this._onDrop), _(e, "touchcancel", this._onDrop), _(document, "selectstart", this);
|
|
1051
|
-
},
|
|
1052
|
-
_onDrop: function(e) {
|
|
1053
|
-
c.crossDropEnd(this.options, this.el).then((r) => {
|
|
1054
|
-
if (!this.el) {
|
|
1055
|
-
this._nulling();
|
|
1056
|
-
return;
|
|
1057
|
-
}
|
|
1058
|
-
if (r) {
|
|
1059
|
-
var t = this.el, o = this.options;
|
|
1060
|
-
if (G = z(d), se = z(d, o.draggable), j("drop", this, {
|
|
1061
|
-
evt: e
|
|
1062
|
-
}), A = d && d.parentNode, G = z(d), se = z(d, o.draggable), c.isTreeMode(o) && typeof o.onUpdate == "function" && o.onUpdate(), b.eventCanceled) {
|
|
1063
|
-
this._nulling();
|
|
1064
|
-
return;
|
|
1065
|
-
}
|
|
1066
|
-
we = !1, We = !1, Le = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ht(this.cloneId), ht(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Re && E(document.body, "user-select", ""), E(d, "transform", ""), e && (xe && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), y && y.parentNode && y.parentNode.removeChild(y), (T === A || X && X.lastPutMode !== "clone") && I && I.parentNode && I.parentNode.removeChild(I), d && (this.nativeDraggable && _(d, "dragend", this), st(d), d.style["will-change"] = "", xe && !we && H(
|
|
1067
|
-
d,
|
|
1068
|
-
X ? X.options.ghostClass : this.options.ghostClass,
|
|
1069
|
-
!1
|
|
1070
|
-
), H(d, this.options.chosenClass, !1), Y({
|
|
1071
|
-
sortable: this,
|
|
1072
|
-
name: "unchoose",
|
|
1073
|
-
toEl: A,
|
|
1074
|
-
newIndex: null,
|
|
1075
|
-
newDraggableIndex: null,
|
|
1076
|
-
originalEvent: e
|
|
1077
|
-
}), T !== A ? (G >= 0 && (Y({
|
|
1078
|
-
rootEl: A,
|
|
1079
|
-
name: "add",
|
|
1080
|
-
toEl: A,
|
|
1081
|
-
fromEl: T,
|
|
1082
|
-
originalEvent: e
|
|
1083
|
-
}), Y({
|
|
1084
|
-
sortable: this,
|
|
1085
|
-
name: "remove",
|
|
1086
|
-
toEl: A,
|
|
1087
|
-
originalEvent: e
|
|
1088
|
-
}), Y({
|
|
1089
|
-
rootEl: A,
|
|
1090
|
-
name: "sort",
|
|
1091
|
-
toEl: A,
|
|
1092
|
-
fromEl: T,
|
|
1093
|
-
originalEvent: e
|
|
1094
|
-
}), Y({
|
|
1095
|
-
sortable: this,
|
|
1096
|
-
name: "sort",
|
|
1097
|
-
toEl: A,
|
|
1098
|
-
originalEvent: e
|
|
1099
|
-
})), X && X.save()) : G !== De && G >= 0 && (Y({
|
|
1100
|
-
sortable: this,
|
|
1101
|
-
name: "update",
|
|
1102
|
-
toEl: A,
|
|
1103
|
-
originalEvent: e
|
|
1104
|
-
}), Y({
|
|
1105
|
-
sortable: this,
|
|
1106
|
-
name: "sort",
|
|
1107
|
-
toEl: A,
|
|
1108
|
-
originalEvent: e
|
|
1109
|
-
})), b.active && ((G == null || G === -1) && (G = De, se = ke), Y({
|
|
1110
|
-
sortable: this,
|
|
1111
|
-
name: "end",
|
|
1112
|
-
toEl: A,
|
|
1113
|
-
originalEvent: e
|
|
1114
|
-
}), this.save()))), this._nulling();
|
|
1115
|
-
}
|
|
1116
|
-
});
|
|
1117
|
-
},
|
|
1118
|
-
_nulling: function() {
|
|
1119
|
-
j("nulling", this), T = d = Ee = A = y = Ae = he = I = ze = ue = q = J = xe = G = se = De = ke = be = Xe = X = ve = b.dragged = b.ghost = b.ghostClone = b.clone = b.active = Ne = Ie = lt = te = null, c._clearHiddenBox(), c.resetTreeState(), Ze.forEach(function(e) {
|
|
1120
|
-
e.checked = !0;
|
|
1121
|
-
}), Ze.length = ot = it = 0;
|
|
1122
|
-
},
|
|
1123
|
-
handleEvent: function(e) {
|
|
1124
|
-
switch (e.type) {
|
|
1125
|
-
case "drop":
|
|
1126
|
-
case "dragend":
|
|
1127
|
-
this._onDrop(e);
|
|
1128
|
-
break;
|
|
1129
|
-
case "dragenter":
|
|
1130
|
-
case "dragover":
|
|
1131
|
-
d && (this._onDragOver(e), En(e));
|
|
1132
|
-
break;
|
|
1133
|
-
case "selectstart":
|
|
1134
|
-
e.preventDefault();
|
|
1135
|
-
break;
|
|
1136
|
-
}
|
|
1137
|
-
},
|
|
1138
|
-
/**
|
|
1139
|
-
* Serializes the item into an array of string.
|
|
1140
|
-
* @returns {String[]}
|
|
1141
|
-
*/
|
|
1142
|
-
toArray: function(e) {
|
|
1143
|
-
for (var r = [], t, o = this.el.children, i = 0, a = o.length, l = this.options; i < a; i++)
|
|
1144
|
-
t = o[i], Q(t, l.draggable, this.el, !1) && r.push(t.getAttribute(l.dataIdAttr) || Tn(t));
|
|
1145
|
-
return r;
|
|
1146
|
-
},
|
|
1147
|
-
/**
|
|
1148
|
-
* Sorts the elements according to the array.
|
|
1149
|
-
* @param {String[]} order order of the items
|
|
1150
|
-
*/
|
|
1151
|
-
sort: function(e, r) {
|
|
1152
|
-
var t = {}, o = this.el;
|
|
1153
|
-
this.toArray().forEach(function(i, a) {
|
|
1154
|
-
var l = o.children[a];
|
|
1155
|
-
Q(l, this.options.draggable, o, !1) && (t[i] = l);
|
|
1156
|
-
}, this), r && this.captureAnimationState(), e.forEach(function(i) {
|
|
1157
|
-
t[i] && (o.removeChild(t[i]), o.appendChild(t[i]));
|
|
1158
|
-
}), r && this.animateAll();
|
|
1159
|
-
},
|
|
1160
|
-
/**
|
|
1161
|
-
* Save the current sorting
|
|
1162
|
-
*/
|
|
1163
|
-
save: function() {
|
|
1164
|
-
var e = this.options.store;
|
|
1165
|
-
e && e.set && e.set(this);
|
|
1166
|
-
},
|
|
1167
|
-
/**
|
|
1168
|
-
* For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
|
|
1169
|
-
* @param {HTMLElement} el
|
|
1170
|
-
* @param {String} [selector] default: `options.draggable`
|
|
1171
|
-
* @returns {HTMLElement|null}
|
|
1172
|
-
*/
|
|
1173
|
-
closest: function(e, r) {
|
|
1174
|
-
return Q(e, r || this.options.draggable, this.el, !1);
|
|
1175
|
-
},
|
|
1176
|
-
/**
|
|
1177
|
-
* Set/get option
|
|
1178
|
-
* @param {string} name
|
|
1179
|
-
* @param {*} [value]
|
|
1180
|
-
* @returns {*}
|
|
1181
|
-
*/
|
|
1182
|
-
option: function(e, r) {
|
|
1183
|
-
var t = this.options;
|
|
1184
|
-
if (r === void 0)
|
|
1185
|
-
return t[e];
|
|
1186
|
-
var o = Ye.modifyOption(this, e, r);
|
|
1187
|
-
typeof o < "u" ? t[e] = o : t[e] = r, e === "group" && Lt(t);
|
|
1188
|
-
},
|
|
1189
|
-
/**
|
|
1190
|
-
* Destroy
|
|
1191
|
-
*/
|
|
1192
|
-
destroy: function() {
|
|
1193
|
-
j("destroy", this);
|
|
1194
|
-
var e = this.el;
|
|
1195
|
-
e[M] = null, _(e, "mousedown", this._onTapStart), _(e, "touchstart", this._onTapStart), _(e, "pointerdown", this._onTapStart), this.nativeDraggable && (_(e, "dragover", this), _(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(r) {
|
|
1196
|
-
r.removeAttribute("draggable");
|
|
1197
|
-
}), this._offMoveEvents(), this._offUpEvents(), this._onDrop(), y && y.parentNode && (y.parentNode.removeChild(y), y = null), this._disableDelayedDragEvents(), Ke.splice(Ke.indexOf(this.el), 1), this.el = e = null;
|
|
1198
|
-
},
|
|
1199
|
-
_hideClone: function() {
|
|
1200
|
-
if (!ue) {
|
|
1201
|
-
if (j("hideClone", this), b.eventCanceled) return;
|
|
1202
|
-
E(I, "display", "none"), this.options.removeCloneOnHide && I.parentNode && I.parentNode.removeChild(I), ue = !0;
|
|
1203
|
-
}
|
|
1204
|
-
},
|
|
1205
|
-
_showClone: function(e) {
|
|
1206
|
-
if (e.lastPutMode !== "clone") {
|
|
1207
|
-
this._hideClone();
|
|
1208
|
-
return;
|
|
1209
|
-
}
|
|
1210
|
-
if (ue) {
|
|
1211
|
-
if (j("showClone", this), b.eventCanceled) return;
|
|
1212
|
-
d.parentNode == T && !this.options.group.revertClone ? T.insertBefore(I, d) : he ? T.insertBefore(I, he) : T.appendChild(I), this.options.group.revertClone && this.animate(d, I), E(I, "display", ""), ue = !1;
|
|
1213
|
-
}
|
|
1214
|
-
}
|
|
1215
|
-
};
|
|
1216
|
-
function En(n) {
|
|
1217
|
-
n.dataTransfer && (n.dataTransfer.dropEffect = "move"), n.cancelable && n.preventDefault();
|
|
1218
|
-
}
|
|
1219
|
-
function He(n, e, r, t, o, i, a, l) {
|
|
1220
|
-
var s, u = n[M], f = u.options.onMove, h;
|
|
1221
|
-
return window.CustomEvent && !oe && !Me ? s = new CustomEvent("move", {
|
|
1222
|
-
bubbles: !0,
|
|
1223
|
-
cancelable: !0
|
|
1224
|
-
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = n, s.dragged = r, s.draggedRect = t, s.related = o || e, s.relatedRect = i || R(e), s.willInsertAfter = l, s.originalEvent = a, n.dispatchEvent(s), f && (h = f.call(u, s, a)), h;
|
|
1225
|
-
}
|
|
1226
|
-
function st(n) {
|
|
1227
|
-
n.draggable = !1;
|
|
1228
|
-
}
|
|
1229
|
-
function wn() {
|
|
1230
|
-
ft = !1;
|
|
1231
|
-
}
|
|
1232
|
-
function Dn(n, e, r) {
|
|
1233
|
-
var t = R(Se(r.el, 0, r.options, !0)), o = 10;
|
|
1234
|
-
return e ? n.clientX < t.left - o || n.clientY < t.top && n.clientX < t.right : n.clientY < t.top - o || n.clientY < t.bottom && n.clientX < t.left;
|
|
1235
|
-
}
|
|
1236
|
-
function _n(n, e, r) {
|
|
1237
|
-
var t = R(mt(r.el, r.options.draggable)), o = 10;
|
|
1238
|
-
return e ? n.clientX > t.right + o || n.clientX <= t.right && n.clientY > t.bottom && n.clientX >= t.left : n.clientX > t.right && n.clientY > t.top || n.clientX <= t.right && n.clientY > t.bottom + o;
|
|
1239
|
-
}
|
|
1240
|
-
function Sn(n, e, r, t, o, i, a, l) {
|
|
1241
|
-
var s = t ? n.clientY : n.clientX, u = t ? r.height : r.width, f = t ? r.top : r.left, h = t ? r.bottom : r.right, m = !1;
|
|
1242
|
-
if (!a) {
|
|
1243
|
-
if (l && Ue < u * o) {
|
|
1244
|
-
if (!Le && (Xe === 1 ? s > f + u * i / 2 : s < h - u * i / 2) && (Le = !0), Le)
|
|
1245
|
-
m = !0;
|
|
1246
|
-
else if (Xe === 1 ? s < f + Ue : s > h - Ue)
|
|
1247
|
-
return -Xe;
|
|
1248
|
-
} else if (s > f + u * (1 - o) / 2 && s < h - u * (1 - o) / 2)
|
|
1249
|
-
return Cn(e);
|
|
1250
|
-
}
|
|
1251
|
-
return m = m || a, m && (s < f + u * i / 2 || s > h - u * i / 2) ? s > f + u / 2 ? 1 : -1 : 0;
|
|
1252
|
-
}
|
|
1253
|
-
function Cn(n) {
|
|
1254
|
-
return z(d) < z(n) ? 1 : -1;
|
|
1255
|
-
}
|
|
1256
|
-
function Tn(n) {
|
|
1257
|
-
for (var e = n.tagName + n.className + n.src + n.href + n.textContent, r = e.length, t = 0; r--; )
|
|
1258
|
-
t += e.charCodeAt(r);
|
|
1259
|
-
return t.toString(36);
|
|
1260
|
-
}
|
|
1261
|
-
function On(n) {
|
|
1262
|
-
Ze.length = 0;
|
|
1263
|
-
for (var e = n.getElementsByTagName("input"), r = e.length; r--; ) {
|
|
1264
|
-
var t = e[r];
|
|
1265
|
-
t.checked && Ze.push(t);
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
function qe(n) {
|
|
1269
|
-
return setTimeout(n, 0);
|
|
1270
|
-
}
|
|
1271
|
-
function ht(n) {
|
|
1272
|
-
return clearTimeout(n);
|
|
1273
|
-
}
|
|
1274
|
-
et && C(document, "touchmove", function(n) {
|
|
1275
|
-
(b.active || we) && n.cancelable && n.preventDefault();
|
|
1276
|
-
});
|
|
1277
|
-
b.utils = {
|
|
1278
|
-
on: C,
|
|
1279
|
-
off: _,
|
|
1280
|
-
css: E,
|
|
1281
|
-
find: Pt,
|
|
1282
|
-
is: function(e, r) {
|
|
1283
|
-
return !!Q(e, r, e, !1);
|
|
1284
|
-
},
|
|
1285
|
-
extend: un,
|
|
1286
|
-
throttle: Bt,
|
|
1287
|
-
closest: Q,
|
|
1288
|
-
toggleClass: H,
|
|
1289
|
-
clone: Ft,
|
|
1290
|
-
index: z,
|
|
1291
|
-
nextTick: qe,
|
|
1292
|
-
cancelNextTick: ht,
|
|
1293
|
-
detectDirection: Xt,
|
|
1294
|
-
getChild: Se
|
|
1295
|
-
};
|
|
1296
|
-
b.get = function(n) {
|
|
1297
|
-
return n[M];
|
|
1298
|
-
};
|
|
1299
|
-
b.mount = function() {
|
|
1300
|
-
for (var n = arguments.length, e = new Array(n), r = 0; r < n; r++)
|
|
1301
|
-
e[r] = arguments[r];
|
|
1302
|
-
e[0].constructor === Array && (e = e[0]), e.forEach(function(t) {
|
|
1303
|
-
if (!t.prototype || !t.prototype.constructor)
|
|
1304
|
-
throw "Sortable: Mounted plugin must be a constructor function, not ".concat(
|
|
1305
|
-
{}.toString.call(t)
|
|
1306
|
-
);
|
|
1307
|
-
t.utils && (b.utils = ee(ee({}, b.utils), t.utils)), Ye.mount(t);
|
|
1308
|
-
});
|
|
1309
|
-
};
|
|
1310
|
-
b.create = function(n, e) {
|
|
1311
|
-
return new b(n, e);
|
|
1312
|
-
};
|
|
1313
|
-
b.version = an;
|
|
1314
|
-
var B = [], Pe, pt, gt = !1, ut, dt, Qe, Be;
|
|
1315
|
-
function Nn() {
|
|
1316
|
-
function n() {
|
|
1317
|
-
this.defaults = {
|
|
1318
|
-
scroll: !0,
|
|
1319
|
-
forceAutoScrollFallback: !1,
|
|
1320
|
-
scrollSensitivity: 30,
|
|
1321
|
-
scrollSpeed: 10,
|
|
1322
|
-
bubbleScroll: !0
|
|
1323
|
-
};
|
|
1324
|
-
for (var e in this)
|
|
1325
|
-
e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
|
|
1326
|
-
}
|
|
1327
|
-
return n.prototype = {
|
|
1328
|
-
dragStarted: function(r) {
|
|
1329
|
-
var t = r.originalEvent;
|
|
1330
|
-
this.sortable.nativeDraggable ? C(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? C(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? C(document, "touchmove", this._handleFallbackAutoScroll) : C(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1331
|
-
},
|
|
1332
|
-
dragOverCompleted: function(r) {
|
|
1333
|
-
var t = r.originalEvent;
|
|
1334
|
-
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
1335
|
-
},
|
|
1336
|
-
drop: function() {
|
|
1337
|
-
this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : (_(document, "pointermove", this._handleFallbackAutoScroll), _(document, "touchmove", this._handleFallbackAutoScroll), _(document, "mousemove", this._handleFallbackAutoScroll)), Nt(), Ve(), dn();
|
|
1338
|
-
},
|
|
1339
|
-
nulling: function() {
|
|
1340
|
-
Qe = pt = Pe = gt = Be = ut = dt = null, B.length = 0;
|
|
1341
|
-
},
|
|
1342
|
-
_handleFallbackAutoScroll: function(r) {
|
|
1343
|
-
this._handleAutoScroll(r, !0);
|
|
1344
|
-
},
|
|
1345
|
-
_handleAutoScroll: function(r, t) {
|
|
1346
|
-
var o = this, i = (r.touches ? r.touches[0] : r).clientX, a = (r.touches ? r.touches[0] : r).clientY, l = document.elementFromPoint(i, a);
|
|
1347
|
-
if (Qe = r, t || this.options.forceAutoScrollFallback || Me || oe || Re) {
|
|
1348
|
-
ct(r, this.options, l, t);
|
|
1349
|
-
var s = de(l, !0);
|
|
1350
|
-
gt && (!Be || i !== ut || a !== dt) && (Be && Nt(), Be = setInterval(function() {
|
|
1351
|
-
var u = de(document.elementFromPoint(i, a), !0);
|
|
1352
|
-
u !== s && (s = u, Ve()), ct(r, o.options, u, t);
|
|
1353
|
-
}, 10), ut = i, dt = a);
|
|
1354
|
-
} else {
|
|
1355
|
-
if (!this.options.bubbleScroll || de(l, !0) === U()) {
|
|
1356
|
-
Ve();
|
|
1357
|
-
return;
|
|
1358
|
-
}
|
|
1359
|
-
ct(r, this.options, de(l, !1), !1);
|
|
1360
|
-
}
|
|
1361
|
-
}
|
|
1362
|
-
}, re(n, {
|
|
1363
|
-
pluginName: "scroll",
|
|
1364
|
-
initializeByDefault: !0
|
|
1365
|
-
});
|
|
1366
|
-
}
|
|
1367
|
-
function Ve() {
|
|
1368
|
-
B.forEach(function(n) {
|
|
1369
|
-
clearInterval(n.pid);
|
|
1370
|
-
}), B = [];
|
|
1371
|
-
}
|
|
1372
|
-
function Nt() {
|
|
1373
|
-
clearInterval(Be);
|
|
1374
|
-
}
|
|
1375
|
-
var ct = Bt(function(n, e, r, t) {
|
|
1376
|
-
if (e.scroll) {
|
|
1377
|
-
var o = (n.touches ? n.touches[0] : n).clientX, i = (n.touches ? n.touches[0] : n).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = U(), u = !1, f;
|
|
1378
|
-
pt !== r && (pt = r, Ve(), Pe = e.scroll, f = e.scrollFn, Pe === !0 && (Pe = de(r, !0)));
|
|
1379
|
-
var h = 0, m = Pe;
|
|
1380
|
-
do {
|
|
1381
|
-
var p = m, g = R(p), v = g.top, D = g.bottom, F = g.left, P = g.right, O = g.width, w = g.height, x = void 0, S = void 0, k = p.scrollWidth, W = p.scrollHeight, L = E(p), pe = p.scrollLeft, ie = p.scrollTop;
|
|
1382
|
-
p === s ? (x = O < k && (L.overflowX === "auto" || L.overflowX === "scroll" || L.overflowX === "visible"), S = w < W && (L.overflowY === "auto" || L.overflowY === "scroll" || L.overflowY === "visible")) : (x = O < k && (L.overflowX === "auto" || L.overflowX === "scroll"), S = w < W && (L.overflowY === "auto" || L.overflowY === "scroll"));
|
|
1383
|
-
var ae = x && (Math.abs(P - o) <= a && pe + O < k) - (Math.abs(F - o) <= a && !!pe), V = S && (Math.abs(D - i) <= a && ie + w < W) - (Math.abs(v - i) <= a && !!ie);
|
|
1384
|
-
if (!B[h])
|
|
1385
|
-
for (var le = 0; le <= h; le++)
|
|
1386
|
-
B[le] || (B[le] = {});
|
|
1387
|
-
(B[h].vx != ae || B[h].vy != V || B[h].el !== p) && (B[h].el = p, B[h].vx = ae, B[h].vy = V, clearInterval(B[h].pid), (ae != 0 || V != 0) && (u = !0, B[h].pid = setInterval(
|
|
1388
|
-
function() {
|
|
1389
|
-
t && this.layer === 0 && b.active._onTouchMove(Qe);
|
|
1390
|
-
var K = B[this.layer].vy ? B[this.layer].vy * l : 0, ce = B[this.layer].vx ? B[this.layer].vx * l : 0;
|
|
1391
|
-
typeof f == "function" && f.call(
|
|
1392
|
-
b.dragged.parentNode[M],
|
|
1393
|
-
ce,
|
|
1394
|
-
K,
|
|
1395
|
-
n,
|
|
1396
|
-
Qe,
|
|
1397
|
-
B[this.layer].el
|
|
1398
|
-
) !== "continue" || Rt(B[this.layer].el, ce, K);
|
|
1399
|
-
}.bind({
|
|
1400
|
-
layer: h
|
|
1401
|
-
}),
|
|
1402
|
-
24
|
|
1403
|
-
))), h++;
|
|
1404
|
-
} while (e.bubbleScroll && m !== s && (m = de(m, !1)));
|
|
1405
|
-
gt = u;
|
|
1406
|
-
}
|
|
1407
|
-
}, 30), jt = function(e) {
|
|
1408
|
-
var r = e.originalEvent, t = e.putSortable, o = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, l = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
1409
|
-
if (r) {
|
|
1410
|
-
var u = t || i;
|
|
1411
|
-
l();
|
|
1412
|
-
var f = r.changedTouches && r.changedTouches.length ? r.changedTouches[0] : r, h = document.elementFromPoint(f.clientX, f.clientY);
|
|
1413
|
-
s(), u && !u.el.contains(h) && (a("spill"), this.onSpill({
|
|
1414
|
-
dragEl: o,
|
|
1415
|
-
putSortable: t
|
|
1416
|
-
}));
|
|
1417
|
-
}
|
|
1418
|
-
};
|
|
1419
|
-
function vt() {
|
|
1420
|
-
}
|
|
1421
|
-
vt.prototype = {
|
|
1422
|
-
startIndex: null,
|
|
1423
|
-
dragStart: function(e) {
|
|
1424
|
-
var r = e.oldDraggableIndex;
|
|
1425
|
-
this.startIndex = r;
|
|
1426
|
-
},
|
|
1427
|
-
onSpill: function(e) {
|
|
1428
|
-
var r = e.dragEl, t = e.putSortable;
|
|
1429
|
-
this.sortable.captureAnimationState(), t && t.captureAnimationState();
|
|
1430
|
-
var o = Se(this.sortable.el, this.startIndex, this.options);
|
|
1431
|
-
o ? this.sortable.el.insertBefore(r, o) : this.sortable.el.appendChild(r), this.sortable.animateAll(), t && t.animateAll();
|
|
1432
|
-
},
|
|
1433
|
-
drop: jt
|
|
1434
|
-
};
|
|
1435
|
-
re(vt, {
|
|
1436
|
-
pluginName: "revertOnSpill"
|
|
1437
|
-
});
|
|
1438
|
-
function bt() {
|
|
1439
|
-
}
|
|
1440
|
-
bt.prototype = {
|
|
1441
|
-
onSpill: function(e) {
|
|
1442
|
-
var r = e.dragEl, t = e.putSortable, o = t || this.sortable;
|
|
1443
|
-
o.captureAnimationState(), r.parentNode && r.parentNode.removeChild(r), o.animateAll();
|
|
1444
|
-
},
|
|
1445
|
-
drop: jt
|
|
1446
|
-
};
|
|
1447
|
-
re(bt, {
|
|
1448
|
-
pluginName: "removeOnSpill"
|
|
1449
|
-
});
|
|
1450
|
-
const c = {
|
|
1451
|
-
isBoolean: (n) => typeof n == "boolean",
|
|
1452
|
-
isFunction: (n) => typeof n == "function",
|
|
1453
|
-
isUndefined: (n) => typeof n > "u" || n === null,
|
|
1454
|
-
// 是否为有限数值(坐标校验用;客户端事件缺失坐标为 undefined 时需拦截)
|
|
1455
|
-
isFiniteNumber: (n) => typeof n == "number" && isFinite(n),
|
|
1456
|
-
getOffset: (n) => {
|
|
1457
|
-
const e = n.getBoundingClientRect(), t = (n && n.ownerDocument).documentElement;
|
|
1458
|
-
let o;
|
|
1459
|
-
if (t.toString() !== "[object Window]") {
|
|
1460
|
-
const i = n.ownerDocument;
|
|
1461
|
-
o = i && i.defaultView || window;
|
|
1462
|
-
} else
|
|
1463
|
-
o = t;
|
|
1464
|
-
return {
|
|
1465
|
-
top: e.top + (o.pageYOffset || t.scrollTop) - (t.clientTop || 0),
|
|
1466
|
-
left: e.left + (o.pageXOffset || t.scrollLeft) - (t.clientLeft || 0),
|
|
1467
|
-
width: e.width,
|
|
1468
|
-
height: e.height
|
|
1469
|
-
};
|
|
1470
|
-
},
|
|
1471
|
-
createElement: (n) => {
|
|
1472
|
-
if (n.substring(0, 1) === "<") {
|
|
1473
|
-
const r = document.createElement("div");
|
|
1474
|
-
return r.innerHTML = n, r.children[0];
|
|
1475
|
-
} else
|
|
1476
|
-
return document.createElement(n);
|
|
1477
|
-
},
|
|
1478
|
-
getElementData: (n, e) => {
|
|
1479
|
-
const r = [], t = n.children, o = t.length;
|
|
1480
|
-
let i;
|
|
1481
|
-
for (let a = 0; a < o; a++) {
|
|
1482
|
-
i = t[a];
|
|
1483
|
-
const l = i.getAttribute(e.dataIdAttr);
|
|
1484
|
-
l && l.length > 0 && r.push(l);
|
|
1485
|
-
}
|
|
1486
|
-
return r;
|
|
1487
|
-
},
|
|
1488
|
-
// 隐藏容器:跨结构替换时暂存原 dragEl,保留在 DOM 中
|
|
1489
|
-
// (移动端 touch 事件目标一旦被 removeChild 移出文档,Chrome 即停止派发后续 touchmove/touchend)
|
|
1490
|
-
_getHiddenBox: () => (Z || (Z = document.createElement("div"), Z.style.cssText = "position:fixed;left:-99999px;top:0;width:1px;height:1px;overflow:hidden;pointer-events:none;", document.body.appendChild(Z)), Z),
|
|
1491
|
-
_moveToHiddenBox: (n) => {
|
|
1492
|
-
n && n.parentNode && c._getHiddenBox().appendChild(n);
|
|
1493
|
-
},
|
|
1494
|
-
_clearHiddenBox: () => {
|
|
1495
|
-
Z && Z.parentNode && (Z.parentNode.removeChild(Z), Z = null);
|
|
1496
|
-
},
|
|
1497
|
-
checkMoveOutBoundary: (n, e, r) => {
|
|
1498
|
-
let t = !0, o = {};
|
|
1499
|
-
const i = r.extOption.boundary;
|
|
1500
|
-
if (i) {
|
|
1501
|
-
let a = i.isOut;
|
|
1502
|
-
if (a = c.isBoolean(a) ? a : !0, !a) {
|
|
1503
|
-
let l;
|
|
1504
|
-
if (i.element && i.element.length > 0) {
|
|
1505
|
-
const s = window.document.querySelector(i.element);
|
|
1506
|
-
s && (l = c.getOffset(s));
|
|
1507
|
-
} else
|
|
1508
|
-
l = c.getOffset(e);
|
|
1509
|
-
if (l) {
|
|
1510
|
-
const s = c.getOffset(n);
|
|
1511
|
-
let u = Number(i.x);
|
|
1512
|
-
isNaN(u) && (u = 0);
|
|
1513
|
-
let f = Number(i.y);
|
|
1514
|
-
isNaN(f) && (f = 0);
|
|
1515
|
-
const h = l.top - u > s.top, m = l.left + l.width + f < s.left + s.width, p = l.top + l.height + u < s.top + s.height, g = l.left - f > s.left;
|
|
1516
|
-
t = !(h || m || p || g), t || (o = {
|
|
1517
|
-
top: h,
|
|
1518
|
-
right: m,
|
|
1519
|
-
bottom: p,
|
|
1520
|
-
left: g,
|
|
1521
|
-
x: u,
|
|
1522
|
-
y: f
|
|
1523
|
-
});
|
|
1524
|
-
}
|
|
1525
|
-
}
|
|
1526
|
-
}
|
|
1527
|
-
return o.isOut = !t, o;
|
|
1528
|
-
},
|
|
1529
|
-
setWrapBody: (n, e, r) => {
|
|
1530
|
-
let t = n, o = r.extOption.wrapBody;
|
|
1531
|
-
if (r.fallbackOnBody && (o ? r.extOption.wrapBody.isWrap = !0 : r.extOption.wrapBody = { isWrap: !0 }, o = r.extOption.wrapBody), o) {
|
|
1532
|
-
let i = o.isWrap;
|
|
1533
|
-
if (i = c.isBoolean(i) ? i : !1, i)
|
|
1534
|
-
if (o.element && o.element.length > 0)
|
|
1535
|
-
t = c.createElement(o.element), t.appendChild(n);
|
|
1536
|
-
else
|
|
1537
|
-
switch (t = e.cloneNode(), t.appendChild(n), t.tagName.toLocaleLowerCase()) {
|
|
1538
|
-
case "tbody":
|
|
1539
|
-
const a = e.parentNode.cloneNode();
|
|
1540
|
-
a.appendChild(t), t = a;
|
|
1541
|
-
break;
|
|
1542
|
-
}
|
|
1543
|
-
}
|
|
1544
|
-
return t;
|
|
1545
|
-
},
|
|
1546
|
-
checkCross: (n, e, r) => {
|
|
1547
|
-
const t = r.extOption.cross;
|
|
1548
|
-
let o = { newEl: null, isSameStruct: !0 };
|
|
1549
|
-
if (t) {
|
|
1550
|
-
let i = t.isCross;
|
|
1551
|
-
if (i = c.isBoolean(i) ? i : !1, n.parentNode === e.parentNode && (i = !1), i) {
|
|
1552
|
-
let a = t.isSameStruct;
|
|
1553
|
-
if (a = c.isBoolean(a) ? a : !0, !a) {
|
|
1554
|
-
const l = e.tagName.toLocaleLowerCase(), s = c.createElement(l), u = [], f = ["darg-select", "darg-placeholder"];
|
|
1555
|
-
switch (e.className.split(" ").forEach((h) => {
|
|
1556
|
-
f.indexOf(h) === -1 && u.push(h);
|
|
1557
|
-
}), u.push(...f), s.className = u.join(" "), E(s, "height", e.clientHeight), l) {
|
|
1558
|
-
case "tr":
|
|
1559
|
-
let h = 0;
|
|
1560
|
-
for (let p = 0; p < e.children.length; p++) {
|
|
1561
|
-
const g = e.children[p].getAttribute("colspan");
|
|
1562
|
-
h += c.isUndefined(g) ? 1 : Number(g);
|
|
1563
|
-
}
|
|
1564
|
-
const m = c.createElement("td");
|
|
1565
|
-
m.setAttribute("colspan", h), s.appendChild(m);
|
|
1566
|
-
break;
|
|
1567
|
-
}
|
|
1568
|
-
o.isSameStruct = !1, o.newEl = s;
|
|
1569
|
-
}
|
|
1570
|
-
}
|
|
1571
|
-
}
|
|
1572
|
-
return o;
|
|
1573
|
-
},
|
|
1574
|
-
setCrossEl: (n, e) => {
|
|
1575
|
-
var r = c.checkCross(d, n, e);
|
|
1576
|
-
if (!r.isSameStruct) {
|
|
1577
|
-
const t = d.cloneNode(!0);
|
|
1578
|
-
c._moveToHiddenBox(d), Ee ? (d = Ee, Ee = null) : d = r.newEl, Ee || (Ee = t);
|
|
1579
|
-
}
|
|
1580
|
-
},
|
|
1581
|
-
crossDropEnd: (n, e) => new Promise((r, t) => {
|
|
1582
|
-
const o = n.extOption.cross;
|
|
1583
|
-
let i = !1;
|
|
1584
|
-
const a = d && d.parentNode;
|
|
1585
|
-
if (o) {
|
|
1586
|
-
let s = o.isCross;
|
|
1587
|
-
if (s = c.isBoolean(s) ? s : !1, s) {
|
|
1588
|
-
let u = !1;
|
|
1589
|
-
if (a)
|
|
1590
|
-
if (c.isTreeMode(n)) {
|
|
1591
|
-
var l = e || b.active && b.active.el || n.el;
|
|
1592
|
-
u = !!l && !l.contains(d);
|
|
1593
|
-
} else
|
|
1594
|
-
u = T !== a;
|
|
1595
|
-
u && o.dropEndBeforeCallback && (i = !0);
|
|
1596
|
-
}
|
|
1597
|
-
}
|
|
1598
|
-
if (i) {
|
|
1599
|
-
const s = Ae || d, u = s && s.getAttribute ? s.getAttribute(n.dataIdAttr) : null, f = c.getElementData(a, n), h = o.dropEndBeforeCallback({
|
|
1600
|
-
data: u,
|
|
1601
|
-
inx: z(d),
|
|
1602
|
-
arrSortId: f
|
|
1603
|
-
});
|
|
1604
|
-
if (h && h.then && c.isFunction(h.then))
|
|
1605
|
-
c._crossDropLoad(!0), h.then((m) => {
|
|
1606
|
-
c._crossDropLoad(!1);
|
|
1607
|
-
const p = c._crossDropEndCb(m);
|
|
1608
|
-
r({ success: p });
|
|
1609
|
-
});
|
|
1610
|
-
else {
|
|
1611
|
-
const m = c._crossDropEndCb(h);
|
|
1612
|
-
r({ success: m });
|
|
1613
|
-
}
|
|
1614
|
-
} else
|
|
1615
|
-
r({ success: !0 });
|
|
1616
|
-
}),
|
|
1617
|
-
_crossDropLoad: (n) => {
|
|
1618
|
-
let e;
|
|
1619
|
-
const r = d.tagName.toLocaleLowerCase();
|
|
1620
|
-
if (d.children.length === 0)
|
|
1621
|
-
e = d;
|
|
1622
|
-
else
|
|
1623
|
-
switch (r) {
|
|
1624
|
-
case "tr":
|
|
1625
|
-
e = d.children[0];
|
|
1626
|
-
break;
|
|
1627
|
-
}
|
|
1628
|
-
if (n) {
|
|
1629
|
-
const t = c.createElement("div");
|
|
1630
|
-
t.className = "panel-darg-loading", t.innerHTML = '<div class="darg-add-loading"></div>', e.appendChild(t);
|
|
1631
|
-
} else {
|
|
1632
|
-
const t = d.querySelector(".panel-darg-loading");
|
|
1633
|
-
t && t.parentNode && t.parentNode.removeChild(t);
|
|
1634
|
-
}
|
|
1635
|
-
},
|
|
1636
|
-
_crossDropEndCb: (n) => {
|
|
1637
|
-
var e = c.isBoolean(n) ? n : !0;
|
|
1638
|
-
return e && d && d.parentNode && d.parentNode.removeChild(d), e;
|
|
1639
|
-
},
|
|
1640
|
-
// ===================== 树形拖拽支持 =====================
|
|
1641
|
-
// 说明:树形仅支持同结构(isGroupSameStruct 恒为 true),因此不触发 setCrossEl,
|
|
1642
|
-
// dragEl 全程为原始节点,子树跟随由 DOM insertBefore 天然保证。
|
|
1643
|
-
_tree: {
|
|
1644
|
-
// 拖拽起始 pageX(区分平级/下沉/上提)
|
|
1645
|
-
startPageX: 0,
|
|
1646
|
-
// 拖拽节点的原始深度(拖拽开始时缓存;拖拽期间 dragEl 会被移动,实时计算会失真)
|
|
1647
|
-
startDragDepth: null,
|
|
1648
|
-
// 拖拽节点起始左沿(page 坐标),作为横向深度意图的基准
|
|
1649
|
-
startLeftPage: null,
|
|
1650
|
-
// 拖拽节点的深度与祖先路径缓存(拖拽期间树结构不变,算一次即可)
|
|
1651
|
-
depthCache: null,
|
|
1652
|
-
// 当前落点信息,供指示线复用(保证指示线与实际插入点一致)
|
|
1653
|
-
dropInfo: null
|
|
1654
|
-
},
|
|
1655
|
-
// 向上找到拥有 _isOutsideThisEl 的最近 Sortable 实例(树形下 dragEl 可能位于动态子容器内,
|
|
1656
|
-
// 该容器不是实例根;且 el[expando] 在 destroy 后为 null,需防御)
|
|
1657
|
-
_findOwnerSortable: (n) => {
|
|
1658
|
-
for (var e = n; e; ) {
|
|
1659
|
-
var r = e[M];
|
|
1660
|
-
if (r && c.isFunction(r._isOutsideThisEl))
|
|
1661
|
-
return r;
|
|
1662
|
-
e = e.parentNode;
|
|
1663
|
-
}
|
|
1664
|
-
return null;
|
|
1665
|
-
},
|
|
1666
|
-
// 取得区域选择器
|
|
1667
|
-
_treeRegionCls: (n) => n && n.extOption && n.extOption.tree && n.extOption.tree.regionCls || ".darg-region",
|
|
1668
|
-
// 是否为树形模式
|
|
1669
|
-
isTreeMode: (n) => !!(n && n.extOption && n.extOption.tree && n.extOption.tree.isTree),
|
|
1670
|
-
// 找出包含 target 的、最靠近 target 的树形根实例
|
|
1671
|
-
findNearestTreeRoot: (n, e) => {
|
|
1672
|
-
for (var r = n; r; ) {
|
|
1673
|
-
if (r[M] && r[M].options && c.isTreeMode(r[M].options))
|
|
1674
|
-
return r;
|
|
1675
|
-
r = r.parentNode;
|
|
1676
|
-
}
|
|
1677
|
-
return e;
|
|
1678
|
-
},
|
|
1679
|
-
// 计算节点深度(顶层数据节点深度为 1)
|
|
1680
|
-
getNodeDepth: (n, e) => {
|
|
1681
|
-
for (var r = 0, t = n; t && (t.matches && t.matches(e) && r++, !(t.matches && t[M] && t[M].options)); )
|
|
1682
|
-
t = t.parentNode;
|
|
1683
|
-
return r;
|
|
1684
|
-
},
|
|
1685
|
-
// 取得节点的直接所属容器(regionCls)
|
|
1686
|
-
getOwnerRegion: (n, e) => {
|
|
1687
|
-
for (var r = n.parentNode; r; ) {
|
|
1688
|
-
if (r.matches && r.matches(e)) return r;
|
|
1689
|
-
r = r.parentNode;
|
|
1690
|
-
}
|
|
1691
|
-
return null;
|
|
1692
|
-
},
|
|
1693
|
-
// 取得节点的子容器(直接子级中匹配 regionCls 的容器)
|
|
1694
|
-
getChildRegion: (n, e) => {
|
|
1695
|
-
for (var r = n.children || [], t = 0; t < r.length; t++)
|
|
1696
|
-
if (r[t].matches && r[t].matches(e)) return r[t];
|
|
1697
|
-
return null;
|
|
1698
|
-
},
|
|
1699
|
-
// 命中自身时的兜底:在拖拽节点所在层内找一个「邻近的数据节点」作为落点参照。
|
|
1700
|
-
// 优先取上一个兄弟(上提/上移语义),否则取下一个兄弟,再否则取父层节点。
|
|
1701
|
-
findSiblingFallback: (n, e) => {
|
|
1702
|
-
var r = "data-id", t = (p) => !!p && p.getAttribute && p.getAttribute(r) !== null, o = n && n.parentNode;
|
|
1703
|
-
if (o) {
|
|
1704
|
-
var i = Array.from(o.children).filter(
|
|
1705
|
-
(p) => t(p) && p !== n && !n.contains(p)
|
|
1706
|
-
);
|
|
1707
|
-
if (i.length) {
|
|
1708
|
-
var a = e && e.getBoundingClientRect ? e.getBoundingClientRect() : null;
|
|
1709
|
-
if (a)
|
|
1710
|
-
for (var l = a.top + a.height / 2, s = 0; s < i.length; s++) {
|
|
1711
|
-
var u = i[s].getBoundingClientRect();
|
|
1712
|
-
if (l >= u.top && l <= u.bottom) return i[s];
|
|
1713
|
-
}
|
|
1714
|
-
return i[0];
|
|
1715
|
-
}
|
|
1716
|
-
}
|
|
1717
|
-
for (var f = o, h = 0; f && h++ < 20; ) {
|
|
1718
|
-
var m = f.parentNode;
|
|
1719
|
-
if (t(m) && m !== n && !n.contains(m)) return m;
|
|
1720
|
-
f = m ? m.parentNode : null;
|
|
1721
|
-
}
|
|
1722
|
-
return null;
|
|
1723
|
-
},
|
|
1724
|
-
// 树形落点判定:返回 { isReject, targetDepth, hoverNode, childRegion, ... }
|
|
1725
|
-
resolveTreeDrop: (n, e, r, t, o) => {
|
|
1726
|
-
for (var i = t.extOption.tree || {}, a = c._treeRegionCls(t), l = {
|
|
1727
|
-
isReject: !1,
|
|
1728
|
-
reason: "",
|
|
1729
|
-
targetDepth: 0,
|
|
1730
|
-
hoverNode: null,
|
|
1731
|
-
intent: "same"
|
|
1732
|
-
// same | child | parent
|
|
1733
|
-
}, s = t.dataIdAttr || "data-id", u = e; u && u !== t.el && !(u.getAttribute && u.getAttribute(s) !== null); )
|
|
1734
|
-
u = u.parentNode;
|
|
1735
|
-
if (!u || u === t.el)
|
|
1736
|
-
return l.isReject = !0, l.reason = "no-node", l;
|
|
1737
|
-
if (u === n || n.contains(u)) {
|
|
1738
|
-
var f = c.findSiblingFallback(n, e);
|
|
1739
|
-
f && (u = f);
|
|
1740
|
-
}
|
|
1741
|
-
if (l.hoverNode = u, n.contains(u))
|
|
1742
|
-
return l.isReject = !0, l.reason = "cycle", l;
|
|
1743
|
-
if (i.isOnlyInnerMove) {
|
|
1744
|
-
var h = c.findNearestTreeRoot(n, null), m = c.findNearestTreeRoot(u, null);
|
|
1745
|
-
if (h !== m)
|
|
1746
|
-
return l.isReject = !0, l.reason = "out-of-group", l;
|
|
1747
|
-
}
|
|
1748
|
-
var p = c.getOwnerRegion(u, a), g = p ? c.getNodeDepth(u, a) : 1;
|
|
1749
|
-
g < 1 && (g = 1);
|
|
1750
|
-
var v = Number(i.indentThreshold);
|
|
1751
|
-
(isNaN(v) || v <= 0) && (v = 20);
|
|
1752
|
-
var D = window.pageXOffset || document.documentElement.scrollLeft || 0, F = u.getBoundingClientRect().left + D, P = F - (g - 1) * v, O = 1 + Math.round((o - P) / v);
|
|
1753
|
-
O < 1 && (O = 1);
|
|
1754
|
-
var w = Number(i.maxDepth);
|
|
1755
|
-
isNaN(w) && (w = 3);
|
|
1756
|
-
var x = c._tree.startDragDepth !== null && c._tree.startDragDepth !== void 0 ? c._tree.startDragDepth : c.getNodeDepth(n, a), S = O, k = !1;
|
|
1757
|
-
return S > x && !i.isDragToChild && (S = x, k = !0), S < x && !i.isDragToParent && (S = x, k = !0), w > 0 && S > w && (S = w, S < x && (S = x)), l.targetDepth = S, l.isDepthForced = k, S > x ? l.intent = "child" : S < x ? l.intent = "parent" : l.intent = "same", l.dragDepth = x, l.hoverDepth = g, l;
|
|
1758
|
-
},
|
|
1759
|
-
// 按目标深度求插入容器与参照节点
|
|
1760
|
-
// 返回 { container, refNode }:插入到 container 中 refNode 之前(refNode 为 null 则追加末尾)
|
|
1761
|
-
resolveTreeInsert: (n, e, r, t) => {
|
|
1762
|
-
var o = c._treeRegionCls(r), i = { container: null, refNode: null };
|
|
1763
|
-
if (!e) return i;
|
|
1764
|
-
if (n.intent === "child") {
|
|
1765
|
-
var a = c.getChildRegion(e, o);
|
|
1766
|
-
return a || (a = c.createChildRegion(e, r)), i.container = a, i.refNode = c.findInsertRef(a, t, r), i;
|
|
1767
|
-
}
|
|
1768
|
-
for (var l = n.targetDepth !== void 0 ? n.targetDepth : n.hoverDepth, s = e, u = n.hoverDepth; s && u > l; ) {
|
|
1769
|
-
var f = c.getOwnerRegion(s, o);
|
|
1770
|
-
if (!f || !f.parentNode) break;
|
|
1771
|
-
var h = f.parentNode;
|
|
1772
|
-
if (!h.getAttribute || h.getAttribute(r.dataIdAttr || "data-id") === null)
|
|
1773
|
-
break;
|
|
1774
|
-
s = h, u--;
|
|
1775
|
-
}
|
|
1776
|
-
for (; s && u < l; ) {
|
|
1777
|
-
var m = c.getChildRegion(s, o);
|
|
1778
|
-
if (!m) break;
|
|
1779
|
-
if (s = m, u++, u < l) {
|
|
1780
|
-
for (var p = null, g = m.children || [], v = 0; v < g.length; v++)
|
|
1781
|
-
g[v].getAttribute && g[v].getAttribute(r.dataIdAttr || "data-id") !== null && g[v] !== d && (p = g[v]);
|
|
1782
|
-
if (!p) {
|
|
1783
|
-
u--;
|
|
1784
|
-
break;
|
|
1785
|
-
}
|
|
1786
|
-
s = p;
|
|
1787
|
-
}
|
|
1788
|
-
}
|
|
1789
|
-
var D;
|
|
1790
|
-
s && s.matches && s.matches(o) ? D = s : D = c.getOwnerRegion(s, o);
|
|
1791
|
-
var F = n.isDepthForced === !0;
|
|
1792
|
-
if (F && u !== l) {
|
|
1793
|
-
var P = c.getOwnerRegion(d, o);
|
|
1794
|
-
if (P)
|
|
1795
|
-
return i.container = P, i.refNode = c.findInsertRef(P, t, r), i;
|
|
1796
|
-
}
|
|
1797
|
-
return D && (i.container = D, i.refNode = c.findInsertRef(D, t, r)), i;
|
|
1798
|
-
},
|
|
1799
|
-
// 按纵向位置在容器内找插入参照节点(返回该节点,插入到其之前;null 表示末尾)
|
|
1800
|
-
findInsertRef: (n, e, r) => {
|
|
1801
|
-
for (var t = r.dataIdAttr || "data-id", o = [], i = n.children || [], a = 0; a < i.length; a++) {
|
|
1802
|
-
var l = i[a];
|
|
1803
|
-
l.getAttribute && l.getAttribute(t) !== null && l !== d && o.push(l);
|
|
1804
|
-
}
|
|
1805
|
-
for (var s = 0; s < o.length; s++) {
|
|
1806
|
-
var u = o[s].getBoundingClientRect(), f = u.top + u.height / 2;
|
|
1807
|
-
if (e < f)
|
|
1808
|
-
return o[s];
|
|
1809
|
-
}
|
|
1810
|
-
return null;
|
|
1811
|
-
},
|
|
1812
|
-
// 动态创建子容器(下沉到无子集的节点时)
|
|
1813
|
-
createChildRegion: (n, e) => {
|
|
1814
|
-
var r = c._treeRegionCls(e), t = c.getOwnerRegion(n, r), o = t ? t.tagName.toLocaleLowerCase() : "ul", i = c.createElement(o), a = r.charAt(0) === "." ? r.slice(1) : r;
|
|
1815
|
-
return i.className = a + " " + c.TREE_AUTO_REGION_CLS, n.appendChild(i), i;
|
|
1816
|
-
},
|
|
1817
|
-
// 引擎动态创建的子容器标记类名
|
|
1818
|
-
TREE_AUTO_REGION_CLS: "darg-region-auto",
|
|
1819
|
-
// 清理「引擎动态创建且已为空」的子容器。
|
|
1820
|
-
// 触发时机:① 每次落点插入后(拖拽中途移走也会清理)② 拖拽结束 resetTreeState。
|
|
1821
|
-
// 调用方渲染的容器不带 darg-region-auto 标记,不会被误删。
|
|
1822
|
-
cleanupEmptyAutoRegions: (n) => {
|
|
1823
|
-
var e = n || document;
|
|
1824
|
-
if (!(!e || !e.querySelectorAll))
|
|
1825
|
-
for (var r = e.querySelectorAll("." + c.TREE_AUTO_REGION_CLS), t = r.length - 1; t >= 0; t--) {
|
|
1826
|
-
for (var o = r[t], i = !1, a = o.children || [], l = 0; l < a.length; l++)
|
|
1827
|
-
if (a[l].getAttribute && a[l].getAttribute("data-id") !== null) {
|
|
1828
|
-
i = !0;
|
|
1829
|
-
break;
|
|
1830
|
-
}
|
|
1831
|
-
i || d && (o === d.parentNode || o.contains(d)) || o.parentNode && o.parentNode.removeChild(o);
|
|
1832
|
-
}
|
|
1833
|
-
},
|
|
1834
|
-
// 树形模式:走查落点并直接完成插入,返回 true 表示已处理
|
|
1835
|
-
treeDragOver: (n, e, r) => {
|
|
1836
|
-
var t = n.options, o = e.clientX, i = e.clientY;
|
|
1837
|
-
if (!c.isFiniteNumber(o) || !c.isFiniteNumber(i))
|
|
1838
|
-
if (q && c.isFiniteNumber(q.clientX) && c.isFiniteNumber(q.clientY))
|
|
1839
|
-
o = q.clientX, i = q.clientY;
|
|
1840
|
-
else
|
|
1841
|
-
return !1;
|
|
1842
|
-
var a = e.pageX !== void 0 && c.isFiniteNumber(e.pageX) ? e.pageX : o, l = document.elementFromPoint(o, i), s = l || r;
|
|
1843
|
-
s && (s === d || s.closest(".sortable-fallback")) && (s = r);
|
|
1844
|
-
var u = c.resolveTreeDrop(d, s, e, t, a);
|
|
1845
|
-
if (c._tree.dropInfo = u, u.isReject)
|
|
1846
|
-
return !1;
|
|
1847
|
-
var f = c.resolveTreeInsert(
|
|
1848
|
-
u,
|
|
1849
|
-
u.hoverNode,
|
|
1850
|
-
t,
|
|
1851
|
-
i
|
|
1852
|
-
);
|
|
1853
|
-
if (!f.container)
|
|
1854
|
-
return !1;
|
|
1855
|
-
if (d.contains(f.container))
|
|
1856
|
-
return c._tree.dropInfo = { isReject: !0, reason: "cycle-container" }, !1;
|
|
1857
|
-
if (f.container === d.parentNode && (f.refNode === d || f.refNode === d.nextSibling))
|
|
1858
|
-
return !1;
|
|
1859
|
-
var h = f.refNode;
|
|
1860
|
-
return h ? f.container.insertBefore(d, h) : f.container.appendChild(d), c.cleanupEmptyAutoRegions(n.el || document), !0;
|
|
1861
|
-
},
|
|
1862
|
-
// 树形模式下的落点指示线渲染(用同一个 dropInfo,保证与实际插入一致)
|
|
1863
|
-
renderTreeIndicator: (n, e) => {
|
|
1864
|
-
var r = n.options, t = c._tree.dropInfo, o = document.body, i = o.querySelector(".darg-tree-indicator");
|
|
1865
|
-
if (!t || t.isReject || !t.hoverNode) {
|
|
1866
|
-
i && i.parentNode && i.parentNode.removeChild(i);
|
|
1867
|
-
return;
|
|
1868
|
-
}
|
|
1869
|
-
i || (i = c.createElement("div"), i.className = "darg-tree-indicator", o.appendChild(i)), c._treeRegionCls(r);
|
|
1870
|
-
var a = t.hoverNode.getBoundingClientRect(), l = Number(r.extOption.tree.indentThreshold) || 20, s = (t.targetDepth - t.hoverDepth) * l, u = a.left + s, f = a.width - s;
|
|
1871
|
-
f < 20 && (f = 20);
|
|
1872
|
-
var h = t.intent === "child" ? a.bottom - 1 : a.top;
|
|
1873
|
-
i.style.cssText = "position:fixed;pointer-events:none;z-index:100001;height:2px;background:#409eff;left:" + u + "px;top:" + h + "px;width:" + f + "px;border-radius:1px;";
|
|
1874
|
-
},
|
|
1875
|
-
clearTreeIndicator: () => {
|
|
1876
|
-
var n = document.querySelector(".darg-tree-indicator");
|
|
1877
|
-
n && n.parentNode && n.parentNode.removeChild(n), c._tree.dropInfo = null;
|
|
1878
|
-
},
|
|
1879
|
-
resetTreeState: () => {
|
|
1880
|
-
c._tree.startPageX = 0, c._tree.startDragDepth = null, c._tree.startLeftPage = null, c._tree.depthCache = null, c._tree.dropInfo = null, c.clearTreeIndicator(), c.cleanupEmptyAutoRegions(document);
|
|
1881
|
-
}
|
|
1882
|
-
};
|
|
1883
|
-
b.mount(new Nn());
|
|
1884
|
-
b.mount(bt, vt);
|
|
1885
|
-
const In = ["id"], Fn = /* @__PURE__ */ Ht({
|
|
1886
|
-
name: "ClDarg",
|
|
1887
|
-
__name: "Index",
|
|
1888
|
-
props: {
|
|
1889
|
-
id: String,
|
|
1890
|
-
// desc: 组件实例唯一标识,用于多实例场景下 DOM 查询限定
|
|
1891
|
-
className: String,
|
|
1892
|
-
// desc: 自定义 CSS 类名
|
|
1893
|
-
group: [String, Object],
|
|
1894
|
-
// desc: 拖拽分组配置,字符串或 { name, pull, put } 对象
|
|
1895
|
-
dargRegionCls: {
|
|
1896
|
-
type: String,
|
|
1897
|
-
default: ".darg-region"
|
|
1898
|
-
// desc: 拖拽区域选择器 (可自定义)
|
|
1899
|
-
},
|
|
1900
|
-
handleCls: {
|
|
1901
|
-
type: String,
|
|
1902
|
-
default: ".darg-handle"
|
|
1903
|
-
// desc: 拖拽手柄选择器 (可自定义)
|
|
1904
|
-
},
|
|
1905
|
-
selectCls: {
|
|
1906
|
-
type: String,
|
|
1907
|
-
default: "darg-select"
|
|
1908
|
-
// desc: 选中态 CSS 类名 (可自定义)
|
|
1909
|
-
},
|
|
1910
|
-
placeholderCls: {
|
|
1911
|
-
type: String,
|
|
1912
|
-
default: "darg-placeholder"
|
|
1913
|
-
// desc: 占位符 CSS 类名 (可自定义)
|
|
1914
|
-
},
|
|
1915
|
-
isBoundaryOut: {
|
|
1916
|
-
type: Boolean,
|
|
1917
|
-
default: !0
|
|
1918
|
-
// desc: 是否允许拖出边界
|
|
1919
|
-
},
|
|
1920
|
-
boundaryElement: String,
|
|
1921
|
-
// desc: 边界元素选择器
|
|
1922
|
-
isWrapBody: {
|
|
1923
|
-
type: Boolean,
|
|
1924
|
-
default: !0
|
|
1925
|
-
// desc: 是否将拖拽镜像插入 body
|
|
1926
|
-
},
|
|
1927
|
-
wrapBodyElement: String,
|
|
1928
|
-
// desc: 包裹 body 的元素选择器
|
|
1929
|
-
isDisabledInner: {
|
|
1930
|
-
type: Boolean,
|
|
1931
|
-
default: !1
|
|
1932
|
-
// desc: 是否禁用内部排序
|
|
1933
|
-
},
|
|
1934
|
-
isDisabledOutsideInto: {
|
|
1935
|
-
type: Boolean,
|
|
1936
|
-
default: !1
|
|
1937
|
-
// desc: 是否禁止外部拖入
|
|
1938
|
-
},
|
|
1939
|
-
isGroupSameStruct: {
|
|
1940
|
-
type: Boolean,
|
|
1941
|
-
default: !0
|
|
1942
|
-
// desc: 跨组结构是否相同,ul/li 与 table/tr 互拖时设为 false
|
|
1943
|
-
},
|
|
1944
|
-
keyAttrId: {
|
|
1945
|
-
type: String,
|
|
1946
|
-
default: "data-id"
|
|
1947
|
-
// desc: 数据 ID 属性名
|
|
1948
|
-
},
|
|
1949
|
-
animation: {
|
|
1950
|
-
type: Number,
|
|
1951
|
-
default: 150
|
|
1952
|
-
// desc: 拖拽交换动画时长(ms)
|
|
1953
|
-
},
|
|
1954
|
-
groupDropEndBeforeCallback: Function,
|
|
1955
|
-
// desc: 跨组拖拽结束前的异步验证回调
|
|
1956
|
-
isTree: {
|
|
1957
|
-
type: Boolean,
|
|
1958
|
-
default: !1
|
|
1959
|
-
// desc: 是否启用树形拖拽(组整体拖动/下沉/上提),false 时保持原有扁平行为
|
|
1960
|
-
},
|
|
1961
|
-
maxDepth: {
|
|
1962
|
-
type: Number,
|
|
1963
|
-
default: 3
|
|
1964
|
-
// desc: 树形最大层级,0 表示不限(仅约束下沉方向,上提不受限)
|
|
1965
|
-
},
|
|
1966
|
-
indentThreshold: {
|
|
1967
|
-
type: Number,
|
|
1968
|
-
default: 20
|
|
1969
|
-
// desc: 树形落点横向位移阈值(px),用于区分平级/下沉/上提
|
|
1970
|
-
},
|
|
1971
|
-
isOnlyInnerMove: {
|
|
1972
|
-
type: Boolean,
|
|
1973
|
-
default: !1
|
|
1974
|
-
// desc: 是否仅允许组内移动(禁止拖出到其他树)
|
|
1975
|
-
},
|
|
1976
|
-
isDragToChild: {
|
|
1977
|
-
type: Boolean,
|
|
1978
|
-
default: !0
|
|
1979
|
-
// desc: 是否允许下沉(拖到下级,成为目标节点的子级)
|
|
1980
|
-
},
|
|
1981
|
-
isDragToParent: {
|
|
1982
|
-
type: Boolean,
|
|
1983
|
-
default: !0
|
|
1984
|
-
// desc: 是否允许上提(拖到上级,成为更浅层级的平级)
|
|
1985
|
-
}
|
|
1986
|
-
},
|
|
1987
|
-
emits: {
|
|
1988
|
-
onChangeSort: (n) => !0,
|
|
1989
|
-
// desc: 排序变更时触发
|
|
1990
|
-
onError: (n) => !0
|
|
1991
|
-
// desc: 组件异常时触发
|
|
1992
|
-
},
|
|
1993
|
-
setup(n, { expose: e, emit: r }) {
|
|
1994
|
-
const t = n, o = r, i = t.id, a = Gt("refElTop"), l = {
|
|
1995
|
-
sortableObj: null
|
|
1996
|
-
}, s = zt(() => {
|
|
1997
|
-
let p = {
|
|
1998
|
-
"panel-darg": !0
|
|
1999
|
-
};
|
|
2000
|
-
return p = tt.getJsonMerge(p, tn.getClassNameJson(t.className)), p;
|
|
2001
|
-
}), u = () => {
|
|
2002
|
-
const p = a.value;
|
|
2003
|
-
if (!p) return [];
|
|
2004
|
-
const g = t.keyAttrId || "data-id", v = t.dargRegionCls || ".darg-region", D = (O) => {
|
|
2005
|
-
const w = { id: O.getAttribute(g) || "", children: [] };
|
|
2006
|
-
return Array.from(O.children).filter(
|
|
2007
|
-
(S) => S.matches && S.matches(v)
|
|
2008
|
-
).forEach((S) => {
|
|
2009
|
-
Array.from(S.children).forEach((k) => {
|
|
2010
|
-
k.matches && k.matches("li,[data-id]") && w.children.push(D(k));
|
|
2011
|
-
});
|
|
2012
|
-
}), w;
|
|
2013
|
-
}, F = [];
|
|
2014
|
-
return Array.from(p.querySelectorAll(v)).filter((O) => {
|
|
2015
|
-
let w = O.parentElement;
|
|
2016
|
-
for (; w && w !== p; ) {
|
|
2017
|
-
if (w.matches && w.matches(v)) return !1;
|
|
2018
|
-
w = w.parentElement;
|
|
2019
|
-
}
|
|
2020
|
-
return !0;
|
|
2021
|
-
}).forEach((O) => {
|
|
2022
|
-
Array.from(O.children).forEach((w) => {
|
|
2023
|
-
w.matches && w.matches("li,[data-id]") && F.push(D(w));
|
|
2024
|
-
});
|
|
2025
|
-
}), F;
|
|
2026
|
-
}, f = () => {
|
|
2027
|
-
if (t.isTree) {
|
|
2028
|
-
o("onChangeSort", u());
|
|
2029
|
-
return;
|
|
2030
|
-
}
|
|
2031
|
-
const p = l.sortableObj?.toArray?.() || [];
|
|
2032
|
-
o("onChangeSort", p);
|
|
2033
|
-
}, h = () => {
|
|
2034
|
-
en(() => {
|
|
2035
|
-
let p = null;
|
|
2036
|
-
try {
|
|
2037
|
-
if (p = a.value?.querySelector(
|
|
2038
|
-
t.dargRegionCls || ".darg-region"
|
|
2039
|
-
), !p) {
|
|
2040
|
-
Oe.warn("ClDarg", "未找到拖拽区域元素:", t.dargRegionCls || ".darg-region"), o("onError", "未找到拖拽区域元素");
|
|
2041
|
-
return;
|
|
2042
|
-
}
|
|
2043
|
-
const {
|
|
2044
|
-
group: g,
|
|
2045
|
-
placeholderCls: v,
|
|
2046
|
-
handleCls: D,
|
|
2047
|
-
selectCls: F,
|
|
2048
|
-
isBoundaryOut: P,
|
|
2049
|
-
boundaryElement: O,
|
|
2050
|
-
isWrapBody: w,
|
|
2051
|
-
wrapBodyElement: x,
|
|
2052
|
-
isDisabledInner: S,
|
|
2053
|
-
isDisabledOutsideInto: k,
|
|
2054
|
-
isGroupSameStruct: W,
|
|
2055
|
-
groupDropEndBeforeCallback: L,
|
|
2056
|
-
keyAttrId: pe,
|
|
2057
|
-
isTree: ie,
|
|
2058
|
-
maxDepth: ae,
|
|
2059
|
-
indentThreshold: V,
|
|
2060
|
-
isOnlyInnerMove: le,
|
|
2061
|
-
isDragToChild: K,
|
|
2062
|
-
isDragToParent: ce
|
|
2063
|
-
} = t;
|
|
2064
|
-
let Ce = W;
|
|
2065
|
-
ie && !W && (Ce = !0, Oe.warn(
|
|
2066
|
-
"ClDarg",
|
|
2067
|
-
"树形拖拽仅支持同结构,isGroupSameStruct 已被强制为 true(原值 false 被忽略)"
|
|
2068
|
-
), o("onError", "树形拖拽仅支持同结构,isGroupSameStruct 已被强制为 true"));
|
|
2069
|
-
const $ = {
|
|
2070
|
-
sort: !S,
|
|
2071
|
-
forceFallback: !0,
|
|
2072
|
-
fallbackOnBody: w,
|
|
2073
|
-
fallbackTolerance: 0,
|
|
2074
|
-
handle: D,
|
|
2075
|
-
ghostClass: v,
|
|
2076
|
-
chosenClass: F,
|
|
2077
|
-
dragClass: "darg-moveing",
|
|
2078
|
-
animation: t.animation,
|
|
2079
|
-
dataIdAttr: pe,
|
|
2080
|
-
extOption: {
|
|
2081
|
-
boundary: {
|
|
2082
|
-
isOut: P,
|
|
2083
|
-
element: O,
|
|
2084
|
-
x: 5,
|
|
2085
|
-
y: 20
|
|
2086
|
-
},
|
|
2087
|
-
wrapBody: {
|
|
2088
|
-
isWrap: w,
|
|
2089
|
-
element: x
|
|
2090
|
-
},
|
|
2091
|
-
cross: {
|
|
2092
|
-
isCross: !1,
|
|
2093
|
-
isSameStruct: Ce,
|
|
2094
|
-
dropEndBeforeCallback: L || null
|
|
2095
|
-
},
|
|
2096
|
-
tree: {
|
|
2097
|
-
isTree: ie,
|
|
2098
|
-
maxDepth: ae,
|
|
2099
|
-
indentThreshold: V,
|
|
2100
|
-
isOnlyInnerMove: le,
|
|
2101
|
-
isDragToChild: K,
|
|
2102
|
-
isDragToParent: ce,
|
|
2103
|
-
rootId: i || ""
|
|
2104
|
-
}
|
|
2105
|
-
},
|
|
2106
|
-
onUpdate: () => {
|
|
2107
|
-
f();
|
|
2108
|
-
}
|
|
2109
|
-
};
|
|
2110
|
-
if (g && !tt.isEmpty(g))
|
|
2111
|
-
if ($.extOption.cross.isCross = !0, k) {
|
|
2112
|
-
const ge = tt.isObject(g) ? g.name : g;
|
|
2113
|
-
$.group = { name: ge, pull: "clone", put: !1 }, $.animation = 0;
|
|
2114
|
-
} else
|
|
2115
|
-
$.group = g;
|
|
2116
|
-
l.sortableObj = new b(p, $);
|
|
2117
|
-
} catch (g) {
|
|
2118
|
-
Oe.warn("ClDarg", "Sortable 初始化失败:", g), o("onError", "拖拽组件初始化失败");
|
|
2119
|
-
}
|
|
2120
|
-
});
|
|
2121
|
-
};
|
|
2122
|
-
return Ut(() => {
|
|
2123
|
-
h();
|
|
2124
|
-
}), qt(() => {
|
|
2125
|
-
if (!l.sortableObj) return;
|
|
2126
|
-
const p = a.value?.querySelector(
|
|
2127
|
-
t.dargRegionCls || ".darg-region"
|
|
2128
|
-
);
|
|
2129
|
-
if (p && l.sortableObj.el !== p) {
|
|
2130
|
-
try {
|
|
2131
|
-
l.sortableObj.destroy();
|
|
2132
|
-
} catch (g) {
|
|
2133
|
-
Oe.warn("ClDarg", "重建前销毁旧实例失败:", g);
|
|
2134
|
-
}
|
|
2135
|
-
l.sortableObj = null, h();
|
|
2136
|
-
}
|
|
2137
|
-
}), Vt(() => {
|
|
2138
|
-
if (l.sortableObj) {
|
|
2139
|
-
try {
|
|
2140
|
-
l.sortableObj.destroy();
|
|
2141
|
-
} catch (p) {
|
|
2142
|
-
Oe.warn("ClDarg", "销毁拖拽实例失败:", p);
|
|
2143
|
-
}
|
|
2144
|
-
l.sortableObj = null;
|
|
2145
|
-
}
|
|
2146
|
-
}), e({
|
|
2147
|
-
getArrSort: () => t.isTree ? u() : l.sortableObj?.toArray ? l.sortableObj.toArray() : []
|
|
2148
|
-
}), (p, g) => ($t(), Jt("div", {
|
|
2149
|
-
ref_key: "refElTop",
|
|
2150
|
-
ref: a,
|
|
2151
|
-
id: Zt(i),
|
|
2152
|
-
class: Kt(s.value)
|
|
2153
|
-
}, [
|
|
2154
|
-
Qt(p.$slots, "default")
|
|
2155
|
-
], 10, In));
|
|
2156
|
-
}
|
|
2157
|
-
});
|
|
2158
|
-
export {
|
|
2159
|
-
Fn as default
|
|
2160
|
-
};
|
|
1
|
+
export { default } from '../utils/Element/ClDarg.js';
|