@feedmepos/mf-report 5.4.36-beta.0 → 5.5.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-DAU6gJah.js → App-Cgynv4z6.js} +3 -3
- package/dist/Default.vue_vue_type_script_setup_true_lang-DoZjQrXi.js +41 -0
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-9HLzKjix.js +1004 -0
- package/dist/{InsightView-B3J-F3ol.js → InsightView-CazscxFM.js} +2 -2
- package/dist/{Integration-zUec0gpE.js → Integration-bg1bO0u3.js} +1316 -1316
- package/dist/{Layout-OAo1OSMP.js → Layout-B6nbTiWn.js} +1 -1
- package/dist/NavigationTab.vue_vue_type_script_setup_true_lang-DfXW3V-Z.js +26466 -0
- package/dist/{OverviewView-CVJC6t4j.js → OverviewView-D4f5GD94.js} +3 -3
- package/dist/{Report-BsP2QXAG.js → Report-t5C_RytN.js} +2 -2
- package/dist/{ReportEditor-CQw9jHcW.js → ReportEditor-CyI-OeIq.js} +3 -3
- package/dist/{ReportView-B7aDzeFz.js → ReportView-DSa6UBCG.js} +72 -61
- package/dist/{Setting-Dzt3TbHW.js → Setting-C3cEoUqd.js} +1 -1
- package/dist/{TileEditor-DYJmSgIT.js → TileEditor-DpD-oLcv.js} +3 -3
- package/dist/{TransitionFade-CpucF6O6.js → TransitionFade-DGn_cYeQ.js} +263 -263
- package/dist/app.js +16 -13
- package/dist/{v4-BOOklPpL.js → v4-BDHq16P_.js} +427 -404
- package/package.json +1 -1
- package/dist/Default.vue_vue_type_script_setup_true_lang-B3PsiD6a.js +0 -41
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-FIM7a1Po.js +0 -999
- package/dist/NavigationTab.vue_vue_type_script_setup_true_lang-B6VAf7nH.js +0 -26128
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { defineComponent as Ne, onBeforeMount as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as Ne, onBeforeMount as cn, onBeforeUnmount as dn, resolveComponent as ge, createElementBlock as ce, openBlock as ne, normalizeStyle as fn, unref as Le, renderSlot as Pe, createVNode as ue, createElementVNode as Lt, toDisplayString as Rt, TransitionGroup as hn, nextTick as Bt, h as St, mergeModels as pn, useModel as Vt, computed as mn, Fragment as vt, renderList as gn, createBlock as vn, normalizeClass as bn, withCtx as ze, createTextVNode as _n, ref as yn, Transition as ct, createCommentVNode as dt } from "vue";
|
|
2
|
+
import { u as Xt, f as wn } from "./global-loader-BqFQzk46.js";
|
|
3
3
|
import { useCoreStore as En } from "@feedmepos/mf-common";
|
|
4
4
|
import { storeToRefs as Sn } from "pinia";
|
|
5
5
|
import { useRoute as Dn } from "vue-router";
|
|
6
|
-
import { W as x } from "./v4-
|
|
6
|
+
import { W as x } from "./v4-BDHq16P_.js";
|
|
7
7
|
import { p as Cn } from "./index-Cmh079Bh.js";
|
|
8
8
|
import { _ as bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
import { R as Tn } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { R as Tn } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-9HLzKjix.js";
|
|
10
10
|
const xn = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"
|
|
13
|
-
},
|
|
13
|
+
}, In = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xo = /* @__PURE__ */ Ne({
|
|
14
14
|
__name: "FullScreen",
|
|
15
15
|
setup(t) {
|
|
16
|
-
const e = Dn(), { isLoading:
|
|
17
|
-
return
|
|
18
|
-
|
|
19
|
-
}),
|
|
20
|
-
|
|
21
|
-
}), (
|
|
22
|
-
const
|
|
16
|
+
const { t: e } = Xt(), n = Dn(), { isLoading: o } = Sn(wn()), r = En();
|
|
17
|
+
return cn(() => {
|
|
18
|
+
r.hideSidebarToggle(!0);
|
|
19
|
+
}), dn(() => {
|
|
20
|
+
r.hideSidebarToggle(!1);
|
|
21
|
+
}), (i, a) => {
|
|
22
|
+
const l = ge("FmCircularProgress");
|
|
23
23
|
return ne(), ce("div", {
|
|
24
24
|
class: "mx-auto",
|
|
25
|
-
style:
|
|
26
|
-
height: `calc(100vh - ${
|
|
25
|
+
style: fn({
|
|
26
|
+
height: `calc(100vh - ${Le(n).query.token && Le(n).query.businessId ? "0" : "64"}px)`
|
|
27
27
|
})
|
|
28
28
|
}, [
|
|
29
|
-
|
|
30
|
-
ue(
|
|
31
|
-
|
|
32
|
-
])) : Pe(
|
|
29
|
+
Le(o) ? (ne(), ce("div", xn, [
|
|
30
|
+
ue(l, { size: "xl" }),
|
|
31
|
+
Lt("span", In, Rt(Le(e)("report.common.isLoading")), 1)
|
|
32
|
+
])) : Pe(i.$slots, "default", { key: 1 })
|
|
33
33
|
], 4);
|
|
34
34
|
};
|
|
35
35
|
}
|
|
@@ -54,22 +54,22 @@ function j(t) {
|
|
|
54
54
|
for (var e = 1; e < arguments.length; e++) {
|
|
55
55
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
56
56
|
e % 2 ? Dt(Object(n), !0).forEach(function(o) {
|
|
57
|
-
|
|
57
|
+
On(t, o, n[o]);
|
|
58
58
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Dt(Object(n)).forEach(function(o) {
|
|
59
59
|
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(n, o));
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
return t;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function $e(t) {
|
|
65
65
|
"@babel/helpers - typeof";
|
|
66
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
66
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? $e = function(e) {
|
|
67
67
|
return typeof e;
|
|
68
|
-
} :
|
|
68
|
+
} : $e = function(e) {
|
|
69
69
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
70
|
-
},
|
|
70
|
+
}, $e(t);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function On(t, e, n) {
|
|
73
73
|
return e in t ? Object.defineProperty(t, e, {
|
|
74
74
|
value: n,
|
|
75
75
|
enumerable: !0,
|
|
@@ -87,16 +87,16 @@ function q() {
|
|
|
87
87
|
return t;
|
|
88
88
|
}, q.apply(this, arguments);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function An(t, e) {
|
|
91
91
|
if (t == null) return {};
|
|
92
92
|
var n = {}, o = Object.keys(t), r, i;
|
|
93
93
|
for (i = 0; i < o.length; i++)
|
|
94
94
|
r = o[i], !(e.indexOf(r) >= 0) && (n[r] = t[r]);
|
|
95
95
|
return n;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function Pn(t, e) {
|
|
98
98
|
if (t == null) return {};
|
|
99
|
-
var n =
|
|
99
|
+
var n = An(t, e), o, r;
|
|
100
100
|
if (Object.getOwnPropertySymbols) {
|
|
101
101
|
var i = Object.getOwnPropertySymbols(t);
|
|
102
102
|
for (r = 0; r < i.length; r++)
|
|
@@ -104,22 +104,22 @@ function An(t, e) {
|
|
|
104
104
|
}
|
|
105
105
|
return n;
|
|
106
106
|
}
|
|
107
|
-
var
|
|
107
|
+
var Nn = "1.14.0";
|
|
108
108
|
function U(t) {
|
|
109
109
|
if (typeof window < "u" && window.navigator)
|
|
110
110
|
return !!/* @__PURE__ */ navigator.userAgent.match(t);
|
|
111
111
|
}
|
|
112
|
-
var K = U(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ke = U(/Edge/i), Ct = U(/firefox/i), Te = U(/safari/i) && !U(/chrome/i) && !U(/android/i),
|
|
112
|
+
var K = U(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ke = U(/Edge/i), Ct = U(/firefox/i), Te = U(/safari/i) && !U(/chrome/i) && !U(/android/i), $t = U(/iP(ad|od|hone)/i), kn = U(/chrome/i) && U(/android/i), Yt = {
|
|
113
113
|
capture: !1,
|
|
114
114
|
passive: !1
|
|
115
115
|
};
|
|
116
|
-
function
|
|
117
|
-
t.addEventListener(e, n, !K &&
|
|
116
|
+
function _(t, e, n) {
|
|
117
|
+
t.addEventListener(e, n, !K && Yt);
|
|
118
118
|
}
|
|
119
119
|
function b(t, e, n) {
|
|
120
|
-
t.removeEventListener(e, n, !K &&
|
|
120
|
+
t.removeEventListener(e, n, !K && Yt);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Ge(t, e) {
|
|
123
123
|
if (e) {
|
|
124
124
|
if (e[0] === ">" && (e = e.substring(1)), t)
|
|
125
125
|
try {
|
|
@@ -135,17 +135,17 @@ function ze(t, e) {
|
|
|
135
135
|
return !1;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Fn(t) {
|
|
139
139
|
return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode;
|
|
140
140
|
}
|
|
141
141
|
function W(t, e, n, o) {
|
|
142
142
|
if (t) {
|
|
143
143
|
n = n || document;
|
|
144
144
|
do {
|
|
145
|
-
if (e != null && (e[0] === ">" ? t.parentNode === n &&
|
|
145
|
+
if (e != null && (e[0] === ">" ? t.parentNode === n && Ge(t, e) : Ge(t, e)) || o && t === n)
|
|
146
146
|
return t;
|
|
147
147
|
if (t === n) break;
|
|
148
|
-
} while (t =
|
|
148
|
+
} while (t = Fn(t));
|
|
149
149
|
}
|
|
150
150
|
return null;
|
|
151
151
|
}
|
|
@@ -179,7 +179,7 @@ function me(t, e) {
|
|
|
179
179
|
var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
180
180
|
return r && new r(n);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Wt(t, e, n) {
|
|
183
183
|
if (t) {
|
|
184
184
|
var o = t.getElementsByTagName(e), r = 0, i = o.length;
|
|
185
185
|
if (n)
|
|
@@ -205,8 +205,8 @@ function T(t, e, n, o, r) {
|
|
|
205
205
|
}
|
|
206
206
|
while (r = r.parentNode);
|
|
207
207
|
if (o && t !== window) {
|
|
208
|
-
var w = me(r || t), v = w && w.a,
|
|
209
|
-
w && (a /=
|
|
208
|
+
var w = me(r || t), v = w && w.a, y = w && w.d;
|
|
209
|
+
w && (a /= y, l /= v, f /= v, d /= y, s = a + d, u = l + f);
|
|
210
210
|
}
|
|
211
211
|
return {
|
|
212
212
|
top: a,
|
|
@@ -238,8 +238,8 @@ function ve(t, e, n, o) {
|
|
|
238
238
|
}
|
|
239
239
|
return null;
|
|
240
240
|
}
|
|
241
|
-
function
|
|
242
|
-
for (var n = t.lastElementChild; n && (n === p.ghost || h(n, "display") === "none" || e && !
|
|
241
|
+
function _t(t, e) {
|
|
242
|
+
for (var n = t.lastElementChild; n && (n === p.ghost || h(n, "display") === "none" || e && !Ge(n, e)); )
|
|
243
243
|
n = n.previousElementSibling;
|
|
244
244
|
return n || null;
|
|
245
245
|
}
|
|
@@ -248,7 +248,7 @@ function R(t, e) {
|
|
|
248
248
|
if (!t || !t.parentNode)
|
|
249
249
|
return -1;
|
|
250
250
|
for (; t = t.previousElementSibling; )
|
|
251
|
-
t.nodeName.toUpperCase() !== "TEMPLATE" && t !== p.clone && (!e ||
|
|
251
|
+
t.nodeName.toUpperCase() !== "TEMPLATE" && t !== p.clone && (!e || Ge(t, e)) && n++;
|
|
252
252
|
return n;
|
|
253
253
|
}
|
|
254
254
|
function It(t) {
|
|
@@ -260,7 +260,7 @@ function It(t) {
|
|
|
260
260
|
} while (t !== o && (t = t.parentNode));
|
|
261
261
|
return [e, n];
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function Mn(t, e) {
|
|
264
264
|
for (var n in t)
|
|
265
265
|
if (t.hasOwnProperty(n)) {
|
|
266
266
|
for (var o in e)
|
|
@@ -283,7 +283,7 @@ function te(t, e) {
|
|
|
283
283
|
while (n = n.parentNode);
|
|
284
284
|
return H();
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function Ln(t, e) {
|
|
287
287
|
if (t && e)
|
|
288
288
|
for (var n in e)
|
|
289
289
|
e.hasOwnProperty(n) && (t[n] = e[n]);
|
|
@@ -293,7 +293,7 @@ function Je(t, e) {
|
|
|
293
293
|
return Math.round(t.top) === Math.round(e.top) && Math.round(t.left) === Math.round(e.left) && Math.round(t.height) === Math.round(e.height) && Math.round(t.width) === Math.round(e.width);
|
|
294
294
|
}
|
|
295
295
|
var xe;
|
|
296
|
-
function
|
|
296
|
+
function Ht(t, e) {
|
|
297
297
|
return function() {
|
|
298
298
|
if (!xe) {
|
|
299
299
|
var n = arguments, o = this;
|
|
@@ -303,18 +303,18 @@ function Yt(t, e) {
|
|
|
303
303
|
}
|
|
304
304
|
};
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function Rn() {
|
|
307
307
|
clearTimeout(xe), xe = void 0;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function jt(t, e, n) {
|
|
310
310
|
t.scrollLeft += e, t.scrollTop += n;
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function zt(t) {
|
|
313
313
|
var e = window.Polymer, n = window.jQuery || window.Zepto;
|
|
314
314
|
return e && e.dom ? e.dom(t).cloneNode(!0) : n ? n(t).clone(!0)[0] : t.cloneNode(!0);
|
|
315
315
|
}
|
|
316
316
|
var L = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
317
|
-
function
|
|
317
|
+
function Bn() {
|
|
318
318
|
var t = [], e;
|
|
319
319
|
return {
|
|
320
320
|
captureAnimationState: function() {
|
|
@@ -340,7 +340,7 @@ function Rn() {
|
|
|
340
340
|
t.push(o);
|
|
341
341
|
},
|
|
342
342
|
removeAnimationState: function(o) {
|
|
343
|
-
t.splice(
|
|
343
|
+
t.splice(Mn(t, {
|
|
344
344
|
target: o
|
|
345
345
|
}), 1);
|
|
346
346
|
},
|
|
@@ -352,9 +352,9 @@ function Rn() {
|
|
|
352
352
|
}
|
|
353
353
|
var i = !1, a = 0;
|
|
354
354
|
t.forEach(function(l) {
|
|
355
|
-
var s = 0, u = l.target, d = u.fromRect, f = T(u), g = u.prevFromRect, w = u.prevToRect, v = l.rect,
|
|
356
|
-
|
|
357
|
-
(v.top - f.top) / (v.left - f.left) === (d.top - f.top) / (d.left - f.left) && (s =
|
|
355
|
+
var s = 0, u = l.target, d = u.fromRect, f = T(u), g = u.prevFromRect, w = u.prevToRect, v = l.rect, y = me(u, !0);
|
|
356
|
+
y && (f.top -= y.f, f.left -= y.e), u.toRect = f, u.thisAnimationDuration && Je(g, f) && !Je(d, f) && // Make sure animatingRect is on line between toRect & fromRect
|
|
357
|
+
(v.top - f.top) / (v.left - f.left) === (d.top - f.top) / (d.left - f.left) && (s = Xn(v, g, w, r.options)), Je(f, d) || (u.prevFromRect = d, u.prevToRect = f, s || (s = r.options.animation), r.animate(u, v, f, s)), s && (i = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
358
358
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
359
359
|
}, s), u.thisAnimationDuration = s);
|
|
360
360
|
}), clearTimeout(e), i ? e = setTimeout(function() {
|
|
@@ -365,17 +365,17 @@ function Rn() {
|
|
|
365
365
|
if (a) {
|
|
366
366
|
h(o, "transition", ""), h(o, "transform", "");
|
|
367
367
|
var l = me(this.el), s = l && l.a, u = l && l.d, d = (r.left - i.left) / (s || 1), f = (r.top - i.top) / (u || 1);
|
|
368
|
-
o.animatingX = !!d, o.animatingY = !!f, h(o, "transform", "translate3d(" + d + "px," + f + "px,0)"), this.forRepaintDummy =
|
|
368
|
+
o.animatingX = !!d, o.animatingY = !!f, h(o, "transform", "translate3d(" + d + "px," + f + "px,0)"), this.forRepaintDummy = Vn(o), h(o, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), h(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
|
|
369
369
|
h(o, "transition", ""), h(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
|
370
370
|
}, a);
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
};
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function Vn(t) {
|
|
376
376
|
return t.offsetWidth;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function Xn(t, e, n, o) {
|
|
379
379
|
return Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) / Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) * o.animation;
|
|
380
380
|
}
|
|
381
381
|
var de = [], et = {
|
|
@@ -430,29 +430,29 @@ var de = [], et = {
|
|
|
430
430
|
}), r;
|
|
431
431
|
}
|
|
432
432
|
};
|
|
433
|
-
function
|
|
433
|
+
function $n(t) {
|
|
434
434
|
var e = t.sortable, n = t.rootEl, o = t.name, r = t.targetEl, i = t.cloneEl, a = t.toEl, l = t.fromEl, s = t.oldIndex, u = t.newIndex, d = t.oldDraggableIndex, f = t.newDraggableIndex, g = t.originalEvent, w = t.putSortable, v = t.extraEventProperties;
|
|
435
435
|
if (e = e || n && n[L], !!e) {
|
|
436
|
-
var
|
|
437
|
-
window.CustomEvent && !K && !ke ?
|
|
436
|
+
var y, B = e.options, z = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
437
|
+
window.CustomEvent && !K && !ke ? y = new CustomEvent(o, {
|
|
438
438
|
bubbles: !0,
|
|
439
439
|
cancelable: !0
|
|
440
|
-
}) : (
|
|
440
|
+
}) : (y = document.createEvent("Event"), y.initEvent(o, !0, !0)), y.to = a || n, y.from = l || n, y.item = r || n, y.clone = i, y.oldIndex = s, y.newIndex = u, y.oldDraggableIndex = d, y.newDraggableIndex = f, y.originalEvent = g, y.pullMode = w ? w.lastPutMode : void 0;
|
|
441
441
|
var A = j(j({}, v), Fe.getEventProperties(o, e));
|
|
442
442
|
for (var V in A)
|
|
443
|
-
|
|
444
|
-
n && n.dispatchEvent(
|
|
443
|
+
y[V] = A[V];
|
|
444
|
+
n && n.dispatchEvent(y), B[z] && B[z].call(e, y);
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
var
|
|
448
|
-
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, i =
|
|
447
|
+
var Yn = ["evt"], N = function(e, n) {
|
|
448
|
+
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, i = Pn(o, Yn);
|
|
449
449
|
Fe.pluginEvent.bind(p)(e, n, j({
|
|
450
450
|
dragEl: c,
|
|
451
451
|
parentEl: S,
|
|
452
452
|
ghostEl: m,
|
|
453
453
|
rootEl: E,
|
|
454
454
|
nextEl: se,
|
|
455
|
-
lastDownEl:
|
|
455
|
+
lastDownEl: Ye,
|
|
456
456
|
cloneEl: D,
|
|
457
457
|
cloneHidden: ee,
|
|
458
458
|
dragStarted: Se,
|
|
@@ -463,8 +463,8 @@ var $n = ["evt"], N = function(e, n) {
|
|
|
463
463
|
oldDraggableIndex: Ie,
|
|
464
464
|
newIndex: M,
|
|
465
465
|
newDraggableIndex: J,
|
|
466
|
-
hideGhostForTarget:
|
|
467
|
-
unhideGhostForTarget:
|
|
466
|
+
hideGhostForTarget: Kt,
|
|
467
|
+
unhideGhostForTarget: Zt,
|
|
468
468
|
cloneNowHidden: function() {
|
|
469
469
|
ee = !0;
|
|
470
470
|
},
|
|
@@ -481,7 +481,7 @@ var $n = ["evt"], N = function(e, n) {
|
|
|
481
481
|
}, i));
|
|
482
482
|
};
|
|
483
483
|
function P(t) {
|
|
484
|
-
|
|
484
|
+
$n(j({
|
|
485
485
|
putSortable: I,
|
|
486
486
|
cloneEl: D,
|
|
487
487
|
targetEl: c,
|
|
@@ -492,14 +492,14 @@ function P(t) {
|
|
|
492
492
|
newDraggableIndex: J
|
|
493
493
|
}, t));
|
|
494
494
|
}
|
|
495
|
-
var c, S, m, E, se,
|
|
496
|
-
if (
|
|
495
|
+
var c, S, m, E, se, Ye, D, ee, pe, M, Ie, J, Re, I, he = !1, Ue = !1, qe = [], ae, X, tt, nt, Ot, At, Se, fe, Oe, Ae = !1, Be = !1, We, O, ot = [], ft = !1, Ke = [], Qe = typeof document < "u", Ve = $t, Pt = ke || K ? "cssFloat" : "float", Wn = Qe && !kn && !$t && "draggable" in document.createElement("div"), Gt = function() {
|
|
496
|
+
if (Qe) {
|
|
497
497
|
if (K)
|
|
498
498
|
return !1;
|
|
499
499
|
var t = document.createElement("x");
|
|
500
500
|
return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
|
|
501
501
|
}
|
|
502
|
-
}(),
|
|
502
|
+
}(), Ut = function(e, n) {
|
|
503
503
|
var o = h(e), r = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), i = ve(e, 0, n), a = ve(e, 1, n), l = i && h(i), s = a && h(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + T(i).width, d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + T(a).width;
|
|
504
504
|
if (o.display === "flex")
|
|
505
505
|
return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
@@ -510,20 +510,20 @@ var c, S, m, E, se, $e, D, ee, pe, M, Ie, J, Le, I, he = !1, Ge = !1, Ue = [], a
|
|
|
510
510
|
return a && (s.clear === "both" || s.clear === f) ? "vertical" : "horizontal";
|
|
511
511
|
}
|
|
512
512
|
return i && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= r && o[Pt] === "none" || a && o[Pt] === "none" && u + d > r) ? "vertical" : "horizontal";
|
|
513
|
-
},
|
|
513
|
+
}, Hn = function(e, n, o) {
|
|
514
514
|
var r = o ? e.left : e.top, i = o ? e.right : e.bottom, a = o ? e.width : e.height, l = o ? n.left : n.top, s = o ? n.right : n.bottom, u = o ? n.width : n.height;
|
|
515
515
|
return r === l || i === s || r + a / 2 === l + u / 2;
|
|
516
|
-
},
|
|
516
|
+
}, jn = function(e, n) {
|
|
517
517
|
var o;
|
|
518
|
-
return
|
|
518
|
+
return qe.some(function(r) {
|
|
519
519
|
var i = r[L].options.emptyInsertThreshold;
|
|
520
|
-
if (!(!i ||
|
|
520
|
+
if (!(!i || _t(r))) {
|
|
521
521
|
var a = T(r), l = e >= a.left - i && e <= a.right + i, s = n >= a.top - i && n <= a.bottom + i;
|
|
522
522
|
if (l && s)
|
|
523
523
|
return o = r;
|
|
524
524
|
}
|
|
525
525
|
}), o;
|
|
526
|
-
},
|
|
526
|
+
}, qt = function(e) {
|
|
527
527
|
function n(i, a) {
|
|
528
528
|
return function(l, s, u, d) {
|
|
529
529
|
var f = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
|
|
@@ -540,22 +540,22 @@ var c, S, m, E, se, $e, D, ee, pe, M, Ie, J, Le, I, he = !1, Ge = !1, Ue = [], a
|
|
|
540
540
|
};
|
|
541
541
|
}
|
|
542
542
|
var o = {}, r = e.group;
|
|
543
|
-
(!r ||
|
|
543
|
+
(!r || $e(r) != "object") && (r = {
|
|
544
544
|
name: r
|
|
545
545
|
}), o.name = r.name, o.checkPull = n(r.pull, !0), o.checkPut = n(r.put), o.revertClone = r.revertClone, e.group = o;
|
|
546
|
-
},
|
|
547
|
-
!
|
|
548
|
-
},
|
|
549
|
-
!
|
|
546
|
+
}, Kt = function() {
|
|
547
|
+
!Gt && m && h(m, "display", "none");
|
|
548
|
+
}, Zt = function() {
|
|
549
|
+
!Gt && m && h(m, "display", "");
|
|
550
550
|
};
|
|
551
|
-
|
|
552
|
-
if (
|
|
553
|
-
return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(),
|
|
551
|
+
Qe && document.addEventListener("click", function(t) {
|
|
552
|
+
if (Ue)
|
|
553
|
+
return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), Ue = !1, !1;
|
|
554
554
|
}, !0);
|
|
555
555
|
var le = function(e) {
|
|
556
556
|
if (c) {
|
|
557
557
|
e = e.touches ? e.touches[0] : e;
|
|
558
|
-
var n =
|
|
558
|
+
var n = jn(e.clientX, e.clientY);
|
|
559
559
|
if (n) {
|
|
560
560
|
var o = {};
|
|
561
561
|
for (var r in e)
|
|
@@ -563,7 +563,7 @@ var le = function(e) {
|
|
|
563
563
|
o.target = o.rootEl = n, o.preventDefault = void 0, o.stopPropagation = void 0, n[L]._onDragOver(o);
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
},
|
|
566
|
+
}, zn = function(e) {
|
|
567
567
|
c && c.parentNode[L]._isOutsideThisEl(e.target);
|
|
568
568
|
};
|
|
569
569
|
function p(t, e) {
|
|
@@ -585,7 +585,7 @@ function p(t, e) {
|
|
|
585
585
|
// will be set to same as swapThreshold if default
|
|
586
586
|
removeCloneOnHide: !0,
|
|
587
587
|
direction: function() {
|
|
588
|
-
return
|
|
588
|
+
return Ut(t, this.options);
|
|
589
589
|
},
|
|
590
590
|
ghostClass: "sortable-ghost",
|
|
591
591
|
chosenClass: "sortable-chosen",
|
|
@@ -618,10 +618,10 @@ function p(t, e) {
|
|
|
618
618
|
Fe.initializePlugins(this, t, n);
|
|
619
619
|
for (var o in n)
|
|
620
620
|
!(o in e) && (e[o] = n[o]);
|
|
621
|
-
|
|
621
|
+
qt(e);
|
|
622
622
|
for (var r in this)
|
|
623
623
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
624
|
-
this.nativeDraggable = e.forceFallback ? !1 :
|
|
624
|
+
this.nativeDraggable = e.forceFallback ? !1 : Wn, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? _(t, "pointerdown", this._onTapStart) : (_(t, "mousedown", this._onTapStart), _(t, "touchstart", this._onTapStart)), this.nativeDraggable && (_(t, "dragover", this), _(t, "dragenter", this)), qe.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), q(this, Bn());
|
|
625
625
|
}
|
|
626
626
|
p.prototype = /** @lends Sortable.prototype */
|
|
627
627
|
{
|
|
@@ -635,7 +635,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
635
635
|
_onTapStart: function(e) {
|
|
636
636
|
if (e.cancelable) {
|
|
637
637
|
var n = this, o = this.el, r = this.options, i = r.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, d = r.filter;
|
|
638
|
-
if (
|
|
638
|
+
if (eo(o), !c && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Te && s && s.tagName.toUpperCase() === "SELECT") && (s = W(s, r.draggable, o, !1), !(s && s.animated) && Ye !== s)) {
|
|
639
639
|
if (pe = R(s), Ie = R(s, r.draggable), typeof d == "function") {
|
|
640
640
|
if (d.call(this, e, s, this)) {
|
|
641
641
|
P({
|
|
@@ -674,7 +674,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
674
674
|
var r = this, i = r.el, a = r.options, l = i.ownerDocument, s;
|
|
675
675
|
if (o && !c && o.parentNode === i) {
|
|
676
676
|
var u = T(o);
|
|
677
|
-
if (E = i, c = o, S = c.parentNode, se = c.nextSibling,
|
|
677
|
+
if (E = i, c = o, S = c.parentNode, se = c.nextSibling, Ye = o, Re = a.group, p.dragged = c, ae = {
|
|
678
678
|
target: c,
|
|
679
679
|
clientX: (n || e).clientX,
|
|
680
680
|
clientY: (n || e).clientY
|
|
@@ -691,15 +691,15 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
691
691
|
originalEvent: e
|
|
692
692
|
}), F(c, a.chosenClass, !0);
|
|
693
693
|
}, a.ignore.split(",").forEach(function(d) {
|
|
694
|
-
|
|
695
|
-
}),
|
|
694
|
+
Wt(c, d.trim(), rt);
|
|
695
|
+
}), _(l, "dragover", le), _(l, "mousemove", le), _(l, "touchmove", le), _(l, "mouseup", r._onDrop), _(l, "touchend", r._onDrop), _(l, "touchcancel", r._onDrop), Ct && this.nativeDraggable && (this.options.touchStartThreshold = 4, c.draggable = !0), N("delayStart", this, {
|
|
696
696
|
evt: e
|
|
697
697
|
}), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(ke || K))) {
|
|
698
698
|
if (p.eventCanceled) {
|
|
699
699
|
this._onDrop();
|
|
700
700
|
return;
|
|
701
701
|
}
|
|
702
|
-
|
|
702
|
+
_(l, "mouseup", r._disableDelayedDrag), _(l, "touchend", r._disableDelayedDrag), _(l, "touchcancel", r._disableDelayedDrag), _(l, "mousemove", r._delayedDragTouchMoveHandler), _(l, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && _(l, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
|
|
703
703
|
} else
|
|
704
704
|
s();
|
|
705
705
|
}
|
|
@@ -716,9 +716,9 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
716
716
|
b(e, "mouseup", this._disableDelayedDrag), b(e, "touchend", this._disableDelayedDrag), b(e, "touchcancel", this._disableDelayedDrag), b(e, "mousemove", this._delayedDragTouchMoveHandler), b(e, "touchmove", this._delayedDragTouchMoveHandler), b(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
717
717
|
},
|
|
718
718
|
_triggerDragStart: function(e, n) {
|
|
719
|
-
n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ?
|
|
719
|
+
n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ? _(document, "pointermove", this._onTouchMove) : n ? _(document, "touchmove", this._onTouchMove) : _(document, "mousemove", this._onTouchMove) : (_(c, "dragend", this), _(E, "dragstart", this._onDragStart));
|
|
720
720
|
try {
|
|
721
|
-
document.selection ?
|
|
721
|
+
document.selection ? He(function() {
|
|
722
722
|
document.selection.empty();
|
|
723
723
|
}) : window.getSelection().removeAllRanges();
|
|
724
724
|
} catch {
|
|
@@ -728,7 +728,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
728
728
|
if (he = !1, E && c) {
|
|
729
729
|
N("dragStarted", this, {
|
|
730
730
|
evt: n
|
|
731
|
-
}), this.nativeDraggable &&
|
|
731
|
+
}), this.nativeDraggable && _(document, "dragover", zn);
|
|
732
732
|
var o = this.options;
|
|
733
733
|
!e && F(c, o.dragClass, !1), F(c, o.ghostClass, !0), p.active = this, e && this._appendGhost(), P({
|
|
734
734
|
sortable: this,
|
|
@@ -740,7 +740,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
740
740
|
},
|
|
741
741
|
_emulateDragOver: function() {
|
|
742
742
|
if (X) {
|
|
743
|
-
this._lastX = X.clientX, this._lastY = X.clientY,
|
|
743
|
+
this._lastX = X.clientX, this._lastY = X.clientY, Kt();
|
|
744
744
|
for (var e = document.elementFromPoint(X.clientX, X.clientY), n = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(X.clientX, X.clientY), e !== n); )
|
|
745
745
|
n = e;
|
|
746
746
|
if (c.parentNode[L]._isOutsideThisEl(e), n)
|
|
@@ -757,12 +757,12 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
757
757
|
}
|
|
758
758
|
e = n;
|
|
759
759
|
} while (n = n.parentNode);
|
|
760
|
-
|
|
760
|
+
Zt();
|
|
761
761
|
}
|
|
762
762
|
},
|
|
763
763
|
_onTouchMove: function(e) {
|
|
764
764
|
if (ae) {
|
|
765
|
-
var n = this.options, o = n.fallbackTolerance, r = n.fallbackOffset, i = e.touches ? e.touches[0] : e, a = m && me(m, !0), l = m && a && a.a, s = m && a && a.d, u =
|
|
765
|
+
var n = this.options, o = n.fallbackTolerance, r = n.fallbackOffset, i = e.touches ? e.touches[0] : e, a = m && me(m, !0), l = m && a && a.a, s = m && a && a.d, u = Ve && O && It(O), d = (i.clientX - ae.clientX + r.x) / (l || 1) + (u ? u[0] - ot[0] : 0) / (l || 1), f = (i.clientY - ae.clientY + r.y) / (s || 1) + (u ? u[1] - ot[1] : 0) / (s || 1);
|
|
766
766
|
if (!p.active && !he) {
|
|
767
767
|
if (o && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < o)
|
|
768
768
|
return;
|
|
@@ -785,13 +785,13 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
785
785
|
},
|
|
786
786
|
_appendGhost: function() {
|
|
787
787
|
if (!m) {
|
|
788
|
-
var e = this.options.fallbackOnBody ? document.body : E, n = T(c, !0,
|
|
789
|
-
if (
|
|
788
|
+
var e = this.options.fallbackOnBody ? document.body : E, n = T(c, !0, Ve, !0, e), o = this.options;
|
|
789
|
+
if (Ve) {
|
|
790
790
|
for (O = e; h(O, "position") === "static" && h(O, "transform") === "none" && O !== document; )
|
|
791
791
|
O = O.parentNode;
|
|
792
792
|
O !== document.body && O !== document.documentElement ? (O === document && (O = H()), n.top += O.scrollTop, n.left += O.scrollLeft) : O = H(), ot = It(O);
|
|
793
793
|
}
|
|
794
|
-
m = c.cloneNode(!0), F(m, o.ghostClass, !1), F(m, o.fallbackClass, !0), F(m, o.dragClass, !0), h(m, "transition", ""), h(m, "transform", ""), h(m, "box-sizing", "border-box"), h(m, "margin", 0), h(m, "top", n.top), h(m, "left", n.left), h(m, "width", n.width), h(m, "height", n.height), h(m, "opacity", "0.8"), h(m, "position",
|
|
794
|
+
m = c.cloneNode(!0), F(m, o.ghostClass, !1), F(m, o.fallbackClass, !0), F(m, o.dragClass, !0), h(m, "transition", ""), h(m, "transform", ""), h(m, "box-sizing", "border-box"), h(m, "margin", 0), h(m, "top", n.top), h(m, "left", n.left), h(m, "width", n.width), h(m, "height", n.height), h(m, "opacity", "0.8"), h(m, "position", Ve ? "absolute" : "fixed"), h(m, "zIndex", "100000"), h(m, "pointerEvents", "none"), p.ghost = m, e.appendChild(m), h(m, "transform-origin", Ot / parseInt(m.style.width) * 100 + "% " + At / parseInt(m.style.height) * 100 + "%");
|
|
795
795
|
}
|
|
796
796
|
},
|
|
797
797
|
_onDragStart: function(e, n) {
|
|
@@ -802,18 +802,18 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
802
802
|
this._onDrop();
|
|
803
803
|
return;
|
|
804
804
|
}
|
|
805
|
-
N("setupClone", this), p.eventCanceled || (D =
|
|
805
|
+
N("setupClone", this), p.eventCanceled || (D = zt(c), D.draggable = !1, D.style["will-change"] = "", this._hideClone(), F(D, this.options.chosenClass, !1), p.clone = D), o.cloneId = He(function() {
|
|
806
806
|
N("clone", o), !p.eventCanceled && (o.options.removeCloneOnHide || E.insertBefore(D, c), o._hideClone(), P({
|
|
807
807
|
sortable: o,
|
|
808
808
|
name: "clone"
|
|
809
809
|
}));
|
|
810
|
-
}), !n && F(c, i.dragClass, !0), n ? (
|
|
810
|
+
}), !n && F(c, i.dragClass, !0), n ? (Ue = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (b(document, "mouseup", o._onDrop), b(document, "touchend", o._onDrop), b(document, "touchcancel", o._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(o, r, c)), _(document, "drop", o), h(c, "transform", "translateZ(0)")), he = !0, o._dragStartId = He(o._dragStarted.bind(o, n, e)), _(document, "selectstart", o), Se = !0, Te && h(document.body, "user-select", "none");
|
|
811
811
|
},
|
|
812
812
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
813
813
|
_onDragOver: function(e) {
|
|
814
|
-
var n = this.el, o = e.target, r, i, a, l = this.options, s = l.group, u = p.active, d =
|
|
814
|
+
var n = this.el, o = e.target, r, i, a, l = this.options, s = l.group, u = p.active, d = Re === s, f = l.sort, g = I || u, w, v = this, y = !1;
|
|
815
815
|
if (ft) return;
|
|
816
|
-
function B(Ee,
|
|
816
|
+
function B(Ee, sn) {
|
|
817
817
|
N(Ee, v, j({
|
|
818
818
|
evt: e,
|
|
819
819
|
isOwner: d,
|
|
@@ -825,11 +825,11 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
825
825
|
fromSortable: g,
|
|
826
826
|
target: o,
|
|
827
827
|
completed: A,
|
|
828
|
-
onMove: function(Et,
|
|
829
|
-
return
|
|
828
|
+
onMove: function(Et, un) {
|
|
829
|
+
return Xe(E, n, c, r, Et, T(Et), e, un);
|
|
830
830
|
},
|
|
831
831
|
changed: V
|
|
832
|
-
},
|
|
832
|
+
}, sn));
|
|
833
833
|
}
|
|
834
834
|
function z() {
|
|
835
835
|
B("dragOverAnimationCapture"), v.captureAnimationState(), v !== g && g.captureAnimationState();
|
|
@@ -839,7 +839,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
839
839
|
insertion: Ee
|
|
840
840
|
}), Ee && (d ? u._hideClone() : u._showClone(v), v !== g && (F(c, I ? I.options.ghostClass : u.options.ghostClass, !1), F(c, l.ghostClass, !0)), I !== v && v !== p.active ? I = v : v === p.active && I && (I = null), g === v && (v._ignoreWhileAnimating = o), v.animateAll(function() {
|
|
841
841
|
B("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
|
|
842
|
-
}), v !== g && (g.animateAll(), g._ignoreWhileAnimating = null)), (o === c && !c.animated || o === n && !o.animated) && (fe = null), !l.dragoverBubble && !e.rootEl && o !== document && (c.parentNode[L]._isOutsideThisEl(e.target), !Ee && le(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(),
|
|
842
|
+
}), v !== g && (g.animateAll(), g._ignoreWhileAnimating = null)), (o === c && !c.animated || o === n && !o.animated) && (fe = null), !l.dragoverBubble && !e.rootEl && o !== document && (c.parentNode[L]._isOutsideThisEl(e.target), !Ee && le(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), y = !0;
|
|
843
843
|
}
|
|
844
844
|
function V() {
|
|
845
845
|
M = R(c), J = R(c, l.draggable), P({
|
|
@@ -851,29 +851,29 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
851
851
|
originalEvent: e
|
|
852
852
|
});
|
|
853
853
|
}
|
|
854
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = W(o, l.draggable, n, !0), B("dragOver"), p.eventCanceled) return
|
|
854
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = W(o, l.draggable, n, !0), B("dragOver"), p.eventCanceled) return y;
|
|
855
855
|
if (c.contains(e.target) || o.animated && o.animatingX && o.animatingY || v._ignoreWhileAnimating === o)
|
|
856
856
|
return A(!1);
|
|
857
|
-
if (
|
|
858
|
-
if (w = this._getDirection(e, o) === "vertical", r = T(c), B("dragOverValid"), p.eventCanceled) return
|
|
857
|
+
if (Ue = !1, u && !l.disabled && (d ? f || (a = S !== E) : I === this || (this.lastPutMode = Re.checkPull(this, u, c, e)) && s.checkPut(this, u, c, e))) {
|
|
858
|
+
if (w = this._getDirection(e, o) === "vertical", r = T(c), B("dragOverValid"), p.eventCanceled) return y;
|
|
859
859
|
if (a)
|
|
860
860
|
return S = E, z(), this._hideClone(), B("revert"), p.eventCanceled || (se ? E.insertBefore(c, se) : E.appendChild(c)), A(!0);
|
|
861
|
-
var $ =
|
|
862
|
-
if (!$ ||
|
|
861
|
+
var $ = _t(n, l.draggable);
|
|
862
|
+
if (!$ || Kn(e, w, this) && !$.animated) {
|
|
863
863
|
if ($ === c)
|
|
864
864
|
return A(!1);
|
|
865
|
-
if ($ && n === e.target && (o = $), o && (i = T(o)),
|
|
865
|
+
if ($ && n === e.target && (o = $), o && (i = T(o)), Xe(E, n, c, r, o, i, e, !!o) !== !1)
|
|
866
866
|
return z(), n.appendChild(c), S = n, V(), A(!0);
|
|
867
|
-
} else if ($ &&
|
|
867
|
+
} else if ($ && qn(e, w, this)) {
|
|
868
868
|
var oe = ve(n, 0, l, !0);
|
|
869
869
|
if (oe === c)
|
|
870
870
|
return A(!1);
|
|
871
|
-
if (o = oe, i = T(o),
|
|
871
|
+
if (o = oe, i = T(o), Xe(E, n, c, r, o, i, e, !1) !== !1)
|
|
872
872
|
return z(), n.insertBefore(c, oe), S = n, V(), A(!0);
|
|
873
873
|
} else if (o.parentNode === n) {
|
|
874
874
|
i = T(o);
|
|
875
|
-
var Y = 0, re, be = c.parentNode !== n, k = !
|
|
876
|
-
fe !== o && (re = i[
|
|
875
|
+
var Y = 0, re, be = c.parentNode !== n, k = !Hn(c.animated && c.toRect || r, o.animated && o.toRect || i, w), _e = w ? "top" : "left", Z = xt(o, "top", "top") || xt(c, "top", "top"), ye = Z ? Z.scrollTop : void 0;
|
|
876
|
+
fe !== o && (re = i[_e], Ae = !1, Be = !k && l.invertSwap || be), Y = Zn(e, o, i, w, k ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Be, fe === o);
|
|
877
877
|
var G;
|
|
878
878
|
if (Y !== 0) {
|
|
879
879
|
var ie = R(c);
|
|
@@ -886,9 +886,9 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
886
886
|
fe = o, Oe = Y;
|
|
887
887
|
var we = o.nextElementSibling, Q = !1;
|
|
888
888
|
Q = Y === 1;
|
|
889
|
-
var Me =
|
|
889
|
+
var Me = Xe(E, n, c, r, o, i, e, Q);
|
|
890
890
|
if (Me !== !1)
|
|
891
|
-
return (Me === 1 || Me === -1) && (Q = Me === 1), ft = !0, setTimeout(
|
|
891
|
+
return (Me === 1 || Me === -1) && (Q = Me === 1), ft = !0, setTimeout(Un, 30), z(), Q && !we ? n.appendChild(c) : o.parentNode.insertBefore(c, Q ? we : o), Z && jt(Z, 0, ye - Z.scrollTop), S = c.parentNode, re !== void 0 && !Be && (We = Math.abs(re - T(o)[_e])), V(), A(!0);
|
|
892
892
|
}
|
|
893
893
|
if (n.contains(c))
|
|
894
894
|
return A(!1);
|
|
@@ -911,7 +911,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
911
911
|
this._nulling();
|
|
912
912
|
return;
|
|
913
913
|
}
|
|
914
|
-
he = !1,
|
|
914
|
+
he = !1, Be = !1, Ae = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ht(this.cloneId), ht(this._dragStartId), this.nativeDraggable && (b(document, "drop", this), b(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Te && h(document.body, "user-select", ""), h(c, "transform", ""), e && (Se && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), m && m.parentNode && m.parentNode.removeChild(m), (E === S || I && I.lastPutMode !== "clone") && D && D.parentNode && D.parentNode.removeChild(D), c && (this.nativeDraggable && b(c, "dragend", this), rt(c), c.style["will-change"] = "", Se && !he && F(c, I ? I.options.ghostClass : this.options.ghostClass, !1), F(c, this.options.chosenClass, !1), P({
|
|
915
915
|
sortable: this,
|
|
916
916
|
name: "unchoose",
|
|
917
917
|
toEl: S,
|
|
@@ -958,9 +958,9 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
958
958
|
}), this.save()))), this._nulling();
|
|
959
959
|
},
|
|
960
960
|
_nulling: function() {
|
|
961
|
-
N("nulling", this), E = c = S = m = se = D =
|
|
961
|
+
N("nulling", this), E = c = S = m = se = D = Ye = ee = ae = X = Se = M = J = pe = Ie = fe = Oe = I = Re = p.dragged = p.ghost = p.clone = p.active = null, Ke.forEach(function(e) {
|
|
962
962
|
e.checked = !0;
|
|
963
|
-
}),
|
|
963
|
+
}), Ke.length = tt = nt = 0;
|
|
964
964
|
},
|
|
965
965
|
handleEvent: function(e) {
|
|
966
966
|
switch (e.type) {
|
|
@@ -970,7 +970,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
970
970
|
break;
|
|
971
971
|
case "dragenter":
|
|
972
972
|
case "dragover":
|
|
973
|
-
c && (this._onDragOver(e),
|
|
973
|
+
c && (this._onDragOver(e), Gn(e));
|
|
974
974
|
break;
|
|
975
975
|
case "selectstart":
|
|
976
976
|
e.preventDefault();
|
|
@@ -983,7 +983,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
983
983
|
*/
|
|
984
984
|
toArray: function() {
|
|
985
985
|
for (var e = [], n, o = this.el.children, r = 0, i = o.length, a = this.options; r < i; r++)
|
|
986
|
-
n = o[r], W(n, a.draggable, this.el, !1) && e.push(n.getAttribute(a.dataIdAttr) ||
|
|
986
|
+
n = o[r], W(n, a.draggable, this.el, !1) && e.push(n.getAttribute(a.dataIdAttr) || Jn(n));
|
|
987
987
|
return e;
|
|
988
988
|
},
|
|
989
989
|
/**
|
|
@@ -1026,7 +1026,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
1026
1026
|
if (n === void 0)
|
|
1027
1027
|
return o[e];
|
|
1028
1028
|
var r = Fe.modifyOption(this, e, n);
|
|
1029
|
-
typeof r < "u" ? o[e] = r : o[e] = n, e === "group" &&
|
|
1029
|
+
typeof r < "u" ? o[e] = r : o[e] = n, e === "group" && qt(o);
|
|
1030
1030
|
},
|
|
1031
1031
|
/**
|
|
1032
1032
|
* Destroy
|
|
@@ -1036,7 +1036,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
1036
1036
|
var e = this.el;
|
|
1037
1037
|
e[L] = null, b(e, "mousedown", this._onTapStart), b(e, "touchstart", this._onTapStart), b(e, "pointerdown", this._onTapStart), this.nativeDraggable && (b(e, "dragover", this), b(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(n) {
|
|
1038
1038
|
n.removeAttribute("draggable");
|
|
1039
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
1039
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), qe.splice(qe.indexOf(this.el), 1), this.el = e = null;
|
|
1040
1040
|
},
|
|
1041
1041
|
_hideClone: function() {
|
|
1042
1042
|
if (!ee) {
|
|
@@ -1055,10 +1055,10 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
1055
1055
|
}
|
|
1056
1056
|
}
|
|
1057
1057
|
};
|
|
1058
|
-
function
|
|
1058
|
+
function Gn(t) {
|
|
1059
1059
|
t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function Xe(t, e, n, o, r, i, a, l) {
|
|
1062
1062
|
var s, u = t[L], d = u.options.onMove, f;
|
|
1063
1063
|
return window.CustomEvent && !K && !ke ? s = new CustomEvent("move", {
|
|
1064
1064
|
bubbles: !0,
|
|
@@ -1068,71 +1068,71 @@ function Ve(t, e, n, o, r, i, a, l) {
|
|
|
1068
1068
|
function rt(t) {
|
|
1069
1069
|
t.draggable = !1;
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1071
|
+
function Un() {
|
|
1072
1072
|
ft = !1;
|
|
1073
1073
|
}
|
|
1074
|
-
function
|
|
1074
|
+
function qn(t, e, n) {
|
|
1075
1075
|
var o = T(ve(n.el, 0, n.options, !0)), r = 10;
|
|
1076
1076
|
return e ? t.clientX < o.left - r || t.clientY < o.top && t.clientX < o.right : t.clientY < o.top - r || t.clientY < o.bottom && t.clientX < o.left;
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1079
|
-
var o = T(
|
|
1078
|
+
function Kn(t, e, n) {
|
|
1079
|
+
var o = T(_t(n.el, n.options.draggable)), r = 10;
|
|
1080
1080
|
return e ? t.clientX > o.right + r || t.clientX <= o.right && t.clientY > o.bottom && t.clientX >= o.left : t.clientX > o.right && t.clientY > o.top || t.clientX <= o.right && t.clientY > o.bottom + r;
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function Zn(t, e, n, o, r, i, a, l) {
|
|
1083
1083
|
var s = o ? t.clientY : t.clientX, u = o ? n.height : n.width, d = o ? n.top : n.left, f = o ? n.bottom : n.right, g = !1;
|
|
1084
1084
|
if (!a) {
|
|
1085
|
-
if (l &&
|
|
1085
|
+
if (l && We < u * r) {
|
|
1086
1086
|
if (!Ae && (Oe === 1 ? s > d + u * i / 2 : s < f - u * i / 2) && (Ae = !0), Ae)
|
|
1087
1087
|
g = !0;
|
|
1088
|
-
else if (Oe === 1 ? s < d +
|
|
1088
|
+
else if (Oe === 1 ? s < d + We : s > f - We)
|
|
1089
1089
|
return -Oe;
|
|
1090
1090
|
} else if (s > d + u * (1 - r) / 2 && s < f - u * (1 - r) / 2)
|
|
1091
|
-
return
|
|
1091
|
+
return Qn(e);
|
|
1092
1092
|
}
|
|
1093
1093
|
return g = g || a, g && (s < d + u * i / 2 || s > f - u * i / 2) ? s > d + u / 2 ? 1 : -1 : 0;
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function Qn(t) {
|
|
1096
1096
|
return R(c) < R(t) ? 1 : -1;
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function Jn(t) {
|
|
1099
1099
|
for (var e = t.tagName + t.className + t.src + t.href + t.textContent, n = e.length, o = 0; n--; )
|
|
1100
1100
|
o += e.charCodeAt(n);
|
|
1101
1101
|
return o.toString(36);
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1104
|
-
|
|
1103
|
+
function eo(t) {
|
|
1104
|
+
Ke.length = 0;
|
|
1105
1105
|
for (var e = t.getElementsByTagName("input"), n = e.length; n--; ) {
|
|
1106
1106
|
var o = e[n];
|
|
1107
|
-
o.checked &&
|
|
1107
|
+
o.checked && Ke.push(o);
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
|
-
function
|
|
1110
|
+
function He(t) {
|
|
1111
1111
|
return setTimeout(t, 0);
|
|
1112
1112
|
}
|
|
1113
1113
|
function ht(t) {
|
|
1114
1114
|
return clearTimeout(t);
|
|
1115
1115
|
}
|
|
1116
|
-
|
|
1116
|
+
Qe && _(document, "touchmove", function(t) {
|
|
1117
1117
|
(p.active || he) && t.cancelable && t.preventDefault();
|
|
1118
1118
|
});
|
|
1119
1119
|
p.utils = {
|
|
1120
|
-
on:
|
|
1120
|
+
on: _,
|
|
1121
1121
|
off: b,
|
|
1122
1122
|
css: h,
|
|
1123
|
-
find:
|
|
1123
|
+
find: Wt,
|
|
1124
1124
|
is: function(e, n) {
|
|
1125
1125
|
return !!W(e, n, e, !1);
|
|
1126
1126
|
},
|
|
1127
|
-
extend:
|
|
1128
|
-
throttle:
|
|
1127
|
+
extend: Ln,
|
|
1128
|
+
throttle: Ht,
|
|
1129
1129
|
closest: W,
|
|
1130
1130
|
toggleClass: F,
|
|
1131
|
-
clone:
|
|
1131
|
+
clone: zt,
|
|
1132
1132
|
index: R,
|
|
1133
|
-
nextTick:
|
|
1133
|
+
nextTick: He,
|
|
1134
1134
|
cancelNextTick: ht,
|
|
1135
|
-
detectDirection:
|
|
1135
|
+
detectDirection: Ut,
|
|
1136
1136
|
getChild: ve
|
|
1137
1137
|
};
|
|
1138
1138
|
p.get = function(t) {
|
|
@@ -1150,9 +1150,9 @@ p.mount = function() {
|
|
|
1150
1150
|
p.create = function(t, e) {
|
|
1151
1151
|
return new p(t, e);
|
|
1152
1152
|
};
|
|
1153
|
-
p.version =
|
|
1154
|
-
var C = [], De, pt, mt = !1, it, at,
|
|
1155
|
-
function
|
|
1153
|
+
p.version = Nn;
|
|
1154
|
+
var C = [], De, pt, mt = !1, it, at, Ze, Ce;
|
|
1155
|
+
function to() {
|
|
1156
1156
|
function t() {
|
|
1157
1157
|
this.defaults = {
|
|
1158
1158
|
scroll: !0,
|
|
@@ -1167,33 +1167,33 @@ function eo() {
|
|
|
1167
1167
|
return t.prototype = {
|
|
1168
1168
|
dragStarted: function(n) {
|
|
1169
1169
|
var o = n.originalEvent;
|
|
1170
|
-
this.sortable.nativeDraggable ?
|
|
1170
|
+
this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? _(document, "pointermove", this._handleFallbackAutoScroll) : o.touches ? _(document, "touchmove", this._handleFallbackAutoScroll) : _(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1171
1171
|
},
|
|
1172
1172
|
dragOverCompleted: function(n) {
|
|
1173
1173
|
var o = n.originalEvent;
|
|
1174
1174
|
!this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
|
|
1175
1175
|
},
|
|
1176
1176
|
drop: function() {
|
|
1177
|
-
this.sortable.nativeDraggable ? b(document, "dragover", this._handleAutoScroll) : (b(document, "pointermove", this._handleFallbackAutoScroll), b(document, "touchmove", this._handleFallbackAutoScroll), b(document, "mousemove", this._handleFallbackAutoScroll)), Nt(),
|
|
1177
|
+
this.sortable.nativeDraggable ? b(document, "dragover", this._handleAutoScroll) : (b(document, "pointermove", this._handleFallbackAutoScroll), b(document, "touchmove", this._handleFallbackAutoScroll), b(document, "mousemove", this._handleFallbackAutoScroll)), Nt(), je(), Rn();
|
|
1178
1178
|
},
|
|
1179
1179
|
nulling: function() {
|
|
1180
|
-
|
|
1180
|
+
Ze = pt = De = mt = Ce = it = at = null, C.length = 0;
|
|
1181
1181
|
},
|
|
1182
1182
|
_handleFallbackAutoScroll: function(n) {
|
|
1183
1183
|
this._handleAutoScroll(n, !0);
|
|
1184
1184
|
},
|
|
1185
1185
|
_handleAutoScroll: function(n, o) {
|
|
1186
1186
|
var r = this, i = (n.touches ? n.touches[0] : n).clientX, a = (n.touches ? n.touches[0] : n).clientY, l = document.elementFromPoint(i, a);
|
|
1187
|
-
if (
|
|
1187
|
+
if (Ze = n, o || this.options.forceAutoScrollFallback || ke || K || Te) {
|
|
1188
1188
|
lt(n, this.options, l, o);
|
|
1189
1189
|
var s = te(l, !0);
|
|
1190
1190
|
mt && (!Ce || i !== it || a !== at) && (Ce && Nt(), Ce = setInterval(function() {
|
|
1191
1191
|
var u = te(document.elementFromPoint(i, a), !0);
|
|
1192
|
-
u !== s && (s = u,
|
|
1192
|
+
u !== s && (s = u, je()), lt(n, r.options, u, o);
|
|
1193
1193
|
}, 10), it = i, at = a);
|
|
1194
1194
|
} else {
|
|
1195
1195
|
if (!this.options.bubbleScroll || te(l, !0) === H()) {
|
|
1196
|
-
|
|
1196
|
+
je();
|
|
1197
1197
|
return;
|
|
1198
1198
|
}
|
|
1199
1199
|
lt(n, this.options, te(l, !1), !1);
|
|
@@ -1204,7 +1204,7 @@ function eo() {
|
|
|
1204
1204
|
initializeByDefault: !0
|
|
1205
1205
|
});
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1207
|
+
function je() {
|
|
1208
1208
|
C.forEach(function(t) {
|
|
1209
1209
|
clearInterval(t.pid);
|
|
1210
1210
|
}), C = [];
|
|
@@ -1212,29 +1212,29 @@ function He() {
|
|
|
1212
1212
|
function Nt() {
|
|
1213
1213
|
clearInterval(Ce);
|
|
1214
1214
|
}
|
|
1215
|
-
var lt =
|
|
1215
|
+
var lt = Ht(function(t, e, n, o) {
|
|
1216
1216
|
if (e.scroll) {
|
|
1217
1217
|
var r = (t.touches ? t.touches[0] : t).clientX, i = (t.touches ? t.touches[0] : t).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = H(), u = !1, d;
|
|
1218
|
-
pt !== n && (pt = n,
|
|
1218
|
+
pt !== n && (pt = n, je(), De = e.scroll, d = e.scrollFn, De === !0 && (De = te(n, !0)));
|
|
1219
1219
|
var f = 0, g = De;
|
|
1220
1220
|
do {
|
|
1221
|
-
var w = g, v = T(w),
|
|
1221
|
+
var w = g, v = T(w), y = v.top, B = v.bottom, z = v.left, A = v.right, V = v.width, $ = v.height, oe = void 0, Y = void 0, re = w.scrollWidth, be = w.scrollHeight, k = h(w), _e = w.scrollLeft, Z = w.scrollTop;
|
|
1222
1222
|
w === s ? (oe = V < re && (k.overflowX === "auto" || k.overflowX === "scroll" || k.overflowX === "visible"), Y = $ < be && (k.overflowY === "auto" || k.overflowY === "scroll" || k.overflowY === "visible")) : (oe = V < re && (k.overflowX === "auto" || k.overflowX === "scroll"), Y = $ < be && (k.overflowY === "auto" || k.overflowY === "scroll"));
|
|
1223
|
-
var
|
|
1223
|
+
var ye = oe && (Math.abs(A - r) <= a && _e + V < re) - (Math.abs(z - r) <= a && !!_e), G = Y && (Math.abs(B - i) <= a && Z + $ < be) - (Math.abs(y - i) <= a && !!Z);
|
|
1224
1224
|
if (!C[f])
|
|
1225
1225
|
for (var ie = 0; ie <= f; ie++)
|
|
1226
1226
|
C[ie] || (C[ie] = {});
|
|
1227
|
-
(C[f].vx !=
|
|
1228
|
-
o && this.layer === 0 && p.active._onTouchMove(
|
|
1227
|
+
(C[f].vx != ye || C[f].vy != G || C[f].el !== w) && (C[f].el = w, C[f].vx = ye, C[f].vy = G, clearInterval(C[f].pid), (ye != 0 || G != 0) && (u = !0, C[f].pid = setInterval((function() {
|
|
1228
|
+
o && this.layer === 0 && p.active._onTouchMove(Ze);
|
|
1229
1229
|
var we = C[this.layer].vy ? C[this.layer].vy * l : 0, Q = C[this.layer].vx ? C[this.layer].vx * l : 0;
|
|
1230
|
-
typeof d == "function" && d.call(p.dragged.parentNode[L], Q, we, t,
|
|
1230
|
+
typeof d == "function" && d.call(p.dragged.parentNode[L], Q, we, t, Ze, C[this.layer].el) !== "continue" || jt(C[this.layer].el, Q, we);
|
|
1231
1231
|
}).bind({
|
|
1232
1232
|
layer: f
|
|
1233
1233
|
}), 24))), f++;
|
|
1234
1234
|
} while (e.bubbleScroll && g !== s && (g = te(g, !1)));
|
|
1235
1235
|
mt = u;
|
|
1236
1236
|
}
|
|
1237
|
-
}, 30),
|
|
1237
|
+
}, 30), Qt = function(e) {
|
|
1238
1238
|
var n = e.originalEvent, o = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, l = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
1239
1239
|
if (n) {
|
|
1240
1240
|
var u = o || i;
|
|
@@ -1246,9 +1246,9 @@ var lt = Yt(function(t, e, n, o) {
|
|
|
1246
1246
|
}));
|
|
1247
1247
|
}
|
|
1248
1248
|
};
|
|
1249
|
-
function
|
|
1249
|
+
function yt() {
|
|
1250
1250
|
}
|
|
1251
|
-
|
|
1251
|
+
yt.prototype = {
|
|
1252
1252
|
startIndex: null,
|
|
1253
1253
|
dragStart: function(e) {
|
|
1254
1254
|
var n = e.oldDraggableIndex;
|
|
@@ -1260,9 +1260,9 @@ _t.prototype = {
|
|
|
1260
1260
|
var r = ve(this.sortable.el, this.startIndex, this.options);
|
|
1261
1261
|
r ? this.sortable.el.insertBefore(n, r) : this.sortable.el.appendChild(n), this.sortable.animateAll(), o && o.animateAll();
|
|
1262
1262
|
},
|
|
1263
|
-
drop:
|
|
1263
|
+
drop: Qt
|
|
1264
1264
|
};
|
|
1265
|
-
q(
|
|
1265
|
+
q(yt, {
|
|
1266
1266
|
pluginName: "revertOnSpill"
|
|
1267
1267
|
});
|
|
1268
1268
|
function wt() {
|
|
@@ -1272,13 +1272,13 @@ wt.prototype = {
|
|
|
1272
1272
|
var n = e.dragEl, o = e.putSortable, r = o || this.sortable;
|
|
1273
1273
|
r.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), r.animateAll();
|
|
1274
1274
|
},
|
|
1275
|
-
drop:
|
|
1275
|
+
drop: Qt
|
|
1276
1276
|
};
|
|
1277
1277
|
q(wt, {
|
|
1278
1278
|
pluginName: "removeOnSpill"
|
|
1279
1279
|
});
|
|
1280
|
-
p.mount(new
|
|
1281
|
-
p.mount(wt,
|
|
1280
|
+
p.mount(new to());
|
|
1281
|
+
p.mount(wt, yt);
|
|
1282
1282
|
function st(t) {
|
|
1283
1283
|
t.parentElement !== null && t.parentElement.removeChild(t);
|
|
1284
1284
|
}
|
|
@@ -1286,25 +1286,25 @@ function kt(t, e, n) {
|
|
|
1286
1286
|
const o = n === 0 ? t.children[0] : t.children[n - 1].nextSibling;
|
|
1287
1287
|
t.insertBefore(e, o);
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1289
|
+
function no() {
|
|
1290
1290
|
return typeof window < "u" ? window.console : global.console;
|
|
1291
1291
|
}
|
|
1292
|
-
const
|
|
1293
|
-
function
|
|
1292
|
+
const oo = no();
|
|
1293
|
+
function ro(t) {
|
|
1294
1294
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1295
1295
|
return function(o) {
|
|
1296
1296
|
return e[o] || (e[o] = t(o));
|
|
1297
1297
|
};
|
|
1298
1298
|
}
|
|
1299
|
-
const
|
|
1300
|
-
manage:
|
|
1301
|
-
manageAndEmit:
|
|
1302
|
-
emit:
|
|
1299
|
+
const io = /-(\w)/g, ao = ro((t) => t.replace(io, (e, n) => n.toUpperCase())), Jt = ["Start", "Add", "Remove", "Update", "End"], en = ["Choose", "Unchoose", "Sort", "Filter", "Clone"], tn = ["Move"], lo = [tn, Jt, en].flatMap((t) => t).map((t) => `on${t}`), gt = {
|
|
1300
|
+
manage: tn,
|
|
1301
|
+
manageAndEmit: Jt,
|
|
1302
|
+
emit: en
|
|
1303
1303
|
};
|
|
1304
|
-
function
|
|
1305
|
-
return
|
|
1304
|
+
function so(t) {
|
|
1305
|
+
return lo.indexOf(t) !== -1;
|
|
1306
1306
|
}
|
|
1307
|
-
const
|
|
1307
|
+
const uo = [
|
|
1308
1308
|
"a",
|
|
1309
1309
|
"abbr",
|
|
1310
1310
|
"address",
|
|
@@ -1423,28 +1423,28 @@ const so = [
|
|
|
1423
1423
|
"video",
|
|
1424
1424
|
"wbr"
|
|
1425
1425
|
];
|
|
1426
|
-
function uo(t) {
|
|
1427
|
-
return so.includes(t);
|
|
1428
|
-
}
|
|
1429
1426
|
function co(t) {
|
|
1427
|
+
return uo.includes(t);
|
|
1428
|
+
}
|
|
1429
|
+
function fo(t) {
|
|
1430
1430
|
return ["transition-group", "TransitionGroup"].includes(t);
|
|
1431
1431
|
}
|
|
1432
|
-
function
|
|
1432
|
+
function nn(t) {
|
|
1433
1433
|
return ["id", "class", "role", "style"].includes(t) || t.startsWith("data-") || t.startsWith("aria-") || t.startsWith("on");
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function on(t) {
|
|
1436
1436
|
return t.reduce((e, [n, o]) => (e[n] = o, e), {});
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1438
|
+
function ho({ $attrs: t, componentData: e = {} }) {
|
|
1439
1439
|
return {
|
|
1440
|
-
...
|
|
1441
|
-
Object.entries(t).filter(([o, r]) =>
|
|
1440
|
+
...on(
|
|
1441
|
+
Object.entries(t).filter(([o, r]) => nn(o))
|
|
1442
1442
|
),
|
|
1443
1443
|
...e
|
|
1444
1444
|
};
|
|
1445
1445
|
}
|
|
1446
|
-
function
|
|
1447
|
-
const n =
|
|
1446
|
+
function po({ $attrs: t, callBackBuilder: e }) {
|
|
1447
|
+
const n = on(rn(t));
|
|
1448
1448
|
Object.entries(e).forEach(([r, i]) => {
|
|
1449
1449
|
gt[r].forEach((a) => {
|
|
1450
1450
|
n[`on${a}`] = i(a);
|
|
@@ -1456,11 +1456,11 @@ function ho({ $attrs: t, callBackBuilder: e }) {
|
|
|
1456
1456
|
draggable: o
|
|
1457
1457
|
};
|
|
1458
1458
|
}
|
|
1459
|
-
function
|
|
1460
|
-
return Object.entries(t).filter(([e, n]) => !
|
|
1459
|
+
function rn(t) {
|
|
1460
|
+
return Object.entries(t).filter(([e, n]) => !nn(e)).map(([e, n]) => [ao(e), n]).filter(([e, n]) => !so(e));
|
|
1461
1461
|
}
|
|
1462
|
-
const Ft = ({ el: t }) => t,
|
|
1463
|
-
class
|
|
1462
|
+
const Ft = ({ el: t }) => t, mo = (t, e) => t.__draggable_context = e, Mt = (t) => t.__draggable_context;
|
|
1463
|
+
class go {
|
|
1464
1464
|
constructor({
|
|
1465
1465
|
nodes: { header: e, default: n, footer: o },
|
|
1466
1466
|
root: r,
|
|
@@ -1478,7 +1478,7 @@ class mo {
|
|
|
1478
1478
|
updated() {
|
|
1479
1479
|
const { defaultNodes: e, realList: n } = this;
|
|
1480
1480
|
e.forEach((o, r) => {
|
|
1481
|
-
|
|
1481
|
+
mo(Ft(o), {
|
|
1482
1482
|
element: n[r],
|
|
1483
1483
|
index: r
|
|
1484
1484
|
});
|
|
@@ -1502,13 +1502,13 @@ class mo {
|
|
|
1502
1502
|
return e < u ? 0 : r;
|
|
1503
1503
|
}
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1505
|
+
function vo(t, e) {
|
|
1506
1506
|
const n = t[e];
|
|
1507
1507
|
return n ? n() : [];
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1509
|
+
function bo({ $slots: t, realList: e, getKey: n }) {
|
|
1510
1510
|
const o = e || [], [r, i] = ["header", "footer"].map(
|
|
1511
|
-
(s) =>
|
|
1511
|
+
(s) => vo(t, s)
|
|
1512
1512
|
), { item: a } = t;
|
|
1513
1513
|
if (!a)
|
|
1514
1514
|
throw new Error("draggable element must have an item slot");
|
|
@@ -1523,35 +1523,35 @@ function vo({ $slots: t, realList: e, getKey: n }) {
|
|
|
1523
1523
|
default: l
|
|
1524
1524
|
};
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1527
|
-
const e =
|
|
1526
|
+
function _o(t) {
|
|
1527
|
+
const e = fo(t), n = !co(t) && !e;
|
|
1528
1528
|
return {
|
|
1529
1529
|
transition: e,
|
|
1530
1530
|
externalComponent: n,
|
|
1531
|
-
tag: n ? ge(t) : e ?
|
|
1531
|
+
tag: n ? ge(t) : e ? hn : t
|
|
1532
1532
|
};
|
|
1533
1533
|
}
|
|
1534
1534
|
function yo({ $slots: t, tag: e, realList: n, getKey: o }) {
|
|
1535
|
-
const r =
|
|
1536
|
-
return new
|
|
1535
|
+
const r = bo({ $slots: t, realList: n, getKey: o }), i = _o(e);
|
|
1536
|
+
return new go({ nodes: r, root: i, realList: n });
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1539
|
-
|
|
1538
|
+
function an(t, e) {
|
|
1539
|
+
Bt(() => this.$emit(t.toLowerCase(), e));
|
|
1540
1540
|
}
|
|
1541
|
-
function
|
|
1541
|
+
function ln(t) {
|
|
1542
1542
|
return (e, n) => {
|
|
1543
1543
|
if (this.realList !== null)
|
|
1544
1544
|
return this[`onDrag${t}`](e, n);
|
|
1545
1545
|
};
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1548
|
-
const e =
|
|
1547
|
+
function wo(t) {
|
|
1548
|
+
const e = ln.call(this, t);
|
|
1549
1549
|
return (n, o) => {
|
|
1550
|
-
e.call(this, n, o),
|
|
1550
|
+
e.call(this, n, o), an.call(this, t, n);
|
|
1551
1551
|
};
|
|
1552
1552
|
}
|
|
1553
1553
|
let ut = null;
|
|
1554
|
-
const
|
|
1554
|
+
const Eo = {
|
|
1555
1555
|
list: {
|
|
1556
1556
|
type: Array,
|
|
1557
1557
|
required: !1,
|
|
@@ -1583,15 +1583,15 @@ const wo = {
|
|
|
1583
1583
|
required: !1,
|
|
1584
1584
|
default: null
|
|
1585
1585
|
}
|
|
1586
|
-
},
|
|
1586
|
+
}, So = [
|
|
1587
1587
|
"update:modelValue",
|
|
1588
1588
|
"change",
|
|
1589
1589
|
...[...gt.manageAndEmit, ...gt.emit].map((t) => t.toLowerCase())
|
|
1590
|
-
],
|
|
1590
|
+
], $o = Ne({
|
|
1591
1591
|
name: "draggable",
|
|
1592
1592
|
inheritAttrs: !1,
|
|
1593
|
-
props:
|
|
1594
|
-
emits:
|
|
1593
|
+
props: Eo,
|
|
1594
|
+
emits: So,
|
|
1595
1595
|
data() {
|
|
1596
1596
|
return {
|
|
1597
1597
|
error: !1
|
|
@@ -1607,14 +1607,14 @@ const wo = {
|
|
|
1607
1607
|
getKey: i
|
|
1608
1608
|
});
|
|
1609
1609
|
this.componentStructure = a;
|
|
1610
|
-
const l =
|
|
1610
|
+
const l = ho({ $attrs: e, componentData: o });
|
|
1611
1611
|
return a.render(St, l);
|
|
1612
1612
|
} catch (t) {
|
|
1613
1613
|
return this.error = !0, St("pre", { style: { color: "red" } }, t.stack);
|
|
1614
1614
|
}
|
|
1615
1615
|
},
|
|
1616
1616
|
created() {
|
|
1617
|
-
this.list !== null && this.modelValue !== null &&
|
|
1617
|
+
this.list !== null && this.modelValue !== null && oo.error(
|
|
1618
1618
|
"modelValue and list props are mutually exclusive! Please set one or another."
|
|
1619
1619
|
);
|
|
1620
1620
|
},
|
|
@@ -1623,12 +1623,12 @@ const wo = {
|
|
|
1623
1623
|
return;
|
|
1624
1624
|
const { $attrs: t, $el: e, componentStructure: n } = this;
|
|
1625
1625
|
n.updated();
|
|
1626
|
-
const o =
|
|
1626
|
+
const o = po({
|
|
1627
1627
|
$attrs: t,
|
|
1628
1628
|
callBackBuilder: {
|
|
1629
|
-
manageAndEmit: (i) =>
|
|
1630
|
-
emit: (i) =>
|
|
1631
|
-
manage: (i) =>
|
|
1629
|
+
manageAndEmit: (i) => wo.call(this, i),
|
|
1630
|
+
emit: (i) => an.bind(this, i),
|
|
1631
|
+
manage: (i) => ln.call(this, i)
|
|
1632
1632
|
}
|
|
1633
1633
|
}), r = e.nodeType === 1 ? e : e.parentElement;
|
|
1634
1634
|
this._sortable = new p(r, o), this.targetDomElement = r, r.__draggable_component__ = this;
|
|
@@ -1653,7 +1653,7 @@ const wo = {
|
|
|
1653
1653
|
$attrs: {
|
|
1654
1654
|
handler(t) {
|
|
1655
1655
|
const { _sortable: e } = this;
|
|
1656
|
-
e &&
|
|
1656
|
+
e && rn(t).forEach(([n, o]) => {
|
|
1657
1657
|
e.option(n, o);
|
|
1658
1658
|
});
|
|
1659
1659
|
},
|
|
@@ -1668,7 +1668,7 @@ const wo = {
|
|
|
1668
1668
|
return t.__draggable_component__;
|
|
1669
1669
|
},
|
|
1670
1670
|
emitChanges(t) {
|
|
1671
|
-
|
|
1671
|
+
Bt(() => this.$emit("change", t));
|
|
1672
1672
|
},
|
|
1673
1673
|
alterList(t) {
|
|
1674
1674
|
if (this.list) {
|
|
@@ -1757,7 +1757,7 @@ const wo = {
|
|
|
1757
1757
|
ut = null;
|
|
1758
1758
|
}
|
|
1759
1759
|
}
|
|
1760
|
-
}),
|
|
1760
|
+
}), Do = Object.entries(x).map((t) => {
|
|
1761
1761
|
let e = "";
|
|
1762
1762
|
switch (t[1]) {
|
|
1763
1763
|
case x.BarChart:
|
|
@@ -1790,9 +1790,9 @@ const wo = {
|
|
|
1790
1790
|
icon: e,
|
|
1791
1791
|
value: t[1]
|
|
1792
1792
|
};
|
|
1793
|
-
}),
|
|
1793
|
+
}), Co = /* @__PURE__ */ Ne({
|
|
1794
1794
|
__name: "WidgetTypeList",
|
|
1795
|
-
props: /* @__PURE__ */
|
|
1795
|
+
props: /* @__PURE__ */ pn({
|
|
1796
1796
|
childClass: {
|
|
1797
1797
|
type: String,
|
|
1798
1798
|
default: ""
|
|
@@ -1814,8 +1814,8 @@ const wo = {
|
|
|
1814
1814
|
}),
|
|
1815
1815
|
emits: ["update:modelValue"],
|
|
1816
1816
|
setup(t) {
|
|
1817
|
-
const { t: e } =
|
|
1818
|
-
() =>
|
|
1817
|
+
const { t: e } = Xt(), n = Vt(t, "modelValue"), o = t, r = mn(
|
|
1818
|
+
() => Do.map((i) => ({
|
|
1819
1819
|
...i,
|
|
1820
1820
|
label: e(`report.widget.types.${i.value.toLowerCase()}`)
|
|
1821
1821
|
}))
|
|
@@ -1823,29 +1823,29 @@ const wo = {
|
|
|
1823
1823
|
return (i, a) => {
|
|
1824
1824
|
const l = ge("FmIcon"), s = ge("FmCard");
|
|
1825
1825
|
return ne(), ce("div", null, [
|
|
1826
|
-
(ne(!0), ce(vt, null,
|
|
1826
|
+
(ne(!0), ce(vt, null, gn(r.value.filter(
|
|
1827
1827
|
(u) => o.excludeWidgeType.indexOf(u.value) === -1
|
|
1828
|
-
), (u, d) => (ne(),
|
|
1828
|
+
), (u, d) => (ne(), vn(s, {
|
|
1829
1829
|
key: d,
|
|
1830
|
-
class:
|
|
1830
|
+
class: bn(`items-center ${o.childClass} cursor-pointer rounded-[8px] ${o.isList ? "" : "gap-[16px]"} ${n.value === u.value ? "selected-widget" : ""}`),
|
|
1831
1831
|
variant: "outlined",
|
|
1832
1832
|
onClick: (f) => n.value = u.value
|
|
1833
1833
|
}, {
|
|
1834
|
-
default:
|
|
1834
|
+
default: ze(() => [
|
|
1835
1835
|
ue(l, {
|
|
1836
1836
|
name: u.icon,
|
|
1837
1837
|
size: o.isList ? "md" : "lg",
|
|
1838
1838
|
outline: !0
|
|
1839
1839
|
}, null, 8, ["name", "size"]),
|
|
1840
|
-
|
|
1840
|
+
_n(" " + Rt(u.label), 1)
|
|
1841
1841
|
]),
|
|
1842
1842
|
_: 2
|
|
1843
1843
|
}, 1032, ["class", "onClick"]))), 128))
|
|
1844
1844
|
]);
|
|
1845
1845
|
};
|
|
1846
1846
|
}
|
|
1847
|
-
}),
|
|
1848
|
-
function
|
|
1847
|
+
}), Yo = /* @__PURE__ */ bt(Co, [["__scopeId", "data-v-d75aa4ca"]]);
|
|
1848
|
+
function To(t) {
|
|
1849
1849
|
let e, n, o;
|
|
1850
1850
|
switch (t) {
|
|
1851
1851
|
case x.Table:
|
|
@@ -1871,7 +1871,7 @@ function Co(t) {
|
|
|
1871
1871
|
joinDatasources: e
|
|
1872
1872
|
};
|
|
1873
1873
|
}
|
|
1874
|
-
function
|
|
1874
|
+
function Wo(t, e) {
|
|
1875
1875
|
let n = 1, o = 1;
|
|
1876
1876
|
switch (t) {
|
|
1877
1877
|
case x.Scorecard:
|
|
@@ -1901,17 +1901,17 @@ function Yo(t, e) {
|
|
|
1901
1901
|
widget: {
|
|
1902
1902
|
title: e || "New widget",
|
|
1903
1903
|
type: t,
|
|
1904
|
-
config:
|
|
1904
|
+
config: To(t)
|
|
1905
1905
|
}
|
|
1906
1906
|
};
|
|
1907
1907
|
}
|
|
1908
|
-
function
|
|
1908
|
+
function Ho(t, e) {
|
|
1909
1909
|
return t.filter((n, o) => o !== e);
|
|
1910
1910
|
}
|
|
1911
|
-
const
|
|
1911
|
+
const xo = {
|
|
1912
1912
|
key: 0,
|
|
1913
1913
|
class: "flex flex-col gap-5"
|
|
1914
|
-
},
|
|
1914
|
+
}, Io = /* @__PURE__ */ Ne({
|
|
1915
1915
|
__name: "Section",
|
|
1916
1916
|
setup(t) {
|
|
1917
1917
|
const e = yn(!1);
|
|
@@ -1928,8 +1928,8 @@ const To = {
|
|
|
1928
1928
|
}, null, 8, ["name"])
|
|
1929
1929
|
]),
|
|
1930
1930
|
ue(ct, { name: "slide-fade" }, {
|
|
1931
|
-
default:
|
|
1932
|
-
e.value ? dt("", !0) : (ne(), ce("div",
|
|
1931
|
+
default: ze(() => [
|
|
1932
|
+
e.value ? dt("", !0) : (ne(), ce("div", xo, [
|
|
1933
1933
|
Pe(n.$slots, "content", {}, void 0, !0)
|
|
1934
1934
|
]))
|
|
1935
1935
|
]),
|
|
@@ -1939,7 +1939,7 @@ const To = {
|
|
|
1939
1939
|
], 64);
|
|
1940
1940
|
};
|
|
1941
1941
|
}
|
|
1942
|
-
}),
|
|
1942
|
+
}), jo = /* @__PURE__ */ bt(Io, [["__scopeId", "data-v-f83598f1"]]), Oo = /* @__PURE__ */ Ne({
|
|
1943
1943
|
__name: "TransitionFade",
|
|
1944
1944
|
props: {
|
|
1945
1945
|
modelValue: { type: Boolean, required: !0, default: !0 },
|
|
@@ -1947,30 +1947,30 @@ const To = {
|
|
|
1947
1947
|
},
|
|
1948
1948
|
emits: ["update:modelValue"],
|
|
1949
1949
|
setup(t) {
|
|
1950
|
-
const e =
|
|
1950
|
+
const e = Vt(t, "modelValue");
|
|
1951
1951
|
return (n, o) => (ne(), ce(vt, null, [
|
|
1952
1952
|
ue(ct, { name: "slide-fade-right" }, {
|
|
1953
|
-
default:
|
|
1953
|
+
default: ze(() => [
|
|
1954
1954
|
e.value ? Pe(n.$slots, "right", { key: 0 }, void 0, !0) : dt("", !0)
|
|
1955
1955
|
]),
|
|
1956
1956
|
_: 3
|
|
1957
1957
|
}),
|
|
1958
1958
|
ue(ct, { name: "slide-fade-left" }, {
|
|
1959
|
-
default:
|
|
1959
|
+
default: ze(() => [
|
|
1960
1960
|
e.value ? dt("", !0) : Pe(n.$slots, "left", { key: 0 }, void 0, !0)
|
|
1961
1961
|
]),
|
|
1962
1962
|
_: 3
|
|
1963
1963
|
})
|
|
1964
1964
|
], 64));
|
|
1965
1965
|
}
|
|
1966
|
-
}),
|
|
1966
|
+
}), zo = /* @__PURE__ */ bt(Oo, [["__scopeId", "data-v-a98ca9bc"]]);
|
|
1967
1967
|
export {
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1968
|
+
jo as S,
|
|
1969
|
+
zo as T,
|
|
1970
|
+
Yo as W,
|
|
1971
|
+
Xo as _,
|
|
1972
|
+
To as a,
|
|
1973
|
+
$o as d,
|
|
1974
|
+
Ho as h,
|
|
1975
|
+
Wo as i
|
|
1976
1976
|
};
|