@feedmepos/mf-report 5.23.7 → 5.23.8-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-eW2l-D58.js → App-Blp7iZTh.js} +61 -61
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-CPMY8qj4.js → BaseDialog.vue_vue_type_script_setup_true_lang-Cfwj1rcj.js} +10 -9
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-Diqt6pvV.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-DczxgxKP.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-BWMejZ7t.js → Default.vue_vue_type_script_setup_true_lang-pulH3QTS.js} +1 -1
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-BYWJYpAp.js → FilterSelector.vue_vue_type_script_setup_true_lang-ZxvjCKIH.js} +424 -424
- package/dist/{InsightView-kwJwZl4J.js → InsightView-DB-95oTS.js} +4 -4
- package/dist/{Integration-2NnNc_MA.js → Integration-bvoaSvky.js} +3 -3
- package/dist/{Integrations-C6xUhLQL.js → Integrations-DbkFDc4x.js} +2 -2
- package/dist/{Layout-ae88KZpv.js → Layout-CAB6c4iP.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-ai9OY8Vj.js → MenuTab.vue_vue_type_script_setup_true_lang-BLiBtPV_.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-gWfADjSK.js → NavigationTab.vue_vue_type_script_setup_true_lang-D4Z4I2ME.js} +3 -3
- package/dist/{OverviewView-hgK91xHF.js → OverviewView-DgmOWTMa.js} +4 -4
- package/dist/{Report-CpeMTB-E.js → Report-lvzCvoub.js} +3 -3
- package/dist/{ReportEditor-3tgswFAH.js → ReportEditor-DBxoT69p.js} +4 -4
- package/dist/{ReportView-pKn2c_58.js → ReportView-aIc3h00s.js} +6 -6
- package/dist/{Setting-D_5PQPvW.js → Setting-C0QpxvMi.js} +3 -3
- package/dist/{TileEditor-P65O3INC.js → TileEditor-hPCZjKiC.js} +5 -5
- package/dist/{TransitionFade-58AVTmRy.js → TransitionFade-DWbddsES.js} +4 -4
- package/dist/{app-7utdodcM.js → app-BzpOue2V.js} +12 -12
- package/dist/app.js +1 -1
- package/dist/assets/{processTableData.worker-S2PCd2dS.js → formatChartData.worker-BDvFT0pw.js} +4 -4
- package/dist/assets/{formatChartData.worker-DP26JAuy.js → processTableData.worker-CORwAutg.js} +4 -4
- package/dist/{useRestaurantPermission-C6nkA6ru.js → useRestaurantPermission-DXhg26Nr.js} +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { computed as v, defineComponent as at, ref as D, onMounted as it, onBeforeUnmount as ia, resolveComponent as ge, createBlock as we, openBlock as Y, Transition as Ha, withCtx as
|
|
2
|
-
import { W as ie, d as Ht, e as qa, S as St, v as Gt, f as Ya, g as vn, h as da, q as fa, R as Ft, i as Xa, D as ht, b as Je, C as st, u as Ga, a as ja, _ as Ja } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { k as Za, z as Qa, l as eo, m as to, a as jt, u as Bn, d as Bt, i as no } from "./app-
|
|
4
|
-
import { d as Cn, _ as ao, a as oo, b as lo, c as ro } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { computed as v, defineComponent as at, ref as D, onMounted as it, onBeforeUnmount as ia, resolveComponent as ge, createBlock as we, openBlock as Y, Transition as Ha, withCtx as ze, createElementBlock as be, createCommentVNode as Me, createElementVNode as J, unref as l, normalizeStyle as Ze, withModifiers as Tt, toDisplayString as Ge, createVNode as me, Fragment as et, renderList as Lt, normalizeClass as qe, watch as Pe, nextTick as tt, mergeModels as gt, useModel as ct, renderSlot as yt, h as ln, createSlots as Wa, resolveDynamicComponent as ua, toRaw as Oa, markRaw as Ea, createTextVNode as bn, onUnmounted as ca, withDirectives as Ua, vShow as Ka } from "vue";
|
|
2
|
+
import { W as ie, d as Ht, e as qa, S as St, v as Gt, f as Ya, g as vn, h as da, q as fa, R as Ft, i as Xa, D as ht, b as Je, C as st, u as Ga, a as ja, _ as Ja } from "./BaseDialog.vue_vue_type_script_setup_true_lang-Cfwj1rcj.js";
|
|
3
|
+
import { k as Za, z as Qa, l as eo, m as to, a as jt, u as Bn, d as Bt, i as no } from "./app-BzpOue2V.js";
|
|
4
|
+
import { d as Cn, _ as ao, a as oo, b as lo, c as ro } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DczxgxKP.js";
|
|
5
5
|
import { storeToRefs as vt, defineStore as ma } from "pinia";
|
|
6
6
|
import { C as wn } from "./chart-DDDh8zNk.js";
|
|
7
7
|
import { detectLocale as so } from "@feedmepos/mf-common";
|
|
8
|
-
import { useBreakpoints as fn, useSnackbar as
|
|
8
|
+
import { useBreakpoints as fn, useSnackbar as An, components as io } from "@feedmepos/ui-library";
|
|
9
9
|
import { u as wt } from "./vue-i18n-DVWuTfed.js";
|
|
10
10
|
import { _ as ha } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js";
|
|
11
11
|
import { r as _t } from "./i18n-CI_sQ5d_.js";
|
|
@@ -117,7 +117,7 @@ const dn = [
|
|
|
117
117
|
"#8358D4",
|
|
118
118
|
"#9B5046"
|
|
119
119
|
], Er = dn.map(() => "solid");
|
|
120
|
-
function
|
|
120
|
+
function At({
|
|
121
121
|
datasetIndex: e,
|
|
122
122
|
label: n
|
|
123
123
|
}) {
|
|
@@ -195,7 +195,7 @@ function Ct({
|
|
|
195
195
|
let s = typeof t == "number" ? t : 1;
|
|
196
196
|
return n && (s = s * 0.6), va(r[e % r.length], s);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function zt({
|
|
199
199
|
fallbackIndex: e,
|
|
200
200
|
metricCount: n
|
|
201
201
|
}) {
|
|
@@ -437,10 +437,10 @@ function Qt(e) {
|
|
|
437
437
|
}
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
|
-
const Lo = Number.POSITIVE_INFINITY, In = 2, Do = 1, Io = 0.2, Mo = 120, { breakpoints:
|
|
440
|
+
const Lo = Number.POSITIVE_INFINITY, In = 2, Do = 1, Io = 0.2, Mo = 120, { breakpoints: Vt } = fn(), Vn = "report-v5:locationchange";
|
|
441
441
|
let Xn = !1;
|
|
442
442
|
function Gn() {
|
|
443
|
-
window.dispatchEvent(new Event(
|
|
443
|
+
window.dispatchEvent(new Event(Vn));
|
|
444
444
|
}
|
|
445
445
|
function Fo() {
|
|
446
446
|
if (Xn)
|
|
@@ -468,10 +468,10 @@ function ba() {
|
|
|
468
468
|
function Bo(e) {
|
|
469
469
|
return e == null ? null : typeof e != "string" ? [] : e.split("#").map((n) => n.trim()).filter((n) => n.length > 0);
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Ao(e) {
|
|
472
472
|
return e.dash === !0 || e.isCompare === !0;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function Vo(e) {
|
|
475
475
|
return typeof e.label == "string" ? e.label : "N/A";
|
|
476
476
|
}
|
|
477
477
|
function $o(e, n) {
|
|
@@ -481,10 +481,10 @@ function $o(e, n) {
|
|
|
481
481
|
function No(e, n) {
|
|
482
482
|
return `${e}: ${isNaN(n) ? "" : n.toLocaleString()}`;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function zo(e, n) {
|
|
485
485
|
return e.type === "bar" ? !0 : n === "bar";
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function Po(e, n, t) {
|
|
488
488
|
const a = Yt(e.borderColor, n) || Yt(e.color, n), r = Yt(e.backgroundColor, n), s = Yt(e.pointBorderColor, n), u = Yt(e.pointBackgroundColor, n);
|
|
489
489
|
return t ? jn(r, u, a, s) : jn(a, s, r, u);
|
|
490
490
|
}
|
|
@@ -524,14 +524,14 @@ function Oo(e) {
|
|
|
524
524
|
return Number.isFinite(n) ? Math.max(In, Math.floor(n)) : Lo;
|
|
525
525
|
}
|
|
526
526
|
function Eo(e) {
|
|
527
|
-
return e <= 0 ? 320 :
|
|
527
|
+
return e <= 0 ? 320 : Vt.value.xs || Vt.value.sm || e <= 640 ? Math.max(160, Math.floor(e * 0.38)) : Vt.value.md || e <= 900 ? Math.max(200, Math.floor(e * 0.46)) : Vt.value.lg || e <= 1200 ? Math.max(240, Math.floor(e * 0.54)) : Math.max(280, Math.floor(e * 0.62));
|
|
528
528
|
}
|
|
529
529
|
function $n(e, n) {
|
|
530
530
|
const t = window.innerHeight, a = Eo(t), r = n ? Math.max(120, n.clientHeight - 16) : Number.POSITIVE_INFINITY, s = Math.max(120, Math.min(a, r));
|
|
531
531
|
e.style.maxHeight = `${s}px`;
|
|
532
532
|
}
|
|
533
533
|
function $t() {
|
|
534
|
-
return
|
|
534
|
+
return Vt.value.xs || Vt.value.sm;
|
|
535
535
|
}
|
|
536
536
|
function Nt(e) {
|
|
537
537
|
return e.dataset.pinned === "true";
|
|
@@ -574,20 +574,20 @@ function qo(e) {
|
|
|
574
574
|
return `<button type="button" data-tooltip-full-details="true" style="${go}">${Mn(e)}</button>`;
|
|
575
575
|
}
|
|
576
576
|
function xa(e, n, t, a, r, s, u, p) {
|
|
577
|
-
var
|
|
578
|
-
const d = (
|
|
577
|
+
var V;
|
|
578
|
+
const d = (V = e[0]) == null ? void 0 : V.label, C = Bo(d), N = (C == null ? void 0 : C[0]) ?? "", H = C == null ? void 0 : C[1], I = [], b = [], f = /* @__PURE__ */ new Set();
|
|
579
579
|
s.forEach((_, c) => {
|
|
580
580
|
if (f.has(c))
|
|
581
581
|
return;
|
|
582
|
-
const F = _ ?? {}, E =
|
|
582
|
+
const F = _ ?? {}, E = Vo(F), G = $o(F, u), le = zo(F, p), te = {
|
|
583
583
|
text: No(E, G),
|
|
584
|
-
color:
|
|
584
|
+
color: Po(F, u, le),
|
|
585
585
|
isBar: le,
|
|
586
586
|
value: G,
|
|
587
587
|
datasetLabel: E,
|
|
588
588
|
matchingKey: Ro(E)
|
|
589
589
|
};
|
|
590
|
-
if (H &&
|
|
590
|
+
if (H && Ao(F)) {
|
|
591
591
|
b.push(te);
|
|
592
592
|
return;
|
|
593
593
|
}
|
|
@@ -602,15 +602,15 @@ function xa(e, n, t, a, r, s, u, p) {
|
|
|
602
602
|
}
|
|
603
603
|
c.push(_);
|
|
604
604
|
});
|
|
605
|
-
const
|
|
605
|
+
const A = H ? M.map((_) => {
|
|
606
606
|
const c = B.get(_.matchingKey);
|
|
607
607
|
return !c || c.length === 0 ? Jn(_) : c.shift() ?? Jn(_);
|
|
608
|
-
}) : [], g = I.length > M.length || b.length >
|
|
608
|
+
}) : [], g = I.length > M.length || b.length > A.length, m = (_, c = !1) => `<div style="${Uo(c)}">${Mn(_)}</div>`, L = (_) => {
|
|
609
609
|
const c = Ko(_.isBar, _.color);
|
|
610
610
|
return `<div style="${bo}"><span style="${c}"></span><span style="${Co}">${Mn(_.text)}</span></div>`;
|
|
611
611
|
};
|
|
612
612
|
let x = "";
|
|
613
|
-
N.length > 0 && (x += m(N)), x += M.map((_) => L(_)).join(""), H &&
|
|
613
|
+
N.length > 0 && (x += m(N)), x += M.map((_) => L(_)).join(""), H && A.length > 0 && (x += m(H, x.length > 0), x += A.map((_) => L(_)).join("")), r && g && (x += qo(t));
|
|
614
614
|
const w = [
|
|
615
615
|
{
|
|
616
616
|
title: N,
|
|
@@ -820,17 +820,17 @@ function Nn(e) {
|
|
|
820
820
|
Jo(t) && (n = t.parentElement), t = t.parentElement;
|
|
821
821
|
return window.getComputedStyle(n).position === "static" && (n.style.position = "relative"), n;
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function zn(e, n, t, a, r, s, u = "center", p = !1) {
|
|
824
824
|
const d = n.getBoundingClientRect(), C = t.getBoundingClientRect(), N = t.scrollLeft, H = t.scrollTop, I = t.clientWidth, b = t.clientHeight, f = e;
|
|
825
825
|
(!Number.isFinite(f.__cachedWidth) || !Number.isFinite(f.__cachedHeight) || f.__measurementHostWidth !== I || f.__measurementHostHeight !== b) && (f.__cachedWidth = e.offsetWidth, f.__cachedHeight = e.offsetHeight, f.__measurementHostWidth = I, f.__measurementHostHeight = b);
|
|
826
|
-
const B = f.__cachedWidth ?? e.offsetWidth,
|
|
826
|
+
const B = f.__cachedWidth ?? e.offsetWidth, A = f.__cachedHeight ?? e.offsetHeight, g = 8, m = d.left - C.left + N + a, L = d.top - C.top + H + r, x = p ? u === "left" ? m - B - g : m + g : u === "left" ? m - B - g : u === "right" ? m + g : m - B / 2, w = p ? L + g : s ? L - A / 2 : L + g, V = N + g;
|
|
827
827
|
let _ = H + g;
|
|
828
828
|
const c = document.querySelector('[data-menu-tab="true"]');
|
|
829
829
|
if (c) {
|
|
830
830
|
const ce = c.getBoundingClientRect().bottom - C.top + H + g;
|
|
831
831
|
_ = Math.max(_, ce);
|
|
832
832
|
}
|
|
833
|
-
const F = Math.max(
|
|
833
|
+
const F = Math.max(V, N + I - B - g), E = Math.max(_, H + b - A - g), G = Math.round(Math.min(Math.max(V, x), F)), le = Math.round(Math.min(Math.max(_, w), E));
|
|
834
834
|
f.__lastLeftPx === G && f.__lastTopPx === le || (f.__lastLeftPx = G, f.__lastTopPx = le, e.style.left = `${G}px`, e.style.top = `${le}px`);
|
|
835
835
|
}
|
|
836
836
|
function _a(e) {
|
|
@@ -838,7 +838,7 @@ function _a(e) {
|
|
|
838
838
|
}
|
|
839
839
|
function Zo(e, n, t, a, r, s, u) {
|
|
840
840
|
const p = n.getBoundingClientRect(), d = a - p.left, C = r - p.top;
|
|
841
|
-
!Number.isFinite(d) || !Number.isFinite(C) || (e.dataset.cursorCanvasX = String(d), e.dataset.cursorCanvasY = String(C), e.dataset.caretX = String(d), e.dataset.caretY = String(C), e.dataset.anchorDirection = u,
|
|
841
|
+
!Number.isFinite(d) || !Number.isFinite(C) || (e.dataset.cursorCanvasX = String(d), e.dataset.cursorCanvasY = String(C), e.dataset.caretX = String(d), e.dataset.caretY = String(C), e.dataset.anchorDirection = u, zn(
|
|
842
842
|
e,
|
|
843
843
|
n,
|
|
844
844
|
t,
|
|
@@ -857,26 +857,26 @@ function el(e) {
|
|
|
857
857
|
e.__onViewportChange && (window.removeEventListener("scroll", e.__onViewportChange, !0), window.removeEventListener("resize", e.__onViewportChange));
|
|
858
858
|
}
|
|
859
859
|
function tl(e) {
|
|
860
|
-
e.__onNavigationChange && (window.removeEventListener(
|
|
860
|
+
e.__onNavigationChange && (window.removeEventListener(Vn, e.__onNavigationChange), window.removeEventListener("popstate", e.__onNavigationChange), window.removeEventListener("hashchange", e.__onNavigationChange), window.removeEventListener("beforeunload", e.__onNavigationChange));
|
|
861
861
|
}
|
|
862
862
|
function nl(e) {
|
|
863
863
|
e.__disconnectObserver && (e.__disconnectObserver.disconnect(), e.__disconnectObserver = void 0);
|
|
864
864
|
}
|
|
865
|
-
function
|
|
866
|
-
|
|
865
|
+
function Pn(e, n) {
|
|
866
|
+
Pt(e), ka(e), el(e), tl(e), nl(e), e.__onDetailsClick && e.removeEventListener("click", e.__onDetailsClick), e.__onTooltipPointerEnter && e.removeEventListener("pointerenter", e.__onTooltipPointerEnter), e.__onTooltipPointerLeave && e.removeEventListener("pointerleave", e.__onTooltipPointerLeave), n && e.__onCanvasPointerEnter && n.removeEventListener("pointerenter", e.__onCanvasPointerEnter), n && e.__onCanvasPointerMove && n.removeEventListener("pointermove", e.__onCanvasPointerMove), n && e.__onCanvasPointerLeave && n.removeEventListener("pointerleave", e.__onCanvasPointerLeave), n && e.__onCanvasClick && n.removeEventListener("click", e.__onCanvasClick), n && e.__onCanvasPointerUp && n.removeEventListener("pointerup", e.__onCanvasPointerUp), e.remove();
|
|
867
867
|
}
|
|
868
868
|
function al(e, n, t) {
|
|
869
869
|
e.__onNavigationChange || (Fo(), e.__onNavigationChange = () => {
|
|
870
870
|
if (!t.isConnected) {
|
|
871
|
-
|
|
871
|
+
Pn(e, t);
|
|
872
872
|
return;
|
|
873
873
|
}
|
|
874
874
|
pt(e, n, !0);
|
|
875
|
-
}, window.addEventListener(
|
|
875
|
+
}, window.addEventListener(Vn, e.__onNavigationChange), window.addEventListener("popstate", e.__onNavigationChange), window.addEventListener("hashchange", e.__onNavigationChange), window.addEventListener("beforeunload", e.__onNavigationChange));
|
|
876
876
|
}
|
|
877
877
|
function ol(e, n) {
|
|
878
878
|
e.__disconnectObserver || document.body && (e.__disconnectObserver = new MutationObserver(() => {
|
|
879
|
-
n.isConnected ||
|
|
879
|
+
n.isConnected || Pn(e, n);
|
|
880
880
|
}), e.__disconnectObserver.observe(document.body, {
|
|
881
881
|
childList: !0,
|
|
882
882
|
subtree: !0
|
|
@@ -886,10 +886,10 @@ function ll(e, n, t) {
|
|
|
886
886
|
Array.from(
|
|
887
887
|
e.querySelectorAll('[data-comparison-tooltip="true"]')
|
|
888
888
|
).forEach((r) => {
|
|
889
|
-
r.id !== n &&
|
|
889
|
+
r.id !== n && Pn(r, t);
|
|
890
890
|
});
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function Pt(e) {
|
|
893
893
|
typeof e.__hideTimeoutId == "number" && (window.clearTimeout(e.__hideTimeoutId), e.__hideTimeoutId = void 0);
|
|
894
894
|
}
|
|
895
895
|
function ka(e) {
|
|
@@ -917,10 +917,10 @@ function ea(e, n, t, a, r) {
|
|
|
917
917
|
}));
|
|
918
918
|
}
|
|
919
919
|
function pt(e, n, t = !1) {
|
|
920
|
-
Nt(e) && !t || (
|
|
920
|
+
Nt(e) && !t || (Pt(e), ka(e), Ca(e, !1), 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", un(n));
|
|
921
921
|
}
|
|
922
922
|
function ta(e, n, t = Mo) {
|
|
923
|
-
e.__isTooltipHovered || (
|
|
923
|
+
e.__isTooltipHovered || (Pt(e), e.__hideTimeoutId = window.setTimeout(() => {
|
|
924
924
|
e.__isTooltipHovered || pt(e, n);
|
|
925
925
|
}, t));
|
|
926
926
|
}
|
|
@@ -956,16 +956,16 @@ function sl(e, n, t, a, r) {
|
|
|
956
956
|
}, n.addEventListener("pointerleave", e.__onCanvasPointerLeave, {
|
|
957
957
|
passive: !0
|
|
958
958
|
})), e.__onCanvasClick || (e.__onCanvasClick = (u) => {
|
|
959
|
-
var B,
|
|
959
|
+
var B, A;
|
|
960
960
|
if (!(r != null && r.onViewFullDetails) || !e.__detailsPayload || e.style.opacity !== "1")
|
|
961
961
|
return;
|
|
962
962
|
const p = (g) => {
|
|
963
|
-
var
|
|
963
|
+
var V, _, c, F;
|
|
964
964
|
if (g.length === 0)
|
|
965
965
|
return !1;
|
|
966
|
-
const m = (
|
|
966
|
+
const m = (V = g.find(
|
|
967
967
|
(E) => typeof E.dataIndex == "number"
|
|
968
|
-
)) == null ? void 0 :
|
|
968
|
+
)) == null ? void 0 : V.dataIndex, L = ((_ = t == null ? void 0 : t.data) == null ? void 0 : _.datasets) ?? [], x = (c = t == null ? void 0 : t.config) == null ? void 0 : c.type, w = xa(
|
|
969
969
|
g,
|
|
970
970
|
a,
|
|
971
971
|
(r == null ? void 0 : r.viewFullDetailsLabel) ?? ba(),
|
|
@@ -1009,7 +1009,7 @@ function sl(e, n, t, a, r) {
|
|
|
1009
1009
|
} catch {
|
|
1010
1010
|
return;
|
|
1011
1011
|
}
|
|
1012
|
-
const M = ((
|
|
1012
|
+
const M = ((A = t == null ? void 0 : t.tooltip) == null ? void 0 : A.dataPoints) ?? [];
|
|
1013
1013
|
p(M);
|
|
1014
1014
|
}, n.addEventListener("click", e.__onCanvasClick)), e.__onCanvasPointerUp || (e.__onCanvasPointerUp = (u) => {
|
|
1015
1015
|
if ($t()) {
|
|
@@ -1036,7 +1036,7 @@ function sl(e, n, t, a, r) {
|
|
|
1036
1036
|
pt(e, t, !0);
|
|
1037
1037
|
return;
|
|
1038
1038
|
}
|
|
1039
|
-
Ca(e, !0),
|
|
1039
|
+
Ca(e, !0), Pt(e), e.dataset.cursorCanvasX = String(u.offsetX), e.dataset.cursorCanvasY = String(u.offsetY), e.dataset.caretX = String(u.offsetX), e.dataset.caretY = String(u.offsetY), d.setActiveElements(I, {
|
|
1040
1040
|
x: u.offsetX,
|
|
1041
1041
|
y: u.offsetY
|
|
1042
1042
|
});
|
|
@@ -1053,7 +1053,7 @@ function sl(e, n, t, a, r) {
|
|
|
1053
1053
|
const p = u.target;
|
|
1054
1054
|
p != null && p.closest('[data-tooltip-full-details="true"]') && (u.preventDefault(), u.stopPropagation(), e.__detailsPayload && ((C = r.onViewFullDetails) == null || C.call(r, e.__detailsPayload, t), pt(e, t)));
|
|
1055
1055
|
}, e.addEventListener("click", e.__onDetailsClick)), e.__onTooltipPointerEnter || (e.__onTooltipPointerEnter = () => {
|
|
1056
|
-
e.__isTooltipHovered = !0,
|
|
1056
|
+
e.__isTooltipHovered = !0, Pt(e);
|
|
1057
1057
|
}, e.addEventListener("pointerenter", e.__onTooltipPointerEnter)), e.__onTooltipPointerLeave || (e.__onTooltipPointerLeave = () => {
|
|
1058
1058
|
e.__isTooltipHovered = !1, pt(e, t);
|
|
1059
1059
|
}, e.addEventListener("pointerleave", e.__onTooltipPointerLeave)));
|
|
@@ -1068,7 +1068,7 @@ function il(e, n, t) {
|
|
|
1068
1068
|
return;
|
|
1069
1069
|
}
|
|
1070
1070
|
const u = Nn(n);
|
|
1071
|
-
e.parentElement !== u && u.appendChild(e), $n(e, u),
|
|
1071
|
+
e.parentElement !== u && u.appendChild(e), $n(e, u), zn(
|
|
1072
1072
|
e,
|
|
1073
1073
|
n,
|
|
1074
1074
|
u,
|
|
@@ -1110,7 +1110,7 @@ function ul(e, n) {
|
|
|
1110
1110
|
n != null && n.onViewFullDetails ? ta(d, a) : pt(d, a);
|
|
1111
1111
|
return;
|
|
1112
1112
|
}
|
|
1113
|
-
|
|
1113
|
+
Pt(d);
|
|
1114
1114
|
const N = (n == null ? void 0 : n.viewFullDetailsLabel) ?? ba(), H = !!(n != null && n.onViewFullDetails), I = (G = C.find((ne) => typeof ne.dataIndex == "number")) == null ? void 0 : G.dataIndex, b = ((le = a == null ? void 0 : a.data) == null ? void 0 : le.datasets) ?? [], f = (te = a == null ? void 0 : a.config) == null ? void 0 : te.type, {
|
|
1115
1115
|
markup: { detailsPayload: M, hasCollapsedValues: B }
|
|
1116
1116
|
} = Yo(
|
|
@@ -1123,23 +1123,23 @@ function ul(e, n) {
|
|
|
1123
1123
|
b,
|
|
1124
1124
|
I,
|
|
1125
1125
|
f
|
|
1126
|
-
),
|
|
1127
|
-
d.__detailsPayload =
|
|
1126
|
+
), A = H && B;
|
|
1127
|
+
d.__detailsPayload = A ? M : void 0, d.style.pointerEvents = A ? "auto" : "none";
|
|
1128
1128
|
const g = typeof (r == null ? void 0 : r.caretX) == "number" ? r.caretX : 0, m = Number(d.dataset.cursorCanvasX), L = Number(d.dataset.cursorCanvasY);
|
|
1129
1129
|
if (!(Number.isFinite(m) && Number.isFinite(L))) {
|
|
1130
1130
|
d.style.opacity = "0";
|
|
1131
1131
|
return;
|
|
1132
1132
|
}
|
|
1133
|
-
const w = (ce = a == null ? void 0 : a.scales) == null ? void 0 : ce.x,
|
|
1134
|
-
const U = k == null ? void 0 : k.element,
|
|
1135
|
-
if (typeof
|
|
1133
|
+
const w = (ce = a == null ? void 0 : a.scales) == null ? void 0 : ce.x, V = w && typeof w.getPixelForValue == "function" ? w.getPixelForValue(0) : NaN, _ = e ? C.reduce((ne, k) => {
|
|
1134
|
+
const U = k == null ? void 0 : k.element, z = U == null ? void 0 : U.x;
|
|
1135
|
+
if (typeof z != "number" || !Number.isFinite(z))
|
|
1136
1136
|
return ne;
|
|
1137
1137
|
if (!Number.isFinite(ne))
|
|
1138
|
-
return
|
|
1139
|
-
const
|
|
1140
|
-
return Math.abs(
|
|
1141
|
-
}, Number.NaN) : Number.NaN, c = m, F = L, E = e ? Number.isFinite(
|
|
1142
|
-
|
|
1138
|
+
return z;
|
|
1139
|
+
const P = Number.isFinite(V) ? V : g, $ = Math.abs(ne - P);
|
|
1140
|
+
return Math.abs(z - P) > $ ? z : ne;
|
|
1141
|
+
}, Number.NaN) : Number.NaN, c = m, F = L, E = e ? Number.isFinite(V) && Number.isFinite(_) && _ < V ? "left" : "right" : "center";
|
|
1142
|
+
zn(
|
|
1143
1143
|
d,
|
|
1144
1144
|
s,
|
|
1145
1145
|
u,
|
|
@@ -1162,12 +1162,12 @@ function Et(e) {
|
|
|
1162
1162
|
function a(b, f, M) {
|
|
1163
1163
|
if (b.measureText(f).width <= M) return f;
|
|
1164
1164
|
const B = "…";
|
|
1165
|
-
let
|
|
1166
|
-
for (;
|
|
1167
|
-
const m = Math.floor((
|
|
1168
|
-
b.measureText(L).width <= M ?
|
|
1165
|
+
let A = 0, g = f.length;
|
|
1166
|
+
for (; A < g; ) {
|
|
1167
|
+
const m = Math.floor((A + g) / 2), L = f.slice(0, m) + B;
|
|
1168
|
+
b.measureText(L).width <= M ? A = m + 1 : g = m;
|
|
1169
1169
|
}
|
|
1170
|
-
return f.slice(0,
|
|
1170
|
+
return f.slice(0, A - 1) + B;
|
|
1171
1171
|
}
|
|
1172
1172
|
function r(b) {
|
|
1173
1173
|
const f = b == null ? "" : String(b), [M] = f.split("#");
|
|
@@ -1204,7 +1204,7 @@ function Et(e) {
|
|
|
1204
1204
|
let M = String(b);
|
|
1205
1205
|
const B = this;
|
|
1206
1206
|
B && typeof B.getLabelForValue == "function" && (M = B.getLabelForValue(b)), M = r(M);
|
|
1207
|
-
const
|
|
1207
|
+
const A = B == null ? void 0 : B.chart, g = B == null ? void 0 : B.ctx, m = A.height * 0.25;
|
|
1208
1208
|
if (g && m > 0) {
|
|
1209
1209
|
g.save();
|
|
1210
1210
|
const x = g.measureText(M).width > m ? a(g, M, m) : M;
|
|
@@ -1252,7 +1252,7 @@ function Et(e) {
|
|
|
1252
1252
|
let M = String(b);
|
|
1253
1253
|
const B = this;
|
|
1254
1254
|
B && typeof B.getLabelForValue == "function" && (M = B.getLabelForValue(b)), M = r(M);
|
|
1255
|
-
const
|
|
1255
|
+
const A = B == null ? void 0 : B.chart, g = B == null ? void 0 : B.ctx, m = A.width * 0.4;
|
|
1256
1256
|
if (g && m > 0) {
|
|
1257
1257
|
g.save();
|
|
1258
1258
|
const x = g.measureText(M).width > m ? a(g, M, m) : M;
|
|
@@ -1285,9 +1285,9 @@ function Et(e) {
|
|
|
1285
1285
|
const f = e.legendColor ?? "#6b6b6b", M = ((B = b == null ? void 0 : b.data) == null ? void 0 : B.datasets) || [];
|
|
1286
1286
|
if (M.length === 0) return [];
|
|
1287
1287
|
if (M.length === 1 && Array.isArray(M[0].backgroundColor) && M[0].backgroundColor.length > 1 && Array.isArray(M[0].data)) {
|
|
1288
|
-
const
|
|
1288
|
+
const A = M[0];
|
|
1289
1289
|
return b.data.labels.map((m, L) => {
|
|
1290
|
-
const x =
|
|
1290
|
+
const x = A.backgroundColor[L];
|
|
1291
1291
|
return {
|
|
1292
1292
|
text: m,
|
|
1293
1293
|
fontColor: f,
|
|
@@ -1300,10 +1300,10 @@ function Et(e) {
|
|
|
1300
1300
|
};
|
|
1301
1301
|
});
|
|
1302
1302
|
}
|
|
1303
|
-
return b.data.datasets.map((
|
|
1304
|
-
const m =
|
|
1303
|
+
return b.data.datasets.map((A, g) => {
|
|
1304
|
+
const m = A.borderColor || A.backgroundColor;
|
|
1305
1305
|
return {
|
|
1306
|
-
text: s(
|
|
1306
|
+
text: s(A.label),
|
|
1307
1307
|
fontColor: f,
|
|
1308
1308
|
color: f,
|
|
1309
1309
|
fillStyle: m,
|
|
@@ -1360,12 +1360,12 @@ const cl = {
|
|
|
1360
1360
|
function B() {
|
|
1361
1361
|
return typeof window > "u" ? na : Math.floor(window.innerWidth * 0.94);
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function A(c) {
|
|
1364
1364
|
const F = B(), E = Math.min(Cl, F);
|
|
1365
1365
|
return Math.min(F, Math.max(E, Math.floor(c)));
|
|
1366
1366
|
}
|
|
1367
1367
|
function g(c) {
|
|
1368
|
-
typeof window > "u" || (u.value =
|
|
1368
|
+
typeof window > "u" || (u.value = A(window.innerWidth - c));
|
|
1369
1369
|
}
|
|
1370
1370
|
function m() {
|
|
1371
1371
|
p.value = !1, document.removeEventListener("pointermove", L), document.removeEventListener("pointerup", m), document.removeEventListener("pointercancel", m);
|
|
@@ -1377,9 +1377,9 @@ const cl = {
|
|
|
1377
1377
|
d.value && (p.value = !0, g(c.clientX), document.addEventListener("pointermove", L), document.addEventListener("pointerup", m), document.addEventListener("pointercancel", m));
|
|
1378
1378
|
}
|
|
1379
1379
|
function w() {
|
|
1380
|
-
u.value =
|
|
1380
|
+
u.value = A(u.value);
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1382
|
+
function V(c) {
|
|
1383
1383
|
var G;
|
|
1384
1384
|
if (!d.value)
|
|
1385
1385
|
return;
|
|
@@ -1393,9 +1393,9 @@ const cl = {
|
|
|
1393
1393
|
d.value && c.key === "Escape" && M();
|
|
1394
1394
|
}
|
|
1395
1395
|
return it(() => {
|
|
1396
|
-
u.value =
|
|
1396
|
+
u.value = A(u.value), document.addEventListener("pointerdown", V, !0), document.addEventListener("keydown", _), window.addEventListener("resize", w);
|
|
1397
1397
|
}), ia(() => {
|
|
1398
|
-
m(), document.removeEventListener("pointerdown",
|
|
1398
|
+
m(), document.removeEventListener("pointerdown", V, !0), document.removeEventListener("keydown", _), window.removeEventListener("resize", w);
|
|
1399
1399
|
}), (c, F) => {
|
|
1400
1400
|
const E = ge("FmButton");
|
|
1401
1401
|
return Y(), we(Ha, {
|
|
@@ -1406,7 +1406,7 @@ const cl = {
|
|
|
1406
1406
|
"leave-from-class": "translate-x-0 opacity-100",
|
|
1407
1407
|
"leave-to-class": "translate-x-full opacity-0"
|
|
1408
1408
|
}, {
|
|
1409
|
-
default:
|
|
1409
|
+
default: ze(() => [
|
|
1410
1410
|
d.value ? (Y(), be("div", cl, [
|
|
1411
1411
|
J("div", {
|
|
1412
1412
|
ref_key: "panelRef",
|
|
@@ -1531,9 +1531,9 @@ const wl = {
|
|
|
1531
1531
|
},
|
|
1532
1532
|
emits: ["toggleDatasetVisibility", "toggleDataPointVisibility"],
|
|
1533
1533
|
setup(e, { emit: n }) {
|
|
1534
|
-
const t = e, a = n, { t: r } = wt(), s = D([]), u = D(0), p = D(!1), d = D(!1), C = D(0), N = D(null), H = D(null), I = D(null), b = D(null), f = D(!1), M = D(0), B = D(0),
|
|
1534
|
+
const t = e, a = n, { t: r } = wt(), s = D([]), u = D(0), p = D(!1), d = D(!1), C = D(0), N = D(null), H = D(null), I = D(null), b = D(null), f = D(!1), M = D(0), B = D(0), A = D(!1), g = D(0), m = D(0), L = v(() => t.enabled !== !1), x = v(() => t.position === "left" || t.position === "right");
|
|
1535
1535
|
let w = null;
|
|
1536
|
-
const
|
|
1536
|
+
const V = v(
|
|
1537
1537
|
() => p.value && d.value && f.value
|
|
1538
1538
|
), _ = v(() => ({
|
|
1539
1539
|
height: `${Math.max(0, M.value)}px`,
|
|
@@ -1599,18 +1599,18 @@ const wl = {
|
|
|
1599
1599
|
function U() {
|
|
1600
1600
|
k();
|
|
1601
1601
|
}
|
|
1602
|
-
function
|
|
1602
|
+
function z(o) {
|
|
1603
1603
|
const y = I.value, h = H.value;
|
|
1604
1604
|
if (!y || !h || !f.value)
|
|
1605
1605
|
return;
|
|
1606
1606
|
const S = h.getBoundingClientRect(), K = o.clientY - S.top, q = Math.max(0, K - M.value / 2), oe = Math.max(1, y.clientHeight - M.value), pe = Math.min(1, q / oe), j = Math.max(0, y.scrollHeight - y.clientHeight);
|
|
1607
1607
|
y.scrollTop = pe * j, k();
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1610
|
-
f.value && (
|
|
1609
|
+
function P(o) {
|
|
1610
|
+
f.value && (A.value = !0, g.value = o.clientY, m.value = B.value);
|
|
1611
1611
|
}
|
|
1612
1612
|
function $(o) {
|
|
1613
|
-
if (!
|
|
1613
|
+
if (!A.value)
|
|
1614
1614
|
return;
|
|
1615
1615
|
const y = I.value;
|
|
1616
1616
|
if (!y)
|
|
@@ -1619,7 +1619,7 @@ const wl = {
|
|
|
1619
1619
|
y.scrollTop = q * oe, k();
|
|
1620
1620
|
}
|
|
1621
1621
|
function R() {
|
|
1622
|
-
|
|
1622
|
+
A.value && (A.value = !1);
|
|
1623
1623
|
}
|
|
1624
1624
|
function re() {
|
|
1625
1625
|
var y;
|
|
@@ -1718,7 +1718,7 @@ const wl = {
|
|
|
1718
1718
|
if (h) {
|
|
1719
1719
|
const q = typeof o.datasetIndex == "number" ? o.datasetIndex : y, oe = Number.isInteger(t.metricCount) && Number(t.metricCount) > 0 ? Number(t.metricCount) : Math.max(1, Number(s.value.length));
|
|
1720
1720
|
if (h === Ue.breakdown) {
|
|
1721
|
-
const j =
|
|
1721
|
+
const j = zt({
|
|
1722
1722
|
fallbackIndex: q,
|
|
1723
1723
|
metricCount: oe
|
|
1724
1724
|
}), ke = nt({
|
|
@@ -1763,7 +1763,7 @@ const wl = {
|
|
|
1763
1763
|
return o;
|
|
1764
1764
|
const y = Number.isInteger(t.metricCount) && Number(t.metricCount) > 0 ? Number(t.metricCount) : 1;
|
|
1765
1765
|
return [...o.map((S, K) => {
|
|
1766
|
-
const q = typeof S.datasetIndex == "number" ? S.datasetIndex : K, oe =
|
|
1766
|
+
const q = typeof S.datasetIndex == "number" ? S.datasetIndex : K, oe = zt({
|
|
1767
1767
|
fallbackIndex: q,
|
|
1768
1768
|
metricCount: y
|
|
1769
1769
|
});
|
|
@@ -1832,7 +1832,7 @@ const wl = {
|
|
|
1832
1832
|
function Q(o) {
|
|
1833
1833
|
var h;
|
|
1834
1834
|
return (Array.isArray((h = o == null ? void 0 : o.data) == null ? void 0 : h.datasets) ? o.data.datasets : []).map((S, K) => {
|
|
1835
|
-
const q = ye((S == null ? void 0 : S.borderColor) ?? (S == null ? void 0 : S.backgroundColor)), oe =
|
|
1835
|
+
const q = ye((S == null ? void 0 : S.borderColor) ?? (S == null ? void 0 : S.backgroundColor)), oe = At({
|
|
1836
1836
|
datasetIndex: K,
|
|
1837
1837
|
label: S == null ? void 0 : S.label
|
|
1838
1838
|
});
|
|
@@ -1861,7 +1861,7 @@ const wl = {
|
|
|
1861
1861
|
index: ke,
|
|
1862
1862
|
hidden: Ne(ke)
|
|
1863
1863
|
})) : h.map((j, ke) => ({
|
|
1864
|
-
datasetKey:
|
|
1864
|
+
datasetKey: At({
|
|
1865
1865
|
datasetIndex: ke,
|
|
1866
1866
|
label: j == null ? void 0 : j.label
|
|
1867
1867
|
}),
|
|
@@ -1874,7 +1874,7 @@ const wl = {
|
|
|
1874
1874
|
),
|
|
1875
1875
|
datasetIndex: ke,
|
|
1876
1876
|
hidden: Array.isArray(t.hiddenDatasetKeys) ? t.hiddenDatasetKeys.includes(
|
|
1877
|
-
|
|
1877
|
+
At({
|
|
1878
1878
|
datasetIndex: ke,
|
|
1879
1879
|
label: j == null ? void 0 : j.label
|
|
1880
1880
|
})
|
|
@@ -2014,7 +2014,7 @@ const wl = {
|
|
|
2014
2014
|
} : d.value ? {
|
|
2015
2015
|
overflow: "hidden"
|
|
2016
2016
|
} : {} : {});
|
|
2017
|
-
function
|
|
2017
|
+
function Ae() {
|
|
2018
2018
|
var S;
|
|
2019
2019
|
if (!L.value) {
|
|
2020
2020
|
s.value = [], u.value = 0, p.value = !1, d.value = !1, C.value = 0, G({ height: 0, width: 0 });
|
|
@@ -2043,7 +2043,7 @@ const wl = {
|
|
|
2043
2043
|
}
|
|
2044
2044
|
function Oe(o, y) {
|
|
2045
2045
|
return Array.isArray(o.datasetKeys) && o.datasetKeys.length > 0 ? o.datasetKeys.filter((h) => typeof h == "string" && h.trim().length > 0) : typeof o.datasetKey == "string" && o.datasetKey.trim().length > 0 ? [o.datasetKey] : y.map(
|
|
2046
|
-
(h) =>
|
|
2046
|
+
(h) => At({
|
|
2047
2047
|
datasetIndex: h,
|
|
2048
2048
|
label: o.text
|
|
2049
2049
|
})
|
|
@@ -2063,7 +2063,7 @@ const wl = {
|
|
|
2063
2063
|
const S = Array.isArray((K = o == null ? void 0 : o.data) == null ? void 0 : K.datasets) ? o.data.datasets[y] : null;
|
|
2064
2064
|
S && typeof S == "object" && (S.hidden = !h);
|
|
2065
2065
|
}
|
|
2066
|
-
function
|
|
2066
|
+
function Ve(o, y) {
|
|
2067
2067
|
var oe;
|
|
2068
2068
|
if (typeof o.toggleDataVisibility == "function") {
|
|
2069
2069
|
o.toggleDataVisibility(y);
|
|
@@ -2076,7 +2076,7 @@ const wl = {
|
|
|
2076
2076
|
q && typeof q.hidden == "boolean" && (q.hidden = !q.hidden);
|
|
2077
2077
|
}
|
|
2078
2078
|
function an(o = 0) {
|
|
2079
|
-
|
|
2079
|
+
Ae();
|
|
2080
2080
|
const y = te(), h = s.value.length > 0;
|
|
2081
2081
|
if (y || h || o >= Ll) {
|
|
2082
2082
|
le();
|
|
@@ -2094,7 +2094,7 @@ const wl = {
|
|
|
2094
2094
|
a("toggleDataPointVisibility", { itemIndex: q });
|
|
2095
2095
|
return;
|
|
2096
2096
|
}
|
|
2097
|
-
h && (
|
|
2097
|
+
h && (Ve(h, q), h.update());
|
|
2098
2098
|
const xe = h && typeof h.getDataVisibility == "function" ? !h.getDataVisibility(q) : o.hidden !== !0;
|
|
2099
2099
|
We(
|
|
2100
2100
|
(ve) => typeof ve.index == "number" ? ve.index === q : ve.datasetIndex === o.datasetIndex && ve.text === o.text,
|
|
@@ -2107,7 +2107,7 @@ const wl = {
|
|
|
2107
2107
|
pe.forEach((xe, ve) => {
|
|
2108
2108
|
a("toggleDatasetVisibility", {
|
|
2109
2109
|
datasetIndex: xe,
|
|
2110
|
-
datasetKey: j[ve] ??
|
|
2110
|
+
datasetKey: j[ve] ?? At({
|
|
2111
2111
|
datasetIndex: xe,
|
|
2112
2112
|
label: o.text
|
|
2113
2113
|
})
|
|
@@ -2151,7 +2151,7 @@ const wl = {
|
|
|
2151
2151
|
}
|
|
2152
2152
|
return it(() => {
|
|
2153
2153
|
an(), window.addEventListener("mousemove", $), window.addEventListener("mouseup", R);
|
|
2154
|
-
}),
|
|
2154
|
+
}), Pe(
|
|
2155
2155
|
() => [
|
|
2156
2156
|
t.enabled,
|
|
2157
2157
|
t.legendUpdateKey,
|
|
@@ -2159,10 +2159,10 @@ const wl = {
|
|
|
2159
2159
|
t.hiddenDataPointIndexes
|
|
2160
2160
|
],
|
|
2161
2161
|
() => {
|
|
2162
|
-
|
|
2162
|
+
Ae();
|
|
2163
2163
|
}
|
|
2164
2164
|
), ia(() => {
|
|
2165
|
-
|
|
2165
|
+
A.value = !1, le(), G({ height: 0, width: 0 }), window.removeEventListener("mousemove", $), window.removeEventListener("mouseup", R);
|
|
2166
2166
|
}), (o, y) => L.value ? (Y(), be("div", {
|
|
2167
2167
|
key: 0,
|
|
2168
2168
|
ref_key: "legendPanelRef",
|
|
@@ -2232,15 +2232,15 @@ const wl = {
|
|
|
2232
2232
|
}, Ge(p.value ? l(r)("report.widget.legend.viewLess") : l(r)("report.widget.legend.viewMore")), 1)
|
|
2233
2233
|
])) : Me("", !0)
|
|
2234
2234
|
], 38),
|
|
2235
|
-
|
|
2235
|
+
V.value ? (Y(), be("div", {
|
|
2236
2236
|
key: 0,
|
|
2237
2237
|
class: "absolute top-0 right-0 h-full w-2 rounded-full bg-transparent",
|
|
2238
|
-
onMousedown:
|
|
2238
|
+
onMousedown: z
|
|
2239
2239
|
}, [
|
|
2240
2240
|
J("div", {
|
|
2241
2241
|
class: "absolute left-0 w-full rounded-full bg-gray-500/60 cursor-pointer hover:bg-gray-500/85",
|
|
2242
2242
|
style: Ze(_.value),
|
|
2243
|
-
onMousedown: Tt(
|
|
2243
|
+
onMousedown: Tt(P, ["stop"])
|
|
2244
2244
|
}, null, 36)
|
|
2245
2245
|
], 32)) : Me("", !0)
|
|
2246
2246
|
], 512)
|
|
@@ -2250,7 +2250,7 @@ const wl = {
|
|
|
2250
2250
|
function nn(e) {
|
|
2251
2251
|
const n = D([]), t = v(() => new Set(n.value));
|
|
2252
2252
|
function a(u, p) {
|
|
2253
|
-
return
|
|
2253
|
+
return At({
|
|
2254
2254
|
datasetIndex: p,
|
|
2255
2255
|
label: u == null ? void 0 : u.label
|
|
2256
2256
|
});
|
|
@@ -2266,7 +2266,7 @@ function nn(e) {
|
|
|
2266
2266
|
}
|
|
2267
2267
|
n.value = [...n.value, d];
|
|
2268
2268
|
}
|
|
2269
|
-
return
|
|
2269
|
+
return Pe(
|
|
2270
2270
|
e,
|
|
2271
2271
|
(u) => {
|
|
2272
2272
|
const p = new Set(
|
|
@@ -2301,66 +2301,66 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
|
|
|
2301
2301
|
} = tn(a, {
|
|
2302
2302
|
maxTooltipItems: r
|
|
2303
2303
|
}), H = v(() => {
|
|
2304
|
-
var
|
|
2305
|
-
return ((
|
|
2304
|
+
var z;
|
|
2305
|
+
return ((z = t.value.data) == null ? void 0 : z.datasets) ?? [];
|
|
2306
2306
|
}), I = v(() => {
|
|
2307
|
-
var
|
|
2308
|
-
return ((
|
|
2309
|
-
}), b = v(() => I.value.length === 1 && H.value.length > 1 && H.value.every((
|
|
2307
|
+
var z;
|
|
2308
|
+
return ((z = t.value.data) == null ? void 0 : z.xAxis) ?? [];
|
|
2309
|
+
}), b = v(() => I.value.length === 1 && H.value.length > 1 && H.value.every((z) => z.values.length === 1 && z.isCompare !== !0)), f = v(() => b.value ? H.value.map((z) => z.name) : I.value), { datalabels: M, xCfg: B, yCfg: A, isTransposed: g, legend: m, chartWidth: L, chartHeight: x } = Et(
|
|
2310
2310
|
t.value
|
|
2311
2311
|
), w = v(
|
|
2312
2312
|
() => Ot(t.value.isTransposed === !0, p.value)
|
|
2313
|
-
),
|
|
2314
|
-
const
|
|
2315
|
-
return !
|
|
2313
|
+
), V = Qt("bar"), _ = v(() => {
|
|
2314
|
+
const z = m.value.position;
|
|
2315
|
+
return !z || z === "top" || z === "bottom" || z === "left" || z === "right";
|
|
2316
2316
|
}), c = v(() => m.value.position ?? "top"), F = v(
|
|
2317
2317
|
() => c.value === "left" || c.value === "right"
|
|
2318
2318
|
), E = v(
|
|
2319
2319
|
() => c.value === "top" || c.value === "left"
|
|
2320
2320
|
), G = v(() => H.value.length > 0 ? [
|
|
2321
|
-
...H.value.map((
|
|
2321
|
+
...H.value.map((z, P) => {
|
|
2322
2322
|
const $ = nt({
|
|
2323
|
-
datasetIndex:
|
|
2324
|
-
isCompare:
|
|
2323
|
+
datasetIndex: P,
|
|
2324
|
+
isCompare: z.isCompare,
|
|
2325
2325
|
metricCount: t.value.metricCount,
|
|
2326
2326
|
mode: t.value.chartColorBinding
|
|
2327
2327
|
}), R = nt({
|
|
2328
|
-
datasetIndex:
|
|
2329
|
-
isCompare:
|
|
2328
|
+
datasetIndex: P,
|
|
2329
|
+
isCompare: z.isCompare,
|
|
2330
2330
|
metricCount: t.value.metricCount,
|
|
2331
2331
|
mode: Ue.metric
|
|
2332
2332
|
});
|
|
2333
|
-
let re =
|
|
2333
|
+
let re = z.values;
|
|
2334
2334
|
b.value && (re = H.value.map(
|
|
2335
|
-
(ue, he) => he ===
|
|
2335
|
+
(ue, he) => he === P ? z.values[0] : NaN
|
|
2336
2336
|
));
|
|
2337
|
-
const X = t.value.chartColorBinding === Ue.breakdown, ee =
|
|
2338
|
-
fallbackIndex:
|
|
2337
|
+
const X = t.value.chartColorBinding === Ue.breakdown, ee = zt({
|
|
2338
|
+
fallbackIndex: P,
|
|
2339
2339
|
metricCount: t.value.metricCount
|
|
2340
2340
|
}), ae = re.map((ue) => ue === null ? NaN : Number(ue));
|
|
2341
2341
|
return {
|
|
2342
|
-
label:
|
|
2342
|
+
label: z.name,
|
|
2343
2343
|
data: ae,
|
|
2344
|
-
dash: !!
|
|
2344
|
+
dash: !!z.isCompare,
|
|
2345
2345
|
backgroundColor: X ? Wt({
|
|
2346
2346
|
breakdownIndex: ee,
|
|
2347
2347
|
metricIndex: R,
|
|
2348
2348
|
metricCount: t.value.metricCount,
|
|
2349
|
-
isCompare:
|
|
2349
|
+
isCompare: z.isCompare,
|
|
2350
2350
|
breakdownColors: t.value.chartBreakdownColors,
|
|
2351
2351
|
useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
|
|
2352
2352
|
customColors: t.value.chartColors
|
|
2353
2353
|
}) : Ct({
|
|
2354
2354
|
index: $,
|
|
2355
|
-
isCompare:
|
|
2355
|
+
isCompare: z.isCompare,
|
|
2356
2356
|
customColors: t.value.chartColors
|
|
2357
2357
|
})
|
|
2358
2358
|
};
|
|
2359
2359
|
})
|
|
2360
2360
|
] : []), { hiddenDatasetKeys: le, isDatasetHidden: te, toggleDatasetVisibility: ce } = nn(G), ne = v(
|
|
2361
|
-
() => G.value.map((
|
|
2362
|
-
...
|
|
2363
|
-
hidden: te(
|
|
2361
|
+
() => G.value.map((z, P) => ({
|
|
2362
|
+
...z,
|
|
2363
|
+
hidden: te(z, P)
|
|
2364
2364
|
}))
|
|
2365
2365
|
), k = Ht();
|
|
2366
2366
|
function U() {
|
|
@@ -2370,14 +2370,14 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
|
|
|
2370
2370
|
tt(() => {
|
|
2371
2371
|
U();
|
|
2372
2372
|
});
|
|
2373
|
-
}),
|
|
2373
|
+
}), Pe([ne], () => {
|
|
2374
2374
|
tt(() => U());
|
|
2375
|
-
}), (
|
|
2375
|
+
}), (z, P) => {
|
|
2376
2376
|
var R, re, X, ee, ae, ue;
|
|
2377
2377
|
const $ = ge("FmBarChart");
|
|
2378
2378
|
return Y(), be(et, null, [
|
|
2379
2379
|
J("div", Il, [
|
|
2380
|
-
yt(
|
|
2380
|
+
yt(z.$slots, "menu"),
|
|
2381
2381
|
J("div", {
|
|
2382
2382
|
class: qe(["chart-layout", {
|
|
2383
2383
|
"chart-layout--side": _.value && (l(m).display ?? !1) && F.value
|
|
@@ -2407,14 +2407,14 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
|
|
|
2407
2407
|
datasets: ne.value,
|
|
2408
2408
|
"x-axis": { categories: f.value },
|
|
2409
2409
|
"x-cfg": l(B),
|
|
2410
|
-
"y-cfg": l(
|
|
2410
|
+
"y-cfg": l(A),
|
|
2411
2411
|
transpose: l(g),
|
|
2412
2412
|
legend: {
|
|
2413
2413
|
display: !1
|
|
2414
2414
|
},
|
|
2415
2415
|
tooltip: w.value,
|
|
2416
2416
|
datalabels: l(M),
|
|
2417
|
-
plugins: [l(
|
|
2417
|
+
plugins: [l(V)],
|
|
2418
2418
|
"maintain-aspect-ratio": !1,
|
|
2419
2419
|
style: Ze({
|
|
2420
2420
|
"--chart-width": _.value && (l(m).display ?? !1) && F.value ? "calc(100% - var(--legend-panel-width, 0px))" : l(L) !== void 0 ? l(L) + "px" : "100%",
|
|
@@ -2485,9 +2485,9 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
|
|
|
2485
2485
|
tt(() => {
|
|
2486
2486
|
b();
|
|
2487
2487
|
});
|
|
2488
|
-
}),
|
|
2488
|
+
}), Pe([H], () => {
|
|
2489
2489
|
tt(() => b());
|
|
2490
|
-
}),
|
|
2490
|
+
}), Pe(
|
|
2491
2491
|
() => t.value.data.datasets,
|
|
2492
2492
|
(c) => {
|
|
2493
2493
|
const F = new Set(
|
|
@@ -2502,7 +2502,7 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
|
|
|
2502
2502
|
const f = v(() => typeof t.value.legendFontSize == "number" ? t.value.legendFontSize : a.value.lg ? 12 : 8), M = v(() => {
|
|
2503
2503
|
const c = p.value.position;
|
|
2504
2504
|
return !c || c === "top" || c === "bottom" || c === "left" || c === "right";
|
|
2505
|
-
}), B = v(() => p.value.display !== !1),
|
|
2505
|
+
}), B = v(() => p.value.display !== !1), A = v(() => M.value && B.value), g = v(() => p.value.position ?? "top"), m = v(
|
|
2506
2506
|
() => g.value === "left" || g.value === "right"
|
|
2507
2507
|
), L = v(
|
|
2508
2508
|
() => g.value === "top" || g.value === "left"
|
|
@@ -2510,7 +2510,7 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
|
|
|
2510
2510
|
var F;
|
|
2511
2511
|
const c = (F = p.value.labels) == null ? void 0 : F.color;
|
|
2512
2512
|
return typeof c == "string" && c.trim().length > 0 ? c : t.value.legendColor ?? "#6b6b6b";
|
|
2513
|
-
}), w = v(() => f.value),
|
|
2513
|
+
}), w = v(() => f.value), V = So();
|
|
2514
2514
|
function _({ itemIndex: c }) {
|
|
2515
2515
|
if (s.value.includes(c)) {
|
|
2516
2516
|
s.value = s.value.filter((F) => F !== c);
|
|
@@ -2524,10 +2524,10 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
|
|
|
2524
2524
|
yt(c.$slots, "menu"),
|
|
2525
2525
|
J("div", {
|
|
2526
2526
|
class: qe(["chart-layout", {
|
|
2527
|
-
"chart-layout--side":
|
|
2527
|
+
"chart-layout--side": A.value && m.value
|
|
2528
2528
|
}])
|
|
2529
2529
|
}, [
|
|
2530
|
-
|
|
2530
|
+
A.value && L.value ? (Y(), we(rt, {
|
|
2531
2531
|
key: 0,
|
|
2532
2532
|
"chart-ref": r.value,
|
|
2533
2533
|
enabled: B.value,
|
|
@@ -2551,7 +2551,7 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
|
|
|
2551
2551
|
percentage: "70%",
|
|
2552
2552
|
datasets: H.value,
|
|
2553
2553
|
metrics: N.value,
|
|
2554
|
-
tooltip: l(
|
|
2554
|
+
tooltip: l(V),
|
|
2555
2555
|
variant: "doughnut",
|
|
2556
2556
|
legend: {
|
|
2557
2557
|
display: !1
|
|
@@ -2559,11 +2559,11 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
|
|
|
2559
2559
|
datalabels: l(u),
|
|
2560
2560
|
"maintain-aspect-ratio": !1,
|
|
2561
2561
|
style: Ze({
|
|
2562
|
-
"--chart-width":
|
|
2563
|
-
"--chart-height":
|
|
2562
|
+
"--chart-width": A.value && m.value ? "calc(100% - var(--legend-panel-width, 0px))" : l(d) !== void 0 ? l(d) + "px" : "100%",
|
|
2563
|
+
"--chart-height": A.value && !m.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(C) !== void 0 ? l(C) + "px" : "100%"
|
|
2564
2564
|
})
|
|
2565
2565
|
}, null, 8, ["datasets", "metrics", "tooltip", "datalabels", "style"]),
|
|
2566
|
-
|
|
2566
|
+
A.value && !L.value ? (Y(), we(rt, {
|
|
2567
2567
|
key: 1,
|
|
2568
2568
|
"chart-ref": r.value,
|
|
2569
2569
|
enabled: B.value,
|
|
@@ -2593,7 +2593,7 @@ function cn(e) {
|
|
|
2593
2593
|
const [a, r] = n.split("."), s = new Intl.NumberFormat("en-US").format(Number(a));
|
|
2594
2594
|
return r !== void 0 ? `${s}.${r}` : s;
|
|
2595
2595
|
}
|
|
2596
|
-
const
|
|
2596
|
+
const Al = { class: "flex flex-col gap-1" }, Vl = { class: "fm-typo-en-title-md-600" }, $l = { class: "flex gap-2" }, Nl = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, zl = { key: 0 }, Pl = { key: 1 }, Rl = /* @__PURE__ */ at({
|
|
2597
2597
|
__name: "WidgetScorecard",
|
|
2598
2598
|
props: {
|
|
2599
2599
|
modelValue: { required: !0 },
|
|
@@ -2632,10 +2632,10 @@ const Vl = { class: "flex flex-col gap-1" }, Al = { class: "fm-typo-en-title-md-
|
|
|
2632
2632
|
color: "#36a2eb"
|
|
2633
2633
|
}))), b = v(() => Ot(!1, !0));
|
|
2634
2634
|
return (f, M) => {
|
|
2635
|
-
const B = ge("FmIcon"),
|
|
2636
|
-
return Y(), be("div",
|
|
2635
|
+
const B = ge("FmIcon"), A = ge("FmChip"), g = ge("FmTooltip"), m = ge("FmLineChart");
|
|
2636
|
+
return Y(), be("div", Al, [
|
|
2637
2637
|
yt(f.$slots, "menu"),
|
|
2638
|
-
J("p",
|
|
2638
|
+
J("p", Vl, Ge(p.value), 1),
|
|
2639
2639
|
J("div", $l, [
|
|
2640
2640
|
me(g, {
|
|
2641
2641
|
disabled: d.value === null,
|
|
@@ -2643,20 +2643,20 @@ const Vl = { class: "flex flex-col gap-1" }, Al = { class: "fm-typo-en-title-md-
|
|
|
2643
2643
|
"hide-arrow": "",
|
|
2644
2644
|
variant: "rich"
|
|
2645
2645
|
}, {
|
|
2646
|
-
content:
|
|
2646
|
+
content: ze(() => {
|
|
2647
2647
|
var L;
|
|
2648
2648
|
return [
|
|
2649
2649
|
J("span", Nl, Ge(`vs. ${(L = l(r).defaultCompareType) == null ? void 0 : L.split("_").join(" ")}`), 1)
|
|
2650
2650
|
];
|
|
2651
2651
|
}),
|
|
2652
|
-
default:
|
|
2653
|
-
d.value ? (Y(), we(
|
|
2652
|
+
default: ze(() => [
|
|
2653
|
+
d.value ? (Y(), we(A, {
|
|
2654
2654
|
key: 0,
|
|
2655
2655
|
icon: d.value.icon.name,
|
|
2656
2656
|
class: qe(`bg-${d.value.icon.tailwind}`),
|
|
2657
2657
|
compact: ""
|
|
2658
2658
|
}, {
|
|
2659
|
-
default:
|
|
2659
|
+
default: ze(() => [
|
|
2660
2660
|
me(B, {
|
|
2661
2661
|
name: d.value.icon.name,
|
|
2662
2662
|
color: d.value.icon.color
|
|
@@ -2668,13 +2668,13 @@ const Vl = { class: "flex flex-col gap-1" }, Al = { class: "fm-typo-en-title-md-
|
|
|
2668
2668
|
]),
|
|
2669
2669
|
_: 1
|
|
2670
2670
|
}, 8, ["icon", "class"])) : Me("", !0),
|
|
2671
|
-
l(a).endDate != null && l(a).startDate != null && d.value === null ? (Y(), we(
|
|
2671
|
+
l(a).endDate != null && l(a).startDate != null && d.value === null ? (Y(), we(A, {
|
|
2672
2672
|
key: 1,
|
|
2673
2673
|
class: "invisible pointer-events-none",
|
|
2674
2674
|
"aria-hidden": "true",
|
|
2675
2675
|
compact: ""
|
|
2676
2676
|
}, {
|
|
2677
|
-
default:
|
|
2677
|
+
default: ze(() => [
|
|
2678
2678
|
me(B, {
|
|
2679
2679
|
name: "arrow_upward",
|
|
2680
2680
|
color: "#C7C7CC"
|
|
@@ -2687,7 +2687,7 @@ const Vl = { class: "flex flex-col gap-1" }, Al = { class: "fm-typo-en-title-md-
|
|
|
2687
2687
|
_: 1
|
|
2688
2688
|
}, 8, ["disabled"])
|
|
2689
2689
|
]),
|
|
2690
|
-
N.value ? (Y(), be("div",
|
|
2690
|
+
N.value ? (Y(), be("div", zl, [
|
|
2691
2691
|
C(N.value.type) === "line" ? (Y(), we(m, {
|
|
2692
2692
|
key: 0,
|
|
2693
2693
|
class: "sparkline",
|
|
@@ -2702,7 +2702,7 @@ const Vl = { class: "flex flex-col gap-1" }, Al = { class: "fm-typo-en-title-md-
|
|
|
2702
2702
|
tooltip: b.value,
|
|
2703
2703
|
"maintain-aspect-ratio": !1
|
|
2704
2704
|
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : Me("", !0)
|
|
2705
|
-
])) : (Y(), be("div",
|
|
2705
|
+
])) : (Y(), be("div", Pl, M[1] || (M[1] = [
|
|
2706
2706
|
J("div", { class: "sparkline" }, [
|
|
2707
2707
|
J("div", { class: "flex flex-col gap-8" }, [
|
|
2708
2708
|
J("div"),
|
|
@@ -2726,17 +2726,17 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
2726
2726
|
n[g] = m, n.value = [...n.value], u(g, m, L, x);
|
|
2727
2727
|
}, s = (g, m) => {
|
|
2728
2728
|
const L = (m == null ? void 0 : m.querySelectorAll("thead tr")) ?? [], x = (m == null ? void 0 : m.querySelectorAll("tbody tr")) ?? [];
|
|
2729
|
-
[...L, ...x].forEach((
|
|
2730
|
-
const _ =
|
|
2729
|
+
[...L, ...x].forEach((V) => {
|
|
2730
|
+
const _ = V;
|
|
2731
2731
|
_ && (_.style.height = `${g}px`);
|
|
2732
2732
|
});
|
|
2733
2733
|
}, u = (g, m, L, x = !1) => {
|
|
2734
2734
|
const w = (L == null ? void 0 : L.querySelectorAll("th")) ?? [];
|
|
2735
2735
|
if (g === void 0) return;
|
|
2736
|
-
const
|
|
2737
|
-
if (!
|
|
2736
|
+
const V = w[g], _ = x ? n[g] : m;
|
|
2737
|
+
if (!V || _ === void 0) return;
|
|
2738
2738
|
const c = () => {
|
|
2739
|
-
|
|
2739
|
+
V.style.width = `${_}px`;
|
|
2740
2740
|
};
|
|
2741
2741
|
x ? requestAnimationFrame(c) : c();
|
|
2742
2742
|
}, p = () => {
|
|
@@ -2774,13 +2774,13 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
2774
2774
|
if (!x) return;
|
|
2775
2775
|
const w = x.querySelectorAll("th")[m];
|
|
2776
2776
|
if (!w) return;
|
|
2777
|
-
const
|
|
2777
|
+
const V = w.getBoundingClientRect().width || 60, _ = w.querySelector("button"), c = (_ == null ? void 0 : _.querySelector("span")) || w.querySelector("p") || w;
|
|
2778
2778
|
let F = 60;
|
|
2779
2779
|
if (c) {
|
|
2780
|
-
const ne = c.textContent || "", k = window.getComputedStyle(c), U = `${k.fontWeight} ${k.fontSize} ${k.fontFamily}`,
|
|
2781
|
-
if (
|
|
2782
|
-
|
|
2783
|
-
const $ =
|
|
2780
|
+
const ne = c.textContent || "", k = window.getComputedStyle(c), U = `${k.fontWeight} ${k.fontSize} ${k.fontFamily}`, P = document.createElement("canvas").getContext("2d");
|
|
2781
|
+
if (P) {
|
|
2782
|
+
P.font = U;
|
|
2783
|
+
const $ = P.measureText(ne), R = window.getComputedStyle(w), re = parseFloat(R.paddingLeft || "0"), X = parseFloat(R.paddingRight || "0");
|
|
2784
2784
|
F = $.width + re + X;
|
|
2785
2785
|
}
|
|
2786
2786
|
}
|
|
@@ -2791,12 +2791,12 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
2791
2791
|
const ne = w;
|
|
2792
2792
|
ne.style.width = `${G}px`;
|
|
2793
2793
|
let k = 0;
|
|
2794
|
-
x.querySelectorAll("th").forEach((
|
|
2795
|
-
k +=
|
|
2794
|
+
x.querySelectorAll("th").forEach((z, P) => {
|
|
2795
|
+
k += P === m ? G : z.getBoundingClientRect().width;
|
|
2796
2796
|
}), x.classList.remove("w-full"), x.style.width = `${k}px`, E = null;
|
|
2797
2797
|
}, te = (ne) => {
|
|
2798
2798
|
const k = ne.clientX - L;
|
|
2799
|
-
G = Math.max(F,
|
|
2799
|
+
G = Math.max(F, V + k), E === null && (E = requestAnimationFrame(le));
|
|
2800
2800
|
}, ce = () => {
|
|
2801
2801
|
E !== null && cancelAnimationFrame(E), G !== null && (w.style.width = `${G}px`);
|
|
2802
2802
|
const ne = x.querySelectorAll("th"), k = [];
|
|
@@ -2811,10 +2811,10 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
2811
2811
|
const w = (_) => {
|
|
2812
2812
|
const c = Math.max(30, x + (_.clientY - m));
|
|
2813
2813
|
L && a(c, L);
|
|
2814
|
-
},
|
|
2815
|
-
I(!1), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup",
|
|
2814
|
+
}, V = () => {
|
|
2815
|
+
I(!1), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", V);
|
|
2816
2816
|
};
|
|
2817
|
-
document.addEventListener("mousemove", w), document.addEventListener("mouseup",
|
|
2817
|
+
document.addEventListener("mousemove", w), document.addEventListener("mouseup", V);
|
|
2818
2818
|
};
|
|
2819
2819
|
return {
|
|
2820
2820
|
rowHeight: e,
|
|
@@ -2836,17 +2836,17 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
2836
2836
|
enableCellResizing: () => {
|
|
2837
2837
|
const g = document.querySelector("thead"), m = document.querySelectorAll("thead tr"), L = document.querySelectorAll("tbody tr"), x = [...m, ...L];
|
|
2838
2838
|
g && g.classList.remove("sticky");
|
|
2839
|
-
const w = (
|
|
2839
|
+
const w = (V, _) => {
|
|
2840
2840
|
const c = document.createElement("div");
|
|
2841
|
-
return c.className = `${
|
|
2841
|
+
return c.className = `${V}-resize-handle`, V === "col" ? (c.addEventListener("mouseenter", () => N(_, !0)), c.addEventListener("mouseleave", () => b(!0)), c.addEventListener("mousedown", (F) => {
|
|
2842
2842
|
F.stopPropagation(), f(F, _);
|
|
2843
2843
|
})) : (c.addEventListener("mouseenter", () => H(!0)), c.addEventListener("mouseleave", () => I(!0)), c.addEventListener("mousedown", (F) => {
|
|
2844
2844
|
F.stopPropagation(), M(F);
|
|
2845
2845
|
})), c;
|
|
2846
2846
|
};
|
|
2847
|
-
x.forEach((
|
|
2848
|
-
const _ =
|
|
2849
|
-
|
|
2847
|
+
x.forEach((V) => {
|
|
2848
|
+
const _ = V.closest("thead") !== null;
|
|
2849
|
+
V.querySelectorAll(_ ? "th" : "td").forEach((F, E) => {
|
|
2850
2850
|
const G = w("col", E), le = w("row", E);
|
|
2851
2851
|
F.appendChild(G), F.appendChild(le);
|
|
2852
2852
|
});
|
|
@@ -2856,7 +2856,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
2856
2856
|
d();
|
|
2857
2857
|
}
|
|
2858
2858
|
};
|
|
2859
|
-
}), Ul = "/assets/processTableData.worker-
|
|
2859
|
+
}), Ul = "/assets/processTableData.worker-CORwAutg.js", Kl = { class: "my-4" }, ql = {
|
|
2860
2860
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
2861
2861
|
style: { backgroundColor: "#f9f9f9" }
|
|
2862
2862
|
}, Yl = { class: "font-bold" }, Xl = { class: "text-fm-color-neutral-gray-300" }, Gl = /* @__PURE__ */ at({
|
|
@@ -2869,7 +2869,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
2869
2869
|
}),
|
|
2870
2870
|
emits: ["update:modelValue"],
|
|
2871
2871
|
setup(e) {
|
|
2872
|
-
const { t: n, te: t } = wt(), a = ct(e, "modelValue"), { country: r } = Bn(), { clearTileSorts: s, setTileSorts: u } = qa(), p =
|
|
2872
|
+
const { t: n, te: t } = wt(), a = ct(e, "modelValue"), { country: r } = Bn(), { clearTileSorts: s, setTileSorts: u } = qa(), p = An(), d = e, C = D([]), { isEditing: N, colWidths: H, rowHeight: I } = vt(la()), { setColWidths: b, setRowHeights: f, enableCellResizing: M } = la(), B = D(null), A = v(() => {
|
|
2873
2873
|
var k;
|
|
2874
2874
|
return ((k = a.value.data) == null ? void 0 : k.columns) || [{ label: "", key: "" }];
|
|
2875
2875
|
}), g = v(() => {
|
|
@@ -2888,29 +2888,29 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
2888
2888
|
return bt.bottom;
|
|
2889
2889
|
}
|
|
2890
2890
|
}), w = v(() => {
|
|
2891
|
-
const
|
|
2892
|
-
return Math.floor(($ - 34.5 - 32) / 48) -
|
|
2893
|
-
}),
|
|
2894
|
-
var U,
|
|
2891
|
+
const P = x.value !== void 0 ? 1 : 0, $ = (B.value ? B.value.$el.offsetHeight : 0) - 48;
|
|
2892
|
+
return Math.floor(($ - 34.5 - 32) / 48) - P;
|
|
2893
|
+
}), V = v(() => {
|
|
2894
|
+
var U, z;
|
|
2895
2895
|
let k = [];
|
|
2896
2896
|
switch (x.value) {
|
|
2897
2897
|
case bt.top:
|
|
2898
|
-
k = [...((U = g.value[0]) == null ? void 0 : U.cells) || []].map((
|
|
2898
|
+
k = [...((U = g.value[0]) == null ? void 0 : U.cells) || []].map((P, $) => {
|
|
2899
2899
|
var R;
|
|
2900
2900
|
return {
|
|
2901
|
-
main:
|
|
2901
|
+
main: P,
|
|
2902
2902
|
comparison: (R = g.value[0]) == null ? void 0 : R.comparisonCells[$],
|
|
2903
|
-
rowType:
|
|
2903
|
+
rowType: A.value[$].type
|
|
2904
2904
|
};
|
|
2905
2905
|
});
|
|
2906
2906
|
break;
|
|
2907
2907
|
case bt.bottom:
|
|
2908
|
-
k = [...((
|
|
2908
|
+
k = [...((z = g.value[g.value.length - 1]) == null ? void 0 : z.cells) || []].map((P, $) => {
|
|
2909
2909
|
var R;
|
|
2910
2910
|
return {
|
|
2911
|
-
main:
|
|
2911
|
+
main: P,
|
|
2912
2912
|
comparison: (R = g.value[g.value.length - 1]) == null ? void 0 : R.comparisonCells[$],
|
|
2913
|
-
rowType:
|
|
2913
|
+
rowType: A.value[$].type
|
|
2914
2914
|
};
|
|
2915
2915
|
});
|
|
2916
2916
|
break;
|
|
@@ -2942,13 +2942,13 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
2942
2942
|
isRollup: R.isRollup,
|
|
2943
2943
|
cells: Array.isArray(R.cells) ? [...R.cells] : [],
|
|
2944
2944
|
comparisonCells: Array.isArray(R.comparisonCells) ? [...R.comparisonCells] : []
|
|
2945
|
-
})),
|
|
2945
|
+
})), z = (a.value.data.columns || []).map((R) => ({
|
|
2946
2946
|
key: R.key,
|
|
2947
2947
|
type: R.type,
|
|
2948
2948
|
label: R.label
|
|
2949
|
-
})),
|
|
2949
|
+
})), P = {
|
|
2950
2950
|
rows: U,
|
|
2951
|
-
columns:
|
|
2951
|
+
columns: z,
|
|
2952
2952
|
filter: m.value ?? "",
|
|
2953
2953
|
globalSorts: Oa(C.value).map((R) => ({
|
|
2954
2954
|
key: R.key,
|
|
@@ -2957,11 +2957,11 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
2957
2957
|
grandTotalPosition: x.value,
|
|
2958
2958
|
pageSize: w.value
|
|
2959
2959
|
};
|
|
2960
|
-
Ya(Ul,
|
|
2960
|
+
Ya(Ul, P).then((R) => {
|
|
2961
2961
|
k === F && (R != null && R.error ? (p.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(R.error), c.value = []) : c.value = Ea(R.data || []));
|
|
2962
2962
|
});
|
|
2963
2963
|
}
|
|
2964
|
-
|
|
2964
|
+
Pe(
|
|
2965
2965
|
() => C.value,
|
|
2966
2966
|
(k) => {
|
|
2967
2967
|
d.tileIndex === void 0 || d.tileIndex === null || u(d.tileIndex, k);
|
|
@@ -2969,8 +2969,8 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
2969
2969
|
{ immediate: !0, deep: !0 }
|
|
2970
2970
|
);
|
|
2971
2971
|
const le = v(() => {
|
|
2972
|
-
var
|
|
2973
|
-
const k = ((
|
|
2972
|
+
var z, P;
|
|
2973
|
+
const k = ((z = a.value.data) == null ? void 0 : z.rows) || [], U = ((P = a.value.data) == null ? void 0 : P.columns) || [];
|
|
2974
2974
|
return JSON.stringify({
|
|
2975
2975
|
rowsLength: k.length,
|
|
2976
2976
|
columns: U.map(($) => ({ key: $.key, type: $.type, label: $.label })),
|
|
@@ -2980,7 +2980,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
2980
2980
|
pageSize: w.value
|
|
2981
2981
|
});
|
|
2982
2982
|
});
|
|
2983
|
-
|
|
2983
|
+
Pe(
|
|
2984
2984
|
() => le.value,
|
|
2985
2985
|
() => {
|
|
2986
2986
|
clearTimeout(E), E = setTimeout(G, 200);
|
|
@@ -2988,12 +2988,12 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
2988
2988
|
{ immediate: !0 }
|
|
2989
2989
|
);
|
|
2990
2990
|
function te(k) {
|
|
2991
|
-
const U = C.value.find((
|
|
2991
|
+
const U = C.value.find((z) => z.key === k);
|
|
2992
2992
|
if (!U) {
|
|
2993
2993
|
C.value.push({ key: k, type: St.Asc });
|
|
2994
2994
|
return;
|
|
2995
2995
|
}
|
|
2996
|
-
U.type === St.Asc ? U.type = St.Desc : U.type === St.Desc && (C.value = C.value.filter((
|
|
2996
|
+
U.type === St.Asc ? U.type = St.Desc : U.type === St.Desc && (C.value = C.value.filter((z) => z.key !== k));
|
|
2997
2997
|
}
|
|
2998
2998
|
const ce = v(
|
|
2999
2999
|
() => {
|
|
@@ -3003,7 +3003,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
3003
3003
|
), ne = v(() => {
|
|
3004
3004
|
var k;
|
|
3005
3005
|
return (k = a.value.data) != null && k.columns ? a.value.data.columns.map((U) => {
|
|
3006
|
-
const
|
|
3006
|
+
const z = _t(n, t, U.label, "other"), P = C.value.find((re) => re.key === U.key), $ = !!P, R = $ ? P.type === St.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
|
|
3007
3007
|
return {
|
|
3008
3008
|
accessorKey: U.key,
|
|
3009
3009
|
header: () => {
|
|
@@ -3019,7 +3019,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
3019
3019
|
ln(
|
|
3020
3020
|
"span",
|
|
3021
3021
|
{ class: `${U.type === "NUMERIC" ? "text-right" : ""} whitespace-nowrap` },
|
|
3022
|
-
|
|
3022
|
+
z
|
|
3023
3023
|
),
|
|
3024
3024
|
ln(re, {
|
|
3025
3025
|
name: R,
|
|
@@ -3050,12 +3050,12 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
3050
3050
|
};
|
|
3051
3051
|
}) : [];
|
|
3052
3052
|
});
|
|
3053
|
-
return
|
|
3053
|
+
return Pe(
|
|
3054
3054
|
() => H.value.length > 0,
|
|
3055
3055
|
async (k) => {
|
|
3056
3056
|
k && N.value && (await tt(), M());
|
|
3057
3057
|
}
|
|
3058
|
-
),
|
|
3058
|
+
), Pe(
|
|
3059
3059
|
[() => ne.value],
|
|
3060
3060
|
async () => {
|
|
3061
3061
|
var $;
|
|
@@ -3065,19 +3065,19 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
3065
3065
|
const U = k.querySelector("table");
|
|
3066
3066
|
if (!U) return;
|
|
3067
3067
|
U.classList.add(ce.value ? "table-fixed" : "table-auto");
|
|
3068
|
-
let
|
|
3069
|
-
N.value ? (M(),
|
|
3068
|
+
let z, P;
|
|
3069
|
+
N.value ? (M(), z = H.value, P = I.value) : (P = a.value.rowHeight, z = a.value.colWidths), typeof P == "number" && f(P, k), z == null || z.forEach((R, re) => {
|
|
3070
3070
|
b(re, R, k);
|
|
3071
3071
|
});
|
|
3072
3072
|
},
|
|
3073
3073
|
{ immediate: !0 }
|
|
3074
3074
|
), (k, U) => {
|
|
3075
|
-
const
|
|
3075
|
+
const z = ge("FmTable");
|
|
3076
3076
|
return Y(), be(et, null, [
|
|
3077
3077
|
J("div", Kl, [
|
|
3078
3078
|
yt(k.$slots, "menu")
|
|
3079
3079
|
]),
|
|
3080
|
-
me(
|
|
3080
|
+
me(z, {
|
|
3081
3081
|
ref_key: "table",
|
|
3082
3082
|
ref: B,
|
|
3083
3083
|
"column-defs": ne.value,
|
|
@@ -3092,23 +3092,23 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
3092
3092
|
}, Wa({ _: 2 }, [
|
|
3093
3093
|
x.value ? {
|
|
3094
3094
|
name: "pin-top",
|
|
3095
|
-
fn:
|
|
3095
|
+
fn: ze(() => [
|
|
3096
3096
|
(Y(), we(ua(x.value === l(bt).bottom ? "tfoot" : "tbody"), null, {
|
|
3097
|
-
default:
|
|
3097
|
+
default: ze(() => [
|
|
3098
3098
|
J("tr", ql, [
|
|
3099
|
-
(Y(!0), be(et, null, Lt(
|
|
3099
|
+
(Y(!0), be(et, null, Lt(V.value, (P, $) => (Y(), be("td", {
|
|
3100
3100
|
key: `${l(Gt)()}_${$}`,
|
|
3101
3101
|
class: "h-[48px] text-fm-color-typo-primary px-16"
|
|
3102
3102
|
}, [
|
|
3103
3103
|
J("span", {
|
|
3104
3104
|
class: qe([
|
|
3105
3105
|
"items-center text-fm-color-typo-secondary gap-2",
|
|
3106
|
-
|
|
3106
|
+
P.rowType === "NUMERIC" ? "text-right" : "",
|
|
3107
3107
|
ce.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
|
|
3108
3108
|
])
|
|
3109
3109
|
}, [
|
|
3110
|
-
J("p", Yl, Ge(
|
|
3111
|
-
J("p", Xl, Ge(
|
|
3110
|
+
J("p", Yl, Ge(P.rowType === "NUMERIC" ? l(cn)(P.main) : P.main), 1),
|
|
3111
|
+
J("p", Xl, Ge(P.comparison ? P.rowType === "NUMERIC" ? `(${l(cn)(P.comparison)})` : `(${P.comparison})` : ""), 1)
|
|
3112
3112
|
], 2)
|
|
3113
3113
|
]))), 128))
|
|
3114
3114
|
])
|
|
@@ -3147,23 +3147,23 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
3147
3147
|
}), I = v(() => {
|
|
3148
3148
|
var R;
|
|
3149
3149
|
return ((R = t.value.data) == null ? void 0 : R.datasets) ?? [];
|
|
3150
|
-
}), { datalabels: b, xCfg: f, yCfg: M, isTransposed: B, legend:
|
|
3150
|
+
}), { datalabels: b, xCfg: f, yCfg: M, isTransposed: B, legend: A, chartWidth: g, chartHeight: m } = Et(
|
|
3151
3151
|
t.value
|
|
3152
3152
|
), L = v(
|
|
3153
3153
|
() => Ot(t.value.isTransposed === !0, p.value)
|
|
3154
|
-
), x = Qt("bar"), w = v(() => t.value.stackBarOverlap === !0),
|
|
3155
|
-
const R =
|
|
3154
|
+
), x = Qt("bar"), w = v(() => t.value.stackBarOverlap === !0), V = v(() => w.value === !1), _ = v(() => {
|
|
3155
|
+
const R = A.value.position;
|
|
3156
3156
|
return !R || R === "top" || R === "bottom" || R === "left" || R === "right";
|
|
3157
|
-
}), c = v(() =>
|
|
3157
|
+
}), c = v(() => A.value.position ?? "top"), F = v(
|
|
3158
3158
|
() => c.value === "left" || c.value === "right"
|
|
3159
3159
|
), E = v(
|
|
3160
3160
|
() => c.value === "top" || c.value === "left"
|
|
3161
3161
|
), G = v(() => ({
|
|
3162
3162
|
...f.value,
|
|
3163
|
-
stacked:
|
|
3163
|
+
stacked: V.value
|
|
3164
3164
|
})), le = v(() => ({
|
|
3165
3165
|
...M.value,
|
|
3166
|
-
stacked:
|
|
3166
|
+
stacked: V.value
|
|
3167
3167
|
}));
|
|
3168
3168
|
function te({
|
|
3169
3169
|
datasetIndex: R,
|
|
@@ -3188,7 +3188,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
3188
3188
|
isCompare: ee.isCompare,
|
|
3189
3189
|
metricCount: t.value.metricCount,
|
|
3190
3190
|
mode: Ue.metric
|
|
3191
|
-
}), Se =
|
|
3191
|
+
}), Se = zt({
|
|
3192
3192
|
fallbackIndex: ae,
|
|
3193
3193
|
metricCount: t.value.metricCount
|
|
3194
3194
|
}), de = te({
|
|
@@ -3222,20 +3222,20 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
3222
3222
|
return w.value ? X.map((ee) => ee.dataset) : X.map((ee) => ee.dataset);
|
|
3223
3223
|
} else
|
|
3224
3224
|
return [];
|
|
3225
|
-
}), { hiddenDatasetKeys: ne, isDatasetHidden: k, toggleDatasetVisibility: U } = nn(ce),
|
|
3225
|
+
}), { hiddenDatasetKeys: ne, isDatasetHidden: k, toggleDatasetVisibility: U } = nn(ce), z = v(
|
|
3226
3226
|
() => ce.value.map((R, re) => ({
|
|
3227
3227
|
...R,
|
|
3228
3228
|
hidden: k(R, re)
|
|
3229
3229
|
}))
|
|
3230
|
-
),
|
|
3230
|
+
), P = Ht();
|
|
3231
3231
|
function $() {
|
|
3232
|
-
return
|
|
3232
|
+
return P.extractChartSize(a.value, n.tileIndex) || { width: 0, height: 0 };
|
|
3233
3233
|
}
|
|
3234
3234
|
return it(() => {
|
|
3235
3235
|
tt(() => {
|
|
3236
3236
|
$();
|
|
3237
3237
|
});
|
|
3238
|
-
}),
|
|
3238
|
+
}), Pe([z], () => {
|
|
3239
3239
|
tt(() => $());
|
|
3240
3240
|
}), (R, re) => {
|
|
3241
3241
|
var ee, ae, ue, he, Se, de;
|
|
@@ -3245,18 +3245,18 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
3245
3245
|
yt(R.$slots, "menu"),
|
|
3246
3246
|
J("div", {
|
|
3247
3247
|
class: qe(["chart-layout", {
|
|
3248
|
-
"chart-layout--side": _.value && (l(
|
|
3248
|
+
"chart-layout--side": _.value && (l(A).display ?? !1) && F.value
|
|
3249
3249
|
}])
|
|
3250
3250
|
}, [
|
|
3251
|
-
_.value && (l(
|
|
3251
|
+
_.value && (l(A).display ?? !1) && E.value ? (Y(), we(rt, {
|
|
3252
3252
|
key: 0,
|
|
3253
3253
|
"chart-ref": a.value,
|
|
3254
|
-
enabled: l(
|
|
3254
|
+
enabled: l(A).display ?? !1,
|
|
3255
3255
|
position: c.value,
|
|
3256
|
-
"max-width": l(
|
|
3257
|
-
"text-color": (ee = l(
|
|
3258
|
-
"font-size": (ue = (ae = l(
|
|
3259
|
-
"legend-update-key":
|
|
3256
|
+
"max-width": l(A).maxWidth,
|
|
3257
|
+
"text-color": (ee = l(A).labels) == null ? void 0 : ee.color,
|
|
3258
|
+
"font-size": (ue = (ae = l(A).labels) == null ? void 0 : ae.font) == null ? void 0 : ue.size,
|
|
3259
|
+
"legend-update-key": z.value,
|
|
3260
3260
|
"chart-color-binding": t.value.chartColorBinding,
|
|
3261
3261
|
"chart-colors": t.value.chartColors,
|
|
3262
3262
|
"chart-breakdown-colors": t.value.chartBreakdownColors,
|
|
@@ -3269,12 +3269,12 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
3269
3269
|
ref_key: "chartRef",
|
|
3270
3270
|
ref: a,
|
|
3271
3271
|
class: "bar-chart",
|
|
3272
|
-
datasets:
|
|
3272
|
+
datasets: z.value,
|
|
3273
3273
|
"x-axis": { categories: H.value },
|
|
3274
3274
|
"x-cfg": G.value,
|
|
3275
3275
|
"y-cfg": le.value,
|
|
3276
3276
|
transpose: l(B),
|
|
3277
|
-
stacked:
|
|
3277
|
+
stacked: V.value,
|
|
3278
3278
|
legend: {
|
|
3279
3279
|
display: !1
|
|
3280
3280
|
},
|
|
@@ -3283,19 +3283,19 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
3283
3283
|
datalabels: l(b),
|
|
3284
3284
|
"maintain-aspect-ratio": !1,
|
|
3285
3285
|
style: Ze({
|
|
3286
|
-
"--chart-width": _.value && (l(
|
|
3287
|
-
"--chart-height": _.value && (l(
|
|
3286
|
+
"--chart-width": _.value && (l(A).display ?? !1) && F.value ? "calc(100% - var(--legend-panel-width, 0px))" : l(g) !== void 0 ? l(g) + "px" : "100%",
|
|
3287
|
+
"--chart-height": _.value && (l(A).display ?? !1) && !F.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(m) !== void 0 ? l(m) + "px" : "100%"
|
|
3288
3288
|
})
|
|
3289
3289
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "tooltip", "plugins", "datalabels", "style"]),
|
|
3290
|
-
_.value && (l(
|
|
3290
|
+
_.value && (l(A).display ?? !1) && !E.value ? (Y(), we(rt, {
|
|
3291
3291
|
key: 1,
|
|
3292
3292
|
"chart-ref": a.value,
|
|
3293
|
-
enabled: l(
|
|
3293
|
+
enabled: l(A).display ?? !1,
|
|
3294
3294
|
position: c.value,
|
|
3295
|
-
"max-width": l(
|
|
3296
|
-
"text-color": (he = l(
|
|
3297
|
-
"font-size": (de = (Se = l(
|
|
3298
|
-
"legend-update-key":
|
|
3295
|
+
"max-width": l(A).maxWidth,
|
|
3296
|
+
"text-color": (he = l(A).labels) == null ? void 0 : he.color,
|
|
3297
|
+
"font-size": (de = (Se = l(A).labels) == null ? void 0 : Se.font) == null ? void 0 : de.size,
|
|
3298
|
+
"legend-update-key": z.value,
|
|
3299
3299
|
"chart-color-binding": t.value.chartColorBinding,
|
|
3300
3300
|
"chart-colors": t.value.chartColors,
|
|
3301
3301
|
"chart-breakdown-colors": t.value.chartBreakdownColors,
|
|
@@ -3341,23 +3341,23 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
3341
3341
|
}), I = v(() => {
|
|
3342
3342
|
var X;
|
|
3343
3343
|
return ((X = t.value.data) == null ? void 0 : X.datasets) ?? [];
|
|
3344
|
-
}), { datalabels: b, xCfg: f, yCfg: M, isTransposed: B, legend:
|
|
3344
|
+
}), { datalabels: b, xCfg: f, yCfg: M, isTransposed: B, legend: A, chartWidth: g, chartHeight: m } = Et(
|
|
3345
3345
|
t.value
|
|
3346
3346
|
), L = v(
|
|
3347
3347
|
() => Ot(t.value.isTransposed === !0, p.value)
|
|
3348
|
-
), x = Qt("bar"), w = v(() => t.value.stackBarOverlap === !0),
|
|
3349
|
-
const X =
|
|
3348
|
+
), x = Qt("bar"), w = v(() => t.value.stackBarOverlap === !0), V = v(() => w.value === !1), _ = v(() => {
|
|
3349
|
+
const X = A.value.position;
|
|
3350
3350
|
return !X || X === "top" || X === "bottom" || X === "left" || X === "right";
|
|
3351
|
-
}), c = v(() =>
|
|
3351
|
+
}), c = v(() => A.value.position ?? "top"), F = v(
|
|
3352
3352
|
() => c.value === "left" || c.value === "right"
|
|
3353
3353
|
), E = v(
|
|
3354
3354
|
() => c.value === "top" || c.value === "left"
|
|
3355
3355
|
), G = v(() => ({
|
|
3356
3356
|
...f.value,
|
|
3357
|
-
stacked:
|
|
3357
|
+
stacked: V.value
|
|
3358
3358
|
})), le = v(() => ({
|
|
3359
3359
|
...M.value,
|
|
3360
|
-
stacked:
|
|
3360
|
+
stacked: V.value
|
|
3361
3361
|
}));
|
|
3362
3362
|
function te(X) {
|
|
3363
3363
|
const ee = " - ", ae = X.lastIndexOf(ee);
|
|
@@ -3432,10 +3432,10 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
3432
3432
|
backgroundColor: Z
|
|
3433
3433
|
};
|
|
3434
3434
|
});
|
|
3435
|
-
}), { hiddenDatasetKeys: U, isDatasetHidden:
|
|
3435
|
+
}), { hiddenDatasetKeys: U, isDatasetHidden: z, toggleDatasetVisibility: P } = nn(k), $ = v(
|
|
3436
3436
|
() => k.value.map((X, ee) => ({
|
|
3437
3437
|
...X,
|
|
3438
|
-
hidden:
|
|
3438
|
+
hidden: z(X, ee)
|
|
3439
3439
|
}))
|
|
3440
3440
|
), R = Ht();
|
|
3441
3441
|
function re() {
|
|
@@ -3445,7 +3445,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
3445
3445
|
tt(() => {
|
|
3446
3446
|
re();
|
|
3447
3447
|
});
|
|
3448
|
-
}),
|
|
3448
|
+
}), Pe([$], () => {
|
|
3449
3449
|
tt(() => re());
|
|
3450
3450
|
}), (X, ee) => {
|
|
3451
3451
|
var ue, he, Se, de, ye, Ne;
|
|
@@ -3455,17 +3455,17 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
3455
3455
|
yt(X.$slots, "menu"),
|
|
3456
3456
|
J("div", {
|
|
3457
3457
|
class: qe(["chart-layout", {
|
|
3458
|
-
"chart-layout--side": _.value && (l(
|
|
3458
|
+
"chart-layout--side": _.value && (l(A).display ?? !1) && F.value
|
|
3459
3459
|
}])
|
|
3460
3460
|
}, [
|
|
3461
|
-
_.value && (l(
|
|
3461
|
+
_.value && (l(A).display ?? !1) && E.value ? (Y(), we(rt, {
|
|
3462
3462
|
key: 0,
|
|
3463
3463
|
"chart-ref": a.value,
|
|
3464
|
-
enabled: l(
|
|
3464
|
+
enabled: l(A).display ?? !1,
|
|
3465
3465
|
position: c.value,
|
|
3466
|
-
"max-width": l(
|
|
3467
|
-
"text-color": (ue = l(
|
|
3468
|
-
"font-size": (Se = (he = l(
|
|
3466
|
+
"max-width": l(A).maxWidth,
|
|
3467
|
+
"text-color": (ue = l(A).labels) == null ? void 0 : ue.color,
|
|
3468
|
+
"font-size": (Se = (he = l(A).labels) == null ? void 0 : he.font) == null ? void 0 : Se.size,
|
|
3469
3469
|
"legend-update-key": $.value,
|
|
3470
3470
|
"chart-color-binding": t.value.chartColorBinding,
|
|
3471
3471
|
"chart-colors": t.value.chartColors,
|
|
@@ -3473,7 +3473,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
3473
3473
|
"chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
|
|
3474
3474
|
"metric-count": t.value.metricCount,
|
|
3475
3475
|
"hidden-dataset-keys": l(U),
|
|
3476
|
-
onToggleDatasetVisibility: l(
|
|
3476
|
+
onToggleDatasetVisibility: l(P)
|
|
3477
3477
|
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Me("", !0),
|
|
3478
3478
|
me(ae, {
|
|
3479
3479
|
ref_key: "chartRef",
|
|
@@ -3484,7 +3484,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
3484
3484
|
"x-cfg": G.value,
|
|
3485
3485
|
"y-cfg": le.value,
|
|
3486
3486
|
transpose: l(B),
|
|
3487
|
-
stacked:
|
|
3487
|
+
stacked: V.value,
|
|
3488
3488
|
legend: {
|
|
3489
3489
|
display: !1
|
|
3490
3490
|
},
|
|
@@ -3493,18 +3493,18 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
3493
3493
|
datalabels: l(b),
|
|
3494
3494
|
"maintain-aspect-ratio": !1,
|
|
3495
3495
|
style: Ze({
|
|
3496
|
-
"--chart-width": _.value && (l(
|
|
3497
|
-
"--chart-height": _.value && (l(
|
|
3496
|
+
"--chart-width": _.value && (l(A).display ?? !1) && F.value ? "calc(100% - var(--legend-panel-width, 0px))" : l(g) !== void 0 ? l(g) + "px" : "100%",
|
|
3497
|
+
"--chart-height": _.value && (l(A).display ?? !1) && !F.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(m) !== void 0 ? l(m) + "px" : "100%"
|
|
3498
3498
|
})
|
|
3499
3499
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "tooltip", "plugins", "datalabels", "style"]),
|
|
3500
|
-
_.value && (l(
|
|
3500
|
+
_.value && (l(A).display ?? !1) && !E.value ? (Y(), we(rt, {
|
|
3501
3501
|
key: 1,
|
|
3502
3502
|
"chart-ref": a.value,
|
|
3503
|
-
enabled: l(
|
|
3503
|
+
enabled: l(A).display ?? !1,
|
|
3504
3504
|
position: c.value,
|
|
3505
|
-
"max-width": l(
|
|
3506
|
-
"text-color": (de = l(
|
|
3507
|
-
"font-size": (Ne = (ye = l(
|
|
3505
|
+
"max-width": l(A).maxWidth,
|
|
3506
|
+
"text-color": (de = l(A).labels) == null ? void 0 : de.color,
|
|
3507
|
+
"font-size": (Ne = (ye = l(A).labels) == null ? void 0 : ye.font) == null ? void 0 : Ne.size,
|
|
3508
3508
|
"legend-update-key": $.value,
|
|
3509
3509
|
"chart-color-binding": t.value.chartColorBinding,
|
|
3510
3510
|
"chart-colors": t.value.chartColors,
|
|
@@ -3512,7 +3512,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
|
|
|
3512
3512
|
"chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
|
|
3513
3513
|
"metric-count": t.value.metricCount,
|
|
3514
3514
|
"hidden-dataset-keys": l(U),
|
|
3515
|
-
onToggleDatasetVisibility: l(
|
|
3515
|
+
onToggleDatasetVisibility: l(P)
|
|
3516
3516
|
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Me("", !0)
|
|
3517
3517
|
], 2)
|
|
3518
3518
|
]),
|
|
@@ -3563,64 +3563,64 @@ const tr = { class: "widget-content" }, nr = /* @__PURE__ */ at({
|
|
|
3563
3563
|
} = tn(a, {
|
|
3564
3564
|
maxTooltipItems: r
|
|
3565
3565
|
}), H = v(() => {
|
|
3566
|
-
var
|
|
3567
|
-
return ((
|
|
3566
|
+
var P;
|
|
3567
|
+
return ((P = t.value.data) == null ? void 0 : P.xAxis) ?? [];
|
|
3568
3568
|
}), I = v(
|
|
3569
|
-
() => H.value.length === 1 && f.value.length > 0 && f.value.every((
|
|
3569
|
+
() => H.value.length === 1 && f.value.length > 0 && f.value.every((P) => P.values.length === 1)
|
|
3570
3570
|
), b = v(() => I.value ? ["", H.value[0], ""] : H.value), f = v(() => {
|
|
3571
|
-
var
|
|
3572
|
-
return ((
|
|
3573
|
-
}), { datalabels: M, xCfg: B, yCfg:
|
|
3571
|
+
var P;
|
|
3572
|
+
return ((P = t.value.data) == null ? void 0 : P.datasets) ?? [];
|
|
3573
|
+
}), { datalabels: M, xCfg: B, yCfg: A, isTransposed: g, legend: m, chartWidth: L, chartHeight: x } = Et(
|
|
3574
3574
|
t.value
|
|
3575
3575
|
), w = v(
|
|
3576
3576
|
() => Ot(t.value.isTransposed === !0, p.value)
|
|
3577
|
-
),
|
|
3578
|
-
const
|
|
3579
|
-
return !
|
|
3577
|
+
), V = Qt("line"), _ = Ta("report-line-style-plugin-stack-line"), c = v(() => {
|
|
3578
|
+
const P = m.value.position;
|
|
3579
|
+
return !P || P === "top" || P === "bottom" || P === "left" || P === "right";
|
|
3580
3580
|
}), F = v(() => m.value.position ?? "top"), E = v(
|
|
3581
3581
|
() => F.value === "left" || F.value === "right"
|
|
3582
3582
|
), G = v(
|
|
3583
3583
|
() => F.value === "top" || F.value === "left"
|
|
3584
3584
|
), le = v(() => f.value.length > 0 ? [
|
|
3585
|
-
...f.value.map((
|
|
3585
|
+
...f.value.map((P, $) => {
|
|
3586
3586
|
var ye;
|
|
3587
|
-
let R =
|
|
3587
|
+
let R = P.values;
|
|
3588
3588
|
I.value && (R = [NaN, R[0], NaN]);
|
|
3589
3589
|
const re = R.map((Ne) => Ne === null ? NaN : Number(Ne)), X = nt({
|
|
3590
3590
|
datasetIndex: $,
|
|
3591
|
-
isCompare:
|
|
3591
|
+
isCompare: P.isCompare,
|
|
3592
3592
|
metricCount: t.value.metricCount,
|
|
3593
3593
|
mode: t.value.chartColorBinding
|
|
3594
3594
|
}), ee = nt({
|
|
3595
3595
|
datasetIndex: $,
|
|
3596
|
-
isCompare:
|
|
3596
|
+
isCompare: P.isCompare,
|
|
3597
3597
|
metricCount: t.value.metricCount,
|
|
3598
3598
|
mode: Ue.metric
|
|
3599
3599
|
}), ae = nt({
|
|
3600
3600
|
datasetIndex: $,
|
|
3601
|
-
isCompare:
|
|
3601
|
+
isCompare: P.isCompare,
|
|
3602
3602
|
metricCount: t.value.metricCount,
|
|
3603
3603
|
mode: t.value.lineStyleBinding
|
|
3604
|
-
}), ue = (ye = t.value.lineStyles) == null ? void 0 : ye[ae], he = t.value.chartColorBinding === Ue.breakdown, Se =
|
|
3604
|
+
}), ue = (ye = t.value.lineStyles) == null ? void 0 : ye[ae], he = t.value.chartColorBinding === Ue.breakdown, Se = zt({
|
|
3605
3605
|
fallbackIndex: $,
|
|
3606
3606
|
metricCount: t.value.metricCount
|
|
3607
3607
|
}), de = he ? Wt({
|
|
3608
3608
|
breakdownIndex: Se,
|
|
3609
3609
|
metricIndex: ee,
|
|
3610
3610
|
metricCount: t.value.metricCount,
|
|
3611
|
-
isCompare:
|
|
3611
|
+
isCompare: P.isCompare,
|
|
3612
3612
|
breakdownColors: t.value.chartBreakdownColors,
|
|
3613
3613
|
useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
|
|
3614
3614
|
customColors: t.value.chartColors
|
|
3615
3615
|
}) : Ct({
|
|
3616
3616
|
index: X,
|
|
3617
|
-
isCompare:
|
|
3617
|
+
isCompare: P.isCompare,
|
|
3618
3618
|
customColors: t.value.chartColors
|
|
3619
3619
|
});
|
|
3620
3620
|
return {
|
|
3621
|
-
label:
|
|
3621
|
+
label: P.name,
|
|
3622
3622
|
data: re,
|
|
3623
|
-
dash:
|
|
3623
|
+
dash: P.isCompare,
|
|
3624
3624
|
lineStyle: ue,
|
|
3625
3625
|
fill: !0,
|
|
3626
3626
|
color: de,
|
|
@@ -3632,26 +3632,26 @@ const tr = { class: "widget-content" }, nr = /* @__PURE__ */ at({
|
|
|
3632
3632
|
};
|
|
3633
3633
|
})
|
|
3634
3634
|
] : []), { hiddenDatasetKeys: te, isDatasetHidden: ce, toggleDatasetVisibility: ne } = nn(le), k = v(
|
|
3635
|
-
() => le.value.map((
|
|
3636
|
-
...
|
|
3637
|
-
hidden: ce(
|
|
3635
|
+
() => le.value.map((P, $) => ({
|
|
3636
|
+
...P,
|
|
3637
|
+
hidden: ce(P, $)
|
|
3638
3638
|
}))
|
|
3639
3639
|
), U = Ht();
|
|
3640
|
-
function
|
|
3640
|
+
function z() {
|
|
3641
3641
|
return U.extractChartSize(a.value, n.tileIndex) || { width: 0, height: 0 };
|
|
3642
3642
|
}
|
|
3643
3643
|
return it(() => {
|
|
3644
3644
|
tt(() => {
|
|
3645
|
-
|
|
3645
|
+
z();
|
|
3646
3646
|
});
|
|
3647
|
-
}),
|
|
3648
|
-
tt(() =>
|
|
3649
|
-
}), (
|
|
3647
|
+
}), Pe([k], () => {
|
|
3648
|
+
tt(() => z());
|
|
3649
|
+
}), (P, $) => {
|
|
3650
3650
|
var re, X, ee, ae, ue, he;
|
|
3651
3651
|
const R = ge("FmLineChart");
|
|
3652
3652
|
return Y(), be(et, null, [
|
|
3653
3653
|
J("div", tr, [
|
|
3654
|
-
yt(
|
|
3654
|
+
yt(P.$slots, "menu"),
|
|
3655
3655
|
J("div", {
|
|
3656
3656
|
class: qe(["chart-layout", {
|
|
3657
3657
|
"chart-layout--side": c.value && (l(m).display ?? !1) && E.value
|
|
@@ -3681,13 +3681,13 @@ const tr = { class: "widget-content" }, nr = /* @__PURE__ */ at({
|
|
|
3681
3681
|
datasets: k.value,
|
|
3682
3682
|
"x-axis": { categories: b.value },
|
|
3683
3683
|
"x-cfg": l(B),
|
|
3684
|
-
"y-cfg": l(
|
|
3684
|
+
"y-cfg": l(A),
|
|
3685
3685
|
transpose: l(g),
|
|
3686
3686
|
legend: {
|
|
3687
3687
|
display: !1
|
|
3688
3688
|
},
|
|
3689
3689
|
tooltip: w.value,
|
|
3690
|
-
plugins: [l(
|
|
3690
|
+
plugins: [l(V), l(_)],
|
|
3691
3691
|
stacked: !0,
|
|
3692
3692
|
datalabels: l(M),
|
|
3693
3693
|
"maintain-aspect-ratio": !1,
|
|
@@ -3775,9 +3775,9 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
|
|
|
3775
3775
|
return (($ = t.value.data) == null ? void 0 : $.xAxis) ?? [];
|
|
3776
3776
|
}), b = v(() => I.value.length === 1 && H.value.length > 1 && H.value.every(($) => $.values.length === 1 && $.isCompare !== !0)), f = v(
|
|
3777
3777
|
() => I.value.length === 1 && H.value.length > 0 && H.value.every(($) => $.values.length === 1)
|
|
3778
|
-
), M = v(() => b.value ? H.value.map(($) => $.name) : f.value ? ["", I.value[0], ""] : I.value), { datalabels: B, xCfg:
|
|
3778
|
+
), M = v(() => b.value ? H.value.map(($) => $.name) : f.value ? ["", I.value[0], ""] : I.value), { datalabels: B, xCfg: A, yCfg: g, isTransposed: m, legend: L, chartWidth: x, chartHeight: w } = Et(
|
|
3779
3779
|
t.value
|
|
3780
|
-
),
|
|
3780
|
+
), V = v(
|
|
3781
3781
|
() => Ot(t.value.isTransposed === !0, p.value)
|
|
3782
3782
|
), _ = Qt("line"), c = Ta("report-line-style-plugin-line"), F = v(() => {
|
|
3783
3783
|
const $ = L.value.position;
|
|
@@ -3803,7 +3803,7 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
|
|
|
3803
3803
|
index: re,
|
|
3804
3804
|
isCompare: $.isCompare,
|
|
3805
3805
|
customColors: t.value.chartColors
|
|
3806
|
-
}), ae = t.value.chartColorBinding === Ue.breakdown, ue =
|
|
3806
|
+
}), ae = t.value.chartColorBinding === Ue.breakdown, ue = zt({
|
|
3807
3807
|
fallbackIndex: R,
|
|
3808
3808
|
metricCount: t.value.metricCount
|
|
3809
3809
|
}), he = ae ? Wt({
|
|
@@ -3844,16 +3844,16 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
|
|
|
3844
3844
|
...$,
|
|
3845
3845
|
hidden: ne($, R)
|
|
3846
3846
|
}))
|
|
3847
|
-
),
|
|
3848
|
-
function
|
|
3849
|
-
return
|
|
3847
|
+
), z = Ht();
|
|
3848
|
+
function P() {
|
|
3849
|
+
return z.extractChartSize(a.value, n.tileIndex) || { width: 0, height: 0 };
|
|
3850
3850
|
}
|
|
3851
3851
|
return it(() => {
|
|
3852
3852
|
tt(() => {
|
|
3853
|
-
|
|
3853
|
+
P();
|
|
3854
3854
|
});
|
|
3855
|
-
}),
|
|
3856
|
-
tt(() =>
|
|
3855
|
+
}), Pe([U], () => {
|
|
3856
|
+
tt(() => P());
|
|
3857
3857
|
}), ($, R) => {
|
|
3858
3858
|
var X, ee, ae, ue, he, Se;
|
|
3859
3859
|
const re = ge("FmLineChart");
|
|
@@ -3888,13 +3888,13 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
|
|
|
3888
3888
|
class: "line-chart",
|
|
3889
3889
|
datasets: U.value,
|
|
3890
3890
|
"x-axis": { categories: M.value },
|
|
3891
|
-
"x-cfg": l(
|
|
3891
|
+
"x-cfg": l(A),
|
|
3892
3892
|
"y-cfg": l(g),
|
|
3893
3893
|
transpose: l(m),
|
|
3894
3894
|
legend: {
|
|
3895
3895
|
display: !1
|
|
3896
3896
|
},
|
|
3897
|
-
tooltip:
|
|
3897
|
+
tooltip: V.value,
|
|
3898
3898
|
datalabels: l(B),
|
|
3899
3899
|
plugins: [l(_), l(c)],
|
|
3900
3900
|
"maintain-aspect-ratio": !1,
|
|
@@ -3943,7 +3943,7 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
|
|
|
3943
3943
|
}),
|
|
3944
3944
|
emits: ["update:modelValue"],
|
|
3945
3945
|
setup(e) {
|
|
3946
|
-
const { t: n } = wt(), { FmForm: t } = io, a = e, r = D(), s = ct(e, "modelValue"), u = D(!0), p = D(!1), d =
|
|
3946
|
+
const { t: n } = wt(), { FmForm: t } = io, a = e, r = D(), s = ct(e, "modelValue"), u = D(!0), p = D(!1), d = An(), { selectedLocationIds: C, dateRange: N, timeRange: H } = vt(jt()), I = D(vn.PORTRAIT);
|
|
3947
3947
|
function b() {
|
|
3948
3948
|
var M;
|
|
3949
3949
|
(M = r.value) == null || M.validateInputs();
|
|
@@ -3967,34 +3967,34 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
|
|
|
3967
3967
|
}
|
|
3968
3968
|
}
|
|
3969
3969
|
return (M, B) => {
|
|
3970
|
-
const
|
|
3970
|
+
const A = ge("FmRadio"), g = ge("FmRadioGroup"), m = ge("FmButton"), L = ge("FmDialog");
|
|
3971
3971
|
return Y(), we(L, {
|
|
3972
3972
|
modelValue: s.value,
|
|
3973
3973
|
"onUpdate:modelValue": B[2] || (B[2] = (x) => s.value = x),
|
|
3974
3974
|
overlay: !0,
|
|
3975
3975
|
"z-index": 10
|
|
3976
3976
|
}, {
|
|
3977
|
-
"dialog-header":
|
|
3977
|
+
"dialog-header": ze(() => B[3] || (B[3] = [
|
|
3978
3978
|
bn("Select Orientation")
|
|
3979
3979
|
])),
|
|
3980
|
-
default:
|
|
3980
|
+
default: ze(() => [
|
|
3981
3981
|
me(l(t), {
|
|
3982
3982
|
ref_key: "form",
|
|
3983
3983
|
ref: r,
|
|
3984
3984
|
onValidationSuccess: f
|
|
3985
3985
|
}, {
|
|
3986
|
-
default:
|
|
3986
|
+
default: ze(() => [
|
|
3987
3987
|
J("div", ir, [
|
|
3988
3988
|
me(g, {
|
|
3989
3989
|
modelValue: I.value,
|
|
3990
3990
|
"onUpdate:modelValue": B[0] || (B[0] = (x) => I.value = x)
|
|
3991
3991
|
}, {
|
|
3992
|
-
default:
|
|
3993
|
-
me(
|
|
3992
|
+
default: ze(() => [
|
|
3993
|
+
me(A, {
|
|
3994
3994
|
value: l(vn).PORTRAIT,
|
|
3995
3995
|
label: l(n)("report.common.portrait")
|
|
3996
3996
|
}, null, 8, ["value", "label"]),
|
|
3997
|
-
me(
|
|
3997
|
+
me(A, {
|
|
3998
3998
|
value: l(vn).LANDSCAPE,
|
|
3999
3999
|
label: l(n)("report.common.landscape")
|
|
4000
4000
|
}, null, 8, ["value", "label"])
|
|
@@ -4041,13 +4041,13 @@ function dr(e) {
|
|
|
4041
4041
|
(F.overflowX === "auto" || F.overflowX === "scroll") && w.push(c);
|
|
4042
4042
|
}
|
|
4043
4043
|
});
|
|
4044
|
-
let
|
|
4045
|
-
for (;
|
|
4046
|
-
if (
|
|
4047
|
-
const c = window.getComputedStyle(
|
|
4048
|
-
(c.overflowX === "auto" || c.overflowX === "scroll") && w.push(
|
|
4044
|
+
let V = (_ = t.value) == null ? void 0 : _.parentElement;
|
|
4045
|
+
for (; V; ) {
|
|
4046
|
+
if (V.scrollWidth > V.clientWidth) {
|
|
4047
|
+
const c = window.getComputedStyle(V);
|
|
4048
|
+
(c.overflowX === "auto" || c.overflowX === "scroll") && w.push(V);
|
|
4049
4049
|
}
|
|
4050
|
-
|
|
4050
|
+
V = V.parentElement;
|
|
4051
4051
|
}
|
|
4052
4052
|
return w;
|
|
4053
4053
|
}
|
|
@@ -4071,11 +4071,11 @@ function dr(e) {
|
|
|
4071
4071
|
border-collapse: collapse;
|
|
4072
4072
|
pointer-events: auto;
|
|
4073
4073
|
`;
|
|
4074
|
-
const
|
|
4075
|
-
|
|
4074
|
+
const V = p.cloneNode(!0);
|
|
4075
|
+
V.style.cssText = "pointer-events: auto;", f(p, V), w.appendChild(V), s.appendChild(w), document.body.appendChild(s), A(), g(), m(), B();
|
|
4076
4076
|
}
|
|
4077
|
-
function f(w,
|
|
4078
|
-
const _ = w.querySelectorAll("th, td"), c =
|
|
4077
|
+
function f(w, V) {
|
|
4078
|
+
const _ = w.querySelectorAll("th, td"), c = V.querySelectorAll("th, td");
|
|
4079
4079
|
_.forEach((F, E) => {
|
|
4080
4080
|
const G = c[E];
|
|
4081
4081
|
if (!G) return;
|
|
@@ -4105,11 +4105,11 @@ function dr(e) {
|
|
|
4105
4105
|
});
|
|
4106
4106
|
}
|
|
4107
4107
|
function M() {
|
|
4108
|
-
const w = n.value.xs || n.value.sm,
|
|
4109
|
-
if (w && !
|
|
4108
|
+
const w = n.value.xs || n.value.sm, V = document.querySelector('[data-editor-header="true"]'), _ = document.querySelector('[data-menu-tab="true"]');
|
|
4109
|
+
if (w && !V)
|
|
4110
4110
|
return 1;
|
|
4111
|
-
if (
|
|
4112
|
-
return
|
|
4111
|
+
if (V)
|
|
4112
|
+
return V.getBoundingClientRect().bottom;
|
|
4113
4113
|
if (_) {
|
|
4114
4114
|
let c = _;
|
|
4115
4115
|
for (; c; ) {
|
|
@@ -4123,8 +4123,8 @@ function dr(e) {
|
|
|
4123
4123
|
}
|
|
4124
4124
|
function B() {
|
|
4125
4125
|
if (!s || !u || !p || !t.value) return;
|
|
4126
|
-
const w = t.value.getBoundingClientRect(),
|
|
4127
|
-
if (!(
|
|
4126
|
+
const w = t.value.getBoundingClientRect(), V = u.getBoundingClientRect(), _ = p.getBoundingClientRect(), c = M();
|
|
4127
|
+
if (!(V.top <= c && V.bottom >= c + _.height)) {
|
|
4128
4128
|
s.style.visibility = "hidden";
|
|
4129
4129
|
return;
|
|
4130
4130
|
}
|
|
@@ -4135,15 +4135,15 @@ function dr(e) {
|
|
|
4135
4135
|
return;
|
|
4136
4136
|
}
|
|
4137
4137
|
s.style.left = `${ne}px`, s.style.width = `${U}px`;
|
|
4138
|
-
const
|
|
4139
|
-
|
|
4138
|
+
const z = s.querySelector("table");
|
|
4139
|
+
z && (z.style.width = `${u.offsetWidth}px`, z.style.marginLeft = `${_.left - ne}px`);
|
|
4140
4140
|
}
|
|
4141
|
-
function
|
|
4142
|
-
var
|
|
4141
|
+
function A() {
|
|
4142
|
+
var V;
|
|
4143
4143
|
C = () => requestAnimationFrame(B), window.addEventListener("scroll", C, { passive: !0 }), I().forEach((_) => {
|
|
4144
4144
|
C && _.addEventListener("scroll", C, { passive: !0 });
|
|
4145
4145
|
});
|
|
4146
|
-
let w = (
|
|
4146
|
+
let w = (V = t.value) == null ? void 0 : V.parentElement;
|
|
4147
4147
|
for (; w; )
|
|
4148
4148
|
w !== document.body && (w.scrollHeight > w.clientHeight || w.scrollWidth > w.clientWidth) && w.addEventListener("scroll", C, { passive: !0 }), w = w.parentElement;
|
|
4149
4149
|
}
|
|
@@ -4152,22 +4152,22 @@ function dr(e) {
|
|
|
4152
4152
|
if (p && s) {
|
|
4153
4153
|
const w = s.querySelector("thead");
|
|
4154
4154
|
w && f(p, w);
|
|
4155
|
-
const
|
|
4156
|
-
|
|
4155
|
+
const V = s.querySelector("table");
|
|
4156
|
+
V && u && (V.style.width = `${u.offsetWidth}px`);
|
|
4157
4157
|
}
|
|
4158
4158
|
B();
|
|
4159
4159
|
}), t.value && d.observe(t.value), u && d.observe(u);
|
|
4160
4160
|
}
|
|
4161
4161
|
function m() {
|
|
4162
4162
|
if (!p) return;
|
|
4163
|
-
const w = Cn(() => b(), 100),
|
|
4163
|
+
const w = Cn(() => b(), 100), V = () => {
|
|
4164
4164
|
if (p && s) {
|
|
4165
4165
|
const _ = s.querySelector("thead");
|
|
4166
4166
|
_ && f(p, _), B();
|
|
4167
4167
|
}
|
|
4168
4168
|
};
|
|
4169
4169
|
N = new MutationObserver((_) => {
|
|
4170
|
-
_.some((F) => F.type === "childList" ? F.addedNodes.length > 0 || F.removedNodes.length > 0 : !1) ? w() :
|
|
4170
|
+
_.some((F) => F.type === "childList" ? F.addedNodes.length > 0 || F.removedNodes.length > 0 : !1) ? w() : V();
|
|
4171
4171
|
}), N.observe(p, {
|
|
4172
4172
|
childList: !0,
|
|
4173
4173
|
subtree: !0,
|
|
@@ -4181,9 +4181,9 @@ function dr(e) {
|
|
|
4181
4181
|
window.removeEventListener("scroll", C), I().forEach((_) => {
|
|
4182
4182
|
C && _.removeEventListener("scroll", C);
|
|
4183
4183
|
});
|
|
4184
|
-
let
|
|
4185
|
-
for (;
|
|
4186
|
-
|
|
4184
|
+
let V = (w = t.value) == null ? void 0 : w.parentElement;
|
|
4185
|
+
for (; V; )
|
|
4186
|
+
V.removeEventListener("scroll", C), V = V.parentElement;
|
|
4187
4187
|
C = null;
|
|
4188
4188
|
}
|
|
4189
4189
|
d && (d.disconnect(), d = null), N && (N.disconnect(), N = null), u = null, p = null;
|
|
@@ -4191,11 +4191,11 @@ function dr(e) {
|
|
|
4191
4191
|
function x() {
|
|
4192
4192
|
b();
|
|
4193
4193
|
}
|
|
4194
|
-
return
|
|
4194
|
+
return Pe(a, (w) => {
|
|
4195
4195
|
w ? b() : L();
|
|
4196
|
-
}),
|
|
4196
|
+
}), Pe(r, () => {
|
|
4197
4197
|
s && (s.style.top = `${r.value}px`, B());
|
|
4198
|
-
}),
|
|
4198
|
+
}), Pe(t, () => {
|
|
4199
4199
|
t.value && a.value && setTimeout(b, 100);
|
|
4200
4200
|
}), it(() => {
|
|
4201
4201
|
a.value && setTimeout(b, 100);
|
|
@@ -4250,9 +4250,9 @@ const fr = {
|
|
|
4250
4250
|
return T >= 0 ? T : 0;
|
|
4251
4251
|
} else
|
|
4252
4252
|
return -1;
|
|
4253
|
-
}), B = v(() => M.value !== 0),
|
|
4253
|
+
}), B = v(() => M.value !== 0), A = v(
|
|
4254
4254
|
() => M.value != ut.value.length - 1
|
|
4255
|
-
), g = D(a.showTitle ?? !0), m = D(a.titleFontSize ?? 14), L = D(a.titleBold ?? !1), x = D(a.titleItalic ?? !1), w = D(a.titleUnderline ?? !1),
|
|
4255
|
+
), g = D(a.showTitle ?? !0), m = D(a.titleFontSize ?? 14), L = D(a.titleBold ?? !1), x = D(a.titleItalic ?? !1), w = D(a.titleUnderline ?? !1), V = D(a.chartWidth ?? void 0), _ = D(a.chartHeight ?? void 0), c = D(
|
|
4256
4256
|
Array.isArray(a.chartColors) ? [...a.chartColors] : void 0
|
|
4257
4257
|
), F = D(
|
|
4258
4258
|
Array.isArray(a.chartColorLayers) ? [...a.chartColorLayers] : void 0
|
|
@@ -4260,15 +4260,15 @@ const fr = {
|
|
|
4260
4260
|
Array.isArray(a.chartBreakdownColors) ? [...a.chartBreakdownColors] : void 0
|
|
4261
4261
|
), G = D(a.chartUseSecondaryMetricShades ?? !0), le = D(a.chartColorBinding), te = D(
|
|
4262
4262
|
Array.isArray(a.lineStyles) ? [...a.lineStyles] : void 0
|
|
4263
|
-
), ce = D(a.lineStyleBinding), ne = D(a.showLabel ?? !1), k = D(a.labelAlign ?? kn.center), U = D(a.labelAnchor ?? _n.center),
|
|
4263
|
+
), ce = D(a.lineStyleBinding), ne = D(a.showLabel ?? !1), k = D(a.labelAlign ?? kn.center), U = D(a.labelAnchor ?? _n.center), z = D(a.labelRotation ?? 0), P = D(a.labelOffset ?? 0), $ = D(a.labelFontSize ?? 12), R = v(() => a.showSearchBar), re = D(a.showX ?? !0), X = D(a.xPosition ?? Tn.bottom), ee = D(a.showXGrid ?? !1), ae = D(a.showXTick ?? !0), ue = D(a.xTickFontSize ?? 12), he = D(a.showXTitle ?? !1), Se = D(a.xTitle ?? ""), de = D(a.xTitleFontSize ?? 12), ye = D(a.showY ?? !0), Ne = D(a.yPosition ?? Ln.left), Ye = D(a.showYGrid ?? !1), i = D(a.showYTick ?? !0), W = D(a.yTickFontSize ?? 12), Z = D(a.showYTitle ?? !1), Q = D(a.yTitle ?? ""), Ce = D(a.yTitleFontSize ?? 12), Fe = D(a.showLegend ?? void 0), Xe = D(a.legendPosition ?? Dn.top), Re = D(a.usePointStyle ?? !0), je = D(a.legendFontSize), Be = D(a.legendColor ?? "#6b6b6b"), fe = D(a.legendMaxWidth), O = D(a.maxTooltipItems), _e = D(a.stackBarOverlap ?? !1), Te = D(a.rowHeight ?? 0), Le = D(a.colWidths ?? []), He = D(!1), Ae = D(""), { breakpoints: De, getBreakpointsBoundary: Oe } = fn(), We = D(), Ee = v(
|
|
4264
4264
|
() => p.customScreenWidth === void 0 ? window.innerWidth : p.customScreenWidth
|
|
4265
|
-
),
|
|
4265
|
+
), Ve = v(
|
|
4266
4266
|
() => (Ee == null ? void 0 : Ee.value) > Oe("xs")[1] && (Ee == null ? void 0 : Ee.value) <= Oe("sm")[1]
|
|
4267
4267
|
), an = v(
|
|
4268
4268
|
() => (Ee == null ? void 0 : Ee.value) > Oe("sm")[1] && (Ee == null ? void 0 : Ee.value) <= Oe("md")[1]
|
|
4269
4269
|
), mn = v(() => (Ee == null ? void 0 : Ee.value) > Oe("md")[1]), hn = v(() => {
|
|
4270
4270
|
const T = t.value.size.width;
|
|
4271
|
-
return mn.value || an.value ? ar(T) :
|
|
4271
|
+
return mn.value || an.value ? ar(T) : Ve.value ? or(T) : lr(T);
|
|
4272
4272
|
}), Dt = v(
|
|
4273
4273
|
() => uo.find((T) => T.type === t.value.widget.type)
|
|
4274
4274
|
), o = Cn(() => {
|
|
@@ -4343,7 +4343,7 @@ const fr = {
|
|
|
4343
4343
|
titleItalic: x.value,
|
|
4344
4344
|
titleUnderline: w.value,
|
|
4345
4345
|
chartHeight: _.value,
|
|
4346
|
-
chartWidth:
|
|
4346
|
+
chartWidth: V.value,
|
|
4347
4347
|
chartColors: c.value,
|
|
4348
4348
|
chartColorLayers: F.value,
|
|
4349
4349
|
chartBreakdownColors: E.value,
|
|
@@ -4355,8 +4355,8 @@ const fr = {
|
|
|
4355
4355
|
showLabel: ne.value,
|
|
4356
4356
|
labelAnchor: U.value,
|
|
4357
4357
|
labelAlign: k.value,
|
|
4358
|
-
labelRotation:
|
|
4359
|
-
labelOffset:
|
|
4358
|
+
labelRotation: z.value,
|
|
4359
|
+
labelOffset: P.value,
|
|
4360
4360
|
labelFontSize: $.value,
|
|
4361
4361
|
showX: re.value,
|
|
4362
4362
|
xPosition: X.value,
|
|
@@ -4388,7 +4388,7 @@ const fr = {
|
|
|
4388
4388
|
function dt() {
|
|
4389
4389
|
return {
|
|
4390
4390
|
data: h.value,
|
|
4391
|
-
filterText:
|
|
4391
|
+
filterText: Ae.value,
|
|
4392
4392
|
rollupPosition: se.value.config.rollupPosition,
|
|
4393
4393
|
grandTotalLabel: se.value.config.grandTotalLabel,
|
|
4394
4394
|
rowHeight: Te.value,
|
|
@@ -4437,15 +4437,15 @@ const fr = {
|
|
|
4437
4437
|
(Ie) => Array.isArray(Ie.tileIds) && Ie.tileIds.includes(T)
|
|
4438
4438
|
);
|
|
4439
4439
|
});
|
|
4440
|
-
|
|
4440
|
+
Pe(
|
|
4441
4441
|
() => t.value.widget.config,
|
|
4442
4442
|
(T) => {
|
|
4443
|
-
I.value = T.rollup, g.value = T.showTitle ?? !0, m.value = T.titleFontSize ?? 14, L.value = T.titleBold ?? !1, x.value = T.titleItalic ?? !1, w.value = T.titleUnderline ?? !1, _.value = T.chartHeight ?? void 0,
|
|
4443
|
+
I.value = T.rollup, g.value = T.showTitle ?? !0, m.value = T.titleFontSize ?? 14, L.value = T.titleBold ?? !1, x.value = T.titleItalic ?? !1, w.value = T.titleUnderline ?? !1, _.value = T.chartHeight ?? void 0, V.value = T.chartWidth ?? void 0, c.value = Array.isArray(T.chartColors) ? [...T.chartColors] : void 0, F.value = Array.isArray(T.chartColorLayers) ? [...T.chartColorLayers] : void 0, E.value = Array.isArray(T.chartBreakdownColors) ? [...T.chartBreakdownColors] : void 0, G.value = T.chartUseSecondaryMetricShades ?? !0, le.value = T.chartColorBinding, te.value = Array.isArray(T.lineStyles) ? [...T.lineStyles] : void 0, ce.value = T.lineStyleBinding, ne.value = T.showLabel ?? !1, k.value = T.labelAlign ?? kn.center, U.value = T.labelAnchor ?? _n.center, z.value = T.labelRotation ?? 0, P.value = T.labelOffset ?? 0, $.value = T.labelFontSize ?? 12, re.value = T.showX ?? !0, X.value = T.xPosition ?? Tn.bottom, ee.value = T.showXGrid ?? !1, ae.value = T.showXTick ?? !0, ue.value = T.xTickFontSize ?? 12, he.value = T.showXTitle ?? !1, Se.value = T.xTitle ?? "", de.value = T.xTitleFontSize ?? 12, ye.value = T.showY ?? !0, Ne.value = T.yPosition ?? Ln.left, Ye.value = T.showYGrid ?? !0, i.value = T.showYTick ?? !0, W.value = T.yTickFontSize ?? 12, Z.value = T.showYTitle ?? !1, Q.value = T.yTitle ?? "", Ce.value = T.yTitleFontSize ?? 12, Fe.value = T.showLegend ?? void 0, Xe.value = T.legendPosition ?? Dn.top, Re.value = T.usePointStyle ?? !0, je.value = T.legendFontSize, Be.value = T.legendColor ?? "#6b6b6b", fe.value = T.legendMaxWidth, O.value = T.maxTooltipItems, _e.value = T.stackBarOverlap ?? !1, Te.value = T.rowHeight ?? 0, Le.value = T.colWidths ?? [], b.value = Gt();
|
|
4444
4444
|
},
|
|
4445
4445
|
{ deep: !0 }
|
|
4446
|
-
),
|
|
4446
|
+
), Pe([() => I.value], () => {
|
|
4447
4447
|
I.value !== null && (t.value.widget.config.rollup = I.value);
|
|
4448
|
-
}),
|
|
4448
|
+
}), Pe(
|
|
4449
4449
|
[
|
|
4450
4450
|
() => se.value,
|
|
4451
4451
|
() => K.value,
|
|
@@ -4459,7 +4459,7 @@ const fr = {
|
|
|
4459
4459
|
Rn();
|
|
4460
4460
|
},
|
|
4461
4461
|
{ deep: !0 }
|
|
4462
|
-
),
|
|
4462
|
+
), Pe(
|
|
4463
4463
|
[() => t.value.size],
|
|
4464
4464
|
() => {
|
|
4465
4465
|
o();
|
|
@@ -4470,7 +4470,7 @@ const fr = {
|
|
|
4470
4470
|
}), ca(() => {
|
|
4471
4471
|
De.value.sm || De.value.md || De.value.xs ? (console.log("Ignoring resize event due to keyboard"), removeEventListener("change", o)) : removeEventListener("resize", o);
|
|
4472
4472
|
});
|
|
4473
|
-
const Kt =
|
|
4473
|
+
const Kt = An();
|
|
4474
4474
|
let on;
|
|
4475
4475
|
async function Rn() {
|
|
4476
4476
|
if (!p.isStyleEditing) {
|
|
@@ -4522,16 +4522,16 @@ const fr = {
|
|
|
4522
4522
|
locationIds: S.value
|
|
4523
4523
|
}) : T === Ft.PDF && (Hn.value = T, Wn.value = p.index, He.value = !0);
|
|
4524
4524
|
}
|
|
4525
|
-
})), Ba = se.value.type === ie.Spacer ? "flat" : "outlined",
|
|
4525
|
+
})), Ba = se.value.type === ie.Spacer ? "flat" : "outlined", Aa = se.value.type === ie.Spacer ? "p-0" : "p-16";
|
|
4526
4526
|
return (T, Ie) => {
|
|
4527
|
-
const lt = ge("FmTooltip"), xt = ge("FmSearch"), pn = ge("FmCheckbox"), It = ge("FmButton"),
|
|
4527
|
+
const lt = ge("FmTooltip"), xt = ge("FmSearch"), pn = ge("FmCheckbox"), It = ge("FmButton"), Va = ge("FmSelect"), $a = ge("FmMenuItem"), Na = ge("FmMenu"), za = ge("FmForm"), Pa = ge("FmCircularProgress"), Ra = ge("FmCard");
|
|
4528
4528
|
return Y(), we(Ra, {
|
|
4529
4529
|
ref_key: "tileCard",
|
|
4530
4530
|
ref: d,
|
|
4531
|
-
class: qe(`${hn.value} ${l(
|
|
4531
|
+
class: qe(`${hn.value} ${l(Aa)}`),
|
|
4532
4532
|
variant: l(Ba)
|
|
4533
4533
|
}, {
|
|
4534
|
-
default:
|
|
4534
|
+
default: ze(() => [
|
|
4535
4535
|
me(cr, {
|
|
4536
4536
|
modelValue: He.value,
|
|
4537
4537
|
"onUpdate:modelValue": Ie[0] || (Ie[0] = (Mt) => He.value = Mt),
|
|
@@ -4548,9 +4548,9 @@ const fr = {
|
|
|
4548
4548
|
"onUpdate:modelValue": Ie[4] || (Ie[4] = (Mt) => Qe.value = Mt),
|
|
4549
4549
|
"tile-index": p.index
|
|
4550
4550
|
}, {
|
|
4551
|
-
menu:
|
|
4552
|
-
me(
|
|
4553
|
-
default:
|
|
4551
|
+
menu: ze(() => [
|
|
4552
|
+
me(za, { class: "flex items-center gap-2" }, {
|
|
4553
|
+
default: ze(() => {
|
|
4554
4554
|
var Mt, On, En, Un;
|
|
4555
4555
|
return [
|
|
4556
4556
|
me(lt, {
|
|
@@ -4561,7 +4561,7 @@ const fr = {
|
|
|
4561
4561
|
disabled: !se.value.description,
|
|
4562
4562
|
"z-index": 99
|
|
4563
4563
|
}, {
|
|
4564
|
-
default:
|
|
4564
|
+
default: ze(() => [
|
|
4565
4565
|
g.value !== !1 ? (Y(), be("p", {
|
|
4566
4566
|
key: 0,
|
|
4567
4567
|
style: Ze({
|
|
@@ -4580,8 +4580,8 @@ const fr = {
|
|
|
4580
4580
|
}, 8, ["content", "disabled"]),
|
|
4581
4581
|
(Mt = Dt.value) != null && Mt.showSearchBar ? (Y(), we(xt, {
|
|
4582
4582
|
key: 0,
|
|
4583
|
-
modelValue:
|
|
4584
|
-
"onUpdate:modelValue": Ie[1] || (Ie[1] = (mt) =>
|
|
4583
|
+
modelValue: Ae.value,
|
|
4584
|
+
"onUpdate:modelValue": Ie[1] || (Ie[1] = (mt) => Ae.value = mt),
|
|
4585
4585
|
class: "grow"
|
|
4586
4586
|
}, null, 8, ["modelValue"])) : (Y(), be("div", fr)),
|
|
4587
4587
|
Ua(me(pn, {
|
|
@@ -4602,11 +4602,11 @@ const fr = {
|
|
|
4602
4602
|
me(It, {
|
|
4603
4603
|
icon: "arrow_downward",
|
|
4604
4604
|
variant: "tertiary",
|
|
4605
|
-
disabled: !
|
|
4605
|
+
disabled: !A.value,
|
|
4606
4606
|
onClick: Ma
|
|
4607
4607
|
}, null, 8, ["disabled"])
|
|
4608
4608
|
])) : Me("", !0),
|
|
4609
|
-
(Un = Dt.value) != null && Un.showRollup && ft.value.length > 0 ? (Y(), we(
|
|
4609
|
+
(Un = Dt.value) != null && Un.showRollup && ft.value.length > 0 ? (Y(), we(Va, {
|
|
4610
4610
|
key: `rollup-${l(u)}`,
|
|
4611
4611
|
modelValue: I.value,
|
|
4612
4612
|
"onUpdate:modelValue": Ie[3] || (Ie[3] = (mt) => I.value = mt),
|
|
@@ -4617,13 +4617,13 @@ const fr = {
|
|
|
4617
4617
|
key: 4,
|
|
4618
4618
|
shift: !0
|
|
4619
4619
|
}, {
|
|
4620
|
-
"menu-button":
|
|
4620
|
+
"menu-button": ze(() => [
|
|
4621
4621
|
me(It, {
|
|
4622
4622
|
icon: "more_vert",
|
|
4623
4623
|
variant: "tertiary"
|
|
4624
4624
|
})
|
|
4625
4625
|
]),
|
|
4626
|
-
default:
|
|
4626
|
+
default: ze(() => [
|
|
4627
4627
|
(Y(!0), be(et, null, Lt(l(Fa), (mt) => (Y(), we($a, {
|
|
4628
4628
|
key: mt.value,
|
|
4629
4629
|
label: mt.label,
|
|
@@ -4639,7 +4639,7 @@ const fr = {
|
|
|
4639
4639
|
]),
|
|
4640
4640
|
_: 1
|
|
4641
4641
|
}, 8, ["modelValue", "tile-index"]))
|
|
4642
|
-
], 4)) : (Y(), we(
|
|
4642
|
+
], 4)) : (Y(), we(Pa, { key: 1 }))
|
|
4643
4643
|
]),
|
|
4644
4644
|
_: 1
|
|
4645
4645
|
}, 8, ["class", "variant"]);
|
|
@@ -4890,14 +4890,14 @@ const vr = ma(pr, () => {
|
|
|
4890
4890
|
__name: "FilterSelector",
|
|
4891
4891
|
setup(e) {
|
|
4892
4892
|
const { t: n, locale: t } = wt(), { currentReport: a, editingTile: r } = vt(Ga());
|
|
4893
|
-
let { globalFilters: s, isGlobalFiltersLoading: u, timeRange: p, dateRange: d, selectedLocationIds: C, timezone: N } = vt(jt()), { schemas: H } = vt(ja()), { showMore: I, getGlobalFilter: b, setGlobalFilter: f, setIncludeUnavailable: M, getKey: B, isMenuOpen:
|
|
4893
|
+
let { globalFilters: s, isGlobalFiltersLoading: u, timeRange: p, dateRange: d, selectedLocationIds: C, timezone: N } = vt(jt()), { schemas: H } = vt(ja()), { showMore: I, getGlobalFilter: b, setGlobalFilter: f, setIncludeUnavailable: M, getKey: B, isMenuOpen: A } = vr();
|
|
4894
4894
|
const g = v(() => n("report.input.unknown"));
|
|
4895
4895
|
let m = null;
|
|
4896
4896
|
const L = D(!1), x = v(() => {
|
|
4897
4897
|
var i;
|
|
4898
4898
|
return ((i = a.value) == null ? void 0 : i.id) ?? "";
|
|
4899
4899
|
}), w = D([]);
|
|
4900
|
-
function
|
|
4900
|
+
function V(i) {
|
|
4901
4901
|
return i.filter((W) => W !== Xt);
|
|
4902
4902
|
}
|
|
4903
4903
|
function _(i) {
|
|
@@ -4911,7 +4911,7 @@ const vr = ma(pr, () => {
|
|
|
4911
4911
|
const Z = b(i.filter, x.value).selectedValues;
|
|
4912
4912
|
i.selectedValues = i.keepSelection ? Z : i.options.map((Q) => Q.value), i.filter.values = [...i.selectedValues], f(i.filter, x.value, "selectedValues", i.selectedValues);
|
|
4913
4913
|
}
|
|
4914
|
-
|
|
4914
|
+
Pe(
|
|
4915
4915
|
() => ({
|
|
4916
4916
|
reportId: x.value,
|
|
4917
4917
|
globalFilters: s.value
|
|
@@ -4933,13 +4933,13 @@ const vr = ma(pr, () => {
|
|
|
4933
4933
|
}), R();
|
|
4934
4934
|
},
|
|
4935
4935
|
{ immediate: !0 }
|
|
4936
|
-
),
|
|
4936
|
+
), Pe(
|
|
4937
4937
|
[p, d, C],
|
|
4938
4938
|
async () => {
|
|
4939
4939
|
await R();
|
|
4940
4940
|
},
|
|
4941
4941
|
{ deep: !0, immediate: !0 }
|
|
4942
|
-
),
|
|
4942
|
+
), Pe(
|
|
4943
4943
|
[() => r.value],
|
|
4944
4944
|
async () => {
|
|
4945
4945
|
w.value.forEach((i) => {
|
|
@@ -4947,7 +4947,7 @@ const vr = ma(pr, () => {
|
|
|
4947
4947
|
}), await R();
|
|
4948
4948
|
},
|
|
4949
4949
|
{ deep: !0 }
|
|
4950
|
-
),
|
|
4950
|
+
), Pe(
|
|
4951
4951
|
() => t.value,
|
|
4952
4952
|
async () => {
|
|
4953
4953
|
await R(!0);
|
|
@@ -4967,9 +4967,9 @@ const vr = ma(pr, () => {
|
|
|
4967
4967
|
const fe = (Le = Be == null ? void 0 : Be.widget) == null ? void 0 : Le.config;
|
|
4968
4968
|
if (!fe || (He = i.tileIds) != null && He.length && !i.tileIds.includes(Be.id)) return !1;
|
|
4969
4969
|
const O = (fe.dimensions ?? []).some(
|
|
4970
|
-
(
|
|
4970
|
+
(Ae) => Ae.schemaName === Q && Ae.name === Z
|
|
4971
4971
|
), _e = (fe.joinDatasources ?? []).some(
|
|
4972
|
-
(
|
|
4972
|
+
(Ae) => (Ae.dimensions ?? []).some((De) => De.schemaName === Q && De.name === Z)
|
|
4973
4973
|
), Te = (fe.schemaNames ?? []).includes(Q);
|
|
4974
4974
|
return O || _e || Te;
|
|
4975
4975
|
});
|
|
@@ -4995,8 +4995,8 @@ const vr = ma(pr, () => {
|
|
|
4995
4995
|
};
|
|
4996
4996
|
};
|
|
4997
4997
|
return Ce.map((Be) => {
|
|
4998
|
-
var
|
|
4999
|
-
const fe = (
|
|
4998
|
+
var Ae, De;
|
|
4999
|
+
const fe = (Ae = Be == null ? void 0 : Be.widget) == null ? void 0 : Ae.config;
|
|
5000
5000
|
if (!fe) return null;
|
|
5001
5001
|
const O = Xe(fe), _e = (fe.dimensions ?? []).some((Oe) => Oe.schemaName === Q) || (fe.schemaNames ?? []).includes(Q), Te = Fe(
|
|
5002
5002
|
fe.filters ?? [],
|
|
@@ -5081,18 +5081,18 @@ const vr = ma(pr, () => {
|
|
|
5081
5081
|
var W;
|
|
5082
5082
|
return !((W = i.filter.tileIds) != null && W.length);
|
|
5083
5083
|
}
|
|
5084
|
-
function
|
|
5084
|
+
function z(i) {
|
|
5085
5085
|
return String(i ?? "").trim() === "" ? Xt : String(i);
|
|
5086
5086
|
}
|
|
5087
|
-
function
|
|
5087
|
+
function P(i) {
|
|
5088
5088
|
var W, Z;
|
|
5089
5089
|
return (((W = i.customTimeRanges) == null ? void 0 : W.length) ?? 0) > 0 ? i.customTimeRanges.map((Q) => ({
|
|
5090
|
-
label:
|
|
5091
|
-
value:
|
|
5090
|
+
label: z(Q.name),
|
|
5091
|
+
value: z(Q.name),
|
|
5092
5092
|
available: !0
|
|
5093
5093
|
})) : (((Z = i.customOptions) == null ? void 0 : Z.length) ?? 0) > 0 ? i.customOptions.map((Q) => ({
|
|
5094
|
-
label:
|
|
5095
|
-
value:
|
|
5094
|
+
label: z(Q.label),
|
|
5095
|
+
value: z(Q.label),
|
|
5096
5096
|
available: !0
|
|
5097
5097
|
})) : [];
|
|
5098
5098
|
}
|
|
@@ -5104,7 +5104,7 @@ const vr = ma(pr, () => {
|
|
|
5104
5104
|
}
|
|
5105
5105
|
if (!(!i.type && (i.type = E(i.filter), !i.type))) {
|
|
5106
5106
|
if (k(i.filter)) {
|
|
5107
|
-
i.options =
|
|
5107
|
+
i.options = P(i.filter), F(i);
|
|
5108
5108
|
return;
|
|
5109
5109
|
}
|
|
5110
5110
|
switch (i.type) {
|
|
@@ -5175,7 +5175,7 @@ const vr = ma(pr, () => {
|
|
|
5175
5175
|
);
|
|
5176
5176
|
i.selectedValues = Ce.length > 0 ? Ce : [Xt];
|
|
5177
5177
|
} else
|
|
5178
|
-
i.selectedValues = [...
|
|
5178
|
+
i.selectedValues = [...V(i.selectedValues || []), W];
|
|
5179
5179
|
f(i.filter, x.value, "selectedValues", i.selectedValues);
|
|
5180
5180
|
}
|
|
5181
5181
|
function X(i, W) {
|
|
@@ -5189,7 +5189,7 @@ const vr = ma(pr, () => {
|
|
|
5189
5189
|
Z && (Z.keepSelection = W !== null, f(Z.filter, x.value, "keepSelection", Z.keepSelection));
|
|
5190
5190
|
}
|
|
5191
5191
|
function ee(i) {
|
|
5192
|
-
const W =
|
|
5192
|
+
const W = V(i.selectedValues || []);
|
|
5193
5193
|
return `${n("report.section.filter.selectAll")} (${W.length}/${i.options.length})`;
|
|
5194
5194
|
}
|
|
5195
5195
|
function ae(i) {
|
|
@@ -5208,7 +5208,7 @@ const vr = ma(pr, () => {
|
|
|
5208
5208
|
timezone: N.value
|
|
5209
5209
|
})}` : W, suffix: "" };
|
|
5210
5210
|
if (i.filter.option === Je.TimeOfDay) {
|
|
5211
|
-
const _e = (Be = i.filter.values) != null && Be[0] ? Bt(i.filter.values[0]).tz(N.value) : null, Te = (fe = i.filter.values) != null && fe[1] ? Bt(i.filter.values[1]).tz(N.value) : null, Le = (
|
|
5211
|
+
const _e = (Be = i.filter.values) != null && Be[0] ? Bt(i.filter.values[0]).tz(N.value) : null, Te = (fe = i.filter.values) != null && fe[1] ? Bt(i.filter.values[1]).tz(N.value) : null, Le = (Ae) => Ae && Ae.isValid() ? { hour: Ae.hour(), minute: Ae.minute() } : null;
|
|
5212
5212
|
return { preview: O ? `${W} is between ${ro({
|
|
5213
5213
|
startTime: Le(_e),
|
|
5214
5214
|
endTime: Le(Te),
|
|
@@ -5219,14 +5219,14 @@ const vr = ma(pr, () => {
|
|
|
5219
5219
|
const _e = ra({
|
|
5220
5220
|
dimensionOption: i.filter.option,
|
|
5221
5221
|
t: n
|
|
5222
|
-
}), Te = new Map(_e.map((De) => [String(De.value), De.label])), He =
|
|
5222
|
+
}), Te = new Map(_e.map((De) => [String(De.value), De.label])), He = V(i.selectedValues || []).map((De) => Te.get(String(De)) ?? String(De)), Ae = He.map((De) => De.length > 20 ? `${De.slice(0, 20)}…` : De).join(", ");
|
|
5223
5223
|
return He.length ? {
|
|
5224
|
-
preview: `${W}: ${
|
|
5224
|
+
preview: `${W}: ${Ae}`,
|
|
5225
5225
|
suffix: `(${He.length} selected)`
|
|
5226
5226
|
} : { preview: W, suffix: Z };
|
|
5227
5227
|
}
|
|
5228
5228
|
}
|
|
5229
|
-
const Ce =
|
|
5229
|
+
const Ce = V(i.selectedValues || []).map((O) => O === !0 ? n("report.common.yes") || "Yes" : O === !1 ? n("report.common.no") || "No" : String(O).trim() === "" ? g.value : String(O)), Fe = Ce.map((O) => O.length > 20 ? `${O.slice(0, 20)}…` : O).join(", ");
|
|
5230
5230
|
return Ce.length ? {
|
|
5231
5231
|
preview: `${W}: ${Fe}`,
|
|
5232
5232
|
suffix: `(${Ce.length} selected)`
|
|
@@ -5262,7 +5262,7 @@ const vr = ma(pr, () => {
|
|
|
5262
5262
|
const Z = ge("FmCircularProgress"), Q = ge("FmTextField"), Ce = ge("FmMenuItem"), Fe = ge("FmTooltip"), Xe = ge("FmIcon"), Re = ge("FmMenuDivider"), je = ge("FmSwitch"), Be = ge("FmButton"), fe = ge("FmMenu");
|
|
5263
5263
|
return Y(), be("div", gr, [
|
|
5264
5264
|
(Y(!0), be(et, null, Lt(w.value, (O, _e) => {
|
|
5265
|
-
var Te, Le, He,
|
|
5265
|
+
var Te, Le, He, Ae, De, Oe;
|
|
5266
5266
|
return Y(), be("div", {
|
|
5267
5267
|
key: O.id
|
|
5268
5268
|
}, [
|
|
@@ -5276,7 +5276,7 @@ const vr = ma(pr, () => {
|
|
|
5276
5276
|
onChipClosed: () => X(O.filter, null)
|
|
5277
5277
|
}, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : O.filter.option === l(Je).TimeOfDay && !k(O.filter) ? (Y(), we(Ja, {
|
|
5278
5278
|
key: 1,
|
|
5279
|
-
"model-value": { start: (
|
|
5279
|
+
"model-value": { start: (Ae = O.filter.values) == null ? void 0 : Ae[0], end: (De = O.filter.values) == null ? void 0 : De[1] },
|
|
5280
5280
|
class: "w-full",
|
|
5281
5281
|
label: ue(O).preview,
|
|
5282
5282
|
removable: ((Oe = O.filter.values) == null ? void 0 : Oe.length) === 2,
|
|
@@ -5286,9 +5286,9 @@ const vr = ma(pr, () => {
|
|
|
5286
5286
|
key: 2,
|
|
5287
5287
|
"close-on-click": !1,
|
|
5288
5288
|
shift: !0,
|
|
5289
|
-
open: l(
|
|
5289
|
+
open: l(A)(O.id)
|
|
5290
5290
|
}, {
|
|
5291
|
-
"menu-button":
|
|
5291
|
+
"menu-button": ze(() => [
|
|
5292
5292
|
J("div", yr, [
|
|
5293
5293
|
me(oo, {
|
|
5294
5294
|
"left-icon": "filter_alt",
|
|
@@ -5296,14 +5296,14 @@ const vr = ma(pr, () => {
|
|
|
5296
5296
|
label: ue(O).preview,
|
|
5297
5297
|
class: "w-full"
|
|
5298
5298
|
}, {
|
|
5299
|
-
default:
|
|
5299
|
+
default: ze(() => [
|
|
5300
5300
|
bn(Ge(ue(O).suffix), 1)
|
|
5301
5301
|
]),
|
|
5302
5302
|
_: 2
|
|
5303
5303
|
}, 1032, ["label"])
|
|
5304
5304
|
])
|
|
5305
5305
|
]),
|
|
5306
|
-
"menu-wrapper":
|
|
5306
|
+
"menu-wrapper": ze(({ maxHeight: We, width: Ee }) => [
|
|
5307
5307
|
J("div", {
|
|
5308
5308
|
class: "flex flex-col bg-fm-color-neutral-white p-2 rounded-lg shadow-light-300",
|
|
5309
5309
|
style: Ze({ maxHeight: `${We}px`, width: Ee })
|
|
@@ -5315,8 +5315,8 @@ const vr = ma(pr, () => {
|
|
|
5315
5315
|
me(Q, {
|
|
5316
5316
|
modelValue: O.search,
|
|
5317
5317
|
"onUpdate:modelValue": [
|
|
5318
|
-
(
|
|
5319
|
-
(
|
|
5318
|
+
(Ve) => O.search = Ve,
|
|
5319
|
+
(Ve) => l(f)(O.filter, x.value, "search", Ve)
|
|
5320
5320
|
],
|
|
5321
5321
|
type: "text",
|
|
5322
5322
|
"prepend-icon": "search",
|
|
@@ -5331,56 +5331,56 @@ const vr = ma(pr, () => {
|
|
|
5331
5331
|
"has-checkbox": !0,
|
|
5332
5332
|
"model-value": le(O),
|
|
5333
5333
|
indeterminate: !0,
|
|
5334
|
-
onClick: (
|
|
5334
|
+
onClick: (Ve) => te(O)
|
|
5335
5335
|
}, null, 8, ["label", "model-value", "onClick"]),
|
|
5336
|
-
(Y(!0), be(et, null, Lt(ce.value[_e], (
|
|
5337
|
-
key:
|
|
5336
|
+
(Y(!0), be(et, null, Lt(ce.value[_e], (Ve) => (Y(), be(et, {
|
|
5337
|
+
key: Ve.value
|
|
5338
5338
|
}, [
|
|
5339
|
-
|
|
5339
|
+
Ve.label && Ve.label.length > 110 ? (Y(), we(Fe, {
|
|
5340
5340
|
key: 0,
|
|
5341
5341
|
placement: "right",
|
|
5342
5342
|
"hide-arrow": !0,
|
|
5343
5343
|
"z-index": 2e3
|
|
5344
5344
|
}, {
|
|
5345
|
-
content:
|
|
5346
|
-
bn(Ge(
|
|
5345
|
+
content: ze(() => [
|
|
5346
|
+
bn(Ge(Ve.label), 1)
|
|
5347
5347
|
]),
|
|
5348
|
-
default:
|
|
5348
|
+
default: ze(() => [
|
|
5349
5349
|
J("div", Sr, [
|
|
5350
5350
|
me(Ce, {
|
|
5351
|
-
label: Ne(
|
|
5351
|
+
label: Ne(Ve.label, 110),
|
|
5352
5352
|
"has-checkbox": !0,
|
|
5353
|
-
"model-value": O.selectedValues.includes(
|
|
5353
|
+
"model-value": O.selectedValues.includes(Ve.value),
|
|
5354
5354
|
class: qe([
|
|
5355
5355
|
"flex-1 text-left",
|
|
5356
|
-
{ "bg-gray-200":
|
|
5356
|
+
{ "bg-gray-200": Ve.available === !1 }
|
|
5357
5357
|
]),
|
|
5358
|
-
onClick: () => re(O,
|
|
5358
|
+
onClick: () => re(O, Ve.value)
|
|
5359
5359
|
}, null, 8, ["label", "model-value", "class", "onClick"])
|
|
5360
5360
|
])
|
|
5361
5361
|
]),
|
|
5362
5362
|
_: 2
|
|
5363
5363
|
}, 1024)) : (Y(), we(Ce, {
|
|
5364
5364
|
key: 1,
|
|
5365
|
-
label:
|
|
5365
|
+
label: Ve.label,
|
|
5366
5366
|
"has-checkbox": !0,
|
|
5367
|
-
"model-value": O.selectedValues.includes(
|
|
5368
|
-
class: qe(["flex-1 text-left", { "bg-gray-100":
|
|
5369
|
-
onClick: () => re(O,
|
|
5367
|
+
"model-value": O.selectedValues.includes(Ve.value),
|
|
5368
|
+
class: qe(["flex-1 text-left", { "bg-gray-100": Ve.available === !1 }]),
|
|
5369
|
+
onClick: () => re(O, Ve.value)
|
|
5370
5370
|
}, null, 8, ["label", "model-value", "class", "onClick"]))
|
|
5371
5371
|
], 64))), 128)),
|
|
5372
5372
|
ce.value[_e].length < O.options.length && !O.search ? (Y(), we(Ce, {
|
|
5373
5373
|
key: 0,
|
|
5374
5374
|
class: "fm-typo-en-body-md-400 -ml-2",
|
|
5375
5375
|
label: l(n)("report.section.filter.loadMore"),
|
|
5376
|
-
onClick: Tt((
|
|
5376
|
+
onClick: Tt((Ve) => ne(O), ["stop"]),
|
|
5377
5377
|
icon: "autorenew"
|
|
5378
5378
|
}, null, 8, ["label", "onClick"])) : Me("", !0)
|
|
5379
5379
|
])
|
|
5380
5380
|
]),
|
|
5381
5381
|
J("div", {
|
|
5382
5382
|
class: "px-12 py-2 flex items-center gap-2 cursor-pointer hover:bg-fm-color-neutral-50 transition-colors",
|
|
5383
|
-
onClick: (
|
|
5383
|
+
onClick: (Ve) => de(O)
|
|
5384
5384
|
}, [
|
|
5385
5385
|
me(Xe, {
|
|
5386
5386
|
name: O.showAdvanced ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
@@ -5403,10 +5403,10 @@ const vr = ma(pr, () => {
|
|
|
5403
5403
|
placement: "top",
|
|
5404
5404
|
"z-index": 2e3
|
|
5405
5405
|
}, {
|
|
5406
|
-
content:
|
|
5406
|
+
content: ze(() => [
|
|
5407
5407
|
J("div", Ir, Ge(l(n)("report.section.filter.keepSelectionTooltip")), 1)
|
|
5408
5408
|
]),
|
|
5409
|
-
default:
|
|
5409
|
+
default: ze(() => [
|
|
5410
5410
|
me(Xe, {
|
|
5411
5411
|
name: "info",
|
|
5412
5412
|
size: "md",
|
|
@@ -5422,11 +5422,11 @@ const vr = ma(pr, () => {
|
|
|
5422
5422
|
me(Be, {
|
|
5423
5423
|
variant: "tertiary",
|
|
5424
5424
|
label: l(n)("report.common.cancel"),
|
|
5425
|
-
onClick: Tt((
|
|
5425
|
+
onClick: Tt((Ve) => Se(O), ["stop"])
|
|
5426
5426
|
}, null, 8, ["label", "onClick"]),
|
|
5427
5427
|
me(Be, {
|
|
5428
5428
|
color: "primary",
|
|
5429
|
-
onClick: Tt((
|
|
5429
|
+
onClick: Tt((Ve) => he(O), ["stop"]),
|
|
5430
5430
|
label: l(n)("report.common.apply")
|
|
5431
5431
|
}, null, 8, ["onClick", "label"])
|
|
5432
5432
|
])
|