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