@adyen/bento-vue2 1.99.0 → 1.100.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 +19 -13
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-scroller.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable-handle.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/navigation-menu-group.css +1 -1
- package/dist/assets/rich-text-editor.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/chunks/{action-bar.X-dXuOcv.js → action-bar.DxZchfve.js} +4 -4
- package/dist/chunks/{action-bar.X-dXuOcv.js.map → action-bar.DxZchfve.js.map} +1 -1
- package/dist/chunks/{ai-button.DvOq4s2_.js → ai-button.y1t1nqpv.js} +2 -2
- package/dist/chunks/{ai-button.DvOq4s2_.js.map → ai-button.y1t1nqpv.js.map} +1 -1
- package/dist/chunks/{ai-tag.Cdn4JK1m.js → ai-tag.CD1eQnr_.js} +2 -2
- package/dist/chunks/{ai-tag.Cdn4JK1m.js.map → ai-tag.CD1eQnr_.js.map} +1 -1
- package/dist/chunks/{alert.BDkEbdf4.js → alert.DP17WjNE.js} +2 -2
- package/dist/chunks/{alert.BDkEbdf4.js.map → alert.DP17WjNE.js.map} +1 -1
- package/dist/chunks/{anchor-scroller.Bu7GtOqH.js → anchor-scroller.BiHtyUJz.js} +3 -3
- package/dist/chunks/{anchor-scroller.Bu7GtOqH.js.map → anchor-scroller.BiHtyUJz.js.map} +1 -1
- package/dist/chunks/{base-modal.DgMSsQf3.js → base-modal.BbMTTAi5.js} +5 -5
- package/dist/chunks/{base-modal.DgMSsQf3.js.map → base-modal.BbMTTAi5.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.BV5aDUCD.js → button-actions-with-menu.CpqyoKG5.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.BV5aDUCD.js.map → button-actions-with-menu.CpqyoKG5.js.map} +1 -1
- package/dist/chunks/{button-actions.BD4Dyp4U.js → button-actions.Dxez8SNL.js} +2 -2
- package/dist/chunks/{button-actions.BD4Dyp4U.js.map → button-actions.Dxez8SNL.js.map} +1 -1
- package/dist/chunks/button.Df_UH5wZ.js +112 -0
- package/dist/chunks/button.Df_UH5wZ.js.map +1 -0
- package/dist/chunks/{calendar.CmhzIZZM.js → calendar.BKddGc3j.js} +3 -3
- package/dist/chunks/{calendar.CmhzIZZM.js.map → calendar.BKddGc3j.js.map} +1 -1
- package/dist/chunks/{card.Bm7JEsCC.js → card.BzDmgKjO.js} +2 -2
- package/dist/chunks/{card.Bm7JEsCC.js.map → card.BzDmgKjO.js.map} +1 -1
- package/dist/chunks/{code-snippet.DuJAubi9.js → code-snippet.CY_C6Xyz.js} +5 -5
- package/dist/chunks/{code-snippet.DuJAubi9.js.map → code-snippet.CY_C6Xyz.js.map} +1 -1
- package/dist/chunks/{copy.CWKdfVcd.js → copy.DSFXER-x.js} +2 -2
- package/dist/chunks/{copy.CWKdfVcd.js.map → copy.DSFXER-x.js.map} +1 -1
- package/dist/chunks/{dashboard-section.CRn7tlX_.js → dashboard-section.BtqE_6Zy.js} +3 -3
- package/dist/chunks/{dashboard-section.CRn7tlX_.js.map → dashboard-section.BtqE_6Zy.js.map} +1 -1
- package/dist/chunks/{dashed-underline.BoHt4iGu.js → dashed-underline.Cl158pHL.js} +2 -2
- package/dist/chunks/{dashed-underline.BoHt4iGu.js.map → dashed-underline.Cl158pHL.js.map} +1 -1
- package/dist/chunks/{data-grid-template.BYMLOzkm.js → data-grid-template.yOSdF4nN.js} +4 -4
- package/dist/chunks/{data-grid-template.BYMLOzkm.js.map → data-grid-template.yOSdF4nN.js.map} +1 -1
- package/dist/chunks/{data-grid.D_Xu49bl.js → data-grid.D26rPQcn.js} +12 -12
- package/dist/chunks/{data-grid.D_Xu49bl.js.map → data-grid.D26rPQcn.js.map} +1 -1
- package/dist/chunks/{date-picker.bbVKo7JX.js → date-picker.nNtLItmg.js} +6 -6
- package/dist/chunks/{date-picker.bbVKo7JX.js.map → date-picker.nNtLItmg.js.map} +1 -1
- package/dist/chunks/{date-range-picker.AnFyWMCq.js → date-range-picker.DL-oePHl.js} +8 -8
- package/dist/chunks/{date-range-picker.AnFyWMCq.js.map → date-range-picker.DL-oePHl.js.map} +1 -1
- package/dist/chunks/{date-time-picker.Bpxfkj71.js → date-time-picker.D89IemgM.js} +5 -5
- package/dist/chunks/{date-time-picker.Bpxfkj71.js.map → date-time-picker.D89IemgM.js.map} +1 -1
- package/dist/chunks/{dialog-page.BendBRv6.js → dialog-page.D_m11exR.js} +2 -2
- package/dist/chunks/{dialog-page.BendBRv6.js.map → dialog-page.D_m11exR.js.map} +1 -1
- package/dist/chunks/{draggable-handle.BnRkhlee.js → draggable-handle.BDUQTWrd.js} +268 -263
- package/dist/chunks/{draggable-handle.BnRkhlee.js.map → draggable-handle.BDUQTWrd.js.map} +1 -1
- package/dist/chunks/{draggable.D5WFD5eX.js → draggable.Jqy1iXq_.js} +2 -2
- package/dist/chunks/{draggable.D5WFD5eX.js.map → draggable.Jqy1iXq_.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.VcqAOFuG.js → dropdown-tag.CCItycfH.js} +2 -2
- package/dist/chunks/{dropdown-tag.VcqAOFuG.js.map → dropdown-tag.CCItycfH.js.map} +1 -1
- package/dist/chunks/{dropdown.B21PZqp4.js → dropdown.CLHXtH0r.js} +3 -3
- package/dist/chunks/{dropdown.B21PZqp4.js.map → dropdown.CLHXtH0r.js.map} +1 -1
- package/dist/chunks/{empty-state.Dttc-ZO_.js → empty-state.Be3Np0rd.js} +2 -2
- package/dist/chunks/{empty-state.Dttc-ZO_.js.map → empty-state.Be3Np0rd.js.map} +1 -1
- package/dist/chunks/{file-uploader.BLoJVqZQ.js → file-uploader.C1GuWVEI.js} +3 -3
- package/dist/chunks/{file-uploader.BLoJVqZQ.js.map → file-uploader.C1GuWVEI.js.map} +1 -1
- package/dist/chunks/{filter-bar.CY9xbtNy.js → filter-bar.Dq3fo3rZ.js} +1316 -1224
- package/dist/chunks/filter-bar.Dq3fo3rZ.js.map +1 -0
- package/dist/chunks/{fixed-scroller.4xAzt_OI.js → fixed-scroller.BFuYW-M3.js} +2 -2
- package/dist/chunks/{fixed-scroller.4xAzt_OI.js.map → fixed-scroller.BFuYW-M3.js.map} +1 -1
- package/dist/chunks/{footer-actions.C89dbDV4.js → footer-actions.BB94G3iB.js} +3 -3
- package/dist/chunks/{footer-actions.C89dbDV4.js.map → footer-actions.BB94G3iB.js.map} +1 -1
- package/dist/chunks/{form-layout-title.xrix5vY3.js → form-layout-title.DLvU9CD1.js} +2 -2
- package/dist/chunks/{form-layout-title.xrix5vY3.js.map → form-layout-title.DLvU9CD1.js.map} +1 -1
- package/dist/chunks/{header-meta.Cpk3Z8c2.js → header-meta.Bq8moJ6A.js} +2 -2
- package/dist/chunks/{header-meta.Cpk3Z8c2.js.map → header-meta.Bq8moJ6A.js.map} +1 -1
- package/dist/chunks/{header-with-views.BQEJxWz0.js → header-with-views.yjk4GuOn.js} +8 -8
- package/dist/chunks/{header-with-views.BQEJxWz0.js.map → header-with-views.yjk4GuOn.js.map} +1 -1
- package/dist/chunks/{header.BRBY9Ilh.js → header.C8dI-yo1.js} +3 -3
- package/dist/chunks/{header.BRBY9Ilh.js.map → header.C8dI-yo1.js.map} +1 -1
- package/dist/chunks/{input-field-password.WBxRJUhP.js → input-field-password.Dkty2s5M.js} +4 -4
- package/dist/chunks/{input-field-password.WBxRJUhP.js.map → input-field-password.Dkty2s5M.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.DR6dpYYz.js → input-field-phone-number.CdT4hLCR.js} +2 -2
- package/dist/chunks/{input-field-phone-number.DR6dpYYz.js.map → input-field-phone-number.CdT4hLCR.js.map} +1 -1
- package/dist/chunks/{input-field.y5qXcCAH.js → input-field.3BC9gdvi.js} +36 -26
- package/dist/chunks/{input-field.y5qXcCAH.js.map → input-field.3BC9gdvi.js.map} +1 -1
- package/dist/chunks/{input-time.DrJ3n7Cc.js → input-time.OTVaDCFj.js} +3 -3
- package/dist/chunks/{input-time.DrJ3n7Cc.js.map → input-time.OTVaDCFj.js.map} +1 -1
- package/dist/chunks/{inspector.8QKfd0HF.js → inspector.Cas-Z-VC.js} +2 -2
- package/dist/chunks/{inspector.8QKfd0HF.js.map → inspector.Cas-Z-VC.js.map} +1 -1
- package/dist/chunks/{list-item.BO75rSht.js → list-item.Cf3IFDnG.js} +2 -2
- package/dist/chunks/{list-item.BO75rSht.js.map → list-item.Cf3IFDnG.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CH2wwAtk.js → modal-fullscreen.B1iYD7lc.js} +5 -5
- package/dist/chunks/{modal-fullscreen.CH2wwAtk.js.map → modal-fullscreen.B1iYD7lc.js.map} +1 -1
- package/dist/chunks/{modal.e1Ym209E.js → modal.Cp2cNQbD.js} +5 -5
- package/dist/chunks/{modal.e1Ym209E.js.map → modal.Cp2cNQbD.js.map} +1 -1
- package/dist/chunks/{navigation-menu-group.E1Oam9-n.js → navigation-menu-group.Dvs0wWHC.js} +2 -2
- package/dist/chunks/{navigation-menu-group.E1Oam9-n.js.map → navigation-menu-group.Dvs0wWHC.js.map} +1 -1
- package/dist/chunks/{pagination.CxW1zuWi.js → pagination.9fxG-UWo.js} +3 -3
- package/dist/chunks/{pagination.CxW1zuWi.js.map → pagination.9fxG-UWo.js.map} +1 -1
- package/dist/chunks/{promo-banner.BVBt9w4u.js → promo-banner.eVbU1xqj.js} +2 -2
- package/dist/chunks/{promo-banner.BVBt9w4u.js.map → promo-banner.eVbU1xqj.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.VWCBSRmM.js → rich-text-editor.DYfdUHI6.js} +2 -2
- package/dist/chunks/{rich-text-editor.VWCBSRmM.js.map → rich-text-editor.DYfdUHI6.js.map} +1 -1
- package/dist/chunks/{search-bar.nRiF5eNx.js → search-bar.d8qlBngk.js} +3 -3
- package/dist/chunks/{search-bar.nRiF5eNx.js.map → search-bar.d8qlBngk.js.map} +1 -1
- package/dist/chunks/{secondary-nav.BlI1PBNr.js → secondary-nav.BQ6DM8_b.js} +3 -3
- package/dist/chunks/{secondary-nav.BlI1PBNr.js.map → secondary-nav.BQ6DM8_b.js.map} +1 -1
- package/dist/chunks/{sidepanel.CN_u-b5X.js → sidepanel.CUqjE_-9.js} +5 -5
- package/dist/chunks/{sidepanel.CN_u-b5X.js.map → sidepanel.CUqjE_-9.js.map} +1 -1
- package/dist/chunks/{structured-list-item.CL1jhdTX.js → structured-list-item.jO4KtMuc.js} +3 -3
- package/dist/chunks/{structured-list-item.CL1jhdTX.js.map → structured-list-item.jO4KtMuc.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.Cjrwg4vd.js → summary-grid.types.BsjF5xAH.js} +3 -3
- package/dist/chunks/{summary-grid.types.Cjrwg4vd.js.map → summary-grid.types.BsjF5xAH.js.map} +1 -1
- package/dist/chunks/{tab.B2qRfTqx.js → tab.qhcMgSD1.js} +2 -2
- package/dist/chunks/{tab.B2qRfTqx.js.map → tab.qhcMgSD1.js.map} +1 -1
- package/dist/chunks/{textarea.CbCrtcQ2.js → textarea.BOQbOPm4.js} +2 -2
- package/dist/chunks/{textarea.CbCrtcQ2.js.map → textarea.BOQbOPm4.js.map} +1 -1
- package/dist/chunks/{timeline-item.BVOztUi9.js → timeline-item.DXhpupK_.js} +6 -6
- package/dist/chunks/{timeline-item.BVOztUi9.js.map → timeline-item.DXhpupK_.js.map} +1 -1
- package/dist/chunks/{toast.BMGR5QrI.js → toast.BDV4ab4e.js} +2 -2
- package/dist/chunks/{toast.BMGR5QrI.js.map → toast.BDV4ab4e.js.map} +1 -1
- package/dist/chunks/{tutorial.WeP9PjhU.js → tutorial.CAcBuXib.js} +2 -2
- package/dist/chunks/{tutorial.WeP9PjhU.js.map → tutorial.CAcBuXib.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.DhduXYC3.js → use-date-input-formatter.BR_O2GeY.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.DhduXYC3.js.map → use-date-input-formatter.BR_O2GeY.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date-time-picker.js +1 -1
- package/dist/draggable.js +2 -2
- package/dist/dropdown.js +2 -2
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +50 -50
- 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 +8 -8
- 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 +1 -1
- package/dist/promo-banner.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/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/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +97 -76
- package/package.json +4 -4
- package/dist/chunks/button.DITA6YtS.js +0 -110
- package/dist/chunks/button.DITA6YtS.js.map +0 -1
- package/dist/chunks/filter-bar.CY9xbtNy.js.map +0 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as Xe, watch as ct, markRaw as Gt, onUnmounted as St, defineComponent as Ut, computed as We } from "vue";
|
|
2
2
|
import { u as Ct } from "./index.B6WW_F-J.js";
|
|
3
|
-
import { f as Wt } from "./button-actions.
|
|
4
|
-
import {
|
|
3
|
+
import { f as Wt } from "./button-actions.Dxez8SNL.js";
|
|
4
|
+
import { d as zt } from "./index.BPUMyryR.js";
|
|
5
|
+
import { G as jt } from "./grab.BxiVZ1RZ.js";
|
|
5
6
|
/* empty css */
|
|
6
7
|
import { n as it } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
7
|
-
import { A as
|
|
8
|
-
import { A as
|
|
8
|
+
import { A as qt } from "./arrow-left.CRREfabP.js";
|
|
9
|
+
import { A as Vt } from "./arrow-right.Dn3AYpUP.js";
|
|
9
10
|
import "../assets/draggable-handle.css";
|
|
10
11
|
/**!
|
|
11
12
|
* Sortable 1.15.6
|
|
@@ -27,7 +28,7 @@ function U(o) {
|
|
|
27
28
|
for (var e = 1; e < arguments.length; e++) {
|
|
28
29
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
29
30
|
e % 2 ? ft(Object(t), !0).forEach(function(n) {
|
|
30
|
-
|
|
31
|
+
Zt(o, n, t[n]);
|
|
31
32
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : ft(Object(t)).forEach(function(n) {
|
|
32
33
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
33
34
|
});
|
|
@@ -42,7 +43,7 @@ function Ne(o) {
|
|
|
42
43
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
43
44
|
}, Ne(o);
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
+
function Zt(o, e, t) {
|
|
46
47
|
return e in o ? Object.defineProperty(o, e, {
|
|
47
48
|
value: t,
|
|
48
49
|
enumerable: !0,
|
|
@@ -60,16 +61,16 @@ function q() {
|
|
|
60
61
|
return o;
|
|
61
62
|
}, q.apply(this, arguments);
|
|
62
63
|
}
|
|
63
|
-
function
|
|
64
|
+
function Kt(o, e) {
|
|
64
65
|
if (o == null) return {};
|
|
65
66
|
var t = {}, n = Object.keys(o), r, i;
|
|
66
67
|
for (i = 0; i < n.length; i++)
|
|
67
68
|
r = n[i], !(e.indexOf(r) >= 0) && (t[r] = o[r]);
|
|
68
69
|
return t;
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
+
function Jt(o, e) {
|
|
71
72
|
if (o == null) return {};
|
|
72
|
-
var t =
|
|
73
|
+
var t = Kt(o, e), n, r;
|
|
73
74
|
if (Object.getOwnPropertySymbols) {
|
|
74
75
|
var i = Object.getOwnPropertySymbols(o);
|
|
75
76
|
for (r = 0; r < i.length; r++)
|
|
@@ -77,7 +78,7 @@ function Kt(o, e) {
|
|
|
77
78
|
}
|
|
78
79
|
return t;
|
|
79
80
|
}
|
|
80
|
-
var
|
|
81
|
+
var Qt = "1.15.6";
|
|
81
82
|
function j(o) {
|
|
82
83
|
if (typeof window < "u" && window.navigator)
|
|
83
84
|
return !!/* @__PURE__ */ navigator.userAgent.match(o);
|
|
@@ -92,7 +93,7 @@ function w(o, e, t) {
|
|
|
92
93
|
function _(o, e, t) {
|
|
93
94
|
o.removeEventListener(e, t, !V && Mt);
|
|
94
95
|
}
|
|
95
|
-
function
|
|
96
|
+
function Ye(o, e) {
|
|
96
97
|
if (e) {
|
|
97
98
|
if (e[0] === ">" && (e = e.substring(1)), o)
|
|
98
99
|
try {
|
|
@@ -115,7 +116,7 @@ function H(o, e, t, n) {
|
|
|
115
116
|
if (o) {
|
|
116
117
|
t = t || document;
|
|
117
118
|
do {
|
|
118
|
-
if (e != null && (e[0] === ">" ? o.parentNode === t &&
|
|
119
|
+
if (e != null && (e[0] === ">" ? o.parentNode === t && Ye(o, e) : Ye(o, e)) || n && o === t)
|
|
119
120
|
return o;
|
|
120
121
|
if (o === t) break;
|
|
121
122
|
} while (o = Ot(o));
|
|
@@ -162,32 +163,32 @@ function At(o, e, t) {
|
|
|
162
163
|
}
|
|
163
164
|
return [];
|
|
164
165
|
}
|
|
165
|
-
function
|
|
166
|
+
function G() {
|
|
166
167
|
var o = document.scrollingElement;
|
|
167
168
|
return o || document.documentElement;
|
|
168
169
|
}
|
|
169
170
|
function C(o, e, t, n, r) {
|
|
170
171
|
if (!(!o.getBoundingClientRect && o !== window)) {
|
|
171
|
-
var i, a,
|
|
172
|
-
if (o !== window && o.parentNode && o !==
|
|
172
|
+
var i, a, s, l, u, f, c;
|
|
173
|
+
if (o !== window && o.parentNode && o !== G() ? (i = o.getBoundingClientRect(), a = i.top, s = i.left, l = i.bottom, u = i.right, f = i.height, c = i.width) : (a = 0, s = 0, l = window.innerHeight, u = window.innerWidth, f = window.innerHeight, c = window.innerWidth), (e || t) && o !== window && (r = r || o.parentNode, !V))
|
|
173
174
|
do
|
|
174
175
|
if (r && r.getBoundingClientRect && (m(r, "transform") !== "none" || t && m(r, "position") !== "static")) {
|
|
175
|
-
var
|
|
176
|
-
a -=
|
|
176
|
+
var h = r.getBoundingClientRect();
|
|
177
|
+
a -= h.top + parseInt(m(r, "border-top-width")), s -= h.left + parseInt(m(r, "border-left-width")), l = a + i.height, u = s + i.width;
|
|
177
178
|
break;
|
|
178
179
|
}
|
|
179
180
|
while (r = r.parentNode);
|
|
180
181
|
if (n && o !== window) {
|
|
181
182
|
var p = ce(r || o), v = p && p.a, y = p && p.d;
|
|
182
|
-
p && (a /= y,
|
|
183
|
+
p && (a /= y, s /= v, c /= v, f /= y, l = a + f, u = s + c);
|
|
183
184
|
}
|
|
184
185
|
return {
|
|
185
186
|
top: a,
|
|
186
|
-
left:
|
|
187
|
-
bottom:
|
|
187
|
+
left: s,
|
|
188
|
+
bottom: l,
|
|
188
189
|
right: u,
|
|
189
190
|
width: c,
|
|
190
|
-
height:
|
|
191
|
+
height: f
|
|
191
192
|
};
|
|
192
193
|
}
|
|
193
194
|
}
|
|
@@ -195,7 +196,7 @@ function mt(o, e, t) {
|
|
|
195
196
|
for (var n = ee(o, !0), r = C(o)[e]; n; ) {
|
|
196
197
|
var i = C(n)[t], a = void 0;
|
|
197
198
|
if (a = r >= i, !a) return n;
|
|
198
|
-
if (n ===
|
|
199
|
+
if (n === G()) break;
|
|
199
200
|
n = ee(n, !1);
|
|
200
201
|
}
|
|
201
202
|
return !1;
|
|
@@ -212,7 +213,7 @@ function fe(o, e, t, n) {
|
|
|
212
213
|
return null;
|
|
213
214
|
}
|
|
214
215
|
function lt(o, e) {
|
|
215
|
-
for (var t = o.lastElementChild; t && (t === g.ghost || m(t, "display") === "none" || e && !
|
|
216
|
+
for (var t = o.lastElementChild; t && (t === g.ghost || m(t, "display") === "none" || e && !Ye(t, e)); )
|
|
216
217
|
t = t.previousElementSibling;
|
|
217
218
|
return t || null;
|
|
218
219
|
}
|
|
@@ -221,11 +222,11 @@ function B(o, e) {
|
|
|
221
222
|
if (!o || !o.parentNode)
|
|
222
223
|
return -1;
|
|
223
224
|
for (; o = o.previousElementSibling; )
|
|
224
|
-
o.nodeName.toUpperCase() !== "TEMPLATE" && o !== g.clone && (!e ||
|
|
225
|
+
o.nodeName.toUpperCase() !== "TEMPLATE" && o !== g.clone && (!e || Ye(o, e)) && t++;
|
|
225
226
|
return t;
|
|
226
227
|
}
|
|
227
228
|
function gt(o) {
|
|
228
|
-
var e = 0, t = 0, n =
|
|
229
|
+
var e = 0, t = 0, n = G();
|
|
229
230
|
if (o)
|
|
230
231
|
do {
|
|
231
232
|
var r = ce(o), i = r.a, a = r.d;
|
|
@@ -233,7 +234,7 @@ function gt(o) {
|
|
|
233
234
|
} while (o !== n && (o = o.parentNode));
|
|
234
235
|
return [e, t];
|
|
235
236
|
}
|
|
236
|
-
function
|
|
237
|
+
function en(o, e) {
|
|
237
238
|
for (var t in o)
|
|
238
239
|
if (o.hasOwnProperty(t)) {
|
|
239
240
|
for (var n in e)
|
|
@@ -242,27 +243,27 @@ function Qt(o, e) {
|
|
|
242
243
|
return -1;
|
|
243
244
|
}
|
|
244
245
|
function ee(o, e) {
|
|
245
|
-
if (!o || !o.getBoundingClientRect) return
|
|
246
|
+
if (!o || !o.getBoundingClientRect) return G();
|
|
246
247
|
var t = o, n = !1;
|
|
247
248
|
do
|
|
248
249
|
if (t.clientWidth < t.scrollWidth || t.clientHeight < t.scrollHeight) {
|
|
249
250
|
var r = m(t);
|
|
250
251
|
if (t.clientWidth < t.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || t.clientHeight < t.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
|
|
251
|
-
if (!t.getBoundingClientRect || t === document.body) return
|
|
252
|
+
if (!t.getBoundingClientRect || t === document.body) return G();
|
|
252
253
|
if (n || e) return t;
|
|
253
254
|
n = !0;
|
|
254
255
|
}
|
|
255
256
|
}
|
|
256
257
|
while (t = t.parentNode);
|
|
257
|
-
return
|
|
258
|
+
return G();
|
|
258
259
|
}
|
|
259
|
-
function
|
|
260
|
+
function tn(o, e) {
|
|
260
261
|
if (o && e)
|
|
261
262
|
for (var t in e)
|
|
262
263
|
e.hasOwnProperty(t) && (o[t] = e[t]);
|
|
263
264
|
return o;
|
|
264
265
|
}
|
|
265
|
-
function
|
|
266
|
+
function ze(o, e) {
|
|
266
267
|
return Math.round(o.top) === Math.round(e.top) && Math.round(o.left) === Math.round(e.left) && Math.round(o.height) === Math.round(e.height) && Math.round(o.width) === Math.round(e.width);
|
|
267
268
|
}
|
|
268
269
|
var Ee;
|
|
@@ -276,7 +277,7 @@ function xt(o, e) {
|
|
|
276
277
|
}
|
|
277
278
|
};
|
|
278
279
|
}
|
|
279
|
-
function
|
|
280
|
+
function nn() {
|
|
280
281
|
clearTimeout(Ee), Ee = void 0;
|
|
281
282
|
}
|
|
282
283
|
function Pt(o, e, t) {
|
|
@@ -289,15 +290,15 @@ function Nt(o) {
|
|
|
289
290
|
function Rt(o, e, t) {
|
|
290
291
|
var n = {};
|
|
291
292
|
return Array.from(o.children).forEach(function(r) {
|
|
292
|
-
var i, a,
|
|
293
|
+
var i, a, s, l;
|
|
293
294
|
if (!(!H(r, e.draggable, o, !1) || r.animated || r === t)) {
|
|
294
295
|
var u = C(r);
|
|
295
|
-
n.left = Math.min((i = n.left) !== null && i !== void 0 ? i : 1 / 0, u.left), n.top = Math.min((a = n.top) !== null && a !== void 0 ? a : 1 / 0, u.top), n.right = Math.max((
|
|
296
|
+
n.left = Math.min((i = n.left) !== null && i !== void 0 ? i : 1 / 0, u.left), n.top = Math.min((a = n.top) !== null && a !== void 0 ? a : 1 / 0, u.top), n.right = Math.max((s = n.right) !== null && s !== void 0 ? s : -1 / 0, u.right), n.bottom = Math.max((l = n.bottom) !== null && l !== void 0 ? l : -1 / 0, u.bottom);
|
|
296
297
|
}
|
|
297
298
|
}), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
|
|
298
299
|
}
|
|
299
300
|
var P = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
300
|
-
function
|
|
301
|
+
function on() {
|
|
301
302
|
var o = [], e;
|
|
302
303
|
return {
|
|
303
304
|
captureAnimationState: function() {
|
|
@@ -323,7 +324,7 @@ function nn() {
|
|
|
323
324
|
o.push(n);
|
|
324
325
|
},
|
|
325
326
|
removeAnimationState: function(n) {
|
|
326
|
-
o.splice(
|
|
327
|
+
o.splice(en(o, {
|
|
327
328
|
target: n
|
|
328
329
|
}), 1);
|
|
329
330
|
},
|
|
@@ -334,12 +335,12 @@ function nn() {
|
|
|
334
335
|
return;
|
|
335
336
|
}
|
|
336
337
|
var i = !1, a = 0;
|
|
337
|
-
o.forEach(function(
|
|
338
|
-
var
|
|
339
|
-
y && (c.top -= y.f, c.left -= y.e), u.toRect = c, u.thisAnimationDuration &&
|
|
340
|
-
(v.top - c.top) / (v.left - c.left) === (
|
|
338
|
+
o.forEach(function(s) {
|
|
339
|
+
var l = 0, u = s.target, f = u.fromRect, c = C(u), h = u.prevFromRect, p = u.prevToRect, v = s.rect, y = ce(u, !0);
|
|
340
|
+
y && (c.top -= y.f, c.left -= y.e), u.toRect = c, u.thisAnimationDuration && ze(h, c) && !ze(f, c) && // Make sure animatingRect is on line between toRect & fromRect
|
|
341
|
+
(v.top - c.top) / (v.left - c.left) === (f.top - c.top) / (f.left - c.left) && (l = an(v, h, p, r.options)), ze(c, f) || (u.prevFromRect = f, u.prevToRect = c, l || (l = r.options.animation), r.animate(u, v, c, l)), l && (i = !0, a = Math.max(a, l), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
341
342
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
342
|
-
},
|
|
343
|
+
}, l), u.thisAnimationDuration = l);
|
|
343
344
|
}), clearTimeout(e), i ? e = setTimeout(function() {
|
|
344
345
|
typeof n == "function" && n();
|
|
345
346
|
}, a) : typeof n == "function" && n(), o = [];
|
|
@@ -347,26 +348,26 @@ function nn() {
|
|
|
347
348
|
animate: function(n, r, i, a) {
|
|
348
349
|
if (a) {
|
|
349
350
|
m(n, "transition", ""), m(n, "transform", "");
|
|
350
|
-
var
|
|
351
|
-
n.animatingX = !!
|
|
351
|
+
var s = ce(this.el), l = s && s.a, u = s && s.d, f = (r.left - i.left) / (l || 1), c = (r.top - i.top) / (u || 1);
|
|
352
|
+
n.animatingX = !!f, n.animatingY = !!c, m(n, "transform", "translate3d(" + f + "px," + c + "px,0)"), this.forRepaintDummy = rn(n), m(n, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), m(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
352
353
|
m(n, "transition", ""), m(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
353
354
|
}, a);
|
|
354
355
|
}
|
|
355
356
|
}
|
|
356
357
|
};
|
|
357
358
|
}
|
|
358
|
-
function
|
|
359
|
+
function rn(o) {
|
|
359
360
|
return o.offsetWidth;
|
|
360
361
|
}
|
|
361
|
-
function
|
|
362
|
+
function an(o, e, t, n) {
|
|
362
363
|
return Math.sqrt(Math.pow(e.top - o.top, 2) + Math.pow(e.left - o.left, 2)) / Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) * n.animation;
|
|
363
364
|
}
|
|
364
|
-
var le = [],
|
|
365
|
+
var le = [], je = {
|
|
365
366
|
initializeByDefault: !0
|
|
366
367
|
}, Ie = {
|
|
367
368
|
mount: function(e) {
|
|
368
|
-
for (var t in
|
|
369
|
-
|
|
369
|
+
for (var t in je)
|
|
370
|
+
je.hasOwnProperty(t) && !(t in e) && (e[t] = je[t]);
|
|
370
371
|
le.forEach(function(n) {
|
|
371
372
|
if (n.pluginName === e.pluginName)
|
|
372
373
|
throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
|
|
@@ -387,11 +388,11 @@ var le = [], ze = {
|
|
|
387
388
|
});
|
|
388
389
|
},
|
|
389
390
|
initializePlugins: function(e, t, n, r) {
|
|
390
|
-
le.forEach(function(
|
|
391
|
-
var
|
|
392
|
-
if (!(!e.options[
|
|
393
|
-
var u = new
|
|
394
|
-
u.sortable = e, u.options = e.options, e[
|
|
391
|
+
le.forEach(function(s) {
|
|
392
|
+
var l = s.pluginName;
|
|
393
|
+
if (!(!e.options[l] && !s.initializeByDefault)) {
|
|
394
|
+
var u = new s(e, t, e.options);
|
|
395
|
+
u.sortable = e, u.options = e.options, e[l] = u, q(n, u.defaults);
|
|
395
396
|
}
|
|
396
397
|
});
|
|
397
398
|
for (var i in e.options)
|
|
@@ -413,22 +414,22 @@ var le = [], ze = {
|
|
|
413
414
|
}), r;
|
|
414
415
|
}
|
|
415
416
|
};
|
|
416
|
-
function
|
|
417
|
-
var e = o.sortable, t = o.rootEl, n = o.name, r = o.targetEl, i = o.cloneEl, a = o.toEl,
|
|
417
|
+
function ln(o) {
|
|
418
|
+
var e = o.sortable, t = o.rootEl, n = o.name, r = o.targetEl, i = o.cloneEl, a = o.toEl, s = o.fromEl, l = o.oldIndex, u = o.newIndex, f = o.oldDraggableIndex, c = o.newDraggableIndex, h = o.originalEvent, p = o.putSortable, v = o.extraEventProperties;
|
|
418
419
|
if (e = e || t && t[P], !!e) {
|
|
419
420
|
var y, X = e.options, W = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
420
421
|
window.CustomEvent && !V && !Ce ? y = new CustomEvent(n, {
|
|
421
422
|
bubbles: !0,
|
|
422
423
|
cancelable: !0
|
|
423
|
-
}) : (y = document.createEvent("Event"), y.initEvent(n, !0, !0)), y.to = a || t, y.from =
|
|
424
|
+
}) : (y = document.createEvent("Event"), y.initEvent(n, !0, !0)), y.to = a || t, y.from = s || t, y.item = r || t, y.clone = i, y.oldIndex = l, y.newIndex = u, y.oldDraggableIndex = f, y.newDraggableIndex = c, y.originalEvent = h, y.pullMode = p ? p.lastPutMode : void 0;
|
|
424
425
|
var O = U(U({}, v), Ie.getEventProperties(n, e));
|
|
425
426
|
for (var Y in O)
|
|
426
427
|
y[Y] = O[Y];
|
|
427
428
|
t && t.dispatchEvent(y), X[W] && X[W].call(e, y);
|
|
428
429
|
}
|
|
429
430
|
}
|
|
430
|
-
var
|
|
431
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i =
|
|
431
|
+
var sn = ["evt"], x = function(e, t) {
|
|
432
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = Jt(n, sn);
|
|
432
433
|
Ie.pluginEvent.bind(g)(e, t, U({
|
|
433
434
|
dragEl: d,
|
|
434
435
|
parentEl: T,
|
|
@@ -454,17 +455,17 @@ var ln = ["evt"], x = function(e, t) {
|
|
|
454
455
|
cloneNowShown: function() {
|
|
455
456
|
Q = !1;
|
|
456
457
|
},
|
|
457
|
-
dispatchSortableEvent: function(
|
|
458
|
+
dispatchSortableEvent: function(s) {
|
|
458
459
|
A({
|
|
459
460
|
sortable: t,
|
|
460
|
-
name:
|
|
461
|
+
name: s,
|
|
461
462
|
originalEvent: r
|
|
462
463
|
});
|
|
463
464
|
}
|
|
464
465
|
}, i));
|
|
465
466
|
};
|
|
466
467
|
function A(o) {
|
|
467
|
-
|
|
468
|
+
ln(U({
|
|
468
469
|
putSortable: I,
|
|
469
470
|
cloneEl: D,
|
|
470
471
|
targetEl: d,
|
|
@@ -475,41 +476,41 @@ function A(o) {
|
|
|
475
476
|
newDraggableIndex: J
|
|
476
477
|
}, o));
|
|
477
478
|
}
|
|
478
|
-
var d, T, b, E, ae, Re, D, Q, de, F, De, J, Oe, I, ue = !1,
|
|
479
|
-
if (
|
|
479
|
+
var d, T, b, E, ae, Re, D, Q, de, F, De, J, Oe, I, ue = !1, ke = !1, He = [], re, k, qe, Ve, vt, bt, be, se, Te, Se = !1, Ae = !1, Le, M, Ze = [], tt = !1, $e = [], Ue = typeof document < "u", xe = at, _t = Ce || V ? "cssFloat" : "float", un = Ue && !It && !at && "draggable" in document.createElement("div"), Lt = (function() {
|
|
480
|
+
if (Ue) {
|
|
480
481
|
if (V)
|
|
481
482
|
return !1;
|
|
482
483
|
var o = document.createElement("x");
|
|
483
484
|
return o.style.cssText = "pointer-events:auto", o.style.pointerEvents === "auto";
|
|
484
485
|
}
|
|
485
486
|
})(), Ft = function(e, t) {
|
|
486
|
-
var n = m(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = fe(e, 0, t), a = fe(e, 1, t),
|
|
487
|
+
var n = m(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = fe(e, 0, t), a = fe(e, 1, t), s = i && m(i), l = a && m(a), u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + C(i).width, f = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + C(a).width;
|
|
487
488
|
if (n.display === "flex")
|
|
488
489
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
489
490
|
if (n.display === "grid")
|
|
490
491
|
return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
491
|
-
if (i &&
|
|
492
|
-
var c =
|
|
493
|
-
return a && (
|
|
492
|
+
if (i && s.float && s.float !== "none") {
|
|
493
|
+
var c = s.float === "left" ? "left" : "right";
|
|
494
|
+
return a && (l.clear === "both" || l.clear === c) ? "vertical" : "horizontal";
|
|
494
495
|
}
|
|
495
|
-
return i && (
|
|
496
|
-
},
|
|
497
|
-
var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height,
|
|
498
|
-
return r ===
|
|
499
|
-
},
|
|
496
|
+
return i && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= r && n[_t] === "none" || a && n[_t] === "none" && u + f > r) ? "vertical" : "horizontal";
|
|
497
|
+
}, dn = function(e, t, n) {
|
|
498
|
+
var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, s = n ? t.left : t.top, l = n ? t.right : t.bottom, u = n ? t.width : t.height;
|
|
499
|
+
return r === s || i === l || r + a / 2 === s + u / 2;
|
|
500
|
+
}, cn = function(e, t) {
|
|
500
501
|
var n;
|
|
501
|
-
return
|
|
502
|
+
return He.some(function(r) {
|
|
502
503
|
var i = r[P].options.emptyInsertThreshold;
|
|
503
504
|
if (!(!i || lt(r))) {
|
|
504
|
-
var a = C(r),
|
|
505
|
-
if (
|
|
505
|
+
var a = C(r), s = e >= a.left - i && e <= a.right + i, l = t >= a.top - i && t <= a.bottom + i;
|
|
506
|
+
if (s && l)
|
|
506
507
|
return n = r;
|
|
507
508
|
}
|
|
508
509
|
}), n;
|
|
509
510
|
}, Bt = function(e) {
|
|
510
511
|
function t(i, a) {
|
|
511
|
-
return function(
|
|
512
|
-
var c =
|
|
512
|
+
return function(s, l, u, f) {
|
|
513
|
+
var c = s.options.group.name && l.options.group.name && s.options.group.name === l.options.group.name;
|
|
513
514
|
if (i == null && (a || c))
|
|
514
515
|
return !0;
|
|
515
516
|
if (i == null || i === !1)
|
|
@@ -517,9 +518,9 @@ var d, T, b, E, ae, Re, D, Q, de, F, De, J, Oe, I, ue = !1, Ye = !1, ke = [], re
|
|
|
517
518
|
if (a && i === "clone")
|
|
518
519
|
return i;
|
|
519
520
|
if (typeof i == "function")
|
|
520
|
-
return t(i(
|
|
521
|
-
var
|
|
522
|
-
return i === !0 || typeof i == "string" && i ===
|
|
521
|
+
return t(i(s, l, u, f), a)(s, l, u, f);
|
|
522
|
+
var h = (a ? s : l).options.group.name;
|
|
523
|
+
return i === !0 || typeof i == "string" && i === h || i.join && i.indexOf(h) > -1;
|
|
523
524
|
};
|
|
524
525
|
}
|
|
525
526
|
var n = {}, r = e.group;
|
|
@@ -531,14 +532,14 @@ var d, T, b, E, ae, Re, D, Q, de, F, De, J, Oe, I, ue = !1, Ye = !1, ke = [], re
|
|
|
531
532
|
}, Yt = function() {
|
|
532
533
|
!Lt && b && m(b, "display", "");
|
|
533
534
|
};
|
|
534
|
-
|
|
535
|
-
if (
|
|
536
|
-
return o.preventDefault(), o.stopPropagation && o.stopPropagation(), o.stopImmediatePropagation && o.stopImmediatePropagation(),
|
|
535
|
+
Ue && !It && document.addEventListener("click", function(o) {
|
|
536
|
+
if (ke)
|
|
537
|
+
return o.preventDefault(), o.stopPropagation && o.stopPropagation(), o.stopImmediatePropagation && o.stopImmediatePropagation(), ke = !1, !1;
|
|
537
538
|
}, !0);
|
|
538
539
|
var ie = function(e) {
|
|
539
540
|
if (d) {
|
|
540
541
|
e = e.touches ? e.touches[0] : e;
|
|
541
|
-
var t =
|
|
542
|
+
var t = cn(e.clientX, e.clientY);
|
|
542
543
|
if (t) {
|
|
543
544
|
var n = {};
|
|
544
545
|
for (var r in e)
|
|
@@ -546,7 +547,7 @@ var ie = function(e) {
|
|
|
546
547
|
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[P]._onDragOver(n);
|
|
547
548
|
}
|
|
548
549
|
}
|
|
549
|
-
},
|
|
550
|
+
}, fn = function(e) {
|
|
550
551
|
d && d.parentNode[P]._isOutsideThisEl(e.target);
|
|
551
552
|
};
|
|
552
553
|
function g(o, e) {
|
|
@@ -578,8 +579,8 @@ function g(o, e) {
|
|
|
578
579
|
preventOnFilter: !0,
|
|
579
580
|
animation: 0,
|
|
580
581
|
easing: null,
|
|
581
|
-
setData: function(a,
|
|
582
|
-
a.setData("Text",
|
|
582
|
+
setData: function(a, s) {
|
|
583
|
+
a.setData("Text", s.textContent);
|
|
583
584
|
},
|
|
584
585
|
dropBubble: !1,
|
|
585
586
|
dragoverBubble: !1,
|
|
@@ -605,7 +606,7 @@ function g(o, e) {
|
|
|
605
606
|
Bt(e);
|
|
606
607
|
for (var r in this)
|
|
607
608
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
608
|
-
this.nativeDraggable = e.forceFallback ? !1 :
|
|
609
|
+
this.nativeDraggable = e.forceFallback ? !1 : un, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? w(o, "pointerdown", this._onTapStart) : (w(o, "mousedown", this._onTapStart), w(o, "touchstart", this._onTapStart)), this.nativeDraggable && (w(o, "dragover", this), w(o, "dragenter", this)), He.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), q(this, on());
|
|
609
610
|
}
|
|
610
611
|
g.prototype = /** @lends Sortable.prototype */
|
|
611
612
|
{
|
|
@@ -618,15 +619,15 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
618
619
|
},
|
|
619
620
|
_onTapStart: function(e) {
|
|
620
621
|
if (e.cancelable) {
|
|
621
|
-
var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type,
|
|
622
|
-
if (
|
|
623
|
-
if (de = B(
|
|
624
|
-
if (
|
|
622
|
+
var t = this, n = this.el, r = this.options, i = r.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, f = r.filter;
|
|
623
|
+
if (wn(n), !d && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && ye && l && l.tagName.toUpperCase() === "SELECT") && (l = H(l, r.draggable, n, !1), !(l && l.animated) && Re !== l)) {
|
|
624
|
+
if (de = B(l), De = B(l, r.draggable), typeof f == "function") {
|
|
625
|
+
if (f.call(this, e, l, this)) {
|
|
625
626
|
A({
|
|
626
627
|
sortable: t,
|
|
627
628
|
rootEl: u,
|
|
628
629
|
name: "filter",
|
|
629
|
-
targetEl:
|
|
630
|
+
targetEl: l,
|
|
630
631
|
toEl: n,
|
|
631
632
|
fromEl: n
|
|
632
633
|
}), x("filter", t, {
|
|
@@ -634,35 +635,35 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
634
635
|
}), i && e.preventDefault();
|
|
635
636
|
return;
|
|
636
637
|
}
|
|
637
|
-
} else if (
|
|
638
|
+
} else if (f && (f = f.split(",").some(function(c) {
|
|
638
639
|
if (c = H(u, c.trim(), n, !1), c)
|
|
639
640
|
return A({
|
|
640
641
|
sortable: t,
|
|
641
642
|
rootEl: c,
|
|
642
643
|
name: "filter",
|
|
643
|
-
targetEl:
|
|
644
|
+
targetEl: l,
|
|
644
645
|
fromEl: n,
|
|
645
646
|
toEl: n
|
|
646
647
|
}), x("filter", t, {
|
|
647
648
|
evt: e
|
|
648
649
|
}), !0;
|
|
649
|
-
}),
|
|
650
|
+
}), f)) {
|
|
650
651
|
i && e.preventDefault();
|
|
651
652
|
return;
|
|
652
653
|
}
|
|
653
|
-
r.handle && !H(u, r.handle, n, !1) || this._prepareDragStart(e,
|
|
654
|
+
r.handle && !H(u, r.handle, n, !1) || this._prepareDragStart(e, s, l);
|
|
654
655
|
}
|
|
655
656
|
}
|
|
656
657
|
},
|
|
657
658
|
_prepareDragStart: function(e, t, n) {
|
|
658
|
-
var r = this, i = r.el, a = r.options,
|
|
659
|
+
var r = this, i = r.el, a = r.options, s = i.ownerDocument, l;
|
|
659
660
|
if (n && !d && n.parentNode === i) {
|
|
660
661
|
var u = C(n);
|
|
661
662
|
if (E = i, d = n, T = d.parentNode, ae = d.nextSibling, Re = n, Oe = a.group, g.dragged = d, re = {
|
|
662
663
|
target: d,
|
|
663
664
|
clientX: (t || e).clientX,
|
|
664
665
|
clientY: (t || e).clientY
|
|
665
|
-
}, vt = re.clientX - u.left, bt = re.clientY - u.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, d.style["will-change"] = "all",
|
|
666
|
+
}, vt = re.clientX - u.left, bt = re.clientY - u.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, d.style["will-change"] = "all", l = function() {
|
|
666
667
|
if (x("delayEnded", r, {
|
|
667
668
|
evt: e
|
|
668
669
|
}), g.eventCanceled) {
|
|
@@ -674,18 +675,18 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
674
675
|
name: "choose",
|
|
675
676
|
originalEvent: e
|
|
676
677
|
}), L(d, a.chosenClass, !0);
|
|
677
|
-
}, a.ignore.split(",").forEach(function(
|
|
678
|
-
At(d,
|
|
679
|
-
}), w(
|
|
678
|
+
}, a.ignore.split(",").forEach(function(f) {
|
|
679
|
+
At(d, f.trim(), Ke);
|
|
680
|
+
}), w(s, "dragover", ie), w(s, "mousemove", ie), w(s, "touchmove", ie), a.supportPointer ? (w(s, "pointerup", r._onDrop), !this.nativeDraggable && w(s, "pointercancel", r._onDrop)) : (w(s, "mouseup", r._onDrop), w(s, "touchend", r._onDrop), w(s, "touchcancel", r._onDrop)), ht && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), x("delayStart", this, {
|
|
680
681
|
evt: e
|
|
681
682
|
}), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Ce || V))) {
|
|
682
683
|
if (g.eventCanceled) {
|
|
683
684
|
this._onDrop();
|
|
684
685
|
return;
|
|
685
686
|
}
|
|
686
|
-
a.supportPointer ? (w(
|
|
687
|
+
a.supportPointer ? (w(s, "pointerup", r._disableDelayedDrag), w(s, "pointercancel", r._disableDelayedDrag)) : (w(s, "mouseup", r._disableDelayedDrag), w(s, "touchend", r._disableDelayedDrag), w(s, "touchcancel", r._disableDelayedDrag)), w(s, "mousemove", r._delayedDragTouchMoveHandler), w(s, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && w(s, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(l, a.delay);
|
|
687
688
|
} else
|
|
688
|
-
|
|
689
|
+
l();
|
|
689
690
|
}
|
|
690
691
|
},
|
|
691
692
|
_delayedDragTouchMoveHandler: function(e) {
|
|
@@ -693,7 +694,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
693
694
|
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();
|
|
694
695
|
},
|
|
695
696
|
_disableDelayedDrag: function() {
|
|
696
|
-
d &&
|
|
697
|
+
d && Ke(d), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
697
698
|
},
|
|
698
699
|
_disableDelayedDragEvents: function() {
|
|
699
700
|
var e = this.el.ownerDocument;
|
|
@@ -712,7 +713,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
712
713
|
if (ue = !1, E && d) {
|
|
713
714
|
x("dragStarted", this, {
|
|
714
715
|
evt: t
|
|
715
|
-
}), this.nativeDraggable && w(document, "dragover",
|
|
716
|
+
}), this.nativeDraggable && w(document, "dragover", fn);
|
|
716
717
|
var n = this.options;
|
|
717
718
|
!e && L(d, n.dragClass, !1), L(d, n.ghostClass, !0), g.active = this, e && this._appendGhost(), A({
|
|
718
719
|
sortable: this,
|
|
@@ -746,23 +747,23 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
746
747
|
},
|
|
747
748
|
_onTouchMove: function(e) {
|
|
748
749
|
if (re) {
|
|
749
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = b && ce(b, !0),
|
|
750
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = b && ce(b, !0), s = b && a && a.a, l = b && a && a.d, u = xe && M && gt(M), f = (i.clientX - re.clientX + r.x) / (s || 1) + (u ? u[0] - Ze[0] : 0) / (s || 1), c = (i.clientY - re.clientY + r.y) / (l || 1) + (u ? u[1] - Ze[1] : 0) / (l || 1);
|
|
750
751
|
if (!g.active && !ue) {
|
|
751
752
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n)
|
|
752
753
|
return;
|
|
753
754
|
this._onDragStart(e, !0);
|
|
754
755
|
}
|
|
755
756
|
if (b) {
|
|
756
|
-
a ? (a.e +=
|
|
757
|
+
a ? (a.e += f - (qe || 0), a.f += c - (Ve || 0)) : a = {
|
|
757
758
|
a: 1,
|
|
758
759
|
b: 0,
|
|
759
760
|
c: 0,
|
|
760
761
|
d: 1,
|
|
761
|
-
e:
|
|
762
|
+
e: f,
|
|
762
763
|
f: c
|
|
763
764
|
};
|
|
764
|
-
var
|
|
765
|
-
m(b, "webkitTransform",
|
|
765
|
+
var h = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
766
|
+
m(b, "webkitTransform", h), m(b, "mozTransform", h), m(b, "msTransform", h), m(b, "transform", h), qe = f, Ve = c, k = i;
|
|
766
767
|
}
|
|
767
768
|
e.cancelable && e.preventDefault();
|
|
768
769
|
}
|
|
@@ -773,7 +774,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
773
774
|
if (xe) {
|
|
774
775
|
for (M = e; m(M, "position") === "static" && m(M, "transform") === "none" && M !== document; )
|
|
775
776
|
M = M.parentNode;
|
|
776
|
-
M !== document.body && M !== document.documentElement ? (M === document && (M =
|
|
777
|
+
M !== document.body && M !== document.documentElement ? (M === document && (M = G()), t.top += M.scrollTop, t.left += M.scrollLeft) : M = G(), Ze = gt(M);
|
|
777
778
|
}
|
|
778
779
|
b = d.cloneNode(!0), L(b, n.ghostClass, !1), L(b, n.fallbackClass, !0), L(b, n.dragClass, !0), m(b, "transition", ""), m(b, "transform", ""), m(b, "box-sizing", "border-box"), m(b, "margin", 0), m(b, "top", t.top), m(b, "left", t.left), m(b, "width", t.width), m(b, "height", t.height), m(b, "opacity", "0.8"), m(b, "position", xe ? "absolute" : "fixed"), m(b, "zIndex", "100000"), m(b, "pointerEvents", "none"), g.ghost = b, e.appendChild(b), m(b, "transform-origin", vt / parseInt(b.style.width) * 100 + "% " + bt / parseInt(b.style.height) * 100 + "%");
|
|
779
780
|
}
|
|
@@ -791,42 +792,42 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
791
792
|
sortable: n,
|
|
792
793
|
name: "clone"
|
|
793
794
|
}));
|
|
794
|
-
}), !t && L(d, i.dragClass, !0), t ? (
|
|
795
|
+
}), !t && L(d, i.dragClass, !0), t ? (ke = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (_(document, "mouseup", n._onDrop), _(document, "touchend", n._onDrop), _(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, d)), w(document, "drop", n), m(d, "transform", "translateZ(0)")), ue = !0, n._dragStartId = Fe(n._dragStarted.bind(n, t, e)), w(document, "selectstart", n), be = !0, window.getSelection().removeAllRanges(), ye && m(document.body, "user-select", "none");
|
|
795
796
|
},
|
|
796
797
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
797
798
|
_onDragOver: function(e) {
|
|
798
|
-
var t = this.el, n = e.target, r, i, a,
|
|
799
|
+
var t = this.el, n = e.target, r, i, a, s = this.options, l = s.group, u = g.active, f = Oe === l, c = s.sort, h = I || u, p, v = this, y = !1;
|
|
799
800
|
if (tt) return;
|
|
800
801
|
function X(ve, Ht) {
|
|
801
802
|
x(ve, v, U({
|
|
802
803
|
evt: e,
|
|
803
|
-
isOwner:
|
|
804
|
+
isOwner: f,
|
|
804
805
|
axis: p ? "vertical" : "horizontal",
|
|
805
806
|
revert: a,
|
|
806
807
|
dragRect: r,
|
|
807
808
|
targetRect: i,
|
|
808
809
|
canSort: c,
|
|
809
|
-
fromSortable:
|
|
810
|
+
fromSortable: h,
|
|
810
811
|
target: n,
|
|
811
812
|
completed: O,
|
|
812
|
-
onMove: function(dt,
|
|
813
|
-
return Pe(E, t, d, r, dt, C(dt), e,
|
|
813
|
+
onMove: function(dt, $t) {
|
|
814
|
+
return Pe(E, t, d, r, dt, C(dt), e, $t);
|
|
814
815
|
},
|
|
815
816
|
changed: Y
|
|
816
817
|
}, Ht));
|
|
817
818
|
}
|
|
818
819
|
function W() {
|
|
819
|
-
X("dragOverAnimationCapture"), v.captureAnimationState(), v !==
|
|
820
|
+
X("dragOverAnimationCapture"), v.captureAnimationState(), v !== h && h.captureAnimationState();
|
|
820
821
|
}
|
|
821
822
|
function O(ve) {
|
|
822
823
|
return X("dragOverCompleted", {
|
|
823
824
|
insertion: ve
|
|
824
|
-
}), ve && (
|
|
825
|
+
}), ve && (f ? u._hideClone() : u._showClone(v), v !== h && (L(d, I ? I.options.ghostClass : u.options.ghostClass, !1), L(d, s.ghostClass, !0)), I !== v && v !== g.active ? I = v : v === g.active && I && (I = null), h === v && (v._ignoreWhileAnimating = n), v.animateAll(function() {
|
|
825
826
|
X("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
|
|
826
|
-
}), v !==
|
|
827
|
+
}), v !== h && (h.animateAll(), h._ignoreWhileAnimating = null)), (n === d && !d.animated || n === t && !n.animated) && (se = null), !s.dragoverBubble && !e.rootEl && n !== document && (d.parentNode[P]._isOutsideThisEl(e.target), !ve && ie(e)), !s.dragoverBubble && e.stopPropagation && e.stopPropagation(), y = !0;
|
|
827
828
|
}
|
|
828
829
|
function Y() {
|
|
829
|
-
F = B(d), J = B(d,
|
|
830
|
+
F = B(d), J = B(d, s.draggable), A({
|
|
830
831
|
sortable: v,
|
|
831
832
|
name: "change",
|
|
832
833
|
toEl: t,
|
|
@@ -835,44 +836,44 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
835
836
|
originalEvent: e
|
|
836
837
|
});
|
|
837
838
|
}
|
|
838
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = H(n,
|
|
839
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = H(n, s.draggable, t, !0), X("dragOver"), g.eventCanceled) return y;
|
|
839
840
|
if (d.contains(e.target) || n.animated && n.animatingX && n.animatingY || v._ignoreWhileAnimating === n)
|
|
840
841
|
return O(!1);
|
|
841
|
-
if (
|
|
842
|
+
if (ke = !1, u && !s.disabled && (f ? c || (a = T !== E) : I === this || (this.lastPutMode = Oe.checkPull(this, u, d, e)) && l.checkPut(this, u, d, e))) {
|
|
842
843
|
if (p = this._getDirection(e, n) === "vertical", r = C(d), X("dragOverValid"), g.eventCanceled) return y;
|
|
843
844
|
if (a)
|
|
844
845
|
return T = E, W(), this._hideClone(), X("revert"), g.eventCanceled || (ae ? E.insertBefore(d, ae) : E.appendChild(d)), O(!0);
|
|
845
|
-
var N = lt(t,
|
|
846
|
-
if (!N ||
|
|
846
|
+
var N = lt(t, s.draggable);
|
|
847
|
+
if (!N || gn(e, p, this) && !N.animated) {
|
|
847
848
|
if (N === d)
|
|
848
849
|
return O(!1);
|
|
849
850
|
if (N && t === e.target && (n = N), n && (i = C(n)), Pe(E, t, d, r, n, i, e, !!n) !== !1)
|
|
850
851
|
return W(), N && N.nextSibling ? t.insertBefore(d, N.nextSibling) : t.appendChild(d), T = t, Y(), O(!0);
|
|
851
|
-
} else if (N &&
|
|
852
|
-
var te = fe(t, 0,
|
|
852
|
+
} else if (N && mn(e, p, this)) {
|
|
853
|
+
var te = fe(t, 0, s, !0);
|
|
853
854
|
if (te === d)
|
|
854
855
|
return O(!1);
|
|
855
856
|
if (n = te, i = C(n), Pe(E, t, d, r, n, i, e, !1) !== !1)
|
|
856
857
|
return W(), t.insertBefore(d, te), T = t, Y(), O(!0);
|
|
857
858
|
} else if (n.parentNode === t) {
|
|
858
859
|
i = C(n);
|
|
859
|
-
var
|
|
860
|
-
se !== n && (ne = i[pe], Se = !1, Ae = !R &&
|
|
860
|
+
var $ = 0, ne, he = d.parentNode !== t, R = !dn(d.animated && d.toRect || r, n.animated && n.toRect || i, p), pe = p ? "top" : "left", Z = mt(n, "top", "top") || mt(d, "top", "top"), me = Z ? Z.scrollTop : void 0;
|
|
861
|
+
se !== n && (ne = i[pe], Se = !1, Ae = !R && s.invertSwap || he), $ = vn(e, n, i, p, R ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, Ae, se === n);
|
|
861
862
|
var z;
|
|
862
|
-
if (
|
|
863
|
+
if ($ !== 0) {
|
|
863
864
|
var oe = B(d);
|
|
864
865
|
do
|
|
865
|
-
oe -=
|
|
866
|
+
oe -= $, z = T.children[oe];
|
|
866
867
|
while (z && (m(z, "display") === "none" || z === b));
|
|
867
868
|
}
|
|
868
|
-
if (
|
|
869
|
+
if ($ === 0 || z === n)
|
|
869
870
|
return O(!1);
|
|
870
|
-
se = n, Te =
|
|
871
|
+
se = n, Te = $;
|
|
871
872
|
var ge = n.nextElementSibling, K = !1;
|
|
872
|
-
K =
|
|
873
|
+
K = $ === 1;
|
|
873
874
|
var Me = Pe(E, t, d, r, n, i, e, K);
|
|
874
875
|
if (Me !== !1)
|
|
875
|
-
return (Me === 1 || Me === -1) && (K = Me === 1), tt = !0, setTimeout(
|
|
876
|
+
return (Me === 1 || Me === -1) && (K = Me === 1), tt = !0, setTimeout(pn, 30), W(), K && !ge ? t.appendChild(d) : n.parentNode.insertBefore(d, K ? ge : n), Z && Pt(Z, 0, me - Z.scrollTop), T = d.parentNode, ne !== void 0 && !Ae && (Le = Math.abs(ne - C(n)[pe])), Y(), O(!0);
|
|
876
877
|
}
|
|
877
878
|
if (t.contains(d))
|
|
878
879
|
return O(!1);
|
|
@@ -895,7 +896,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
895
896
|
this._nulling();
|
|
896
897
|
return;
|
|
897
898
|
}
|
|
898
|
-
ue = !1, Ae = !1, Se = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), nt(this.cloneId), nt(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), ye && m(document.body, "user-select", ""), m(d, "transform", ""), e && (be && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), b && b.parentNode && b.parentNode.removeChild(b), (E === T || I && I.lastPutMode !== "clone") && D && D.parentNode && D.parentNode.removeChild(D), d && (this.nativeDraggable && _(d, "dragend", this),
|
|
899
|
+
ue = !1, Ae = !1, Se = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), nt(this.cloneId), nt(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), ye && m(document.body, "user-select", ""), m(d, "transform", ""), e && (be && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), b && b.parentNode && b.parentNode.removeChild(b), (E === T || I && I.lastPutMode !== "clone") && D && D.parentNode && D.parentNode.removeChild(D), d && (this.nativeDraggable && _(d, "dragend", this), Ke(d), d.style["will-change"] = "", be && !ue && L(d, I ? I.options.ghostClass : this.options.ghostClass, !1), L(d, this.options.chosenClass, !1), A({
|
|
899
900
|
sortable: this,
|
|
900
901
|
name: "unchoose",
|
|
901
902
|
toEl: T,
|
|
@@ -942,9 +943,9 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
942
943
|
}), this.save()))), this._nulling();
|
|
943
944
|
},
|
|
944
945
|
_nulling: function() {
|
|
945
|
-
x("nulling", this), E = d = T = b = ae = D = Re = Q = re = k = be = F = J = de = De = se = Te = I = Oe = g.dragged = g.ghost = g.clone = g.active = null,
|
|
946
|
+
x("nulling", this), E = d = T = b = ae = D = Re = Q = re = k = be = F = J = de = De = se = Te = I = Oe = g.dragged = g.ghost = g.clone = g.active = null, $e.forEach(function(e) {
|
|
946
947
|
e.checked = !0;
|
|
947
|
-
}),
|
|
948
|
+
}), $e.length = qe = Ve = 0;
|
|
948
949
|
},
|
|
949
950
|
handleEvent: function(e) {
|
|
950
951
|
switch (e.type) {
|
|
@@ -954,7 +955,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
954
955
|
break;
|
|
955
956
|
case "dragenter":
|
|
956
957
|
case "dragover":
|
|
957
|
-
d && (this._onDragOver(e),
|
|
958
|
+
d && (this._onDragOver(e), hn(e));
|
|
958
959
|
break;
|
|
959
960
|
case "selectstart":
|
|
960
961
|
e.preventDefault();
|
|
@@ -967,7 +968,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
967
968
|
*/
|
|
968
969
|
toArray: function() {
|
|
969
970
|
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++)
|
|
970
|
-
t = n[r], H(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) ||
|
|
971
|
+
t = n[r], H(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || _n(t));
|
|
971
972
|
return e;
|
|
972
973
|
},
|
|
973
974
|
/**
|
|
@@ -977,8 +978,8 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
977
978
|
sort: function(e, t) {
|
|
978
979
|
var n = {}, r = this.el;
|
|
979
980
|
this.toArray().forEach(function(i, a) {
|
|
980
|
-
var
|
|
981
|
-
H(
|
|
981
|
+
var s = r.children[a];
|
|
982
|
+
H(s, this.options.draggable, r, !1) && (n[i] = s);
|
|
982
983
|
}, this), t && this.captureAnimationState(), e.forEach(function(i) {
|
|
983
984
|
n[i] && (r.removeChild(n[i]), r.appendChild(n[i]));
|
|
984
985
|
}), t && this.animateAll();
|
|
@@ -1020,7 +1021,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1020
1021
|
var e = this.el;
|
|
1021
1022
|
e[P] = null, _(e, "mousedown", this._onTapStart), _(e, "touchstart", this._onTapStart), _(e, "pointerdown", this._onTapStart), this.nativeDraggable && (_(e, "dragover", this), _(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(t) {
|
|
1022
1023
|
t.removeAttribute("draggable");
|
|
1023
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
1024
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), He.splice(He.indexOf(this.el), 1), this.el = e = null;
|
|
1024
1025
|
},
|
|
1025
1026
|
_hideClone: function() {
|
|
1026
1027
|
if (!Q) {
|
|
@@ -1039,56 +1040,56 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1039
1040
|
}
|
|
1040
1041
|
}
|
|
1041
1042
|
};
|
|
1042
|
-
function
|
|
1043
|
+
function hn(o) {
|
|
1043
1044
|
o.dataTransfer && (o.dataTransfer.dropEffect = "move"), o.cancelable && o.preventDefault();
|
|
1044
1045
|
}
|
|
1045
|
-
function Pe(o, e, t, n, r, i, a,
|
|
1046
|
-
var
|
|
1047
|
-
return window.CustomEvent && !V && !Ce ?
|
|
1046
|
+
function Pe(o, e, t, n, r, i, a, s) {
|
|
1047
|
+
var l, u = o[P], f = u.options.onMove, c;
|
|
1048
|
+
return window.CustomEvent && !V && !Ce ? l = new CustomEvent("move", {
|
|
1048
1049
|
bubbles: !0,
|
|
1049
1050
|
cancelable: !0
|
|
1050
|
-
}) : (
|
|
1051
|
+
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = e, l.from = o, l.dragged = t, l.draggedRect = n, l.related = r || e, l.relatedRect = i || C(e), l.willInsertAfter = s, l.originalEvent = a, o.dispatchEvent(l), f && (c = f.call(u, l, a)), c;
|
|
1051
1052
|
}
|
|
1052
|
-
function
|
|
1053
|
+
function Ke(o) {
|
|
1053
1054
|
o.draggable = !1;
|
|
1054
1055
|
}
|
|
1055
|
-
function
|
|
1056
|
+
function pn() {
|
|
1056
1057
|
tt = !1;
|
|
1057
1058
|
}
|
|
1058
|
-
function
|
|
1059
|
+
function mn(o, e, t) {
|
|
1059
1060
|
var n = C(fe(t.el, 0, t.options, !0)), r = Rt(t.el, t.options, b), i = 10;
|
|
1060
1061
|
return e ? o.clientX < r.left - i || o.clientY < n.top && o.clientX < n.right : o.clientY < r.top - i || o.clientY < n.bottom && o.clientX < n.left;
|
|
1061
1062
|
}
|
|
1062
|
-
function
|
|
1063
|
+
function gn(o, e, t) {
|
|
1063
1064
|
var n = C(lt(t.el, t.options.draggable)), r = Rt(t.el, t.options, b), i = 10;
|
|
1064
1065
|
return e ? o.clientX > r.right + i || o.clientY > n.bottom && o.clientX > n.left : o.clientY > r.bottom + i || o.clientX > n.right && o.clientY > n.top;
|
|
1065
1066
|
}
|
|
1066
|
-
function
|
|
1067
|
-
var
|
|
1067
|
+
function vn(o, e, t, n, r, i, a, s) {
|
|
1068
|
+
var l = n ? o.clientY : o.clientX, u = n ? t.height : t.width, f = n ? t.top : t.left, c = n ? t.bottom : t.right, h = !1;
|
|
1068
1069
|
if (!a) {
|
|
1069
|
-
if (
|
|
1070
|
-
if (!Se && (Te === 1 ?
|
|
1071
|
-
|
|
1072
|
-
else if (Te === 1 ?
|
|
1070
|
+
if (s && Le < u * r) {
|
|
1071
|
+
if (!Se && (Te === 1 ? l > f + u * i / 2 : l < c - u * i / 2) && (Se = !0), Se)
|
|
1072
|
+
h = !0;
|
|
1073
|
+
else if (Te === 1 ? l < f + Le : l > c - Le)
|
|
1073
1074
|
return -Te;
|
|
1074
|
-
} else if (
|
|
1075
|
-
return
|
|
1075
|
+
} else if (l > f + u * (1 - r) / 2 && l < c - u * (1 - r) / 2)
|
|
1076
|
+
return bn(e);
|
|
1076
1077
|
}
|
|
1077
|
-
return
|
|
1078
|
+
return h = h || a, h && (l < f + u * i / 2 || l > c - u * i / 2) ? l > f + u / 2 ? 1 : -1 : 0;
|
|
1078
1079
|
}
|
|
1079
|
-
function
|
|
1080
|
+
function bn(o) {
|
|
1080
1081
|
return B(d) < B(o) ? 1 : -1;
|
|
1081
1082
|
}
|
|
1082
|
-
function
|
|
1083
|
+
function _n(o) {
|
|
1083
1084
|
for (var e = o.tagName + o.className + o.src + o.href + o.textContent, t = e.length, n = 0; t--; )
|
|
1084
1085
|
n += e.charCodeAt(t);
|
|
1085
1086
|
return n.toString(36);
|
|
1086
1087
|
}
|
|
1087
|
-
function
|
|
1088
|
-
|
|
1088
|
+
function wn(o) {
|
|
1089
|
+
$e.length = 0;
|
|
1089
1090
|
for (var e = o.getElementsByTagName("input"), t = e.length; t--; ) {
|
|
1090
1091
|
var n = e[t];
|
|
1091
|
-
n.checked &&
|
|
1092
|
+
n.checked && $e.push(n);
|
|
1092
1093
|
}
|
|
1093
1094
|
}
|
|
1094
1095
|
function Fe(o) {
|
|
@@ -1097,7 +1098,7 @@ function Fe(o) {
|
|
|
1097
1098
|
function nt(o) {
|
|
1098
1099
|
return clearTimeout(o);
|
|
1099
1100
|
}
|
|
1100
|
-
|
|
1101
|
+
Ue && w(document, "touchmove", function(o) {
|
|
1101
1102
|
(g.active || ue) && o.cancelable && o.preventDefault();
|
|
1102
1103
|
});
|
|
1103
1104
|
g.utils = {
|
|
@@ -1108,7 +1109,7 @@ g.utils = {
|
|
|
1108
1109
|
is: function(e, t) {
|
|
1109
1110
|
return !!H(e, t, e, !1);
|
|
1110
1111
|
},
|
|
1111
|
-
extend:
|
|
1112
|
+
extend: tn,
|
|
1112
1113
|
throttle: xt,
|
|
1113
1114
|
closest: H,
|
|
1114
1115
|
toggleClass: L,
|
|
@@ -1135,9 +1136,9 @@ g.mount = function() {
|
|
|
1135
1136
|
g.create = function(o, e) {
|
|
1136
1137
|
return new g(o, e);
|
|
1137
1138
|
};
|
|
1138
|
-
g.version =
|
|
1139
|
-
var S = [], _e, ot, rt = !1,
|
|
1140
|
-
function
|
|
1139
|
+
g.version = Qt;
|
|
1140
|
+
var S = [], _e, ot, rt = !1, Je, Qe, Ge, we;
|
|
1141
|
+
function yn() {
|
|
1141
1142
|
function o() {
|
|
1142
1143
|
this.defaults = {
|
|
1143
1144
|
scroll: !0,
|
|
@@ -1159,29 +1160,29 @@ function wn() {
|
|
|
1159
1160
|
!this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
|
|
1160
1161
|
},
|
|
1161
1162
|
drop: function() {
|
|
1162
|
-
this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : (_(document, "pointermove", this._handleFallbackAutoScroll), _(document, "touchmove", this._handleFallbackAutoScroll), _(document, "mousemove", this._handleFallbackAutoScroll)), wt(), Be(),
|
|
1163
|
+
this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : (_(document, "pointermove", this._handleFallbackAutoScroll), _(document, "touchmove", this._handleFallbackAutoScroll), _(document, "mousemove", this._handleFallbackAutoScroll)), wt(), Be(), nn();
|
|
1163
1164
|
},
|
|
1164
1165
|
nulling: function() {
|
|
1165
|
-
Ge = ot = _e = rt = we =
|
|
1166
|
+
Ge = ot = _e = rt = we = Je = Qe = null, S.length = 0;
|
|
1166
1167
|
},
|
|
1167
1168
|
_handleFallbackAutoScroll: function(t) {
|
|
1168
1169
|
this._handleAutoScroll(t, !0);
|
|
1169
1170
|
},
|
|
1170
1171
|
_handleAutoScroll: function(t, n) {
|
|
1171
|
-
var r = this, i = (t.touches ? t.touches[0] : t).clientX, a = (t.touches ? t.touches[0] : t).clientY,
|
|
1172
|
+
var r = this, i = (t.touches ? t.touches[0] : t).clientX, a = (t.touches ? t.touches[0] : t).clientY, s = document.elementFromPoint(i, a);
|
|
1172
1173
|
if (Ge = t, n || this.options.forceAutoScrollFallback || Ce || V || ye) {
|
|
1173
|
-
|
|
1174
|
-
var
|
|
1175
|
-
rt && (!we || i !==
|
|
1174
|
+
et(t, this.options, s, n);
|
|
1175
|
+
var l = ee(s, !0);
|
|
1176
|
+
rt && (!we || i !== Je || a !== Qe) && (we && wt(), we = setInterval(function() {
|
|
1176
1177
|
var u = ee(document.elementFromPoint(i, a), !0);
|
|
1177
|
-
u !==
|
|
1178
|
-
}, 10),
|
|
1178
|
+
u !== l && (l = u, Be()), et(t, r.options, u, n);
|
|
1179
|
+
}, 10), Je = i, Qe = a);
|
|
1179
1180
|
} else {
|
|
1180
|
-
if (!this.options.bubbleScroll || ee(
|
|
1181
|
+
if (!this.options.bubbleScroll || ee(s, !0) === G()) {
|
|
1181
1182
|
Be();
|
|
1182
1183
|
return;
|
|
1183
1184
|
}
|
|
1184
|
-
|
|
1185
|
+
et(t, this.options, ee(s, !1), !1);
|
|
1185
1186
|
}
|
|
1186
1187
|
}
|
|
1187
1188
|
}, q(o, {
|
|
@@ -1197,35 +1198,35 @@ function Be() {
|
|
|
1197
1198
|
function wt() {
|
|
1198
1199
|
clearInterval(we);
|
|
1199
1200
|
}
|
|
1200
|
-
var
|
|
1201
|
+
var et = xt(function(o, e, t, n) {
|
|
1201
1202
|
if (e.scroll) {
|
|
1202
|
-
var r = (o.touches ? o.touches[0] : o).clientX, i = (o.touches ? o.touches[0] : o).clientY, a = e.scrollSensitivity,
|
|
1203
|
-
ot !== t && (ot = t, Be(), _e = e.scroll,
|
|
1204
|
-
var c = 0,
|
|
1203
|
+
var r = (o.touches ? o.touches[0] : o).clientX, i = (o.touches ? o.touches[0] : o).clientY, a = e.scrollSensitivity, s = e.scrollSpeed, l = G(), u = !1, f;
|
|
1204
|
+
ot !== t && (ot = t, Be(), _e = e.scroll, f = e.scrollFn, _e === !0 && (_e = ee(t, !0)));
|
|
1205
|
+
var c = 0, h = _e;
|
|
1205
1206
|
do {
|
|
1206
|
-
var p =
|
|
1207
|
-
p ===
|
|
1208
|
-
var me = te && (Math.abs(O - r) <= a && pe + Y < ne) - (Math.abs(W - r) <= a && !!pe), z =
|
|
1207
|
+
var p = h, v = C(p), y = v.top, X = v.bottom, W = v.left, O = v.right, Y = v.width, N = v.height, te = void 0, $ = void 0, ne = p.scrollWidth, he = p.scrollHeight, R = m(p), pe = p.scrollLeft, Z = p.scrollTop;
|
|
1208
|
+
p === l ? (te = Y < ne && (R.overflowX === "auto" || R.overflowX === "scroll" || R.overflowX === "visible"), $ = N < he && (R.overflowY === "auto" || R.overflowY === "scroll" || R.overflowY === "visible")) : (te = Y < ne && (R.overflowX === "auto" || R.overflowX === "scroll"), $ = N < he && (R.overflowY === "auto" || R.overflowY === "scroll"));
|
|
1209
|
+
var me = te && (Math.abs(O - r) <= a && pe + Y < ne) - (Math.abs(W - r) <= a && !!pe), z = $ && (Math.abs(X - i) <= a && Z + N < he) - (Math.abs(y - i) <= a && !!Z);
|
|
1209
1210
|
if (!S[c])
|
|
1210
1211
|
for (var oe = 0; oe <= c; oe++)
|
|
1211
1212
|
S[oe] || (S[oe] = {});
|
|
1212
1213
|
(S[c].vx != me || S[c].vy != z || S[c].el !== p) && (S[c].el = p, S[c].vx = me, S[c].vy = z, clearInterval(S[c].pid), (me != 0 || z != 0) && (u = !0, S[c].pid = setInterval((function() {
|
|
1213
1214
|
n && this.layer === 0 && g.active._onTouchMove(Ge);
|
|
1214
|
-
var ge = S[this.layer].vy ? S[this.layer].vy *
|
|
1215
|
-
typeof
|
|
1215
|
+
var ge = S[this.layer].vy ? S[this.layer].vy * s : 0, K = S[this.layer].vx ? S[this.layer].vx * s : 0;
|
|
1216
|
+
typeof f == "function" && f.call(g.dragged.parentNode[P], K, ge, o, Ge, S[this.layer].el) !== "continue" || Pt(S[this.layer].el, K, ge);
|
|
1216
1217
|
}).bind({
|
|
1217
1218
|
layer: c
|
|
1218
1219
|
}), 24))), c++;
|
|
1219
|
-
} while (e.bubbleScroll &&
|
|
1220
|
+
} while (e.bubbleScroll && h !== l && (h = ee(h, !1)));
|
|
1220
1221
|
rt = u;
|
|
1221
1222
|
}
|
|
1222
1223
|
}, 30), kt = function(e) {
|
|
1223
|
-
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent,
|
|
1224
|
+
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, s = e.hideGhostForTarget, l = e.unhideGhostForTarget;
|
|
1224
1225
|
if (t) {
|
|
1225
1226
|
var u = n || i;
|
|
1226
|
-
|
|
1227
|
-
var
|
|
1228
|
-
|
|
1227
|
+
s();
|
|
1228
|
+
var f = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t, c = document.elementFromPoint(f.clientX, f.clientY);
|
|
1229
|
+
l(), u && !u.el.contains(c) && (a("spill"), this.onSpill({
|
|
1229
1230
|
dragEl: r,
|
|
1230
1231
|
putSortable: n
|
|
1231
1232
|
}));
|
|
@@ -1262,18 +1263,18 @@ ut.prototype = {
|
|
|
1262
1263
|
q(ut, {
|
|
1263
1264
|
pluginName: "removeOnSpill"
|
|
1264
1265
|
});
|
|
1265
|
-
g.mount(new
|
|
1266
|
+
g.mount(new yn());
|
|
1266
1267
|
g.mount(ut, st);
|
|
1267
|
-
function
|
|
1268
|
-
const n =
|
|
1269
|
-
var
|
|
1270
|
-
(
|
|
1268
|
+
function jn(o, e = Xe({}), t) {
|
|
1269
|
+
const n = Xe(null), r = () => {
|
|
1270
|
+
var h;
|
|
1271
|
+
(h = n.value) != null && h.destroy && (n.value.destroy(), n.value = null);
|
|
1271
1272
|
};
|
|
1272
1273
|
if (ct(
|
|
1273
1274
|
o,
|
|
1274
|
-
(
|
|
1275
|
-
if (
|
|
1276
|
-
const p = new g(
|
|
1275
|
+
(h) => {
|
|
1276
|
+
if (h != null) {
|
|
1277
|
+
const p = new g(h, {
|
|
1277
1278
|
...e.value,
|
|
1278
1279
|
/**
|
|
1279
1280
|
* Allows the component to be dragged only
|
|
@@ -1285,43 +1286,43 @@ function Wn(o, e = et({}), t) {
|
|
|
1285
1286
|
*/
|
|
1286
1287
|
filter: ".b-draggable-handle--disabled"
|
|
1287
1288
|
});
|
|
1288
|
-
n.value =
|
|
1289
|
+
n.value = Gt(p);
|
|
1289
1290
|
} else
|
|
1290
1291
|
r();
|
|
1291
1292
|
},
|
|
1292
1293
|
{ immediate: !0 }
|
|
1293
|
-
), ct(e, (
|
|
1294
|
-
if (
|
|
1295
|
-
for (const p in
|
|
1296
|
-
n.value.option(p,
|
|
1294
|
+
), ct(e, (h) => {
|
|
1295
|
+
if (h && n.value)
|
|
1296
|
+
for (const p in h)
|
|
1297
|
+
n.value.option(p, h[p]);
|
|
1297
1298
|
}), St(() => {
|
|
1298
1299
|
n.value && r();
|
|
1299
1300
|
}), !t)
|
|
1300
1301
|
return { draggableElement: n };
|
|
1301
|
-
const { getItemCount: i, getItemIndex: a, onMoveItem:
|
|
1302
|
+
const { getItemCount: i, getItemIndex: a, onMoveItem: s } = t, l = (h, p) => {
|
|
1302
1303
|
const v = i();
|
|
1303
|
-
|
|
1304
|
-
}, u = (
|
|
1305
|
-
const v = a(
|
|
1306
|
-
|
|
1307
|
-
},
|
|
1308
|
-
const v = a(
|
|
1309
|
-
|
|
1304
|
+
h < 0 || p < 0 || h >= v || p >= v || h === p || s(h, p);
|
|
1305
|
+
}, u = (h, p) => {
|
|
1306
|
+
const v = a(h);
|
|
1307
|
+
l(v, v + p);
|
|
1308
|
+
}, f = (h, p) => {
|
|
1309
|
+
const v = a(h);
|
|
1310
|
+
l(v, p);
|
|
1310
1311
|
};
|
|
1311
1312
|
return {
|
|
1312
1313
|
/** The underlying SortableJS instance. */
|
|
1313
1314
|
draggableElement: n,
|
|
1314
1315
|
/** Moves the given element one position up. */
|
|
1315
|
-
moveItemUp: (
|
|
1316
|
+
moveItemUp: (h) => u(h, -1),
|
|
1316
1317
|
/** Moves the given element one position down. */
|
|
1317
|
-
moveItemDown: (
|
|
1318
|
+
moveItemDown: (h) => u(h, 1),
|
|
1318
1319
|
/** Moves the given element to the first position. */
|
|
1319
|
-
moveItemTop: (
|
|
1320
|
+
moveItemTop: (h) => f(h, 0),
|
|
1320
1321
|
/** Moves the given element to the last position. */
|
|
1321
|
-
moveItemBottom: (
|
|
1322
|
+
moveItemBottom: (h) => f(h, i() - 1),
|
|
1322
1323
|
/** Returns which directional actions are disabled for the given element. */
|
|
1323
|
-
getDisabledMenus: (
|
|
1324
|
-
const p = a(
|
|
1324
|
+
getDisabledMenus: (h) => {
|
|
1325
|
+
const p = a(h), v = i();
|
|
1325
1326
|
return {
|
|
1326
1327
|
up: p <= 0,
|
|
1327
1328
|
top: p <= 0,
|
|
@@ -1333,23 +1334,23 @@ function Wn(o, e = et({}), t) {
|
|
|
1333
1334
|
}
|
|
1334
1335
|
};
|
|
1335
1336
|
}
|
|
1336
|
-
const
|
|
1337
|
-
function
|
|
1338
|
-
const o =
|
|
1337
|
+
const En = 1e3;
|
|
1338
|
+
function qn() {
|
|
1339
|
+
const o = Xe("");
|
|
1339
1340
|
let e = null;
|
|
1340
1341
|
const { t } = Ct(), n = () => {
|
|
1341
1342
|
e && (clearTimeout(e), e = null);
|
|
1342
1343
|
}, r = (a) => {
|
|
1343
1344
|
n(), o.value = "", e = setTimeout(() => {
|
|
1344
1345
|
o.value = a, e = null;
|
|
1345
|
-
},
|
|
1346
|
-
}, i = ({ itemLabel: a, fromIndex:
|
|
1347
|
-
if (
|
|
1346
|
+
}, En);
|
|
1347
|
+
}, i = ({ itemLabel: a, fromIndex: s, toIndex: l, total: u, announcement: f = "" }) => {
|
|
1348
|
+
if (f === "disabled" || s === l)
|
|
1348
1349
|
return;
|
|
1349
|
-
const c =
|
|
1350
|
+
const c = f || t("youHaveMovedFromPositionToPosition", {
|
|
1350
1351
|
itemLabel: a,
|
|
1351
|
-
indexOrigin:
|
|
1352
|
-
indexTarget:
|
|
1352
|
+
indexOrigin: s + 1,
|
|
1353
|
+
indexTarget: l + 1,
|
|
1353
1354
|
total: u
|
|
1354
1355
|
});
|
|
1355
1356
|
r(c);
|
|
@@ -1372,41 +1373,41 @@ function zn() {
|
|
|
1372
1373
|
};
|
|
1373
1374
|
}
|
|
1374
1375
|
let yt = 0;
|
|
1375
|
-
const
|
|
1376
|
+
const Dn = {
|
|
1376
1377
|
beforeCreate() {
|
|
1377
1378
|
this.uuid = yt.toString(), yt += 1;
|
|
1378
1379
|
}
|
|
1379
1380
|
};
|
|
1380
|
-
var
|
|
1381
|
+
var Tn = function() {
|
|
1381
1382
|
var e = this, t = e._self._c;
|
|
1382
1383
|
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { fill: "#001222", d: "M8.75023 3.81089L13.0001 8.06077L14.0608 7.00011L8.00011 0.939453L1.93945 7.00011L3.00011 8.06077L7.25023 3.81066V14.7502H8.75023V3.81089Z" } })]);
|
|
1383
|
-
},
|
|
1384
|
-
En,
|
|
1384
|
+
}, Sn = [], Cn = /* @__PURE__ */ it(
|
|
1385
1385
|
Dn,
|
|
1386
1386
|
Tn,
|
|
1387
|
+
Sn,
|
|
1387
1388
|
!1,
|
|
1388
1389
|
null,
|
|
1389
1390
|
null
|
|
1390
1391
|
);
|
|
1391
|
-
const Et =
|
|
1392
|
+
const Et = Cn.exports;
|
|
1392
1393
|
let Dt = 0;
|
|
1393
|
-
const
|
|
1394
|
+
const In = {
|
|
1394
1395
|
beforeCreate() {
|
|
1395
1396
|
this.uuid = Dt.toString(), Dt += 1;
|
|
1396
1397
|
}
|
|
1397
1398
|
};
|
|
1398
|
-
var
|
|
1399
|
+
var Mn = function() {
|
|
1399
1400
|
var e = this, t = e._self._c;
|
|
1400
1401
|
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { fill: "#001222", d: "M7.25434 12.1937L3.00011 7.93952L1.93945 9.00018L8.00011 15.0608L14.0608 9.00018L13.0001 7.93952L8.75433 12.1853L8.74316 1.24951L7.24316 1.25104L7.25434 12.1937Z" } })]);
|
|
1401
|
-
},
|
|
1402
|
-
Cn,
|
|
1402
|
+
}, On = [], An = /* @__PURE__ */ it(
|
|
1403
1403
|
In,
|
|
1404
1404
|
Mn,
|
|
1405
|
+
On,
|
|
1405
1406
|
!1,
|
|
1406
1407
|
null,
|
|
1407
1408
|
null
|
|
1408
1409
|
);
|
|
1409
|
-
const Tt =
|
|
1410
|
+
const Tt = An.exports, xn = {
|
|
1410
1411
|
"de-DE": {
|
|
1411
1412
|
moveDown: "Nach unten",
|
|
1412
1413
|
moveLeft: "Nach links",
|
|
@@ -1497,11 +1498,11 @@ const Tt = On.exports, An = {
|
|
|
1497
1498
|
moveUp: "上移",
|
|
1498
1499
|
reorderLabel: "重新排序 {label}"
|
|
1499
1500
|
}
|
|
1500
|
-
},
|
|
1501
|
-
i18n: { messages:
|
|
1501
|
+
}, Pn = {
|
|
1502
|
+
i18n: { messages: xn },
|
|
1502
1503
|
name: "bento-draggable-handle"
|
|
1503
|
-
},
|
|
1504
|
-
...
|
|
1504
|
+
}, Nn = /* @__PURE__ */ Ut({
|
|
1505
|
+
...Pn,
|
|
1505
1506
|
props: {
|
|
1506
1507
|
condensed: { default: !1 },
|
|
1507
1508
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -1511,21 +1512,21 @@ const Tt = On.exports, An = {
|
|
|
1511
1512
|
},
|
|
1512
1513
|
emits: ["move-bottom", "move-down", "move-left", "move-right", "move-top", "move-up"],
|
|
1513
1514
|
setup(o, { emit: e }) {
|
|
1514
|
-
const t = o, { t: n } = Ct(), r =
|
|
1515
|
+
const t = o, { t: n } = Ct(), r = Xe(null), i = We(
|
|
1515
1516
|
() => ({
|
|
1516
1517
|
"aria-label": n("reorderLabel", { label: t.label }),
|
|
1517
1518
|
condensed: t.condensed,
|
|
1518
1519
|
disabled: t.disabled,
|
|
1519
1520
|
variant: "tertiary"
|
|
1520
1521
|
})
|
|
1521
|
-
),
|
|
1522
|
+
), a = We(() => ({
|
|
1522
1523
|
/**
|
|
1523
1524
|
* Disables the handle and prevents the entire
|
|
1524
1525
|
* element from being dragged.
|
|
1525
1526
|
* Used by `useBentoDraggable`
|
|
1526
1527
|
*/
|
|
1527
1528
|
"b-draggable-handle--disabled": t.disabled
|
|
1528
|
-
})),
|
|
1529
|
+
})), s = We(() => {
|
|
1529
1530
|
const l = {
|
|
1530
1531
|
up: {
|
|
1531
1532
|
text: n("moveUp"),
|
|
@@ -1543,13 +1544,13 @@ const Tt = On.exports, An = {
|
|
|
1543
1544
|
text: n("moveLeft"),
|
|
1544
1545
|
handler: () => e("move-left"),
|
|
1545
1546
|
disabled: t.disabledMenus.left,
|
|
1546
|
-
icon:
|
|
1547
|
+
icon: qt
|
|
1547
1548
|
},
|
|
1548
1549
|
right: {
|
|
1549
1550
|
text: n("moveRight"),
|
|
1550
1551
|
handler: () => e("move-right"),
|
|
1551
1552
|
disabled: t.disabledMenus.right,
|
|
1552
|
-
icon:
|
|
1553
|
+
icon: Vt
|
|
1553
1554
|
},
|
|
1554
1555
|
top: {
|
|
1555
1556
|
text: n("moveToTheTop"),
|
|
@@ -1586,26 +1587,30 @@ const Tt = On.exports, An = {
|
|
|
1586
1587
|
l.bottom
|
|
1587
1588
|
];
|
|
1588
1589
|
});
|
|
1589
|
-
return
|
|
1590
|
+
return zt(document, "dragstart", () => {
|
|
1591
|
+
var u, f, c;
|
|
1592
|
+
const l = (f = (u = r.value) == null ? void 0 : u.$refs) == null ? void 0 : f.popoverRef;
|
|
1593
|
+
l && !Array.isArray(l) && "$el" in l && l.$el instanceof HTMLElement && (l.$el.style.display = "none"), (c = r.value) == null || c.closeMenu(!1);
|
|
1594
|
+
}), { __sfc: !0, t: n, props: t, emit: e, menuRef: r, buttonComputedProps: i, computedClasses: a, menuData: s, BentoMenu: Wt, GrabIcon: jt };
|
|
1590
1595
|
}
|
|
1591
1596
|
});
|
|
1592
|
-
var
|
|
1597
|
+
var Rn = function() {
|
|
1593
1598
|
var e = this, t = e._self._c, n = e._self._setupProxy;
|
|
1594
|
-
return t(n.BentoMenu, { staticClass: "b-draggable-handle", class: n.computedClasses, attrs: { data: n.menuData, "menu-width": 250, button: n.buttonComputedProps }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
1599
|
+
return t(n.BentoMenu, { ref: "menuRef", staticClass: "b-draggable-handle", class: n.computedClasses, attrs: { data: n.menuData, "menu-width": 250, button: n.buttonComputedProps }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
1595
1600
|
return [t("span", { staticClass: "b-draggable-handle__icon" }, [t(n.GrabIcon, { attrs: { "aria-hidden": "true" } })], 1)];
|
|
1596
1601
|
}, proxy: !0 }]) });
|
|
1597
|
-
},
|
|
1598
|
-
Pn,
|
|
1602
|
+
}, Ln = [], Fn = /* @__PURE__ */ it(
|
|
1599
1603
|
Nn,
|
|
1600
1604
|
Rn,
|
|
1605
|
+
Ln,
|
|
1601
1606
|
!1,
|
|
1602
1607
|
null,
|
|
1603
|
-
"
|
|
1608
|
+
"fba060b5"
|
|
1604
1609
|
);
|
|
1605
|
-
const
|
|
1610
|
+
const Vn = Fn.exports;
|
|
1606
1611
|
export {
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1612
|
+
Vn as B,
|
|
1613
|
+
jn as a,
|
|
1614
|
+
qn as u
|
|
1610
1615
|
};
|
|
1611
|
-
//# sourceMappingURL=draggable-handle.
|
|
1616
|
+
//# sourceMappingURL=draggable-handle.BDUQTWrd.js.map
|