@ianicdev/datatables2 0.11.5 → 0.11.7
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/{Comparison-DL9ojj3w.js → Comparison-BGS-fuIe.js} +1 -1
- package/dist/{Comparison-zf9wgAkk.cjs → Comparison-De27pAUU.cjs} +1 -1
- package/dist/Datepicker-CIuhuD6k.cjs +2 -0
- package/dist/{Datepicker-Duwv3zQB.js → Datepicker-Cw_J535b.js} +514 -509
- package/dist/{Options-BE82c0Zz.cjs → Options-DEe2eGBJ.cjs} +1 -1
- package/dist/{Options-CurNvolo.js → Options-I1PQEYFi.js} +5 -5
- package/dist/{RefreshTable-Cc0I1PA5.cjs → RefreshTable-CwKNOxC1.cjs} +1 -1
- package/dist/{RefreshTable-Cn3y6Lyg.js → RefreshTable-DJh8kVcF.js} +2 -2
- package/dist/{Search-BUb6ZctR.js → Search-C8e4aEIt.js} +2 -2
- package/dist/{Search-CvOD_IHr.cjs → Search-_MWrcP0W.cjs} +1 -1
- package/dist/{Table-DRC6dqmS.cjs → Table-BJ5tGV-x.cjs} +1 -1
- package/dist/{Table-D5xj84Hx.js → Table-ubU5wjVY.js} +3 -3
- package/dist/{TableServer-BrktC88-.cjs → TableServer-CDPE93Bi.cjs} +1 -1
- package/dist/{TableServer-DGx2_VC7.js → TableServer-DuwL1c97.js} +3 -3
- package/dist/cellRender-Dh2_N7Hn.cjs +1 -0
- package/dist/cellRender-u5Pfy695.js +2363 -0
- package/dist/dataTables-BxXcbziu.cjs +4 -0
- package/dist/{dataTables-BEIZ1GFJ.js → dataTables-Du4VyMxR.js} +2337 -2166
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/datatables2.css +1 -1
- package/dist/index-BeStYA4v.cjs +1 -0
- package/dist/{index-kEBJD9Uz.cjs → index-BebQe8X1.cjs} +1 -1
- package/dist/{index-DdbT75rv.js → index-CTF3ArB5.js} +2 -2
- package/dist/{index-C9IAfraU.cjs → index-Cfk_p1QT.cjs} +1 -1
- package/dist/{index-A7VzNfop.js → index-D0oTlDPt.js} +2 -2
- package/dist/index-Dlb5c56z.js +4618 -0
- package/dist/{index-Db7uKS4O.cjs → index-R3Q-lW3h.cjs} +1 -1
- package/dist/{index-BfwTwETw.js → index-pVnRXL21.js} +2 -2
- package/dist/{index.es-DB0V-0tm.js → index.es-BMrS5t0X.js} +1 -1
- package/dist/{index.es-DZnpWbiI.cjs → index.es-bmkO-qSm.cjs} +1 -1
- package/dist/{jspdf-BDAGZhm6.cjs → jspdf-BCsjByej.cjs} +24 -24
- package/dist/{jspdf-DpfxfImq.js → jspdf-BEHFm2qd.js} +480 -464
- package/dist/useColumns-BpprQUUi.cjs +1 -0
- package/dist/{useColumns-Dmca5HPg.js → useColumns-Csi8mDCk.js} +302 -286
- package/dist/{useDownload-DVYhgsLa.js → useDownload-B9YtKO_M.js} +1 -1
- package/dist/{useDownload-YBEDFv5z.cjs → useDownload-CELkYaWd.cjs} +1 -1
- package/dist/{useRefreshTable-BjtSww_t.cjs → useRefreshTable-CYZLF_fz.cjs} +1 -1
- package/dist/{useRefreshTable-BoTF0YZF.js → useRefreshTable-DkrhQ57E.js} +1 -1
- package/package.json +16 -16
- package/dist/Datepicker-Dg15YseP.cjs +0 -2
- package/dist/cellRender-DN6k6hHB.js +0 -2252
- package/dist/cellRender-DcK06KSn.cjs +0 -1
- package/dist/dataTables-DocfWkcv.cjs +0 -4
- package/dist/index-CqeIrUKn.cjs +0 -1
- package/dist/index-DIJYRSnI.js +0 -4482
- package/dist/useColumns-FMszZoTi.cjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as ue, useId as Zt, createVNode as R, mergeProps as bt, computed as Mt, watch as Qt, isRef as
|
|
1
|
+
import { ref as ue, useId as Zt, createVNode as R, mergeProps as bt, computed as Mt, watch as Qt, isRef as rt, toValue as yt, nextTick as at, inject as lt, useTemplateRef as Jt, onMounted as en, openBlock as ze, createBlock as wt, unref as ce, withCtx as J, createElementVNode as tn, toDisplayString as nn, createElementBlock as on, Fragment as rn, renderList as an } from "vue";
|
|
2
2
|
import { defaultDocument as ln, unrefElement as sn, tryOnMounted as un, tryOnScopeDispose as cn } from "@vueuse/core";
|
|
3
|
-
import { p as dn, q as Et, c as _t, r as fn, s as hn, u as pn, k as
|
|
4
|
-
import { g as En, E as _n, h as Dn, a3 as Sn, ao as Tn, p as Cn, a7 as Dt, aL as
|
|
3
|
+
import { p as dn, q as Et, c as _t, r as fn, s as hn, u as pn, k as mn, t as gn, g as vn, v as bn, h as yn, w as wn, a as Ue } from "./index-Dlb5c56z.js";
|
|
4
|
+
import { g as En, E as _n, h as Dn, a3 as Sn, ao as Tn, p as Cn, a7 as Dt, aL as qe, ax as St, au as In, av as On, i as xn } from "./dataTables-Du4VyMxR.js";
|
|
5
5
|
import { useI18n as Pn } from "vue-i18n";
|
|
6
6
|
const An = Cn({
|
|
7
7
|
...Dt(hn(), ["direction"]),
|
|
@@ -31,20 +31,20 @@ const An = Cn({
|
|
|
31
31
|
class: ["v-checkbox", n.class]
|
|
32
32
|
}, f, b, {
|
|
33
33
|
modelValue: i.value,
|
|
34
|
-
"onUpdate:modelValue": (
|
|
34
|
+
"onUpdate:modelValue": (g) => i.value = g,
|
|
35
35
|
id: n.id || `checkbox-${u}`,
|
|
36
36
|
focused: r.value,
|
|
37
37
|
style: n.style
|
|
38
38
|
}), {
|
|
39
39
|
...t,
|
|
40
|
-
default: (
|
|
40
|
+
default: (g) => {
|
|
41
41
|
let {
|
|
42
42
|
id: h,
|
|
43
43
|
messagesId: _,
|
|
44
44
|
isDisabled: O,
|
|
45
45
|
isReadonly: x,
|
|
46
46
|
isValid: N
|
|
47
|
-
} =
|
|
47
|
+
} = g;
|
|
48
48
|
return R(_t, bt(y, {
|
|
49
49
|
id: h.value,
|
|
50
50
|
"aria-describedby": _.value,
|
|
@@ -62,6 +62,23 @@ const An = Cn({
|
|
|
62
62
|
}), Tn({}, s);
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
|
+
function kn(n, e, o) {
|
|
66
|
+
return (e = Vn(e)) in n ? Object.defineProperty(n, e, {
|
|
67
|
+
value: o,
|
|
68
|
+
enumerable: !0,
|
|
69
|
+
configurable: !0,
|
|
70
|
+
writable: !0
|
|
71
|
+
}) : n[e] = o, n;
|
|
72
|
+
}
|
|
73
|
+
function q() {
|
|
74
|
+
return q = Object.assign ? Object.assign.bind() : function(n) {
|
|
75
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
76
|
+
var o = arguments[e];
|
|
77
|
+
for (var t in o) ({}).hasOwnProperty.call(o, t) && (n[t] = o[t]);
|
|
78
|
+
}
|
|
79
|
+
return n;
|
|
80
|
+
}, q.apply(null, arguments);
|
|
81
|
+
}
|
|
65
82
|
function Tt(n, e) {
|
|
66
83
|
var o = Object.keys(n);
|
|
67
84
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -72,7 +89,7 @@ function Tt(n, e) {
|
|
|
72
89
|
}
|
|
73
90
|
return o;
|
|
74
91
|
}
|
|
75
|
-
function
|
|
92
|
+
function G(n) {
|
|
76
93
|
for (var e = 1; e < arguments.length; e++) {
|
|
77
94
|
var o = arguments[e] != null ? arguments[e] : {};
|
|
78
95
|
e % 2 ? Tt(Object(o), !0).forEach(function(t) {
|
|
@@ -83,50 +100,47 @@ function j(n) {
|
|
|
83
100
|
}
|
|
84
101
|
return n;
|
|
85
102
|
}
|
|
86
|
-
function Ve(n) {
|
|
87
|
-
"@babel/helpers - typeof";
|
|
88
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ve = function(e) {
|
|
89
|
-
return typeof e;
|
|
90
|
-
} : Ve = function(e) {
|
|
91
|
-
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
92
|
-
}, Ve(n);
|
|
93
|
-
}
|
|
94
|
-
function kn(n, e, o) {
|
|
95
|
-
return e in n ? Object.defineProperty(n, e, {
|
|
96
|
-
value: o,
|
|
97
|
-
enumerable: !0,
|
|
98
|
-
configurable: !0,
|
|
99
|
-
writable: !0
|
|
100
|
-
}) : n[e] = o, n;
|
|
101
|
-
}
|
|
102
|
-
function q() {
|
|
103
|
-
return q = Object.assign || function(n) {
|
|
104
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
105
|
-
var o = arguments[e];
|
|
106
|
-
for (var t in o)
|
|
107
|
-
Object.prototype.hasOwnProperty.call(o, t) && (n[t] = o[t]);
|
|
108
|
-
}
|
|
109
|
-
return n;
|
|
110
|
-
}, q.apply(this, arguments);
|
|
111
|
-
}
|
|
112
103
|
function Mn(n, e) {
|
|
113
104
|
if (n == null) return {};
|
|
114
|
-
var o
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
105
|
+
var o, t, i = Fn(n, e);
|
|
106
|
+
if (Object.getOwnPropertySymbols) {
|
|
107
|
+
var r = Object.getOwnPropertySymbols(n);
|
|
108
|
+
for (t = 0; t < r.length; t++) o = r[t], e.indexOf(o) === -1 && {}.propertyIsEnumerable.call(n, o) && (i[o] = n[o]);
|
|
109
|
+
}
|
|
110
|
+
return i;
|
|
118
111
|
}
|
|
119
112
|
function Fn(n, e) {
|
|
120
113
|
if (n == null) return {};
|
|
121
|
-
var o =
|
|
122
|
-
if (
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
t = r[i], !(e.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(n, t) && (o[t] = n[t]);
|
|
114
|
+
var o = {};
|
|
115
|
+
for (var t in n) if ({}.hasOwnProperty.call(n, t)) {
|
|
116
|
+
if (e.indexOf(t) !== -1) continue;
|
|
117
|
+
o[t] = n[t];
|
|
126
118
|
}
|
|
127
119
|
return o;
|
|
128
120
|
}
|
|
129
|
-
|
|
121
|
+
function Rn(n, e) {
|
|
122
|
+
if (typeof n != "object" || !n) return n;
|
|
123
|
+
var o = n[Symbol.toPrimitive];
|
|
124
|
+
if (o !== void 0) {
|
|
125
|
+
var t = o.call(n, e);
|
|
126
|
+
if (typeof t != "object") return t;
|
|
127
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
128
|
+
}
|
|
129
|
+
return (e === "string" ? String : Number)(n);
|
|
130
|
+
}
|
|
131
|
+
function Vn(n) {
|
|
132
|
+
var e = Rn(n, "string");
|
|
133
|
+
return typeof e == "symbol" ? e : e + "";
|
|
134
|
+
}
|
|
135
|
+
function st(n) {
|
|
136
|
+
"@babel/helpers - typeof";
|
|
137
|
+
return st = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
138
|
+
return typeof e;
|
|
139
|
+
} : function(e) {
|
|
140
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
141
|
+
}, st(n);
|
|
142
|
+
}
|
|
143
|
+
var Bn = "1.15.7";
|
|
130
144
|
function U(n) {
|
|
131
145
|
if (typeof window < "u" && window.navigator)
|
|
132
146
|
return !!/* @__PURE__ */ navigator.userAgent.match(n);
|
|
@@ -141,7 +155,7 @@ function E(n, e, o) {
|
|
|
141
155
|
function w(n, e, o) {
|
|
142
156
|
n.removeEventListener(e, o, !K && Rt);
|
|
143
157
|
}
|
|
144
|
-
function
|
|
158
|
+
function je(n, e) {
|
|
145
159
|
if (e) {
|
|
146
160
|
if (e[0] === ">" && (e = e.substring(1)), n)
|
|
147
161
|
try {
|
|
@@ -158,13 +172,13 @@ function He(n, e) {
|
|
|
158
172
|
}
|
|
159
173
|
}
|
|
160
174
|
function Vt(n) {
|
|
161
|
-
return n.host && n !== document && n.host.nodeType ? n.host : n.parentNode;
|
|
175
|
+
return n.host && n !== document && n.host.nodeType && n.host !== n ? n.host : n.parentNode;
|
|
162
176
|
}
|
|
163
|
-
function
|
|
177
|
+
function H(n, e, o, t) {
|
|
164
178
|
if (n) {
|
|
165
179
|
o = o || document;
|
|
166
180
|
do {
|
|
167
|
-
if (e != null && (e[0] === ">" ? n.parentNode === o &&
|
|
181
|
+
if (e != null && (e[0] === ">" ? n.parentNode === o && je(n, e) : je(n, e)) || t && n === o)
|
|
168
182
|
return n;
|
|
169
183
|
if (n === o) break;
|
|
170
184
|
} while (n = Vt(n));
|
|
@@ -189,7 +203,7 @@ function p(n, e, o) {
|
|
|
189
203
|
!(e in t) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), t[e] = o + (typeof o == "string" ? "" : "px");
|
|
190
204
|
}
|
|
191
205
|
}
|
|
192
|
-
function
|
|
206
|
+
function me(n, e) {
|
|
193
207
|
var o = "";
|
|
194
208
|
if (typeof n == "string")
|
|
195
209
|
o = n;
|
|
@@ -211,14 +225,14 @@ function Bt(n, e, o) {
|
|
|
211
225
|
}
|
|
212
226
|
return [];
|
|
213
227
|
}
|
|
214
|
-
function
|
|
228
|
+
function $() {
|
|
215
229
|
var n = document.scrollingElement;
|
|
216
230
|
return n || document.documentElement;
|
|
217
231
|
}
|
|
218
232
|
function I(n, e, o, t, i) {
|
|
219
233
|
if (!(!n.getBoundingClientRect && n !== window)) {
|
|
220
234
|
var r, a, l, s, u, f, d;
|
|
221
|
-
if (n !== window && n.parentNode && n !==
|
|
235
|
+
if (n !== window && n.parentNode && n !== $() ? (r = n.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right, f = r.height, d = r.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, f = window.innerHeight, d = window.innerWidth), (e || o) && n !== window && (i = i || n.parentNode, !K))
|
|
222
236
|
do
|
|
223
237
|
if (i && i.getBoundingClientRect && (p(i, "transform") !== "none" || o && p(i, "position") !== "static")) {
|
|
224
238
|
var b = i.getBoundingClientRect();
|
|
@@ -227,8 +241,8 @@ function I(n, e, o, t, i) {
|
|
|
227
241
|
}
|
|
228
242
|
while (i = i.parentNode);
|
|
229
243
|
if (t && n !== window) {
|
|
230
|
-
var y =
|
|
231
|
-
y && (a /= h, l /=
|
|
244
|
+
var y = me(i || n), g = y && y.a, h = y && y.d;
|
|
245
|
+
y && (a /= h, l /= g, d /= g, f /= h, s = a + f, u = l + d);
|
|
232
246
|
}
|
|
233
247
|
return {
|
|
234
248
|
top: a,
|
|
@@ -244,14 +258,14 @@ function Ot(n, e, o) {
|
|
|
244
258
|
for (var t = ne(n, !0), i = I(n)[e]; t; ) {
|
|
245
259
|
var r = I(t)[o], a = void 0;
|
|
246
260
|
if (a = i >= r, !a) return t;
|
|
247
|
-
if (t ===
|
|
261
|
+
if (t === $()) break;
|
|
248
262
|
t = ne(t, !1);
|
|
249
263
|
}
|
|
250
264
|
return !1;
|
|
251
265
|
}
|
|
252
|
-
function
|
|
266
|
+
function ge(n, e, o, t) {
|
|
253
267
|
for (var i = 0, r = 0, a = n.children; r < a.length; ) {
|
|
254
|
-
if (a[r].style.display !== "none" && a[r] !==
|
|
268
|
+
if (a[r].style.display !== "none" && a[r] !== m.ghost && (t || a[r] !== m.dragged) && H(a[r], o.draggable, n, !1)) {
|
|
255
269
|
if (i === e)
|
|
256
270
|
return a[r];
|
|
257
271
|
i++;
|
|
@@ -261,28 +275,28 @@ function me(n, e, o, t) {
|
|
|
261
275
|
return null;
|
|
262
276
|
}
|
|
263
277
|
function pt(n, e) {
|
|
264
|
-
for (var o = n.lastElementChild; o && (o ===
|
|
278
|
+
for (var o = n.lastElementChild; o && (o === m.ghost || p(o, "display") === "none" || e && !je(o, e)); )
|
|
265
279
|
o = o.previousElementSibling;
|
|
266
280
|
return o || null;
|
|
267
281
|
}
|
|
268
|
-
function
|
|
282
|
+
function j(n, e) {
|
|
269
283
|
var o = 0;
|
|
270
284
|
if (!n || !n.parentNode)
|
|
271
285
|
return -1;
|
|
272
286
|
for (; n = n.previousElementSibling; )
|
|
273
|
-
n.nodeName.toUpperCase() !== "TEMPLATE" && n !==
|
|
287
|
+
n.nodeName.toUpperCase() !== "TEMPLATE" && n !== m.clone && (!e || je(n, e)) && o++;
|
|
274
288
|
return o;
|
|
275
289
|
}
|
|
276
290
|
function xt(n) {
|
|
277
|
-
var e = 0, o = 0, t =
|
|
291
|
+
var e = 0, o = 0, t = $();
|
|
278
292
|
if (n)
|
|
279
293
|
do {
|
|
280
|
-
var i =
|
|
294
|
+
var i = me(n), r = i.a, a = i.d;
|
|
281
295
|
e += n.scrollLeft * r, o += n.scrollTop * a;
|
|
282
296
|
} while (n !== t && (n = n.parentNode));
|
|
283
297
|
return [e, o];
|
|
284
298
|
}
|
|
285
|
-
function
|
|
299
|
+
function Xn(n, e) {
|
|
286
300
|
for (var o in n)
|
|
287
301
|
if (n.hasOwnProperty(o)) {
|
|
288
302
|
for (var t in e)
|
|
@@ -291,27 +305,27 @@ function Vn(n, e) {
|
|
|
291
305
|
return -1;
|
|
292
306
|
}
|
|
293
307
|
function ne(n, e) {
|
|
294
|
-
if (!n || !n.getBoundingClientRect) return
|
|
308
|
+
if (!n || !n.getBoundingClientRect) return $();
|
|
295
309
|
var o = n, t = !1;
|
|
296
310
|
do
|
|
297
311
|
if (o.clientWidth < o.scrollWidth || o.clientHeight < o.scrollHeight) {
|
|
298
312
|
var i = p(o);
|
|
299
313
|
if (o.clientWidth < o.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || o.clientHeight < o.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
300
|
-
if (!o.getBoundingClientRect || o === document.body) return
|
|
314
|
+
if (!o.getBoundingClientRect || o === document.body) return $();
|
|
301
315
|
if (t || e) return o;
|
|
302
316
|
t = !0;
|
|
303
317
|
}
|
|
304
318
|
}
|
|
305
319
|
while (o = o.parentNode);
|
|
306
|
-
return
|
|
320
|
+
return $();
|
|
307
321
|
}
|
|
308
|
-
function
|
|
322
|
+
function Yn(n, e) {
|
|
309
323
|
if (n && e)
|
|
310
324
|
for (var o in e)
|
|
311
325
|
e.hasOwnProperty(o) && (n[o] = e[o]);
|
|
312
326
|
return n;
|
|
313
327
|
}
|
|
314
|
-
function
|
|
328
|
+
function Ke(n, e) {
|
|
315
329
|
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);
|
|
316
330
|
}
|
|
317
331
|
var Ce;
|
|
@@ -325,42 +339,42 @@ function Xt(n, e) {
|
|
|
325
339
|
}
|
|
326
340
|
};
|
|
327
341
|
}
|
|
328
|
-
function
|
|
342
|
+
function jn() {
|
|
329
343
|
clearTimeout(Ce), Ce = void 0;
|
|
330
344
|
}
|
|
331
345
|
function Yt(n, e, o) {
|
|
332
346
|
n.scrollLeft += e, n.scrollTop += o;
|
|
333
347
|
}
|
|
334
|
-
function
|
|
348
|
+
function jt(n) {
|
|
335
349
|
var e = window.Polymer, o = window.jQuery || window.Zepto;
|
|
336
350
|
return e && e.dom ? e.dom(n).cloneNode(!0) : o ? o(n).clone(!0)[0] : n.cloneNode(!0);
|
|
337
351
|
}
|
|
338
|
-
function
|
|
352
|
+
function Lt(n, e, o) {
|
|
339
353
|
var t = {};
|
|
340
354
|
return Array.from(n.children).forEach(function(i) {
|
|
341
355
|
var r, a, l, s;
|
|
342
|
-
if (!(!
|
|
356
|
+
if (!(!H(i, e.draggable, n, !1) || i.animated || i === o)) {
|
|
343
357
|
var u = I(i);
|
|
344
358
|
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);
|
|
345
359
|
}
|
|
346
360
|
}), t.width = t.right - t.left, t.height = t.bottom - t.top, t.x = t.left, t.y = t.top, t;
|
|
347
361
|
}
|
|
348
362
|
var V = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
349
|
-
function
|
|
363
|
+
function Ln() {
|
|
350
364
|
var n = [], e;
|
|
351
365
|
return {
|
|
352
366
|
captureAnimationState: function() {
|
|
353
367
|
if (n = [], !!this.options.animation) {
|
|
354
368
|
var t = [].slice.call(this.el.children);
|
|
355
369
|
t.forEach(function(i) {
|
|
356
|
-
if (!(p(i, "display") === "none" || i ===
|
|
370
|
+
if (!(p(i, "display") === "none" || i === m.ghost)) {
|
|
357
371
|
n.push({
|
|
358
372
|
target: i,
|
|
359
373
|
rect: I(i)
|
|
360
374
|
});
|
|
361
|
-
var r =
|
|
375
|
+
var r = G({}, n[n.length - 1].rect);
|
|
362
376
|
if (i.thisAnimationDuration) {
|
|
363
|
-
var a =
|
|
377
|
+
var a = me(i, !0);
|
|
364
378
|
a && (r.top -= a.f, r.left -= a.e);
|
|
365
379
|
}
|
|
366
380
|
i.fromRect = r;
|
|
@@ -372,7 +386,7 @@ function Yn() {
|
|
|
372
386
|
n.push(t);
|
|
373
387
|
},
|
|
374
388
|
removeAnimationState: function(t) {
|
|
375
|
-
n.splice(
|
|
389
|
+
n.splice(Xn(n, {
|
|
376
390
|
target: t
|
|
377
391
|
}), 1);
|
|
378
392
|
},
|
|
@@ -384,9 +398,9 @@ function Yn() {
|
|
|
384
398
|
}
|
|
385
399
|
var r = !1, a = 0;
|
|
386
400
|
n.forEach(function(l) {
|
|
387
|
-
var s = 0, u = l.target, f = u.fromRect, d = I(u), b = u.prevFromRect, y = u.prevToRect,
|
|
388
|
-
h && (d.top -= h.f, d.left -= h.e), u.toRect = d, u.thisAnimationDuration &&
|
|
389
|
-
(
|
|
401
|
+
var s = 0, u = l.target, f = u.fromRect, d = I(u), b = u.prevFromRect, y = u.prevToRect, g = l.rect, h = me(u, !0);
|
|
402
|
+
h && (d.top -= h.f, d.left -= h.e), u.toRect = d, u.thisAnimationDuration && Ke(b, d) && !Ke(f, d) && // Make sure animatingRect is on line between toRect & fromRect
|
|
403
|
+
(g.top - d.top) / (g.left - d.left) === (f.top - d.top) / (f.left - d.left) && (s = Wn(g, b, y, i.options)), Ke(d, f) || (u.prevFromRect = f, u.prevToRect = d, s || (s = i.options.animation), i.animate(u, g, d, s)), s && (r = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
390
404
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
391
405
|
}, s), u.thisAnimationDuration = s);
|
|
392
406
|
}), clearTimeout(e), r ? e = setTimeout(function() {
|
|
@@ -396,26 +410,26 @@ function Yn() {
|
|
|
396
410
|
animate: function(t, i, r, a) {
|
|
397
411
|
if (a) {
|
|
398
412
|
p(t, "transition", ""), p(t, "transform", "");
|
|
399
|
-
var l =
|
|
400
|
-
t.animatingX = !!f, t.animatingY = !!d, p(t, "transform", "translate3d(" + f + "px," + d + "px,0)"), this.forRepaintDummy =
|
|
413
|
+
var l = me(this.el), s = l && l.a, u = l && l.d, f = (i.left - r.left) / (s || 1), d = (i.top - r.top) / (u || 1);
|
|
414
|
+
t.animatingX = !!f, t.animatingY = !!d, p(t, "transform", "translate3d(" + f + "px," + d + "px,0)"), this.forRepaintDummy = Hn(t), p(t, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), p(t, "transform", "translate3d(0,0,0)"), typeof t.animated == "number" && clearTimeout(t.animated), t.animated = setTimeout(function() {
|
|
401
415
|
p(t, "transition", ""), p(t, "transform", ""), t.animated = !1, t.animatingX = !1, t.animatingY = !1;
|
|
402
416
|
}, a);
|
|
403
417
|
}
|
|
404
418
|
}
|
|
405
419
|
};
|
|
406
420
|
}
|
|
407
|
-
function
|
|
421
|
+
function Hn(n) {
|
|
408
422
|
return n.offsetWidth;
|
|
409
423
|
}
|
|
410
|
-
function
|
|
424
|
+
function Wn(n, e, o, t) {
|
|
411
425
|
return Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) / Math.sqrt(Math.pow(e.top - o.top, 2) + Math.pow(e.left - o.left, 2)) * t.animation;
|
|
412
426
|
}
|
|
413
|
-
var de = [],
|
|
427
|
+
var de = [], Ze = {
|
|
414
428
|
initializeByDefault: !0
|
|
415
429
|
}, Ae = {
|
|
416
430
|
mount: function(e) {
|
|
417
|
-
for (var o in
|
|
418
|
-
|
|
431
|
+
for (var o in Ze)
|
|
432
|
+
Ze.hasOwnProperty(o) && !(o in e) && (e[o] = Ze[o]);
|
|
419
433
|
de.forEach(function(t) {
|
|
420
434
|
if (t.pluginName === e.pluginName)
|
|
421
435
|
throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
|
|
@@ -428,9 +442,9 @@ var de = [], Qe = {
|
|
|
428
442
|
};
|
|
429
443
|
var r = e + "Global";
|
|
430
444
|
de.forEach(function(a) {
|
|
431
|
-
o[a.pluginName] && (o[a.pluginName][r] && o[a.pluginName][r](
|
|
445
|
+
o[a.pluginName] && (o[a.pluginName][r] && o[a.pluginName][r](G({
|
|
432
446
|
sortable: o
|
|
433
|
-
}, t)), o.options[a.pluginName] && o[a.pluginName][e] && o[a.pluginName][e](
|
|
447
|
+
}, t)), o.options[a.pluginName] && o[a.pluginName][e] && o[a.pluginName][e](G({
|
|
434
448
|
sortable: o
|
|
435
449
|
}, t)));
|
|
436
450
|
});
|
|
@@ -462,40 +476,40 @@ var de = [], Qe = {
|
|
|
462
476
|
}), i;
|
|
463
477
|
}
|
|
464
478
|
};
|
|
465
|
-
function
|
|
466
|
-
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, d = n.newDraggableIndex, b = n.originalEvent, y = n.putSortable,
|
|
479
|
+
function $n(n) {
|
|
480
|
+
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, d = n.newDraggableIndex, b = n.originalEvent, y = n.putSortable, g = n.extraEventProperties;
|
|
467
481
|
if (e = e || o && o[V], !!e) {
|
|
468
482
|
var h, _ = e.options, O = "on" + t.charAt(0).toUpperCase() + t.substr(1);
|
|
469
483
|
window.CustomEvent && !K && !Pe ? h = new CustomEvent(t, {
|
|
470
484
|
bubbles: !0,
|
|
471
485
|
cancelable: !0
|
|
472
486
|
}) : (h = document.createEvent("Event"), h.initEvent(t, !0, !0)), h.to = a || o, h.from = l || o, h.item = i || o, h.clone = r, h.oldIndex = s, h.newIndex = u, h.oldDraggableIndex = f, h.newDraggableIndex = d, h.originalEvent = b, h.pullMode = y ? y.lastPutMode : void 0;
|
|
473
|
-
var x =
|
|
487
|
+
var x = G(G({}, g), Ae.getEventProperties(t, e));
|
|
474
488
|
for (var N in x)
|
|
475
489
|
h[N] = x[N];
|
|
476
490
|
o && o.dispatchEvent(h), _[O] && _[O].call(e, h);
|
|
477
491
|
}
|
|
478
492
|
}
|
|
479
|
-
var
|
|
480
|
-
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = t.evt, r =
|
|
481
|
-
Ae.pluginEvent.bind(
|
|
493
|
+
var Gn = ["evt"], F = function(e, o) {
|
|
494
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = t.evt, r = Mn(t, Gn);
|
|
495
|
+
Ae.pluginEvent.bind(m)(e, o, G({
|
|
482
496
|
dragEl: c,
|
|
483
497
|
parentEl: T,
|
|
484
498
|
ghostEl: v,
|
|
485
499
|
rootEl: D,
|
|
486
500
|
nextEl: se,
|
|
487
|
-
lastDownEl:
|
|
501
|
+
lastDownEl: Ve,
|
|
488
502
|
cloneEl: S,
|
|
489
503
|
cloneHidden: te,
|
|
490
504
|
dragStarted: _e,
|
|
491
505
|
putSortable: P,
|
|
492
|
-
activeSortable:
|
|
506
|
+
activeSortable: m.active,
|
|
493
507
|
originalEvent: i,
|
|
494
508
|
oldIndex: pe,
|
|
495
509
|
oldDraggableIndex: Ie,
|
|
496
510
|
newIndex: Y,
|
|
497
511
|
newDraggableIndex: ee,
|
|
498
|
-
hideGhostForTarget:
|
|
512
|
+
hideGhostForTarget: Gt,
|
|
499
513
|
unhideGhostForTarget: zt,
|
|
500
514
|
cloneNowHidden: function() {
|
|
501
515
|
te = !0;
|
|
@@ -513,7 +527,7 @@ var $n = ["evt"], F = function(e, o) {
|
|
|
513
527
|
}, r));
|
|
514
528
|
};
|
|
515
529
|
function M(n) {
|
|
516
|
-
|
|
530
|
+
$n(G({
|
|
517
531
|
putSortable: P,
|
|
518
532
|
cloneEl: S,
|
|
519
533
|
targetEl: c,
|
|
@@ -524,15 +538,15 @@ function M(n) {
|
|
|
524
538
|
newDraggableIndex: ee
|
|
525
539
|
}, n));
|
|
526
540
|
}
|
|
527
|
-
var c, T, v, D, se,
|
|
528
|
-
if (
|
|
541
|
+
var c, T, v, D, se, Ve, S, te, pe, Y, Ie, ee, ke, P, he = !1, Le = !1, He = [], ae, L, Qe, Je, Pt, At, _e, fe, Oe, xe = !1, Me = !1, Be, A, et = [], ut = !1, We = [], Ge = typeof document < "u", Fe = ht, Nt = Pe || K ? "cssFloat" : "float", zn = Ge && !Ft && !ht && "draggable" in document.createElement("div"), Ht = (function() {
|
|
542
|
+
if (Ge) {
|
|
529
543
|
if (K)
|
|
530
544
|
return !1;
|
|
531
545
|
var n = document.createElement("x");
|
|
532
546
|
return n.style.cssText = "pointer-events:auto", n.style.pointerEvents === "auto";
|
|
533
547
|
}
|
|
534
|
-
})(),
|
|
535
|
-
var t = p(e), i = parseInt(t.width) - parseInt(t.paddingLeft) - parseInt(t.paddingRight) - parseInt(t.borderLeftWidth) - parseInt(t.borderRightWidth), r =
|
|
548
|
+
})(), Wt = function(e, o) {
|
|
549
|
+
var t = p(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 && p(r), s = a && p(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + I(r).width, f = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + I(a).width;
|
|
536
550
|
if (t.display === "flex")
|
|
537
551
|
return t.flexDirection === "column" || t.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
538
552
|
if (t.display === "grid")
|
|
@@ -542,12 +556,12 @@ var c, T, v, D, se, Be, S, te, pe, Y, Ie, ee, ke, P, he = !1, We = !1, $e = [],
|
|
|
542
556
|
return a && (s.clear === "both" || s.clear === d) ? "vertical" : "horizontal";
|
|
543
557
|
}
|
|
544
558
|
return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && t[Nt] === "none" || a && t[Nt] === "none" && u + f > i) ? "vertical" : "horizontal";
|
|
545
|
-
},
|
|
559
|
+
}, Un = function(e, o, t) {
|
|
546
560
|
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;
|
|
547
561
|
return i === l || r === s || i + a / 2 === l + u / 2;
|
|
548
|
-
},
|
|
562
|
+
}, qn = function(e, o) {
|
|
549
563
|
var t;
|
|
550
|
-
return
|
|
564
|
+
return He.some(function(i) {
|
|
551
565
|
var r = i[V].options.emptyInsertThreshold;
|
|
552
566
|
if (!(!r || pt(i))) {
|
|
553
567
|
var a = I(i), l = e >= a.left - r && e <= a.right + r, s = o >= a.top - r && o <= a.bottom + r;
|
|
@@ -555,7 +569,7 @@ var c, T, v, D, se, Be, S, te, pe, Y, Ie, ee, ke, P, he = !1, We = !1, $e = [],
|
|
|
555
569
|
return t = i;
|
|
556
570
|
}
|
|
557
571
|
}), t;
|
|
558
|
-
},
|
|
572
|
+
}, $t = function(e) {
|
|
559
573
|
function o(r, a) {
|
|
560
574
|
return function(l, s, u, f) {
|
|
561
575
|
var d = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
|
|
@@ -572,22 +586,22 @@ var c, T, v, D, se, Be, S, te, pe, Y, Ie, ee, ke, P, he = !1, We = !1, $e = [],
|
|
|
572
586
|
};
|
|
573
587
|
}
|
|
574
588
|
var t = {}, i = e.group;
|
|
575
|
-
(!i ||
|
|
589
|
+
(!i || st(i) != "object") && (i = {
|
|
576
590
|
name: i
|
|
577
591
|
}), t.name = i.name, t.checkPull = o(i.pull, !0), t.checkPut = o(i.put), t.revertClone = i.revertClone, e.group = t;
|
|
578
|
-
},
|
|
579
|
-
!
|
|
592
|
+
}, Gt = function() {
|
|
593
|
+
!Ht && v && p(v, "display", "none");
|
|
580
594
|
}, zt = function() {
|
|
581
|
-
!
|
|
595
|
+
!Ht && v && p(v, "display", "");
|
|
582
596
|
};
|
|
583
|
-
|
|
584
|
-
if (
|
|
585
|
-
return n.preventDefault(), n.stopPropagation && n.stopPropagation(), n.stopImmediatePropagation && n.stopImmediatePropagation(),
|
|
597
|
+
Ge && !Ft && document.addEventListener("click", function(n) {
|
|
598
|
+
if (Le)
|
|
599
|
+
return n.preventDefault(), n.stopPropagation && n.stopPropagation(), n.stopImmediatePropagation && n.stopImmediatePropagation(), Le = !1, !1;
|
|
586
600
|
}, !0);
|
|
587
601
|
var le = function(e) {
|
|
588
602
|
if (c) {
|
|
589
603
|
e = e.touches ? e.touches[0] : e;
|
|
590
|
-
var o =
|
|
604
|
+
var o = qn(e.clientX, e.clientY);
|
|
591
605
|
if (o) {
|
|
592
606
|
var t = {};
|
|
593
607
|
for (var i in e)
|
|
@@ -595,10 +609,10 @@ var le = function(e) {
|
|
|
595
609
|
t.target = t.rootEl = o, t.preventDefault = void 0, t.stopPropagation = void 0, o[V]._onDragOver(t);
|
|
596
610
|
}
|
|
597
611
|
}
|
|
598
|
-
},
|
|
612
|
+
}, Kn = function(e) {
|
|
599
613
|
c && c.parentNode[V]._isOutsideThisEl(e.target);
|
|
600
614
|
};
|
|
601
|
-
function
|
|
615
|
+
function m(n, e) {
|
|
602
616
|
if (!(n && n.nodeType && n.nodeType === 1))
|
|
603
617
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));
|
|
604
618
|
this.el = n, this.options = e = q({}, e), n[V] = this;
|
|
@@ -617,7 +631,7 @@ function g(n, e) {
|
|
|
617
631
|
// will be set to same as swapThreshold if default
|
|
618
632
|
removeCloneOnHide: !0,
|
|
619
633
|
direction: function() {
|
|
620
|
-
return
|
|
634
|
+
return Wt(n, this.options);
|
|
621
635
|
},
|
|
622
636
|
ghostClass: "sortable-ghost",
|
|
623
637
|
chosenClass: "sortable-chosen",
|
|
@@ -645,20 +659,20 @@ function g(n, e) {
|
|
|
645
659
|
y: 0
|
|
646
660
|
},
|
|
647
661
|
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
648
|
-
supportPointer:
|
|
662
|
+
supportPointer: m.supportPointer !== !1 && "PointerEvent" in window && (!Te || ht),
|
|
649
663
|
emptyInsertThreshold: 5
|
|
650
664
|
};
|
|
651
665
|
Ae.initializePlugins(this, n, o);
|
|
652
666
|
for (var t in o)
|
|
653
667
|
!(t in e) && (e[t] = o[t]);
|
|
654
|
-
|
|
668
|
+
$t(e);
|
|
655
669
|
for (var i in this)
|
|
656
670
|
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
657
|
-
this.nativeDraggable = e.forceFallback ? !1 :
|
|
671
|
+
this.nativeDraggable = e.forceFallback ? !1 : zn, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? E(n, "pointerdown", this._onTapStart) : (E(n, "mousedown", this._onTapStart), E(n, "touchstart", this._onTapStart)), this.nativeDraggable && (E(n, "dragover", this), E(n, "dragenter", this)), He.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), q(this, Ln());
|
|
658
672
|
}
|
|
659
|
-
|
|
673
|
+
m.prototype = /** @lends Sortable.prototype */
|
|
660
674
|
{
|
|
661
|
-
constructor:
|
|
675
|
+
constructor: m,
|
|
662
676
|
_isOutsideThisEl: function(e) {
|
|
663
677
|
!this.el.contains(e) && e !== this.el && (fe = null);
|
|
664
678
|
},
|
|
@@ -668,8 +682,8 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
668
682
|
_onTapStart: function(e) {
|
|
669
683
|
if (e.cancelable) {
|
|
670
684
|
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;
|
|
671
|
-
if (
|
|
672
|
-
if (pe =
|
|
685
|
+
if (io(t), !c && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Te && s && s.tagName.toUpperCase() === "SELECT") && (s = H(s, i.draggable, t, !1), !(s && s.animated) && Ve !== s)) {
|
|
686
|
+
if (pe = j(s), Ie = j(s, i.draggable), typeof f == "function") {
|
|
673
687
|
if (f.call(this, e, s, this)) {
|
|
674
688
|
M({
|
|
675
689
|
sortable: o,
|
|
@@ -684,7 +698,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
684
698
|
return;
|
|
685
699
|
}
|
|
686
700
|
} else if (f && (f = f.split(",").some(function(d) {
|
|
687
|
-
if (d =
|
|
701
|
+
if (d = H(u, d.trim(), t, !1), d)
|
|
688
702
|
return M({
|
|
689
703
|
sortable: o,
|
|
690
704
|
rootEl: d,
|
|
@@ -699,7 +713,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
699
713
|
r && e.preventDefault();
|
|
700
714
|
return;
|
|
701
715
|
}
|
|
702
|
-
i.handle && !
|
|
716
|
+
i.handle && !H(u, i.handle, t, !1) || this._prepareDragStart(e, l, s);
|
|
703
717
|
}
|
|
704
718
|
}
|
|
705
719
|
},
|
|
@@ -707,14 +721,14 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
707
721
|
var i = this, r = i.el, a = i.options, l = r.ownerDocument, s;
|
|
708
722
|
if (t && !c && t.parentNode === r) {
|
|
709
723
|
var u = I(t);
|
|
710
|
-
if (D = r, c = t, T = c.parentNode, se = c.nextSibling,
|
|
724
|
+
if (D = r, c = t, T = c.parentNode, se = c.nextSibling, Ve = t, ke = a.group, m.dragged = c, ae = {
|
|
711
725
|
target: c,
|
|
712
726
|
clientX: (o || e).clientX,
|
|
713
727
|
clientY: (o || e).clientY
|
|
714
728
|
}, Pt = ae.clientX - u.left, At = ae.clientY - u.top, this._lastX = (o || e).clientX, this._lastY = (o || e).clientY, c.style["will-change"] = "all", s = function() {
|
|
715
729
|
if (F("delayEnded", i, {
|
|
716
730
|
evt: e
|
|
717
|
-
}),
|
|
731
|
+
}), m.eventCanceled) {
|
|
718
732
|
i._onDrop();
|
|
719
733
|
return;
|
|
720
734
|
}
|
|
@@ -724,11 +738,11 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
724
738
|
originalEvent: e
|
|
725
739
|
}), X(c, a.chosenClass, !0);
|
|
726
740
|
}, a.ignore.split(",").forEach(function(f) {
|
|
727
|
-
Bt(c, f.trim(),
|
|
741
|
+
Bt(c, f.trim(), tt);
|
|
728
742
|
}), E(l, "dragover", le), E(l, "mousemove", le), E(l, "touchmove", le), a.supportPointer ? (E(l, "pointerup", i._onDrop), !this.nativeDraggable && E(l, "pointercancel", i._onDrop)) : (E(l, "mouseup", i._onDrop), E(l, "touchend", i._onDrop), E(l, "touchcancel", i._onDrop)), Ct && this.nativeDraggable && (this.options.touchStartThreshold = 4, c.draggable = !0), F("delayStart", this, {
|
|
729
743
|
evt: e
|
|
730
744
|
}), a.delay && (!a.delayOnTouchOnly || o) && (!this.nativeDraggable || !(Pe || K))) {
|
|
731
|
-
if (
|
|
745
|
+
if (m.eventCanceled) {
|
|
732
746
|
this._onDrop();
|
|
733
747
|
return;
|
|
734
748
|
}
|
|
@@ -742,7 +756,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
742
756
|
Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
743
757
|
},
|
|
744
758
|
_disableDelayedDrag: function() {
|
|
745
|
-
c &&
|
|
759
|
+
c && tt(c), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
746
760
|
},
|
|
747
761
|
_disableDelayedDragEvents: function() {
|
|
748
762
|
var e = this.el.ownerDocument;
|
|
@@ -751,7 +765,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
751
765
|
_triggerDragStart: function(e, o) {
|
|
752
766
|
o = o || e.pointerType == "touch" && e, !this.nativeDraggable || o ? this.options.supportPointer ? E(document, "pointermove", this._onTouchMove) : o ? E(document, "touchmove", this._onTouchMove) : E(document, "mousemove", this._onTouchMove) : (E(c, "dragend", this), E(D, "dragstart", this._onDragStart));
|
|
753
767
|
try {
|
|
754
|
-
document.selection ?
|
|
768
|
+
document.selection ? Xe(function() {
|
|
755
769
|
document.selection.empty();
|
|
756
770
|
}) : window.getSelection().removeAllRanges();
|
|
757
771
|
} catch {
|
|
@@ -761,9 +775,9 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
761
775
|
if (he = !1, D && c) {
|
|
762
776
|
F("dragStarted", this, {
|
|
763
777
|
evt: o
|
|
764
|
-
}), this.nativeDraggable && E(document, "dragover",
|
|
778
|
+
}), this.nativeDraggable && E(document, "dragover", Kn);
|
|
765
779
|
var t = this.options;
|
|
766
|
-
!e && X(c, t.dragClass, !1), X(c, t.ghostClass, !0),
|
|
780
|
+
!e && X(c, t.dragClass, !1), X(c, t.ghostClass, !0), m.active = this, e && this._appendGhost(), M({
|
|
767
781
|
sortable: this,
|
|
768
782
|
name: "start",
|
|
769
783
|
originalEvent: o
|
|
@@ -772,17 +786,17 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
772
786
|
this._nulling();
|
|
773
787
|
},
|
|
774
788
|
_emulateDragOver: function() {
|
|
775
|
-
if (
|
|
776
|
-
this._lastX =
|
|
777
|
-
for (var e = document.elementFromPoint(
|
|
789
|
+
if (L) {
|
|
790
|
+
this._lastX = L.clientX, this._lastY = L.clientY, Gt();
|
|
791
|
+
for (var e = document.elementFromPoint(L.clientX, L.clientY), o = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(L.clientX, L.clientY), e !== o); )
|
|
778
792
|
o = e;
|
|
779
793
|
if (c.parentNode[V]._isOutsideThisEl(e), o)
|
|
780
794
|
do {
|
|
781
795
|
if (o[V]) {
|
|
782
796
|
var t = void 0;
|
|
783
797
|
if (t = o[V]._onDragOver({
|
|
784
|
-
clientX:
|
|
785
|
-
clientY:
|
|
798
|
+
clientX: L.clientX,
|
|
799
|
+
clientY: L.clientY,
|
|
786
800
|
target: e,
|
|
787
801
|
rootEl: o
|
|
788
802
|
}), t && !this.options.dragoverBubble)
|
|
@@ -795,14 +809,14 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
795
809
|
},
|
|
796
810
|
_onTouchMove: function(e) {
|
|
797
811
|
if (ae) {
|
|
798
|
-
var o = this.options, t = o.fallbackTolerance, i = o.fallbackOffset, r = e.touches ? e.touches[0] : e, a = v &&
|
|
799
|
-
if (!
|
|
812
|
+
var o = this.options, t = o.fallbackTolerance, i = o.fallbackOffset, r = e.touches ? e.touches[0] : e, a = v && me(v, !0), l = v && a && a.a, s = v && a && a.d, u = Fe && A && xt(A), f = (r.clientX - ae.clientX + i.x) / (l || 1) + (u ? u[0] - et[0] : 0) / (l || 1), d = (r.clientY - ae.clientY + i.y) / (s || 1) + (u ? u[1] - et[1] : 0) / (s || 1);
|
|
813
|
+
if (!m.active && !he) {
|
|
800
814
|
if (t && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < t)
|
|
801
815
|
return;
|
|
802
816
|
this._onDragStart(e, !0);
|
|
803
817
|
}
|
|
804
818
|
if (v) {
|
|
805
|
-
a ? (a.e += f - (
|
|
819
|
+
a ? (a.e += f - (Qe || 0), a.f += d - (Je || 0)) : a = {
|
|
806
820
|
a: 1,
|
|
807
821
|
b: 0,
|
|
808
822
|
c: 0,
|
|
@@ -811,7 +825,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
811
825
|
f: d
|
|
812
826
|
};
|
|
813
827
|
var b = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
814
|
-
p(v, "webkitTransform", b), p(v, "mozTransform", b), p(v, "msTransform", b), p(v, "transform", b),
|
|
828
|
+
p(v, "webkitTransform", b), p(v, "mozTransform", b), p(v, "msTransform", b), p(v, "transform", b), Qe = f, Je = d, L = r;
|
|
815
829
|
}
|
|
816
830
|
e.cancelable && e.preventDefault();
|
|
817
831
|
}
|
|
@@ -822,32 +836,32 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
822
836
|
if (Fe) {
|
|
823
837
|
for (A = e; p(A, "position") === "static" && p(A, "transform") === "none" && A !== document; )
|
|
824
838
|
A = A.parentNode;
|
|
825
|
-
A !== document.body && A !== document.documentElement ? (A === document && (A =
|
|
839
|
+
A !== document.body && A !== document.documentElement ? (A === document && (A = $()), o.top += A.scrollTop, o.left += A.scrollLeft) : A = $(), et = xt(A);
|
|
826
840
|
}
|
|
827
|
-
v = c.cloneNode(!0), X(v, t.ghostClass, !1), X(v, t.fallbackClass, !0), X(v, t.dragClass, !0), p(v, "transition", ""), p(v, "transform", ""), p(v, "box-sizing", "border-box"), p(v, "margin", 0), p(v, "top", o.top), p(v, "left", o.left), p(v, "width", o.width), p(v, "height", o.height), p(v, "opacity", "0.8"), p(v, "position", Fe ? "absolute" : "fixed"), p(v, "zIndex", "100000"), p(v, "pointerEvents", "none"),
|
|
841
|
+
v = c.cloneNode(!0), X(v, t.ghostClass, !1), X(v, t.fallbackClass, !0), X(v, t.dragClass, !0), p(v, "transition", ""), p(v, "transform", ""), p(v, "box-sizing", "border-box"), p(v, "margin", 0), p(v, "top", o.top), p(v, "left", o.left), p(v, "width", o.width), p(v, "height", o.height), p(v, "opacity", "0.8"), p(v, "position", Fe ? "absolute" : "fixed"), p(v, "zIndex", "100000"), p(v, "pointerEvents", "none"), m.ghost = v, e.appendChild(v), p(v, "transform-origin", Pt / parseInt(v.style.width) * 100 + "% " + At / parseInt(v.style.height) * 100 + "%");
|
|
828
842
|
}
|
|
829
843
|
},
|
|
830
844
|
_onDragStart: function(e, o) {
|
|
831
845
|
var t = this, i = e.dataTransfer, r = t.options;
|
|
832
846
|
if (F("dragStart", this, {
|
|
833
847
|
evt: e
|
|
834
|
-
}),
|
|
848
|
+
}), m.eventCanceled) {
|
|
835
849
|
this._onDrop();
|
|
836
850
|
return;
|
|
837
851
|
}
|
|
838
|
-
F("setupClone", this),
|
|
839
|
-
F("clone", t), !
|
|
852
|
+
F("setupClone", this), m.eventCanceled || (S = jt(c), S.removeAttribute("id"), S.draggable = !1, S.style["will-change"] = "", this._hideClone(), X(S, this.options.chosenClass, !1), m.clone = S), t.cloneId = Xe(function() {
|
|
853
|
+
F("clone", t), !m.eventCanceled && (t.options.removeCloneOnHide || D.insertBefore(S, c), t._hideClone(), M({
|
|
840
854
|
sortable: t,
|
|
841
855
|
name: "clone"
|
|
842
856
|
}));
|
|
843
|
-
}), !o && X(c, r.dragClass, !0), o ? (
|
|
857
|
+
}), !o && X(c, r.dragClass, !0), o ? (Le = !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, c)), E(document, "drop", t), p(c, "transform", "translateZ(0)")), he = !0, t._dragStartId = Xe(t._dragStarted.bind(t, o, e)), E(document, "selectstart", t), _e = !0, window.getSelection().removeAllRanges(), Te && p(document.body, "user-select", "none");
|
|
844
858
|
},
|
|
845
859
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
846
860
|
_onDragOver: function(e) {
|
|
847
|
-
var o = this.el, t = e.target, i, r, a, l = this.options, s = l.group, u =
|
|
861
|
+
var o = this.el, t = e.target, i, r, a, l = this.options, s = l.group, u = m.active, f = ke === s, d = l.sort, b = P || u, y, g = this, h = !1;
|
|
848
862
|
if (ut) return;
|
|
849
863
|
function _(Ee, qt) {
|
|
850
|
-
F(Ee,
|
|
864
|
+
F(Ee, g, G({
|
|
851
865
|
evt: e,
|
|
852
866
|
isOwner: f,
|
|
853
867
|
axis: y ? "vertical" : "horizontal",
|
|
@@ -865,18 +879,18 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
865
879
|
}, qt));
|
|
866
880
|
}
|
|
867
881
|
function O() {
|
|
868
|
-
_("dragOverAnimationCapture"),
|
|
882
|
+
_("dragOverAnimationCapture"), g.captureAnimationState(), g !== b && b.captureAnimationState();
|
|
869
883
|
}
|
|
870
884
|
function x(Ee) {
|
|
871
885
|
return _("dragOverCompleted", {
|
|
872
886
|
insertion: Ee
|
|
873
|
-
}), Ee && (f ? u._hideClone() : u._showClone(
|
|
874
|
-
_("dragOverAnimationComplete"),
|
|
875
|
-
}),
|
|
887
|
+
}), Ee && (f ? u._hideClone() : u._showClone(g), g !== b && (X(c, P ? P.options.ghostClass : u.options.ghostClass, !1), X(c, l.ghostClass, !0)), P !== g && g !== m.active ? P = g : g === m.active && P && (P = null), b === g && (g._ignoreWhileAnimating = t), g.animateAll(function() {
|
|
888
|
+
_("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
|
|
889
|
+
}), g !== b && (b.animateAll(), b._ignoreWhileAnimating = null)), (t === c && !c.animated || t === o && !t.animated) && (fe = null), !l.dragoverBubble && !e.rootEl && t !== document && (c.parentNode[V]._isOutsideThisEl(e.target), !Ee && le(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), h = !0;
|
|
876
890
|
}
|
|
877
891
|
function N() {
|
|
878
|
-
Y =
|
|
879
|
-
sortable:
|
|
892
|
+
Y = j(c), ee = j(c, l.draggable), M({
|
|
893
|
+
sortable: g,
|
|
880
894
|
name: "change",
|
|
881
895
|
toEl: o,
|
|
882
896
|
newIndex: Y,
|
|
@@ -884,44 +898,44 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
884
898
|
originalEvent: e
|
|
885
899
|
});
|
|
886
900
|
}
|
|
887
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), t =
|
|
888
|
-
if (c.contains(e.target) || t.animated && t.animatingX && t.animatingY ||
|
|
901
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), t = H(t, l.draggable, o, !0), _("dragOver"), m.eventCanceled) return h;
|
|
902
|
+
if (c.contains(e.target) || t.animated && t.animatingX && t.animatingY || g._ignoreWhileAnimating === t)
|
|
889
903
|
return x(!1);
|
|
890
|
-
if (
|
|
891
|
-
if (y = this._getDirection(e, t) === "vertical", i = I(c), _("dragOverValid"),
|
|
904
|
+
if (Le = !1, u && !l.disabled && (f ? d || (a = T !== D) : P === this || (this.lastPutMode = ke.checkPull(this, u, c, e)) && s.checkPut(this, u, c, e))) {
|
|
905
|
+
if (y = this._getDirection(e, t) === "vertical", i = I(c), _("dragOverValid"), m.eventCanceled) return h;
|
|
892
906
|
if (a)
|
|
893
|
-
return T = D, O(), this._hideClone(), _("revert"),
|
|
907
|
+
return T = D, O(), this._hideClone(), _("revert"), m.eventCanceled || (se ? D.insertBefore(c, se) : D.appendChild(c)), x(!0);
|
|
894
908
|
var k = pt(o, l.draggable);
|
|
895
|
-
if (!k ||
|
|
909
|
+
if (!k || eo(e, y, this) && !k.animated) {
|
|
896
910
|
if (k === c)
|
|
897
911
|
return x(!1);
|
|
898
912
|
if (k && o === e.target && (t = k), t && (r = I(t)), Re(D, o, c, i, t, r, e, !!t) !== !1)
|
|
899
913
|
return O(), k && k.nextSibling ? o.insertBefore(c, k.nextSibling) : o.appendChild(c), T = o, N(), x(!0);
|
|
900
|
-
} else if (k &&
|
|
901
|
-
var oe =
|
|
914
|
+
} else if (k && Jn(e, y, this)) {
|
|
915
|
+
var oe = ge(o, 0, l, !0);
|
|
902
916
|
if (oe === c)
|
|
903
917
|
return x(!1);
|
|
904
918
|
if (t = oe, r = I(t), Re(D, o, c, i, t, r, e, !1) !== !1)
|
|
905
919
|
return O(), o.insertBefore(c, oe), T = o, N(), x(!0);
|
|
906
920
|
} else if (t.parentNode === o) {
|
|
907
921
|
r = I(t);
|
|
908
|
-
var
|
|
909
|
-
fe !== t && (ie = r[be], xe = !1, Me = !B && l.invertSwap || ve),
|
|
922
|
+
var W = 0, ie, ve = c.parentNode !== o, B = !Un(c.animated && c.toRect || i, t.animated && t.toRect || r, y), be = y ? "top" : "left", Z = Ot(t, "top", "top") || Ot(c, "top", "top"), ye = Z ? Z.scrollTop : void 0;
|
|
923
|
+
fe !== t && (ie = r[be], xe = !1, Me = !B && l.invertSwap || ve), W = to(e, t, r, y, B ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Me, fe === t);
|
|
910
924
|
var z;
|
|
911
|
-
if (
|
|
912
|
-
var re =
|
|
925
|
+
if (W !== 0) {
|
|
926
|
+
var re = j(c);
|
|
913
927
|
do
|
|
914
|
-
re -=
|
|
928
|
+
re -= W, z = T.children[re];
|
|
915
929
|
while (z && (p(z, "display") === "none" || z === v));
|
|
916
930
|
}
|
|
917
|
-
if (
|
|
931
|
+
if (W === 0 || z === t)
|
|
918
932
|
return x(!1);
|
|
919
|
-
fe = t, Oe =
|
|
933
|
+
fe = t, Oe = W;
|
|
920
934
|
var we = t.nextElementSibling, Q = !1;
|
|
921
|
-
Q =
|
|
935
|
+
Q = W === 1;
|
|
922
936
|
var Ne = Re(D, o, c, i, t, r, e, Q);
|
|
923
937
|
if (Ne !== !1)
|
|
924
|
-
return (Ne === 1 || Ne === -1) && (Q = Ne === 1), ut = !0, setTimeout(
|
|
938
|
+
return (Ne === 1 || Ne === -1) && (Q = Ne === 1), ut = !0, setTimeout(Qn, 30), O(), Q && !we ? o.appendChild(c) : t.parentNode.insertBefore(c, Q ? we : t), Z && Yt(Z, 0, ye - Z.scrollTop), T = c.parentNode, ie !== void 0 && !Me && (Be = Math.abs(ie - I(t)[be])), N(), x(!0);
|
|
925
939
|
}
|
|
926
940
|
if (o.contains(c))
|
|
927
941
|
return x(!1);
|
|
@@ -938,13 +952,13 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
938
952
|
},
|
|
939
953
|
_onDrop: function(e) {
|
|
940
954
|
var o = this.el, t = this.options;
|
|
941
|
-
if (Y =
|
|
955
|
+
if (Y = j(c), ee = j(c, t.draggable), F("drop", this, {
|
|
942
956
|
evt: e
|
|
943
|
-
}), T = c && c.parentNode, Y =
|
|
957
|
+
}), T = c && c.parentNode, Y = j(c), ee = j(c, t.draggable), m.eventCanceled) {
|
|
944
958
|
this._nulling();
|
|
945
959
|
return;
|
|
946
960
|
}
|
|
947
|
-
he = !1, Me = !1, xe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ct(this.cloneId), ct(this._dragStartId), this.nativeDraggable && (w(document, "drop", this), w(o, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Te && p(document.body, "user-select", ""), p(c, "transform", ""), e && (_e && (e.cancelable && e.preventDefault(), !t.dropBubble && e.stopPropagation()), v && v.parentNode && v.parentNode.removeChild(v), (D === T || P && P.lastPutMode !== "clone") && S && S.parentNode && S.parentNode.removeChild(S), c && (this.nativeDraggable && w(c, "dragend", this),
|
|
961
|
+
he = !1, Me = !1, xe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ct(this.cloneId), ct(this._dragStartId), this.nativeDraggable && (w(document, "drop", this), w(o, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Te && p(document.body, "user-select", ""), p(c, "transform", ""), e && (_e && (e.cancelable && e.preventDefault(), !t.dropBubble && e.stopPropagation()), v && v.parentNode && v.parentNode.removeChild(v), (D === T || P && P.lastPutMode !== "clone") && S && S.parentNode && S.parentNode.removeChild(S), c && (this.nativeDraggable && w(c, "dragend", this), tt(c), c.style["will-change"] = "", _e && !he && X(c, P ? P.options.ghostClass : this.options.ghostClass, !1), X(c, this.options.chosenClass, !1), M({
|
|
948
962
|
sortable: this,
|
|
949
963
|
name: "unchoose",
|
|
950
964
|
toEl: T,
|
|
@@ -983,7 +997,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
983
997
|
name: "sort",
|
|
984
998
|
toEl: T,
|
|
985
999
|
originalEvent: e
|
|
986
|
-
})),
|
|
1000
|
+
})), m.active && ((Y == null || Y === -1) && (Y = pe, ee = Ie), M({
|
|
987
1001
|
sortable: this,
|
|
988
1002
|
name: "end",
|
|
989
1003
|
toEl: T,
|
|
@@ -991,9 +1005,11 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
991
1005
|
}), this.save()))), this._nulling();
|
|
992
1006
|
},
|
|
993
1007
|
_nulling: function() {
|
|
994
|
-
F("nulling", this), D = c = T = v = se = S =
|
|
995
|
-
|
|
996
|
-
|
|
1008
|
+
F("nulling", this), D = c = T = v = se = S = Ve = te = ae = L = _e = Y = ee = pe = Ie = fe = Oe = P = ke = m.dragged = m.ghost = m.clone = m.active = null;
|
|
1009
|
+
var e = this.el;
|
|
1010
|
+
We.forEach(function(o) {
|
|
1011
|
+
e.contains(o) && (o.checked = !0);
|
|
1012
|
+
}), We.length = Qe = Je = 0;
|
|
997
1013
|
},
|
|
998
1014
|
handleEvent: function(e) {
|
|
999
1015
|
switch (e.type) {
|
|
@@ -1003,7 +1019,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1003
1019
|
break;
|
|
1004
1020
|
case "dragenter":
|
|
1005
1021
|
case "dragover":
|
|
1006
|
-
c && (this._onDragOver(e),
|
|
1022
|
+
c && (this._onDragOver(e), Zn(e));
|
|
1007
1023
|
break;
|
|
1008
1024
|
case "selectstart":
|
|
1009
1025
|
e.preventDefault();
|
|
@@ -1016,7 +1032,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1016
1032
|
*/
|
|
1017
1033
|
toArray: function() {
|
|
1018
1034
|
for (var e = [], o, t = this.el.children, i = 0, r = t.length, a = this.options; i < r; i++)
|
|
1019
|
-
o = t[i],
|
|
1035
|
+
o = t[i], H(o, a.draggable, this.el, !1) && e.push(o.getAttribute(a.dataIdAttr) || oo(o));
|
|
1020
1036
|
return e;
|
|
1021
1037
|
},
|
|
1022
1038
|
/**
|
|
@@ -1027,7 +1043,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1027
1043
|
var t = {}, i = this.el;
|
|
1028
1044
|
this.toArray().forEach(function(r, a) {
|
|
1029
1045
|
var l = i.children[a];
|
|
1030
|
-
|
|
1046
|
+
H(l, this.options.draggable, i, !1) && (t[r] = l);
|
|
1031
1047
|
}, this), o && this.captureAnimationState(), e.forEach(function(r) {
|
|
1032
1048
|
t[r] && (i.removeChild(t[r]), i.appendChild(t[r]));
|
|
1033
1049
|
}), o && this.animateAll();
|
|
@@ -1046,7 +1062,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1046
1062
|
* @returns {HTMLElement|null}
|
|
1047
1063
|
*/
|
|
1048
1064
|
closest: function(e, o) {
|
|
1049
|
-
return
|
|
1065
|
+
return H(e, o || this.options.draggable, this.el, !1);
|
|
1050
1066
|
},
|
|
1051
1067
|
/**
|
|
1052
1068
|
* Set/get option
|
|
@@ -1059,7 +1075,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1059
1075
|
if (o === void 0)
|
|
1060
1076
|
return t[e];
|
|
1061
1077
|
var i = Ae.modifyOption(this, e, o);
|
|
1062
|
-
typeof i < "u" ? t[e] = i : t[e] = o, e === "group" &&
|
|
1078
|
+
typeof i < "u" ? t[e] = i : t[e] = o, e === "group" && $t(t);
|
|
1063
1079
|
},
|
|
1064
1080
|
/**
|
|
1065
1081
|
* Destroy
|
|
@@ -1069,11 +1085,11 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1069
1085
|
var e = this.el;
|
|
1070
1086
|
e[V] = 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) {
|
|
1071
1087
|
o.removeAttribute("draggable");
|
|
1072
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
1088
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), He.splice(He.indexOf(this.el), 1), this.el = e = null;
|
|
1073
1089
|
},
|
|
1074
1090
|
_hideClone: function() {
|
|
1075
1091
|
if (!te) {
|
|
1076
|
-
if (F("hideClone", this),
|
|
1092
|
+
if (F("hideClone", this), m.eventCanceled) return;
|
|
1077
1093
|
p(S, "display", "none"), this.options.removeCloneOnHide && S.parentNode && S.parentNode.removeChild(S), te = !0;
|
|
1078
1094
|
}
|
|
1079
1095
|
},
|
|
@@ -1083,12 +1099,12 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1083
1099
|
return;
|
|
1084
1100
|
}
|
|
1085
1101
|
if (te) {
|
|
1086
|
-
if (F("showClone", this),
|
|
1102
|
+
if (F("showClone", this), m.eventCanceled) return;
|
|
1087
1103
|
c.parentNode == D && !this.options.group.revertClone ? D.insertBefore(S, c) : se ? D.insertBefore(S, se) : D.appendChild(S), this.options.group.revertClone && this.animate(c, S), p(S, "display", ""), te = !1;
|
|
1088
1104
|
}
|
|
1089
1105
|
}
|
|
1090
1106
|
};
|
|
1091
|
-
function
|
|
1107
|
+
function Zn(n) {
|
|
1092
1108
|
n.dataTransfer && (n.dataTransfer.dropEffect = "move"), n.cancelable && n.preventDefault();
|
|
1093
1109
|
}
|
|
1094
1110
|
function Re(n, e, o, t, i, r, a, l) {
|
|
@@ -1098,95 +1114,95 @@ function Re(n, e, o, t, i, r, a, l) {
|
|
|
1098
1114
|
cancelable: !0
|
|
1099
1115
|
}) : (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 || I(e), s.willInsertAfter = l, s.originalEvent = a, n.dispatchEvent(s), f && (d = f.call(u, s, a)), d;
|
|
1100
1116
|
}
|
|
1101
|
-
function
|
|
1117
|
+
function tt(n) {
|
|
1102
1118
|
n.draggable = !1;
|
|
1103
1119
|
}
|
|
1104
|
-
function
|
|
1120
|
+
function Qn() {
|
|
1105
1121
|
ut = !1;
|
|
1106
1122
|
}
|
|
1107
|
-
function
|
|
1108
|
-
var t = I(
|
|
1123
|
+
function Jn(n, e, o) {
|
|
1124
|
+
var t = I(ge(o.el, 0, o.options, !0)), i = Lt(o.el, o.options, v), r = 10;
|
|
1109
1125
|
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;
|
|
1110
1126
|
}
|
|
1111
|
-
function
|
|
1112
|
-
var t = I(pt(o.el, o.options.draggable)), i =
|
|
1127
|
+
function eo(n, e, o) {
|
|
1128
|
+
var t = I(pt(o.el, o.options.draggable)), i = Lt(o.el, o.options, v), r = 10;
|
|
1113
1129
|
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;
|
|
1114
1130
|
}
|
|
1115
|
-
function
|
|
1131
|
+
function to(n, e, o, t, i, r, a, l) {
|
|
1116
1132
|
var s = t ? n.clientY : n.clientX, u = t ? o.height : o.width, f = t ? o.top : o.left, d = t ? o.bottom : o.right, b = !1;
|
|
1117
1133
|
if (!a) {
|
|
1118
|
-
if (l &&
|
|
1134
|
+
if (l && Be < u * i) {
|
|
1119
1135
|
if (!xe && (Oe === 1 ? s > f + u * r / 2 : s < d - u * r / 2) && (xe = !0), xe)
|
|
1120
1136
|
b = !0;
|
|
1121
|
-
else if (Oe === 1 ? s < f +
|
|
1137
|
+
else if (Oe === 1 ? s < f + Be : s > d - Be)
|
|
1122
1138
|
return -Oe;
|
|
1123
1139
|
} else if (s > f + u * (1 - i) / 2 && s < d - u * (1 - i) / 2)
|
|
1124
|
-
return
|
|
1140
|
+
return no(e);
|
|
1125
1141
|
}
|
|
1126
1142
|
return b = b || a, b && (s < f + u * r / 2 || s > d - u * r / 2) ? s > f + u / 2 ? 1 : -1 : 0;
|
|
1127
1143
|
}
|
|
1128
|
-
function
|
|
1129
|
-
return
|
|
1144
|
+
function no(n) {
|
|
1145
|
+
return j(c) < j(n) ? 1 : -1;
|
|
1130
1146
|
}
|
|
1131
|
-
function
|
|
1147
|
+
function oo(n) {
|
|
1132
1148
|
for (var e = n.tagName + n.className + n.src + n.href + n.textContent, o = e.length, t = 0; o--; )
|
|
1133
1149
|
t += e.charCodeAt(o);
|
|
1134
1150
|
return t.toString(36);
|
|
1135
1151
|
}
|
|
1136
|
-
function
|
|
1137
|
-
|
|
1152
|
+
function io(n) {
|
|
1153
|
+
We.length = 0;
|
|
1138
1154
|
for (var e = n.getElementsByTagName("input"), o = e.length; o--; ) {
|
|
1139
1155
|
var t = e[o];
|
|
1140
|
-
t.checked &&
|
|
1156
|
+
t.checked && We.push(t);
|
|
1141
1157
|
}
|
|
1142
1158
|
}
|
|
1143
|
-
function
|
|
1159
|
+
function Xe(n) {
|
|
1144
1160
|
return setTimeout(n, 0);
|
|
1145
1161
|
}
|
|
1146
1162
|
function ct(n) {
|
|
1147
1163
|
return clearTimeout(n);
|
|
1148
1164
|
}
|
|
1149
|
-
|
|
1150
|
-
(
|
|
1165
|
+
Ge && E(document, "touchmove", function(n) {
|
|
1166
|
+
(m.active || he) && n.cancelable && n.preventDefault();
|
|
1151
1167
|
});
|
|
1152
|
-
|
|
1168
|
+
m.utils = {
|
|
1153
1169
|
on: E,
|
|
1154
1170
|
off: w,
|
|
1155
1171
|
css: p,
|
|
1156
1172
|
find: Bt,
|
|
1157
1173
|
is: function(e, o) {
|
|
1158
|
-
return !!
|
|
1174
|
+
return !!H(e, o, e, !1);
|
|
1159
1175
|
},
|
|
1160
|
-
extend:
|
|
1176
|
+
extend: Yn,
|
|
1161
1177
|
throttle: Xt,
|
|
1162
|
-
closest:
|
|
1178
|
+
closest: H,
|
|
1163
1179
|
toggleClass: X,
|
|
1164
|
-
clone:
|
|
1165
|
-
index:
|
|
1166
|
-
nextTick:
|
|
1180
|
+
clone: jt,
|
|
1181
|
+
index: j,
|
|
1182
|
+
nextTick: Xe,
|
|
1167
1183
|
cancelNextTick: ct,
|
|
1168
|
-
detectDirection:
|
|
1169
|
-
getChild:
|
|
1184
|
+
detectDirection: Wt,
|
|
1185
|
+
getChild: ge,
|
|
1170
1186
|
expando: V
|
|
1171
1187
|
};
|
|
1172
|
-
|
|
1188
|
+
m.get = function(n) {
|
|
1173
1189
|
return n[V];
|
|
1174
1190
|
};
|
|
1175
|
-
|
|
1191
|
+
m.mount = function() {
|
|
1176
1192
|
for (var n = arguments.length, e = new Array(n), o = 0; o < n; o++)
|
|
1177
1193
|
e[o] = arguments[o];
|
|
1178
1194
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(t) {
|
|
1179
1195
|
if (!t.prototype || !t.prototype.constructor)
|
|
1180
1196
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));
|
|
1181
|
-
t.utils && (
|
|
1197
|
+
t.utils && (m.utils = G(G({}, m.utils), t.utils)), Ae.mount(t);
|
|
1182
1198
|
});
|
|
1183
1199
|
};
|
|
1184
|
-
|
|
1185
|
-
return new
|
|
1200
|
+
m.create = function(n, e) {
|
|
1201
|
+
return new m(n, e);
|
|
1186
1202
|
};
|
|
1187
|
-
|
|
1188
|
-
var C = [], De, dt, ft = !1,
|
|
1189
|
-
function
|
|
1203
|
+
m.version = Bn;
|
|
1204
|
+
var C = [], De, dt, ft = !1, nt, ot, $e, Se;
|
|
1205
|
+
function ro() {
|
|
1190
1206
|
function n() {
|
|
1191
1207
|
this.defaults = {
|
|
1192
1208
|
scroll: !0,
|
|
@@ -1208,29 +1224,29 @@ function oo() {
|
|
|
1208
1224
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
1209
1225
|
},
|
|
1210
1226
|
drop: function() {
|
|
1211
|
-
this.sortable.nativeDraggable ? w(document, "dragover", this._handleAutoScroll) : (w(document, "pointermove", this._handleFallbackAutoScroll), w(document, "touchmove", this._handleFallbackAutoScroll), w(document, "mousemove", this._handleFallbackAutoScroll)), kt(),
|
|
1227
|
+
this.sortable.nativeDraggable ? w(document, "dragover", this._handleAutoScroll) : (w(document, "pointermove", this._handleFallbackAutoScroll), w(document, "touchmove", this._handleFallbackAutoScroll), w(document, "mousemove", this._handleFallbackAutoScroll)), kt(), Ye(), jn();
|
|
1212
1228
|
},
|
|
1213
1229
|
nulling: function() {
|
|
1214
|
-
|
|
1230
|
+
$e = dt = De = ft = Se = nt = ot = null, C.length = 0;
|
|
1215
1231
|
},
|
|
1216
1232
|
_handleFallbackAutoScroll: function(o) {
|
|
1217
1233
|
this._handleAutoScroll(o, !0);
|
|
1218
1234
|
},
|
|
1219
1235
|
_handleAutoScroll: function(o, t) {
|
|
1220
1236
|
var i = this, r = (o.touches ? o.touches[0] : o).clientX, a = (o.touches ? o.touches[0] : o).clientY, l = document.elementFromPoint(r, a);
|
|
1221
|
-
if (
|
|
1222
|
-
|
|
1237
|
+
if ($e = o, t || this.options.forceAutoScrollFallback || Pe || K || Te) {
|
|
1238
|
+
it(o, this.options, l, t);
|
|
1223
1239
|
var s = ne(l, !0);
|
|
1224
|
-
ft && (!Se || r !==
|
|
1240
|
+
ft && (!Se || r !== nt || a !== ot) && (Se && kt(), Se = setInterval(function() {
|
|
1225
1241
|
var u = ne(document.elementFromPoint(r, a), !0);
|
|
1226
|
-
u !== s && (s = u,
|
|
1227
|
-
}, 10),
|
|
1242
|
+
u !== s && (s = u, Ye()), it(o, i.options, u, t);
|
|
1243
|
+
}, 10), nt = r, ot = a);
|
|
1228
1244
|
} else {
|
|
1229
|
-
if (!this.options.bubbleScroll || ne(l, !0) ===
|
|
1230
|
-
|
|
1245
|
+
if (!this.options.bubbleScroll || ne(l, !0) === $()) {
|
|
1246
|
+
Ye();
|
|
1231
1247
|
return;
|
|
1232
1248
|
}
|
|
1233
|
-
|
|
1249
|
+
it(o, this.options, ne(l, !1), !1);
|
|
1234
1250
|
}
|
|
1235
1251
|
}
|
|
1236
1252
|
}, q(n, {
|
|
@@ -1238,7 +1254,7 @@ function oo() {
|
|
|
1238
1254
|
initializeByDefault: !0
|
|
1239
1255
|
});
|
|
1240
1256
|
}
|
|
1241
|
-
function
|
|
1257
|
+
function Ye() {
|
|
1242
1258
|
C.forEach(function(n) {
|
|
1243
1259
|
clearInterval(n.pid);
|
|
1244
1260
|
}), C = [];
|
|
@@ -1246,22 +1262,22 @@ function Le() {
|
|
|
1246
1262
|
function kt() {
|
|
1247
1263
|
clearInterval(Se);
|
|
1248
1264
|
}
|
|
1249
|
-
var
|
|
1265
|
+
var it = Xt(function(n, e, o, t) {
|
|
1250
1266
|
if (e.scroll) {
|
|
1251
|
-
var i = (n.touches ? n.touches[0] : n).clientX, r = (n.touches ? n.touches[0] : n).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s =
|
|
1252
|
-
dt !== o && (dt = o,
|
|
1267
|
+
var i = (n.touches ? n.touches[0] : n).clientX, r = (n.touches ? n.touches[0] : n).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = $(), u = !1, f;
|
|
1268
|
+
dt !== o && (dt = o, Ye(), De = e.scroll, f = e.scrollFn, De === !0 && (De = ne(o, !0)));
|
|
1253
1269
|
var d = 0, b = De;
|
|
1254
1270
|
do {
|
|
1255
|
-
var y = b,
|
|
1256
|
-
y === s ? (oe = N < ie && (B.overflowX === "auto" || B.overflowX === "scroll" || B.overflowX === "visible"),
|
|
1257
|
-
var ye = oe && (Math.abs(x - i) <= a && be + N < ie) - (Math.abs(O - i) <= a && !!be), z =
|
|
1271
|
+
var y = b, g = I(y), h = g.top, _ = g.bottom, O = g.left, x = g.right, N = g.width, k = g.height, oe = void 0, W = void 0, ie = y.scrollWidth, ve = y.scrollHeight, B = p(y), be = y.scrollLeft, Z = y.scrollTop;
|
|
1272
|
+
y === s ? (oe = N < ie && (B.overflowX === "auto" || B.overflowX === "scroll" || B.overflowX === "visible"), W = k < ve && (B.overflowY === "auto" || B.overflowY === "scroll" || B.overflowY === "visible")) : (oe = N < ie && (B.overflowX === "auto" || B.overflowX === "scroll"), W = k < ve && (B.overflowY === "auto" || B.overflowY === "scroll"));
|
|
1273
|
+
var ye = oe && (Math.abs(x - i) <= a && be + N < ie) - (Math.abs(O - i) <= a && !!be), z = W && (Math.abs(_ - r) <= a && Z + k < ve) - (Math.abs(h - r) <= a && !!Z);
|
|
1258
1274
|
if (!C[d])
|
|
1259
1275
|
for (var re = 0; re <= d; re++)
|
|
1260
1276
|
C[re] || (C[re] = {});
|
|
1261
1277
|
(C[d].vx != ye || C[d].vy != z || C[d].el !== y) && (C[d].el = y, C[d].vx = ye, C[d].vy = z, clearInterval(C[d].pid), (ye != 0 || z != 0) && (u = !0, C[d].pid = setInterval((function() {
|
|
1262
|
-
t && this.layer === 0 &&
|
|
1278
|
+
t && this.layer === 0 && m.active._onTouchMove($e);
|
|
1263
1279
|
var we = C[this.layer].vy ? C[this.layer].vy * l : 0, Q = C[this.layer].vx ? C[this.layer].vx * l : 0;
|
|
1264
|
-
typeof f == "function" && f.call(
|
|
1280
|
+
typeof f == "function" && f.call(m.dragged.parentNode[V], Q, we, n, $e, C[this.layer].el) !== "continue" || Yt(C[this.layer].el, Q, we);
|
|
1265
1281
|
}).bind({
|
|
1266
1282
|
layer: d
|
|
1267
1283
|
}), 24))), d++;
|
|
@@ -1280,9 +1296,9 @@ var rt = Xt(function(n, e, o, t) {
|
|
|
1280
1296
|
}));
|
|
1281
1297
|
}
|
|
1282
1298
|
};
|
|
1283
|
-
function
|
|
1299
|
+
function mt() {
|
|
1284
1300
|
}
|
|
1285
|
-
|
|
1301
|
+
mt.prototype = {
|
|
1286
1302
|
startIndex: null,
|
|
1287
1303
|
dragStart: function(e) {
|
|
1288
1304
|
var o = e.oldDraggableIndex;
|
|
@@ -1291,36 +1307,36 @@ gt.prototype = {
|
|
|
1291
1307
|
onSpill: function(e) {
|
|
1292
1308
|
var o = e.dragEl, t = e.putSortable;
|
|
1293
1309
|
this.sortable.captureAnimationState(), t && t.captureAnimationState();
|
|
1294
|
-
var i =
|
|
1310
|
+
var i = ge(this.sortable.el, this.startIndex, this.options);
|
|
1295
1311
|
i ? this.sortable.el.insertBefore(o, i) : this.sortable.el.appendChild(o), this.sortable.animateAll(), t && t.animateAll();
|
|
1296
1312
|
},
|
|
1297
1313
|
drop: Ut
|
|
1298
1314
|
};
|
|
1299
|
-
q(
|
|
1315
|
+
q(mt, {
|
|
1300
1316
|
pluginName: "revertOnSpill"
|
|
1301
1317
|
});
|
|
1302
|
-
function
|
|
1318
|
+
function gt() {
|
|
1303
1319
|
}
|
|
1304
|
-
|
|
1320
|
+
gt.prototype = {
|
|
1305
1321
|
onSpill: function(e) {
|
|
1306
1322
|
var o = e.dragEl, t = e.putSortable, i = t || this.sortable;
|
|
1307
1323
|
i.captureAnimationState(), o.parentNode && o.parentNode.removeChild(o), i.animateAll();
|
|
1308
1324
|
},
|
|
1309
1325
|
drop: Ut
|
|
1310
1326
|
};
|
|
1311
|
-
q(
|
|
1327
|
+
q(gt, {
|
|
1312
1328
|
pluginName: "removeOnSpill"
|
|
1313
1329
|
});
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
function
|
|
1330
|
+
m.mount(new ro());
|
|
1331
|
+
m.mount(gt, mt);
|
|
1332
|
+
function ao(n, e, o = {}) {
|
|
1317
1333
|
let t;
|
|
1318
1334
|
const { document: i = ln, watchElement: r = !1, ...a } = o, l = { onUpdate: (h) => {
|
|
1319
|
-
|
|
1335
|
+
uo(e, h.oldIndex, h.newIndex, h);
|
|
1320
1336
|
} }, s = Mt(() => typeof n == "string" ? i?.querySelector(n) : sn(n)), u = () => {
|
|
1321
1337
|
t?.destroy(), t = void 0;
|
|
1322
1338
|
}, f = (h) => {
|
|
1323
|
-
!h || t !== void 0 || (t = new
|
|
1339
|
+
!h || t !== void 0 || (t = new m(h, {
|
|
1324
1340
|
...l,
|
|
1325
1341
|
...a
|
|
1326
1342
|
}));
|
|
@@ -1338,59 +1354,59 @@ function io(n, e, o = {}) {
|
|
|
1338
1354
|
immediate: !0,
|
|
1339
1355
|
flush: "post"
|
|
1340
1356
|
}) : un(d);
|
|
1341
|
-
const
|
|
1357
|
+
const g = () => {
|
|
1342
1358
|
u();
|
|
1343
1359
|
};
|
|
1344
1360
|
return cn(() => {
|
|
1345
1361
|
y?.(), u();
|
|
1346
1362
|
}), {
|
|
1347
|
-
stop:
|
|
1363
|
+
stop: g,
|
|
1348
1364
|
start: d,
|
|
1349
1365
|
option: b
|
|
1350
1366
|
};
|
|
1351
1367
|
}
|
|
1352
|
-
function
|
|
1368
|
+
function lo(n, e, o) {
|
|
1353
1369
|
const t = n.children[o];
|
|
1354
1370
|
n.insertBefore(e, t);
|
|
1355
1371
|
}
|
|
1356
|
-
function
|
|
1372
|
+
function so(n) {
|
|
1357
1373
|
n.parentNode && n.parentNode.removeChild(n);
|
|
1358
1374
|
}
|
|
1359
|
-
function
|
|
1360
|
-
t != null && (
|
|
1361
|
-
const i =
|
|
1375
|
+
function uo(n, e, o, t = null) {
|
|
1376
|
+
t != null && (so(t.item), lo(t.from, t.item, e));
|
|
1377
|
+
const i = rt(n), r = i ? [...yt(n)] : yt(n);
|
|
1362
1378
|
if (o >= 0 && o < r.length) {
|
|
1363
1379
|
const a = r.splice(e, 1)[0];
|
|
1364
|
-
|
|
1380
|
+
at(() => {
|
|
1365
1381
|
r.splice(o, 0, a), i && (n.value = r);
|
|
1366
1382
|
});
|
|
1367
1383
|
}
|
|
1368
1384
|
}
|
|
1369
|
-
const
|
|
1385
|
+
const co = { class: "text-medium-emphasis ps-2" }, bo = {
|
|
1370
1386
|
__name: "Dialog",
|
|
1371
1387
|
setup(n, { expose: e }) {
|
|
1372
|
-
const o =
|
|
1388
|
+
const o = lt("table_props"), t = lt("datatablesPluginOptions"), { tableState: i } = pn(), { tableDataState: r } = mn(o), a = ue(0), l = Jt("listRef"), s = ue(!1), u = ue([]), f = ue([]), d = ue([]), b = () => {
|
|
1373
1389
|
s.value = !0;
|
|
1374
1390
|
};
|
|
1375
1391
|
en(async () => {
|
|
1376
|
-
f.value = i.value.options.columns?.selected, d.value = i.value.options.columns?.sorted, u.value = d.value.map((h) => o.headers.find((_) => _.key === h)), await
|
|
1377
|
-
const { option:
|
|
1392
|
+
f.value = i.value.options.columns?.selected, d.value = i.value.options.columns?.sorted, u.value = d.value.map((h) => o.headers.find((_) => _.key === h)), await at();
|
|
1393
|
+
const { option: g } = ao(l, u, {
|
|
1378
1394
|
onUpdate: async (h) => {
|
|
1379
|
-
await
|
|
1395
|
+
await at();
|
|
1380
1396
|
const _ = Array.from(h.from.children).map(function(O) {
|
|
1381
1397
|
return O.getAttribute("header-keys");
|
|
1382
1398
|
});
|
|
1383
|
-
|
|
1399
|
+
Ue(_, d.value) || (d.value = _);
|
|
1384
1400
|
}
|
|
1385
1401
|
});
|
|
1386
|
-
|
|
1402
|
+
g("animation", 200);
|
|
1387
1403
|
});
|
|
1388
1404
|
const y = () => {
|
|
1389
|
-
(!
|
|
1405
|
+
(!Ue(f.value, i.value.options.columns?.selected) || !Ue(d.value, i.value.options.columns?.sorted)) && (r.value.options.columns.selected = f.value, r.value.options.columns.sorted = d.value), s.value = !1;
|
|
1390
1406
|
};
|
|
1391
|
-
return e({ openDialog: b }), (
|
|
1407
|
+
return e({ openDialog: b }), (g, h) => (ze(), wt(gn, {
|
|
1392
1408
|
modelValue: ce(s),
|
|
1393
|
-
"onUpdate:modelValue": h[1] || (h[1] = (_) =>
|
|
1409
|
+
"onUpdate:modelValue": h[1] || (h[1] = (_) => rt(s) ? s.value = _ : null),
|
|
1394
1410
|
"max-width": "500",
|
|
1395
1411
|
eager: "",
|
|
1396
1412
|
"retain-focus": !1
|
|
@@ -1400,8 +1416,8 @@ const so = { class: "text-medium-emphasis ps-2" }, mo = {
|
|
|
1400
1416
|
default: J(() => [
|
|
1401
1417
|
R(bn, { class: "d-flex justify-space-between align-center" }, {
|
|
1402
1418
|
default: J(() => [
|
|
1403
|
-
tn("div",
|
|
1404
|
-
R(
|
|
1419
|
+
tn("div", co, nn(g.$t("$datatables.selectColumns")), 1),
|
|
1420
|
+
R(qe, {
|
|
1405
1421
|
icon: ce(t).header.icons.close,
|
|
1406
1422
|
variant: "text",
|
|
1407
1423
|
onClick: (O) => _.value = !1
|
|
@@ -1417,7 +1433,7 @@ const so = { class: "text-medium-emphasis ps-2" }, mo = {
|
|
|
1417
1433
|
ref: l
|
|
1418
1434
|
}, {
|
|
1419
1435
|
default: J(() => [
|
|
1420
|
-
(
|
|
1436
|
+
(ze(!0), on(rn, null, an(ce(u), (O, x) => (ze(), wt(On, {
|
|
1421
1437
|
key: `${ce(a)}-${x}`,
|
|
1422
1438
|
title: O?.title,
|
|
1423
1439
|
"header-keys": O?.key,
|
|
@@ -1427,7 +1443,7 @@ const so = { class: "text-medium-emphasis ps-2" }, mo = {
|
|
|
1427
1443
|
prepend: J(() => [
|
|
1428
1444
|
R(Nn, {
|
|
1429
1445
|
modelValue: ce(f),
|
|
1430
|
-
"onUpdate:modelValue": h[0] || (h[0] = (N) =>
|
|
1446
|
+
"onUpdate:modelValue": h[0] || (h[0] = (N) => rt(f) ? f.value = N : null),
|
|
1431
1447
|
value: O?.key,
|
|
1432
1448
|
"hide-details": ""
|
|
1433
1449
|
}, null, 8, ["modelValue", "value"])
|
|
@@ -1448,15 +1464,15 @@ const so = { class: "text-medium-emphasis ps-2" }, mo = {
|
|
|
1448
1464
|
R(St, { class: "mt-2" }),
|
|
1449
1465
|
R(wn, { class: "my-2 d-flex justify-end" }, {
|
|
1450
1466
|
default: J(() => [
|
|
1451
|
-
R(
|
|
1467
|
+
R(qe, {
|
|
1452
1468
|
class: "text-none",
|
|
1453
|
-
text:
|
|
1469
|
+
text: g.$t("$datatables.cancel"),
|
|
1454
1470
|
onClick: (O) => _.value = !1
|
|
1455
1471
|
}, null, 8, ["text", "onClick"]),
|
|
1456
|
-
R(
|
|
1472
|
+
R(qe, {
|
|
1457
1473
|
class: "text-none",
|
|
1458
1474
|
color: "primary",
|
|
1459
|
-
text:
|
|
1475
|
+
text: g.$t("$datatables.submit"),
|
|
1460
1476
|
variant: "flat",
|
|
1461
1477
|
onClick: y
|
|
1462
1478
|
}, null, 8, ["text"])
|
|
@@ -1471,8 +1487,8 @@ const so = { class: "text-medium-emphasis ps-2" }, mo = {
|
|
|
1471
1487
|
}, 8, ["modelValue"]));
|
|
1472
1488
|
}
|
|
1473
1489
|
};
|
|
1474
|
-
function
|
|
1475
|
-
const n =
|
|
1490
|
+
function yo() {
|
|
1491
|
+
const n = lt("datatablesPluginOptions"), { t: e } = Pn(), o = ue();
|
|
1476
1492
|
return { columnsItems: Mt(() => [
|
|
1477
1493
|
{
|
|
1478
1494
|
title: `${e("$datatables.columns")}`,
|
|
@@ -1482,6 +1498,6 @@ function vo() {
|
|
|
1482
1498
|
]), columnsRef: o };
|
|
1483
1499
|
}
|
|
1484
1500
|
export {
|
|
1485
|
-
|
|
1486
|
-
|
|
1501
|
+
bo as _,
|
|
1502
|
+
yo as u
|
|
1487
1503
|
};
|