@feedmepos/mf-report 5.26.4 → 5.26.5-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-swq2ECTF.js → App-QcOCU8rc.js} +60 -60
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-D2CpsvxS.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-De-0BpSa.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-_zBaKDEK.js → Default.vue_vue_type_script_setup_true_lang-3blnkA-n.js} +1 -1
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-hP3sZIfZ.js +4777 -0
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Dun5PD4W.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DHPUtfOs.js} +2521 -2562
- package/dist/{InsightView-zWCeytWt.js → InsightView-_wb0GqpG.js} +4 -4
- package/dist/{Integration-DYCTpXlU.js → Integration-DyGkKMsa.js} +3 -3
- package/dist/{Integrations-ClLIVRa8.js → Integrations-C5ZsHxmd.js} +2 -2
- package/dist/{Layout-B4fXLMaj.js → Layout-CmMa2qs4.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-KKttveoS.js → MenuTab.vue_vue_type_script_setup_true_lang-BsE2UhQ5.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CH7w1ORf.js → NavigationTab.vue_vue_type_script_setup_true_lang-ewnLHyBz.js} +3 -3
- package/dist/{OverviewView-BhXfogDe.js → OverviewView-DCz3S4k6.js} +4 -4
- package/dist/{Report-BwmFIgo-.js → Report-Bksdpnal.js} +3 -3
- package/dist/{ReportEditor-CTQ8vCNs.js → ReportEditor-BHONojQQ.js} +228 -228
- package/dist/{ReportView-ZCaT-MkZ.js → ReportView-vhrQCIHU.js} +6 -6
- package/dist/{Setting-Co8VUFhL.js → Setting-CwwCAzJH.js} +3 -3
- package/dist/{Template-22RXwi-V.js → Template-DVYVtNYg.js} +3 -3
- package/dist/TileEditor-BXCFEix_.js +4027 -0
- package/dist/TransitionFade-B2T5r_vC.js +3360 -0
- package/dist/{app-B8enBaoM.js → app-DnkOgWGu.js} +1470 -993
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-CM3TtVoi.js → formatChartData.worker-BwOf9WPp.js} +5 -5
- package/dist/assets/{processTableData.worker-BTFUd91t.js → processTableData.worker-BlwP8Wjn.js} +5 -5
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-Bc9WzEui.js → useRestaurantPermission-CQKnU3lQ.js} +1 -1
- package/package.json +1 -1
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-BoRLpJ9M.js +0 -4924
- package/dist/TileEditor-Bs4LL9Bo.js +0 -3863
- package/dist/TransitionFade-BYmuDYSd.js +0 -2379
|
@@ -1,2379 +0,0 @@
|
|
|
1
|
-
import { defineComponent as Te, onBeforeMount as In, onBeforeUnmount as Fn, resolveComponent as N, createElementBlock as ee, openBlock as V, normalizeStyle as kn, unref as X, renderSlot as ze, createVNode as A, createElementVNode as ue, toDisplayString as Ae, TransitionGroup as An, nextTick as nn, h as Rt, mergeModels as Nt, useModel as Ge, computed as Fe, Fragment as qe, renderList as on, createBlock as Pe, normalizeClass as Xt, withCtx as ie, Transition as xt, createCommentVNode as ce, ref as Se, watch as pt, withModifiers as Yt, createTextVNode as Nn } from "vue";
|
|
2
|
-
import { u as Pt, a as Pn } from "./vue-i18n-DVWuTfed.js";
|
|
3
|
-
import { useCoreStore as Vn } from "@feedmepos/mf-common";
|
|
4
|
-
import { storeToRefs as Mn } from "pinia";
|
|
5
|
-
import { useRoute as Ln } from "vue-router";
|
|
6
|
-
import { W as F, I as Be, h as rn, i as an, c as De, g as Bn, f as $n } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Dun5PD4W.js";
|
|
7
|
-
import { p as Rn, a as ln, d as Xn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-D2CpsvxS.js";
|
|
8
|
-
import { b as Vt, a as Wt } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BL1jpiXN.js";
|
|
9
|
-
import { R as Yn } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BoRLpJ9M.js";
|
|
10
|
-
import { d as ht } from "./app-B8enBaoM.js";
|
|
11
|
-
import { r as Wn } from "./i18n-CI_sQ5d_.js";
|
|
12
|
-
import { useSnackbar as Un } from "@feedmepos/ui-library";
|
|
13
|
-
const jn = {
|
|
14
|
-
key: 0,
|
|
15
|
-
class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"
|
|
16
|
-
}, Hn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, vr = /* @__PURE__ */ Te({
|
|
17
|
-
__name: "FullScreen",
|
|
18
|
-
setup(t) {
|
|
19
|
-
const { t: e } = Pt(), n = Ln(), { isLoading: o } = Mn(Pn()), r = Vn();
|
|
20
|
-
return In(() => {
|
|
21
|
-
r.hideSidebarToggle(!0);
|
|
22
|
-
}), Fn(() => {
|
|
23
|
-
r.hideSidebarToggle(!1);
|
|
24
|
-
}), (i, a) => {
|
|
25
|
-
const c = N("FmCircularProgress");
|
|
26
|
-
return V(), ee("div", {
|
|
27
|
-
class: "mx-auto",
|
|
28
|
-
style: kn({
|
|
29
|
-
height: `calc(100vh - ${X(n).query.token && X(n).query.businessId ? "0" : "64"}px)`
|
|
30
|
-
})
|
|
31
|
-
}, [
|
|
32
|
-
X(o) ? (V(), ee("div", jn, [
|
|
33
|
-
A(c, { size: "xl" }),
|
|
34
|
-
ue("span", Hn, Ae(X(e)("report.common.isLoading")), 1)
|
|
35
|
-
])) : ze(i.$slots, "default", { key: 1 })
|
|
36
|
-
], 4);
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
/**!
|
|
41
|
-
* Sortable 1.14.0
|
|
42
|
-
* @author RubaXa <trash@rubaxa.org>
|
|
43
|
-
* @author owenm <owen23355@gmail.com>
|
|
44
|
-
* @license MIT
|
|
45
|
-
*/
|
|
46
|
-
function Ut(t, e) {
|
|
47
|
-
var n = Object.keys(t);
|
|
48
|
-
if (Object.getOwnPropertySymbols) {
|
|
49
|
-
var o = Object.getOwnPropertySymbols(t);
|
|
50
|
-
e && (o = o.filter(function(r) {
|
|
51
|
-
return Object.getOwnPropertyDescriptor(t, r).enumerable;
|
|
52
|
-
})), n.push.apply(n, o);
|
|
53
|
-
}
|
|
54
|
-
return n;
|
|
55
|
-
}
|
|
56
|
-
function le(t) {
|
|
57
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
58
|
-
var n = arguments[e] != null ? arguments[e] : {};
|
|
59
|
-
e % 2 ? Ut(Object(n), !0).forEach(function(o) {
|
|
60
|
-
zn(t, o, n[o]);
|
|
61
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Ut(Object(n)).forEach(function(o) {
|
|
62
|
-
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(n, o));
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
return t;
|
|
66
|
-
}
|
|
67
|
-
function ot(t) {
|
|
68
|
-
"@babel/helpers - typeof";
|
|
69
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? ot = function(e) {
|
|
70
|
-
return typeof e;
|
|
71
|
-
} : ot = function(e) {
|
|
72
|
-
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
73
|
-
}, ot(t);
|
|
74
|
-
}
|
|
75
|
-
function zn(t, e, n) {
|
|
76
|
-
return e in t ? Object.defineProperty(t, e, {
|
|
77
|
-
value: n,
|
|
78
|
-
enumerable: !0,
|
|
79
|
-
configurable: !0,
|
|
80
|
-
writable: !0
|
|
81
|
-
}) : t[e] = n, t;
|
|
82
|
-
}
|
|
83
|
-
function fe() {
|
|
84
|
-
return fe = Object.assign || function(t) {
|
|
85
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
86
|
-
var n = arguments[e];
|
|
87
|
-
for (var o in n)
|
|
88
|
-
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
89
|
-
}
|
|
90
|
-
return t;
|
|
91
|
-
}, fe.apply(this, arguments);
|
|
92
|
-
}
|
|
93
|
-
function Gn(t, e) {
|
|
94
|
-
if (t == null) return {};
|
|
95
|
-
var n = {}, o = Object.keys(t), r, i;
|
|
96
|
-
for (i = 0; i < o.length; i++)
|
|
97
|
-
r = o[i], !(e.indexOf(r) >= 0) && (n[r] = t[r]);
|
|
98
|
-
return n;
|
|
99
|
-
}
|
|
100
|
-
function qn(t, e) {
|
|
101
|
-
if (t == null) return {};
|
|
102
|
-
var n = Gn(t, e), o, r;
|
|
103
|
-
if (Object.getOwnPropertySymbols) {
|
|
104
|
-
var i = Object.getOwnPropertySymbols(t);
|
|
105
|
-
for (r = 0; r < i.length; r++)
|
|
106
|
-
o = i[r], !(e.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(t, o) && (n[o] = t[o]);
|
|
107
|
-
}
|
|
108
|
-
return n;
|
|
109
|
-
}
|
|
110
|
-
var Kn = "1.14.0";
|
|
111
|
-
function de(t) {
|
|
112
|
-
if (typeof window < "u" && window.navigator)
|
|
113
|
-
return !!/* @__PURE__ */ navigator.userAgent.match(t);
|
|
114
|
-
}
|
|
115
|
-
var me = de(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ke = de(/Edge/i), jt = de(/firefox/i), Ye = de(/safari/i) && !de(/chrome/i) && !de(/android/i), sn = de(/iP(ad|od|hone)/i), Jn = de(/chrome/i) && de(/android/i), un = {
|
|
116
|
-
capture: !1,
|
|
117
|
-
passive: !1
|
|
118
|
-
};
|
|
119
|
-
function D(t, e, n) {
|
|
120
|
-
t.addEventListener(e, n, !me && un);
|
|
121
|
-
}
|
|
122
|
-
function S(t, e, n) {
|
|
123
|
-
t.removeEventListener(e, n, !me && un);
|
|
124
|
-
}
|
|
125
|
-
function st(t, e) {
|
|
126
|
-
if (e) {
|
|
127
|
-
if (e[0] === ">" && (e = e.substring(1)), t)
|
|
128
|
-
try {
|
|
129
|
-
if (t.matches)
|
|
130
|
-
return t.matches(e);
|
|
131
|
-
if (t.msMatchesSelector)
|
|
132
|
-
return t.msMatchesSelector(e);
|
|
133
|
-
if (t.webkitMatchesSelector)
|
|
134
|
-
return t.webkitMatchesSelector(e);
|
|
135
|
-
} catch {
|
|
136
|
-
return !1;
|
|
137
|
-
}
|
|
138
|
-
return !1;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
function Zn(t) {
|
|
142
|
-
return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode;
|
|
143
|
-
}
|
|
144
|
-
function re(t, e, n, o) {
|
|
145
|
-
if (t) {
|
|
146
|
-
n = n || document;
|
|
147
|
-
do {
|
|
148
|
-
if (e != null && (e[0] === ">" ? t.parentNode === n && st(t, e) : st(t, e)) || o && t === n)
|
|
149
|
-
return t;
|
|
150
|
-
if (t === n) break;
|
|
151
|
-
} while (t = Zn(t));
|
|
152
|
-
}
|
|
153
|
-
return null;
|
|
154
|
-
}
|
|
155
|
-
var Ht = /\s+/g;
|
|
156
|
-
function J(t, e, n) {
|
|
157
|
-
if (t && e)
|
|
158
|
-
if (t.classList)
|
|
159
|
-
t.classList[n ? "add" : "remove"](e);
|
|
160
|
-
else {
|
|
161
|
-
var o = (" " + t.className + " ").replace(Ht, " ").replace(" " + e + " ", " ");
|
|
162
|
-
t.className = (o + (n ? " " + e : "")).replace(Ht, " ");
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
function h(t, e, n) {
|
|
166
|
-
var o = t && t.style;
|
|
167
|
-
if (o) {
|
|
168
|
-
if (n === void 0)
|
|
169
|
-
return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(t, "") : t.currentStyle && (n = t.currentStyle), e === void 0 ? n : n[e];
|
|
170
|
-
!(e in o) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), o[e] = n + (typeof n == "string" ? "" : "px");
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
function Ve(t, e) {
|
|
174
|
-
var n = "";
|
|
175
|
-
if (typeof t == "string")
|
|
176
|
-
n = t;
|
|
177
|
-
else
|
|
178
|
-
do {
|
|
179
|
-
var o = h(t, "transform");
|
|
180
|
-
o && o !== "none" && (n = o + " " + n);
|
|
181
|
-
} while (!e && (t = t.parentNode));
|
|
182
|
-
var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
183
|
-
return r && new r(n);
|
|
184
|
-
}
|
|
185
|
-
function cn(t, e, n) {
|
|
186
|
-
if (t) {
|
|
187
|
-
var o = t.getElementsByTagName(e), r = 0, i = o.length;
|
|
188
|
-
if (n)
|
|
189
|
-
for (; r < i; r++)
|
|
190
|
-
n(o[r], r);
|
|
191
|
-
return o;
|
|
192
|
-
}
|
|
193
|
-
return [];
|
|
194
|
-
}
|
|
195
|
-
function ae() {
|
|
196
|
-
var t = document.scrollingElement;
|
|
197
|
-
return t || document.documentElement;
|
|
198
|
-
}
|
|
199
|
-
function P(t, e, n, o, r) {
|
|
200
|
-
if (!(!t.getBoundingClientRect && t !== window)) {
|
|
201
|
-
var i, a, c, l, u, f, s;
|
|
202
|
-
if (t !== window && t.parentNode && t !== ae() ? (i = t.getBoundingClientRect(), a = i.top, c = i.left, l = i.bottom, u = i.right, f = i.height, s = i.width) : (a = 0, c = 0, l = window.innerHeight, u = window.innerWidth, f = window.innerHeight, s = window.innerWidth), (e || n) && t !== window && (r = r || t.parentNode, !me))
|
|
203
|
-
do
|
|
204
|
-
if (r && r.getBoundingClientRect && (h(r, "transform") !== "none" || n && h(r, "position") !== "static")) {
|
|
205
|
-
var v = r.getBoundingClientRect();
|
|
206
|
-
a -= v.top + parseInt(h(r, "border-top-width")), c -= v.left + parseInt(h(r, "border-left-width")), l = a + i.height, u = c + i.width;
|
|
207
|
-
break;
|
|
208
|
-
}
|
|
209
|
-
while (r = r.parentNode);
|
|
210
|
-
if (o && t !== window) {
|
|
211
|
-
var y = Ve(r || t), _ = y && y.a, b = y && y.d;
|
|
212
|
-
y && (a /= b, c /= _, s /= _, f /= b, l = a + f, u = c + s);
|
|
213
|
-
}
|
|
214
|
-
return {
|
|
215
|
-
top: a,
|
|
216
|
-
left: c,
|
|
217
|
-
bottom: l,
|
|
218
|
-
right: u,
|
|
219
|
-
width: s,
|
|
220
|
-
height: f
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
function zt(t, e, n) {
|
|
225
|
-
for (var o = ve(t, !0), r = P(t)[e]; o; ) {
|
|
226
|
-
var i = P(o)[n], a = void 0;
|
|
227
|
-
if (a = r >= i, !a) return o;
|
|
228
|
-
if (o === ae()) break;
|
|
229
|
-
o = ve(o, !1);
|
|
230
|
-
}
|
|
231
|
-
return !1;
|
|
232
|
-
}
|
|
233
|
-
function Me(t, e, n, o) {
|
|
234
|
-
for (var r = 0, i = 0, a = t.children; i < a.length; ) {
|
|
235
|
-
if (a[i].style.display !== "none" && a[i] !== g.ghost && (o || a[i] !== g.dragged) && re(a[i], n.draggable, t, !1)) {
|
|
236
|
-
if (r === e)
|
|
237
|
-
return a[i];
|
|
238
|
-
r++;
|
|
239
|
-
}
|
|
240
|
-
i++;
|
|
241
|
-
}
|
|
242
|
-
return null;
|
|
243
|
-
}
|
|
244
|
-
function Mt(t, e) {
|
|
245
|
-
for (var n = t.lastElementChild; n && (n === g.ghost || h(n, "display") === "none" || e && !st(n, e)); )
|
|
246
|
-
n = n.previousElementSibling;
|
|
247
|
-
return n || null;
|
|
248
|
-
}
|
|
249
|
-
function ne(t, e) {
|
|
250
|
-
var n = 0;
|
|
251
|
-
if (!t || !t.parentNode)
|
|
252
|
-
return -1;
|
|
253
|
-
for (; t = t.previousElementSibling; )
|
|
254
|
-
t.nodeName.toUpperCase() !== "TEMPLATE" && t !== g.clone && (!e || st(t, e)) && n++;
|
|
255
|
-
return n;
|
|
256
|
-
}
|
|
257
|
-
function Gt(t) {
|
|
258
|
-
var e = 0, n = 0, o = ae();
|
|
259
|
-
if (t)
|
|
260
|
-
do {
|
|
261
|
-
var r = Ve(t), i = r.a, a = r.d;
|
|
262
|
-
e += t.scrollLeft * i, n += t.scrollTop * a;
|
|
263
|
-
} while (t !== o && (t = t.parentNode));
|
|
264
|
-
return [e, n];
|
|
265
|
-
}
|
|
266
|
-
function Qn(t, e) {
|
|
267
|
-
for (var n in t)
|
|
268
|
-
if (t.hasOwnProperty(n)) {
|
|
269
|
-
for (var o in e)
|
|
270
|
-
if (e.hasOwnProperty(o) && e[o] === t[n][o]) return Number(n);
|
|
271
|
-
}
|
|
272
|
-
return -1;
|
|
273
|
-
}
|
|
274
|
-
function ve(t, e) {
|
|
275
|
-
if (!t || !t.getBoundingClientRect) return ae();
|
|
276
|
-
var n = t, o = !1;
|
|
277
|
-
do
|
|
278
|
-
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
279
|
-
var r = h(n);
|
|
280
|
-
if (n.clientWidth < n.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
|
|
281
|
-
if (!n.getBoundingClientRect || n === document.body) return ae();
|
|
282
|
-
if (o || e) return n;
|
|
283
|
-
o = !0;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
while (n = n.parentNode);
|
|
287
|
-
return ae();
|
|
288
|
-
}
|
|
289
|
-
function eo(t, e) {
|
|
290
|
-
if (t && e)
|
|
291
|
-
for (var n in e)
|
|
292
|
-
e.hasOwnProperty(n) && (t[n] = e[n]);
|
|
293
|
-
return t;
|
|
294
|
-
}
|
|
295
|
-
function gt(t, e) {
|
|
296
|
-
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);
|
|
297
|
-
}
|
|
298
|
-
var We;
|
|
299
|
-
function dn(t, e) {
|
|
300
|
-
return function() {
|
|
301
|
-
if (!We) {
|
|
302
|
-
var n = arguments, o = this;
|
|
303
|
-
n.length === 1 ? t.call(o, n[0]) : t.apply(o, n), We = setTimeout(function() {
|
|
304
|
-
We = void 0;
|
|
305
|
-
}, e);
|
|
306
|
-
}
|
|
307
|
-
};
|
|
308
|
-
}
|
|
309
|
-
function to() {
|
|
310
|
-
clearTimeout(We), We = void 0;
|
|
311
|
-
}
|
|
312
|
-
function fn(t, e, n) {
|
|
313
|
-
t.scrollLeft += e, t.scrollTop += n;
|
|
314
|
-
}
|
|
315
|
-
function mn(t) {
|
|
316
|
-
var e = window.Polymer, n = window.jQuery || window.Zepto;
|
|
317
|
-
return e && e.dom ? e.dom(t).cloneNode(!0) : n ? n(t).clone(!0)[0] : t.cloneNode(!0);
|
|
318
|
-
}
|
|
319
|
-
var Q = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
320
|
-
function no() {
|
|
321
|
-
var t = [], e;
|
|
322
|
-
return {
|
|
323
|
-
captureAnimationState: function() {
|
|
324
|
-
if (t = [], !!this.options.animation) {
|
|
325
|
-
var o = [].slice.call(this.el.children);
|
|
326
|
-
o.forEach(function(r) {
|
|
327
|
-
if (!(h(r, "display") === "none" || r === g.ghost)) {
|
|
328
|
-
t.push({
|
|
329
|
-
target: r,
|
|
330
|
-
rect: P(r)
|
|
331
|
-
});
|
|
332
|
-
var i = le({}, t[t.length - 1].rect);
|
|
333
|
-
if (r.thisAnimationDuration) {
|
|
334
|
-
var a = Ve(r, !0);
|
|
335
|
-
a && (i.top -= a.f, i.left -= a.e);
|
|
336
|
-
}
|
|
337
|
-
r.fromRect = i;
|
|
338
|
-
}
|
|
339
|
-
});
|
|
340
|
-
}
|
|
341
|
-
},
|
|
342
|
-
addAnimationState: function(o) {
|
|
343
|
-
t.push(o);
|
|
344
|
-
},
|
|
345
|
-
removeAnimationState: function(o) {
|
|
346
|
-
t.splice(Qn(t, {
|
|
347
|
-
target: o
|
|
348
|
-
}), 1);
|
|
349
|
-
},
|
|
350
|
-
animateAll: function(o) {
|
|
351
|
-
var r = this;
|
|
352
|
-
if (!this.options.animation) {
|
|
353
|
-
clearTimeout(e), typeof o == "function" && o();
|
|
354
|
-
return;
|
|
355
|
-
}
|
|
356
|
-
var i = !1, a = 0;
|
|
357
|
-
t.forEach(function(c) {
|
|
358
|
-
var l = 0, u = c.target, f = u.fromRect, s = P(u), v = u.prevFromRect, y = u.prevToRect, _ = c.rect, b = Ve(u, !0);
|
|
359
|
-
b && (s.top -= b.f, s.left -= b.e), u.toRect = s, u.thisAnimationDuration && gt(v, s) && !gt(f, s) && // Make sure animatingRect is on line between toRect & fromRect
|
|
360
|
-
(_.top - s.top) / (_.left - s.left) === (f.top - s.top) / (f.left - s.left) && (l = ro(_, v, y, r.options)), gt(s, f) || (u.prevFromRect = f, u.prevToRect = s, l || (l = r.options.animation), r.animate(u, _, s, l)), l && (i = !0, a = Math.max(a, l), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
361
|
-
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
362
|
-
}, l), u.thisAnimationDuration = l);
|
|
363
|
-
}), clearTimeout(e), i ? e = setTimeout(function() {
|
|
364
|
-
typeof o == "function" && o();
|
|
365
|
-
}, a) : typeof o == "function" && o(), t = [];
|
|
366
|
-
},
|
|
367
|
-
animate: function(o, r, i, a) {
|
|
368
|
-
if (a) {
|
|
369
|
-
h(o, "transition", ""), h(o, "transform", "");
|
|
370
|
-
var c = Ve(this.el), l = c && c.a, u = c && c.d, f = (r.left - i.left) / (l || 1), s = (r.top - i.top) / (u || 1);
|
|
371
|
-
o.animatingX = !!f, o.animatingY = !!s, h(o, "transform", "translate3d(" + f + "px," + s + "px,0)"), this.forRepaintDummy = oo(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() {
|
|
372
|
-
h(o, "transition", ""), h(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
|
373
|
-
}, a);
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
}
|
|
378
|
-
function oo(t) {
|
|
379
|
-
return t.offsetWidth;
|
|
380
|
-
}
|
|
381
|
-
function ro(t, e, n, o) {
|
|
382
|
-
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;
|
|
383
|
-
}
|
|
384
|
-
var Oe = [], vt = {
|
|
385
|
-
initializeByDefault: !0
|
|
386
|
-
}, Je = {
|
|
387
|
-
mount: function(e) {
|
|
388
|
-
for (var n in vt)
|
|
389
|
-
vt.hasOwnProperty(n) && !(n in e) && (e[n] = vt[n]);
|
|
390
|
-
Oe.forEach(function(o) {
|
|
391
|
-
if (o.pluginName === e.pluginName)
|
|
392
|
-
throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
|
|
393
|
-
}), Oe.push(e);
|
|
394
|
-
},
|
|
395
|
-
pluginEvent: function(e, n, o) {
|
|
396
|
-
var r = this;
|
|
397
|
-
this.eventCanceled = !1, o.cancel = function() {
|
|
398
|
-
r.eventCanceled = !0;
|
|
399
|
-
};
|
|
400
|
-
var i = e + "Global";
|
|
401
|
-
Oe.forEach(function(a) {
|
|
402
|
-
n[a.pluginName] && (n[a.pluginName][i] && n[a.pluginName][i](le({
|
|
403
|
-
sortable: n
|
|
404
|
-
}, o)), n.options[a.pluginName] && n[a.pluginName][e] && n[a.pluginName][e](le({
|
|
405
|
-
sortable: n
|
|
406
|
-
}, o)));
|
|
407
|
-
});
|
|
408
|
-
},
|
|
409
|
-
initializePlugins: function(e, n, o, r) {
|
|
410
|
-
Oe.forEach(function(c) {
|
|
411
|
-
var l = c.pluginName;
|
|
412
|
-
if (!(!e.options[l] && !c.initializeByDefault)) {
|
|
413
|
-
var u = new c(e, n, e.options);
|
|
414
|
-
u.sortable = e, u.options = e.options, e[l] = u, fe(o, u.defaults);
|
|
415
|
-
}
|
|
416
|
-
});
|
|
417
|
-
for (var i in e.options)
|
|
418
|
-
if (e.options.hasOwnProperty(i)) {
|
|
419
|
-
var a = this.modifyOption(e, i, e.options[i]);
|
|
420
|
-
typeof a < "u" && (e.options[i] = a);
|
|
421
|
-
}
|
|
422
|
-
},
|
|
423
|
-
getEventProperties: function(e, n) {
|
|
424
|
-
var o = {};
|
|
425
|
-
return Oe.forEach(function(r) {
|
|
426
|
-
typeof r.eventProperties == "function" && fe(o, r.eventProperties.call(n[r.pluginName], e));
|
|
427
|
-
}), o;
|
|
428
|
-
},
|
|
429
|
-
modifyOption: function(e, n, o) {
|
|
430
|
-
var r;
|
|
431
|
-
return Oe.forEach(function(i) {
|
|
432
|
-
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[n] == "function" && (r = i.optionListeners[n].call(e[i.pluginName], o));
|
|
433
|
-
}), r;
|
|
434
|
-
}
|
|
435
|
-
};
|
|
436
|
-
function io(t) {
|
|
437
|
-
var e = t.sortable, n = t.rootEl, o = t.name, r = t.targetEl, i = t.cloneEl, a = t.toEl, c = t.fromEl, l = t.oldIndex, u = t.newIndex, f = t.oldDraggableIndex, s = t.newDraggableIndex, v = t.originalEvent, y = t.putSortable, _ = t.extraEventProperties;
|
|
438
|
-
if (e = e || n && n[Q], !!e) {
|
|
439
|
-
var b, Y = e.options, q = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
440
|
-
window.CustomEvent && !me && !Ke ? b = new CustomEvent(o, {
|
|
441
|
-
bubbles: !0,
|
|
442
|
-
cancelable: !0
|
|
443
|
-
}) : (b = document.createEvent("Event"), b.initEvent(o, !0, !0)), b.to = a || n, b.from = c || n, b.item = r || n, b.clone = i, b.oldIndex = l, b.newIndex = u, b.oldDraggableIndex = f, b.newDraggableIndex = s, b.originalEvent = v, b.pullMode = y ? y.lastPutMode : void 0;
|
|
444
|
-
var T = le(le({}, _), Je.getEventProperties(o, e));
|
|
445
|
-
for (var M in T)
|
|
446
|
-
b[M] = T[M];
|
|
447
|
-
n && n.dispatchEvent(b), Y[q] && Y[q].call(e, b);
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
var ao = ["evt"], K = function(e, n) {
|
|
451
|
-
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, i = qn(o, ao);
|
|
452
|
-
Je.pluginEvent.bind(g)(e, n, le({
|
|
453
|
-
dragEl: d,
|
|
454
|
-
parentEl: x,
|
|
455
|
-
ghostEl: w,
|
|
456
|
-
rootEl: C,
|
|
457
|
-
nextEl: Ce,
|
|
458
|
-
lastDownEl: rt,
|
|
459
|
-
cloneEl: O,
|
|
460
|
-
cloneHidden: ge,
|
|
461
|
-
dragStarted: $e,
|
|
462
|
-
putSortable: R,
|
|
463
|
-
activeSortable: g.active,
|
|
464
|
-
originalEvent: r,
|
|
465
|
-
oldIndex: Ne,
|
|
466
|
-
oldDraggableIndex: Ue,
|
|
467
|
-
newIndex: Z,
|
|
468
|
-
newDraggableIndex: he,
|
|
469
|
-
hideGhostForTarget: vn,
|
|
470
|
-
unhideGhostForTarget: bn,
|
|
471
|
-
cloneNowHidden: function() {
|
|
472
|
-
ge = !0;
|
|
473
|
-
},
|
|
474
|
-
cloneNowShown: function() {
|
|
475
|
-
ge = !1;
|
|
476
|
-
},
|
|
477
|
-
dispatchSortableEvent: function(c) {
|
|
478
|
-
G({
|
|
479
|
-
sortable: n,
|
|
480
|
-
name: c,
|
|
481
|
-
originalEvent: r
|
|
482
|
-
});
|
|
483
|
-
}
|
|
484
|
-
}, i));
|
|
485
|
-
};
|
|
486
|
-
function G(t) {
|
|
487
|
-
io(le({
|
|
488
|
-
putSortable: R,
|
|
489
|
-
cloneEl: O,
|
|
490
|
-
targetEl: d,
|
|
491
|
-
rootEl: C,
|
|
492
|
-
oldIndex: Ne,
|
|
493
|
-
oldDraggableIndex: Ue,
|
|
494
|
-
newIndex: Z,
|
|
495
|
-
newDraggableIndex: he
|
|
496
|
-
}, t));
|
|
497
|
-
}
|
|
498
|
-
var d, x, w, C, Ce, rt, O, ge, Ne, Z, Ue, he, Qe, R, ke = !1, ut = !1, ct = [], we, oe, bt, yt, qt, Kt, $e, Ie, je, He = !1, et = !1, it, j, _t = [], Ot = !1, dt = [], mt = typeof document < "u", tt = sn, Jt = Ke || me ? "cssFloat" : "float", lo = mt && !Jn && !sn && "draggable" in document.createElement("div"), pn = function() {
|
|
499
|
-
if (mt) {
|
|
500
|
-
if (me)
|
|
501
|
-
return !1;
|
|
502
|
-
var t = document.createElement("x");
|
|
503
|
-
return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
|
|
504
|
-
}
|
|
505
|
-
}(), hn = function(e, n) {
|
|
506
|
-
var o = h(e), r = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), i = Me(e, 0, n), a = Me(e, 1, n), c = i && h(i), l = a && h(a), u = c && parseInt(c.marginLeft) + parseInt(c.marginRight) + P(i).width, f = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + P(a).width;
|
|
507
|
-
if (o.display === "flex")
|
|
508
|
-
return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
509
|
-
if (o.display === "grid")
|
|
510
|
-
return o.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
511
|
-
if (i && c.float && c.float !== "none") {
|
|
512
|
-
var s = c.float === "left" ? "left" : "right";
|
|
513
|
-
return a && (l.clear === "both" || l.clear === s) ? "vertical" : "horizontal";
|
|
514
|
-
}
|
|
515
|
-
return i && (c.display === "block" || c.display === "flex" || c.display === "table" || c.display === "grid" || u >= r && o[Jt] === "none" || a && o[Jt] === "none" && u + f > r) ? "vertical" : "horizontal";
|
|
516
|
-
}, so = function(e, n, o) {
|
|
517
|
-
var r = o ? e.left : e.top, i = o ? e.right : e.bottom, a = o ? e.width : e.height, c = o ? n.left : n.top, l = o ? n.right : n.bottom, u = o ? n.width : n.height;
|
|
518
|
-
return r === c || i === l || r + a / 2 === c + u / 2;
|
|
519
|
-
}, uo = function(e, n) {
|
|
520
|
-
var o;
|
|
521
|
-
return ct.some(function(r) {
|
|
522
|
-
var i = r[Q].options.emptyInsertThreshold;
|
|
523
|
-
if (!(!i || Mt(r))) {
|
|
524
|
-
var a = P(r), c = e >= a.left - i && e <= a.right + i, l = n >= a.top - i && n <= a.bottom + i;
|
|
525
|
-
if (c && l)
|
|
526
|
-
return o = r;
|
|
527
|
-
}
|
|
528
|
-
}), o;
|
|
529
|
-
}, gn = function(e) {
|
|
530
|
-
function n(i, a) {
|
|
531
|
-
return function(c, l, u, f) {
|
|
532
|
-
var s = c.options.group.name && l.options.group.name && c.options.group.name === l.options.group.name;
|
|
533
|
-
if (i == null && (a || s))
|
|
534
|
-
return !0;
|
|
535
|
-
if (i == null || i === !1)
|
|
536
|
-
return !1;
|
|
537
|
-
if (a && i === "clone")
|
|
538
|
-
return i;
|
|
539
|
-
if (typeof i == "function")
|
|
540
|
-
return n(i(c, l, u, f), a)(c, l, u, f);
|
|
541
|
-
var v = (a ? c : l).options.group.name;
|
|
542
|
-
return i === !0 || typeof i == "string" && i === v || i.join && i.indexOf(v) > -1;
|
|
543
|
-
};
|
|
544
|
-
}
|
|
545
|
-
var o = {}, r = e.group;
|
|
546
|
-
(!r || ot(r) != "object") && (r = {
|
|
547
|
-
name: r
|
|
548
|
-
}), o.name = r.name, o.checkPull = n(r.pull, !0), o.checkPut = n(r.put), o.revertClone = r.revertClone, e.group = o;
|
|
549
|
-
}, vn = function() {
|
|
550
|
-
!pn && w && h(w, "display", "none");
|
|
551
|
-
}, bn = function() {
|
|
552
|
-
!pn && w && h(w, "display", "");
|
|
553
|
-
};
|
|
554
|
-
mt && document.addEventListener("click", function(t) {
|
|
555
|
-
if (ut)
|
|
556
|
-
return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), ut = !1, !1;
|
|
557
|
-
}, !0);
|
|
558
|
-
var Ee = function(e) {
|
|
559
|
-
if (d) {
|
|
560
|
-
e = e.touches ? e.touches[0] : e;
|
|
561
|
-
var n = uo(e.clientX, e.clientY);
|
|
562
|
-
if (n) {
|
|
563
|
-
var o = {};
|
|
564
|
-
for (var r in e)
|
|
565
|
-
e.hasOwnProperty(r) && (o[r] = e[r]);
|
|
566
|
-
o.target = o.rootEl = n, o.preventDefault = void 0, o.stopPropagation = void 0, n[Q]._onDragOver(o);
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
}, co = function(e) {
|
|
570
|
-
d && d.parentNode[Q]._isOutsideThisEl(e.target);
|
|
571
|
-
};
|
|
572
|
-
function g(t, e) {
|
|
573
|
-
if (!(t && t.nodeType && t.nodeType === 1))
|
|
574
|
-
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));
|
|
575
|
-
this.el = t, this.options = e = fe({}, e), t[Q] = this;
|
|
576
|
-
var n = {
|
|
577
|
-
group: null,
|
|
578
|
-
sort: !0,
|
|
579
|
-
disabled: !1,
|
|
580
|
-
store: null,
|
|
581
|
-
handle: null,
|
|
582
|
-
draggable: /^[uo]l$/i.test(t.nodeName) ? ">li" : ">*",
|
|
583
|
-
swapThreshold: 1,
|
|
584
|
-
// percentage; 0 <= x <= 1
|
|
585
|
-
invertSwap: !1,
|
|
586
|
-
// invert always
|
|
587
|
-
invertedSwapThreshold: null,
|
|
588
|
-
// will be set to same as swapThreshold if default
|
|
589
|
-
removeCloneOnHide: !0,
|
|
590
|
-
direction: function() {
|
|
591
|
-
return hn(t, this.options);
|
|
592
|
-
},
|
|
593
|
-
ghostClass: "sortable-ghost",
|
|
594
|
-
chosenClass: "sortable-chosen",
|
|
595
|
-
dragClass: "sortable-drag",
|
|
596
|
-
ignore: "a, img",
|
|
597
|
-
filter: null,
|
|
598
|
-
preventOnFilter: !0,
|
|
599
|
-
animation: 0,
|
|
600
|
-
easing: null,
|
|
601
|
-
setData: function(a, c) {
|
|
602
|
-
a.setData("Text", c.textContent);
|
|
603
|
-
},
|
|
604
|
-
dropBubble: !1,
|
|
605
|
-
dragoverBubble: !1,
|
|
606
|
-
dataIdAttr: "data-id",
|
|
607
|
-
delay: 0,
|
|
608
|
-
delayOnTouchOnly: !1,
|
|
609
|
-
touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
|
|
610
|
-
forceFallback: !1,
|
|
611
|
-
fallbackClass: "sortable-fallback",
|
|
612
|
-
fallbackOnBody: !1,
|
|
613
|
-
fallbackTolerance: 0,
|
|
614
|
-
fallbackOffset: {
|
|
615
|
-
x: 0,
|
|
616
|
-
y: 0
|
|
617
|
-
},
|
|
618
|
-
supportPointer: g.supportPointer !== !1 && "PointerEvent" in window && !Ye,
|
|
619
|
-
emptyInsertThreshold: 5
|
|
620
|
-
};
|
|
621
|
-
Je.initializePlugins(this, t, n);
|
|
622
|
-
for (var o in n)
|
|
623
|
-
!(o in e) && (e[o] = n[o]);
|
|
624
|
-
gn(e);
|
|
625
|
-
for (var r in this)
|
|
626
|
-
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
627
|
-
this.nativeDraggable = e.forceFallback ? !1 : lo, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? D(t, "pointerdown", this._onTapStart) : (D(t, "mousedown", this._onTapStart), D(t, "touchstart", this._onTapStart)), this.nativeDraggable && (D(t, "dragover", this), D(t, "dragenter", this)), ct.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), fe(this, no());
|
|
628
|
-
}
|
|
629
|
-
g.prototype = /** @lends Sortable.prototype */
|
|
630
|
-
{
|
|
631
|
-
constructor: g,
|
|
632
|
-
_isOutsideThisEl: function(e) {
|
|
633
|
-
!this.el.contains(e) && e !== this.el && (Ie = null);
|
|
634
|
-
},
|
|
635
|
-
_getDirection: function(e, n) {
|
|
636
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, n, d) : this.options.direction;
|
|
637
|
-
},
|
|
638
|
-
_onTapStart: function(e) {
|
|
639
|
-
if (e.cancelable) {
|
|
640
|
-
var n = this, o = this.el, r = this.options, i = r.preventOnFilter, a = e.type, c = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, l = (c || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || l, f = r.filter;
|
|
641
|
-
if (yo(o), !d && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Ye && l && l.tagName.toUpperCase() === "SELECT") && (l = re(l, r.draggable, o, !1), !(l && l.animated) && rt !== l)) {
|
|
642
|
-
if (Ne = ne(l), Ue = ne(l, r.draggable), typeof f == "function") {
|
|
643
|
-
if (f.call(this, e, l, this)) {
|
|
644
|
-
G({
|
|
645
|
-
sortable: n,
|
|
646
|
-
rootEl: u,
|
|
647
|
-
name: "filter",
|
|
648
|
-
targetEl: l,
|
|
649
|
-
toEl: o,
|
|
650
|
-
fromEl: o
|
|
651
|
-
}), K("filter", n, {
|
|
652
|
-
evt: e
|
|
653
|
-
}), i && e.cancelable && e.preventDefault();
|
|
654
|
-
return;
|
|
655
|
-
}
|
|
656
|
-
} else if (f && (f = f.split(",").some(function(s) {
|
|
657
|
-
if (s = re(u, s.trim(), o, !1), s)
|
|
658
|
-
return G({
|
|
659
|
-
sortable: n,
|
|
660
|
-
rootEl: s,
|
|
661
|
-
name: "filter",
|
|
662
|
-
targetEl: l,
|
|
663
|
-
fromEl: o,
|
|
664
|
-
toEl: o
|
|
665
|
-
}), K("filter", n, {
|
|
666
|
-
evt: e
|
|
667
|
-
}), !0;
|
|
668
|
-
}), f)) {
|
|
669
|
-
i && e.cancelable && e.preventDefault();
|
|
670
|
-
return;
|
|
671
|
-
}
|
|
672
|
-
r.handle && !re(u, r.handle, o, !1) || this._prepareDragStart(e, c, l);
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
},
|
|
676
|
-
_prepareDragStart: function(e, n, o) {
|
|
677
|
-
var r = this, i = r.el, a = r.options, c = i.ownerDocument, l;
|
|
678
|
-
if (o && !d && o.parentNode === i) {
|
|
679
|
-
var u = P(o);
|
|
680
|
-
if (C = i, d = o, x = d.parentNode, Ce = d.nextSibling, rt = o, Qe = a.group, g.dragged = d, we = {
|
|
681
|
-
target: d,
|
|
682
|
-
clientX: (n || e).clientX,
|
|
683
|
-
clientY: (n || e).clientY
|
|
684
|
-
}, qt = we.clientX - u.left, Kt = we.clientY - u.top, this._lastX = (n || e).clientX, this._lastY = (n || e).clientY, d.style["will-change"] = "all", l = function() {
|
|
685
|
-
if (K("delayEnded", r, {
|
|
686
|
-
evt: e
|
|
687
|
-
}), g.eventCanceled) {
|
|
688
|
-
r._onDrop();
|
|
689
|
-
return;
|
|
690
|
-
}
|
|
691
|
-
r._disableDelayedDragEvents(), !jt && r.nativeDraggable && (d.draggable = !0), r._triggerDragStart(e, n), G({
|
|
692
|
-
sortable: r,
|
|
693
|
-
name: "choose",
|
|
694
|
-
originalEvent: e
|
|
695
|
-
}), J(d, a.chosenClass, !0);
|
|
696
|
-
}, a.ignore.split(",").forEach(function(f) {
|
|
697
|
-
cn(d, f.trim(), wt);
|
|
698
|
-
}), D(c, "dragover", Ee), D(c, "mousemove", Ee), D(c, "touchmove", Ee), D(c, "mouseup", r._onDrop), D(c, "touchend", r._onDrop), D(c, "touchcancel", r._onDrop), jt && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), K("delayStart", this, {
|
|
699
|
-
evt: e
|
|
700
|
-
}), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Ke || me))) {
|
|
701
|
-
if (g.eventCanceled) {
|
|
702
|
-
this._onDrop();
|
|
703
|
-
return;
|
|
704
|
-
}
|
|
705
|
-
D(c, "mouseup", r._disableDelayedDrag), D(c, "touchend", r._disableDelayedDrag), D(c, "touchcancel", r._disableDelayedDrag), D(c, "mousemove", r._delayedDragTouchMoveHandler), D(c, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && D(c, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(l, a.delay);
|
|
706
|
-
} else
|
|
707
|
-
l();
|
|
708
|
-
}
|
|
709
|
-
},
|
|
710
|
-
_delayedDragTouchMoveHandler: function(e) {
|
|
711
|
-
var n = e.touches ? e.touches[0] : e;
|
|
712
|
-
Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
713
|
-
},
|
|
714
|
-
_disableDelayedDrag: function() {
|
|
715
|
-
d && wt(d), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
716
|
-
},
|
|
717
|
-
_disableDelayedDragEvents: function() {
|
|
718
|
-
var e = this.el.ownerDocument;
|
|
719
|
-
S(e, "mouseup", this._disableDelayedDrag), S(e, "touchend", this._disableDelayedDrag), S(e, "touchcancel", this._disableDelayedDrag), S(e, "mousemove", this._delayedDragTouchMoveHandler), S(e, "touchmove", this._delayedDragTouchMoveHandler), S(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
720
|
-
},
|
|
721
|
-
_triggerDragStart: function(e, n) {
|
|
722
|
-
n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ? D(document, "pointermove", this._onTouchMove) : n ? D(document, "touchmove", this._onTouchMove) : D(document, "mousemove", this._onTouchMove) : (D(d, "dragend", this), D(C, "dragstart", this._onDragStart));
|
|
723
|
-
try {
|
|
724
|
-
document.selection ? at(function() {
|
|
725
|
-
document.selection.empty();
|
|
726
|
-
}) : window.getSelection().removeAllRanges();
|
|
727
|
-
} catch {
|
|
728
|
-
}
|
|
729
|
-
},
|
|
730
|
-
_dragStarted: function(e, n) {
|
|
731
|
-
if (ke = !1, C && d) {
|
|
732
|
-
K("dragStarted", this, {
|
|
733
|
-
evt: n
|
|
734
|
-
}), this.nativeDraggable && D(document, "dragover", co);
|
|
735
|
-
var o = this.options;
|
|
736
|
-
!e && J(d, o.dragClass, !1), J(d, o.ghostClass, !0), g.active = this, e && this._appendGhost(), G({
|
|
737
|
-
sortable: this,
|
|
738
|
-
name: "start",
|
|
739
|
-
originalEvent: n
|
|
740
|
-
});
|
|
741
|
-
} else
|
|
742
|
-
this._nulling();
|
|
743
|
-
},
|
|
744
|
-
_emulateDragOver: function() {
|
|
745
|
-
if (oe) {
|
|
746
|
-
this._lastX = oe.clientX, this._lastY = oe.clientY, vn();
|
|
747
|
-
for (var e = document.elementFromPoint(oe.clientX, oe.clientY), n = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(oe.clientX, oe.clientY), e !== n); )
|
|
748
|
-
n = e;
|
|
749
|
-
if (d.parentNode[Q]._isOutsideThisEl(e), n)
|
|
750
|
-
do {
|
|
751
|
-
if (n[Q]) {
|
|
752
|
-
var o = void 0;
|
|
753
|
-
if (o = n[Q]._onDragOver({
|
|
754
|
-
clientX: oe.clientX,
|
|
755
|
-
clientY: oe.clientY,
|
|
756
|
-
target: e,
|
|
757
|
-
rootEl: n
|
|
758
|
-
}), o && !this.options.dragoverBubble)
|
|
759
|
-
break;
|
|
760
|
-
}
|
|
761
|
-
e = n;
|
|
762
|
-
} while (n = n.parentNode);
|
|
763
|
-
bn();
|
|
764
|
-
}
|
|
765
|
-
},
|
|
766
|
-
_onTouchMove: function(e) {
|
|
767
|
-
if (we) {
|
|
768
|
-
var n = this.options, o = n.fallbackTolerance, r = n.fallbackOffset, i = e.touches ? e.touches[0] : e, a = w && Ve(w, !0), c = w && a && a.a, l = w && a && a.d, u = tt && j && Gt(j), f = (i.clientX - we.clientX + r.x) / (c || 1) + (u ? u[0] - _t[0] : 0) / (c || 1), s = (i.clientY - we.clientY + r.y) / (l || 1) + (u ? u[1] - _t[1] : 0) / (l || 1);
|
|
769
|
-
if (!g.active && !ke) {
|
|
770
|
-
if (o && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < o)
|
|
771
|
-
return;
|
|
772
|
-
this._onDragStart(e, !0);
|
|
773
|
-
}
|
|
774
|
-
if (w) {
|
|
775
|
-
a ? (a.e += f - (bt || 0), a.f += s - (yt || 0)) : a = {
|
|
776
|
-
a: 1,
|
|
777
|
-
b: 0,
|
|
778
|
-
c: 0,
|
|
779
|
-
d: 1,
|
|
780
|
-
e: f,
|
|
781
|
-
f: s
|
|
782
|
-
};
|
|
783
|
-
var v = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
784
|
-
h(w, "webkitTransform", v), h(w, "mozTransform", v), h(w, "msTransform", v), h(w, "transform", v), bt = f, yt = s, oe = i;
|
|
785
|
-
}
|
|
786
|
-
e.cancelable && e.preventDefault();
|
|
787
|
-
}
|
|
788
|
-
},
|
|
789
|
-
_appendGhost: function() {
|
|
790
|
-
if (!w) {
|
|
791
|
-
var e = this.options.fallbackOnBody ? document.body : C, n = P(d, !0, tt, !0, e), o = this.options;
|
|
792
|
-
if (tt) {
|
|
793
|
-
for (j = e; h(j, "position") === "static" && h(j, "transform") === "none" && j !== document; )
|
|
794
|
-
j = j.parentNode;
|
|
795
|
-
j !== document.body && j !== document.documentElement ? (j === document && (j = ae()), n.top += j.scrollTop, n.left += j.scrollLeft) : j = ae(), _t = Gt(j);
|
|
796
|
-
}
|
|
797
|
-
w = d.cloneNode(!0), J(w, o.ghostClass, !1), J(w, o.fallbackClass, !0), J(w, o.dragClass, !0), h(w, "transition", ""), h(w, "transform", ""), h(w, "box-sizing", "border-box"), h(w, "margin", 0), h(w, "top", n.top), h(w, "left", n.left), h(w, "width", n.width), h(w, "height", n.height), h(w, "opacity", "0.8"), h(w, "position", tt ? "absolute" : "fixed"), h(w, "zIndex", "100000"), h(w, "pointerEvents", "none"), g.ghost = w, e.appendChild(w), h(w, "transform-origin", qt / parseInt(w.style.width) * 100 + "% " + Kt / parseInt(w.style.height) * 100 + "%");
|
|
798
|
-
}
|
|
799
|
-
},
|
|
800
|
-
_onDragStart: function(e, n) {
|
|
801
|
-
var o = this, r = e.dataTransfer, i = o.options;
|
|
802
|
-
if (K("dragStart", this, {
|
|
803
|
-
evt: e
|
|
804
|
-
}), g.eventCanceled) {
|
|
805
|
-
this._onDrop();
|
|
806
|
-
return;
|
|
807
|
-
}
|
|
808
|
-
K("setupClone", this), g.eventCanceled || (O = mn(d), O.draggable = !1, O.style["will-change"] = "", this._hideClone(), J(O, this.options.chosenClass, !1), g.clone = O), o.cloneId = at(function() {
|
|
809
|
-
K("clone", o), !g.eventCanceled && (o.options.removeCloneOnHide || C.insertBefore(O, d), o._hideClone(), G({
|
|
810
|
-
sortable: o,
|
|
811
|
-
name: "clone"
|
|
812
|
-
}));
|
|
813
|
-
}), !n && J(d, i.dragClass, !0), n ? (ut = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (S(document, "mouseup", o._onDrop), S(document, "touchend", o._onDrop), S(document, "touchcancel", o._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(o, r, d)), D(document, "drop", o), h(d, "transform", "translateZ(0)")), ke = !0, o._dragStartId = at(o._dragStarted.bind(o, n, e)), D(document, "selectstart", o), $e = !0, Ye && h(document.body, "user-select", "none");
|
|
814
|
-
},
|
|
815
|
-
// Returns true - if no further action is needed (either inserted or another condition)
|
|
816
|
-
_onDragOver: function(e) {
|
|
817
|
-
var n = this.el, o = e.target, r, i, a, c = this.options, l = c.group, u = g.active, f = Qe === l, s = c.sort, v = R || u, y, _ = this, b = !1;
|
|
818
|
-
if (Ot) return;
|
|
819
|
-
function Y($, Le) {
|
|
820
|
-
K($, _, le({
|
|
821
|
-
evt: e,
|
|
822
|
-
isOwner: f,
|
|
823
|
-
axis: y ? "vertical" : "horizontal",
|
|
824
|
-
revert: a,
|
|
825
|
-
dragRect: r,
|
|
826
|
-
targetRect: i,
|
|
827
|
-
canSort: s,
|
|
828
|
-
fromSortable: v,
|
|
829
|
-
target: o,
|
|
830
|
-
completed: T,
|
|
831
|
-
onMove: function(Ze, _e) {
|
|
832
|
-
return nt(C, n, d, r, Ze, P(Ze), e, _e);
|
|
833
|
-
},
|
|
834
|
-
changed: M
|
|
835
|
-
}, Le));
|
|
836
|
-
}
|
|
837
|
-
function q() {
|
|
838
|
-
Y("dragOverAnimationCapture"), _.captureAnimationState(), _ !== v && v.captureAnimationState();
|
|
839
|
-
}
|
|
840
|
-
function T($) {
|
|
841
|
-
return Y("dragOverCompleted", {
|
|
842
|
-
insertion: $
|
|
843
|
-
}), $ && (f ? u._hideClone() : u._showClone(_), _ !== v && (J(d, R ? R.options.ghostClass : u.options.ghostClass, !1), J(d, c.ghostClass, !0)), R !== _ && _ !== g.active ? R = _ : _ === g.active && R && (R = null), v === _ && (_._ignoreWhileAnimating = o), _.animateAll(function() {
|
|
844
|
-
Y("dragOverAnimationComplete"), _._ignoreWhileAnimating = null;
|
|
845
|
-
}), _ !== v && (v.animateAll(), v._ignoreWhileAnimating = null)), (o === d && !d.animated || o === n && !o.animated) && (Ie = null), !c.dragoverBubble && !e.rootEl && o !== document && (d.parentNode[Q]._isOutsideThisEl(e.target), !$ && Ee(e)), !c.dragoverBubble && e.stopPropagation && e.stopPropagation(), b = !0;
|
|
846
|
-
}
|
|
847
|
-
function M() {
|
|
848
|
-
Z = ne(d), he = ne(d, c.draggable), G({
|
|
849
|
-
sortable: _,
|
|
850
|
-
name: "change",
|
|
851
|
-
toEl: n,
|
|
852
|
-
newIndex: Z,
|
|
853
|
-
newDraggableIndex: he,
|
|
854
|
-
originalEvent: e
|
|
855
|
-
});
|
|
856
|
-
}
|
|
857
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = re(o, c.draggable, n, !0), Y("dragOver"), g.eventCanceled) return b;
|
|
858
|
-
if (d.contains(e.target) || o.animated && o.animatingX && o.animatingY || _._ignoreWhileAnimating === o)
|
|
859
|
-
return T(!1);
|
|
860
|
-
if (ut = !1, u && !c.disabled && (f ? s || (a = x !== C) : R === this || (this.lastPutMode = Qe.checkPull(this, u, d, e)) && l.checkPut(this, u, d, e))) {
|
|
861
|
-
if (y = this._getDirection(e, o) === "vertical", r = P(d), Y("dragOverValid"), g.eventCanceled) return b;
|
|
862
|
-
if (a)
|
|
863
|
-
return x = C, q(), this._hideClone(), Y("revert"), g.eventCanceled || (Ce ? C.insertBefore(d, Ce) : C.appendChild(d)), T(!0);
|
|
864
|
-
var L = Mt(n, c.draggable);
|
|
865
|
-
if (!L || ho(e, y, this) && !L.animated) {
|
|
866
|
-
if (L === d)
|
|
867
|
-
return T(!1);
|
|
868
|
-
if (L && n === e.target && (o = L), o && (i = P(o)), nt(C, n, d, r, o, i, e, !!o) !== !1)
|
|
869
|
-
return q(), n.appendChild(d), x = n, M(), T(!0);
|
|
870
|
-
} else if (L && po(e, y, this)) {
|
|
871
|
-
var W = Me(n, 0, c, !0);
|
|
872
|
-
if (W === d)
|
|
873
|
-
return T(!1);
|
|
874
|
-
if (o = W, i = P(o), nt(C, n, d, r, o, i, e, !1) !== !1)
|
|
875
|
-
return q(), n.insertBefore(d, W), x = n, M(), T(!0);
|
|
876
|
-
} else if (o.parentNode === n) {
|
|
877
|
-
i = P(o);
|
|
878
|
-
var te = 0, se, be = d.parentNode !== n, H = !so(d.animated && d.toRect || r, o.animated && o.toRect || i, y), ye = y ? "top" : "left", m = zt(o, "top", "top") || zt(d, "top", "top"), p = m ? m.scrollTop : void 0;
|
|
879
|
-
Ie !== o && (se = i[ye], He = !1, et = !H && c.invertSwap || be), te = go(e, o, i, y, H ? 1 : c.swapThreshold, c.invertedSwapThreshold == null ? c.swapThreshold : c.invertedSwapThreshold, et, Ie === o);
|
|
880
|
-
var E;
|
|
881
|
-
if (te !== 0) {
|
|
882
|
-
var I = ne(d);
|
|
883
|
-
do
|
|
884
|
-
I -= te, E = x.children[I];
|
|
885
|
-
while (E && (h(E, "display") === "none" || E === w));
|
|
886
|
-
}
|
|
887
|
-
if (te === 0 || E === o)
|
|
888
|
-
return T(!1);
|
|
889
|
-
Ie = o, je = te;
|
|
890
|
-
var B = o.nextElementSibling, z = !1;
|
|
891
|
-
z = te === 1;
|
|
892
|
-
var pe = nt(C, n, d, r, o, i, e, z);
|
|
893
|
-
if (pe !== !1)
|
|
894
|
-
return (pe === 1 || pe === -1) && (z = pe === 1), Ot = !0, setTimeout(mo, 30), q(), z && !B ? n.appendChild(d) : o.parentNode.insertBefore(d, z ? B : o), m && fn(m, 0, p - m.scrollTop), x = d.parentNode, se !== void 0 && !et && (it = Math.abs(se - P(o)[ye])), M(), T(!0);
|
|
895
|
-
}
|
|
896
|
-
if (n.contains(d))
|
|
897
|
-
return T(!1);
|
|
898
|
-
}
|
|
899
|
-
return !1;
|
|
900
|
-
},
|
|
901
|
-
_ignoreWhileAnimating: null,
|
|
902
|
-
_offMoveEvents: function() {
|
|
903
|
-
S(document, "mousemove", this._onTouchMove), S(document, "touchmove", this._onTouchMove), S(document, "pointermove", this._onTouchMove), S(document, "dragover", Ee), S(document, "mousemove", Ee), S(document, "touchmove", Ee);
|
|
904
|
-
},
|
|
905
|
-
_offUpEvents: function() {
|
|
906
|
-
var e = this.el.ownerDocument;
|
|
907
|
-
S(e, "mouseup", this._onDrop), S(e, "touchend", this._onDrop), S(e, "pointerup", this._onDrop), S(e, "touchcancel", this._onDrop), S(document, "selectstart", this);
|
|
908
|
-
},
|
|
909
|
-
_onDrop: function(e) {
|
|
910
|
-
var n = this.el, o = this.options;
|
|
911
|
-
if (Z = ne(d), he = ne(d, o.draggable), K("drop", this, {
|
|
912
|
-
evt: e
|
|
913
|
-
}), x = d && d.parentNode, Z = ne(d), he = ne(d, o.draggable), g.eventCanceled) {
|
|
914
|
-
this._nulling();
|
|
915
|
-
return;
|
|
916
|
-
}
|
|
917
|
-
ke = !1, et = !1, He = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), It(this.cloneId), It(this._dragStartId), this.nativeDraggable && (S(document, "drop", this), S(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ye && h(document.body, "user-select", ""), h(d, "transform", ""), e && ($e && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (C === x || R && R.lastPutMode !== "clone") && O && O.parentNode && O.parentNode.removeChild(O), d && (this.nativeDraggable && S(d, "dragend", this), wt(d), d.style["will-change"] = "", $e && !ke && J(d, R ? R.options.ghostClass : this.options.ghostClass, !1), J(d, this.options.chosenClass, !1), G({
|
|
918
|
-
sortable: this,
|
|
919
|
-
name: "unchoose",
|
|
920
|
-
toEl: x,
|
|
921
|
-
newIndex: null,
|
|
922
|
-
newDraggableIndex: null,
|
|
923
|
-
originalEvent: e
|
|
924
|
-
}), C !== x ? (Z >= 0 && (G({
|
|
925
|
-
rootEl: x,
|
|
926
|
-
name: "add",
|
|
927
|
-
toEl: x,
|
|
928
|
-
fromEl: C,
|
|
929
|
-
originalEvent: e
|
|
930
|
-
}), G({
|
|
931
|
-
sortable: this,
|
|
932
|
-
name: "remove",
|
|
933
|
-
toEl: x,
|
|
934
|
-
originalEvent: e
|
|
935
|
-
}), G({
|
|
936
|
-
rootEl: x,
|
|
937
|
-
name: "sort",
|
|
938
|
-
toEl: x,
|
|
939
|
-
fromEl: C,
|
|
940
|
-
originalEvent: e
|
|
941
|
-
}), G({
|
|
942
|
-
sortable: this,
|
|
943
|
-
name: "sort",
|
|
944
|
-
toEl: x,
|
|
945
|
-
originalEvent: e
|
|
946
|
-
})), R && R.save()) : Z !== Ne && Z >= 0 && (G({
|
|
947
|
-
sortable: this,
|
|
948
|
-
name: "update",
|
|
949
|
-
toEl: x,
|
|
950
|
-
originalEvent: e
|
|
951
|
-
}), G({
|
|
952
|
-
sortable: this,
|
|
953
|
-
name: "sort",
|
|
954
|
-
toEl: x,
|
|
955
|
-
originalEvent: e
|
|
956
|
-
})), g.active && ((Z == null || Z === -1) && (Z = Ne, he = Ue), G({
|
|
957
|
-
sortable: this,
|
|
958
|
-
name: "end",
|
|
959
|
-
toEl: x,
|
|
960
|
-
originalEvent: e
|
|
961
|
-
}), this.save()))), this._nulling();
|
|
962
|
-
},
|
|
963
|
-
_nulling: function() {
|
|
964
|
-
K("nulling", this), C = d = x = w = Ce = O = rt = ge = we = oe = $e = Z = he = Ne = Ue = Ie = je = R = Qe = g.dragged = g.ghost = g.clone = g.active = null, dt.forEach(function(e) {
|
|
965
|
-
e.checked = !0;
|
|
966
|
-
}), dt.length = bt = yt = 0;
|
|
967
|
-
},
|
|
968
|
-
handleEvent: function(e) {
|
|
969
|
-
switch (e.type) {
|
|
970
|
-
case "drop":
|
|
971
|
-
case "dragend":
|
|
972
|
-
this._onDrop(e);
|
|
973
|
-
break;
|
|
974
|
-
case "dragenter":
|
|
975
|
-
case "dragover":
|
|
976
|
-
d && (this._onDragOver(e), fo(e));
|
|
977
|
-
break;
|
|
978
|
-
case "selectstart":
|
|
979
|
-
e.preventDefault();
|
|
980
|
-
break;
|
|
981
|
-
}
|
|
982
|
-
},
|
|
983
|
-
/**
|
|
984
|
-
* Serializes the item into an array of string.
|
|
985
|
-
* @returns {String[]}
|
|
986
|
-
*/
|
|
987
|
-
toArray: function() {
|
|
988
|
-
for (var e = [], n, o = this.el.children, r = 0, i = o.length, a = this.options; r < i; r++)
|
|
989
|
-
n = o[r], re(n, a.draggable, this.el, !1) && e.push(n.getAttribute(a.dataIdAttr) || bo(n));
|
|
990
|
-
return e;
|
|
991
|
-
},
|
|
992
|
-
/**
|
|
993
|
-
* Sorts the elements according to the array.
|
|
994
|
-
* @param {String[]} order order of the items
|
|
995
|
-
*/
|
|
996
|
-
sort: function(e, n) {
|
|
997
|
-
var o = {}, r = this.el;
|
|
998
|
-
this.toArray().forEach(function(i, a) {
|
|
999
|
-
var c = r.children[a];
|
|
1000
|
-
re(c, this.options.draggable, r, !1) && (o[i] = c);
|
|
1001
|
-
}, this), n && this.captureAnimationState(), e.forEach(function(i) {
|
|
1002
|
-
o[i] && (r.removeChild(o[i]), r.appendChild(o[i]));
|
|
1003
|
-
}), n && this.animateAll();
|
|
1004
|
-
},
|
|
1005
|
-
/**
|
|
1006
|
-
* Save the current sorting
|
|
1007
|
-
*/
|
|
1008
|
-
save: function() {
|
|
1009
|
-
var e = this.options.store;
|
|
1010
|
-
e && e.set && e.set(this);
|
|
1011
|
-
},
|
|
1012
|
-
/**
|
|
1013
|
-
* For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
|
|
1014
|
-
* @param {HTMLElement} el
|
|
1015
|
-
* @param {String} [selector] default: `options.draggable`
|
|
1016
|
-
* @returns {HTMLElement|null}
|
|
1017
|
-
*/
|
|
1018
|
-
closest: function(e, n) {
|
|
1019
|
-
return re(e, n || this.options.draggable, this.el, !1);
|
|
1020
|
-
},
|
|
1021
|
-
/**
|
|
1022
|
-
* Set/get option
|
|
1023
|
-
* @param {string} name
|
|
1024
|
-
* @param {*} [value]
|
|
1025
|
-
* @returns {*}
|
|
1026
|
-
*/
|
|
1027
|
-
option: function(e, n) {
|
|
1028
|
-
var o = this.options;
|
|
1029
|
-
if (n === void 0)
|
|
1030
|
-
return o[e];
|
|
1031
|
-
var r = Je.modifyOption(this, e, n);
|
|
1032
|
-
typeof r < "u" ? o[e] = r : o[e] = n, e === "group" && gn(o);
|
|
1033
|
-
},
|
|
1034
|
-
/**
|
|
1035
|
-
* Destroy
|
|
1036
|
-
*/
|
|
1037
|
-
destroy: function() {
|
|
1038
|
-
K("destroy", this);
|
|
1039
|
-
var e = this.el;
|
|
1040
|
-
e[Q] = null, S(e, "mousedown", this._onTapStart), S(e, "touchstart", this._onTapStart), S(e, "pointerdown", this._onTapStart), this.nativeDraggable && (S(e, "dragover", this), S(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(n) {
|
|
1041
|
-
n.removeAttribute("draggable");
|
|
1042
|
-
}), this._onDrop(), this._disableDelayedDragEvents(), ct.splice(ct.indexOf(this.el), 1), this.el = e = null;
|
|
1043
|
-
},
|
|
1044
|
-
_hideClone: function() {
|
|
1045
|
-
if (!ge) {
|
|
1046
|
-
if (K("hideClone", this), g.eventCanceled) return;
|
|
1047
|
-
h(O, "display", "none"), this.options.removeCloneOnHide && O.parentNode && O.parentNode.removeChild(O), ge = !0;
|
|
1048
|
-
}
|
|
1049
|
-
},
|
|
1050
|
-
_showClone: function(e) {
|
|
1051
|
-
if (e.lastPutMode !== "clone") {
|
|
1052
|
-
this._hideClone();
|
|
1053
|
-
return;
|
|
1054
|
-
}
|
|
1055
|
-
if (ge) {
|
|
1056
|
-
if (K("showClone", this), g.eventCanceled) return;
|
|
1057
|
-
d.parentNode == C && !this.options.group.revertClone ? C.insertBefore(O, d) : Ce ? C.insertBefore(O, Ce) : C.appendChild(O), this.options.group.revertClone && this.animate(d, O), h(O, "display", ""), ge = !1;
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
};
|
|
1061
|
-
function fo(t) {
|
|
1062
|
-
t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
|
|
1063
|
-
}
|
|
1064
|
-
function nt(t, e, n, o, r, i, a, c) {
|
|
1065
|
-
var l, u = t[Q], f = u.options.onMove, s;
|
|
1066
|
-
return window.CustomEvent && !me && !Ke ? l = new CustomEvent("move", {
|
|
1067
|
-
bubbles: !0,
|
|
1068
|
-
cancelable: !0
|
|
1069
|
-
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = e, l.from = t, l.dragged = n, l.draggedRect = o, l.related = r || e, l.relatedRect = i || P(e), l.willInsertAfter = c, l.originalEvent = a, t.dispatchEvent(l), f && (s = f.call(u, l, a)), s;
|
|
1070
|
-
}
|
|
1071
|
-
function wt(t) {
|
|
1072
|
-
t.draggable = !1;
|
|
1073
|
-
}
|
|
1074
|
-
function mo() {
|
|
1075
|
-
Ot = !1;
|
|
1076
|
-
}
|
|
1077
|
-
function po(t, e, n) {
|
|
1078
|
-
var o = P(Me(n.el, 0, n.options, !0)), r = 10;
|
|
1079
|
-
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;
|
|
1080
|
-
}
|
|
1081
|
-
function ho(t, e, n) {
|
|
1082
|
-
var o = P(Mt(n.el, n.options.draggable)), r = 10;
|
|
1083
|
-
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;
|
|
1084
|
-
}
|
|
1085
|
-
function go(t, e, n, o, r, i, a, c) {
|
|
1086
|
-
var l = o ? t.clientY : t.clientX, u = o ? n.height : n.width, f = o ? n.top : n.left, s = o ? n.bottom : n.right, v = !1;
|
|
1087
|
-
if (!a) {
|
|
1088
|
-
if (c && it < u * r) {
|
|
1089
|
-
if (!He && (je === 1 ? l > f + u * i / 2 : l < s - u * i / 2) && (He = !0), He)
|
|
1090
|
-
v = !0;
|
|
1091
|
-
else if (je === 1 ? l < f + it : l > s - it)
|
|
1092
|
-
return -je;
|
|
1093
|
-
} else if (l > f + u * (1 - r) / 2 && l < s - u * (1 - r) / 2)
|
|
1094
|
-
return vo(e);
|
|
1095
|
-
}
|
|
1096
|
-
return v = v || a, v && (l < f + u * i / 2 || l > s - u * i / 2) ? l > f + u / 2 ? 1 : -1 : 0;
|
|
1097
|
-
}
|
|
1098
|
-
function vo(t) {
|
|
1099
|
-
return ne(d) < ne(t) ? 1 : -1;
|
|
1100
|
-
}
|
|
1101
|
-
function bo(t) {
|
|
1102
|
-
for (var e = t.tagName + t.className + t.src + t.href + t.textContent, n = e.length, o = 0; n--; )
|
|
1103
|
-
o += e.charCodeAt(n);
|
|
1104
|
-
return o.toString(36);
|
|
1105
|
-
}
|
|
1106
|
-
function yo(t) {
|
|
1107
|
-
dt.length = 0;
|
|
1108
|
-
for (var e = t.getElementsByTagName("input"), n = e.length; n--; ) {
|
|
1109
|
-
var o = e[n];
|
|
1110
|
-
o.checked && dt.push(o);
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
function at(t) {
|
|
1114
|
-
return setTimeout(t, 0);
|
|
1115
|
-
}
|
|
1116
|
-
function It(t) {
|
|
1117
|
-
return clearTimeout(t);
|
|
1118
|
-
}
|
|
1119
|
-
mt && D(document, "touchmove", function(t) {
|
|
1120
|
-
(g.active || ke) && t.cancelable && t.preventDefault();
|
|
1121
|
-
});
|
|
1122
|
-
g.utils = {
|
|
1123
|
-
on: D,
|
|
1124
|
-
off: S,
|
|
1125
|
-
css: h,
|
|
1126
|
-
find: cn,
|
|
1127
|
-
is: function(e, n) {
|
|
1128
|
-
return !!re(e, n, e, !1);
|
|
1129
|
-
},
|
|
1130
|
-
extend: eo,
|
|
1131
|
-
throttle: dn,
|
|
1132
|
-
closest: re,
|
|
1133
|
-
toggleClass: J,
|
|
1134
|
-
clone: mn,
|
|
1135
|
-
index: ne,
|
|
1136
|
-
nextTick: at,
|
|
1137
|
-
cancelNextTick: It,
|
|
1138
|
-
detectDirection: hn,
|
|
1139
|
-
getChild: Me
|
|
1140
|
-
};
|
|
1141
|
-
g.get = function(t) {
|
|
1142
|
-
return t[Q];
|
|
1143
|
-
};
|
|
1144
|
-
g.mount = function() {
|
|
1145
|
-
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
|
|
1146
|
-
e[n] = arguments[n];
|
|
1147
|
-
e[0].constructor === Array && (e = e[0]), e.forEach(function(o) {
|
|
1148
|
-
if (!o.prototype || !o.prototype.constructor)
|
|
1149
|
-
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
|
|
1150
|
-
o.utils && (g.utils = le(le({}, g.utils), o.utils)), Je.mount(o);
|
|
1151
|
-
});
|
|
1152
|
-
};
|
|
1153
|
-
g.create = function(t, e) {
|
|
1154
|
-
return new g(t, e);
|
|
1155
|
-
};
|
|
1156
|
-
g.version = Kn;
|
|
1157
|
-
var k = [], Re, Ft, kt = !1, Et, St, ft, Xe;
|
|
1158
|
-
function _o() {
|
|
1159
|
-
function t() {
|
|
1160
|
-
this.defaults = {
|
|
1161
|
-
scroll: !0,
|
|
1162
|
-
forceAutoScrollFallback: !1,
|
|
1163
|
-
scrollSensitivity: 30,
|
|
1164
|
-
scrollSpeed: 10,
|
|
1165
|
-
bubbleScroll: !0
|
|
1166
|
-
};
|
|
1167
|
-
for (var e in this)
|
|
1168
|
-
e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
|
|
1169
|
-
}
|
|
1170
|
-
return t.prototype = {
|
|
1171
|
-
dragStarted: function(n) {
|
|
1172
|
-
var o = n.originalEvent;
|
|
1173
|
-
this.sortable.nativeDraggable ? D(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? D(document, "pointermove", this._handleFallbackAutoScroll) : o.touches ? D(document, "touchmove", this._handleFallbackAutoScroll) : D(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1174
|
-
},
|
|
1175
|
-
dragOverCompleted: function(n) {
|
|
1176
|
-
var o = n.originalEvent;
|
|
1177
|
-
!this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
|
|
1178
|
-
},
|
|
1179
|
-
drop: function() {
|
|
1180
|
-
this.sortable.nativeDraggable ? S(document, "dragover", this._handleAutoScroll) : (S(document, "pointermove", this._handleFallbackAutoScroll), S(document, "touchmove", this._handleFallbackAutoScroll), S(document, "mousemove", this._handleFallbackAutoScroll)), Zt(), lt(), to();
|
|
1181
|
-
},
|
|
1182
|
-
nulling: function() {
|
|
1183
|
-
ft = Ft = Re = kt = Xe = Et = St = null, k.length = 0;
|
|
1184
|
-
},
|
|
1185
|
-
_handleFallbackAutoScroll: function(n) {
|
|
1186
|
-
this._handleAutoScroll(n, !0);
|
|
1187
|
-
},
|
|
1188
|
-
_handleAutoScroll: function(n, o) {
|
|
1189
|
-
var r = this, i = (n.touches ? n.touches[0] : n).clientX, a = (n.touches ? n.touches[0] : n).clientY, c = document.elementFromPoint(i, a);
|
|
1190
|
-
if (ft = n, o || this.options.forceAutoScrollFallback || Ke || me || Ye) {
|
|
1191
|
-
Dt(n, this.options, c, o);
|
|
1192
|
-
var l = ve(c, !0);
|
|
1193
|
-
kt && (!Xe || i !== Et || a !== St) && (Xe && Zt(), Xe = setInterval(function() {
|
|
1194
|
-
var u = ve(document.elementFromPoint(i, a), !0);
|
|
1195
|
-
u !== l && (l = u, lt()), Dt(n, r.options, u, o);
|
|
1196
|
-
}, 10), Et = i, St = a);
|
|
1197
|
-
} else {
|
|
1198
|
-
if (!this.options.bubbleScroll || ve(c, !0) === ae()) {
|
|
1199
|
-
lt();
|
|
1200
|
-
return;
|
|
1201
|
-
}
|
|
1202
|
-
Dt(n, this.options, ve(c, !1), !1);
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
}, fe(t, {
|
|
1206
|
-
pluginName: "scroll",
|
|
1207
|
-
initializeByDefault: !0
|
|
1208
|
-
});
|
|
1209
|
-
}
|
|
1210
|
-
function lt() {
|
|
1211
|
-
k.forEach(function(t) {
|
|
1212
|
-
clearInterval(t.pid);
|
|
1213
|
-
}), k = [];
|
|
1214
|
-
}
|
|
1215
|
-
function Zt() {
|
|
1216
|
-
clearInterval(Xe);
|
|
1217
|
-
}
|
|
1218
|
-
var Dt = dn(function(t, e, n, o) {
|
|
1219
|
-
if (e.scroll) {
|
|
1220
|
-
var r = (t.touches ? t.touches[0] : t).clientX, i = (t.touches ? t.touches[0] : t).clientY, a = e.scrollSensitivity, c = e.scrollSpeed, l = ae(), u = !1, f;
|
|
1221
|
-
Ft !== n && (Ft = n, lt(), Re = e.scroll, f = e.scrollFn, Re === !0 && (Re = ve(n, !0)));
|
|
1222
|
-
var s = 0, v = Re;
|
|
1223
|
-
do {
|
|
1224
|
-
var y = v, _ = P(y), b = _.top, Y = _.bottom, q = _.left, T = _.right, M = _.width, L = _.height, W = void 0, te = void 0, se = y.scrollWidth, be = y.scrollHeight, H = h(y), ye = y.scrollLeft, m = y.scrollTop;
|
|
1225
|
-
y === l ? (W = M < se && (H.overflowX === "auto" || H.overflowX === "scroll" || H.overflowX === "visible"), te = L < be && (H.overflowY === "auto" || H.overflowY === "scroll" || H.overflowY === "visible")) : (W = M < se && (H.overflowX === "auto" || H.overflowX === "scroll"), te = L < be && (H.overflowY === "auto" || H.overflowY === "scroll"));
|
|
1226
|
-
var p = W && (Math.abs(T - r) <= a && ye + M < se) - (Math.abs(q - r) <= a && !!ye), E = te && (Math.abs(Y - i) <= a && m + L < be) - (Math.abs(b - i) <= a && !!m);
|
|
1227
|
-
if (!k[s])
|
|
1228
|
-
for (var I = 0; I <= s; I++)
|
|
1229
|
-
k[I] || (k[I] = {});
|
|
1230
|
-
(k[s].vx != p || k[s].vy != E || k[s].el !== y) && (k[s].el = y, k[s].vx = p, k[s].vy = E, clearInterval(k[s].pid), (p != 0 || E != 0) && (u = !0, k[s].pid = setInterval((function() {
|
|
1231
|
-
o && this.layer === 0 && g.active._onTouchMove(ft);
|
|
1232
|
-
var B = k[this.layer].vy ? k[this.layer].vy * c : 0, z = k[this.layer].vx ? k[this.layer].vx * c : 0;
|
|
1233
|
-
typeof f == "function" && f.call(g.dragged.parentNode[Q], z, B, t, ft, k[this.layer].el) !== "continue" || fn(k[this.layer].el, z, B);
|
|
1234
|
-
}).bind({
|
|
1235
|
-
layer: s
|
|
1236
|
-
}), 24))), s++;
|
|
1237
|
-
} while (e.bubbleScroll && v !== l && (v = ve(v, !1)));
|
|
1238
|
-
kt = u;
|
|
1239
|
-
}
|
|
1240
|
-
}, 30), yn = function(e) {
|
|
1241
|
-
var n = e.originalEvent, o = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, c = e.hideGhostForTarget, l = e.unhideGhostForTarget;
|
|
1242
|
-
if (n) {
|
|
1243
|
-
var u = o || i;
|
|
1244
|
-
c();
|
|
1245
|
-
var f = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, s = document.elementFromPoint(f.clientX, f.clientY);
|
|
1246
|
-
l(), u && !u.el.contains(s) && (a("spill"), this.onSpill({
|
|
1247
|
-
dragEl: r,
|
|
1248
|
-
putSortable: o
|
|
1249
|
-
}));
|
|
1250
|
-
}
|
|
1251
|
-
};
|
|
1252
|
-
function Lt() {
|
|
1253
|
-
}
|
|
1254
|
-
Lt.prototype = {
|
|
1255
|
-
startIndex: null,
|
|
1256
|
-
dragStart: function(e) {
|
|
1257
|
-
var n = e.oldDraggableIndex;
|
|
1258
|
-
this.startIndex = n;
|
|
1259
|
-
},
|
|
1260
|
-
onSpill: function(e) {
|
|
1261
|
-
var n = e.dragEl, o = e.putSortable;
|
|
1262
|
-
this.sortable.captureAnimationState(), o && o.captureAnimationState();
|
|
1263
|
-
var r = Me(this.sortable.el, this.startIndex, this.options);
|
|
1264
|
-
r ? this.sortable.el.insertBefore(n, r) : this.sortable.el.appendChild(n), this.sortable.animateAll(), o && o.animateAll();
|
|
1265
|
-
},
|
|
1266
|
-
drop: yn
|
|
1267
|
-
};
|
|
1268
|
-
fe(Lt, {
|
|
1269
|
-
pluginName: "revertOnSpill"
|
|
1270
|
-
});
|
|
1271
|
-
function Bt() {
|
|
1272
|
-
}
|
|
1273
|
-
Bt.prototype = {
|
|
1274
|
-
onSpill: function(e) {
|
|
1275
|
-
var n = e.dragEl, o = e.putSortable, r = o || this.sortable;
|
|
1276
|
-
r.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), r.animateAll();
|
|
1277
|
-
},
|
|
1278
|
-
drop: yn
|
|
1279
|
-
};
|
|
1280
|
-
fe(Bt, {
|
|
1281
|
-
pluginName: "removeOnSpill"
|
|
1282
|
-
});
|
|
1283
|
-
g.mount(new _o());
|
|
1284
|
-
g.mount(Bt, Lt);
|
|
1285
|
-
function Ct(t) {
|
|
1286
|
-
t.parentElement !== null && t.parentElement.removeChild(t);
|
|
1287
|
-
}
|
|
1288
|
-
function Qt(t, e, n) {
|
|
1289
|
-
const o = n === 0 ? t.children[0] : t.children[n - 1].nextSibling;
|
|
1290
|
-
t.insertBefore(e, o);
|
|
1291
|
-
}
|
|
1292
|
-
function wo() {
|
|
1293
|
-
return typeof window < "u" ? window.console : globalThis.console;
|
|
1294
|
-
}
|
|
1295
|
-
const Eo = wo();
|
|
1296
|
-
function So(t) {
|
|
1297
|
-
const e = /* @__PURE__ */ Object.create(null);
|
|
1298
|
-
return function(o) {
|
|
1299
|
-
return e[o] || (e[o] = t(o));
|
|
1300
|
-
};
|
|
1301
|
-
}
|
|
1302
|
-
const Do = /-(\w)/g, Co = So((t) => t.replace(Do, (e, n) => n.toUpperCase())), _n = ["Start", "Add", "Remove", "Update", "End"], wn = ["Choose", "Unchoose", "Sort", "Filter", "Clone"], En = ["Move"], To = [En, _n, wn].flatMap((t) => t).map((t) => `on${t}`), At = {
|
|
1303
|
-
manage: En,
|
|
1304
|
-
manageAndEmit: _n,
|
|
1305
|
-
emit: wn
|
|
1306
|
-
};
|
|
1307
|
-
function xo(t) {
|
|
1308
|
-
return To.indexOf(t) !== -1;
|
|
1309
|
-
}
|
|
1310
|
-
const Oo = [
|
|
1311
|
-
"a",
|
|
1312
|
-
"abbr",
|
|
1313
|
-
"address",
|
|
1314
|
-
"area",
|
|
1315
|
-
"article",
|
|
1316
|
-
"aside",
|
|
1317
|
-
"audio",
|
|
1318
|
-
"b",
|
|
1319
|
-
"base",
|
|
1320
|
-
"bdi",
|
|
1321
|
-
"bdo",
|
|
1322
|
-
"blockquote",
|
|
1323
|
-
"body",
|
|
1324
|
-
"br",
|
|
1325
|
-
"button",
|
|
1326
|
-
"canvas",
|
|
1327
|
-
"caption",
|
|
1328
|
-
"cite",
|
|
1329
|
-
"code",
|
|
1330
|
-
"col",
|
|
1331
|
-
"colgroup",
|
|
1332
|
-
"data",
|
|
1333
|
-
"datalist",
|
|
1334
|
-
"dd",
|
|
1335
|
-
"del",
|
|
1336
|
-
"details",
|
|
1337
|
-
"dfn",
|
|
1338
|
-
"dialog",
|
|
1339
|
-
"div",
|
|
1340
|
-
"dl",
|
|
1341
|
-
"dt",
|
|
1342
|
-
"em",
|
|
1343
|
-
"embed",
|
|
1344
|
-
"fieldset",
|
|
1345
|
-
"figcaption",
|
|
1346
|
-
"figure",
|
|
1347
|
-
"footer",
|
|
1348
|
-
"form",
|
|
1349
|
-
"h1",
|
|
1350
|
-
"h2",
|
|
1351
|
-
"h3",
|
|
1352
|
-
"h4",
|
|
1353
|
-
"h5",
|
|
1354
|
-
"h6",
|
|
1355
|
-
"head",
|
|
1356
|
-
"header",
|
|
1357
|
-
"hgroup",
|
|
1358
|
-
"hr",
|
|
1359
|
-
"html",
|
|
1360
|
-
"i",
|
|
1361
|
-
"iframe",
|
|
1362
|
-
"img",
|
|
1363
|
-
"input",
|
|
1364
|
-
"ins",
|
|
1365
|
-
"kbd",
|
|
1366
|
-
"label",
|
|
1367
|
-
"legend",
|
|
1368
|
-
"li",
|
|
1369
|
-
"link",
|
|
1370
|
-
"main",
|
|
1371
|
-
"map",
|
|
1372
|
-
"mark",
|
|
1373
|
-
"math",
|
|
1374
|
-
"menu",
|
|
1375
|
-
"menuitem",
|
|
1376
|
-
"meta",
|
|
1377
|
-
"meter",
|
|
1378
|
-
"nav",
|
|
1379
|
-
"noscript",
|
|
1380
|
-
"object",
|
|
1381
|
-
"ol",
|
|
1382
|
-
"optgroup",
|
|
1383
|
-
"option",
|
|
1384
|
-
"output",
|
|
1385
|
-
"p",
|
|
1386
|
-
"param",
|
|
1387
|
-
"picture",
|
|
1388
|
-
"pre",
|
|
1389
|
-
"progress",
|
|
1390
|
-
"q",
|
|
1391
|
-
"rb",
|
|
1392
|
-
"rp",
|
|
1393
|
-
"rt",
|
|
1394
|
-
"rtc",
|
|
1395
|
-
"ruby",
|
|
1396
|
-
"s",
|
|
1397
|
-
"samp",
|
|
1398
|
-
"script",
|
|
1399
|
-
"section",
|
|
1400
|
-
"select",
|
|
1401
|
-
"slot",
|
|
1402
|
-
"small",
|
|
1403
|
-
"source",
|
|
1404
|
-
"span",
|
|
1405
|
-
"strong",
|
|
1406
|
-
"style",
|
|
1407
|
-
"sub",
|
|
1408
|
-
"summary",
|
|
1409
|
-
"sup",
|
|
1410
|
-
"svg",
|
|
1411
|
-
"table",
|
|
1412
|
-
"tbody",
|
|
1413
|
-
"td",
|
|
1414
|
-
"template",
|
|
1415
|
-
"textarea",
|
|
1416
|
-
"tfoot",
|
|
1417
|
-
"th",
|
|
1418
|
-
"thead",
|
|
1419
|
-
"time",
|
|
1420
|
-
"title",
|
|
1421
|
-
"tr",
|
|
1422
|
-
"track",
|
|
1423
|
-
"u",
|
|
1424
|
-
"ul",
|
|
1425
|
-
"var",
|
|
1426
|
-
"video",
|
|
1427
|
-
"wbr"
|
|
1428
|
-
];
|
|
1429
|
-
function Io(t) {
|
|
1430
|
-
return Oo.includes(t);
|
|
1431
|
-
}
|
|
1432
|
-
function Fo(t) {
|
|
1433
|
-
return ["transition-group", "TransitionGroup"].includes(t);
|
|
1434
|
-
}
|
|
1435
|
-
function Sn(t) {
|
|
1436
|
-
return ["id", "class", "role", "style"].includes(t) || t.startsWith("data-") || t.startsWith("aria-") || t.startsWith("on");
|
|
1437
|
-
}
|
|
1438
|
-
function Dn(t) {
|
|
1439
|
-
return t.reduce((e, [n, o]) => (e[n] = o, e), {});
|
|
1440
|
-
}
|
|
1441
|
-
function ko({ $attrs: t, componentData: e = {} }) {
|
|
1442
|
-
return {
|
|
1443
|
-
...Dn(
|
|
1444
|
-
Object.entries(t).filter(([o, r]) => Sn(o))
|
|
1445
|
-
),
|
|
1446
|
-
...e
|
|
1447
|
-
};
|
|
1448
|
-
}
|
|
1449
|
-
function Ao({ $attrs: t, callBackBuilder: e }) {
|
|
1450
|
-
const n = Dn(Cn(t));
|
|
1451
|
-
Object.entries(e).forEach(([r, i]) => {
|
|
1452
|
-
At[r].forEach((a) => {
|
|
1453
|
-
n[`on${a}`] = i(a);
|
|
1454
|
-
});
|
|
1455
|
-
});
|
|
1456
|
-
const o = `[data-draggable]${n.draggable || ""}`;
|
|
1457
|
-
return {
|
|
1458
|
-
...n,
|
|
1459
|
-
draggable: o
|
|
1460
|
-
};
|
|
1461
|
-
}
|
|
1462
|
-
function Cn(t) {
|
|
1463
|
-
return Object.entries(t).filter(([e, n]) => !Sn(e)).map(([e, n]) => [Co(e), n]).filter(([e, n]) => !xo(e));
|
|
1464
|
-
}
|
|
1465
|
-
const en = ({ el: t }) => t, No = (t, e) => t.__draggable_context = e, tn = (t) => t.__draggable_context;
|
|
1466
|
-
class Po {
|
|
1467
|
-
constructor({
|
|
1468
|
-
nodes: { header: e, default: n, footer: o },
|
|
1469
|
-
root: r,
|
|
1470
|
-
realList: i
|
|
1471
|
-
}) {
|
|
1472
|
-
this.defaultNodes = n, this.children = [...e, ...n, ...o], this.externalComponent = r.externalComponent, this.rootTransition = r.transition, this.tag = r.tag, this.realList = i;
|
|
1473
|
-
}
|
|
1474
|
-
get _isRootComponent() {
|
|
1475
|
-
return this.externalComponent || this.rootTransition;
|
|
1476
|
-
}
|
|
1477
|
-
render(e, n) {
|
|
1478
|
-
const { tag: o, children: r, _isRootComponent: i } = this;
|
|
1479
|
-
return e(o, n, i ? { default: () => r } : r);
|
|
1480
|
-
}
|
|
1481
|
-
updated() {
|
|
1482
|
-
const { defaultNodes: e, realList: n } = this;
|
|
1483
|
-
e.forEach((o, r) => {
|
|
1484
|
-
No(en(o), {
|
|
1485
|
-
element: n[r],
|
|
1486
|
-
index: r
|
|
1487
|
-
});
|
|
1488
|
-
});
|
|
1489
|
-
}
|
|
1490
|
-
getUnderlyingVm(e) {
|
|
1491
|
-
return tn(e);
|
|
1492
|
-
}
|
|
1493
|
-
getVmIndexFromDomIndex(e, n) {
|
|
1494
|
-
const { defaultNodes: o } = this, { length: r } = o, i = n.children, a = i.item(e);
|
|
1495
|
-
if (a === null)
|
|
1496
|
-
return r;
|
|
1497
|
-
const c = tn(a);
|
|
1498
|
-
if (c)
|
|
1499
|
-
return c.index;
|
|
1500
|
-
if (r === 0)
|
|
1501
|
-
return 0;
|
|
1502
|
-
const l = en(o[0]), u = [...i].findIndex(
|
|
1503
|
-
(f) => f === l
|
|
1504
|
-
);
|
|
1505
|
-
return e < u ? 0 : r;
|
|
1506
|
-
}
|
|
1507
|
-
}
|
|
1508
|
-
function Vo(t, e) {
|
|
1509
|
-
const n = t[e];
|
|
1510
|
-
return n ? n() : [];
|
|
1511
|
-
}
|
|
1512
|
-
function Mo({ $slots: t, realList: e, getKey: n }) {
|
|
1513
|
-
const o = e || [], [r, i] = ["header", "footer"].map(
|
|
1514
|
-
(l) => Vo(t, l)
|
|
1515
|
-
), { item: a } = t;
|
|
1516
|
-
if (!a)
|
|
1517
|
-
throw new Error("draggable element must have an item slot");
|
|
1518
|
-
const c = o.flatMap(
|
|
1519
|
-
(l, u) => a({ element: l, index: u }).map((f) => (f.key = n(l), f.props = { ...f.props || {}, "data-draggable": !0 }, f))
|
|
1520
|
-
);
|
|
1521
|
-
if (c.length !== o.length)
|
|
1522
|
-
throw new Error("Item slot must have only one child");
|
|
1523
|
-
return {
|
|
1524
|
-
header: r,
|
|
1525
|
-
footer: i,
|
|
1526
|
-
default: c
|
|
1527
|
-
};
|
|
1528
|
-
}
|
|
1529
|
-
function Lo(t) {
|
|
1530
|
-
const e = Fo(t), n = !Io(t) && !e;
|
|
1531
|
-
return {
|
|
1532
|
-
transition: e,
|
|
1533
|
-
externalComponent: n,
|
|
1534
|
-
tag: n ? N(t) : e ? An : t
|
|
1535
|
-
};
|
|
1536
|
-
}
|
|
1537
|
-
function Bo({ $slots: t, tag: e, realList: n, getKey: o }) {
|
|
1538
|
-
const r = Mo({ $slots: t, realList: n, getKey: o }), i = Lo(e);
|
|
1539
|
-
return new Po({ nodes: r, root: i, realList: n });
|
|
1540
|
-
}
|
|
1541
|
-
function Tn(t, e) {
|
|
1542
|
-
nn(() => this.$emit(t.toLowerCase(), e));
|
|
1543
|
-
}
|
|
1544
|
-
function xn(t) {
|
|
1545
|
-
return (e, n) => {
|
|
1546
|
-
if (this.realList !== null)
|
|
1547
|
-
return this[`onDrag${t}`](e, n);
|
|
1548
|
-
};
|
|
1549
|
-
}
|
|
1550
|
-
function $o(t) {
|
|
1551
|
-
const e = xn.call(this, t);
|
|
1552
|
-
return (n, o) => {
|
|
1553
|
-
e.call(this, n, o), Tn.call(this, t, n);
|
|
1554
|
-
};
|
|
1555
|
-
}
|
|
1556
|
-
let Tt = null;
|
|
1557
|
-
const Ro = {
|
|
1558
|
-
list: {
|
|
1559
|
-
type: Array,
|
|
1560
|
-
required: !1,
|
|
1561
|
-
default: null
|
|
1562
|
-
},
|
|
1563
|
-
modelValue: {
|
|
1564
|
-
type: Array,
|
|
1565
|
-
required: !1,
|
|
1566
|
-
default: null
|
|
1567
|
-
},
|
|
1568
|
-
itemKey: {
|
|
1569
|
-
type: [String, Function],
|
|
1570
|
-
required: !0
|
|
1571
|
-
},
|
|
1572
|
-
clone: {
|
|
1573
|
-
type: Function,
|
|
1574
|
-
default: (t) => t
|
|
1575
|
-
},
|
|
1576
|
-
tag: {
|
|
1577
|
-
type: String,
|
|
1578
|
-
default: "div"
|
|
1579
|
-
},
|
|
1580
|
-
move: {
|
|
1581
|
-
type: Function,
|
|
1582
|
-
default: null
|
|
1583
|
-
},
|
|
1584
|
-
componentData: {
|
|
1585
|
-
type: Object,
|
|
1586
|
-
required: !1,
|
|
1587
|
-
default: null
|
|
1588
|
-
}
|
|
1589
|
-
}, Xo = [
|
|
1590
|
-
"update:modelValue",
|
|
1591
|
-
"change",
|
|
1592
|
-
...[...At.manageAndEmit, ...At.emit].map((t) => t.toLowerCase())
|
|
1593
|
-
], Yo = Te({
|
|
1594
|
-
name: "draggable",
|
|
1595
|
-
inheritAttrs: !1,
|
|
1596
|
-
props: Ro,
|
|
1597
|
-
emits: Xo,
|
|
1598
|
-
data() {
|
|
1599
|
-
return {
|
|
1600
|
-
error: !1
|
|
1601
|
-
};
|
|
1602
|
-
},
|
|
1603
|
-
render() {
|
|
1604
|
-
try {
|
|
1605
|
-
this.error = !1;
|
|
1606
|
-
const { $slots: t, $attrs: e, tag: n, componentData: o, realList: r, getKey: i } = this, a = Bo({
|
|
1607
|
-
$slots: t,
|
|
1608
|
-
tag: n,
|
|
1609
|
-
realList: r,
|
|
1610
|
-
getKey: i
|
|
1611
|
-
});
|
|
1612
|
-
this.componentStructure = a;
|
|
1613
|
-
const c = ko({ $attrs: e, componentData: o });
|
|
1614
|
-
return a.render(Rt, c);
|
|
1615
|
-
} catch (t) {
|
|
1616
|
-
return this.error = !0, Rt("pre", { style: { color: "red" } }, t.stack);
|
|
1617
|
-
}
|
|
1618
|
-
},
|
|
1619
|
-
created() {
|
|
1620
|
-
this.list !== null && this.modelValue !== null && Eo.error(
|
|
1621
|
-
"modelValue and list props are mutually exclusive! Please set one or another."
|
|
1622
|
-
);
|
|
1623
|
-
},
|
|
1624
|
-
mounted() {
|
|
1625
|
-
if (this.error)
|
|
1626
|
-
return;
|
|
1627
|
-
const { $attrs: t, $el: e, componentStructure: n } = this;
|
|
1628
|
-
n.updated();
|
|
1629
|
-
const o = Ao({
|
|
1630
|
-
$attrs: t,
|
|
1631
|
-
callBackBuilder: {
|
|
1632
|
-
manageAndEmit: (i) => $o.call(this, i),
|
|
1633
|
-
emit: (i) => Tn.bind(this, i),
|
|
1634
|
-
manage: (i) => xn.call(this, i)
|
|
1635
|
-
}
|
|
1636
|
-
}), r = e.nodeType === 1 ? e : e.parentElement;
|
|
1637
|
-
this._sortable = new g(r, o), this.targetDomElement = r, r.__draggable_component__ = this;
|
|
1638
|
-
},
|
|
1639
|
-
updated() {
|
|
1640
|
-
this.componentStructure.updated();
|
|
1641
|
-
},
|
|
1642
|
-
beforeUnmount() {
|
|
1643
|
-
this._sortable !== void 0 && this._sortable.destroy();
|
|
1644
|
-
},
|
|
1645
|
-
computed: {
|
|
1646
|
-
realList() {
|
|
1647
|
-
const { list: t } = this;
|
|
1648
|
-
return t || this.modelValue;
|
|
1649
|
-
},
|
|
1650
|
-
getKey() {
|
|
1651
|
-
const { itemKey: t } = this;
|
|
1652
|
-
return typeof t == "function" ? t : (e) => e[t];
|
|
1653
|
-
}
|
|
1654
|
-
},
|
|
1655
|
-
watch: {
|
|
1656
|
-
$attrs: {
|
|
1657
|
-
handler(t) {
|
|
1658
|
-
const { _sortable: e } = this;
|
|
1659
|
-
e && Cn(t).forEach(([n, o]) => {
|
|
1660
|
-
e.option(n, o);
|
|
1661
|
-
});
|
|
1662
|
-
},
|
|
1663
|
-
deep: !0
|
|
1664
|
-
}
|
|
1665
|
-
},
|
|
1666
|
-
methods: {
|
|
1667
|
-
getUnderlyingVm(t) {
|
|
1668
|
-
return this.componentStructure.getUnderlyingVm(t) || null;
|
|
1669
|
-
},
|
|
1670
|
-
getUnderlyingPotencialDraggableComponent(t) {
|
|
1671
|
-
return t.__draggable_component__;
|
|
1672
|
-
},
|
|
1673
|
-
emitChanges(t) {
|
|
1674
|
-
nn(() => this.$emit("change", t));
|
|
1675
|
-
},
|
|
1676
|
-
alterList(t) {
|
|
1677
|
-
if (this.list) {
|
|
1678
|
-
t(this.list);
|
|
1679
|
-
return;
|
|
1680
|
-
}
|
|
1681
|
-
const e = [...this.modelValue];
|
|
1682
|
-
t(e), this.$emit("update:modelValue", e);
|
|
1683
|
-
},
|
|
1684
|
-
spliceList() {
|
|
1685
|
-
const t = (e) => e.splice(...arguments);
|
|
1686
|
-
this.alterList(t);
|
|
1687
|
-
},
|
|
1688
|
-
updatePosition(t, e) {
|
|
1689
|
-
const n = (o) => o.splice(e, 0, o.splice(t, 1)[0]);
|
|
1690
|
-
this.alterList(n);
|
|
1691
|
-
},
|
|
1692
|
-
getRelatedContextFromMoveEvent({ to: t, related: e }) {
|
|
1693
|
-
const n = this.getUnderlyingPotencialDraggableComponent(t);
|
|
1694
|
-
if (!n)
|
|
1695
|
-
return { component: n };
|
|
1696
|
-
const o = n.realList, r = { list: o, component: n };
|
|
1697
|
-
return t !== e && o ? { ...n.getUnderlyingVm(e) || {}, ...r } : r;
|
|
1698
|
-
},
|
|
1699
|
-
getVmIndexFromDomIndex(t) {
|
|
1700
|
-
return this.componentStructure.getVmIndexFromDomIndex(
|
|
1701
|
-
t,
|
|
1702
|
-
this.targetDomElement
|
|
1703
|
-
);
|
|
1704
|
-
},
|
|
1705
|
-
onDragStart(t) {
|
|
1706
|
-
this.context = this.getUnderlyingVm(t.item), t.item._underlying_vm_ = this.clone(this.context.element), Tt = t.item;
|
|
1707
|
-
},
|
|
1708
|
-
onDragAdd(t) {
|
|
1709
|
-
const e = t.item._underlying_vm_;
|
|
1710
|
-
if (e === void 0)
|
|
1711
|
-
return;
|
|
1712
|
-
Ct(t.item);
|
|
1713
|
-
const n = this.getVmIndexFromDomIndex(t.newIndex);
|
|
1714
|
-
this.spliceList(n, 0, e);
|
|
1715
|
-
const o = { element: e, newIndex: n };
|
|
1716
|
-
this.emitChanges({ added: o });
|
|
1717
|
-
},
|
|
1718
|
-
onDragRemove(t) {
|
|
1719
|
-
if (Qt(this.$el, t.item, t.oldIndex), t.pullMode === "clone") {
|
|
1720
|
-
Ct(t.clone);
|
|
1721
|
-
return;
|
|
1722
|
-
}
|
|
1723
|
-
const { index: e, element: n } = this.context;
|
|
1724
|
-
this.spliceList(e, 1);
|
|
1725
|
-
const o = { element: n, oldIndex: e };
|
|
1726
|
-
this.emitChanges({ removed: o });
|
|
1727
|
-
},
|
|
1728
|
-
onDragUpdate(t) {
|
|
1729
|
-
Ct(t.item), Qt(t.from, t.item, t.oldIndex);
|
|
1730
|
-
const e = this.context.index, n = this.getVmIndexFromDomIndex(t.newIndex);
|
|
1731
|
-
this.updatePosition(e, n);
|
|
1732
|
-
const o = { element: this.context.element, oldIndex: e, newIndex: n };
|
|
1733
|
-
this.emitChanges({ moved: o });
|
|
1734
|
-
},
|
|
1735
|
-
computeFutureIndex(t, e) {
|
|
1736
|
-
if (!t.element)
|
|
1737
|
-
return 0;
|
|
1738
|
-
const n = [...e.to.children].filter(
|
|
1739
|
-
(a) => a.style.display !== "none"
|
|
1740
|
-
), o = n.indexOf(e.related), r = t.component.getVmIndexFromDomIndex(
|
|
1741
|
-
o
|
|
1742
|
-
);
|
|
1743
|
-
return n.indexOf(Tt) !== -1 || !e.willInsertAfter ? r : r + 1;
|
|
1744
|
-
},
|
|
1745
|
-
onDragMove(t, e) {
|
|
1746
|
-
const { move: n, realList: o } = this;
|
|
1747
|
-
if (!n || !o)
|
|
1748
|
-
return !0;
|
|
1749
|
-
const r = this.getRelatedContextFromMoveEvent(t), i = this.computeFutureIndex(r, t), a = {
|
|
1750
|
-
...this.context,
|
|
1751
|
-
futureIndex: i
|
|
1752
|
-
}, c = {
|
|
1753
|
-
...t,
|
|
1754
|
-
relatedContext: r,
|
|
1755
|
-
draggedContext: a
|
|
1756
|
-
};
|
|
1757
|
-
return n(c, e);
|
|
1758
|
-
},
|
|
1759
|
-
onDragEnd() {
|
|
1760
|
-
Tt = null;
|
|
1761
|
-
}
|
|
1762
|
-
}
|
|
1763
|
-
}), Wo = Object.entries(F).map((t) => {
|
|
1764
|
-
let e = "";
|
|
1765
|
-
switch (t[1]) {
|
|
1766
|
-
case F.BarChart:
|
|
1767
|
-
e = "bar_chart";
|
|
1768
|
-
break;
|
|
1769
|
-
case F.Table:
|
|
1770
|
-
e = "table";
|
|
1771
|
-
break;
|
|
1772
|
-
case F.Circular:
|
|
1773
|
-
e = "pie_chart";
|
|
1774
|
-
break;
|
|
1775
|
-
case F.LineChart:
|
|
1776
|
-
e = "show_chart";
|
|
1777
|
-
break;
|
|
1778
|
-
case F.Scorecard:
|
|
1779
|
-
e = "money";
|
|
1780
|
-
break;
|
|
1781
|
-
case F.Spacer:
|
|
1782
|
-
e = "space_bar";
|
|
1783
|
-
break;
|
|
1784
|
-
case F.StackBarChart:
|
|
1785
|
-
e = "stacked_bar_chart";
|
|
1786
|
-
break;
|
|
1787
|
-
case F.ClusteredStackBarChart:
|
|
1788
|
-
e = "stacked_bar_chart";
|
|
1789
|
-
break;
|
|
1790
|
-
case F.StackLineChart:
|
|
1791
|
-
e = "stacked_line_chart";
|
|
1792
|
-
break;
|
|
1793
|
-
}
|
|
1794
|
-
return {
|
|
1795
|
-
label: Rn(t[0]),
|
|
1796
|
-
icon: e,
|
|
1797
|
-
value: t[1]
|
|
1798
|
-
};
|
|
1799
|
-
}), Uo = /* @__PURE__ */ Te({
|
|
1800
|
-
__name: "WidgetTypeList",
|
|
1801
|
-
props: /* @__PURE__ */ Nt({
|
|
1802
|
-
childClass: {
|
|
1803
|
-
type: String,
|
|
1804
|
-
default: ""
|
|
1805
|
-
},
|
|
1806
|
-
excludeWidgeType: {
|
|
1807
|
-
type: Array,
|
|
1808
|
-
default: () => []
|
|
1809
|
-
},
|
|
1810
|
-
isList: {
|
|
1811
|
-
type: Boolean,
|
|
1812
|
-
required: !1,
|
|
1813
|
-
default: !1
|
|
1814
|
-
}
|
|
1815
|
-
}, {
|
|
1816
|
-
modelValue: {
|
|
1817
|
-
default: ""
|
|
1818
|
-
},
|
|
1819
|
-
modelModifiers: {}
|
|
1820
|
-
}),
|
|
1821
|
-
emits: ["update:modelValue"],
|
|
1822
|
-
setup(t) {
|
|
1823
|
-
const { t: e } = Pt(), n = Ge(t, "modelValue"), o = t, r = Fe(
|
|
1824
|
-
() => Wo.map((i) => ({
|
|
1825
|
-
...i,
|
|
1826
|
-
label: e(`report.widget.types.${i.value.toLowerCase()}`)
|
|
1827
|
-
}))
|
|
1828
|
-
);
|
|
1829
|
-
return (i, a) => {
|
|
1830
|
-
const c = N("FmIcon"), l = N("FmCard");
|
|
1831
|
-
return V(), ee("div", null, [
|
|
1832
|
-
(V(!0), ee(qe, null, on(r.value.filter(
|
|
1833
|
-
(u) => o.excludeWidgeType.indexOf(u.value) === -1
|
|
1834
|
-
), (u, f) => (V(), Pe(l, {
|
|
1835
|
-
key: f,
|
|
1836
|
-
class: Xt(`items-center ${o.childClass} cursor-pointer rounded-[8px] ${o.isList ? "" : "gap-[16px] h-[120px] justify-center"} ${n.value === u.value ? "selected-widget" : ""}`),
|
|
1837
|
-
variant: "outlined",
|
|
1838
|
-
onClick: (s) => n.value = u.value
|
|
1839
|
-
}, {
|
|
1840
|
-
default: ie(() => [
|
|
1841
|
-
A(c, {
|
|
1842
|
-
name: u.icon,
|
|
1843
|
-
size: o.isList ? "md" : "lg",
|
|
1844
|
-
outline: !0
|
|
1845
|
-
}, null, 8, ["name", "size"]),
|
|
1846
|
-
ue("span", {
|
|
1847
|
-
class: Xt(o.isList ? "" : "flex items-center text-center leading-[24px] h-[48px]")
|
|
1848
|
-
}, Ae(u.label), 3)
|
|
1849
|
-
]),
|
|
1850
|
-
_: 2
|
|
1851
|
-
}, 1032, ["class", "onClick"]))), 128))
|
|
1852
|
-
]);
|
|
1853
|
-
};
|
|
1854
|
-
}
|
|
1855
|
-
}), br = /* @__PURE__ */ Vt(Uo, [["__scopeId", "data-v-0535b07b"]]);
|
|
1856
|
-
function jo(t) {
|
|
1857
|
-
let e, n, o, r;
|
|
1858
|
-
switch (t) {
|
|
1859
|
-
case F.Table:
|
|
1860
|
-
e = [], n = !1, o = Yn.top;
|
|
1861
|
-
break;
|
|
1862
|
-
case F.ClusteredStackBarChart:
|
|
1863
|
-
r = !0;
|
|
1864
|
-
break;
|
|
1865
|
-
}
|
|
1866
|
-
return {
|
|
1867
|
-
schemaNames: [],
|
|
1868
|
-
dimensions: [],
|
|
1869
|
-
metrics: [],
|
|
1870
|
-
filters: [],
|
|
1871
|
-
sorts: [],
|
|
1872
|
-
breakdownDimension: void 0,
|
|
1873
|
-
sparklineDimension: void 0,
|
|
1874
|
-
limit: null,
|
|
1875
|
-
showGrandTotal: !1,
|
|
1876
|
-
rollupPosition: o,
|
|
1877
|
-
showSearchBar: n,
|
|
1878
|
-
isTransposed: !1,
|
|
1879
|
-
isDrillable: !1,
|
|
1880
|
-
stackBarOverlap: r,
|
|
1881
|
-
columnIds: [],
|
|
1882
|
-
rowIds: [],
|
|
1883
|
-
joinDatasources: e
|
|
1884
|
-
};
|
|
1885
|
-
}
|
|
1886
|
-
function yr(t, e) {
|
|
1887
|
-
let n = 1, o = 1;
|
|
1888
|
-
switch (t) {
|
|
1889
|
-
case F.Scorecard:
|
|
1890
|
-
n = 1, o = 2;
|
|
1891
|
-
break;
|
|
1892
|
-
case F.BarChart:
|
|
1893
|
-
case F.StackBarChart:
|
|
1894
|
-
case F.ClusteredStackBarChart:
|
|
1895
|
-
case F.LineChart:
|
|
1896
|
-
case F.StackLineChart:
|
|
1897
|
-
n = 4, o = 6;
|
|
1898
|
-
break;
|
|
1899
|
-
case F.Table:
|
|
1900
|
-
n = 4, o = 12;
|
|
1901
|
-
break;
|
|
1902
|
-
case F.Circular:
|
|
1903
|
-
n = 4, o = 4;
|
|
1904
|
-
break;
|
|
1905
|
-
case F.Spacer:
|
|
1906
|
-
n = 0, o = 12;
|
|
1907
|
-
break;
|
|
1908
|
-
}
|
|
1909
|
-
return {
|
|
1910
|
-
size: {
|
|
1911
|
-
width: o,
|
|
1912
|
-
height: n
|
|
1913
|
-
},
|
|
1914
|
-
widget: {
|
|
1915
|
-
title: e || "New widget",
|
|
1916
|
-
type: t,
|
|
1917
|
-
config: jo(t)
|
|
1918
|
-
}
|
|
1919
|
-
};
|
|
1920
|
-
}
|
|
1921
|
-
function _r(t, e) {
|
|
1922
|
-
return t.filter((n, o) => o !== e);
|
|
1923
|
-
}
|
|
1924
|
-
const Ho = {
|
|
1925
|
-
key: 0,
|
|
1926
|
-
class: "flex flex-col gap-5"
|
|
1927
|
-
}, zo = /* @__PURE__ */ Te({
|
|
1928
|
-
__name: "Section",
|
|
1929
|
-
props: {
|
|
1930
|
-
isOpen: { type: Boolean, default: !0 },
|
|
1931
|
-
isOpenModifiers: {}
|
|
1932
|
-
},
|
|
1933
|
-
emits: ["update:isOpen"],
|
|
1934
|
-
setup(t) {
|
|
1935
|
-
const e = Ge(t, "isOpen");
|
|
1936
|
-
return (n, o) => {
|
|
1937
|
-
const r = N("FmIcon"), i = N("FmMenuDivider");
|
|
1938
|
-
return V(), ee(qe, null, [
|
|
1939
|
-
ue("div", {
|
|
1940
|
-
class: "flex items-center cursor-pointer fm-typo-en-body-lg-600",
|
|
1941
|
-
onClick: o[0] || (o[0] = (a) => e.value = !e.value)
|
|
1942
|
-
}, [
|
|
1943
|
-
ze(n.$slots, "header", {}, void 0, !0),
|
|
1944
|
-
A(r, {
|
|
1945
|
-
name: e.value ? "keyboard_arrow_up" : "keyboard_arrow_down"
|
|
1946
|
-
}, null, 8, ["name"])
|
|
1947
|
-
]),
|
|
1948
|
-
A(xt, { name: "slide-fade" }, {
|
|
1949
|
-
default: ie(() => [
|
|
1950
|
-
e.value ? (V(), ee("div", Ho, [
|
|
1951
|
-
ze(n.$slots, "content", {}, void 0, !0)
|
|
1952
|
-
])) : ce("", !0)
|
|
1953
|
-
]),
|
|
1954
|
-
_: 3
|
|
1955
|
-
}),
|
|
1956
|
-
A(i)
|
|
1957
|
-
], 64);
|
|
1958
|
-
};
|
|
1959
|
-
}
|
|
1960
|
-
}), wr = /* @__PURE__ */ Vt(zo, [["__scopeId", "data-v-fa67a3a4"]]), Go = { class: "grow" }, qo = {
|
|
1961
|
-
key: 2,
|
|
1962
|
-
class: "w-full"
|
|
1963
|
-
}, Ko = { key: 0 }, Jo = /* @__PURE__ */ Te({
|
|
1964
|
-
__name: "FilterValueInput",
|
|
1965
|
-
props: /* @__PURE__ */ Nt({
|
|
1966
|
-
config: {
|
|
1967
|
-
type: Object,
|
|
1968
|
-
default: () => {
|
|
1969
|
-
}
|
|
1970
|
-
},
|
|
1971
|
-
option: {
|
|
1972
|
-
type: [String, null],
|
|
1973
|
-
default: () => {
|
|
1974
|
-
}
|
|
1975
|
-
}
|
|
1976
|
-
}, {
|
|
1977
|
-
modelValue: { required: !0, default: () => [] },
|
|
1978
|
-
modelModifiers: {}
|
|
1979
|
-
}),
|
|
1980
|
-
emits: ["update:modelValue"],
|
|
1981
|
-
setup(t) {
|
|
1982
|
-
const e = Ge(t, "modelValue"), n = t, o = Se([]);
|
|
1983
|
-
function r(l) {
|
|
1984
|
-
return (l ? ht(l) : ht()).format("HH:mm");
|
|
1985
|
-
}
|
|
1986
|
-
function i({ hour: l, minute: u }) {
|
|
1987
|
-
return ht().set("hour", l).set("minute", u).toISOString();
|
|
1988
|
-
}
|
|
1989
|
-
function a(l, u) {
|
|
1990
|
-
var y, _;
|
|
1991
|
-
const f = rn(n.option), s = an(n.option);
|
|
1992
|
-
((y = n.config) == null ? void 0 : y.type) === Be.TextField && (f !== void 0 && u < f || s !== void 0 && u > s) && (o.value[l] = `Value must be between ${f} and ${s}`);
|
|
1993
|
-
const v = [...e.value];
|
|
1994
|
-
((_ = n.config) == null ? void 0 : _.type) === Be.Timestamp ? v[l] = i({
|
|
1995
|
-
hour: Number(u.split(":")[0]),
|
|
1996
|
-
minute: Number(u.split(":")[1])
|
|
1997
|
-
}) : v[l] = u, e.value = v;
|
|
1998
|
-
}
|
|
1999
|
-
function c(l) {
|
|
2000
|
-
var u;
|
|
2001
|
-
if (l === 0)
|
|
2002
|
-
e.value = [(u = n.config) == null ? void 0 : u.default, ...e.value];
|
|
2003
|
-
else {
|
|
2004
|
-
const f = [...e.value];
|
|
2005
|
-
f.splice(l, 1), e.value = f;
|
|
2006
|
-
}
|
|
2007
|
-
}
|
|
2008
|
-
return (l, u) => {
|
|
2009
|
-
const f = N("FmSelect"), s = N("FmTextField"), v = N("FmTimePicker"), y = N("FmButton");
|
|
2010
|
-
return V(!0), ee(qe, null, on(new Array(e.value.length !== 0 ? e.value.length : 1), (_, b) => {
|
|
2011
|
-
var Y, q, T, M, L;
|
|
2012
|
-
return V(), ee("div", {
|
|
2013
|
-
key: b,
|
|
2014
|
-
class: "flex flex-row align-center gap-2 w-full"
|
|
2015
|
-
}, [
|
|
2016
|
-
ue("div", Go, [
|
|
2017
|
-
((Y = n.config) == null ? void 0 : Y.type) === X(Be).Select ? (V(), Pe(f, {
|
|
2018
|
-
key: 0,
|
|
2019
|
-
"model-value": e.value[b],
|
|
2020
|
-
items: n.config.options,
|
|
2021
|
-
"onUpdate:modelValue": (W) => a(b, W)
|
|
2022
|
-
}, null, 8, ["model-value", "items", "onUpdate:modelValue"])) : ((q = n.config) == null ? void 0 : q.type) === X(Be).TextField ? (V(), Pe(s, {
|
|
2023
|
-
key: 1,
|
|
2024
|
-
"model-value": e.value[b],
|
|
2025
|
-
type: ((T = n.config) == null ? void 0 : T.dataType) === "number" ? "number" : "text",
|
|
2026
|
-
"helper-text": o.value[b] || void 0,
|
|
2027
|
-
"helper-state": "error",
|
|
2028
|
-
"onUpdate:modelValue": (W) => a(b, W)
|
|
2029
|
-
}, null, 8, ["model-value", "type", "helper-text", "onUpdate:modelValue"])) : ((M = n.config) == null ? void 0 : M.type) === X(Be).Timestamp ? (V(), ee("div", qo, [
|
|
2030
|
-
A(v, {
|
|
2031
|
-
"model-value": r(e.value[b]),
|
|
2032
|
-
"onUpdate:modelValue": (W) => a(b, W)
|
|
2033
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
2034
|
-
])) : ce("", !0)
|
|
2035
|
-
]),
|
|
2036
|
-
((L = n.config) == null ? void 0 : L.fixed) === !1 ? (V(), ee("div", Ko, [
|
|
2037
|
-
A(y, {
|
|
2038
|
-
icon: b === 0 ? "add" : "remove",
|
|
2039
|
-
onClick: (W) => c(b)
|
|
2040
|
-
}, null, 8, ["icon", "onClick"])
|
|
2041
|
-
])) : ce("", !0)
|
|
2042
|
-
]);
|
|
2043
|
-
}), 128);
|
|
2044
|
-
};
|
|
2045
|
-
}
|
|
2046
|
-
}), On = [
|
|
2047
|
-
De.HourOfDay,
|
|
2048
|
-
De.DayOfMonth,
|
|
2049
|
-
De.DayOfWeek,
|
|
2050
|
-
De.MonthOfYear,
|
|
2051
|
-
De.TimeOfDay,
|
|
2052
|
-
De.DateTime
|
|
2053
|
-
], Zo = On.filter(
|
|
2054
|
-
(t) => t !== De.DateTime
|
|
2055
|
-
);
|
|
2056
|
-
function Er(t) {
|
|
2057
|
-
return On.map((e) => ({
|
|
2058
|
-
label: t(`report.section.filter.${ln(e)}`),
|
|
2059
|
-
value: e
|
|
2060
|
-
}));
|
|
2061
|
-
}
|
|
2062
|
-
function Qo(t) {
|
|
2063
|
-
return Zo.map((e) => ({
|
|
2064
|
-
label: t(`report.section.filter.${ln(e)}`),
|
|
2065
|
-
value: e
|
|
2066
|
-
}));
|
|
2067
|
-
}
|
|
2068
|
-
const er = { class: "flex flex-col my-2 gap-8" }, tr = { class: "fm-typo-en-body-lg-600" }, nr = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, or = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, Sr = /* @__PURE__ */ Te({
|
|
2069
|
-
__name: "FilterSection",
|
|
2070
|
-
props: /* @__PURE__ */ Nt({
|
|
2071
|
-
options: {
|
|
2072
|
-
type: Array,
|
|
2073
|
-
default: () => []
|
|
2074
|
-
},
|
|
2075
|
-
label: {
|
|
2076
|
-
type: String,
|
|
2077
|
-
default: "title"
|
|
2078
|
-
}
|
|
2079
|
-
}, {
|
|
2080
|
-
modelValue: { required: !1, default: () => [] },
|
|
2081
|
-
modelModifiers: {}
|
|
2082
|
-
}),
|
|
2083
|
-
emits: ["update:modelValue"],
|
|
2084
|
-
setup(t) {
|
|
2085
|
-
const { t: e, te: n } = Pt(), o = Ge(t, "modelValue"), r = t, i = Fe(() => e(`report.section.filter.${r.label}`)), a = Se(!1), c = Un(), l = Fe(
|
|
2086
|
-
() => o.value.map((m, p) => {
|
|
2087
|
-
const E = r.options.find(
|
|
2088
|
-
(B) => B.schemaName === m.schemaName && B.name === m.name
|
|
2089
|
-
), I = (E == null ? void 0 : E.labels) || [m.schemaName, m.name];
|
|
2090
|
-
return {
|
|
2091
|
-
index: p,
|
|
2092
|
-
label: I.map((B) => Wn(e, n, B, "other")).join(" "),
|
|
2093
|
-
value: m
|
|
2094
|
-
};
|
|
2095
|
-
})
|
|
2096
|
-
), u = Se(o.value.length > 0 ? 0 : void 0);
|
|
2097
|
-
function f(m) {
|
|
2098
|
-
var p;
|
|
2099
|
-
a.value = !0, b.value = [], s.value = m != null && m.value ? JSON.parse(JSON.stringify(m.value)) : void 0, u.value = m == null ? void 0 : m.index, v.value = !!((p = s.value) != null && p.dataFormula), L();
|
|
2100
|
-
}
|
|
2101
|
-
const s = Se(void 0), v = Se(!1), y = Se(void 0), _ = Fe(
|
|
2102
|
-
() => r.options.find(
|
|
2103
|
-
(m) => {
|
|
2104
|
-
var p, E;
|
|
2105
|
-
return m.schemaName === ((p = s.value) == null ? void 0 : p.schemaName) && m.name === ((E = s.value) == null ? void 0 : E.name);
|
|
2106
|
-
}
|
|
2107
|
-
) ?? {}
|
|
2108
|
-
), b = Se([]);
|
|
2109
|
-
function Y(m) {
|
|
2110
|
-
var p;
|
|
2111
|
-
return (p = b.value.find((E) => E.option === m)) == null ? void 0 : p.value;
|
|
2112
|
-
}
|
|
2113
|
-
const q = Xn(
|
|
2114
|
-
(m, p) => {
|
|
2115
|
-
const E = b.value.find((I) => I.option === m);
|
|
2116
|
-
E ? E.value = p : b.value.push({ option: m, value: p });
|
|
2117
|
-
},
|
|
2118
|
-
300
|
|
2119
|
-
);
|
|
2120
|
-
pt(
|
|
2121
|
-
[() => {
|
|
2122
|
-
var m;
|
|
2123
|
-
return (m = s.value) == null ? void 0 : m.option;
|
|
2124
|
-
}, () => {
|
|
2125
|
-
var m;
|
|
2126
|
-
return (m = s.value) == null ? void 0 : m.values;
|
|
2127
|
-
}],
|
|
2128
|
-
([m, p]) => {
|
|
2129
|
-
m !== void 0 && Array.isArray(p) && q(m, p);
|
|
2130
|
-
},
|
|
2131
|
-
{ deep: !0 }
|
|
2132
|
-
), pt(
|
|
2133
|
-
() => {
|
|
2134
|
-
var m;
|
|
2135
|
-
return (m = s.value) == null ? void 0 : m.option;
|
|
2136
|
-
},
|
|
2137
|
-
(m, p) => {
|
|
2138
|
-
p !== void 0 && m !== p && s.value && (L(), T(m), M());
|
|
2139
|
-
}
|
|
2140
|
-
), pt(
|
|
2141
|
-
() => {
|
|
2142
|
-
var m;
|
|
2143
|
-
return (m = s.value) == null ? void 0 : m.operator;
|
|
2144
|
-
},
|
|
2145
|
-
(m, p) => {
|
|
2146
|
-
m !== p && _.value && s.value && (L(), T(s.value.option), M());
|
|
2147
|
-
},
|
|
2148
|
-
{
|
|
2149
|
-
deep: !0
|
|
2150
|
-
}
|
|
2151
|
-
);
|
|
2152
|
-
function T(m) {
|
|
2153
|
-
var z;
|
|
2154
|
-
if (!s.value || !y.value) return;
|
|
2155
|
-
const p = u.value !== void 0 && o.value[u.value] && Array.isArray(o.value[u.value].values) ? [...o.value[u.value].values] : [], E = Y(m);
|
|
2156
|
-
let I;
|
|
2157
|
-
const B = u.value !== void 0 ? (z = o.value[u.value]) == null ? void 0 : z.option : void 0;
|
|
2158
|
-
Array.isArray(E) ? I = E : p.length > 0 && m === B ? I = p : I = [y.value.default], s.value = {
|
|
2159
|
-
...s.value,
|
|
2160
|
-
values: I
|
|
2161
|
-
};
|
|
2162
|
-
}
|
|
2163
|
-
function M() {
|
|
2164
|
-
if (!y.value || !s.value) return;
|
|
2165
|
-
const m = s.value.values.length - y.value.count;
|
|
2166
|
-
m > 0 && y.value.fixed ? s.value = {
|
|
2167
|
-
...s.value,
|
|
2168
|
-
values: s.value.values.slice(0, y.value.count)
|
|
2169
|
-
} : m < 0 && (s.value = {
|
|
2170
|
-
...s.value,
|
|
2171
|
-
values: [...s.value.values, ...Array(Math.abs(m)).fill(y.value.default)]
|
|
2172
|
-
});
|
|
2173
|
-
}
|
|
2174
|
-
function L() {
|
|
2175
|
-
_.value && s.value && (y.value = Bn({
|
|
2176
|
-
operator: s.value.operator,
|
|
2177
|
-
dataType: _.value.type,
|
|
2178
|
-
dimensionOption: s.value.option,
|
|
2179
|
-
t: e
|
|
2180
|
-
}));
|
|
2181
|
-
}
|
|
2182
|
-
function W(m) {
|
|
2183
|
-
var p, E;
|
|
2184
|
-
(m.schemaName !== ((p = s.value) == null ? void 0 : p.schemaName) || m.name !== ((E = s.value) == null ? void 0 : E.name)) && (s.value = {
|
|
2185
|
-
schemaName: m.schemaName,
|
|
2186
|
-
name: m.name,
|
|
2187
|
-
operator: m.filterOperators[0],
|
|
2188
|
-
option: m.filterDimensionOptions[0],
|
|
2189
|
-
values: []
|
|
2190
|
-
}, L(), T(s.value.option), M());
|
|
2191
|
-
}
|
|
2192
|
-
function te() {
|
|
2193
|
-
var p, E, I;
|
|
2194
|
-
const m = [...l.value.map((B) => B.value)];
|
|
2195
|
-
if (s.value) {
|
|
2196
|
-
v.value || (s.value.dataFormula = void 0);
|
|
2197
|
-
const B = rn((p = s.value) == null ? void 0 : p.option), z = an((E = s.value) == null ? void 0 : E.option), pe = (I = s.value.values) == null ? void 0 : I.map(
|
|
2198
|
-
($, Le) => $ == null || $ === "" || !ye($, B, z) ? Le : null
|
|
2199
|
-
).filter(($) => $ !== null);
|
|
2200
|
-
if (!s.value.values || pe.length > 0) {
|
|
2201
|
-
c.open({ message: "One or more values are invalid", type: "error" });
|
|
2202
|
-
return;
|
|
2203
|
-
}
|
|
2204
|
-
s.value.values = s.value.values.filter(
|
|
2205
|
-
($) => $ !== "" && $ !== null
|
|
2206
|
-
), u.value !== void 0 ? m[Number(u.value)] = s.value : m.push(s.value), o.value = m;
|
|
2207
|
-
}
|
|
2208
|
-
a.value = !1;
|
|
2209
|
-
}
|
|
2210
|
-
function se(m) {
|
|
2211
|
-
const p = [...l.value.map((E) => E.value)];
|
|
2212
|
-
p.splice(m, 1), o.value = p, a.value = !1;
|
|
2213
|
-
}
|
|
2214
|
-
const be = Fe(
|
|
2215
|
-
() => r.options.map((m) => ({
|
|
2216
|
-
label: m.labels.join(" "),
|
|
2217
|
-
value: m
|
|
2218
|
-
}))
|
|
2219
|
-
), H = Fe(() => Qo(e));
|
|
2220
|
-
function ye(m, p, E) {
|
|
2221
|
-
return !(p !== void 0 && m < p || E !== void 0 && m > E);
|
|
2222
|
-
}
|
|
2223
|
-
return (m, p) => {
|
|
2224
|
-
const E = N("FmCheckbox"), I = N("FmTextarea"), B = N("FmSelect"), z = N("FmForm"), pe = N("FmIcon"), $ = N("FmButton"), Le = N("FmListItem"), $t = N("FmList"), Ze = N("FmField");
|
|
2225
|
-
return V(), ee("div", er, [
|
|
2226
|
-
A($n, {
|
|
2227
|
-
modelValue: a.value,
|
|
2228
|
-
"onUpdate:modelValue": p[6] || (p[6] = (_e) => a.value = _e),
|
|
2229
|
-
title: i.value,
|
|
2230
|
-
"primary-button-label": X(e)("report.common.confirm"),
|
|
2231
|
-
"secondary-button-label": X(e)("report.common.cancel"),
|
|
2232
|
-
onConfirm: te
|
|
2233
|
-
}, {
|
|
2234
|
-
content: ie(() => [
|
|
2235
|
-
A(z, {
|
|
2236
|
-
ref: "form",
|
|
2237
|
-
class: "flex flex-col gap-2 w-[490px]"
|
|
2238
|
-
}, {
|
|
2239
|
-
default: ie(() => {
|
|
2240
|
-
var _e, xe;
|
|
2241
|
-
return [
|
|
2242
|
-
A(Wt, {
|
|
2243
|
-
"model-value": _.value,
|
|
2244
|
-
items: be.value,
|
|
2245
|
-
placeholder: i.value,
|
|
2246
|
-
label: i.value,
|
|
2247
|
-
"onUpdate:modelValue": p[0] || (p[0] = (U) => W(U))
|
|
2248
|
-
}, null, 8, ["model-value", "items", "placeholder", "label"]),
|
|
2249
|
-
s.value ? (V(), ee(qe, { key: 0 }, [
|
|
2250
|
-
A(E, {
|
|
2251
|
-
modelValue: v.value,
|
|
2252
|
-
"onUpdate:modelValue": p[1] || (p[1] = (U) => v.value = U),
|
|
2253
|
-
label: X(e)("report.section.filter.advance"),
|
|
2254
|
-
value: !0
|
|
2255
|
-
}, null, 8, ["modelValue", "label"]),
|
|
2256
|
-
v.value ? (V(), Pe(I, {
|
|
2257
|
-
key: 0,
|
|
2258
|
-
modelValue: s.value.dataFormula,
|
|
2259
|
-
"onUpdate:modelValue": p[2] || (p[2] = (U) => s.value.dataFormula = U),
|
|
2260
|
-
placeholder: X(e)("report.section.filter.dataFormula")
|
|
2261
|
-
}, null, 8, ["modelValue", "placeholder"])) : ce("", !0),
|
|
2262
|
-
A(B, {
|
|
2263
|
-
modelValue: s.value.option,
|
|
2264
|
-
"onUpdate:modelValue": p[3] || (p[3] = (U) => s.value.option = U),
|
|
2265
|
-
items: H.value,
|
|
2266
|
-
placeholder: X(e)("report.section.filter.timeFormatter"),
|
|
2267
|
-
label: X(e)("report.section.filter.timeFormatter")
|
|
2268
|
-
}, null, 8, ["modelValue", "items", "placeholder", "label"]),
|
|
2269
|
-
(((_e = _.value) == null ? void 0 : _e.filterOperators) || []).length > 0 ? (V(), Pe(Wt, {
|
|
2270
|
-
key: 1,
|
|
2271
|
-
modelValue: s.value.operator,
|
|
2272
|
-
"onUpdate:modelValue": p[4] || (p[4] = (U) => s.value.operator = U),
|
|
2273
|
-
items: (((xe = _.value) == null ? void 0 : xe.filterOperators) ?? []).map((U) => ({
|
|
2274
|
-
label: X(e)("report.section.comparisonOperator." + U),
|
|
2275
|
-
value: U
|
|
2276
|
-
}))
|
|
2277
|
-
}, null, 8, ["modelValue", "items"])) : ce("", !0),
|
|
2278
|
-
y.value ? (V(), Pe(Jo, {
|
|
2279
|
-
key: s.value.option ?? "",
|
|
2280
|
-
modelValue: s.value.values,
|
|
2281
|
-
"onUpdate:modelValue": p[5] || (p[5] = (U) => s.value.values = U),
|
|
2282
|
-
config: y.value,
|
|
2283
|
-
option: s.value.option
|
|
2284
|
-
}, null, 8, ["modelValue", "config", "option"])) : ce("", !0)
|
|
2285
|
-
], 64)) : ce("", !0)
|
|
2286
|
-
];
|
|
2287
|
-
}),
|
|
2288
|
-
_: 1
|
|
2289
|
-
}, 512)
|
|
2290
|
-
]),
|
|
2291
|
-
_: 1
|
|
2292
|
-
}, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
|
|
2293
|
-
ue("div", null, [
|
|
2294
|
-
ue("p", tr, Ae(i.value), 1),
|
|
2295
|
-
ue("p", nr, Ae(X(e)("report.section.filter.description")), 1)
|
|
2296
|
-
]),
|
|
2297
|
-
A($t, null, {
|
|
2298
|
-
default: ie(() => [
|
|
2299
|
-
A(X(Yo), {
|
|
2300
|
-
list: o.value,
|
|
2301
|
-
"item-key": "id",
|
|
2302
|
-
class: "flex flex-col gap-2 w-full"
|
|
2303
|
-
}, {
|
|
2304
|
-
item: ie(({ element: _e, index: xe }) => [
|
|
2305
|
-
A(Le, {
|
|
2306
|
-
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
2307
|
-
onClick: Yt((U) => f(l.value[xe]), ["stop"])
|
|
2308
|
-
}, {
|
|
2309
|
-
default: ie(() => [
|
|
2310
|
-
A(pe, { name: "drag_handle" }),
|
|
2311
|
-
ue("p", or, Ae(l.value[xe].label), 1),
|
|
2312
|
-
p[8] || (p[8] = ue("div", { class: "grow" }, null, -1)),
|
|
2313
|
-
A($, {
|
|
2314
|
-
icon: "close",
|
|
2315
|
-
size: "md",
|
|
2316
|
-
variant: "tertiary",
|
|
2317
|
-
onClick: Yt((U) => se(xe), ["stop"])
|
|
2318
|
-
}, null, 8, ["onClick"])
|
|
2319
|
-
]),
|
|
2320
|
-
_: 2
|
|
2321
|
-
}, 1032, ["onClick"])
|
|
2322
|
-
]),
|
|
2323
|
-
_: 1
|
|
2324
|
-
}, 8, ["list"])
|
|
2325
|
-
]),
|
|
2326
|
-
_: 1
|
|
2327
|
-
}),
|
|
2328
|
-
A(Ze, {
|
|
2329
|
-
class: "text-fm-color-typo-tertiary",
|
|
2330
|
-
onClick: p[7] || (p[7] = () => {
|
|
2331
|
-
f();
|
|
2332
|
-
})
|
|
2333
|
-
}, {
|
|
2334
|
-
default: ie(() => [
|
|
2335
|
-
Nn(Ae(X(e)("report.section.filter.add")), 1)
|
|
2336
|
-
]),
|
|
2337
|
-
_: 1
|
|
2338
|
-
})
|
|
2339
|
-
]);
|
|
2340
|
-
};
|
|
2341
|
-
}
|
|
2342
|
-
}), rr = /* @__PURE__ */ Te({
|
|
2343
|
-
__name: "TransitionFade",
|
|
2344
|
-
props: {
|
|
2345
|
-
modelValue: { type: Boolean, required: !0, default: !0 },
|
|
2346
|
-
modelModifiers: {}
|
|
2347
|
-
},
|
|
2348
|
-
emits: ["update:modelValue"],
|
|
2349
|
-
setup(t) {
|
|
2350
|
-
const e = Ge(t, "modelValue");
|
|
2351
|
-
return (n, o) => (V(), ee(qe, null, [
|
|
2352
|
-
A(xt, { name: "slide-fade-right" }, {
|
|
2353
|
-
default: ie(() => [
|
|
2354
|
-
e.value ? ze(n.$slots, "right", { key: 0 }, void 0, !0) : ce("", !0)
|
|
2355
|
-
]),
|
|
2356
|
-
_: 3
|
|
2357
|
-
}),
|
|
2358
|
-
A(xt, { name: "slide-fade-left" }, {
|
|
2359
|
-
default: ie(() => [
|
|
2360
|
-
e.value ? ce("", !0) : ze(n.$slots, "left", { key: 0 }, void 0, !0)
|
|
2361
|
-
]),
|
|
2362
|
-
_: 3
|
|
2363
|
-
})
|
|
2364
|
-
], 64));
|
|
2365
|
-
}
|
|
2366
|
-
}), Dr = /* @__PURE__ */ Vt(rr, [["__scopeId", "data-v-a98ca9bc"]]);
|
|
2367
|
-
export {
|
|
2368
|
-
wr as S,
|
|
2369
|
-
Dr as T,
|
|
2370
|
-
br as W,
|
|
2371
|
-
Jo as _,
|
|
2372
|
-
Sr as a,
|
|
2373
|
-
vr as b,
|
|
2374
|
-
jo as c,
|
|
2375
|
-
Yo as d,
|
|
2376
|
-
Er as g,
|
|
2377
|
-
_r as h,
|
|
2378
|
-
yr as i
|
|
2379
|
-
};
|