@feedmepos/mf-report 5.22.4-beta.0 → 5.22.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-5rFbEuMG.js → App-DMEnEEBF.js} +5 -5
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-DTWeyRUn.js → BaseDialog.vue_vue_type_script_setup_true_lang-BfMAGwfP.js} +19 -7
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-C4Eb8K0v.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BUGroIA4.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-taHRg9vn.js → Default.vue_vue_type_script_setup_true_lang-pGyHOSY5.js} +2 -2
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-DckfnILA.js → FilterSelector.vue_vue_type_script_setup_true_lang-BkQFTdQ9.js} +525 -525
- package/dist/{InsightView-C0G5k17F.js → InsightView-C5f6ue6S.js} +6 -6
- package/dist/{Integration-s1rb-Kw7.js → Integration-Dhp2k4_C.js} +1825 -1805
- package/dist/{Integrations-BDKYaovM.js → Integrations-Dos7Qpzh.js} +3 -3
- package/dist/{Layout-ae0ANbfz.js → Layout-v4z7xIjG.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CiEjhTs5.js → MenuTab.vue_vue_type_script_setup_true_lang-ivxdUgnv.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DUr-Zf_T.js → NavigationTab.vue_vue_type_script_setup_true_lang-B-hn4Khe.js} +5 -5
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-DhVn43f5.js → NoData.vue_vue_type_script_setup_true_lang-DDfuV01b.js} +1 -1
- package/dist/{OverviewView-BiPGYTvH.js → OverviewView-CqLuN-zy.js} +5 -5
- package/dist/{Report-BR5nNOc6.js → Report-DXmKK-TW.js} +4 -4
- package/dist/{ReportEditor-BLtKiUTo.js → ReportEditor-D8sg51ke.js} +6 -6
- package/dist/{ReportView-BdcqIObg.js → ReportView-B7cSbQ4M.js} +8 -8
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-CBYk-6TY.js → SelectComponent.vue_vue_type_script_setup_true_lang-N74INYov.js} +1 -1
- package/dist/{Setting-7p1Z6gAs.js → Setting-D6evuEy4.js} +5 -5
- package/dist/{TileEditor-BeZXI4SI.js → TileEditor-Czwq4atM.js} +8 -8
- package/dist/{TransitionFade-BeLskSI4.js → TransitionFade-QXYq-G7u.js} +6 -6
- package/dist/{app-DXXmFkWD.js → app-DGv29V6U.js} +11 -11
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-50q7LVBw.js → formatChartData.worker-CtCG_oop.js} +15 -3
- package/dist/assets/{processTableData.worker-DrSBAOPU.js → processTableData.worker-BN2TZ-50.js} +15 -3
- package/dist/{vue-i18n-D3DiW8aJ.js → vue-i18n-BO6gpdaj.js} +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { computed as x, defineComponent as Be, ref as k, onMounted as Ne, onBeforeUnmount as Ba, resolveComponent as Z, createBlock as he, openBlock as Y, Transition as
|
|
2
|
-
import { W as q, e as ct, f as Ha, S as je, v as vt, g as Wa, h as Ot, i as Un, q as qn, R as
|
|
3
|
-
import { u as et, b as gt, a as an, h as Xa } from "./vue-i18n-
|
|
4
|
-
import { d as Xt, _ as Ya, a as Ga, b as ja, c as Ka } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { computed as x, defineComponent as Be, ref as k, onMounted as Ne, onBeforeUnmount as Ba, resolveComponent as Z, createBlock as he, openBlock as Y, Transition as Ma, withCtx as ce, createElementBlock as oe, createCommentVNode as Ve, createElementVNode as j, unref as d, normalizeStyle as $e, withModifiers as Bt, toDisplayString as Le, createVNode as K, Fragment as ke, renderList as it, normalizeClass as Qe, mergeModels as Ae, useModel as He, nextTick as Fe, watch as pe, renderSlot as Ue, h as Dt, toRaw as Pa, markRaw as Ra, createTextVNode as qt, onUnmounted as En, resolveDynamicComponent as za, withDirectives as Aa, vShow as Na } from "vue";
|
|
2
|
+
import { W as q, e as ct, f as Ha, S as je, v as vt, g as Wa, h as Ot, i as Un, q as qn, R as rt, j as Oa, D as Oe, c as we, C as Pe, a as Ea, b as Ua, _ as qa } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BfMAGwfP.js";
|
|
3
|
+
import { u as et, b as gt, a as an, h as Xa } from "./vue-i18n-BO6gpdaj.js";
|
|
4
|
+
import { d as Xt, _ as Ya, a as Ga, b as ja, c as Ka } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BUGroIA4.js";
|
|
5
5
|
import { storeToRefs as Ee, defineStore as Xn } from "pinia";
|
|
6
6
|
import { C as Ja } from "./chart-DDDh8zNk.js";
|
|
7
7
|
import { detectLocale as Za } from "@feedmepos/mf-common";
|
|
8
|
-
import { t as Qa, z as eo, a as to, e as no, d as st } from "./app-
|
|
8
|
+
import { t as Qa, z as eo, a as to, e as no, d as st } from "./app-DGv29V6U.js";
|
|
9
9
|
import { useBreakpoints as Yn, useSnackbar as on, components as ao } from "@feedmepos/ui-library";
|
|
10
|
-
import { _ as oo } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as oo } from "./SelectComponent.vue_vue_type_script_setup_true_lang-N74INYov.js";
|
|
11
11
|
import { r as Ke } from "./i18n-CI_sQ5d_.js";
|
|
12
|
-
import { _ as Yt } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
12
|
+
import { _ as Yt } from "./NoData.vue_vue_type_script_setup_true_lang-DDfuV01b.js";
|
|
13
13
|
var Gt = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(Gt || {}), Ge = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(Ge || {}), jt = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(jt || {}), Kt = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Kt || {}), Jt = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(Jt || {}), Zt = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Zt || {}), Qt = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Qt || {}), _e = /* @__PURE__ */ ((e) => (e.series = "SERIES", e.metric = "METRIC", e.breakdown = "BREAKDOWN", e))(_e || {});
|
|
14
14
|
q.Circular, q.Table, q.BarChart, q.LineChart, q.StackBarChart, q.ClusteredStackBarChart, q.StackLineChart, q.Scorecard, q.Spacer;
|
|
15
|
-
const
|
|
15
|
+
const lo = [
|
|
16
16
|
{
|
|
17
17
|
type: q.Circular,
|
|
18
18
|
showLabel: !1,
|
|
@@ -87,7 +87,7 @@ function Et(e) {
|
|
|
87
87
|
const t = [e.schemaName, e.name];
|
|
88
88
|
return "option" in e && e.option && t.push(e.option), "aggregation" in e && e.aggregation && t.push(e.aggregation), t.push(e.label.replace(/[^\p{L}\p{N}_]+/gu, "")), t.join("_").toLowerCase();
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function ro(e, t) {
|
|
91
91
|
switch (e) {
|
|
92
92
|
case q.BarChart:
|
|
93
93
|
case q.LineChart:
|
|
@@ -116,7 +116,7 @@ const Rt = [
|
|
|
116
116
|
"#50BE9B",
|
|
117
117
|
"#8358D4",
|
|
118
118
|
"#9B5046"
|
|
119
|
-
],
|
|
119
|
+
], br = Rt.map(() => "solid");
|
|
120
120
|
function so(e) {
|
|
121
121
|
return e === "dashed" || e === "dotted" ? e : "solid";
|
|
122
122
|
}
|
|
@@ -195,23 +195,23 @@ function bt({
|
|
|
195
195
|
}) {
|
|
196
196
|
if (!Array.isArray(t) || t.length === 0)
|
|
197
197
|
return n;
|
|
198
|
-
const o = t.map((
|
|
198
|
+
const o = t.map((r) => typeof r == "string" ? r.trim() : "").filter((r) => r.length > 0);
|
|
199
199
|
if (o.length === 0)
|
|
200
200
|
return n;
|
|
201
|
-
const a = typeof e == "string" ? e.trim() : "", s = a.toLowerCase(),
|
|
202
|
-
(
|
|
201
|
+
const a = typeof e == "string" ? e.trim() : "", s = a.toLowerCase(), l = " - ", b = a.lastIndexOf(l), S = (b >= 0 ? a.slice(0, b).trim() : a).toLowerCase(), F = o.findIndex(
|
|
202
|
+
(r) => r.toLowerCase() === S
|
|
203
203
|
);
|
|
204
204
|
if (F >= 0)
|
|
205
205
|
return F;
|
|
206
|
-
const D = o.findIndex((
|
|
207
|
-
const g =
|
|
206
|
+
const D = o.findIndex((r) => {
|
|
207
|
+
const g = r.toLowerCase();
|
|
208
208
|
return s.includes(g) || S.includes(g);
|
|
209
209
|
});
|
|
210
210
|
if (D >= 0)
|
|
211
211
|
return D;
|
|
212
|
-
const B = o.findIndex((
|
|
213
|
-
const g =
|
|
214
|
-
return a.split(
|
|
212
|
+
const B = o.findIndex((r) => {
|
|
213
|
+
const g = r.toLowerCase();
|
|
214
|
+
return a.split(l).map((y) => y.trim().toLowerCase()).some((y) => y === g);
|
|
215
215
|
});
|
|
216
216
|
return B >= 0 ? B : n % o.length;
|
|
217
217
|
}
|
|
@@ -222,11 +222,11 @@ function Ct({
|
|
|
222
222
|
isCompare: o,
|
|
223
223
|
opacity: a,
|
|
224
224
|
breakdownColors: s,
|
|
225
|
-
useSecondaryMetricShades:
|
|
225
|
+
useSecondaryMetricShades: l,
|
|
226
226
|
colorMode: b,
|
|
227
227
|
customColors: c
|
|
228
228
|
}) {
|
|
229
|
-
const S = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, F = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, D =
|
|
229
|
+
const S = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, F = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, D = l !== !1, T = e * S + F, B = b === "clustered" ? Rt : Gn(c), r = yt(s == null ? void 0 : s[e * S]) ?? B[e % B.length], g = D && F > 0 ? Dn(r, In(F)) : yt(s == null ? void 0 : s[T]) ?? (F > 0 ? Dn(r, In(F)) : r);
|
|
230
230
|
let y = typeof a == "number" ? a : 1;
|
|
231
231
|
return o && (y = y * 0.6), jn(g, y);
|
|
232
232
|
}
|
|
@@ -238,11 +238,11 @@ function Kn(e, t, n) {
|
|
|
238
238
|
const a = Number(o(e)), s = Number(o(t));
|
|
239
239
|
if (isNaN(a) || isNaN(s))
|
|
240
240
|
return null;
|
|
241
|
-
let
|
|
242
|
-
s === 0 ? a === 0 ?
|
|
243
|
-
const b = mo(
|
|
241
|
+
let l = 0;
|
|
242
|
+
s === 0 ? a === 0 ? l = 0 : l = 1 : l = (a - s) / s;
|
|
243
|
+
const b = mo(l);
|
|
244
244
|
return {
|
|
245
|
-
value: isNaN(
|
|
245
|
+
value: isNaN(l) ? "" : `${(l * 100).toFixed(0)}%`,
|
|
246
246
|
icon: b
|
|
247
247
|
};
|
|
248
248
|
}
|
|
@@ -305,7 +305,7 @@ function fo() {
|
|
|
305
305
|
usePointStyle: !0,
|
|
306
306
|
callbacks: {
|
|
307
307
|
label: (e) => {
|
|
308
|
-
const t = e.label || "", n = typeof e.parsed == "number" ? e.parsed : 0, a = (Array.isArray(e.dataset.data) ? e.dataset.data : []).reduce((
|
|
308
|
+
const t = e.label || "", n = typeof e.parsed == "number" ? e.parsed : 0, a = (Array.isArray(e.dataset.data) ? e.dataset.data : []).reduce((l, b) => l + Number(b || 0), 0), s = a > 0 ? (n / a * 100).toFixed(1) : "0.0";
|
|
309
309
|
return `${t}: ${n.toLocaleString()} (${s}%)`;
|
|
310
310
|
}
|
|
311
311
|
}
|
|
@@ -324,8 +324,8 @@ function Vn(e) {
|
|
|
324
324
|
n && (n.__onViewportChange && (window.removeEventListener("scroll", n.__onViewportChange, !0), window.removeEventListener("resize", n.__onViewportChange)), n.remove());
|
|
325
325
|
}
|
|
326
326
|
function Ut(e, t, n, o) {
|
|
327
|
-
const { left: a, right: s, top:
|
|
328
|
-
e.save(), e.beginPath(), e.lineWidth = 1, e.strokeStyle = po, e.setLineDash([5, 5]), t ? (e.moveTo(a, o), e.lineTo(s, o)) : (e.moveTo(o,
|
|
327
|
+
const { left: a, right: s, top: l, bottom: b } = n;
|
|
328
|
+
e.save(), e.beginPath(), e.lineWidth = 1, e.strokeStyle = po, e.setLineDash([5, 5]), t ? (e.moveTo(a, o), e.lineTo(s, o)) : (e.moveTo(o, l), e.lineTo(o, b)), e.stroke(), e.restore();
|
|
329
329
|
}
|
|
330
330
|
function ho(e, t) {
|
|
331
331
|
if (typeof document > "u")
|
|
@@ -342,29 +342,29 @@ function ho(e, t) {
|
|
|
342
342
|
return Number.isFinite(a) ? a : void 0;
|
|
343
343
|
}
|
|
344
344
|
function vo(e, t, n) {
|
|
345
|
-
var
|
|
345
|
+
var r;
|
|
346
346
|
if (!n)
|
|
347
347
|
return;
|
|
348
|
-
const o = ((
|
|
348
|
+
const o = ((r = e.options) == null ? void 0 : r.indexAxis) === "y", a = e.tooltip, s = (a == null ? void 0 : a.getActiveElements()) ?? [];
|
|
349
349
|
if (s.length === 0) {
|
|
350
350
|
const g = ho(e, o);
|
|
351
351
|
g !== void 0 && Ut(e.ctx, o, e.chartArea, g);
|
|
352
352
|
return;
|
|
353
353
|
}
|
|
354
|
-
const
|
|
355
|
-
if (!
|
|
354
|
+
const l = e.scales.x, b = e.scales.y;
|
|
355
|
+
if (!l || !b)
|
|
356
356
|
return;
|
|
357
357
|
const c = s[0];
|
|
358
358
|
if (!c)
|
|
359
359
|
return;
|
|
360
360
|
if (t === "bar") {
|
|
361
|
-
const y = (o ? b :
|
|
361
|
+
const y = (o ? b : l).getPixelForValue(c.index);
|
|
362
362
|
Ut(e.ctx, o, e.chartArea, y);
|
|
363
363
|
return;
|
|
364
364
|
}
|
|
365
365
|
if (!c.element)
|
|
366
366
|
return;
|
|
367
|
-
const S = c.element, F = o ? b :
|
|
367
|
+
const S = c.element, F = o ? b : l, D = o ? S.y : S.x, T = F.getPixelForValue(c.index), B = D ?? T;
|
|
368
368
|
Ut(e.ctx, o, e.chartArea, B);
|
|
369
369
|
}
|
|
370
370
|
function wt(e) {
|
|
@@ -409,12 +409,12 @@ function wo(e) {
|
|
|
409
409
|
function xo(e) {
|
|
410
410
|
return Reflect.get(e, "dash") === !0 || Reflect.get(e, "isCompare") === !0;
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function ln(e, t) {
|
|
413
413
|
const n = e.parsed, o = t ? n.x : n.y, a = t ? n.y : n.x, s = o ?? a;
|
|
414
414
|
return typeof s == "number" ? s : Number(s);
|
|
415
415
|
}
|
|
416
416
|
function Qn(e, t) {
|
|
417
|
-
const n = ea(e), o =
|
|
417
|
+
const n = ea(e), o = ln(e, t);
|
|
418
418
|
return `${n}: ${o.toLocaleString()}`;
|
|
419
419
|
}
|
|
420
420
|
function ea(e) {
|
|
@@ -464,14 +464,14 @@ function To(e) {
|
|
|
464
464
|
const t = e.dataset, n = typeof e.dataIndex == "number" ? e.dataIndex : 0, o = It(Reflect.get(t, "borderColor"), n), a = It(Reflect.get(t, "backgroundColor"), n), s = Reflect.get(
|
|
465
465
|
e.element,
|
|
466
466
|
"options"
|
|
467
|
-
),
|
|
467
|
+
), l = It(
|
|
468
468
|
Reflect.get(s ?? {}, "borderColor"),
|
|
469
469
|
n
|
|
470
470
|
), b = It(
|
|
471
471
|
Reflect.get(s ?? {}, "backgroundColor"),
|
|
472
472
|
n
|
|
473
473
|
);
|
|
474
|
-
return ta(e) ? Bn(a, b, o,
|
|
474
|
+
return ta(e) ? Bn(a, b, o, l) : Bn(o, l, a, b);
|
|
475
475
|
}
|
|
476
476
|
function tn(e) {
|
|
477
477
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/\"/g, """).replace(/'/g, "'");
|
|
@@ -486,12 +486,12 @@ function Do(e) {
|
|
|
486
486
|
const t = typeof e == "number" ? e : typeof e == "string" ? Number(e) : Number.NaN;
|
|
487
487
|
return Number.isFinite(t) ? Math.max(en, Math.floor(t)) : go;
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function rn(e) {
|
|
490
490
|
return {
|
|
491
491
|
maxTooltipItems: Do(e == null ? void 0 : e.maxTooltipItems)
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function Mn(e) {
|
|
495
495
|
return {
|
|
496
496
|
text: `${e.datasetLabel}: ${0 .toLocaleString()}`,
|
|
497
497
|
color: "#cbd5e1",
|
|
@@ -539,7 +539,7 @@ const Io = zt({
|
|
|
539
539
|
"box-sizing": "border-box",
|
|
540
540
|
"margin-right": "8px",
|
|
541
541
|
flex: "0 0 auto"
|
|
542
|
-
},
|
|
542
|
+
}, Mo = {
|
|
543
543
|
display: "inline-block",
|
|
544
544
|
width: "10px",
|
|
545
545
|
height: "10px",
|
|
@@ -550,7 +550,7 @@ const Io = zt({
|
|
|
550
550
|
"margin-right": "8px",
|
|
551
551
|
flex: "0 0 auto"
|
|
552
552
|
};
|
|
553
|
-
function
|
|
553
|
+
function Po(e) {
|
|
554
554
|
return zt({
|
|
555
555
|
...Vo,
|
|
556
556
|
margin: `${e ? "8px" : "0"} 0 4px`
|
|
@@ -558,7 +558,7 @@ function Mo(e) {
|
|
|
558
558
|
}
|
|
559
559
|
function Ro(e, t) {
|
|
560
560
|
return zt({
|
|
561
|
-
...e ? Bo :
|
|
561
|
+
...e ? Bo : Mo,
|
|
562
562
|
background: t
|
|
563
563
|
});
|
|
564
564
|
}
|
|
@@ -567,25 +567,25 @@ function zo(e) {
|
|
|
567
567
|
}
|
|
568
568
|
function na(e, t, n, o, a) {
|
|
569
569
|
var f;
|
|
570
|
-
const s = (f = e[0]) == null ? void 0 : f.label,
|
|
570
|
+
const s = (f = e[0]) == null ? void 0 : f.label, l = wo(s), b = l[0] ?? (s == null ? "" : String(s)), c = l[1], S = [], F = [];
|
|
571
571
|
e.forEach((m) => {
|
|
572
572
|
const u = m.dataset ?? {}, p = m.datasetIndex >= 0 && m.dataIndex >= 0 ? {
|
|
573
573
|
datasetIndex: m.datasetIndex,
|
|
574
574
|
dataIndex: m.dataIndex
|
|
575
|
-
} : void 0, $ = ea(m),
|
|
575
|
+
} : void 0, $ = ea(m), M = {
|
|
576
576
|
text: Qn(m, t),
|
|
577
577
|
color: To(m),
|
|
578
578
|
isBar: ta(m),
|
|
579
|
-
value:
|
|
579
|
+
value: ln(m, t),
|
|
580
580
|
datasetLabel: $,
|
|
581
581
|
matchingKey: So($),
|
|
582
582
|
focusTarget: p
|
|
583
583
|
};
|
|
584
584
|
if (c && xo(u)) {
|
|
585
|
-
F.push(
|
|
585
|
+
F.push(M);
|
|
586
586
|
return;
|
|
587
587
|
}
|
|
588
|
-
S.push(
|
|
588
|
+
S.push(M);
|
|
589
589
|
});
|
|
590
590
|
const D = S.slice(0, o), T = /* @__PURE__ */ new Map();
|
|
591
591
|
F.forEach((m) => {
|
|
@@ -598,13 +598,13 @@ function na(e, t, n, o, a) {
|
|
|
598
598
|
});
|
|
599
599
|
const B = c ? D.map((m) => {
|
|
600
600
|
const u = T.get(m.matchingKey);
|
|
601
|
-
return !u || u.length === 0 ?
|
|
602
|
-
}) : [],
|
|
601
|
+
return !u || u.length === 0 ? Mn(m) : u.shift() ?? Mn(m);
|
|
602
|
+
}) : [], r = S.length > D.length || F.length > B.length, g = (m, u = !1) => `<div style="${Po(u)}">${tn(m)}</div>`, y = (m) => {
|
|
603
603
|
const u = Ro(m.isBar, m.color);
|
|
604
604
|
return `<div style="${$o}"><span style="${u}"></span><span>${tn(m.text)}</span></div>`;
|
|
605
605
|
};
|
|
606
606
|
let w = "";
|
|
607
|
-
b.length > 0 && (w += g(b)), w += D.map((m) => y(m)).join(""), c && B.length > 0 && (w += g(c, w.length > 0), w += B.map((m) => y(m)).join("")), a &&
|
|
607
|
+
b.length > 0 && (w += g(b)), w += D.map((m) => y(m)).join(""), c && B.length > 0 && (w += g(c, w.length > 0), w += B.map((m) => y(m)).join("")), a && r && (w += zo(n));
|
|
608
608
|
const h = [
|
|
609
609
|
{
|
|
610
610
|
title: b,
|
|
@@ -618,21 +618,21 @@ function na(e, t, n, o, a) {
|
|
|
618
618
|
return {
|
|
619
619
|
html: w,
|
|
620
620
|
detailsPayload: { sections: h },
|
|
621
|
-
hasCollapsedValues:
|
|
621
|
+
hasCollapsedValues: r
|
|
622
622
|
};
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Pn(e) {
|
|
625
625
|
return e.scrollHeight - e.clientHeight > yo;
|
|
626
626
|
}
|
|
627
627
|
function Vt(e, t, n, o, a, s) {
|
|
628
|
-
const
|
|
628
|
+
const l = na(
|
|
629
629
|
t,
|
|
630
630
|
n,
|
|
631
631
|
o,
|
|
632
632
|
a,
|
|
633
633
|
s
|
|
634
634
|
);
|
|
635
|
-
return e.innerHTML !==
|
|
635
|
+
return e.innerHTML !== l.html && (e.innerHTML = l.html, jo(e)), l;
|
|
636
636
|
}
|
|
637
637
|
function Ao(e, t, n, o, a, s) {
|
|
638
638
|
if (Number.isFinite(a))
|
|
@@ -647,21 +647,21 @@ function Ao(e, t, n, o, a, s) {
|
|
|
647
647
|
),
|
|
648
648
|
maxTooltipItems: a
|
|
649
649
|
};
|
|
650
|
-
const
|
|
651
|
-
let b =
|
|
650
|
+
const l = Math.max(en, t.length);
|
|
651
|
+
let b = l, c = Vt(
|
|
652
652
|
e,
|
|
653
653
|
t,
|
|
654
654
|
n,
|
|
655
655
|
o,
|
|
656
|
-
|
|
656
|
+
l,
|
|
657
657
|
s
|
|
658
658
|
);
|
|
659
|
-
if (!
|
|
659
|
+
if (!Pn(e))
|
|
660
660
|
return {
|
|
661
661
|
markup: c,
|
|
662
|
-
maxTooltipItems:
|
|
662
|
+
maxTooltipItems: l
|
|
663
663
|
};
|
|
664
|
-
let S = en, F =
|
|
664
|
+
let S = en, F = l;
|
|
665
665
|
for (; S <= F; ) {
|
|
666
666
|
const T = Math.floor((S + F) / 2), B = Vt(
|
|
667
667
|
e,
|
|
@@ -671,14 +671,14 @@ function Ao(e, t, n, o, a, s) {
|
|
|
671
671
|
T,
|
|
672
672
|
s
|
|
673
673
|
);
|
|
674
|
-
if (
|
|
674
|
+
if (Pn(e)) {
|
|
675
675
|
F = T - 1;
|
|
676
676
|
continue;
|
|
677
677
|
}
|
|
678
678
|
b = T, c = B, S = T + 1;
|
|
679
679
|
}
|
|
680
680
|
return {
|
|
681
|
-
markup: b ===
|
|
681
|
+
markup: b === l ? c : Vt(
|
|
682
682
|
e,
|
|
683
683
|
t,
|
|
684
684
|
n,
|
|
@@ -692,7 +692,7 @@ function Ao(e, t, n, o, a, s) {
|
|
|
692
692
|
function Rn(e, t) {
|
|
693
693
|
const n = Math.max(0, Math.min(1, t)), o = e.trim();
|
|
694
694
|
if (o.startsWith("#")) {
|
|
695
|
-
const
|
|
695
|
+
const l = o.slice(1), b = l.length === 3 ? `${l[0]}${l[0]}${l[1]}${l[1]}${l[2]}${l[2]}` : l.length === 4 ? `${l[0]}${l[0]}${l[1]}${l[1]}${l[2]}${l[2]}` : l.length >= 6 ? l.slice(0, 6) : "";
|
|
696
696
|
if (/^[0-9a-fA-F]{6}$/.test(b)) {
|
|
697
697
|
const c = Number.parseInt(b.slice(0, 2), 16), S = Number.parseInt(b.slice(2, 4), 16), F = Number.parseInt(b.slice(4, 6), 16);
|
|
698
698
|
return `rgba(${c}, ${S}, ${F}, ${n})`;
|
|
@@ -700,17 +700,17 @@ function Rn(e, t) {
|
|
|
700
700
|
}
|
|
701
701
|
const a = o.match(/^rgba?\(([^)]+)\)$/i);
|
|
702
702
|
if (a) {
|
|
703
|
-
const
|
|
704
|
-
if (
|
|
705
|
-
const [b, c, S] =
|
|
703
|
+
const l = a[1].split(",").map((b) => b.trim());
|
|
704
|
+
if (l.length >= 3) {
|
|
705
|
+
const [b, c, S] = l;
|
|
706
706
|
return `rgba(${b}, ${c}, ${S}, ${n})`;
|
|
707
707
|
}
|
|
708
708
|
}
|
|
709
709
|
const s = o.match(/^hsla?\(([^)]+)\)$/i);
|
|
710
710
|
if (s) {
|
|
711
|
-
const
|
|
712
|
-
if (
|
|
713
|
-
const [b, c, S] =
|
|
711
|
+
const l = s[1].split(",").map((b) => b.trim());
|
|
712
|
+
if (l.length >= 3) {
|
|
713
|
+
const [b, c, S] = l;
|
|
714
714
|
return `hsla(${b}, ${c}, ${S}, ${n})`;
|
|
715
715
|
}
|
|
716
716
|
}
|
|
@@ -751,7 +751,7 @@ function nn(e) {
|
|
|
751
751
|
const n = t.canvas;
|
|
752
752
|
return !(n !== void 0 && (!(n instanceof HTMLCanvasElement) || !n.isConnected || !n.ownerDocument));
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function Mt(e, t) {
|
|
755
755
|
if (!nn(e))
|
|
756
756
|
return;
|
|
757
757
|
const n = e.data.datasets;
|
|
@@ -800,38 +800,38 @@ function sn(e) {
|
|
|
800
800
|
Eo(n) && (t = n.parentElement), n = n.parentElement;
|
|
801
801
|
return window.getComputedStyle(t).position === "static" && (t.style.position = "relative"), t;
|
|
802
802
|
}
|
|
803
|
-
function un(e, t, n, o, a, s,
|
|
804
|
-
const c = t.getBoundingClientRect(), S = n.getBoundingClientRect(), F = n.scrollLeft, D = n.scrollTop, T = n.clientWidth, B = n.clientHeight,
|
|
805
|
-
(!Number.isFinite(
|
|
806
|
-
const y =
|
|
807
|
-
let
|
|
803
|
+
function un(e, t, n, o, a, s, l = "center", b = !1) {
|
|
804
|
+
const c = t.getBoundingClientRect(), S = n.getBoundingClientRect(), F = n.scrollLeft, D = n.scrollTop, T = n.clientWidth, B = n.clientHeight, r = e;
|
|
805
|
+
(!Number.isFinite(r.__cachedWidth) || !Number.isFinite(r.__cachedHeight) || r.__measurementHostWidth !== T || r.__measurementHostHeight !== B) && (r.__cachedWidth = e.offsetWidth, r.__cachedHeight = e.offsetHeight, r.__measurementHostWidth = T, r.__measurementHostHeight = B);
|
|
806
|
+
const y = r.__cachedWidth ?? e.offsetWidth, w = r.__cachedHeight ?? e.offsetHeight, h = 8, f = c.left - S.left + F + o, m = c.top - S.top + D + a, u = b ? l === "left" ? f - y - h : f + h : l === "left" ? f - y - h : l === "right" ? f + h : f - y / 2, p = b ? m + h : s ? m - w / 2 : m + h, $ = F + h;
|
|
807
|
+
let M = D + h;
|
|
808
808
|
const L = document.querySelector('[data-menu-tab="true"]');
|
|
809
809
|
if (L) {
|
|
810
810
|
const G = L.getBoundingClientRect().bottom - S.top + D + h;
|
|
811
|
-
|
|
811
|
+
M = Math.max(M, G);
|
|
812
812
|
}
|
|
813
813
|
const A = Math.max(
|
|
814
814
|
$,
|
|
815
815
|
F + T - y - h
|
|
816
|
-
),
|
|
817
|
-
|
|
816
|
+
), P = Math.max(
|
|
817
|
+
M,
|
|
818
818
|
D + B - w - h
|
|
819
|
-
), I = Math.round(Math.min(Math.max($, u), A)), V = Math.round(Math.min(Math.max(
|
|
820
|
-
|
|
819
|
+
), I = Math.round(Math.min(Math.max($, u), A)), V = Math.round(Math.min(Math.max(M, p), P));
|
|
820
|
+
r.__lastLeftPx === I && r.__lastTopPx === V || (r.__lastLeftPx = I, r.__lastTopPx = V, e.style.left = `${I}px`, e.style.top = `${V}px`);
|
|
821
821
|
}
|
|
822
822
|
function aa(e) {
|
|
823
823
|
return e.dataset.anchorDirection === "left" ? "left" : e.dataset.anchorDirection === "right" ? "right" : "center";
|
|
824
824
|
}
|
|
825
|
-
function Uo(e, t, n, o, a, s,
|
|
825
|
+
function Uo(e, t, n, o, a, s, l) {
|
|
826
826
|
const b = t.getBoundingClientRect(), c = o - b.left, S = a - b.top;
|
|
827
|
-
!Number.isFinite(c) || !Number.isFinite(S) || (e.dataset.cursorCanvasX = String(c), e.dataset.cursorCanvasY = String(S), e.dataset.caretX = String(c), e.dataset.caretY = String(S), e.dataset.anchorDirection =
|
|
827
|
+
!Number.isFinite(c) || !Number.isFinite(S) || (e.dataset.cursorCanvasX = String(c), e.dataset.cursorCanvasY = String(S), e.dataset.caretX = String(c), e.dataset.caretY = String(S), e.dataset.anchorDirection = l, un(
|
|
828
828
|
e,
|
|
829
829
|
t,
|
|
830
830
|
n,
|
|
831
831
|
c,
|
|
832
832
|
S,
|
|
833
833
|
s,
|
|
834
|
-
|
|
834
|
+
l,
|
|
835
835
|
!0
|
|
836
836
|
));
|
|
837
837
|
}
|
|
@@ -864,8 +864,8 @@ function jo(e) {
|
|
|
864
864
|
function zn(e, t, n, o, a) {
|
|
865
865
|
e.__pendingCursorClientX = o, e.__pendingCursorClientY = a, typeof e.__cursorRafId != "number" && (e.__cursorRafId = window.requestAnimationFrame(() => {
|
|
866
866
|
e.__cursorRafId = void 0;
|
|
867
|
-
const s = e.__pendingCursorClientX,
|
|
868
|
-
if (e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, !Number.isFinite(s) || !Number.isFinite(
|
|
867
|
+
const s = e.__pendingCursorClientX, l = e.__pendingCursorClientY;
|
|
868
|
+
if (e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, !Number.isFinite(s) || !Number.isFinite(l))
|
|
869
869
|
return;
|
|
870
870
|
const b = sn(t);
|
|
871
871
|
e.parentElement !== b && b.appendChild(e), Uo(
|
|
@@ -873,14 +873,14 @@ function zn(e, t, n, o, a) {
|
|
|
873
873
|
t,
|
|
874
874
|
b,
|
|
875
875
|
s,
|
|
876
|
-
|
|
876
|
+
l,
|
|
877
877
|
n,
|
|
878
878
|
aa(e)
|
|
879
879
|
);
|
|
880
880
|
}));
|
|
881
881
|
}
|
|
882
882
|
function Ze(e, t) {
|
|
883
|
-
xt(e), oa(e), e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, e.__detailsPayload = void 0, e.__lastLeftPx = void 0, e.__lastTopPx = void 0, delete e.dataset.cursorCanvasX, delete e.dataset.cursorCanvasY, e.__isTooltipHovered = !1, e.style.pointerEvents = "none", e.style.opacity = "0",
|
|
883
|
+
xt(e), oa(e), e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, e.__detailsPayload = void 0, e.__lastLeftPx = void 0, e.__lastTopPx = void 0, delete e.dataset.cursorCanvasX, delete e.dataset.cursorCanvasY, e.__isTooltipHovered = !1, e.style.pointerEvents = "none", e.style.opacity = "0", Mt(t);
|
|
884
884
|
}
|
|
885
885
|
function An(e, t, n = Co) {
|
|
886
886
|
e.__isTooltipHovered || (xt(e), e.__hideTimeoutId = window.setTimeout(() => {
|
|
@@ -888,14 +888,14 @@ function An(e, t, n = Co) {
|
|
|
888
888
|
}, n));
|
|
889
889
|
}
|
|
890
890
|
function Ko(e, t, n, o, a) {
|
|
891
|
-
const { maxTooltipItems: s } =
|
|
892
|
-
e.__onCanvasPointerEnter || (e.__onCanvasPointerEnter = (
|
|
891
|
+
const { maxTooltipItems: s } = rn(a);
|
|
892
|
+
e.__onCanvasPointerEnter || (e.__onCanvasPointerEnter = (l) => {
|
|
893
893
|
if (zn(
|
|
894
894
|
e,
|
|
895
895
|
t,
|
|
896
896
|
o,
|
|
897
|
-
|
|
898
|
-
|
|
897
|
+
l.clientX,
|
|
898
|
+
l.clientY
|
|
899
899
|
), typeof (n == null ? void 0 : n.update) == "function")
|
|
900
900
|
try {
|
|
901
901
|
n.update("none");
|
|
@@ -904,13 +904,13 @@ function Ko(e, t, n, o, a) {
|
|
|
904
904
|
}
|
|
905
905
|
}, t.addEventListener("pointerenter", e.__onCanvasPointerEnter, {
|
|
906
906
|
passive: !0
|
|
907
|
-
})), e.__onCanvasPointerMove || (e.__onCanvasPointerMove = (
|
|
907
|
+
})), e.__onCanvasPointerMove || (e.__onCanvasPointerMove = (l) => {
|
|
908
908
|
zn(
|
|
909
909
|
e,
|
|
910
910
|
t,
|
|
911
911
|
o,
|
|
912
|
-
|
|
913
|
-
|
|
912
|
+
l.clientX,
|
|
913
|
+
l.clientY
|
|
914
914
|
);
|
|
915
915
|
}, t.addEventListener("pointermove", e.__onCanvasPointerMove, {
|
|
916
916
|
passive: !0
|
|
@@ -918,7 +918,7 @@ function Ko(e, t, n, o, a) {
|
|
|
918
918
|
Ze(e, n);
|
|
919
919
|
}, t.addEventListener("pointerleave", e.__onCanvasPointerLeave, {
|
|
920
920
|
passive: !0
|
|
921
|
-
})), e.__onCanvasClick || (e.__onCanvasClick = (
|
|
921
|
+
})), e.__onCanvasClick || (e.__onCanvasClick = (l) => {
|
|
922
922
|
var y, w;
|
|
923
923
|
if (!(a != null && a.onViewFullDetails) || !e.__detailsPayload || e.style.opacity !== "1")
|
|
924
924
|
return;
|
|
@@ -942,13 +942,13 @@ function Ko(e, t, n, o, a) {
|
|
|
942
942
|
return;
|
|
943
943
|
const F = S.call(
|
|
944
944
|
n,
|
|
945
|
-
|
|
945
|
+
l,
|
|
946
946
|
"nearest",
|
|
947
947
|
{ intersect: !0 },
|
|
948
948
|
!1
|
|
949
949
|
), D = S.call(
|
|
950
950
|
n,
|
|
951
|
-
|
|
951
|
+
l,
|
|
952
952
|
"index",
|
|
953
953
|
{ intersect: !1 },
|
|
954
954
|
!1
|
|
@@ -957,12 +957,12 @@ function Ko(e, t, n, o, a) {
|
|
|
957
957
|
).map((h) => ({ datasetIndex: h.datasetIndex, index: h.index }));
|
|
958
958
|
if (B.length === 0)
|
|
959
959
|
return;
|
|
960
|
-
const
|
|
961
|
-
if (typeof (
|
|
960
|
+
const r = n == null ? void 0 : n.tooltip;
|
|
961
|
+
if (typeof (r == null ? void 0 : r.setActiveElements) != "function")
|
|
962
962
|
return;
|
|
963
|
-
|
|
964
|
-
x:
|
|
965
|
-
y:
|
|
963
|
+
r.setActiveElements(B, {
|
|
964
|
+
x: l.offsetX,
|
|
965
|
+
y: l.offsetY
|
|
966
966
|
});
|
|
967
967
|
try {
|
|
968
968
|
n.update("none");
|
|
@@ -971,12 +971,12 @@ function Ko(e, t, n, o, a) {
|
|
|
971
971
|
}
|
|
972
972
|
const g = ((w = n == null ? void 0 : n.tooltip) == null ? void 0 : w.dataPoints) ?? [];
|
|
973
973
|
b(g);
|
|
974
|
-
}, t.addEventListener("click", e.__onCanvasClick)), e.__onCanvasPointerUp || (e.__onCanvasPointerUp = (
|
|
975
|
-
e.__onCanvasClick && e.__onCanvasClick(
|
|
976
|
-
}, t.addEventListener("pointerup", e.__onCanvasPointerUp)), a != null && a.onViewFullDetails && (e.__onDetailsClick || (e.__onDetailsClick = (
|
|
974
|
+
}, t.addEventListener("click", e.__onCanvasClick)), e.__onCanvasPointerUp || (e.__onCanvasPointerUp = (l) => {
|
|
975
|
+
e.__onCanvasClick && e.__onCanvasClick(l);
|
|
976
|
+
}, t.addEventListener("pointerup", e.__onCanvasPointerUp)), a != null && a.onViewFullDetails && (e.__onDetailsClick || (e.__onDetailsClick = (l) => {
|
|
977
977
|
var S;
|
|
978
|
-
const b =
|
|
979
|
-
b != null && b.closest('[data-tooltip-full-details="true"]') && (
|
|
978
|
+
const b = l.target;
|
|
979
|
+
b != null && b.closest('[data-tooltip-full-details="true"]') && (l.preventDefault(), l.stopPropagation(), e.__detailsPayload && ((S = a.onViewFullDetails) == null || S.call(a, e.__detailsPayload, n), Ze(e, n)));
|
|
980
980
|
}, e.addEventListener("click", e.__onDetailsClick)), e.__onTooltipPointerEnter || (e.__onTooltipPointerEnter = () => {
|
|
981
981
|
e.__isTooltipHovered = !0, xt(e);
|
|
982
982
|
}, e.addEventListener("pointerenter", e.__onTooltipPointerEnter)), e.__onTooltipPointerLeave || (e.__onTooltipPointerLeave = () => {
|
|
@@ -992,11 +992,11 @@ function Jo(e, t, n) {
|
|
|
992
992
|
e.style.opacity = "0";
|
|
993
993
|
return;
|
|
994
994
|
}
|
|
995
|
-
const
|
|
996
|
-
e.parentElement !==
|
|
995
|
+
const l = sn(t);
|
|
996
|
+
e.parentElement !== l && l.appendChild(e), un(
|
|
997
997
|
e,
|
|
998
998
|
t,
|
|
999
|
-
|
|
999
|
+
l,
|
|
1000
1000
|
o,
|
|
1001
1001
|
a,
|
|
1002
1002
|
n,
|
|
@@ -1011,7 +1011,7 @@ function Jo(e, t, n) {
|
|
|
1011
1011
|
}));
|
|
1012
1012
|
}
|
|
1013
1013
|
function Zo(e, t) {
|
|
1014
|
-
const { maxTooltipItems: n } =
|
|
1014
|
+
const { maxTooltipItems: n } = rn(t);
|
|
1015
1015
|
return ({ chart: o, tooltip: a }) => {
|
|
1016
1016
|
var L;
|
|
1017
1017
|
if (typeof document > "u" || typeof window > "u")
|
|
@@ -1019,10 +1019,10 @@ function Zo(e, t) {
|
|
|
1019
1019
|
const s = o == null ? void 0 : o.canvas;
|
|
1020
1020
|
if (!(s instanceof HTMLCanvasElement))
|
|
1021
1021
|
return;
|
|
1022
|
-
const
|
|
1023
|
-
Go(
|
|
1022
|
+
const l = sn(s), b = `comparison-tooltip-${String(o.id)}`;
|
|
1023
|
+
Go(l, b, s);
|
|
1024
1024
|
let c = document.querySelector(`#${b}`);
|
|
1025
|
-
if (c || (c = qo(b)), c.parentElement !==
|
|
1025
|
+
if (c || (c = qo(b)), c.parentElement !== l && l.appendChild(c), Jo(c, s, e), Ko(c, s, o, e, t), ((a == null ? void 0 : a.opacity) ?? 0) === 0) {
|
|
1026
1026
|
t != null && t.onViewFullDetails ? An(c, o) : Ze(c, o);
|
|
1027
1027
|
return;
|
|
1028
1028
|
}
|
|
@@ -1041,32 +1041,32 @@ function Zo(e, t) {
|
|
|
1041
1041
|
F,
|
|
1042
1042
|
n,
|
|
1043
1043
|
D
|
|
1044
|
-
),
|
|
1045
|
-
c.__detailsPayload =
|
|
1044
|
+
), r = D && B;
|
|
1045
|
+
c.__detailsPayload = r ? T : void 0, c.style.pointerEvents = r ? "auto" : "none";
|
|
1046
1046
|
const g = typeof (a == null ? void 0 : a.caretX) == "number" ? a.caretX : 0, y = Number(c.dataset.cursorCanvasX), w = Number(c.dataset.cursorCanvasY);
|
|
1047
1047
|
if (!(Number.isFinite(y) && Number.isFinite(w))) {
|
|
1048
1048
|
c.style.opacity = "0";
|
|
1049
1049
|
return;
|
|
1050
1050
|
}
|
|
1051
|
-
const f = (L = o == null ? void 0 : o.scales) == null ? void 0 : L.x, m = f && typeof f.getPixelForValue == "function" ? f.getPixelForValue(0) : NaN, u = e ? S.reduce((A,
|
|
1052
|
-
const I =
|
|
1051
|
+
const f = (L = o == null ? void 0 : o.scales) == null ? void 0 : L.x, m = f && typeof f.getPixelForValue == "function" ? f.getPixelForValue(0) : NaN, u = e ? S.reduce((A, P) => {
|
|
1052
|
+
const I = P == null ? void 0 : P.element, V = I == null ? void 0 : I.x;
|
|
1053
1053
|
if (typeof V != "number" || !Number.isFinite(V))
|
|
1054
1054
|
return A;
|
|
1055
1055
|
if (!Number.isFinite(A))
|
|
1056
1056
|
return V;
|
|
1057
1057
|
const O = Number.isFinite(m) ? m : g, G = Math.abs(A - O);
|
|
1058
1058
|
return Math.abs(V - O) > G ? V : A;
|
|
1059
|
-
}, Number.NaN) : Number.NaN, p = y, $ = w,
|
|
1059
|
+
}, Number.NaN) : Number.NaN, p = y, $ = w, M = e ? Number.isFinite(m) && Number.isFinite(u) && u < m ? "left" : "right" : "center";
|
|
1060
1060
|
un(
|
|
1061
1061
|
c,
|
|
1062
1062
|
s,
|
|
1063
|
-
|
|
1063
|
+
l,
|
|
1064
1064
|
p,
|
|
1065
1065
|
$,
|
|
1066
1066
|
e,
|
|
1067
|
-
|
|
1067
|
+
M,
|
|
1068
1068
|
!0
|
|
1069
|
-
), c.dataset.caretX = String(p), c.dataset.caretY = String($), c.dataset.anchorDirection =
|
|
1069
|
+
), c.dataset.caretX = String(p), c.dataset.caretY = String($), c.dataset.anchorDirection = M, c.style.opacity = "1";
|
|
1070
1070
|
};
|
|
1071
1071
|
}
|
|
1072
1072
|
function Qo(e, t) {
|
|
@@ -1082,11 +1082,11 @@ function Qo(e, t) {
|
|
|
1082
1082
|
var a, s;
|
|
1083
1083
|
const o = ((s = (a = n.chart) == null ? void 0 : a.tooltip) == null ? void 0 : s.dataPoints) ?? [];
|
|
1084
1084
|
if (o.length > t) {
|
|
1085
|
-
const
|
|
1085
|
+
const l = $n(n), c = o.slice(0, t).findIndex((S) => $n(S) === l);
|
|
1086
1086
|
if (c >= t)
|
|
1087
1087
|
return "";
|
|
1088
1088
|
if (c === t - 1) {
|
|
1089
|
-
const S = o.slice(t - 1).reduce((D, T) => D +
|
|
1089
|
+
const S = o.slice(t - 1).reduce((D, T) => D + ln(T, e), 0), F = Math.max(0, o.length - (t - 1));
|
|
1090
1090
|
return Fo(S, F);
|
|
1091
1091
|
}
|
|
1092
1092
|
}
|
|
@@ -1096,7 +1096,7 @@ function Qo(e, t) {
|
|
|
1096
1096
|
};
|
|
1097
1097
|
}
|
|
1098
1098
|
function mt(e = !1, t = !1, n) {
|
|
1099
|
-
const { maxTooltipItems: o } =
|
|
1099
|
+
const { maxTooltipItems: o } = rn(n), a = Jn(e ? "y" : "x");
|
|
1100
1100
|
return t ? {
|
|
1101
1101
|
...a,
|
|
1102
1102
|
enabled: !1,
|
|
@@ -1108,29 +1108,29 @@ function mt(e = !1, t = !1, n) {
|
|
|
1108
1108
|
}
|
|
1109
1109
|
function ft(e) {
|
|
1110
1110
|
function o() {
|
|
1111
|
-
const
|
|
1112
|
-
if (!Number.isInteger(
|
|
1111
|
+
const r = Number(e.legendMaxLines), g = e.legendPosition;
|
|
1112
|
+
if (!Number.isInteger(r) || r < 1 || g === "left" || g === "right" || g === "chartArea")
|
|
1113
1113
|
return e.legendMaxHeight;
|
|
1114
1114
|
const y = Math.max(Number(e.legendFontSize) || 12, 1), w = Math.max(y + 10, 20);
|
|
1115
|
-
return Math.round(
|
|
1115
|
+
return Math.round(r * w + 4);
|
|
1116
1116
|
}
|
|
1117
|
-
function a(
|
|
1118
|
-
if (
|
|
1117
|
+
function a(r, g, y) {
|
|
1118
|
+
if (r.measureText(g).width <= y) return g;
|
|
1119
1119
|
const w = "…";
|
|
1120
1120
|
let h = 0, f = g.length;
|
|
1121
1121
|
for (; h < f; ) {
|
|
1122
1122
|
const m = Math.floor((h + f) / 2), u = g.slice(0, m) + w;
|
|
1123
|
-
|
|
1123
|
+
r.measureText(u).width <= y ? h = m + 1 : f = m;
|
|
1124
1124
|
}
|
|
1125
1125
|
return g.slice(0, h - 1) + w;
|
|
1126
1126
|
}
|
|
1127
|
-
function s(
|
|
1128
|
-
const g =
|
|
1127
|
+
function s(r) {
|
|
1128
|
+
const g = r == null ? "" : String(r), [y] = g.split("#");
|
|
1129
1129
|
return (y ?? g).trim();
|
|
1130
1130
|
}
|
|
1131
|
-
function r
|
|
1131
|
+
function l(r, g) {
|
|
1132
1132
|
var p;
|
|
1133
|
-
const y =
|
|
1133
|
+
const y = r == null ? "" : String(r).trim();
|
|
1134
1134
|
if (!y)
|
|
1135
1135
|
return y;
|
|
1136
1136
|
const w = Array.isArray(e.chartBreakdownDimensionValues) ? e.chartBreakdownDimensionValues : [];
|
|
@@ -1155,11 +1155,11 @@ function ft(e) {
|
|
|
1155
1155
|
font: {
|
|
1156
1156
|
size: e.labelFontSize
|
|
1157
1157
|
},
|
|
1158
|
-
color: (
|
|
1159
|
-
const g =
|
|
1160
|
-
return g.borderColor ? Array.isArray(g.borderColor) ? g.borderColor[
|
|
1158
|
+
color: (r) => {
|
|
1159
|
+
const g = r.chart.data.datasets[r.datasetIndex];
|
|
1160
|
+
return g.borderColor ? Array.isArray(g.borderColor) ? g.borderColor[r.dataIndex] : g.borderColor : g.backgroundColor ? Array.isArray(g.backgroundColor) ? g.backgroundColor[r.dataIndex] : g.backgroundColor : "#000";
|
|
1161
1161
|
},
|
|
1162
|
-
formatter: (
|
|
1162
|
+
formatter: (r) => r === 0 ? "" : r.toLocaleString("en-US")
|
|
1163
1163
|
})), c = x(() => ({
|
|
1164
1164
|
display: e.showX,
|
|
1165
1165
|
position: e.xPosition,
|
|
@@ -1169,11 +1169,11 @@ function ft(e) {
|
|
|
1169
1169
|
ticks: {
|
|
1170
1170
|
display: e.showXTick,
|
|
1171
1171
|
padding: 8,
|
|
1172
|
-
callback: function(
|
|
1173
|
-
if ((e == null ? void 0 : e.isTransposed) === !0) return s(
|
|
1174
|
-
let y = String(
|
|
1172
|
+
callback: function(r) {
|
|
1173
|
+
if ((e == null ? void 0 : e.isTransposed) === !0) return s(r);
|
|
1174
|
+
let y = String(r);
|
|
1175
1175
|
const w = this;
|
|
1176
|
-
w && typeof w.getLabelForValue == "function" && (y = w.getLabelForValue(
|
|
1176
|
+
w && typeof w.getLabelForValue == "function" && (y = w.getLabelForValue(r)), y = s(y);
|
|
1177
1177
|
const h = w == null ? void 0 : w.chart, f = w == null ? void 0 : w.ctx, m = h.height * 0.25;
|
|
1178
1178
|
if (f && m > 0) {
|
|
1179
1179
|
f.save();
|
|
@@ -1193,16 +1193,16 @@ function ft(e) {
|
|
|
1193
1193
|
size: e.xTitleFontSize
|
|
1194
1194
|
}
|
|
1195
1195
|
},
|
|
1196
|
-
afterBuildTicks: (
|
|
1197
|
-
const g = Array.isArray(
|
|
1196
|
+
afterBuildTicks: (r) => {
|
|
1197
|
+
const g = Array.isArray(r == null ? void 0 : r.ticks) ? r.ticks : [];
|
|
1198
1198
|
if (g.length === 0) return;
|
|
1199
|
-
const y = s(
|
|
1200
|
-
|
|
1199
|
+
const y = s(r.getLabelForValue(g[0].value)), w = !isNaN(Number(y));
|
|
1200
|
+
r.options.ticks.minRotation = w || g.length < 10 ? 0 : 90;
|
|
1201
1201
|
},
|
|
1202
|
-
afterFit: (
|
|
1202
|
+
afterFit: (r) => {
|
|
1203
1203
|
if (!(e != null && e.isTransposed)) {
|
|
1204
|
-
const g =
|
|
1205
|
-
|
|
1204
|
+
const g = r.chart.height * 0.4;
|
|
1205
|
+
r.height > g && (r.height = g);
|
|
1206
1206
|
}
|
|
1207
1207
|
}
|
|
1208
1208
|
})), S = x(() => ({
|
|
@@ -1217,11 +1217,11 @@ function ft(e) {
|
|
|
1217
1217
|
font: {
|
|
1218
1218
|
size: e.yTickFontSize
|
|
1219
1219
|
},
|
|
1220
|
-
callback: function(
|
|
1221
|
-
if (!((e == null ? void 0 : e.isTransposed) === !0)) return s(
|
|
1222
|
-
let y = String(
|
|
1220
|
+
callback: function(r) {
|
|
1221
|
+
if (!((e == null ? void 0 : e.isTransposed) === !0)) return s(r);
|
|
1222
|
+
let y = String(r);
|
|
1223
1223
|
const w = this;
|
|
1224
|
-
w && typeof w.getLabelForValue == "function" && (y = w.getLabelForValue(
|
|
1224
|
+
w && typeof w.getLabelForValue == "function" && (y = w.getLabelForValue(r)), y = s(y);
|
|
1225
1225
|
const h = w == null ? void 0 : w.chart, f = w == null ? void 0 : w.ctx, m = h.width * 0.4;
|
|
1226
1226
|
if (f && m > 0) {
|
|
1227
1227
|
f.save();
|
|
@@ -1251,13 +1251,13 @@ function ft(e) {
|
|
|
1251
1251
|
font: {
|
|
1252
1252
|
size: e.legendFontSize
|
|
1253
1253
|
},
|
|
1254
|
-
generateLabels: (
|
|
1254
|
+
generateLabels: (r) => {
|
|
1255
1255
|
var w;
|
|
1256
|
-
const g = e.legendColor ?? "#6b6b6b", y = ((w =
|
|
1256
|
+
const g = e.legendColor ?? "#6b6b6b", y = ((w = r == null ? void 0 : r.data) == null ? void 0 : w.datasets) || [];
|
|
1257
1257
|
if (y.length === 0) return [];
|
|
1258
1258
|
if (y.length === 1 && Array.isArray(y[0].backgroundColor) && y[0].backgroundColor.length > 1 && Array.isArray(y[0].data)) {
|
|
1259
1259
|
const h = y[0];
|
|
1260
|
-
return
|
|
1260
|
+
return r.data.labels.map((m, u) => {
|
|
1261
1261
|
const p = h.backgroundColor[u];
|
|
1262
1262
|
return {
|
|
1263
1263
|
text: m,
|
|
@@ -1267,20 +1267,20 @@ function ft(e) {
|
|
|
1267
1267
|
strokeStyle: p,
|
|
1268
1268
|
datasetIndex: 0,
|
|
1269
1269
|
index: u,
|
|
1270
|
-
hidden:
|
|
1270
|
+
hidden: r.getDataVisibility ? !r.getDataVisibility(u) : !1
|
|
1271
1271
|
};
|
|
1272
1272
|
});
|
|
1273
1273
|
}
|
|
1274
|
-
return
|
|
1274
|
+
return r.data.datasets.map((h, f) => {
|
|
1275
1275
|
const m = h.borderColor || h.backgroundColor;
|
|
1276
1276
|
return {
|
|
1277
|
-
text:
|
|
1277
|
+
text: l(h.label, f),
|
|
1278
1278
|
fontColor: g,
|
|
1279
1279
|
color: g,
|
|
1280
1280
|
fillStyle: m,
|
|
1281
1281
|
strokeStyle: m,
|
|
1282
1282
|
datasetIndex: f,
|
|
1283
|
-
hidden: !
|
|
1283
|
+
hidden: !r.isDatasetVisible(f)
|
|
1284
1284
|
};
|
|
1285
1285
|
});
|
|
1286
1286
|
}
|
|
@@ -1288,13 +1288,13 @@ function ft(e) {
|
|
|
1288
1288
|
})), D = x(() => e.isTransposed), T = x(() => e.chartWidth), B = x(() => e.chartHeight);
|
|
1289
1289
|
return { datalabels: b, xCfg: c, yCfg: S, isTransposed: D, legend: F, chartWidth: T, chartHeight: B };
|
|
1290
1290
|
}
|
|
1291
|
-
const
|
|
1291
|
+
const el = {
|
|
1292
1292
|
key: 0,
|
|
1293
1293
|
class: "pointer-events-none fixed inset-0 z-[120] flex justify-end"
|
|
1294
|
-
},
|
|
1294
|
+
}, tl = ["aria-label"], nl = { class: "relative z-20 flex shrink-0 items-center bg-fm-color-neutral-white justify-between sm:px-5" }, al = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary min-w-0 flex-1 truncate pr-3" }, ol = { class: "flex items-center gap-1.5" }, ll = {
|
|
1295
1295
|
key: 0,
|
|
1296
1296
|
class: "pb-2 fm-typo-en-body-md-600 text-fm-color-typo-secondary"
|
|
1297
|
-
},
|
|
1297
|
+
}, rl = ["onMouseenter", "onFocus"], sl = { class: "min-w-0 flex flex-1 items-center gap-2.5 pr-2" }, il = { class: "min-w-0 truncate text-fm-color-typo-secondary" }, ul = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary shrink-0 text-right tabular-nums" }, Nn = 500, cl = 320, St = /* @__PURE__ */ Be({
|
|
1298
1298
|
__name: "TooltipDetailSidesheet",
|
|
1299
1299
|
props: {
|
|
1300
1300
|
modelValue: { type: Boolean },
|
|
@@ -1302,14 +1302,14 @@ const er = {
|
|
|
1302
1302
|
},
|
|
1303
1303
|
emits: ["update:modelValue", "value-hover", "value-leave"],
|
|
1304
1304
|
setup(e, { emit: t }) {
|
|
1305
|
-
const n = e, o = t, { t: a } = et(), s = k(null),
|
|
1305
|
+
const n = e, o = t, { t: a } = et(), s = k(null), l = k(Nn), b = k(!1), c = x({
|
|
1306
1306
|
get: () => n.modelValue,
|
|
1307
1307
|
set: (L) => o("update:modelValue", L)
|
|
1308
1308
|
}), S = x(() => {
|
|
1309
1309
|
var L;
|
|
1310
1310
|
return (((L = n.detailsPayload) == null ? void 0 : L.sections) ?? []).filter((A) => A.values.length > 0);
|
|
1311
1311
|
}), F = x(() => ({
|
|
1312
|
-
width: `${
|
|
1312
|
+
width: `${l.value}px`,
|
|
1313
1313
|
maxWidth: "94vw"
|
|
1314
1314
|
}));
|
|
1315
1315
|
function D(L) {
|
|
@@ -1322,21 +1322,21 @@ const er = {
|
|
|
1322
1322
|
function B(L) {
|
|
1323
1323
|
o("value-hover", L);
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1325
|
+
function r() {
|
|
1326
1326
|
o("value-leave");
|
|
1327
1327
|
}
|
|
1328
1328
|
function g() {
|
|
1329
|
-
|
|
1329
|
+
r(), c.value = !1;
|
|
1330
1330
|
}
|
|
1331
1331
|
function y() {
|
|
1332
1332
|
return typeof window > "u" ? Nn : Math.floor(window.innerWidth * 0.94);
|
|
1333
1333
|
}
|
|
1334
1334
|
function w(L) {
|
|
1335
|
-
const A = y(),
|
|
1336
|
-
return Math.min(A, Math.max(
|
|
1335
|
+
const A = y(), P = Math.min(cl, A);
|
|
1336
|
+
return Math.min(A, Math.max(P, Math.floor(L)));
|
|
1337
1337
|
}
|
|
1338
1338
|
function h(L) {
|
|
1339
|
-
typeof window > "u" || (
|
|
1339
|
+
typeof window > "u" || (l.value = w(window.innerWidth - L));
|
|
1340
1340
|
}
|
|
1341
1341
|
function f() {
|
|
1342
1342
|
b.value = !1, document.removeEventListener("pointermove", m), document.removeEventListener("pointerup", f), document.removeEventListener("pointercancel", f);
|
|
@@ -1348,7 +1348,7 @@ const er = {
|
|
|
1348
1348
|
c.value && (b.value = !0, h(L.clientX), document.addEventListener("pointermove", m), document.addEventListener("pointerup", f), document.addEventListener("pointercancel", f));
|
|
1349
1349
|
}
|
|
1350
1350
|
function p() {
|
|
1351
|
-
|
|
1351
|
+
l.value = w(l.value);
|
|
1352
1352
|
}
|
|
1353
1353
|
function $(L) {
|
|
1354
1354
|
var I;
|
|
@@ -1357,19 +1357,19 @@ const er = {
|
|
|
1357
1357
|
const A = L.target;
|
|
1358
1358
|
if (!(A instanceof Node))
|
|
1359
1359
|
return;
|
|
1360
|
-
const
|
|
1361
|
-
|
|
1360
|
+
const P = A instanceof Element ? A : null;
|
|
1361
|
+
P != null && P.closest('[data-tooltip-full-details="true"]') || (I = s.value) != null && I.contains(A) || g();
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function M(L) {
|
|
1364
1364
|
c.value && L.key === "Escape" && g();
|
|
1365
1365
|
}
|
|
1366
1366
|
return Ne(() => {
|
|
1367
|
-
|
|
1367
|
+
l.value = w(l.value), document.addEventListener("pointerdown", $, !0), document.addEventListener("keydown", M), window.addEventListener("resize", p);
|
|
1368
1368
|
}), Ba(() => {
|
|
1369
|
-
f(), document.removeEventListener("pointerdown", $, !0), document.removeEventListener("keydown",
|
|
1369
|
+
f(), document.removeEventListener("pointerdown", $, !0), document.removeEventListener("keydown", M), window.removeEventListener("resize", p);
|
|
1370
1370
|
}), (L, A) => {
|
|
1371
|
-
const
|
|
1372
|
-
return Y(), he(
|
|
1371
|
+
const P = Z("FmButton");
|
|
1372
|
+
return Y(), he(Ma, {
|
|
1373
1373
|
"enter-active-class": "transform transition duration-200 ease-out",
|
|
1374
1374
|
"enter-from-class": "translate-x-full opacity-0",
|
|
1375
1375
|
"enter-to-class": "translate-x-0 opacity-100",
|
|
@@ -1378,7 +1378,7 @@ const er = {
|
|
|
1378
1378
|
"leave-to-class": "translate-x-full opacity-0"
|
|
1379
1379
|
}, {
|
|
1380
1380
|
default: ce(() => [
|
|
1381
|
-
c.value ? (Y(), oe("div",
|
|
1381
|
+
c.value ? (Y(), oe("div", el, [
|
|
1382
1382
|
j("div", {
|
|
1383
1383
|
ref_key: "panelRef",
|
|
1384
1384
|
ref: s,
|
|
@@ -1392,10 +1392,10 @@ const er = {
|
|
|
1392
1392
|
class: "absolute left-0 top-0 z-40 h-full w-3 -translate-x-1/2 cursor-ew-resize",
|
|
1393
1393
|
onPointerdown: Bt(u, ["prevent"])
|
|
1394
1394
|
}, null, 32),
|
|
1395
|
-
j("div",
|
|
1396
|
-
j("div",
|
|
1397
|
-
j("div",
|
|
1398
|
-
K(
|
|
1395
|
+
j("div", nl, [
|
|
1396
|
+
j("div", al, Le(d(a)("report.widget.comparisonTooltip.fullBreakdownTitle")), 1),
|
|
1397
|
+
j("div", ol, [
|
|
1398
|
+
K(P, {
|
|
1399
1399
|
class: "relative z-30 h-9 w-9 shrink-0",
|
|
1400
1400
|
variant: "tertiary",
|
|
1401
1401
|
icon: "close",
|
|
@@ -1406,23 +1406,23 @@ const er = {
|
|
|
1406
1406
|
]),
|
|
1407
1407
|
j("div", {
|
|
1408
1408
|
class: "flex flex-1 flex-col gap-4 overflow-y-auto px-4 py-4 sm:px-5",
|
|
1409
|
-
onMouseleave:
|
|
1409
|
+
onMouseleave: r
|
|
1410
1410
|
}, [
|
|
1411
1411
|
(Y(!0), oe(ke, null, it(S.value, (I, V) => (Y(), oe("div", {
|
|
1412
1412
|
key: `${I.title || "section"}-${V}`,
|
|
1413
1413
|
class: "flex flex-col gap-2 rounded-2xl bg-fm-color-neutral-white/45 py-3"
|
|
1414
1414
|
}, [
|
|
1415
|
-
I.title ? (Y(), oe("p",
|
|
1415
|
+
I.title ? (Y(), oe("p", ll, Le(I.title), 1)) : Ve("", !0),
|
|
1416
1416
|
(Y(!0), oe(ke, null, it(I.values, (O, G) => (Y(), oe("button", {
|
|
1417
1417
|
key: `${O.text}-${G}`,
|
|
1418
1418
|
type: "button",
|
|
1419
1419
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex w-full items-center justify-between gap-3 bg-transparent px-2 py-1.5 text-left transition-colors hover:bg-fm-color-opacity-sm focus-visible:bg-fm-color-opacity-sm focus-visible:outline-none",
|
|
1420
1420
|
onMouseenter: (_) => B(O),
|
|
1421
1421
|
onFocus: (_) => B(O),
|
|
1422
|
-
onMouseleave:
|
|
1423
|
-
onBlur:
|
|
1422
|
+
onMouseleave: r,
|
|
1423
|
+
onBlur: r
|
|
1424
1424
|
}, [
|
|
1425
|
-
j("span",
|
|
1425
|
+
j("span", sl, [
|
|
1426
1426
|
j("span", {
|
|
1427
1427
|
class: Qe([
|
|
1428
1428
|
"inline-block h-3 w-3 shrink-0 box-border",
|
|
@@ -1430,13 +1430,13 @@ const er = {
|
|
|
1430
1430
|
]),
|
|
1431
1431
|
style: $e({ backgroundColor: O.color })
|
|
1432
1432
|
}, null, 6),
|
|
1433
|
-
j("span",
|
|
1433
|
+
j("span", il, Le(T(O)), 1)
|
|
1434
1434
|
]),
|
|
1435
|
-
j("span",
|
|
1436
|
-
], 40,
|
|
1435
|
+
j("span", ul, Le(D(O)), 1)
|
|
1436
|
+
], 40, rl))), 128))
|
|
1437
1437
|
]))), 128))
|
|
1438
1438
|
], 32)
|
|
1439
|
-
], 12,
|
|
1439
|
+
], 12, tl)
|
|
1440
1440
|
])) : Ve("", !0)
|
|
1441
1441
|
]),
|
|
1442
1442
|
_: 1
|
|
@@ -1446,20 +1446,20 @@ const er = {
|
|
|
1446
1446
|
});
|
|
1447
1447
|
function _t(e, t) {
|
|
1448
1448
|
const { t: n } = et(), o = k(!1), a = k(null), s = k(null);
|
|
1449
|
-
function
|
|
1449
|
+
function l() {
|
|
1450
1450
|
return Oo(e.value) ?? s.value;
|
|
1451
1451
|
}
|
|
1452
1452
|
function b(T) {
|
|
1453
|
-
o.value = T, !T && (a.value = null,
|
|
1453
|
+
o.value = T, !T && (a.value = null, Mt(l()), s.value = null);
|
|
1454
1454
|
}
|
|
1455
1455
|
function c(T, B) {
|
|
1456
|
-
a.value = T, s.value = B ??
|
|
1456
|
+
a.value = T, s.value = B ?? l(), o.value = !0;
|
|
1457
1457
|
}
|
|
1458
1458
|
function S(T) {
|
|
1459
|
-
|
|
1459
|
+
Mt(l(), T.focusTarget);
|
|
1460
1460
|
}
|
|
1461
1461
|
function F() {
|
|
1462
|
-
|
|
1462
|
+
Mt(l());
|
|
1463
1463
|
}
|
|
1464
1464
|
const D = x(() => ({
|
|
1465
1465
|
viewFullDetailsLabel: n("report.widget.comparisonTooltip.viewBreakdown"),
|
|
@@ -1475,7 +1475,7 @@ function _t(e, t) {
|
|
|
1475
1475
|
handleTooltipDetailsLeave: F
|
|
1476
1476
|
};
|
|
1477
1477
|
}
|
|
1478
|
-
const
|
|
1478
|
+
const dl = /* @__PURE__ */ Be({
|
|
1479
1479
|
__name: "WidgetBarchart",
|
|
1480
1480
|
props: /* @__PURE__ */ Ae({
|
|
1481
1481
|
tileIndex: {}
|
|
@@ -1487,7 +1487,7 @@ const dr = /* @__PURE__ */ Be({
|
|
|
1487
1487
|
setup(e) {
|
|
1488
1488
|
const t = e, n = He(e, "modelValue"), o = k(null), a = x(() => n.value.maxTooltipItems), {
|
|
1489
1489
|
isTooltipDetailsSheetOpen: s,
|
|
1490
|
-
tooltipDetailsPayload:
|
|
1490
|
+
tooltipDetailsPayload: l,
|
|
1491
1491
|
tooltipOptions: b,
|
|
1492
1492
|
handleTooltipDetailsSheetVisibility: c,
|
|
1493
1493
|
handleTooltipDetailsHover: S,
|
|
@@ -1495,52 +1495,52 @@ const dr = /* @__PURE__ */ Be({
|
|
|
1495
1495
|
} = _t(o, {
|
|
1496
1496
|
maxTooltipItems: a
|
|
1497
1497
|
}), D = x(() => {
|
|
1498
|
-
var
|
|
1499
|
-
return ((
|
|
1498
|
+
var P;
|
|
1499
|
+
return ((P = n.value.data) == null ? void 0 : P.datasets) ?? [];
|
|
1500
1500
|
}), T = x(() => {
|
|
1501
|
-
var
|
|
1502
|
-
return ((
|
|
1503
|
-
}), B = x(() => T.value.length === 1 && D.value.length > 1 && D.value.every((
|
|
1501
|
+
var P;
|
|
1502
|
+
return ((P = n.value.data) == null ? void 0 : P.xAxis) ?? [];
|
|
1503
|
+
}), B = x(() => T.value.length === 1 && D.value.length > 1 && D.value.every((P) => P.values.length === 1 && P.isCompare !== !0)), r = x(() => B.value ? D.value.map((P) => P.name) : T.value), { datalabels: g, xCfg: y, yCfg: w, isTransposed: h, legend: f, chartWidth: m, chartHeight: u } = ft(
|
|
1504
1504
|
n.value
|
|
1505
1505
|
), p = x(
|
|
1506
1506
|
() => mt(n.value.isTransposed === !0, !0, b.value)
|
|
1507
|
-
), $ = wt("bar"),
|
|
1508
|
-
...D.value.map((
|
|
1507
|
+
), $ = wt("bar"), M = x(() => D.value.length > 0 ? [
|
|
1508
|
+
...D.value.map((P, I) => {
|
|
1509
1509
|
const V = Re({
|
|
1510
1510
|
datasetIndex: I,
|
|
1511
|
-
isCompare:
|
|
1511
|
+
isCompare: P.isCompare,
|
|
1512
1512
|
metricCount: n.value.metricCount,
|
|
1513
1513
|
mode: n.value.chartColorBinding
|
|
1514
1514
|
}), O = Re({
|
|
1515
1515
|
datasetIndex: I,
|
|
1516
|
-
isCompare:
|
|
1516
|
+
isCompare: P.isCompare,
|
|
1517
1517
|
metricCount: n.value.metricCount,
|
|
1518
1518
|
mode: _e.metric
|
|
1519
1519
|
});
|
|
1520
|
-
let G =
|
|
1520
|
+
let G = P.values;
|
|
1521
1521
|
B.value && (G = D.value.map(
|
|
1522
|
-
(N, R) => R === I ?
|
|
1522
|
+
(N, R) => R === I ? P.values[0] : Number.NaN
|
|
1523
1523
|
));
|
|
1524
1524
|
const _ = n.value.chartColorBinding === _e.breakdown, C = bt({
|
|
1525
|
-
datasetName:
|
|
1525
|
+
datasetName: P.name,
|
|
1526
1526
|
breakdownValues: n.value.chartBreakdownDimensionValues,
|
|
1527
1527
|
fallbackIndex: I
|
|
1528
1528
|
});
|
|
1529
1529
|
return {
|
|
1530
|
-
label:
|
|
1530
|
+
label: P.name,
|
|
1531
1531
|
data: G,
|
|
1532
|
-
dash: !!
|
|
1532
|
+
dash: !!P.isCompare,
|
|
1533
1533
|
backgroundColor: _ ? Ct({
|
|
1534
1534
|
breakdownIndex: C,
|
|
1535
1535
|
metricIndex: O,
|
|
1536
1536
|
metricCount: n.value.metricCount,
|
|
1537
|
-
isCompare:
|
|
1537
|
+
isCompare: P.isCompare,
|
|
1538
1538
|
breakdownColors: n.value.chartBreakdownColors,
|
|
1539
1539
|
useSecondaryMetricShades: n.value.chartUseSecondaryMetricShades,
|
|
1540
1540
|
customColors: n.value.chartColors
|
|
1541
1541
|
}) : dt({
|
|
1542
1542
|
index: V,
|
|
1543
|
-
isCompare:
|
|
1543
|
+
isCompare: P.isCompare,
|
|
1544
1544
|
customColors: n.value.chartColors
|
|
1545
1545
|
})
|
|
1546
1546
|
};
|
|
@@ -1553,18 +1553,18 @@ const dr = /* @__PURE__ */ Be({
|
|
|
1553
1553
|
Fe(() => {
|
|
1554
1554
|
A();
|
|
1555
1555
|
});
|
|
1556
|
-
}), pe([
|
|
1556
|
+
}), pe([M], () => {
|
|
1557
1557
|
Fe(() => A());
|
|
1558
|
-
}), (
|
|
1558
|
+
}), (P, I) => {
|
|
1559
1559
|
const V = Z("FmBarChart");
|
|
1560
1560
|
return Y(), oe(ke, null, [
|
|
1561
|
-
Ue(
|
|
1561
|
+
Ue(P.$slots, "menu"),
|
|
1562
1562
|
K(V, {
|
|
1563
1563
|
ref_key: "chartRef",
|
|
1564
1564
|
ref: o,
|
|
1565
1565
|
class: "bar-chart",
|
|
1566
|
-
datasets:
|
|
1567
|
-
"x-axis": { categories:
|
|
1566
|
+
datasets: M.value,
|
|
1567
|
+
"x-axis": { categories: r.value },
|
|
1568
1568
|
"x-cfg": d(y),
|
|
1569
1569
|
"y-cfg": d(w),
|
|
1570
1570
|
transpose: d(h),
|
|
@@ -1586,7 +1586,7 @@ const dr = /* @__PURE__ */ Be({
|
|
|
1586
1586
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "tooltip", "datalabels", "plugins", "style"]),
|
|
1587
1587
|
K(St, {
|
|
1588
1588
|
"model-value": d(s),
|
|
1589
|
-
"details-payload": d(
|
|
1589
|
+
"details-payload": d(l),
|
|
1590
1590
|
"onUpdate:modelValue": d(c),
|
|
1591
1591
|
onValueHover: d(S),
|
|
1592
1592
|
onValueLeave: d(F)
|
|
@@ -1594,7 +1594,7 @@ const dr = /* @__PURE__ */ Be({
|
|
|
1594
1594
|
], 64);
|
|
1595
1595
|
};
|
|
1596
1596
|
}
|
|
1597
|
-
}),
|
|
1597
|
+
}), ml = /* @__PURE__ */ Be({
|
|
1598
1598
|
__name: "WidgetCircular",
|
|
1599
1599
|
props: /* @__PURE__ */ Ae({
|
|
1600
1600
|
tileIndex: {}
|
|
@@ -1604,7 +1604,7 @@ const dr = /* @__PURE__ */ Be({
|
|
|
1604
1604
|
}),
|
|
1605
1605
|
emits: ["update:modelValue"],
|
|
1606
1606
|
setup(e) {
|
|
1607
|
-
const t = e, n = He(e, "modelValue"), { breakpoints: o } = Yn(), a = k(null), { datalabels: s, legend:
|
|
1607
|
+
const t = e, n = He(e, "modelValue"), { breakpoints: o } = Yn(), a = k(null), { datalabels: s, legend: l, chartWidth: b, chartHeight: c } = ft(n.value), S = x(() => {
|
|
1608
1608
|
let g = [];
|
|
1609
1609
|
return n.value.data.datasets && n.value.data.metrics && n.value.data.datasets.length > 0 && n.value.data.metrics.length > 0 && (g = [
|
|
1610
1610
|
{
|
|
@@ -1628,18 +1628,18 @@ const dr = /* @__PURE__ */ Be({
|
|
|
1628
1628
|
});
|
|
1629
1629
|
const T = x(() => typeof n.value.legendFontSize == "number" ? n.value.legendFontSize : o.value.lg ? 12 : 8), B = x(
|
|
1630
1630
|
() => ({
|
|
1631
|
-
display:
|
|
1632
|
-
position:
|
|
1633
|
-
maxHeight:
|
|
1634
|
-
maxWidth:
|
|
1631
|
+
display: l.value.display ?? !0,
|
|
1632
|
+
position: l.value.position ?? "top",
|
|
1633
|
+
maxHeight: l.value.maxHeight,
|
|
1634
|
+
maxWidth: l.value.maxWidth,
|
|
1635
1635
|
labels: {
|
|
1636
|
-
...
|
|
1636
|
+
...l.value.labels,
|
|
1637
1637
|
font: {
|
|
1638
1638
|
size: T.value
|
|
1639
1639
|
}
|
|
1640
1640
|
}
|
|
1641
1641
|
})
|
|
1642
|
-
),
|
|
1642
|
+
), r = fo();
|
|
1643
1643
|
return (g, y) => {
|
|
1644
1644
|
const w = Z("FmPieChart");
|
|
1645
1645
|
return Y(), oe(ke, null, [
|
|
@@ -1651,7 +1651,7 @@ const dr = /* @__PURE__ */ Be({
|
|
|
1651
1651
|
percentage: "70%",
|
|
1652
1652
|
datasets: S.value,
|
|
1653
1653
|
metrics: n.value.data.datasets.map((h) => h.name),
|
|
1654
|
-
tooltip: d(
|
|
1654
|
+
tooltip: d(r),
|
|
1655
1655
|
variant: "doughnut",
|
|
1656
1656
|
legend: B.value,
|
|
1657
1657
|
datalabels: d(s),
|
|
@@ -1665,7 +1665,7 @@ const dr = /* @__PURE__ */ Be({
|
|
|
1665
1665
|
};
|
|
1666
1666
|
}
|
|
1667
1667
|
});
|
|
1668
|
-
function
|
|
1668
|
+
function Pt(e) {
|
|
1669
1669
|
if (e == null || e === "")
|
|
1670
1670
|
return "";
|
|
1671
1671
|
const t = String(e), n = Number(t);
|
|
@@ -1673,7 +1673,7 @@ function Mt(e) {
|
|
|
1673
1673
|
const [o, a] = t.split("."), s = new Intl.NumberFormat("en-US").format(Number(o));
|
|
1674
1674
|
return a !== void 0 ? `${s}.${a}` : s;
|
|
1675
1675
|
}
|
|
1676
|
-
const
|
|
1676
|
+
const fl = { class: "flex flex-col gap-1" }, pl = { class: "fm-typo-en-title-md-600" }, hl = { class: "flex gap-2" }, vl = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, gl = { key: 0 }, yl = { key: 1 }, bl = /* @__PURE__ */ Be({
|
|
1677
1677
|
__name: "WidgetScorecard",
|
|
1678
1678
|
props: {
|
|
1679
1679
|
modelValue: { required: !0 },
|
|
@@ -1681,15 +1681,15 @@ const fr = { class: "flex flex-col gap-1" }, pr = { class: "fm-typo-en-title-md-
|
|
|
1681
1681
|
},
|
|
1682
1682
|
emits: ["update:modelValue"],
|
|
1683
1683
|
setup(e) {
|
|
1684
|
-
const t = He(e, "modelValue"), { t: n } = et(), { compareDateRange: o, defaultDateSetting: a } = Ee(gt()), { country: s } = an(),
|
|
1685
|
-
var
|
|
1686
|
-
return ((
|
|
1687
|
-
}), b = x(() =>
|
|
1688
|
-
const { data:
|
|
1689
|
-
return
|
|
1684
|
+
const t = He(e, "modelValue"), { t: n } = et(), { compareDateRange: o, defaultDateSetting: a } = Ee(gt()), { country: s } = an(), l = x(() => {
|
|
1685
|
+
var r;
|
|
1686
|
+
return ((r = t.value.data) == null ? void 0 : r.value) || "";
|
|
1687
|
+
}), b = x(() => Pt(l.value)), c = x(() => {
|
|
1688
|
+
const { data: r } = t.value;
|
|
1689
|
+
return r != null && r.comparison ? Kn(l.value, r.comparison, s) : null;
|
|
1690
1690
|
});
|
|
1691
|
-
function S(
|
|
1692
|
-
switch (
|
|
1691
|
+
function S(r) {
|
|
1692
|
+
switch (r) {
|
|
1693
1693
|
case Gt.bar:
|
|
1694
1694
|
return "bar";
|
|
1695
1695
|
case Gt.line:
|
|
@@ -1699,24 +1699,24 @@ const fr = { class: "flex flex-col gap-1" }, pr = { class: "fm-typo-en-title-md-
|
|
|
1699
1699
|
}
|
|
1700
1700
|
}
|
|
1701
1701
|
const F = x(() => {
|
|
1702
|
-
var
|
|
1703
|
-
return (
|
|
1702
|
+
var r;
|
|
1703
|
+
return (r = t.value.data) == null ? void 0 : r.sparkline;
|
|
1704
1704
|
}), D = x(() => ({
|
|
1705
1705
|
display: !1,
|
|
1706
1706
|
beginAtZero: !1,
|
|
1707
1707
|
grace: "20%"
|
|
1708
|
-
})), T = x(() => F.value.datasets.map((
|
|
1709
|
-
label:
|
|
1710
|
-
data:
|
|
1708
|
+
})), T = x(() => F.value.datasets.map((r) => ({
|
|
1709
|
+
label: r.name,
|
|
1710
|
+
data: r.values,
|
|
1711
1711
|
fill: !0,
|
|
1712
1712
|
color: "#36a2eb"
|
|
1713
1713
|
}))), B = x(() => mt(!1, !0));
|
|
1714
|
-
return (
|
|
1714
|
+
return (r, g) => {
|
|
1715
1715
|
const y = Z("FmIcon"), w = Z("FmChip"), h = Z("FmTooltip"), f = Z("FmLineChart");
|
|
1716
|
-
return Y(), oe("div",
|
|
1717
|
-
Ue(
|
|
1718
|
-
j("p",
|
|
1719
|
-
j("div",
|
|
1716
|
+
return Y(), oe("div", fl, [
|
|
1717
|
+
Ue(r.$slots, "menu"),
|
|
1718
|
+
j("p", pl, Le(b.value), 1),
|
|
1719
|
+
j("div", hl, [
|
|
1720
1720
|
K(h, {
|
|
1721
1721
|
disabled: c.value === null,
|
|
1722
1722
|
placement: "right",
|
|
@@ -1726,7 +1726,7 @@ const fr = { class: "flex flex-col gap-1" }, pr = { class: "fm-typo-en-title-md-
|
|
|
1726
1726
|
content: ce(() => {
|
|
1727
1727
|
var m;
|
|
1728
1728
|
return [
|
|
1729
|
-
j("span",
|
|
1729
|
+
j("span", vl, Le(`vs. ${(m = d(a).defaultCompareType) == null ? void 0 : m.split("_").join(" ")}`), 1)
|
|
1730
1730
|
];
|
|
1731
1731
|
}),
|
|
1732
1732
|
default: ce(() => [
|
|
@@ -1767,7 +1767,7 @@ const fr = { class: "flex flex-col gap-1" }, pr = { class: "fm-typo-en-title-md-
|
|
|
1767
1767
|
_: 1
|
|
1768
1768
|
}, 8, ["disabled"])
|
|
1769
1769
|
]),
|
|
1770
|
-
F.value ? (Y(), oe("div",
|
|
1770
|
+
F.value ? (Y(), oe("div", gl, [
|
|
1771
1771
|
S(F.value.type) === "line" ? (Y(), he(f, {
|
|
1772
1772
|
key: 0,
|
|
1773
1773
|
class: "sparkline",
|
|
@@ -1782,7 +1782,7 @@ const fr = { class: "flex flex-col gap-1" }, pr = { class: "fm-typo-en-title-md-
|
|
|
1782
1782
|
tooltip: B.value,
|
|
1783
1783
|
"maintain-aspect-ratio": !1
|
|
1784
1784
|
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : Ve("", !0)
|
|
1785
|
-
])) : (Y(), oe("div",
|
|
1785
|
+
])) : (Y(), oe("div", yl, g[1] || (g[1] = [
|
|
1786
1786
|
j("div", { class: "sparkline" }, [
|
|
1787
1787
|
j("div", { class: "flex flex-col gap-8" }, [
|
|
1788
1788
|
j("div"),
|
|
@@ -1794,29 +1794,29 @@ const fr = { class: "flex flex-col gap-1" }, pr = { class: "fm-typo-en-title-md-
|
|
|
1794
1794
|
]);
|
|
1795
1795
|
};
|
|
1796
1796
|
}
|
|
1797
|
-
}),
|
|
1798
|
-
function
|
|
1797
|
+
}), Cl = {};
|
|
1798
|
+
function wl(e, t) {
|
|
1799
1799
|
const n = Z("FmMenuDivider");
|
|
1800
1800
|
return Y(), he(n);
|
|
1801
1801
|
}
|
|
1802
|
-
const
|
|
1802
|
+
const xl = /* @__PURE__ */ oo(Cl, [["render", wl]]), Sl = "mf-reporttable-dimension", Hn = Xn(Sl, () => {
|
|
1803
1803
|
const e = k(0), t = k([]), n = k(!1), o = (h, f) => {
|
|
1804
1804
|
e.value = h, s(h, f);
|
|
1805
1805
|
}, a = (h, f, m, u) => {
|
|
1806
|
-
t[h] = f, t.value = [...t.value],
|
|
1806
|
+
t[h] = f, t.value = [...t.value], l(h, f, m, u);
|
|
1807
1807
|
}, s = (h, f) => {
|
|
1808
1808
|
const m = (f == null ? void 0 : f.querySelectorAll("thead tr")) ?? [], u = (f == null ? void 0 : f.querySelectorAll("tbody tr")) ?? [];
|
|
1809
1809
|
[...m, ...u].forEach(($) => {
|
|
1810
|
-
const
|
|
1811
|
-
|
|
1810
|
+
const M = $;
|
|
1811
|
+
M && (M.style.height = `${h}px`);
|
|
1812
1812
|
});
|
|
1813
|
-
},
|
|
1813
|
+
}, l = (h, f, m, u = !1) => {
|
|
1814
1814
|
const p = (m == null ? void 0 : m.querySelectorAll("th")) ?? [];
|
|
1815
1815
|
if (h === void 0) return;
|
|
1816
|
-
const $ = p[h],
|
|
1817
|
-
if (!$ ||
|
|
1816
|
+
const $ = p[h], M = u ? t[h] : f;
|
|
1817
|
+
if (!$ || M === void 0) return;
|
|
1818
1818
|
const L = () => {
|
|
1819
|
-
$.style.width = `${
|
|
1819
|
+
$.style.width = `${M}px`;
|
|
1820
1820
|
};
|
|
1821
1821
|
u ? requestAnimationFrame(L) : L();
|
|
1822
1822
|
}, b = () => {
|
|
@@ -1849,12 +1849,12 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
1849
1849
|
h ? document.querySelectorAll(".highlight-hover-col").forEach((f) => {
|
|
1850
1850
|
f.classList.remove("highlight-hover-col");
|
|
1851
1851
|
}) : document.querySelectorAll(".highlight-col").forEach((f) => f.classList.remove("highlight-col"));
|
|
1852
|
-
},
|
|
1852
|
+
}, r = (h, f) => {
|
|
1853
1853
|
const m = h.clientX, u = h.target.closest("table");
|
|
1854
1854
|
if (!u) return;
|
|
1855
1855
|
const p = u.querySelectorAll("th")[f];
|
|
1856
1856
|
if (!p) return;
|
|
1857
|
-
const $ = p.getBoundingClientRect().width || 60,
|
|
1857
|
+
const $ = p.getBoundingClientRect().width || 60, M = p.querySelector("button"), L = (M == null ? void 0 : M.querySelector("span")) || p.querySelector("p") || p;
|
|
1858
1858
|
let A = 60;
|
|
1859
1859
|
if (L) {
|
|
1860
1860
|
const _ = L.textContent || "", C = window.getComputedStyle(L), N = `${C.fontWeight} ${C.fontSize} ${C.fontFamily}`, W = document.createElement("canvas").getContext("2d");
|
|
@@ -1865,7 +1865,7 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
1865
1865
|
}
|
|
1866
1866
|
}
|
|
1867
1867
|
F(f, !1);
|
|
1868
|
-
let
|
|
1868
|
+
let P = null, I = null;
|
|
1869
1869
|
const V = () => {
|
|
1870
1870
|
if (I === null) return;
|
|
1871
1871
|
const _ = p;
|
|
@@ -1873,12 +1873,12 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
1873
1873
|
let C = 0;
|
|
1874
1874
|
u.querySelectorAll("th").forEach((R, W) => {
|
|
1875
1875
|
C += W === f ? I : R.getBoundingClientRect().width;
|
|
1876
|
-
}), u.classList.remove("w-full"), u.style.width = `${C}px`,
|
|
1876
|
+
}), u.classList.remove("w-full"), u.style.width = `${C}px`, P = null;
|
|
1877
1877
|
}, O = (_) => {
|
|
1878
1878
|
const C = _.clientX - m;
|
|
1879
|
-
I = Math.max(A, $ + C),
|
|
1879
|
+
I = Math.max(A, $ + C), P === null && (P = requestAnimationFrame(V));
|
|
1880
1880
|
}, G = () => {
|
|
1881
|
-
|
|
1881
|
+
P !== null && cancelAnimationFrame(P), I !== null && (p.style.width = `${I}px`);
|
|
1882
1882
|
const _ = u.querySelectorAll("th"), C = [];
|
|
1883
1883
|
_.forEach((N) => {
|
|
1884
1884
|
C.push(N.getBoundingClientRect().width);
|
|
@@ -1888,8 +1888,8 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
1888
1888
|
}, g = (h) => {
|
|
1889
1889
|
const f = h.clientY, m = h.target.closest("table"), u = e.value || 48;
|
|
1890
1890
|
D(!1);
|
|
1891
|
-
const p = (
|
|
1892
|
-
const L = Math.max(30, u + (
|
|
1891
|
+
const p = (M) => {
|
|
1892
|
+
const L = Math.max(30, u + (M.clientY - f));
|
|
1893
1893
|
m && o(L, m);
|
|
1894
1894
|
}, $ = () => {
|
|
1895
1895
|
T(!1), document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", $);
|
|
@@ -1903,7 +1903,7 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
1903
1903
|
updateRowHeight: o,
|
|
1904
1904
|
updateColWidth: a,
|
|
1905
1905
|
setRowHeights: s,
|
|
1906
|
-
setColWidths:
|
|
1906
|
+
setColWidths: l,
|
|
1907
1907
|
enableEditMode: b,
|
|
1908
1908
|
disableEditMode: c,
|
|
1909
1909
|
resetStore: S,
|
|
@@ -1911,23 +1911,23 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
1911
1911
|
highlightRows: D,
|
|
1912
1912
|
removeRowHighlight: T,
|
|
1913
1913
|
removeColHighlight: B,
|
|
1914
|
-
resizeCol:
|
|
1914
|
+
resizeCol: r,
|
|
1915
1915
|
resizeRow: g,
|
|
1916
1916
|
enableCellResizing: () => {
|
|
1917
1917
|
const h = document.querySelector("thead"), f = document.querySelectorAll("thead tr"), m = document.querySelectorAll("tbody tr"), u = [...f, ...m];
|
|
1918
1918
|
h && h.classList.remove("sticky");
|
|
1919
|
-
const p = ($,
|
|
1919
|
+
const p = ($, M) => {
|
|
1920
1920
|
const L = document.createElement("div");
|
|
1921
|
-
return L.className = `${$}-resize-handle`, $ === "col" ? (L.addEventListener("mouseenter", () => F(
|
|
1922
|
-
A.stopPropagation(),
|
|
1921
|
+
return L.className = `${$}-resize-handle`, $ === "col" ? (L.addEventListener("mouseenter", () => F(M, !0)), L.addEventListener("mouseleave", () => B(!0)), L.addEventListener("mousedown", (A) => {
|
|
1922
|
+
A.stopPropagation(), r(A, M);
|
|
1923
1923
|
})) : (L.addEventListener("mouseenter", () => D(!0)), L.addEventListener("mouseleave", () => T(!0)), L.addEventListener("mousedown", (A) => {
|
|
1924
1924
|
A.stopPropagation(), g(A);
|
|
1925
1925
|
})), L;
|
|
1926
1926
|
};
|
|
1927
1927
|
u.forEach(($) => {
|
|
1928
|
-
const
|
|
1929
|
-
$.querySelectorAll(
|
|
1930
|
-
const I = p("col",
|
|
1928
|
+
const M = $.closest("thead") !== null;
|
|
1929
|
+
$.querySelectorAll(M ? "th" : "td").forEach((A, P) => {
|
|
1930
|
+
const I = p("col", P), V = p("row", P);
|
|
1931
1931
|
A.appendChild(I), A.appendChild(V);
|
|
1932
1932
|
});
|
|
1933
1933
|
}), b();
|
|
@@ -1936,10 +1936,10 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
1936
1936
|
c();
|
|
1937
1937
|
}
|
|
1938
1938
|
};
|
|
1939
|
-
}),
|
|
1939
|
+
}), _l = "/assets/processTableData.worker-BN2TZ-50.js", kl = { class: "my-4" }, Tl = {
|
|
1940
1940
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
1941
1941
|
style: { backgroundColor: "#f9f9f9" }
|
|
1942
|
-
},
|
|
1942
|
+
}, Ll = { class: "font-bold" }, Fl = { class: "text-fm-color-neutral-gray-300" }, Dl = /* @__PURE__ */ Be({
|
|
1943
1943
|
__name: "WidgetTable",
|
|
1944
1944
|
props: /* @__PURE__ */ Ae({
|
|
1945
1945
|
tileIndex: {}
|
|
@@ -1949,7 +1949,7 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
1949
1949
|
}),
|
|
1950
1950
|
emits: ["update:modelValue"],
|
|
1951
1951
|
setup(e) {
|
|
1952
|
-
const { t, te: n } = et(), o = He(e, "modelValue"), { country: a } = an(), { clearTileSorts: s, setTileSorts:
|
|
1952
|
+
const { t, te: n } = et(), o = He(e, "modelValue"), { country: a } = an(), { clearTileSorts: s, setTileSorts: l } = Ha(), b = on(), c = e, S = k([]), { isEditing: F, colWidths: D, rowHeight: T } = Ee(Hn()), { setColWidths: B, setRowHeights: r, enableCellResizing: g } = Hn(), y = k(null), w = x(() => {
|
|
1953
1953
|
var _;
|
|
1954
1954
|
return ((_ = o.value.data) == null ? void 0 : _.columns) || [{ label: "", key: "" }];
|
|
1955
1955
|
}), h = x(() => {
|
|
@@ -2006,12 +2006,12 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2006
2006
|
Ne(() => {
|
|
2007
2007
|
s();
|
|
2008
2008
|
});
|
|
2009
|
-
const
|
|
2009
|
+
const M = k([]);
|
|
2010
2010
|
let L = 0, A;
|
|
2011
|
-
function
|
|
2011
|
+
function P() {
|
|
2012
2012
|
var W;
|
|
2013
2013
|
if (!((W = o.value) != null && W.data)) {
|
|
2014
|
-
|
|
2014
|
+
M.value = [];
|
|
2015
2015
|
return;
|
|
2016
2016
|
}
|
|
2017
2017
|
const _ = ++L, C = (o.value.data.rows || []).map((U) => ({
|
|
@@ -2026,21 +2026,21 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2026
2026
|
rows: C,
|
|
2027
2027
|
columns: N,
|
|
2028
2028
|
filter: f.value ?? "",
|
|
2029
|
-
globalSorts:
|
|
2029
|
+
globalSorts: Pa(S.value).map((U) => ({
|
|
2030
2030
|
key: U.key,
|
|
2031
2031
|
type: U.type
|
|
2032
2032
|
})),
|
|
2033
2033
|
grandTotalPosition: m.value,
|
|
2034
2034
|
pageSize: u.value
|
|
2035
2035
|
};
|
|
2036
|
-
Wa(
|
|
2037
|
-
_ === L && (U != null && U.error ? (b.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(U.error),
|
|
2036
|
+
Wa(_l, R).then((U) => {
|
|
2037
|
+
_ === L && (U != null && U.error ? (b.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(U.error), M.value = []) : M.value = Ra(U.data || []));
|
|
2038
2038
|
});
|
|
2039
2039
|
}
|
|
2040
2040
|
pe(
|
|
2041
2041
|
() => S.value,
|
|
2042
2042
|
(_) => {
|
|
2043
|
-
c.tileIndex === void 0 || c.tileIndex === null ||
|
|
2043
|
+
c.tileIndex === void 0 || c.tileIndex === null || l(c.tileIndex, _);
|
|
2044
2044
|
},
|
|
2045
2045
|
{ immediate: !0, deep: !0 }
|
|
2046
2046
|
);
|
|
@@ -2059,7 +2059,7 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2059
2059
|
pe(
|
|
2060
2060
|
() => I.value,
|
|
2061
2061
|
() => {
|
|
2062
|
-
clearTimeout(A), A = setTimeout(
|
|
2062
|
+
clearTimeout(A), A = setTimeout(P, 200);
|
|
2063
2063
|
},
|
|
2064
2064
|
{ immediate: !0 }
|
|
2065
2065
|
);
|
|
@@ -2119,7 +2119,7 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2119
2119
|
O.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
|
|
2120
2120
|
].join(" ")
|
|
2121
2121
|
},
|
|
2122
|
-
[C.type === "NUMERIC" ?
|
|
2122
|
+
[C.type === "NUMERIC" ? Pt(te.main) : te.main]
|
|
2123
2123
|
);
|
|
2124
2124
|
},
|
|
2125
2125
|
enableSorting: !1
|
|
@@ -2142,7 +2142,7 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2142
2142
|
if (!C) return;
|
|
2143
2143
|
C.classList.add(O.value ? "table-fixed" : "table-auto");
|
|
2144
2144
|
let N, R;
|
|
2145
|
-
F.value ? (g(), N = D.value, R = T.value) : (R = o.value.rowHeight, N = o.value.colWidths), typeof R == "number" &&
|
|
2145
|
+
F.value ? (g(), N = D.value, R = T.value) : (R = o.value.rowHeight, N = o.value.colWidths), typeof R == "number" && r(R, _), N == null || N.forEach((U, ee) => {
|
|
2146
2146
|
B(ee, U, _);
|
|
2147
2147
|
});
|
|
2148
2148
|
},
|
|
@@ -2150,14 +2150,14 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2150
2150
|
), (_, C) => {
|
|
2151
2151
|
const N = Z("FmTable");
|
|
2152
2152
|
return Y(), oe(ke, null, [
|
|
2153
|
-
j("div",
|
|
2153
|
+
j("div", kl, [
|
|
2154
2154
|
Ue(_.$slots, "menu")
|
|
2155
2155
|
]),
|
|
2156
2156
|
K(N, {
|
|
2157
2157
|
ref_key: "table",
|
|
2158
2158
|
ref: y,
|
|
2159
2159
|
"column-defs": G.value,
|
|
2160
|
-
"row-data":
|
|
2160
|
+
"row-data": M.value,
|
|
2161
2161
|
"search-value": f.value,
|
|
2162
2162
|
"page-size": u.value,
|
|
2163
2163
|
"shrink-at": !1,
|
|
@@ -2168,7 +2168,7 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2168
2168
|
}, {
|
|
2169
2169
|
"pin-top": ce(() => [
|
|
2170
2170
|
j("tbody", null, [
|
|
2171
|
-
j("tr",
|
|
2171
|
+
j("tr", Tl, [
|
|
2172
2172
|
(Y(!0), oe(ke, null, it(p.value, (R, W) => (Y(), oe("td", {
|
|
2173
2173
|
key: `${d(vt)()}_${W}`,
|
|
2174
2174
|
class: "h-[48px] text-fm-color-typo-primary px-16"
|
|
@@ -2180,8 +2180,8 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2180
2180
|
O.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
|
|
2181
2181
|
])
|
|
2182
2182
|
}, [
|
|
2183
|
-
j("p",
|
|
2184
|
-
j("p",
|
|
2183
|
+
j("p", Ll, Le(R.rowType === "NUMERIC" ? d(Pt)(R.main) : R.main), 1),
|
|
2184
|
+
j("p", Fl, Le(R.comparison ? R.rowType === "NUMERIC" ? `(${d(Pt)(R.comparison)})` : `(${R.comparison})` : ""), 1)
|
|
2185
2185
|
], 2)
|
|
2186
2186
|
]))), 128))
|
|
2187
2187
|
])
|
|
@@ -2192,7 +2192,7 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2192
2192
|
], 64);
|
|
2193
2193
|
};
|
|
2194
2194
|
}
|
|
2195
|
-
}),
|
|
2195
|
+
}), Il = /* @__PURE__ */ Be({
|
|
2196
2196
|
__name: "WidgetStackBarChart",
|
|
2197
2197
|
props: /* @__PURE__ */ Ae({
|
|
2198
2198
|
tileIndex: {}
|
|
@@ -2204,7 +2204,7 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2204
2204
|
setup(e) {
|
|
2205
2205
|
const t = e, n = He(e, "modelValue"), o = k(null), a = x(() => n.value.maxTooltipItems), {
|
|
2206
2206
|
isTooltipDetailsSheetOpen: s,
|
|
2207
|
-
tooltipDetailsPayload:
|
|
2207
|
+
tooltipDetailsPayload: l,
|
|
2208
2208
|
tooltipOptions: b,
|
|
2209
2209
|
handleTooltipDetailsSheetVisibility: c,
|
|
2210
2210
|
handleTooltipDetailsHover: S,
|
|
@@ -2217,12 +2217,12 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2217
2217
|
}), T = x(() => {
|
|
2218
2218
|
var O;
|
|
2219
2219
|
return ((O = n.value.data) == null ? void 0 : O.datasets) ?? [];
|
|
2220
|
-
}), { datalabels: B, xCfg:
|
|
2220
|
+
}), { datalabels: B, xCfg: r, yCfg: g, isTransposed: y, legend: w, chartWidth: h, chartHeight: f } = ft(
|
|
2221
2221
|
n.value
|
|
2222
2222
|
), m = x(
|
|
2223
2223
|
() => mt(n.value.isTransposed === !0, !0, b.value)
|
|
2224
|
-
), u = wt("bar"), p = x(() => n.value.stackBarOverlap === !0), $ = x(() => p.value === !1),
|
|
2225
|
-
...
|
|
2224
|
+
), u = wt("bar"), p = x(() => n.value.stackBarOverlap === !0), $ = x(() => p.value === !1), M = x(() => ({
|
|
2225
|
+
...r.value,
|
|
2226
2226
|
stacked: $.value
|
|
2227
2227
|
})), L = x(() => ({
|
|
2228
2228
|
...g.value,
|
|
@@ -2237,7 +2237,7 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2237
2237
|
const C = n.value.chartColorBinding === _e.metric ? G : n.value.chartColorBinding === _e.breakdown ? _ : O, N = (W = n.value.chartColorLayers) == null ? void 0 : W[C], R = Number(N);
|
|
2238
2238
|
return Number.isInteger(R) && R > 0 ? R : C + 1;
|
|
2239
2239
|
}
|
|
2240
|
-
const
|
|
2240
|
+
const P = x(() => {
|
|
2241
2241
|
if (T.value.length > 0) {
|
|
2242
2242
|
let O = 0, G = 0;
|
|
2243
2243
|
const _ = T.value.map((C, N) => {
|
|
@@ -2295,7 +2295,7 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2295
2295
|
Fe(() => {
|
|
2296
2296
|
V();
|
|
2297
2297
|
});
|
|
2298
|
-
}), pe([
|
|
2298
|
+
}), pe([P], () => {
|
|
2299
2299
|
Fe(() => V());
|
|
2300
2300
|
}), (O, G) => {
|
|
2301
2301
|
const _ = Z("FmBarChart");
|
|
@@ -2305,9 +2305,9 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2305
2305
|
ref_key: "chartRef",
|
|
2306
2306
|
ref: o,
|
|
2307
2307
|
class: "bar-chart",
|
|
2308
|
-
datasets:
|
|
2308
|
+
datasets: P.value,
|
|
2309
2309
|
"x-axis": { categories: D.value },
|
|
2310
|
-
"x-cfg":
|
|
2310
|
+
"x-cfg": M.value,
|
|
2311
2311
|
"y-cfg": L.value,
|
|
2312
2312
|
transpose: d(y),
|
|
2313
2313
|
stacked: $.value,
|
|
@@ -2329,7 +2329,7 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2329
2329
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "legend", "tooltip", "plugins", "datalabels", "style"]),
|
|
2330
2330
|
K(St, {
|
|
2331
2331
|
"model-value": d(s),
|
|
2332
|
-
"details-payload": d(
|
|
2332
|
+
"details-payload": d(l),
|
|
2333
2333
|
"onUpdate:modelValue": d(c),
|
|
2334
2334
|
onValueHover: d(S),
|
|
2335
2335
|
onValueLeave: d(F)
|
|
@@ -2337,7 +2337,7 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2337
2337
|
], 64);
|
|
2338
2338
|
};
|
|
2339
2339
|
}
|
|
2340
|
-
}),
|
|
2340
|
+
}), Vl = /* @__PURE__ */ Be({
|
|
2341
2341
|
__name: "WidgetClusteredStackBarchart",
|
|
2342
2342
|
props: /* @__PURE__ */ Ae({
|
|
2343
2343
|
tileIndex: {}
|
|
@@ -2349,7 +2349,7 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2349
2349
|
setup(e) {
|
|
2350
2350
|
const t = e, n = He(e, "modelValue"), o = k(null), a = x(() => n.value.maxTooltipItems), {
|
|
2351
2351
|
isTooltipDetailsSheetOpen: s,
|
|
2352
|
-
tooltipDetailsPayload:
|
|
2352
|
+
tooltipDetailsPayload: l,
|
|
2353
2353
|
tooltipOptions: b,
|
|
2354
2354
|
handleTooltipDetailsSheetVisibility: c,
|
|
2355
2355
|
handleTooltipDetailsHover: S,
|
|
@@ -2362,12 +2362,12 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2362
2362
|
}), T = x(() => {
|
|
2363
2363
|
var C;
|
|
2364
2364
|
return ((C = n.value.data) == null ? void 0 : C.datasets) ?? [];
|
|
2365
|
-
}), { datalabels: B, xCfg:
|
|
2365
|
+
}), { datalabels: B, xCfg: r, yCfg: g, isTransposed: y, legend: w, chartWidth: h, chartHeight: f } = ft(
|
|
2366
2366
|
n.value
|
|
2367
2367
|
), m = x(
|
|
2368
2368
|
() => mt(n.value.isTransposed === !0, !0, b.value)
|
|
2369
|
-
), u = wt("bar"), p = x(() => n.value.stackBarOverlap === !0), $ = x(() => p.value === !1),
|
|
2370
|
-
...
|
|
2369
|
+
), u = wt("bar"), p = x(() => n.value.stackBarOverlap === !0), $ = x(() => p.value === !1), M = x(() => ({
|
|
2370
|
+
...r.value,
|
|
2371
2371
|
stacked: $.value
|
|
2372
2372
|
})), L = x(() => ({
|
|
2373
2373
|
...g.value,
|
|
@@ -2383,7 +2383,7 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2383
2383
|
metricLabel: C.slice(R + N.length)
|
|
2384
2384
|
};
|
|
2385
2385
|
}
|
|
2386
|
-
function
|
|
2386
|
+
function P(C, N) {
|
|
2387
2387
|
if (typeof C == "string") {
|
|
2388
2388
|
const R = C.trim();
|
|
2389
2389
|
if (R.length > 0)
|
|
@@ -2411,7 +2411,7 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2411
2411
|
const C = T.value.map((te, ve) => ({
|
|
2412
2412
|
source: te,
|
|
2413
2413
|
index: ve,
|
|
2414
|
-
name:
|
|
2414
|
+
name: P(te == null ? void 0 : te.name, ve),
|
|
2415
2415
|
values: I(te == null ? void 0 : te.values)
|
|
2416
2416
|
})), N = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ new Map();
|
|
2417
2417
|
for (const te of C) {
|
|
@@ -2472,7 +2472,7 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2472
2472
|
class: "bar-chart",
|
|
2473
2473
|
datasets: O.value,
|
|
2474
2474
|
"x-axis": { categories: D.value },
|
|
2475
|
-
"x-cfg":
|
|
2475
|
+
"x-cfg": M.value,
|
|
2476
2476
|
"y-cfg": L.value,
|
|
2477
2477
|
transpose: d(y),
|
|
2478
2478
|
stacked: $.value,
|
|
@@ -2494,7 +2494,7 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2494
2494
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "legend", "tooltip", "plugins", "datalabels", "style"]),
|
|
2495
2495
|
K(St, {
|
|
2496
2496
|
"model-value": d(s),
|
|
2497
|
-
"details-payload": d(
|
|
2497
|
+
"details-payload": d(l),
|
|
2498
2498
|
"onUpdate:modelValue": d(c),
|
|
2499
2499
|
onValueHover: d(S),
|
|
2500
2500
|
onValueLeave: d(F)
|
|
@@ -2503,23 +2503,23 @@ const xr = /* @__PURE__ */ oo(Cr, [["render", wr]]), Sr = "mf-reporttable-dimens
|
|
|
2503
2503
|
};
|
|
2504
2504
|
}
|
|
2505
2505
|
});
|
|
2506
|
-
function $
|
|
2506
|
+
function $l(e) {
|
|
2507
2507
|
const t = Reflect.get(e, "lineStyle"), n = Reflect.get(e, "dash") === !0;
|
|
2508
2508
|
return io(t, n);
|
|
2509
2509
|
}
|
|
2510
|
-
function
|
|
2510
|
+
function la(e = "report-line-style-plugin") {
|
|
2511
2511
|
return {
|
|
2512
2512
|
id: e,
|
|
2513
2513
|
beforeDatasetsUpdate(t) {
|
|
2514
2514
|
var o;
|
|
2515
2515
|
(((o = t == null ? void 0 : t.data) == null ? void 0 : o.datasets) ?? []).forEach((a) => {
|
|
2516
2516
|
const s = a;
|
|
2517
|
-
Reflect.set(s, "borderDash", $
|
|
2517
|
+
Reflect.set(s, "borderDash", $l(s));
|
|
2518
2518
|
});
|
|
2519
2519
|
}
|
|
2520
2520
|
};
|
|
2521
2521
|
}
|
|
2522
|
-
const
|
|
2522
|
+
const Bl = /* @__PURE__ */ Be({
|
|
2523
2523
|
__name: "WidgetStackLineChart",
|
|
2524
2524
|
props: /* @__PURE__ */ Ae({
|
|
2525
2525
|
tileIndex: {}
|
|
@@ -2531,7 +2531,7 @@ const Br = /* @__PURE__ */ Be({
|
|
|
2531
2531
|
setup(e) {
|
|
2532
2532
|
const t = e, n = He(e, "modelValue"), o = k(null), a = x(() => n.value.maxTooltipItems), {
|
|
2533
2533
|
isTooltipDetailsSheetOpen: s,
|
|
2534
|
-
tooltipDetailsPayload:
|
|
2534
|
+
tooltipDetailsPayload: l,
|
|
2535
2535
|
tooltipOptions: b,
|
|
2536
2536
|
handleTooltipDetailsSheetVisibility: c,
|
|
2537
2537
|
handleTooltipDetailsHover: S,
|
|
@@ -2542,16 +2542,16 @@ const Br = /* @__PURE__ */ Be({
|
|
|
2542
2542
|
var I;
|
|
2543
2543
|
return ((I = n.value.data) == null ? void 0 : I.xAxis) ?? [];
|
|
2544
2544
|
}), T = x(
|
|
2545
|
-
() => D.value.length === 1 &&
|
|
2546
|
-
), B = x(() => T.value ? ["", D.value[0], ""] : D.value),
|
|
2545
|
+
() => D.value.length === 1 && r.value.length > 0 && r.value.every((I) => I.values.length === 1)
|
|
2546
|
+
), B = x(() => T.value ? ["", D.value[0], ""] : D.value), r = x(() => {
|
|
2547
2547
|
var I;
|
|
2548
2548
|
return ((I = n.value.data) == null ? void 0 : I.datasets) ?? [];
|
|
2549
2549
|
}), { datalabels: g, xCfg: y, yCfg: w, isTransposed: h, legend: f, chartWidth: m, chartHeight: u } = ft(
|
|
2550
2550
|
n.value
|
|
2551
2551
|
), p = x(
|
|
2552
2552
|
() => mt(n.value.isTransposed === !0, !0, b.value)
|
|
2553
|
-
), $ = wt("line"),
|
|
2554
|
-
...
|
|
2553
|
+
), $ = wt("line"), M = la("report-line-style-plugin-stack-line"), L = x(() => r.value.length > 0 ? [
|
|
2554
|
+
...r.value.map((I, V) => {
|
|
2555
2555
|
var ee;
|
|
2556
2556
|
let O = I.values;
|
|
2557
2557
|
T.value && (O = [NaN, O[0], NaN]);
|
|
@@ -2602,15 +2602,15 @@ const Br = /* @__PURE__ */ Be({
|
|
|
2602
2602
|
};
|
|
2603
2603
|
})
|
|
2604
2604
|
] : []), A = ct();
|
|
2605
|
-
function
|
|
2605
|
+
function P() {
|
|
2606
2606
|
return A.extractChartSize(o.value, t.tileIndex) || { width: 0, height: 0 };
|
|
2607
2607
|
}
|
|
2608
2608
|
return Ne(() => {
|
|
2609
2609
|
Fe(() => {
|
|
2610
|
-
|
|
2610
|
+
P();
|
|
2611
2611
|
});
|
|
2612
2612
|
}), pe([L], () => {
|
|
2613
|
-
Fe(() =>
|
|
2613
|
+
Fe(() => P());
|
|
2614
2614
|
}), (I, V) => {
|
|
2615
2615
|
const O = Z("FmLineChart");
|
|
2616
2616
|
return Y(), oe(ke, null, [
|
|
@@ -2632,7 +2632,7 @@ const Br = /* @__PURE__ */ Be({
|
|
|
2632
2632
|
labels: d(f).labels
|
|
2633
2633
|
},
|
|
2634
2634
|
tooltip: p.value,
|
|
2635
|
-
plugins: [d($), d(
|
|
2635
|
+
plugins: [d($), d(M)],
|
|
2636
2636
|
stacked: !0,
|
|
2637
2637
|
datalabels: d(g),
|
|
2638
2638
|
"maintain-aspect-ratio": !1,
|
|
@@ -2643,7 +2643,7 @@ const Br = /* @__PURE__ */ Be({
|
|
|
2643
2643
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "tooltip", "plugins", "datalabels", "style"]),
|
|
2644
2644
|
K(St, {
|
|
2645
2645
|
"model-value": d(s),
|
|
2646
|
-
"details-payload": d(
|
|
2646
|
+
"details-payload": d(l),
|
|
2647
2647
|
"onUpdate:modelValue": d(c),
|
|
2648
2648
|
onValueHover: d(S),
|
|
2649
2649
|
onValueLeave: d(F)
|
|
@@ -2665,16 +2665,16 @@ const Br = /* @__PURE__ */ Be({
|
|
|
2665
2665
|
"col-span-11",
|
|
2666
2666
|
"col-span-12"
|
|
2667
2667
|
];
|
|
2668
|
-
function
|
|
2668
|
+
function Ml(e) {
|
|
2669
2669
|
return e < 12 ? ut[e - 1] : ut[11];
|
|
2670
2670
|
}
|
|
2671
|
-
function
|
|
2671
|
+
function Pl(e) {
|
|
2672
2672
|
return e < 12 ? ut[Math.min(11, e * 2 - 1)] : ut[11];
|
|
2673
2673
|
}
|
|
2674
|
-
function
|
|
2674
|
+
function Rl(e) {
|
|
2675
2675
|
return e < 12 ? ut[Math.min(11, e * 3 - 1)] : ut[11];
|
|
2676
2676
|
}
|
|
2677
|
-
const
|
|
2677
|
+
const zl = /* @__PURE__ */ Be({
|
|
2678
2678
|
__name: "WidgetLinechart",
|
|
2679
2679
|
props: /* @__PURE__ */ Ae({
|
|
2680
2680
|
tileIndex: {}
|
|
@@ -2686,7 +2686,7 @@ const zr = /* @__PURE__ */ Be({
|
|
|
2686
2686
|
setup(e) {
|
|
2687
2687
|
const t = e, n = He(e, "modelValue"), o = k(null), a = x(() => n.value.maxTooltipItems), {
|
|
2688
2688
|
isTooltipDetailsSheetOpen: s,
|
|
2689
|
-
tooltipDetailsPayload:
|
|
2689
|
+
tooltipDetailsPayload: l,
|
|
2690
2690
|
tooltipOptions: b,
|
|
2691
2691
|
handleTooltipDetailsSheetVisibility: c,
|
|
2692
2692
|
handleTooltipDetailsHover: S,
|
|
@@ -2699,13 +2699,13 @@ const zr = /* @__PURE__ */ Be({
|
|
|
2699
2699
|
}), T = x(() => {
|
|
2700
2700
|
var V;
|
|
2701
2701
|
return ((V = n.value.data) == null ? void 0 : V.xAxis) ?? [];
|
|
2702
|
-
}), B = x(() => T.value.length === 1 && D.value.length > 1 && D.value.every((V) => V.values.length === 1 && V.isCompare !== !0)),
|
|
2702
|
+
}), B = x(() => T.value.length === 1 && D.value.length > 1 && D.value.every((V) => V.values.length === 1 && V.isCompare !== !0)), r = x(
|
|
2703
2703
|
() => T.value.length === 1 && D.value.length > 0 && D.value.every((V) => V.values.length === 1)
|
|
2704
|
-
), g = x(() => B.value ? D.value.map((V) => V.name) :
|
|
2704
|
+
), g = x(() => B.value ? D.value.map((V) => V.name) : r.value ? ["", T.value[0], ""] : T.value), { datalabels: y, xCfg: w, yCfg: h, isTransposed: f, legend: m, chartWidth: u, chartHeight: p } = ft(
|
|
2705
2705
|
n.value
|
|
2706
2706
|
), $ = x(
|
|
2707
2707
|
() => mt(n.value.isTransposed === !0, !0, b.value)
|
|
2708
|
-
),
|
|
2708
|
+
), M = wt("line"), L = la("report-line-style-plugin-line"), A = x(() => D.value.length > 0 ? [
|
|
2709
2709
|
...D.value.map((V, O) => {
|
|
2710
2710
|
var ye;
|
|
2711
2711
|
const G = Re({
|
|
@@ -2738,8 +2738,8 @@ const zr = /* @__PURE__ */ Be({
|
|
|
2738
2738
|
let U = V.values;
|
|
2739
2739
|
B.value ? U = D.value.map(
|
|
2740
2740
|
(Ie, i) => i === O ? V.values[0] : Number.NaN
|
|
2741
|
-
) :
|
|
2742
|
-
const ee =
|
|
2741
|
+
) : r.value && (U = [NaN, U[0], NaN]);
|
|
2742
|
+
const ee = r.value || B.value, te = Re({
|
|
2743
2743
|
datasetIndex: O,
|
|
2744
2744
|
isCompare: V.isCompare,
|
|
2745
2745
|
metricCount: n.value.metricCount,
|
|
@@ -2759,9 +2759,9 @@ const zr = /* @__PURE__ */ Be({
|
|
|
2759
2759
|
pointBorderWidth: ee ? 2 : void 0
|
|
2760
2760
|
};
|
|
2761
2761
|
})
|
|
2762
|
-
] : []),
|
|
2762
|
+
] : []), P = ct();
|
|
2763
2763
|
function I() {
|
|
2764
|
-
return
|
|
2764
|
+
return P.extractChartSize(o.value, t.tileIndex) || { width: 0, height: 0 };
|
|
2765
2765
|
}
|
|
2766
2766
|
return Ne(() => {
|
|
2767
2767
|
Fe(() => {
|
|
@@ -2791,7 +2791,7 @@ const zr = /* @__PURE__ */ Be({
|
|
|
2791
2791
|
},
|
|
2792
2792
|
tooltip: $.value,
|
|
2793
2793
|
datalabels: d(y),
|
|
2794
|
-
plugins: [d(
|
|
2794
|
+
plugins: [d(M), d(L)],
|
|
2795
2795
|
"maintain-aspect-ratio": !1,
|
|
2796
2796
|
style: $e({
|
|
2797
2797
|
"--chart-width": d(u) !== void 0 ? d(u) + "px" : "100%",
|
|
@@ -2800,7 +2800,7 @@ const zr = /* @__PURE__ */ Be({
|
|
|
2800
2800
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "tooltip", "datalabels", "plugins", "style"]),
|
|
2801
2801
|
K(St, {
|
|
2802
2802
|
"model-value": d(s),
|
|
2803
|
-
"details-payload": d(
|
|
2803
|
+
"details-payload": d(l),
|
|
2804
2804
|
"onUpdate:modelValue": d(c),
|
|
2805
2805
|
onValueHover: d(S),
|
|
2806
2806
|
onValueLeave: d(F)
|
|
@@ -2808,7 +2808,7 @@ const zr = /* @__PURE__ */ Be({
|
|
|
2808
2808
|
], 64);
|
|
2809
2809
|
};
|
|
2810
2810
|
}
|
|
2811
|
-
}),
|
|
2811
|
+
}), Al = { class: "flex flex-col gap-16" }, Nl = { class: "flex flex-row" }, Hl = /* @__PURE__ */ Be({
|
|
2812
2812
|
__name: "PdfOrientationDialog",
|
|
2813
2813
|
props: /* @__PURE__ */ Ae({
|
|
2814
2814
|
reportType: {},
|
|
@@ -2819,19 +2819,19 @@ const zr = /* @__PURE__ */ Be({
|
|
|
2819
2819
|
}),
|
|
2820
2820
|
emits: ["update:modelValue"],
|
|
2821
2821
|
setup(e) {
|
|
2822
|
-
const { t } = et(), { FmForm: n } = ao, o = e, a = k(), s = He(e, "modelValue"),
|
|
2822
|
+
const { t } = et(), { FmForm: n } = ao, o = e, a = k(), s = He(e, "modelValue"), l = k(!0), b = k(!1), c = on(), { selectedLocationIds: S, dateRange: F, timeRange: D } = Ee(gt()), T = k(Ot.PORTRAIT);
|
|
2823
2823
|
function B() {
|
|
2824
2824
|
var g;
|
|
2825
2825
|
(g = a.value) == null || g.validateInputs();
|
|
2826
2826
|
}
|
|
2827
|
-
async function
|
|
2827
|
+
async function r() {
|
|
2828
2828
|
b.value = !0;
|
|
2829
2829
|
try {
|
|
2830
2830
|
o.index != null && await Un({
|
|
2831
2831
|
reportType: o.reportType,
|
|
2832
2832
|
index: o.index,
|
|
2833
2833
|
orientationTypes: [T.value],
|
|
2834
|
-
isCombinedLocationLayout:
|
|
2834
|
+
isCombinedLocationLayout: l.value,
|
|
2835
2835
|
timeRange: D.value,
|
|
2836
2836
|
dateRange: F.value,
|
|
2837
2837
|
locationIds: S.value
|
|
@@ -2857,10 +2857,10 @@ const zr = /* @__PURE__ */ Be({
|
|
|
2857
2857
|
K(d(n), {
|
|
2858
2858
|
ref_key: "form",
|
|
2859
2859
|
ref: a,
|
|
2860
|
-
onValidationSuccess:
|
|
2860
|
+
onValidationSuccess: r
|
|
2861
2861
|
}, {
|
|
2862
2862
|
default: ce(() => [
|
|
2863
|
-
j("div",
|
|
2863
|
+
j("div", Al, [
|
|
2864
2864
|
K(h, {
|
|
2865
2865
|
modelValue: T.value,
|
|
2866
2866
|
"onUpdate:modelValue": y[0] || (y[0] = (u) => T.value = u)
|
|
@@ -2878,7 +2878,7 @@ const zr = /* @__PURE__ */ Be({
|
|
|
2878
2878
|
_: 1
|
|
2879
2879
|
}, 8, ["modelValue"])
|
|
2880
2880
|
]),
|
|
2881
|
-
j("div",
|
|
2881
|
+
j("div", Nl, [
|
|
2882
2882
|
y[4] || (y[4] = j("div", { class: "grow" }, null, -1)),
|
|
2883
2883
|
K(f, {
|
|
2884
2884
|
label: d(t)("report.common.cancel"),
|
|
@@ -2902,9 +2902,9 @@ const zr = /* @__PURE__ */ Be({
|
|
|
2902
2902
|
};
|
|
2903
2903
|
}
|
|
2904
2904
|
});
|
|
2905
|
-
function
|
|
2905
|
+
function Wl(e) {
|
|
2906
2906
|
const { containerRef: t, stickyOffset: n = k(0), enabled: o = k(!0) } = e;
|
|
2907
|
-
let a = null, s = null,
|
|
2907
|
+
let a = null, s = null, l = null, b = null, c = null, S = null;
|
|
2908
2908
|
function F() {
|
|
2909
2909
|
return t.value ? t.value.querySelector("table") : null;
|
|
2910
2910
|
}
|
|
@@ -2922,24 +2922,24 @@ function Wr(e) {
|
|
|
2922
2922
|
function T() {
|
|
2923
2923
|
var $;
|
|
2924
2924
|
const u = [];
|
|
2925
|
-
t.value && t.value.querySelectorAll("div,section,main,article,aside").forEach((
|
|
2926
|
-
if (
|
|
2927
|
-
const L = window.getComputedStyle(
|
|
2928
|
-
(L.overflowX === "auto" || L.overflowX === "scroll") && u.push(
|
|
2925
|
+
t.value && t.value.querySelectorAll("div,section,main,article,aside").forEach((M) => {
|
|
2926
|
+
if (M.scrollWidth > M.clientWidth) {
|
|
2927
|
+
const L = window.getComputedStyle(M);
|
|
2928
|
+
(L.overflowX === "auto" || L.overflowX === "scroll") && u.push(M);
|
|
2929
2929
|
}
|
|
2930
2930
|
});
|
|
2931
2931
|
let p = ($ = t.value) == null ? void 0 : $.parentElement;
|
|
2932
2932
|
for (; p; ) {
|
|
2933
2933
|
if (p.scrollWidth > p.clientWidth) {
|
|
2934
|
-
const
|
|
2935
|
-
(
|
|
2934
|
+
const M = window.getComputedStyle(p);
|
|
2935
|
+
(M.overflowX === "auto" || M.overflowX === "scroll") && u.push(p);
|
|
2936
2936
|
}
|
|
2937
2937
|
p = p.parentElement;
|
|
2938
2938
|
}
|
|
2939
2939
|
return u;
|
|
2940
2940
|
}
|
|
2941
2941
|
function B() {
|
|
2942
|
-
if (f(), !o.value || !t.value || (s = F(), !s) || (
|
|
2942
|
+
if (f(), !o.value || !t.value || (s = F(), !s) || (l = s.querySelector("thead"), !l)) return;
|
|
2943
2943
|
a = document.createElement("div"), a.className = "sticky-header-clone", a.style.cssText = `
|
|
2944
2944
|
position: fixed;
|
|
2945
2945
|
top: ${n.value}px;
|
|
@@ -2958,16 +2958,16 @@ function Wr(e) {
|
|
|
2958
2958
|
border-collapse: collapse;
|
|
2959
2959
|
pointer-events: auto;
|
|
2960
2960
|
`;
|
|
2961
|
-
const p =
|
|
2962
|
-
p.style.cssText = "pointer-events: auto;", l
|
|
2961
|
+
const p = l.cloneNode(!0);
|
|
2962
|
+
p.style.cssText = "pointer-events: auto;", r(l, p), u.appendChild(p), a.appendChild(u), document.body.appendChild(a), y(), w(), h(), g();
|
|
2963
2963
|
}
|
|
2964
|
-
function
|
|
2965
|
-
const $ = u.querySelectorAll("th, td"),
|
|
2964
|
+
function r(u, p) {
|
|
2965
|
+
const $ = u.querySelectorAll("th, td"), M = p.querySelectorAll("th, td");
|
|
2966
2966
|
$.forEach((L, A) => {
|
|
2967
|
-
const
|
|
2968
|
-
if (!
|
|
2967
|
+
const P = M[A];
|
|
2968
|
+
if (!P) return;
|
|
2969
2969
|
const I = L, V = window.getComputedStyle(I);
|
|
2970
|
-
Object.assign(
|
|
2970
|
+
Object.assign(P.style, {
|
|
2971
2971
|
width: `${I.offsetWidth}px`,
|
|
2972
2972
|
minWidth: `${I.offsetWidth}px`,
|
|
2973
2973
|
maxWidth: `${I.offsetWidth}px`,
|
|
@@ -2982,7 +2982,7 @@ function Wr(e) {
|
|
|
2982
2982
|
boxSizing: "border-box",
|
|
2983
2983
|
cursor: V.cursor || "pointer",
|
|
2984
2984
|
pointerEvents: "auto"
|
|
2985
|
-
}),
|
|
2985
|
+
}), P.onclick = (O) => {
|
|
2986
2986
|
O.preventDefault(), O.stopPropagation();
|
|
2987
2987
|
const G = I.querySelector(
|
|
2988
2988
|
"button, a, [role='button']"
|
|
@@ -2992,8 +2992,8 @@ function Wr(e) {
|
|
|
2992
2992
|
});
|
|
2993
2993
|
}
|
|
2994
2994
|
function g() {
|
|
2995
|
-
if (!a || !s || !
|
|
2996
|
-
const u = t.value.getBoundingClientRect(), p = s.getBoundingClientRect(), $ =
|
|
2995
|
+
if (!a || !s || !l || !t.value) return;
|
|
2996
|
+
const u = t.value.getBoundingClientRect(), p = s.getBoundingClientRect(), $ = l.getBoundingClientRect(), M = D(), L = M == null ? void 0 : M.getBoundingClientRect(), A = n.value > 0 ? n.value : (L == null ? void 0 : L.top) ?? 0;
|
|
2997
2997
|
if (!(p.top < A && p.bottom > A + $.height)) {
|
|
2998
2998
|
a.style.visibility = "hidden";
|
|
2999
2999
|
return;
|
|
@@ -3008,8 +3008,8 @@ function Wr(e) {
|
|
|
3008
3008
|
var $;
|
|
3009
3009
|
c = () => requestAnimationFrame(g), window.addEventListener("scroll", c, { passive: !0 });
|
|
3010
3010
|
const u = D();
|
|
3011
|
-
u && u.addEventListener("scroll", c, { passive: !0 }), T().forEach((
|
|
3012
|
-
c &&
|
|
3011
|
+
u && u.addEventListener("scroll", c, { passive: !0 }), T().forEach((M) => {
|
|
3012
|
+
c && M.addEventListener("scroll", c, { passive: !0 });
|
|
3013
3013
|
});
|
|
3014
3014
|
let p = ($ = t.value) == null ? void 0 : $.parentElement;
|
|
3015
3015
|
for (; p; )
|
|
@@ -3017,9 +3017,9 @@ function Wr(e) {
|
|
|
3017
3017
|
}
|
|
3018
3018
|
function w() {
|
|
3019
3019
|
b = new ResizeObserver(() => {
|
|
3020
|
-
if (
|
|
3020
|
+
if (l && a) {
|
|
3021
3021
|
const u = a.querySelector("thead");
|
|
3022
|
-
u && l
|
|
3022
|
+
u && r(l, u);
|
|
3023
3023
|
const p = a.querySelector("table");
|
|
3024
3024
|
p && s && (p.style.width = `${s.offsetWidth}px`);
|
|
3025
3025
|
}
|
|
@@ -3027,16 +3027,16 @@ function Wr(e) {
|
|
|
3027
3027
|
}), t.value && b.observe(t.value), s && b.observe(s);
|
|
3028
3028
|
}
|
|
3029
3029
|
function h() {
|
|
3030
|
-
if (!
|
|
3030
|
+
if (!l) return;
|
|
3031
3031
|
const u = Xt(() => B(), 100), p = () => {
|
|
3032
|
-
if (
|
|
3032
|
+
if (l && a) {
|
|
3033
3033
|
const $ = a.querySelector("thead");
|
|
3034
|
-
$ && l
|
|
3034
|
+
$ && r(l, $), g();
|
|
3035
3035
|
}
|
|
3036
3036
|
};
|
|
3037
3037
|
S = new MutationObserver(($) => {
|
|
3038
3038
|
$.some((L) => L.type === "childList" ? L.addedNodes.length > 0 || L.removedNodes.length > 0 : !1) ? u() : p();
|
|
3039
|
-
}), S.observe(
|
|
3039
|
+
}), S.observe(l, {
|
|
3040
3040
|
childList: !0,
|
|
3041
3041
|
subtree: !0,
|
|
3042
3042
|
attributes: !0,
|
|
@@ -3048,15 +3048,15 @@ function Wr(e) {
|
|
|
3048
3048
|
if (a && (a.remove(), a = null), c) {
|
|
3049
3049
|
window.removeEventListener("scroll", c);
|
|
3050
3050
|
const p = D();
|
|
3051
|
-
p && p.removeEventListener("scroll", c), T().forEach((
|
|
3052
|
-
c &&
|
|
3051
|
+
p && p.removeEventListener("scroll", c), T().forEach((M) => {
|
|
3052
|
+
c && M.removeEventListener("scroll", c);
|
|
3053
3053
|
});
|
|
3054
3054
|
let $ = (u = t.value) == null ? void 0 : u.parentElement;
|
|
3055
3055
|
for (; $; )
|
|
3056
3056
|
$.removeEventListener("scroll", c), $ = $.parentElement;
|
|
3057
3057
|
c = null;
|
|
3058
3058
|
}
|
|
3059
|
-
b && (b.disconnect(), b = null), S && (S.disconnect(), S = null), s = null,
|
|
3059
|
+
b && (b.disconnect(), b = null), S && (S.disconnect(), S = null), s = null, l = null;
|
|
3060
3060
|
}
|
|
3061
3061
|
function m() {
|
|
3062
3062
|
B();
|
|
@@ -3073,13 +3073,13 @@ function Wr(e) {
|
|
|
3073
3073
|
f();
|
|
3074
3074
|
}), { refresh: m, cleanup: f };
|
|
3075
3075
|
}
|
|
3076
|
-
const
|
|
3076
|
+
const Ol = {
|
|
3077
3077
|
key: 1,
|
|
3078
3078
|
class: "grow"
|
|
3079
|
-
},
|
|
3079
|
+
}, El = {
|
|
3080
3080
|
key: 2,
|
|
3081
3081
|
class: "flex"
|
|
3082
|
-
},
|
|
3082
|
+
}, Cr = /* @__PURE__ */ Be({
|
|
3083
3083
|
__name: "DynamicWidget",
|
|
3084
3084
|
props: /* @__PURE__ */ Ae({
|
|
3085
3085
|
index: {
|
|
@@ -3110,10 +3110,10 @@ const Or = {
|
|
|
3110
3110
|
}),
|
|
3111
3111
|
emits: /* @__PURE__ */ Ae(["update:breakdown-dimension-values"], ["update:modelValue"]),
|
|
3112
3112
|
setup(e, { emit: t }) {
|
|
3113
|
-
const n = k(!0), o = He(e, "modelValue"), a = o.value.widget.config, { t: s, te:
|
|
3113
|
+
const n = k(!0), o = He(e, "modelValue"), a = o.value.widget.config, { t: s, te: l, locale: b } = et(), c = e, S = t, F = k(null), D = x(() => c.stickyHeaderOffset), T = x(() => o.value.widget.type === q.Table), B = x(() => {
|
|
3114
3114
|
var v;
|
|
3115
3115
|
return (v = F.value) == null ? void 0 : v.$el;
|
|
3116
|
-
}), { refresh:
|
|
3116
|
+
}), { refresh: r } = Wl({
|
|
3117
3117
|
containerRef: B,
|
|
3118
3118
|
stickyOffset: D,
|
|
3119
3119
|
enabled: T
|
|
@@ -3127,7 +3127,7 @@ const Or = {
|
|
|
3127
3127
|
return -1;
|
|
3128
3128
|
}), f = x(() => h.value !== 0), m = x(
|
|
3129
3129
|
() => h.value != Ye.value.length - 1
|
|
3130
|
-
), u = k(a.showTitle ?? !0), p = k(a.titleFontSize ?? 14), $ = k(a.titleBold ?? !1),
|
|
3130
|
+
), u = k(a.showTitle ?? !0), p = k(a.titleFontSize ?? 14), $ = k(a.titleBold ?? !1), M = k(a.titleItalic ?? !1), L = k(a.titleUnderline ?? !1), A = k(a.chartWidth ?? void 0), P = k(a.chartHeight ?? void 0), I = k(
|
|
3131
3131
|
Array.isArray(a.chartColors) ? [...a.chartColors] : void 0
|
|
3132
3132
|
), V = k(
|
|
3133
3133
|
Array.isArray(a.chartColorLayers) ? [...a.chartColorLayers] : void 0
|
|
@@ -3137,7 +3137,7 @@ const Or = {
|
|
|
3137
3137
|
Array.isArray(a.chartBreakdownDimensionValues) ? [...a.chartBreakdownDimensionValues] : void 0
|
|
3138
3138
|
), _ = k(a.chartUseSecondaryMetricShades ?? !0), C = k(a.chartColorBinding), N = k(
|
|
3139
3139
|
Array.isArray(a.lineStyles) ? [...a.lineStyles] : void 0
|
|
3140
|
-
), R = k(a.lineStyleBinding), W = k(a.showLabel ?? !1), U = k(a.labelAlign ?? Kt.center), ee = k(a.labelAnchor ?? jt.center), te = k(a.labelRotation ?? 0), ve = k(a.labelOffset ?? 0), ye = k(a.labelFontSize ?? 12), Ie = x(() => a.showSearchBar), i = k(a.showX ?? !0), H = k(a.xPosition ?? Jt.bottom), X = k(a.showXGrid ?? !1), E = k(a.showXTick ?? !0), ne = k(a.xTickFontSize ?? 12), de = k(a.showXTitle ?? !1), xe = k(a.xTitle ?? ""), be = k(a.xTitleFontSize ?? 12), se = k(a.showY ?? !0), J = k(a.yPosition ?? Zt.left), Q = k(a.showYGrid ?? !1), z = k(a.showYTick ?? !0),
|
|
3140
|
+
), R = k(a.lineStyleBinding), W = k(a.showLabel ?? !1), U = k(a.labelAlign ?? Kt.center), ee = k(a.labelAnchor ?? jt.center), te = k(a.labelRotation ?? 0), ve = k(a.labelOffset ?? 0), ye = k(a.labelFontSize ?? 12), Ie = x(() => a.showSearchBar), i = k(a.showX ?? !0), H = k(a.xPosition ?? Jt.bottom), X = k(a.showXGrid ?? !1), E = k(a.showXTick ?? !0), ne = k(a.xTickFontSize ?? 12), de = k(a.showXTitle ?? !1), xe = k(a.xTitle ?? ""), be = k(a.xTitleFontSize ?? 12), se = k(a.showY ?? !0), J = k(a.yPosition ?? Zt.left), Q = k(a.showYGrid ?? !1), z = k(a.showYTick ?? !0), le = k(a.yTickFontSize ?? 12), re = k(a.showYTitle ?? !1), ge = k(a.yTitle ?? ""), me = k(a.yTitleFontSize ?? 12), ue = k(a.showLegend ?? void 0), Te = k(a.legendPosition ?? Qt.top), De = k(a.usePointStyle ?? !0), qe = k(a.legendFontSize), kt = k(a.legendColor ?? "#6b6b6b"), ie = k(a.legendMaxLines), cn = k(a.legendMaxHeight), dn = k(a.legendMaxWidth), mn = k(a.maxTooltipItems), fn = k(a.stackBarOverlap ?? !1), pn = k(a.rowHeight ?? 0), hn = k(a.colWidths ?? []), sa = /* @__PURE__ */ new Set([
|
|
3141
3141
|
q.BarChart,
|
|
3142
3142
|
q.StackBarChart,
|
|
3143
3143
|
q.ClusteredStackBarChart,
|
|
@@ -3151,33 +3151,33 @@ const Or = {
|
|
|
3151
3151
|
() => (Se == null ? void 0 : Se.value) > pt("sm")[1] && (Se == null ? void 0 : Se.value) <= pt("md")[1]
|
|
3152
3152
|
), ca = x(() => (Se == null ? void 0 : Se.value) > pt("md")[1]), da = x(() => {
|
|
3153
3153
|
const v = o.value.size.width;
|
|
3154
|
-
return ca.value || ua.value ?
|
|
3154
|
+
return ca.value || ua.value ? Ml(v) : ia.value ? Pl(v) : Rl(v);
|
|
3155
3155
|
}), Tt = x(
|
|
3156
|
-
() =>
|
|
3156
|
+
() => lo.find((v) => v.type === o.value.widget.type)
|
|
3157
3157
|
), nt = Xt(() => {
|
|
3158
3158
|
var v;
|
|
3159
3159
|
vn.value = Sa((v = F.value) == null ? void 0 : v.$el.offsetWidth), y.value = vt();
|
|
3160
3160
|
}), ma = x(() => {
|
|
3161
|
-
if (
|
|
3161
|
+
if (ro(fe.value.type, at.value))
|
|
3162
3162
|
switch (o.value.widget.type) {
|
|
3163
3163
|
case q.BarChart:
|
|
3164
|
-
return
|
|
3164
|
+
return dl;
|
|
3165
3165
|
case q.StackBarChart:
|
|
3166
|
-
return
|
|
3166
|
+
return Il;
|
|
3167
3167
|
case q.ClusteredStackBarChart:
|
|
3168
|
-
return
|
|
3168
|
+
return Vl;
|
|
3169
3169
|
case q.LineChart:
|
|
3170
|
-
return
|
|
3170
|
+
return zl;
|
|
3171
3171
|
case q.StackLineChart:
|
|
3172
|
-
return
|
|
3172
|
+
return Bl;
|
|
3173
3173
|
case q.Circular:
|
|
3174
|
-
return
|
|
3174
|
+
return ml;
|
|
3175
3175
|
case q.Scorecard:
|
|
3176
|
-
return
|
|
3176
|
+
return bl;
|
|
3177
3177
|
case q.Spacer:
|
|
3178
|
-
return
|
|
3178
|
+
return xl;
|
|
3179
3179
|
case q.Table:
|
|
3180
|
-
return
|
|
3180
|
+
return Dl;
|
|
3181
3181
|
default:
|
|
3182
3182
|
return Yt;
|
|
3183
3183
|
}
|
|
@@ -3210,8 +3210,8 @@ const Or = {
|
|
|
3210
3210
|
return v;
|
|
3211
3211
|
const ae = (fe.value.config.joinDatasources ?? []).reduce(
|
|
3212
3212
|
(ze, Xe) => {
|
|
3213
|
-
var
|
|
3214
|
-
return ze + (((
|
|
3213
|
+
var Me;
|
|
3214
|
+
return ze + (((Me = Xe.metrics) == null ? void 0 : Me.length) ?? 0);
|
|
3215
3215
|
},
|
|
3216
3216
|
0
|
|
3217
3217
|
);
|
|
@@ -3223,9 +3223,9 @@ const Or = {
|
|
|
3223
3223
|
showTitle: u.value,
|
|
3224
3224
|
titleFontSize: p.value,
|
|
3225
3225
|
titleBold: $.value,
|
|
3226
|
-
titleItalic:
|
|
3226
|
+
titleItalic: M.value,
|
|
3227
3227
|
titleUnderline: L.value,
|
|
3228
|
-
chartHeight:
|
|
3228
|
+
chartHeight: P.value,
|
|
3229
3229
|
chartWidth: A.value,
|
|
3230
3230
|
chartColors: I.value,
|
|
3231
3231
|
chartColorLayers: V.value,
|
|
@@ -3255,9 +3255,9 @@ const Or = {
|
|
|
3255
3255
|
showYGrid: Q.value,
|
|
3256
3256
|
showYTick: z.value,
|
|
3257
3257
|
yTitle: ge.value,
|
|
3258
|
-
showYTitle:
|
|
3258
|
+
showYTitle: re.value,
|
|
3259
3259
|
yTitleFontSize: me.value,
|
|
3260
|
-
yTickFontSize:
|
|
3260
|
+
yTickFontSize: le.value,
|
|
3261
3261
|
isTransposed: fe.value.config.isTransposed,
|
|
3262
3262
|
showLegend: ue.value,
|
|
3263
3263
|
legendPosition: Te.value,
|
|
@@ -3301,10 +3301,10 @@ const Or = {
|
|
|
3301
3301
|
return ae.sort(
|
|
3302
3302
|
(Ce, ze) => (v.rowIds || []).indexOf(Et(Ce)) - (v.rowIds || []).indexOf(Et(ze))
|
|
3303
3303
|
), [
|
|
3304
|
-
{ label: Ke(s,
|
|
3305
|
-
{ label: Ke(s,
|
|
3304
|
+
{ label: Ke(s, l, "None", "other"), value: "none" },
|
|
3305
|
+
{ label: Ke(s, l, "Grand Total", "other"), value: 0 },
|
|
3306
3306
|
...[...ae].slice(0, ae.length - 1).map((Ce, ze) => ({
|
|
3307
|
-
label: Ke(s,
|
|
3307
|
+
label: Ke(s, l, Ce.label, "other"),
|
|
3308
3308
|
value: ze + 1
|
|
3309
3309
|
}))
|
|
3310
3310
|
];
|
|
@@ -3313,7 +3313,7 @@ const Or = {
|
|
|
3313
3313
|
}), Ye = x(() => {
|
|
3314
3314
|
const { config: v } = fe.value;
|
|
3315
3315
|
return v.isDrillable ? v.dimensions.map((ae) => ({
|
|
3316
|
-
label: Ke(s,
|
|
3316
|
+
label: Ke(s, l, ae.label, "other"),
|
|
3317
3317
|
value: Et(ae)
|
|
3318
3318
|
})) : [];
|
|
3319
3319
|
}), wa = x(() => {
|
|
@@ -3328,10 +3328,10 @@ const Or = {
|
|
|
3328
3328
|
return [];
|
|
3329
3329
|
const Ce = [], ze = /* @__PURE__ */ new Set();
|
|
3330
3330
|
for (const Xe of ae) {
|
|
3331
|
-
const
|
|
3332
|
-
if (!
|
|
3331
|
+
const Me = typeof (Xe == null ? void 0 : Xe.name) == "string" ? Xe.name : "";
|
|
3332
|
+
if (!Me)
|
|
3333
3333
|
continue;
|
|
3334
|
-
const Ft =
|
|
3334
|
+
const Ft = Me.lastIndexOf(" - "), ot = Ft >= 0 ? Me.slice(0, Ft) : Me;
|
|
3335
3335
|
!ot || ze.has(ot) || (ze.add(ot), Ce.push(ot));
|
|
3336
3336
|
}
|
|
3337
3337
|
return Ce;
|
|
@@ -3339,7 +3339,7 @@ const Or = {
|
|
|
3339
3339
|
pe(
|
|
3340
3340
|
() => o.value.widget.config,
|
|
3341
3341
|
(v) => {
|
|
3342
|
-
g.value = v.rollup, u.value = v.showTitle ?? !0, p.value = v.titleFontSize ?? 14, $.value = v.titleBold ?? !1,
|
|
3342
|
+
g.value = v.rollup, u.value = v.showTitle ?? !0, p.value = v.titleFontSize ?? 14, $.value = v.titleBold ?? !1, M.value = v.titleItalic ?? !1, L.value = v.titleUnderline ?? !1, P.value = v.chartHeight ?? void 0, A.value = v.chartWidth ?? void 0, I.value = Array.isArray(v.chartColors) ? [...v.chartColors] : void 0, V.value = Array.isArray(v.chartColorLayers) ? [...v.chartColorLayers] : void 0, O.value = Array.isArray(v.chartBreakdownColors) ? [...v.chartBreakdownColors] : void 0, G.value = Array.isArray(v.chartBreakdownDimensionValues) ? [...v.chartBreakdownDimensionValues] : void 0, _.value = v.chartUseSecondaryMetricShades ?? !0, C.value = v.chartColorBinding, N.value = Array.isArray(v.lineStyles) ? [...v.lineStyles] : void 0, R.value = v.lineStyleBinding, W.value = v.showLabel ?? !1, U.value = v.labelAlign ?? Kt.center, ee.value = v.labelAnchor ?? jt.center, te.value = v.labelRotation ?? 0, ve.value = v.labelOffset ?? 0, ye.value = v.labelFontSize ?? 12, i.value = v.showX ?? !0, H.value = v.xPosition ?? Jt.bottom, X.value = v.showXGrid ?? !1, E.value = v.showXTick ?? !0, ne.value = v.xTickFontSize ?? 12, de.value = v.showXTitle ?? !1, xe.value = v.xTitle ?? "", be.value = v.xTitleFontSize ?? 12, se.value = v.showY ?? !0, J.value = v.yPosition ?? Zt.left, Q.value = v.showYGrid ?? !1, z.value = v.showYTick ?? !0, le.value = v.yTickFontSize ?? 12, re.value = v.showYTitle ?? !1, ge.value = v.yTitle ?? "", me.value = v.yTitleFontSize ?? 12, ue.value = v.showLegend ?? void 0, Te.value = v.legendPosition ?? Qt.top, De.value = v.usePointStyle ?? !0, qe.value = v.legendFontSize, kt.value = v.legendColor ?? "#6b6b6b", ie.value = v.legendMaxLines, cn.value = v.legendMaxHeight, dn.value = v.legendMaxWidth, mn.value = v.maxTooltipItems, fn.value = v.stackBarOverlap ?? !1, pn.value = v.rowHeight ?? 0, hn.value = v.colWidths ?? [], y.value = vt();
|
|
3343
3343
|
},
|
|
3344
3344
|
{ deep: !0 }
|
|
3345
3345
|
), pe([() => g.value], () => {
|
|
@@ -3383,7 +3383,7 @@ const Or = {
|
|
|
3383
3383
|
try {
|
|
3384
3384
|
n.value = !0, Lt && Lt.abort(), Lt = new AbortController();
|
|
3385
3385
|
const v = Lt.signal, ae = Wt.value, Ce = await Xt(qn, 500)(fe.value, v, o.value.id);
|
|
3386
|
-
Wt.value === ae && (at.value = Ce, sa.has(fe.value.type) && S("update:breakdown-dimension-values", xa(Ce)), y.value = vt(), setTimeout(() =>
|
|
3386
|
+
Wt.value === ae && (at.value = Ce, sa.has(fe.value.type) && S("update:breakdown-dimension-values", xa(Ce)), y.value = vt(), setTimeout(() => r(), 100)), n.value = !1;
|
|
3387
3387
|
} catch (v) {
|
|
3388
3388
|
v.code !== "ERR_CANCELED" && (at.value = null, xn.open({ message: `Invalid chart ${fe.value.type}`, type: "error" }), console.log(v), n.value = !1);
|
|
3389
3389
|
}
|
|
@@ -3408,22 +3408,22 @@ const Or = {
|
|
|
3408
3408
|
const v = h.value + 1;
|
|
3409
3409
|
v >= 0 && v < Ye.value.length && (w.value = Ye.value[v].value);
|
|
3410
3410
|
}
|
|
3411
|
-
const _n = k(
|
|
3411
|
+
const _n = k(rt.EXCEL), kn = k(), Ta = Object.values(rt).map((v) => ({
|
|
3412
3412
|
label: Oa(v),
|
|
3413
3413
|
value: v,
|
|
3414
3414
|
onClick: async () => {
|
|
3415
|
-
v ===
|
|
3415
|
+
v === rt.EXCEL || v === rt.PDFFULLSIZE || v === rt.PDFRECEIPT ? await Un({
|
|
3416
3416
|
reportType: v,
|
|
3417
3417
|
index: c.index,
|
|
3418
3418
|
isCombinedLocationLayout: ga.value,
|
|
3419
3419
|
timeRange: yn.value,
|
|
3420
3420
|
dateRange: gn.value,
|
|
3421
3421
|
locationIds: Ht.value
|
|
3422
|
-
}) : v ===
|
|
3422
|
+
}) : v === rt.PDF && (_n.value = v, kn.value = c.index, At.value = !0);
|
|
3423
3423
|
}
|
|
3424
3424
|
})), La = fe.value.type === q.Spacer ? "flat" : "outlined", Fa = fe.value.type === q.Spacer ? "p-0" : "p-16";
|
|
3425
3425
|
return (v, ae) => {
|
|
3426
|
-
const Ce = Z("FmTooltip"), ze = Z("FmSearch"), Xe = Z("FmCheckbox"),
|
|
3426
|
+
const Ce = Z("FmTooltip"), ze = Z("FmSearch"), Xe = Z("FmCheckbox"), Me = Z("FmButton"), Ft = Z("FmSelect"), ot = Z("FmMenuItem"), Da = Z("FmMenu"), Ia = Z("FmForm"), Va = Z("FmCircularProgress"), $a = Z("FmCard");
|
|
3427
3427
|
return Y(), he($a, {
|
|
3428
3428
|
ref_key: "tileCard",
|
|
3429
3429
|
ref: F,
|
|
@@ -3431,9 +3431,9 @@ const Or = {
|
|
|
3431
3431
|
variant: d(La)
|
|
3432
3432
|
}, {
|
|
3433
3433
|
default: ce(() => [
|
|
3434
|
-
K(
|
|
3434
|
+
K(Hl, {
|
|
3435
3435
|
modelValue: At.value,
|
|
3436
|
-
"onUpdate:modelValue": ae[0] || (ae[0] = (
|
|
3436
|
+
"onUpdate:modelValue": ae[0] || (ae[0] = (lt) => At.value = lt),
|
|
3437
3437
|
"report-type": _n.value,
|
|
3438
3438
|
index: kn.value
|
|
3439
3439
|
}, null, 8, ["modelValue", "report-type", "index"]),
|
|
@@ -3444,13 +3444,13 @@ const Or = {
|
|
|
3444
3444
|
(Y(), he(za(ma.value), {
|
|
3445
3445
|
key: y.value,
|
|
3446
3446
|
modelValue: Cn.value,
|
|
3447
|
-
"onUpdate:modelValue": ae[4] || (ae[4] = (
|
|
3447
|
+
"onUpdate:modelValue": ae[4] || (ae[4] = (lt) => Cn.value = lt),
|
|
3448
3448
|
"tile-index": c.index
|
|
3449
3449
|
}, {
|
|
3450
3450
|
menu: ce(() => [
|
|
3451
3451
|
K(Ia, { class: "flex items-center gap-2" }, {
|
|
3452
3452
|
default: ce(() => {
|
|
3453
|
-
var
|
|
3453
|
+
var lt, Tn, Ln, Fn;
|
|
3454
3454
|
return [
|
|
3455
3455
|
K(Ce, {
|
|
3456
3456
|
variant: "plain",
|
|
@@ -3466,23 +3466,23 @@ const Or = {
|
|
|
3466
3466
|
style: $e({
|
|
3467
3467
|
fontSize: p.value + "px",
|
|
3468
3468
|
fontWeight: $.value ? "bold" : "normal",
|
|
3469
|
-
fontStyle:
|
|
3469
|
+
fontStyle: M.value ? "italic" : "normal",
|
|
3470
3470
|
textDecoration: L.value ? "underline" : "none"
|
|
3471
3471
|
}),
|
|
3472
3472
|
class: Qe(["text-fm-color-typo-secondary line-clamp-1", [
|
|
3473
3473
|
p.value <= 18 ? "fm-typo-en-body-md-400" : "",
|
|
3474
3474
|
fe.value.description ? "border-b-2 border-dashed border-gray-300" : ""
|
|
3475
3475
|
]])
|
|
3476
|
-
}, Le(d(Ke)(d(s), d(
|
|
3476
|
+
}, Le(d(Ke)(d(s), d(l), fe.value.title, "other")), 7)) : Ve("", !0)
|
|
3477
3477
|
]),
|
|
3478
3478
|
_: 1
|
|
3479
3479
|
}, 8, ["content", "disabled"]),
|
|
3480
|
-
(
|
|
3480
|
+
(lt = Tt.value) != null && lt.showSearchBar ? (Y(), he(ze, {
|
|
3481
3481
|
key: 0,
|
|
3482
3482
|
modelValue: Nt.value,
|
|
3483
3483
|
"onUpdate:modelValue": ae[1] || (ae[1] = (We) => Nt.value = We),
|
|
3484
3484
|
class: "grow"
|
|
3485
|
-
}, null, 8, ["modelValue"])) : (Y(), oe("div",
|
|
3485
|
+
}, null, 8, ["modelValue"])) : (Y(), oe("div", Ol)),
|
|
3486
3486
|
Aa(K(Xe, {
|
|
3487
3487
|
modelValue: W.value,
|
|
3488
3488
|
"onUpdate:modelValue": ae[2] || (ae[2] = (We) => W.value = We),
|
|
@@ -3491,14 +3491,14 @@ const Or = {
|
|
|
3491
3491
|
}, null, 8, ["modelValue"]), [
|
|
3492
3492
|
[Na, (Tn = Tt.value) == null ? void 0 : Tn.showLabel]
|
|
3493
3493
|
]),
|
|
3494
|
-
(Ln = Tt.value) != null && Ln.showDrillDimension && Ye.value.length > 0 ? (Y(), oe("div",
|
|
3495
|
-
K(
|
|
3494
|
+
(Ln = Tt.value) != null && Ln.showDrillDimension && Ye.value.length > 0 ? (Y(), oe("div", El, [
|
|
3495
|
+
K(Me, {
|
|
3496
3496
|
icon: "arrow_upward",
|
|
3497
3497
|
variant: "tertiary",
|
|
3498
3498
|
disabled: !f.value,
|
|
3499
3499
|
onClick: _a
|
|
3500
3500
|
}, null, 8, ["disabled"]),
|
|
3501
|
-
K(
|
|
3501
|
+
K(Me, {
|
|
3502
3502
|
icon: "arrow_downward",
|
|
3503
3503
|
variant: "tertiary",
|
|
3504
3504
|
disabled: !m.value,
|
|
@@ -3517,7 +3517,7 @@ const Or = {
|
|
|
3517
3517
|
shift: !0
|
|
3518
3518
|
}, {
|
|
3519
3519
|
"menu-button": ce(() => [
|
|
3520
|
-
K(
|
|
3520
|
+
K(Me, {
|
|
3521
3521
|
icon: "more_vert",
|
|
3522
3522
|
variant: "tertiary"
|
|
3523
3523
|
})
|
|
@@ -3546,22 +3546,22 @@ const Or = {
|
|
|
3546
3546
|
}
|
|
3547
3547
|
});
|
|
3548
3548
|
var Je = /* @__PURE__ */ ((e) => (e.Select = "Select", e.TextField = "TextField", e.Timestamp = "Timestamp", e))(Je || {});
|
|
3549
|
-
function
|
|
3549
|
+
function Ul(e) {
|
|
3550
3550
|
let t = !1, n = 1;
|
|
3551
3551
|
switch (e) {
|
|
3552
|
-
case
|
|
3553
|
-
case
|
|
3554
|
-
case
|
|
3555
|
-
case
|
|
3552
|
+
case Pe.Equal:
|
|
3553
|
+
case Pe.NotEqual:
|
|
3554
|
+
case Pe.Like:
|
|
3555
|
+
case Pe.NotLike:
|
|
3556
3556
|
t = !1, n = 1;
|
|
3557
3557
|
break;
|
|
3558
|
-
case
|
|
3559
|
-
case
|
|
3560
|
-
case
|
|
3561
|
-
case
|
|
3558
|
+
case Pe.GreaterThan:
|
|
3559
|
+
case Pe.GreaterThanOrEqual:
|
|
3560
|
+
case Pe.LessThan:
|
|
3561
|
+
case Pe.LessThanOrEqual:
|
|
3562
3562
|
t = !0, n = 1;
|
|
3563
3563
|
break;
|
|
3564
|
-
case
|
|
3564
|
+
case Pe.Between:
|
|
3565
3565
|
t = !0, n = 2;
|
|
3566
3566
|
break;
|
|
3567
3567
|
}
|
|
@@ -3570,13 +3570,13 @@ function Ur(e) {
|
|
|
3570
3570
|
count: n
|
|
3571
3571
|
};
|
|
3572
3572
|
}
|
|
3573
|
-
function
|
|
3573
|
+
function wr({
|
|
3574
3574
|
operator: e,
|
|
3575
3575
|
dimensionOption: t,
|
|
3576
3576
|
dataType: n,
|
|
3577
3577
|
t: o
|
|
3578
3578
|
}) {
|
|
3579
|
-
const { fixed: a, count: s } =
|
|
3579
|
+
const { fixed: a, count: s } = Ul(e);
|
|
3580
3580
|
switch (n) {
|
|
3581
3581
|
case Oe.String:
|
|
3582
3582
|
return {
|
|
@@ -3606,7 +3606,7 @@ function wl({
|
|
|
3606
3606
|
default: !0
|
|
3607
3607
|
};
|
|
3608
3608
|
case Oe.Timestamp:
|
|
3609
|
-
return
|
|
3609
|
+
return ra({
|
|
3610
3610
|
dimensionOption: t,
|
|
3611
3611
|
fixed: a,
|
|
3612
3612
|
count: s,
|
|
@@ -3621,7 +3621,7 @@ function wl({
|
|
|
3621
3621
|
default: ""
|
|
3622
3622
|
};
|
|
3623
3623
|
}
|
|
3624
|
-
function
|
|
3624
|
+
function xr(e) {
|
|
3625
3625
|
switch (e) {
|
|
3626
3626
|
case we.HourOfDay:
|
|
3627
3627
|
return 0;
|
|
@@ -3631,7 +3631,7 @@ function xl(e) {
|
|
|
3631
3631
|
return;
|
|
3632
3632
|
}
|
|
3633
3633
|
}
|
|
3634
|
-
function
|
|
3634
|
+
function Sr(e) {
|
|
3635
3635
|
switch (e) {
|
|
3636
3636
|
case we.HourOfDay:
|
|
3637
3637
|
return 23;
|
|
@@ -3641,7 +3641,7 @@ function Sl(e) {
|
|
|
3641
3641
|
return;
|
|
3642
3642
|
}
|
|
3643
3643
|
}
|
|
3644
|
-
function
|
|
3644
|
+
function ra({
|
|
3645
3645
|
dimensionOption: e,
|
|
3646
3646
|
fixed: t,
|
|
3647
3647
|
count: n,
|
|
@@ -3720,7 +3720,7 @@ function Wn({
|
|
|
3720
3720
|
dimensionOption: e,
|
|
3721
3721
|
t
|
|
3722
3722
|
}) {
|
|
3723
|
-
const n =
|
|
3723
|
+
const n = ra({
|
|
3724
3724
|
dimensionOption: e,
|
|
3725
3725
|
fixed: !1,
|
|
3726
3726
|
count: 1,
|
|
@@ -3728,7 +3728,7 @@ function Wn({
|
|
|
3728
3728
|
});
|
|
3729
3729
|
return n.type !== Je.Select ? [] : [{ label: t("report.input.unknown"), value: "" }, ...n.options];
|
|
3730
3730
|
}
|
|
3731
|
-
const
|
|
3731
|
+
const ql = "mf-reportglobalFilter";
|
|
3732
3732
|
function On(e, t) {
|
|
3733
3733
|
var n;
|
|
3734
3734
|
return [
|
|
@@ -3741,7 +3741,7 @@ function On(e, t) {
|
|
|
3741
3741
|
((n = e.tileIds) == null ? void 0 : n.join(",")) ?? ""
|
|
3742
3742
|
].join("|");
|
|
3743
3743
|
}
|
|
3744
|
-
const
|
|
3744
|
+
const Xl = Xn(ql, () => {
|
|
3745
3745
|
const e = k({}), t = k(!1), n = k(null), o = () => ({
|
|
3746
3746
|
search: "",
|
|
3747
3747
|
selectedValues: [],
|
|
@@ -3750,15 +3750,15 @@ const Xr = Xn(qr, () => {
|
|
|
3750
3750
|
visibleCount: 50
|
|
3751
3751
|
});
|
|
3752
3752
|
function a(T, B) {
|
|
3753
|
-
const
|
|
3754
|
-
return e.value[
|
|
3753
|
+
const r = On(T, B);
|
|
3754
|
+
return e.value[r] || (e.value[r] = o()), e.value[r];
|
|
3755
3755
|
}
|
|
3756
|
-
const s = x(() => e.value),
|
|
3757
|
-
function b(T, B,
|
|
3758
|
-
a(T, B)[
|
|
3756
|
+
const s = x(() => e.value), l = (T) => n.value === T;
|
|
3757
|
+
function b(T, B, r, g) {
|
|
3758
|
+
a(T, B)[r] = g;
|
|
3759
3759
|
}
|
|
3760
|
-
function c(T, B,
|
|
3761
|
-
a(T, B).visibleCount +=
|
|
3760
|
+
function c(T, B, r = 50) {
|
|
3761
|
+
a(T, B).visibleCount += r;
|
|
3762
3762
|
}
|
|
3763
3763
|
function S(T) {
|
|
3764
3764
|
t.value = T;
|
|
@@ -3774,7 +3774,7 @@ const Xr = Xn(qr, () => {
|
|
|
3774
3774
|
includeUnavailable: t,
|
|
3775
3775
|
openMenuKey: n,
|
|
3776
3776
|
getGlobalFilter: a,
|
|
3777
|
-
isMenuOpen:
|
|
3777
|
+
isMenuOpen: l,
|
|
3778
3778
|
setGlobalFilter: b,
|
|
3779
3779
|
showMore: c,
|
|
3780
3780
|
setIncludeUnavailable: S,
|
|
@@ -3782,14 +3782,14 @@ const Xr = Xn(qr, () => {
|
|
|
3782
3782
|
closeMenu: D,
|
|
3783
3783
|
getKey: On
|
|
3784
3784
|
};
|
|
3785
|
-
}),
|
|
3785
|
+
}), Yl = { class: "flex flex-row flex-wrap gap-2" }, Gl = { class: "inline-flex max-w-[460px]" }, jl = {
|
|
3786
3786
|
key: 0,
|
|
3787
3787
|
class: "flex justify-center my-2"
|
|
3788
|
-
},
|
|
3788
|
+
}, Kl = { class: "px-2 pb-8" }, Jl = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, Zl = { class: "px-2 pb-8" }, Ql = { class: "flex items-start w-full" }, er = ["onClick"], tr = { class: "fm-typo-en-body-md-400" }, nr = { key: 0 }, ar = { class: "px-12 py-3" }, or = { class: "flex items-center justify-between" }, lr = { class: "text-xs max-w-[200px]" }, rr = { class: "px-4 py-3 flex flex-row justify-end gap-2 bg-white" }, _r = /* @__PURE__ */ Be({
|
|
3789
3789
|
__name: "FilterSelector",
|
|
3790
3790
|
setup(e) {
|
|
3791
3791
|
const { t, locale: n } = et(), { currentReport: o, editingTile: a } = Ee(Ea());
|
|
3792
|
-
let { globalFilters: s, isGlobalFiltersLoading:
|
|
3792
|
+
let { globalFilters: s, isGlobalFiltersLoading: l, timeRange: b, dateRange: c, selectedLocationIds: S, timezone: F } = Ee(gt()), { schemas: D } = Ee(Ua()), { showMore: T, getGlobalFilter: B, setGlobalFilter: r, setIncludeUnavailable: g, getKey: y, isMenuOpen: w } = Xl();
|
|
3793
3793
|
const h = x(() => t("report.input.unknown"));
|
|
3794
3794
|
let f = null;
|
|
3795
3795
|
const m = k(!1), u = x(() => {
|
|
@@ -3798,7 +3798,7 @@ const Xr = Xn(qr, () => {
|
|
|
3798
3798
|
}), p = k([]);
|
|
3799
3799
|
function $(i) {
|
|
3800
3800
|
const X = B(i.filter, u.value).selectedValues;
|
|
3801
|
-
i.selectedValues = i.keepSelection ? X : i.options.map((E) => E.value), i.filter.values = [...i.selectedValues],
|
|
3801
|
+
i.selectedValues = i.keepSelection ? X : i.options.map((E) => E.value), i.filter.values = [...i.selectedValues], r(i.filter, u.value, "selectedValues", i.selectedValues);
|
|
3802
3802
|
}
|
|
3803
3803
|
pe(
|
|
3804
3804
|
() => ({
|
|
@@ -3813,7 +3813,7 @@ const Xr = Xn(qr, () => {
|
|
|
3813
3813
|
filter: i,
|
|
3814
3814
|
search: X.search,
|
|
3815
3815
|
options: [],
|
|
3816
|
-
type:
|
|
3816
|
+
type: M(i),
|
|
3817
3817
|
selectedValues: E,
|
|
3818
3818
|
visibleCount: X.visibleCount,
|
|
3819
3819
|
keepSelection: X.keepSelection,
|
|
@@ -3842,7 +3842,7 @@ const Xr = Xn(qr, () => {
|
|
|
3842
3842
|
await G(!0);
|
|
3843
3843
|
}
|
|
3844
3844
|
);
|
|
3845
|
-
function
|
|
3845
|
+
function M(i) {
|
|
3846
3846
|
var X;
|
|
3847
3847
|
const H = (X = D.value.find((E) => E.name === i.schemaName)) == null ? void 0 : X.fields.find((E) => E.name === i.name);
|
|
3848
3848
|
return H == null ? void 0 : H.type;
|
|
@@ -3851,21 +3851,21 @@ const Xr = Xn(qr, () => {
|
|
|
3851
3851
|
var be;
|
|
3852
3852
|
if (!o.value && !a.value) return [];
|
|
3853
3853
|
const H = a.value ? [a.value] : [...((be = o.value) == null ? void 0 : be.tiles) ?? []], { name: X = "", schemaName: E = "" } = i, ne = H.filter((se) => {
|
|
3854
|
-
var
|
|
3855
|
-
const J = (
|
|
3854
|
+
var re, ge;
|
|
3855
|
+
const J = (re = se == null ? void 0 : se.widget) == null ? void 0 : re.config;
|
|
3856
3856
|
if (!J || (ge = i.tileIds) != null && ge.length && !i.tileIds.includes(se.id)) return !1;
|
|
3857
3857
|
const Q = (J.dimensions ?? []).some(
|
|
3858
3858
|
(me) => me.schemaName === E && me.name === X
|
|
3859
3859
|
), z = (J.joinDatasources ?? []).some(
|
|
3860
3860
|
(me) => (me.dimensions ?? []).some((ue) => ue.schemaName === E && ue.name === X)
|
|
3861
|
-
),
|
|
3862
|
-
return Q || z ||
|
|
3861
|
+
), le = (J.schemaNames ?? []).includes(E);
|
|
3862
|
+
return Q || z || le;
|
|
3863
3863
|
});
|
|
3864
3864
|
if (!ne.length) return [];
|
|
3865
3865
|
const de = (se, J) => {
|
|
3866
|
-
const Q = /* @__PURE__ */ new Map(), z = (
|
|
3867
|
-
const
|
|
3868
|
-
ge ? [
|
|
3866
|
+
const Q = /* @__PURE__ */ new Map(), z = (le) => {
|
|
3867
|
+
const re = `${le.schemaName}:${le.name}:${le.operator}:${le.option ?? ""}:${le.dataFormula ?? ""}`, ge = Q.get(re);
|
|
3868
|
+
ge ? [Pe.Like, Pe.NotLike].includes(le.operator) ? ge.values = Array.from(/* @__PURE__ */ new Set([...ge.values ?? [], ...le.values ?? []])) : Q.set(re, { ...le }) : Q.set(re, { ...le });
|
|
3869
3869
|
};
|
|
3870
3870
|
return se.forEach(z), J.forEach(z), Array.from(Q.values());
|
|
3871
3871
|
}, xe = (se) => {
|
|
@@ -3886,19 +3886,19 @@ const Xr = Xn(qr, () => {
|
|
|
3886
3886
|
var me, ue;
|
|
3887
3887
|
const J = (me = se == null ? void 0 : se.widget) == null ? void 0 : me.config;
|
|
3888
3888
|
if (!J) return null;
|
|
3889
|
-
const Q = xe(J), z = (J.dimensions ?? []).some((Te) => Te.schemaName === E) || (J.schemaNames ?? []).includes(E),
|
|
3889
|
+
const Q = xe(J), z = (J.dimensions ?? []).some((Te) => Te.schemaName === E) || (J.schemaNames ?? []).includes(E), le = de(
|
|
3890
3890
|
J.filters ?? [],
|
|
3891
3891
|
(i.filters ?? []).filter((Te) => {
|
|
3892
3892
|
var De;
|
|
3893
3893
|
return (De = J.schemaNames) == null ? void 0 : De.includes(Te.schemaName);
|
|
3894
3894
|
})
|
|
3895
|
-
),
|
|
3895
|
+
), re = (ue = J.joinDatasources) == null ? void 0 : ue.find(
|
|
3896
3896
|
(Te) => (Te.schemaNames ?? []).includes(E) || (Te.dimensions ?? []).some((De) => De.schemaName === E)
|
|
3897
3897
|
), ge = de(
|
|
3898
|
-
(
|
|
3898
|
+
(re == null ? void 0 : re.filters) ?? [],
|
|
3899
3899
|
(i.filters ?? []).filter((Te) => {
|
|
3900
3900
|
var De;
|
|
3901
|
-
return (De =
|
|
3901
|
+
return (De = re == null ? void 0 : re.schemaNames) == null ? void 0 : De.includes(Te.schemaName);
|
|
3902
3902
|
})
|
|
3903
3903
|
);
|
|
3904
3904
|
return {
|
|
@@ -3908,11 +3908,11 @@ const Xr = Xn(qr, () => {
|
|
|
3908
3908
|
schemaNames: J.schemaNames,
|
|
3909
3909
|
schemas: J.schemas,
|
|
3910
3910
|
dimensions: z ? [Q] : [],
|
|
3911
|
-
filters:
|
|
3911
|
+
filters: le,
|
|
3912
3912
|
sorts: z ? [{ name: X, schemaName: E, type: je.Asc, aggregation: null, dimensionOption: null }] : [],
|
|
3913
|
-
joinDatasources: !z &&
|
|
3913
|
+
joinDatasources: !z && re ? [
|
|
3914
3914
|
{
|
|
3915
|
-
...
|
|
3915
|
+
...re,
|
|
3916
3916
|
dimensions: [Q],
|
|
3917
3917
|
sorts: [
|
|
3918
3918
|
{
|
|
@@ -3947,7 +3947,7 @@ const Xr = Xn(qr, () => {
|
|
|
3947
3947
|
return (X = i.selectedValues) == null ? void 0 : X.includes(H.value);
|
|
3948
3948
|
});
|
|
3949
3949
|
}
|
|
3950
|
-
function
|
|
3950
|
+
function P(i) {
|
|
3951
3951
|
A(i) ? i.selectedValues = ["(EMPTY)"] : i.selectedValues = i.options.map((H) => H.value);
|
|
3952
3952
|
}
|
|
3953
3953
|
const I = x(
|
|
@@ -3963,7 +3963,7 @@ const Xr = Xn(qr, () => {
|
|
|
3963
3963
|
}
|
|
3964
3964
|
async function O(i, H) {
|
|
3965
3965
|
var X;
|
|
3966
|
-
if (!(!i.type && (i.type =
|
|
3966
|
+
if (!(!i.type && (i.type = M(i.filter), !i.type)))
|
|
3967
3967
|
switch (i.type) {
|
|
3968
3968
|
case Oe.String:
|
|
3969
3969
|
try {
|
|
@@ -3976,8 +3976,8 @@ const Xr = Xn(qr, () => {
|
|
|
3976
3976
|
for (const J of E) {
|
|
3977
3977
|
const Q = await qn(J, H);
|
|
3978
3978
|
(Q == null ? void 0 : Q.type) === q.Table && ne.push(...Q.rows.map((z) => {
|
|
3979
|
-
var
|
|
3980
|
-
return ((
|
|
3979
|
+
var le;
|
|
3980
|
+
return ((le = z.cells) == null ? void 0 : le[0]) ?? " ";
|
|
3981
3981
|
}));
|
|
3982
3982
|
}
|
|
3983
3983
|
const de = Array.from(new Set(ne)), xe = (X = B(i.filter, u.value).selectedValues) != null && X.length ? B(i.filter, u.value).selectedValues : i.selectedValues || [], be = i.keepSelection ? Array.from(/* @__PURE__ */ new Set([...de, ...xe])) : de, se = new Set(ne);
|
|
@@ -4016,11 +4016,11 @@ const Xr = Xn(qr, () => {
|
|
|
4016
4016
|
const H = new AbortController();
|
|
4017
4017
|
f = H;
|
|
4018
4018
|
try {
|
|
4019
|
-
i || (
|
|
4019
|
+
i || (l.value = !0), m.value = !0, await Promise.all(
|
|
4020
4020
|
p.value.map((X) => O(X, H.signal))
|
|
4021
4021
|
);
|
|
4022
4022
|
} finally {
|
|
4023
|
-
f === H && (i || (
|
|
4023
|
+
f === H && (i || (l.value = !1), m.value = !1);
|
|
4024
4024
|
}
|
|
4025
4025
|
}
|
|
4026
4026
|
function _(i, H) {
|
|
@@ -4030,7 +4030,7 @@ const Xr = Xn(qr, () => {
|
|
|
4030
4030
|
i.selectedValues = ne.length > 0 ? ne : ["(EMPTY)"];
|
|
4031
4031
|
} else
|
|
4032
4032
|
i.selectedValues = [...(i.selectedValues || []).filter((ne) => ne !== "(EMPTY)"), H];
|
|
4033
|
-
|
|
4033
|
+
r(i.filter, u.value, "selectedValues", i.selectedValues);
|
|
4034
4034
|
}
|
|
4035
4035
|
function C(i, H) {
|
|
4036
4036
|
if (H === null)
|
|
@@ -4040,7 +4040,7 @@ const Xr = Xn(qr, () => {
|
|
|
4040
4040
|
i.values = [E, ne];
|
|
4041
4041
|
}
|
|
4042
4042
|
const X = p.value.find((E) => E.filter === i);
|
|
4043
|
-
X && (X.keepSelection = H !== null,
|
|
4043
|
+
X && (X.keepSelection = H !== null, r(X.filter, u.value, "keepSelection", X.keepSelection));
|
|
4044
4044
|
}
|
|
4045
4045
|
function N(i) {
|
|
4046
4046
|
const H = (i.selectedValues || []).filter((X) => X !== "(EMPTY)");
|
|
@@ -4063,10 +4063,10 @@ const Xr = Xn(qr, () => {
|
|
|
4063
4063
|
timezone: F.value
|
|
4064
4064
|
})}` : H, suffix: "" };
|
|
4065
4065
|
if (i.filter.option === we.TimeOfDay) {
|
|
4066
|
-
const z = (se = i.filter.values) != null && se[0] ? st(i.filter.values[0]).tz(F.value) : null,
|
|
4066
|
+
const z = (se = i.filter.values) != null && se[0] ? st(i.filter.values[0]).tz(F.value) : null, le = (J = i.filter.values) != null && J[1] ? st(i.filter.values[1]).tz(F.value) : null, re = (me) => me && me.isValid() ? { hour: me.hour(), minute: me.minute() } : null;
|
|
4067
4067
|
return { preview: Q ? `${H} is between ${Ka({
|
|
4068
|
-
startTime:
|
|
4069
|
-
endTime: le
|
|
4068
|
+
startTime: re(z),
|
|
4069
|
+
endTime: re(le),
|
|
4070
4070
|
locale: n.value
|
|
4071
4071
|
})}` : H, suffix: "" };
|
|
4072
4072
|
}
|
|
@@ -4074,7 +4074,7 @@ const Xr = Xn(qr, () => {
|
|
|
4074
4074
|
const z = Wn({
|
|
4075
4075
|
dimensionOption: i.filter.option,
|
|
4076
4076
|
t
|
|
4077
|
-
}),
|
|
4077
|
+
}), le = new Map(z.map((ue) => [String(ue.value), ue.label])), ge = (i.selectedValues || []).filter((ue) => ue !== "(EMPTY)").map((ue) => le.get(String(ue)) ?? String(ue)), me = ge.map((ue) => ue.length > 20 ? `${ue.slice(0, 20)}…` : ue).join(", ");
|
|
4078
4078
|
return ge.length ? {
|
|
4079
4079
|
preview: `${H}: ${me}`,
|
|
4080
4080
|
suffix: `(${ge.length} selected)`
|
|
@@ -4088,16 +4088,16 @@ const Xr = Xn(qr, () => {
|
|
|
4088
4088
|
} : { preview: ne, suffix: `${H}` };
|
|
4089
4089
|
}
|
|
4090
4090
|
function U(i) {
|
|
4091
|
-
i.filter.values = [...i.selectedValues || []],
|
|
4091
|
+
i.filter.values = [...i.selectedValues || []], r(i.filter, u.value, "selectedValues", i.selectedValues), document.body.click();
|
|
4092
4092
|
}
|
|
4093
4093
|
function ee(i) {
|
|
4094
|
-
i.selectedValues = [...i.filter.values || []],
|
|
4094
|
+
i.selectedValues = [...i.filter.values || []], r(i.filter, u.value, "selectedValues", i.selectedValues), document.body.click();
|
|
4095
4095
|
}
|
|
4096
4096
|
function te(i) {
|
|
4097
|
-
i.showAdvanced = !i.showAdvanced,
|
|
4097
|
+
i.showAdvanced = !i.showAdvanced, r(i.filter, u.value, "showAdvanced", i.showAdvanced);
|
|
4098
4098
|
}
|
|
4099
4099
|
function ve(i) {
|
|
4100
|
-
i.keepSelection = !i.keepSelection, g(i.keepSelection),
|
|
4100
|
+
i.keepSelection = !i.keepSelection, g(i.keepSelection), r(i.filter, u.value, "keepSelection", i.keepSelection), i.options = [], G(!0);
|
|
4101
4101
|
}
|
|
4102
4102
|
function ye(i, H) {
|
|
4103
4103
|
return i ? i.length > H ? `${i.slice(0, H)}…` : i : h.value;
|
|
@@ -4111,19 +4111,19 @@ const Xr = Xn(qr, () => {
|
|
|
4111
4111
|
i.values = [be, se];
|
|
4112
4112
|
}
|
|
4113
4113
|
const X = p.value.find((be) => be.filter === i);
|
|
4114
|
-
X && (X.keepSelection = H !== null,
|
|
4114
|
+
X && (X.keepSelection = H !== null, r(X.filter, u.value, "keepSelection", X.keepSelection));
|
|
4115
4115
|
}
|
|
4116
4116
|
return (i, H) => {
|
|
4117
4117
|
const X = Z("FmCircularProgress"), E = Z("FmTextField"), ne = Z("FmMenuItem"), de = Z("FmTooltip"), xe = Z("FmIcon"), be = Z("FmMenuDivider"), se = Z("FmSwitch"), J = Z("FmButton"), Q = Z("FmMenu");
|
|
4118
|
-
return Y(), oe("div",
|
|
4119
|
-
(Y(!0), oe(ke, null, it(p.value, (z,
|
|
4120
|
-
var
|
|
4118
|
+
return Y(), oe("div", Yl, [
|
|
4119
|
+
(Y(!0), oe(ke, null, it(p.value, (z, le) => {
|
|
4120
|
+
var re, ge, me, ue, Te, De;
|
|
4121
4121
|
return Y(), oe("div", {
|
|
4122
4122
|
key: z.id
|
|
4123
4123
|
}, [
|
|
4124
4124
|
z.filter.option === d(we).DateTime ? (Y(), he(Ya, {
|
|
4125
4125
|
key: 0,
|
|
4126
|
-
"model-value": { startDate: (
|
|
4126
|
+
"model-value": { startDate: (re = z.filter.values) == null ? void 0 : re[0], endDate: (ge = z.filter.values) == null ? void 0 : ge[1] },
|
|
4127
4127
|
class: "w-full",
|
|
4128
4128
|
label: W(z).preview,
|
|
4129
4129
|
removable: ((me = z.filter.values) == null ? void 0 : me.length) === 2,
|
|
@@ -4144,7 +4144,7 @@ const Xr = Xn(qr, () => {
|
|
|
4144
4144
|
open: d(w)(z.id)
|
|
4145
4145
|
}, {
|
|
4146
4146
|
"menu-button": ce(() => [
|
|
4147
|
-
j("div",
|
|
4147
|
+
j("div", Gl, [
|
|
4148
4148
|
K(Ga, {
|
|
4149
4149
|
"left-icon": "filter_alt",
|
|
4150
4150
|
"trailing-icon": "expand_more",
|
|
@@ -4163,15 +4163,15 @@ const Xr = Xn(qr, () => {
|
|
|
4163
4163
|
class: "flex flex-col bg-fm-color-neutral-white p-2 rounded-lg shadow-light-300",
|
|
4164
4164
|
style: $e({ maxHeight: `${qe}px`, width: kt })
|
|
4165
4165
|
}, [
|
|
4166
|
-
m.value ? (Y(), oe("div",
|
|
4166
|
+
m.value ? (Y(), oe("div", jl, [
|
|
4167
4167
|
K(X)
|
|
4168
|
-
])) : z.options.length > 0 && !d(
|
|
4169
|
-
j("div",
|
|
4168
|
+
])) : z.options.length > 0 && !d(l) ? (Y(), oe(ke, { key: 1 }, [
|
|
4169
|
+
j("div", Kl, [
|
|
4170
4170
|
K(E, {
|
|
4171
4171
|
modelValue: z.search,
|
|
4172
4172
|
"onUpdate:modelValue": [
|
|
4173
4173
|
(ie) => z.search = ie,
|
|
4174
|
-
(ie) => d(
|
|
4174
|
+
(ie) => d(r)(z.filter, u.value, "search", ie)
|
|
4175
4175
|
],
|
|
4176
4176
|
type: "text",
|
|
4177
4177
|
"prepend-icon": "search",
|
|
@@ -4179,16 +4179,16 @@ const Xr = Xn(qr, () => {
|
|
|
4179
4179
|
class: "border px-2 pb-8 text-sm mb-1 rounded"
|
|
4180
4180
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
4181
4181
|
]),
|
|
4182
|
-
j("div",
|
|
4183
|
-
j("div",
|
|
4182
|
+
j("div", Jl, [
|
|
4183
|
+
j("div", Zl, [
|
|
4184
4184
|
K(ne, {
|
|
4185
4185
|
label: N(z),
|
|
4186
4186
|
"has-checkbox": !0,
|
|
4187
4187
|
"model-value": A(z),
|
|
4188
4188
|
indeterminate: !0,
|
|
4189
|
-
onClick: (ie) =>
|
|
4189
|
+
onClick: (ie) => P(z)
|
|
4190
4190
|
}, null, 8, ["label", "model-value", "onClick"]),
|
|
4191
|
-
(Y(!0), oe(ke, null, it(I.value[
|
|
4191
|
+
(Y(!0), oe(ke, null, it(I.value[le], (ie) => (Y(), oe(ke, {
|
|
4192
4192
|
key: ie.value
|
|
4193
4193
|
}, [
|
|
4194
4194
|
ie.label && ie.label.length > 110 ? (Y(), he(de, {
|
|
@@ -4201,7 +4201,7 @@ const Xr = Xn(qr, () => {
|
|
|
4201
4201
|
qt(Le(ie.label), 1)
|
|
4202
4202
|
]),
|
|
4203
4203
|
default: ce(() => [
|
|
4204
|
-
j("div",
|
|
4204
|
+
j("div", Ql, [
|
|
4205
4205
|
K(ne, {
|
|
4206
4206
|
label: ye(ie.label, 110),
|
|
4207
4207
|
"has-checkbox": !0,
|
|
@@ -4224,7 +4224,7 @@ const Xr = Xn(qr, () => {
|
|
|
4224
4224
|
onClick: () => _(z, ie.value)
|
|
4225
4225
|
}, null, 8, ["label", "model-value", "class", "onClick"]))
|
|
4226
4226
|
], 64))), 128)),
|
|
4227
|
-
I.value[
|
|
4227
|
+
I.value[le].length < z.options.length && !z.search ? (Y(), he(ne, {
|
|
4228
4228
|
key: 0,
|
|
4229
4229
|
class: "fm-typo-en-body-md-400 -ml-2",
|
|
4230
4230
|
label: d(t)("report.section.filter.loadMore"),
|
|
@@ -4242,12 +4242,12 @@ const Xr = Xn(qr, () => {
|
|
|
4242
4242
|
size: "md",
|
|
4243
4243
|
class: ""
|
|
4244
4244
|
}, null, 8, ["name"]),
|
|
4245
|
-
j("span",
|
|
4246
|
-
], 8,
|
|
4245
|
+
j("span", tr, Le(d(t)("report.section.filter.advanced")), 1)
|
|
4246
|
+
], 8, er),
|
|
4247
4247
|
K(be),
|
|
4248
|
-
z.showAdvanced ? (Y(), oe("div",
|
|
4249
|
-
j("div",
|
|
4250
|
-
j("div",
|
|
4248
|
+
z.showAdvanced ? (Y(), oe("div", nr, [
|
|
4249
|
+
j("div", ar, [
|
|
4250
|
+
j("div", or, [
|
|
4251
4251
|
K(se, {
|
|
4252
4252
|
"model-value": z.keepSelection,
|
|
4253
4253
|
label: d(t)("report.section.filter.keepSelection"),
|
|
@@ -4259,7 +4259,7 @@ const Xr = Xn(qr, () => {
|
|
|
4259
4259
|
"z-index": 2e3
|
|
4260
4260
|
}, {
|
|
4261
4261
|
content: ce(() => [
|
|
4262
|
-
j("div",
|
|
4262
|
+
j("div", lr, Le(d(t)("report.section.filter.keepSelectionTooltip")), 1)
|
|
4263
4263
|
]),
|
|
4264
4264
|
default: ce(() => [
|
|
4265
4265
|
K(xe, {
|
|
@@ -4273,7 +4273,7 @@ const Xr = Xn(qr, () => {
|
|
|
4273
4273
|
])
|
|
4274
4274
|
])
|
|
4275
4275
|
])) : Ve("", !0),
|
|
4276
|
-
j("div",
|
|
4276
|
+
j("div", rr, [
|
|
4277
4277
|
K(J, {
|
|
4278
4278
|
variant: "tertiary",
|
|
4279
4279
|
label: d(t)("report.common.cancel"),
|
|
@@ -4285,7 +4285,7 @@ const Xr = Xn(qr, () => {
|
|
|
4285
4285
|
label: d(t)("report.common.apply")
|
|
4286
4286
|
}, null, 8, ["onClick", "label"])
|
|
4287
4287
|
])
|
|
4288
|
-
], 64)) : d(
|
|
4288
|
+
], 64)) : d(l) ? Ve("", !0) : (Y(), he(Yt, { key: 2 }))
|
|
4289
4289
|
], 4)
|
|
4290
4290
|
]),
|
|
4291
4291
|
_: 2
|
|
@@ -4304,15 +4304,15 @@ export {
|
|
|
4304
4304
|
_e as S,
|
|
4305
4305
|
Jt as X,
|
|
4306
4306
|
Zt as Y,
|
|
4307
|
-
|
|
4308
|
-
|
|
4307
|
+
Cr as _,
|
|
4308
|
+
_r as a,
|
|
4309
4309
|
jt as b,
|
|
4310
|
-
|
|
4310
|
+
br as c,
|
|
4311
4311
|
Rt as d,
|
|
4312
4312
|
Qt as e,
|
|
4313
|
-
|
|
4313
|
+
xr as f,
|
|
4314
4314
|
Et as g,
|
|
4315
|
-
|
|
4316
|
-
|
|
4315
|
+
Sr as h,
|
|
4316
|
+
wr as i,
|
|
4317
4317
|
Hn as u
|
|
4318
4318
|
};
|