@adyen/bento-vue2 1.95.0 → 1.96.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 +77 -0
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable-handle.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/field-label.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/input-field-password.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/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/chunks/{calendar.ofn3G6eW.js → calendar.D0JIbmoS.js} +310 -304
- package/dist/chunks/calendar.D0JIbmoS.js.map +1 -0
- package/dist/chunks/{code-snippet.B3iCsNmb.js → code-snippet.lcQRsLdZ.js} +2 -2
- package/dist/chunks/{code-snippet.B3iCsNmb.js.map → code-snippet.lcQRsLdZ.js.map} +1 -1
- package/dist/chunks/{dashboard-section.HFJcf8-_.js → dashboard-section.DiGQXS9L.js} +2 -2
- package/dist/chunks/{dashboard-section.HFJcf8-_.js.map → dashboard-section.DiGQXS9L.js.map} +1 -1
- package/dist/chunks/{data-grid-template.BjfPUEoH.js → data-grid-template.BVppx9kZ.js} +2 -2
- package/dist/chunks/{data-grid-template.BjfPUEoH.js.map → data-grid-template.BVppx9kZ.js.map} +1 -1
- package/dist/chunks/{data-grid.Cua2Jxvq.js → data-grid.Djy7XjVS.js} +10 -10
- package/dist/chunks/{data-grid.Cua2Jxvq.js.map → data-grid.Djy7XjVS.js.map} +1 -1
- package/dist/chunks/{date-picker.CYDTf6De.js → date-picker.BWxvyK5J.js} +40 -40
- package/dist/chunks/date-picker.BWxvyK5J.js.map +1 -0
- package/dist/chunks/{date-range-picker.DGGvwRfn.js → date-range-picker.gfRJmzXn.js} +10 -10
- package/dist/chunks/{date-range-picker.DGGvwRfn.js.map → date-range-picker.gfRJmzXn.js.map} +1 -1
- package/dist/chunks/{date-time-picker.CyNb-xDm.js → date-time-picker.BIl9kFLh.js} +5 -5
- package/dist/chunks/{date-time-picker.CyNb-xDm.js.map → date-time-picker.BIl9kFLh.js.map} +1 -1
- package/dist/chunks/{draggable-handle.CU1L7J87.js → draggable-handle.DIhHtHG9.js} +530 -499
- package/dist/chunks/{draggable-handle.CU1L7J87.js.map → draggable-handle.DIhHtHG9.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.C1qg52L9.js → dropdown-tag.CuDxdSfb.js} +2 -2
- package/dist/chunks/{dropdown-tag.C1qg52L9.js.map → dropdown-tag.CuDxdSfb.js.map} +1 -1
- package/dist/chunks/{dropdown.BEurqT8m.js → dropdown.C70AlvOT.js} +264 -257
- package/dist/chunks/dropdown.C70AlvOT.js.map +1 -0
- package/dist/chunks/{filter-bar.gjMPoK6d.js → filter-bar.C6ZBgizQ.js} +15 -15
- package/dist/chunks/{filter-bar.gjMPoK6d.js.map → filter-bar.C6ZBgizQ.js.map} +1 -1
- package/dist/chunks/{header-with-views.B2Ok5KI1.js → header-with-views.m0xMmoav.js} +3 -3
- package/dist/chunks/{header-with-views.B2Ok5KI1.js.map → header-with-views.m0xMmoav.js.map} +1 -1
- package/dist/chunks/{input-field-password.viF49CQh.js → input-field-password.CRqYWZGS.js} +34 -34
- package/dist/chunks/input-field-password.CRqYWZGS.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.DnpTj7q5.js → input-field-phone-number.DHiuL0cF.js} +2 -2
- package/dist/chunks/{input-field-phone-number.DnpTj7q5.js.map → input-field-phone-number.DHiuL0cF.js.map} +1 -1
- package/dist/chunks/{input-field.D86PSAiu.js → input-field.BkQZ6Qzl.js} +2 -2
- package/dist/chunks/{input-field.D86PSAiu.js.map → input-field.BkQZ6Qzl.js.map} +1 -1
- package/dist/chunks/{input-time.LyKZXnVO.js → input-time.BiOHvUEA.js} +3 -3
- package/dist/chunks/{input-time.LyKZXnVO.js.map → input-time.BiOHvUEA.js.map} +1 -1
- package/dist/chunks/{pagination.CJ3d1O_s.js → pagination.DItyAwy1.js} +2 -2
- package/dist/chunks/{pagination.CJ3d1O_s.js.map → pagination.DItyAwy1.js.map} +1 -1
- package/dist/chunks/{search-bar.BvHhXdNu.js → search-bar.D-WK8eMQ.js} +3 -3
- package/dist/chunks/{search-bar.BvHhXdNu.js.map → search-bar.D-WK8eMQ.js.map} +1 -1
- package/dist/chunks/secondary-nav.C7lEDaoj.js +259 -0
- package/dist/chunks/{secondary-nav.BvbT8LXa.js.map → secondary-nav.C7lEDaoj.js.map} +1 -1
- package/dist/chunks/tab.QEKU5Udp.js +256 -0
- package/dist/chunks/{tab.YQXssvyU.js.map → tab.QEKU5Udp.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.txnml8sE.js → use-cached-selected-values.D0s14AxT.js} +2 -2
- package/dist/chunks/{use-cached-selected-values.txnml8sE.js.map → use-cached-selected-values.D0s14AxT.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.D7Ud6Ana.js → use-date-input-formatter.B5GQd3s2.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.D7Ud6Ana.js.map → use-date-input-formatter.B5GQd3s2.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.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 +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/index.js +22 -22
- 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/internal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/web-types.json +11 -1
- package/package.json +3 -3
- package/dist/chunks/calendar.ofn3G6eW.js.map +0 -1
- package/dist/chunks/date-picker.CYDTf6De.js.map +0 -1
- package/dist/chunks/dropdown.BEurqT8m.js.map +0 -1
- package/dist/chunks/input-field-password.viF49CQh.js.map +0 -1
- package/dist/chunks/secondary-nav.BvbT8LXa.js +0 -223
- package/dist/chunks/tab.YQXssvyU.js +0 -229
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { l as jt, m as
|
|
4
|
-
import { n as
|
|
1
|
+
import { ref as ae, watch as nt, markRaw as Wt, onUnmounted as Ct, defineComponent as Mt, computed as Re, nextTick as ht } from "vue";
|
|
2
|
+
import { u as Pt } from "./index.B6WW_F-J.js";
|
|
3
|
+
import { l as jt, m as Oe } from "./index.CJYgd0QI.js";
|
|
4
|
+
import { n as We } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
5
5
|
import { f as qt } from "./button-actions.D1jRC1fs.js";
|
|
6
6
|
import { G as Vt } from "./grab.BxiVZ1RZ.js";
|
|
7
7
|
/* empty css */
|
|
@@ -18,13 +18,13 @@ function pt(n, e) {
|
|
|
18
18
|
var o = Object.keys(n);
|
|
19
19
|
if (Object.getOwnPropertySymbols) {
|
|
20
20
|
var t = Object.getOwnPropertySymbols(n);
|
|
21
|
-
e && (t = t.filter(function(
|
|
22
|
-
return Object.getOwnPropertyDescriptor(n,
|
|
21
|
+
e && (t = t.filter(function(i) {
|
|
22
|
+
return Object.getOwnPropertyDescriptor(n, i).enumerable;
|
|
23
23
|
})), o.push.apply(o, t);
|
|
24
24
|
}
|
|
25
25
|
return o;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function K(n) {
|
|
28
28
|
for (var e = 1; e < arguments.length; e++) {
|
|
29
29
|
var o = arguments[e] != null ? arguments[e] : {};
|
|
30
30
|
e % 2 ? pt(Object(o), !0).forEach(function(t) {
|
|
@@ -51,49 +51,49 @@ function Jt(n, e, o) {
|
|
|
51
51
|
writable: !0
|
|
52
52
|
}) : n[e] = o, n;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
return
|
|
54
|
+
function te() {
|
|
55
|
+
return te = Object.assign || function(n) {
|
|
56
56
|
for (var e = 1; e < arguments.length; e++) {
|
|
57
57
|
var o = arguments[e];
|
|
58
58
|
for (var t in o)
|
|
59
59
|
Object.prototype.hasOwnProperty.call(o, t) && (n[t] = o[t]);
|
|
60
60
|
}
|
|
61
61
|
return n;
|
|
62
|
-
},
|
|
62
|
+
}, te.apply(this, arguments);
|
|
63
63
|
}
|
|
64
64
|
function Qt(n, e) {
|
|
65
65
|
if (n == null) return {};
|
|
66
|
-
var o = {}, t = Object.keys(n),
|
|
67
|
-
for (
|
|
68
|
-
|
|
66
|
+
var o = {}, t = Object.keys(n), i, r;
|
|
67
|
+
for (r = 0; r < t.length; r++)
|
|
68
|
+
i = t[r], !(e.indexOf(i) >= 0) && (o[i] = n[i]);
|
|
69
69
|
return o;
|
|
70
70
|
}
|
|
71
71
|
function eo(n, e) {
|
|
72
72
|
if (n == null) return {};
|
|
73
|
-
var o = Qt(n, e), t,
|
|
73
|
+
var o = Qt(n, e), t, i;
|
|
74
74
|
if (Object.getOwnPropertySymbols) {
|
|
75
|
-
var
|
|
76
|
-
for (
|
|
77
|
-
t = i
|
|
75
|
+
var r = Object.getOwnPropertySymbols(n);
|
|
76
|
+
for (i = 0; i < r.length; i++)
|
|
77
|
+
t = r[i], !(e.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(n, t) && (o[t] = n[t]);
|
|
78
78
|
}
|
|
79
79
|
return o;
|
|
80
80
|
}
|
|
81
81
|
var to = "1.15.6";
|
|
82
|
-
function
|
|
82
|
+
function ee(n) {
|
|
83
83
|
if (typeof window < "u" && window.navigator)
|
|
84
84
|
return !!/* @__PURE__ */ navigator.userAgent.match(n);
|
|
85
85
|
}
|
|
86
|
-
var
|
|
86
|
+
var oe = ee(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ce = ee(/Edge/i), mt = ee(/firefox/i), Ee = ee(/safari/i) && !ee(/chrome/i) && !ee(/android/i), st = ee(/iP(ad|od|hone)/i), Ot = ee(/chrome/i) && ee(/android/i), xt = {
|
|
87
87
|
capture: !1,
|
|
88
88
|
passive: !1
|
|
89
89
|
};
|
|
90
90
|
function y(n, e, o) {
|
|
91
|
-
n.addEventListener(e, o, !
|
|
91
|
+
n.addEventListener(e, o, !oe && xt);
|
|
92
92
|
}
|
|
93
93
|
function w(n, e, o) {
|
|
94
|
-
n.removeEventListener(e, o, !
|
|
94
|
+
n.removeEventListener(e, o, !oe && xt);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Ye(n, e) {
|
|
97
97
|
if (e) {
|
|
98
98
|
if (e[0] === ">" && (e = e.substring(1)), n)
|
|
99
99
|
try {
|
|
@@ -109,22 +109,22 @@ function $e(n, e) {
|
|
|
109
109
|
return !1;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function At(n) {
|
|
113
113
|
return n.host && n !== document && n.host.nodeType ? n.host : n.parentNode;
|
|
114
114
|
}
|
|
115
115
|
function j(n, e, o, t) {
|
|
116
116
|
if (n) {
|
|
117
117
|
o = o || document;
|
|
118
118
|
do {
|
|
119
|
-
if (e != null && (e[0] === ">" ? n.parentNode === o &&
|
|
119
|
+
if (e != null && (e[0] === ">" ? n.parentNode === o && Ye(n, e) : Ye(n, e)) || t && n === o)
|
|
120
120
|
return n;
|
|
121
121
|
if (n === o) break;
|
|
122
|
-
} while (n =
|
|
122
|
+
} while (n = At(n));
|
|
123
123
|
}
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
126
126
|
var gt = /\s+/g;
|
|
127
|
-
function
|
|
127
|
+
function Y(n, e, o) {
|
|
128
128
|
if (n && e)
|
|
129
129
|
if (n.classList)
|
|
130
130
|
n.classList[o ? "add" : "remove"](e);
|
|
@@ -133,7 +133,7 @@ function X(n, e, o) {
|
|
|
133
133
|
n.className = (t + (o ? " " + e : "")).replace(gt, " ");
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function h(n, e, o) {
|
|
137
137
|
var t = n && n.style;
|
|
138
138
|
if (t) {
|
|
139
139
|
if (o === void 0)
|
|
@@ -147,40 +147,40 @@ function me(n, e) {
|
|
|
147
147
|
o = n;
|
|
148
148
|
else
|
|
149
149
|
do {
|
|
150
|
-
var t =
|
|
150
|
+
var t = h(n, "transform");
|
|
151
151
|
t && t !== "none" && (o = t + " " + o);
|
|
152
152
|
} while (!e && (n = n.parentNode));
|
|
153
|
-
var
|
|
154
|
-
return
|
|
153
|
+
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
154
|
+
return i && new i(o);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Nt(n, e, o) {
|
|
157
157
|
if (n) {
|
|
158
|
-
var t = n.getElementsByTagName(e),
|
|
158
|
+
var t = n.getElementsByTagName(e), i = 0, r = t.length;
|
|
159
159
|
if (o)
|
|
160
|
-
for (;
|
|
161
|
-
o(t[
|
|
160
|
+
for (; i < r; i++)
|
|
161
|
+
o(t[i], i);
|
|
162
162
|
return t;
|
|
163
163
|
}
|
|
164
164
|
return [];
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function V() {
|
|
167
167
|
var n = document.scrollingElement;
|
|
168
168
|
return n || document.documentElement;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function x(n, e, o, t, i) {
|
|
171
171
|
if (!(!n.getBoundingClientRect && n !== window)) {
|
|
172
|
-
var
|
|
173
|
-
if (n !== window && n.parentNode && n !==
|
|
172
|
+
var r, a, l, s, u, f, c;
|
|
173
|
+
if (n !== window && n.parentNode && n !== V() ? (r = n.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right, f = r.height, c = r.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, f = window.innerHeight, c = window.innerWidth), (e || o) && n !== window && (i = i || n.parentNode, !oe))
|
|
174
174
|
do
|
|
175
|
-
if (
|
|
176
|
-
var
|
|
177
|
-
a -=
|
|
175
|
+
if (i && i.getBoundingClientRect && (h(i, "transform") !== "none" || o && h(i, "position") !== "static")) {
|
|
176
|
+
var v = i.getBoundingClientRect();
|
|
177
|
+
a -= v.top + parseInt(h(i, "border-top-width")), l -= v.left + parseInt(h(i, "border-left-width")), s = a + r.height, u = l + r.width;
|
|
178
178
|
break;
|
|
179
179
|
}
|
|
180
|
-
while (
|
|
180
|
+
while (i = i.parentNode);
|
|
181
181
|
if (t && n !== window) {
|
|
182
|
-
var D = me(
|
|
183
|
-
D && (a /=
|
|
182
|
+
var D = me(i || n), b = D && D.a, E = D && D.d;
|
|
183
|
+
D && (a /= E, l /= b, c /= b, f /= E, s = a + f, u = l + c);
|
|
184
184
|
}
|
|
185
185
|
return {
|
|
186
186
|
top: a,
|
|
@@ -193,27 +193,27 @@ function O(n, e, o, t, r) {
|
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
function vt(n, e, o) {
|
|
196
|
-
for (var t =
|
|
197
|
-
var
|
|
198
|
-
if (a =
|
|
199
|
-
if (t ===
|
|
200
|
-
t =
|
|
196
|
+
for (var t = le(n, !0), i = x(n)[e]; t; ) {
|
|
197
|
+
var r = x(t)[o], a = void 0;
|
|
198
|
+
if (a = i >= r, !a) return t;
|
|
199
|
+
if (t === V()) break;
|
|
200
|
+
t = le(t, !1);
|
|
201
201
|
}
|
|
202
202
|
return !1;
|
|
203
203
|
}
|
|
204
204
|
function ge(n, e, o, t) {
|
|
205
|
-
for (var
|
|
206
|
-
if (a[
|
|
207
|
-
if (
|
|
208
|
-
return a[
|
|
209
|
-
|
|
205
|
+
for (var i = 0, r = 0, a = n.children; r < a.length; ) {
|
|
206
|
+
if (a[r].style.display !== "none" && a[r] !== p.ghost && (t || a[r] !== p.dragged) && j(a[r], o.draggable, n, !1)) {
|
|
207
|
+
if (i === e)
|
|
208
|
+
return a[r];
|
|
209
|
+
i++;
|
|
210
210
|
}
|
|
211
|
-
|
|
211
|
+
r++;
|
|
212
212
|
}
|
|
213
213
|
return null;
|
|
214
214
|
}
|
|
215
215
|
function ut(n, e) {
|
|
216
|
-
for (var o = n.lastElementChild; o && (o ===
|
|
216
|
+
for (var o = n.lastElementChild; o && (o === p.ghost || h(o, "display") === "none" || e && !Ye(o, e)); )
|
|
217
217
|
o = o.previousElementSibling;
|
|
218
218
|
return o || null;
|
|
219
219
|
}
|
|
@@ -222,15 +222,15 @@ function G(n, e) {
|
|
|
222
222
|
if (!n || !n.parentNode)
|
|
223
223
|
return -1;
|
|
224
224
|
for (; n = n.previousElementSibling; )
|
|
225
|
-
n.nodeName.toUpperCase() !== "TEMPLATE" && n !==
|
|
225
|
+
n.nodeName.toUpperCase() !== "TEMPLATE" && n !== p.clone && (!e || Ye(n, e)) && o++;
|
|
226
226
|
return o;
|
|
227
227
|
}
|
|
228
228
|
function bt(n) {
|
|
229
|
-
var e = 0, o = 0, t =
|
|
229
|
+
var e = 0, o = 0, t = V();
|
|
230
230
|
if (n)
|
|
231
231
|
do {
|
|
232
|
-
var
|
|
233
|
-
e += n.scrollLeft *
|
|
232
|
+
var i = me(n), r = i.a, a = i.d;
|
|
233
|
+
e += n.scrollLeft * r, o += n.scrollTop * a;
|
|
234
234
|
} while (n !== t && (n = n.parentNode));
|
|
235
235
|
return [e, o];
|
|
236
236
|
}
|
|
@@ -242,20 +242,20 @@ function oo(n, e) {
|
|
|
242
242
|
}
|
|
243
243
|
return -1;
|
|
244
244
|
}
|
|
245
|
-
function
|
|
246
|
-
if (!n || !n.getBoundingClientRect) return
|
|
245
|
+
function le(n, e) {
|
|
246
|
+
if (!n || !n.getBoundingClientRect) return V();
|
|
247
247
|
var o = n, t = !1;
|
|
248
248
|
do
|
|
249
249
|
if (o.clientWidth < o.scrollWidth || o.clientHeight < o.scrollHeight) {
|
|
250
|
-
var
|
|
251
|
-
if (o.clientWidth < o.scrollWidth && (
|
|
252
|
-
if (!o.getBoundingClientRect || o === document.body) return
|
|
250
|
+
var i = h(o);
|
|
251
|
+
if (o.clientWidth < o.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || o.clientHeight < o.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
252
|
+
if (!o.getBoundingClientRect || o === document.body) return V();
|
|
253
253
|
if (t || e) return o;
|
|
254
254
|
t = !0;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
while (o = o.parentNode);
|
|
258
|
-
return
|
|
258
|
+
return V();
|
|
259
259
|
}
|
|
260
260
|
function no(n, e) {
|
|
261
261
|
if (n && e)
|
|
@@ -267,7 +267,7 @@ function qe(n, e) {
|
|
|
267
267
|
return Math.round(n.top) === Math.round(e.top) && Math.round(n.left) === Math.round(e.left) && Math.round(n.height) === Math.round(e.height) && Math.round(n.width) === Math.round(e.width);
|
|
268
268
|
}
|
|
269
269
|
var De;
|
|
270
|
-
function
|
|
270
|
+
function Lt(n, e) {
|
|
271
271
|
return function() {
|
|
272
272
|
if (!De) {
|
|
273
273
|
var o = arguments, t = this;
|
|
@@ -277,10 +277,10 @@ function Rt(n, e) {
|
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function io() {
|
|
281
281
|
clearTimeout(De), De = void 0;
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function Rt(n, e, o) {
|
|
284
284
|
n.scrollLeft += e, n.scrollTop += o;
|
|
285
285
|
}
|
|
286
286
|
function Ft(n) {
|
|
@@ -289,33 +289,33 @@ function Ft(n) {
|
|
|
289
289
|
}
|
|
290
290
|
function Bt(n, e, o) {
|
|
291
291
|
var t = {};
|
|
292
|
-
return Array.from(n.children).forEach(function(
|
|
293
|
-
var
|
|
294
|
-
if (!(!j(
|
|
295
|
-
var u =
|
|
296
|
-
t.left = Math.min((
|
|
292
|
+
return Array.from(n.children).forEach(function(i) {
|
|
293
|
+
var r, a, l, s;
|
|
294
|
+
if (!(!j(i, e.draggable, n, !1) || i.animated || i === o)) {
|
|
295
|
+
var u = x(i);
|
|
296
|
+
t.left = Math.min((r = t.left) !== null && r !== void 0 ? r : 1 / 0, u.left), t.top = Math.min((a = t.top) !== null && a !== void 0 ? a : 1 / 0, u.top), t.right = Math.max((l = t.right) !== null && l !== void 0 ? l : -1 / 0, u.right), t.bottom = Math.max((s = t.bottom) !== null && s !== void 0 ? s : -1 / 0, u.bottom);
|
|
297
297
|
}
|
|
298
298
|
}), t.width = t.right - t.left, t.height = t.bottom - t.top, t.x = t.left, t.y = t.top, t;
|
|
299
299
|
}
|
|
300
|
-
var
|
|
301
|
-
function
|
|
300
|
+
var k = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
301
|
+
function ro() {
|
|
302
302
|
var n = [], e;
|
|
303
303
|
return {
|
|
304
304
|
captureAnimationState: function() {
|
|
305
305
|
if (n = [], !!this.options.animation) {
|
|
306
306
|
var t = [].slice.call(this.el.children);
|
|
307
|
-
t.forEach(function(
|
|
308
|
-
if (!(
|
|
307
|
+
t.forEach(function(i) {
|
|
308
|
+
if (!(h(i, "display") === "none" || i === p.ghost)) {
|
|
309
309
|
n.push({
|
|
310
|
-
target:
|
|
311
|
-
rect:
|
|
310
|
+
target: i,
|
|
311
|
+
rect: x(i)
|
|
312
312
|
});
|
|
313
|
-
var
|
|
314
|
-
if (
|
|
315
|
-
var a = me(
|
|
316
|
-
a && (
|
|
313
|
+
var r = K({}, n[n.length - 1].rect);
|
|
314
|
+
if (i.thisAnimationDuration) {
|
|
315
|
+
var a = me(i, !0);
|
|
316
|
+
a && (r.top -= a.f, r.left -= a.e);
|
|
317
317
|
}
|
|
318
|
-
|
|
318
|
+
i.fromRect = r;
|
|
319
319
|
}
|
|
320
320
|
});
|
|
321
321
|
}
|
|
@@ -329,28 +329,28 @@ function io() {
|
|
|
329
329
|
}), 1);
|
|
330
330
|
},
|
|
331
331
|
animateAll: function(t) {
|
|
332
|
-
var
|
|
332
|
+
var i = this;
|
|
333
333
|
if (!this.options.animation) {
|
|
334
334
|
clearTimeout(e), typeof t == "function" && t();
|
|
335
335
|
return;
|
|
336
336
|
}
|
|
337
|
-
var
|
|
337
|
+
var r = !1, a = 0;
|
|
338
338
|
n.forEach(function(l) {
|
|
339
|
-
var s = 0, u = l.target, f = u.fromRect, c =
|
|
340
|
-
|
|
341
|
-
(b.top - c.top) / (b.left - c.left) === (f.top - c.top) / (f.left - c.left) && (s = lo(b,
|
|
339
|
+
var s = 0, u = l.target, f = u.fromRect, c = x(u), v = u.prevFromRect, D = u.prevToRect, b = l.rect, E = me(u, !0);
|
|
340
|
+
E && (c.top -= E.f, c.left -= E.e), u.toRect = c, u.thisAnimationDuration && qe(v, c) && !qe(f, c) && // Make sure animatingRect is on line between toRect & fromRect
|
|
341
|
+
(b.top - c.top) / (b.left - c.left) === (f.top - c.top) / (f.left - c.left) && (s = lo(b, v, D, i.options)), qe(c, f) || (u.prevFromRect = f, u.prevToRect = c, s || (s = i.options.animation), i.animate(u, b, c, s)), s && (r = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
342
342
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
343
343
|
}, s), u.thisAnimationDuration = s);
|
|
344
|
-
}), clearTimeout(e),
|
|
344
|
+
}), clearTimeout(e), r ? e = setTimeout(function() {
|
|
345
345
|
typeof t == "function" && t();
|
|
346
346
|
}, a) : typeof t == "function" && t(), n = [];
|
|
347
347
|
},
|
|
348
|
-
animate: function(t,
|
|
348
|
+
animate: function(t, i, r, a) {
|
|
349
349
|
if (a) {
|
|
350
|
-
|
|
351
|
-
var l = me(this.el), s = l && l.a, u = l && l.d, f = (
|
|
352
|
-
t.animatingX = !!f, t.animatingY = !!c,
|
|
353
|
-
|
|
350
|
+
h(t, "transition", ""), h(t, "transform", "");
|
|
351
|
+
var l = me(this.el), s = l && l.a, u = l && l.d, f = (i.left - r.left) / (s || 1), c = (i.top - r.top) / (u || 1);
|
|
352
|
+
t.animatingX = !!f, t.animatingY = !!c, h(t, "transform", "translate3d(" + f + "px," + c + "px,0)"), this.forRepaintDummy = ao(t), h(t, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), h(t, "transform", "translate3d(0,0,0)"), typeof t.animated == "number" && clearTimeout(t.animated), t.animated = setTimeout(function() {
|
|
353
|
+
h(t, "transition", ""), h(t, "transform", ""), t.animated = !1, t.animatingX = !1, t.animatingY = !1;
|
|
354
354
|
}, a);
|
|
355
355
|
}
|
|
356
356
|
}
|
|
@@ -374,63 +374,63 @@ var ce = [], Ve = {
|
|
|
374
374
|
}), ce.push(e);
|
|
375
375
|
},
|
|
376
376
|
pluginEvent: function(e, o, t) {
|
|
377
|
-
var
|
|
377
|
+
var i = this;
|
|
378
378
|
this.eventCanceled = !1, t.cancel = function() {
|
|
379
|
-
|
|
379
|
+
i.eventCanceled = !0;
|
|
380
380
|
};
|
|
381
|
-
var
|
|
381
|
+
var r = e + "Global";
|
|
382
382
|
ce.forEach(function(a) {
|
|
383
|
-
o[a.pluginName] && (o[a.pluginName][
|
|
383
|
+
o[a.pluginName] && (o[a.pluginName][r] && o[a.pluginName][r](K({
|
|
384
384
|
sortable: o
|
|
385
|
-
}, t)), o.options[a.pluginName] && o[a.pluginName][e] && o[a.pluginName][e](
|
|
385
|
+
}, t)), o.options[a.pluginName] && o[a.pluginName][e] && o[a.pluginName][e](K({
|
|
386
386
|
sortable: o
|
|
387
387
|
}, t)));
|
|
388
388
|
});
|
|
389
389
|
},
|
|
390
|
-
initializePlugins: function(e, o, t,
|
|
390
|
+
initializePlugins: function(e, o, t, i) {
|
|
391
391
|
ce.forEach(function(l) {
|
|
392
392
|
var s = l.pluginName;
|
|
393
393
|
if (!(!e.options[s] && !l.initializeByDefault)) {
|
|
394
394
|
var u = new l(e, o, e.options);
|
|
395
|
-
u.sortable = e, u.options = e.options, e[s] = u,
|
|
395
|
+
u.sortable = e, u.options = e.options, e[s] = u, te(t, u.defaults);
|
|
396
396
|
}
|
|
397
397
|
});
|
|
398
|
-
for (var
|
|
399
|
-
if (e.options.hasOwnProperty(
|
|
400
|
-
var a = this.modifyOption(e,
|
|
401
|
-
typeof a < "u" && (e.options[
|
|
398
|
+
for (var r in e.options)
|
|
399
|
+
if (e.options.hasOwnProperty(r)) {
|
|
400
|
+
var a = this.modifyOption(e, r, e.options[r]);
|
|
401
|
+
typeof a < "u" && (e.options[r] = a);
|
|
402
402
|
}
|
|
403
403
|
},
|
|
404
404
|
getEventProperties: function(e, o) {
|
|
405
405
|
var t = {};
|
|
406
|
-
return ce.forEach(function(
|
|
407
|
-
typeof
|
|
406
|
+
return ce.forEach(function(i) {
|
|
407
|
+
typeof i.eventProperties == "function" && te(t, i.eventProperties.call(o[i.pluginName], e));
|
|
408
408
|
}), t;
|
|
409
409
|
},
|
|
410
410
|
modifyOption: function(e, o, t) {
|
|
411
|
-
var
|
|
412
|
-
return ce.forEach(function(
|
|
413
|
-
e[
|
|
414
|
-
}),
|
|
411
|
+
var i;
|
|
412
|
+
return ce.forEach(function(r) {
|
|
413
|
+
e[r.pluginName] && r.optionListeners && typeof r.optionListeners[o] == "function" && (i = r.optionListeners[o].call(e[r.pluginName], t));
|
|
414
|
+
}), i;
|
|
415
415
|
}
|
|
416
416
|
};
|
|
417
417
|
function so(n) {
|
|
418
|
-
var e = n.sortable, o = n.rootEl, t = n.name,
|
|
419
|
-
if (e = e || o && o[
|
|
420
|
-
var
|
|
421
|
-
window.CustomEvent && !
|
|
418
|
+
var e = n.sortable, o = n.rootEl, t = n.name, i = n.targetEl, r = n.cloneEl, a = n.toEl, l = n.fromEl, s = n.oldIndex, u = n.newIndex, f = n.oldDraggableIndex, c = n.newDraggableIndex, v = n.originalEvent, D = n.putSortable, b = n.extraEventProperties;
|
|
419
|
+
if (e = e || o && o[k], !!e) {
|
|
420
|
+
var E, M = e.options, z = "on" + t.charAt(0).toUpperCase() + t.substr(1);
|
|
421
|
+
window.CustomEvent && !oe && !Ce ? E = new CustomEvent(t, {
|
|
422
422
|
bubbles: !0,
|
|
423
423
|
cancelable: !0
|
|
424
|
-
}) : (
|
|
425
|
-
var A =
|
|
426
|
-
for (var
|
|
427
|
-
|
|
428
|
-
o && o.dispatchEvent(
|
|
424
|
+
}) : (E = document.createEvent("Event"), E.initEvent(t, !0, !0)), E.to = a || o, E.from = l || o, E.item = i || o, E.clone = r, E.oldIndex = s, E.newIndex = u, E.oldDraggableIndex = f, E.newDraggableIndex = c, E.originalEvent = v, E.pullMode = D ? D.lastPutMode : void 0;
|
|
425
|
+
var A = K(K({}, b), Me.getEventProperties(t, e));
|
|
426
|
+
for (var X in A)
|
|
427
|
+
E[X] = A[X];
|
|
428
|
+
o && o.dispatchEvent(E), M[z] && M[z].call(e, E);
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
var uo = ["evt"],
|
|
432
|
-
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {},
|
|
433
|
-
Me.pluginEvent.bind(
|
|
431
|
+
var uo = ["evt"], H = function(e, o) {
|
|
432
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = t.evt, r = eo(t, uo);
|
|
433
|
+
Me.pluginEvent.bind(p)(e, o, K({
|
|
434
434
|
dragEl: d,
|
|
435
435
|
parentEl: C,
|
|
436
436
|
ghostEl: g,
|
|
@@ -440,15 +440,15 @@ var uo = ["evt"], L = function(e, o) {
|
|
|
440
440
|
cloneEl: I,
|
|
441
441
|
cloneHidden: re,
|
|
442
442
|
dragStarted: _e,
|
|
443
|
-
putSortable:
|
|
444
|
-
activeSortable:
|
|
445
|
-
originalEvent:
|
|
443
|
+
putSortable: N,
|
|
444
|
+
activeSortable: p.active,
|
|
445
|
+
originalEvent: i,
|
|
446
446
|
oldIndex: pe,
|
|
447
447
|
oldDraggableIndex: Te,
|
|
448
448
|
newIndex: $,
|
|
449
|
-
newDraggableIndex:
|
|
450
|
-
hideGhostForTarget:
|
|
451
|
-
unhideGhostForTarget:
|
|
449
|
+
newDraggableIndex: ie,
|
|
450
|
+
hideGhostForTarget: Yt,
|
|
451
|
+
unhideGhostForTarget: $t,
|
|
452
452
|
cloneNowHidden: function() {
|
|
453
453
|
re = !0;
|
|
454
454
|
},
|
|
@@ -456,85 +456,85 @@ var uo = ["evt"], L = function(e, o) {
|
|
|
456
456
|
re = !1;
|
|
457
457
|
},
|
|
458
458
|
dispatchSortableEvent: function(l) {
|
|
459
|
-
|
|
459
|
+
F({
|
|
460
460
|
sortable: o,
|
|
461
461
|
name: l,
|
|
462
|
-
originalEvent:
|
|
462
|
+
originalEvent: i
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
|
-
},
|
|
465
|
+
}, r));
|
|
466
466
|
};
|
|
467
|
-
function
|
|
468
|
-
so(
|
|
469
|
-
putSortable:
|
|
467
|
+
function F(n) {
|
|
468
|
+
so(K({
|
|
469
|
+
putSortable: N,
|
|
470
470
|
cloneEl: I,
|
|
471
471
|
targetEl: d,
|
|
472
472
|
rootEl: S,
|
|
473
473
|
oldIndex: pe,
|
|
474
474
|
oldDraggableIndex: Te,
|
|
475
475
|
newIndex: $,
|
|
476
|
-
newDraggableIndex:
|
|
476
|
+
newDraggableIndex: ie
|
|
477
477
|
}, n));
|
|
478
478
|
}
|
|
479
|
-
var d, C, g, S, de, Be, I, re, pe, $, Te,
|
|
479
|
+
var d, C, g, S, de, Be, I, re, pe, $, Te, ie, xe, N, he = !1, $e = !1, Ue = [], se, W, Ke, Ze, _t, wt, _e, fe, Se, Ie = !1, Ae = !1, He, L, Je = [], it = !1, Ge = [], je = typeof document < "u", Ne = st, yt = Ce || oe ? "cssFloat" : "float", co = je && !Ot && !st && "draggable" in document.createElement("div"), Ht = (function() {
|
|
480
480
|
if (je) {
|
|
481
|
-
if (
|
|
481
|
+
if (oe)
|
|
482
482
|
return !1;
|
|
483
483
|
var n = document.createElement("x");
|
|
484
484
|
return n.style.cssText = "pointer-events:auto", n.style.pointerEvents === "auto";
|
|
485
485
|
}
|
|
486
|
-
})(),
|
|
487
|
-
var t =
|
|
486
|
+
})(), kt = function(e, o) {
|
|
487
|
+
var t = h(e), i = parseInt(t.width) - parseInt(t.paddingLeft) - parseInt(t.paddingRight) - parseInt(t.borderLeftWidth) - parseInt(t.borderRightWidth), r = ge(e, 0, o), a = ge(e, 1, o), l = r && h(r), s = a && h(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + x(r).width, f = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + x(a).width;
|
|
488
488
|
if (t.display === "flex")
|
|
489
489
|
return t.flexDirection === "column" || t.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
490
490
|
if (t.display === "grid")
|
|
491
491
|
return t.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
492
|
-
if (
|
|
492
|
+
if (r && l.float && l.float !== "none") {
|
|
493
493
|
var c = l.float === "left" ? "left" : "right";
|
|
494
494
|
return a && (s.clear === "both" || s.clear === c) ? "vertical" : "horizontal";
|
|
495
495
|
}
|
|
496
|
-
return
|
|
496
|
+
return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && t[yt] === "none" || a && t[yt] === "none" && u + f > i) ? "vertical" : "horizontal";
|
|
497
497
|
}, fo = function(e, o, t) {
|
|
498
|
-
var
|
|
499
|
-
return
|
|
498
|
+
var i = t ? e.left : e.top, r = t ? e.right : e.bottom, a = t ? e.width : e.height, l = t ? o.left : o.top, s = t ? o.right : o.bottom, u = t ? o.width : o.height;
|
|
499
|
+
return i === l || r === s || i + a / 2 === l + u / 2;
|
|
500
500
|
}, ho = function(e, o) {
|
|
501
501
|
var t;
|
|
502
|
-
return
|
|
503
|
-
var
|
|
504
|
-
if (!(!
|
|
505
|
-
var a =
|
|
502
|
+
return Ue.some(function(i) {
|
|
503
|
+
var r = i[k].options.emptyInsertThreshold;
|
|
504
|
+
if (!(!r || ut(i))) {
|
|
505
|
+
var a = x(i), l = e >= a.left - r && e <= a.right + r, s = o >= a.top - r && o <= a.bottom + r;
|
|
506
506
|
if (l && s)
|
|
507
|
-
return t =
|
|
507
|
+
return t = i;
|
|
508
508
|
}
|
|
509
509
|
}), t;
|
|
510
510
|
}, Xt = function(e) {
|
|
511
|
-
function o(
|
|
511
|
+
function o(r, a) {
|
|
512
512
|
return function(l, s, u, f) {
|
|
513
513
|
var c = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
|
|
514
|
-
if (
|
|
514
|
+
if (r == null && (a || c))
|
|
515
515
|
return !0;
|
|
516
|
-
if (
|
|
516
|
+
if (r == null || r === !1)
|
|
517
517
|
return !1;
|
|
518
|
-
if (a &&
|
|
519
|
-
return
|
|
520
|
-
if (typeof
|
|
521
|
-
return o(
|
|
522
|
-
var
|
|
523
|
-
return
|
|
518
|
+
if (a && r === "clone")
|
|
519
|
+
return r;
|
|
520
|
+
if (typeof r == "function")
|
|
521
|
+
return o(r(l, s, u, f), a)(l, s, u, f);
|
|
522
|
+
var v = (a ? l : s).options.group.name;
|
|
523
|
+
return r === !0 || typeof r == "string" && r === v || r.join && r.indexOf(v) > -1;
|
|
524
524
|
};
|
|
525
525
|
}
|
|
526
|
-
var t = {},
|
|
527
|
-
(!
|
|
528
|
-
name:
|
|
529
|
-
}), t.name =
|
|
526
|
+
var t = {}, i = e.group;
|
|
527
|
+
(!i || Fe(i) != "object") && (i = {
|
|
528
|
+
name: i
|
|
529
|
+
}), t.name = i.name, t.checkPull = o(i.pull, !0), t.checkPut = o(i.put), t.revertClone = i.revertClone, e.group = t;
|
|
530
|
+
}, Yt = function() {
|
|
531
|
+
!Ht && g && h(g, "display", "none");
|
|
530
532
|
}, $t = function() {
|
|
531
|
-
!
|
|
532
|
-
}, Ut = function() {
|
|
533
|
-
!kt && g && p(g, "display", "");
|
|
533
|
+
!Ht && g && h(g, "display", "");
|
|
534
534
|
};
|
|
535
|
-
je && !
|
|
536
|
-
if (
|
|
537
|
-
return n.preventDefault(), n.stopPropagation && n.stopPropagation(), n.stopImmediatePropagation && n.stopImmediatePropagation(),
|
|
535
|
+
je && !Ot && document.addEventListener("click", function(n) {
|
|
536
|
+
if ($e)
|
|
537
|
+
return n.preventDefault(), n.stopPropagation && n.stopPropagation(), n.stopImmediatePropagation && n.stopImmediatePropagation(), $e = !1, !1;
|
|
538
538
|
}, !0);
|
|
539
539
|
var ue = function(e) {
|
|
540
540
|
if (d) {
|
|
@@ -542,18 +542,18 @@ var ue = function(e) {
|
|
|
542
542
|
var o = ho(e.clientX, e.clientY);
|
|
543
543
|
if (o) {
|
|
544
544
|
var t = {};
|
|
545
|
-
for (var
|
|
546
|
-
e.hasOwnProperty(
|
|
547
|
-
t.target = t.rootEl = o, t.preventDefault = void 0, t.stopPropagation = void 0, o[
|
|
545
|
+
for (var i in e)
|
|
546
|
+
e.hasOwnProperty(i) && (t[i] = e[i]);
|
|
547
|
+
t.target = t.rootEl = o, t.preventDefault = void 0, t.stopPropagation = void 0, o[k]._onDragOver(t);
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
}, po = function(e) {
|
|
551
|
-
d && d.parentNode[
|
|
551
|
+
d && d.parentNode[k]._isOutsideThisEl(e.target);
|
|
552
552
|
};
|
|
553
|
-
function
|
|
553
|
+
function p(n, e) {
|
|
554
554
|
if (!(n && n.nodeType && n.nodeType === 1))
|
|
555
555
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));
|
|
556
|
-
this.el = n, this.options = e =
|
|
556
|
+
this.el = n, this.options = e = te({}, e), n[k] = this;
|
|
557
557
|
var o = {
|
|
558
558
|
group: null,
|
|
559
559
|
sort: !0,
|
|
@@ -569,7 +569,7 @@ function m(n, e) {
|
|
|
569
569
|
// will be set to same as swapThreshold if default
|
|
570
570
|
removeCloneOnHide: !0,
|
|
571
571
|
direction: function() {
|
|
572
|
-
return
|
|
572
|
+
return kt(n, this.options);
|
|
573
573
|
},
|
|
574
574
|
ghostClass: "sortable-ghost",
|
|
575
575
|
chosenClass: "sortable-chosen",
|
|
@@ -597,20 +597,20 @@ function m(n, e) {
|
|
|
597
597
|
y: 0
|
|
598
598
|
},
|
|
599
599
|
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
600
|
-
supportPointer:
|
|
600
|
+
supportPointer: p.supportPointer !== !1 && "PointerEvent" in window && (!Ee || st),
|
|
601
601
|
emptyInsertThreshold: 5
|
|
602
602
|
};
|
|
603
603
|
Me.initializePlugins(this, n, o);
|
|
604
604
|
for (var t in o)
|
|
605
605
|
!(t in e) && (e[t] = o[t]);
|
|
606
606
|
Xt(e);
|
|
607
|
-
for (var
|
|
608
|
-
|
|
609
|
-
this.nativeDraggable = e.forceFallback ? !1 : co, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? y(n, "pointerdown", this._onTapStart) : (y(n, "mousedown", this._onTapStart), y(n, "touchstart", this._onTapStart)), this.nativeDraggable && (y(n, "dragover", this), y(n, "dragenter", this)),
|
|
607
|
+
for (var i in this)
|
|
608
|
+
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
609
|
+
this.nativeDraggable = e.forceFallback ? !1 : co, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? y(n, "pointerdown", this._onTapStart) : (y(n, "mousedown", this._onTapStart), y(n, "touchstart", this._onTapStart)), this.nativeDraggable && (y(n, "dragover", this), y(n, "dragenter", this)), Ue.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), te(this, ro());
|
|
610
610
|
}
|
|
611
|
-
|
|
611
|
+
p.prototype = /** @lends Sortable.prototype */
|
|
612
612
|
{
|
|
613
|
-
constructor:
|
|
613
|
+
constructor: p,
|
|
614
614
|
_isOutsideThisEl: function(e) {
|
|
615
615
|
!this.el.contains(e) && e !== this.el && (fe = null);
|
|
616
616
|
},
|
|
@@ -619,72 +619,72 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
619
619
|
},
|
|
620
620
|
_onTapStart: function(e) {
|
|
621
621
|
if (e.cancelable) {
|
|
622
|
-
var o = this, t = this.el,
|
|
623
|
-
if (Eo(t), !d && !(/mousedown|pointerdown/.test(a) && e.button !== 0 ||
|
|
624
|
-
if (pe = G(s), Te = G(s,
|
|
622
|
+
var o = this, t = this.el, i = this.options, r = i.preventOnFilter, a = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, f = i.filter;
|
|
623
|
+
if (Eo(t), !d && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Ee && s && s.tagName.toUpperCase() === "SELECT") && (s = j(s, i.draggable, t, !1), !(s && s.animated) && Be !== s)) {
|
|
624
|
+
if (pe = G(s), Te = G(s, i.draggable), typeof f == "function") {
|
|
625
625
|
if (f.call(this, e, s, this)) {
|
|
626
|
-
|
|
626
|
+
F({
|
|
627
627
|
sortable: o,
|
|
628
628
|
rootEl: u,
|
|
629
629
|
name: "filter",
|
|
630
630
|
targetEl: s,
|
|
631
631
|
toEl: t,
|
|
632
632
|
fromEl: t
|
|
633
|
-
}),
|
|
633
|
+
}), H("filter", o, {
|
|
634
634
|
evt: e
|
|
635
|
-
}),
|
|
635
|
+
}), r && e.preventDefault();
|
|
636
636
|
return;
|
|
637
637
|
}
|
|
638
638
|
} else if (f && (f = f.split(",").some(function(c) {
|
|
639
639
|
if (c = j(u, c.trim(), t, !1), c)
|
|
640
|
-
return
|
|
640
|
+
return F({
|
|
641
641
|
sortable: o,
|
|
642
642
|
rootEl: c,
|
|
643
643
|
name: "filter",
|
|
644
644
|
targetEl: s,
|
|
645
645
|
fromEl: t,
|
|
646
646
|
toEl: t
|
|
647
|
-
}),
|
|
647
|
+
}), H("filter", o, {
|
|
648
648
|
evt: e
|
|
649
649
|
}), !0;
|
|
650
650
|
}), f)) {
|
|
651
|
-
|
|
651
|
+
r && e.preventDefault();
|
|
652
652
|
return;
|
|
653
653
|
}
|
|
654
|
-
|
|
654
|
+
i.handle && !j(u, i.handle, t, !1) || this._prepareDragStart(e, l, s);
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
},
|
|
658
658
|
_prepareDragStart: function(e, o, t) {
|
|
659
|
-
var
|
|
660
|
-
if (t && !d && t.parentNode ===
|
|
661
|
-
var u =
|
|
662
|
-
if (S =
|
|
659
|
+
var i = this, r = i.el, a = i.options, l = r.ownerDocument, s;
|
|
660
|
+
if (t && !d && t.parentNode === r) {
|
|
661
|
+
var u = x(t);
|
|
662
|
+
if (S = r, d = t, C = d.parentNode, de = d.nextSibling, Be = t, xe = a.group, p.dragged = d, se = {
|
|
663
663
|
target: d,
|
|
664
664
|
clientX: (o || e).clientX,
|
|
665
665
|
clientY: (o || e).clientY
|
|
666
666
|
}, _t = se.clientX - u.left, wt = se.clientY - u.top, this._lastX = (o || e).clientX, this._lastY = (o || e).clientY, d.style["will-change"] = "all", s = function() {
|
|
667
|
-
if (
|
|
667
|
+
if (H("delayEnded", i, {
|
|
668
668
|
evt: e
|
|
669
|
-
}),
|
|
670
|
-
|
|
669
|
+
}), p.eventCanceled) {
|
|
670
|
+
i._onDrop();
|
|
671
671
|
return;
|
|
672
672
|
}
|
|
673
|
-
|
|
674
|
-
sortable:
|
|
673
|
+
i._disableDelayedDragEvents(), !mt && i.nativeDraggable && (d.draggable = !0), i._triggerDragStart(e, o), F({
|
|
674
|
+
sortable: i,
|
|
675
675
|
name: "choose",
|
|
676
676
|
originalEvent: e
|
|
677
|
-
}),
|
|
677
|
+
}), Y(d, a.chosenClass, !0);
|
|
678
678
|
}, a.ignore.split(",").forEach(function(f) {
|
|
679
|
-
|
|
680
|
-
}), y(l, "dragover", ue), y(l, "mousemove", ue), y(l, "touchmove", ue), a.supportPointer ? (y(l, "pointerup",
|
|
679
|
+
Nt(d, f.trim(), Qe);
|
|
680
|
+
}), y(l, "dragover", ue), y(l, "mousemove", ue), y(l, "touchmove", ue), a.supportPointer ? (y(l, "pointerup", i._onDrop), !this.nativeDraggable && y(l, "pointercancel", i._onDrop)) : (y(l, "mouseup", i._onDrop), y(l, "touchend", i._onDrop), y(l, "touchcancel", i._onDrop)), mt && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), H("delayStart", this, {
|
|
681
681
|
evt: e
|
|
682
|
-
}), a.delay && (!a.delayOnTouchOnly || o) && (!this.nativeDraggable || !(Ce ||
|
|
683
|
-
if (
|
|
682
|
+
}), a.delay && (!a.delayOnTouchOnly || o) && (!this.nativeDraggable || !(Ce || oe))) {
|
|
683
|
+
if (p.eventCanceled) {
|
|
684
684
|
this._onDrop();
|
|
685
685
|
return;
|
|
686
686
|
}
|
|
687
|
-
a.supportPointer ? (y(l, "pointerup",
|
|
687
|
+
a.supportPointer ? (y(l, "pointerup", i._disableDelayedDrag), y(l, "pointercancel", i._disableDelayedDrag)) : (y(l, "mouseup", i._disableDelayedDrag), y(l, "touchend", i._disableDelayedDrag), y(l, "touchcancel", i._disableDelayedDrag)), y(l, "mousemove", i._delayedDragTouchMoveHandler), y(l, "touchmove", i._delayedDragTouchMoveHandler), a.supportPointer && y(l, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(s, a.delay);
|
|
688
688
|
} else
|
|
689
689
|
s();
|
|
690
690
|
}
|
|
@@ -703,7 +703,7 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
703
703
|
_triggerDragStart: function(e, o) {
|
|
704
704
|
o = o || e.pointerType == "touch" && e, !this.nativeDraggable || o ? this.options.supportPointer ? y(document, "pointermove", this._onTouchMove) : o ? y(document, "touchmove", this._onTouchMove) : y(document, "mousemove", this._onTouchMove) : (y(d, "dragend", this), y(S, "dragstart", this._onDragStart));
|
|
705
705
|
try {
|
|
706
|
-
document.selection ?
|
|
706
|
+
document.selection ? ke(function() {
|
|
707
707
|
document.selection.empty();
|
|
708
708
|
}) : window.getSelection().removeAllRanges();
|
|
709
709
|
} catch {
|
|
@@ -711,11 +711,11 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
711
711
|
},
|
|
712
712
|
_dragStarted: function(e, o) {
|
|
713
713
|
if (he = !1, S && d) {
|
|
714
|
-
|
|
714
|
+
H("dragStarted", this, {
|
|
715
715
|
evt: o
|
|
716
716
|
}), this.nativeDraggable && y(document, "dragover", po);
|
|
717
717
|
var t = this.options;
|
|
718
|
-
!e &&
|
|
718
|
+
!e && Y(d, t.dragClass, !1), Y(d, t.ghostClass, !0), p.active = this, e && this._appendGhost(), F({
|
|
719
719
|
sortable: this,
|
|
720
720
|
name: "start",
|
|
721
721
|
originalEvent: o
|
|
@@ -724,32 +724,32 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
724
724
|
this._nulling();
|
|
725
725
|
},
|
|
726
726
|
_emulateDragOver: function() {
|
|
727
|
-
if (
|
|
728
|
-
this._lastX =
|
|
729
|
-
for (var e = document.elementFromPoint(
|
|
727
|
+
if (W) {
|
|
728
|
+
this._lastX = W.clientX, this._lastY = W.clientY, Yt();
|
|
729
|
+
for (var e = document.elementFromPoint(W.clientX, W.clientY), o = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(W.clientX, W.clientY), e !== o); )
|
|
730
730
|
o = e;
|
|
731
|
-
if (d.parentNode[
|
|
731
|
+
if (d.parentNode[k]._isOutsideThisEl(e), o)
|
|
732
732
|
do {
|
|
733
|
-
if (o[
|
|
733
|
+
if (o[k]) {
|
|
734
734
|
var t = void 0;
|
|
735
|
-
if (t = o[
|
|
736
|
-
clientX:
|
|
737
|
-
clientY:
|
|
735
|
+
if (t = o[k]._onDragOver({
|
|
736
|
+
clientX: W.clientX,
|
|
737
|
+
clientY: W.clientY,
|
|
738
738
|
target: e,
|
|
739
739
|
rootEl: o
|
|
740
740
|
}), t && !this.options.dragoverBubble)
|
|
741
741
|
break;
|
|
742
742
|
}
|
|
743
743
|
e = o;
|
|
744
|
-
} while (o =
|
|
745
|
-
|
|
744
|
+
} while (o = At(o));
|
|
745
|
+
$t();
|
|
746
746
|
}
|
|
747
747
|
},
|
|
748
748
|
_onTouchMove: function(e) {
|
|
749
749
|
if (se) {
|
|
750
|
-
var o = this.options, t = o.fallbackTolerance,
|
|
751
|
-
if (!
|
|
752
|
-
if (t && Math.max(Math.abs(
|
|
750
|
+
var o = this.options, t = o.fallbackTolerance, i = o.fallbackOffset, r = e.touches ? e.touches[0] : e, a = g && me(g, !0), l = g && a && a.a, s = g && a && a.d, u = Ne && L && bt(L), f = (r.clientX - se.clientX + i.x) / (l || 1) + (u ? u[0] - Je[0] : 0) / (l || 1), c = (r.clientY - se.clientY + i.y) / (s || 1) + (u ? u[1] - Je[1] : 0) / (s || 1);
|
|
751
|
+
if (!p.active && !he) {
|
|
752
|
+
if (t && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < t)
|
|
753
753
|
return;
|
|
754
754
|
this._onDragStart(e, !0);
|
|
755
755
|
}
|
|
@@ -762,118 +762,118 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
762
762
|
e: f,
|
|
763
763
|
f: c
|
|
764
764
|
};
|
|
765
|
-
var
|
|
766
|
-
|
|
765
|
+
var v = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
766
|
+
h(g, "webkitTransform", v), h(g, "mozTransform", v), h(g, "msTransform", v), h(g, "transform", v), Ke = f, Ze = c, W = r;
|
|
767
767
|
}
|
|
768
768
|
e.cancelable && e.preventDefault();
|
|
769
769
|
}
|
|
770
770
|
},
|
|
771
771
|
_appendGhost: function() {
|
|
772
772
|
if (!g) {
|
|
773
|
-
var e = this.options.fallbackOnBody ? document.body : S, o =
|
|
774
|
-
if (
|
|
775
|
-
for (
|
|
776
|
-
|
|
777
|
-
|
|
773
|
+
var e = this.options.fallbackOnBody ? document.body : S, o = x(d, !0, Ne, !0, e), t = this.options;
|
|
774
|
+
if (Ne) {
|
|
775
|
+
for (L = e; h(L, "position") === "static" && h(L, "transform") === "none" && L !== document; )
|
|
776
|
+
L = L.parentNode;
|
|
777
|
+
L !== document.body && L !== document.documentElement ? (L === document && (L = V()), o.top += L.scrollTop, o.left += L.scrollLeft) : L = V(), Je = bt(L);
|
|
778
778
|
}
|
|
779
|
-
g = d.cloneNode(!0),
|
|
779
|
+
g = d.cloneNode(!0), Y(g, t.ghostClass, !1), Y(g, t.fallbackClass, !0), Y(g, t.dragClass, !0), h(g, "transition", ""), h(g, "transform", ""), h(g, "box-sizing", "border-box"), h(g, "margin", 0), h(g, "top", o.top), h(g, "left", o.left), h(g, "width", o.width), h(g, "height", o.height), h(g, "opacity", "0.8"), h(g, "position", Ne ? "absolute" : "fixed"), h(g, "zIndex", "100000"), h(g, "pointerEvents", "none"), p.ghost = g, e.appendChild(g), h(g, "transform-origin", _t / parseInt(g.style.width) * 100 + "% " + wt / parseInt(g.style.height) * 100 + "%");
|
|
780
780
|
}
|
|
781
781
|
},
|
|
782
782
|
_onDragStart: function(e, o) {
|
|
783
|
-
var t = this,
|
|
784
|
-
if (
|
|
783
|
+
var t = this, i = e.dataTransfer, r = t.options;
|
|
784
|
+
if (H("dragStart", this, {
|
|
785
785
|
evt: e
|
|
786
|
-
}),
|
|
786
|
+
}), p.eventCanceled) {
|
|
787
787
|
this._onDrop();
|
|
788
788
|
return;
|
|
789
789
|
}
|
|
790
|
-
|
|
791
|
-
|
|
790
|
+
H("setupClone", this), p.eventCanceled || (I = Ft(d), I.removeAttribute("id"), I.draggable = !1, I.style["will-change"] = "", this._hideClone(), Y(I, this.options.chosenClass, !1), p.clone = I), t.cloneId = ke(function() {
|
|
791
|
+
H("clone", t), !p.eventCanceled && (t.options.removeCloneOnHide || S.insertBefore(I, d), t._hideClone(), F({
|
|
792
792
|
sortable: t,
|
|
793
793
|
name: "clone"
|
|
794
794
|
}));
|
|
795
|
-
}), !o &&
|
|
795
|
+
}), !o && Y(d, r.dragClass, !0), o ? ($e = !0, t._loopId = setInterval(t._emulateDragOver, 50)) : (w(document, "mouseup", t._onDrop), w(document, "touchend", t._onDrop), w(document, "touchcancel", t._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(t, i, d)), y(document, "drop", t), h(d, "transform", "translateZ(0)")), he = !0, t._dragStartId = ke(t._dragStarted.bind(t, o, e)), y(document, "selectstart", t), _e = !0, window.getSelection().removeAllRanges(), Ee && h(document.body, "user-select", "none");
|
|
796
796
|
},
|
|
797
797
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
798
798
|
_onDragOver: function(e) {
|
|
799
|
-
var o = this.el, t = e.target,
|
|
800
|
-
if (
|
|
801
|
-
function
|
|
802
|
-
|
|
799
|
+
var o = this.el, t = e.target, i, r, a, l = this.options, s = l.group, u = p.active, f = xe === s, c = l.sort, v = N || u, D, b = this, E = !1;
|
|
800
|
+
if (it) return;
|
|
801
|
+
function M(be, Gt) {
|
|
802
|
+
H(be, b, K({
|
|
803
803
|
evt: e,
|
|
804
804
|
isOwner: f,
|
|
805
805
|
axis: D ? "vertical" : "horizontal",
|
|
806
806
|
revert: a,
|
|
807
|
-
dragRect:
|
|
808
|
-
targetRect:
|
|
807
|
+
dragRect: i,
|
|
808
|
+
targetRect: r,
|
|
809
809
|
canSort: c,
|
|
810
|
-
fromSortable:
|
|
810
|
+
fromSortable: v,
|
|
811
811
|
target: t,
|
|
812
812
|
completed: A,
|
|
813
|
-
onMove: function(ft,
|
|
814
|
-
return
|
|
813
|
+
onMove: function(ft, zt) {
|
|
814
|
+
return Le(S, o, d, i, ft, x(ft), e, zt);
|
|
815
815
|
},
|
|
816
|
-
changed:
|
|
816
|
+
changed: X
|
|
817
817
|
}, Gt));
|
|
818
818
|
}
|
|
819
|
-
function
|
|
820
|
-
|
|
819
|
+
function z() {
|
|
820
|
+
M("dragOverAnimationCapture"), b.captureAnimationState(), b !== v && v.captureAnimationState();
|
|
821
821
|
}
|
|
822
822
|
function A(be) {
|
|
823
|
-
return
|
|
823
|
+
return M("dragOverCompleted", {
|
|
824
824
|
insertion: be
|
|
825
|
-
}), be && (f ? u._hideClone() : u._showClone(b), b !==
|
|
826
|
-
|
|
827
|
-
}), b !==
|
|
825
|
+
}), be && (f ? u._hideClone() : u._showClone(b), b !== v && (Y(d, N ? N.options.ghostClass : u.options.ghostClass, !1), Y(d, l.ghostClass, !0)), N !== b && b !== p.active ? N = b : b === p.active && N && (N = null), v === b && (b._ignoreWhileAnimating = t), b.animateAll(function() {
|
|
826
|
+
M("dragOverAnimationComplete"), b._ignoreWhileAnimating = null;
|
|
827
|
+
}), b !== v && (v.animateAll(), v._ignoreWhileAnimating = null)), (t === d && !d.animated || t === o && !t.animated) && (fe = null), !l.dragoverBubble && !e.rootEl && t !== document && (d.parentNode[k]._isOutsideThisEl(e.target), !be && ue(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), E = !0;
|
|
828
828
|
}
|
|
829
|
-
function
|
|
830
|
-
$ = G(d),
|
|
829
|
+
function X() {
|
|
830
|
+
$ = G(d), ie = G(d, l.draggable), F({
|
|
831
831
|
sortable: b,
|
|
832
832
|
name: "change",
|
|
833
833
|
toEl: o,
|
|
834
834
|
newIndex: $,
|
|
835
|
-
newDraggableIndex:
|
|
835
|
+
newDraggableIndex: ie,
|
|
836
836
|
originalEvent: e
|
|
837
837
|
});
|
|
838
838
|
}
|
|
839
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), t = j(t, l.draggable, o, !0),
|
|
839
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), t = j(t, l.draggable, o, !0), M("dragOver"), p.eventCanceled) return E;
|
|
840
840
|
if (d.contains(e.target) || t.animated && t.animatingX && t.animatingY || b._ignoreWhileAnimating === t)
|
|
841
841
|
return A(!1);
|
|
842
|
-
if (
|
|
843
|
-
if (D = this._getDirection(e, t) === "vertical",
|
|
842
|
+
if ($e = !1, u && !l.disabled && (f ? c || (a = C !== S) : N === this || (this.lastPutMode = xe.checkPull(this, u, d, e)) && s.checkPut(this, u, d, e))) {
|
|
843
|
+
if (D = this._getDirection(e, t) === "vertical", i = x(d), M("dragOverValid"), p.eventCanceled) return E;
|
|
844
844
|
if (a)
|
|
845
|
-
return C = S,
|
|
846
|
-
var
|
|
847
|
-
if (!
|
|
848
|
-
if (
|
|
845
|
+
return C = S, z(), this._hideClone(), M("revert"), p.eventCanceled || (de ? S.insertBefore(d, de) : S.appendChild(d)), A(!0);
|
|
846
|
+
var R = ut(o, l.draggable);
|
|
847
|
+
if (!R || bo(e, D, this) && !R.animated) {
|
|
848
|
+
if (R === d)
|
|
849
849
|
return A(!1);
|
|
850
|
-
if (
|
|
851
|
-
return
|
|
852
|
-
} else if (
|
|
853
|
-
var
|
|
854
|
-
if (
|
|
850
|
+
if (R && o === e.target && (t = R), t && (r = x(t)), Le(S, o, d, i, t, r, e, !!t) !== !1)
|
|
851
|
+
return z(), R && R.nextSibling ? o.insertBefore(d, R.nextSibling) : o.appendChild(d), C = o, X(), A(!0);
|
|
852
|
+
} else if (R && vo(e, D, this)) {
|
|
853
|
+
var Z = ge(o, 0, l, !0);
|
|
854
|
+
if (Z === d)
|
|
855
855
|
return A(!1);
|
|
856
|
-
if (t =
|
|
857
|
-
return
|
|
856
|
+
if (t = Z, r = x(t), Le(S, o, d, i, t, r, e, !1) !== !1)
|
|
857
|
+
return z(), o.insertBefore(d, Z), C = o, X(), A(!0);
|
|
858
858
|
} else if (t.parentNode === o) {
|
|
859
|
-
|
|
860
|
-
var U = 0,
|
|
861
|
-
fe !== t && (
|
|
862
|
-
var
|
|
859
|
+
r = x(t);
|
|
860
|
+
var U = 0, J, m = d.parentNode !== o, _ = !fo(d.animated && d.toRect || i, t.animated && t.toRect || r, D), T = D ? "top" : "left", P = vt(t, "top", "top") || vt(d, "top", "top"), q = P ? P.scrollTop : void 0;
|
|
861
|
+
fe !== t && (J = r[T], Ie = !1, Ae = !_ && l.invertSwap || m), U = _o(e, t, r, D, _ ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Ae, fe === t);
|
|
862
|
+
var B;
|
|
863
863
|
if (U !== 0) {
|
|
864
|
-
var
|
|
864
|
+
var Q = G(d);
|
|
865
865
|
do
|
|
866
|
-
|
|
867
|
-
while (
|
|
866
|
+
Q -= U, B = C.children[Q];
|
|
867
|
+
while (B && (h(B, "display") === "none" || B === g));
|
|
868
868
|
}
|
|
869
|
-
if (U === 0 ||
|
|
869
|
+
if (U === 0 || B === t)
|
|
870
870
|
return A(!1);
|
|
871
871
|
fe = t, Se = U;
|
|
872
|
-
var ve = t.nextElementSibling,
|
|
873
|
-
|
|
874
|
-
var
|
|
875
|
-
if (
|
|
876
|
-
return (
|
|
872
|
+
var ve = t.nextElementSibling, ne = !1;
|
|
873
|
+
ne = U === 1;
|
|
874
|
+
var Pe = Le(S, o, d, i, t, r, e, ne);
|
|
875
|
+
if (Pe !== !1)
|
|
876
|
+
return (Pe === 1 || Pe === -1) && (ne = Pe === 1), it = !0, setTimeout(go, 30), z(), ne && !ve ? o.appendChild(d) : t.parentNode.insertBefore(d, ne ? ve : t), P && Rt(P, 0, q - P.scrollTop), C = d.parentNode, J !== void 0 && !Ae && (He = Math.abs(J - x(t)[T])), X(), A(!0);
|
|
877
877
|
}
|
|
878
878
|
if (o.contains(d))
|
|
879
879
|
return A(!1);
|
|
@@ -890,52 +890,52 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
890
890
|
},
|
|
891
891
|
_onDrop: function(e) {
|
|
892
892
|
var o = this.el, t = this.options;
|
|
893
|
-
if ($ = G(d),
|
|
893
|
+
if ($ = G(d), ie = G(d, t.draggable), H("drop", this, {
|
|
894
894
|
evt: e
|
|
895
|
-
}), C = d && d.parentNode, $ = G(d),
|
|
895
|
+
}), C = d && d.parentNode, $ = G(d), ie = G(d, t.draggable), p.eventCanceled) {
|
|
896
896
|
this._nulling();
|
|
897
897
|
return;
|
|
898
898
|
}
|
|
899
|
-
he = !1,
|
|
899
|
+
he = !1, Ae = !1, Ie = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), rt(this.cloneId), rt(this._dragStartId), this.nativeDraggable && (w(document, "drop", this), w(o, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ee && h(document.body, "user-select", ""), h(d, "transform", ""), e && (_e && (e.cancelable && e.preventDefault(), !t.dropBubble && e.stopPropagation()), g && g.parentNode && g.parentNode.removeChild(g), (S === C || N && N.lastPutMode !== "clone") && I && I.parentNode && I.parentNode.removeChild(I), d && (this.nativeDraggable && w(d, "dragend", this), Qe(d), d.style["will-change"] = "", _e && !he && Y(d, N ? N.options.ghostClass : this.options.ghostClass, !1), Y(d, this.options.chosenClass, !1), F({
|
|
900
900
|
sortable: this,
|
|
901
901
|
name: "unchoose",
|
|
902
902
|
toEl: C,
|
|
903
903
|
newIndex: null,
|
|
904
904
|
newDraggableIndex: null,
|
|
905
905
|
originalEvent: e
|
|
906
|
-
}), S !== C ? ($ >= 0 && (
|
|
906
|
+
}), S !== C ? ($ >= 0 && (F({
|
|
907
907
|
rootEl: C,
|
|
908
908
|
name: "add",
|
|
909
909
|
toEl: C,
|
|
910
910
|
fromEl: S,
|
|
911
911
|
originalEvent: e
|
|
912
|
-
}),
|
|
912
|
+
}), F({
|
|
913
913
|
sortable: this,
|
|
914
914
|
name: "remove",
|
|
915
915
|
toEl: C,
|
|
916
916
|
originalEvent: e
|
|
917
|
-
}),
|
|
917
|
+
}), F({
|
|
918
918
|
rootEl: C,
|
|
919
919
|
name: "sort",
|
|
920
920
|
toEl: C,
|
|
921
921
|
fromEl: S,
|
|
922
922
|
originalEvent: e
|
|
923
|
-
}),
|
|
923
|
+
}), F({
|
|
924
924
|
sortable: this,
|
|
925
925
|
name: "sort",
|
|
926
926
|
toEl: C,
|
|
927
927
|
originalEvent: e
|
|
928
|
-
})),
|
|
928
|
+
})), N && N.save()) : $ !== pe && $ >= 0 && (F({
|
|
929
929
|
sortable: this,
|
|
930
930
|
name: "update",
|
|
931
931
|
toEl: C,
|
|
932
932
|
originalEvent: e
|
|
933
|
-
}),
|
|
933
|
+
}), F({
|
|
934
934
|
sortable: this,
|
|
935
935
|
name: "sort",
|
|
936
936
|
toEl: C,
|
|
937
937
|
originalEvent: e
|
|
938
|
-
})),
|
|
938
|
+
})), p.active && (($ == null || $ === -1) && ($ = pe, ie = Te), F({
|
|
939
939
|
sortable: this,
|
|
940
940
|
name: "end",
|
|
941
941
|
toEl: C,
|
|
@@ -943,7 +943,7 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
943
943
|
}), this.save()))), this._nulling();
|
|
944
944
|
},
|
|
945
945
|
_nulling: function() {
|
|
946
|
-
|
|
946
|
+
H("nulling", this), S = d = C = g = de = I = Be = re = se = W = _e = $ = ie = pe = Te = fe = Se = N = xe = p.dragged = p.ghost = p.clone = p.active = null, Ge.forEach(function(e) {
|
|
947
947
|
e.checked = !0;
|
|
948
948
|
}), Ge.length = Ke = Ze = 0;
|
|
949
949
|
},
|
|
@@ -967,8 +967,8 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
967
967
|
* @returns {String[]}
|
|
968
968
|
*/
|
|
969
969
|
toArray: function() {
|
|
970
|
-
for (var e = [], o, t = this.el.children,
|
|
971
|
-
o = t[
|
|
970
|
+
for (var e = [], o, t = this.el.children, i = 0, r = t.length, a = this.options; i < r; i++)
|
|
971
|
+
o = t[i], j(o, a.draggable, this.el, !1) && e.push(o.getAttribute(a.dataIdAttr) || yo(o));
|
|
972
972
|
return e;
|
|
973
973
|
},
|
|
974
974
|
/**
|
|
@@ -976,12 +976,12 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
976
976
|
* @param {String[]} order order of the items
|
|
977
977
|
*/
|
|
978
978
|
sort: function(e, o) {
|
|
979
|
-
var t = {},
|
|
980
|
-
this.toArray().forEach(function(
|
|
981
|
-
var l =
|
|
982
|
-
j(l, this.options.draggable,
|
|
983
|
-
}, this), o && this.captureAnimationState(), e.forEach(function(
|
|
984
|
-
t[
|
|
979
|
+
var t = {}, i = this.el;
|
|
980
|
+
this.toArray().forEach(function(r, a) {
|
|
981
|
+
var l = i.children[a];
|
|
982
|
+
j(l, this.options.draggable, i, !1) && (t[r] = l);
|
|
983
|
+
}, this), o && this.captureAnimationState(), e.forEach(function(r) {
|
|
984
|
+
t[r] && (i.removeChild(t[r]), i.appendChild(t[r]));
|
|
985
985
|
}), o && this.animateAll();
|
|
986
986
|
},
|
|
987
987
|
/**
|
|
@@ -1010,23 +1010,23 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
1010
1010
|
var t = this.options;
|
|
1011
1011
|
if (o === void 0)
|
|
1012
1012
|
return t[e];
|
|
1013
|
-
var
|
|
1014
|
-
typeof
|
|
1013
|
+
var i = Me.modifyOption(this, e, o);
|
|
1014
|
+
typeof i < "u" ? t[e] = i : t[e] = o, e === "group" && Xt(t);
|
|
1015
1015
|
},
|
|
1016
1016
|
/**
|
|
1017
1017
|
* Destroy
|
|
1018
1018
|
*/
|
|
1019
1019
|
destroy: function() {
|
|
1020
|
-
|
|
1020
|
+
H("destroy", this);
|
|
1021
1021
|
var e = this.el;
|
|
1022
|
-
e[
|
|
1022
|
+
e[k] = null, w(e, "mousedown", this._onTapStart), w(e, "touchstart", this._onTapStart), w(e, "pointerdown", this._onTapStart), this.nativeDraggable && (w(e, "dragover", this), w(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(o) {
|
|
1023
1023
|
o.removeAttribute("draggable");
|
|
1024
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
1024
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), Ue.splice(Ue.indexOf(this.el), 1), this.el = e = null;
|
|
1025
1025
|
},
|
|
1026
1026
|
_hideClone: function() {
|
|
1027
1027
|
if (!re) {
|
|
1028
|
-
if (
|
|
1029
|
-
|
|
1028
|
+
if (H("hideClone", this), p.eventCanceled) return;
|
|
1029
|
+
h(I, "display", "none"), this.options.removeCloneOnHide && I.parentNode && I.parentNode.removeChild(I), re = !0;
|
|
1030
1030
|
}
|
|
1031
1031
|
},
|
|
1032
1032
|
_showClone: function(e) {
|
|
@@ -1035,47 +1035,47 @@ m.prototype = /** @lends Sortable.prototype */
|
|
|
1035
1035
|
return;
|
|
1036
1036
|
}
|
|
1037
1037
|
if (re) {
|
|
1038
|
-
if (
|
|
1039
|
-
d.parentNode == S && !this.options.group.revertClone ? S.insertBefore(I, d) : de ? S.insertBefore(I, de) : S.appendChild(I), this.options.group.revertClone && this.animate(d, I),
|
|
1038
|
+
if (H("showClone", this), p.eventCanceled) return;
|
|
1039
|
+
d.parentNode == S && !this.options.group.revertClone ? S.insertBefore(I, d) : de ? S.insertBefore(I, de) : S.appendChild(I), this.options.group.revertClone && this.animate(d, I), h(I, "display", ""), re = !1;
|
|
1040
1040
|
}
|
|
1041
1041
|
}
|
|
1042
1042
|
};
|
|
1043
1043
|
function mo(n) {
|
|
1044
1044
|
n.dataTransfer && (n.dataTransfer.dropEffect = "move"), n.cancelable && n.preventDefault();
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1047
|
-
var s, u = n[
|
|
1048
|
-
return window.CustomEvent && !
|
|
1046
|
+
function Le(n, e, o, t, i, r, a, l) {
|
|
1047
|
+
var s, u = n[k], f = u.options.onMove, c;
|
|
1048
|
+
return window.CustomEvent && !oe && !Ce ? s = new CustomEvent("move", {
|
|
1049
1049
|
bubbles: !0,
|
|
1050
1050
|
cancelable: !0
|
|
1051
|
-
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = n, s.dragged = o, s.draggedRect = t, s.related =
|
|
1051
|
+
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = n, s.dragged = o, s.draggedRect = t, s.related = i || e, s.relatedRect = r || x(e), s.willInsertAfter = l, s.originalEvent = a, n.dispatchEvent(s), f && (c = f.call(u, s, a)), c;
|
|
1052
1052
|
}
|
|
1053
1053
|
function Qe(n) {
|
|
1054
1054
|
n.draggable = !1;
|
|
1055
1055
|
}
|
|
1056
1056
|
function go() {
|
|
1057
|
-
|
|
1057
|
+
it = !1;
|
|
1058
1058
|
}
|
|
1059
1059
|
function vo(n, e, o) {
|
|
1060
|
-
var t =
|
|
1061
|
-
return e ? n.clientX <
|
|
1060
|
+
var t = x(ge(o.el, 0, o.options, !0)), i = Bt(o.el, o.options, g), r = 10;
|
|
1061
|
+
return e ? n.clientX < i.left - r || n.clientY < t.top && n.clientX < t.right : n.clientY < i.top - r || n.clientY < t.bottom && n.clientX < t.left;
|
|
1062
1062
|
}
|
|
1063
1063
|
function bo(n, e, o) {
|
|
1064
|
-
var t =
|
|
1065
|
-
return e ? n.clientX >
|
|
1064
|
+
var t = x(ut(o.el, o.options.draggable)), i = Bt(o.el, o.options, g), r = 10;
|
|
1065
|
+
return e ? n.clientX > i.right + r || n.clientY > t.bottom && n.clientX > t.left : n.clientY > i.bottom + r || n.clientX > t.right && n.clientY > t.top;
|
|
1066
1066
|
}
|
|
1067
|
-
function _o(n, e, o, t,
|
|
1068
|
-
var s = t ? n.clientY : n.clientX, u = t ? o.height : o.width, f = t ? o.top : o.left, c = t ? o.bottom : o.right,
|
|
1067
|
+
function _o(n, e, o, t, i, r, a, l) {
|
|
1068
|
+
var s = t ? n.clientY : n.clientX, u = t ? o.height : o.width, f = t ? o.top : o.left, c = t ? o.bottom : o.right, v = !1;
|
|
1069
1069
|
if (!a) {
|
|
1070
|
-
if (l &&
|
|
1071
|
-
if (!Ie && (Se === 1 ? s > f + u *
|
|
1072
|
-
|
|
1073
|
-
else if (Se === 1 ? s < f +
|
|
1070
|
+
if (l && He < u * i) {
|
|
1071
|
+
if (!Ie && (Se === 1 ? s > f + u * r / 2 : s < c - u * r / 2) && (Ie = !0), Ie)
|
|
1072
|
+
v = !0;
|
|
1073
|
+
else if (Se === 1 ? s < f + He : s > c - He)
|
|
1074
1074
|
return -Se;
|
|
1075
|
-
} else if (s > f + u * (1 -
|
|
1075
|
+
} else if (s > f + u * (1 - i) / 2 && s < c - u * (1 - i) / 2)
|
|
1076
1076
|
return wo(e);
|
|
1077
1077
|
}
|
|
1078
|
-
return
|
|
1078
|
+
return v = v || a, v && (s < f + u * r / 2 || s > c - u * r / 2) ? s > f + u / 2 ? 1 : -1 : 0;
|
|
1079
1079
|
}
|
|
1080
1080
|
function wo(n) {
|
|
1081
1081
|
return G(d) < G(n) ? 1 : -1;
|
|
@@ -1092,52 +1092,52 @@ function Eo(n) {
|
|
|
1092
1092
|
t.checked && Ge.push(t);
|
|
1093
1093
|
}
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function ke(n) {
|
|
1096
1096
|
return setTimeout(n, 0);
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function rt(n) {
|
|
1099
1099
|
return clearTimeout(n);
|
|
1100
1100
|
}
|
|
1101
1101
|
je && y(document, "touchmove", function(n) {
|
|
1102
|
-
(
|
|
1102
|
+
(p.active || he) && n.cancelable && n.preventDefault();
|
|
1103
1103
|
});
|
|
1104
|
-
|
|
1104
|
+
p.utils = {
|
|
1105
1105
|
on: y,
|
|
1106
1106
|
off: w,
|
|
1107
|
-
css:
|
|
1108
|
-
find:
|
|
1107
|
+
css: h,
|
|
1108
|
+
find: Nt,
|
|
1109
1109
|
is: function(e, o) {
|
|
1110
1110
|
return !!j(e, o, e, !1);
|
|
1111
1111
|
},
|
|
1112
1112
|
extend: no,
|
|
1113
|
-
throttle:
|
|
1113
|
+
throttle: Lt,
|
|
1114
1114
|
closest: j,
|
|
1115
|
-
toggleClass:
|
|
1115
|
+
toggleClass: Y,
|
|
1116
1116
|
clone: Ft,
|
|
1117
1117
|
index: G,
|
|
1118
|
-
nextTick:
|
|
1119
|
-
cancelNextTick:
|
|
1120
|
-
detectDirection:
|
|
1118
|
+
nextTick: ke,
|
|
1119
|
+
cancelNextTick: rt,
|
|
1120
|
+
detectDirection: kt,
|
|
1121
1121
|
getChild: ge,
|
|
1122
|
-
expando:
|
|
1122
|
+
expando: k
|
|
1123
1123
|
};
|
|
1124
|
-
|
|
1125
|
-
return n[
|
|
1124
|
+
p.get = function(n) {
|
|
1125
|
+
return n[k];
|
|
1126
1126
|
};
|
|
1127
|
-
|
|
1127
|
+
p.mount = function() {
|
|
1128
1128
|
for (var n = arguments.length, e = new Array(n), o = 0; o < n; o++)
|
|
1129
1129
|
e[o] = arguments[o];
|
|
1130
1130
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(t) {
|
|
1131
1131
|
if (!t.prototype || !t.prototype.constructor)
|
|
1132
1132
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));
|
|
1133
|
-
t.utils && (
|
|
1133
|
+
t.utils && (p.utils = K(K({}, p.utils), t.utils)), Me.mount(t);
|
|
1134
1134
|
});
|
|
1135
1135
|
};
|
|
1136
|
-
|
|
1137
|
-
return new
|
|
1136
|
+
p.create = function(n, e) {
|
|
1137
|
+
return new p(n, e);
|
|
1138
1138
|
};
|
|
1139
|
-
|
|
1140
|
-
var
|
|
1139
|
+
p.version = to;
|
|
1140
|
+
var O = [], we, at, lt = !1, et, tt, ze, ye;
|
|
1141
1141
|
function Do() {
|
|
1142
1142
|
function n() {
|
|
1143
1143
|
this.defaults = {
|
|
@@ -1160,74 +1160,74 @@ function Do() {
|
|
|
1160
1160
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
1161
1161
|
},
|
|
1162
1162
|
drop: function() {
|
|
1163
|
-
this.sortable.nativeDraggable ? w(document, "dragover", this._handleAutoScroll) : (w(document, "pointermove", this._handleFallbackAutoScroll), w(document, "touchmove", this._handleFallbackAutoScroll), w(document, "mousemove", this._handleFallbackAutoScroll)), Et(), Xe(),
|
|
1163
|
+
this.sortable.nativeDraggable ? w(document, "dragover", this._handleAutoScroll) : (w(document, "pointermove", this._handleFallbackAutoScroll), w(document, "touchmove", this._handleFallbackAutoScroll), w(document, "mousemove", this._handleFallbackAutoScroll)), Et(), Xe(), io();
|
|
1164
1164
|
},
|
|
1165
1165
|
nulling: function() {
|
|
1166
|
-
|
|
1166
|
+
ze = at = we = lt = ye = et = tt = null, O.length = 0;
|
|
1167
1167
|
},
|
|
1168
1168
|
_handleFallbackAutoScroll: function(o) {
|
|
1169
1169
|
this._handleAutoScroll(o, !0);
|
|
1170
1170
|
},
|
|
1171
1171
|
_handleAutoScroll: function(o, t) {
|
|
1172
|
-
var
|
|
1173
|
-
if (
|
|
1172
|
+
var i = this, r = (o.touches ? o.touches[0] : o).clientX, a = (o.touches ? o.touches[0] : o).clientY, l = document.elementFromPoint(r, a);
|
|
1173
|
+
if (ze = o, t || this.options.forceAutoScrollFallback || Ce || oe || Ee) {
|
|
1174
1174
|
ot(o, this.options, l, t);
|
|
1175
|
-
var s =
|
|
1176
|
-
lt && (!ye ||
|
|
1177
|
-
var u =
|
|
1178
|
-
u !== s && (s = u, Xe()), ot(o,
|
|
1179
|
-
}, 10), et =
|
|
1175
|
+
var s = le(l, !0);
|
|
1176
|
+
lt && (!ye || r !== et || a !== tt) && (ye && Et(), ye = setInterval(function() {
|
|
1177
|
+
var u = le(document.elementFromPoint(r, a), !0);
|
|
1178
|
+
u !== s && (s = u, Xe()), ot(o, i.options, u, t);
|
|
1179
|
+
}, 10), et = r, tt = a);
|
|
1180
1180
|
} else {
|
|
1181
|
-
if (!this.options.bubbleScroll ||
|
|
1181
|
+
if (!this.options.bubbleScroll || le(l, !0) === V()) {
|
|
1182
1182
|
Xe();
|
|
1183
1183
|
return;
|
|
1184
1184
|
}
|
|
1185
|
-
ot(o, this.options,
|
|
1185
|
+
ot(o, this.options, le(l, !1), !1);
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
1188
|
-
},
|
|
1188
|
+
}, te(n, {
|
|
1189
1189
|
pluginName: "scroll",
|
|
1190
1190
|
initializeByDefault: !0
|
|
1191
1191
|
});
|
|
1192
1192
|
}
|
|
1193
1193
|
function Xe() {
|
|
1194
|
-
|
|
1194
|
+
O.forEach(function(n) {
|
|
1195
1195
|
clearInterval(n.pid);
|
|
1196
|
-
}),
|
|
1196
|
+
}), O = [];
|
|
1197
1197
|
}
|
|
1198
1198
|
function Et() {
|
|
1199
1199
|
clearInterval(ye);
|
|
1200
1200
|
}
|
|
1201
|
-
var ot =
|
|
1201
|
+
var ot = Lt(function(n, e, o, t) {
|
|
1202
1202
|
if (e.scroll) {
|
|
1203
|
-
var
|
|
1204
|
-
at !== o && (at = o, Xe(), we = e.scroll, f = e.scrollFn, we === !0 && (we =
|
|
1205
|
-
var c = 0,
|
|
1203
|
+
var i = (n.touches ? n.touches[0] : n).clientX, r = (n.touches ? n.touches[0] : n).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = V(), u = !1, f;
|
|
1204
|
+
at !== o && (at = o, Xe(), we = e.scroll, f = e.scrollFn, we === !0 && (we = le(o, !0)));
|
|
1205
|
+
var c = 0, v = we;
|
|
1206
1206
|
do {
|
|
1207
|
-
var D =
|
|
1208
|
-
D === s ? (
|
|
1209
|
-
var
|
|
1210
|
-
if (!
|
|
1211
|
-
for (var
|
|
1212
|
-
|
|
1213
|
-
(
|
|
1214
|
-
t && this.layer === 0 &&
|
|
1215
|
-
var ve =
|
|
1216
|
-
typeof f == "function" && f.call(
|
|
1207
|
+
var D = v, b = x(D), E = b.top, M = b.bottom, z = b.left, A = b.right, X = b.width, R = b.height, Z = void 0, U = void 0, J = D.scrollWidth, m = D.scrollHeight, _ = h(D), T = D.scrollLeft, P = D.scrollTop;
|
|
1208
|
+
D === s ? (Z = X < J && (_.overflowX === "auto" || _.overflowX === "scroll" || _.overflowX === "visible"), U = R < m && (_.overflowY === "auto" || _.overflowY === "scroll" || _.overflowY === "visible")) : (Z = X < J && (_.overflowX === "auto" || _.overflowX === "scroll"), U = R < m && (_.overflowY === "auto" || _.overflowY === "scroll"));
|
|
1209
|
+
var q = Z && (Math.abs(A - i) <= a && T + X < J) - (Math.abs(z - i) <= a && !!T), B = U && (Math.abs(M - r) <= a && P + R < m) - (Math.abs(E - r) <= a && !!P);
|
|
1210
|
+
if (!O[c])
|
|
1211
|
+
for (var Q = 0; Q <= c; Q++)
|
|
1212
|
+
O[Q] || (O[Q] = {});
|
|
1213
|
+
(O[c].vx != q || O[c].vy != B || O[c].el !== D) && (O[c].el = D, O[c].vx = q, O[c].vy = B, clearInterval(O[c].pid), (q != 0 || B != 0) && (u = !0, O[c].pid = setInterval((function() {
|
|
1214
|
+
t && this.layer === 0 && p.active._onTouchMove(ze);
|
|
1215
|
+
var ve = O[this.layer].vy ? O[this.layer].vy * l : 0, ne = O[this.layer].vx ? O[this.layer].vx * l : 0;
|
|
1216
|
+
typeof f == "function" && f.call(p.dragged.parentNode[k], ne, ve, n, ze, O[this.layer].el) !== "continue" || Rt(O[this.layer].el, ne, ve);
|
|
1217
1217
|
}).bind({
|
|
1218
1218
|
layer: c
|
|
1219
1219
|
}), 24))), c++;
|
|
1220
|
-
} while (e.bubbleScroll &&
|
|
1220
|
+
} while (e.bubbleScroll && v !== s && (v = le(v, !1)));
|
|
1221
1221
|
lt = u;
|
|
1222
1222
|
}
|
|
1223
|
-
}, 30),
|
|
1224
|
-
var o = e.originalEvent, t = e.putSortable,
|
|
1223
|
+
}, 30), Ut = function(e) {
|
|
1224
|
+
var o = e.originalEvent, t = e.putSortable, i = e.dragEl, r = e.activeSortable, a = e.dispatchSortableEvent, l = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
1225
1225
|
if (o) {
|
|
1226
|
-
var u = t ||
|
|
1226
|
+
var u = t || r;
|
|
1227
1227
|
l();
|
|
1228
1228
|
var f = o.changedTouches && o.changedTouches.length ? o.changedTouches[0] : o, c = document.elementFromPoint(f.clientX, f.clientY);
|
|
1229
1229
|
s(), u && !u.el.contains(c) && (a("spill"), this.onSpill({
|
|
1230
|
-
dragEl:
|
|
1230
|
+
dragEl: i,
|
|
1231
1231
|
putSortable: t
|
|
1232
1232
|
}));
|
|
1233
1233
|
}
|
|
@@ -1243,38 +1243,38 @@ dt.prototype = {
|
|
|
1243
1243
|
onSpill: function(e) {
|
|
1244
1244
|
var o = e.dragEl, t = e.putSortable;
|
|
1245
1245
|
this.sortable.captureAnimationState(), t && t.captureAnimationState();
|
|
1246
|
-
var
|
|
1247
|
-
|
|
1246
|
+
var i = ge(this.sortable.el, this.startIndex, this.options);
|
|
1247
|
+
i ? this.sortable.el.insertBefore(o, i) : this.sortable.el.appendChild(o), this.sortable.animateAll(), t && t.animateAll();
|
|
1248
1248
|
},
|
|
1249
|
-
drop:
|
|
1249
|
+
drop: Ut
|
|
1250
1250
|
};
|
|
1251
|
-
|
|
1251
|
+
te(dt, {
|
|
1252
1252
|
pluginName: "revertOnSpill"
|
|
1253
1253
|
});
|
|
1254
1254
|
function ct() {
|
|
1255
1255
|
}
|
|
1256
1256
|
ct.prototype = {
|
|
1257
1257
|
onSpill: function(e) {
|
|
1258
|
-
var o = e.dragEl, t = e.putSortable,
|
|
1259
|
-
|
|
1258
|
+
var o = e.dragEl, t = e.putSortable, i = t || this.sortable;
|
|
1259
|
+
i.captureAnimationState(), o.parentNode && o.parentNode.removeChild(o), i.animateAll();
|
|
1260
1260
|
},
|
|
1261
|
-
drop:
|
|
1261
|
+
drop: Ut
|
|
1262
1262
|
};
|
|
1263
|
-
|
|
1263
|
+
te(ct, {
|
|
1264
1264
|
pluginName: "removeOnSpill"
|
|
1265
1265
|
});
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
function To(n, e =
|
|
1269
|
-
const o =
|
|
1270
|
-
var
|
|
1271
|
-
(
|
|
1266
|
+
p.mount(new Do());
|
|
1267
|
+
p.mount(ct, dt);
|
|
1268
|
+
function To(n, e = ae({})) {
|
|
1269
|
+
const o = ae(null), t = () => {
|
|
1270
|
+
var i;
|
|
1271
|
+
(i = o.value) != null && i.destroy && (o.value.destroy(), o.value = null);
|
|
1272
1272
|
};
|
|
1273
1273
|
return nt(
|
|
1274
1274
|
n,
|
|
1275
|
-
(
|
|
1276
|
-
if (
|
|
1277
|
-
const
|
|
1275
|
+
(i) => {
|
|
1276
|
+
if (i != null) {
|
|
1277
|
+
const r = new p(i, {
|
|
1278
1278
|
...e.value,
|
|
1279
1279
|
/**
|
|
1280
1280
|
* Allows the component to be dragged only
|
|
@@ -1286,15 +1286,15 @@ function To(n, e = ie({})) {
|
|
|
1286
1286
|
*/
|
|
1287
1287
|
filter: ".b-draggable-handle--disabled"
|
|
1288
1288
|
});
|
|
1289
|
-
o.value =
|
|
1289
|
+
o.value = Wt(r);
|
|
1290
1290
|
} else
|
|
1291
1291
|
t();
|
|
1292
1292
|
},
|
|
1293
1293
|
{ immediate: !0 }
|
|
1294
|
-
), nt(e, (
|
|
1295
|
-
if (
|
|
1296
|
-
for (const
|
|
1297
|
-
o.value.option(
|
|
1294
|
+
), nt(e, (i) => {
|
|
1295
|
+
if (i && o.value)
|
|
1296
|
+
for (const r in i)
|
|
1297
|
+
o.value.option(r, i[r]);
|
|
1298
1298
|
}), Ct(() => {
|
|
1299
1299
|
o.value && t();
|
|
1300
1300
|
}), {
|
|
@@ -1303,13 +1303,13 @@ function To(n, e = ie({})) {
|
|
|
1303
1303
|
}
|
|
1304
1304
|
const So = 1e3;
|
|
1305
1305
|
function Io() {
|
|
1306
|
-
const n =
|
|
1306
|
+
const n = ae("");
|
|
1307
1307
|
let e = null;
|
|
1308
1308
|
const o = () => {
|
|
1309
1309
|
e && (clearTimeout(e), e = null);
|
|
1310
|
-
}, t = (
|
|
1310
|
+
}, t = (i) => {
|
|
1311
1311
|
o(), n.value = "", e = setTimeout(() => {
|
|
1312
|
-
n.value =
|
|
1312
|
+
n.value = i, e = null;
|
|
1313
1313
|
}, So);
|
|
1314
1314
|
};
|
|
1315
1315
|
return Ct(() => {
|
|
@@ -1326,41 +1326,68 @@ function Io() {
|
|
|
1326
1326
|
};
|
|
1327
1327
|
}
|
|
1328
1328
|
const Co = jt(() => {
|
|
1329
|
-
const n =
|
|
1330
|
-
return typeof window < "u" && (
|
|
1329
|
+
const n = ae(!1);
|
|
1330
|
+
return typeof window < "u" && (Oe(
|
|
1331
1331
|
window,
|
|
1332
1332
|
"keydown",
|
|
1333
1333
|
(e) => {
|
|
1334
1334
|
e.key === "Tab" && (n.value = !0);
|
|
1335
1335
|
},
|
|
1336
1336
|
{ capture: !0 }
|
|
1337
|
-
),
|
|
1337
|
+
), Oe(
|
|
1338
1338
|
window,
|
|
1339
1339
|
"mousedown",
|
|
1340
1340
|
() => {
|
|
1341
1341
|
n.value = !1;
|
|
1342
1342
|
},
|
|
1343
1343
|
{ capture: !0 }
|
|
1344
|
-
),
|
|
1344
|
+
), Oe(
|
|
1345
1345
|
window,
|
|
1346
1346
|
"touchstart",
|
|
1347
1347
|
() => {
|
|
1348
1348
|
n.value = !1;
|
|
1349
1349
|
},
|
|
1350
1350
|
{ capture: !0, passive: !0 }
|
|
1351
|
-
),
|
|
1351
|
+
), Oe(window, "blur", () => {
|
|
1352
1352
|
n.value = !1;
|
|
1353
1353
|
})), { isKeyboardUser: n };
|
|
1354
1354
|
}), Mo = {
|
|
1355
|
+
"de-DE": {
|
|
1356
|
+
youHaveMovedFromPositionToPosition: "Sie haben {itemLabel} von Position {indexOrigin} an Position {indexTarget} von {total} verschoben."
|
|
1357
|
+
},
|
|
1358
|
+
"en-GB": {
|
|
1359
|
+
youHaveMovedFromPositionToPosition: "You have moved {itemLabel} from position {indexOrigin} to position {indexTarget} of {total}."
|
|
1360
|
+
},
|
|
1355
1361
|
"en-US": {
|
|
1356
1362
|
youHaveMovedFromPositionToPosition: "You have moved {itemLabel} from position {indexOrigin} to position {indexTarget} of {total}."
|
|
1363
|
+
},
|
|
1364
|
+
"es-ES": {
|
|
1365
|
+
youHaveMovedFromPositionToPosition: "Has movido {itemLabel} de la posición {indexOrigin} a la posición {indexTarget} de {total}."
|
|
1366
|
+
},
|
|
1367
|
+
"es-MX": {
|
|
1368
|
+
youHaveMovedFromPositionToPosition: "Has movido {itemLabel} de la posición {indexOrigin} a la posición {indexTarget} de {total}."
|
|
1369
|
+
},
|
|
1370
|
+
"fr-FR": {
|
|
1371
|
+
youHaveMovedFromPositionToPosition: "Vous avez déplacé {itemLabel} de la position {indexOrigin} à la position {indexTarget} sur {total}."
|
|
1372
|
+
},
|
|
1373
|
+
"it-IT": {
|
|
1374
|
+
youHaveMovedFromPositionToPosition: "Hai spostato {itemLabel} dalla posizione {indexOrigin} alla posizione {indexTarget} di {total}."
|
|
1375
|
+
},
|
|
1376
|
+
"ja-JP": {
|
|
1377
|
+
youHaveMovedFromPositionToPosition: "{itemLabel} を {indexOrigin} の位置から {total} の {indexTarget} の位置に移動しました。"
|
|
1378
|
+
},
|
|
1379
|
+
"pt-BR": {
|
|
1380
|
+
youHaveMovedFromPositionToPosition: "Você moveu {itemLabel} da posição {indexOrigin} para a posição {indexTarget} de {total}."
|
|
1381
|
+
},
|
|
1382
|
+
"zh-CN": {
|
|
1383
|
+
youHaveMovedFromPositionToPosition: "您已将 {itemLabel} 从 {indexOrigin} 位置移动到 {indexTarget} 位置(共 {total} 个位置)。"
|
|
1357
1384
|
}
|
|
1358
|
-
},
|
|
1385
|
+
}, Po = {
|
|
1359
1386
|
name: "bento-draggable",
|
|
1360
1387
|
model: { prop: "items", event: "update:items" },
|
|
1361
1388
|
i18n: { messages: Mo }
|
|
1362
|
-
},
|
|
1363
|
-
...
|
|
1389
|
+
}, Oo = /* @__PURE__ */ Mt({
|
|
1390
|
+
...Po,
|
|
1364
1391
|
props: {
|
|
1365
1392
|
announcement: { default: "" },
|
|
1366
1393
|
disableAutoSort: { type: Boolean, default: !1 },
|
|
@@ -1370,68 +1397,72 @@ const Co = jt(() => {
|
|
|
1370
1397
|
},
|
|
1371
1398
|
emits: ["update:items"],
|
|
1372
1399
|
setup(n, { expose: e, emit: o }) {
|
|
1373
|
-
const t = n, r =
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1400
|
+
const t = n, i = ">:not(.b-draggable__announcement)", r = ae(null), a = ae(!1), l = ae([]), s = ae(null), u = Re(() => {
|
|
1401
|
+
var m;
|
|
1402
|
+
return r.value ? {
|
|
1403
|
+
...t.options,
|
|
1404
|
+
draggable: ((m = t.options) == null ? void 0 : m.draggable) ?? i,
|
|
1405
|
+
onStart: (_) => {
|
|
1406
|
+
var T, P;
|
|
1407
|
+
a.value = !0, (T = t.options) != null && T.onStart && ((P = t.options) == null || P.onStart(_));
|
|
1408
|
+
},
|
|
1409
|
+
onEnd: (_) => {
|
|
1410
|
+
setTimeout(() => {
|
|
1411
|
+
var T, P;
|
|
1412
|
+
a.value = !1, (T = t.options) != null && T.onEnd && ((P = t.options) == null || P.onEnd(_));
|
|
1413
|
+
});
|
|
1414
|
+
},
|
|
1415
|
+
onSort: (_) => {
|
|
1416
|
+
var T;
|
|
1417
|
+
if ((T = t.options) != null && T.onSort) {
|
|
1418
|
+
t.options.onSort(_);
|
|
1419
|
+
return;
|
|
1420
|
+
}
|
|
1421
|
+
if (!t.disableAutoSort) {
|
|
1422
|
+
const { oldIndex: P, newIndex: q, from: B, to: Q } = _;
|
|
1423
|
+
B === Q && B === r.value && P !== void 0 && q !== void 0 && M(P, q);
|
|
1424
|
+
}
|
|
1394
1425
|
}
|
|
1426
|
+
} : {};
|
|
1427
|
+
}), { announcementMessage: f, announce: c } = Io(), { t: v } = Pt(), { draggableElement: D } = To(r, u), { isKeyboardUser: b } = Co(), E = async (m) => {
|
|
1428
|
+
if (await ht(), m !== -1 && r.value) {
|
|
1429
|
+
const _ = r.value.children[m], T = _ == null ? void 0 : _.querySelector(".b-draggable-handle button");
|
|
1430
|
+
await ht(), T == null || T.focus();
|
|
1395
1431
|
}
|
|
1396
|
-
}
|
|
1397
|
-
if (
|
|
1398
|
-
const T = r.value.children[h], E = T == null ? void 0 : T.querySelector(".b-draggable-handle button");
|
|
1399
|
-
await ht(), E == null || E.focus();
|
|
1400
|
-
}
|
|
1401
|
-
}, v = async (h, T) => {
|
|
1402
|
-
if (h < 0 || T < 0 || h >= t.items.length || T >= t.items.length || h === T)
|
|
1432
|
+
}, M = async (m, _) => {
|
|
1433
|
+
if (m < 0 || _ < 0 || m >= t.items.length || _ >= t.items.length || m === _)
|
|
1403
1434
|
return;
|
|
1404
|
-
const
|
|
1405
|
-
|
|
1406
|
-
const
|
|
1407
|
-
itemLabel:
|
|
1408
|
-
indexOrigin:
|
|
1409
|
-
indexTarget:
|
|
1435
|
+
const T = Array.from(t.items), [P] = T.splice(m, 1);
|
|
1436
|
+
T.splice(_, 0, P), s.value = P, o("update:items", T.filter(Boolean));
|
|
1437
|
+
const q = P.label, B = (t == null ? void 0 : t.announcement) || v("youHaveMovedFromPositionToPosition", {
|
|
1438
|
+
itemLabel: q,
|
|
1439
|
+
indexOrigin: m + 1,
|
|
1440
|
+
indexTarget: _ + 1,
|
|
1410
1441
|
total: t.items.length
|
|
1411
1442
|
});
|
|
1412
|
-
t.announcement !== "disabled" &&
|
|
1413
|
-
},
|
|
1414
|
-
up:
|
|
1415
|
-
top:
|
|
1416
|
-
down:
|
|
1417
|
-
bottom:
|
|
1443
|
+
t.announcement !== "disabled" && c(B);
|
|
1444
|
+
}, z = (m) => M(m, m - 1), A = (m) => M(m, m + 1), X = (m) => M(m, m - 1), R = (m) => M(m, m + 1), Z = (m) => M(m, 0), U = (m) => M(m, t.items.length - 1), J = (m) => ({
|
|
1445
|
+
up: m === 0,
|
|
1446
|
+
top: m === 0,
|
|
1447
|
+
down: m === t.items.length - 1,
|
|
1448
|
+
bottom: m === t.items.length - 1,
|
|
1418
1449
|
left: !0,
|
|
1419
1450
|
right: !0
|
|
1420
1451
|
});
|
|
1421
1452
|
return nt(
|
|
1422
1453
|
() => t.items,
|
|
1423
|
-
async (
|
|
1424
|
-
if (
|
|
1425
|
-
if (
|
|
1426
|
-
if (
|
|
1427
|
-
const
|
|
1428
|
-
|
|
1429
|
-
} else if (
|
|
1430
|
-
const
|
|
1431
|
-
|
|
1454
|
+
async (m) => {
|
|
1455
|
+
if (m) {
|
|
1456
|
+
if (b.value && m.length > 0 && l.value.length > 0) {
|
|
1457
|
+
if (s.value) {
|
|
1458
|
+
const _ = m.indexOf(s.value);
|
|
1459
|
+
_ !== -1 && await E(_), s.value = null;
|
|
1460
|
+
} else if (m.length > l.value.length) {
|
|
1461
|
+
const _ = m.findIndex((T) => !l.value.includes(T));
|
|
1462
|
+
_ !== -1 && await E(_);
|
|
1432
1463
|
}
|
|
1433
1464
|
}
|
|
1434
|
-
|
|
1465
|
+
l.value = [...m];
|
|
1435
1466
|
}
|
|
1436
1467
|
},
|
|
1437
1468
|
{ deep: !0, immediate: !0 }
|
|
@@ -1443,52 +1474,52 @@ const Co = jt(() => {
|
|
|
1443
1474
|
/**
|
|
1444
1475
|
* The underlying SortableJS instance, which provides methods like `toArray()`, `sort()`, and `destroy()`.
|
|
1445
1476
|
*/
|
|
1446
|
-
draggableElement:
|
|
1477
|
+
draggableElement: D,
|
|
1447
1478
|
/**
|
|
1448
1479
|
* A boolean ref that is `true` when an item is being dragged.
|
|
1449
1480
|
*/
|
|
1450
|
-
isDragging:
|
|
1481
|
+
isDragging: a,
|
|
1451
1482
|
/**
|
|
1452
1483
|
* Announces a message to screen reader users via the live region.
|
|
1453
1484
|
*/
|
|
1454
|
-
announce:
|
|
1485
|
+
announce: c,
|
|
1455
1486
|
/**
|
|
1456
1487
|
* Moves an item from one index to another and emits the updated list.
|
|
1457
1488
|
*/
|
|
1458
|
-
moveItem:
|
|
1489
|
+
moveItem: M,
|
|
1459
1490
|
/**
|
|
1460
1491
|
* Programmatically focuses the draggable handle button at the given index.
|
|
1461
1492
|
*/
|
|
1462
|
-
focus:
|
|
1463
|
-
}), { __sfc: !0, props: t, emit: o, containerRef: r, isDragging:
|
|
1493
|
+
focus: E
|
|
1494
|
+
}), { __sfc: !0, ALL_CHILDREN_EXCEPT_SCREEN_READER_ELEMENTS: i, props: t, emit: o, containerRef: r, isDragging: a, internalItems: l, lastMovedItem: s, computedOptions: u, announcementMessage: f, announce: c, t: v, draggableElement: D, isKeyboardUser: b, focus: E, moveItem: M, moveItemUp: z, moveItemDown: A, moveItemLeft: X, moveItemRight: R, moveItemTop: Z, moveItemBottom: U, disabledMenuItems: J };
|
|
1464
1495
|
}
|
|
1465
1496
|
});
|
|
1466
|
-
var
|
|
1497
|
+
var xo = function() {
|
|
1467
1498
|
var e = this, o = e._self._c, t = e._self._setupProxy;
|
|
1468
|
-
return o(e.el, { ref: "containerRef", tag: "component" }, [e._l(e.items, function(
|
|
1469
|
-
return e._t("default", null, { item:
|
|
1499
|
+
return o(e.el, { ref: "containerRef", tag: "component" }, [e._l(e.items, function(i, r) {
|
|
1500
|
+
return e._t("default", null, { item: i, index: r, moveUp: () => t.moveItemUp(r), moveRight: () => t.moveItemRight(r), moveDown: () => t.moveItemDown(r), moveLeft: () => t.moveItemLeft(r), moveTop: () => t.moveItemTop(r), moveBottom: () => t.moveItemBottom(r), disabledMenus: t.disabledMenuItems(r) });
|
|
1470
1501
|
}), o("div", { staticClass: "b-draggable__announcement", attrs: { role: "status", "aria-live": "polite" } }, [e._v(" " + e._s(t.announcementMessage) + " ")])], 2);
|
|
1471
|
-
},
|
|
1502
|
+
}, Ao = [], No = /* @__PURE__ */ We(
|
|
1503
|
+
Oo,
|
|
1504
|
+
xo,
|
|
1472
1505
|
Ao,
|
|
1473
|
-
Po,
|
|
1474
|
-
No,
|
|
1475
1506
|
!1,
|
|
1476
1507
|
null,
|
|
1477
|
-
"
|
|
1508
|
+
"72c4db16"
|
|
1478
1509
|
);
|
|
1479
|
-
const rn =
|
|
1510
|
+
const rn = No.exports;
|
|
1480
1511
|
let Dt = 0;
|
|
1481
|
-
const
|
|
1512
|
+
const Lo = {
|
|
1482
1513
|
beforeCreate() {
|
|
1483
1514
|
this.uuid = Dt.toString(), Dt += 1;
|
|
1484
1515
|
}
|
|
1485
1516
|
};
|
|
1486
|
-
var
|
|
1517
|
+
var Ro = function() {
|
|
1487
1518
|
var e = this, o = e._self._c;
|
|
1488
1519
|
return o("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? o("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), o("path", { attrs: { fill: "#001222", d: "M8.75023 3.81089L13.0001 8.06077L14.0608 7.00011L8.00011 0.939453L1.93945 7.00011L3.00011 8.06077L7.25023 3.81066V14.7502H8.75023V3.81089Z" } })]);
|
|
1489
|
-
}, Fo = [], Bo = /* @__PURE__ */
|
|
1490
|
-
Ro,
|
|
1520
|
+
}, Fo = [], Bo = /* @__PURE__ */ We(
|
|
1491
1521
|
Lo,
|
|
1522
|
+
Ro,
|
|
1492
1523
|
Fo,
|
|
1493
1524
|
!1,
|
|
1494
1525
|
null,
|
|
@@ -1496,23 +1527,23 @@ var Lo = function() {
|
|
|
1496
1527
|
);
|
|
1497
1528
|
const Tt = Bo.exports;
|
|
1498
1529
|
let St = 0;
|
|
1499
|
-
const
|
|
1530
|
+
const Ho = {
|
|
1500
1531
|
beforeCreate() {
|
|
1501
1532
|
this.uuid = St.toString(), St += 1;
|
|
1502
1533
|
}
|
|
1503
1534
|
};
|
|
1504
|
-
var
|
|
1535
|
+
var ko = function() {
|
|
1505
1536
|
var e = this, o = e._self._c;
|
|
1506
1537
|
return o("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? o("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), o("path", { attrs: { fill: "#001222", d: "M7.25434 12.1937L3.00011 7.93952L1.93945 9.00018L8.00011 15.0608L14.0608 9.00018L13.0001 7.93952L8.75433 12.1853L8.74316 1.24951L7.24316 1.25104L7.25434 12.1937Z" } })]);
|
|
1507
|
-
}, Xo = [],
|
|
1538
|
+
}, Xo = [], Yo = /* @__PURE__ */ We(
|
|
1539
|
+
Ho,
|
|
1508
1540
|
ko,
|
|
1509
|
-
Yo,
|
|
1510
1541
|
Xo,
|
|
1511
1542
|
!1,
|
|
1512
1543
|
null,
|
|
1513
1544
|
null
|
|
1514
1545
|
);
|
|
1515
|
-
const It =
|
|
1546
|
+
const It = Yo.exports, $o = {
|
|
1516
1547
|
"de-DE": {
|
|
1517
1548
|
moveDown: "Nach unten",
|
|
1518
1549
|
moveLeft: "Nach links",
|
|
@@ -1603,11 +1634,11 @@ const It = $o.exports, Uo = {
|
|
|
1603
1634
|
moveUp: "上移",
|
|
1604
1635
|
reorderLabel: "重新排序 {label}"
|
|
1605
1636
|
}
|
|
1606
|
-
},
|
|
1607
|
-
i18n: { messages:
|
|
1637
|
+
}, Uo = {
|
|
1638
|
+
i18n: { messages: $o },
|
|
1608
1639
|
name: "bento-draggable-handle"
|
|
1609
1640
|
}, Go = /* @__PURE__ */ Mt({
|
|
1610
|
-
...
|
|
1641
|
+
...Uo,
|
|
1611
1642
|
props: {
|
|
1612
1643
|
condensed: { default: !1 },
|
|
1613
1644
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -1617,21 +1648,21 @@ const It = $o.exports, Uo = {
|
|
|
1617
1648
|
},
|
|
1618
1649
|
emits: ["move-bottom", "move-down", "move-left", "move-right", "move-top", "move-up"],
|
|
1619
1650
|
setup(n, { emit: e }) {
|
|
1620
|
-
const o = n, { t } =
|
|
1651
|
+
const o = n, { t } = Pt(), i = Re(
|
|
1621
1652
|
() => ({
|
|
1622
1653
|
"aria-label": t("reorderLabel", { label: o.label }),
|
|
1623
1654
|
condensed: o.condensed,
|
|
1624
1655
|
disabled: o.disabled,
|
|
1625
1656
|
variant: "tertiary"
|
|
1626
1657
|
})
|
|
1627
|
-
),
|
|
1658
|
+
), r = Re(() => ({
|
|
1628
1659
|
/**
|
|
1629
1660
|
* Disables the handle and prevents the entire
|
|
1630
1661
|
* element from being dragged.
|
|
1631
1662
|
* Used by `useBentoDraggable`
|
|
1632
1663
|
*/
|
|
1633
1664
|
"b-draggable-handle--disabled": o.disabled
|
|
1634
|
-
})), a =
|
|
1665
|
+
})), a = Re(() => {
|
|
1635
1666
|
const l = {
|
|
1636
1667
|
up: {
|
|
1637
1668
|
text: t("moveUp"),
|
|
@@ -1692,18 +1723,18 @@ const It = $o.exports, Uo = {
|
|
|
1692
1723
|
l.bottom
|
|
1693
1724
|
];
|
|
1694
1725
|
});
|
|
1695
|
-
return { __sfc: !0, t, props: o, emit: e, buttonComputedProps:
|
|
1726
|
+
return { __sfc: !0, t, props: o, emit: e, buttonComputedProps: i, computedClasses: r, menuData: a, BentoMenu: qt, GrabIcon: Vt };
|
|
1696
1727
|
}
|
|
1697
1728
|
});
|
|
1698
|
-
var
|
|
1729
|
+
var zo = function() {
|
|
1699
1730
|
var e = this, o = e._self._c, t = e._self._setupProxy;
|
|
1700
1731
|
return o(t.BentoMenu, { staticClass: "b-draggable-handle", class: t.computedClasses, attrs: { data: t.menuData, "menu-width": 250, button: t.buttonComputedProps }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
1701
1732
|
return [o("span", { staticClass: "b-draggable-handle__icon" }, [o(t.GrabIcon, { attrs: { "aria-hidden": "true" } })], 1)];
|
|
1702
1733
|
}, proxy: !0 }]) });
|
|
1703
|
-
},
|
|
1734
|
+
}, Wo = [], jo = /* @__PURE__ */ We(
|
|
1704
1735
|
Go,
|
|
1705
|
-
Wo,
|
|
1706
1736
|
zo,
|
|
1737
|
+
Wo,
|
|
1707
1738
|
!1,
|
|
1708
1739
|
null,
|
|
1709
1740
|
"71d10de0"
|
|
@@ -1713,4 +1744,4 @@ export {
|
|
|
1713
1744
|
an as a,
|
|
1714
1745
|
rn as d
|
|
1715
1746
|
};
|
|
1716
|
-
//# sourceMappingURL=draggable-handle.
|
|
1747
|
+
//# sourceMappingURL=draggable-handle.DIhHtHG9.js.map
|