@feedmepos/mf-report 5.21.65 → 5.22.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-DjOXbuSR.js → App-CPsLJc1H.js} +40 -40
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-BI3REw2h.js → BaseDialog.vue_vue_type_script_setup_true_lang-DCcoPWWG.js} +6816 -6536
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-DbXhUMAR.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BRPx8vmv.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-Cwd7YD1i.js → Default.vue_vue_type_script_setup_true_lang-BNYAE0n1.js} +2 -2
- package/dist/FilterSelector.vue_vue_type_script_setup_true_lang-Cxo_dkbM.js +4275 -0
- package/dist/InsightView-BDOfDEqL.js +662 -0
- package/dist/{Integration-CVRLRPdq.js → Integration-CDrT_RSA.js} +3 -3
- package/dist/{Integrations-DOftS93E.js → Integrations-BIGSyUVS.js} +3 -3
- package/dist/{Layout-DntjaCaj.js → Layout-BidoThFl.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BB4h_9Df.js → MenuTab.vue_vue_type_script_setup_true_lang-ChNSUv6e.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DvytJlAR.js → NavigationTab.vue_vue_type_script_setup_true_lang-CTGCxTN2.js} +3599 -3599
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-Bm43uVUi.js → NoData.vue_vue_type_script_setup_true_lang-BMfKUFHt.js} +1 -1
- package/dist/{OverviewView-CuQCAiyO.js → OverviewView-DzCdiaap.js} +5 -5
- package/dist/{Report-CGj_ONkL.js → Report-CoaQhheo.js} +4 -4
- package/dist/{ReportEditor-C7u26DTW.js → ReportEditor-CdAsRgbY.js} +6 -6
- package/dist/{ReportView-uZvTp_a7.js → ReportView-xBr-K0is.js} +8 -8
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-FW4jnJX6.js → SelectComponent.vue_vue_type_script_setup_true_lang-DwhyK9V4.js} +1 -1
- package/dist/{Setting-DJh6P_el.js → Setting-Dvl7rBJD.js} +5 -5
- package/dist/TileEditor-DFBExGup.js +3547 -0
- package/dist/{TransitionFade-BMCSWEAj.js → TransitionFade-DEHp-ETN.js} +401 -393
- package/dist/{app-CrKcmNtX.js → app-DUppOHFW.js} +238 -98
- package/dist/app.js +1 -1
- package/dist/assets/formatChartData.worker-50q7LVBw.js +171 -0
- package/dist/assets/processTableData.worker-DrSBAOPU.js +171 -0
- package/dist/{InsightView-uUQohGVn.js → chart-DDDh8zNk.js} +1824 -2481
- package/dist/style.css +1 -1
- package/dist/{vue-i18n-DgYeUN5g.js → vue-i18n-CCeYOkNm.js} +2 -2
- package/package.json +1 -1
- package/dist/FilterSelector.vue_vue_type_script_setup_true_lang-DGktnZo1.js +0 -2915
- package/dist/TileEditor-CfXGe6pu.js +0 -2922
- package/dist/assets/formatChartData.worker-BJvDVXA9.js +0 -170
- package/dist/assets/processTableData.worker-B3PWntX0.js +0 -170
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { defineComponent as Te, onBeforeMount as In, onBeforeUnmount as Fn, resolveComponent as
|
|
2
|
-
import { u as Pt, e as Pn, p as Vn, i as rn } from "./vue-i18n-
|
|
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 he, toDisplayString as Ae, TransitionGroup as An, nextTick as tn, h as Rt, mergeModels as Nt, useModel as Ge, computed as Fe, Fragment as qe, renderList as nn, createBlock as Pe, normalizeClass as Nn, withCtx as ie, createTextVNode as on, Transition as xt, createCommentVNode as ue, ref as Se, watch as pt, withModifiers as Xt } from "vue";
|
|
2
|
+
import { u as Pt, e as Pn, p as Vn, i as rn } from "./vue-i18n-CCeYOkNm.js";
|
|
3
3
|
import { useCoreStore as Mn } from "@feedmepos/mf-common";
|
|
4
4
|
import { storeToRefs as Ln } from "pinia";
|
|
5
|
-
import { useRoute as
|
|
6
|
-
import { W as
|
|
7
|
-
import { _ as Vt, a as Yt } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { R as Rn, I as
|
|
9
|
-
import { d as ht } from "./app-
|
|
5
|
+
import { useRoute as Bn } from "vue-router";
|
|
6
|
+
import { W as F, c as De, d as $n } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DCcoPWWG.js";
|
|
7
|
+
import { _ as Vt, a as Yt } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DwhyK9V4.js";
|
|
8
|
+
import { R as Rn, I as Be, f as an, h as ln, i as Xn } from "./FilterSelector.vue_vue_type_script_setup_true_lang-Cxo_dkbM.js";
|
|
9
|
+
import { d as ht } from "./app-DUppOHFW.js";
|
|
10
10
|
import { r as Yn } from "./i18n-CI_sQ5d_.js";
|
|
11
11
|
import { useSnackbar as Wn } from "@feedmepos/ui-library";
|
|
12
|
-
import { d as Un } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
12
|
+
import { d as Un } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BRPx8vmv.js";
|
|
13
13
|
const jn = {
|
|
14
14
|
key: 0,
|
|
15
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" },
|
|
16
|
+
}, Hn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, vr = /* @__PURE__ */ Te({
|
|
17
17
|
__name: "FullScreen",
|
|
18
18
|
setup(t) {
|
|
19
|
-
const { t: e } = Pt(), n =
|
|
19
|
+
const { t: e } = Pt(), n = Bn(), { isLoading: o } = Ln(Pn()), r = Mn();
|
|
20
20
|
return In(() => {
|
|
21
|
-
|
|
21
|
+
r.hideSidebarToggle(!0);
|
|
22
22
|
}), Fn(() => {
|
|
23
|
-
|
|
24
|
-
}), (
|
|
25
|
-
const c =
|
|
26
|
-
return
|
|
23
|
+
r.hideSidebarToggle(!1);
|
|
24
|
+
}), (i, a) => {
|
|
25
|
+
const c = N("FmCircularProgress");
|
|
26
|
+
return V(), ee("div", {
|
|
27
27
|
class: "mx-auto",
|
|
28
28
|
style: kn({
|
|
29
29
|
height: `calc(100vh - ${X(n).query.token && X(n).query.businessId ? "0" : "64"}px)`
|
|
30
30
|
})
|
|
31
31
|
}, [
|
|
32
|
-
X(o) ? (
|
|
33
|
-
|
|
32
|
+
X(o) ? (V(), ee("div", jn, [
|
|
33
|
+
A(c, { size: "xl" }),
|
|
34
34
|
he("span", Hn, Ae(X(e)("report.common.isLoading")), 1)
|
|
35
|
-
])) : ze(
|
|
35
|
+
])) : ze(i.$slots, "default", { key: 1 })
|
|
36
36
|
], 4);
|
|
37
37
|
};
|
|
38
38
|
}
|
|
@@ -47,8 +47,8 @@ function Wt(t, e) {
|
|
|
47
47
|
var n = Object.keys(t);
|
|
48
48
|
if (Object.getOwnPropertySymbols) {
|
|
49
49
|
var o = Object.getOwnPropertySymbols(t);
|
|
50
|
-
e && (o = o.filter(function(
|
|
51
|
-
return Object.getOwnPropertyDescriptor(t,
|
|
50
|
+
e && (o = o.filter(function(r) {
|
|
51
|
+
return Object.getOwnPropertyDescriptor(t, r).enumerable;
|
|
52
52
|
})), n.push.apply(n, o);
|
|
53
53
|
}
|
|
54
54
|
return n;
|
|
@@ -92,18 +92,18 @@ function de() {
|
|
|
92
92
|
}
|
|
93
93
|
function Gn(t, e) {
|
|
94
94
|
if (t == null) return {};
|
|
95
|
-
var n = {}, o = Object.keys(t),
|
|
96
|
-
for (
|
|
97
|
-
|
|
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
98
|
return n;
|
|
99
99
|
}
|
|
100
100
|
function qn(t, e) {
|
|
101
101
|
if (t == null) return {};
|
|
102
|
-
var n = Gn(t, e), o,
|
|
102
|
+
var n = Gn(t, e), o, r;
|
|
103
103
|
if (Object.getOwnPropertySymbols) {
|
|
104
|
-
var
|
|
105
|
-
for (
|
|
106
|
-
o = r
|
|
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
107
|
}
|
|
108
108
|
return n;
|
|
109
109
|
}
|
|
@@ -141,7 +141,7 @@ function st(t, e) {
|
|
|
141
141
|
function Zn(t) {
|
|
142
142
|
return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode;
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function re(t, e, n, o) {
|
|
145
145
|
if (t) {
|
|
146
146
|
n = n || document;
|
|
147
147
|
do {
|
|
@@ -179,15 +179,15 @@ function Ve(t, e) {
|
|
|
179
179
|
var o = h(t, "transform");
|
|
180
180
|
o && o !== "none" && (n = o + " " + n);
|
|
181
181
|
} while (!e && (t = t.parentNode));
|
|
182
|
-
var
|
|
183
|
-
return
|
|
182
|
+
var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
183
|
+
return r && new r(n);
|
|
184
184
|
}
|
|
185
185
|
function cn(t, e, n) {
|
|
186
186
|
if (t) {
|
|
187
|
-
var o = t.getElementsByTagName(e),
|
|
187
|
+
var o = t.getElementsByTagName(e), r = 0, i = o.length;
|
|
188
188
|
if (n)
|
|
189
|
-
for (;
|
|
190
|
-
n(o[
|
|
189
|
+
for (; r < i; r++)
|
|
190
|
+
n(o[r], r);
|
|
191
191
|
return o;
|
|
192
192
|
}
|
|
193
193
|
return [];
|
|
@@ -196,19 +196,19 @@ function ae() {
|
|
|
196
196
|
var t = document.scrollingElement;
|
|
197
197
|
return t || document.documentElement;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function P(t, e, n, o, r) {
|
|
200
200
|
if (!(!t.getBoundingClientRect && t !== window)) {
|
|
201
|
-
var
|
|
202
|
-
if (t !== window && t.parentNode && t !== ae() ? (
|
|
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, !fe))
|
|
203
203
|
do
|
|
204
|
-
if (
|
|
205
|
-
var v =
|
|
206
|
-
a -= v.top + parseInt(h(
|
|
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
207
|
break;
|
|
208
208
|
}
|
|
209
|
-
while (
|
|
209
|
+
while (r = r.parentNode);
|
|
210
210
|
if (o && t !== window) {
|
|
211
|
-
var y = Ve(
|
|
211
|
+
var y = Ve(r || t), _ = y && y.a, b = y && y.d;
|
|
212
212
|
y && (a /= b, c /= _, s /= _, f /= b, l = a + f, u = c + s);
|
|
213
213
|
}
|
|
214
214
|
return {
|
|
@@ -222,22 +222,22 @@ function N(t, e, n, o, i) {
|
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
function Ht(t, e, n) {
|
|
225
|
-
for (var o = ve(t, !0),
|
|
226
|
-
var
|
|
227
|
-
if (a =
|
|
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
228
|
if (o === ae()) break;
|
|
229
229
|
o = ve(o, !1);
|
|
230
230
|
}
|
|
231
231
|
return !1;
|
|
232
232
|
}
|
|
233
233
|
function Me(t, e, n, o) {
|
|
234
|
-
for (var
|
|
235
|
-
if (a[
|
|
236
|
-
if (
|
|
237
|
-
return a[
|
|
238
|
-
|
|
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
239
|
}
|
|
240
|
-
|
|
240
|
+
i++;
|
|
241
241
|
}
|
|
242
242
|
return null;
|
|
243
243
|
}
|
|
@@ -258,8 +258,8 @@ function zt(t) {
|
|
|
258
258
|
var e = 0, n = 0, o = ae();
|
|
259
259
|
if (t)
|
|
260
260
|
do {
|
|
261
|
-
var
|
|
262
|
-
e += t.scrollLeft *
|
|
261
|
+
var r = Ve(t), i = r.a, a = r.d;
|
|
262
|
+
e += t.scrollLeft * i, n += t.scrollTop * a;
|
|
263
263
|
} while (t !== o && (t = t.parentNode));
|
|
264
264
|
return [e, n];
|
|
265
265
|
}
|
|
@@ -276,8 +276,8 @@ function ve(t, e) {
|
|
|
276
276
|
var n = t, o = !1;
|
|
277
277
|
do
|
|
278
278
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
279
|
-
var
|
|
280
|
-
if (n.clientWidth < n.scrollWidth && (
|
|
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
281
|
if (!n.getBoundingClientRect || n === document.body) return ae();
|
|
282
282
|
if (o || e) return n;
|
|
283
283
|
o = !0;
|
|
@@ -323,18 +323,18 @@ function no() {
|
|
|
323
323
|
captureAnimationState: function() {
|
|
324
324
|
if (t = [], !!this.options.animation) {
|
|
325
325
|
var o = [].slice.call(this.el.children);
|
|
326
|
-
o.forEach(function(
|
|
327
|
-
if (!(h(
|
|
326
|
+
o.forEach(function(r) {
|
|
327
|
+
if (!(h(r, "display") === "none" || r === g.ghost)) {
|
|
328
328
|
t.push({
|
|
329
|
-
target:
|
|
330
|
-
rect:
|
|
329
|
+
target: r,
|
|
330
|
+
rect: P(r)
|
|
331
331
|
});
|
|
332
|
-
var
|
|
333
|
-
if (
|
|
334
|
-
var a = Ve(
|
|
335
|
-
a && (
|
|
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
336
|
}
|
|
337
|
-
|
|
337
|
+
r.fromRect = i;
|
|
338
338
|
}
|
|
339
339
|
});
|
|
340
340
|
}
|
|
@@ -348,26 +348,26 @@ function no() {
|
|
|
348
348
|
}), 1);
|
|
349
349
|
},
|
|
350
350
|
animateAll: function(o) {
|
|
351
|
-
var
|
|
351
|
+
var r = this;
|
|
352
352
|
if (!this.options.animation) {
|
|
353
353
|
clearTimeout(e), typeof o == "function" && o();
|
|
354
354
|
return;
|
|
355
355
|
}
|
|
356
|
-
var
|
|
356
|
+
var i = !1, a = 0;
|
|
357
357
|
t.forEach(function(c) {
|
|
358
|
-
var l = 0, u = c.target, f = u.fromRect, s =
|
|
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
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 =
|
|
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
361
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
362
362
|
}, l), u.thisAnimationDuration = l);
|
|
363
|
-
}), clearTimeout(e),
|
|
363
|
+
}), clearTimeout(e), i ? e = setTimeout(function() {
|
|
364
364
|
typeof o == "function" && o();
|
|
365
365
|
}, a) : typeof o == "function" && o(), t = [];
|
|
366
366
|
},
|
|
367
|
-
animate: function(o,
|
|
367
|
+
animate: function(o, r, i, a) {
|
|
368
368
|
if (a) {
|
|
369
369
|
h(o, "transition", ""), h(o, "transform", "");
|
|
370
|
-
var c = Ve(this.el), l = c && c.a, u = c && c.d, f = (
|
|
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
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
372
|
h(o, "transition", ""), h(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
|
373
373
|
}, a);
|
|
@@ -378,7 +378,7 @@ function no() {
|
|
|
378
378
|
function oo(t) {
|
|
379
379
|
return t.offsetWidth;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function ro(t, e, n, o) {
|
|
382
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
383
|
}
|
|
384
384
|
var Oe = [], vt = {
|
|
@@ -393,20 +393,20 @@ var Oe = [], vt = {
|
|
|
393
393
|
}), Oe.push(e);
|
|
394
394
|
},
|
|
395
395
|
pluginEvent: function(e, n, o) {
|
|
396
|
-
var
|
|
396
|
+
var r = this;
|
|
397
397
|
this.eventCanceled = !1, o.cancel = function() {
|
|
398
|
-
|
|
398
|
+
r.eventCanceled = !0;
|
|
399
399
|
};
|
|
400
|
-
var
|
|
400
|
+
var i = e + "Global";
|
|
401
401
|
Oe.forEach(function(a) {
|
|
402
|
-
n[a.pluginName] && (n[a.pluginName][
|
|
402
|
+
n[a.pluginName] && (n[a.pluginName][i] && n[a.pluginName][i](le({
|
|
403
403
|
sortable: n
|
|
404
404
|
}, o)), n.options[a.pluginName] && n[a.pluginName][e] && n[a.pluginName][e](le({
|
|
405
405
|
sortable: n
|
|
406
406
|
}, o)));
|
|
407
407
|
});
|
|
408
408
|
},
|
|
409
|
-
initializePlugins: function(e, n, o,
|
|
409
|
+
initializePlugins: function(e, n, o, r) {
|
|
410
410
|
Oe.forEach(function(c) {
|
|
411
411
|
var l = c.pluginName;
|
|
412
412
|
if (!(!e.options[l] && !c.initializeByDefault)) {
|
|
@@ -414,54 +414,54 @@ var Oe = [], vt = {
|
|
|
414
414
|
u.sortable = e, u.options = e.options, e[l] = u, de(o, u.defaults);
|
|
415
415
|
}
|
|
416
416
|
});
|
|
417
|
-
for (var
|
|
418
|
-
if (e.options.hasOwnProperty(
|
|
419
|
-
var a = this.modifyOption(e,
|
|
420
|
-
typeof a < "u" && (e.options[
|
|
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
421
|
}
|
|
422
422
|
},
|
|
423
423
|
getEventProperties: function(e, n) {
|
|
424
424
|
var o = {};
|
|
425
|
-
return Oe.forEach(function(
|
|
426
|
-
typeof
|
|
425
|
+
return Oe.forEach(function(r) {
|
|
426
|
+
typeof r.eventProperties == "function" && de(o, r.eventProperties.call(n[r.pluginName], e));
|
|
427
427
|
}), o;
|
|
428
428
|
},
|
|
429
429
|
modifyOption: function(e, n, o) {
|
|
430
|
-
var
|
|
431
|
-
return Oe.forEach(function(
|
|
432
|
-
e[
|
|
433
|
-
}),
|
|
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
434
|
}
|
|
435
435
|
};
|
|
436
|
-
function
|
|
437
|
-
var e = t.sortable, n = t.rootEl, o = t.name,
|
|
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
438
|
if (e = e || n && n[Q], !!e) {
|
|
439
439
|
var b, Y = e.options, q = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
440
440
|
window.CustomEvent && !fe && !Ke ? b = new CustomEvent(o, {
|
|
441
441
|
bubbles: !0,
|
|
442
442
|
cancelable: !0
|
|
443
|
-
}) : (b = document.createEvent("Event"), b.initEvent(o, !0, !0)), b.to = a || n, b.from = c || n, b.item =
|
|
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
444
|
var T = le(le({}, _), Je.getEventProperties(o, e));
|
|
445
|
-
for (var
|
|
446
|
-
b[
|
|
445
|
+
for (var M in T)
|
|
446
|
+
b[M] = T[M];
|
|
447
447
|
n && n.dispatchEvent(b), Y[q] && Y[q].call(e, b);
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
var ao = ["evt"], K = function(e, n) {
|
|
451
|
-
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {},
|
|
451
|
+
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, i = qn(o, ao);
|
|
452
452
|
Je.pluginEvent.bind(g)(e, n, le({
|
|
453
453
|
dragEl: d,
|
|
454
454
|
parentEl: x,
|
|
455
455
|
ghostEl: w,
|
|
456
456
|
rootEl: C,
|
|
457
457
|
nextEl: Ce,
|
|
458
|
-
lastDownEl:
|
|
458
|
+
lastDownEl: rt,
|
|
459
459
|
cloneEl: O,
|
|
460
460
|
cloneHidden: ge,
|
|
461
|
-
dragStarted:
|
|
461
|
+
dragStarted: $e,
|
|
462
462
|
putSortable: R,
|
|
463
463
|
activeSortable: g.active,
|
|
464
|
-
originalEvent:
|
|
464
|
+
originalEvent: r,
|
|
465
465
|
oldIndex: Ne,
|
|
466
466
|
oldDraggableIndex: Ue,
|
|
467
467
|
newIndex: Z,
|
|
@@ -478,13 +478,13 @@ var ao = ["evt"], K = function(e, n) {
|
|
|
478
478
|
G({
|
|
479
479
|
sortable: n,
|
|
480
480
|
name: c,
|
|
481
|
-
originalEvent:
|
|
481
|
+
originalEvent: r
|
|
482
482
|
});
|
|
483
483
|
}
|
|
484
|
-
},
|
|
484
|
+
}, i));
|
|
485
485
|
};
|
|
486
486
|
function G(t) {
|
|
487
|
-
|
|
487
|
+
io(le({
|
|
488
488
|
putSortable: R,
|
|
489
489
|
cloneEl: O,
|
|
490
490
|
targetEl: d,
|
|
@@ -495,7 +495,7 @@ function G(t) {
|
|
|
495
495
|
newDraggableIndex: pe
|
|
496
496
|
}, t));
|
|
497
497
|
}
|
|
498
|
-
var d, x, w, C, Ce,
|
|
498
|
+
var d, x, w, C, Ce, rt, O, ge, Ne, Z, Ue, pe, Qe, R, ke = !1, ut = !1, ct = [], we, oe, bt, yt, Gt, qt, $e, Ie, je, He = !1, et = !1, it, j, _t = [], Ot = !1, dt = [], mt = typeof document < "u", tt = sn, Kt = Ke || fe ? "cssFloat" : "float", lo = mt && !Jn && !sn && "draggable" in document.createElement("div"), pn = function() {
|
|
499
499
|
if (mt) {
|
|
500
500
|
if (fe)
|
|
501
501
|
return !1;
|
|
@@ -503,49 +503,49 @@ var d, x, w, C, Ce, it, O, ge, Ne, Z, Ue, pe, Qe, R, ke = !1, ut = !1, ct = [],
|
|
|
503
503
|
return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
|
|
504
504
|
}
|
|
505
505
|
}(), hn = function(e, n) {
|
|
506
|
-
var o = h(e),
|
|
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
507
|
if (o.display === "flex")
|
|
508
508
|
return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
509
509
|
if (o.display === "grid")
|
|
510
510
|
return o.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
511
|
-
if (
|
|
511
|
+
if (i && c.float && c.float !== "none") {
|
|
512
512
|
var s = c.float === "left" ? "left" : "right";
|
|
513
513
|
return a && (l.clear === "both" || l.clear === s) ? "vertical" : "horizontal";
|
|
514
514
|
}
|
|
515
|
-
return
|
|
515
|
+
return i && (c.display === "block" || c.display === "flex" || c.display === "table" || c.display === "grid" || u >= r && o[Kt] === "none" || a && o[Kt] === "none" && u + f > r) ? "vertical" : "horizontal";
|
|
516
516
|
}, so = function(e, n, o) {
|
|
517
|
-
var
|
|
518
|
-
return
|
|
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
519
|
}, uo = function(e, n) {
|
|
520
520
|
var o;
|
|
521
|
-
return ct.some(function(
|
|
522
|
-
var
|
|
523
|
-
if (!(!
|
|
524
|
-
var a =
|
|
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
525
|
if (c && l)
|
|
526
|
-
return o =
|
|
526
|
+
return o = r;
|
|
527
527
|
}
|
|
528
528
|
}), o;
|
|
529
529
|
}, gn = function(e) {
|
|
530
|
-
function n(
|
|
530
|
+
function n(i, a) {
|
|
531
531
|
return function(c, l, u, f) {
|
|
532
532
|
var s = c.options.group.name && l.options.group.name && c.options.group.name === l.options.group.name;
|
|
533
|
-
if (
|
|
533
|
+
if (i == null && (a || s))
|
|
534
534
|
return !0;
|
|
535
|
-
if (
|
|
535
|
+
if (i == null || i === !1)
|
|
536
536
|
return !1;
|
|
537
|
-
if (a &&
|
|
538
|
-
return
|
|
539
|
-
if (typeof
|
|
540
|
-
return n(
|
|
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
541
|
var v = (a ? c : l).options.group.name;
|
|
542
|
-
return
|
|
542
|
+
return i === !0 || typeof i == "string" && i === v || i.join && i.indexOf(v) > -1;
|
|
543
543
|
};
|
|
544
544
|
}
|
|
545
|
-
var o = {},
|
|
546
|
-
(!
|
|
547
|
-
name:
|
|
548
|
-
}), o.name =
|
|
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
549
|
}, vn = function() {
|
|
550
550
|
!pn && w && h(w, "display", "none");
|
|
551
551
|
}, bn = function() {
|
|
@@ -561,8 +561,8 @@ var Ee = function(e) {
|
|
|
561
561
|
var n = uo(e.clientX, e.clientY);
|
|
562
562
|
if (n) {
|
|
563
563
|
var o = {};
|
|
564
|
-
for (var
|
|
565
|
-
e.hasOwnProperty(
|
|
564
|
+
for (var r in e)
|
|
565
|
+
e.hasOwnProperty(r) && (o[r] = e[r]);
|
|
566
566
|
o.target = o.rootEl = n, o.preventDefault = void 0, o.stopPropagation = void 0, n[Q]._onDragOver(o);
|
|
567
567
|
}
|
|
568
568
|
}
|
|
@@ -622,8 +622,8 @@ function g(t, e) {
|
|
|
622
622
|
for (var o in n)
|
|
623
623
|
!(o in e) && (e[o] = n[o]);
|
|
624
624
|
gn(e);
|
|
625
|
-
for (var
|
|
626
|
-
|
|
625
|
+
for (var r in this)
|
|
626
|
+
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
627
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) || []), de(this, no());
|
|
628
628
|
}
|
|
629
629
|
g.prototype = /** @lends Sortable.prototype */
|
|
@@ -637,9 +637,9 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
637
637
|
},
|
|
638
638
|
_onTapStart: function(e) {
|
|
639
639
|
if (e.cancelable) {
|
|
640
|
-
var n = this, o = this.el,
|
|
641
|
-
if (yo(o), !d && !(/mousedown|pointerdown/.test(a) && e.button !== 0 ||
|
|
642
|
-
if (Ne = ne(l), Ue = ne(l,
|
|
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
643
|
if (f.call(this, e, l, this)) {
|
|
644
644
|
G({
|
|
645
645
|
sortable: n,
|
|
@@ -650,11 +650,11 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
650
650
|
fromEl: o
|
|
651
651
|
}), K("filter", n, {
|
|
652
652
|
evt: e
|
|
653
|
-
}),
|
|
653
|
+
}), i && e.cancelable && e.preventDefault();
|
|
654
654
|
return;
|
|
655
655
|
}
|
|
656
656
|
} else if (f && (f = f.split(",").some(function(s) {
|
|
657
|
-
if (s =
|
|
657
|
+
if (s = re(u, s.trim(), o, !1), s)
|
|
658
658
|
return G({
|
|
659
659
|
sortable: n,
|
|
660
660
|
rootEl: s,
|
|
@@ -666,43 +666,43 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
666
666
|
evt: e
|
|
667
667
|
}), !0;
|
|
668
668
|
}), f)) {
|
|
669
|
-
|
|
669
|
+
i && e.cancelable && e.preventDefault();
|
|
670
670
|
return;
|
|
671
671
|
}
|
|
672
|
-
|
|
672
|
+
r.handle && !re(u, r.handle, o, !1) || this._prepareDragStart(e, c, l);
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
675
|
},
|
|
676
676
|
_prepareDragStart: function(e, n, o) {
|
|
677
|
-
var
|
|
678
|
-
if (o && !d && o.parentNode ===
|
|
679
|
-
var u =
|
|
680
|
-
if (C =
|
|
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
681
|
target: d,
|
|
682
682
|
clientX: (n || e).clientX,
|
|
683
683
|
clientY: (n || e).clientY
|
|
684
684
|
}, Gt = we.clientX - u.left, qt = 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",
|
|
685
|
+
if (K("delayEnded", r, {
|
|
686
686
|
evt: e
|
|
687
687
|
}), g.eventCanceled) {
|
|
688
|
-
|
|
688
|
+
r._onDrop();
|
|
689
689
|
return;
|
|
690
690
|
}
|
|
691
|
-
|
|
692
|
-
sortable:
|
|
691
|
+
r._disableDelayedDragEvents(), !Ut && r.nativeDraggable && (d.draggable = !0), r._triggerDragStart(e, n), G({
|
|
692
|
+
sortable: r,
|
|
693
693
|
name: "choose",
|
|
694
694
|
originalEvent: e
|
|
695
695
|
}), J(d, a.chosenClass, !0);
|
|
696
696
|
}, a.ignore.split(",").forEach(function(f) {
|
|
697
697
|
cn(d, f.trim(), wt);
|
|
698
|
-
}), D(c, "dragover", Ee), D(c, "mousemove", Ee), D(c, "touchmove", Ee), D(c, "mouseup",
|
|
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), Ut && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), K("delayStart", this, {
|
|
699
699
|
evt: e
|
|
700
700
|
}), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Ke || fe))) {
|
|
701
701
|
if (g.eventCanceled) {
|
|
702
702
|
this._onDrop();
|
|
703
703
|
return;
|
|
704
704
|
}
|
|
705
|
-
D(c, "mouseup",
|
|
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
706
|
} else
|
|
707
707
|
l();
|
|
708
708
|
}
|
|
@@ -765,9 +765,9 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
765
765
|
},
|
|
766
766
|
_onTouchMove: function(e) {
|
|
767
767
|
if (we) {
|
|
768
|
-
var n = this.options, o = n.fallbackTolerance,
|
|
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 && zt(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
769
|
if (!g.active && !ke) {
|
|
770
|
-
if (o && Math.max(Math.abs(
|
|
770
|
+
if (o && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < o)
|
|
771
771
|
return;
|
|
772
772
|
this._onDragStart(e, !0);
|
|
773
773
|
}
|
|
@@ -781,14 +781,14 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
781
781
|
f: s
|
|
782
782
|
};
|
|
783
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 =
|
|
784
|
+
h(w, "webkitTransform", v), h(w, "mozTransform", v), h(w, "msTransform", v), h(w, "transform", v), bt = f, yt = s, oe = i;
|
|
785
785
|
}
|
|
786
786
|
e.cancelable && e.preventDefault();
|
|
787
787
|
}
|
|
788
788
|
},
|
|
789
789
|
_appendGhost: function() {
|
|
790
790
|
if (!w) {
|
|
791
|
-
var e = this.options.fallbackOnBody ? document.body : C, n =
|
|
791
|
+
var e = this.options.fallbackOnBody ? document.body : C, n = P(d, !0, tt, !0, e), o = this.options;
|
|
792
792
|
if (tt) {
|
|
793
793
|
for (j = e; h(j, "position") === "static" && h(j, "transform") === "none" && j !== document; )
|
|
794
794
|
j = j.parentNode;
|
|
@@ -798,7 +798,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
798
798
|
}
|
|
799
799
|
},
|
|
800
800
|
_onDragStart: function(e, n) {
|
|
801
|
-
var o = this,
|
|
801
|
+
var o = this, r = e.dataTransfer, i = o.options;
|
|
802
802
|
if (K("dragStart", this, {
|
|
803
803
|
evt: e
|
|
804
804
|
}), g.eventCanceled) {
|
|
@@ -810,41 +810,41 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
810
810
|
sortable: o,
|
|
811
811
|
name: "clone"
|
|
812
812
|
}));
|
|
813
|
-
}), !n && J(d,
|
|
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
814
|
},
|
|
815
815
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
816
816
|
_onDragOver: function(e) {
|
|
817
|
-
var n = this.el, o = e.target,
|
|
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
818
|
if (Ot) return;
|
|
819
|
-
function Y(
|
|
820
|
-
K(
|
|
819
|
+
function Y($, Le) {
|
|
820
|
+
K($, _, le({
|
|
821
821
|
evt: e,
|
|
822
822
|
isOwner: f,
|
|
823
823
|
axis: y ? "vertical" : "horizontal",
|
|
824
824
|
revert: a,
|
|
825
|
-
dragRect:
|
|
826
|
-
targetRect:
|
|
825
|
+
dragRect: r,
|
|
826
|
+
targetRect: i,
|
|
827
827
|
canSort: s,
|
|
828
828
|
fromSortable: v,
|
|
829
829
|
target: o,
|
|
830
830
|
completed: T,
|
|
831
831
|
onMove: function(Ze, _e) {
|
|
832
|
-
return nt(C, n, d,
|
|
832
|
+
return nt(C, n, d, r, Ze, P(Ze), e, _e);
|
|
833
833
|
},
|
|
834
|
-
changed:
|
|
834
|
+
changed: M
|
|
835
835
|
}, Le));
|
|
836
836
|
}
|
|
837
837
|
function q() {
|
|
838
838
|
Y("dragOverAnimationCapture"), _.captureAnimationState(), _ !== v && v.captureAnimationState();
|
|
839
839
|
}
|
|
840
|
-
function T(
|
|
840
|
+
function T($) {
|
|
841
841
|
return Y("dragOverCompleted", {
|
|
842
|
-
insertion:
|
|
843
|
-
}),
|
|
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
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),
|
|
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
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function M() {
|
|
848
848
|
Z = ne(d), pe = ne(d, c.draggable), G({
|
|
849
849
|
sortable: _,
|
|
850
850
|
name: "change",
|
|
@@ -854,29 +854,29 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
854
854
|
originalEvent: e
|
|
855
855
|
});
|
|
856
856
|
}
|
|
857
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o =
|
|
857
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = re(o, c.draggable, n, !0), Y("dragOver"), g.eventCanceled) return b;
|
|
858
858
|
if (d.contains(e.target) || o.animated && o.animatingX && o.animatingY || _._ignoreWhileAnimating === o)
|
|
859
859
|
return T(!1);
|
|
860
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",
|
|
861
|
+
if (y = this._getDirection(e, o) === "vertical", r = P(d), Y("dragOverValid"), g.eventCanceled) return b;
|
|
862
862
|
if (a)
|
|
863
863
|
return x = C, q(), this._hideClone(), Y("revert"), g.eventCanceled || (Ce ? C.insertBefore(d, Ce) : C.appendChild(d)), T(!0);
|
|
864
|
-
var
|
|
865
|
-
if (!
|
|
866
|
-
if (
|
|
864
|
+
var L = Mt(n, c.draggable);
|
|
865
|
+
if (!L || ho(e, y, this) && !L.animated) {
|
|
866
|
+
if (L === d)
|
|
867
867
|
return T(!1);
|
|
868
|
-
if (
|
|
869
|
-
return q(), n.appendChild(d), x = n,
|
|
870
|
-
} else if (
|
|
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
871
|
var W = Me(n, 0, c, !0);
|
|
872
872
|
if (W === d)
|
|
873
873
|
return T(!1);
|
|
874
|
-
if (o = W,
|
|
875
|
-
return q(), n.insertBefore(d, W), x = n,
|
|
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
876
|
} else if (o.parentNode === n) {
|
|
877
|
-
|
|
878
|
-
var te = 0, se, be = d.parentNode !== n, H = !so(d.animated && d.toRect ||
|
|
879
|
-
Ie !== o && (se =
|
|
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 = Ht(o, "top", "top") || Ht(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
880
|
var E;
|
|
881
881
|
if (te !== 0) {
|
|
882
882
|
var I = ne(d);
|
|
@@ -887,11 +887,11 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
887
887
|
if (te === 0 || E === o)
|
|
888
888
|
return T(!1);
|
|
889
889
|
Ie = o, je = te;
|
|
890
|
-
var
|
|
890
|
+
var B = o.nextElementSibling, z = !1;
|
|
891
891
|
z = te === 1;
|
|
892
|
-
var me = nt(C, n, d,
|
|
892
|
+
var me = nt(C, n, d, r, o, i, e, z);
|
|
893
893
|
if (me !== !1)
|
|
894
|
-
return (me === 1 || me === -1) && (z = me === 1), Ot = !0, setTimeout(mo, 30), q(), z && !
|
|
894
|
+
return (me === 1 || me === -1) && (z = me === 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
895
|
}
|
|
896
896
|
if (n.contains(d))
|
|
897
897
|
return T(!1);
|
|
@@ -914,7 +914,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
914
914
|
this._nulling();
|
|
915
915
|
return;
|
|
916
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 && (
|
|
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
918
|
sortable: this,
|
|
919
919
|
name: "unchoose",
|
|
920
920
|
toEl: x,
|
|
@@ -961,7 +961,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
961
961
|
}), this.save()))), this._nulling();
|
|
962
962
|
},
|
|
963
963
|
_nulling: function() {
|
|
964
|
-
K("nulling", this), C = d = x = w = Ce = O =
|
|
964
|
+
K("nulling", this), C = d = x = w = Ce = O = rt = ge = we = oe = $e = Z = pe = Ne = Ue = Ie = je = R = Qe = g.dragged = g.ghost = g.clone = g.active = null, dt.forEach(function(e) {
|
|
965
965
|
e.checked = !0;
|
|
966
966
|
}), dt.length = bt = yt = 0;
|
|
967
967
|
},
|
|
@@ -985,8 +985,8 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
985
985
|
* @returns {String[]}
|
|
986
986
|
*/
|
|
987
987
|
toArray: function() {
|
|
988
|
-
for (var e = [], n, o = this.el.children,
|
|
989
|
-
n = o[
|
|
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
990
|
return e;
|
|
991
991
|
},
|
|
992
992
|
/**
|
|
@@ -994,12 +994,12 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
994
994
|
* @param {String[]} order order of the items
|
|
995
995
|
*/
|
|
996
996
|
sort: function(e, n) {
|
|
997
|
-
var o = {},
|
|
998
|
-
this.toArray().forEach(function(
|
|
999
|
-
var c =
|
|
1000
|
-
|
|
1001
|
-
}, this), n && this.captureAnimationState(), e.forEach(function(
|
|
1002
|
-
o[
|
|
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
1003
|
}), n && this.animateAll();
|
|
1004
1004
|
},
|
|
1005
1005
|
/**
|
|
@@ -1016,7 +1016,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1016
1016
|
* @returns {HTMLElement|null}
|
|
1017
1017
|
*/
|
|
1018
1018
|
closest: function(e, n) {
|
|
1019
|
-
return
|
|
1019
|
+
return re(e, n || this.options.draggable, this.el, !1);
|
|
1020
1020
|
},
|
|
1021
1021
|
/**
|
|
1022
1022
|
* Set/get option
|
|
@@ -1028,8 +1028,8 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1028
1028
|
var o = this.options;
|
|
1029
1029
|
if (n === void 0)
|
|
1030
1030
|
return o[e];
|
|
1031
|
-
var
|
|
1032
|
-
typeof
|
|
1031
|
+
var r = Je.modifyOption(this, e, n);
|
|
1032
|
+
typeof r < "u" ? o[e] = r : o[e] = n, e === "group" && gn(o);
|
|
1033
1033
|
},
|
|
1034
1034
|
/**
|
|
1035
1035
|
* Destroy
|
|
@@ -1061,12 +1061,12 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
1061
1061
|
function fo(t) {
|
|
1062
1062
|
t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
|
|
1063
1063
|
}
|
|
1064
|
-
function nt(t, e, n, o,
|
|
1064
|
+
function nt(t, e, n, o, r, i, a, c) {
|
|
1065
1065
|
var l, u = t[Q], f = u.options.onMove, s;
|
|
1066
1066
|
return window.CustomEvent && !fe && !Ke ? l = new CustomEvent("move", {
|
|
1067
1067
|
bubbles: !0,
|
|
1068
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 =
|
|
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
1070
|
}
|
|
1071
1071
|
function wt(t) {
|
|
1072
1072
|
t.draggable = !1;
|
|
@@ -1075,25 +1075,25 @@ function mo() {
|
|
|
1075
1075
|
Ot = !1;
|
|
1076
1076
|
}
|
|
1077
1077
|
function po(t, e, n) {
|
|
1078
|
-
var o =
|
|
1079
|
-
return e ? t.clientX < o.left -
|
|
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
1080
|
}
|
|
1081
1081
|
function ho(t, e, n) {
|
|
1082
|
-
var o =
|
|
1083
|
-
return e ? t.clientX > o.right +
|
|
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
1084
|
}
|
|
1085
|
-
function go(t, e, n, o,
|
|
1085
|
+
function go(t, e, n, o, r, i, a, c) {
|
|
1086
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
1087
|
if (!a) {
|
|
1088
|
-
if (c &&
|
|
1089
|
-
if (!He && (je === 1 ? l > f + u *
|
|
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
1090
|
v = !0;
|
|
1091
|
-
else if (je === 1 ? l < f +
|
|
1091
|
+
else if (je === 1 ? l < f + it : l > s - it)
|
|
1092
1092
|
return -je;
|
|
1093
|
-
} else if (l > f + u * (1 -
|
|
1093
|
+
} else if (l > f + u * (1 - r) / 2 && l < s - u * (1 - r) / 2)
|
|
1094
1094
|
return vo(e);
|
|
1095
1095
|
}
|
|
1096
|
-
return v = v || a, v && (l < f + u *
|
|
1096
|
+
return v = v || a, v && (l < f + u * i / 2 || l > s - u * i / 2) ? l > f + u / 2 ? 1 : -1 : 0;
|
|
1097
1097
|
}
|
|
1098
1098
|
function vo(t) {
|
|
1099
1099
|
return ne(d) < ne(t) ? 1 : -1;
|
|
@@ -1125,11 +1125,11 @@ g.utils = {
|
|
|
1125
1125
|
css: h,
|
|
1126
1126
|
find: cn,
|
|
1127
1127
|
is: function(e, n) {
|
|
1128
|
-
return !!
|
|
1128
|
+
return !!re(e, n, e, !1);
|
|
1129
1129
|
},
|
|
1130
1130
|
extend: eo,
|
|
1131
1131
|
throttle: dn,
|
|
1132
|
-
closest:
|
|
1132
|
+
closest: re,
|
|
1133
1133
|
toggleClass: J,
|
|
1134
1134
|
clone: mn,
|
|
1135
1135
|
index: ne,
|
|
@@ -1154,7 +1154,7 @@ g.create = function(t, e) {
|
|
|
1154
1154
|
return new g(t, e);
|
|
1155
1155
|
};
|
|
1156
1156
|
g.version = Kn;
|
|
1157
|
-
var
|
|
1157
|
+
var k = [], Re, Ft, kt = !1, Et, St, ft, Xe;
|
|
1158
1158
|
function _o() {
|
|
1159
1159
|
function t() {
|
|
1160
1160
|
this.defaults = {
|
|
@@ -1180,20 +1180,20 @@ function _o() {
|
|
|
1180
1180
|
this.sortable.nativeDraggable ? S(document, "dragover", this._handleAutoScroll) : (S(document, "pointermove", this._handleFallbackAutoScroll), S(document, "touchmove", this._handleFallbackAutoScroll), S(document, "mousemove", this._handleFallbackAutoScroll)), Jt(), lt(), to();
|
|
1181
1181
|
},
|
|
1182
1182
|
nulling: function() {
|
|
1183
|
-
ft = Ft = Re = kt = Xe = Et = St = null,
|
|
1183
|
+
ft = Ft = Re = kt = Xe = Et = St = null, k.length = 0;
|
|
1184
1184
|
},
|
|
1185
1185
|
_handleFallbackAutoScroll: function(n) {
|
|
1186
1186
|
this._handleAutoScroll(n, !0);
|
|
1187
1187
|
},
|
|
1188
1188
|
_handleAutoScroll: function(n, o) {
|
|
1189
|
-
var
|
|
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
1190
|
if (ft = n, o || this.options.forceAutoScrollFallback || Ke || fe || Ye) {
|
|
1191
1191
|
Dt(n, this.options, c, o);
|
|
1192
1192
|
var l = ve(c, !0);
|
|
1193
|
-
kt && (!Xe ||
|
|
1194
|
-
var u = ve(document.elementFromPoint(
|
|
1195
|
-
u !== l && (l = u, lt()), Dt(n,
|
|
1196
|
-
}, 10), Et =
|
|
1193
|
+
kt && (!Xe || i !== Et || a !== St) && (Xe && Jt(), 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
1197
|
} else {
|
|
1198
1198
|
if (!this.options.bubbleScroll || ve(c, !0) === ae()) {
|
|
1199
1199
|
lt();
|
|
@@ -1208,29 +1208,29 @@ function _o() {
|
|
|
1208
1208
|
});
|
|
1209
1209
|
}
|
|
1210
1210
|
function lt() {
|
|
1211
|
-
|
|
1211
|
+
k.forEach(function(t) {
|
|
1212
1212
|
clearInterval(t.pid);
|
|
1213
|
-
}),
|
|
1213
|
+
}), k = [];
|
|
1214
1214
|
}
|
|
1215
1215
|
function Jt() {
|
|
1216
1216
|
clearInterval(Xe);
|
|
1217
1217
|
}
|
|
1218
1218
|
var Dt = dn(function(t, e, n, o) {
|
|
1219
1219
|
if (e.scroll) {
|
|
1220
|
-
var
|
|
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
1221
|
Ft !== n && (Ft = n, lt(), Re = e.scroll, f = e.scrollFn, Re === !0 && (Re = ve(n, !0)));
|
|
1222
1222
|
var s = 0, v = Re;
|
|
1223
1223
|
do {
|
|
1224
|
-
var y = v, _ =
|
|
1225
|
-
y === l ? (W =
|
|
1226
|
-
var p = W && (Math.abs(T -
|
|
1227
|
-
if (!
|
|
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
1228
|
for (var I = 0; I <= s; I++)
|
|
1229
|
-
|
|
1230
|
-
(
|
|
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
1231
|
o && this.layer === 0 && g.active._onTouchMove(ft);
|
|
1232
|
-
var
|
|
1233
|
-
typeof f == "function" && f.call(g.dragged.parentNode[Q], z,
|
|
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
1234
|
}).bind({
|
|
1235
1235
|
layer: s
|
|
1236
1236
|
}), 24))), s++;
|
|
@@ -1238,13 +1238,13 @@ var Dt = dn(function(t, e, n, o) {
|
|
|
1238
1238
|
kt = u;
|
|
1239
1239
|
}
|
|
1240
1240
|
}, 30), yn = function(e) {
|
|
1241
|
-
var n = e.originalEvent, o = e.putSortable,
|
|
1241
|
+
var n = e.originalEvent, o = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, c = e.hideGhostForTarget, l = e.unhideGhostForTarget;
|
|
1242
1242
|
if (n) {
|
|
1243
|
-
var u = o ||
|
|
1243
|
+
var u = o || i;
|
|
1244
1244
|
c();
|
|
1245
1245
|
var f = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, s = document.elementFromPoint(f.clientX, f.clientY);
|
|
1246
1246
|
l(), u && !u.el.contains(s) && (a("spill"), this.onSpill({
|
|
1247
|
-
dragEl:
|
|
1247
|
+
dragEl: r,
|
|
1248
1248
|
putSortable: o
|
|
1249
1249
|
}));
|
|
1250
1250
|
}
|
|
@@ -1260,28 +1260,28 @@ Lt.prototype = {
|
|
|
1260
1260
|
onSpill: function(e) {
|
|
1261
1261
|
var n = e.dragEl, o = e.putSortable;
|
|
1262
1262
|
this.sortable.captureAnimationState(), o && o.captureAnimationState();
|
|
1263
|
-
var
|
|
1264
|
-
|
|
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
1265
|
},
|
|
1266
1266
|
drop: yn
|
|
1267
1267
|
};
|
|
1268
1268
|
de(Lt, {
|
|
1269
1269
|
pluginName: "revertOnSpill"
|
|
1270
1270
|
});
|
|
1271
|
-
function
|
|
1271
|
+
function Bt() {
|
|
1272
1272
|
}
|
|
1273
|
-
|
|
1273
|
+
Bt.prototype = {
|
|
1274
1274
|
onSpill: function(e) {
|
|
1275
|
-
var n = e.dragEl, o = e.putSortable,
|
|
1276
|
-
|
|
1275
|
+
var n = e.dragEl, o = e.putSortable, r = o || this.sortable;
|
|
1276
|
+
r.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), r.animateAll();
|
|
1277
1277
|
},
|
|
1278
1278
|
drop: yn
|
|
1279
1279
|
};
|
|
1280
|
-
de(
|
|
1280
|
+
de(Bt, {
|
|
1281
1281
|
pluginName: "removeOnSpill"
|
|
1282
1282
|
});
|
|
1283
1283
|
g.mount(new _o());
|
|
1284
|
-
g.mount(
|
|
1284
|
+
g.mount(Bt, Lt);
|
|
1285
1285
|
function Ct(t) {
|
|
1286
1286
|
t.parentElement !== null && t.parentElement.removeChild(t);
|
|
1287
1287
|
}
|
|
@@ -1441,16 +1441,16 @@ function Dn(t) {
|
|
|
1441
1441
|
function ko({ $attrs: t, componentData: e = {} }) {
|
|
1442
1442
|
return {
|
|
1443
1443
|
...Dn(
|
|
1444
|
-
Object.entries(t).filter(([o,
|
|
1444
|
+
Object.entries(t).filter(([o, r]) => Sn(o))
|
|
1445
1445
|
),
|
|
1446
1446
|
...e
|
|
1447
1447
|
};
|
|
1448
1448
|
}
|
|
1449
1449
|
function Ao({ $attrs: t, callBackBuilder: e }) {
|
|
1450
1450
|
const n = Dn(Cn(t));
|
|
1451
|
-
Object.entries(e).forEach(([
|
|
1452
|
-
At[
|
|
1453
|
-
n[`on${a}`] =
|
|
1451
|
+
Object.entries(e).forEach(([r, i]) => {
|
|
1452
|
+
At[r].forEach((a) => {
|
|
1453
|
+
n[`on${a}`] = i(a);
|
|
1454
1454
|
});
|
|
1455
1455
|
});
|
|
1456
1456
|
const o = `[data-draggable]${n.draggable || ""}`;
|
|
@@ -1466,24 +1466,24 @@ const Qt = ({ el: t }) => t, No = (t, e) => t.__draggable_context = e, en = (t)
|
|
|
1466
1466
|
class Po {
|
|
1467
1467
|
constructor({
|
|
1468
1468
|
nodes: { header: e, default: n, footer: o },
|
|
1469
|
-
root:
|
|
1470
|
-
realList:
|
|
1469
|
+
root: r,
|
|
1470
|
+
realList: i
|
|
1471
1471
|
}) {
|
|
1472
|
-
this.defaultNodes = n, this.children = [...e, ...n, ...o], this.externalComponent =
|
|
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
1473
|
}
|
|
1474
1474
|
get _isRootComponent() {
|
|
1475
1475
|
return this.externalComponent || this.rootTransition;
|
|
1476
1476
|
}
|
|
1477
1477
|
render(e, n) {
|
|
1478
|
-
const { tag: o, children:
|
|
1479
|
-
return e(o, n,
|
|
1478
|
+
const { tag: o, children: r, _isRootComponent: i } = this;
|
|
1479
|
+
return e(o, n, i ? { default: () => r } : r);
|
|
1480
1480
|
}
|
|
1481
1481
|
updated() {
|
|
1482
1482
|
const { defaultNodes: e, realList: n } = this;
|
|
1483
|
-
e.forEach((o,
|
|
1483
|
+
e.forEach((o, r) => {
|
|
1484
1484
|
No(Qt(o), {
|
|
1485
|
-
element: n[
|
|
1486
|
-
index:
|
|
1485
|
+
element: n[r],
|
|
1486
|
+
index: r
|
|
1487
1487
|
});
|
|
1488
1488
|
});
|
|
1489
1489
|
}
|
|
@@ -1491,18 +1491,18 @@ class Po {
|
|
|
1491
1491
|
return en(e);
|
|
1492
1492
|
}
|
|
1493
1493
|
getVmIndexFromDomIndex(e, n) {
|
|
1494
|
-
const { defaultNodes: o } = this, { length:
|
|
1494
|
+
const { defaultNodes: o } = this, { length: r } = o, i = n.children, a = i.item(e);
|
|
1495
1495
|
if (a === null)
|
|
1496
|
-
return
|
|
1496
|
+
return r;
|
|
1497
1497
|
const c = en(a);
|
|
1498
1498
|
if (c)
|
|
1499
1499
|
return c.index;
|
|
1500
|
-
if (
|
|
1500
|
+
if (r === 0)
|
|
1501
1501
|
return 0;
|
|
1502
|
-
const l = Qt(o[0]), u = [...
|
|
1502
|
+
const l = Qt(o[0]), u = [...i].findIndex(
|
|
1503
1503
|
(f) => f === l
|
|
1504
1504
|
);
|
|
1505
|
-
return e < u ? 0 :
|
|
1505
|
+
return e < u ? 0 : r;
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
1508
1508
|
function Vo(t, e) {
|
|
@@ -1510,7 +1510,7 @@ function Vo(t, e) {
|
|
|
1510
1510
|
return n ? n() : [];
|
|
1511
1511
|
}
|
|
1512
1512
|
function Mo({ $slots: t, realList: e, getKey: n }) {
|
|
1513
|
-
const o = e || [], [
|
|
1513
|
+
const o = e || [], [r, i] = ["header", "footer"].map(
|
|
1514
1514
|
(l) => Vo(t, l)
|
|
1515
1515
|
), { item: a } = t;
|
|
1516
1516
|
if (!a)
|
|
@@ -1521,8 +1521,8 @@ function Mo({ $slots: t, realList: e, getKey: n }) {
|
|
|
1521
1521
|
if (c.length !== o.length)
|
|
1522
1522
|
throw new Error("Item slot must have only one child");
|
|
1523
1523
|
return {
|
|
1524
|
-
header:
|
|
1525
|
-
footer:
|
|
1524
|
+
header: r,
|
|
1525
|
+
footer: i,
|
|
1526
1526
|
default: c
|
|
1527
1527
|
};
|
|
1528
1528
|
}
|
|
@@ -1531,12 +1531,12 @@ function Lo(t) {
|
|
|
1531
1531
|
return {
|
|
1532
1532
|
transition: e,
|
|
1533
1533
|
externalComponent: n,
|
|
1534
|
-
tag: n ?
|
|
1534
|
+
tag: n ? N(t) : e ? An : t
|
|
1535
1535
|
};
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1538
|
-
const
|
|
1539
|
-
return new Po({ nodes:
|
|
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
1540
|
}
|
|
1541
1541
|
function Tn(t, e) {
|
|
1542
1542
|
tn(() => this.$emit(t.toLowerCase(), e));
|
|
@@ -1547,7 +1547,7 @@ function xn(t) {
|
|
|
1547
1547
|
return this[`onDrag${t}`](e, n);
|
|
1548
1548
|
};
|
|
1549
1549
|
}
|
|
1550
|
-
function
|
|
1550
|
+
function $o(t) {
|
|
1551
1551
|
const e = xn.call(this, t);
|
|
1552
1552
|
return (n, o) => {
|
|
1553
1553
|
e.call(this, n, o), Tn.call(this, t, n);
|
|
@@ -1603,11 +1603,11 @@ const Ro = {
|
|
|
1603
1603
|
render() {
|
|
1604
1604
|
try {
|
|
1605
1605
|
this.error = !1;
|
|
1606
|
-
const { $slots: t, $attrs: e, tag: n, componentData: o, realList:
|
|
1606
|
+
const { $slots: t, $attrs: e, tag: n, componentData: o, realList: r, getKey: i } = this, a = Bo({
|
|
1607
1607
|
$slots: t,
|
|
1608
1608
|
tag: n,
|
|
1609
|
-
realList:
|
|
1610
|
-
getKey:
|
|
1609
|
+
realList: r,
|
|
1610
|
+
getKey: i
|
|
1611
1611
|
});
|
|
1612
1612
|
this.componentStructure = a;
|
|
1613
1613
|
const c = ko({ $attrs: e, componentData: o });
|
|
@@ -1629,12 +1629,12 @@ const Ro = {
|
|
|
1629
1629
|
const o = Ao({
|
|
1630
1630
|
$attrs: t,
|
|
1631
1631
|
callBackBuilder: {
|
|
1632
|
-
manageAndEmit: (
|
|
1633
|
-
emit: (
|
|
1634
|
-
manage: (
|
|
1632
|
+
manageAndEmit: (i) => $o.call(this, i),
|
|
1633
|
+
emit: (i) => Tn.bind(this, i),
|
|
1634
|
+
manage: (i) => xn.call(this, i)
|
|
1635
1635
|
}
|
|
1636
|
-
}),
|
|
1637
|
-
this._sortable = new g(
|
|
1636
|
+
}), r = e.nodeType === 1 ? e : e.parentElement;
|
|
1637
|
+
this._sortable = new g(r, o), this.targetDomElement = r, r.__draggable_component__ = this;
|
|
1638
1638
|
},
|
|
1639
1639
|
updated() {
|
|
1640
1640
|
this.componentStructure.updated();
|
|
@@ -1693,8 +1693,8 @@ const Ro = {
|
|
|
1693
1693
|
const n = this.getUnderlyingPotencialDraggableComponent(t);
|
|
1694
1694
|
if (!n)
|
|
1695
1695
|
return { component: n };
|
|
1696
|
-
const o = n.realList,
|
|
1697
|
-
return t !== e && o ? { ...n.getUnderlyingVm(e) || {}, ...
|
|
1696
|
+
const o = n.realList, r = { list: o, component: n };
|
|
1697
|
+
return t !== e && o ? { ...n.getUnderlyingVm(e) || {}, ...r } : r;
|
|
1698
1698
|
},
|
|
1699
1699
|
getVmIndexFromDomIndex(t) {
|
|
1700
1700
|
return this.componentStructure.getVmIndexFromDomIndex(
|
|
@@ -1737,21 +1737,21 @@ const Ro = {
|
|
|
1737
1737
|
return 0;
|
|
1738
1738
|
const n = [...e.to.children].filter(
|
|
1739
1739
|
(a) => a.style.display !== "none"
|
|
1740
|
-
), o = n.indexOf(e.related),
|
|
1740
|
+
), o = n.indexOf(e.related), r = t.component.getVmIndexFromDomIndex(
|
|
1741
1741
|
o
|
|
1742
1742
|
);
|
|
1743
|
-
return n.indexOf(Tt) !== -1 || !e.willInsertAfter ?
|
|
1743
|
+
return n.indexOf(Tt) !== -1 || !e.willInsertAfter ? r : r + 1;
|
|
1744
1744
|
},
|
|
1745
1745
|
onDragMove(t, e) {
|
|
1746
1746
|
const { move: n, realList: o } = this;
|
|
1747
1747
|
if (!n || !o)
|
|
1748
1748
|
return !0;
|
|
1749
|
-
const
|
|
1749
|
+
const r = this.getRelatedContextFromMoveEvent(t), i = this.computeFutureIndex(r, t), a = {
|
|
1750
1750
|
...this.context,
|
|
1751
|
-
futureIndex:
|
|
1751
|
+
futureIndex: i
|
|
1752
1752
|
}, c = {
|
|
1753
1753
|
...t,
|
|
1754
|
-
relatedContext:
|
|
1754
|
+
relatedContext: r,
|
|
1755
1755
|
draggedContext: a
|
|
1756
1756
|
};
|
|
1757
1757
|
return n(c, e);
|
|
@@ -1760,31 +1760,34 @@ const Ro = {
|
|
|
1760
1760
|
Tt = null;
|
|
1761
1761
|
}
|
|
1762
1762
|
}
|
|
1763
|
-
}), Wo = Object.entries(
|
|
1763
|
+
}), Wo = Object.entries(F).map((t) => {
|
|
1764
1764
|
let e = "";
|
|
1765
1765
|
switch (t[1]) {
|
|
1766
|
-
case
|
|
1766
|
+
case F.BarChart:
|
|
1767
1767
|
e = "bar_chart";
|
|
1768
1768
|
break;
|
|
1769
|
-
case
|
|
1769
|
+
case F.Table:
|
|
1770
1770
|
e = "table";
|
|
1771
1771
|
break;
|
|
1772
|
-
case
|
|
1772
|
+
case F.Circular:
|
|
1773
1773
|
e = "pie_chart";
|
|
1774
1774
|
break;
|
|
1775
|
-
case
|
|
1775
|
+
case F.LineChart:
|
|
1776
1776
|
e = "show_chart";
|
|
1777
1777
|
break;
|
|
1778
|
-
case
|
|
1778
|
+
case F.Scorecard:
|
|
1779
1779
|
e = "money";
|
|
1780
1780
|
break;
|
|
1781
|
-
case
|
|
1781
|
+
case F.Spacer:
|
|
1782
1782
|
e = "space_bar";
|
|
1783
1783
|
break;
|
|
1784
|
-
case
|
|
1784
|
+
case F.StackBarChart:
|
|
1785
1785
|
e = "stacked_bar_chart";
|
|
1786
1786
|
break;
|
|
1787
|
-
case
|
|
1787
|
+
case F.ClusteredStackBarChart:
|
|
1788
|
+
e = "stacked_bar_chart";
|
|
1789
|
+
break;
|
|
1790
|
+
case F.StackLineChart:
|
|
1788
1791
|
e = "stacked_line_chart";
|
|
1789
1792
|
break;
|
|
1790
1793
|
}
|
|
@@ -1817,25 +1820,25 @@ const Ro = {
|
|
|
1817
1820
|
}),
|
|
1818
1821
|
emits: ["update:modelValue"],
|
|
1819
1822
|
setup(t) {
|
|
1820
|
-
const { t: e } = Pt(), n = Ge(t, "modelValue"), o = t,
|
|
1821
|
-
() => Wo.map((
|
|
1822
|
-
...
|
|
1823
|
-
label: e(`report.widget.types.${
|
|
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()}`)
|
|
1824
1827
|
}))
|
|
1825
1828
|
);
|
|
1826
|
-
return (
|
|
1827
|
-
const c =
|
|
1828
|
-
return
|
|
1829
|
-
(
|
|
1829
|
+
return (i, a) => {
|
|
1830
|
+
const c = N("FmIcon"), l = N("FmCard");
|
|
1831
|
+
return V(), ee("div", null, [
|
|
1832
|
+
(V(!0), ee(qe, null, nn(r.value.filter(
|
|
1830
1833
|
(u) => o.excludeWidgeType.indexOf(u.value) === -1
|
|
1831
|
-
), (u, f) => (
|
|
1834
|
+
), (u, f) => (V(), Pe(l, {
|
|
1832
1835
|
key: f,
|
|
1833
1836
|
class: Nn(`items-center ${o.childClass} cursor-pointer rounded-[8px] ${o.isList ? "" : "gap-[16px]"} ${n.value === u.value ? "selected-widget" : ""}`),
|
|
1834
1837
|
variant: "outlined",
|
|
1835
1838
|
onClick: (s) => n.value = u.value
|
|
1836
1839
|
}, {
|
|
1837
|
-
default:
|
|
1838
|
-
|
|
1840
|
+
default: ie(() => [
|
|
1841
|
+
A(c, {
|
|
1839
1842
|
name: u.icon,
|
|
1840
1843
|
size: o.isList ? "md" : "lg",
|
|
1841
1844
|
outline: !0
|
|
@@ -1847,13 +1850,16 @@ const Ro = {
|
|
|
1847
1850
|
]);
|
|
1848
1851
|
};
|
|
1849
1852
|
}
|
|
1850
|
-
}),
|
|
1853
|
+
}), br = /* @__PURE__ */ Vt(Uo, [["__scopeId", "data-v-7c1916a3"]]);
|
|
1851
1854
|
function jo(t) {
|
|
1852
|
-
let e, n, o;
|
|
1855
|
+
let e, n, o, r;
|
|
1853
1856
|
switch (t) {
|
|
1854
|
-
case
|
|
1857
|
+
case F.Table:
|
|
1855
1858
|
e = [], n = !1, o = Rn.top;
|
|
1856
1859
|
break;
|
|
1860
|
+
case F.ClusteredStackBarChart:
|
|
1861
|
+
r = !0;
|
|
1862
|
+
break;
|
|
1857
1863
|
}
|
|
1858
1864
|
return {
|
|
1859
1865
|
schemaNames: [],
|
|
@@ -1869,30 +1875,32 @@ function jo(t) {
|
|
|
1869
1875
|
showSearchBar: n,
|
|
1870
1876
|
isTransposed: !1,
|
|
1871
1877
|
isDrillable: !1,
|
|
1878
|
+
stackBarOverlap: r,
|
|
1872
1879
|
columnIds: [],
|
|
1873
1880
|
rowIds: [],
|
|
1874
1881
|
joinDatasources: e
|
|
1875
1882
|
};
|
|
1876
1883
|
}
|
|
1877
|
-
function
|
|
1884
|
+
function yr(t, e) {
|
|
1878
1885
|
let n = 1, o = 1;
|
|
1879
1886
|
switch (t) {
|
|
1880
|
-
case
|
|
1887
|
+
case F.Scorecard:
|
|
1881
1888
|
n = 1, o = 2;
|
|
1882
1889
|
break;
|
|
1883
|
-
case
|
|
1884
|
-
case
|
|
1885
|
-
case
|
|
1886
|
-
case
|
|
1890
|
+
case F.BarChart:
|
|
1891
|
+
case F.StackBarChart:
|
|
1892
|
+
case F.ClusteredStackBarChart:
|
|
1893
|
+
case F.LineChart:
|
|
1894
|
+
case F.StackLineChart:
|
|
1887
1895
|
n = 4, o = 6;
|
|
1888
1896
|
break;
|
|
1889
|
-
case
|
|
1897
|
+
case F.Table:
|
|
1890
1898
|
n = 4, o = 12;
|
|
1891
1899
|
break;
|
|
1892
|
-
case
|
|
1900
|
+
case F.Circular:
|
|
1893
1901
|
n = 4, o = 4;
|
|
1894
1902
|
break;
|
|
1895
|
-
case
|
|
1903
|
+
case F.Spacer:
|
|
1896
1904
|
n = 0, o = 12;
|
|
1897
1905
|
break;
|
|
1898
1906
|
}
|
|
@@ -1908,7 +1916,7 @@ function yi(t, e) {
|
|
|
1908
1916
|
}
|
|
1909
1917
|
};
|
|
1910
1918
|
}
|
|
1911
|
-
function
|
|
1919
|
+
function _r(t, e) {
|
|
1912
1920
|
return t.filter((n, o) => o !== e);
|
|
1913
1921
|
}
|
|
1914
1922
|
const Ho = {
|
|
@@ -1924,30 +1932,30 @@ const Ho = {
|
|
|
1924
1932
|
setup(t) {
|
|
1925
1933
|
const e = Ge(t, "isOpen");
|
|
1926
1934
|
return (n, o) => {
|
|
1927
|
-
const
|
|
1928
|
-
return
|
|
1935
|
+
const r = N("FmIcon"), i = N("FmMenuDivider");
|
|
1936
|
+
return V(), ee(qe, null, [
|
|
1929
1937
|
he("div", {
|
|
1930
1938
|
class: "flex items-center cursor-pointer fm-typo-en-body-lg-600",
|
|
1931
1939
|
onClick: o[0] || (o[0] = (a) => e.value = !e.value)
|
|
1932
1940
|
}, [
|
|
1933
1941
|
ze(n.$slots, "header", {}, void 0, !0),
|
|
1934
|
-
|
|
1942
|
+
A(r, {
|
|
1935
1943
|
name: e.value ? "keyboard_arrow_up" : "keyboard_arrow_down"
|
|
1936
1944
|
}, null, 8, ["name"])
|
|
1937
1945
|
]),
|
|
1938
|
-
|
|
1939
|
-
default:
|
|
1940
|
-
e.value ? (
|
|
1946
|
+
A(xt, { name: "slide-fade" }, {
|
|
1947
|
+
default: ie(() => [
|
|
1948
|
+
e.value ? (V(), ee("div", Ho, [
|
|
1941
1949
|
ze(n.$slots, "content", {}, void 0, !0)
|
|
1942
1950
|
])) : ue("", !0)
|
|
1943
1951
|
]),
|
|
1944
1952
|
_: 3
|
|
1945
1953
|
}),
|
|
1946
|
-
|
|
1954
|
+
A(i)
|
|
1947
1955
|
], 64);
|
|
1948
1956
|
};
|
|
1949
1957
|
}
|
|
1950
|
-
}),
|
|
1958
|
+
}), wr = /* @__PURE__ */ Vt(zo, [["__scopeId", "data-v-fa67a3a4"]]), Go = { class: "grow" }, qo = {
|
|
1951
1959
|
key: 2,
|
|
1952
1960
|
class: "w-full"
|
|
1953
1961
|
}, Ko = { key: 0 }, Jo = /* @__PURE__ */ Te({
|
|
@@ -1970,18 +1978,18 @@ const Ho = {
|
|
|
1970
1978
|
emits: ["update:modelValue"],
|
|
1971
1979
|
setup(t) {
|
|
1972
1980
|
const e = Ge(t, "modelValue"), n = t, o = Se([]);
|
|
1973
|
-
function
|
|
1981
|
+
function r(l) {
|
|
1974
1982
|
return (l ? ht(l) : ht()).format("HH:mm");
|
|
1975
1983
|
}
|
|
1976
|
-
function
|
|
1984
|
+
function i({ hour: l, minute: u }) {
|
|
1977
1985
|
return ht().set("hour", l).set("minute", u).toISOString();
|
|
1978
1986
|
}
|
|
1979
1987
|
function a(l, u) {
|
|
1980
1988
|
var y, _;
|
|
1981
1989
|
const f = an(n.option), s = ln(n.option);
|
|
1982
|
-
((y = n.config) == null ? void 0 : y.type) ===
|
|
1990
|
+
((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}`);
|
|
1983
1991
|
const v = [...e.value];
|
|
1984
|
-
((_ = n.config) == null ? void 0 : _.type) ===
|
|
1992
|
+
((_ = n.config) == null ? void 0 : _.type) === Be.Timestamp ? v[l] = i({
|
|
1985
1993
|
hour: Number(u.split(":")[0]),
|
|
1986
1994
|
minute: Number(u.split(":")[1])
|
|
1987
1995
|
}) : v[l] = u, e.value = v;
|
|
@@ -1996,35 +2004,35 @@ const Ho = {
|
|
|
1996
2004
|
}
|
|
1997
2005
|
}
|
|
1998
2006
|
return (l, u) => {
|
|
1999
|
-
const f =
|
|
2000
|
-
return
|
|
2001
|
-
var Y, q, T,
|
|
2002
|
-
return
|
|
2007
|
+
const f = N("FmSelect"), s = N("FmTextField"), v = N("FmTimePicker"), y = N("FmButton");
|
|
2008
|
+
return V(!0), ee(qe, null, nn(new Array(e.value.length !== 0 ? e.value.length : 1), (_, b) => {
|
|
2009
|
+
var Y, q, T, M, L;
|
|
2010
|
+
return V(), ee("div", {
|
|
2003
2011
|
key: b,
|
|
2004
2012
|
class: "flex flex-row align-center gap-2 w-full"
|
|
2005
2013
|
}, [
|
|
2006
2014
|
he("div", Go, [
|
|
2007
|
-
((Y = n.config) == null ? void 0 : Y.type) === X(
|
|
2015
|
+
((Y = n.config) == null ? void 0 : Y.type) === X(Be).Select ? (V(), Pe(f, {
|
|
2008
2016
|
key: 0,
|
|
2009
2017
|
"model-value": e.value[b],
|
|
2010
2018
|
items: n.config.options,
|
|
2011
2019
|
"onUpdate:modelValue": (W) => a(b, W)
|
|
2012
|
-
}, null, 8, ["model-value", "items", "onUpdate:modelValue"])) : ((q = n.config) == null ? void 0 : q.type) === X(
|
|
2020
|
+
}, null, 8, ["model-value", "items", "onUpdate:modelValue"])) : ((q = n.config) == null ? void 0 : q.type) === X(Be).TextField ? (V(), Pe(s, {
|
|
2013
2021
|
key: 1,
|
|
2014
2022
|
"model-value": e.value[b],
|
|
2015
2023
|
type: ((T = n.config) == null ? void 0 : T.dataType) === "number" ? "number" : "text",
|
|
2016
2024
|
"helper-text": o.value[b] || void 0,
|
|
2017
2025
|
"helper-state": "error",
|
|
2018
2026
|
"onUpdate:modelValue": (W) => a(b, W)
|
|
2019
|
-
}, null, 8, ["model-value", "type", "helper-text", "onUpdate:modelValue"])) : ((
|
|
2020
|
-
|
|
2021
|
-
"model-value":
|
|
2027
|
+
}, null, 8, ["model-value", "type", "helper-text", "onUpdate:modelValue"])) : ((M = n.config) == null ? void 0 : M.type) === X(Be).Timestamp ? (V(), ee("div", qo, [
|
|
2028
|
+
A(v, {
|
|
2029
|
+
"model-value": r(e.value[b]),
|
|
2022
2030
|
"onUpdate:modelValue": (W) => a(b, W)
|
|
2023
2031
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
2024
2032
|
])) : ue("", !0)
|
|
2025
2033
|
]),
|
|
2026
|
-
((
|
|
2027
|
-
|
|
2034
|
+
((L = n.config) == null ? void 0 : L.fixed) === !1 ? (V(), ee("div", Ko, [
|
|
2035
|
+
A(y, {
|
|
2028
2036
|
icon: b === 0 ? "add" : "remove",
|
|
2029
2037
|
onClick: (W) => c(b)
|
|
2030
2038
|
}, null, 8, ["icon", "onClick"])
|
|
@@ -2043,7 +2051,7 @@ const Ho = {
|
|
|
2043
2051
|
], Zo = On.filter(
|
|
2044
2052
|
(t) => t !== De.DateTime
|
|
2045
2053
|
);
|
|
2046
|
-
function
|
|
2054
|
+
function Er(t) {
|
|
2047
2055
|
return On.map((e) => ({
|
|
2048
2056
|
label: t(`report.section.filter.${rn(e)}`),
|
|
2049
2057
|
value: e
|
|
@@ -2055,7 +2063,7 @@ function Qo(t) {
|
|
|
2055
2063
|
value: e
|
|
2056
2064
|
}));
|
|
2057
2065
|
}
|
|
2058
|
-
const
|
|
2066
|
+
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({
|
|
2059
2067
|
__name: "FilterSection",
|
|
2060
2068
|
props: /* @__PURE__ */ Nt({
|
|
2061
2069
|
options: {
|
|
@@ -2072,24 +2080,24 @@ const ei = { class: "flex flex-col my-2 gap-8" }, ti = { class: "fm-typo-en-body
|
|
|
2072
2080
|
}),
|
|
2073
2081
|
emits: ["update:modelValue"],
|
|
2074
2082
|
setup(t) {
|
|
2075
|
-
const { t: e, te: n } = Pt(), o = Ge(t, "modelValue"),
|
|
2083
|
+
const { t: e, te: n } = Pt(), o = Ge(t, "modelValue"), r = t, i = Fe(() => e(`report.section.filter.${r.label}`)), a = Se(!1), c = Wn(), l = Fe(
|
|
2076
2084
|
() => o.value.map((m, p) => {
|
|
2077
|
-
const E =
|
|
2078
|
-
(
|
|
2085
|
+
const E = r.options.find(
|
|
2086
|
+
(B) => B.schemaName === m.schemaName && B.name === m.name
|
|
2079
2087
|
), I = (E == null ? void 0 : E.labels) || [m.schemaName, m.name];
|
|
2080
2088
|
return {
|
|
2081
2089
|
index: p,
|
|
2082
|
-
label: I.map((
|
|
2090
|
+
label: I.map((B) => Yn(e, n, B, "other")).join(" "),
|
|
2083
2091
|
value: m
|
|
2084
2092
|
};
|
|
2085
2093
|
})
|
|
2086
2094
|
), u = Se(o.value.length > 0 ? 0 : void 0);
|
|
2087
2095
|
function f(m) {
|
|
2088
2096
|
var p;
|
|
2089
|
-
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),
|
|
2097
|
+
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();
|
|
2090
2098
|
}
|
|
2091
2099
|
const s = Se(void 0), v = Se(!1), y = Se(void 0), _ = Fe(
|
|
2092
|
-
() =>
|
|
2100
|
+
() => r.options.find(
|
|
2093
2101
|
(m) => {
|
|
2094
2102
|
var p, E;
|
|
2095
2103
|
return m.schemaName === ((p = s.value) == null ? void 0 : p.schemaName) && m.name === ((E = s.value) == null ? void 0 : E.name);
|
|
@@ -2125,7 +2133,7 @@ const ei = { class: "flex flex-col my-2 gap-8" }, ti = { class: "fm-typo-en-body
|
|
|
2125
2133
|
return (m = s.value) == null ? void 0 : m.option;
|
|
2126
2134
|
},
|
|
2127
2135
|
(m, p) => {
|
|
2128
|
-
p !== void 0 && m !== p && s.value && (
|
|
2136
|
+
p !== void 0 && m !== p && s.value && (L(), T(m), M());
|
|
2129
2137
|
}
|
|
2130
2138
|
), pt(
|
|
2131
2139
|
() => {
|
|
@@ -2133,7 +2141,7 @@ const ei = { class: "flex flex-col my-2 gap-8" }, ti = { class: "fm-typo-en-body
|
|
|
2133
2141
|
return (m = s.value) == null ? void 0 : m.operator;
|
|
2134
2142
|
},
|
|
2135
2143
|
(m, p) => {
|
|
2136
|
-
m !== p && _.value && s.value && (
|
|
2144
|
+
m !== p && _.value && s.value && (L(), T(s.value.option), M());
|
|
2137
2145
|
},
|
|
2138
2146
|
{
|
|
2139
2147
|
deep: !0
|
|
@@ -2144,13 +2152,13 @@ const ei = { class: "flex flex-col my-2 gap-8" }, ti = { class: "fm-typo-en-body
|
|
|
2144
2152
|
if (!s.value || !y.value) return;
|
|
2145
2153
|
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);
|
|
2146
2154
|
let I;
|
|
2147
|
-
const
|
|
2148
|
-
Array.isArray(E) ? I = E : p.length > 0 && m ===
|
|
2155
|
+
const B = u.value !== void 0 ? (z = o.value[u.value]) == null ? void 0 : z.option : void 0;
|
|
2156
|
+
Array.isArray(E) ? I = E : p.length > 0 && m === B ? I = p : I = [y.value.default], s.value = {
|
|
2149
2157
|
...s.value,
|
|
2150
2158
|
values: I
|
|
2151
2159
|
};
|
|
2152
2160
|
}
|
|
2153
|
-
function
|
|
2161
|
+
function M() {
|
|
2154
2162
|
if (!y.value || !s.value) return;
|
|
2155
2163
|
const m = s.value.values.length - y.value.count;
|
|
2156
2164
|
m > 0 && y.value.fixed ? s.value = {
|
|
@@ -2161,7 +2169,7 @@ const ei = { class: "flex flex-col my-2 gap-8" }, ti = { class: "fm-typo-en-body
|
|
|
2161
2169
|
values: [...s.value.values, ...Array(Math.abs(m)).fill(y.value.default)]
|
|
2162
2170
|
});
|
|
2163
2171
|
}
|
|
2164
|
-
function
|
|
2172
|
+
function L() {
|
|
2165
2173
|
_.value && s.value && (y.value = Xn({
|
|
2166
2174
|
operator: s.value.operator,
|
|
2167
2175
|
dataType: _.value.type,
|
|
@@ -2177,22 +2185,22 @@ const ei = { class: "flex flex-col my-2 gap-8" }, ti = { class: "fm-typo-en-body
|
|
|
2177
2185
|
operator: m.filterOperators[0],
|
|
2178
2186
|
option: m.filterDimensionOptions[0],
|
|
2179
2187
|
values: []
|
|
2180
|
-
},
|
|
2188
|
+
}, L(), T(s.value.option), M());
|
|
2181
2189
|
}
|
|
2182
2190
|
function te() {
|
|
2183
2191
|
var p, E, I;
|
|
2184
|
-
const m = [...l.value.map((
|
|
2192
|
+
const m = [...l.value.map((B) => B.value)];
|
|
2185
2193
|
if (s.value) {
|
|
2186
2194
|
v.value || (s.value.dataFormula = void 0);
|
|
2187
|
-
const
|
|
2188
|
-
(
|
|
2189
|
-
).filter((
|
|
2195
|
+
const B = an((p = s.value) == null ? void 0 : p.option), z = ln((E = s.value) == null ? void 0 : E.option), me = (I = s.value.values) == null ? void 0 : I.map(
|
|
2196
|
+
($, Le) => $ == null || $ === "" || !ye($, B, z) ? Le : null
|
|
2197
|
+
).filter(($) => $ !== null);
|
|
2190
2198
|
if (!s.value.values || me.length > 0) {
|
|
2191
2199
|
c.open({ message: "One or more values are invalid", type: "error" });
|
|
2192
2200
|
return;
|
|
2193
2201
|
}
|
|
2194
2202
|
s.value.values = s.value.values.filter(
|
|
2195
|
-
(
|
|
2203
|
+
($) => $ !== "" && $ !== null
|
|
2196
2204
|
), u.value !== void 0 ? m[Number(u.value)] = s.value : m.push(s.value), o.value = m;
|
|
2197
2205
|
}
|
|
2198
2206
|
a.value = !1;
|
|
@@ -2202,7 +2210,7 @@ const ei = { class: "flex flex-col my-2 gap-8" }, ti = { class: "fm-typo-en-body
|
|
|
2202
2210
|
p.splice(m, 1), o.value = p, a.value = !1;
|
|
2203
2211
|
}
|
|
2204
2212
|
const be = Fe(
|
|
2205
|
-
() =>
|
|
2213
|
+
() => r.options.map((m) => ({
|
|
2206
2214
|
label: m.labels.join(" "),
|
|
2207
2215
|
value: m
|
|
2208
2216
|
}))
|
|
@@ -2211,52 +2219,52 @@ const ei = { class: "flex flex-col my-2 gap-8" }, ti = { class: "fm-typo-en-body
|
|
|
2211
2219
|
return !(p !== void 0 && m < p || E !== void 0 && m > E);
|
|
2212
2220
|
}
|
|
2213
2221
|
return (m, p) => {
|
|
2214
|
-
const E =
|
|
2215
|
-
return
|
|
2216
|
-
|
|
2222
|
+
const E = N("FmCheckbox"), I = N("FmTextarea"), B = N("FmSelect"), z = N("FmForm"), me = N("FmIcon"), $ = N("FmButton"), Le = N("FmListItem"), $t = N("FmList"), Ze = N("FmField");
|
|
2223
|
+
return V(), ee("div", er, [
|
|
2224
|
+
A($n, {
|
|
2217
2225
|
modelValue: a.value,
|
|
2218
2226
|
"onUpdate:modelValue": p[6] || (p[6] = (_e) => a.value = _e),
|
|
2219
|
-
title:
|
|
2227
|
+
title: i.value,
|
|
2220
2228
|
"primary-button-label": X(e)("report.common.confirm"),
|
|
2221
2229
|
"secondary-button-label": X(e)("report.common.cancel"),
|
|
2222
2230
|
onConfirm: te
|
|
2223
2231
|
}, {
|
|
2224
|
-
content:
|
|
2225
|
-
|
|
2232
|
+
content: ie(() => [
|
|
2233
|
+
A(z, {
|
|
2226
2234
|
ref: "form",
|
|
2227
2235
|
class: "flex flex-col gap-2 w-[490px]"
|
|
2228
2236
|
}, {
|
|
2229
|
-
default:
|
|
2237
|
+
default: ie(() => {
|
|
2230
2238
|
var _e, xe;
|
|
2231
2239
|
return [
|
|
2232
|
-
|
|
2240
|
+
A(Yt, {
|
|
2233
2241
|
"model-value": _.value,
|
|
2234
2242
|
items: be.value,
|
|
2235
|
-
placeholder:
|
|
2236
|
-
label:
|
|
2243
|
+
placeholder: i.value,
|
|
2244
|
+
label: i.value,
|
|
2237
2245
|
"onUpdate:modelValue": p[0] || (p[0] = (U) => W(U))
|
|
2238
2246
|
}, null, 8, ["model-value", "items", "placeholder", "label"]),
|
|
2239
|
-
s.value ? (
|
|
2240
|
-
|
|
2247
|
+
s.value ? (V(), ee(qe, { key: 0 }, [
|
|
2248
|
+
A(E, {
|
|
2241
2249
|
modelValue: v.value,
|
|
2242
2250
|
"onUpdate:modelValue": p[1] || (p[1] = (U) => v.value = U),
|
|
2243
2251
|
label: X(e)("report.section.filter.advance"),
|
|
2244
2252
|
value: !0
|
|
2245
2253
|
}, null, 8, ["modelValue", "label"]),
|
|
2246
|
-
v.value ? (
|
|
2254
|
+
v.value ? (V(), Pe(I, {
|
|
2247
2255
|
key: 0,
|
|
2248
2256
|
modelValue: s.value.dataFormula,
|
|
2249
2257
|
"onUpdate:modelValue": p[2] || (p[2] = (U) => s.value.dataFormula = U),
|
|
2250
2258
|
placeholder: X(e)("report.section.filter.dataFormula")
|
|
2251
2259
|
}, null, 8, ["modelValue", "placeholder"])) : ue("", !0),
|
|
2252
|
-
|
|
2260
|
+
A(B, {
|
|
2253
2261
|
modelValue: s.value.option,
|
|
2254
2262
|
"onUpdate:modelValue": p[3] || (p[3] = (U) => s.value.option = U),
|
|
2255
2263
|
items: H.value,
|
|
2256
2264
|
placeholder: X(e)("report.section.filter.timeFormatter"),
|
|
2257
2265
|
label: X(e)("report.section.filter.timeFormatter")
|
|
2258
2266
|
}, null, 8, ["modelValue", "items", "placeholder", "label"]),
|
|
2259
|
-
(((_e = _.value) == null ? void 0 : _e.filterOperators) || []).length > 0 ? (
|
|
2267
|
+
(((_e = _.value) == null ? void 0 : _e.filterOperators) || []).length > 0 ? (V(), Pe(Yt, {
|
|
2260
2268
|
key: 1,
|
|
2261
2269
|
modelValue: s.value.operator,
|
|
2262
2270
|
"onUpdate:modelValue": p[4] || (p[4] = (U) => s.value.operator = U),
|
|
@@ -2265,7 +2273,7 @@ const ei = { class: "flex flex-col my-2 gap-8" }, ti = { class: "fm-typo-en-body
|
|
|
2265
2273
|
value: U
|
|
2266
2274
|
}))
|
|
2267
2275
|
}, null, 8, ["modelValue", "items"])) : ue("", !0),
|
|
2268
|
-
y.value ? (
|
|
2276
|
+
y.value ? (V(), Pe(Jo, {
|
|
2269
2277
|
key: s.value.option ?? "",
|
|
2270
2278
|
modelValue: s.value.values,
|
|
2271
2279
|
"onUpdate:modelValue": p[5] || (p[5] = (U) => s.value.values = U),
|
|
@@ -2281,26 +2289,26 @@ const ei = { class: "flex flex-col my-2 gap-8" }, ti = { class: "fm-typo-en-body
|
|
|
2281
2289
|
_: 1
|
|
2282
2290
|
}, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
|
|
2283
2291
|
he("div", null, [
|
|
2284
|
-
he("p",
|
|
2285
|
-
he("p",
|
|
2292
|
+
he("p", tr, Ae(i.value), 1),
|
|
2293
|
+
he("p", nr, Ae(X(e)("report.section.filter.description")), 1)
|
|
2286
2294
|
]),
|
|
2287
|
-
|
|
2288
|
-
default:
|
|
2289
|
-
|
|
2295
|
+
A($t, null, {
|
|
2296
|
+
default: ie(() => [
|
|
2297
|
+
A(X(Yo), {
|
|
2290
2298
|
list: o.value,
|
|
2291
2299
|
"item-key": "id",
|
|
2292
2300
|
class: "flex flex-col gap-2 w-full"
|
|
2293
2301
|
}, {
|
|
2294
|
-
item:
|
|
2295
|
-
|
|
2302
|
+
item: ie(({ element: _e, index: xe }) => [
|
|
2303
|
+
A(Le, {
|
|
2296
2304
|
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
2297
2305
|
onClick: Xt((U) => f(l.value[xe]), ["stop"])
|
|
2298
2306
|
}, {
|
|
2299
|
-
default:
|
|
2300
|
-
|
|
2301
|
-
he("p",
|
|
2307
|
+
default: ie(() => [
|
|
2308
|
+
A(me, { name: "drag_handle" }),
|
|
2309
|
+
he("p", or, Ae(l.value[xe].label), 1),
|
|
2302
2310
|
p[8] || (p[8] = he("div", { class: "grow" }, null, -1)),
|
|
2303
|
-
|
|
2311
|
+
A($, {
|
|
2304
2312
|
icon: "close",
|
|
2305
2313
|
size: "md",
|
|
2306
2314
|
variant: "tertiary",
|
|
@@ -2315,13 +2323,13 @@ const ei = { class: "flex flex-col my-2 gap-8" }, ti = { class: "fm-typo-en-body
|
|
|
2315
2323
|
]),
|
|
2316
2324
|
_: 1
|
|
2317
2325
|
}),
|
|
2318
|
-
|
|
2326
|
+
A(Ze, {
|
|
2319
2327
|
class: "text-fm-color-typo-tertiary",
|
|
2320
2328
|
onClick: p[7] || (p[7] = () => {
|
|
2321
2329
|
f();
|
|
2322
2330
|
})
|
|
2323
2331
|
}, {
|
|
2324
|
-
default:
|
|
2332
|
+
default: ie(() => [
|
|
2325
2333
|
on(Ae(X(e)("report.section.filter.add")), 1)
|
|
2326
2334
|
]),
|
|
2327
2335
|
_: 1
|
|
@@ -2329,7 +2337,7 @@ const ei = { class: "flex flex-col my-2 gap-8" }, ti = { class: "fm-typo-en-body
|
|
|
2329
2337
|
]);
|
|
2330
2338
|
};
|
|
2331
2339
|
}
|
|
2332
|
-
}),
|
|
2340
|
+
}), rr = /* @__PURE__ */ Te({
|
|
2333
2341
|
__name: "TransitionFade",
|
|
2334
2342
|
props: {
|
|
2335
2343
|
modelValue: { type: Boolean, required: !0, default: !0 },
|
|
@@ -2338,31 +2346,31 @@ const ei = { class: "flex flex-col my-2 gap-8" }, ti = { class: "fm-typo-en-body
|
|
|
2338
2346
|
emits: ["update:modelValue"],
|
|
2339
2347
|
setup(t) {
|
|
2340
2348
|
const e = Ge(t, "modelValue");
|
|
2341
|
-
return (n, o) => (
|
|
2342
|
-
|
|
2343
|
-
default:
|
|
2349
|
+
return (n, o) => (V(), ee(qe, null, [
|
|
2350
|
+
A(xt, { name: "slide-fade-right" }, {
|
|
2351
|
+
default: ie(() => [
|
|
2344
2352
|
e.value ? ze(n.$slots, "right", { key: 0 }, void 0, !0) : ue("", !0)
|
|
2345
2353
|
]),
|
|
2346
2354
|
_: 3
|
|
2347
2355
|
}),
|
|
2348
|
-
|
|
2349
|
-
default:
|
|
2356
|
+
A(xt, { name: "slide-fade-left" }, {
|
|
2357
|
+
default: ie(() => [
|
|
2350
2358
|
e.value ? ue("", !0) : ze(n.$slots, "left", { key: 0 }, void 0, !0)
|
|
2351
2359
|
]),
|
|
2352
2360
|
_: 3
|
|
2353
2361
|
})
|
|
2354
2362
|
], 64));
|
|
2355
2363
|
}
|
|
2356
|
-
}),
|
|
2364
|
+
}), Dr = /* @__PURE__ */ Vt(rr, [["__scopeId", "data-v-a98ca9bc"]]);
|
|
2357
2365
|
export {
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2366
|
+
wr as S,
|
|
2367
|
+
Dr as T,
|
|
2368
|
+
br as W,
|
|
2369
|
+
Sr as _,
|
|
2370
|
+
vr as a,
|
|
2363
2371
|
jo as b,
|
|
2364
2372
|
Yo as d,
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2373
|
+
Er as g,
|
|
2374
|
+
_r as h,
|
|
2375
|
+
yr as i
|
|
2368
2376
|
};
|