@feedmepos/mf-report 5.8.2 → 5.9.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-C6VF9T5V.js → App-CSOLBHvz.js} +6 -7
- package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-DFhiXlTW.js +180 -0
- package/dist/{Default.vue_vue_type_script_setup_true_lang-B0_QlxYu.js → Default.vue_vue_type_script_setup_true_lang-Bk5Aw-iX.js} +2 -2
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-zgh_zMvL.js +1447 -0
- package/dist/{InsightView-BQlzh0ue.js → InsightView-Bwh7zRnV.js} +7 -8
- package/dist/Integration-C6jAZ1_i.js +5222 -0
- package/dist/Integrations-BGmJBj90.js +338 -0
- package/dist/{Layout-RhBG3zKc.js → Layout-Db6yStGK.js} +1 -1
- package/dist/MenuTab.vue_vue_type_script_setup_true_lang-BEHjV9yH.js +342 -0
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BdzurgE4.js → NavigationTab.vue_vue_type_script_setup_true_lang-gDVPczBf.js} +1078 -1080
- package/dist/NoData.vue_vue_type_script_setup_true_lang-D-J81GXC.js +38 -0
- package/dist/{OverviewView-Boq9rgbj.js → OverviewView-WOEuALSq.js} +5 -5
- package/dist/{Report-C7GvAhoG.js → Report-_YQ9GpRY.js} +4 -4
- package/dist/ReportEditor-C9W5Dkcl.js +968 -0
- package/dist/{ReportView-DMLyspIY.js → ReportView-B2dPbjug.js} +7 -7
- package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-CGlkGXWL.js +110 -0
- package/dist/{Setting-CLBZdtvx.js → Setting-BONU5EUv.js} +26 -23
- package/dist/TileEditor-B_5Z6Y4K.js +3080 -0
- package/dist/{TransitionFade-D3megUTB.js → TransitionFade-nQahFBUN.js} +207 -203
- package/dist/app.js +59 -19
- package/dist/helper-CFNxnCtm.js +75 -0
- package/dist/style.css +1 -1
- package/dist/{v4-Bi2F4URu.js → v4-CboKZWvc.js} +1955 -1844
- package/dist/{global-loader-CEOgl5uZ.js → vue-i18n-DX0diAld.js} +2057 -1976
- package/package.json +1 -1
- package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-CpakO4U-.js +0 -162
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-BO_HTvjY.js +0 -1417
- package/dist/Integration-CB31rvSG.js +0 -4751
- package/dist/Integrations-DGlzyZMR.js +0 -334
- package/dist/MenuTab.vue_vue_type_script_setup_true_lang-DsY5W3k7.js +0 -101
- package/dist/NoData.vue_vue_type_script_setup_true_lang-DZJxcekm.js +0 -31
- package/dist/ReportEditor-CwzONBLC.js +0 -621
- package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-C23-eIYF.js +0 -104
- package/dist/TileEditor-CtVM3IbI.js +0 -3016
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/index-CH1WFv_s.js +0 -147
- package/dist/report-schema-C3sI223M.js +0 -31
|
@@ -1,19 +1,18 @@
|
|
|
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
|
|
2
|
-
import { u as Xt, f as wn } from "./
|
|
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 Bt, toDisplayString as Rt, TransitionGroup as hn, nextTick as Vt, h as Dt, mergeModels as pn, useModel as vt, computed as mn, Fragment as bt, renderList as gn, createBlock as vn, normalizeClass as bn, withCtx as ze, createTextVNode as yn, Transition as ct, createCommentVNode as dt } from "vue";
|
|
2
|
+
import { u as Xt, f as _n, p as wn } from "./vue-i18n-DX0diAld.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-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
const xn = {
|
|
6
|
+
import { W as x } from "./v4-CboKZWvc.js";
|
|
7
|
+
import { a as yt } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGlkGXWL.js";
|
|
8
|
+
import { R as Cn } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-zgh_zMvL.js";
|
|
9
|
+
const Tn = {
|
|
11
10
|
key: 0,
|
|
12
11
|
class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"
|
|
13
|
-
},
|
|
12
|
+
}, xn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ro = /* @__PURE__ */ Ne({
|
|
14
13
|
__name: "FullScreen",
|
|
15
14
|
setup(t) {
|
|
16
|
-
const { t: e } = Xt(), n = Dn(), { isLoading: o } = Sn(
|
|
15
|
+
const { t: e } = Xt(), n = Dn(), { isLoading: o } = Sn(_n()), r = En();
|
|
17
16
|
return cn(() => {
|
|
18
17
|
r.hideSidebarToggle(!0);
|
|
19
18
|
}), dn(() => {
|
|
@@ -26,9 +25,9 @@ const xn = {
|
|
|
26
25
|
height: `calc(100vh - ${Le(n).query.token && Le(n).query.businessId ? "0" : "64"}px)`
|
|
27
26
|
})
|
|
28
27
|
}, [
|
|
29
|
-
Le(o) ? (ne(), ce("div",
|
|
28
|
+
Le(o) ? (ne(), ce("div", Tn, [
|
|
30
29
|
ue(l, { size: "xl" }),
|
|
31
|
-
|
|
30
|
+
Bt("span", xn, Rt(Le(e)("report.common.isLoading")), 1)
|
|
32
31
|
])) : Pe(i.$slots, "default", { key: 1 })
|
|
33
32
|
], 4);
|
|
34
33
|
};
|
|
@@ -40,7 +39,7 @@ const xn = {
|
|
|
40
39
|
* @author owenm <owen23355@gmail.com>
|
|
41
40
|
* @license MIT
|
|
42
41
|
*/
|
|
43
|
-
function
|
|
42
|
+
function Ct(t, e) {
|
|
44
43
|
var n = Object.keys(t);
|
|
45
44
|
if (Object.getOwnPropertySymbols) {
|
|
46
45
|
var o = Object.getOwnPropertySymbols(t);
|
|
@@ -53,9 +52,9 @@ function Dt(t, e) {
|
|
|
53
52
|
function j(t) {
|
|
54
53
|
for (var e = 1; e < arguments.length; e++) {
|
|
55
54
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
56
|
-
e % 2 ?
|
|
57
|
-
|
|
58
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
55
|
+
e % 2 ? Ct(Object(n), !0).forEach(function(o) {
|
|
56
|
+
In(t, o, n[o]);
|
|
57
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Ct(Object(n)).forEach(function(o) {
|
|
59
58
|
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(n, o));
|
|
60
59
|
});
|
|
61
60
|
}
|
|
@@ -69,7 +68,7 @@ function $e(t) {
|
|
|
69
68
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
70
69
|
}, $e(t);
|
|
71
70
|
}
|
|
72
|
-
function
|
|
71
|
+
function In(t, e, n) {
|
|
73
72
|
return e in t ? Object.defineProperty(t, e, {
|
|
74
73
|
value: n,
|
|
75
74
|
enumerable: !0,
|
|
@@ -87,16 +86,16 @@ function q() {
|
|
|
87
86
|
return t;
|
|
88
87
|
}, q.apply(this, arguments);
|
|
89
88
|
}
|
|
90
|
-
function
|
|
89
|
+
function On(t, e) {
|
|
91
90
|
if (t == null) return {};
|
|
92
91
|
var n = {}, o = Object.keys(t), r, i;
|
|
93
92
|
for (i = 0; i < o.length; i++)
|
|
94
93
|
r = o[i], !(e.indexOf(r) >= 0) && (n[r] = t[r]);
|
|
95
94
|
return n;
|
|
96
95
|
}
|
|
97
|
-
function
|
|
96
|
+
function An(t, e) {
|
|
98
97
|
if (t == null) return {};
|
|
99
|
-
var n =
|
|
98
|
+
var n = On(t, e), o, r;
|
|
100
99
|
if (Object.getOwnPropertySymbols) {
|
|
101
100
|
var i = Object.getOwnPropertySymbols(t);
|
|
102
101
|
for (r = 0; r < i.length; r++)
|
|
@@ -104,16 +103,16 @@ function Pn(t, e) {
|
|
|
104
103
|
}
|
|
105
104
|
return n;
|
|
106
105
|
}
|
|
107
|
-
var
|
|
106
|
+
var Pn = "1.14.0";
|
|
108
107
|
function U(t) {
|
|
109
108
|
if (typeof window < "u" && window.navigator)
|
|
110
109
|
return !!/* @__PURE__ */ navigator.userAgent.match(t);
|
|
111
110
|
}
|
|
112
|
-
var K = U(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ke = U(/Edge/i),
|
|
111
|
+
var K = U(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ke = U(/Edge/i), Tt = U(/firefox/i), Te = U(/safari/i) && !U(/chrome/i) && !U(/android/i), $t = U(/iP(ad|od|hone)/i), Nn = U(/chrome/i) && U(/android/i), Yt = {
|
|
113
112
|
capture: !1,
|
|
114
113
|
passive: !1
|
|
115
114
|
};
|
|
116
|
-
function
|
|
115
|
+
function y(t, e, n) {
|
|
117
116
|
t.addEventListener(e, n, !K && Yt);
|
|
118
117
|
}
|
|
119
118
|
function b(t, e, n) {
|
|
@@ -135,7 +134,7 @@ function Ge(t, e) {
|
|
|
135
134
|
return !1;
|
|
136
135
|
}
|
|
137
136
|
}
|
|
138
|
-
function
|
|
137
|
+
function kn(t) {
|
|
139
138
|
return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode;
|
|
140
139
|
}
|
|
141
140
|
function W(t, e, n, o) {
|
|
@@ -145,18 +144,18 @@ function W(t, e, n, o) {
|
|
|
145
144
|
if (e != null && (e[0] === ">" ? t.parentNode === n && Ge(t, e) : Ge(t, e)) || o && t === n)
|
|
146
145
|
return t;
|
|
147
146
|
if (t === n) break;
|
|
148
|
-
} while (t =
|
|
147
|
+
} while (t = kn(t));
|
|
149
148
|
}
|
|
150
149
|
return null;
|
|
151
150
|
}
|
|
152
|
-
var
|
|
151
|
+
var xt = /\s+/g;
|
|
153
152
|
function F(t, e, n) {
|
|
154
153
|
if (t && e)
|
|
155
154
|
if (t.classList)
|
|
156
155
|
t.classList[n ? "add" : "remove"](e);
|
|
157
156
|
else {
|
|
158
|
-
var o = (" " + t.className + " ").replace(
|
|
159
|
-
t.className = (o + (n ? " " + e : "")).replace(
|
|
157
|
+
var o = (" " + t.className + " ").replace(xt, " ").replace(" " + e + " ", " ");
|
|
158
|
+
t.className = (o + (n ? " " + e : "")).replace(xt, " ");
|
|
160
159
|
}
|
|
161
160
|
}
|
|
162
161
|
function h(t, e, n) {
|
|
@@ -205,8 +204,8 @@ function T(t, e, n, o, r) {
|
|
|
205
204
|
}
|
|
206
205
|
while (r = r.parentNode);
|
|
207
206
|
if (o && t !== window) {
|
|
208
|
-
var w = me(r || t), v = w && w.a,
|
|
209
|
-
w && (a /=
|
|
207
|
+
var w = me(r || t), v = w && w.a, _ = w && w.d;
|
|
208
|
+
w && (a /= _, l /= v, f /= v, d /= _, s = a + d, u = l + f);
|
|
210
209
|
}
|
|
211
210
|
return {
|
|
212
211
|
top: a,
|
|
@@ -218,7 +217,7 @@ function T(t, e, n, o, r) {
|
|
|
218
217
|
};
|
|
219
218
|
}
|
|
220
219
|
}
|
|
221
|
-
function
|
|
220
|
+
function It(t, e, n) {
|
|
222
221
|
for (var o = te(t, !0), r = T(t)[e]; o; ) {
|
|
223
222
|
var i = T(o)[n], a = void 0;
|
|
224
223
|
if (a = r >= i, !a) return o;
|
|
@@ -243,7 +242,7 @@ function _t(t, e) {
|
|
|
243
242
|
n = n.previousElementSibling;
|
|
244
243
|
return n || null;
|
|
245
244
|
}
|
|
246
|
-
function
|
|
245
|
+
function B(t, e) {
|
|
247
246
|
var n = 0;
|
|
248
247
|
if (!t || !t.parentNode)
|
|
249
248
|
return -1;
|
|
@@ -251,7 +250,7 @@ function R(t, e) {
|
|
|
251
250
|
t.nodeName.toUpperCase() !== "TEMPLATE" && t !== p.clone && (!e || Ge(t, e)) && n++;
|
|
252
251
|
return n;
|
|
253
252
|
}
|
|
254
|
-
function
|
|
253
|
+
function Ot(t) {
|
|
255
254
|
var e = 0, n = 0, o = H();
|
|
256
255
|
if (t)
|
|
257
256
|
do {
|
|
@@ -260,7 +259,7 @@ function It(t) {
|
|
|
260
259
|
} while (t !== o && (t = t.parentNode));
|
|
261
260
|
return [e, n];
|
|
262
261
|
}
|
|
263
|
-
function
|
|
262
|
+
function Fn(t, e) {
|
|
264
263
|
for (var n in t)
|
|
265
264
|
if (t.hasOwnProperty(n)) {
|
|
266
265
|
for (var o in e)
|
|
@@ -283,7 +282,7 @@ function te(t, e) {
|
|
|
283
282
|
while (n = n.parentNode);
|
|
284
283
|
return H();
|
|
285
284
|
}
|
|
286
|
-
function
|
|
285
|
+
function Mn(t, e) {
|
|
287
286
|
if (t && e)
|
|
288
287
|
for (var n in e)
|
|
289
288
|
e.hasOwnProperty(n) && (t[n] = e[n]);
|
|
@@ -303,7 +302,7 @@ function Ht(t, e) {
|
|
|
303
302
|
}
|
|
304
303
|
};
|
|
305
304
|
}
|
|
306
|
-
function
|
|
305
|
+
function Ln() {
|
|
307
306
|
clearTimeout(xe), xe = void 0;
|
|
308
307
|
}
|
|
309
308
|
function jt(t, e, n) {
|
|
@@ -340,7 +339,7 @@ function Bn() {
|
|
|
340
339
|
t.push(o);
|
|
341
340
|
},
|
|
342
341
|
removeAnimationState: function(o) {
|
|
343
|
-
t.splice(
|
|
342
|
+
t.splice(Fn(t, {
|
|
344
343
|
target: o
|
|
345
344
|
}), 1);
|
|
346
345
|
},
|
|
@@ -352,9 +351,9 @@ function Bn() {
|
|
|
352
351
|
}
|
|
353
352
|
var i = !1, a = 0;
|
|
354
353
|
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 =
|
|
354
|
+
var s = 0, u = l.target, d = u.fromRect, f = T(u), g = u.prevFromRect, w = u.prevToRect, v = l.rect, _ = me(u, !0);
|
|
355
|
+
_ && (f.top -= _.f, f.left -= _.e), u.toRect = f, u.thisAnimationDuration && Je(g, f) && !Je(d, f) && // Make sure animatingRect is on line between toRect & fromRect
|
|
356
|
+
(v.top - f.top) / (v.left - f.left) === (d.top - f.top) / (d.left - f.left) && (s = Vn(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
357
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
359
358
|
}, s), u.thisAnimationDuration = s);
|
|
360
359
|
}), clearTimeout(e), i ? e = setTimeout(function() {
|
|
@@ -365,17 +364,17 @@ function Bn() {
|
|
|
365
364
|
if (a) {
|
|
366
365
|
h(o, "transition", ""), h(o, "transform", "");
|
|
367
366
|
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 =
|
|
367
|
+
o.animatingX = !!d, o.animatingY = !!f, h(o, "transform", "translate3d(" + d + "px," + f + "px,0)"), this.forRepaintDummy = Rn(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
368
|
h(o, "transition", ""), h(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
|
370
369
|
}, a);
|
|
371
370
|
}
|
|
372
371
|
}
|
|
373
372
|
};
|
|
374
373
|
}
|
|
375
|
-
function
|
|
374
|
+
function Rn(t) {
|
|
376
375
|
return t.offsetWidth;
|
|
377
376
|
}
|
|
378
|
-
function
|
|
377
|
+
function Vn(t, e, n, o) {
|
|
379
378
|
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
379
|
}
|
|
381
380
|
var de = [], et = {
|
|
@@ -430,22 +429,22 @@ var de = [], et = {
|
|
|
430
429
|
}), r;
|
|
431
430
|
}
|
|
432
431
|
};
|
|
433
|
-
function
|
|
432
|
+
function Xn(t) {
|
|
434
433
|
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
434
|
if (e = e || n && n[L], !!e) {
|
|
436
|
-
var
|
|
437
|
-
window.CustomEvent && !K && !ke ?
|
|
435
|
+
var _, R = e.options, z = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
436
|
+
window.CustomEvent && !K && !ke ? _ = new CustomEvent(o, {
|
|
438
437
|
bubbles: !0,
|
|
439
438
|
cancelable: !0
|
|
440
|
-
}) : (
|
|
439
|
+
}) : (_ = document.createEvent("Event"), _.initEvent(o, !0, !0)), _.to = a || n, _.from = l || n, _.item = r || n, _.clone = i, _.oldIndex = s, _.newIndex = u, _.oldDraggableIndex = d, _.newDraggableIndex = f, _.originalEvent = g, _.pullMode = w ? w.lastPutMode : void 0;
|
|
441
440
|
var A = j(j({}, v), Fe.getEventProperties(o, e));
|
|
442
441
|
for (var V in A)
|
|
443
|
-
|
|
444
|
-
n && n.dispatchEvent(
|
|
442
|
+
_[V] = A[V];
|
|
443
|
+
n && n.dispatchEvent(_), R[z] && R[z].call(e, _);
|
|
445
444
|
}
|
|
446
445
|
}
|
|
447
|
-
var
|
|
448
|
-
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, i =
|
|
446
|
+
var $n = ["evt"], N = function(e, n) {
|
|
447
|
+
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, i = An(o, $n);
|
|
449
448
|
Fe.pluginEvent.bind(p)(e, n, j({
|
|
450
449
|
dragEl: c,
|
|
451
450
|
parentEl: S,
|
|
@@ -481,7 +480,7 @@ var Yn = ["evt"], N = function(e, n) {
|
|
|
481
480
|
}, i));
|
|
482
481
|
};
|
|
483
482
|
function P(t) {
|
|
484
|
-
|
|
483
|
+
Xn(j({
|
|
485
484
|
putSortable: I,
|
|
486
485
|
cloneEl: D,
|
|
487
486
|
targetEl: c,
|
|
@@ -492,7 +491,7 @@ function P(t) {
|
|
|
492
491
|
newDraggableIndex: J
|
|
493
492
|
}, t));
|
|
494
493
|
}
|
|
495
|
-
var c, S, m, E, se, Ye, D, ee, pe, M, Ie, J,
|
|
494
|
+
var c, S, m, E, se, Ye, D, ee, pe, M, Ie, J, Be, I, he = !1, Ue = !1, qe = [], ae, X, tt, nt, At, Pt, Se, fe, Oe, Ae = !1, Re = !1, We, O, ot = [], ft = !1, Ke = [], Qe = typeof document < "u", Ve = $t, Nt = ke || K ? "cssFloat" : "float", Yn = Qe && !Nn && !$t && "draggable" in document.createElement("div"), Gt = function() {
|
|
496
495
|
if (Qe) {
|
|
497
496
|
if (K)
|
|
498
497
|
return !1;
|
|
@@ -509,11 +508,11 @@ var c, S, m, E, se, Ye, D, ee, pe, M, Ie, J, Re, I, he = !1, Ue = !1, qe = [], a
|
|
|
509
508
|
var f = l.float === "left" ? "left" : "right";
|
|
510
509
|
return a && (s.clear === "both" || s.clear === f) ? "vertical" : "horizontal";
|
|
511
510
|
}
|
|
512
|
-
return i && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= r && o[
|
|
513
|
-
},
|
|
511
|
+
return i && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= r && o[Nt] === "none" || a && o[Nt] === "none" && u + d > r) ? "vertical" : "horizontal";
|
|
512
|
+
}, Wn = function(e, n, o) {
|
|
514
513
|
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
514
|
return r === l || i === s || r + a / 2 === l + u / 2;
|
|
516
|
-
},
|
|
515
|
+
}, Hn = function(e, n) {
|
|
517
516
|
var o;
|
|
518
517
|
return qe.some(function(r) {
|
|
519
518
|
var i = r[L].options.emptyInsertThreshold;
|
|
@@ -555,7 +554,7 @@ Qe && document.addEventListener("click", function(t) {
|
|
|
555
554
|
var le = function(e) {
|
|
556
555
|
if (c) {
|
|
557
556
|
e = e.touches ? e.touches[0] : e;
|
|
558
|
-
var n =
|
|
557
|
+
var n = Hn(e.clientX, e.clientY);
|
|
559
558
|
if (n) {
|
|
560
559
|
var o = {};
|
|
561
560
|
for (var r in e)
|
|
@@ -563,7 +562,7 @@ var le = function(e) {
|
|
|
563
562
|
o.target = o.rootEl = n, o.preventDefault = void 0, o.stopPropagation = void 0, n[L]._onDragOver(o);
|
|
564
563
|
}
|
|
565
564
|
}
|
|
566
|
-
},
|
|
565
|
+
}, jn = function(e) {
|
|
567
566
|
c && c.parentNode[L]._isOutsideThisEl(e.target);
|
|
568
567
|
};
|
|
569
568
|
function p(t, e) {
|
|
@@ -621,7 +620,7 @@ function p(t, e) {
|
|
|
621
620
|
qt(e);
|
|
622
621
|
for (var r in this)
|
|
623
622
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
624
|
-
this.nativeDraggable = e.forceFallback ? !1 :
|
|
623
|
+
this.nativeDraggable = e.forceFallback ? !1 : Yn, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? y(t, "pointerdown", this._onTapStart) : (y(t, "mousedown", this._onTapStart), y(t, "touchstart", this._onTapStart)), this.nativeDraggable && (y(t, "dragover", this), y(t, "dragenter", this)), qe.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), q(this, Bn());
|
|
625
624
|
}
|
|
626
625
|
p.prototype = /** @lends Sortable.prototype */
|
|
627
626
|
{
|
|
@@ -635,8 +634,8 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
635
634
|
_onTapStart: function(e) {
|
|
636
635
|
if (e.cancelable) {
|
|
637
636
|
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 (
|
|
639
|
-
if (pe =
|
|
637
|
+
if (Jn(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)) {
|
|
638
|
+
if (pe = B(s), Ie = B(s, r.draggable), typeof d == "function") {
|
|
640
639
|
if (d.call(this, e, s, this)) {
|
|
641
640
|
P({
|
|
642
641
|
sortable: n,
|
|
@@ -674,32 +673,32 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
674
673
|
var r = this, i = r.el, a = r.options, l = i.ownerDocument, s;
|
|
675
674
|
if (o && !c && o.parentNode === i) {
|
|
676
675
|
var u = T(o);
|
|
677
|
-
if (E = i, c = o, S = c.parentNode, se = c.nextSibling, Ye = o,
|
|
676
|
+
if (E = i, c = o, S = c.parentNode, se = c.nextSibling, Ye = o, Be = a.group, p.dragged = c, ae = {
|
|
678
677
|
target: c,
|
|
679
678
|
clientX: (n || e).clientX,
|
|
680
679
|
clientY: (n || e).clientY
|
|
681
|
-
},
|
|
680
|
+
}, At = ae.clientX - u.left, Pt = ae.clientY - u.top, this._lastX = (n || e).clientX, this._lastY = (n || e).clientY, c.style["will-change"] = "all", s = function() {
|
|
682
681
|
if (N("delayEnded", r, {
|
|
683
682
|
evt: e
|
|
684
683
|
}), p.eventCanceled) {
|
|
685
684
|
r._onDrop();
|
|
686
685
|
return;
|
|
687
686
|
}
|
|
688
|
-
r._disableDelayedDragEvents(), !
|
|
687
|
+
r._disableDelayedDragEvents(), !Tt && r.nativeDraggable && (c.draggable = !0), r._triggerDragStart(e, n), P({
|
|
689
688
|
sortable: r,
|
|
690
689
|
name: "choose",
|
|
691
690
|
originalEvent: e
|
|
692
691
|
}), F(c, a.chosenClass, !0);
|
|
693
692
|
}, a.ignore.split(",").forEach(function(d) {
|
|
694
693
|
Wt(c, d.trim(), rt);
|
|
695
|
-
}),
|
|
694
|
+
}), y(l, "dragover", le), y(l, "mousemove", le), y(l, "touchmove", le), y(l, "mouseup", r._onDrop), y(l, "touchend", r._onDrop), y(l, "touchcancel", r._onDrop), Tt && this.nativeDraggable && (this.options.touchStartThreshold = 4, c.draggable = !0), N("delayStart", this, {
|
|
696
695
|
evt: e
|
|
697
696
|
}), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(ke || K))) {
|
|
698
697
|
if (p.eventCanceled) {
|
|
699
698
|
this._onDrop();
|
|
700
699
|
return;
|
|
701
700
|
}
|
|
702
|
-
|
|
701
|
+
y(l, "mouseup", r._disableDelayedDrag), y(l, "touchend", r._disableDelayedDrag), y(l, "touchcancel", r._disableDelayedDrag), y(l, "mousemove", r._delayedDragTouchMoveHandler), y(l, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && y(l, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
|
|
703
702
|
} else
|
|
704
703
|
s();
|
|
705
704
|
}
|
|
@@ -716,7 +715,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
716
715
|
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
716
|
},
|
|
718
717
|
_triggerDragStart: function(e, n) {
|
|
719
|
-
n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ?
|
|
718
|
+
n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ? y(document, "pointermove", this._onTouchMove) : n ? y(document, "touchmove", this._onTouchMove) : y(document, "mousemove", this._onTouchMove) : (y(c, "dragend", this), y(E, "dragstart", this._onDragStart));
|
|
720
719
|
try {
|
|
721
720
|
document.selection ? He(function() {
|
|
722
721
|
document.selection.empty();
|
|
@@ -728,7 +727,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
728
727
|
if (he = !1, E && c) {
|
|
729
728
|
N("dragStarted", this, {
|
|
730
729
|
evt: n
|
|
731
|
-
}), this.nativeDraggable &&
|
|
730
|
+
}), this.nativeDraggable && y(document, "dragover", jn);
|
|
732
731
|
var o = this.options;
|
|
733
732
|
!e && F(c, o.dragClass, !1), F(c, o.ghostClass, !0), p.active = this, e && this._appendGhost(), P({
|
|
734
733
|
sortable: this,
|
|
@@ -762,7 +761,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
762
761
|
},
|
|
763
762
|
_onTouchMove: function(e) {
|
|
764
763
|
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 = Ve && O &&
|
|
764
|
+
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 && Ot(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
765
|
if (!p.active && !he) {
|
|
767
766
|
if (o && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < o)
|
|
768
767
|
return;
|
|
@@ -789,9 +788,9 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
789
788
|
if (Ve) {
|
|
790
789
|
for (O = e; h(O, "position") === "static" && h(O, "transform") === "none" && O !== document; )
|
|
791
790
|
O = O.parentNode;
|
|
792
|
-
O !== document.body && O !== document.documentElement ? (O === document && (O = H()), n.top += O.scrollTop, n.left += O.scrollLeft) : O = H(), ot =
|
|
791
|
+
O !== document.body && O !== document.documentElement ? (O === document && (O = H()), n.top += O.scrollTop, n.left += O.scrollLeft) : O = H(), ot = Ot(O);
|
|
793
792
|
}
|
|
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",
|
|
793
|
+
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", At / parseInt(m.style.width) * 100 + "% " + Pt / parseInt(m.style.height) * 100 + "%");
|
|
795
794
|
}
|
|
796
795
|
},
|
|
797
796
|
_onDragStart: function(e, n) {
|
|
@@ -807,13 +806,13 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
807
806
|
sortable: o,
|
|
808
807
|
name: "clone"
|
|
809
808
|
}));
|
|
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)),
|
|
809
|
+
}), !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)), y(document, "drop", o), h(c, "transform", "translateZ(0)")), he = !0, o._dragStartId = He(o._dragStarted.bind(o, n, e)), y(document, "selectstart", o), Se = !0, Te && h(document.body, "user-select", "none");
|
|
811
810
|
},
|
|
812
811
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
813
812
|
_onDragOver: function(e) {
|
|
814
|
-
var n = this.el, o = e.target, r, i, a, l = this.options, s = l.group, u = p.active, d =
|
|
813
|
+
var n = this.el, o = e.target, r, i, a, l = this.options, s = l.group, u = p.active, d = Be === s, f = l.sort, g = I || u, w, v = this, _ = !1;
|
|
815
814
|
if (ft) return;
|
|
816
|
-
function
|
|
815
|
+
function R(Ee, sn) {
|
|
817
816
|
N(Ee, v, j({
|
|
818
817
|
evt: e,
|
|
819
818
|
isOwner: d,
|
|
@@ -825,24 +824,24 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
825
824
|
fromSortable: g,
|
|
826
825
|
target: o,
|
|
827
826
|
completed: A,
|
|
828
|
-
onMove: function(
|
|
829
|
-
return Xe(E, n, c, r,
|
|
827
|
+
onMove: function(St, un) {
|
|
828
|
+
return Xe(E, n, c, r, St, T(St), e, un);
|
|
830
829
|
},
|
|
831
830
|
changed: V
|
|
832
831
|
}, sn));
|
|
833
832
|
}
|
|
834
833
|
function z() {
|
|
835
|
-
|
|
834
|
+
R("dragOverAnimationCapture"), v.captureAnimationState(), v !== g && g.captureAnimationState();
|
|
836
835
|
}
|
|
837
836
|
function A(Ee) {
|
|
838
|
-
return
|
|
837
|
+
return R("dragOverCompleted", {
|
|
839
838
|
insertion: Ee
|
|
840
839
|
}), 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
|
-
|
|
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(),
|
|
840
|
+
R("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
|
|
841
|
+
}), 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(), _ = !0;
|
|
843
842
|
}
|
|
844
843
|
function V() {
|
|
845
|
-
M =
|
|
844
|
+
M = B(c), J = B(c, l.draggable), P({
|
|
846
845
|
sortable: v,
|
|
847
846
|
name: "change",
|
|
848
847
|
toEl: n,
|
|
@@ -851,20 +850,20 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
851
850
|
originalEvent: e
|
|
852
851
|
});
|
|
853
852
|
}
|
|
854
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = W(o, l.draggable, n, !0),
|
|
853
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = W(o, l.draggable, n, !0), R("dragOver"), p.eventCanceled) return _;
|
|
855
854
|
if (c.contains(e.target) || o.animated && o.animatingX && o.animatingY || v._ignoreWhileAnimating === o)
|
|
856
855
|
return A(!1);
|
|
857
|
-
if (Ue = !1, u && !l.disabled && (d ? f || (a = S !== E) : I === this || (this.lastPutMode =
|
|
858
|
-
if (w = this._getDirection(e, o) === "vertical", r = T(c),
|
|
856
|
+
if (Ue = !1, u && !l.disabled && (d ? f || (a = S !== E) : I === this || (this.lastPutMode = Be.checkPull(this, u, c, e)) && s.checkPut(this, u, c, e))) {
|
|
857
|
+
if (w = this._getDirection(e, o) === "vertical", r = T(c), R("dragOverValid"), p.eventCanceled) return _;
|
|
859
858
|
if (a)
|
|
860
|
-
return S = E, z(), this._hideClone(),
|
|
859
|
+
return S = E, z(), this._hideClone(), R("revert"), p.eventCanceled || (se ? E.insertBefore(c, se) : E.appendChild(c)), A(!0);
|
|
861
860
|
var $ = _t(n, l.draggable);
|
|
862
|
-
if (!$ ||
|
|
861
|
+
if (!$ || qn(e, w, this) && !$.animated) {
|
|
863
862
|
if ($ === c)
|
|
864
863
|
return A(!1);
|
|
865
864
|
if ($ && n === e.target && (o = $), o && (i = T(o)), Xe(E, n, c, r, o, i, e, !!o) !== !1)
|
|
866
865
|
return z(), n.appendChild(c), S = n, V(), A(!0);
|
|
867
|
-
} else if ($ &&
|
|
866
|
+
} else if ($ && Un(e, w, this)) {
|
|
868
867
|
var oe = ve(n, 0, l, !0);
|
|
869
868
|
if (oe === c)
|
|
870
869
|
return A(!1);
|
|
@@ -872,11 +871,11 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
872
871
|
return z(), n.insertBefore(c, oe), S = n, V(), A(!0);
|
|
873
872
|
} else if (o.parentNode === n) {
|
|
874
873
|
i = T(o);
|
|
875
|
-
var Y = 0, re, be = c.parentNode !== n, k = !
|
|
876
|
-
fe !== o && (re = i[
|
|
874
|
+
var Y = 0, re, be = c.parentNode !== n, k = !Wn(c.animated && c.toRect || r, o.animated && o.toRect || i, w), ye = w ? "top" : "left", Z = It(o, "top", "top") || It(c, "top", "top"), _e = Z ? Z.scrollTop : void 0;
|
|
875
|
+
fe !== o && (re = i[ye], Ae = !1, Re = !k && l.invertSwap || be), Y = Kn(e, o, i, w, k ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Re, fe === o);
|
|
877
876
|
var G;
|
|
878
877
|
if (Y !== 0) {
|
|
879
|
-
var ie =
|
|
878
|
+
var ie = B(c);
|
|
880
879
|
do
|
|
881
880
|
ie -= Y, G = S.children[ie];
|
|
882
881
|
while (G && (h(G, "display") === "none" || G === m));
|
|
@@ -888,7 +887,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
888
887
|
Q = Y === 1;
|
|
889
888
|
var Me = Xe(E, n, c, r, o, i, e, Q);
|
|
890
889
|
if (Me !== !1)
|
|
891
|
-
return (Me === 1 || Me === -1) && (Q = Me === 1), ft = !0, setTimeout(
|
|
890
|
+
return (Me === 1 || Me === -1) && (Q = Me === 1), ft = !0, setTimeout(Gn, 30), z(), Q && !we ? n.appendChild(c) : o.parentNode.insertBefore(c, Q ? we : o), Z && jt(Z, 0, _e - Z.scrollTop), S = c.parentNode, re !== void 0 && !Re && (We = Math.abs(re - T(o)[ye])), V(), A(!0);
|
|
892
891
|
}
|
|
893
892
|
if (n.contains(c))
|
|
894
893
|
return A(!1);
|
|
@@ -905,13 +904,13 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
905
904
|
},
|
|
906
905
|
_onDrop: function(e) {
|
|
907
906
|
var n = this.el, o = this.options;
|
|
908
|
-
if (M =
|
|
907
|
+
if (M = B(c), J = B(c, o.draggable), N("drop", this, {
|
|
909
908
|
evt: e
|
|
910
|
-
}), S = c && c.parentNode, M =
|
|
909
|
+
}), S = c && c.parentNode, M = B(c), J = B(c, o.draggable), p.eventCanceled) {
|
|
911
910
|
this._nulling();
|
|
912
911
|
return;
|
|
913
912
|
}
|
|
914
|
-
he = !1,
|
|
913
|
+
he = !1, Re = !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
914
|
sortable: this,
|
|
916
915
|
name: "unchoose",
|
|
917
916
|
toEl: S,
|
|
@@ -958,7 +957,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
958
957
|
}), this.save()))), this._nulling();
|
|
959
958
|
},
|
|
960
959
|
_nulling: function() {
|
|
961
|
-
N("nulling", this), E = c = S = m = se = D = Ye = ee = ae = X = Se = M = J = pe = Ie = fe = Oe = I =
|
|
960
|
+
N("nulling", this), E = c = S = m = se = D = Ye = ee = ae = X = Se = M = J = pe = Ie = fe = Oe = I = Be = p.dragged = p.ghost = p.clone = p.active = null, Ke.forEach(function(e) {
|
|
962
961
|
e.checked = !0;
|
|
963
962
|
}), Ke.length = tt = nt = 0;
|
|
964
963
|
},
|
|
@@ -970,7 +969,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
970
969
|
break;
|
|
971
970
|
case "dragenter":
|
|
972
971
|
case "dragover":
|
|
973
|
-
c && (this._onDragOver(e),
|
|
972
|
+
c && (this._onDragOver(e), zn(e));
|
|
974
973
|
break;
|
|
975
974
|
case "selectstart":
|
|
976
975
|
e.preventDefault();
|
|
@@ -983,7 +982,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
983
982
|
*/
|
|
984
983
|
toArray: function() {
|
|
985
984
|
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) ||
|
|
985
|
+
n = o[r], W(n, a.draggable, this.el, !1) && e.push(n.getAttribute(a.dataIdAttr) || Qn(n));
|
|
987
986
|
return e;
|
|
988
987
|
},
|
|
989
988
|
/**
|
|
@@ -1055,7 +1054,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
1055
1054
|
}
|
|
1056
1055
|
}
|
|
1057
1056
|
};
|
|
1058
|
-
function
|
|
1057
|
+
function zn(t) {
|
|
1059
1058
|
t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
|
|
1060
1059
|
}
|
|
1061
1060
|
function Xe(t, e, n, o, r, i, a, l) {
|
|
@@ -1068,18 +1067,18 @@ function Xe(t, e, n, o, r, i, a, l) {
|
|
|
1068
1067
|
function rt(t) {
|
|
1069
1068
|
t.draggable = !1;
|
|
1070
1069
|
}
|
|
1071
|
-
function
|
|
1070
|
+
function Gn() {
|
|
1072
1071
|
ft = !1;
|
|
1073
1072
|
}
|
|
1074
|
-
function
|
|
1073
|
+
function Un(t, e, n) {
|
|
1075
1074
|
var o = T(ve(n.el, 0, n.options, !0)), r = 10;
|
|
1076
1075
|
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
1076
|
}
|
|
1078
|
-
function
|
|
1077
|
+
function qn(t, e, n) {
|
|
1079
1078
|
var o = T(_t(n.el, n.options.draggable)), r = 10;
|
|
1080
1079
|
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
1080
|
}
|
|
1082
|
-
function
|
|
1081
|
+
function Kn(t, e, n, o, r, i, a, l) {
|
|
1083
1082
|
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
1083
|
if (!a) {
|
|
1085
1084
|
if (l && We < u * r) {
|
|
@@ -1088,19 +1087,19 @@ function Zn(t, e, n, o, r, i, a, l) {
|
|
|
1088
1087
|
else if (Oe === 1 ? s < d + We : s > f - We)
|
|
1089
1088
|
return -Oe;
|
|
1090
1089
|
} else if (s > d + u * (1 - r) / 2 && s < f - u * (1 - r) / 2)
|
|
1091
|
-
return
|
|
1090
|
+
return Zn(e);
|
|
1092
1091
|
}
|
|
1093
1092
|
return g = g || a, g && (s < d + u * i / 2 || s > f - u * i / 2) ? s > d + u / 2 ? 1 : -1 : 0;
|
|
1094
1093
|
}
|
|
1095
|
-
function
|
|
1096
|
-
return
|
|
1094
|
+
function Zn(t) {
|
|
1095
|
+
return B(c) < B(t) ? 1 : -1;
|
|
1097
1096
|
}
|
|
1098
|
-
function
|
|
1097
|
+
function Qn(t) {
|
|
1099
1098
|
for (var e = t.tagName + t.className + t.src + t.href + t.textContent, n = e.length, o = 0; n--; )
|
|
1100
1099
|
o += e.charCodeAt(n);
|
|
1101
1100
|
return o.toString(36);
|
|
1102
1101
|
}
|
|
1103
|
-
function
|
|
1102
|
+
function Jn(t) {
|
|
1104
1103
|
Ke.length = 0;
|
|
1105
1104
|
for (var e = t.getElementsByTagName("input"), n = e.length; n--; ) {
|
|
1106
1105
|
var o = e[n];
|
|
@@ -1113,23 +1112,23 @@ function He(t) {
|
|
|
1113
1112
|
function ht(t) {
|
|
1114
1113
|
return clearTimeout(t);
|
|
1115
1114
|
}
|
|
1116
|
-
Qe &&
|
|
1115
|
+
Qe && y(document, "touchmove", function(t) {
|
|
1117
1116
|
(p.active || he) && t.cancelable && t.preventDefault();
|
|
1118
1117
|
});
|
|
1119
1118
|
p.utils = {
|
|
1120
|
-
on:
|
|
1119
|
+
on: y,
|
|
1121
1120
|
off: b,
|
|
1122
1121
|
css: h,
|
|
1123
1122
|
find: Wt,
|
|
1124
1123
|
is: function(e, n) {
|
|
1125
1124
|
return !!W(e, n, e, !1);
|
|
1126
1125
|
},
|
|
1127
|
-
extend:
|
|
1126
|
+
extend: Mn,
|
|
1128
1127
|
throttle: Ht,
|
|
1129
1128
|
closest: W,
|
|
1130
1129
|
toggleClass: F,
|
|
1131
1130
|
clone: zt,
|
|
1132
|
-
index:
|
|
1131
|
+
index: B,
|
|
1133
1132
|
nextTick: He,
|
|
1134
1133
|
cancelNextTick: ht,
|
|
1135
1134
|
detectDirection: Ut,
|
|
@@ -1150,9 +1149,9 @@ p.mount = function() {
|
|
|
1150
1149
|
p.create = function(t, e) {
|
|
1151
1150
|
return new p(t, e);
|
|
1152
1151
|
};
|
|
1153
|
-
p.version =
|
|
1152
|
+
p.version = Pn;
|
|
1154
1153
|
var C = [], De, pt, mt = !1, it, at, Ze, Ce;
|
|
1155
|
-
function
|
|
1154
|
+
function eo() {
|
|
1156
1155
|
function t() {
|
|
1157
1156
|
this.defaults = {
|
|
1158
1157
|
scroll: !0,
|
|
@@ -1167,14 +1166,14 @@ function to() {
|
|
|
1167
1166
|
return t.prototype = {
|
|
1168
1167
|
dragStarted: function(n) {
|
|
1169
1168
|
var o = n.originalEvent;
|
|
1170
|
-
this.sortable.nativeDraggable ?
|
|
1169
|
+
this.sortable.nativeDraggable ? y(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? y(document, "pointermove", this._handleFallbackAutoScroll) : o.touches ? y(document, "touchmove", this._handleFallbackAutoScroll) : y(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1171
1170
|
},
|
|
1172
1171
|
dragOverCompleted: function(n) {
|
|
1173
1172
|
var o = n.originalEvent;
|
|
1174
1173
|
!this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
|
|
1175
1174
|
},
|
|
1176
1175
|
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)),
|
|
1176
|
+
this.sortable.nativeDraggable ? b(document, "dragover", this._handleAutoScroll) : (b(document, "pointermove", this._handleFallbackAutoScroll), b(document, "touchmove", this._handleFallbackAutoScroll), b(document, "mousemove", this._handleFallbackAutoScroll)), kt(), je(), Ln();
|
|
1178
1177
|
},
|
|
1179
1178
|
nulling: function() {
|
|
1180
1179
|
Ze = pt = De = mt = Ce = it = at = null, C.length = 0;
|
|
@@ -1187,7 +1186,7 @@ function to() {
|
|
|
1187
1186
|
if (Ze = n, o || this.options.forceAutoScrollFallback || ke || K || Te) {
|
|
1188
1187
|
lt(n, this.options, l, o);
|
|
1189
1188
|
var s = te(l, !0);
|
|
1190
|
-
mt && (!Ce || i !== it || a !== at) && (Ce &&
|
|
1189
|
+
mt && (!Ce || i !== it || a !== at) && (Ce && kt(), Ce = setInterval(function() {
|
|
1191
1190
|
var u = te(document.elementFromPoint(i, a), !0);
|
|
1192
1191
|
u !== s && (s = u, je()), lt(n, r.options, u, o);
|
|
1193
1192
|
}, 10), it = i, at = a);
|
|
@@ -1209,7 +1208,7 @@ function je() {
|
|
|
1209
1208
|
clearInterval(t.pid);
|
|
1210
1209
|
}), C = [];
|
|
1211
1210
|
}
|
|
1212
|
-
function
|
|
1211
|
+
function kt() {
|
|
1213
1212
|
clearInterval(Ce);
|
|
1214
1213
|
}
|
|
1215
1214
|
var lt = Ht(function(t, e, n, o) {
|
|
@@ -1218,13 +1217,13 @@ var lt = Ht(function(t, e, n, o) {
|
|
|
1218
1217
|
pt !== n && (pt = n, je(), De = e.scroll, d = e.scrollFn, De === !0 && (De = te(n, !0)));
|
|
1219
1218
|
var f = 0, g = De;
|
|
1220
1219
|
do {
|
|
1221
|
-
var w = g, v = T(w),
|
|
1220
|
+
var w = g, v = T(w), _ = v.top, R = 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), ye = w.scrollLeft, Z = w.scrollTop;
|
|
1222
1221
|
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
|
|
1222
|
+
var _e = oe && (Math.abs(A - r) <= a && ye + V < re) - (Math.abs(z - r) <= a && !!ye), G = Y && (Math.abs(R - i) <= a && Z + $ < be) - (Math.abs(_ - i) <= a && !!Z);
|
|
1224
1223
|
if (!C[f])
|
|
1225
1224
|
for (var ie = 0; ie <= f; ie++)
|
|
1226
1225
|
C[ie] || (C[ie] = {});
|
|
1227
|
-
(C[f].vx !=
|
|
1226
|
+
(C[f].vx != _e || C[f].vy != G || C[f].el !== w) && (C[f].el = w, C[f].vx = _e, C[f].vy = G, clearInterval(C[f].pid), (_e != 0 || G != 0) && (u = !0, C[f].pid = setInterval((function() {
|
|
1228
1227
|
o && this.layer === 0 && p.active._onTouchMove(Ze);
|
|
1229
1228
|
var we = C[this.layer].vy ? C[this.layer].vy * l : 0, Q = C[this.layer].vx ? C[this.layer].vx * l : 0;
|
|
1230
1229
|
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);
|
|
@@ -1246,9 +1245,9 @@ var lt = Ht(function(t, e, n, o) {
|
|
|
1246
1245
|
}));
|
|
1247
1246
|
}
|
|
1248
1247
|
};
|
|
1249
|
-
function
|
|
1248
|
+
function wt() {
|
|
1250
1249
|
}
|
|
1251
|
-
|
|
1250
|
+
wt.prototype = {
|
|
1252
1251
|
startIndex: null,
|
|
1253
1252
|
dragStart: function(e) {
|
|
1254
1253
|
var n = e.oldDraggableIndex;
|
|
@@ -1262,49 +1261,49 @@ yt.prototype = {
|
|
|
1262
1261
|
},
|
|
1263
1262
|
drop: Qt
|
|
1264
1263
|
};
|
|
1265
|
-
q(
|
|
1264
|
+
q(wt, {
|
|
1266
1265
|
pluginName: "revertOnSpill"
|
|
1267
1266
|
});
|
|
1268
|
-
function
|
|
1267
|
+
function Et() {
|
|
1269
1268
|
}
|
|
1270
|
-
|
|
1269
|
+
Et.prototype = {
|
|
1271
1270
|
onSpill: function(e) {
|
|
1272
1271
|
var n = e.dragEl, o = e.putSortable, r = o || this.sortable;
|
|
1273
1272
|
r.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), r.animateAll();
|
|
1274
1273
|
},
|
|
1275
1274
|
drop: Qt
|
|
1276
1275
|
};
|
|
1277
|
-
q(
|
|
1276
|
+
q(Et, {
|
|
1278
1277
|
pluginName: "removeOnSpill"
|
|
1279
1278
|
});
|
|
1280
|
-
p.mount(new
|
|
1281
|
-
p.mount(
|
|
1279
|
+
p.mount(new eo());
|
|
1280
|
+
p.mount(Et, wt);
|
|
1282
1281
|
function st(t) {
|
|
1283
1282
|
t.parentElement !== null && t.parentElement.removeChild(t);
|
|
1284
1283
|
}
|
|
1285
|
-
function
|
|
1284
|
+
function Ft(t, e, n) {
|
|
1286
1285
|
const o = n === 0 ? t.children[0] : t.children[n - 1].nextSibling;
|
|
1287
1286
|
t.insertBefore(e, o);
|
|
1288
1287
|
}
|
|
1289
|
-
function
|
|
1288
|
+
function to() {
|
|
1290
1289
|
return typeof window < "u" ? window.console : global.console;
|
|
1291
1290
|
}
|
|
1292
|
-
const
|
|
1293
|
-
function
|
|
1291
|
+
const no = to();
|
|
1292
|
+
function oo(t) {
|
|
1294
1293
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1295
1294
|
return function(o) {
|
|
1296
1295
|
return e[o] || (e[o] = t(o));
|
|
1297
1296
|
};
|
|
1298
1297
|
}
|
|
1299
|
-
const
|
|
1298
|
+
const ro = /-(\w)/g, io = oo((t) => t.replace(ro, (e, n) => n.toUpperCase())), Jt = ["Start", "Add", "Remove", "Update", "End"], en = ["Choose", "Unchoose", "Sort", "Filter", "Clone"], tn = ["Move"], ao = [tn, Jt, en].flatMap((t) => t).map((t) => `on${t}`), gt = {
|
|
1300
1299
|
manage: tn,
|
|
1301
1300
|
manageAndEmit: Jt,
|
|
1302
1301
|
emit: en
|
|
1303
1302
|
};
|
|
1304
|
-
function
|
|
1305
|
-
return
|
|
1303
|
+
function lo(t) {
|
|
1304
|
+
return ao.indexOf(t) !== -1;
|
|
1306
1305
|
}
|
|
1307
|
-
const
|
|
1306
|
+
const so = [
|
|
1308
1307
|
"a",
|
|
1309
1308
|
"abbr",
|
|
1310
1309
|
"address",
|
|
@@ -1423,10 +1422,10 @@ const uo = [
|
|
|
1423
1422
|
"video",
|
|
1424
1423
|
"wbr"
|
|
1425
1424
|
];
|
|
1426
|
-
function
|
|
1427
|
-
return
|
|
1425
|
+
function uo(t) {
|
|
1426
|
+
return so.includes(t);
|
|
1428
1427
|
}
|
|
1429
|
-
function
|
|
1428
|
+
function co(t) {
|
|
1430
1429
|
return ["transition-group", "TransitionGroup"].includes(t);
|
|
1431
1430
|
}
|
|
1432
1431
|
function nn(t) {
|
|
@@ -1435,7 +1434,7 @@ function nn(t) {
|
|
|
1435
1434
|
function on(t) {
|
|
1436
1435
|
return t.reduce((e, [n, o]) => (e[n] = o, e), {});
|
|
1437
1436
|
}
|
|
1438
|
-
function
|
|
1437
|
+
function fo({ $attrs: t, componentData: e = {} }) {
|
|
1439
1438
|
return {
|
|
1440
1439
|
...on(
|
|
1441
1440
|
Object.entries(t).filter(([o, r]) => nn(o))
|
|
@@ -1443,7 +1442,7 @@ function ho({ $attrs: t, componentData: e = {} }) {
|
|
|
1443
1442
|
...e
|
|
1444
1443
|
};
|
|
1445
1444
|
}
|
|
1446
|
-
function
|
|
1445
|
+
function ho({ $attrs: t, callBackBuilder: e }) {
|
|
1447
1446
|
const n = on(rn(t));
|
|
1448
1447
|
Object.entries(e).forEach(([r, i]) => {
|
|
1449
1448
|
gt[r].forEach((a) => {
|
|
@@ -1457,10 +1456,10 @@ function po({ $attrs: t, callBackBuilder: e }) {
|
|
|
1457
1456
|
};
|
|
1458
1457
|
}
|
|
1459
1458
|
function rn(t) {
|
|
1460
|
-
return Object.entries(t).filter(([e, n]) => !nn(e)).map(([e, n]) => [
|
|
1459
|
+
return Object.entries(t).filter(([e, n]) => !nn(e)).map(([e, n]) => [io(e), n]).filter(([e, n]) => !lo(e));
|
|
1461
1460
|
}
|
|
1462
|
-
const
|
|
1463
|
-
class
|
|
1461
|
+
const Mt = ({ el: t }) => t, po = (t, e) => t.__draggable_context = e, Lt = (t) => t.__draggable_context;
|
|
1462
|
+
class mo {
|
|
1464
1463
|
constructor({
|
|
1465
1464
|
nodes: { header: e, default: n, footer: o },
|
|
1466
1465
|
root: r,
|
|
@@ -1478,37 +1477,37 @@ class go {
|
|
|
1478
1477
|
updated() {
|
|
1479
1478
|
const { defaultNodes: e, realList: n } = this;
|
|
1480
1479
|
e.forEach((o, r) => {
|
|
1481
|
-
|
|
1480
|
+
po(Mt(o), {
|
|
1482
1481
|
element: n[r],
|
|
1483
1482
|
index: r
|
|
1484
1483
|
});
|
|
1485
1484
|
});
|
|
1486
1485
|
}
|
|
1487
1486
|
getUnderlyingVm(e) {
|
|
1488
|
-
return
|
|
1487
|
+
return Lt(e);
|
|
1489
1488
|
}
|
|
1490
1489
|
getVmIndexFromDomIndex(e, n) {
|
|
1491
1490
|
const { defaultNodes: o } = this, { length: r } = o, i = n.children, a = i.item(e);
|
|
1492
1491
|
if (a === null)
|
|
1493
1492
|
return r;
|
|
1494
|
-
const l =
|
|
1493
|
+
const l = Lt(a);
|
|
1495
1494
|
if (l)
|
|
1496
1495
|
return l.index;
|
|
1497
1496
|
if (r === 0)
|
|
1498
1497
|
return 0;
|
|
1499
|
-
const s =
|
|
1498
|
+
const s = Mt(o[0]), u = [...i].findIndex(
|
|
1500
1499
|
(d) => d === s
|
|
1501
1500
|
);
|
|
1502
1501
|
return e < u ? 0 : r;
|
|
1503
1502
|
}
|
|
1504
1503
|
}
|
|
1505
|
-
function
|
|
1504
|
+
function go(t, e) {
|
|
1506
1505
|
const n = t[e];
|
|
1507
1506
|
return n ? n() : [];
|
|
1508
1507
|
}
|
|
1509
|
-
function
|
|
1508
|
+
function vo({ $slots: t, realList: e, getKey: n }) {
|
|
1510
1509
|
const o = e || [], [r, i] = ["header", "footer"].map(
|
|
1511
|
-
(s) =>
|
|
1510
|
+
(s) => go(t, s)
|
|
1512
1511
|
), { item: a } = t;
|
|
1513
1512
|
if (!a)
|
|
1514
1513
|
throw new Error("draggable element must have an item slot");
|
|
@@ -1523,8 +1522,8 @@ function bo({ $slots: t, realList: e, getKey: n }) {
|
|
|
1523
1522
|
default: l
|
|
1524
1523
|
};
|
|
1525
1524
|
}
|
|
1526
|
-
function
|
|
1527
|
-
const e =
|
|
1525
|
+
function bo(t) {
|
|
1526
|
+
const e = co(t), n = !uo(t) && !e;
|
|
1528
1527
|
return {
|
|
1529
1528
|
transition: e,
|
|
1530
1529
|
externalComponent: n,
|
|
@@ -1532,11 +1531,11 @@ function _o(t) {
|
|
|
1532
1531
|
};
|
|
1533
1532
|
}
|
|
1534
1533
|
function yo({ $slots: t, tag: e, realList: n, getKey: o }) {
|
|
1535
|
-
const r =
|
|
1536
|
-
return new
|
|
1534
|
+
const r = vo({ $slots: t, realList: n, getKey: o }), i = bo(e);
|
|
1535
|
+
return new mo({ nodes: r, root: i, realList: n });
|
|
1537
1536
|
}
|
|
1538
1537
|
function an(t, e) {
|
|
1539
|
-
|
|
1538
|
+
Vt(() => this.$emit(t.toLowerCase(), e));
|
|
1540
1539
|
}
|
|
1541
1540
|
function ln(t) {
|
|
1542
1541
|
return (e, n) => {
|
|
@@ -1544,14 +1543,14 @@ function ln(t) {
|
|
|
1544
1543
|
return this[`onDrag${t}`](e, n);
|
|
1545
1544
|
};
|
|
1546
1545
|
}
|
|
1547
|
-
function
|
|
1546
|
+
function _o(t) {
|
|
1548
1547
|
const e = ln.call(this, t);
|
|
1549
1548
|
return (n, o) => {
|
|
1550
1549
|
e.call(this, n, o), an.call(this, t, n);
|
|
1551
1550
|
};
|
|
1552
1551
|
}
|
|
1553
1552
|
let ut = null;
|
|
1554
|
-
const
|
|
1553
|
+
const wo = {
|
|
1555
1554
|
list: {
|
|
1556
1555
|
type: Array,
|
|
1557
1556
|
required: !1,
|
|
@@ -1583,15 +1582,15 @@ const Eo = {
|
|
|
1583
1582
|
required: !1,
|
|
1584
1583
|
default: null
|
|
1585
1584
|
}
|
|
1586
|
-
},
|
|
1585
|
+
}, Eo = [
|
|
1587
1586
|
"update:modelValue",
|
|
1588
1587
|
"change",
|
|
1589
1588
|
...[...gt.manageAndEmit, ...gt.emit].map((t) => t.toLowerCase())
|
|
1590
|
-
],
|
|
1589
|
+
], Vo = Ne({
|
|
1591
1590
|
name: "draggable",
|
|
1592
1591
|
inheritAttrs: !1,
|
|
1593
|
-
props:
|
|
1594
|
-
emits:
|
|
1592
|
+
props: wo,
|
|
1593
|
+
emits: Eo,
|
|
1595
1594
|
data() {
|
|
1596
1595
|
return {
|
|
1597
1596
|
error: !1
|
|
@@ -1607,14 +1606,14 @@ const Eo = {
|
|
|
1607
1606
|
getKey: i
|
|
1608
1607
|
});
|
|
1609
1608
|
this.componentStructure = a;
|
|
1610
|
-
const l =
|
|
1611
|
-
return a.render(
|
|
1609
|
+
const l = fo({ $attrs: e, componentData: o });
|
|
1610
|
+
return a.render(Dt, l);
|
|
1612
1611
|
} catch (t) {
|
|
1613
|
-
return this.error = !0,
|
|
1612
|
+
return this.error = !0, Dt("pre", { style: { color: "red" } }, t.stack);
|
|
1614
1613
|
}
|
|
1615
1614
|
},
|
|
1616
1615
|
created() {
|
|
1617
|
-
this.list !== null && this.modelValue !== null &&
|
|
1616
|
+
this.list !== null && this.modelValue !== null && no.error(
|
|
1618
1617
|
"modelValue and list props are mutually exclusive! Please set one or another."
|
|
1619
1618
|
);
|
|
1620
1619
|
},
|
|
@@ -1623,10 +1622,10 @@ const Eo = {
|
|
|
1623
1622
|
return;
|
|
1624
1623
|
const { $attrs: t, $el: e, componentStructure: n } = this;
|
|
1625
1624
|
n.updated();
|
|
1626
|
-
const o =
|
|
1625
|
+
const o = ho({
|
|
1627
1626
|
$attrs: t,
|
|
1628
1627
|
callBackBuilder: {
|
|
1629
|
-
manageAndEmit: (i) =>
|
|
1628
|
+
manageAndEmit: (i) => _o.call(this, i),
|
|
1630
1629
|
emit: (i) => an.bind(this, i),
|
|
1631
1630
|
manage: (i) => ln.call(this, i)
|
|
1632
1631
|
}
|
|
@@ -1668,7 +1667,7 @@ const Eo = {
|
|
|
1668
1667
|
return t.__draggable_component__;
|
|
1669
1668
|
},
|
|
1670
1669
|
emitChanges(t) {
|
|
1671
|
-
|
|
1670
|
+
Vt(() => this.$emit("change", t));
|
|
1672
1671
|
},
|
|
1673
1672
|
alterList(t) {
|
|
1674
1673
|
if (this.list) {
|
|
@@ -1713,7 +1712,7 @@ const Eo = {
|
|
|
1713
1712
|
this.emitChanges({ added: o });
|
|
1714
1713
|
},
|
|
1715
1714
|
onDragRemove(t) {
|
|
1716
|
-
if (
|
|
1715
|
+
if (Ft(this.$el, t.item, t.oldIndex), t.pullMode === "clone") {
|
|
1717
1716
|
st(t.clone);
|
|
1718
1717
|
return;
|
|
1719
1718
|
}
|
|
@@ -1723,7 +1722,7 @@ const Eo = {
|
|
|
1723
1722
|
this.emitChanges({ removed: o });
|
|
1724
1723
|
},
|
|
1725
1724
|
onDragUpdate(t) {
|
|
1726
|
-
st(t.item),
|
|
1725
|
+
st(t.item), Ft(t.from, t.item, t.oldIndex);
|
|
1727
1726
|
const e = this.context.index, n = this.getVmIndexFromDomIndex(t.newIndex);
|
|
1728
1727
|
this.updatePosition(e, n);
|
|
1729
1728
|
const o = { element: this.context.element, oldIndex: e, newIndex: n };
|
|
@@ -1757,7 +1756,7 @@ const Eo = {
|
|
|
1757
1756
|
ut = null;
|
|
1758
1757
|
}
|
|
1759
1758
|
}
|
|
1760
|
-
}),
|
|
1759
|
+
}), So = Object.entries(x).map((t) => {
|
|
1761
1760
|
let e = "";
|
|
1762
1761
|
switch (t[1]) {
|
|
1763
1762
|
case x.BarChart:
|
|
@@ -1786,11 +1785,11 @@ const Eo = {
|
|
|
1786
1785
|
break;
|
|
1787
1786
|
}
|
|
1788
1787
|
return {
|
|
1789
|
-
label:
|
|
1788
|
+
label: wn(t[0]),
|
|
1790
1789
|
icon: e,
|
|
1791
1790
|
value: t[1]
|
|
1792
1791
|
};
|
|
1793
|
-
}),
|
|
1792
|
+
}), Do = /* @__PURE__ */ Ne({
|
|
1794
1793
|
__name: "WidgetTypeList",
|
|
1795
1794
|
props: /* @__PURE__ */ pn({
|
|
1796
1795
|
childClass: {
|
|
@@ -1814,8 +1813,8 @@ const Eo = {
|
|
|
1814
1813
|
}),
|
|
1815
1814
|
emits: ["update:modelValue"],
|
|
1816
1815
|
setup(t) {
|
|
1817
|
-
const { t: e } = Xt(), n =
|
|
1818
|
-
() =>
|
|
1816
|
+
const { t: e } = Xt(), n = vt(t, "modelValue"), o = t, r = mn(
|
|
1817
|
+
() => So.map((i) => ({
|
|
1819
1818
|
...i,
|
|
1820
1819
|
label: e(`report.widget.types.${i.value.toLowerCase()}`)
|
|
1821
1820
|
}))
|
|
@@ -1823,7 +1822,7 @@ const Eo = {
|
|
|
1823
1822
|
return (i, a) => {
|
|
1824
1823
|
const l = ge("FmIcon"), s = ge("FmCard");
|
|
1825
1824
|
return ne(), ce("div", null, [
|
|
1826
|
-
(ne(!0), ce(
|
|
1825
|
+
(ne(!0), ce(bt, null, gn(r.value.filter(
|
|
1827
1826
|
(u) => o.excludeWidgeType.indexOf(u.value) === -1
|
|
1828
1827
|
), (u, d) => (ne(), vn(s, {
|
|
1829
1828
|
key: d,
|
|
@@ -1837,19 +1836,19 @@ const Eo = {
|
|
|
1837
1836
|
size: o.isList ? "md" : "lg",
|
|
1838
1837
|
outline: !0
|
|
1839
1838
|
}, null, 8, ["name", "size"]),
|
|
1840
|
-
|
|
1839
|
+
yn(" " + Rt(u.label), 1)
|
|
1841
1840
|
]),
|
|
1842
1841
|
_: 2
|
|
1843
1842
|
}, 1032, ["class", "onClick"]))), 128))
|
|
1844
1843
|
]);
|
|
1845
1844
|
};
|
|
1846
1845
|
}
|
|
1847
|
-
}),
|
|
1848
|
-
function
|
|
1846
|
+
}), Xo = /* @__PURE__ */ yt(Do, [["__scopeId", "data-v-7c1916a3"]]);
|
|
1847
|
+
function Co(t) {
|
|
1849
1848
|
let e, n, o;
|
|
1850
1849
|
switch (t) {
|
|
1851
1850
|
case x.Table:
|
|
1852
|
-
e = [], n = !1, o =
|
|
1851
|
+
e = [], n = !1, o = Cn.top;
|
|
1853
1852
|
break;
|
|
1854
1853
|
}
|
|
1855
1854
|
return {
|
|
@@ -1871,7 +1870,7 @@ function To(t) {
|
|
|
1871
1870
|
joinDatasources: e
|
|
1872
1871
|
};
|
|
1873
1872
|
}
|
|
1874
|
-
function
|
|
1873
|
+
function $o(t, e) {
|
|
1875
1874
|
let n = 1, o = 1;
|
|
1876
1875
|
switch (t) {
|
|
1877
1876
|
case x.Scorecard:
|
|
@@ -1901,37 +1900,42 @@ function Wo(t, e) {
|
|
|
1901
1900
|
widget: {
|
|
1902
1901
|
title: e || "New widget",
|
|
1903
1902
|
type: t,
|
|
1904
|
-
config:
|
|
1903
|
+
config: Co(t)
|
|
1905
1904
|
}
|
|
1906
1905
|
};
|
|
1907
1906
|
}
|
|
1908
|
-
function
|
|
1907
|
+
function Yo(t, e) {
|
|
1909
1908
|
return t.filter((n, o) => o !== e);
|
|
1910
1909
|
}
|
|
1911
|
-
const
|
|
1910
|
+
const To = {
|
|
1912
1911
|
key: 0,
|
|
1913
1912
|
class: "flex flex-col gap-5"
|
|
1914
|
-
},
|
|
1913
|
+
}, xo = /* @__PURE__ */ Ne({
|
|
1915
1914
|
__name: "Section",
|
|
1915
|
+
props: {
|
|
1916
|
+
isOpen: { type: Boolean, default: !0 },
|
|
1917
|
+
isOpenModifiers: {}
|
|
1918
|
+
},
|
|
1919
|
+
emits: ["update:isOpen"],
|
|
1916
1920
|
setup(t) {
|
|
1917
|
-
const e =
|
|
1921
|
+
const e = vt(t, "isOpen");
|
|
1918
1922
|
return (n, o) => {
|
|
1919
1923
|
const r = ge("FmIcon"), i = ge("FmMenuDivider");
|
|
1920
|
-
return ne(), ce(
|
|
1921
|
-
|
|
1924
|
+
return ne(), ce(bt, null, [
|
|
1925
|
+
Bt("div", {
|
|
1922
1926
|
class: "flex items-center cursor-pointer fm-typo-en-body-lg-600",
|
|
1923
1927
|
onClick: o[0] || (o[0] = (a) => e.value = !e.value)
|
|
1924
1928
|
}, [
|
|
1925
1929
|
Pe(n.$slots, "header", {}, void 0, !0),
|
|
1926
1930
|
ue(r, {
|
|
1927
|
-
name: e.value ? "
|
|
1931
|
+
name: e.value ? "keyboard_arrow_up" : "keyboard_arrow_down"
|
|
1928
1932
|
}, null, 8, ["name"])
|
|
1929
1933
|
]),
|
|
1930
1934
|
ue(ct, { name: "slide-fade" }, {
|
|
1931
1935
|
default: ze(() => [
|
|
1932
|
-
e.value ?
|
|
1936
|
+
e.value ? (ne(), ce("div", To, [
|
|
1933
1937
|
Pe(n.$slots, "content", {}, void 0, !0)
|
|
1934
|
-
]))
|
|
1938
|
+
])) : dt("", !0)
|
|
1935
1939
|
]),
|
|
1936
1940
|
_: 3
|
|
1937
1941
|
}),
|
|
@@ -1939,7 +1943,7 @@ const xo = {
|
|
|
1939
1943
|
], 64);
|
|
1940
1944
|
};
|
|
1941
1945
|
}
|
|
1942
|
-
}),
|
|
1946
|
+
}), Wo = /* @__PURE__ */ yt(xo, [["__scopeId", "data-v-fa67a3a4"]]), Io = /* @__PURE__ */ Ne({
|
|
1943
1947
|
__name: "TransitionFade",
|
|
1944
1948
|
props: {
|
|
1945
1949
|
modelValue: { type: Boolean, required: !0, default: !0 },
|
|
@@ -1947,8 +1951,8 @@ const xo = {
|
|
|
1947
1951
|
},
|
|
1948
1952
|
emits: ["update:modelValue"],
|
|
1949
1953
|
setup(t) {
|
|
1950
|
-
const e =
|
|
1951
|
-
return (n, o) => (ne(), ce(
|
|
1954
|
+
const e = vt(t, "modelValue");
|
|
1955
|
+
return (n, o) => (ne(), ce(bt, null, [
|
|
1952
1956
|
ue(ct, { name: "slide-fade-right" }, {
|
|
1953
1957
|
default: ze(() => [
|
|
1954
1958
|
e.value ? Pe(n.$slots, "right", { key: 0 }, void 0, !0) : dt("", !0)
|
|
@@ -1963,14 +1967,14 @@ const xo = {
|
|
|
1963
1967
|
})
|
|
1964
1968
|
], 64));
|
|
1965
1969
|
}
|
|
1966
|
-
}),
|
|
1970
|
+
}), Ho = /* @__PURE__ */ yt(Io, [["__scopeId", "data-v-a98ca9bc"]]);
|
|
1967
1971
|
export {
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1972
|
+
Wo as S,
|
|
1973
|
+
Ho as T,
|
|
1974
|
+
Xo as W,
|
|
1975
|
+
Ro as _,
|
|
1976
|
+
Co as a,
|
|
1977
|
+
Vo as d,
|
|
1978
|
+
Yo as h,
|
|
1979
|
+
$o as i
|
|
1976
1980
|
};
|