@adyen/bento-vue2 1.97.0 → 1.98.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/index.d.ts +66 -1
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.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/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable-handle.css +1 -1
- package/dist/assets/draggable.css +1 -0
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header-meta.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/list-item.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/navigation-menu-group.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.B890LCTe.js → action-bar.X-dXuOcv.js} +4 -4
- package/dist/chunks/{action-bar.B890LCTe.js.map → action-bar.X-dXuOcv.js.map} +1 -1
- package/dist/chunks/{ai-tag.C8RxACNj.js → ai-tag.Cdn4JK1m.js} +2 -2
- package/dist/chunks/{ai-tag.C8RxACNj.js.map → ai-tag.Cdn4JK1m.js.map} +1 -1
- package/dist/chunks/{anchor-scroller.B8VXotik.js → anchor-scroller.Bu7GtOqH.js} +5 -5
- package/dist/chunks/{anchor-scroller.B8VXotik.js.map → anchor-scroller.Bu7GtOqH.js.map} +1 -1
- package/dist/chunks/{base-modal.CDMoF3b_.js → base-modal.DgMSsQf3.js} +5 -5
- package/dist/chunks/{base-modal.CDMoF3b_.js.map → base-modal.DgMSsQf3.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.DqDQ_gVX.js → button-actions-with-menu.BV5aDUCD.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.DqDQ_gVX.js.map → button-actions-with-menu.BV5aDUCD.js.map} +1 -1
- package/dist/chunks/{button-actions.DKc63aCb.js → button-actions.BD4Dyp4U.js} +2 -2
- package/dist/chunks/{button-actions.DKc63aCb.js.map → button-actions.BD4Dyp4U.js.map} +1 -1
- package/dist/chunks/{calendar.BckAv9N_.js → calendar.B0GnBaAW.js} +154 -153
- package/dist/chunks/calendar.B0GnBaAW.js.map +1 -0
- package/dist/chunks/{card.ChBURa5R.js → card.Bm7JEsCC.js} +2 -2
- package/dist/chunks/{card.ChBURa5R.js.map → card.Bm7JEsCC.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BAjvgXlc.js → checkbox-group.mgC7eJkE.js} +3 -3
- package/dist/chunks/{checkbox-group.BAjvgXlc.js.map → checkbox-group.mgC7eJkE.js.map} +1 -1
- package/dist/chunks/{checkbox.BAQDBNL6.js → checkbox.CBawZCc6.js} +2 -2
- package/dist/chunks/{checkbox.BAQDBNL6.js.map → checkbox.CBawZCc6.js.map} +1 -1
- package/dist/chunks/{code-snippet.nUo9bjhC.js → code-snippet.CpHbw0xj.js} +4 -4
- package/dist/chunks/{code-snippet.nUo9bjhC.js.map → code-snippet.CpHbw0xj.js.map} +1 -1
- package/dist/chunks/{controls-group.Bzpsrtcx.js → controls-group.BWzCb_GU.js} +2 -2
- package/dist/chunks/{controls-group.Bzpsrtcx.js.map → controls-group.BWzCb_GU.js.map} +1 -1
- package/dist/chunks/{copy.DVB6pQC8.js → copy.CWKdfVcd.js} +3 -3
- package/dist/chunks/{copy.DVB6pQC8.js.map → copy.CWKdfVcd.js.map} +1 -1
- package/dist/chunks/{dashboard-section.BDDVJpxY.js → dashboard-section.CRn7tlX_.js} +4 -4
- package/dist/chunks/{dashboard-section.BDDVJpxY.js.map → dashboard-section.CRn7tlX_.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CfEmbgOv.js → dashed-underline.BoHt4iGu.js} +4 -4
- package/dist/chunks/{dashed-underline.CfEmbgOv.js.map → dashed-underline.BoHt4iGu.js.map} +1 -1
- package/dist/chunks/{data-grid-template.BUlLHTYe.js → data-grid-template.BYMLOzkm.js} +4 -4
- package/dist/chunks/{data-grid-template.BUlLHTYe.js.map → data-grid-template.BYMLOzkm.js.map} +1 -1
- package/dist/chunks/{data-grid.0OiCQjFc.js → data-grid.BRziyZ43.js} +19 -19
- package/dist/chunks/{data-grid.0OiCQjFc.js.map → data-grid.BRziyZ43.js.map} +1 -1
- package/dist/chunks/{date-picker.CsFSskqf.js → date-picker.CCJtLnE4.js} +7 -7
- package/dist/chunks/{date-picker.CsFSskqf.js.map → date-picker.CCJtLnE4.js.map} +1 -1
- package/dist/chunks/{date-range-picker.Bczgdu5X.js → date-range-picker.B2u5vm8m.js} +10 -10
- package/dist/chunks/{date-range-picker.Bczgdu5X.js.map → date-range-picker.B2u5vm8m.js.map} +1 -1
- package/dist/chunks/{date-time-picker.DT54TiG4.js → date-time-picker.CP-IrUwY.js} +5 -5
- package/dist/chunks/{date-time-picker.DT54TiG4.js.map → date-time-picker.CP-IrUwY.js.map} +1 -1
- package/dist/chunks/{date.B0m0sFP6.js → date.C1HnIyOv.js} +27 -25
- package/dist/chunks/date.C1HnIyOv.js.map +1 -0
- package/dist/chunks/{dialog-page.DYWnKdnP.js → dialog-page.BendBRv6.js} +10 -10
- package/dist/chunks/{dialog-page.DYWnKdnP.js.map → dialog-page.BendBRv6.js.map} +1 -1
- package/dist/chunks/draggable-handle.BnRkhlee.js +1611 -0
- package/dist/chunks/draggable-handle.BnRkhlee.js.map +1 -0
- package/dist/chunks/draggable.D5WFD5eX.js +193 -0
- package/dist/chunks/draggable.D5WFD5eX.js.map +1 -0
- package/dist/chunks/{drawer.WW7G9cSC.js → drawer.BuCNjIKQ.js} +2 -2
- package/dist/chunks/{drawer.WW7G9cSC.js.map → drawer.BuCNjIKQ.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.BqSrkuwj.js → dropdown-tag.LIt7SdwS.js} +3 -3
- package/dist/chunks/{dropdown-tag.BqSrkuwj.js.map → dropdown-tag.LIt7SdwS.js.map} +1 -1
- package/dist/chunks/{dropdown.CIEm6MBB.js → dropdown.NTGSuWAw.js} +847 -822
- package/dist/chunks/dropdown.NTGSuWAw.js.map +1 -0
- package/dist/chunks/{field-label.CdVbAfK-.js → field-label.CkMM3cXO.js} +2 -2
- package/dist/chunks/{field-label.CdVbAfK-.js.map → field-label.CkMM3cXO.js.map} +1 -1
- package/dist/chunks/{file-uploader.DOvQMUHC.js → file-uploader.BLoJVqZQ.js} +3 -3
- package/dist/chunks/{file-uploader.DOvQMUHC.js.map → file-uploader.BLoJVqZQ.js.map} +1 -1
- package/dist/chunks/{filter-bar.DVRPM9tf.js → filter-bar.CftgpM7Z.js} +20 -20
- package/dist/chunks/filter-bar.CftgpM7Z.js.map +1 -0
- package/dist/chunks/{focus-trap.CBIb3SyN.js → focus-trap.CUZQ1kQD.js} +2 -2
- package/dist/chunks/{focus-trap.CBIb3SyN.js.map → focus-trap.CUZQ1kQD.js.map} +1 -1
- package/dist/chunks/{footer-actions.C1sXd7ti.js → footer-actions.C89dbDV4.js} +2 -2
- package/dist/chunks/{footer-actions.C1sXd7ti.js.map → footer-actions.C89dbDV4.js.map} +1 -1
- package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -1
- package/dist/chunks/{header-meta.D1eb37QJ.js → header-meta.Cpk3Z8c2.js} +56 -51
- package/dist/chunks/{header-meta.D1eb37QJ.js.map → header-meta.Cpk3Z8c2.js.map} +1 -1
- package/dist/chunks/{header-with-views.Bk6ly102.js → header-with-views.UmWf3dQd.js} +10 -10
- package/dist/chunks/{header-with-views.Bk6ly102.js.map → header-with-views.UmWf3dQd.js.map} +1 -1
- package/dist/chunks/{header.CszOmM16.js → header.BRBY9Ilh.js} +3 -3
- package/dist/chunks/{header.CszOmM16.js.map → header.BRBY9Ilh.js.map} +1 -1
- package/dist/chunks/{index.CJYgd0QI.js → index.BPUMyryR.js} +14 -14
- package/dist/chunks/{index.CJYgd0QI.js.map → index.BPUMyryR.js.map} +1 -1
- package/dist/chunks/{info-icon.9Nt7zg3D.js → info-icon.ZVQsMymB.js} +3 -3
- package/dist/chunks/{info-icon.9Nt7zg3D.js.map → info-icon.ZVQsMymB.js.map} +1 -1
- package/dist/chunks/{input-field-password.C4Wxsl16.js → input-field-password.bhLfqs6p.js} +5 -5
- package/dist/chunks/{input-field-password.C4Wxsl16.js.map → input-field-password.bhLfqs6p.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.BhYTU628.js → input-field-phone-number.cAROnxRW.js} +2 -2
- package/dist/chunks/{input-field-phone-number.BhYTU628.js.map → input-field-phone-number.cAROnxRW.js.map} +1 -1
- package/dist/chunks/{input-field.3tzX7t2y.js → input-field.BgVjWpiF.js} +3 -3
- package/dist/chunks/{input-field.3tzX7t2y.js.map → input-field.BgVjWpiF.js.map} +1 -1
- package/dist/chunks/{input-time.Bf-ZrCPX.js → input-time.C5qQ6S8d.js} +3 -3
- package/dist/chunks/{input-time.Bf-ZrCPX.js.map → input-time.C5qQ6S8d.js.map} +1 -1
- package/dist/chunks/{inspector.BY3SoX-l.js → inspector.8QKfd0HF.js} +3 -3
- package/dist/chunks/{inspector.BY3SoX-l.js.map → inspector.8QKfd0HF.js.map} +1 -1
- package/dist/chunks/{layout-row.BI9ZJa-9.js → layout-row.CTBhpBUq.js} +9 -9
- package/dist/chunks/{layout-row.BI9ZJa-9.js.map → layout-row.CTBhpBUq.js.map} +1 -1
- package/dist/chunks/list-item.BxQkbnLZ.js +193 -0
- package/dist/chunks/list-item.BxQkbnLZ.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.Ddyl2vuc.js → listbox-option-tag.BFW39wpD.js} +2 -2
- package/dist/chunks/{listbox-option-tag.Ddyl2vuc.js.map → listbox-option-tag.BFW39wpD.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.Dg1Hi3jB.js → modal-fullscreen.CH2wwAtk.js} +4 -4
- package/dist/chunks/{modal-fullscreen.Dg1Hi3jB.js.map → modal-fullscreen.CH2wwAtk.js.map} +1 -1
- package/dist/chunks/{modal.DZTEFM_E.js → modal.e1Ym209E.js} +4 -4
- package/dist/chunks/{modal.DZTEFM_E.js.map → modal.e1Ym209E.js.map} +1 -1
- package/dist/chunks/{navigation-menu-group.Dv2_ZRRq.js → navigation-menu-group.E1Oam9-n.js} +3 -3
- package/dist/chunks/{navigation-menu-group.Dv2_ZRRq.js.map → navigation-menu-group.E1Oam9-n.js.map} +1 -1
- package/dist/chunks/{pagination.C6HIPq58.js → pagination.BzLKzijQ.js} +2 -2
- package/dist/chunks/{pagination.C6HIPq58.js.map → pagination.BzLKzijQ.js.map} +1 -1
- package/dist/chunks/popover.types.ZXsQ9bA6.js +6 -0
- package/dist/chunks/{popover.types.B9TXaqAt.js.map → popover.types.ZXsQ9bA6.js.map} +1 -1
- package/dist/chunks/{popper-container.CFYFCz6u.js → popper-container.dxpRn9a5.js} +2 -2
- package/dist/chunks/{popper-container.CFYFCz6u.js.map → popper-container.dxpRn9a5.js.map} +1 -1
- package/dist/chunks/{promo-banner.tljKS80K.js → promo-banner.BVBt9w4u.js} +2 -2
- package/dist/chunks/{promo-banner.tljKS80K.js.map → promo-banner.BVBt9w4u.js.map} +1 -1
- package/dist/chunks/{radio-group.cn4lZb8R.js → radio-group.D5fpHqkP.js} +3 -3
- package/dist/chunks/{radio-group.cn4lZb8R.js.map → radio-group.D5fpHqkP.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.-B96ibAd.js → rich-text-editor.VWCBSRmM.js} +4 -4
- package/dist/chunks/{rich-text-editor.-B96ibAd.js.map → rich-text-editor.VWCBSRmM.js.map} +1 -1
- package/dist/chunks/{search-bar.DunTxVmZ.js → search-bar.Be3RlmLA.js} +3 -3
- package/dist/chunks/{search-bar.DunTxVmZ.js.map → search-bar.Be3RlmLA.js.map} +1 -1
- package/dist/chunks/{secondary-nav.CGGPkYpc.js → secondary-nav.Cy4ap53E.js} +4 -4
- package/dist/chunks/{secondary-nav.CGGPkYpc.js.map → secondary-nav.Cy4ap53E.js.map} +1 -1
- package/dist/chunks/{segmented-control.C0JtDa4q.js → segmented-control.BOyYIUEp.js} +2 -2
- package/dist/chunks/{segmented-control.C0JtDa4q.js.map → segmented-control.BOyYIUEp.js.map} +1 -1
- package/dist/chunks/{selection-card-group.ZZ_qF1L1.js → selection-card-group.lNZ8z318.js} +3 -3
- package/dist/chunks/{selection-card-group.ZZ_qF1L1.js.map → selection-card-group.lNZ8z318.js.map} +1 -1
- package/dist/chunks/{sidepanel.ChuW63J7.js → sidepanel.CN_u-b5X.js} +5 -5
- package/dist/chunks/{sidepanel.ChuW63J7.js.map → sidepanel.CN_u-b5X.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DE0L0kvs.js → structured-list-item.CL1jhdTX.js} +4 -4
- package/dist/chunks/{structured-list-item.DE0L0kvs.js.map → structured-list-item.CL1jhdTX.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.BnEhhDQz.js → summary-grid.types.Cjrwg4vd.js} +5 -5
- package/dist/chunks/{summary-grid.types.BnEhhDQz.js.map → summary-grid.types.Cjrwg4vd.js.map} +1 -1
- package/dist/chunks/{tab.QEKU5Udp.js → tab.B2qRfTqx.js} +2 -2
- package/dist/chunks/{tab.QEKU5Udp.js.map → tab.B2qRfTqx.js.map} +1 -1
- package/dist/chunks/{tag.CbNFG45Y.js → tag.XeZzHnx_.js} +2 -2
- package/dist/chunks/{tag.CbNFG45Y.js.map → tag.XeZzHnx_.js.map} +1 -1
- package/dist/chunks/{textarea.DJ7095b6.js → textarea.CbCrtcQ2.js} +2 -2
- package/dist/chunks/{textarea.DJ7095b6.js.map → textarea.CbCrtcQ2.js.map} +1 -1
- package/dist/chunks/{timeline-item.DzMh520x.js → timeline-item.BVOztUi9.js} +7 -7
- package/dist/chunks/{timeline-item.DzMh520x.js.map → timeline-item.BVOztUi9.js.map} +1 -1
- package/dist/chunks/{tooltip.CnkqMpOA.js → tooltip.CGeGVHyl.js} +3 -3
- package/dist/chunks/{tooltip.CnkqMpOA.js.map → tooltip.CGeGVHyl.js.map} +1 -1
- package/dist/chunks/{tutorial.CkeL_7Je.js → tutorial.WeP9PjhU.js} +4 -4
- package/dist/chunks/{tutorial.CkeL_7Je.js.map → tutorial.WeP9PjhU.js.map} +1 -1
- package/dist/chunks/{use-bento-delayed-hover.D4rfUUOr.js → use-bento-delayed-hover.CxJOLxok.js} +2 -2
- package/dist/chunks/{use-bento-delayed-hover.D4rfUUOr.js.map → use-bento-delayed-hover.CxJOLxok.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.Dq9C0nc9.js → use-date-input-formatter.BMciZYTp.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.Dq9C0nc9.js.map → use-date-input-formatter.BMciZYTp.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- 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/date-time-picker.js +1 -1
- package/dist/date.js +1 -1
- package/dist/draggable.js +4 -3
- package/dist/draggable.js.map +1 -1
- package/dist/drawer.js +1 -1
- package/dist/dropdown.js +2 -2
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +264 -263
- 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 +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +11 -11
- package/dist/layout.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/navigation-menu.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/popover.js +2 -2
- package/dist/popper-container.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/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/tutorial.js +1 -1
- package/dist/web-types.json +61 -1
- package/package.json +8 -8
- package/dist/chunks/calendar.BckAv9N_.js.map +0 -1
- package/dist/chunks/date.B0m0sFP6.js.map +0 -1
- package/dist/chunks/draggable-handle.DwJBaf5y.js +0 -1747
- package/dist/chunks/draggable-handle.DwJBaf5y.js.map +0 -1
- package/dist/chunks/dropdown.CIEm6MBB.js.map +0 -1
- package/dist/chunks/filter-bar.DVRPM9tf.js.map +0 -1
- package/dist/chunks/list-item.D2ZLiS_D.js +0 -76
- package/dist/chunks/list-item.D2ZLiS_D.js.map +0 -1
- package/dist/chunks/popover.types.B9TXaqAt.js +0 -6
|
@@ -1,1747 +0,0 @@
|
|
|
1
|
-
import { ref as ae, watch as nt, markRaw as Wt, onUnmounted as Ct, defineComponent as Mt, computed as Re, nextTick as ht } from "vue";
|
|
2
|
-
import { u as Pt } from "./index.B6WW_F-J.js";
|
|
3
|
-
import { l as jt, m as Oe } from "./index.CJYgd0QI.js";
|
|
4
|
-
import { n as We } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
5
|
-
import { f as qt } from "./button-actions.DKc63aCb.js";
|
|
6
|
-
import { G as Vt } from "./grab.BxiVZ1RZ.js";
|
|
7
|
-
/* empty css */
|
|
8
|
-
import { A as Kt } from "./arrow-left.CRREfabP.js";
|
|
9
|
-
import { A as Zt } from "./arrow-right.Dn3AYpUP.js";
|
|
10
|
-
import "../assets/draggable-handle.css";
|
|
11
|
-
/**!
|
|
12
|
-
* Sortable 1.15.6
|
|
13
|
-
* @author RubaXa <trash@rubaxa.org>
|
|
14
|
-
* @author owenm <owen23355@gmail.com>
|
|
15
|
-
* @license MIT
|
|
16
|
-
*/
|
|
17
|
-
function pt(n, e) {
|
|
18
|
-
var o = Object.keys(n);
|
|
19
|
-
if (Object.getOwnPropertySymbols) {
|
|
20
|
-
var t = Object.getOwnPropertySymbols(n);
|
|
21
|
-
e && (t = t.filter(function(i) {
|
|
22
|
-
return Object.getOwnPropertyDescriptor(n, i).enumerable;
|
|
23
|
-
})), o.push.apply(o, t);
|
|
24
|
-
}
|
|
25
|
-
return o;
|
|
26
|
-
}
|
|
27
|
-
function K(n) {
|
|
28
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
29
|
-
var o = arguments[e] != null ? arguments[e] : {};
|
|
30
|
-
e % 2 ? pt(Object(o), !0).forEach(function(t) {
|
|
31
|
-
Jt(n, t, o[t]);
|
|
32
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(o)) : pt(Object(o)).forEach(function(t) {
|
|
33
|
-
Object.defineProperty(n, t, Object.getOwnPropertyDescriptor(o, t));
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
return n;
|
|
37
|
-
}
|
|
38
|
-
function Fe(n) {
|
|
39
|
-
"@babel/helpers - typeof";
|
|
40
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Fe = function(e) {
|
|
41
|
-
return typeof e;
|
|
42
|
-
} : Fe = function(e) {
|
|
43
|
-
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
44
|
-
}, Fe(n);
|
|
45
|
-
}
|
|
46
|
-
function Jt(n, e, o) {
|
|
47
|
-
return e in n ? Object.defineProperty(n, e, {
|
|
48
|
-
value: o,
|
|
49
|
-
enumerable: !0,
|
|
50
|
-
configurable: !0,
|
|
51
|
-
writable: !0
|
|
52
|
-
}) : n[e] = o, n;
|
|
53
|
-
}
|
|
54
|
-
function te() {
|
|
55
|
-
return te = Object.assign || function(n) {
|
|
56
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
57
|
-
var o = arguments[e];
|
|
58
|
-
for (var t in o)
|
|
59
|
-
Object.prototype.hasOwnProperty.call(o, t) && (n[t] = o[t]);
|
|
60
|
-
}
|
|
61
|
-
return n;
|
|
62
|
-
}, te.apply(this, arguments);
|
|
63
|
-
}
|
|
64
|
-
function Qt(n, e) {
|
|
65
|
-
if (n == null) return {};
|
|
66
|
-
var o = {}, t = Object.keys(n), i, r;
|
|
67
|
-
for (r = 0; r < t.length; r++)
|
|
68
|
-
i = t[r], !(e.indexOf(i) >= 0) && (o[i] = n[i]);
|
|
69
|
-
return o;
|
|
70
|
-
}
|
|
71
|
-
function eo(n, e) {
|
|
72
|
-
if (n == null) return {};
|
|
73
|
-
var o = Qt(n, e), t, i;
|
|
74
|
-
if (Object.getOwnPropertySymbols) {
|
|
75
|
-
var r = Object.getOwnPropertySymbols(n);
|
|
76
|
-
for (i = 0; i < r.length; i++)
|
|
77
|
-
t = r[i], !(e.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(n, t) && (o[t] = n[t]);
|
|
78
|
-
}
|
|
79
|
-
return o;
|
|
80
|
-
}
|
|
81
|
-
var to = "1.15.6";
|
|
82
|
-
function ee(n) {
|
|
83
|
-
if (typeof window < "u" && window.navigator)
|
|
84
|
-
return !!/* @__PURE__ */ navigator.userAgent.match(n);
|
|
85
|
-
}
|
|
86
|
-
var oe = ee(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ce = ee(/Edge/i), mt = ee(/firefox/i), Ee = ee(/safari/i) && !ee(/chrome/i) && !ee(/android/i), st = ee(/iP(ad|od|hone)/i), Ot = ee(/chrome/i) && ee(/android/i), xt = {
|
|
87
|
-
capture: !1,
|
|
88
|
-
passive: !1
|
|
89
|
-
};
|
|
90
|
-
function y(n, e, o) {
|
|
91
|
-
n.addEventListener(e, o, !oe && xt);
|
|
92
|
-
}
|
|
93
|
-
function w(n, e, o) {
|
|
94
|
-
n.removeEventListener(e, o, !oe && xt);
|
|
95
|
-
}
|
|
96
|
-
function Ye(n, e) {
|
|
97
|
-
if (e) {
|
|
98
|
-
if (e[0] === ">" && (e = e.substring(1)), n)
|
|
99
|
-
try {
|
|
100
|
-
if (n.matches)
|
|
101
|
-
return n.matches(e);
|
|
102
|
-
if (n.msMatchesSelector)
|
|
103
|
-
return n.msMatchesSelector(e);
|
|
104
|
-
if (n.webkitMatchesSelector)
|
|
105
|
-
return n.webkitMatchesSelector(e);
|
|
106
|
-
} catch {
|
|
107
|
-
return !1;
|
|
108
|
-
}
|
|
109
|
-
return !1;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
function At(n) {
|
|
113
|
-
return n.host && n !== document && n.host.nodeType ? n.host : n.parentNode;
|
|
114
|
-
}
|
|
115
|
-
function j(n, e, o, t) {
|
|
116
|
-
if (n) {
|
|
117
|
-
o = o || document;
|
|
118
|
-
do {
|
|
119
|
-
if (e != null && (e[0] === ">" ? n.parentNode === o && Ye(n, e) : Ye(n, e)) || t && n === o)
|
|
120
|
-
return n;
|
|
121
|
-
if (n === o) break;
|
|
122
|
-
} while (n = At(n));
|
|
123
|
-
}
|
|
124
|
-
return null;
|
|
125
|
-
}
|
|
126
|
-
var gt = /\s+/g;
|
|
127
|
-
function Y(n, e, o) {
|
|
128
|
-
if (n && e)
|
|
129
|
-
if (n.classList)
|
|
130
|
-
n.classList[o ? "add" : "remove"](e);
|
|
131
|
-
else {
|
|
132
|
-
var t = (" " + n.className + " ").replace(gt, " ").replace(" " + e + " ", " ");
|
|
133
|
-
n.className = (t + (o ? " " + e : "")).replace(gt, " ");
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
function h(n, e, o) {
|
|
137
|
-
var t = n && n.style;
|
|
138
|
-
if (t) {
|
|
139
|
-
if (o === void 0)
|
|
140
|
-
return document.defaultView && document.defaultView.getComputedStyle ? o = document.defaultView.getComputedStyle(n, "") : n.currentStyle && (o = n.currentStyle), e === void 0 ? o : o[e];
|
|
141
|
-
!(e in t) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), t[e] = o + (typeof o == "string" ? "" : "px");
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
function me(n, e) {
|
|
145
|
-
var o = "";
|
|
146
|
-
if (typeof n == "string")
|
|
147
|
-
o = n;
|
|
148
|
-
else
|
|
149
|
-
do {
|
|
150
|
-
var t = h(n, "transform");
|
|
151
|
-
t && t !== "none" && (o = t + " " + o);
|
|
152
|
-
} while (!e && (n = n.parentNode));
|
|
153
|
-
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
154
|
-
return i && new i(o);
|
|
155
|
-
}
|
|
156
|
-
function Nt(n, e, o) {
|
|
157
|
-
if (n) {
|
|
158
|
-
var t = n.getElementsByTagName(e), i = 0, r = t.length;
|
|
159
|
-
if (o)
|
|
160
|
-
for (; i < r; i++)
|
|
161
|
-
o(t[i], i);
|
|
162
|
-
return t;
|
|
163
|
-
}
|
|
164
|
-
return [];
|
|
165
|
-
}
|
|
166
|
-
function V() {
|
|
167
|
-
var n = document.scrollingElement;
|
|
168
|
-
return n || document.documentElement;
|
|
169
|
-
}
|
|
170
|
-
function x(n, e, o, t, i) {
|
|
171
|
-
if (!(!n.getBoundingClientRect && n !== window)) {
|
|
172
|
-
var r, a, l, s, u, f, c;
|
|
173
|
-
if (n !== window && n.parentNode && n !== V() ? (r = n.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right, f = r.height, c = r.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, f = window.innerHeight, c = window.innerWidth), (e || o) && n !== window && (i = i || n.parentNode, !oe))
|
|
174
|
-
do
|
|
175
|
-
if (i && i.getBoundingClientRect && (h(i, "transform") !== "none" || o && h(i, "position") !== "static")) {
|
|
176
|
-
var v = i.getBoundingClientRect();
|
|
177
|
-
a -= v.top + parseInt(h(i, "border-top-width")), l -= v.left + parseInt(h(i, "border-left-width")), s = a + r.height, u = l + r.width;
|
|
178
|
-
break;
|
|
179
|
-
}
|
|
180
|
-
while (i = i.parentNode);
|
|
181
|
-
if (t && n !== window) {
|
|
182
|
-
var D = me(i || n), b = D && D.a, E = D && D.d;
|
|
183
|
-
D && (a /= E, l /= b, c /= b, f /= E, s = a + f, u = l + c);
|
|
184
|
-
}
|
|
185
|
-
return {
|
|
186
|
-
top: a,
|
|
187
|
-
left: l,
|
|
188
|
-
bottom: s,
|
|
189
|
-
right: u,
|
|
190
|
-
width: c,
|
|
191
|
-
height: f
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
function vt(n, e, o) {
|
|
196
|
-
for (var t = le(n, !0), i = x(n)[e]; t; ) {
|
|
197
|
-
var r = x(t)[o], a = void 0;
|
|
198
|
-
if (a = i >= r, !a) return t;
|
|
199
|
-
if (t === V()) break;
|
|
200
|
-
t = le(t, !1);
|
|
201
|
-
}
|
|
202
|
-
return !1;
|
|
203
|
-
}
|
|
204
|
-
function ge(n, e, o, t) {
|
|
205
|
-
for (var i = 0, r = 0, a = n.children; r < a.length; ) {
|
|
206
|
-
if (a[r].style.display !== "none" && a[r] !== p.ghost && (t || a[r] !== p.dragged) && j(a[r], o.draggable, n, !1)) {
|
|
207
|
-
if (i === e)
|
|
208
|
-
return a[r];
|
|
209
|
-
i++;
|
|
210
|
-
}
|
|
211
|
-
r++;
|
|
212
|
-
}
|
|
213
|
-
return null;
|
|
214
|
-
}
|
|
215
|
-
function ut(n, e) {
|
|
216
|
-
for (var o = n.lastElementChild; o && (o === p.ghost || h(o, "display") === "none" || e && !Ye(o, e)); )
|
|
217
|
-
o = o.previousElementSibling;
|
|
218
|
-
return o || null;
|
|
219
|
-
}
|
|
220
|
-
function G(n, e) {
|
|
221
|
-
var o = 0;
|
|
222
|
-
if (!n || !n.parentNode)
|
|
223
|
-
return -1;
|
|
224
|
-
for (; n = n.previousElementSibling; )
|
|
225
|
-
n.nodeName.toUpperCase() !== "TEMPLATE" && n !== p.clone && (!e || Ye(n, e)) && o++;
|
|
226
|
-
return o;
|
|
227
|
-
}
|
|
228
|
-
function bt(n) {
|
|
229
|
-
var e = 0, o = 0, t = V();
|
|
230
|
-
if (n)
|
|
231
|
-
do {
|
|
232
|
-
var i = me(n), r = i.a, a = i.d;
|
|
233
|
-
e += n.scrollLeft * r, o += n.scrollTop * a;
|
|
234
|
-
} while (n !== t && (n = n.parentNode));
|
|
235
|
-
return [e, o];
|
|
236
|
-
}
|
|
237
|
-
function oo(n, e) {
|
|
238
|
-
for (var o in n)
|
|
239
|
-
if (n.hasOwnProperty(o)) {
|
|
240
|
-
for (var t in e)
|
|
241
|
-
if (e.hasOwnProperty(t) && e[t] === n[o][t]) return Number(o);
|
|
242
|
-
}
|
|
243
|
-
return -1;
|
|
244
|
-
}
|
|
245
|
-
function le(n, e) {
|
|
246
|
-
if (!n || !n.getBoundingClientRect) return V();
|
|
247
|
-
var o = n, t = !1;
|
|
248
|
-
do
|
|
249
|
-
if (o.clientWidth < o.scrollWidth || o.clientHeight < o.scrollHeight) {
|
|
250
|
-
var i = h(o);
|
|
251
|
-
if (o.clientWidth < o.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || o.clientHeight < o.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
252
|
-
if (!o.getBoundingClientRect || o === document.body) return V();
|
|
253
|
-
if (t || e) return o;
|
|
254
|
-
t = !0;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
while (o = o.parentNode);
|
|
258
|
-
return V();
|
|
259
|
-
}
|
|
260
|
-
function no(n, e) {
|
|
261
|
-
if (n && e)
|
|
262
|
-
for (var o in e)
|
|
263
|
-
e.hasOwnProperty(o) && (n[o] = e[o]);
|
|
264
|
-
return n;
|
|
265
|
-
}
|
|
266
|
-
function qe(n, e) {
|
|
267
|
-
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);
|
|
268
|
-
}
|
|
269
|
-
var De;
|
|
270
|
-
function Lt(n, e) {
|
|
271
|
-
return function() {
|
|
272
|
-
if (!De) {
|
|
273
|
-
var o = arguments, t = this;
|
|
274
|
-
o.length === 1 ? n.call(t, o[0]) : n.apply(t, o), De = setTimeout(function() {
|
|
275
|
-
De = void 0;
|
|
276
|
-
}, e);
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
|
-
}
|
|
280
|
-
function io() {
|
|
281
|
-
clearTimeout(De), De = void 0;
|
|
282
|
-
}
|
|
283
|
-
function Rt(n, e, o) {
|
|
284
|
-
n.scrollLeft += e, n.scrollTop += o;
|
|
285
|
-
}
|
|
286
|
-
function Ft(n) {
|
|
287
|
-
var e = window.Polymer, o = window.jQuery || window.Zepto;
|
|
288
|
-
return e && e.dom ? e.dom(n).cloneNode(!0) : o ? o(n).clone(!0)[0] : n.cloneNode(!0);
|
|
289
|
-
}
|
|
290
|
-
function Bt(n, e, o) {
|
|
291
|
-
var t = {};
|
|
292
|
-
return Array.from(n.children).forEach(function(i) {
|
|
293
|
-
var r, a, l, s;
|
|
294
|
-
if (!(!j(i, e.draggable, n, !1) || i.animated || i === o)) {
|
|
295
|
-
var u = x(i);
|
|
296
|
-
t.left = Math.min((r = t.left) !== null && r !== void 0 ? r : 1 / 0, u.left), t.top = Math.min((a = t.top) !== null && a !== void 0 ? a : 1 / 0, u.top), t.right = Math.max((l = t.right) !== null && l !== void 0 ? l : -1 / 0, u.right), t.bottom = Math.max((s = t.bottom) !== null && s !== void 0 ? s : -1 / 0, u.bottom);
|
|
297
|
-
}
|
|
298
|
-
}), t.width = t.right - t.left, t.height = t.bottom - t.top, t.x = t.left, t.y = t.top, t;
|
|
299
|
-
}
|
|
300
|
-
var k = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
301
|
-
function ro() {
|
|
302
|
-
var n = [], e;
|
|
303
|
-
return {
|
|
304
|
-
captureAnimationState: function() {
|
|
305
|
-
if (n = [], !!this.options.animation) {
|
|
306
|
-
var t = [].slice.call(this.el.children);
|
|
307
|
-
t.forEach(function(i) {
|
|
308
|
-
if (!(h(i, "display") === "none" || i === p.ghost)) {
|
|
309
|
-
n.push({
|
|
310
|
-
target: i,
|
|
311
|
-
rect: x(i)
|
|
312
|
-
});
|
|
313
|
-
var r = K({}, n[n.length - 1].rect);
|
|
314
|
-
if (i.thisAnimationDuration) {
|
|
315
|
-
var a = me(i, !0);
|
|
316
|
-
a && (r.top -= a.f, r.left -= a.e);
|
|
317
|
-
}
|
|
318
|
-
i.fromRect = r;
|
|
319
|
-
}
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
addAnimationState: function(t) {
|
|
324
|
-
n.push(t);
|
|
325
|
-
},
|
|
326
|
-
removeAnimationState: function(t) {
|
|
327
|
-
n.splice(oo(n, {
|
|
328
|
-
target: t
|
|
329
|
-
}), 1);
|
|
330
|
-
},
|
|
331
|
-
animateAll: function(t) {
|
|
332
|
-
var i = this;
|
|
333
|
-
if (!this.options.animation) {
|
|
334
|
-
clearTimeout(e), typeof t == "function" && t();
|
|
335
|
-
return;
|
|
336
|
-
}
|
|
337
|
-
var r = !1, a = 0;
|
|
338
|
-
n.forEach(function(l) {
|
|
339
|
-
var s = 0, u = l.target, f = u.fromRect, c = x(u), v = u.prevFromRect, D = u.prevToRect, b = l.rect, E = me(u, !0);
|
|
340
|
-
E && (c.top -= E.f, c.left -= E.e), u.toRect = c, u.thisAnimationDuration && qe(v, c) && !qe(f, c) && // Make sure animatingRect is on line between toRect & fromRect
|
|
341
|
-
(b.top - c.top) / (b.left - c.left) === (f.top - c.top) / (f.left - c.left) && (s = lo(b, v, D, i.options)), qe(c, f) || (u.prevFromRect = f, u.prevToRect = c, s || (s = i.options.animation), i.animate(u, b, c, s)), s && (r = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
342
|
-
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
343
|
-
}, s), u.thisAnimationDuration = s);
|
|
344
|
-
}), clearTimeout(e), r ? e = setTimeout(function() {
|
|
345
|
-
typeof t == "function" && t();
|
|
346
|
-
}, a) : typeof t == "function" && t(), n = [];
|
|
347
|
-
},
|
|
348
|
-
animate: function(t, i, r, a) {
|
|
349
|
-
if (a) {
|
|
350
|
-
h(t, "transition", ""), h(t, "transform", "");
|
|
351
|
-
var l = me(this.el), s = l && l.a, u = l && l.d, f = (i.left - r.left) / (s || 1), c = (i.top - r.top) / (u || 1);
|
|
352
|
-
t.animatingX = !!f, t.animatingY = !!c, h(t, "transform", "translate3d(" + f + "px," + c + "px,0)"), this.forRepaintDummy = ao(t), h(t, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), h(t, "transform", "translate3d(0,0,0)"), typeof t.animated == "number" && clearTimeout(t.animated), t.animated = setTimeout(function() {
|
|
353
|
-
h(t, "transition", ""), h(t, "transform", ""), t.animated = !1, t.animatingX = !1, t.animatingY = !1;
|
|
354
|
-
}, a);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
|
-
}
|
|
359
|
-
function ao(n) {
|
|
360
|
-
return n.offsetWidth;
|
|
361
|
-
}
|
|
362
|
-
function lo(n, e, o, t) {
|
|
363
|
-
return Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) / Math.sqrt(Math.pow(e.top - o.top, 2) + Math.pow(e.left - o.left, 2)) * t.animation;
|
|
364
|
-
}
|
|
365
|
-
var ce = [], Ve = {
|
|
366
|
-
initializeByDefault: !0
|
|
367
|
-
}, Me = {
|
|
368
|
-
mount: function(e) {
|
|
369
|
-
for (var o in Ve)
|
|
370
|
-
Ve.hasOwnProperty(o) && !(o in e) && (e[o] = Ve[o]);
|
|
371
|
-
ce.forEach(function(t) {
|
|
372
|
-
if (t.pluginName === e.pluginName)
|
|
373
|
-
throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
|
|
374
|
-
}), ce.push(e);
|
|
375
|
-
},
|
|
376
|
-
pluginEvent: function(e, o, t) {
|
|
377
|
-
var i = this;
|
|
378
|
-
this.eventCanceled = !1, t.cancel = function() {
|
|
379
|
-
i.eventCanceled = !0;
|
|
380
|
-
};
|
|
381
|
-
var r = e + "Global";
|
|
382
|
-
ce.forEach(function(a) {
|
|
383
|
-
o[a.pluginName] && (o[a.pluginName][r] && o[a.pluginName][r](K({
|
|
384
|
-
sortable: o
|
|
385
|
-
}, t)), o.options[a.pluginName] && o[a.pluginName][e] && o[a.pluginName][e](K({
|
|
386
|
-
sortable: o
|
|
387
|
-
}, t)));
|
|
388
|
-
});
|
|
389
|
-
},
|
|
390
|
-
initializePlugins: function(e, o, t, i) {
|
|
391
|
-
ce.forEach(function(l) {
|
|
392
|
-
var s = l.pluginName;
|
|
393
|
-
if (!(!e.options[s] && !l.initializeByDefault)) {
|
|
394
|
-
var u = new l(e, o, e.options);
|
|
395
|
-
u.sortable = e, u.options = e.options, e[s] = u, te(t, u.defaults);
|
|
396
|
-
}
|
|
397
|
-
});
|
|
398
|
-
for (var r in e.options)
|
|
399
|
-
if (e.options.hasOwnProperty(r)) {
|
|
400
|
-
var a = this.modifyOption(e, r, e.options[r]);
|
|
401
|
-
typeof a < "u" && (e.options[r] = a);
|
|
402
|
-
}
|
|
403
|
-
},
|
|
404
|
-
getEventProperties: function(e, o) {
|
|
405
|
-
var t = {};
|
|
406
|
-
return ce.forEach(function(i) {
|
|
407
|
-
typeof i.eventProperties == "function" && te(t, i.eventProperties.call(o[i.pluginName], e));
|
|
408
|
-
}), t;
|
|
409
|
-
},
|
|
410
|
-
modifyOption: function(e, o, t) {
|
|
411
|
-
var i;
|
|
412
|
-
return ce.forEach(function(r) {
|
|
413
|
-
e[r.pluginName] && r.optionListeners && typeof r.optionListeners[o] == "function" && (i = r.optionListeners[o].call(e[r.pluginName], t));
|
|
414
|
-
}), i;
|
|
415
|
-
}
|
|
416
|
-
};
|
|
417
|
-
function so(n) {
|
|
418
|
-
var e = n.sortable, o = n.rootEl, t = n.name, i = n.targetEl, r = n.cloneEl, a = n.toEl, l = n.fromEl, s = n.oldIndex, u = n.newIndex, f = n.oldDraggableIndex, c = n.newDraggableIndex, v = n.originalEvent, D = n.putSortable, b = n.extraEventProperties;
|
|
419
|
-
if (e = e || o && o[k], !!e) {
|
|
420
|
-
var E, M = e.options, z = "on" + t.charAt(0).toUpperCase() + t.substr(1);
|
|
421
|
-
window.CustomEvent && !oe && !Ce ? E = new CustomEvent(t, {
|
|
422
|
-
bubbles: !0,
|
|
423
|
-
cancelable: !0
|
|
424
|
-
}) : (E = document.createEvent("Event"), E.initEvent(t, !0, !0)), E.to = a || o, E.from = l || o, E.item = i || o, E.clone = r, E.oldIndex = s, E.newIndex = u, E.oldDraggableIndex = f, E.newDraggableIndex = c, E.originalEvent = v, E.pullMode = D ? D.lastPutMode : void 0;
|
|
425
|
-
var A = K(K({}, b), Me.getEventProperties(t, e));
|
|
426
|
-
for (var X in A)
|
|
427
|
-
E[X] = A[X];
|
|
428
|
-
o && o.dispatchEvent(E), M[z] && M[z].call(e, E);
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
var uo = ["evt"], H = function(e, o) {
|
|
432
|
-
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = t.evt, r = eo(t, uo);
|
|
433
|
-
Me.pluginEvent.bind(p)(e, o, K({
|
|
434
|
-
dragEl: d,
|
|
435
|
-
parentEl: C,
|
|
436
|
-
ghostEl: g,
|
|
437
|
-
rootEl: S,
|
|
438
|
-
nextEl: de,
|
|
439
|
-
lastDownEl: Be,
|
|
440
|
-
cloneEl: I,
|
|
441
|
-
cloneHidden: re,
|
|
442
|
-
dragStarted: _e,
|
|
443
|
-
putSortable: N,
|
|
444
|
-
activeSortable: p.active,
|
|
445
|
-
originalEvent: i,
|
|
446
|
-
oldIndex: pe,
|
|
447
|
-
oldDraggableIndex: Te,
|
|
448
|
-
newIndex: $,
|
|
449
|
-
newDraggableIndex: ie,
|
|
450
|
-
hideGhostForTarget: Yt,
|
|
451
|
-
unhideGhostForTarget: $t,
|
|
452
|
-
cloneNowHidden: function() {
|
|
453
|
-
re = !0;
|
|
454
|
-
},
|
|
455
|
-
cloneNowShown: function() {
|
|
456
|
-
re = !1;
|
|
457
|
-
},
|
|
458
|
-
dispatchSortableEvent: function(l) {
|
|
459
|
-
F({
|
|
460
|
-
sortable: o,
|
|
461
|
-
name: l,
|
|
462
|
-
originalEvent: i
|
|
463
|
-
});
|
|
464
|
-
}
|
|
465
|
-
}, r));
|
|
466
|
-
};
|
|
467
|
-
function F(n) {
|
|
468
|
-
so(K({
|
|
469
|
-
putSortable: N,
|
|
470
|
-
cloneEl: I,
|
|
471
|
-
targetEl: d,
|
|
472
|
-
rootEl: S,
|
|
473
|
-
oldIndex: pe,
|
|
474
|
-
oldDraggableIndex: Te,
|
|
475
|
-
newIndex: $,
|
|
476
|
-
newDraggableIndex: ie
|
|
477
|
-
}, n));
|
|
478
|
-
}
|
|
479
|
-
var d, C, g, S, de, Be, I, re, pe, $, Te, ie, xe, N, he = !1, $e = !1, Ue = [], se, W, Ke, Ze, _t, wt, _e, fe, Se, Ie = !1, Ae = !1, He, L, Je = [], it = !1, Ge = [], je = typeof document < "u", Ne = st, yt = Ce || oe ? "cssFloat" : "float", co = je && !Ot && !st && "draggable" in document.createElement("div"), Ht = (function() {
|
|
480
|
-
if (je) {
|
|
481
|
-
if (oe)
|
|
482
|
-
return !1;
|
|
483
|
-
var n = document.createElement("x");
|
|
484
|
-
return n.style.cssText = "pointer-events:auto", n.style.pointerEvents === "auto";
|
|
485
|
-
}
|
|
486
|
-
})(), kt = function(e, o) {
|
|
487
|
-
var t = h(e), i = parseInt(t.width) - parseInt(t.paddingLeft) - parseInt(t.paddingRight) - parseInt(t.borderLeftWidth) - parseInt(t.borderRightWidth), r = ge(e, 0, o), a = ge(e, 1, o), l = r && h(r), s = a && h(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + x(r).width, f = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + x(a).width;
|
|
488
|
-
if (t.display === "flex")
|
|
489
|
-
return t.flexDirection === "column" || t.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
490
|
-
if (t.display === "grid")
|
|
491
|
-
return t.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
492
|
-
if (r && l.float && l.float !== "none") {
|
|
493
|
-
var c = l.float === "left" ? "left" : "right";
|
|
494
|
-
return a && (s.clear === "both" || s.clear === c) ? "vertical" : "horizontal";
|
|
495
|
-
}
|
|
496
|
-
return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && t[yt] === "none" || a && t[yt] === "none" && u + f > i) ? "vertical" : "horizontal";
|
|
497
|
-
}, fo = function(e, o, t) {
|
|
498
|
-
var i = t ? e.left : e.top, r = t ? e.right : e.bottom, a = t ? e.width : e.height, l = t ? o.left : o.top, s = t ? o.right : o.bottom, u = t ? o.width : o.height;
|
|
499
|
-
return i === l || r === s || i + a / 2 === l + u / 2;
|
|
500
|
-
}, ho = function(e, o) {
|
|
501
|
-
var t;
|
|
502
|
-
return Ue.some(function(i) {
|
|
503
|
-
var r = i[k].options.emptyInsertThreshold;
|
|
504
|
-
if (!(!r || ut(i))) {
|
|
505
|
-
var a = x(i), l = e >= a.left - r && e <= a.right + r, s = o >= a.top - r && o <= a.bottom + r;
|
|
506
|
-
if (l && s)
|
|
507
|
-
return t = i;
|
|
508
|
-
}
|
|
509
|
-
}), t;
|
|
510
|
-
}, Xt = function(e) {
|
|
511
|
-
function o(r, a) {
|
|
512
|
-
return function(l, s, u, f) {
|
|
513
|
-
var c = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
|
|
514
|
-
if (r == null && (a || c))
|
|
515
|
-
return !0;
|
|
516
|
-
if (r == null || r === !1)
|
|
517
|
-
return !1;
|
|
518
|
-
if (a && r === "clone")
|
|
519
|
-
return r;
|
|
520
|
-
if (typeof r == "function")
|
|
521
|
-
return o(r(l, s, u, f), a)(l, s, u, f);
|
|
522
|
-
var v = (a ? l : s).options.group.name;
|
|
523
|
-
return r === !0 || typeof r == "string" && r === v || r.join && r.indexOf(v) > -1;
|
|
524
|
-
};
|
|
525
|
-
}
|
|
526
|
-
var t = {}, i = e.group;
|
|
527
|
-
(!i || Fe(i) != "object") && (i = {
|
|
528
|
-
name: i
|
|
529
|
-
}), t.name = i.name, t.checkPull = o(i.pull, !0), t.checkPut = o(i.put), t.revertClone = i.revertClone, e.group = t;
|
|
530
|
-
}, Yt = function() {
|
|
531
|
-
!Ht && g && h(g, "display", "none");
|
|
532
|
-
}, $t = function() {
|
|
533
|
-
!Ht && g && h(g, "display", "");
|
|
534
|
-
};
|
|
535
|
-
je && !Ot && document.addEventListener("click", function(n) {
|
|
536
|
-
if ($e)
|
|
537
|
-
return n.preventDefault(), n.stopPropagation && n.stopPropagation(), n.stopImmediatePropagation && n.stopImmediatePropagation(), $e = !1, !1;
|
|
538
|
-
}, !0);
|
|
539
|
-
var ue = function(e) {
|
|
540
|
-
if (d) {
|
|
541
|
-
e = e.touches ? e.touches[0] : e;
|
|
542
|
-
var o = ho(e.clientX, e.clientY);
|
|
543
|
-
if (o) {
|
|
544
|
-
var t = {};
|
|
545
|
-
for (var i in e)
|
|
546
|
-
e.hasOwnProperty(i) && (t[i] = e[i]);
|
|
547
|
-
t.target = t.rootEl = o, t.preventDefault = void 0, t.stopPropagation = void 0, o[k]._onDragOver(t);
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
}, po = function(e) {
|
|
551
|
-
d && d.parentNode[k]._isOutsideThisEl(e.target);
|
|
552
|
-
};
|
|
553
|
-
function p(n, e) {
|
|
554
|
-
if (!(n && n.nodeType && n.nodeType === 1))
|
|
555
|
-
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));
|
|
556
|
-
this.el = n, this.options = e = te({}, e), n[k] = this;
|
|
557
|
-
var o = {
|
|
558
|
-
group: null,
|
|
559
|
-
sort: !0,
|
|
560
|
-
disabled: !1,
|
|
561
|
-
store: null,
|
|
562
|
-
handle: null,
|
|
563
|
-
draggable: /^[uo]l$/i.test(n.nodeName) ? ">li" : ">*",
|
|
564
|
-
swapThreshold: 1,
|
|
565
|
-
// percentage; 0 <= x <= 1
|
|
566
|
-
invertSwap: !1,
|
|
567
|
-
// invert always
|
|
568
|
-
invertedSwapThreshold: null,
|
|
569
|
-
// will be set to same as swapThreshold if default
|
|
570
|
-
removeCloneOnHide: !0,
|
|
571
|
-
direction: function() {
|
|
572
|
-
return kt(n, this.options);
|
|
573
|
-
},
|
|
574
|
-
ghostClass: "sortable-ghost",
|
|
575
|
-
chosenClass: "sortable-chosen",
|
|
576
|
-
dragClass: "sortable-drag",
|
|
577
|
-
ignore: "a, img",
|
|
578
|
-
filter: null,
|
|
579
|
-
preventOnFilter: !0,
|
|
580
|
-
animation: 0,
|
|
581
|
-
easing: null,
|
|
582
|
-
setData: function(a, l) {
|
|
583
|
-
a.setData("Text", l.textContent);
|
|
584
|
-
},
|
|
585
|
-
dropBubble: !1,
|
|
586
|
-
dragoverBubble: !1,
|
|
587
|
-
dataIdAttr: "data-id",
|
|
588
|
-
delay: 0,
|
|
589
|
-
delayOnTouchOnly: !1,
|
|
590
|
-
touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
|
|
591
|
-
forceFallback: !1,
|
|
592
|
-
fallbackClass: "sortable-fallback",
|
|
593
|
-
fallbackOnBody: !1,
|
|
594
|
-
fallbackTolerance: 0,
|
|
595
|
-
fallbackOffset: {
|
|
596
|
-
x: 0,
|
|
597
|
-
y: 0
|
|
598
|
-
},
|
|
599
|
-
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
600
|
-
supportPointer: p.supportPointer !== !1 && "PointerEvent" in window && (!Ee || st),
|
|
601
|
-
emptyInsertThreshold: 5
|
|
602
|
-
};
|
|
603
|
-
Me.initializePlugins(this, n, o);
|
|
604
|
-
for (var t in o)
|
|
605
|
-
!(t in e) && (e[t] = o[t]);
|
|
606
|
-
Xt(e);
|
|
607
|
-
for (var i in this)
|
|
608
|
-
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
609
|
-
this.nativeDraggable = e.forceFallback ? !1 : co, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? y(n, "pointerdown", this._onTapStart) : (y(n, "mousedown", this._onTapStart), y(n, "touchstart", this._onTapStart)), this.nativeDraggable && (y(n, "dragover", this), y(n, "dragenter", this)), Ue.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), te(this, ro());
|
|
610
|
-
}
|
|
611
|
-
p.prototype = /** @lends Sortable.prototype */
|
|
612
|
-
{
|
|
613
|
-
constructor: p,
|
|
614
|
-
_isOutsideThisEl: function(e) {
|
|
615
|
-
!this.el.contains(e) && e !== this.el && (fe = null);
|
|
616
|
-
},
|
|
617
|
-
_getDirection: function(e, o) {
|
|
618
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, o, d) : this.options.direction;
|
|
619
|
-
},
|
|
620
|
-
_onTapStart: function(e) {
|
|
621
|
-
if (e.cancelable) {
|
|
622
|
-
var o = this, t = 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, f = i.filter;
|
|
623
|
-
if (Eo(t), !d && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Ee && s && s.tagName.toUpperCase() === "SELECT") && (s = j(s, i.draggable, t, !1), !(s && s.animated) && Be !== s)) {
|
|
624
|
-
if (pe = G(s), Te = G(s, i.draggable), typeof f == "function") {
|
|
625
|
-
if (f.call(this, e, s, this)) {
|
|
626
|
-
F({
|
|
627
|
-
sortable: o,
|
|
628
|
-
rootEl: u,
|
|
629
|
-
name: "filter",
|
|
630
|
-
targetEl: s,
|
|
631
|
-
toEl: t,
|
|
632
|
-
fromEl: t
|
|
633
|
-
}), H("filter", o, {
|
|
634
|
-
evt: e
|
|
635
|
-
}), r && e.preventDefault();
|
|
636
|
-
return;
|
|
637
|
-
}
|
|
638
|
-
} else if (f && (f = f.split(",").some(function(c) {
|
|
639
|
-
if (c = j(u, c.trim(), t, !1), c)
|
|
640
|
-
return F({
|
|
641
|
-
sortable: o,
|
|
642
|
-
rootEl: c,
|
|
643
|
-
name: "filter",
|
|
644
|
-
targetEl: s,
|
|
645
|
-
fromEl: t,
|
|
646
|
-
toEl: t
|
|
647
|
-
}), H("filter", o, {
|
|
648
|
-
evt: e
|
|
649
|
-
}), !0;
|
|
650
|
-
}), f)) {
|
|
651
|
-
r && e.preventDefault();
|
|
652
|
-
return;
|
|
653
|
-
}
|
|
654
|
-
i.handle && !j(u, i.handle, t, !1) || this._prepareDragStart(e, l, s);
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
},
|
|
658
|
-
_prepareDragStart: function(e, o, t) {
|
|
659
|
-
var i = this, r = i.el, a = i.options, l = r.ownerDocument, s;
|
|
660
|
-
if (t && !d && t.parentNode === r) {
|
|
661
|
-
var u = x(t);
|
|
662
|
-
if (S = r, d = t, C = d.parentNode, de = d.nextSibling, Be = t, xe = a.group, p.dragged = d, se = {
|
|
663
|
-
target: d,
|
|
664
|
-
clientX: (o || e).clientX,
|
|
665
|
-
clientY: (o || e).clientY
|
|
666
|
-
}, _t = se.clientX - u.left, wt = se.clientY - u.top, this._lastX = (o || e).clientX, this._lastY = (o || e).clientY, d.style["will-change"] = "all", s = function() {
|
|
667
|
-
if (H("delayEnded", i, {
|
|
668
|
-
evt: e
|
|
669
|
-
}), p.eventCanceled) {
|
|
670
|
-
i._onDrop();
|
|
671
|
-
return;
|
|
672
|
-
}
|
|
673
|
-
i._disableDelayedDragEvents(), !mt && i.nativeDraggable && (d.draggable = !0), i._triggerDragStart(e, o), F({
|
|
674
|
-
sortable: i,
|
|
675
|
-
name: "choose",
|
|
676
|
-
originalEvent: e
|
|
677
|
-
}), Y(d, a.chosenClass, !0);
|
|
678
|
-
}, a.ignore.split(",").forEach(function(f) {
|
|
679
|
-
Nt(d, f.trim(), Qe);
|
|
680
|
-
}), y(l, "dragover", ue), y(l, "mousemove", ue), y(l, "touchmove", ue), a.supportPointer ? (y(l, "pointerup", i._onDrop), !this.nativeDraggable && y(l, "pointercancel", i._onDrop)) : (y(l, "mouseup", i._onDrop), y(l, "touchend", i._onDrop), y(l, "touchcancel", i._onDrop)), mt && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), H("delayStart", this, {
|
|
681
|
-
evt: e
|
|
682
|
-
}), a.delay && (!a.delayOnTouchOnly || o) && (!this.nativeDraggable || !(Ce || oe))) {
|
|
683
|
-
if (p.eventCanceled) {
|
|
684
|
-
this._onDrop();
|
|
685
|
-
return;
|
|
686
|
-
}
|
|
687
|
-
a.supportPointer ? (y(l, "pointerup", i._disableDelayedDrag), y(l, "pointercancel", i._disableDelayedDrag)) : (y(l, "mouseup", i._disableDelayedDrag), y(l, "touchend", i._disableDelayedDrag), y(l, "touchcancel", i._disableDelayedDrag)), y(l, "mousemove", i._delayedDragTouchMoveHandler), y(l, "touchmove", i._delayedDragTouchMoveHandler), a.supportPointer && y(l, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(s, a.delay);
|
|
688
|
-
} else
|
|
689
|
-
s();
|
|
690
|
-
}
|
|
691
|
-
},
|
|
692
|
-
_delayedDragTouchMoveHandler: function(e) {
|
|
693
|
-
var o = e.touches ? e.touches[0] : e;
|
|
694
|
-
Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
695
|
-
},
|
|
696
|
-
_disableDelayedDrag: function() {
|
|
697
|
-
d && Qe(d), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
698
|
-
},
|
|
699
|
-
_disableDelayedDragEvents: function() {
|
|
700
|
-
var e = this.el.ownerDocument;
|
|
701
|
-
w(e, "mouseup", this._disableDelayedDrag), w(e, "touchend", this._disableDelayedDrag), w(e, "touchcancel", this._disableDelayedDrag), w(e, "pointerup", this._disableDelayedDrag), w(e, "pointercancel", this._disableDelayedDrag), w(e, "mousemove", this._delayedDragTouchMoveHandler), w(e, "touchmove", this._delayedDragTouchMoveHandler), w(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
702
|
-
},
|
|
703
|
-
_triggerDragStart: function(e, o) {
|
|
704
|
-
o = o || e.pointerType == "touch" && e, !this.nativeDraggable || o ? this.options.supportPointer ? y(document, "pointermove", this._onTouchMove) : o ? y(document, "touchmove", this._onTouchMove) : y(document, "mousemove", this._onTouchMove) : (y(d, "dragend", this), y(S, "dragstart", this._onDragStart));
|
|
705
|
-
try {
|
|
706
|
-
document.selection ? ke(function() {
|
|
707
|
-
document.selection.empty();
|
|
708
|
-
}) : window.getSelection().removeAllRanges();
|
|
709
|
-
} catch {
|
|
710
|
-
}
|
|
711
|
-
},
|
|
712
|
-
_dragStarted: function(e, o) {
|
|
713
|
-
if (he = !1, S && d) {
|
|
714
|
-
H("dragStarted", this, {
|
|
715
|
-
evt: o
|
|
716
|
-
}), this.nativeDraggable && y(document, "dragover", po);
|
|
717
|
-
var t = this.options;
|
|
718
|
-
!e && Y(d, t.dragClass, !1), Y(d, t.ghostClass, !0), p.active = this, e && this._appendGhost(), F({
|
|
719
|
-
sortable: this,
|
|
720
|
-
name: "start",
|
|
721
|
-
originalEvent: o
|
|
722
|
-
});
|
|
723
|
-
} else
|
|
724
|
-
this._nulling();
|
|
725
|
-
},
|
|
726
|
-
_emulateDragOver: function() {
|
|
727
|
-
if (W) {
|
|
728
|
-
this._lastX = W.clientX, this._lastY = W.clientY, Yt();
|
|
729
|
-
for (var e = document.elementFromPoint(W.clientX, W.clientY), o = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(W.clientX, W.clientY), e !== o); )
|
|
730
|
-
o = e;
|
|
731
|
-
if (d.parentNode[k]._isOutsideThisEl(e), o)
|
|
732
|
-
do {
|
|
733
|
-
if (o[k]) {
|
|
734
|
-
var t = void 0;
|
|
735
|
-
if (t = o[k]._onDragOver({
|
|
736
|
-
clientX: W.clientX,
|
|
737
|
-
clientY: W.clientY,
|
|
738
|
-
target: e,
|
|
739
|
-
rootEl: o
|
|
740
|
-
}), t && !this.options.dragoverBubble)
|
|
741
|
-
break;
|
|
742
|
-
}
|
|
743
|
-
e = o;
|
|
744
|
-
} while (o = At(o));
|
|
745
|
-
$t();
|
|
746
|
-
}
|
|
747
|
-
},
|
|
748
|
-
_onTouchMove: function(e) {
|
|
749
|
-
if (se) {
|
|
750
|
-
var o = this.options, t = o.fallbackTolerance, i = o.fallbackOffset, r = e.touches ? e.touches[0] : e, a = g && me(g, !0), l = g && a && a.a, s = g && a && a.d, u = Ne && L && bt(L), f = (r.clientX - se.clientX + i.x) / (l || 1) + (u ? u[0] - Je[0] : 0) / (l || 1), c = (r.clientY - se.clientY + i.y) / (s || 1) + (u ? u[1] - Je[1] : 0) / (s || 1);
|
|
751
|
-
if (!p.active && !he) {
|
|
752
|
-
if (t && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < t)
|
|
753
|
-
return;
|
|
754
|
-
this._onDragStart(e, !0);
|
|
755
|
-
}
|
|
756
|
-
if (g) {
|
|
757
|
-
a ? (a.e += f - (Ke || 0), a.f += c - (Ze || 0)) : a = {
|
|
758
|
-
a: 1,
|
|
759
|
-
b: 0,
|
|
760
|
-
c: 0,
|
|
761
|
-
d: 1,
|
|
762
|
-
e: f,
|
|
763
|
-
f: c
|
|
764
|
-
};
|
|
765
|
-
var v = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
766
|
-
h(g, "webkitTransform", v), h(g, "mozTransform", v), h(g, "msTransform", v), h(g, "transform", v), Ke = f, Ze = c, W = r;
|
|
767
|
-
}
|
|
768
|
-
e.cancelable && e.preventDefault();
|
|
769
|
-
}
|
|
770
|
-
},
|
|
771
|
-
_appendGhost: function() {
|
|
772
|
-
if (!g) {
|
|
773
|
-
var e = this.options.fallbackOnBody ? document.body : S, o = x(d, !0, Ne, !0, e), t = this.options;
|
|
774
|
-
if (Ne) {
|
|
775
|
-
for (L = e; h(L, "position") === "static" && h(L, "transform") === "none" && L !== document; )
|
|
776
|
-
L = L.parentNode;
|
|
777
|
-
L !== document.body && L !== document.documentElement ? (L === document && (L = V()), o.top += L.scrollTop, o.left += L.scrollLeft) : L = V(), Je = bt(L);
|
|
778
|
-
}
|
|
779
|
-
g = d.cloneNode(!0), Y(g, t.ghostClass, !1), Y(g, t.fallbackClass, !0), Y(g, t.dragClass, !0), h(g, "transition", ""), h(g, "transform", ""), h(g, "box-sizing", "border-box"), h(g, "margin", 0), h(g, "top", o.top), h(g, "left", o.left), h(g, "width", o.width), h(g, "height", o.height), h(g, "opacity", "0.8"), h(g, "position", Ne ? "absolute" : "fixed"), h(g, "zIndex", "100000"), h(g, "pointerEvents", "none"), p.ghost = g, e.appendChild(g), h(g, "transform-origin", _t / parseInt(g.style.width) * 100 + "% " + wt / parseInt(g.style.height) * 100 + "%");
|
|
780
|
-
}
|
|
781
|
-
},
|
|
782
|
-
_onDragStart: function(e, o) {
|
|
783
|
-
var t = this, i = e.dataTransfer, r = t.options;
|
|
784
|
-
if (H("dragStart", this, {
|
|
785
|
-
evt: e
|
|
786
|
-
}), p.eventCanceled) {
|
|
787
|
-
this._onDrop();
|
|
788
|
-
return;
|
|
789
|
-
}
|
|
790
|
-
H("setupClone", this), p.eventCanceled || (I = Ft(d), I.removeAttribute("id"), I.draggable = !1, I.style["will-change"] = "", this._hideClone(), Y(I, this.options.chosenClass, !1), p.clone = I), t.cloneId = ke(function() {
|
|
791
|
-
H("clone", t), !p.eventCanceled && (t.options.removeCloneOnHide || S.insertBefore(I, d), t._hideClone(), F({
|
|
792
|
-
sortable: t,
|
|
793
|
-
name: "clone"
|
|
794
|
-
}));
|
|
795
|
-
}), !o && Y(d, r.dragClass, !0), o ? ($e = !0, t._loopId = setInterval(t._emulateDragOver, 50)) : (w(document, "mouseup", t._onDrop), w(document, "touchend", t._onDrop), w(document, "touchcancel", t._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(t, i, d)), y(document, "drop", t), h(d, "transform", "translateZ(0)")), he = !0, t._dragStartId = ke(t._dragStarted.bind(t, o, e)), y(document, "selectstart", t), _e = !0, window.getSelection().removeAllRanges(), Ee && h(document.body, "user-select", "none");
|
|
796
|
-
},
|
|
797
|
-
// Returns true - if no further action is needed (either inserted or another condition)
|
|
798
|
-
_onDragOver: function(e) {
|
|
799
|
-
var o = this.el, t = e.target, i, r, a, l = this.options, s = l.group, u = p.active, f = xe === s, c = l.sort, v = N || u, D, b = this, E = !1;
|
|
800
|
-
if (it) return;
|
|
801
|
-
function M(be, Gt) {
|
|
802
|
-
H(be, b, K({
|
|
803
|
-
evt: e,
|
|
804
|
-
isOwner: f,
|
|
805
|
-
axis: D ? "vertical" : "horizontal",
|
|
806
|
-
revert: a,
|
|
807
|
-
dragRect: i,
|
|
808
|
-
targetRect: r,
|
|
809
|
-
canSort: c,
|
|
810
|
-
fromSortable: v,
|
|
811
|
-
target: t,
|
|
812
|
-
completed: A,
|
|
813
|
-
onMove: function(ft, zt) {
|
|
814
|
-
return Le(S, o, d, i, ft, x(ft), e, zt);
|
|
815
|
-
},
|
|
816
|
-
changed: X
|
|
817
|
-
}, Gt));
|
|
818
|
-
}
|
|
819
|
-
function z() {
|
|
820
|
-
M("dragOverAnimationCapture"), b.captureAnimationState(), b !== v && v.captureAnimationState();
|
|
821
|
-
}
|
|
822
|
-
function A(be) {
|
|
823
|
-
return M("dragOverCompleted", {
|
|
824
|
-
insertion: be
|
|
825
|
-
}), be && (f ? u._hideClone() : u._showClone(b), b !== v && (Y(d, N ? N.options.ghostClass : u.options.ghostClass, !1), Y(d, l.ghostClass, !0)), N !== b && b !== p.active ? N = b : b === p.active && N && (N = null), v === b && (b._ignoreWhileAnimating = t), b.animateAll(function() {
|
|
826
|
-
M("dragOverAnimationComplete"), b._ignoreWhileAnimating = null;
|
|
827
|
-
}), b !== v && (v.animateAll(), v._ignoreWhileAnimating = null)), (t === d && !d.animated || t === o && !t.animated) && (fe = null), !l.dragoverBubble && !e.rootEl && t !== document && (d.parentNode[k]._isOutsideThisEl(e.target), !be && ue(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), E = !0;
|
|
828
|
-
}
|
|
829
|
-
function X() {
|
|
830
|
-
$ = G(d), ie = G(d, l.draggable), F({
|
|
831
|
-
sortable: b,
|
|
832
|
-
name: "change",
|
|
833
|
-
toEl: o,
|
|
834
|
-
newIndex: $,
|
|
835
|
-
newDraggableIndex: ie,
|
|
836
|
-
originalEvent: e
|
|
837
|
-
});
|
|
838
|
-
}
|
|
839
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), t = j(t, l.draggable, o, !0), M("dragOver"), p.eventCanceled) return E;
|
|
840
|
-
if (d.contains(e.target) || t.animated && t.animatingX && t.animatingY || b._ignoreWhileAnimating === t)
|
|
841
|
-
return A(!1);
|
|
842
|
-
if ($e = !1, u && !l.disabled && (f ? c || (a = C !== S) : N === this || (this.lastPutMode = xe.checkPull(this, u, d, e)) && s.checkPut(this, u, d, e))) {
|
|
843
|
-
if (D = this._getDirection(e, t) === "vertical", i = x(d), M("dragOverValid"), p.eventCanceled) return E;
|
|
844
|
-
if (a)
|
|
845
|
-
return C = S, z(), this._hideClone(), M("revert"), p.eventCanceled || (de ? S.insertBefore(d, de) : S.appendChild(d)), A(!0);
|
|
846
|
-
var R = ut(o, l.draggable);
|
|
847
|
-
if (!R || bo(e, D, this) && !R.animated) {
|
|
848
|
-
if (R === d)
|
|
849
|
-
return A(!1);
|
|
850
|
-
if (R && o === e.target && (t = R), t && (r = x(t)), Le(S, o, d, i, t, r, e, !!t) !== !1)
|
|
851
|
-
return z(), R && R.nextSibling ? o.insertBefore(d, R.nextSibling) : o.appendChild(d), C = o, X(), A(!0);
|
|
852
|
-
} else if (R && vo(e, D, this)) {
|
|
853
|
-
var Z = ge(o, 0, l, !0);
|
|
854
|
-
if (Z === d)
|
|
855
|
-
return A(!1);
|
|
856
|
-
if (t = Z, r = x(t), Le(S, o, d, i, t, r, e, !1) !== !1)
|
|
857
|
-
return z(), o.insertBefore(d, Z), C = o, X(), A(!0);
|
|
858
|
-
} else if (t.parentNode === o) {
|
|
859
|
-
r = x(t);
|
|
860
|
-
var U = 0, J, m = d.parentNode !== o, _ = !fo(d.animated && d.toRect || i, t.animated && t.toRect || r, D), T = D ? "top" : "left", P = vt(t, "top", "top") || vt(d, "top", "top"), q = P ? P.scrollTop : void 0;
|
|
861
|
-
fe !== t && (J = r[T], Ie = !1, Ae = !_ && l.invertSwap || m), U = _o(e, t, r, D, _ ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Ae, fe === t);
|
|
862
|
-
var B;
|
|
863
|
-
if (U !== 0) {
|
|
864
|
-
var Q = G(d);
|
|
865
|
-
do
|
|
866
|
-
Q -= U, B = C.children[Q];
|
|
867
|
-
while (B && (h(B, "display") === "none" || B === g));
|
|
868
|
-
}
|
|
869
|
-
if (U === 0 || B === t)
|
|
870
|
-
return A(!1);
|
|
871
|
-
fe = t, Se = U;
|
|
872
|
-
var ve = t.nextElementSibling, ne = !1;
|
|
873
|
-
ne = U === 1;
|
|
874
|
-
var Pe = Le(S, o, d, i, t, r, e, ne);
|
|
875
|
-
if (Pe !== !1)
|
|
876
|
-
return (Pe === 1 || Pe === -1) && (ne = Pe === 1), it = !0, setTimeout(go, 30), z(), ne && !ve ? o.appendChild(d) : t.parentNode.insertBefore(d, ne ? ve : t), P && Rt(P, 0, q - P.scrollTop), C = d.parentNode, J !== void 0 && !Ae && (He = Math.abs(J - x(t)[T])), X(), A(!0);
|
|
877
|
-
}
|
|
878
|
-
if (o.contains(d))
|
|
879
|
-
return A(!1);
|
|
880
|
-
}
|
|
881
|
-
return !1;
|
|
882
|
-
},
|
|
883
|
-
_ignoreWhileAnimating: null,
|
|
884
|
-
_offMoveEvents: function() {
|
|
885
|
-
w(document, "mousemove", this._onTouchMove), w(document, "touchmove", this._onTouchMove), w(document, "pointermove", this._onTouchMove), w(document, "dragover", ue), w(document, "mousemove", ue), w(document, "touchmove", ue);
|
|
886
|
-
},
|
|
887
|
-
_offUpEvents: function() {
|
|
888
|
-
var e = this.el.ownerDocument;
|
|
889
|
-
w(e, "mouseup", this._onDrop), w(e, "touchend", this._onDrop), w(e, "pointerup", this._onDrop), w(e, "pointercancel", this._onDrop), w(e, "touchcancel", this._onDrop), w(document, "selectstart", this);
|
|
890
|
-
},
|
|
891
|
-
_onDrop: function(e) {
|
|
892
|
-
var o = this.el, t = this.options;
|
|
893
|
-
if ($ = G(d), ie = G(d, t.draggable), H("drop", this, {
|
|
894
|
-
evt: e
|
|
895
|
-
}), C = d && d.parentNode, $ = G(d), ie = G(d, t.draggable), p.eventCanceled) {
|
|
896
|
-
this._nulling();
|
|
897
|
-
return;
|
|
898
|
-
}
|
|
899
|
-
he = !1, Ae = !1, Ie = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), rt(this.cloneId), rt(this._dragStartId), this.nativeDraggable && (w(document, "drop", this), w(o, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ee && h(document.body, "user-select", ""), h(d, "transform", ""), e && (_e && (e.cancelable && e.preventDefault(), !t.dropBubble && e.stopPropagation()), g && g.parentNode && g.parentNode.removeChild(g), (S === C || N && N.lastPutMode !== "clone") && I && I.parentNode && I.parentNode.removeChild(I), d && (this.nativeDraggable && w(d, "dragend", this), Qe(d), d.style["will-change"] = "", _e && !he && Y(d, N ? N.options.ghostClass : this.options.ghostClass, !1), Y(d, this.options.chosenClass, !1), F({
|
|
900
|
-
sortable: this,
|
|
901
|
-
name: "unchoose",
|
|
902
|
-
toEl: C,
|
|
903
|
-
newIndex: null,
|
|
904
|
-
newDraggableIndex: null,
|
|
905
|
-
originalEvent: e
|
|
906
|
-
}), S !== C ? ($ >= 0 && (F({
|
|
907
|
-
rootEl: C,
|
|
908
|
-
name: "add",
|
|
909
|
-
toEl: C,
|
|
910
|
-
fromEl: S,
|
|
911
|
-
originalEvent: e
|
|
912
|
-
}), F({
|
|
913
|
-
sortable: this,
|
|
914
|
-
name: "remove",
|
|
915
|
-
toEl: C,
|
|
916
|
-
originalEvent: e
|
|
917
|
-
}), F({
|
|
918
|
-
rootEl: C,
|
|
919
|
-
name: "sort",
|
|
920
|
-
toEl: C,
|
|
921
|
-
fromEl: S,
|
|
922
|
-
originalEvent: e
|
|
923
|
-
}), F({
|
|
924
|
-
sortable: this,
|
|
925
|
-
name: "sort",
|
|
926
|
-
toEl: C,
|
|
927
|
-
originalEvent: e
|
|
928
|
-
})), N && N.save()) : $ !== pe && $ >= 0 && (F({
|
|
929
|
-
sortable: this,
|
|
930
|
-
name: "update",
|
|
931
|
-
toEl: C,
|
|
932
|
-
originalEvent: e
|
|
933
|
-
}), F({
|
|
934
|
-
sortable: this,
|
|
935
|
-
name: "sort",
|
|
936
|
-
toEl: C,
|
|
937
|
-
originalEvent: e
|
|
938
|
-
})), p.active && (($ == null || $ === -1) && ($ = pe, ie = Te), F({
|
|
939
|
-
sortable: this,
|
|
940
|
-
name: "end",
|
|
941
|
-
toEl: C,
|
|
942
|
-
originalEvent: e
|
|
943
|
-
}), this.save()))), this._nulling();
|
|
944
|
-
},
|
|
945
|
-
_nulling: function() {
|
|
946
|
-
H("nulling", this), S = d = C = g = de = I = Be = re = se = W = _e = $ = ie = pe = Te = fe = Se = N = xe = p.dragged = p.ghost = p.clone = p.active = null, Ge.forEach(function(e) {
|
|
947
|
-
e.checked = !0;
|
|
948
|
-
}), Ge.length = Ke = Ze = 0;
|
|
949
|
-
},
|
|
950
|
-
handleEvent: function(e) {
|
|
951
|
-
switch (e.type) {
|
|
952
|
-
case "drop":
|
|
953
|
-
case "dragend":
|
|
954
|
-
this._onDrop(e);
|
|
955
|
-
break;
|
|
956
|
-
case "dragenter":
|
|
957
|
-
case "dragover":
|
|
958
|
-
d && (this._onDragOver(e), mo(e));
|
|
959
|
-
break;
|
|
960
|
-
case "selectstart":
|
|
961
|
-
e.preventDefault();
|
|
962
|
-
break;
|
|
963
|
-
}
|
|
964
|
-
},
|
|
965
|
-
/**
|
|
966
|
-
* Serializes the item into an array of string.
|
|
967
|
-
* @returns {String[]}
|
|
968
|
-
*/
|
|
969
|
-
toArray: function() {
|
|
970
|
-
for (var e = [], o, t = this.el.children, i = 0, r = t.length, a = this.options; i < r; i++)
|
|
971
|
-
o = t[i], j(o, a.draggable, this.el, !1) && e.push(o.getAttribute(a.dataIdAttr) || yo(o));
|
|
972
|
-
return e;
|
|
973
|
-
},
|
|
974
|
-
/**
|
|
975
|
-
* Sorts the elements according to the array.
|
|
976
|
-
* @param {String[]} order order of the items
|
|
977
|
-
*/
|
|
978
|
-
sort: function(e, o) {
|
|
979
|
-
var t = {}, i = this.el;
|
|
980
|
-
this.toArray().forEach(function(r, a) {
|
|
981
|
-
var l = i.children[a];
|
|
982
|
-
j(l, this.options.draggable, i, !1) && (t[r] = l);
|
|
983
|
-
}, this), o && this.captureAnimationState(), e.forEach(function(r) {
|
|
984
|
-
t[r] && (i.removeChild(t[r]), i.appendChild(t[r]));
|
|
985
|
-
}), o && this.animateAll();
|
|
986
|
-
},
|
|
987
|
-
/**
|
|
988
|
-
* Save the current sorting
|
|
989
|
-
*/
|
|
990
|
-
save: function() {
|
|
991
|
-
var e = this.options.store;
|
|
992
|
-
e && e.set && e.set(this);
|
|
993
|
-
},
|
|
994
|
-
/**
|
|
995
|
-
* 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.
|
|
996
|
-
* @param {HTMLElement} el
|
|
997
|
-
* @param {String} [selector] default: `options.draggable`
|
|
998
|
-
* @returns {HTMLElement|null}
|
|
999
|
-
*/
|
|
1000
|
-
closest: function(e, o) {
|
|
1001
|
-
return j(e, o || this.options.draggable, this.el, !1);
|
|
1002
|
-
},
|
|
1003
|
-
/**
|
|
1004
|
-
* Set/get option
|
|
1005
|
-
* @param {string} name
|
|
1006
|
-
* @param {*} [value]
|
|
1007
|
-
* @returns {*}
|
|
1008
|
-
*/
|
|
1009
|
-
option: function(e, o) {
|
|
1010
|
-
var t = this.options;
|
|
1011
|
-
if (o === void 0)
|
|
1012
|
-
return t[e];
|
|
1013
|
-
var i = Me.modifyOption(this, e, o);
|
|
1014
|
-
typeof i < "u" ? t[e] = i : t[e] = o, e === "group" && Xt(t);
|
|
1015
|
-
},
|
|
1016
|
-
/**
|
|
1017
|
-
* Destroy
|
|
1018
|
-
*/
|
|
1019
|
-
destroy: function() {
|
|
1020
|
-
H("destroy", this);
|
|
1021
|
-
var e = this.el;
|
|
1022
|
-
e[k] = null, w(e, "mousedown", this._onTapStart), w(e, "touchstart", this._onTapStart), w(e, "pointerdown", this._onTapStart), this.nativeDraggable && (w(e, "dragover", this), w(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(o) {
|
|
1023
|
-
o.removeAttribute("draggable");
|
|
1024
|
-
}), this._onDrop(), this._disableDelayedDragEvents(), Ue.splice(Ue.indexOf(this.el), 1), this.el = e = null;
|
|
1025
|
-
},
|
|
1026
|
-
_hideClone: function() {
|
|
1027
|
-
if (!re) {
|
|
1028
|
-
if (H("hideClone", this), p.eventCanceled) return;
|
|
1029
|
-
h(I, "display", "none"), this.options.removeCloneOnHide && I.parentNode && I.parentNode.removeChild(I), re = !0;
|
|
1030
|
-
}
|
|
1031
|
-
},
|
|
1032
|
-
_showClone: function(e) {
|
|
1033
|
-
if (e.lastPutMode !== "clone") {
|
|
1034
|
-
this._hideClone();
|
|
1035
|
-
return;
|
|
1036
|
-
}
|
|
1037
|
-
if (re) {
|
|
1038
|
-
if (H("showClone", this), p.eventCanceled) return;
|
|
1039
|
-
d.parentNode == S && !this.options.group.revertClone ? S.insertBefore(I, d) : de ? S.insertBefore(I, de) : S.appendChild(I), this.options.group.revertClone && this.animate(d, I), h(I, "display", ""), re = !1;
|
|
1040
|
-
}
|
|
1041
|
-
}
|
|
1042
|
-
};
|
|
1043
|
-
function mo(n) {
|
|
1044
|
-
n.dataTransfer && (n.dataTransfer.dropEffect = "move"), n.cancelable && n.preventDefault();
|
|
1045
|
-
}
|
|
1046
|
-
function Le(n, e, o, t, i, r, a, l) {
|
|
1047
|
-
var s, u = n[k], f = u.options.onMove, c;
|
|
1048
|
-
return window.CustomEvent && !oe && !Ce ? s = new CustomEvent("move", {
|
|
1049
|
-
bubbles: !0,
|
|
1050
|
-
cancelable: !0
|
|
1051
|
-
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = n, s.dragged = o, s.draggedRect = t, s.related = i || e, s.relatedRect = r || x(e), s.willInsertAfter = l, s.originalEvent = a, n.dispatchEvent(s), f && (c = f.call(u, s, a)), c;
|
|
1052
|
-
}
|
|
1053
|
-
function Qe(n) {
|
|
1054
|
-
n.draggable = !1;
|
|
1055
|
-
}
|
|
1056
|
-
function go() {
|
|
1057
|
-
it = !1;
|
|
1058
|
-
}
|
|
1059
|
-
function vo(n, e, o) {
|
|
1060
|
-
var t = x(ge(o.el, 0, o.options, !0)), i = Bt(o.el, o.options, g), r = 10;
|
|
1061
|
-
return e ? n.clientX < i.left - r || n.clientY < t.top && n.clientX < t.right : n.clientY < i.top - r || n.clientY < t.bottom && n.clientX < t.left;
|
|
1062
|
-
}
|
|
1063
|
-
function bo(n, e, o) {
|
|
1064
|
-
var t = x(ut(o.el, o.options.draggable)), i = Bt(o.el, o.options, g), r = 10;
|
|
1065
|
-
return e ? n.clientX > i.right + r || n.clientY > t.bottom && n.clientX > t.left : n.clientY > i.bottom + r || n.clientX > t.right && n.clientY > t.top;
|
|
1066
|
-
}
|
|
1067
|
-
function _o(n, e, o, t, i, r, a, l) {
|
|
1068
|
-
var s = t ? n.clientY : n.clientX, u = t ? o.height : o.width, f = t ? o.top : o.left, c = t ? o.bottom : o.right, v = !1;
|
|
1069
|
-
if (!a) {
|
|
1070
|
-
if (l && He < u * i) {
|
|
1071
|
-
if (!Ie && (Se === 1 ? s > f + u * r / 2 : s < c - u * r / 2) && (Ie = !0), Ie)
|
|
1072
|
-
v = !0;
|
|
1073
|
-
else if (Se === 1 ? s < f + He : s > c - He)
|
|
1074
|
-
return -Se;
|
|
1075
|
-
} else if (s > f + u * (1 - i) / 2 && s < c - u * (1 - i) / 2)
|
|
1076
|
-
return wo(e);
|
|
1077
|
-
}
|
|
1078
|
-
return v = v || a, v && (s < f + u * r / 2 || s > c - u * r / 2) ? s > f + u / 2 ? 1 : -1 : 0;
|
|
1079
|
-
}
|
|
1080
|
-
function wo(n) {
|
|
1081
|
-
return G(d) < G(n) ? 1 : -1;
|
|
1082
|
-
}
|
|
1083
|
-
function yo(n) {
|
|
1084
|
-
for (var e = n.tagName + n.className + n.src + n.href + n.textContent, o = e.length, t = 0; o--; )
|
|
1085
|
-
t += e.charCodeAt(o);
|
|
1086
|
-
return t.toString(36);
|
|
1087
|
-
}
|
|
1088
|
-
function Eo(n) {
|
|
1089
|
-
Ge.length = 0;
|
|
1090
|
-
for (var e = n.getElementsByTagName("input"), o = e.length; o--; ) {
|
|
1091
|
-
var t = e[o];
|
|
1092
|
-
t.checked && Ge.push(t);
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
function ke(n) {
|
|
1096
|
-
return setTimeout(n, 0);
|
|
1097
|
-
}
|
|
1098
|
-
function rt(n) {
|
|
1099
|
-
return clearTimeout(n);
|
|
1100
|
-
}
|
|
1101
|
-
je && y(document, "touchmove", function(n) {
|
|
1102
|
-
(p.active || he) && n.cancelable && n.preventDefault();
|
|
1103
|
-
});
|
|
1104
|
-
p.utils = {
|
|
1105
|
-
on: y,
|
|
1106
|
-
off: w,
|
|
1107
|
-
css: h,
|
|
1108
|
-
find: Nt,
|
|
1109
|
-
is: function(e, o) {
|
|
1110
|
-
return !!j(e, o, e, !1);
|
|
1111
|
-
},
|
|
1112
|
-
extend: no,
|
|
1113
|
-
throttle: Lt,
|
|
1114
|
-
closest: j,
|
|
1115
|
-
toggleClass: Y,
|
|
1116
|
-
clone: Ft,
|
|
1117
|
-
index: G,
|
|
1118
|
-
nextTick: ke,
|
|
1119
|
-
cancelNextTick: rt,
|
|
1120
|
-
detectDirection: kt,
|
|
1121
|
-
getChild: ge,
|
|
1122
|
-
expando: k
|
|
1123
|
-
};
|
|
1124
|
-
p.get = function(n) {
|
|
1125
|
-
return n[k];
|
|
1126
|
-
};
|
|
1127
|
-
p.mount = function() {
|
|
1128
|
-
for (var n = arguments.length, e = new Array(n), o = 0; o < n; o++)
|
|
1129
|
-
e[o] = arguments[o];
|
|
1130
|
-
e[0].constructor === Array && (e = e[0]), e.forEach(function(t) {
|
|
1131
|
-
if (!t.prototype || !t.prototype.constructor)
|
|
1132
|
-
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));
|
|
1133
|
-
t.utils && (p.utils = K(K({}, p.utils), t.utils)), Me.mount(t);
|
|
1134
|
-
});
|
|
1135
|
-
};
|
|
1136
|
-
p.create = function(n, e) {
|
|
1137
|
-
return new p(n, e);
|
|
1138
|
-
};
|
|
1139
|
-
p.version = to;
|
|
1140
|
-
var O = [], we, at, lt = !1, et, tt, ze, ye;
|
|
1141
|
-
function Do() {
|
|
1142
|
-
function n() {
|
|
1143
|
-
this.defaults = {
|
|
1144
|
-
scroll: !0,
|
|
1145
|
-
forceAutoScrollFallback: !1,
|
|
1146
|
-
scrollSensitivity: 30,
|
|
1147
|
-
scrollSpeed: 10,
|
|
1148
|
-
bubbleScroll: !0
|
|
1149
|
-
};
|
|
1150
|
-
for (var e in this)
|
|
1151
|
-
e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
|
|
1152
|
-
}
|
|
1153
|
-
return n.prototype = {
|
|
1154
|
-
dragStarted: function(o) {
|
|
1155
|
-
var t = o.originalEvent;
|
|
1156
|
-
this.sortable.nativeDraggable ? y(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? y(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? y(document, "touchmove", this._handleFallbackAutoScroll) : y(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1157
|
-
},
|
|
1158
|
-
dragOverCompleted: function(o) {
|
|
1159
|
-
var t = o.originalEvent;
|
|
1160
|
-
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
1161
|
-
},
|
|
1162
|
-
drop: function() {
|
|
1163
|
-
this.sortable.nativeDraggable ? w(document, "dragover", this._handleAutoScroll) : (w(document, "pointermove", this._handleFallbackAutoScroll), w(document, "touchmove", this._handleFallbackAutoScroll), w(document, "mousemove", this._handleFallbackAutoScroll)), Et(), Xe(), io();
|
|
1164
|
-
},
|
|
1165
|
-
nulling: function() {
|
|
1166
|
-
ze = at = we = lt = ye = et = tt = null, O.length = 0;
|
|
1167
|
-
},
|
|
1168
|
-
_handleFallbackAutoScroll: function(o) {
|
|
1169
|
-
this._handleAutoScroll(o, !0);
|
|
1170
|
-
},
|
|
1171
|
-
_handleAutoScroll: function(o, t) {
|
|
1172
|
-
var i = this, r = (o.touches ? o.touches[0] : o).clientX, a = (o.touches ? o.touches[0] : o).clientY, l = document.elementFromPoint(r, a);
|
|
1173
|
-
if (ze = o, t || this.options.forceAutoScrollFallback || Ce || oe || Ee) {
|
|
1174
|
-
ot(o, this.options, l, t);
|
|
1175
|
-
var s = le(l, !0);
|
|
1176
|
-
lt && (!ye || r !== et || a !== tt) && (ye && Et(), ye = setInterval(function() {
|
|
1177
|
-
var u = le(document.elementFromPoint(r, a), !0);
|
|
1178
|
-
u !== s && (s = u, Xe()), ot(o, i.options, u, t);
|
|
1179
|
-
}, 10), et = r, tt = a);
|
|
1180
|
-
} else {
|
|
1181
|
-
if (!this.options.bubbleScroll || le(l, !0) === V()) {
|
|
1182
|
-
Xe();
|
|
1183
|
-
return;
|
|
1184
|
-
}
|
|
1185
|
-
ot(o, this.options, le(l, !1), !1);
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
}, te(n, {
|
|
1189
|
-
pluginName: "scroll",
|
|
1190
|
-
initializeByDefault: !0
|
|
1191
|
-
});
|
|
1192
|
-
}
|
|
1193
|
-
function Xe() {
|
|
1194
|
-
O.forEach(function(n) {
|
|
1195
|
-
clearInterval(n.pid);
|
|
1196
|
-
}), O = [];
|
|
1197
|
-
}
|
|
1198
|
-
function Et() {
|
|
1199
|
-
clearInterval(ye);
|
|
1200
|
-
}
|
|
1201
|
-
var ot = Lt(function(n, e, o, t) {
|
|
1202
|
-
if (e.scroll) {
|
|
1203
|
-
var i = (n.touches ? n.touches[0] : n).clientX, r = (n.touches ? n.touches[0] : n).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = V(), u = !1, f;
|
|
1204
|
-
at !== o && (at = o, Xe(), we = e.scroll, f = e.scrollFn, we === !0 && (we = le(o, !0)));
|
|
1205
|
-
var c = 0, v = we;
|
|
1206
|
-
do {
|
|
1207
|
-
var D = v, b = x(D), E = b.top, M = b.bottom, z = b.left, A = b.right, X = b.width, R = b.height, Z = void 0, U = void 0, J = D.scrollWidth, m = D.scrollHeight, _ = h(D), T = D.scrollLeft, P = D.scrollTop;
|
|
1208
|
-
D === s ? (Z = X < J && (_.overflowX === "auto" || _.overflowX === "scroll" || _.overflowX === "visible"), U = R < m && (_.overflowY === "auto" || _.overflowY === "scroll" || _.overflowY === "visible")) : (Z = X < J && (_.overflowX === "auto" || _.overflowX === "scroll"), U = R < m && (_.overflowY === "auto" || _.overflowY === "scroll"));
|
|
1209
|
-
var q = Z && (Math.abs(A - i) <= a && T + X < J) - (Math.abs(z - i) <= a && !!T), B = U && (Math.abs(M - r) <= a && P + R < m) - (Math.abs(E - r) <= a && !!P);
|
|
1210
|
-
if (!O[c])
|
|
1211
|
-
for (var Q = 0; Q <= c; Q++)
|
|
1212
|
-
O[Q] || (O[Q] = {});
|
|
1213
|
-
(O[c].vx != q || O[c].vy != B || O[c].el !== D) && (O[c].el = D, O[c].vx = q, O[c].vy = B, clearInterval(O[c].pid), (q != 0 || B != 0) && (u = !0, O[c].pid = setInterval((function() {
|
|
1214
|
-
t && this.layer === 0 && p.active._onTouchMove(ze);
|
|
1215
|
-
var ve = O[this.layer].vy ? O[this.layer].vy * l : 0, ne = O[this.layer].vx ? O[this.layer].vx * l : 0;
|
|
1216
|
-
typeof f == "function" && f.call(p.dragged.parentNode[k], ne, ve, n, ze, O[this.layer].el) !== "continue" || Rt(O[this.layer].el, ne, ve);
|
|
1217
|
-
}).bind({
|
|
1218
|
-
layer: c
|
|
1219
|
-
}), 24))), c++;
|
|
1220
|
-
} while (e.bubbleScroll && v !== s && (v = le(v, !1)));
|
|
1221
|
-
lt = u;
|
|
1222
|
-
}
|
|
1223
|
-
}, 30), Ut = function(e) {
|
|
1224
|
-
var o = e.originalEvent, t = e.putSortable, i = e.dragEl, r = e.activeSortable, a = e.dispatchSortableEvent, l = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
1225
|
-
if (o) {
|
|
1226
|
-
var u = t || r;
|
|
1227
|
-
l();
|
|
1228
|
-
var f = o.changedTouches && o.changedTouches.length ? o.changedTouches[0] : o, c = document.elementFromPoint(f.clientX, f.clientY);
|
|
1229
|
-
s(), u && !u.el.contains(c) && (a("spill"), this.onSpill({
|
|
1230
|
-
dragEl: i,
|
|
1231
|
-
putSortable: t
|
|
1232
|
-
}));
|
|
1233
|
-
}
|
|
1234
|
-
};
|
|
1235
|
-
function dt() {
|
|
1236
|
-
}
|
|
1237
|
-
dt.prototype = {
|
|
1238
|
-
startIndex: null,
|
|
1239
|
-
dragStart: function(e) {
|
|
1240
|
-
var o = e.oldDraggableIndex;
|
|
1241
|
-
this.startIndex = o;
|
|
1242
|
-
},
|
|
1243
|
-
onSpill: function(e) {
|
|
1244
|
-
var o = e.dragEl, t = e.putSortable;
|
|
1245
|
-
this.sortable.captureAnimationState(), t && t.captureAnimationState();
|
|
1246
|
-
var i = ge(this.sortable.el, this.startIndex, this.options);
|
|
1247
|
-
i ? this.sortable.el.insertBefore(o, i) : this.sortable.el.appendChild(o), this.sortable.animateAll(), t && t.animateAll();
|
|
1248
|
-
},
|
|
1249
|
-
drop: Ut
|
|
1250
|
-
};
|
|
1251
|
-
te(dt, {
|
|
1252
|
-
pluginName: "revertOnSpill"
|
|
1253
|
-
});
|
|
1254
|
-
function ct() {
|
|
1255
|
-
}
|
|
1256
|
-
ct.prototype = {
|
|
1257
|
-
onSpill: function(e) {
|
|
1258
|
-
var o = e.dragEl, t = e.putSortable, i = t || this.sortable;
|
|
1259
|
-
i.captureAnimationState(), o.parentNode && o.parentNode.removeChild(o), i.animateAll();
|
|
1260
|
-
},
|
|
1261
|
-
drop: Ut
|
|
1262
|
-
};
|
|
1263
|
-
te(ct, {
|
|
1264
|
-
pluginName: "removeOnSpill"
|
|
1265
|
-
});
|
|
1266
|
-
p.mount(new Do());
|
|
1267
|
-
p.mount(ct, dt);
|
|
1268
|
-
function To(n, e = ae({})) {
|
|
1269
|
-
const o = ae(null), t = () => {
|
|
1270
|
-
var i;
|
|
1271
|
-
(i = o.value) != null && i.destroy && (o.value.destroy(), o.value = null);
|
|
1272
|
-
};
|
|
1273
|
-
return nt(
|
|
1274
|
-
n,
|
|
1275
|
-
(i) => {
|
|
1276
|
-
if (i != null) {
|
|
1277
|
-
const r = new p(i, {
|
|
1278
|
-
...e.value,
|
|
1279
|
-
/**
|
|
1280
|
-
* Allows the component to be dragged only
|
|
1281
|
-
* with the handle component
|
|
1282
|
-
*/
|
|
1283
|
-
handle: ".b-draggable-handle",
|
|
1284
|
-
/**
|
|
1285
|
-
* Disables the component from being dragged
|
|
1286
|
-
*/
|
|
1287
|
-
filter: ".b-draggable-handle--disabled"
|
|
1288
|
-
});
|
|
1289
|
-
o.value = Wt(r);
|
|
1290
|
-
} else
|
|
1291
|
-
t();
|
|
1292
|
-
},
|
|
1293
|
-
{ immediate: !0 }
|
|
1294
|
-
), nt(e, (i) => {
|
|
1295
|
-
if (i && o.value)
|
|
1296
|
-
for (const r in i)
|
|
1297
|
-
o.value.option(r, i[r]);
|
|
1298
|
-
}), Ct(() => {
|
|
1299
|
-
o.value && t();
|
|
1300
|
-
}), {
|
|
1301
|
-
draggableElement: o
|
|
1302
|
-
};
|
|
1303
|
-
}
|
|
1304
|
-
const So = 1e3;
|
|
1305
|
-
function Io() {
|
|
1306
|
-
const n = ae("");
|
|
1307
|
-
let e = null;
|
|
1308
|
-
const o = () => {
|
|
1309
|
-
e && (clearTimeout(e), e = null);
|
|
1310
|
-
}, t = (i) => {
|
|
1311
|
-
o(), n.value = "", e = setTimeout(() => {
|
|
1312
|
-
n.value = i, e = null;
|
|
1313
|
-
}, So);
|
|
1314
|
-
};
|
|
1315
|
-
return Ct(() => {
|
|
1316
|
-
o();
|
|
1317
|
-
}), {
|
|
1318
|
-
/**
|
|
1319
|
-
* The message to be announced to screen readers.
|
|
1320
|
-
*/
|
|
1321
|
-
announcementMessage: n,
|
|
1322
|
-
/**
|
|
1323
|
-
* Method to trigger an announcement.
|
|
1324
|
-
*/
|
|
1325
|
-
announce: t
|
|
1326
|
-
};
|
|
1327
|
-
}
|
|
1328
|
-
const Co = jt(() => {
|
|
1329
|
-
const n = ae(!1);
|
|
1330
|
-
return typeof window < "u" && (Oe(
|
|
1331
|
-
window,
|
|
1332
|
-
"keydown",
|
|
1333
|
-
(e) => {
|
|
1334
|
-
e.key === "Tab" && (n.value = !0);
|
|
1335
|
-
},
|
|
1336
|
-
{ capture: !0 }
|
|
1337
|
-
), Oe(
|
|
1338
|
-
window,
|
|
1339
|
-
"mousedown",
|
|
1340
|
-
() => {
|
|
1341
|
-
n.value = !1;
|
|
1342
|
-
},
|
|
1343
|
-
{ capture: !0 }
|
|
1344
|
-
), Oe(
|
|
1345
|
-
window,
|
|
1346
|
-
"touchstart",
|
|
1347
|
-
() => {
|
|
1348
|
-
n.value = !1;
|
|
1349
|
-
},
|
|
1350
|
-
{ capture: !0, passive: !0 }
|
|
1351
|
-
), Oe(window, "blur", () => {
|
|
1352
|
-
n.value = !1;
|
|
1353
|
-
})), { isKeyboardUser: n };
|
|
1354
|
-
}), Mo = {
|
|
1355
|
-
"de-DE": {
|
|
1356
|
-
youHaveMovedFromPositionToPosition: "Sie haben {itemLabel} von Position {indexOrigin} an Position {indexTarget} von {total} verschoben."
|
|
1357
|
-
},
|
|
1358
|
-
"en-GB": {
|
|
1359
|
-
youHaveMovedFromPositionToPosition: "You have moved {itemLabel} from position {indexOrigin} to position {indexTarget} of {total}."
|
|
1360
|
-
},
|
|
1361
|
-
"en-US": {
|
|
1362
|
-
youHaveMovedFromPositionToPosition: "You have moved {itemLabel} from position {indexOrigin} to position {indexTarget} of {total}."
|
|
1363
|
-
},
|
|
1364
|
-
"es-ES": {
|
|
1365
|
-
youHaveMovedFromPositionToPosition: "Has movido {itemLabel} de la posición {indexOrigin} a la posición {indexTarget} de {total}."
|
|
1366
|
-
},
|
|
1367
|
-
"es-MX": {
|
|
1368
|
-
youHaveMovedFromPositionToPosition: "Has movido {itemLabel} de la posición {indexOrigin} a la posición {indexTarget} de {total}."
|
|
1369
|
-
},
|
|
1370
|
-
"fr-FR": {
|
|
1371
|
-
youHaveMovedFromPositionToPosition: "Vous avez déplacé {itemLabel} de la position {indexOrigin} à la position {indexTarget} sur {total}."
|
|
1372
|
-
},
|
|
1373
|
-
"it-IT": {
|
|
1374
|
-
youHaveMovedFromPositionToPosition: "Hai spostato {itemLabel} dalla posizione {indexOrigin} alla posizione {indexTarget} di {total}."
|
|
1375
|
-
},
|
|
1376
|
-
"ja-JP": {
|
|
1377
|
-
youHaveMovedFromPositionToPosition: "{itemLabel} を {indexOrigin} の位置から {total} の {indexTarget} の位置に移動しました。"
|
|
1378
|
-
},
|
|
1379
|
-
"pt-BR": {
|
|
1380
|
-
youHaveMovedFromPositionToPosition: "Você moveu {itemLabel} da posição {indexOrigin} para a posição {indexTarget} de {total}."
|
|
1381
|
-
},
|
|
1382
|
-
"zh-CN": {
|
|
1383
|
-
youHaveMovedFromPositionToPosition: "您已将 {itemLabel} 从 {indexOrigin} 位置移动到 {indexTarget} 位置(共 {total} 个位置)。"
|
|
1384
|
-
}
|
|
1385
|
-
}, Po = {
|
|
1386
|
-
name: "bento-draggable",
|
|
1387
|
-
model: { prop: "items", event: "update:items" },
|
|
1388
|
-
i18n: { messages: Mo }
|
|
1389
|
-
}, Oo = /* @__PURE__ */ Mt({
|
|
1390
|
-
...Po,
|
|
1391
|
-
props: {
|
|
1392
|
-
announcement: { default: "" },
|
|
1393
|
-
disableAutoSort: { type: Boolean, default: !1 },
|
|
1394
|
-
el: { default: "div" },
|
|
1395
|
-
items: { default: () => [] },
|
|
1396
|
-
options: { default: () => ({}) }
|
|
1397
|
-
},
|
|
1398
|
-
emits: ["update:items"],
|
|
1399
|
-
setup(n, { expose: e, emit: o }) {
|
|
1400
|
-
const t = n, i = ">:not(.b-draggable__announcement)", r = ae(null), a = ae(!1), l = ae([]), s = ae(null), u = Re(() => {
|
|
1401
|
-
var m;
|
|
1402
|
-
return r.value ? {
|
|
1403
|
-
...t.options,
|
|
1404
|
-
draggable: ((m = t.options) == null ? void 0 : m.draggable) ?? i,
|
|
1405
|
-
onStart: (_) => {
|
|
1406
|
-
var T, P;
|
|
1407
|
-
a.value = !0, (T = t.options) != null && T.onStart && ((P = t.options) == null || P.onStart(_));
|
|
1408
|
-
},
|
|
1409
|
-
onEnd: (_) => {
|
|
1410
|
-
setTimeout(() => {
|
|
1411
|
-
var T, P;
|
|
1412
|
-
a.value = !1, (T = t.options) != null && T.onEnd && ((P = t.options) == null || P.onEnd(_));
|
|
1413
|
-
});
|
|
1414
|
-
},
|
|
1415
|
-
onSort: (_) => {
|
|
1416
|
-
var T;
|
|
1417
|
-
if ((T = t.options) != null && T.onSort) {
|
|
1418
|
-
t.options.onSort(_);
|
|
1419
|
-
return;
|
|
1420
|
-
}
|
|
1421
|
-
if (!t.disableAutoSort) {
|
|
1422
|
-
const { oldIndex: P, newIndex: q, from: B, to: Q } = _;
|
|
1423
|
-
B === Q && B === r.value && P !== void 0 && q !== void 0 && M(P, q);
|
|
1424
|
-
}
|
|
1425
|
-
}
|
|
1426
|
-
} : {};
|
|
1427
|
-
}), { announcementMessage: f, announce: c } = Io(), { t: v } = Pt(), { draggableElement: D } = To(r, u), { isKeyboardUser: b } = Co(), E = async (m) => {
|
|
1428
|
-
if (await ht(), m !== -1 && r.value) {
|
|
1429
|
-
const _ = r.value.children[m], T = _ == null ? void 0 : _.querySelector(".b-draggable-handle button");
|
|
1430
|
-
await ht(), T == null || T.focus();
|
|
1431
|
-
}
|
|
1432
|
-
}, M = async (m, _) => {
|
|
1433
|
-
if (m < 0 || _ < 0 || m >= t.items.length || _ >= t.items.length || m === _)
|
|
1434
|
-
return;
|
|
1435
|
-
const T = Array.from(t.items), [P] = T.splice(m, 1);
|
|
1436
|
-
T.splice(_, 0, P), s.value = P, o("update:items", T.filter(Boolean));
|
|
1437
|
-
const q = P.label, B = (t == null ? void 0 : t.announcement) || v("youHaveMovedFromPositionToPosition", {
|
|
1438
|
-
itemLabel: q,
|
|
1439
|
-
indexOrigin: m + 1,
|
|
1440
|
-
indexTarget: _ + 1,
|
|
1441
|
-
total: t.items.length
|
|
1442
|
-
});
|
|
1443
|
-
t.announcement !== "disabled" && c(B);
|
|
1444
|
-
}, z = (m) => M(m, m - 1), A = (m) => M(m, m + 1), X = (m) => M(m, m - 1), R = (m) => M(m, m + 1), Z = (m) => M(m, 0), U = (m) => M(m, t.items.length - 1), J = (m) => ({
|
|
1445
|
-
up: m === 0,
|
|
1446
|
-
top: m === 0,
|
|
1447
|
-
down: m === t.items.length - 1,
|
|
1448
|
-
bottom: m === t.items.length - 1,
|
|
1449
|
-
left: !0,
|
|
1450
|
-
right: !0
|
|
1451
|
-
});
|
|
1452
|
-
return nt(
|
|
1453
|
-
() => t.items,
|
|
1454
|
-
async (m) => {
|
|
1455
|
-
if (m) {
|
|
1456
|
-
if (b.value && m.length > 0 && l.value.length > 0) {
|
|
1457
|
-
if (s.value) {
|
|
1458
|
-
const _ = m.indexOf(s.value);
|
|
1459
|
-
_ !== -1 && await E(_), s.value = null;
|
|
1460
|
-
} else if (m.length > l.value.length) {
|
|
1461
|
-
const _ = m.findIndex((T) => !l.value.includes(T));
|
|
1462
|
-
_ !== -1 && await E(_);
|
|
1463
|
-
}
|
|
1464
|
-
}
|
|
1465
|
-
l.value = [...m];
|
|
1466
|
-
}
|
|
1467
|
-
},
|
|
1468
|
-
{ deep: !0, immediate: !0 }
|
|
1469
|
-
), e({
|
|
1470
|
-
/**
|
|
1471
|
-
* A ref to the container DOM element.
|
|
1472
|
-
*/
|
|
1473
|
-
containerRef: r,
|
|
1474
|
-
/**
|
|
1475
|
-
* The underlying SortableJS instance, which provides methods like `toArray()`, `sort()`, and `destroy()`.
|
|
1476
|
-
*/
|
|
1477
|
-
draggableElement: D,
|
|
1478
|
-
/**
|
|
1479
|
-
* A boolean ref that is `true` when an item is being dragged.
|
|
1480
|
-
*/
|
|
1481
|
-
isDragging: a,
|
|
1482
|
-
/**
|
|
1483
|
-
* Announces a message to screen reader users via the live region.
|
|
1484
|
-
*/
|
|
1485
|
-
announce: c,
|
|
1486
|
-
/**
|
|
1487
|
-
* Moves an item from one index to another and emits the updated list.
|
|
1488
|
-
*/
|
|
1489
|
-
moveItem: M,
|
|
1490
|
-
/**
|
|
1491
|
-
* Programmatically focuses the draggable handle button at the given index.
|
|
1492
|
-
*/
|
|
1493
|
-
focus: E
|
|
1494
|
-
}), { __sfc: !0, ALL_CHILDREN_EXCEPT_SCREEN_READER_ELEMENTS: i, props: t, emit: o, containerRef: r, isDragging: a, internalItems: l, lastMovedItem: s, computedOptions: u, announcementMessage: f, announce: c, t: v, draggableElement: D, isKeyboardUser: b, focus: E, moveItem: M, moveItemUp: z, moveItemDown: A, moveItemLeft: X, moveItemRight: R, moveItemTop: Z, moveItemBottom: U, disabledMenuItems: J };
|
|
1495
|
-
}
|
|
1496
|
-
});
|
|
1497
|
-
var xo = function() {
|
|
1498
|
-
var e = this, o = e._self._c, t = e._self._setupProxy;
|
|
1499
|
-
return o(e.el, { ref: "containerRef", tag: "component" }, [e._l(e.items, function(i, r) {
|
|
1500
|
-
return e._t("default", null, { item: i, index: r, moveUp: () => t.moveItemUp(r), moveRight: () => t.moveItemRight(r), moveDown: () => t.moveItemDown(r), moveLeft: () => t.moveItemLeft(r), moveTop: () => t.moveItemTop(r), moveBottom: () => t.moveItemBottom(r), disabledMenus: t.disabledMenuItems(r) });
|
|
1501
|
-
}), o("div", { staticClass: "b-draggable__announcement", attrs: { role: "status", "aria-live": "polite" } }, [e._v(" " + e._s(t.announcementMessage) + " ")])], 2);
|
|
1502
|
-
}, Ao = [], No = /* @__PURE__ */ We(
|
|
1503
|
-
Oo,
|
|
1504
|
-
xo,
|
|
1505
|
-
Ao,
|
|
1506
|
-
!1,
|
|
1507
|
-
null,
|
|
1508
|
-
"72c4db16"
|
|
1509
|
-
);
|
|
1510
|
-
const rn = No.exports;
|
|
1511
|
-
let Dt = 0;
|
|
1512
|
-
const Lo = {
|
|
1513
|
-
beforeCreate() {
|
|
1514
|
-
this.uuid = Dt.toString(), Dt += 1;
|
|
1515
|
-
}
|
|
1516
|
-
};
|
|
1517
|
-
var Ro = function() {
|
|
1518
|
-
var e = this, o = e._self._c;
|
|
1519
|
-
return o("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? o("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), o("path", { attrs: { fill: "#001222", d: "M8.75023 3.81089L13.0001 8.06077L14.0608 7.00011L8.00011 0.939453L1.93945 7.00011L3.00011 8.06077L7.25023 3.81066V14.7502H8.75023V3.81089Z" } })]);
|
|
1520
|
-
}, Fo = [], Bo = /* @__PURE__ */ We(
|
|
1521
|
-
Lo,
|
|
1522
|
-
Ro,
|
|
1523
|
-
Fo,
|
|
1524
|
-
!1,
|
|
1525
|
-
null,
|
|
1526
|
-
null
|
|
1527
|
-
);
|
|
1528
|
-
const Tt = Bo.exports;
|
|
1529
|
-
let St = 0;
|
|
1530
|
-
const Ho = {
|
|
1531
|
-
beforeCreate() {
|
|
1532
|
-
this.uuid = St.toString(), St += 1;
|
|
1533
|
-
}
|
|
1534
|
-
};
|
|
1535
|
-
var ko = function() {
|
|
1536
|
-
var e = this, o = e._self._c;
|
|
1537
|
-
return o("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? o("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), o("path", { attrs: { fill: "#001222", d: "M7.25434 12.1937L3.00011 7.93952L1.93945 9.00018L8.00011 15.0608L14.0608 9.00018L13.0001 7.93952L8.75433 12.1853L8.74316 1.24951L7.24316 1.25104L7.25434 12.1937Z" } })]);
|
|
1538
|
-
}, Xo = [], Yo = /* @__PURE__ */ We(
|
|
1539
|
-
Ho,
|
|
1540
|
-
ko,
|
|
1541
|
-
Xo,
|
|
1542
|
-
!1,
|
|
1543
|
-
null,
|
|
1544
|
-
null
|
|
1545
|
-
);
|
|
1546
|
-
const It = Yo.exports, $o = {
|
|
1547
|
-
"de-DE": {
|
|
1548
|
-
moveDown: "Nach unten",
|
|
1549
|
-
moveLeft: "Nach links",
|
|
1550
|
-
moveRight: "Nach rechts bewegen",
|
|
1551
|
-
moveToTheBottom: "Nach unten",
|
|
1552
|
-
moveToTheTop: "Nach oben",
|
|
1553
|
-
moveUp: "Nach oben",
|
|
1554
|
-
reorderLabel: "{label} neu anordnen"
|
|
1555
|
-
},
|
|
1556
|
-
"en-GB": {
|
|
1557
|
-
moveDown: "Move down",
|
|
1558
|
-
moveLeft: "Move left",
|
|
1559
|
-
moveRight: "Move right",
|
|
1560
|
-
moveToTheBottom: "Move to the bottom",
|
|
1561
|
-
moveToTheTop: "Move to the top",
|
|
1562
|
-
moveUp: "Move up",
|
|
1563
|
-
reorderLabel: "Reorder {label}"
|
|
1564
|
-
},
|
|
1565
|
-
"en-US": {
|
|
1566
|
-
moveDown: "Move down",
|
|
1567
|
-
moveLeft: "Move left",
|
|
1568
|
-
moveRight: "Move right",
|
|
1569
|
-
moveToTheBottom: "Move to the bottom",
|
|
1570
|
-
moveToTheTop: "Move to the top",
|
|
1571
|
-
moveUp: "Move up",
|
|
1572
|
-
reorderLabel: "Reorder {label}"
|
|
1573
|
-
},
|
|
1574
|
-
"es-ES": {
|
|
1575
|
-
moveDown: "Mover hacia abajo",
|
|
1576
|
-
moveLeft: "Mover a la izquierda",
|
|
1577
|
-
moveRight: "Mover a la derecha",
|
|
1578
|
-
moveToTheBottom: "Mover a la parte inferior",
|
|
1579
|
-
moveToTheTop: "Mover a la parte superior",
|
|
1580
|
-
moveUp: "Mover hacia arriba",
|
|
1581
|
-
reorderLabel: "Reordenar {label}"
|
|
1582
|
-
},
|
|
1583
|
-
"es-MX": {
|
|
1584
|
-
moveDown: "Mover hacia abajo",
|
|
1585
|
-
moveLeft: "Mover a la izquierda",
|
|
1586
|
-
moveRight: "Mover a la derecha",
|
|
1587
|
-
moveToTheBottom: "Mover a la parte inferior",
|
|
1588
|
-
moveToTheTop: "Mover a la parte superior",
|
|
1589
|
-
moveUp: "Mover hacia arriba",
|
|
1590
|
-
reorderLabel: "Reordenar {label}"
|
|
1591
|
-
},
|
|
1592
|
-
"fr-FR": {
|
|
1593
|
-
moveDown: "Déplacer vers le bas",
|
|
1594
|
-
moveLeft: "Déplacer à gauche",
|
|
1595
|
-
moveRight: "Déplacer à droite",
|
|
1596
|
-
moveToTheBottom: "Déplacer tout en bas",
|
|
1597
|
-
moveToTheTop: "Déplacer tout en haut",
|
|
1598
|
-
moveUp: "Déplacer vers le haut",
|
|
1599
|
-
reorderLabel: "Réorganiser {label}"
|
|
1600
|
-
},
|
|
1601
|
-
"it-IT": {
|
|
1602
|
-
moveDown: "Sposta giù",
|
|
1603
|
-
moveLeft: "Sposta a sinistra",
|
|
1604
|
-
moveRight: "Sposta a destra",
|
|
1605
|
-
moveToTheBottom: "Sposta in fondo",
|
|
1606
|
-
moveToTheTop: "Sposta in cima",
|
|
1607
|
-
moveUp: "Sposta in alto",
|
|
1608
|
-
reorderLabel: "Riordina {label}"
|
|
1609
|
-
},
|
|
1610
|
-
"ja-JP": {
|
|
1611
|
-
moveDown: "下に移動",
|
|
1612
|
-
moveLeft: "左に移動",
|
|
1613
|
-
moveRight: "右に移動",
|
|
1614
|
-
moveToTheBottom: "一番下に移動",
|
|
1615
|
-
moveToTheTop: "一番上に移動",
|
|
1616
|
-
moveUp: "上に移動",
|
|
1617
|
-
reorderLabel: "{label}を並べ替え"
|
|
1618
|
-
},
|
|
1619
|
-
"pt-BR": {
|
|
1620
|
-
moveDown: "Mover para baixo",
|
|
1621
|
-
moveLeft: "Mover para a esquerda",
|
|
1622
|
-
moveRight: "Mover para a direita",
|
|
1623
|
-
moveToTheBottom: "Mover para embaixo",
|
|
1624
|
-
moveToTheTop: "Mover para o topo",
|
|
1625
|
-
moveUp: "Mover para cima",
|
|
1626
|
-
reorderLabel: "Reordenar {label}"
|
|
1627
|
-
},
|
|
1628
|
-
"zh-CN": {
|
|
1629
|
-
moveDown: "下移",
|
|
1630
|
-
moveLeft: "左移",
|
|
1631
|
-
moveRight: "右移",
|
|
1632
|
-
moveToTheBottom: "移至底部",
|
|
1633
|
-
moveToTheTop: "移至顶部",
|
|
1634
|
-
moveUp: "上移",
|
|
1635
|
-
reorderLabel: "重新排序 {label}"
|
|
1636
|
-
}
|
|
1637
|
-
}, Uo = {
|
|
1638
|
-
i18n: { messages: $o },
|
|
1639
|
-
name: "bento-draggable-handle"
|
|
1640
|
-
}, Go = /* @__PURE__ */ Mt({
|
|
1641
|
-
...Uo,
|
|
1642
|
-
props: {
|
|
1643
|
-
condensed: { default: !1 },
|
|
1644
|
-
disabled: { type: Boolean, default: !1 },
|
|
1645
|
-
disabledMenus: { default: () => ({}) },
|
|
1646
|
-
label: null,
|
|
1647
|
-
variant: { default: "up-and-down" }
|
|
1648
|
-
},
|
|
1649
|
-
emits: ["move-bottom", "move-down", "move-left", "move-right", "move-top", "move-up"],
|
|
1650
|
-
setup(n, { emit: e }) {
|
|
1651
|
-
const o = n, { t } = Pt(), i = Re(
|
|
1652
|
-
() => ({
|
|
1653
|
-
"aria-label": t("reorderLabel", { label: o.label }),
|
|
1654
|
-
condensed: o.condensed,
|
|
1655
|
-
disabled: o.disabled,
|
|
1656
|
-
variant: "tertiary"
|
|
1657
|
-
})
|
|
1658
|
-
), r = Re(() => ({
|
|
1659
|
-
/**
|
|
1660
|
-
* Disables the handle and prevents the entire
|
|
1661
|
-
* element from being dragged.
|
|
1662
|
-
* Used by `useBentoDraggable`
|
|
1663
|
-
*/
|
|
1664
|
-
"b-draggable-handle--disabled": o.disabled
|
|
1665
|
-
})), a = Re(() => {
|
|
1666
|
-
const l = {
|
|
1667
|
-
up: {
|
|
1668
|
-
text: t("moveUp"),
|
|
1669
|
-
handler: () => e("move-up"),
|
|
1670
|
-
disabled: o.disabledMenus.up,
|
|
1671
|
-
icon: Tt
|
|
1672
|
-
},
|
|
1673
|
-
down: {
|
|
1674
|
-
text: t("moveDown"),
|
|
1675
|
-
handler: () => e("move-down"),
|
|
1676
|
-
disabled: o.disabledMenus.down,
|
|
1677
|
-
icon: It
|
|
1678
|
-
},
|
|
1679
|
-
left: {
|
|
1680
|
-
text: t("moveLeft"),
|
|
1681
|
-
handler: () => e("move-left"),
|
|
1682
|
-
disabled: o.disabledMenus.left,
|
|
1683
|
-
icon: Kt
|
|
1684
|
-
},
|
|
1685
|
-
right: {
|
|
1686
|
-
text: t("moveRight"),
|
|
1687
|
-
handler: () => e("move-right"),
|
|
1688
|
-
disabled: o.disabledMenus.right,
|
|
1689
|
-
icon: Zt
|
|
1690
|
-
},
|
|
1691
|
-
top: {
|
|
1692
|
-
text: t("moveToTheTop"),
|
|
1693
|
-
handler: () => e("move-top"),
|
|
1694
|
-
disabled: o.disabledMenus.top,
|
|
1695
|
-
icon: Tt
|
|
1696
|
-
},
|
|
1697
|
-
bottom: {
|
|
1698
|
-
text: t("moveToTheBottom"),
|
|
1699
|
-
handler: () => e("move-bottom"),
|
|
1700
|
-
disabled: o.disabledMenus.bottom,
|
|
1701
|
-
icon: It
|
|
1702
|
-
}
|
|
1703
|
-
};
|
|
1704
|
-
return o.variant === "up-and-down" ? [
|
|
1705
|
-
l.up,
|
|
1706
|
-
// Divider added after "Move down"
|
|
1707
|
-
{
|
|
1708
|
-
...l.down,
|
|
1709
|
-
addDivider: !0
|
|
1710
|
-
},
|
|
1711
|
-
l.top,
|
|
1712
|
-
l.bottom
|
|
1713
|
-
] : [
|
|
1714
|
-
l.up,
|
|
1715
|
-
l.down,
|
|
1716
|
-
l.left,
|
|
1717
|
-
// Divider added after "Move right"
|
|
1718
|
-
{
|
|
1719
|
-
...l.right,
|
|
1720
|
-
addDivider: !0
|
|
1721
|
-
},
|
|
1722
|
-
l.top,
|
|
1723
|
-
l.bottom
|
|
1724
|
-
];
|
|
1725
|
-
});
|
|
1726
|
-
return { __sfc: !0, t, props: o, emit: e, buttonComputedProps: i, computedClasses: r, menuData: a, BentoMenu: qt, GrabIcon: Vt };
|
|
1727
|
-
}
|
|
1728
|
-
});
|
|
1729
|
-
var zo = function() {
|
|
1730
|
-
var e = this, o = e._self._c, t = e._self._setupProxy;
|
|
1731
|
-
return o(t.BentoMenu, { staticClass: "b-draggable-handle", class: t.computedClasses, attrs: { data: t.menuData, "menu-width": 250, button: t.buttonComputedProps }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
1732
|
-
return [o("span", { staticClass: "b-draggable-handle__icon" }, [o(t.GrabIcon, { attrs: { "aria-hidden": "true" } })], 1)];
|
|
1733
|
-
}, proxy: !0 }]) });
|
|
1734
|
-
}, Wo = [], jo = /* @__PURE__ */ We(
|
|
1735
|
-
Go,
|
|
1736
|
-
zo,
|
|
1737
|
-
Wo,
|
|
1738
|
-
!1,
|
|
1739
|
-
null,
|
|
1740
|
-
"71d10de0"
|
|
1741
|
-
);
|
|
1742
|
-
const an = jo.exports;
|
|
1743
|
-
export {
|
|
1744
|
-
an as a,
|
|
1745
|
-
rn as d
|
|
1746
|
-
};
|
|
1747
|
-
//# sourceMappingURL=draggable-handle.DwJBaf5y.js.map
|