@ianicdev/datatables2 0.11.4 → 0.11.5
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-C4t1CoQN.js → Comparison-DL9ojj3w.js} +3 -3
- package/dist/{Comparison-K_C8fK5q.cjs → Comparison-zf9wgAkk.cjs} +1 -1
- package/dist/{Datepicker-8vMCYK64.cjs → Datepicker-Dg15YseP.cjs} +1 -1
- package/dist/{Datepicker-CvoUCd6e.js → Datepicker-Duwv3zQB.js} +7 -7
- package/dist/{Options-CLwvsyYI.cjs → Options-BE82c0Zz.cjs} +1 -1
- package/dist/{Options-DtOz8dqa.js → Options-CurNvolo.js} +17 -17
- package/dist/{RefreshTable-BDCdK574.cjs → RefreshTable-Cc0I1PA5.cjs} +1 -1
- package/dist/{RefreshTable-03hYqy0d.js → RefreshTable-Cn3y6Lyg.js} +3 -3
- package/dist/{Search-DCvbaw38.js → Search-BUb6ZctR.js} +4 -4
- package/dist/{Search-BfHfgRqm.cjs → Search-CvOD_IHr.cjs} +1 -1
- package/dist/{Table-BdiBnyG7.js → Table-D5xj84Hx.js} +6 -6
- package/dist/{Table-hSaWsE5Z.cjs → Table-DRC6dqmS.cjs} +1 -1
- package/dist/{TableServer-DfNCjOUI.cjs → TableServer-BrktC88-.cjs} +1 -1
- package/dist/{TableServer-eOtGylb9.js → TableServer-DGx2_VC7.js} +11 -11
- package/dist/{cellRender-B7hkYbUV.js → cellRender-DN6k6hHB.js} +2 -2
- package/dist/{cellRender-BN5jkrLA.cjs → cellRender-DcK06KSn.cjs} +1 -1
- package/dist/{dataTables-EUusYEBd.js → dataTables-BEIZ1GFJ.js} +17 -17
- package/dist/{dataTables-B51qe1LD.cjs → dataTables-DocfWkcv.cjs} +1 -1
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/{index-BTwaqzMN.js → index-A7VzNfop.js} +3 -3
- package/dist/{index-DG3Vs3j9.js → index-BfwTwETw.js} +8 -8
- package/dist/{index-BSh8Y0C1.cjs → index-C9IAfraU.cjs} +1 -1
- package/dist/{index-sB-PMcO7.cjs → index-CqeIrUKn.cjs} +1 -1
- package/dist/{index-CsgCe_gz.js → index-DIJYRSnI.js} +14 -14
- package/dist/{index-Hcb-nE49.cjs → index-Db7uKS4O.cjs} +1 -1
- package/dist/{index-B_fG3b5A.js → index-DdbT75rv.js} +5 -5
- package/dist/{index-9hGXBnYN.cjs → index-kEBJD9Uz.cjs} +1 -1
- package/dist/{index.es-D48oZl91.js → index.es-DB0V-0tm.js} +1 -1
- package/dist/{index.es-DQaLNvpD.cjs → index.es-DZnpWbiI.cjs} +1 -1
- package/dist/jspdf-BDAGZhm6.cjs +79 -0
- package/dist/{jspdf-v7nU-ziX.js → jspdf-DpfxfImq.js} +2930 -2948
- package/dist/{purify.es-B-PIlM9I.js → purify.es-DIxY135m.js} +142 -142
- package/dist/purify.es-DSa7RKfV.cjs +2 -0
- package/dist/{useColumns-UM_zCt0D.js → useColumns-Dmca5HPg.js} +316 -302
- package/dist/useColumns-FMszZoTi.cjs +1 -0
- package/dist/{useDownload-CR3A1-nS.js → useDownload-DVYhgsLa.js} +1 -1
- package/dist/{useDownload-wLFMGFcn.cjs → useDownload-YBEDFv5z.cjs} +1 -1
- package/dist/{useRefreshTable-Dg9LI59z.cjs → useRefreshTable-BjtSww_t.cjs} +1 -1
- package/dist/{useRefreshTable-CRquY8ZU.js → useRefreshTable-BoTF0YZF.js} +1 -1
- package/package.json +6 -6
- package/dist/jspdf-D8dTvh2d.cjs +0 -79
- package/dist/purify.es-B-_4ubwQ.cjs +0 -2
- package/dist/useColumns-DV---ndr.cjs +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ref as ue, useId as
|
|
2
|
-
import { defaultDocument as
|
|
3
|
-
import { p as
|
|
4
|
-
import { g as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
const
|
|
7
|
-
...Dt(
|
|
8
|
-
...Dt(
|
|
9
|
-
}, "VCheckbox"),
|
|
1
|
+
import { ref as ue, useId as Zt, createVNode as R, mergeProps as bt, computed as Mt, watch as Qt, isRef as at, toValue as yt, nextTick as lt, inject as st, useTemplateRef as Jt, onMounted as en, openBlock as Ue, 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
|
+
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 gn, t as mn, g as vn, v as bn, h as yn, w as wn, a as qe } from "./index-DIJYRSnI.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 Ke, ax as St, au as In, av as On, i as xn } from "./dataTables-BEIZ1GFJ.js";
|
|
5
|
+
import { useI18n as Pn } from "vue-i18n";
|
|
6
|
+
const An = Cn({
|
|
7
|
+
...Dt(hn(), ["direction"]),
|
|
8
|
+
...Dt(fn(), ["inline"])
|
|
9
|
+
}, "VCheckbox"), Nn = En()({
|
|
10
10
|
name: "VCheckbox",
|
|
11
11
|
inheritAttrs: !1,
|
|
12
|
-
props:
|
|
12
|
+
props: An(),
|
|
13
13
|
emits: {
|
|
14
14
|
"update:modelValue": (n) => !0,
|
|
15
15
|
"update:focused": (n) => !0
|
|
@@ -23,13 +23,13 @@ const Pn = En({
|
|
|
23
23
|
isFocused: r,
|
|
24
24
|
focus: a,
|
|
25
25
|
blur: l
|
|
26
|
-
} =
|
|
26
|
+
} = dn(n), s = ue(), u = Zt();
|
|
27
27
|
return Dn(() => {
|
|
28
|
-
const [
|
|
28
|
+
const [f, d] = Sn(o), b = Et.filterProps(n), y = _t.filterProps(n);
|
|
29
29
|
return R(Et, bt({
|
|
30
30
|
ref: s,
|
|
31
31
|
class: ["v-checkbox", n.class]
|
|
32
|
-
},
|
|
32
|
+
}, f, b, {
|
|
33
33
|
modelValue: i.value,
|
|
34
34
|
"onUpdate:modelValue": (m) => i.value = m,
|
|
35
35
|
id: n.id || `checkbox-${u}`,
|
|
@@ -39,18 +39,18 @@ const Pn = En({
|
|
|
39
39
|
...t,
|
|
40
40
|
default: (m) => {
|
|
41
41
|
let {
|
|
42
|
-
id:
|
|
43
|
-
messagesId:
|
|
42
|
+
id: h,
|
|
43
|
+
messagesId: _,
|
|
44
44
|
isDisabled: O,
|
|
45
45
|
isReadonly: x,
|
|
46
46
|
isValid: N
|
|
47
47
|
} = m;
|
|
48
|
-
return R(_t, bt(
|
|
49
|
-
id:
|
|
50
|
-
"aria-describedby":
|
|
48
|
+
return R(_t, bt(y, {
|
|
49
|
+
id: h.value,
|
|
50
|
+
"aria-describedby": _.value,
|
|
51
51
|
disabled: O.value,
|
|
52
52
|
readonly: x.value
|
|
53
|
-
},
|
|
53
|
+
}, d, {
|
|
54
54
|
error: N.value === !1,
|
|
55
55
|
modelValue: i.value,
|
|
56
56
|
"onUpdate:modelValue": (k) => i.value = k,
|
|
@@ -76,7 +76,7 @@ function j(n) {
|
|
|
76
76
|
for (var e = 1; e < arguments.length; e++) {
|
|
77
77
|
var o = arguments[e] != null ? arguments[e] : {};
|
|
78
78
|
e % 2 ? Tt(Object(o), !0).forEach(function(t) {
|
|
79
|
-
|
|
79
|
+
kn(n, t, o[t]);
|
|
80
80
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(o)) : Tt(Object(o)).forEach(function(t) {
|
|
81
81
|
Object.defineProperty(n, t, Object.getOwnPropertyDescriptor(o, t));
|
|
82
82
|
});
|
|
@@ -91,7 +91,7 @@ function Ve(n) {
|
|
|
91
91
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
92
92
|
}, Ve(n);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function kn(n, e, o) {
|
|
95
95
|
return e in n ? Object.defineProperty(n, e, {
|
|
96
96
|
value: o,
|
|
97
97
|
enumerable: !0,
|
|
@@ -109,16 +109,16 @@ function q() {
|
|
|
109
109
|
return n;
|
|
110
110
|
}, q.apply(this, arguments);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Mn(n, e) {
|
|
113
113
|
if (n == null) return {};
|
|
114
114
|
var o = {}, t = Object.keys(n), i, r;
|
|
115
115
|
for (r = 0; r < t.length; r++)
|
|
116
116
|
i = t[r], !(e.indexOf(i) >= 0) && (o[i] = n[i]);
|
|
117
117
|
return o;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Fn(n, e) {
|
|
120
120
|
if (n == null) return {};
|
|
121
|
-
var o =
|
|
121
|
+
var o = Mn(n, e), t, i;
|
|
122
122
|
if (Object.getOwnPropertySymbols) {
|
|
123
123
|
var r = Object.getOwnPropertySymbols(n);
|
|
124
124
|
for (i = 0; i < r.length; i++)
|
|
@@ -126,20 +126,20 @@ function Mn(n, e) {
|
|
|
126
126
|
}
|
|
127
127
|
return o;
|
|
128
128
|
}
|
|
129
|
-
var
|
|
129
|
+
var Rn = "1.15.6";
|
|
130
130
|
function U(n) {
|
|
131
131
|
if (typeof window < "u" && window.navigator)
|
|
132
132
|
return !!/* @__PURE__ */ navigator.userAgent.match(n);
|
|
133
133
|
}
|
|
134
|
-
var K = U(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Pe = U(/Edge/i), Ct = U(/firefox/i), Te = U(/safari/i) && !U(/chrome/i) && !U(/android/i), ht = U(/iP(ad|od|hone)/i),
|
|
134
|
+
var K = U(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Pe = U(/Edge/i), Ct = U(/firefox/i), Te = U(/safari/i) && !U(/chrome/i) && !U(/android/i), ht = U(/iP(ad|od|hone)/i), Ft = U(/chrome/i) && U(/android/i), Rt = {
|
|
135
135
|
capture: !1,
|
|
136
136
|
passive: !1
|
|
137
137
|
};
|
|
138
|
-
function
|
|
139
|
-
n.addEventListener(e, o, !K &&
|
|
138
|
+
function E(n, e, o) {
|
|
139
|
+
n.addEventListener(e, o, !K && Rt);
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
n.removeEventListener(e, o, !K &&
|
|
141
|
+
function w(n, e, o) {
|
|
142
|
+
n.removeEventListener(e, o, !K && Rt);
|
|
143
143
|
}
|
|
144
144
|
function He(n, e) {
|
|
145
145
|
if (e) {
|
|
@@ -157,7 +157,7 @@ function He(n, e) {
|
|
|
157
157
|
return !1;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function Vt(n) {
|
|
161
161
|
return n.host && n !== document && n.host.nodeType ? n.host : n.parentNode;
|
|
162
162
|
}
|
|
163
163
|
function W(n, e, o, t) {
|
|
@@ -167,7 +167,7 @@ function W(n, e, o, t) {
|
|
|
167
167
|
if (e != null && (e[0] === ">" ? n.parentNode === o && He(n, e) : He(n, e)) || t && n === o)
|
|
168
168
|
return n;
|
|
169
169
|
if (n === o) break;
|
|
170
|
-
} while (n =
|
|
170
|
+
} while (n = Vt(n));
|
|
171
171
|
}
|
|
172
172
|
return null;
|
|
173
173
|
}
|
|
@@ -181,7 +181,7 @@ function X(n, e, o) {
|
|
|
181
181
|
n.className = (t + (o ? " " + e : "")).replace(It, " ");
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function p(n, e, o) {
|
|
185
185
|
var t = n && n.style;
|
|
186
186
|
if (t) {
|
|
187
187
|
if (o === void 0)
|
|
@@ -195,13 +195,13 @@ function ge(n, e) {
|
|
|
195
195
|
o = n;
|
|
196
196
|
else
|
|
197
197
|
do {
|
|
198
|
-
var t =
|
|
198
|
+
var t = p(n, "transform");
|
|
199
199
|
t && t !== "none" && (o = t + " " + o);
|
|
200
200
|
} while (!e && (n = n.parentNode));
|
|
201
201
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
202
202
|
return i && new i(o);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Bt(n, e, o) {
|
|
205
205
|
if (n) {
|
|
206
206
|
var t = n.getElementsByTagName(e), i = 0, r = t.length;
|
|
207
207
|
if (o)
|
|
@@ -217,26 +217,26 @@ function G() {
|
|
|
217
217
|
}
|
|
218
218
|
function I(n, e, o, t, i) {
|
|
219
219
|
if (!(!n.getBoundingClientRect && n !== window)) {
|
|
220
|
-
var r, a, l, s, u,
|
|
221
|
-
if (n !== window && n.parentNode && n !== G() ? (r = n.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right,
|
|
220
|
+
var r, a, l, s, u, f, d;
|
|
221
|
+
if (n !== window && n.parentNode && n !== G() ? (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
222
|
do
|
|
223
|
-
if (i && i.getBoundingClientRect && (
|
|
223
|
+
if (i && i.getBoundingClientRect && (p(i, "transform") !== "none" || o && p(i, "position") !== "static")) {
|
|
224
224
|
var b = i.getBoundingClientRect();
|
|
225
|
-
a -= b.top + parseInt(
|
|
225
|
+
a -= b.top + parseInt(p(i, "border-top-width")), l -= b.left + parseInt(p(i, "border-left-width")), s = a + r.height, u = l + r.width;
|
|
226
226
|
break;
|
|
227
227
|
}
|
|
228
228
|
while (i = i.parentNode);
|
|
229
229
|
if (t && n !== window) {
|
|
230
|
-
var
|
|
231
|
-
|
|
230
|
+
var y = ge(i || n), m = y && y.a, h = y && y.d;
|
|
231
|
+
y && (a /= h, l /= m, d /= m, f /= h, s = a + f, u = l + d);
|
|
232
232
|
}
|
|
233
233
|
return {
|
|
234
234
|
top: a,
|
|
235
235
|
left: l,
|
|
236
236
|
bottom: s,
|
|
237
237
|
right: u,
|
|
238
|
-
width:
|
|
239
|
-
height:
|
|
238
|
+
width: d,
|
|
239
|
+
height: f
|
|
240
240
|
};
|
|
241
241
|
}
|
|
242
242
|
}
|
|
@@ -251,7 +251,7 @@ function Ot(n, e, o) {
|
|
|
251
251
|
}
|
|
252
252
|
function me(n, e, o, t) {
|
|
253
253
|
for (var i = 0, r = 0, a = n.children; r < a.length; ) {
|
|
254
|
-
if (a[r].style.display !== "none" && a[r] !==
|
|
254
|
+
if (a[r].style.display !== "none" && a[r] !== g.ghost && (t || a[r] !== g.dragged) && W(a[r], o.draggable, n, !1)) {
|
|
255
255
|
if (i === e)
|
|
256
256
|
return a[r];
|
|
257
257
|
i++;
|
|
@@ -261,7 +261,7 @@ function me(n, e, o, t) {
|
|
|
261
261
|
return null;
|
|
262
262
|
}
|
|
263
263
|
function pt(n, e) {
|
|
264
|
-
for (var o = n.lastElementChild; o && (o ===
|
|
264
|
+
for (var o = n.lastElementChild; o && (o === g.ghost || p(o, "display") === "none" || e && !He(o, e)); )
|
|
265
265
|
o = o.previousElementSibling;
|
|
266
266
|
return o || null;
|
|
267
267
|
}
|
|
@@ -270,7 +270,7 @@ function L(n, e) {
|
|
|
270
270
|
if (!n || !n.parentNode)
|
|
271
271
|
return -1;
|
|
272
272
|
for (; n = n.previousElementSibling; )
|
|
273
|
-
n.nodeName.toUpperCase() !== "TEMPLATE" && n !==
|
|
273
|
+
n.nodeName.toUpperCase() !== "TEMPLATE" && n !== g.clone && (!e || He(n, e)) && o++;
|
|
274
274
|
return o;
|
|
275
275
|
}
|
|
276
276
|
function xt(n) {
|
|
@@ -282,7 +282,7 @@ function xt(n) {
|
|
|
282
282
|
} while (n !== t && (n = n.parentNode));
|
|
283
283
|
return [e, o];
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function Vn(n, e) {
|
|
286
286
|
for (var o in n)
|
|
287
287
|
if (n.hasOwnProperty(o)) {
|
|
288
288
|
for (var t in e)
|
|
@@ -295,7 +295,7 @@ function ne(n, e) {
|
|
|
295
295
|
var o = n, t = !1;
|
|
296
296
|
do
|
|
297
297
|
if (o.clientWidth < o.scrollWidth || o.clientHeight < o.scrollHeight) {
|
|
298
|
-
var i =
|
|
298
|
+
var i = p(o);
|
|
299
299
|
if (o.clientWidth < o.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || o.clientHeight < o.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
300
300
|
if (!o.getBoundingClientRect || o === document.body) return G();
|
|
301
301
|
if (t || e) return o;
|
|
@@ -305,7 +305,7 @@ function ne(n, e) {
|
|
|
305
305
|
while (o = o.parentNode);
|
|
306
306
|
return G();
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function Bn(n, e) {
|
|
309
309
|
if (n && e)
|
|
310
310
|
for (var o in e)
|
|
311
311
|
e.hasOwnProperty(o) && (n[o] = e[o]);
|
|
@@ -315,7 +315,7 @@ function Ze(n, e) {
|
|
|
315
315
|
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
316
|
}
|
|
317
317
|
var Ce;
|
|
318
|
-
function
|
|
318
|
+
function Xt(n, e) {
|
|
319
319
|
return function() {
|
|
320
320
|
if (!Ce) {
|
|
321
321
|
var o = arguments, t = this;
|
|
@@ -325,17 +325,17 @@ function Bt(n, e) {
|
|
|
325
325
|
}
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Xn() {
|
|
329
329
|
clearTimeout(Ce), Ce = void 0;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Yt(n, e, o) {
|
|
332
332
|
n.scrollLeft += e, n.scrollTop += o;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function Lt(n) {
|
|
335
335
|
var e = window.Polymer, o = window.jQuery || window.Zepto;
|
|
336
336
|
return e && e.dom ? e.dom(n).cloneNode(!0) : o ? o(n).clone(!0)[0] : n.cloneNode(!0);
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function Ht(n, e, o) {
|
|
339
339
|
var t = {};
|
|
340
340
|
return Array.from(n.children).forEach(function(i) {
|
|
341
341
|
var r, a, l, s;
|
|
@@ -346,14 +346,14 @@ function Lt(n, e, o) {
|
|
|
346
346
|
}), t.width = t.right - t.left, t.height = t.bottom - t.top, t.x = t.left, t.y = t.top, t;
|
|
347
347
|
}
|
|
348
348
|
var V = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
349
|
-
function
|
|
349
|
+
function Yn() {
|
|
350
350
|
var n = [], e;
|
|
351
351
|
return {
|
|
352
352
|
captureAnimationState: function() {
|
|
353
353
|
if (n = [], !!this.options.animation) {
|
|
354
354
|
var t = [].slice.call(this.el.children);
|
|
355
355
|
t.forEach(function(i) {
|
|
356
|
-
if (!(
|
|
356
|
+
if (!(p(i, "display") === "none" || i === g.ghost)) {
|
|
357
357
|
n.push({
|
|
358
358
|
target: i,
|
|
359
359
|
rect: I(i)
|
|
@@ -372,7 +372,7 @@ function Xn() {
|
|
|
372
372
|
n.push(t);
|
|
373
373
|
},
|
|
374
374
|
removeAnimationState: function(t) {
|
|
375
|
-
n.splice(
|
|
375
|
+
n.splice(Vn(n, {
|
|
376
376
|
target: t
|
|
377
377
|
}), 1);
|
|
378
378
|
},
|
|
@@ -384,9 +384,9 @@ function Xn() {
|
|
|
384
384
|
}
|
|
385
385
|
var r = !1, a = 0;
|
|
386
386
|
n.forEach(function(l) {
|
|
387
|
-
var s = 0, u = l.target,
|
|
388
|
-
|
|
389
|
-
(m.top -
|
|
387
|
+
var s = 0, u = l.target, f = u.fromRect, d = I(u), b = u.prevFromRect, y = u.prevToRect, m = l.rect, h = ge(u, !0);
|
|
388
|
+
h && (d.top -= h.f, d.left -= h.e), u.toRect = d, u.thisAnimationDuration && Ze(b, d) && !Ze(f, d) && // Make sure animatingRect is on line between toRect & fromRect
|
|
389
|
+
(m.top - d.top) / (m.left - d.left) === (f.top - d.top) / (f.left - d.left) && (s = Hn(m, b, y, i.options)), Ze(d, f) || (u.prevFromRect = f, u.prevToRect = d, s || (s = i.options.animation), i.animate(u, m, d, s)), s && (r = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
390
390
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
391
391
|
}, s), u.thisAnimationDuration = s);
|
|
392
392
|
}), clearTimeout(e), r ? e = setTimeout(function() {
|
|
@@ -395,19 +395,19 @@ function Xn() {
|
|
|
395
395
|
},
|
|
396
396
|
animate: function(t, i, r, a) {
|
|
397
397
|
if (a) {
|
|
398
|
-
|
|
399
|
-
var l = ge(this.el), s = l && l.a, u = l && l.d,
|
|
400
|
-
t.animatingX = !!
|
|
401
|
-
|
|
398
|
+
p(t, "transition", ""), p(t, "transform", "");
|
|
399
|
+
var l = ge(this.el), s = l && l.a, u = l && l.d, f = (i.left - r.left) / (s || 1), d = (i.top - r.top) / (u || 1);
|
|
400
|
+
t.animatingX = !!f, t.animatingY = !!d, p(t, "transform", "translate3d(" + f + "px," + d + "px,0)"), this.forRepaintDummy = Ln(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
|
+
p(t, "transition", ""), p(t, "transform", ""), t.animated = !1, t.animatingX = !1, t.animatingY = !1;
|
|
402
402
|
}, a);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
};
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Ln(n) {
|
|
408
408
|
return n.offsetWidth;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function Hn(n, e, o, t) {
|
|
411
411
|
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
412
|
}
|
|
413
413
|
var de = [], Qe = {
|
|
@@ -462,41 +462,41 @@ var de = [], Qe = {
|
|
|
462
462
|
}), i;
|
|
463
463
|
}
|
|
464
464
|
};
|
|
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,
|
|
465
|
+
function Wn(n) {
|
|
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, m = n.extraEventProperties;
|
|
467
467
|
if (e = e || o && o[V], !!e) {
|
|
468
|
-
var
|
|
469
|
-
window.CustomEvent && !K && !Pe ?
|
|
468
|
+
var h, _ = e.options, O = "on" + t.charAt(0).toUpperCase() + t.substr(1);
|
|
469
|
+
window.CustomEvent && !K && !Pe ? h = new CustomEvent(t, {
|
|
470
470
|
bubbles: !0,
|
|
471
471
|
cancelable: !0
|
|
472
|
-
}) : (
|
|
472
|
+
}) : (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
473
|
var x = j(j({}, m), Ae.getEventProperties(t, e));
|
|
474
474
|
for (var N in x)
|
|
475
|
-
|
|
476
|
-
o && o.dispatchEvent(
|
|
475
|
+
h[N] = x[N];
|
|
476
|
+
o && o.dispatchEvent(h), _[O] && _[O].call(e, h);
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
var
|
|
480
|
-
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = t.evt, r =
|
|
481
|
-
Ae.pluginEvent.bind(
|
|
479
|
+
var $n = ["evt"], F = function(e, o) {
|
|
480
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = t.evt, r = Fn(t, $n);
|
|
481
|
+
Ae.pluginEvent.bind(g)(e, o, j({
|
|
482
482
|
dragEl: c,
|
|
483
483
|
parentEl: T,
|
|
484
|
-
ghostEl:
|
|
485
|
-
rootEl:
|
|
484
|
+
ghostEl: v,
|
|
485
|
+
rootEl: D,
|
|
486
486
|
nextEl: se,
|
|
487
487
|
lastDownEl: Be,
|
|
488
488
|
cloneEl: S,
|
|
489
489
|
cloneHidden: te,
|
|
490
490
|
dragStarted: _e,
|
|
491
491
|
putSortable: P,
|
|
492
|
-
activeSortable:
|
|
492
|
+
activeSortable: g.active,
|
|
493
493
|
originalEvent: i,
|
|
494
494
|
oldIndex: pe,
|
|
495
495
|
oldDraggableIndex: Ie,
|
|
496
496
|
newIndex: Y,
|
|
497
497
|
newDraggableIndex: ee,
|
|
498
|
-
hideGhostForTarget:
|
|
499
|
-
unhideGhostForTarget:
|
|
498
|
+
hideGhostForTarget: jt,
|
|
499
|
+
unhideGhostForTarget: zt,
|
|
500
500
|
cloneNowHidden: function() {
|
|
501
501
|
te = !0;
|
|
502
502
|
},
|
|
@@ -513,39 +513,39 @@ var Wn = ["evt"], F = function(e, o) {
|
|
|
513
513
|
}, r));
|
|
514
514
|
};
|
|
515
515
|
function M(n) {
|
|
516
|
-
|
|
516
|
+
Wn(j({
|
|
517
517
|
putSortable: P,
|
|
518
518
|
cloneEl: S,
|
|
519
519
|
targetEl: c,
|
|
520
|
-
rootEl:
|
|
520
|
+
rootEl: D,
|
|
521
521
|
oldIndex: pe,
|
|
522
522
|
oldDraggableIndex: Ie,
|
|
523
523
|
newIndex: Y,
|
|
524
524
|
newDraggableIndex: ee
|
|
525
525
|
}, n));
|
|
526
526
|
}
|
|
527
|
-
var c, T,
|
|
527
|
+
var c, T, v, D, se, Be, S, te, pe, Y, Ie, ee, ke, P, he = !1, We = !1, $e = [], ae, H, Je, et, Pt, At, _e, fe, Oe, xe = !1, Me = !1, Xe, A, tt = [], ut = !1, Ge = [], ze = typeof document < "u", Fe = ht, Nt = Pe || K ? "cssFloat" : "float", Gn = ze && !Ft && !ht && "draggable" in document.createElement("div"), Wt = (function() {
|
|
528
528
|
if (ze) {
|
|
529
529
|
if (K)
|
|
530
530
|
return !1;
|
|
531
531
|
var n = document.createElement("x");
|
|
532
532
|
return n.style.cssText = "pointer-events:auto", n.style.pointerEvents === "auto";
|
|
533
533
|
}
|
|
534
|
-
})(),
|
|
535
|
-
var t =
|
|
534
|
+
})(), $t = function(e, o) {
|
|
535
|
+
var t = p(e), i = parseInt(t.width) - parseInt(t.paddingLeft) - parseInt(t.paddingRight) - parseInt(t.borderLeftWidth) - parseInt(t.borderRightWidth), r = me(e, 0, o), a = me(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
536
|
if (t.display === "flex")
|
|
537
537
|
return t.flexDirection === "column" || t.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
538
538
|
if (t.display === "grid")
|
|
539
539
|
return t.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
540
540
|
if (r && l.float && l.float !== "none") {
|
|
541
|
-
var
|
|
542
|
-
return a && (s.clear === "both" || s.clear ===
|
|
541
|
+
var d = l.float === "left" ? "left" : "right";
|
|
542
|
+
return a && (s.clear === "both" || s.clear === d) ? "vertical" : "horizontal";
|
|
543
543
|
}
|
|
544
|
-
return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && t[Nt] === "none" || a && t[Nt] === "none" && u +
|
|
545
|
-
},
|
|
544
|
+
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
|
+
}, jn = function(e, o, t) {
|
|
546
546
|
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
547
|
return i === l || r === s || i + a / 2 === l + u / 2;
|
|
548
|
-
},
|
|
548
|
+
}, zn = function(e, o) {
|
|
549
549
|
var t;
|
|
550
550
|
return $e.some(function(i) {
|
|
551
551
|
var r = i[V].options.emptyInsertThreshold;
|
|
@@ -555,18 +555,18 @@ var c, T, g, _, se, Be, S, te, pe, Y, Ie, ee, ke, P, he = !1, We = !1, $e = [],
|
|
|
555
555
|
return t = i;
|
|
556
556
|
}
|
|
557
557
|
}), t;
|
|
558
|
-
},
|
|
558
|
+
}, Gt = function(e) {
|
|
559
559
|
function o(r, a) {
|
|
560
|
-
return function(l, s, u,
|
|
561
|
-
var
|
|
562
|
-
if (r == null && (a ||
|
|
560
|
+
return function(l, s, u, f) {
|
|
561
|
+
var d = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
|
|
562
|
+
if (r == null && (a || d))
|
|
563
563
|
return !0;
|
|
564
564
|
if (r == null || r === !1)
|
|
565
565
|
return !1;
|
|
566
566
|
if (a && r === "clone")
|
|
567
567
|
return r;
|
|
568
568
|
if (typeof r == "function")
|
|
569
|
-
return o(r(l, s, u,
|
|
569
|
+
return o(r(l, s, u, f), a)(l, s, u, f);
|
|
570
570
|
var b = (a ? l : s).options.group.name;
|
|
571
571
|
return r === !0 || typeof r == "string" && r === b || r.join && r.indexOf(b) > -1;
|
|
572
572
|
};
|
|
@@ -575,19 +575,19 @@ var c, T, g, _, se, Be, S, te, pe, Y, Ie, ee, ke, P, he = !1, We = !1, $e = [],
|
|
|
575
575
|
(!i || Ve(i) != "object") && (i = {
|
|
576
576
|
name: i
|
|
577
577
|
}), t.name = i.name, t.checkPull = o(i.pull, !0), t.checkPut = o(i.put), t.revertClone = i.revertClone, e.group = t;
|
|
578
|
-
}, Gt = function() {
|
|
579
|
-
!Ht && g && h(g, "display", "none");
|
|
580
578
|
}, jt = function() {
|
|
581
|
-
!
|
|
579
|
+
!Wt && v && p(v, "display", "none");
|
|
580
|
+
}, zt = function() {
|
|
581
|
+
!Wt && v && p(v, "display", "");
|
|
582
582
|
};
|
|
583
|
-
ze && !
|
|
583
|
+
ze && !Ft && document.addEventListener("click", function(n) {
|
|
584
584
|
if (We)
|
|
585
585
|
return n.preventDefault(), n.stopPropagation && n.stopPropagation(), n.stopImmediatePropagation && n.stopImmediatePropagation(), We = !1, !1;
|
|
586
586
|
}, !0);
|
|
587
587
|
var le = function(e) {
|
|
588
588
|
if (c) {
|
|
589
589
|
e = e.touches ? e.touches[0] : e;
|
|
590
|
-
var o =
|
|
590
|
+
var o = zn(e.clientX, e.clientY);
|
|
591
591
|
if (o) {
|
|
592
592
|
var t = {};
|
|
593
593
|
for (var i in e)
|
|
@@ -595,10 +595,10 @@ var le = function(e) {
|
|
|
595
595
|
t.target = t.rootEl = o, t.preventDefault = void 0, t.stopPropagation = void 0, o[V]._onDragOver(t);
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
|
-
},
|
|
598
|
+
}, Un = function(e) {
|
|
599
599
|
c && c.parentNode[V]._isOutsideThisEl(e.target);
|
|
600
600
|
};
|
|
601
|
-
function
|
|
601
|
+
function g(n, e) {
|
|
602
602
|
if (!(n && n.nodeType && n.nodeType === 1))
|
|
603
603
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));
|
|
604
604
|
this.el = n, this.options = e = q({}, e), n[V] = this;
|
|
@@ -617,7 +617,7 @@ function p(n, e) {
|
|
|
617
617
|
// will be set to same as swapThreshold if default
|
|
618
618
|
removeCloneOnHide: !0,
|
|
619
619
|
direction: function() {
|
|
620
|
-
return
|
|
620
|
+
return $t(n, this.options);
|
|
621
621
|
},
|
|
622
622
|
ghostClass: "sortable-ghost",
|
|
623
623
|
chosenClass: "sortable-chosen",
|
|
@@ -645,20 +645,20 @@ function p(n, e) {
|
|
|
645
645
|
y: 0
|
|
646
646
|
},
|
|
647
647
|
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
648
|
-
supportPointer:
|
|
648
|
+
supportPointer: g.supportPointer !== !1 && "PointerEvent" in window && (!Te || ht),
|
|
649
649
|
emptyInsertThreshold: 5
|
|
650
650
|
};
|
|
651
651
|
Ae.initializePlugins(this, n, o);
|
|
652
652
|
for (var t in o)
|
|
653
653
|
!(t in e) && (e[t] = o[t]);
|
|
654
|
-
|
|
654
|
+
Gt(e);
|
|
655
655
|
for (var i in this)
|
|
656
656
|
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
657
|
-
this.nativeDraggable = e.forceFallback ? !1 :
|
|
657
|
+
this.nativeDraggable = e.forceFallback ? !1 : Gn, 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)), $e.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), q(this, Yn());
|
|
658
658
|
}
|
|
659
|
-
|
|
659
|
+
g.prototype = /** @lends Sortable.prototype */
|
|
660
660
|
{
|
|
661
|
-
constructor:
|
|
661
|
+
constructor: g,
|
|
662
662
|
_isOutsideThisEl: function(e) {
|
|
663
663
|
!this.el.contains(e) && e !== this.el && (fe = null);
|
|
664
664
|
},
|
|
@@ -667,10 +667,10 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
667
667
|
},
|
|
668
668
|
_onTapStart: function(e) {
|
|
669
669
|
if (e.cancelable) {
|
|
670
|
-
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,
|
|
671
|
-
if (
|
|
672
|
-
if (pe = L(s), Ie = L(s, i.draggable), typeof
|
|
673
|
-
if (
|
|
670
|
+
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 (no(t), !c && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Te && s && s.tagName.toUpperCase() === "SELECT") && (s = W(s, i.draggable, t, !1), !(s && s.animated) && Be !== s)) {
|
|
672
|
+
if (pe = L(s), Ie = L(s, i.draggable), typeof f == "function") {
|
|
673
|
+
if (f.call(this, e, s, this)) {
|
|
674
674
|
M({
|
|
675
675
|
sortable: o,
|
|
676
676
|
rootEl: u,
|
|
@@ -683,11 +683,11 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
683
683
|
}), r && e.preventDefault();
|
|
684
684
|
return;
|
|
685
685
|
}
|
|
686
|
-
} else if (
|
|
687
|
-
if (
|
|
686
|
+
} else if (f && (f = f.split(",").some(function(d) {
|
|
687
|
+
if (d = W(u, d.trim(), t, !1), d)
|
|
688
688
|
return M({
|
|
689
689
|
sortable: o,
|
|
690
|
-
rootEl:
|
|
690
|
+
rootEl: d,
|
|
691
691
|
name: "filter",
|
|
692
692
|
targetEl: s,
|
|
693
693
|
fromEl: t,
|
|
@@ -695,7 +695,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
695
695
|
}), F("filter", o, {
|
|
696
696
|
evt: e
|
|
697
697
|
}), !0;
|
|
698
|
-
}),
|
|
698
|
+
}), f)) {
|
|
699
699
|
r && e.preventDefault();
|
|
700
700
|
return;
|
|
701
701
|
}
|
|
@@ -707,14 +707,14 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
707
707
|
var i = this, r = i.el, a = i.options, l = r.ownerDocument, s;
|
|
708
708
|
if (t && !c && t.parentNode === r) {
|
|
709
709
|
var u = I(t);
|
|
710
|
-
if (
|
|
710
|
+
if (D = r, c = t, T = c.parentNode, se = c.nextSibling, Be = t, ke = a.group, g.dragged = c, ae = {
|
|
711
711
|
target: c,
|
|
712
712
|
clientX: (o || e).clientX,
|
|
713
713
|
clientY: (o || e).clientY
|
|
714
714
|
}, 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
715
|
if (F("delayEnded", i, {
|
|
716
716
|
evt: e
|
|
717
|
-
}),
|
|
717
|
+
}), g.eventCanceled) {
|
|
718
718
|
i._onDrop();
|
|
719
719
|
return;
|
|
720
720
|
}
|
|
@@ -723,16 +723,16 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
723
723
|
name: "choose",
|
|
724
724
|
originalEvent: e
|
|
725
725
|
}), X(c, a.chosenClass, !0);
|
|
726
|
-
}, a.ignore.split(",").forEach(function(
|
|
727
|
-
|
|
728
|
-
}),
|
|
726
|
+
}, a.ignore.split(",").forEach(function(f) {
|
|
727
|
+
Bt(c, f.trim(), nt);
|
|
728
|
+
}), 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
729
|
evt: e
|
|
730
730
|
}), a.delay && (!a.delayOnTouchOnly || o) && (!this.nativeDraggable || !(Pe || K))) {
|
|
731
|
-
if (
|
|
731
|
+
if (g.eventCanceled) {
|
|
732
732
|
this._onDrop();
|
|
733
733
|
return;
|
|
734
734
|
}
|
|
735
|
-
a.supportPointer ? (
|
|
735
|
+
a.supportPointer ? (E(l, "pointerup", i._disableDelayedDrag), E(l, "pointercancel", i._disableDelayedDrag)) : (E(l, "mouseup", i._disableDelayedDrag), E(l, "touchend", i._disableDelayedDrag), E(l, "touchcancel", i._disableDelayedDrag)), E(l, "mousemove", i._delayedDragTouchMoveHandler), E(l, "touchmove", i._delayedDragTouchMoveHandler), a.supportPointer && E(l, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(s, a.delay);
|
|
736
736
|
} else
|
|
737
737
|
s();
|
|
738
738
|
}
|
|
@@ -746,10 +746,10 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
746
746
|
},
|
|
747
747
|
_disableDelayedDragEvents: function() {
|
|
748
748
|
var e = this.el.ownerDocument;
|
|
749
|
-
|
|
749
|
+
w(e, "mouseup", this._disableDelayedDrag), w(e, "touchend", this._disableDelayedDrag), w(e, "touchcancel", this._disableDelayedDrag), w(e, "pointerup", this._disableDelayedDrag), w(e, "pointercancel", this._disableDelayedDrag), w(e, "mousemove", this._delayedDragTouchMoveHandler), w(e, "touchmove", this._delayedDragTouchMoveHandler), w(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
750
750
|
},
|
|
751
751
|
_triggerDragStart: function(e, o) {
|
|
752
|
-
o = o || e.pointerType == "touch" && e, !this.nativeDraggable || o ? this.options.supportPointer ?
|
|
752
|
+
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
753
|
try {
|
|
754
754
|
document.selection ? Ye(function() {
|
|
755
755
|
document.selection.empty();
|
|
@@ -758,12 +758,12 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
758
758
|
}
|
|
759
759
|
},
|
|
760
760
|
_dragStarted: function(e, o) {
|
|
761
|
-
if (he = !1,
|
|
761
|
+
if (he = !1, D && c) {
|
|
762
762
|
F("dragStarted", this, {
|
|
763
763
|
evt: o
|
|
764
|
-
}), this.nativeDraggable &&
|
|
764
|
+
}), this.nativeDraggable && E(document, "dragover", Un);
|
|
765
765
|
var t = this.options;
|
|
766
|
-
!e && X(c, t.dragClass, !1), X(c, t.ghostClass, !0),
|
|
766
|
+
!e && X(c, t.dragClass, !1), X(c, t.ghostClass, !0), g.active = this, e && this._appendGhost(), M({
|
|
767
767
|
sortable: this,
|
|
768
768
|
name: "start",
|
|
769
769
|
originalEvent: o
|
|
@@ -773,7 +773,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
773
773
|
},
|
|
774
774
|
_emulateDragOver: function() {
|
|
775
775
|
if (H) {
|
|
776
|
-
this._lastX = H.clientX, this._lastY = H.clientY,
|
|
776
|
+
this._lastX = H.clientX, this._lastY = H.clientY, jt();
|
|
777
777
|
for (var e = document.elementFromPoint(H.clientX, H.clientY), o = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(H.clientX, H.clientY), e !== o); )
|
|
778
778
|
o = e;
|
|
779
779
|
if (c.parentNode[V]._isOutsideThisEl(e), o)
|
|
@@ -789,90 +789,90 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
789
789
|
break;
|
|
790
790
|
}
|
|
791
791
|
e = o;
|
|
792
|
-
} while (o =
|
|
793
|
-
|
|
792
|
+
} while (o = Vt(o));
|
|
793
|
+
zt();
|
|
794
794
|
}
|
|
795
795
|
},
|
|
796
796
|
_onTouchMove: function(e) {
|
|
797
797
|
if (ae) {
|
|
798
|
-
var o = this.options, t = o.fallbackTolerance, i = o.fallbackOffset, r = e.touches ? e.touches[0] : e, a =
|
|
799
|
-
if (!
|
|
798
|
+
var o = this.options, t = o.fallbackTolerance, i = o.fallbackOffset, r = e.touches ? e.touches[0] : e, a = v && ge(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] - tt[0] : 0) / (l || 1), d = (r.clientY - ae.clientY + i.y) / (s || 1) + (u ? u[1] - tt[1] : 0) / (s || 1);
|
|
799
|
+
if (!g.active && !he) {
|
|
800
800
|
if (t && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < t)
|
|
801
801
|
return;
|
|
802
802
|
this._onDragStart(e, !0);
|
|
803
803
|
}
|
|
804
|
-
if (
|
|
805
|
-
a ? (a.e +=
|
|
804
|
+
if (v) {
|
|
805
|
+
a ? (a.e += f - (Je || 0), a.f += d - (et || 0)) : a = {
|
|
806
806
|
a: 1,
|
|
807
807
|
b: 0,
|
|
808
808
|
c: 0,
|
|
809
809
|
d: 1,
|
|
810
|
-
e:
|
|
811
|
-
f
|
|
810
|
+
e: f,
|
|
811
|
+
f: d
|
|
812
812
|
};
|
|
813
813
|
var b = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
814
|
-
|
|
814
|
+
p(v, "webkitTransform", b), p(v, "mozTransform", b), p(v, "msTransform", b), p(v, "transform", b), Je = f, et = d, H = r;
|
|
815
815
|
}
|
|
816
816
|
e.cancelable && e.preventDefault();
|
|
817
817
|
}
|
|
818
818
|
},
|
|
819
819
|
_appendGhost: function() {
|
|
820
|
-
if (!
|
|
821
|
-
var e = this.options.fallbackOnBody ? document.body :
|
|
820
|
+
if (!v) {
|
|
821
|
+
var e = this.options.fallbackOnBody ? document.body : D, o = I(c, !0, Fe, !0, e), t = this.options;
|
|
822
822
|
if (Fe) {
|
|
823
|
-
for (A = e;
|
|
823
|
+
for (A = e; p(A, "position") === "static" && p(A, "transform") === "none" && A !== document; )
|
|
824
824
|
A = A.parentNode;
|
|
825
825
|
A !== document.body && A !== document.documentElement ? (A === document && (A = G()), o.top += A.scrollTop, o.left += A.scrollLeft) : A = G(), tt = xt(A);
|
|
826
826
|
}
|
|
827
|
-
|
|
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"), g.ghost = v, e.appendChild(v), p(v, "transform-origin", Pt / parseInt(v.style.width) * 100 + "% " + At / parseInt(v.style.height) * 100 + "%");
|
|
828
828
|
}
|
|
829
829
|
},
|
|
830
830
|
_onDragStart: function(e, o) {
|
|
831
831
|
var t = this, i = e.dataTransfer, r = t.options;
|
|
832
832
|
if (F("dragStart", this, {
|
|
833
833
|
evt: e
|
|
834
|
-
}),
|
|
834
|
+
}), g.eventCanceled) {
|
|
835
835
|
this._onDrop();
|
|
836
836
|
return;
|
|
837
837
|
}
|
|
838
|
-
F("setupClone", this),
|
|
839
|
-
F("clone", t), !
|
|
838
|
+
F("setupClone", this), g.eventCanceled || (S = Lt(c), S.removeAttribute("id"), S.draggable = !1, S.style["will-change"] = "", this._hideClone(), X(S, this.options.chosenClass, !1), g.clone = S), t.cloneId = Ye(function() {
|
|
839
|
+
F("clone", t), !g.eventCanceled && (t.options.removeCloneOnHide || D.insertBefore(S, c), t._hideClone(), M({
|
|
840
840
|
sortable: t,
|
|
841
841
|
name: "clone"
|
|
842
842
|
}));
|
|
843
|
-
}), !o && X(c, r.dragClass, !0), o ? (We = !0, t._loopId = setInterval(t._emulateDragOver, 50)) : (
|
|
843
|
+
}), !o && X(c, r.dragClass, !0), o ? (We = !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 = Ye(t._dragStarted.bind(t, o, e)), E(document, "selectstart", t), _e = !0, window.getSelection().removeAllRanges(), Te && p(document.body, "user-select", "none");
|
|
844
844
|
},
|
|
845
845
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
846
846
|
_onDragOver: function(e) {
|
|
847
|
-
var o = this.el, t = e.target, i, r, a, l = this.options, s = l.group, u =
|
|
847
|
+
var o = this.el, t = e.target, i, r, a, l = this.options, s = l.group, u = g.active, f = ke === s, d = l.sort, b = P || u, y, m = this, h = !1;
|
|
848
848
|
if (ut) return;
|
|
849
|
-
function
|
|
849
|
+
function _(Ee, qt) {
|
|
850
850
|
F(Ee, m, j({
|
|
851
851
|
evt: e,
|
|
852
|
-
isOwner:
|
|
853
|
-
axis:
|
|
852
|
+
isOwner: f,
|
|
853
|
+
axis: y ? "vertical" : "horizontal",
|
|
854
854
|
revert: a,
|
|
855
855
|
dragRect: i,
|
|
856
856
|
targetRect: r,
|
|
857
|
-
canSort:
|
|
857
|
+
canSort: d,
|
|
858
858
|
fromSortable: b,
|
|
859
859
|
target: t,
|
|
860
860
|
completed: x,
|
|
861
|
-
onMove: function(vt,
|
|
862
|
-
return Re(
|
|
861
|
+
onMove: function(vt, Kt) {
|
|
862
|
+
return Re(D, o, c, i, vt, I(vt), e, Kt);
|
|
863
863
|
},
|
|
864
864
|
changed: N
|
|
865
|
-
},
|
|
865
|
+
}, qt));
|
|
866
866
|
}
|
|
867
867
|
function O() {
|
|
868
|
-
|
|
868
|
+
_("dragOverAnimationCapture"), m.captureAnimationState(), m !== b && b.captureAnimationState();
|
|
869
869
|
}
|
|
870
870
|
function x(Ee) {
|
|
871
|
-
return
|
|
871
|
+
return _("dragOverCompleted", {
|
|
872
872
|
insertion: Ee
|
|
873
|
-
}), Ee && (
|
|
874
|
-
|
|
875
|
-
}), m !== 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(),
|
|
873
|
+
}), Ee && (f ? u._hideClone() : u._showClone(m), m !== b && (X(c, P ? P.options.ghostClass : u.options.ghostClass, !1), X(c, l.ghostClass, !0)), P !== m && m !== g.active ? P = m : m === g.active && P && (P = null), b === m && (m._ignoreWhileAnimating = t), m.animateAll(function() {
|
|
874
|
+
_("dragOverAnimationComplete"), m._ignoreWhileAnimating = null;
|
|
875
|
+
}), m !== 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
876
|
}
|
|
877
877
|
function N() {
|
|
878
878
|
Y = L(c), ee = L(c, l.draggable), M({
|
|
@@ -884,44 +884,44 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
884
884
|
originalEvent: e
|
|
885
885
|
});
|
|
886
886
|
}
|
|
887
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), t = W(t, l.draggable, o, !0),
|
|
887
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), t = W(t, l.draggable, o, !0), _("dragOver"), g.eventCanceled) return h;
|
|
888
888
|
if (c.contains(e.target) || t.animated && t.animatingX && t.animatingY || m._ignoreWhileAnimating === t)
|
|
889
889
|
return x(!1);
|
|
890
|
-
if (We = !1, u && !l.disabled && (
|
|
891
|
-
if (
|
|
890
|
+
if (We = !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))) {
|
|
891
|
+
if (y = this._getDirection(e, t) === "vertical", i = I(c), _("dragOverValid"), g.eventCanceled) return h;
|
|
892
892
|
if (a)
|
|
893
|
-
return T =
|
|
893
|
+
return T = D, O(), this._hideClone(), _("revert"), g.eventCanceled || (se ? D.insertBefore(c, se) : D.appendChild(c)), x(!0);
|
|
894
894
|
var k = pt(o, l.draggable);
|
|
895
|
-
if (!k ||
|
|
895
|
+
if (!k || Qn(e, y, this) && !k.animated) {
|
|
896
896
|
if (k === c)
|
|
897
897
|
return x(!1);
|
|
898
|
-
if (k && o === e.target && (t = k), t && (r = I(t)), Re(
|
|
898
|
+
if (k && o === e.target && (t = k), t && (r = I(t)), Re(D, o, c, i, t, r, e, !!t) !== !1)
|
|
899
899
|
return O(), k && k.nextSibling ? o.insertBefore(c, k.nextSibling) : o.appendChild(c), T = o, N(), x(!0);
|
|
900
|
-
} else if (k &&
|
|
900
|
+
} else if (k && Zn(e, y, this)) {
|
|
901
901
|
var oe = me(o, 0, l, !0);
|
|
902
902
|
if (oe === c)
|
|
903
903
|
return x(!1);
|
|
904
|
-
if (t = oe, r = I(t), Re(
|
|
904
|
+
if (t = oe, r = I(t), Re(D, o, c, i, t, r, e, !1) !== !1)
|
|
905
905
|
return O(), o.insertBefore(c, oe), T = o, N(), x(!0);
|
|
906
906
|
} else if (t.parentNode === o) {
|
|
907
907
|
r = I(t);
|
|
908
|
-
var $ = 0, ie, ve = c.parentNode !== o, B = !
|
|
909
|
-
fe !== t && (ie = r[be], xe = !1, Me = !B && l.invertSwap || ve), $ =
|
|
908
|
+
var $ = 0, ie, ve = c.parentNode !== o, B = !jn(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;
|
|
909
|
+
fe !== t && (ie = r[be], xe = !1, Me = !B && l.invertSwap || ve), $ = Jn(e, t, r, y, B ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Me, fe === t);
|
|
910
910
|
var z;
|
|
911
911
|
if ($ !== 0) {
|
|
912
912
|
var re = L(c);
|
|
913
913
|
do
|
|
914
914
|
re -= $, z = T.children[re];
|
|
915
|
-
while (z && (
|
|
915
|
+
while (z && (p(z, "display") === "none" || z === v));
|
|
916
916
|
}
|
|
917
917
|
if ($ === 0 || z === t)
|
|
918
918
|
return x(!1);
|
|
919
919
|
fe = t, Oe = $;
|
|
920
920
|
var we = t.nextElementSibling, Q = !1;
|
|
921
921
|
Q = $ === 1;
|
|
922
|
-
var Ne = Re(
|
|
922
|
+
var Ne = Re(D, o, c, i, t, r, e, Q);
|
|
923
923
|
if (Ne !== !1)
|
|
924
|
-
return (Ne === 1 || Ne === -1) && (Q = Ne === 1), ut = !0, setTimeout(
|
|
924
|
+
return (Ne === 1 || Ne === -1) && (Q = Ne === 1), ut = !0, setTimeout(Kn, 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 && (Xe = Math.abs(ie - I(t)[be])), N(), x(!0);
|
|
925
925
|
}
|
|
926
926
|
if (o.contains(c))
|
|
927
927
|
return x(!1);
|
|
@@ -930,32 +930,32 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
930
930
|
},
|
|
931
931
|
_ignoreWhileAnimating: null,
|
|
932
932
|
_offMoveEvents: function() {
|
|
933
|
-
|
|
933
|
+
w(document, "mousemove", this._onTouchMove), w(document, "touchmove", this._onTouchMove), w(document, "pointermove", this._onTouchMove), w(document, "dragover", le), w(document, "mousemove", le), w(document, "touchmove", le);
|
|
934
934
|
},
|
|
935
935
|
_offUpEvents: function() {
|
|
936
936
|
var e = this.el.ownerDocument;
|
|
937
|
-
|
|
937
|
+
w(e, "mouseup", this._onDrop), w(e, "touchend", this._onDrop), w(e, "pointerup", this._onDrop), w(e, "pointercancel", this._onDrop), w(e, "touchcancel", this._onDrop), w(document, "selectstart", this);
|
|
938
938
|
},
|
|
939
939
|
_onDrop: function(e) {
|
|
940
940
|
var o = this.el, t = this.options;
|
|
941
941
|
if (Y = L(c), ee = L(c, t.draggable), F("drop", this, {
|
|
942
942
|
evt: e
|
|
943
|
-
}), T = c && c.parentNode, Y = L(c), ee = L(c, t.draggable),
|
|
943
|
+
}), T = c && c.parentNode, Y = L(c), ee = L(c, t.draggable), g.eventCanceled) {
|
|
944
944
|
this._nulling();
|
|
945
945
|
return;
|
|
946
946
|
}
|
|
947
|
-
he = !1, Me = !1, xe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ct(this.cloneId), ct(this._dragStartId), this.nativeDraggable && (
|
|
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), nt(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
948
|
sortable: this,
|
|
949
949
|
name: "unchoose",
|
|
950
950
|
toEl: T,
|
|
951
951
|
newIndex: null,
|
|
952
952
|
newDraggableIndex: null,
|
|
953
953
|
originalEvent: e
|
|
954
|
-
}),
|
|
954
|
+
}), D !== T ? (Y >= 0 && (M({
|
|
955
955
|
rootEl: T,
|
|
956
956
|
name: "add",
|
|
957
957
|
toEl: T,
|
|
958
|
-
fromEl:
|
|
958
|
+
fromEl: D,
|
|
959
959
|
originalEvent: e
|
|
960
960
|
}), M({
|
|
961
961
|
sortable: this,
|
|
@@ -966,7 +966,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
966
966
|
rootEl: T,
|
|
967
967
|
name: "sort",
|
|
968
968
|
toEl: T,
|
|
969
|
-
fromEl:
|
|
969
|
+
fromEl: D,
|
|
970
970
|
originalEvent: e
|
|
971
971
|
}), M({
|
|
972
972
|
sortable: this,
|
|
@@ -983,7 +983,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
983
983
|
name: "sort",
|
|
984
984
|
toEl: T,
|
|
985
985
|
originalEvent: e
|
|
986
|
-
})),
|
|
986
|
+
})), g.active && ((Y == null || Y === -1) && (Y = pe, ee = Ie), M({
|
|
987
987
|
sortable: this,
|
|
988
988
|
name: "end",
|
|
989
989
|
toEl: T,
|
|
@@ -991,7 +991,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
991
991
|
}), this.save()))), this._nulling();
|
|
992
992
|
},
|
|
993
993
|
_nulling: function() {
|
|
994
|
-
F("nulling", this),
|
|
994
|
+
F("nulling", this), D = c = T = v = se = S = Be = te = ae = H = _e = Y = ee = pe = Ie = fe = Oe = P = ke = g.dragged = g.ghost = g.clone = g.active = null, Ge.forEach(function(e) {
|
|
995
995
|
e.checked = !0;
|
|
996
996
|
}), Ge.length = Je = et = 0;
|
|
997
997
|
},
|
|
@@ -1003,7 +1003,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
1003
1003
|
break;
|
|
1004
1004
|
case "dragenter":
|
|
1005
1005
|
case "dragover":
|
|
1006
|
-
c && (this._onDragOver(e),
|
|
1006
|
+
c && (this._onDragOver(e), qn(e));
|
|
1007
1007
|
break;
|
|
1008
1008
|
case "selectstart":
|
|
1009
1009
|
e.preventDefault();
|
|
@@ -1016,7 +1016,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
1016
1016
|
*/
|
|
1017
1017
|
toArray: function() {
|
|
1018
1018
|
for (var e = [], o, t = this.el.children, i = 0, r = t.length, a = this.options; i < r; i++)
|
|
1019
|
-
o = t[i], W(o, a.draggable, this.el, !1) && e.push(o.getAttribute(a.dataIdAttr) ||
|
|
1019
|
+
o = t[i], W(o, a.draggable, this.el, !1) && e.push(o.getAttribute(a.dataIdAttr) || to(o));
|
|
1020
1020
|
return e;
|
|
1021
1021
|
},
|
|
1022
1022
|
/**
|
|
@@ -1059,7 +1059,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
1059
1059
|
if (o === void 0)
|
|
1060
1060
|
return t[e];
|
|
1061
1061
|
var i = Ae.modifyOption(this, e, o);
|
|
1062
|
-
typeof i < "u" ? t[e] = i : t[e] = o, e === "group" &&
|
|
1062
|
+
typeof i < "u" ? t[e] = i : t[e] = o, e === "group" && Gt(t);
|
|
1063
1063
|
},
|
|
1064
1064
|
/**
|
|
1065
1065
|
* Destroy
|
|
@@ -1067,14 +1067,14 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
1067
1067
|
destroy: function() {
|
|
1068
1068
|
F("destroy", this);
|
|
1069
1069
|
var e = this.el;
|
|
1070
|
-
e[V] = null,
|
|
1070
|
+
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
1071
|
o.removeAttribute("draggable");
|
|
1072
1072
|
}), this._onDrop(), this._disableDelayedDragEvents(), $e.splice($e.indexOf(this.el), 1), this.el = e = null;
|
|
1073
1073
|
},
|
|
1074
1074
|
_hideClone: function() {
|
|
1075
1075
|
if (!te) {
|
|
1076
|
-
if (F("hideClone", this),
|
|
1077
|
-
|
|
1076
|
+
if (F("hideClone", this), g.eventCanceled) return;
|
|
1077
|
+
p(S, "display", "none"), this.options.removeCloneOnHide && S.parentNode && S.parentNode.removeChild(S), te = !0;
|
|
1078
1078
|
}
|
|
1079
1079
|
},
|
|
1080
1080
|
_showClone: function(e) {
|
|
@@ -1083,57 +1083,57 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
1083
1083
|
return;
|
|
1084
1084
|
}
|
|
1085
1085
|
if (te) {
|
|
1086
|
-
if (F("showClone", this),
|
|
1087
|
-
c.parentNode ==
|
|
1086
|
+
if (F("showClone", this), g.eventCanceled) return;
|
|
1087
|
+
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
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
};
|
|
1091
|
-
function
|
|
1091
|
+
function qn(n) {
|
|
1092
1092
|
n.dataTransfer && (n.dataTransfer.dropEffect = "move"), n.cancelable && n.preventDefault();
|
|
1093
1093
|
}
|
|
1094
1094
|
function Re(n, e, o, t, i, r, a, l) {
|
|
1095
|
-
var s, u = n[V],
|
|
1095
|
+
var s, u = n[V], f = u.options.onMove, d;
|
|
1096
1096
|
return window.CustomEvent && !K && !Pe ? s = new CustomEvent("move", {
|
|
1097
1097
|
bubbles: !0,
|
|
1098
1098
|
cancelable: !0
|
|
1099
|
-
}) : (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),
|
|
1099
|
+
}) : (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
1100
|
}
|
|
1101
1101
|
function nt(n) {
|
|
1102
1102
|
n.draggable = !1;
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function Kn() {
|
|
1105
1105
|
ut = !1;
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1108
|
-
var t = I(me(o.el, 0, o.options, !0)), i =
|
|
1107
|
+
function Zn(n, e, o) {
|
|
1108
|
+
var t = I(me(o.el, 0, o.options, !0)), i = Ht(o.el, o.options, v), r = 10;
|
|
1109
1109
|
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
1110
|
}
|
|
1111
|
-
function
|
|
1112
|
-
var t = I(pt(o.el, o.options.draggable)), i =
|
|
1111
|
+
function Qn(n, e, o) {
|
|
1112
|
+
var t = I(pt(o.el, o.options.draggable)), i = Ht(o.el, o.options, v), r = 10;
|
|
1113
1113
|
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
1114
|
}
|
|
1115
|
-
function
|
|
1116
|
-
var s = t ? n.clientY : n.clientX, u = t ? o.height : o.width,
|
|
1115
|
+
function Jn(n, e, o, t, i, r, a, l) {
|
|
1116
|
+
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
1117
|
if (!a) {
|
|
1118
1118
|
if (l && Xe < u * i) {
|
|
1119
|
-
if (!xe && (Oe === 1 ? s >
|
|
1119
|
+
if (!xe && (Oe === 1 ? s > f + u * r / 2 : s < d - u * r / 2) && (xe = !0), xe)
|
|
1120
1120
|
b = !0;
|
|
1121
|
-
else if (Oe === 1 ? s <
|
|
1121
|
+
else if (Oe === 1 ? s < f + Xe : s > d - Xe)
|
|
1122
1122
|
return -Oe;
|
|
1123
|
-
} else if (s >
|
|
1124
|
-
return
|
|
1123
|
+
} else if (s > f + u * (1 - i) / 2 && s < d - u * (1 - i) / 2)
|
|
1124
|
+
return eo(e);
|
|
1125
1125
|
}
|
|
1126
|
-
return b = b || a, b && (s <
|
|
1126
|
+
return b = b || a, b && (s < f + u * r / 2 || s > d - u * r / 2) ? s > f + u / 2 ? 1 : -1 : 0;
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1128
|
+
function eo(n) {
|
|
1129
1129
|
return L(c) < L(n) ? 1 : -1;
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function to(n) {
|
|
1132
1132
|
for (var e = n.tagName + n.className + n.src + n.href + n.textContent, o = e.length, t = 0; o--; )
|
|
1133
1133
|
t += e.charCodeAt(o);
|
|
1134
1134
|
return t.toString(36);
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function no(n) {
|
|
1137
1137
|
Ge.length = 0;
|
|
1138
1138
|
for (var e = n.getElementsByTagName("input"), o = e.length; o--; ) {
|
|
1139
1139
|
var t = e[o];
|
|
@@ -1146,47 +1146,47 @@ function Ye(n) {
|
|
|
1146
1146
|
function ct(n) {
|
|
1147
1147
|
return clearTimeout(n);
|
|
1148
1148
|
}
|
|
1149
|
-
ze &&
|
|
1150
|
-
(
|
|
1149
|
+
ze && E(document, "touchmove", function(n) {
|
|
1150
|
+
(g.active || he) && n.cancelable && n.preventDefault();
|
|
1151
1151
|
});
|
|
1152
|
-
|
|
1153
|
-
on:
|
|
1154
|
-
off:
|
|
1155
|
-
css:
|
|
1156
|
-
find:
|
|
1152
|
+
g.utils = {
|
|
1153
|
+
on: E,
|
|
1154
|
+
off: w,
|
|
1155
|
+
css: p,
|
|
1156
|
+
find: Bt,
|
|
1157
1157
|
is: function(e, o) {
|
|
1158
1158
|
return !!W(e, o, e, !1);
|
|
1159
1159
|
},
|
|
1160
|
-
extend:
|
|
1161
|
-
throttle:
|
|
1160
|
+
extend: Bn,
|
|
1161
|
+
throttle: Xt,
|
|
1162
1162
|
closest: W,
|
|
1163
1163
|
toggleClass: X,
|
|
1164
|
-
clone:
|
|
1164
|
+
clone: Lt,
|
|
1165
1165
|
index: L,
|
|
1166
1166
|
nextTick: Ye,
|
|
1167
1167
|
cancelNextTick: ct,
|
|
1168
|
-
detectDirection:
|
|
1168
|
+
detectDirection: $t,
|
|
1169
1169
|
getChild: me,
|
|
1170
1170
|
expando: V
|
|
1171
1171
|
};
|
|
1172
|
-
|
|
1172
|
+
g.get = function(n) {
|
|
1173
1173
|
return n[V];
|
|
1174
1174
|
};
|
|
1175
|
-
|
|
1175
|
+
g.mount = function() {
|
|
1176
1176
|
for (var n = arguments.length, e = new Array(n), o = 0; o < n; o++)
|
|
1177
1177
|
e[o] = arguments[o];
|
|
1178
1178
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(t) {
|
|
1179
1179
|
if (!t.prototype || !t.prototype.constructor)
|
|
1180
1180
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));
|
|
1181
|
-
t.utils && (
|
|
1181
|
+
t.utils && (g.utils = j(j({}, g.utils), t.utils)), Ae.mount(t);
|
|
1182
1182
|
});
|
|
1183
1183
|
};
|
|
1184
|
-
|
|
1185
|
-
return new
|
|
1184
|
+
g.create = function(n, e) {
|
|
1185
|
+
return new g(n, e);
|
|
1186
1186
|
};
|
|
1187
|
-
|
|
1187
|
+
g.version = Rn;
|
|
1188
1188
|
var C = [], De, dt, ft = !1, ot, it, je, Se;
|
|
1189
|
-
function
|
|
1189
|
+
function oo() {
|
|
1190
1190
|
function n() {
|
|
1191
1191
|
this.defaults = {
|
|
1192
1192
|
scroll: !0,
|
|
@@ -1201,14 +1201,14 @@ function no() {
|
|
|
1201
1201
|
return n.prototype = {
|
|
1202
1202
|
dragStarted: function(o) {
|
|
1203
1203
|
var t = o.originalEvent;
|
|
1204
|
-
this.sortable.nativeDraggable ?
|
|
1204
|
+
this.sortable.nativeDraggable ? E(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? E(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? E(document, "touchmove", this._handleFallbackAutoScroll) : E(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1205
1205
|
},
|
|
1206
1206
|
dragOverCompleted: function(o) {
|
|
1207
1207
|
var t = o.originalEvent;
|
|
1208
1208
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
1209
1209
|
},
|
|
1210
1210
|
drop: function() {
|
|
1211
|
-
this.sortable.nativeDraggable ?
|
|
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(), Le(), Xn();
|
|
1212
1212
|
},
|
|
1213
1213
|
nulling: function() {
|
|
1214
1214
|
je = dt = De = ft = Se = ot = it = null, C.length = 0;
|
|
@@ -1246,35 +1246,35 @@ function Le() {
|
|
|
1246
1246
|
function kt() {
|
|
1247
1247
|
clearInterval(Se);
|
|
1248
1248
|
}
|
|
1249
|
-
var rt =
|
|
1249
|
+
var rt = Xt(function(n, e, o, t) {
|
|
1250
1250
|
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 = G(), u = !1,
|
|
1252
|
-
dt !== o && (dt = o, Le(), De = e.scroll,
|
|
1253
|
-
var
|
|
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 = G(), u = !1, f;
|
|
1252
|
+
dt !== o && (dt = o, Le(), De = e.scroll, f = e.scrollFn, De === !0 && (De = ne(o, !0)));
|
|
1253
|
+
var d = 0, b = De;
|
|
1254
1254
|
do {
|
|
1255
|
-
var
|
|
1256
|
-
|
|
1257
|
-
var ye = oe && (Math.abs(x - i) <= a && be + N < ie) - (Math.abs(O - i) <= a && !!be), z = $ && (Math.abs(
|
|
1258
|
-
if (!C[
|
|
1259
|
-
for (var re = 0; re <=
|
|
1255
|
+
var y = b, m = I(y), h = m.top, _ = m.bottom, O = m.left, x = m.right, N = m.width, k = m.height, oe = void 0, $ = void 0, ie = y.scrollWidth, ve = y.scrollHeight, B = p(y), be = y.scrollLeft, Z = y.scrollTop;
|
|
1256
|
+
y === s ? (oe = N < ie && (B.overflowX === "auto" || B.overflowX === "scroll" || B.overflowX === "visible"), $ = k < ve && (B.overflowY === "auto" || B.overflowY === "scroll" || B.overflowY === "visible")) : (oe = N < ie && (B.overflowX === "auto" || B.overflowX === "scroll"), $ = k < ve && (B.overflowY === "auto" || B.overflowY === "scroll"));
|
|
1257
|
+
var ye = oe && (Math.abs(x - i) <= a && be + N < ie) - (Math.abs(O - i) <= a && !!be), z = $ && (Math.abs(_ - r) <= a && Z + k < ve) - (Math.abs(h - r) <= a && !!Z);
|
|
1258
|
+
if (!C[d])
|
|
1259
|
+
for (var re = 0; re <= d; re++)
|
|
1260
1260
|
C[re] || (C[re] = {});
|
|
1261
|
-
(C[
|
|
1262
|
-
t && this.layer === 0 &&
|
|
1261
|
+
(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 && g.active._onTouchMove(je);
|
|
1263
1263
|
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
|
|
1264
|
+
typeof f == "function" && f.call(g.dragged.parentNode[V], Q, we, n, je, C[this.layer].el) !== "continue" || Yt(C[this.layer].el, Q, we);
|
|
1265
1265
|
}).bind({
|
|
1266
|
-
layer:
|
|
1267
|
-
}), 24))),
|
|
1266
|
+
layer: d
|
|
1267
|
+
}), 24))), d++;
|
|
1268
1268
|
} while (e.bubbleScroll && b !== s && (b = ne(b, !1)));
|
|
1269
1269
|
ft = u;
|
|
1270
1270
|
}
|
|
1271
|
-
}, 30),
|
|
1271
|
+
}, 30), Ut = function(e) {
|
|
1272
1272
|
var o = e.originalEvent, t = e.putSortable, i = e.dragEl, r = e.activeSortable, a = e.dispatchSortableEvent, l = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
1273
1273
|
if (o) {
|
|
1274
1274
|
var u = t || r;
|
|
1275
1275
|
l();
|
|
1276
|
-
var
|
|
1277
|
-
s(), u && !u.el.contains(
|
|
1276
|
+
var f = o.changedTouches && o.changedTouches.length ? o.changedTouches[0] : o, d = document.elementFromPoint(f.clientX, f.clientY);
|
|
1277
|
+
s(), u && !u.el.contains(d) && (a("spill"), this.onSpill({
|
|
1278
1278
|
dragEl: i,
|
|
1279
1279
|
putSortable: t
|
|
1280
1280
|
}));
|
|
@@ -1294,7 +1294,7 @@ gt.prototype = {
|
|
|
1294
1294
|
var i = me(this.sortable.el, this.startIndex, this.options);
|
|
1295
1295
|
i ? this.sortable.el.insertBefore(o, i) : this.sortable.el.appendChild(o), this.sortable.animateAll(), t && t.animateAll();
|
|
1296
1296
|
},
|
|
1297
|
-
drop:
|
|
1297
|
+
drop: Ut
|
|
1298
1298
|
};
|
|
1299
1299
|
q(gt, {
|
|
1300
1300
|
pluginName: "revertOnSpill"
|
|
@@ -1306,44 +1306,58 @@ mt.prototype = {
|
|
|
1306
1306
|
var o = e.dragEl, t = e.putSortable, i = t || this.sortable;
|
|
1307
1307
|
i.captureAnimationState(), o.parentNode && o.parentNode.removeChild(o), i.animateAll();
|
|
1308
1308
|
},
|
|
1309
|
-
drop:
|
|
1309
|
+
drop: Ut
|
|
1310
1310
|
};
|
|
1311
1311
|
q(mt, {
|
|
1312
1312
|
pluginName: "removeOnSpill"
|
|
1313
1313
|
});
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
function
|
|
1314
|
+
g.mount(new oo());
|
|
1315
|
+
g.mount(mt, gt);
|
|
1316
|
+
function io(n, e, o = {}) {
|
|
1317
1317
|
let t;
|
|
1318
|
-
const { document: i =
|
|
1319
|
-
|
|
1320
|
-
} },
|
|
1321
|
-
const d = typeof n == "string" ? i?.querySelector(n) : un(n);
|
|
1322
|
-
!d || t !== void 0 || (t = new p(d, {
|
|
1323
|
-
...a,
|
|
1324
|
-
...r
|
|
1325
|
-
}));
|
|
1326
|
-
}, s = () => {
|
|
1318
|
+
const { document: i = ln, watchElement: r = !1, ...a } = o, l = { onUpdate: (h) => {
|
|
1319
|
+
lo(e, h.oldIndex, h.newIndex, h);
|
|
1320
|
+
} }, s = Mt(() => typeof n == "string" ? i?.querySelector(n) : sn(n)), u = () => {
|
|
1327
1321
|
t?.destroy(), t = void 0;
|
|
1328
|
-
},
|
|
1329
|
-
|
|
1330
|
-
|
|
1322
|
+
}, f = (h) => {
|
|
1323
|
+
!h || t !== void 0 || (t = new g(h, {
|
|
1324
|
+
...l,
|
|
1325
|
+
...a
|
|
1326
|
+
}));
|
|
1327
|
+
}, d = () => {
|
|
1328
|
+
const h = s.value;
|
|
1329
|
+
h && f(h);
|
|
1330
|
+
}, b = (h, _) => {
|
|
1331
|
+
if (_ !== void 0) t?.option(h, _);
|
|
1332
|
+
else return t?.option(h);
|
|
1333
|
+
};
|
|
1334
|
+
let y;
|
|
1335
|
+
r && typeof n != "string" ? y = Qt(s, (h) => {
|
|
1336
|
+
u(), h && f(h);
|
|
1337
|
+
}, {
|
|
1338
|
+
immediate: !0,
|
|
1339
|
+
flush: "post"
|
|
1340
|
+
}) : un(d);
|
|
1341
|
+
const m = () => {
|
|
1342
|
+
u();
|
|
1331
1343
|
};
|
|
1332
|
-
return
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1344
|
+
return cn(() => {
|
|
1345
|
+
y?.(), u();
|
|
1346
|
+
}), {
|
|
1347
|
+
stop: m,
|
|
1348
|
+
start: d,
|
|
1349
|
+
option: b
|
|
1336
1350
|
};
|
|
1337
1351
|
}
|
|
1338
|
-
function
|
|
1352
|
+
function ro(n, e, o) {
|
|
1339
1353
|
const t = n.children[o];
|
|
1340
1354
|
n.insertBefore(e, t);
|
|
1341
1355
|
}
|
|
1342
|
-
function
|
|
1356
|
+
function ao(n) {
|
|
1343
1357
|
n.parentNode && n.parentNode.removeChild(n);
|
|
1344
1358
|
}
|
|
1345
|
-
function
|
|
1346
|
-
t != null && (
|
|
1359
|
+
function lo(n, e, o, t = null) {
|
|
1360
|
+
t != null && (ao(t.item), ro(t.from, t.item, e));
|
|
1347
1361
|
const i = at(n), r = i ? [...yt(n)] : yt(n);
|
|
1348
1362
|
if (o >= 0 && o < r.length) {
|
|
1349
1363
|
const a = r.splice(e, 1)[0];
|
|
@@ -1352,58 +1366,58 @@ function ao(n, e, o, t = null) {
|
|
|
1352
1366
|
});
|
|
1353
1367
|
}
|
|
1354
1368
|
}
|
|
1355
|
-
const
|
|
1369
|
+
const so = { class: "text-medium-emphasis ps-2" }, mo = {
|
|
1356
1370
|
__name: "Dialog",
|
|
1357
1371
|
setup(n, { expose: e }) {
|
|
1358
|
-
const o = st("table_props"), t = st("datatablesPluginOptions"), { tableState: i } =
|
|
1372
|
+
const o = st("table_props"), t = st("datatablesPluginOptions"), { tableState: i } = pn(), { tableDataState: r } = gn(o), a = ue(0), l = Jt("listRef"), s = ue(!1), u = ue([]), f = ue([]), d = ue([]), b = () => {
|
|
1359
1373
|
s.value = !0;
|
|
1360
1374
|
};
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
const { option: m } =
|
|
1364
|
-
onUpdate: async (
|
|
1375
|
+
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 lt();
|
|
1377
|
+
const { option: m } = io(l, u, {
|
|
1378
|
+
onUpdate: async (h) => {
|
|
1365
1379
|
await lt();
|
|
1366
|
-
const
|
|
1380
|
+
const _ = Array.from(h.from.children).map(function(O) {
|
|
1367
1381
|
return O.getAttribute("header-keys");
|
|
1368
1382
|
});
|
|
1369
|
-
qe(
|
|
1383
|
+
qe(_, d.value) || (d.value = _);
|
|
1370
1384
|
}
|
|
1371
1385
|
});
|
|
1372
1386
|
m("animation", 200);
|
|
1373
1387
|
});
|
|
1374
|
-
const
|
|
1375
|
-
(!qe(
|
|
1388
|
+
const y = () => {
|
|
1389
|
+
(!qe(f.value, i.value.options.columns?.selected) || !qe(d.value, i.value.options.columns?.sorted)) && (r.value.options.columns.selected = f.value, r.value.options.columns.sorted = d.value), s.value = !1;
|
|
1376
1390
|
};
|
|
1377
|
-
return e({ openDialog: b }), (m,
|
|
1391
|
+
return e({ openDialog: b }), (m, h) => (Ue(), wt(mn, {
|
|
1378
1392
|
modelValue: ce(s),
|
|
1379
|
-
"onUpdate:modelValue":
|
|
1393
|
+
"onUpdate:modelValue": h[1] || (h[1] = (_) => at(s) ? s.value = _ : null),
|
|
1380
1394
|
"max-width": "500",
|
|
1381
1395
|
eager: "",
|
|
1382
1396
|
"retain-focus": !1
|
|
1383
1397
|
}, {
|
|
1384
|
-
default: J(({ isActive:
|
|
1385
|
-
R(
|
|
1398
|
+
default: J(({ isActive: _ }) => [
|
|
1399
|
+
R(vn, { rounded: "lg" }, {
|
|
1386
1400
|
default: J(() => [
|
|
1387
|
-
R(
|
|
1401
|
+
R(bn, { class: "d-flex justify-space-between align-center" }, {
|
|
1388
1402
|
default: J(() => [
|
|
1389
|
-
|
|
1403
|
+
tn("div", so, nn(m.$t("$datatables.selectColumns")), 1),
|
|
1390
1404
|
R(Ke, {
|
|
1391
1405
|
icon: ce(t).header.icons.close,
|
|
1392
1406
|
variant: "text",
|
|
1393
|
-
onClick: (O) =>
|
|
1407
|
+
onClick: (O) => _.value = !1
|
|
1394
1408
|
}, null, 8, ["icon", "onClick"])
|
|
1395
1409
|
]),
|
|
1396
1410
|
_: 2
|
|
1397
1411
|
}, 1024),
|
|
1398
1412
|
R(St),
|
|
1399
|
-
R(
|
|
1413
|
+
R(yn, { class: "overflow-auto pt-8" }, {
|
|
1400
1414
|
default: J(() => [
|
|
1401
|
-
R(
|
|
1415
|
+
R(In, {
|
|
1402
1416
|
ref_key: "listRef",
|
|
1403
1417
|
ref: l
|
|
1404
1418
|
}, {
|
|
1405
1419
|
default: J(() => [
|
|
1406
|
-
(Ue(!0),
|
|
1420
|
+
(Ue(!0), on(rn, null, an(ce(u), (O, x) => (Ue(), wt(On, {
|
|
1407
1421
|
key: `${ce(a)}-${x}`,
|
|
1408
1422
|
title: O?.title,
|
|
1409
1423
|
"header-keys": O?.key,
|
|
@@ -1411,15 +1425,15 @@ const lo = { class: "text-medium-emphasis ps-2" }, go = {
|
|
|
1411
1425
|
}
|
|
1412
1426
|
}, {
|
|
1413
1427
|
prepend: J(() => [
|
|
1414
|
-
R(
|
|
1415
|
-
modelValue: ce(
|
|
1416
|
-
"onUpdate:modelValue":
|
|
1428
|
+
R(Nn, {
|
|
1429
|
+
modelValue: ce(f),
|
|
1430
|
+
"onUpdate:modelValue": h[0] || (h[0] = (N) => at(f) ? f.value = N : null),
|
|
1417
1431
|
value: O?.key,
|
|
1418
1432
|
"hide-details": ""
|
|
1419
1433
|
}, null, 8, ["modelValue", "value"])
|
|
1420
1434
|
]),
|
|
1421
1435
|
append: J(() => [
|
|
1422
|
-
R(
|
|
1436
|
+
R(xn, {
|
|
1423
1437
|
icon: ce(t).header.icons.drag
|
|
1424
1438
|
}, null, 8, ["icon"])
|
|
1425
1439
|
]),
|
|
@@ -1432,19 +1446,19 @@ const lo = { class: "text-medium-emphasis ps-2" }, go = {
|
|
|
1432
1446
|
_: 1
|
|
1433
1447
|
}),
|
|
1434
1448
|
R(St, { class: "mt-2" }),
|
|
1435
|
-
R(
|
|
1449
|
+
R(wn, { class: "my-2 d-flex justify-end" }, {
|
|
1436
1450
|
default: J(() => [
|
|
1437
1451
|
R(Ke, {
|
|
1438
1452
|
class: "text-none",
|
|
1439
1453
|
text: m.$t("$datatables.cancel"),
|
|
1440
|
-
onClick: (O) =>
|
|
1454
|
+
onClick: (O) => _.value = !1
|
|
1441
1455
|
}, null, 8, ["text", "onClick"]),
|
|
1442
1456
|
R(Ke, {
|
|
1443
1457
|
class: "text-none",
|
|
1444
1458
|
color: "primary",
|
|
1445
1459
|
text: m.$t("$datatables.submit"),
|
|
1446
1460
|
variant: "flat",
|
|
1447
|
-
onClick:
|
|
1461
|
+
onClick: y
|
|
1448
1462
|
}, null, 8, ["text"])
|
|
1449
1463
|
]),
|
|
1450
1464
|
_: 2
|
|
@@ -1457,9 +1471,9 @@ const lo = { class: "text-medium-emphasis ps-2" }, go = {
|
|
|
1457
1471
|
}, 8, ["modelValue"]));
|
|
1458
1472
|
}
|
|
1459
1473
|
};
|
|
1460
|
-
function
|
|
1461
|
-
const n = st("datatablesPluginOptions"), { t: e } =
|
|
1462
|
-
return { columnsItems:
|
|
1474
|
+
function vo() {
|
|
1475
|
+
const n = st("datatablesPluginOptions"), { t: e } = Pn(), o = ue();
|
|
1476
|
+
return { columnsItems: Mt(() => [
|
|
1463
1477
|
{
|
|
1464
1478
|
title: `${e("$datatables.columns")}`,
|
|
1465
1479
|
onClick: o.value?.openDialog,
|
|
@@ -1468,6 +1482,6 @@ function mo() {
|
|
|
1468
1482
|
]), columnsRef: o };
|
|
1469
1483
|
}
|
|
1470
1484
|
export {
|
|
1471
|
-
|
|
1472
|
-
|
|
1485
|
+
mo as _,
|
|
1486
|
+
vo as u
|
|
1473
1487
|
};
|