@adyen/bento-vue2 1.89.2 → 1.91.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +4 -0
- package/dist/@types/index.d.ts +381 -118
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-scroller.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable-handle.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/field-label.css +1 -0
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/input-time.css +1 -0
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/accordion-item.D0WVCLec.js +145 -0
- package/dist/chunks/{accordion-item.BZDSJamR.js.map → accordion-item.D0WVCLec.js.map} +1 -1
- package/dist/chunks/action-bar.Dj830k6L.js +334 -0
- package/dist/chunks/{action-bar.CYGUYI0V.js.map → action-bar.Dj830k6L.js.map} +1 -1
- package/dist/chunks/{ai-button.CR_ePQRR.js → ai-button.7L9bANlk.js} +2 -2
- package/dist/chunks/{ai-button.CR_ePQRR.js.map → ai-button.7L9bANlk.js.map} +1 -1
- package/dist/chunks/ai-tag.AyG2UWCB.js +110 -0
- package/dist/chunks/{ai-tag.Cjf38mjR.js.map → ai-tag.AyG2UWCB.js.map} +1 -1
- package/dist/chunks/alert.CXRb-Smf.js +160 -0
- package/dist/chunks/{alert.QVQ6Zjbm.js.map → alert.CXRb-Smf.js.map} +1 -1
- package/dist/chunks/{anchor-scroller.CjJ26PJS.js → anchor-scroller.DWaykZQj.js} +66 -39
- package/dist/chunks/{anchor-scroller.CjJ26PJS.js.map → anchor-scroller.DWaykZQj.js.map} +1 -1
- package/dist/chunks/{base-modal.DmWkavtf.js → base-modal.C52VMtnd.js} +104 -67
- package/dist/chunks/{base-modal.DmWkavtf.js.map → base-modal.C52VMtnd.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.Bi_HXopk.js → button-actions-with-menu.OsPQ-POD.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.Bi_HXopk.js.map → button-actions-with-menu.OsPQ-POD.js.map} +1 -1
- package/dist/chunks/{button-actions.BLk114As.js → button-actions.Bdbu0bvt.js} +222 -148
- package/dist/chunks/{button-actions.BLk114As.js.map → button-actions.Bdbu0bvt.js.map} +1 -1
- package/dist/chunks/{button.DxhJNOtr.js → button.C9b2AC9w.js} +2 -2
- package/dist/chunks/{button.DxhJNOtr.js.map → button.C9b2AC9w.js.map} +1 -1
- package/dist/chunks/{calendar.CXKhBF2f.js → calendar.CqsfThnC.js} +438 -346
- package/dist/chunks/calendar.CqsfThnC.js.map +1 -0
- package/dist/chunks/card.8z7UQeVK.js +165 -0
- package/dist/chunks/{card.GjhsXOT0.js.map → card.8z7UQeVK.js.map} +1 -1
- package/dist/chunks/{checkbox-group.B2BjU3ZN.js → checkbox-group.Dur2Edtw.js} +4 -4
- package/dist/chunks/{checkbox-group.B2BjU3ZN.js.map → checkbox-group.Dur2Edtw.js.map} +1 -1
- package/dist/chunks/{checkbox.CIv8WgGp.js → checkbox.vNjt6QDJ.js} +93 -56
- package/dist/chunks/{checkbox.CIv8WgGp.js.map → checkbox.vNjt6QDJ.js.map} +1 -1
- package/dist/chunks/chip.BFY_-VCz.js +84 -0
- package/dist/chunks/{chip.DTpENaGC.js.map → chip.BFY_-VCz.js.map} +1 -1
- package/dist/chunks/{click-outside.CDz_x8mN.js → click-outside.BG01Sm0A.js} +2 -2
- package/dist/chunks/{click-outside.CDz_x8mN.js.map → click-outside.BG01Sm0A.js.map} +1 -1
- package/dist/chunks/{code-snippet.YIm2oO_o.js → code-snippet.BVpFBhKq.js} +133 -76
- package/dist/chunks/{code-snippet.YIm2oO_o.js.map → code-snippet.BVpFBhKq.js.map} +1 -1
- package/dist/chunks/{controls-group.CqotnNEF.js → controls-group.DSm2Ujwt.js} +2 -2
- package/dist/chunks/{controls-group.CqotnNEF.js.map → controls-group.DSm2Ujwt.js.map} +1 -1
- package/dist/chunks/copy.qqGYFbKJ.js +133 -0
- package/dist/chunks/{copy.BVGQcf22.js.map → copy.qqGYFbKJ.js.map} +1 -1
- package/dist/chunks/{country.D20NCLLG.js → country.BEwW8TQo.js} +3 -3
- package/dist/chunks/{country.D20NCLLG.js.map → country.BEwW8TQo.js.map} +1 -1
- package/dist/chunks/country.types.jjXwaoMl.js +2537 -0
- package/dist/chunks/country.types.jjXwaoMl.js.map +1 -0
- package/dist/chunks/{dashboard-section.BubZyu8i.js → dashboard-section.DNxNVV44.js} +3 -3
- package/dist/chunks/{dashboard-section.BubZyu8i.js.map → dashboard-section.DNxNVV44.js.map} +1 -1
- package/dist/chunks/{dashed-underline.pjYTS0m1.js → dashed-underline.DL2_sik5.js} +3 -3
- package/dist/chunks/{dashed-underline.pjYTS0m1.js.map → dashed-underline.DL2_sik5.js.map} +1 -1
- package/dist/chunks/{data-grid-template.D8RhngPj.js → data-grid-template.BFv1zr6g.js} +4 -4
- package/dist/chunks/{data-grid-template.D8RhngPj.js.map → data-grid-template.BFv1zr6g.js.map} +1 -1
- package/dist/chunks/data-grid.ZHY5EzP3.js +4071 -0
- package/dist/chunks/data-grid.ZHY5EzP3.js.map +1 -0
- package/dist/chunks/date-picker.kl6aFlr1.js +237 -0
- package/dist/chunks/date-picker.kl6aFlr1.js.map +1 -0
- package/dist/chunks/date-range-picker.LCWVAa5R.js +1089 -0
- package/dist/chunks/date-range-picker.LCWVAa5R.js.map +1 -0
- package/dist/chunks/dialog-page.EdejG53a.js +143 -0
- package/dist/chunks/{dialog-page.oyG153fC.js.map → dialog-page.EdejG53a.js.map} +1 -1
- package/dist/chunks/{directive.rXUeDb8p.js → directive.Bfr4fuOy.js} +2 -2
- package/dist/chunks/{directive.rXUeDb8p.js.map → directive.Bfr4fuOy.js.map} +1 -1
- package/dist/chunks/draggable-handle.Ba28eM8o.js +245 -0
- package/dist/chunks/draggable-handle.Ba28eM8o.js.map +1 -0
- package/dist/chunks/{dropdown-tag.BRB-emd1.js → dropdown-tag.B61hPq5n.js} +5 -5
- package/dist/chunks/{dropdown-tag.BRB-emd1.js.map → dropdown-tag.B61hPq5n.js.map} +1 -1
- package/dist/chunks/dropdown.Ca-f8tdX.js +1140 -0
- package/dist/chunks/dropdown.Ca-f8tdX.js.map +1 -0
- package/dist/chunks/{empty-state.D_Ac-XXH.js → empty-state.DMV23IZy.js} +2 -2
- package/dist/chunks/{empty-state.D_Ac-XXH.js.map → empty-state.DMV23IZy.js.map} +1 -1
- package/dist/chunks/error-message.CyERcfdt.js +72 -0
- package/dist/chunks/error-message.CyERcfdt.js.map +1 -0
- package/dist/chunks/field-label.DjjjkcO6.js +97 -0
- package/dist/chunks/field-label.DjjjkcO6.js.map +1 -0
- package/dist/chunks/{file-uploader.D5Rjsx4k.js → file-uploader.DeWmLpfp.js} +751 -469
- package/dist/chunks/{file-uploader.D5Rjsx4k.js.map → file-uploader.DeWmLpfp.js.map} +1 -1
- package/dist/chunks/{filter-bar.zD_ctViU.js → filter-bar.Bd4ghW_B.js} +1596 -1039
- package/dist/chunks/filter-bar.Bd4ghW_B.js.map +1 -0
- package/dist/chunks/fixed-scroller.DR2E_No4.js +148 -0
- package/dist/chunks/{fixed-scroller.MerESbd_.js.map → fixed-scroller.DR2E_No4.js.map} +1 -1
- package/dist/chunks/{footer-actions.CiPj7hZG.js → footer-actions.CvUaoMzj.js} +3 -3
- package/dist/chunks/{footer-actions.CiPj7hZG.js.map → footer-actions.CvUaoMzj.js.map} +1 -1
- package/dist/chunks/form-layout-title.DzGajv4U.js +248 -0
- package/dist/chunks/form-layout-title.DzGajv4U.js.map +1 -0
- package/dist/chunks/{header-meta.Dq6TlNPw.js → header-meta.AXUGoqDd.js} +127 -73
- package/dist/chunks/{header-meta.Dq6TlNPw.js.map → header-meta.AXUGoqDd.js.map} +1 -1
- package/dist/chunks/{header-with-views.DaEhkSS8.js → header-with-views.Ba4dswJF.js} +1121 -680
- package/dist/chunks/{header-with-views.DaEhkSS8.js.map → header-with-views.Ba4dswJF.js.map} +1 -1
- package/dist/chunks/{header.DkC-KKWa.js → header.C7B7RBib.js} +3 -3
- package/dist/chunks/{header.DkC-KKWa.js.map → header.C7B7RBib.js.map} +1 -1
- package/dist/chunks/{info-icon.BF8KxU-k.js → info-icon.DCR42Kvm.js} +2 -2
- package/dist/chunks/{info-icon.BF8KxU-k.js.map → info-icon.DCR42Kvm.js.map} +1 -1
- package/dist/chunks/input-field-password.BNAtIn_D.js +381 -0
- package/dist/chunks/{input-field-password.BKT1mYUw.js.map → input-field-password.BNAtIn_D.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.BjRKjQOQ.js → input-field-phone-number.CEYx1s4b.js} +98 -71
- package/dist/chunks/{input-field-phone-number.BjRKjQOQ.js.map → input-field-phone-number.CEYx1s4b.js.map} +1 -1
- package/dist/chunks/input-field.Dh5W0Az-.js +211 -0
- package/dist/chunks/input-field.Dh5W0Az-.js.map +1 -0
- package/dist/chunks/input-time.BLuMfakv.js +135 -0
- package/dist/chunks/input-time.BLuMfakv.js.map +1 -0
- package/dist/chunks/inspector.BzBPlz-5.js +172 -0
- package/dist/chunks/{inspector.Bnm0hl_D.js.map → inspector.BzBPlz-5.js.map} +1 -1
- package/dist/chunks/{link.MhoM3zQj.js → link.DB5g6d48.js} +56 -29
- package/dist/chunks/{link.MhoM3zQj.js.map → link.DB5g6d48.js.map} +1 -1
- package/dist/chunks/{list-item.BnzU1LIu.js → list-item.DqTHh8-Z.js} +2 -2
- package/dist/chunks/{list-item.BnzU1LIu.js.map → list-item.DqTHh8-Z.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.BhPVuAjJ.js → listbox-option-tag.CvbE-EuG.js} +2 -2
- package/dist/chunks/{listbox-option-tag.BhPVuAjJ.js.map → listbox-option-tag.CvbE-EuG.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CXOq6_Cv.js → modal-fullscreen.DTvg2NLk.js} +63 -36
- package/dist/chunks/{modal-fullscreen.CXOq6_Cv.js.map → modal-fullscreen.DTvg2NLk.js.map} +1 -1
- package/dist/chunks/{modal.o0KddMiG.js → modal.D_TcWTkf.js} +63 -36
- package/dist/chunks/{modal.o0KddMiG.js.map → modal.D_TcWTkf.js.map} +1 -1
- package/dist/chunks/on-click-outside.Cy1eFULD.js +109 -0
- package/dist/chunks/on-click-outside.Cy1eFULD.js.map +1 -0
- package/dist/chunks/{pagination.ZISqB4M_.js → pagination.D6BxMw5L.js} +221 -99
- package/dist/chunks/{pagination.ZISqB4M_.js.map → pagination.D6BxMw5L.js.map} +1 -1
- package/dist/chunks/promo-banner.Dc_kK1x9.js +91 -0
- package/dist/chunks/{promo-banner.Db2kh2qK.js.map → promo-banner.Dc_kK1x9.js.map} +1 -1
- package/dist/chunks/{radio-group.DnMy7brs.js → radio-group.Bb-L-0io.js} +4 -4
- package/dist/chunks/{radio-group.DnMy7brs.js.map → radio-group.Bb-L-0io.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.Cbv1DxXn.js → rich-text-editor.Dtdfh-0V.js} +1782 -1731
- package/dist/chunks/{rich-text-editor.Cbv1DxXn.js.map → rich-text-editor.Dtdfh-0V.js.map} +1 -1
- package/dist/chunks/search-bar.MVJS9-Mh.js +126 -0
- package/dist/chunks/{search-bar.DPjYDhja.js.map → search-bar.MVJS9-Mh.js.map} +1 -1
- package/dist/chunks/secondary-nav.C-nPZR-2.js +226 -0
- package/dist/chunks/secondary-nav.C-nPZR-2.js.map +1 -0
- package/dist/chunks/{segmented-control.BqIiX9hv.js → segmented-control.DDtjX-V5.js} +2 -2
- package/dist/chunks/{segmented-control.BqIiX9hv.js.map → segmented-control.DDtjX-V5.js.map} +1 -1
- package/dist/chunks/{selection-card-group.IPiouuot.js → selection-card-group.CLJPaknG.js} +3 -3
- package/dist/chunks/{selection-card-group.IPiouuot.js.map → selection-card-group.CLJPaknG.js.map} +1 -1
- package/dist/chunks/{sidepanel.BGMjjB3F.js → sidepanel.BTRfwGiS.js} +66 -39
- package/dist/chunks/{sidepanel.BGMjjB3F.js.map → sidepanel.BTRfwGiS.js.map} +1 -1
- package/dist/chunks/{step.QFER3tSj.js → step.TDm_ts1S.js} +92 -63
- package/dist/chunks/{step.QFER3tSj.js.map → step.TDm_ts1S.js.map} +1 -1
- package/dist/chunks/{structured-list-item.BDJKRC_8.js → structured-list-item.BBBtie1s.js} +58 -31
- package/dist/chunks/{structured-list-item.BDJKRC_8.js.map → structured-list-item.BBBtie1s.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.CIkArZf5.js → summary-grid.types.DUIqCmwg.js} +5 -5
- package/dist/chunks/{summary-grid.types.CIkArZf5.js.map → summary-grid.types.DUIqCmwg.js.map} +1 -1
- package/dist/chunks/{tab.CaXF0dho.js → tab.CNIZyfZt.js} +2 -2
- package/dist/chunks/{tab.CaXF0dho.js.map → tab.CNIZyfZt.js.map} +1 -1
- package/dist/chunks/{tag.CocLKztJ.js → tag.D2xagTJv.js} +2 -2
- package/dist/chunks/{tag.CocLKztJ.js.map → tag.D2xagTJv.js.map} +1 -1
- package/dist/chunks/textarea.CJS-1I41.js +219 -0
- package/dist/chunks/{textarea.D4X6Ss9q.js.map → textarea.CJS-1I41.js.map} +1 -1
- package/dist/chunks/timeline-item.BOUWkLi1.js +322 -0
- package/dist/chunks/{timeline-item.C8BxWdy1.js.map → timeline-item.BOUWkLi1.js.map} +1 -1
- package/dist/chunks/{toast.BRI3G7TL.js → toast.d8vg71CB.js} +81 -54
- package/dist/chunks/{toast.BRI3G7TL.js.map → toast.d8vg71CB.js.map} +1 -1
- package/dist/chunks/{tooltip.CbsNGnhw.js → tooltip.BxtnF3is.js} +38 -36
- package/dist/chunks/tooltip.BxtnF3is.js.map +1 -0
- package/dist/chunks/{tutorial.BzV6bHQJ.js → tutorial.CZt_mcuT.js} +190 -103
- package/dist/chunks/{tutorial.BzV6bHQJ.js.map → tutorial.CZt_mcuT.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DqX2qsMC.js → use-cached-selected-values.BJbWbkEQ.js} +553 -417
- package/dist/chunks/use-cached-selected-values.BJbWbkEQ.js.map +1 -0
- package/dist/chunks/{use-country-items.CI8C7MLU.js → use-country-items.B4j8pAvW.js} +3 -3
- package/dist/chunks/{use-country-items.CI8C7MLU.js.map → use-country-items.B4j8pAvW.js.map} +1 -1
- package/dist/chunks/use-country-phon-code.ByqnuIni.js +6386 -0
- package/dist/chunks/use-country-phon-code.ByqnuIni.js.map +1 -0
- package/dist/chunks/{use-date-input-formatter.BYaTO3vz.js → use-date-input-formatter.Djf8AoLr.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.BYaTO3vz.js.map → use-date-input-formatter.Djf8AoLr.js.map} +1 -1
- package/dist/chunks/use-touch-device.DTqFAbXh.js +11 -0
- package/dist/chunks/use-touch-device.DTqFAbXh.js.map +1 -0
- package/dist/click-outside.js +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +3 -3
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/draggable.js +1396 -0
- package/dist/draggable.js.map +1 -0
- package/dist/dropdown.js +11 -12
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +280 -275
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +5 -0
- package/dist/input-time.js.map +1 -0
- package/dist/inspector.js +1 -1
- package/dist/internal.js +26 -25
- package/dist/internal.js.map +1 -1
- package/dist/link.js +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +297 -4
- package/package.json +10 -15
- package/dist/assets/dropdown-default-textbox.css +0 -1
- package/dist/chunks/accordion-item.BZDSJamR.js +0 -108
- package/dist/chunks/action-bar.CYGUYI0V.js +0 -207
- package/dist/chunks/ai-tag.Cjf38mjR.js +0 -73
- package/dist/chunks/alert.QVQ6Zjbm.js +0 -93
- package/dist/chunks/calendar.CXKhBF2f.js.map +0 -1
- package/dist/chunks/card.GjhsXOT0.js +0 -128
- package/dist/chunks/chip.DTpENaGC.js +0 -57
- package/dist/chunks/copy.BVGQcf22.js +0 -86
- package/dist/chunks/country.types.DxKjyd0S.js +0 -20
- package/dist/chunks/country.types.DxKjyd0S.js.map +0 -1
- package/dist/chunks/data-grid.DJG8Ty0A.js +0 -3194
- package/dist/chunks/data-grid.DJG8Ty0A.js.map +0 -1
- package/dist/chunks/date-picker.CnazYcSX.js +0 -155
- package/dist/chunks/date-picker.CnazYcSX.js.map +0 -1
- package/dist/chunks/date-range-picker.Bf9pRNL7.js +0 -811
- package/dist/chunks/date-range-picker.Bf9pRNL7.js.map +0 -1
- package/dist/chunks/debounce.DUTu11PS.js +0 -10
- package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
- package/dist/chunks/dialog-page.oyG153fC.js +0 -116
- package/dist/chunks/dropdown-default-textbox.Dvzg0StF.js +0 -337
- package/dist/chunks/dropdown-default-textbox.Dvzg0StF.js.map +0 -1
- package/dist/chunks/dropdown.Ct7uhPr6.js +0 -696
- package/dist/chunks/dropdown.Ct7uhPr6.js.map +0 -1
- package/dist/chunks/error-message.RxdStT3S.js +0 -106
- package/dist/chunks/error-message.RxdStT3S.js.map +0 -1
- package/dist/chunks/filter-bar.zD_ctViU.js.map +0 -1
- package/dist/chunks/fixed-scroller.MerESbd_.js +0 -111
- package/dist/chunks/form-layout-title.Bw7VgOO5.js +0 -210
- package/dist/chunks/form-layout-title.Bw7VgOO5.js.map +0 -1
- package/dist/chunks/input-field-password.BKT1mYUw.js +0 -234
- package/dist/chunks/input-field.m1PMwa4C.js +0 -170
- package/dist/chunks/input-field.m1PMwa4C.js.map +0 -1
- package/dist/chunks/inspector.Bnm0hl_D.js +0 -105
- package/dist/chunks/on-click-outside.BW4rkhzG.js +0 -91
- package/dist/chunks/on-click-outside.BW4rkhzG.js.map +0 -1
- package/dist/chunks/promo-banner.Db2kh2qK.js +0 -64
- package/dist/chunks/search-bar.DPjYDhja.js +0 -89
- package/dist/chunks/secondary-nav.CwJjkJkj.js +0 -112
- package/dist/chunks/secondary-nav.CwJjkJkj.js.map +0 -1
- package/dist/chunks/textarea.D4X6Ss9q.js +0 -169
- package/dist/chunks/timeline-item.C8BxWdy1.js +0 -238
- package/dist/chunks/tooltip.CbsNGnhw.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.DqX2qsMC.js.map +0 -1
- package/dist/chunks/use-country-phon-code.C6orQNnM.js +0 -291
- package/dist/chunks/use-country-phon-code.C6orQNnM.js.map +0 -1
- package/dist/draggable-handle.js +0 -149
- package/dist/draggable-handle.js.map +0 -1
|
@@ -0,0 +1,1396 @@
|
|
|
1
|
+
import { ref as We, watch as dt, onUnmounted as Dt, defineComponent as Wt, computed as Gt } from "vue";
|
|
2
|
+
import { n as Lt } from "./chunks/_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
3
|
+
import { d as Mn } from "./chunks/draggable-handle.Ba28eM8o.js";
|
|
4
|
+
/**!
|
|
5
|
+
* Sortable 1.15.6
|
|
6
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
7
|
+
* @author owenm <owen23355@gmail.com>
|
|
8
|
+
* @license MIT
|
|
9
|
+
*/
|
|
10
|
+
function ht(o, e) {
|
|
11
|
+
var t = Object.keys(o);
|
|
12
|
+
if (Object.getOwnPropertySymbols) {
|
|
13
|
+
var n = Object.getOwnPropertySymbols(o);
|
|
14
|
+
e && (n = n.filter(function(i) {
|
|
15
|
+
return Object.getOwnPropertyDescriptor(o, i).enumerable;
|
|
16
|
+
})), t.push.apply(t, n);
|
|
17
|
+
}
|
|
18
|
+
return t;
|
|
19
|
+
}
|
|
20
|
+
function z(o) {
|
|
21
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
22
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
23
|
+
e % 2 ? ht(Object(t), !0).forEach(function(n) {
|
|
24
|
+
zt(o, n, t[n]);
|
|
25
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : ht(Object(t)).forEach(function(n) {
|
|
26
|
+
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return o;
|
|
30
|
+
}
|
|
31
|
+
function Ye(o) {
|
|
32
|
+
"@babel/helpers - typeof";
|
|
33
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ye = function(e) {
|
|
34
|
+
return typeof e;
|
|
35
|
+
} : Ye = function(e) {
|
|
36
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
37
|
+
}, Ye(o);
|
|
38
|
+
}
|
|
39
|
+
function zt(o, e, t) {
|
|
40
|
+
return e in o ? Object.defineProperty(o, e, {
|
|
41
|
+
value: t,
|
|
42
|
+
enumerable: !0,
|
|
43
|
+
configurable: !0,
|
|
44
|
+
writable: !0
|
|
45
|
+
}) : o[e] = t, o;
|
|
46
|
+
}
|
|
47
|
+
function q() {
|
|
48
|
+
return q = Object.assign || function(o) {
|
|
49
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
50
|
+
var t = arguments[e];
|
|
51
|
+
for (var n in t)
|
|
52
|
+
Object.prototype.hasOwnProperty.call(t, n) && (o[n] = t[n]);
|
|
53
|
+
}
|
|
54
|
+
return o;
|
|
55
|
+
}, q.apply(this, arguments);
|
|
56
|
+
}
|
|
57
|
+
function jt(o, e) {
|
|
58
|
+
if (o == null) return {};
|
|
59
|
+
var t = {}, n = Object.keys(o), i, r;
|
|
60
|
+
for (r = 0; r < n.length; r++)
|
|
61
|
+
i = n[r], !(e.indexOf(i) >= 0) && (t[i] = o[i]);
|
|
62
|
+
return t;
|
|
63
|
+
}
|
|
64
|
+
function $t(o, e) {
|
|
65
|
+
if (o == null) return {};
|
|
66
|
+
var t = jt(o, e), n, i;
|
|
67
|
+
if (Object.getOwnPropertySymbols) {
|
|
68
|
+
var r = Object.getOwnPropertySymbols(o);
|
|
69
|
+
for (i = 0; i < r.length; i++)
|
|
70
|
+
n = r[i], !(e.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(o, n) && (t[n] = o[n]);
|
|
71
|
+
}
|
|
72
|
+
return t;
|
|
73
|
+
}
|
|
74
|
+
var Ut = "1.15.6";
|
|
75
|
+
function U(o) {
|
|
76
|
+
if (typeof window < "u" && window.navigator)
|
|
77
|
+
return !!/* @__PURE__ */ navigator.userAgent.match(o);
|
|
78
|
+
}
|
|
79
|
+
var V = U(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ae = U(/Edge/i), pt = U(/firefox/i), De = U(/safari/i) && !U(/chrome/i) && !U(/android/i), lt = U(/iP(ad|od|hone)/i), St = U(/chrome/i) && U(/android/i), Tt = {
|
|
80
|
+
capture: !1,
|
|
81
|
+
passive: !1
|
|
82
|
+
};
|
|
83
|
+
function v(o, e, t) {
|
|
84
|
+
o.addEventListener(e, t, !V && Tt);
|
|
85
|
+
}
|
|
86
|
+
function m(o, e, t) {
|
|
87
|
+
o.removeEventListener(e, t, !V && Tt);
|
|
88
|
+
}
|
|
89
|
+
function Ge(o, e) {
|
|
90
|
+
if (e) {
|
|
91
|
+
if (e[0] === ">" && (e = e.substring(1)), o)
|
|
92
|
+
try {
|
|
93
|
+
if (o.matches)
|
|
94
|
+
return o.matches(e);
|
|
95
|
+
if (o.msMatchesSelector)
|
|
96
|
+
return o.msMatchesSelector(e);
|
|
97
|
+
if (o.webkitMatchesSelector)
|
|
98
|
+
return o.webkitMatchesSelector(e);
|
|
99
|
+
} catch {
|
|
100
|
+
return !1;
|
|
101
|
+
}
|
|
102
|
+
return !1;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
function Ct(o) {
|
|
106
|
+
return o.host && o !== document && o.host.nodeType ? o.host : o.parentNode;
|
|
107
|
+
}
|
|
108
|
+
function W(o, e, t, n) {
|
|
109
|
+
if (o) {
|
|
110
|
+
t = t || document;
|
|
111
|
+
do {
|
|
112
|
+
if (e != null && (e[0] === ">" ? o.parentNode === t && Ge(o, e) : Ge(o, e)) || n && o === t)
|
|
113
|
+
return o;
|
|
114
|
+
if (o === t) break;
|
|
115
|
+
} while (o = Ct(o));
|
|
116
|
+
}
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
var gt = /\s+/g;
|
|
120
|
+
function R(o, e, t) {
|
|
121
|
+
if (o && e)
|
|
122
|
+
if (o.classList)
|
|
123
|
+
o.classList[t ? "add" : "remove"](e);
|
|
124
|
+
else {
|
|
125
|
+
var n = (" " + o.className + " ").replace(gt, " ").replace(" " + e + " ", " ");
|
|
126
|
+
o.className = (n + (t ? " " + e : "")).replace(gt, " ");
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
function h(o, e, t) {
|
|
130
|
+
var n = o && o.style;
|
|
131
|
+
if (n) {
|
|
132
|
+
if (t === void 0)
|
|
133
|
+
return document.defaultView && document.defaultView.getComputedStyle ? t = document.defaultView.getComputedStyle(o, "") : o.currentStyle && (t = o.currentStyle), e === void 0 ? t : t[e];
|
|
134
|
+
!(e in n) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), n[e] = t + (typeof t == "string" ? "" : "px");
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
function he(o, e) {
|
|
138
|
+
var t = "";
|
|
139
|
+
if (typeof o == "string")
|
|
140
|
+
t = o;
|
|
141
|
+
else
|
|
142
|
+
do {
|
|
143
|
+
var n = h(o, "transform");
|
|
144
|
+
n && n !== "none" && (t = n + " " + t);
|
|
145
|
+
} while (!e && (o = o.parentNode));
|
|
146
|
+
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
147
|
+
return i && new i(t);
|
|
148
|
+
}
|
|
149
|
+
function Ot(o, e, t) {
|
|
150
|
+
if (o) {
|
|
151
|
+
var n = o.getElementsByTagName(e), i = 0, r = n.length;
|
|
152
|
+
if (t)
|
|
153
|
+
for (; i < r; i++)
|
|
154
|
+
t(n[i], i);
|
|
155
|
+
return n;
|
|
156
|
+
}
|
|
157
|
+
return [];
|
|
158
|
+
}
|
|
159
|
+
function L() {
|
|
160
|
+
var o = document.scrollingElement;
|
|
161
|
+
return o || document.documentElement;
|
|
162
|
+
}
|
|
163
|
+
function C(o, e, t, n, i) {
|
|
164
|
+
if (!(!o.getBoundingClientRect && o !== window)) {
|
|
165
|
+
var r, a, l, s, u, d, c;
|
|
166
|
+
if (o !== window && o.parentNode && o !== L() ? (r = o.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right, d = r.height, c = r.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, d = window.innerHeight, c = window.innerWidth), (e || t) && o !== window && (i = i || o.parentNode, !V))
|
|
167
|
+
do
|
|
168
|
+
if (i && i.getBoundingClientRect && (h(i, "transform") !== "none" || t && h(i, "position") !== "static")) {
|
|
169
|
+
var b = i.getBoundingClientRect();
|
|
170
|
+
a -= b.top + parseInt(h(i, "border-top-width")), l -= b.left + parseInt(h(i, "border-left-width")), s = a + r.height, u = l + r.width;
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
while (i = i.parentNode);
|
|
174
|
+
if (n && o !== window) {
|
|
175
|
+
var _ = he(i || o), E = _ && _.a, y = _ && _.d;
|
|
176
|
+
_ && (a /= y, l /= E, c /= E, d /= y, s = a + d, u = l + c);
|
|
177
|
+
}
|
|
178
|
+
return {
|
|
179
|
+
top: a,
|
|
180
|
+
left: l,
|
|
181
|
+
bottom: s,
|
|
182
|
+
right: u,
|
|
183
|
+
width: c,
|
|
184
|
+
height: d
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
function mt(o, e, t) {
|
|
189
|
+
for (var n = ee(o, !0), i = C(o)[e]; n; ) {
|
|
190
|
+
var r = C(n)[t], a = void 0;
|
|
191
|
+
if (a = i >= r, !a) return n;
|
|
192
|
+
if (n === L()) break;
|
|
193
|
+
n = ee(n, !1);
|
|
194
|
+
}
|
|
195
|
+
return !1;
|
|
196
|
+
}
|
|
197
|
+
function pe(o, e, t, n) {
|
|
198
|
+
for (var i = 0, r = 0, a = o.children; r < a.length; ) {
|
|
199
|
+
if (a[r].style.display !== "none" && a[r] !== p.ghost && (n || a[r] !== p.dragged) && W(a[r], t.draggable, o, !1)) {
|
|
200
|
+
if (i === e)
|
|
201
|
+
return a[r];
|
|
202
|
+
i++;
|
|
203
|
+
}
|
|
204
|
+
r++;
|
|
205
|
+
}
|
|
206
|
+
return null;
|
|
207
|
+
}
|
|
208
|
+
function st(o, e) {
|
|
209
|
+
for (var t = o.lastElementChild; t && (t === p.ghost || h(t, "display") === "none" || e && !Ge(t, e)); )
|
|
210
|
+
t = t.previousElementSibling;
|
|
211
|
+
return t || null;
|
|
212
|
+
}
|
|
213
|
+
function X(o, e) {
|
|
214
|
+
var t = 0;
|
|
215
|
+
if (!o || !o.parentNode)
|
|
216
|
+
return -1;
|
|
217
|
+
for (; o = o.previousElementSibling; )
|
|
218
|
+
o.nodeName.toUpperCase() !== "TEMPLATE" && o !== p.clone && (!e || Ge(o, e)) && t++;
|
|
219
|
+
return t;
|
|
220
|
+
}
|
|
221
|
+
function vt(o) {
|
|
222
|
+
var e = 0, t = 0, n = L();
|
|
223
|
+
if (o)
|
|
224
|
+
do {
|
|
225
|
+
var i = he(o), r = i.a, a = i.d;
|
|
226
|
+
e += o.scrollLeft * r, t += o.scrollTop * a;
|
|
227
|
+
} while (o !== n && (o = o.parentNode));
|
|
228
|
+
return [e, t];
|
|
229
|
+
}
|
|
230
|
+
function qt(o, e) {
|
|
231
|
+
for (var t in o)
|
|
232
|
+
if (o.hasOwnProperty(t)) {
|
|
233
|
+
for (var n in e)
|
|
234
|
+
if (e.hasOwnProperty(n) && e[n] === o[t][n]) return Number(t);
|
|
235
|
+
}
|
|
236
|
+
return -1;
|
|
237
|
+
}
|
|
238
|
+
function ee(o, e) {
|
|
239
|
+
if (!o || !o.getBoundingClientRect) return L();
|
|
240
|
+
var t = o, n = !1;
|
|
241
|
+
do
|
|
242
|
+
if (t.clientWidth < t.scrollWidth || t.clientHeight < t.scrollHeight) {
|
|
243
|
+
var i = h(t);
|
|
244
|
+
if (t.clientWidth < t.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || t.clientHeight < t.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
245
|
+
if (!t.getBoundingClientRect || t === document.body) return L();
|
|
246
|
+
if (n || e) return t;
|
|
247
|
+
n = !0;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
while (t = t.parentNode);
|
|
251
|
+
return L();
|
|
252
|
+
}
|
|
253
|
+
function Vt(o, e) {
|
|
254
|
+
if (o && e)
|
|
255
|
+
for (var t in e)
|
|
256
|
+
e.hasOwnProperty(t) && (o[t] = e[t]);
|
|
257
|
+
return o;
|
|
258
|
+
}
|
|
259
|
+
function qe(o, e) {
|
|
260
|
+
return Math.round(o.top) === Math.round(e.top) && Math.round(o.left) === Math.round(e.left) && Math.round(o.height) === Math.round(e.height) && Math.round(o.width) === Math.round(e.width);
|
|
261
|
+
}
|
|
262
|
+
var Se;
|
|
263
|
+
function It(o, e) {
|
|
264
|
+
return function() {
|
|
265
|
+
if (!Se) {
|
|
266
|
+
var t = arguments, n = this;
|
|
267
|
+
t.length === 1 ? o.call(n, t[0]) : o.apply(n, t), Se = setTimeout(function() {
|
|
268
|
+
Se = void 0;
|
|
269
|
+
}, e);
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
function Kt() {
|
|
274
|
+
clearTimeout(Se), Se = void 0;
|
|
275
|
+
}
|
|
276
|
+
function At(o, e, t) {
|
|
277
|
+
o.scrollLeft += e, o.scrollTop += t;
|
|
278
|
+
}
|
|
279
|
+
function Pt(o) {
|
|
280
|
+
var e = window.Polymer, t = window.jQuery || window.Zepto;
|
|
281
|
+
return e && e.dom ? e.dom(o).cloneNode(!0) : t ? t(o).clone(!0)[0] : o.cloneNode(!0);
|
|
282
|
+
}
|
|
283
|
+
function xt(o, e, t) {
|
|
284
|
+
var n = {};
|
|
285
|
+
return Array.from(o.children).forEach(function(i) {
|
|
286
|
+
var r, a, l, s;
|
|
287
|
+
if (!(!W(i, e.draggable, o, !1) || i.animated || i === t)) {
|
|
288
|
+
var u = C(i);
|
|
289
|
+
n.left = Math.min((r = n.left) !== null && r !== void 0 ? r : 1 / 0, u.left), n.top = Math.min((a = n.top) !== null && a !== void 0 ? a : 1 / 0, u.top), n.right = Math.max((l = n.right) !== null && l !== void 0 ? l : -1 / 0, u.right), n.bottom = Math.max((s = n.bottom) !== null && s !== void 0 ? s : -1 / 0, u.bottom);
|
|
290
|
+
}
|
|
291
|
+
}), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
|
|
292
|
+
}
|
|
293
|
+
var N = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
294
|
+
function Zt() {
|
|
295
|
+
var o = [], e;
|
|
296
|
+
return {
|
|
297
|
+
captureAnimationState: function() {
|
|
298
|
+
if (o = [], !!this.options.animation) {
|
|
299
|
+
var n = [].slice.call(this.el.children);
|
|
300
|
+
n.forEach(function(i) {
|
|
301
|
+
if (!(h(i, "display") === "none" || i === p.ghost)) {
|
|
302
|
+
o.push({
|
|
303
|
+
target: i,
|
|
304
|
+
rect: C(i)
|
|
305
|
+
});
|
|
306
|
+
var r = z({}, o[o.length - 1].rect);
|
|
307
|
+
if (i.thisAnimationDuration) {
|
|
308
|
+
var a = he(i, !0);
|
|
309
|
+
a && (r.top -= a.f, r.left -= a.e);
|
|
310
|
+
}
|
|
311
|
+
i.fromRect = r;
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
addAnimationState: function(n) {
|
|
317
|
+
o.push(n);
|
|
318
|
+
},
|
|
319
|
+
removeAnimationState: function(n) {
|
|
320
|
+
o.splice(qt(o, {
|
|
321
|
+
target: n
|
|
322
|
+
}), 1);
|
|
323
|
+
},
|
|
324
|
+
animateAll: function(n) {
|
|
325
|
+
var i = this;
|
|
326
|
+
if (!this.options.animation) {
|
|
327
|
+
clearTimeout(e), typeof n == "function" && n();
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
var r = !1, a = 0;
|
|
331
|
+
o.forEach(function(l) {
|
|
332
|
+
var s = 0, u = l.target, d = u.fromRect, c = C(u), b = u.prevFromRect, _ = u.prevToRect, E = l.rect, y = he(u, !0);
|
|
333
|
+
y && (c.top -= y.f, c.left -= y.e), u.toRect = c, u.thisAnimationDuration && qe(b, c) && !qe(d, c) && // Make sure animatingRect is on line between toRect & fromRect
|
|
334
|
+
(E.top - c.top) / (E.left - c.left) === (d.top - c.top) / (d.left - c.left) && (s = Jt(E, b, _, i.options)), qe(c, d) || (u.prevFromRect = d, u.prevToRect = c, s || (s = i.options.animation), i.animate(u, E, c, s)), s && (r = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
335
|
+
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
336
|
+
}, s), u.thisAnimationDuration = s);
|
|
337
|
+
}), clearTimeout(e), r ? e = setTimeout(function() {
|
|
338
|
+
typeof n == "function" && n();
|
|
339
|
+
}, a) : typeof n == "function" && n(), o = [];
|
|
340
|
+
},
|
|
341
|
+
animate: function(n, i, r, a) {
|
|
342
|
+
if (a) {
|
|
343
|
+
h(n, "transition", ""), h(n, "transform", "");
|
|
344
|
+
var l = he(this.el), s = l && l.a, u = l && l.d, d = (i.left - r.left) / (s || 1), c = (i.top - r.top) / (u || 1);
|
|
345
|
+
n.animatingX = !!d, n.animatingY = !!c, h(n, "transform", "translate3d(" + d + "px," + c + "px,0)"), this.forRepaintDummy = Qt(n), h(n, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), h(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
346
|
+
h(n, "transition", ""), h(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
347
|
+
}, a);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
function Qt(o) {
|
|
353
|
+
return o.offsetWidth;
|
|
354
|
+
}
|
|
355
|
+
function Jt(o, e, t, n) {
|
|
356
|
+
return Math.sqrt(Math.pow(e.top - o.top, 2) + Math.pow(e.left - o.left, 2)) / Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) * n.animation;
|
|
357
|
+
}
|
|
358
|
+
var ue = [], Ve = {
|
|
359
|
+
initializeByDefault: !0
|
|
360
|
+
}, Pe = {
|
|
361
|
+
mount: function(e) {
|
|
362
|
+
for (var t in Ve)
|
|
363
|
+
Ve.hasOwnProperty(t) && !(t in e) && (e[t] = Ve[t]);
|
|
364
|
+
ue.forEach(function(n) {
|
|
365
|
+
if (n.pluginName === e.pluginName)
|
|
366
|
+
throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
|
|
367
|
+
}), ue.push(e);
|
|
368
|
+
},
|
|
369
|
+
pluginEvent: function(e, t, n) {
|
|
370
|
+
var i = this;
|
|
371
|
+
this.eventCanceled = !1, n.cancel = function() {
|
|
372
|
+
i.eventCanceled = !0;
|
|
373
|
+
};
|
|
374
|
+
var r = e + "Global";
|
|
375
|
+
ue.forEach(function(a) {
|
|
376
|
+
t[a.pluginName] && (t[a.pluginName][r] && t[a.pluginName][r](z({
|
|
377
|
+
sortable: t
|
|
378
|
+
}, n)), t.options[a.pluginName] && t[a.pluginName][e] && t[a.pluginName][e](z({
|
|
379
|
+
sortable: t
|
|
380
|
+
}, n)));
|
|
381
|
+
});
|
|
382
|
+
},
|
|
383
|
+
initializePlugins: function(e, t, n, i) {
|
|
384
|
+
ue.forEach(function(l) {
|
|
385
|
+
var s = l.pluginName;
|
|
386
|
+
if (!(!e.options[s] && !l.initializeByDefault)) {
|
|
387
|
+
var u = new l(e, t, e.options);
|
|
388
|
+
u.sortable = e, u.options = e.options, e[s] = u, q(n, u.defaults);
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
for (var r in e.options)
|
|
392
|
+
if (e.options.hasOwnProperty(r)) {
|
|
393
|
+
var a = this.modifyOption(e, r, e.options[r]);
|
|
394
|
+
typeof a < "u" && (e.options[r] = a);
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
getEventProperties: function(e, t) {
|
|
398
|
+
var n = {};
|
|
399
|
+
return ue.forEach(function(i) {
|
|
400
|
+
typeof i.eventProperties == "function" && q(n, i.eventProperties.call(t[i.pluginName], e));
|
|
401
|
+
}), n;
|
|
402
|
+
},
|
|
403
|
+
modifyOption: function(e, t, n) {
|
|
404
|
+
var i;
|
|
405
|
+
return ue.forEach(function(r) {
|
|
406
|
+
e[r.pluginName] && r.optionListeners && typeof r.optionListeners[t] == "function" && (i = r.optionListeners[t].call(e[r.pluginName], n));
|
|
407
|
+
}), i;
|
|
408
|
+
}
|
|
409
|
+
};
|
|
410
|
+
function en(o) {
|
|
411
|
+
var e = o.sortable, t = o.rootEl, n = o.name, i = o.targetEl, r = o.cloneEl, a = o.toEl, l = o.fromEl, s = o.oldIndex, u = o.newIndex, d = o.oldDraggableIndex, c = o.newDraggableIndex, b = o.originalEvent, _ = o.putSortable, E = o.extraEventProperties;
|
|
412
|
+
if (e = e || t && t[N], !!e) {
|
|
413
|
+
var y, k = e.options, j = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
414
|
+
window.CustomEvent && !V && !Ae ? y = new CustomEvent(n, {
|
|
415
|
+
bubbles: !0,
|
|
416
|
+
cancelable: !0
|
|
417
|
+
}) : (y = document.createEvent("Event"), y.initEvent(n, !0, !0)), y.to = a || t, y.from = l || t, y.item = i || t, y.clone = r, y.oldIndex = s, y.newIndex = u, y.oldDraggableIndex = d, y.newDraggableIndex = c, y.originalEvent = b, y.pullMode = _ ? _.lastPutMode : void 0;
|
|
418
|
+
var A = z(z({}, E), Pe.getEventProperties(n, e));
|
|
419
|
+
for (var B in A)
|
|
420
|
+
y[B] = A[B];
|
|
421
|
+
t && t.dispatchEvent(y), k[j] && k[j].call(e, y);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
var tn = ["evt"], x = function(e, t) {
|
|
425
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = n.evt, r = $t(n, tn);
|
|
426
|
+
Pe.pluginEvent.bind(p)(e, t, z({
|
|
427
|
+
dragEl: f,
|
|
428
|
+
parentEl: S,
|
|
429
|
+
ghostEl: g,
|
|
430
|
+
rootEl: w,
|
|
431
|
+
nextEl: le,
|
|
432
|
+
lastDownEl: Xe,
|
|
433
|
+
cloneEl: D,
|
|
434
|
+
cloneHidden: J,
|
|
435
|
+
dragStarted: ye,
|
|
436
|
+
putSortable: O,
|
|
437
|
+
activeSortable: p.active,
|
|
438
|
+
originalEvent: i,
|
|
439
|
+
oldIndex: de,
|
|
440
|
+
oldDraggableIndex: Te,
|
|
441
|
+
newIndex: Y,
|
|
442
|
+
newDraggableIndex: Q,
|
|
443
|
+
hideGhostForTarget: Rt,
|
|
444
|
+
unhideGhostForTarget: Yt,
|
|
445
|
+
cloneNowHidden: function() {
|
|
446
|
+
J = !0;
|
|
447
|
+
},
|
|
448
|
+
cloneNowShown: function() {
|
|
449
|
+
J = !1;
|
|
450
|
+
},
|
|
451
|
+
dispatchSortableEvent: function(l) {
|
|
452
|
+
P({
|
|
453
|
+
sortable: t,
|
|
454
|
+
name: l,
|
|
455
|
+
originalEvent: i
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
}, r));
|
|
459
|
+
};
|
|
460
|
+
function P(o) {
|
|
461
|
+
en(z({
|
|
462
|
+
putSortable: O,
|
|
463
|
+
cloneEl: D,
|
|
464
|
+
targetEl: f,
|
|
465
|
+
rootEl: w,
|
|
466
|
+
oldIndex: de,
|
|
467
|
+
oldDraggableIndex: Te,
|
|
468
|
+
newIndex: Y,
|
|
469
|
+
newDraggableIndex: Q
|
|
470
|
+
}, o));
|
|
471
|
+
}
|
|
472
|
+
var f, S, g, w, le, Xe, D, J, de, Y, Te, Q, Ne, O, ce = !1, Le = !1, ze = [], ie, H, Ke, Ze, bt, Et, ye, fe, Ce, Oe = !1, Me = !1, ke, I, Qe = [], ot = !1, je = [], Ue = typeof document < "u", Fe = lt, yt = Ae || V ? "cssFloat" : "float", nn = Ue && !St && !lt && "draggable" in document.createElement("div"), Nt = (function() {
|
|
473
|
+
if (Ue) {
|
|
474
|
+
if (V)
|
|
475
|
+
return !1;
|
|
476
|
+
var o = document.createElement("x");
|
|
477
|
+
return o.style.cssText = "pointer-events:auto", o.style.pointerEvents === "auto";
|
|
478
|
+
}
|
|
479
|
+
})(), Mt = function(e, t) {
|
|
480
|
+
var n = h(e), i = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), r = pe(e, 0, t), a = pe(e, 1, t), l = r && h(r), s = a && h(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + C(r).width, d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + C(a).width;
|
|
481
|
+
if (n.display === "flex")
|
|
482
|
+
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
483
|
+
if (n.display === "grid")
|
|
484
|
+
return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
485
|
+
if (r && l.float && l.float !== "none") {
|
|
486
|
+
var c = l.float === "left" ? "left" : "right";
|
|
487
|
+
return a && (s.clear === "both" || s.clear === c) ? "vertical" : "horizontal";
|
|
488
|
+
}
|
|
489
|
+
return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && n[yt] === "none" || a && n[yt] === "none" && u + d > i) ? "vertical" : "horizontal";
|
|
490
|
+
}, on = function(e, t, n) {
|
|
491
|
+
var i = n ? e.left : e.top, r = n ? e.right : e.bottom, a = n ? e.width : e.height, l = n ? t.left : t.top, s = n ? t.right : t.bottom, u = n ? t.width : t.height;
|
|
492
|
+
return i === l || r === s || i + a / 2 === l + u / 2;
|
|
493
|
+
}, rn = function(e, t) {
|
|
494
|
+
var n;
|
|
495
|
+
return ze.some(function(i) {
|
|
496
|
+
var r = i[N].options.emptyInsertThreshold;
|
|
497
|
+
if (!(!r || st(i))) {
|
|
498
|
+
var a = C(i), l = e >= a.left - r && e <= a.right + r, s = t >= a.top - r && t <= a.bottom + r;
|
|
499
|
+
if (l && s)
|
|
500
|
+
return n = i;
|
|
501
|
+
}
|
|
502
|
+
}), n;
|
|
503
|
+
}, Ft = function(e) {
|
|
504
|
+
function t(r, a) {
|
|
505
|
+
return function(l, s, u, d) {
|
|
506
|
+
var c = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
|
|
507
|
+
if (r == null && (a || c))
|
|
508
|
+
return !0;
|
|
509
|
+
if (r == null || r === !1)
|
|
510
|
+
return !1;
|
|
511
|
+
if (a && r === "clone")
|
|
512
|
+
return r;
|
|
513
|
+
if (typeof r == "function")
|
|
514
|
+
return t(r(l, s, u, d), a)(l, s, u, d);
|
|
515
|
+
var b = (a ? l : s).options.group.name;
|
|
516
|
+
return r === !0 || typeof r == "string" && r === b || r.join && r.indexOf(b) > -1;
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
var n = {}, i = e.group;
|
|
520
|
+
(!i || Ye(i) != "object") && (i = {
|
|
521
|
+
name: i
|
|
522
|
+
}), n.name = i.name, n.checkPull = t(i.pull, !0), n.checkPut = t(i.put), n.revertClone = i.revertClone, e.group = n;
|
|
523
|
+
}, Rt = function() {
|
|
524
|
+
!Nt && g && h(g, "display", "none");
|
|
525
|
+
}, Yt = function() {
|
|
526
|
+
!Nt && g && h(g, "display", "");
|
|
527
|
+
};
|
|
528
|
+
Ue && !St && document.addEventListener("click", function(o) {
|
|
529
|
+
if (Le)
|
|
530
|
+
return o.preventDefault(), o.stopPropagation && o.stopPropagation(), o.stopImmediatePropagation && o.stopImmediatePropagation(), Le = !1, !1;
|
|
531
|
+
}, !0);
|
|
532
|
+
var re = function(e) {
|
|
533
|
+
if (f) {
|
|
534
|
+
e = e.touches ? e.touches[0] : e;
|
|
535
|
+
var t = rn(e.clientX, e.clientY);
|
|
536
|
+
if (t) {
|
|
537
|
+
var n = {};
|
|
538
|
+
for (var i in e)
|
|
539
|
+
e.hasOwnProperty(i) && (n[i] = e[i]);
|
|
540
|
+
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[N]._onDragOver(n);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}, an = function(e) {
|
|
544
|
+
f && f.parentNode[N]._isOutsideThisEl(e.target);
|
|
545
|
+
};
|
|
546
|
+
function p(o, e) {
|
|
547
|
+
if (!(o && o.nodeType && o.nodeType === 1))
|
|
548
|
+
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));
|
|
549
|
+
this.el = o, this.options = e = q({}, e), o[N] = this;
|
|
550
|
+
var t = {
|
|
551
|
+
group: null,
|
|
552
|
+
sort: !0,
|
|
553
|
+
disabled: !1,
|
|
554
|
+
store: null,
|
|
555
|
+
handle: null,
|
|
556
|
+
draggable: /^[uo]l$/i.test(o.nodeName) ? ">li" : ">*",
|
|
557
|
+
swapThreshold: 1,
|
|
558
|
+
// percentage; 0 <= x <= 1
|
|
559
|
+
invertSwap: !1,
|
|
560
|
+
// invert always
|
|
561
|
+
invertedSwapThreshold: null,
|
|
562
|
+
// will be set to same as swapThreshold if default
|
|
563
|
+
removeCloneOnHide: !0,
|
|
564
|
+
direction: function() {
|
|
565
|
+
return Mt(o, this.options);
|
|
566
|
+
},
|
|
567
|
+
ghostClass: "sortable-ghost",
|
|
568
|
+
chosenClass: "sortable-chosen",
|
|
569
|
+
dragClass: "sortable-drag",
|
|
570
|
+
ignore: "a, img",
|
|
571
|
+
filter: null,
|
|
572
|
+
preventOnFilter: !0,
|
|
573
|
+
animation: 0,
|
|
574
|
+
easing: null,
|
|
575
|
+
setData: function(a, l) {
|
|
576
|
+
a.setData("Text", l.textContent);
|
|
577
|
+
},
|
|
578
|
+
dropBubble: !1,
|
|
579
|
+
dragoverBubble: !1,
|
|
580
|
+
dataIdAttr: "data-id",
|
|
581
|
+
delay: 0,
|
|
582
|
+
delayOnTouchOnly: !1,
|
|
583
|
+
touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
|
|
584
|
+
forceFallback: !1,
|
|
585
|
+
fallbackClass: "sortable-fallback",
|
|
586
|
+
fallbackOnBody: !1,
|
|
587
|
+
fallbackTolerance: 0,
|
|
588
|
+
fallbackOffset: {
|
|
589
|
+
x: 0,
|
|
590
|
+
y: 0
|
|
591
|
+
},
|
|
592
|
+
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
593
|
+
supportPointer: p.supportPointer !== !1 && "PointerEvent" in window && (!De || lt),
|
|
594
|
+
emptyInsertThreshold: 5
|
|
595
|
+
};
|
|
596
|
+
Pe.initializePlugins(this, o, t);
|
|
597
|
+
for (var n in t)
|
|
598
|
+
!(n in e) && (e[n] = t[n]);
|
|
599
|
+
Ft(e);
|
|
600
|
+
for (var i in this)
|
|
601
|
+
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
602
|
+
this.nativeDraggable = e.forceFallback ? !1 : nn, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? v(o, "pointerdown", this._onTapStart) : (v(o, "mousedown", this._onTapStart), v(o, "touchstart", this._onTapStart)), this.nativeDraggable && (v(o, "dragover", this), v(o, "dragenter", this)), ze.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), q(this, Zt());
|
|
603
|
+
}
|
|
604
|
+
p.prototype = /** @lends Sortable.prototype */
|
|
605
|
+
{
|
|
606
|
+
constructor: p,
|
|
607
|
+
_isOutsideThisEl: function(e) {
|
|
608
|
+
!this.el.contains(e) && e !== this.el && (fe = null);
|
|
609
|
+
},
|
|
610
|
+
_getDirection: function(e, t) {
|
|
611
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, f) : this.options.direction;
|
|
612
|
+
},
|
|
613
|
+
_onTapStart: function(e) {
|
|
614
|
+
if (e.cancelable) {
|
|
615
|
+
var t = this, n = this.el, i = this.options, r = i.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, d = i.filter;
|
|
616
|
+
if (pn(n), !f && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && De && s && s.tagName.toUpperCase() === "SELECT") && (s = W(s, i.draggable, n, !1), !(s && s.animated) && Xe !== s)) {
|
|
617
|
+
if (de = X(s), Te = X(s, i.draggable), typeof d == "function") {
|
|
618
|
+
if (d.call(this, e, s, this)) {
|
|
619
|
+
P({
|
|
620
|
+
sortable: t,
|
|
621
|
+
rootEl: u,
|
|
622
|
+
name: "filter",
|
|
623
|
+
targetEl: s,
|
|
624
|
+
toEl: n,
|
|
625
|
+
fromEl: n
|
|
626
|
+
}), x("filter", t, {
|
|
627
|
+
evt: e
|
|
628
|
+
}), r && e.preventDefault();
|
|
629
|
+
return;
|
|
630
|
+
}
|
|
631
|
+
} else if (d && (d = d.split(",").some(function(c) {
|
|
632
|
+
if (c = W(u, c.trim(), n, !1), c)
|
|
633
|
+
return P({
|
|
634
|
+
sortable: t,
|
|
635
|
+
rootEl: c,
|
|
636
|
+
name: "filter",
|
|
637
|
+
targetEl: s,
|
|
638
|
+
fromEl: n,
|
|
639
|
+
toEl: n
|
|
640
|
+
}), x("filter", t, {
|
|
641
|
+
evt: e
|
|
642
|
+
}), !0;
|
|
643
|
+
}), d)) {
|
|
644
|
+
r && e.preventDefault();
|
|
645
|
+
return;
|
|
646
|
+
}
|
|
647
|
+
i.handle && !W(u, i.handle, n, !1) || this._prepareDragStart(e, l, s);
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
_prepareDragStart: function(e, t, n) {
|
|
652
|
+
var i = this, r = i.el, a = i.options, l = r.ownerDocument, s;
|
|
653
|
+
if (n && !f && n.parentNode === r) {
|
|
654
|
+
var u = C(n);
|
|
655
|
+
if (w = r, f = n, S = f.parentNode, le = f.nextSibling, Xe = n, Ne = a.group, p.dragged = f, ie = {
|
|
656
|
+
target: f,
|
|
657
|
+
clientX: (t || e).clientX,
|
|
658
|
+
clientY: (t || e).clientY
|
|
659
|
+
}, bt = ie.clientX - u.left, Et = ie.clientY - u.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, f.style["will-change"] = "all", s = function() {
|
|
660
|
+
if (x("delayEnded", i, {
|
|
661
|
+
evt: e
|
|
662
|
+
}), p.eventCanceled) {
|
|
663
|
+
i._onDrop();
|
|
664
|
+
return;
|
|
665
|
+
}
|
|
666
|
+
i._disableDelayedDragEvents(), !pt && i.nativeDraggable && (f.draggable = !0), i._triggerDragStart(e, t), P({
|
|
667
|
+
sortable: i,
|
|
668
|
+
name: "choose",
|
|
669
|
+
originalEvent: e
|
|
670
|
+
}), R(f, a.chosenClass, !0);
|
|
671
|
+
}, a.ignore.split(",").forEach(function(d) {
|
|
672
|
+
Ot(f, d.trim(), Je);
|
|
673
|
+
}), v(l, "dragover", re), v(l, "mousemove", re), v(l, "touchmove", re), a.supportPointer ? (v(l, "pointerup", i._onDrop), !this.nativeDraggable && v(l, "pointercancel", i._onDrop)) : (v(l, "mouseup", i._onDrop), v(l, "touchend", i._onDrop), v(l, "touchcancel", i._onDrop)), pt && this.nativeDraggable && (this.options.touchStartThreshold = 4, f.draggable = !0), x("delayStart", this, {
|
|
674
|
+
evt: e
|
|
675
|
+
}), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Ae || V))) {
|
|
676
|
+
if (p.eventCanceled) {
|
|
677
|
+
this._onDrop();
|
|
678
|
+
return;
|
|
679
|
+
}
|
|
680
|
+
a.supportPointer ? (v(l, "pointerup", i._disableDelayedDrag), v(l, "pointercancel", i._disableDelayedDrag)) : (v(l, "mouseup", i._disableDelayedDrag), v(l, "touchend", i._disableDelayedDrag), v(l, "touchcancel", i._disableDelayedDrag)), v(l, "mousemove", i._delayedDragTouchMoveHandler), v(l, "touchmove", i._delayedDragTouchMoveHandler), a.supportPointer && v(l, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(s, a.delay);
|
|
681
|
+
} else
|
|
682
|
+
s();
|
|
683
|
+
}
|
|
684
|
+
},
|
|
685
|
+
_delayedDragTouchMoveHandler: function(e) {
|
|
686
|
+
var t = e.touches ? e.touches[0] : e;
|
|
687
|
+
Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
688
|
+
},
|
|
689
|
+
_disableDelayedDrag: function() {
|
|
690
|
+
f && Je(f), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
691
|
+
},
|
|
692
|
+
_disableDelayedDragEvents: function() {
|
|
693
|
+
var e = this.el.ownerDocument;
|
|
694
|
+
m(e, "mouseup", this._disableDelayedDrag), m(e, "touchend", this._disableDelayedDrag), m(e, "touchcancel", this._disableDelayedDrag), m(e, "pointerup", this._disableDelayedDrag), m(e, "pointercancel", this._disableDelayedDrag), m(e, "mousemove", this._delayedDragTouchMoveHandler), m(e, "touchmove", this._delayedDragTouchMoveHandler), m(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
695
|
+
},
|
|
696
|
+
_triggerDragStart: function(e, t) {
|
|
697
|
+
t = t || e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? v(document, "pointermove", this._onTouchMove) : t ? v(document, "touchmove", this._onTouchMove) : v(document, "mousemove", this._onTouchMove) : (v(f, "dragend", this), v(w, "dragstart", this._onDragStart));
|
|
698
|
+
try {
|
|
699
|
+
document.selection ? Be(function() {
|
|
700
|
+
document.selection.empty();
|
|
701
|
+
}) : window.getSelection().removeAllRanges();
|
|
702
|
+
} catch {
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
_dragStarted: function(e, t) {
|
|
706
|
+
if (ce = !1, w && f) {
|
|
707
|
+
x("dragStarted", this, {
|
|
708
|
+
evt: t
|
|
709
|
+
}), this.nativeDraggable && v(document, "dragover", an);
|
|
710
|
+
var n = this.options;
|
|
711
|
+
!e && R(f, n.dragClass, !1), R(f, n.ghostClass, !0), p.active = this, e && this._appendGhost(), P({
|
|
712
|
+
sortable: this,
|
|
713
|
+
name: "start",
|
|
714
|
+
originalEvent: t
|
|
715
|
+
});
|
|
716
|
+
} else
|
|
717
|
+
this._nulling();
|
|
718
|
+
},
|
|
719
|
+
_emulateDragOver: function() {
|
|
720
|
+
if (H) {
|
|
721
|
+
this._lastX = H.clientX, this._lastY = H.clientY, Rt();
|
|
722
|
+
for (var e = document.elementFromPoint(H.clientX, H.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(H.clientX, H.clientY), e !== t); )
|
|
723
|
+
t = e;
|
|
724
|
+
if (f.parentNode[N]._isOutsideThisEl(e), t)
|
|
725
|
+
do {
|
|
726
|
+
if (t[N]) {
|
|
727
|
+
var n = void 0;
|
|
728
|
+
if (n = t[N]._onDragOver({
|
|
729
|
+
clientX: H.clientX,
|
|
730
|
+
clientY: H.clientY,
|
|
731
|
+
target: e,
|
|
732
|
+
rootEl: t
|
|
733
|
+
}), n && !this.options.dragoverBubble)
|
|
734
|
+
break;
|
|
735
|
+
}
|
|
736
|
+
e = t;
|
|
737
|
+
} while (t = Ct(t));
|
|
738
|
+
Yt();
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
_onTouchMove: function(e) {
|
|
742
|
+
if (ie) {
|
|
743
|
+
var t = this.options, n = t.fallbackTolerance, i = t.fallbackOffset, r = e.touches ? e.touches[0] : e, a = g && he(g, !0), l = g && a && a.a, s = g && a && a.d, u = Fe && I && vt(I), d = (r.clientX - ie.clientX + i.x) / (l || 1) + (u ? u[0] - Qe[0] : 0) / (l || 1), c = (r.clientY - ie.clientY + i.y) / (s || 1) + (u ? u[1] - Qe[1] : 0) / (s || 1);
|
|
744
|
+
if (!p.active && !ce) {
|
|
745
|
+
if (n && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < n)
|
|
746
|
+
return;
|
|
747
|
+
this._onDragStart(e, !0);
|
|
748
|
+
}
|
|
749
|
+
if (g) {
|
|
750
|
+
a ? (a.e += d - (Ke || 0), a.f += c - (Ze || 0)) : a = {
|
|
751
|
+
a: 1,
|
|
752
|
+
b: 0,
|
|
753
|
+
c: 0,
|
|
754
|
+
d: 1,
|
|
755
|
+
e: d,
|
|
756
|
+
f: c
|
|
757
|
+
};
|
|
758
|
+
var b = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
759
|
+
h(g, "webkitTransform", b), h(g, "mozTransform", b), h(g, "msTransform", b), h(g, "transform", b), Ke = d, Ze = c, H = r;
|
|
760
|
+
}
|
|
761
|
+
e.cancelable && e.preventDefault();
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
_appendGhost: function() {
|
|
765
|
+
if (!g) {
|
|
766
|
+
var e = this.options.fallbackOnBody ? document.body : w, t = C(f, !0, Fe, !0, e), n = this.options;
|
|
767
|
+
if (Fe) {
|
|
768
|
+
for (I = e; h(I, "position") === "static" && h(I, "transform") === "none" && I !== document; )
|
|
769
|
+
I = I.parentNode;
|
|
770
|
+
I !== document.body && I !== document.documentElement ? (I === document && (I = L()), t.top += I.scrollTop, t.left += I.scrollLeft) : I = L(), Qe = vt(I);
|
|
771
|
+
}
|
|
772
|
+
g = f.cloneNode(!0), R(g, n.ghostClass, !1), R(g, n.fallbackClass, !0), R(g, n.dragClass, !0), h(g, "transition", ""), h(g, "transform", ""), h(g, "box-sizing", "border-box"), h(g, "margin", 0), h(g, "top", t.top), h(g, "left", t.left), h(g, "width", t.width), h(g, "height", t.height), h(g, "opacity", "0.8"), h(g, "position", Fe ? "absolute" : "fixed"), h(g, "zIndex", "100000"), h(g, "pointerEvents", "none"), p.ghost = g, e.appendChild(g), h(g, "transform-origin", bt / parseInt(g.style.width) * 100 + "% " + Et / parseInt(g.style.height) * 100 + "%");
|
|
773
|
+
}
|
|
774
|
+
},
|
|
775
|
+
_onDragStart: function(e, t) {
|
|
776
|
+
var n = this, i = e.dataTransfer, r = n.options;
|
|
777
|
+
if (x("dragStart", this, {
|
|
778
|
+
evt: e
|
|
779
|
+
}), p.eventCanceled) {
|
|
780
|
+
this._onDrop();
|
|
781
|
+
return;
|
|
782
|
+
}
|
|
783
|
+
x("setupClone", this), p.eventCanceled || (D = Pt(f), D.removeAttribute("id"), D.draggable = !1, D.style["will-change"] = "", this._hideClone(), R(D, this.options.chosenClass, !1), p.clone = D), n.cloneId = Be(function() {
|
|
784
|
+
x("clone", n), !p.eventCanceled && (n.options.removeCloneOnHide || w.insertBefore(D, f), n._hideClone(), P({
|
|
785
|
+
sortable: n,
|
|
786
|
+
name: "clone"
|
|
787
|
+
}));
|
|
788
|
+
}), !t && R(f, r.dragClass, !0), t ? (Le = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (m(document, "mouseup", n._onDrop), m(document, "touchend", n._onDrop), m(document, "touchcancel", n._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(n, i, f)), v(document, "drop", n), h(f, "transform", "translateZ(0)")), ce = !0, n._dragStartId = Be(n._dragStarted.bind(n, t, e)), v(document, "selectstart", n), ye = !0, window.getSelection().removeAllRanges(), De && h(document.body, "user-select", "none");
|
|
789
|
+
},
|
|
790
|
+
// Returns true - if no further action is needed (either inserted or another condition)
|
|
791
|
+
_onDragOver: function(e) {
|
|
792
|
+
var t = this.el, n = e.target, i, r, a, l = this.options, s = l.group, u = p.active, d = Ne === s, c = l.sort, b = O || u, _, E = this, y = !1;
|
|
793
|
+
if (ot) return;
|
|
794
|
+
function k(Ee, Bt) {
|
|
795
|
+
x(Ee, E, z({
|
|
796
|
+
evt: e,
|
|
797
|
+
isOwner: d,
|
|
798
|
+
axis: _ ? "vertical" : "horizontal",
|
|
799
|
+
revert: a,
|
|
800
|
+
dragRect: i,
|
|
801
|
+
targetRect: r,
|
|
802
|
+
canSort: c,
|
|
803
|
+
fromSortable: b,
|
|
804
|
+
target: n,
|
|
805
|
+
completed: A,
|
|
806
|
+
onMove: function(ct, Ht) {
|
|
807
|
+
return Re(w, t, f, i, ct, C(ct), e, Ht);
|
|
808
|
+
},
|
|
809
|
+
changed: B
|
|
810
|
+
}, Bt));
|
|
811
|
+
}
|
|
812
|
+
function j() {
|
|
813
|
+
k("dragOverAnimationCapture"), E.captureAnimationState(), E !== b && b.captureAnimationState();
|
|
814
|
+
}
|
|
815
|
+
function A(Ee) {
|
|
816
|
+
return k("dragOverCompleted", {
|
|
817
|
+
insertion: Ee
|
|
818
|
+
}), Ee && (d ? u._hideClone() : u._showClone(E), E !== b && (R(f, O ? O.options.ghostClass : u.options.ghostClass, !1), R(f, l.ghostClass, !0)), O !== E && E !== p.active ? O = E : E === p.active && O && (O = null), b === E && (E._ignoreWhileAnimating = n), E.animateAll(function() {
|
|
819
|
+
k("dragOverAnimationComplete"), E._ignoreWhileAnimating = null;
|
|
820
|
+
}), E !== b && (b.animateAll(), b._ignoreWhileAnimating = null)), (n === f && !f.animated || n === t && !n.animated) && (fe = null), !l.dragoverBubble && !e.rootEl && n !== document && (f.parentNode[N]._isOutsideThisEl(e.target), !Ee && re(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), y = !0;
|
|
821
|
+
}
|
|
822
|
+
function B() {
|
|
823
|
+
Y = X(f), Q = X(f, l.draggable), P({
|
|
824
|
+
sortable: E,
|
|
825
|
+
name: "change",
|
|
826
|
+
toEl: t,
|
|
827
|
+
newIndex: Y,
|
|
828
|
+
newDraggableIndex: Q,
|
|
829
|
+
originalEvent: e
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = W(n, l.draggable, t, !0), k("dragOver"), p.eventCanceled) return y;
|
|
833
|
+
if (f.contains(e.target) || n.animated && n.animatingX && n.animatingY || E._ignoreWhileAnimating === n)
|
|
834
|
+
return A(!1);
|
|
835
|
+
if (Le = !1, u && !l.disabled && (d ? c || (a = S !== w) : O === this || (this.lastPutMode = Ne.checkPull(this, u, f, e)) && s.checkPut(this, u, f, e))) {
|
|
836
|
+
if (_ = this._getDirection(e, n) === "vertical", i = C(f), k("dragOverValid"), p.eventCanceled) return y;
|
|
837
|
+
if (a)
|
|
838
|
+
return S = w, j(), this._hideClone(), k("revert"), p.eventCanceled || (le ? w.insertBefore(f, le) : w.appendChild(f)), A(!0);
|
|
839
|
+
var M = st(t, l.draggable);
|
|
840
|
+
if (!M || fn(e, _, this) && !M.animated) {
|
|
841
|
+
if (M === f)
|
|
842
|
+
return A(!1);
|
|
843
|
+
if (M && t === e.target && (n = M), n && (r = C(n)), Re(w, t, f, i, n, r, e, !!n) !== !1)
|
|
844
|
+
return j(), M && M.nextSibling ? t.insertBefore(f, M.nextSibling) : t.appendChild(f), S = t, B(), A(!0);
|
|
845
|
+
} else if (M && un(e, _, this)) {
|
|
846
|
+
var te = pe(t, 0, l, !0);
|
|
847
|
+
if (te === f)
|
|
848
|
+
return A(!1);
|
|
849
|
+
if (n = te, r = C(n), Re(w, t, f, i, n, r, e, !1) !== !1)
|
|
850
|
+
return j(), t.insertBefore(f, te), S = t, B(), A(!0);
|
|
851
|
+
} else if (n.parentNode === t) {
|
|
852
|
+
r = C(n);
|
|
853
|
+
var G = 0, ne, ge = f.parentNode !== t, F = !on(f.animated && f.toRect || i, n.animated && n.toRect || r, _), me = _ ? "top" : "left", K = mt(n, "top", "top") || mt(f, "top", "top"), ve = K ? K.scrollTop : void 0;
|
|
854
|
+
fe !== n && (ne = r[me], Oe = !1, Me = !F && l.invertSwap || ge), G = cn(e, n, r, _, F ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Me, fe === n);
|
|
855
|
+
var $;
|
|
856
|
+
if (G !== 0) {
|
|
857
|
+
var oe = X(f);
|
|
858
|
+
do
|
|
859
|
+
oe -= G, $ = S.children[oe];
|
|
860
|
+
while ($ && (h($, "display") === "none" || $ === g));
|
|
861
|
+
}
|
|
862
|
+
if (G === 0 || $ === n)
|
|
863
|
+
return A(!1);
|
|
864
|
+
fe = n, Ce = G;
|
|
865
|
+
var be = n.nextElementSibling, Z = !1;
|
|
866
|
+
Z = G === 1;
|
|
867
|
+
var xe = Re(w, t, f, i, n, r, e, Z);
|
|
868
|
+
if (xe !== !1)
|
|
869
|
+
return (xe === 1 || xe === -1) && (Z = xe === 1), ot = !0, setTimeout(sn, 30), j(), Z && !be ? t.appendChild(f) : n.parentNode.insertBefore(f, Z ? be : n), K && At(K, 0, ve - K.scrollTop), S = f.parentNode, ne !== void 0 && !Me && (ke = Math.abs(ne - C(n)[me])), B(), A(!0);
|
|
870
|
+
}
|
|
871
|
+
if (t.contains(f))
|
|
872
|
+
return A(!1);
|
|
873
|
+
}
|
|
874
|
+
return !1;
|
|
875
|
+
},
|
|
876
|
+
_ignoreWhileAnimating: null,
|
|
877
|
+
_offMoveEvents: function() {
|
|
878
|
+
m(document, "mousemove", this._onTouchMove), m(document, "touchmove", this._onTouchMove), m(document, "pointermove", this._onTouchMove), m(document, "dragover", re), m(document, "mousemove", re), m(document, "touchmove", re);
|
|
879
|
+
},
|
|
880
|
+
_offUpEvents: function() {
|
|
881
|
+
var e = this.el.ownerDocument;
|
|
882
|
+
m(e, "mouseup", this._onDrop), m(e, "touchend", this._onDrop), m(e, "pointerup", this._onDrop), m(e, "pointercancel", this._onDrop), m(e, "touchcancel", this._onDrop), m(document, "selectstart", this);
|
|
883
|
+
},
|
|
884
|
+
_onDrop: function(e) {
|
|
885
|
+
var t = this.el, n = this.options;
|
|
886
|
+
if (Y = X(f), Q = X(f, n.draggable), x("drop", this, {
|
|
887
|
+
evt: e
|
|
888
|
+
}), S = f && f.parentNode, Y = X(f), Q = X(f, n.draggable), p.eventCanceled) {
|
|
889
|
+
this._nulling();
|
|
890
|
+
return;
|
|
891
|
+
}
|
|
892
|
+
ce = !1, Me = !1, Oe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), it(this.cloneId), it(this._dragStartId), this.nativeDraggable && (m(document, "drop", this), m(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), De && h(document.body, "user-select", ""), h(f, "transform", ""), e && (ye && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), g && g.parentNode && g.parentNode.removeChild(g), (w === S || O && O.lastPutMode !== "clone") && D && D.parentNode && D.parentNode.removeChild(D), f && (this.nativeDraggable && m(f, "dragend", this), Je(f), f.style["will-change"] = "", ye && !ce && R(f, O ? O.options.ghostClass : this.options.ghostClass, !1), R(f, this.options.chosenClass, !1), P({
|
|
893
|
+
sortable: this,
|
|
894
|
+
name: "unchoose",
|
|
895
|
+
toEl: S,
|
|
896
|
+
newIndex: null,
|
|
897
|
+
newDraggableIndex: null,
|
|
898
|
+
originalEvent: e
|
|
899
|
+
}), w !== S ? (Y >= 0 && (P({
|
|
900
|
+
rootEl: S,
|
|
901
|
+
name: "add",
|
|
902
|
+
toEl: S,
|
|
903
|
+
fromEl: w,
|
|
904
|
+
originalEvent: e
|
|
905
|
+
}), P({
|
|
906
|
+
sortable: this,
|
|
907
|
+
name: "remove",
|
|
908
|
+
toEl: S,
|
|
909
|
+
originalEvent: e
|
|
910
|
+
}), P({
|
|
911
|
+
rootEl: S,
|
|
912
|
+
name: "sort",
|
|
913
|
+
toEl: S,
|
|
914
|
+
fromEl: w,
|
|
915
|
+
originalEvent: e
|
|
916
|
+
}), P({
|
|
917
|
+
sortable: this,
|
|
918
|
+
name: "sort",
|
|
919
|
+
toEl: S,
|
|
920
|
+
originalEvent: e
|
|
921
|
+
})), O && O.save()) : Y !== de && Y >= 0 && (P({
|
|
922
|
+
sortable: this,
|
|
923
|
+
name: "update",
|
|
924
|
+
toEl: S,
|
|
925
|
+
originalEvent: e
|
|
926
|
+
}), P({
|
|
927
|
+
sortable: this,
|
|
928
|
+
name: "sort",
|
|
929
|
+
toEl: S,
|
|
930
|
+
originalEvent: e
|
|
931
|
+
})), p.active && ((Y == null || Y === -1) && (Y = de, Q = Te), P({
|
|
932
|
+
sortable: this,
|
|
933
|
+
name: "end",
|
|
934
|
+
toEl: S,
|
|
935
|
+
originalEvent: e
|
|
936
|
+
}), this.save()))), this._nulling();
|
|
937
|
+
},
|
|
938
|
+
_nulling: function() {
|
|
939
|
+
x("nulling", this), w = f = S = g = le = D = Xe = J = ie = H = ye = Y = Q = de = Te = fe = Ce = O = Ne = p.dragged = p.ghost = p.clone = p.active = null, je.forEach(function(e) {
|
|
940
|
+
e.checked = !0;
|
|
941
|
+
}), je.length = Ke = Ze = 0;
|
|
942
|
+
},
|
|
943
|
+
handleEvent: function(e) {
|
|
944
|
+
switch (e.type) {
|
|
945
|
+
case "drop":
|
|
946
|
+
case "dragend":
|
|
947
|
+
this._onDrop(e);
|
|
948
|
+
break;
|
|
949
|
+
case "dragenter":
|
|
950
|
+
case "dragover":
|
|
951
|
+
f && (this._onDragOver(e), ln(e));
|
|
952
|
+
break;
|
|
953
|
+
case "selectstart":
|
|
954
|
+
e.preventDefault();
|
|
955
|
+
break;
|
|
956
|
+
}
|
|
957
|
+
},
|
|
958
|
+
/**
|
|
959
|
+
* Serializes the item into an array of string.
|
|
960
|
+
* @returns {String[]}
|
|
961
|
+
*/
|
|
962
|
+
toArray: function() {
|
|
963
|
+
for (var e = [], t, n = this.el.children, i = 0, r = n.length, a = this.options; i < r; i++)
|
|
964
|
+
t = n[i], W(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || hn(t));
|
|
965
|
+
return e;
|
|
966
|
+
},
|
|
967
|
+
/**
|
|
968
|
+
* Sorts the elements according to the array.
|
|
969
|
+
* @param {String[]} order order of the items
|
|
970
|
+
*/
|
|
971
|
+
sort: function(e, t) {
|
|
972
|
+
var n = {}, i = this.el;
|
|
973
|
+
this.toArray().forEach(function(r, a) {
|
|
974
|
+
var l = i.children[a];
|
|
975
|
+
W(l, this.options.draggable, i, !1) && (n[r] = l);
|
|
976
|
+
}, this), t && this.captureAnimationState(), e.forEach(function(r) {
|
|
977
|
+
n[r] && (i.removeChild(n[r]), i.appendChild(n[r]));
|
|
978
|
+
}), t && this.animateAll();
|
|
979
|
+
},
|
|
980
|
+
/**
|
|
981
|
+
* Save the current sorting
|
|
982
|
+
*/
|
|
983
|
+
save: function() {
|
|
984
|
+
var e = this.options.store;
|
|
985
|
+
e && e.set && e.set(this);
|
|
986
|
+
},
|
|
987
|
+
/**
|
|
988
|
+
* 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.
|
|
989
|
+
* @param {HTMLElement} el
|
|
990
|
+
* @param {String} [selector] default: `options.draggable`
|
|
991
|
+
* @returns {HTMLElement|null}
|
|
992
|
+
*/
|
|
993
|
+
closest: function(e, t) {
|
|
994
|
+
return W(e, t || this.options.draggable, this.el, !1);
|
|
995
|
+
},
|
|
996
|
+
/**
|
|
997
|
+
* Set/get option
|
|
998
|
+
* @param {string} name
|
|
999
|
+
* @param {*} [value]
|
|
1000
|
+
* @returns {*}
|
|
1001
|
+
*/
|
|
1002
|
+
option: function(e, t) {
|
|
1003
|
+
var n = this.options;
|
|
1004
|
+
if (t === void 0)
|
|
1005
|
+
return n[e];
|
|
1006
|
+
var i = Pe.modifyOption(this, e, t);
|
|
1007
|
+
typeof i < "u" ? n[e] = i : n[e] = t, e === "group" && Ft(n);
|
|
1008
|
+
},
|
|
1009
|
+
/**
|
|
1010
|
+
* Destroy
|
|
1011
|
+
*/
|
|
1012
|
+
destroy: function() {
|
|
1013
|
+
x("destroy", this);
|
|
1014
|
+
var e = this.el;
|
|
1015
|
+
e[N] = null, m(e, "mousedown", this._onTapStart), m(e, "touchstart", this._onTapStart), m(e, "pointerdown", this._onTapStart), this.nativeDraggable && (m(e, "dragover", this), m(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(t) {
|
|
1016
|
+
t.removeAttribute("draggable");
|
|
1017
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), ze.splice(ze.indexOf(this.el), 1), this.el = e = null;
|
|
1018
|
+
},
|
|
1019
|
+
_hideClone: function() {
|
|
1020
|
+
if (!J) {
|
|
1021
|
+
if (x("hideClone", this), p.eventCanceled) return;
|
|
1022
|
+
h(D, "display", "none"), this.options.removeCloneOnHide && D.parentNode && D.parentNode.removeChild(D), J = !0;
|
|
1023
|
+
}
|
|
1024
|
+
},
|
|
1025
|
+
_showClone: function(e) {
|
|
1026
|
+
if (e.lastPutMode !== "clone") {
|
|
1027
|
+
this._hideClone();
|
|
1028
|
+
return;
|
|
1029
|
+
}
|
|
1030
|
+
if (J) {
|
|
1031
|
+
if (x("showClone", this), p.eventCanceled) return;
|
|
1032
|
+
f.parentNode == w && !this.options.group.revertClone ? w.insertBefore(D, f) : le ? w.insertBefore(D, le) : w.appendChild(D), this.options.group.revertClone && this.animate(f, D), h(D, "display", ""), J = !1;
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
};
|
|
1036
|
+
function ln(o) {
|
|
1037
|
+
o.dataTransfer && (o.dataTransfer.dropEffect = "move"), o.cancelable && o.preventDefault();
|
|
1038
|
+
}
|
|
1039
|
+
function Re(o, e, t, n, i, r, a, l) {
|
|
1040
|
+
var s, u = o[N], d = u.options.onMove, c;
|
|
1041
|
+
return window.CustomEvent && !V && !Ae ? s = new CustomEvent("move", {
|
|
1042
|
+
bubbles: !0,
|
|
1043
|
+
cancelable: !0
|
|
1044
|
+
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = o, s.dragged = t, s.draggedRect = n, s.related = i || e, s.relatedRect = r || C(e), s.willInsertAfter = l, s.originalEvent = a, o.dispatchEvent(s), d && (c = d.call(u, s, a)), c;
|
|
1045
|
+
}
|
|
1046
|
+
function Je(o) {
|
|
1047
|
+
o.draggable = !1;
|
|
1048
|
+
}
|
|
1049
|
+
function sn() {
|
|
1050
|
+
ot = !1;
|
|
1051
|
+
}
|
|
1052
|
+
function un(o, e, t) {
|
|
1053
|
+
var n = C(pe(t.el, 0, t.options, !0)), i = xt(t.el, t.options, g), r = 10;
|
|
1054
|
+
return e ? o.clientX < i.left - r || o.clientY < n.top && o.clientX < n.right : o.clientY < i.top - r || o.clientY < n.bottom && o.clientX < n.left;
|
|
1055
|
+
}
|
|
1056
|
+
function fn(o, e, t) {
|
|
1057
|
+
var n = C(st(t.el, t.options.draggable)), i = xt(t.el, t.options, g), r = 10;
|
|
1058
|
+
return e ? o.clientX > i.right + r || o.clientY > n.bottom && o.clientX > n.left : o.clientY > i.bottom + r || o.clientX > n.right && o.clientY > n.top;
|
|
1059
|
+
}
|
|
1060
|
+
function cn(o, e, t, n, i, r, a, l) {
|
|
1061
|
+
var s = n ? o.clientY : o.clientX, u = n ? t.height : t.width, d = n ? t.top : t.left, c = n ? t.bottom : t.right, b = !1;
|
|
1062
|
+
if (!a) {
|
|
1063
|
+
if (l && ke < u * i) {
|
|
1064
|
+
if (!Oe && (Ce === 1 ? s > d + u * r / 2 : s < c - u * r / 2) && (Oe = !0), Oe)
|
|
1065
|
+
b = !0;
|
|
1066
|
+
else if (Ce === 1 ? s < d + ke : s > c - ke)
|
|
1067
|
+
return -Ce;
|
|
1068
|
+
} else if (s > d + u * (1 - i) / 2 && s < c - u * (1 - i) / 2)
|
|
1069
|
+
return dn(e);
|
|
1070
|
+
}
|
|
1071
|
+
return b = b || a, b && (s < d + u * r / 2 || s > c - u * r / 2) ? s > d + u / 2 ? 1 : -1 : 0;
|
|
1072
|
+
}
|
|
1073
|
+
function dn(o) {
|
|
1074
|
+
return X(f) < X(o) ? 1 : -1;
|
|
1075
|
+
}
|
|
1076
|
+
function hn(o) {
|
|
1077
|
+
for (var e = o.tagName + o.className + o.src + o.href + o.textContent, t = e.length, n = 0; t--; )
|
|
1078
|
+
n += e.charCodeAt(t);
|
|
1079
|
+
return n.toString(36);
|
|
1080
|
+
}
|
|
1081
|
+
function pn(o) {
|
|
1082
|
+
je.length = 0;
|
|
1083
|
+
for (var e = o.getElementsByTagName("input"), t = e.length; t--; ) {
|
|
1084
|
+
var n = e[t];
|
|
1085
|
+
n.checked && je.push(n);
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
function Be(o) {
|
|
1089
|
+
return setTimeout(o, 0);
|
|
1090
|
+
}
|
|
1091
|
+
function it(o) {
|
|
1092
|
+
return clearTimeout(o);
|
|
1093
|
+
}
|
|
1094
|
+
Ue && v(document, "touchmove", function(o) {
|
|
1095
|
+
(p.active || ce) && o.cancelable && o.preventDefault();
|
|
1096
|
+
});
|
|
1097
|
+
p.utils = {
|
|
1098
|
+
on: v,
|
|
1099
|
+
off: m,
|
|
1100
|
+
css: h,
|
|
1101
|
+
find: Ot,
|
|
1102
|
+
is: function(e, t) {
|
|
1103
|
+
return !!W(e, t, e, !1);
|
|
1104
|
+
},
|
|
1105
|
+
extend: Vt,
|
|
1106
|
+
throttle: It,
|
|
1107
|
+
closest: W,
|
|
1108
|
+
toggleClass: R,
|
|
1109
|
+
clone: Pt,
|
|
1110
|
+
index: X,
|
|
1111
|
+
nextTick: Be,
|
|
1112
|
+
cancelNextTick: it,
|
|
1113
|
+
detectDirection: Mt,
|
|
1114
|
+
getChild: pe,
|
|
1115
|
+
expando: N
|
|
1116
|
+
};
|
|
1117
|
+
p.get = function(o) {
|
|
1118
|
+
return o[N];
|
|
1119
|
+
};
|
|
1120
|
+
p.mount = function() {
|
|
1121
|
+
for (var o = arguments.length, e = new Array(o), t = 0; t < o; t++)
|
|
1122
|
+
e[t] = arguments[t];
|
|
1123
|
+
e[0].constructor === Array && (e = e[0]), e.forEach(function(n) {
|
|
1124
|
+
if (!n.prototype || !n.prototype.constructor)
|
|
1125
|
+
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
|
|
1126
|
+
n.utils && (p.utils = z(z({}, p.utils), n.utils)), Pe.mount(n);
|
|
1127
|
+
});
|
|
1128
|
+
};
|
|
1129
|
+
p.create = function(o, e) {
|
|
1130
|
+
return new p(o, e);
|
|
1131
|
+
};
|
|
1132
|
+
p.version = Ut;
|
|
1133
|
+
var T = [], _e, rt, at = !1, et, tt, $e, we;
|
|
1134
|
+
function gn() {
|
|
1135
|
+
function o() {
|
|
1136
|
+
this.defaults = {
|
|
1137
|
+
scroll: !0,
|
|
1138
|
+
forceAutoScrollFallback: !1,
|
|
1139
|
+
scrollSensitivity: 30,
|
|
1140
|
+
scrollSpeed: 10,
|
|
1141
|
+
bubbleScroll: !0
|
|
1142
|
+
};
|
|
1143
|
+
for (var e in this)
|
|
1144
|
+
e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
|
|
1145
|
+
}
|
|
1146
|
+
return o.prototype = {
|
|
1147
|
+
dragStarted: function(t) {
|
|
1148
|
+
var n = t.originalEvent;
|
|
1149
|
+
this.sortable.nativeDraggable ? v(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? v(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? v(document, "touchmove", this._handleFallbackAutoScroll) : v(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1150
|
+
},
|
|
1151
|
+
dragOverCompleted: function(t) {
|
|
1152
|
+
var n = t.originalEvent;
|
|
1153
|
+
!this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
|
|
1154
|
+
},
|
|
1155
|
+
drop: function() {
|
|
1156
|
+
this.sortable.nativeDraggable ? m(document, "dragover", this._handleAutoScroll) : (m(document, "pointermove", this._handleFallbackAutoScroll), m(document, "touchmove", this._handleFallbackAutoScroll), m(document, "mousemove", this._handleFallbackAutoScroll)), _t(), He(), Kt();
|
|
1157
|
+
},
|
|
1158
|
+
nulling: function() {
|
|
1159
|
+
$e = rt = _e = at = we = et = tt = null, T.length = 0;
|
|
1160
|
+
},
|
|
1161
|
+
_handleFallbackAutoScroll: function(t) {
|
|
1162
|
+
this._handleAutoScroll(t, !0);
|
|
1163
|
+
},
|
|
1164
|
+
_handleAutoScroll: function(t, n) {
|
|
1165
|
+
var i = this, r = (t.touches ? t.touches[0] : t).clientX, a = (t.touches ? t.touches[0] : t).clientY, l = document.elementFromPoint(r, a);
|
|
1166
|
+
if ($e = t, n || this.options.forceAutoScrollFallback || Ae || V || De) {
|
|
1167
|
+
nt(t, this.options, l, n);
|
|
1168
|
+
var s = ee(l, !0);
|
|
1169
|
+
at && (!we || r !== et || a !== tt) && (we && _t(), we = setInterval(function() {
|
|
1170
|
+
var u = ee(document.elementFromPoint(r, a), !0);
|
|
1171
|
+
u !== s && (s = u, He()), nt(t, i.options, u, n);
|
|
1172
|
+
}, 10), et = r, tt = a);
|
|
1173
|
+
} else {
|
|
1174
|
+
if (!this.options.bubbleScroll || ee(l, !0) === L()) {
|
|
1175
|
+
He();
|
|
1176
|
+
return;
|
|
1177
|
+
}
|
|
1178
|
+
nt(t, this.options, ee(l, !1), !1);
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
}, q(o, {
|
|
1182
|
+
pluginName: "scroll",
|
|
1183
|
+
initializeByDefault: !0
|
|
1184
|
+
});
|
|
1185
|
+
}
|
|
1186
|
+
function He() {
|
|
1187
|
+
T.forEach(function(o) {
|
|
1188
|
+
clearInterval(o.pid);
|
|
1189
|
+
}), T = [];
|
|
1190
|
+
}
|
|
1191
|
+
function _t() {
|
|
1192
|
+
clearInterval(we);
|
|
1193
|
+
}
|
|
1194
|
+
var nt = It(function(o, e, t, n) {
|
|
1195
|
+
if (e.scroll) {
|
|
1196
|
+
var i = (o.touches ? o.touches[0] : o).clientX, r = (o.touches ? o.touches[0] : o).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = L(), u = !1, d;
|
|
1197
|
+
rt !== t && (rt = t, He(), _e = e.scroll, d = e.scrollFn, _e === !0 && (_e = ee(t, !0)));
|
|
1198
|
+
var c = 0, b = _e;
|
|
1199
|
+
do {
|
|
1200
|
+
var _ = b, E = C(_), y = E.top, k = E.bottom, j = E.left, A = E.right, B = E.width, M = E.height, te = void 0, G = void 0, ne = _.scrollWidth, ge = _.scrollHeight, F = h(_), me = _.scrollLeft, K = _.scrollTop;
|
|
1201
|
+
_ === s ? (te = B < ne && (F.overflowX === "auto" || F.overflowX === "scroll" || F.overflowX === "visible"), G = M < ge && (F.overflowY === "auto" || F.overflowY === "scroll" || F.overflowY === "visible")) : (te = B < ne && (F.overflowX === "auto" || F.overflowX === "scroll"), G = M < ge && (F.overflowY === "auto" || F.overflowY === "scroll"));
|
|
1202
|
+
var ve = te && (Math.abs(A - i) <= a && me + B < ne) - (Math.abs(j - i) <= a && !!me), $ = G && (Math.abs(k - r) <= a && K + M < ge) - (Math.abs(y - r) <= a && !!K);
|
|
1203
|
+
if (!T[c])
|
|
1204
|
+
for (var oe = 0; oe <= c; oe++)
|
|
1205
|
+
T[oe] || (T[oe] = {});
|
|
1206
|
+
(T[c].vx != ve || T[c].vy != $ || T[c].el !== _) && (T[c].el = _, T[c].vx = ve, T[c].vy = $, clearInterval(T[c].pid), (ve != 0 || $ != 0) && (u = !0, T[c].pid = setInterval((function() {
|
|
1207
|
+
n && this.layer === 0 && p.active._onTouchMove($e);
|
|
1208
|
+
var be = T[this.layer].vy ? T[this.layer].vy * l : 0, Z = T[this.layer].vx ? T[this.layer].vx * l : 0;
|
|
1209
|
+
typeof d == "function" && d.call(p.dragged.parentNode[N], Z, be, o, $e, T[this.layer].el) !== "continue" || At(T[this.layer].el, Z, be);
|
|
1210
|
+
}).bind({
|
|
1211
|
+
layer: c
|
|
1212
|
+
}), 24))), c++;
|
|
1213
|
+
} while (e.bubbleScroll && b !== s && (b = ee(b, !1)));
|
|
1214
|
+
at = u;
|
|
1215
|
+
}
|
|
1216
|
+
}, 30), Xt = function(e) {
|
|
1217
|
+
var t = e.originalEvent, n = e.putSortable, i = e.dragEl, r = e.activeSortable, a = e.dispatchSortableEvent, l = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
1218
|
+
if (t) {
|
|
1219
|
+
var u = n || r;
|
|
1220
|
+
l();
|
|
1221
|
+
var d = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t, c = document.elementFromPoint(d.clientX, d.clientY);
|
|
1222
|
+
s(), u && !u.el.contains(c) && (a("spill"), this.onSpill({
|
|
1223
|
+
dragEl: i,
|
|
1224
|
+
putSortable: n
|
|
1225
|
+
}));
|
|
1226
|
+
}
|
|
1227
|
+
};
|
|
1228
|
+
function ut() {
|
|
1229
|
+
}
|
|
1230
|
+
ut.prototype = {
|
|
1231
|
+
startIndex: null,
|
|
1232
|
+
dragStart: function(e) {
|
|
1233
|
+
var t = e.oldDraggableIndex;
|
|
1234
|
+
this.startIndex = t;
|
|
1235
|
+
},
|
|
1236
|
+
onSpill: function(e) {
|
|
1237
|
+
var t = e.dragEl, n = e.putSortable;
|
|
1238
|
+
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
1239
|
+
var i = pe(this.sortable.el, this.startIndex, this.options);
|
|
1240
|
+
i ? this.sortable.el.insertBefore(t, i) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
1241
|
+
},
|
|
1242
|
+
drop: Xt
|
|
1243
|
+
};
|
|
1244
|
+
q(ut, {
|
|
1245
|
+
pluginName: "revertOnSpill"
|
|
1246
|
+
});
|
|
1247
|
+
function ft() {
|
|
1248
|
+
}
|
|
1249
|
+
ft.prototype = {
|
|
1250
|
+
onSpill: function(e) {
|
|
1251
|
+
var t = e.dragEl, n = e.putSortable, i = n || this.sortable;
|
|
1252
|
+
i.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), i.animateAll();
|
|
1253
|
+
},
|
|
1254
|
+
drop: Xt
|
|
1255
|
+
};
|
|
1256
|
+
q(ft, {
|
|
1257
|
+
pluginName: "removeOnSpill"
|
|
1258
|
+
});
|
|
1259
|
+
p.mount(new gn());
|
|
1260
|
+
p.mount(ft, ut);
|
|
1261
|
+
function mn(o, e = We({})) {
|
|
1262
|
+
const t = We(null), n = () => {
|
|
1263
|
+
var i;
|
|
1264
|
+
(i = t.value) != null && i.destroy && (t.value.destroy(), t.value = null);
|
|
1265
|
+
};
|
|
1266
|
+
return dt(
|
|
1267
|
+
o,
|
|
1268
|
+
(i) => {
|
|
1269
|
+
i != null ? t.value = new p(i, {
|
|
1270
|
+
...e.value,
|
|
1271
|
+
/**
|
|
1272
|
+
* Allows the component to be dragged only
|
|
1273
|
+
* with the handle component
|
|
1274
|
+
*/
|
|
1275
|
+
handle: ".b-draggable-handle",
|
|
1276
|
+
/**
|
|
1277
|
+
* Disables the component from being dragged
|
|
1278
|
+
*/
|
|
1279
|
+
filter: ".b-draggable-handle--disabled"
|
|
1280
|
+
}) : n();
|
|
1281
|
+
},
|
|
1282
|
+
{ immediate: !0 }
|
|
1283
|
+
), dt(e, (i) => {
|
|
1284
|
+
if (i && t.value)
|
|
1285
|
+
for (const r in i)
|
|
1286
|
+
t.value.option(r, i[r]);
|
|
1287
|
+
}), Dt(() => {
|
|
1288
|
+
t.value && n();
|
|
1289
|
+
}), {
|
|
1290
|
+
draggableElement: t
|
|
1291
|
+
};
|
|
1292
|
+
}
|
|
1293
|
+
let se = null;
|
|
1294
|
+
const ae = "1px", vn = 1e3, bn = {
|
|
1295
|
+
// Standard visually hidden styles.
|
|
1296
|
+
// Copied from our VisuallyHidden (react) package.
|
|
1297
|
+
width: ae,
|
|
1298
|
+
height: ae,
|
|
1299
|
+
padding: "0",
|
|
1300
|
+
position: "absolute",
|
|
1301
|
+
border: "0",
|
|
1302
|
+
clip: `rect(${ae}, ${ae}, ${ae}, ${ae})`,
|
|
1303
|
+
overflow: "hidden",
|
|
1304
|
+
whiteSpace: "nowrap",
|
|
1305
|
+
// Pulling upwards slightly to prevent the page
|
|
1306
|
+
// from growing when appended to a body that contains
|
|
1307
|
+
// an element with height:100%
|
|
1308
|
+
marginTop: `-${ae}`,
|
|
1309
|
+
// Just being safe and letting this element not interfere with hitboxes
|
|
1310
|
+
pointerEvents: "none"
|
|
1311
|
+
};
|
|
1312
|
+
function En() {
|
|
1313
|
+
const o = document.createElement("div");
|
|
1314
|
+
return o.setAttribute("role", "status"), o.setAttribute("aria-live", "polite"), Object.assign(o.style, bn), document.body.append(o), o;
|
|
1315
|
+
}
|
|
1316
|
+
function wt() {
|
|
1317
|
+
return se === null && (se = En()), se;
|
|
1318
|
+
}
|
|
1319
|
+
let Ie = null;
|
|
1320
|
+
function kt() {
|
|
1321
|
+
Ie !== null && clearTimeout(Ie), Ie = null;
|
|
1322
|
+
}
|
|
1323
|
+
function yn(o) {
|
|
1324
|
+
wt(), kt(), Ie = setTimeout(() => {
|
|
1325
|
+
Ie = null;
|
|
1326
|
+
const e = wt();
|
|
1327
|
+
e.textContent = o;
|
|
1328
|
+
}, vn);
|
|
1329
|
+
}
|
|
1330
|
+
function _n() {
|
|
1331
|
+
kt(), se == null || se.remove(), se = null;
|
|
1332
|
+
}
|
|
1333
|
+
const wn = {
|
|
1334
|
+
name: "bento-draggable"
|
|
1335
|
+
}, Dn = /* @__PURE__ */ Wt({
|
|
1336
|
+
...wn,
|
|
1337
|
+
props: {
|
|
1338
|
+
el: { default: "div" },
|
|
1339
|
+
items: { default: () => [] },
|
|
1340
|
+
options: { default: () => ({}) }
|
|
1341
|
+
},
|
|
1342
|
+
setup(o, { expose: e }) {
|
|
1343
|
+
const t = o, n = We(null), i = We(!1), r = Gt(() => n.value ? {
|
|
1344
|
+
...t.options,
|
|
1345
|
+
onStart: (l) => {
|
|
1346
|
+
var s, u;
|
|
1347
|
+
i.value = !0, (s = t.options) != null && s.onStart && ((u = t.options) == null || u.onStart(l));
|
|
1348
|
+
},
|
|
1349
|
+
onEnd: (l) => {
|
|
1350
|
+
setTimeout(() => {
|
|
1351
|
+
var s, u;
|
|
1352
|
+
i.value = !1, (s = t.options) != null && s.onEnd && ((u = t.options) == null || u.onEnd(l));
|
|
1353
|
+
});
|
|
1354
|
+
}
|
|
1355
|
+
} : {}), { draggableElement: a } = mn(n, r);
|
|
1356
|
+
return Dt(() => {
|
|
1357
|
+
_n();
|
|
1358
|
+
}), e({
|
|
1359
|
+
/**
|
|
1360
|
+
* A ref to the container DOM element.
|
|
1361
|
+
*/
|
|
1362
|
+
containerRef: n,
|
|
1363
|
+
/**
|
|
1364
|
+
* The underlying SortableJS instance, which provides methods like `toArray()`, `sort()`, and `destroy()`.
|
|
1365
|
+
*/
|
|
1366
|
+
draggableElement: a,
|
|
1367
|
+
/**
|
|
1368
|
+
* A boolean ref that is `true` when an item is being dragged.
|
|
1369
|
+
*/
|
|
1370
|
+
isDragging: i,
|
|
1371
|
+
/**
|
|
1372
|
+
* Used to announce reordering or movement actions to screen reader users.
|
|
1373
|
+
*/
|
|
1374
|
+
announce: yn
|
|
1375
|
+
}), { __sfc: !0, props: t, containerRef: n, isDragging: i, computedOptions: r, draggableElement: a };
|
|
1376
|
+
}
|
|
1377
|
+
});
|
|
1378
|
+
var Sn = function() {
|
|
1379
|
+
var e = this, t = e._self._c;
|
|
1380
|
+
return e._self._setupProxy, t(e.el, { ref: "containerRef", tag: "component" }, [e._l(e.items, function(n, i) {
|
|
1381
|
+
return e._t("default", null, { item: n, index: i });
|
|
1382
|
+
})], 2);
|
|
1383
|
+
}, Tn = [], Cn = /* @__PURE__ */ Lt(
|
|
1384
|
+
Dn,
|
|
1385
|
+
Sn,
|
|
1386
|
+
Tn,
|
|
1387
|
+
!1,
|
|
1388
|
+
null,
|
|
1389
|
+
null
|
|
1390
|
+
);
|
|
1391
|
+
const Pn = Cn.exports;
|
|
1392
|
+
export {
|
|
1393
|
+
Pn as BentoDraggable,
|
|
1394
|
+
Mn as BentoDraggableHandle
|
|
1395
|
+
};
|
|
1396
|
+
//# sourceMappingURL=draggable.js.map
|