@feedmepos/mf-report 5.27.15 → 5.27.16-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-CEzp0WZ4.js → App-D2MmuTEp.js} +88 -88
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-CrSKp1iF.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-vpkYemc0.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-Dxj1bHUZ.js → Default.vue_vue_type_script_setup_true_lang-CJurG9aM.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-TN9O6FyV.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BZhyztTx.js} +1002 -1000
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CwMp2GlG.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-vETD4B-9.js} +2 -2
- package/dist/{InsightView-DP_6xH4S.js → InsightView-QzZe61MS.js} +4 -4
- package/dist/{Integration-CbHZk8OP.js → Integration-D_nAp2HB.js} +3 -3
- package/dist/{Integrations-DjKClSy1.js → Integrations-BlVYt-y1.js} +2 -2
- package/dist/{Layout-DEItpNUb.js → Layout-Pa7C8HeX.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BpCfpm37.js → MenuTab.vue_vue_type_script_setup_true_lang-DFWNnoVH.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DWFbzyhO.js → NavigationTab.vue_vue_type_script_setup_true_lang-z4gKPDzg.js} +3 -3
- package/dist/{OverviewView-BuY3Xhp2.js → OverviewView-Ckufbqam.js} +4 -4
- package/dist/{Report-2Wb4LLQT.js → Report-pmeE5b9l.js} +3 -3
- package/dist/{ReportEditor-CwjixTuE.js → ReportEditor-Cm5sfU6-.js} +6 -6
- package/dist/{ReportView-w84M2snS.js → ReportView-CanX92KD.js} +6 -6
- package/dist/{Setting-Dnjw6qXA.js → Setting-DBuK_81Y.js} +3 -3
- package/dist/{Template-CpW0c2KW.js → Template-BUYrPogm.js} +3 -3
- package/dist/{TileEditor-Csd5lzvA.js → TileEditor-Vj8-aJ1o.js} +5 -5
- package/dist/{TileGrid.vue_vue_type_script_setup_true_lang-CJqmASd1.js → TileGrid.vue_vue_type_script_setup_true_lang-DDS9Uf4P.js} +1 -1
- package/dist/{TransitionFade-7NwfdjYw.js → TransitionFade-D7bz9bhf.js} +4 -4
- package/dist/{app-CNr49l0o.js → app-DENAMFRu.js} +13 -13
- package/dist/app.js +1 -1
- package/dist/{useRestaurantPermission-Cwz7KJdd.js → useRestaurantPermission-CwQYRiyD.js} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { computed as g, defineComponent as Ae, ref as
|
|
2
|
-
import { W as Y, w as ea, S as Pt, x as Mt, y as ta, z as pn, A as po, j as na, B as oa, E as aa, F as ra, R as yt, G as la } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { i as tn, a as an, u as ho } from "./app-
|
|
4
|
-
import { d as yn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { computed as g, defineComponent as Ae, ref as I, watch as we, onMounted as Nt, onBeforeUnmount as uo, resolveComponent as ce, createBlock as de, openBlock as X, Transition as Eo, withCtx as _e, createElementBlock as le, createCommentVNode as he, createElementVNode as q, unref as i, normalizeStyle as Pe, withModifiers as en, toDisplayString as Te, createVNode as fe, Fragment as Fe, renderList as ct, normalizeClass as Se, nextTick as co, mergeModels as He, useModel as We, renderSlot as et, h as jt, createSlots as Go, resolveDynamicComponent as fo, toRaw as qo, markRaw as jo, createTextVNode as Jo, onUnmounted as mo, withDirectives as Zo, vShow as Qo } from "vue";
|
|
2
|
+
import { W as Y, w as ea, S as Pt, x as Mt, y as ta, z as pn, A as po, j as na, B as oa, E as aa, F as ra, R as yt, G as la } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-vETD4B-9.js";
|
|
3
|
+
import { i as tn, a as an, u as ho } from "./app-DENAMFRu.js";
|
|
4
|
+
import { d as yn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-vpkYemc0.js";
|
|
5
5
|
import { storeToRefs as At } from "pinia";
|
|
6
6
|
import { detectLocale as In } from "@feedmepos/mf-common";
|
|
7
7
|
import { C as bn } from "./chart-DDDh8zNk.js";
|
|
@@ -264,9 +264,9 @@ function kt({
|
|
|
264
264
|
colorMode: c,
|
|
265
265
|
customColors: u
|
|
266
266
|
}) {
|
|
267
|
-
const f = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1,
|
|
268
|
-
let
|
|
269
|
-
return o && (
|
|
267
|
+
const f = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, P = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, O = r !== !1, x = e * f + P, v = c === "clustered" ? vo(Math.max(xt.length, e + 1)) : bo(u), y = Rt(a == null ? void 0 : a[e * f]) ?? v[e % v.length], _ = O && P > 0 ? rn(y, Kn(P)) : Rt(a == null ? void 0 : a[x]) ?? (P > 0 ? rn(y, Kn(P)) : y), L = o ? wo(_) : _;
|
|
268
|
+
let S = typeof l == "number" ? l : 1;
|
|
269
|
+
return o && (S = S * xo), Co(L, S);
|
|
270
270
|
}
|
|
271
271
|
function _o(e, t, n) {
|
|
272
272
|
if (e === "" || t === "")
|
|
@@ -470,8 +470,8 @@ function Ta(e, t, n) {
|
|
|
470
470
|
return;
|
|
471
471
|
const o = ((y = e.options) == null ? void 0 : y.indexAxis) === "y", l = e.tooltip, a = (l == null ? void 0 : l.getActiveElements()) ?? [];
|
|
472
472
|
if (a.length === 0) {
|
|
473
|
-
const
|
|
474
|
-
|
|
473
|
+
const _ = ka(e, o);
|
|
474
|
+
_ !== void 0 && hn(e.ctx, o, e.chartArea, _);
|
|
475
475
|
return;
|
|
476
476
|
}
|
|
477
477
|
const r = e.scales.x, c = e.scales.y;
|
|
@@ -481,13 +481,13 @@ function Ta(e, t, n) {
|
|
|
481
481
|
if (!u)
|
|
482
482
|
return;
|
|
483
483
|
if (t === "bar") {
|
|
484
|
-
const
|
|
485
|
-
hn(e.ctx, o, e.chartArea,
|
|
484
|
+
const L = (o ? c : r).getPixelForValue(u.index);
|
|
485
|
+
hn(e.ctx, o, e.chartArea, L);
|
|
486
486
|
return;
|
|
487
487
|
}
|
|
488
488
|
if (!u.element)
|
|
489
489
|
return;
|
|
490
|
-
const f = u.element,
|
|
490
|
+
const f = u.element, P = o ? c : r, O = o ? f.y : f.x, x = P.getPixelForValue(u.index), v = O ?? x;
|
|
491
491
|
hn(e.ctx, o, e.chartArea, v);
|
|
492
492
|
}
|
|
493
493
|
function Ht(e) {
|
|
@@ -689,18 +689,18 @@ function nr(e) {
|
|
|
689
689
|
return `<button type="button" data-tooltip-full-details="true" style="${va}">${Tn(e)}</button>`;
|
|
690
690
|
}
|
|
691
691
|
function Io(e, t, n, o, l, a, r, c) {
|
|
692
|
-
var
|
|
693
|
-
const u = (
|
|
694
|
-
a.forEach((A,
|
|
695
|
-
if (
|
|
692
|
+
var D;
|
|
693
|
+
const u = (D = e[0]) == null ? void 0 : D.label, f = Va(u), O = !!(f != null && f[1]) ? qn((f == null ? void 0 : f[0]) ?? "", Na()) : (f == null ? void 0 : f[0]) ?? "", x = f != null && f[1] ? qn(f[1], $a()) : void 0, v = [], y = [], _ = /* @__PURE__ */ new Set();
|
|
694
|
+
a.forEach((A, E) => {
|
|
695
|
+
if (_.has(E))
|
|
696
696
|
return;
|
|
697
697
|
const Q = A ?? {};
|
|
698
698
|
if (Q.isSpacer === !0)
|
|
699
699
|
return;
|
|
700
|
-
const oe = Ha(Q), j = Wa(Q, r),
|
|
700
|
+
const oe = Ha(Q), j = Wa(Q, r), T = Ua(Q, c), h = {
|
|
701
701
|
text: Oa(oe, j),
|
|
702
|
-
color: Ka(Q, r,
|
|
703
|
-
isBar:
|
|
702
|
+
color: Ka(Q, r, T),
|
|
703
|
+
isBar: T,
|
|
704
704
|
value: j,
|
|
705
705
|
datasetLabel: oe,
|
|
706
706
|
matchingKey: Xa(oe)
|
|
@@ -711,25 +711,25 @@ function Io(e, t, n, o, l, a, r, c) {
|
|
|
711
711
|
}
|
|
712
712
|
v.push(h);
|
|
713
713
|
});
|
|
714
|
-
const
|
|
714
|
+
const L = v.slice(0, o), S = /* @__PURE__ */ new Map();
|
|
715
715
|
y.forEach((A) => {
|
|
716
|
-
const
|
|
717
|
-
if (!
|
|
718
|
-
|
|
716
|
+
const E = S.get(A.matchingKey);
|
|
717
|
+
if (!E) {
|
|
718
|
+
S.set(A.matchingKey, [A]);
|
|
719
719
|
return;
|
|
720
720
|
}
|
|
721
|
-
|
|
721
|
+
E.push(A);
|
|
722
722
|
});
|
|
723
|
-
const
|
|
724
|
-
const
|
|
725
|
-
return !
|
|
726
|
-
}) : [],
|
|
727
|
-
const
|
|
728
|
-
return `<div style="${ba}"><span style="${
|
|
723
|
+
const B = x ? L.map((A) => {
|
|
724
|
+
const E = S.get(A.matchingKey);
|
|
725
|
+
return !E || E.length === 0 ? Jn(A) : E.shift() ?? Jn(A);
|
|
726
|
+
}) : [], F = v.length > L.length || y.length > B.length, R = (A, E = !1) => `<div style="${er(E)}">${Tn(A)}</div>`, V = (A) => {
|
|
727
|
+
const E = tr(A.isBar, A.color);
|
|
728
|
+
return `<div style="${ba}"><span style="${E}"></span><span style="${Ca}">${Tn(A.text)}</span></div>`;
|
|
729
729
|
};
|
|
730
|
-
let
|
|
731
|
-
O.length > 0 && (
|
|
732
|
-
const
|
|
730
|
+
let C = "";
|
|
731
|
+
O.length > 0 && (C += R(O)), C += L.map((A) => V(A)).join(""), x && B.length > 0 && (C += R(x, C.length > 0), C += B.map((A) => V(A)).join("")), l && F && (C += nr(n));
|
|
732
|
+
const k = [
|
|
733
733
|
{
|
|
734
734
|
title: O,
|
|
735
735
|
values: v
|
|
@@ -740,9 +740,9 @@ function Io(e, t, n, o, l, a, r, c) {
|
|
|
740
740
|
}
|
|
741
741
|
].filter((A) => A.values.length > 0);
|
|
742
742
|
return {
|
|
743
|
-
html:
|
|
744
|
-
detailsPayload: { sections:
|
|
745
|
-
hasCollapsedValues:
|
|
743
|
+
html: C,
|
|
744
|
+
detailsPayload: { sections: k },
|
|
745
|
+
hasCollapsedValues: F
|
|
746
746
|
};
|
|
747
747
|
}
|
|
748
748
|
function Zn(e) {
|
|
@@ -778,7 +778,7 @@ function or(e, t, n, o, l, a, r, c, u) {
|
|
|
778
778
|
maxTooltipItems: l
|
|
779
779
|
};
|
|
780
780
|
const f = Math.max(kn, t.length);
|
|
781
|
-
let
|
|
781
|
+
let P = f, O = Jt(
|
|
782
782
|
e,
|
|
783
783
|
t,
|
|
784
784
|
n,
|
|
@@ -796,36 +796,36 @@ function or(e, t, n, o, l, a, r, c, u) {
|
|
|
796
796
|
};
|
|
797
797
|
let x = kn, v = f;
|
|
798
798
|
for (; x <= v; ) {
|
|
799
|
-
const
|
|
799
|
+
const _ = Math.floor((x + v) / 2), L = Jt(
|
|
800
800
|
e,
|
|
801
801
|
t,
|
|
802
802
|
n,
|
|
803
803
|
o,
|
|
804
|
-
|
|
804
|
+
_,
|
|
805
805
|
a,
|
|
806
806
|
r,
|
|
807
807
|
c,
|
|
808
808
|
u
|
|
809
809
|
);
|
|
810
810
|
if (Zn(e)) {
|
|
811
|
-
v =
|
|
811
|
+
v = _ - 1;
|
|
812
812
|
continue;
|
|
813
813
|
}
|
|
814
|
-
|
|
814
|
+
P = _, O = L, x = _ + 1;
|
|
815
815
|
}
|
|
816
816
|
return {
|
|
817
|
-
markup:
|
|
817
|
+
markup: P === f ? O : Jt(
|
|
818
818
|
e,
|
|
819
819
|
t,
|
|
820
820
|
n,
|
|
821
821
|
o,
|
|
822
|
-
|
|
822
|
+
P,
|
|
823
823
|
a,
|
|
824
824
|
r,
|
|
825
825
|
c,
|
|
826
826
|
u
|
|
827
827
|
),
|
|
828
|
-
maxTooltipItems:
|
|
828
|
+
maxTooltipItems: P
|
|
829
829
|
};
|
|
830
830
|
}
|
|
831
831
|
function Qn(e, t) {
|
|
@@ -833,8 +833,8 @@ function Qn(e, t) {
|
|
|
833
833
|
if (o.startsWith("#")) {
|
|
834
834
|
const r = o.slice(1), c = r.length === 3 ? `${r[0]}${r[0]}${r[1]}${r[1]}${r[2]}${r[2]}` : r.length === 4 ? `${r[0]}${r[0]}${r[1]}${r[1]}${r[2]}${r[2]}` : r.length >= 6 ? r.slice(0, 6) : "";
|
|
835
835
|
if (/^[0-9a-fA-F]{6}$/.test(c)) {
|
|
836
|
-
const u = Number.parseInt(c.slice(0, 2), 16), f = Number.parseInt(c.slice(2, 4), 16),
|
|
837
|
-
return `rgba(${u}, ${f}, ${
|
|
836
|
+
const u = Number.parseInt(c.slice(0, 2), 16), f = Number.parseInt(c.slice(2, 4), 16), P = Number.parseInt(c.slice(4, 6), 16);
|
|
837
|
+
return `rgba(${u}, ${f}, ${P}, ${n})`;
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
840
|
const l = o.match(/^rgba?\(([^)]+)\)$/i);
|
|
@@ -939,16 +939,16 @@ function Fn(e) {
|
|
|
939
939
|
return window.getComputedStyle(t).position === "static" && (t.style.position = "relative"), t;
|
|
940
940
|
}
|
|
941
941
|
function Rn(e, t, n, o, l, a, r = "center", c = !1) {
|
|
942
|
-
const u = t.getBoundingClientRect(), f = n.getBoundingClientRect(),
|
|
942
|
+
const u = t.getBoundingClientRect(), f = n.getBoundingClientRect(), P = n.scrollLeft, O = n.scrollTop, x = n.clientWidth, v = n.clientHeight, y = e;
|
|
943
943
|
(!Number.isFinite(y.__cachedWidth) || !Number.isFinite(y.__cachedHeight) || y.__measurementHostWidth !== x || y.__measurementHostHeight !== v) && (y.__cachedWidth = e.offsetWidth, y.__cachedHeight = e.offsetHeight, y.__measurementHostWidth = x, y.__measurementHostHeight = v);
|
|
944
|
-
const
|
|
945
|
-
let
|
|
944
|
+
const L = y.__cachedWidth ?? e.offsetWidth, S = y.__cachedHeight ?? e.offsetHeight, B = 8, F = u.left - f.left + P + o, R = u.top - f.top + O + l, V = c ? r === "left" ? F - L - B : F + B : r === "left" ? F - L - B : r === "right" ? F + B : F - L / 2, C = c ? R + B : a ? R - S / 2 : R + B, k = P + B;
|
|
945
|
+
let D = O + B;
|
|
946
946
|
const A = document.querySelector('[data-menu-tab="true"]');
|
|
947
947
|
if (A) {
|
|
948
|
-
const h = A.getBoundingClientRect().bottom - f.top + O +
|
|
949
|
-
|
|
948
|
+
const h = A.getBoundingClientRect().bottom - f.top + O + B;
|
|
949
|
+
D = Math.max(D, h);
|
|
950
950
|
}
|
|
951
|
-
const
|
|
951
|
+
const E = Math.max(k, P + x - L - B), Q = Math.max(D, O + v - S - B), oe = Math.round(Math.min(Math.max(k, V), E)), j = Math.round(Math.min(Math.max(D, C), Q));
|
|
952
952
|
y.__lastLeftPx === oe && y.__lastTopPx === j || (y.__lastLeftPx = oe, y.__lastTopPx = j, e.style.left = `${oe}px`, e.style.top = `${j}px`);
|
|
953
953
|
}
|
|
954
954
|
function Bo(e) {
|
|
@@ -1074,33 +1074,33 @@ function vr(e, t, n, o, l) {
|
|
|
1074
1074
|
}, t.addEventListener("pointerleave", e.__onCanvasPointerLeave, {
|
|
1075
1075
|
passive: !0
|
|
1076
1076
|
})), e.__onCanvasClick || (e.__onCanvasClick = (r) => {
|
|
1077
|
-
var
|
|
1077
|
+
var L, S;
|
|
1078
1078
|
if (ut() || !(l != null && l.onViewFullDetails) || !e.__detailsPayload || e.style.opacity !== "1")
|
|
1079
1079
|
return;
|
|
1080
|
-
const c = (
|
|
1081
|
-
var
|
|
1082
|
-
if (
|
|
1080
|
+
const c = (B) => {
|
|
1081
|
+
var k, D, A, E;
|
|
1082
|
+
if (B.length === 0)
|
|
1083
1083
|
return !1;
|
|
1084
|
-
const
|
|
1084
|
+
const F = (k = B.find(
|
|
1085
1085
|
(Q) => typeof Q.dataIndex == "number"
|
|
1086
|
-
)) == null ? void 0 :
|
|
1087
|
-
|
|
1086
|
+
)) == null ? void 0 : k.dataIndex, R = ((D = n == null ? void 0 : n.data) == null ? void 0 : D.datasets) ?? [], V = (A = n == null ? void 0 : n.config) == null ? void 0 : A.type, C = Io(
|
|
1087
|
+
B,
|
|
1088
1088
|
o,
|
|
1089
1089
|
(l == null ? void 0 : l.viewFullDetailsLabel) ?? To(),
|
|
1090
1090
|
a,
|
|
1091
1091
|
!0,
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1092
|
+
R,
|
|
1093
|
+
F,
|
|
1094
|
+
V
|
|
1095
1095
|
).detailsPayload;
|
|
1096
|
-
return (
|
|
1097
|
-
}, u = ((
|
|
1096
|
+
return (E = l.onViewFullDetails) == null || E.call(l, C, n), ze(e, n), !0;
|
|
1097
|
+
}, u = ((L = n == null ? void 0 : n.tooltip) == null ? void 0 : L.dataPoints) ?? [];
|
|
1098
1098
|
if (c(u))
|
|
1099
1099
|
return;
|
|
1100
1100
|
const f = n == null ? void 0 : n.getElementsAtEventForMode;
|
|
1101
1101
|
if (typeof f != "function")
|
|
1102
1102
|
return;
|
|
1103
|
-
const
|
|
1103
|
+
const P = f.call(
|
|
1104
1104
|
n,
|
|
1105
1105
|
r,
|
|
1106
1106
|
"nearest",
|
|
@@ -1112,7 +1112,7 @@ function vr(e, t, n, o, l) {
|
|
|
1112
1112
|
"index",
|
|
1113
1113
|
{ intersect: !1 },
|
|
1114
1114
|
!1
|
|
1115
|
-
), v = (
|
|
1115
|
+
), v = (P.length > 0 ? P : O).filter((B) => typeof B.datasetIndex == "number" && typeof B.index == "number").map((B) => ({ datasetIndex: B.datasetIndex, index: B.index }));
|
|
1116
1116
|
if (v.length === 0)
|
|
1117
1117
|
return;
|
|
1118
1118
|
const y = n == null ? void 0 : n.tooltip;
|
|
@@ -1127,8 +1127,8 @@ function vr(e, t, n, o, l) {
|
|
|
1127
1127
|
} catch {
|
|
1128
1128
|
return;
|
|
1129
1129
|
}
|
|
1130
|
-
const
|
|
1131
|
-
c(
|
|
1130
|
+
const _ = ((S = n == null ? void 0 : n.tooltip) == null ? void 0 : S.dataPoints) ?? [];
|
|
1131
|
+
c(_);
|
|
1132
1132
|
}, t.addEventListener("click", e.__onCanvasClick)), e.__onCanvasPointerUp || (e.__onCanvasPointerUp = (r) => {
|
|
1133
1133
|
if (ut()) {
|
|
1134
1134
|
const c = n == null ? void 0 : n.getElementsAtEventForMode, u = n == null ? void 0 : n.tooltip;
|
|
@@ -1140,15 +1140,15 @@ function vr(e, t, n, o, l) {
|
|
|
1140
1140
|
"nearest",
|
|
1141
1141
|
{ intersect: !0 },
|
|
1142
1142
|
!1
|
|
1143
|
-
),
|
|
1143
|
+
), P = c.call(
|
|
1144
1144
|
n,
|
|
1145
1145
|
r,
|
|
1146
1146
|
"index",
|
|
1147
1147
|
{ intersect: !1 },
|
|
1148
1148
|
!1
|
|
1149
|
-
), x = (f.length > 0 ? f :
|
|
1150
|
-
datasetIndex:
|
|
1151
|
-
index:
|
|
1149
|
+
), x = (f.length > 0 ? f : P).filter((S) => typeof S.datasetIndex == "number" && typeof S.index == "number").map((S) => ({
|
|
1150
|
+
datasetIndex: S.datasetIndex,
|
|
1151
|
+
index: S.index
|
|
1152
1152
|
}));
|
|
1153
1153
|
if (x.length === 0) {
|
|
1154
1154
|
ze(e, n, !0);
|
|
@@ -1158,8 +1158,8 @@ function vr(e, t, n, o, l) {
|
|
|
1158
1158
|
e,
|
|
1159
1159
|
v.datasetIndex,
|
|
1160
1160
|
v.index
|
|
1161
|
-
),
|
|
1162
|
-
if (
|
|
1161
|
+
), _ = Number.isFinite(e.__lastPhoneTapAt), L = y && Qa(e, r.offsetX, r.offsetY, r.timeStamp);
|
|
1162
|
+
if (_ && !L && y) {
|
|
1163
1163
|
ze(e, n, !0);
|
|
1164
1164
|
return;
|
|
1165
1165
|
}
|
|
@@ -1172,7 +1172,7 @@ function vr(e, t, n, o, l) {
|
|
|
1172
1172
|
} catch {
|
|
1173
1173
|
return;
|
|
1174
1174
|
}
|
|
1175
|
-
if (
|
|
1175
|
+
if (L && (l != null && l.onViewFullDetails) && e.__detailsPayload) {
|
|
1176
1176
|
l.onViewFullDetails(e.__detailsPayload, n), ze(e, n);
|
|
1177
1177
|
return;
|
|
1178
1178
|
}
|
|
@@ -1227,7 +1227,7 @@ function yr(e, t, n) {
|
|
|
1227
1227
|
function br(e, t) {
|
|
1228
1228
|
const { maxTooltipItems: n } = Do(t);
|
|
1229
1229
|
return ({ chart: o, tooltip: l }) => {
|
|
1230
|
-
var oe, j,
|
|
1230
|
+
var oe, j, T, h;
|
|
1231
1231
|
if (typeof document > "u" || typeof window > "u")
|
|
1232
1232
|
return;
|
|
1233
1233
|
const a = o == null ? void 0 : o.canvas;
|
|
@@ -1249,44 +1249,44 @@ function br(e, t) {
|
|
|
1249
1249
|
return;
|
|
1250
1250
|
}
|
|
1251
1251
|
hr(r, c, a), St(u);
|
|
1252
|
-
const
|
|
1253
|
-
markup: { detailsPayload:
|
|
1252
|
+
const P = (t == null ? void 0 : t.viewFullDetailsLabel) ?? To(), O = !!(t != null && t.onViewFullDetails), x = (oe = f.find((p) => typeof p.dataIndex == "number")) == null ? void 0 : oe.dataIndex, v = ((j = o == null ? void 0 : o.data) == null ? void 0 : j.datasets) ?? [], y = (T = o == null ? void 0 : o.config) == null ? void 0 : T.type, {
|
|
1253
|
+
markup: { detailsPayload: _, hasCollapsedValues: L }
|
|
1254
1254
|
} = or(
|
|
1255
1255
|
u,
|
|
1256
1256
|
f,
|
|
1257
1257
|
e,
|
|
1258
|
-
|
|
1258
|
+
P,
|
|
1259
1259
|
n,
|
|
1260
1260
|
O,
|
|
1261
1261
|
v,
|
|
1262
1262
|
x,
|
|
1263
1263
|
y
|
|
1264
|
-
),
|
|
1265
|
-
u.__detailsPayload =
|
|
1266
|
-
const
|
|
1267
|
-
if (!(Number.isFinite(
|
|
1264
|
+
), S = O && L;
|
|
1265
|
+
u.__detailsPayload = S ? _ : void 0, u.style.pointerEvents = S ? "auto" : "none";
|
|
1266
|
+
const B = typeof (l == null ? void 0 : l.caretX) == "number" ? l.caretX : 0, F = Number(u.dataset.cursorCanvasX), R = Number(u.dataset.cursorCanvasY);
|
|
1267
|
+
if (!(Number.isFinite(F) && Number.isFinite(R))) {
|
|
1268
1268
|
u.style.opacity = "0";
|
|
1269
1269
|
return;
|
|
1270
1270
|
}
|
|
1271
|
-
const
|
|
1272
|
-
const
|
|
1273
|
-
if (typeof
|
|
1271
|
+
const C = (h = o == null ? void 0 : o.scales) == null ? void 0 : h.x, k = C && typeof C.getPixelForValue == "function" ? C.getPixelForValue(0) : NaN, D = e ? f.reduce((p, M) => {
|
|
1272
|
+
const z = M == null ? void 0 : M.element, N = z == null ? void 0 : z.x;
|
|
1273
|
+
if (typeof N != "number" || !Number.isFinite(N))
|
|
1274
1274
|
return p;
|
|
1275
1275
|
if (!Number.isFinite(p))
|
|
1276
|
-
return
|
|
1277
|
-
const K = Number.isFinite(
|
|
1278
|
-
return Math.abs(
|
|
1279
|
-
}, Number.NaN) : Number.NaN, A =
|
|
1276
|
+
return N;
|
|
1277
|
+
const K = Number.isFinite(k) ? k : B, H = Math.abs(p - K);
|
|
1278
|
+
return Math.abs(N - K) > H ? N : p;
|
|
1279
|
+
}, Number.NaN) : Number.NaN, A = F, E = R, Q = e ? Number.isFinite(k) && Number.isFinite(D) && D < k ? "left" : "right" : "center";
|
|
1280
1280
|
Rn(
|
|
1281
1281
|
u,
|
|
1282
1282
|
a,
|
|
1283
1283
|
r,
|
|
1284
1284
|
A,
|
|
1285
|
-
|
|
1285
|
+
E,
|
|
1286
1286
|
e,
|
|
1287
1287
|
Q,
|
|
1288
1288
|
!0
|
|
1289
|
-
), u.dataset.caretX = String(A), u.dataset.caretY = String(
|
|
1289
|
+
), u.dataset.caretX = String(A), u.dataset.caretY = String(E), u.dataset.anchorDirection = Q, u.style.opacity = "1";
|
|
1290
1290
|
};
|
|
1291
1291
|
}
|
|
1292
1292
|
function Dn(e = !1, t) {
|
|
@@ -1314,13 +1314,13 @@ function Cr() {
|
|
|
1314
1314
|
function Ao(e) {
|
|
1315
1315
|
function o(x, v, y) {
|
|
1316
1316
|
if (x.measureText(v).width <= y) return v;
|
|
1317
|
-
const
|
|
1318
|
-
let
|
|
1319
|
-
for (;
|
|
1320
|
-
const
|
|
1321
|
-
x.measureText(
|
|
1317
|
+
const _ = "…";
|
|
1318
|
+
let L = 0, S = v.length;
|
|
1319
|
+
for (; L < S; ) {
|
|
1320
|
+
const B = Math.floor((L + S) / 2), F = v.slice(0, B) + _;
|
|
1321
|
+
x.measureText(F).width <= y ? L = B + 1 : S = B;
|
|
1322
1322
|
}
|
|
1323
|
-
return v.slice(0,
|
|
1323
|
+
return v.slice(0, L - 1) + _;
|
|
1324
1324
|
}
|
|
1325
1325
|
function l(x) {
|
|
1326
1326
|
const v = x == null ? "" : String(x), [y] = v.split("#");
|
|
@@ -1333,8 +1333,8 @@ function Ao(e) {
|
|
|
1333
1333
|
function r(x, v) {
|
|
1334
1334
|
const y = x == null ? "" : String(x).trim();
|
|
1335
1335
|
if (y.length === 0) return y;
|
|
1336
|
-
const
|
|
1337
|
-
return y.endsWith(` ${
|
|
1336
|
+
const _ = Cr();
|
|
1337
|
+
return y.endsWith(` ${_}`) || y.endsWith(_) ? y : (v == null ? void 0 : v.dash) === !0 || (v == null ? void 0 : v.isCompare) === !0 ? `${y} ${_}` : y;
|
|
1338
1338
|
}
|
|
1339
1339
|
const c = g(() => ({
|
|
1340
1340
|
display: e.showLabel,
|
|
@@ -1362,15 +1362,15 @@ function Ao(e) {
|
|
|
1362
1362
|
callback: function(x) {
|
|
1363
1363
|
if ((e == null ? void 0 : e.isTransposed) === !0) return a(x);
|
|
1364
1364
|
let y = String(x);
|
|
1365
|
-
const
|
|
1366
|
-
if (
|
|
1365
|
+
const _ = this;
|
|
1366
|
+
if (_ && typeof _.getLabelForValue == "function" && (y = _.getLabelForValue(x)), _ != null && _.type && _.type !== "category")
|
|
1367
1367
|
return a(y);
|
|
1368
1368
|
y = l(y);
|
|
1369
|
-
const
|
|
1370
|
-
if (
|
|
1371
|
-
|
|
1372
|
-
const
|
|
1373
|
-
return
|
|
1369
|
+
const L = _ == null ? void 0 : _.chart, S = _ == null ? void 0 : _.ctx, B = L.height * 0.25;
|
|
1370
|
+
if (S && B > 0) {
|
|
1371
|
+
S.save();
|
|
1372
|
+
const R = S.measureText(y).width > B ? o(S, y, B) : y;
|
|
1373
|
+
return S.restore(), R;
|
|
1374
1374
|
}
|
|
1375
1375
|
return y;
|
|
1376
1376
|
},
|
|
@@ -1388,8 +1388,8 @@ function Ao(e) {
|
|
|
1388
1388
|
afterBuildTicks: (x) => {
|
|
1389
1389
|
const v = Array.isArray(x == null ? void 0 : x.ticks) ? x.ticks : [];
|
|
1390
1390
|
if (v.length === 0) return;
|
|
1391
|
-
const y = l(x.getLabelForValue(v[0].value)),
|
|
1392
|
-
x.options.ticks.minRotation =
|
|
1391
|
+
const y = l(x.getLabelForValue(v[0].value)), _ = !isNaN(Number(y));
|
|
1392
|
+
x.options.ticks.minRotation = _ || v.length < 10 ? 0 : 90;
|
|
1393
1393
|
},
|
|
1394
1394
|
afterFit: (x) => {
|
|
1395
1395
|
if (!(e != null && e.isTransposed)) {
|
|
@@ -1412,15 +1412,15 @@ function Ao(e) {
|
|
|
1412
1412
|
callback: function(x) {
|
|
1413
1413
|
if (!((e == null ? void 0 : e.isTransposed) === !0)) return a(x);
|
|
1414
1414
|
let y = String(x);
|
|
1415
|
-
const
|
|
1416
|
-
if (
|
|
1415
|
+
const _ = this;
|
|
1416
|
+
if (_ && typeof _.getLabelForValue == "function" && (y = _.getLabelForValue(x)), _ != null && _.type && _.type !== "category")
|
|
1417
1417
|
return a(y);
|
|
1418
1418
|
y = l(y);
|
|
1419
|
-
const
|
|
1420
|
-
if (
|
|
1421
|
-
|
|
1422
|
-
const
|
|
1423
|
-
return
|
|
1419
|
+
const L = _ == null ? void 0 : _.chart, S = _ == null ? void 0 : _.ctx, B = L.width * 0.4;
|
|
1420
|
+
if (S && B > 0) {
|
|
1421
|
+
S.save();
|
|
1422
|
+
const R = S.measureText(y).width > B ? o(S, y, B) : y;
|
|
1423
|
+
return S.restore(), R;
|
|
1424
1424
|
}
|
|
1425
1425
|
return y;
|
|
1426
1426
|
}
|
|
@@ -1432,7 +1432,7 @@ function Ao(e) {
|
|
|
1432
1432
|
size: e.yTitleFontSize
|
|
1433
1433
|
}
|
|
1434
1434
|
}
|
|
1435
|
-
})),
|
|
1435
|
+
})), P = g(() => ({
|
|
1436
1436
|
display: e.showLegend,
|
|
1437
1437
|
position: e.legendPosition,
|
|
1438
1438
|
usePointStyle: e.usePointStyle,
|
|
@@ -1444,41 +1444,41 @@ function Ao(e) {
|
|
|
1444
1444
|
size: e.legendFontSize
|
|
1445
1445
|
},
|
|
1446
1446
|
generateLabels: (x) => {
|
|
1447
|
-
var
|
|
1448
|
-
const v = e.legendColor ?? "#6b6b6b", y = ((
|
|
1447
|
+
var _;
|
|
1448
|
+
const v = e.legendColor ?? "#6b6b6b", y = ((_ = x == null ? void 0 : x.data) == null ? void 0 : _.datasets) || [];
|
|
1449
1449
|
if (y.length === 0) return [];
|
|
1450
1450
|
if (y.length === 1 && Array.isArray(y[0].backgroundColor) && y[0].backgroundColor.length > 1 && Array.isArray(y[0].data)) {
|
|
1451
|
-
const
|
|
1452
|
-
return x.data.labels.map((
|
|
1453
|
-
const
|
|
1451
|
+
const L = y[0];
|
|
1452
|
+
return x.data.labels.map((B, F) => {
|
|
1453
|
+
const R = L.backgroundColor[F];
|
|
1454
1454
|
return {
|
|
1455
|
-
text:
|
|
1455
|
+
text: B,
|
|
1456
1456
|
fontColor: v,
|
|
1457
1457
|
color: v,
|
|
1458
|
-
fillStyle:
|
|
1459
|
-
strokeStyle:
|
|
1458
|
+
fillStyle: R,
|
|
1459
|
+
strokeStyle: R,
|
|
1460
1460
|
datasetIndex: 0,
|
|
1461
|
-
index:
|
|
1462
|
-
hidden: x.getDataVisibility ? !x.getDataVisibility(
|
|
1461
|
+
index: F,
|
|
1462
|
+
hidden: x.getDataVisibility ? !x.getDataVisibility(F) : !1
|
|
1463
1463
|
};
|
|
1464
1464
|
});
|
|
1465
1465
|
}
|
|
1466
|
-
return x.data.datasets.map((
|
|
1467
|
-
const
|
|
1466
|
+
return x.data.datasets.map((L, S) => {
|
|
1467
|
+
const B = L.borderColor || L.backgroundColor;
|
|
1468
1468
|
return {
|
|
1469
|
-
text: r(
|
|
1469
|
+
text: r(L.label, L),
|
|
1470
1470
|
fontColor: v,
|
|
1471
1471
|
color: v,
|
|
1472
|
-
fillStyle:
|
|
1473
|
-
strokeStyle:
|
|
1474
|
-
datasetIndex:
|
|
1475
|
-
hidden: !x.isDatasetVisible(
|
|
1472
|
+
fillStyle: B,
|
|
1473
|
+
strokeStyle: B,
|
|
1474
|
+
datasetIndex: S,
|
|
1475
|
+
hidden: !x.isDatasetVisible(S)
|
|
1476
1476
|
};
|
|
1477
1477
|
});
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
1480
|
})), O = g(() => e.isTransposed);
|
|
1481
|
-
return { datalabels: c, xCfg: u, yCfg: f, isTransposed: O, legend:
|
|
1481
|
+
return { datalabels: c, xCfg: u, yCfg: f, isTransposed: O, legend: P };
|
|
1482
1482
|
}
|
|
1483
1483
|
const xr = {
|
|
1484
1484
|
key: 0,
|
|
@@ -1497,100 +1497,100 @@ const xr = {
|
|
|
1497
1497
|
},
|
|
1498
1498
|
emits: ["update:modelValue", "value-hover", "value-leave"],
|
|
1499
1499
|
setup(e, { emit: t }) {
|
|
1500
|
-
const n = e, o = t, { t: l } = dt(), a =
|
|
1500
|
+
const n = e, o = t, { t: l } = dt(), a = I(null), r = I(ao), c = I(!1), u = I({}), f = g({
|
|
1501
1501
|
get: () => n.modelValue,
|
|
1502
|
-
set: (
|
|
1503
|
-
}),
|
|
1504
|
-
var
|
|
1505
|
-
return (((
|
|
1502
|
+
set: (T) => o("update:modelValue", T)
|
|
1503
|
+
}), P = g(() => {
|
|
1504
|
+
var T;
|
|
1505
|
+
return (((T = n.detailsPayload) == null ? void 0 : T.sections) ?? []).filter((h) => h.values.length > 0);
|
|
1506
1506
|
}), O = g(
|
|
1507
|
-
() =>
|
|
1508
|
-
const p =
|
|
1507
|
+
() => P.value.map((T, h) => {
|
|
1508
|
+
const p = S(T.title, h), M = Math.min(u.value[p] ?? Qt, T.values.length);
|
|
1509
1509
|
return {
|
|
1510
|
-
...
|
|
1510
|
+
...T,
|
|
1511
1511
|
key: p,
|
|
1512
|
-
visibleValues:
|
|
1513
|
-
hasMore: M <
|
|
1514
|
-
remainingCount:
|
|
1512
|
+
visibleValues: T.values.slice(0, M),
|
|
1513
|
+
hasMore: M < T.values.length,
|
|
1514
|
+
remainingCount: T.values.length - M
|
|
1515
1515
|
};
|
|
1516
1516
|
})
|
|
1517
1517
|
), x = g(() => ({
|
|
1518
1518
|
width: `${r.value}px`,
|
|
1519
1519
|
maxWidth: "94vw"
|
|
1520
1520
|
}));
|
|
1521
|
-
function v(
|
|
1522
|
-
return
|
|
1521
|
+
function v(T) {
|
|
1522
|
+
return T.value == null || T.value === "" ? "-" : typeof T.value == "number" ? Number.isFinite(T.value) ? T.value.toLocaleString() : "-" : String(T.value);
|
|
1523
1523
|
}
|
|
1524
|
-
function y(
|
|
1525
|
-
const h =
|
|
1524
|
+
function y(T) {
|
|
1525
|
+
const h = T.text ?? "", p = h.lastIndexOf(":");
|
|
1526
1526
|
return p > -1 ? h.slice(0, p).trim() : h;
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1529
|
-
o("value-hover",
|
|
1528
|
+
function _(T) {
|
|
1529
|
+
o("value-hover", T);
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function L() {
|
|
1532
1532
|
o("value-leave");
|
|
1533
1533
|
}
|
|
1534
|
-
function
|
|
1535
|
-
return `${
|
|
1534
|
+
function S(T, h) {
|
|
1535
|
+
return `${T || "section"}-${h}`;
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1538
|
-
u.value =
|
|
1539
|
-
(
|
|
1537
|
+
function B() {
|
|
1538
|
+
u.value = P.value.reduce(
|
|
1539
|
+
(T, h, p) => (T[S(h.title, p)] = Qt, T),
|
|
1540
1540
|
{}
|
|
1541
1541
|
);
|
|
1542
1542
|
}
|
|
1543
|
-
function
|
|
1543
|
+
function F(T) {
|
|
1544
1544
|
u.value = {
|
|
1545
1545
|
...u.value,
|
|
1546
|
-
[
|
|
1546
|
+
[T]: (u.value[T] ?? Qt) + Qt
|
|
1547
1547
|
};
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1550
|
-
|
|
1549
|
+
function R() {
|
|
1550
|
+
L(), f.value = !1;
|
|
1551
1551
|
}
|
|
1552
|
-
function
|
|
1552
|
+
function V() {
|
|
1553
1553
|
return typeof window > "u" ? ao : Math.floor(window.innerWidth * 0.94);
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1556
|
-
const h =
|
|
1557
|
-
return Math.min(h, Math.max(p, Math.floor(
|
|
1555
|
+
function C(T) {
|
|
1556
|
+
const h = V(), p = Math.min(Mr, h);
|
|
1557
|
+
return Math.min(h, Math.max(p, Math.floor(T)));
|
|
1558
1558
|
}
|
|
1559
|
-
function T
|
|
1560
|
-
typeof window > "u" || (r.value =
|
|
1559
|
+
function k(T) {
|
|
1560
|
+
typeof window > "u" || (r.value = C(window.innerWidth - T));
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1563
|
-
c.value = !1, document.removeEventListener("pointermove", A), document.removeEventListener("pointerup",
|
|
1562
|
+
function D() {
|
|
1563
|
+
c.value = !1, document.removeEventListener("pointermove", A), document.removeEventListener("pointerup", D), document.removeEventListener("pointercancel", D);
|
|
1564
1564
|
}
|
|
1565
|
-
function A(
|
|
1566
|
-
c.value && T
|
|
1565
|
+
function A(T) {
|
|
1566
|
+
c.value && k(T.clientX);
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1569
|
-
f.value && (c.value = !0, T
|
|
1568
|
+
function E(T) {
|
|
1569
|
+
f.value && (c.value = !0, k(T.clientX), document.addEventListener("pointermove", A), document.addEventListener("pointerup", D), document.addEventListener("pointercancel", D));
|
|
1570
1570
|
}
|
|
1571
1571
|
function Q() {
|
|
1572
|
-
r.value =
|
|
1572
|
+
r.value = C(r.value);
|
|
1573
1573
|
}
|
|
1574
|
-
function oe(
|
|
1574
|
+
function oe(T) {
|
|
1575
1575
|
var M;
|
|
1576
1576
|
if (!f.value)
|
|
1577
1577
|
return;
|
|
1578
|
-
const h =
|
|
1578
|
+
const h = T.target;
|
|
1579
1579
|
if (!(h instanceof Node))
|
|
1580
1580
|
return;
|
|
1581
1581
|
const p = h instanceof Element ? h : null;
|
|
1582
|
-
p != null && p.closest('[data-tooltip-full-details="true"]') || (M = a.value) != null && M.contains(h) ||
|
|
1582
|
+
p != null && p.closest('[data-tooltip-full-details="true"]') || (M = a.value) != null && M.contains(h) || R();
|
|
1583
1583
|
}
|
|
1584
|
-
function j(
|
|
1585
|
-
f.value &&
|
|
1584
|
+
function j(T) {
|
|
1585
|
+
f.value && T.key === "Escape" && R();
|
|
1586
1586
|
}
|
|
1587
|
-
return we([
|
|
1588
|
-
f.value &&
|
|
1587
|
+
return we([P, f], () => {
|
|
1588
|
+
f.value && B();
|
|
1589
1589
|
}), Nt(() => {
|
|
1590
|
-
r.value =
|
|
1590
|
+
r.value = C(r.value), B(), document.addEventListener("pointerdown", oe, !0), document.addEventListener("keydown", j), window.addEventListener("resize", Q);
|
|
1591
1591
|
}), uo(() => {
|
|
1592
|
-
|
|
1593
|
-
}), (
|
|
1592
|
+
D(), document.removeEventListener("pointerdown", oe, !0), document.removeEventListener("keydown", j), window.removeEventListener("resize", Q);
|
|
1593
|
+
}), (T, h) => {
|
|
1594
1594
|
const p = ce("FmButton");
|
|
1595
1595
|
return X(), de(Eo, {
|
|
1596
1596
|
"enter-active-class": "transform transition duration-200 ease-out",
|
|
@@ -1602,7 +1602,7 @@ const xr = {
|
|
|
1602
1602
|
}, {
|
|
1603
1603
|
default: _e(() => [
|
|
1604
1604
|
f.value ? (X(), le("div", xr, [
|
|
1605
|
-
|
|
1605
|
+
q("div", {
|
|
1606
1606
|
ref_key: "panelRef",
|
|
1607
1607
|
ref: a,
|
|
1608
1608
|
class: "glassmorphism pointer-events-auto relative ml-auto flex h-full flex-col px-24 py-3 overflow-hidden rounded-l-2xl border border-fm-color-border-secondary bg-fm-color-neutral-white duration-200 ease-out",
|
|
@@ -1611,51 +1611,51 @@ const xr = {
|
|
|
1611
1611
|
"aria-modal": "false",
|
|
1612
1612
|
"aria-label": i(l)("report.widget.comparisonTooltip.fullBreakdownTitle")
|
|
1613
1613
|
}, [
|
|
1614
|
-
|
|
1614
|
+
q("div", {
|
|
1615
1615
|
class: "absolute left-0 top-0 z-40 h-full w-3 -translate-x-1/2 cursor-ew-resize",
|
|
1616
|
-
onPointerdown: en(
|
|
1616
|
+
onPointerdown: en(E, ["prevent"])
|
|
1617
1617
|
}, null, 32),
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1618
|
+
q("div", _r, [
|
|
1619
|
+
q("div", Sr, Te(i(l)("report.widget.comparisonTooltip.fullBreakdownTitle")), 1),
|
|
1620
|
+
q("div", kr, [
|
|
1621
1621
|
fe(p, {
|
|
1622
1622
|
class: "relative z-30 h-9 w-9 shrink-0",
|
|
1623
1623
|
variant: "tertiary",
|
|
1624
1624
|
icon: "close",
|
|
1625
1625
|
"aria-label": i(l)("report.dynamic.common.close"),
|
|
1626
|
-
onClick:
|
|
1626
|
+
onClick: R
|
|
1627
1627
|
}, null, 8, ["aria-label"])
|
|
1628
1628
|
])
|
|
1629
1629
|
]),
|
|
1630
|
-
|
|
1630
|
+
q("div", {
|
|
1631
1631
|
class: "flex flex-1 flex-col gap-4 overflow-y-auto px-4 py-4 sm:px-5",
|
|
1632
|
-
onMouseleave:
|
|
1632
|
+
onMouseleave: L
|
|
1633
1633
|
}, [
|
|
1634
|
-
(X(!0), le(Fe, null, ct(O.value, (M,
|
|
1634
|
+
(X(!0), le(Fe, null, ct(O.value, (M, z) => (X(), le("div", {
|
|
1635
1635
|
key: M.key,
|
|
1636
1636
|
class: "flex flex-col gap-2 rounded-2xl bg-fm-color-neutral-white/45 py-3"
|
|
1637
1637
|
}, [
|
|
1638
1638
|
M.title ? (X(), le("p", Tr, Te(M.title), 1)) : he("", !0),
|
|
1639
|
-
(X(!0), le(Fe, null, ct(M.visibleValues, (
|
|
1640
|
-
key: `${
|
|
1639
|
+
(X(!0), le(Fe, null, ct(M.visibleValues, (N, K) => (X(), le("button", {
|
|
1640
|
+
key: `${N.text}-${K}`,
|
|
1641
1641
|
type: "button",
|
|
1642
1642
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary flex w-full items-start justify-between gap-3 bg-transparent px-2 py-1.5 text-left transition-colors hover:bg-fm-color-opacity-sm focus-visible:bg-fm-color-opacity-sm focus-visible:outline-none",
|
|
1643
|
-
onMouseenter: (H) =>
|
|
1644
|
-
onFocus: (H) =>
|
|
1645
|
-
onMouseleave:
|
|
1646
|
-
onBlur:
|
|
1643
|
+
onMouseenter: (H) => _(N),
|
|
1644
|
+
onFocus: (H) => _(N),
|
|
1645
|
+
onMouseleave: L,
|
|
1646
|
+
onBlur: L
|
|
1647
1647
|
}, [
|
|
1648
|
-
|
|
1649
|
-
|
|
1648
|
+
q("span", Dr, [
|
|
1649
|
+
q("span", {
|
|
1650
1650
|
class: Se([
|
|
1651
1651
|
"inline-block h-3 w-3 shrink-0 box-border",
|
|
1652
|
-
|
|
1652
|
+
N.isBar ? "rounded-sm border border-fm-color-neutral-gray-400" : "rounded-full border border-white shadow-[0_0_0_1px_rgba(17,24,39,0.28)]"
|
|
1653
1653
|
]),
|
|
1654
|
-
style: Pe({ backgroundColor:
|
|
1654
|
+
style: Pe({ backgroundColor: N.color })
|
|
1655
1655
|
}, null, 6),
|
|
1656
|
-
|
|
1656
|
+
q("span", Ir, Te(y(N)), 1)
|
|
1657
1657
|
]),
|
|
1658
|
-
|
|
1658
|
+
q("span", Pr, Te(v(N)), 1)
|
|
1659
1659
|
], 40, Lr))), 128)),
|
|
1660
1660
|
M.hasMore ? (X(), le("div", Br, [
|
|
1661
1661
|
fe(p, {
|
|
@@ -1663,7 +1663,7 @@ const xr = {
|
|
|
1663
1663
|
variant: "tertiary",
|
|
1664
1664
|
size: "sm",
|
|
1665
1665
|
label: `${i(l)("report.widget.legend.viewMore")} (${M.remainingCount})`,
|
|
1666
|
-
onClick: (
|
|
1666
|
+
onClick: (N) => F(M.key)
|
|
1667
1667
|
}, null, 8, ["label", "onClick"])
|
|
1668
1668
|
])) : he("", !0)
|
|
1669
1669
|
]))), 128))
|
|
@@ -1702,14 +1702,14 @@ const xr = {
|
|
|
1702
1702
|
},
|
|
1703
1703
|
emits: ["toggleDatasetVisibility", "toggleDataPointVisibility"],
|
|
1704
1704
|
setup(e, { emit: t }) {
|
|
1705
|
-
const n = e, o = t, { t: l, locale: a } = dt(), r =
|
|
1706
|
-
let
|
|
1707
|
-
const
|
|
1708
|
-
() => u.value && f.value &&
|
|
1705
|
+
const n = e, o = t, { t: l, locale: a } = dt(), r = I([]), c = I(0), u = I(!1), f = I(!1), P = I(0), O = I(null), x = I(null), v = I(null), y = I(null), _ = I(!1), L = I(0), S = I(0), B = I(!1), F = I(0), R = I(0), V = g(() => n.enabled !== !1), C = g(() => n.position === "left" || n.position === "right");
|
|
1706
|
+
let k = null;
|
|
1707
|
+
const D = g(
|
|
1708
|
+
() => u.value && f.value && _.value
|
|
1709
1709
|
), A = g(() => ({
|
|
1710
|
-
height: `${Math.max(0,
|
|
1711
|
-
transform: `translateY(${Math.max(0,
|
|
1712
|
-
})),
|
|
1710
|
+
height: `${Math.max(0, L.value)}px`,
|
|
1711
|
+
transform: `translateY(${Math.max(0, S.value)}px)`
|
|
1712
|
+
})), E = g(() => typeof n.textColor == "string" && n.textColor.trim().length > 0 ? n.textColor : "#6b6b6b"), Q = g(() => typeof n.fontSize == "number" && Number.isFinite(n.fontSize) && n.fontSize > 0 ? n.fontSize : 12);
|
|
1713
1713
|
function oe(s) {
|
|
1714
1714
|
j({ height: s, width: 0 });
|
|
1715
1715
|
}
|
|
@@ -1718,11 +1718,11 @@ const xr = {
|
|
|
1718
1718
|
const d = (W = n.chartRef) == null ? void 0 : W.$el;
|
|
1719
1719
|
if (!(d instanceof HTMLElement))
|
|
1720
1720
|
return;
|
|
1721
|
-
const
|
|
1722
|
-
d.style.getPropertyValue("--legend-panel-height") !==
|
|
1721
|
+
const b = `${Math.max(0, Math.floor(s))}px`, $ = `${Math.max(0, Math.floor(m))}px`;
|
|
1722
|
+
d.style.getPropertyValue("--legend-panel-height") !== b && d.style.setProperty("--legend-panel-height", b), d.style.getPropertyValue("--legend-panel-width") !== $ && d.style.setProperty("--legend-panel-width", $);
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1725
|
-
|
|
1724
|
+
function T() {
|
|
1725
|
+
k != null && (window.clearTimeout(k), k = null);
|
|
1726
1726
|
}
|
|
1727
1727
|
function h() {
|
|
1728
1728
|
const s = Po(
|
|
@@ -1731,13 +1731,13 @@ const xr = {
|
|
|
1731
1731
|
if (s)
|
|
1732
1732
|
return s;
|
|
1733
1733
|
const m = O.value, d = [m == null ? void 0 : m.parentElement, m == null ? void 0 : m.closest(".h-full"), m];
|
|
1734
|
-
for (const
|
|
1735
|
-
if (!(
|
|
1734
|
+
for (const b of d) {
|
|
1735
|
+
if (!(b instanceof HTMLElement))
|
|
1736
1736
|
continue;
|
|
1737
|
-
const
|
|
1738
|
-
if (!(
|
|
1737
|
+
const $ = b.querySelector("canvas");
|
|
1738
|
+
if (!($ instanceof HTMLCanvasElement))
|
|
1739
1739
|
continue;
|
|
1740
|
-
const W = bn.getChart(
|
|
1740
|
+
const W = bn.getChart($);
|
|
1741
1741
|
if (W)
|
|
1742
1742
|
return W;
|
|
1743
1743
|
}
|
|
@@ -1747,55 +1747,55 @@ const xr = {
|
|
|
1747
1747
|
M();
|
|
1748
1748
|
}
|
|
1749
1749
|
function M() {
|
|
1750
|
-
var
|
|
1751
|
-
const s = (
|
|
1750
|
+
var b;
|
|
1751
|
+
const s = (b = O.value) == null ? void 0 : b.getBoundingClientRect(), m = Number((s == null ? void 0 : s.height) ?? 0), d = Number((s == null ? void 0 : s.width) ?? 0);
|
|
1752
1752
|
if (Number.isFinite(m) && m >= 0) {
|
|
1753
1753
|
j({
|
|
1754
|
-
height:
|
|
1755
|
-
width:
|
|
1754
|
+
height: C.value ? 0 : m,
|
|
1755
|
+
width: C.value && Number.isFinite(d) && d >= 0 ? d : 0
|
|
1756
1756
|
});
|
|
1757
1757
|
return;
|
|
1758
1758
|
}
|
|
1759
1759
|
j({ height: 0, width: 0 });
|
|
1760
1760
|
}
|
|
1761
|
-
function
|
|
1761
|
+
function z() {
|
|
1762
1762
|
const s = v.value;
|
|
1763
1763
|
if (!s) {
|
|
1764
|
-
|
|
1764
|
+
_.value = !1, L.value = 0, S.value = 0;
|
|
1765
1765
|
return;
|
|
1766
1766
|
}
|
|
1767
|
-
const m = s.clientHeight, d = s.scrollHeight,
|
|
1768
|
-
if (
|
|
1769
|
-
|
|
1767
|
+
const m = s.clientHeight, d = s.scrollHeight, b = s.scrollTop, $ = d > m + 1;
|
|
1768
|
+
if (_.value = $, !$ || m <= 0) {
|
|
1769
|
+
L.value = 0, S.value = 0;
|
|
1770
1770
|
return;
|
|
1771
1771
|
}
|
|
1772
|
-
const W = m, Z = Math.max(18, Math.round(m / d * W)), ee = Math.max(0, W - Z), U = Math.max(1, d - m), ie = Math.round(
|
|
1773
|
-
|
|
1772
|
+
const W = m, Z = Math.max(18, Math.round(m / d * W)), ee = Math.max(0, W - Z), U = Math.max(1, d - m), ie = Math.round(b / U * ee);
|
|
1773
|
+
L.value = Z, S.value = ie;
|
|
1774
1774
|
}
|
|
1775
|
-
function
|
|
1776
|
-
|
|
1775
|
+
function N() {
|
|
1776
|
+
z();
|
|
1777
1777
|
}
|
|
1778
1778
|
function K(s) {
|
|
1779
1779
|
const m = v.value, d = x.value;
|
|
1780
|
-
if (!m || !d || !
|
|
1780
|
+
if (!m || !d || !_.value)
|
|
1781
1781
|
return;
|
|
1782
|
-
const
|
|
1783
|
-
m.scrollTop = ee * U,
|
|
1782
|
+
const b = d.getBoundingClientRect(), $ = s.clientY - b.top, W = Math.max(0, $ - L.value / 2), Z = Math.max(1, m.clientHeight - L.value), ee = Math.min(1, W / Z), U = Math.max(0, m.scrollHeight - m.clientHeight);
|
|
1783
|
+
m.scrollTop = ee * U, z();
|
|
1784
1784
|
}
|
|
1785
1785
|
function H(s) {
|
|
1786
|
-
|
|
1786
|
+
_.value && (B.value = !0, F.value = s.clientY, R.value = S.value);
|
|
1787
1787
|
}
|
|
1788
1788
|
function J(s) {
|
|
1789
|
-
if (!
|
|
1789
|
+
if (!B.value)
|
|
1790
1790
|
return;
|
|
1791
1791
|
const m = v.value;
|
|
1792
1792
|
if (!m)
|
|
1793
1793
|
return;
|
|
1794
|
-
const d = s.clientY -
|
|
1795
|
-
m.scrollTop = W * Z,
|
|
1794
|
+
const d = s.clientY - F.value, b = Math.max(1, m.clientHeight - L.value), W = Math.min(b, Math.max(0, R.value + d)) / b, Z = Math.max(0, m.scrollHeight - m.clientHeight);
|
|
1795
|
+
m.scrollTop = W * Z, z();
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1798
|
-
|
|
1797
|
+
function G() {
|
|
1798
|
+
B.value && (B.value = !1);
|
|
1799
1799
|
}
|
|
1800
1800
|
function ae() {
|
|
1801
1801
|
var m;
|
|
@@ -1803,25 +1803,25 @@ const xr = {
|
|
|
1803
1803
|
for (const d of s) {
|
|
1804
1804
|
if (!(d instanceof HTMLElement))
|
|
1805
1805
|
continue;
|
|
1806
|
-
const
|
|
1807
|
-
if (
|
|
1808
|
-
return
|
|
1806
|
+
const b = d.closest('[class*="fm-card"]');
|
|
1807
|
+
if (b)
|
|
1808
|
+
return b;
|
|
1809
1809
|
}
|
|
1810
1810
|
for (const d of s) {
|
|
1811
1811
|
if (!(d instanceof HTMLElement))
|
|
1812
1812
|
continue;
|
|
1813
|
-
const
|
|
1814
|
-
if (
|
|
1815
|
-
return
|
|
1813
|
+
const b = d.closest(".h-full") ?? d.parentElement;
|
|
1814
|
+
if (b)
|
|
1815
|
+
return b;
|
|
1816
1816
|
}
|
|
1817
1817
|
return null;
|
|
1818
1818
|
}
|
|
1819
1819
|
function me() {
|
|
1820
|
-
var d,
|
|
1821
|
-
const s = (
|
|
1820
|
+
var d, b, $, W;
|
|
1821
|
+
const s = (b = (d = O.value) == null ? void 0 : d.closest(".chart-layout")) == null ? void 0 : b.parentElement;
|
|
1822
1822
|
if (s instanceof HTMLElement)
|
|
1823
1823
|
return s;
|
|
1824
|
-
const m = (
|
|
1824
|
+
const m = ($ = n.chartRef) == null ? void 0 : $.$el;
|
|
1825
1825
|
if (m instanceof HTMLElement) {
|
|
1826
1826
|
const Z = (W = m.closest(".chart-layout")) == null ? void 0 : W.parentElement;
|
|
1827
1827
|
if (Z instanceof HTMLElement)
|
|
@@ -1830,8 +1830,8 @@ const xr = {
|
|
|
1830
1830
|
return null;
|
|
1831
1831
|
}
|
|
1832
1832
|
function ue() {
|
|
1833
|
-
var d,
|
|
1834
|
-
const s = ((d = O.value) == null ? void 0 : d.closest(".chart-layout")) ?? ((W = (
|
|
1833
|
+
var d, b, $, W;
|
|
1834
|
+
const s = ((d = O.value) == null ? void 0 : d.closest(".chart-layout")) ?? ((W = ($ = (b = n.chartRef) == null ? void 0 : b.$el) == null ? void 0 : $.closest) == null ? void 0 : W.call($, ".chart-layout")) ?? null;
|
|
1835
1835
|
if (!(s instanceof HTMLElement))
|
|
1836
1836
|
return null;
|
|
1837
1837
|
const m = Number(s.getBoundingClientRect().width);
|
|
@@ -1847,7 +1847,7 @@ const xr = {
|
|
|
1847
1847
|
const m = ae();
|
|
1848
1848
|
if (!m)
|
|
1849
1849
|
return null;
|
|
1850
|
-
const d = window.getComputedStyle(m),
|
|
1850
|
+
const d = window.getComputedStyle(m), b = parseFloat(d.paddingTop) || 0, $ = parseFloat(d.paddingBottom) || 0, W = m.getBoundingClientRect().height - b - $;
|
|
1851
1851
|
return Number.isFinite(W) && W > 0 ? W : null;
|
|
1852
1852
|
}
|
|
1853
1853
|
function ve() {
|
|
@@ -1860,22 +1860,22 @@ const xr = {
|
|
|
1860
1860
|
const m = ae();
|
|
1861
1861
|
if (!m)
|
|
1862
1862
|
return null;
|
|
1863
|
-
const d = window.getComputedStyle(m),
|
|
1863
|
+
const d = window.getComputedStyle(m), b = parseFloat(d.paddingLeft) || 0, $ = parseFloat(d.paddingRight) || 0, W = m.getBoundingClientRect().width - b - $;
|
|
1864
1864
|
return Number.isFinite(W) && W > 0 ? W : null;
|
|
1865
1865
|
}
|
|
1866
1866
|
function Ce() {
|
|
1867
1867
|
const s = h(), m = Number(s == null ? void 0 : s.height), d = re();
|
|
1868
|
-
if (
|
|
1868
|
+
if (C.value)
|
|
1869
1869
|
return Number.isFinite(m) && m > 0 ? Math.max(0, Math.floor(m - lo)) : d != null ? Math.max(0, Math.floor(d - lo)) : 120;
|
|
1870
1870
|
if (d != null) {
|
|
1871
|
-
const
|
|
1871
|
+
const b = d * 0.3, $ = d - $r, W = Math.min(b, $);
|
|
1872
1872
|
return Math.max(0, Math.floor(W));
|
|
1873
1873
|
}
|
|
1874
1874
|
return Number.isFinite(m) && m > 0 ? Math.max(0, Math.floor(m * 0.3)) : 120;
|
|
1875
1875
|
}
|
|
1876
1876
|
function Ne() {
|
|
1877
1877
|
var W;
|
|
1878
|
-
if (
|
|
1878
|
+
if (C.value) {
|
|
1879
1879
|
const Z = ve();
|
|
1880
1880
|
if (Z != null)
|
|
1881
1881
|
return Math.max(0, Math.floor(Z * 0.3));
|
|
@@ -1885,13 +1885,13 @@ const xr = {
|
|
|
1885
1885
|
const s = ue();
|
|
1886
1886
|
if (s != null)
|
|
1887
1887
|
return Math.max(0, Math.floor(s * 0.3));
|
|
1888
|
-
const m = h(), d = Number(m == null ? void 0 : m.width),
|
|
1888
|
+
const m = h(), d = Number(m == null ? void 0 : m.width), b = Number(((W = O.value) == null ? void 0 : W.getBoundingClientRect().width) ?? 0);
|
|
1889
1889
|
if (Number.isFinite(d) && d > 0) {
|
|
1890
|
-
const Z = d + (Number.isFinite(
|
|
1890
|
+
const Z = d + (Number.isFinite(b) ? b : 0);
|
|
1891
1891
|
return Math.max(0, Math.floor(Z * 0.3));
|
|
1892
1892
|
}
|
|
1893
|
-
const
|
|
1894
|
-
return
|
|
1893
|
+
const $ = ve();
|
|
1894
|
+
return $ != null ? Math.max(0, Math.floor($ * 0.3)) : 180;
|
|
1895
1895
|
}
|
|
1896
1896
|
function $e(s, m) {
|
|
1897
1897
|
const d = n.chartColorBinding;
|
|
@@ -1926,8 +1926,8 @@ const xr = {
|
|
|
1926
1926
|
const ee = typeof s.index == "number" ? s.index : W;
|
|
1927
1927
|
return Ye({ index: ee, customColors: n.chartColors });
|
|
1928
1928
|
}
|
|
1929
|
-
const
|
|
1930
|
-
return Le(s.fillStyle) || Le(s.strokeStyle) || Le(
|
|
1929
|
+
const b = s;
|
|
1930
|
+
return Le(s.fillStyle) || Le(s.strokeStyle) || Le(b.color) || "#9ca3af";
|
|
1931
1931
|
}
|
|
1932
1932
|
function Le(s) {
|
|
1933
1933
|
return typeof s == "string" && s.trim().length > 0 ? s : Array.isArray(s) ? s.map((d) => Le(d)).find((d) => typeof d == "string" && d.trim().length > 0) ?? "" : "";
|
|
@@ -1942,34 +1942,34 @@ const xr = {
|
|
|
1942
1942
|
if (s.length <= 1)
|
|
1943
1943
|
return s;
|
|
1944
1944
|
const m = Number.isInteger(n.metricCount) && Number(n.metricCount) > 0 ? Number(n.metricCount) : 1;
|
|
1945
|
-
return [...s.map((
|
|
1946
|
-
const W = typeof
|
|
1945
|
+
return [...s.map((b, $) => {
|
|
1946
|
+
const W = typeof b.datasetIndex == "number" ? b.datasetIndex : $, Z = _t({
|
|
1947
1947
|
fallbackIndex: W,
|
|
1948
1948
|
metricCount: m
|
|
1949
1949
|
});
|
|
1950
1950
|
return {
|
|
1951
|
-
item:
|
|
1952
|
-
originalIndex:
|
|
1951
|
+
item: b,
|
|
1952
|
+
originalIndex: $,
|
|
1953
1953
|
breakdownIndex: Z
|
|
1954
1954
|
};
|
|
1955
|
-
})].sort((
|
|
1955
|
+
})].sort((b, $) => b.breakdownIndex !== $.breakdownIndex ? b.breakdownIndex - $.breakdownIndex : b.originalIndex - $.originalIndex).map((b) => b.item);
|
|
1956
1956
|
}
|
|
1957
1957
|
function mt(s) {
|
|
1958
1958
|
if (s.length <= 1)
|
|
1959
1959
|
return s;
|
|
1960
1960
|
const m = /* @__PURE__ */ new Map(), d = [];
|
|
1961
|
-
for (const
|
|
1962
|
-
const
|
|
1961
|
+
for (const b of s) {
|
|
1962
|
+
const $ = typeof b.index == "number", W = b.datasetIndex, Z = typeof W == "number" && !$, ee = typeof b.text == "string" ? b.text.trim() : "";
|
|
1963
1963
|
if (!Z || !ee) {
|
|
1964
|
-
d.push(
|
|
1964
|
+
d.push(b);
|
|
1965
1965
|
continue;
|
|
1966
1966
|
}
|
|
1967
1967
|
const U = ee.toLowerCase(), ie = m.get(U);
|
|
1968
1968
|
if (ie == null) {
|
|
1969
1969
|
d.push({
|
|
1970
|
-
...
|
|
1970
|
+
...b,
|
|
1971
1971
|
datasetIndexes: [W],
|
|
1972
|
-
datasetKeys: typeof
|
|
1972
|
+
datasetKeys: typeof b.datasetKey == "string" && b.datasetKey.trim().length > 0 ? [b.datasetKey] : []
|
|
1973
1973
|
}), m.set(U, d.length - 1);
|
|
1974
1974
|
continue;
|
|
1975
1975
|
}
|
|
@@ -1983,11 +1983,11 @@ const xr = {
|
|
|
1983
1983
|
const ne = new Set(
|
|
1984
1984
|
Array.isArray(ge.datasetKeys) ? ge.datasetKeys : typeof ge.datasetKey == "string" && ge.datasetKey.trim().length > 0 ? [ge.datasetKey] : []
|
|
1985
1985
|
);
|
|
1986
|
-
typeof
|
|
1986
|
+
typeof b.datasetKey == "string" && b.datasetKey.trim().length > 0 && ne.add(b.datasetKey), d[ie] = {
|
|
1987
1987
|
...ge,
|
|
1988
1988
|
datasetIndexes: Array.from(te).sort((pe, ye) => pe - ye),
|
|
1989
1989
|
datasetKeys: Array.from(ne),
|
|
1990
|
-
hidden: ge.hidden === !0 &&
|
|
1990
|
+
hidden: ge.hidden === !0 && b.hidden === !0
|
|
1991
1991
|
};
|
|
1992
1992
|
}
|
|
1993
1993
|
return d;
|
|
@@ -2003,26 +2003,26 @@ const xr = {
|
|
|
2003
2003
|
const d = tt(m == null ? void 0 : m.legendItems);
|
|
2004
2004
|
if (d.length > 0)
|
|
2005
2005
|
return d;
|
|
2006
|
-
const
|
|
2006
|
+
const b = (ie = (U = s == null ? void 0 : s.options) == null ? void 0 : U.plugins) == null ? void 0 : ie.legend, $ = b == null ? void 0 : b.labels, W = $ == null ? void 0 : $.generateLabels, Z = (pe = (ne = (te = (ge = bn.defaults) == null ? void 0 : ge.plugins) == null ? void 0 : te.legend) == null ? void 0 : ne.labels) == null ? void 0 : pe.generateLabels;
|
|
2007
2007
|
let ee = tt(
|
|
2008
2008
|
typeof W == "function" ? W(s) : []
|
|
2009
2009
|
);
|
|
2010
|
-
return ee.length === 0 && typeof Z == "function" && (ee = tt(Z(s))), typeof (
|
|
2010
|
+
return ee.length === 0 && typeof Z == "function" && (ee = tt(Z(s))), typeof ($ == null ? void 0 : $.filter) == "function" && (ee = ee.filter((ye) => $.filter(ye, s.data))), typeof ($ == null ? void 0 : $.sort) == "function" && (ee = [...ee].sort((ye, Me) => $.sort(ye, Me, s.data))), (b == null ? void 0 : b.reverse) === !0 && (ee = [...ee].reverse()), ee;
|
|
2011
2011
|
}
|
|
2012
2012
|
function ht(s) {
|
|
2013
2013
|
var d;
|
|
2014
|
-
return (Array.isArray((d = s == null ? void 0 : s.data) == null ? void 0 : d.datasets) ? s.data.datasets : []).map((
|
|
2015
|
-
const W = Le((
|
|
2016
|
-
datasetIndex:
|
|
2017
|
-
label:
|
|
2014
|
+
return (Array.isArray((d = s == null ? void 0 : s.data) == null ? void 0 : d.datasets) ? s.data.datasets : []).map((b, $) => {
|
|
2015
|
+
const W = Le((b == null ? void 0 : b.borderColor) ?? (b == null ? void 0 : b.backgroundColor)), Z = bt({
|
|
2016
|
+
datasetIndex: $,
|
|
2017
|
+
label: b == null ? void 0 : b.label
|
|
2018
2018
|
});
|
|
2019
2019
|
return {
|
|
2020
|
-
text: ot.value(
|
|
2020
|
+
text: ot.value(b == null ? void 0 : b.label, b),
|
|
2021
2021
|
fillStyle: W,
|
|
2022
2022
|
strokeStyle: W,
|
|
2023
|
-
datasetIndex:
|
|
2023
|
+
datasetIndex: $,
|
|
2024
2024
|
datasetKey: Z,
|
|
2025
|
-
hidden: Array.isArray(n.hiddenDatasetKeys) ? n.hiddenDatasetKeys.includes(Z) : typeof s.isDatasetVisible == "function" ? !s.isDatasetVisible(
|
|
2025
|
+
hidden: Array.isArray(n.hiddenDatasetKeys) ? n.hiddenDatasetKeys.includes(Z) : typeof s.isDatasetVisible == "function" ? !s.isDatasetVisible($) : !1
|
|
2026
2026
|
};
|
|
2027
2027
|
});
|
|
2028
2028
|
}
|
|
@@ -2030,14 +2030,14 @@ const xr = {
|
|
|
2030
2030
|
() => (s, m) => {
|
|
2031
2031
|
const d = s == null ? "" : String(s).trim();
|
|
2032
2032
|
if (d.length === 0) return d;
|
|
2033
|
-
const
|
|
2034
|
-
return d.endsWith(` ${
|
|
2033
|
+
const b = gt.value;
|
|
2034
|
+
return d.endsWith(` ${b}`) || d.endsWith(b) ? d : (m == null ? void 0 : m.dash) === !0 || (m == null ? void 0 : m.isCompare) === !0 ? `${d} ${b}` : d;
|
|
2035
2035
|
}
|
|
2036
2036
|
);
|
|
2037
2037
|
function Ee(s, m) {
|
|
2038
2038
|
if (!Array.isArray(s) || s.length === 0)
|
|
2039
2039
|
return [];
|
|
2040
|
-
const d = s,
|
|
2040
|
+
const d = s, b = d[0], $ = Array.isArray(b == null ? void 0 : b.labels) ? b.labels : [], W = Array.isArray(m == null ? void 0 : m.metrics) ? m.metrics : [], Z = $.length > 0 ? $ : W, ee = b == null ? void 0 : b.backgroundColor;
|
|
2041
2041
|
return d.length === 1 && Array.isArray(ee) && ee.length > 1 ? ee.map((U, ie) => ({
|
|
2042
2042
|
text: Z[ie] == null || String(Z[ie]).trim().length === 0 ? `Series ${ie + 1}` : String(Z[ie]),
|
|
2043
2043
|
fillStyle: Le(U),
|
|
@@ -2087,23 +2087,23 @@ const xr = {
|
|
|
2087
2087
|
const d = v.value;
|
|
2088
2088
|
if (!d || s.length === 0)
|
|
2089
2089
|
return 0;
|
|
2090
|
-
const
|
|
2091
|
-
if (
|
|
2092
|
-
const ne = Number.parseFloat(
|
|
2090
|
+
const b = Math.max(0, m - ro), $ = window.getComputedStyle(d);
|
|
2091
|
+
if ($.flexDirection.startsWith("column")) {
|
|
2092
|
+
const ne = Number.parseFloat($.rowGap || $.gap || "0") || 0, pe = Kt();
|
|
2093
2093
|
let ye = 0, Me = 0;
|
|
2094
2094
|
for (let Ve = 0; Ve < s.length; Ve += 1) {
|
|
2095
2095
|
const ke = s[Ve];
|
|
2096
2096
|
if (!ke)
|
|
2097
2097
|
continue;
|
|
2098
2098
|
const lt = ye + (Me > 0 ? ne : 0) + ke.offsetHeight, Je = s.length - (Ve + 1) > 0 ? ne + pe : 0;
|
|
2099
|
-
if (lt + Je >
|
|
2099
|
+
if (lt + Je > b)
|
|
2100
2100
|
break;
|
|
2101
2101
|
ye = lt, Me += 1;
|
|
2102
2102
|
}
|
|
2103
2103
|
return Me > 0 ? Me : 1;
|
|
2104
2104
|
}
|
|
2105
2105
|
const Z = ((te = s[0]) == null ? void 0 : te.offsetTop) ?? 0, ee = s.filter(
|
|
2106
|
-
(ne) => ne.offsetTop - Z + ne.offsetHeight <=
|
|
2106
|
+
(ne) => ne.offsetTop - Z + ne.offsetHeight <= b
|
|
2107
2107
|
);
|
|
2108
2108
|
if (ee.length === 0)
|
|
2109
2109
|
return 0;
|
|
@@ -2112,7 +2112,7 @@ const xr = {
|
|
|
2112
2112
|
const U = Ut();
|
|
2113
2113
|
if (U <= 0)
|
|
2114
2114
|
return Math.max(1, ee.length - 1);
|
|
2115
|
-
const ie = Number.parseFloat(
|
|
2115
|
+
const ie = Number.parseFloat($.columnGap || $.gap || "0") || 0, ge = d.clientWidth;
|
|
2116
2116
|
for (let ne = ee.length; ne > 0; ne -= 1) {
|
|
2117
2117
|
const pe = ee.slice(0, ne), ye = pe[pe.length - 1];
|
|
2118
2118
|
if (!ye)
|
|
@@ -2125,21 +2125,21 @@ const xr = {
|
|
|
2125
2125
|
function Tt() {
|
|
2126
2126
|
const s = v.value;
|
|
2127
2127
|
if (!s) {
|
|
2128
|
-
f.value = !1,
|
|
2128
|
+
f.value = !1, P.value = 0, c.value = 0, p(), z();
|
|
2129
2129
|
return;
|
|
2130
2130
|
}
|
|
2131
2131
|
const m = Array.from(
|
|
2132
2132
|
s.querySelectorAll(".chart-legend-item[data-legend-data='true']")
|
|
2133
2133
|
);
|
|
2134
2134
|
if (m.length === 0) {
|
|
2135
|
-
f.value = !1,
|
|
2135
|
+
f.value = !1, P.value = 0, c.value = 0, p(), z();
|
|
2136
2136
|
return;
|
|
2137
2137
|
}
|
|
2138
|
-
const d = Array.from(new Set(m.map((ne) => ne.offsetTop))).sort((ne, pe) => ne - pe),
|
|
2139
|
-
if ((
|
|
2138
|
+
const d = Array.from(new Set(m.map((ne) => ne.offsetTop))).sort((ne, pe) => ne - pe), b = !u.value && r.value.length > m.length, $ = !u.value && !b, W = $ || P.value <= 0 ? Ce() : P.value;
|
|
2139
|
+
if (($ || P.value <= 0) && (P.value = W), b) {
|
|
2140
2140
|
const ne = Ce();
|
|
2141
|
-
if (ne > 0 && (
|
|
2142
|
-
const Me = Math.max(0,
|
|
2141
|
+
if (ne > 0 && (P.value = ne), window.getComputedStyle(s).flexDirection.startsWith("column") && c.value < r.value.length) {
|
|
2142
|
+
const Me = Math.max(0, P.value - ro), Ve = s.scrollHeight;
|
|
2143
2143
|
if (Ve + 1 < Me) {
|
|
2144
2144
|
const ke = m.map((De) => De.offsetHeight).filter((De) => Number.isFinite(De) && De > 0), lt = ke.length > 0 ? ke.reduce((De, Je) => De + Je, 0) / ke.length : 0;
|
|
2145
2145
|
if (lt > 0) {
|
|
@@ -2154,25 +2154,25 @@ const xr = {
|
|
|
2154
2154
|
}
|
|
2155
2155
|
}
|
|
2156
2156
|
}
|
|
2157
|
-
f.value = !0, p(),
|
|
2157
|
+
f.value = !0, p(), z();
|
|
2158
2158
|
return;
|
|
2159
2159
|
}
|
|
2160
2160
|
const Z = d[0] ?? 0, ee = d[d.length - 1] ?? Z, U = m.filter((ne) => ne.offsetTop === ee), ie = Math.max(...U.map((ne) => ne.offsetHeight), 0), ge = Math.max(0, ee - Z + ie), te = Xt(m, W);
|
|
2161
|
-
(
|
|
2161
|
+
($ || c.value <= 0) && (c.value = Math.max(0, te)), f.value = ge > W, p(), z();
|
|
2162
2162
|
}
|
|
2163
2163
|
function Oe() {
|
|
2164
2164
|
co(() => {
|
|
2165
2165
|
Tt(), window.requestAnimationFrame(() => {
|
|
2166
|
-
Tt(), M(),
|
|
2166
|
+
Tt(), M(), z();
|
|
2167
2167
|
});
|
|
2168
2168
|
});
|
|
2169
2169
|
}
|
|
2170
2170
|
const Lt = g(() => {
|
|
2171
2171
|
const s = {
|
|
2172
|
-
"--legend-text-color":
|
|
2172
|
+
"--legend-text-color": E.value,
|
|
2173
2173
|
"--legend-font-size": `${Q.value}px`
|
|
2174
2174
|
}, m = Ce();
|
|
2175
|
-
if (
|
|
2175
|
+
if (C.value) {
|
|
2176
2176
|
const d = Ne();
|
|
2177
2177
|
return {
|
|
2178
2178
|
...s,
|
|
@@ -2191,9 +2191,9 @@ const xr = {
|
|
|
2191
2191
|
}), qe = g(() => {
|
|
2192
2192
|
if (u.value || !f.value)
|
|
2193
2193
|
return r.value;
|
|
2194
|
-
const s = Math.max(1, c.value), m =
|
|
2194
|
+
const s = Math.max(1, c.value), m = C.value ? s : Math.max(0, s - 1);
|
|
2195
2195
|
return r.value.slice(0, Math.min(m, r.value.length));
|
|
2196
|
-
}), rt = g(() =>
|
|
2196
|
+
}), rt = g(() => V.value ? f.value && u.value ? {
|
|
2197
2197
|
flex: "1 1 auto",
|
|
2198
2198
|
minHeight: "0",
|
|
2199
2199
|
overflowY: "auto"
|
|
@@ -2201,12 +2201,12 @@ const xr = {
|
|
|
2201
2201
|
overflow: "hidden"
|
|
2202
2202
|
} : {} : {});
|
|
2203
2203
|
function Dt() {
|
|
2204
|
-
var
|
|
2205
|
-
if (!
|
|
2206
|
-
r.value = [], c.value = 0, u.value = !1, f.value = !1,
|
|
2204
|
+
var b;
|
|
2205
|
+
if (!V.value) {
|
|
2206
|
+
r.value = [], c.value = 0, u.value = !1, f.value = !1, P.value = 0, j({ height: 0, width: 0 });
|
|
2207
2207
|
return;
|
|
2208
2208
|
}
|
|
2209
|
-
c.value = 0, f.value = !1,
|
|
2209
|
+
c.value = 0, f.value = !1, P.value = 0;
|
|
2210
2210
|
const s = h();
|
|
2211
2211
|
if (!s) {
|
|
2212
2212
|
r.value = nt(
|
|
@@ -2219,7 +2219,7 @@ const xr = {
|
|
|
2219
2219
|
} catch {
|
|
2220
2220
|
r.value = [];
|
|
2221
2221
|
}
|
|
2222
|
-
const m = Array.isArray((
|
|
2222
|
+
const m = Array.isArray((b = s == null ? void 0 : s.data) == null ? void 0 : b.datasets) ? s.data.datasets : [];
|
|
2223
2223
|
r.value.length === 0 && (r.value = Ee(n.legendUpdateKey, n.chartRef)), r.value.length === 0 && (r.value = ht(s)), r.value = mt(nt(r.value));
|
|
2224
2224
|
const d = Array.isArray(n.legendUpdateKey) && n.legendUpdateKey.length > 0 || !Array.isArray(n.legendUpdateKey) && !!n.legendUpdateKey;
|
|
2225
2225
|
r.value.length === 0 && !(m.length > 0 || d) && oe(0), Oe();
|
|
@@ -2244,10 +2244,10 @@ const xr = {
|
|
|
2244
2244
|
);
|
|
2245
2245
|
}
|
|
2246
2246
|
function ln(s, m, d) {
|
|
2247
|
-
var
|
|
2247
|
+
var $;
|
|
2248
2248
|
typeof s.setDatasetVisibility == "function" ? s.setDatasetVisibility(m, d) : d && typeof s.show == "function" ? s.show(m) : !d && typeof s.hide == "function" && s.hide(m);
|
|
2249
|
-
const
|
|
2250
|
-
|
|
2249
|
+
const b = Array.isArray(($ = s == null ? void 0 : s.data) == null ? void 0 : $.datasets) ? s.data.datasets[m] : null;
|
|
2250
|
+
b && typeof b == "object" && (b.hidden = !d);
|
|
2251
2251
|
}
|
|
2252
2252
|
function sn(s, m) {
|
|
2253
2253
|
var Z;
|
|
@@ -2255,27 +2255,27 @@ const xr = {
|
|
|
2255
2255
|
s.toggleDataVisibility(m);
|
|
2256
2256
|
return;
|
|
2257
2257
|
}
|
|
2258
|
-
const d = Array.isArray((Z = s == null ? void 0 : s.data) == null ? void 0 : Z.datasets) ? s.data.datasets[0] : null,
|
|
2259
|
-
if (m < 0 || m >=
|
|
2258
|
+
const d = Array.isArray((Z = s == null ? void 0 : s.data) == null ? void 0 : Z.datasets) ? s.data.datasets[0] : null, b = Array.isArray(d == null ? void 0 : d.data) ? d.data : [];
|
|
2259
|
+
if (m < 0 || m >= b.length)
|
|
2260
2260
|
return;
|
|
2261
|
-
const
|
|
2261
|
+
const $ = typeof s.getDatasetMeta == "function" ? s.getDatasetMeta(0) : null, W = Array.isArray($ == null ? void 0 : $.data) ? $.data[m] : null;
|
|
2262
2262
|
W && typeof W.hidden == "boolean" && (W.hidden = !W.hidden);
|
|
2263
2263
|
}
|
|
2264
2264
|
function Et(s = 0) {
|
|
2265
2265
|
Dt();
|
|
2266
2266
|
const m = h(), d = r.value.length > 0;
|
|
2267
2267
|
if (m || d || s >= zr) {
|
|
2268
|
-
|
|
2268
|
+
T();
|
|
2269
2269
|
return;
|
|
2270
2270
|
}
|
|
2271
|
-
|
|
2271
|
+
T(), k = window.setTimeout(() => {
|
|
2272
2272
|
Et(s + 1);
|
|
2273
2273
|
}, Vr);
|
|
2274
2274
|
}
|
|
2275
2275
|
function Ue(s, m) {
|
|
2276
2276
|
var ge;
|
|
2277
|
-
const d = h(),
|
|
2278
|
-
if ((
|
|
2277
|
+
const d = h(), b = String(((ge = d == null ? void 0 : d.config) == null ? void 0 : ge.type) ?? ""), $ = b === "pie" || b === "doughnut" || b === "polarArea", W = typeof s.index == "number" ? s.index : typeof m == "number" ? m : null;
|
|
2278
|
+
if (($ || typeof s.index == "number") && typeof W == "number") {
|
|
2279
2279
|
if (Array.isArray(n.hiddenDataPointIndexes)) {
|
|
2280
2280
|
o("toggleDataPointVisibility", { itemIndex: W });
|
|
2281
2281
|
return;
|
|
@@ -2336,7 +2336,7 @@ const xr = {
|
|
|
2336
2336
|
u.value = !1, v.value && (v.value.scrollTop = 0), Oe();
|
|
2337
2337
|
}
|
|
2338
2338
|
return Nt(() => {
|
|
2339
|
-
Et(), window.addEventListener("mousemove", J), window.addEventListener("mouseup",
|
|
2339
|
+
Et(), window.addEventListener("mousemove", J), window.addEventListener("mouseup", G);
|
|
2340
2340
|
}), we(
|
|
2341
2341
|
() => [
|
|
2342
2342
|
n.enabled,
|
|
@@ -2349,68 +2349,68 @@ const xr = {
|
|
|
2349
2349
|
Dt();
|
|
2350
2350
|
}
|
|
2351
2351
|
), uo(() => {
|
|
2352
|
-
|
|
2353
|
-
}), (s, m) =>
|
|
2352
|
+
B.value = !1, T(), j({ height: 0, width: 0 }), window.removeEventListener("mousemove", J), window.removeEventListener("mouseup", G);
|
|
2353
|
+
}), (s, m) => V.value ? (X(), le("div", {
|
|
2354
2354
|
key: 0,
|
|
2355
2355
|
ref_key: "legendPanelRef",
|
|
2356
2356
|
ref: O,
|
|
2357
2357
|
class: Se(["chart-legend-panel relative z-[2] flex min-w-0 flex-col overflow-hidden pointer-events-auto", {
|
|
2358
|
-
"self-stretch h-full pt-2":
|
|
2359
|
-
"mb-2": !
|
|
2360
|
-
"mt-2": !
|
|
2358
|
+
"self-stretch h-full pt-2": C.value,
|
|
2359
|
+
"mb-2": !C.value && s.position === "top",
|
|
2360
|
+
"mt-2": !C.value && s.position === "bottom"
|
|
2361
2361
|
}]),
|
|
2362
2362
|
style: Pe(Lt.value)
|
|
2363
2363
|
}, [
|
|
2364
|
-
|
|
2364
|
+
q("div", {
|
|
2365
2365
|
ref_key: "legendScrollShellRef",
|
|
2366
2366
|
ref: x,
|
|
2367
2367
|
class: "relative z-[2] flex flex-1 min-h-0 flex-col overflow-hidden"
|
|
2368
2368
|
}, [
|
|
2369
|
-
|
|
2369
|
+
q("div", {
|
|
2370
2370
|
ref_key: "legendToggleMeasureRef",
|
|
2371
2371
|
ref: y,
|
|
2372
2372
|
class: "absolute invisible pointer-events-none left-0 top-0 z-[2] inline-flex max-w-full select-none"
|
|
2373
2373
|
}, [
|
|
2374
|
-
|
|
2374
|
+
q("button", Ar, Te(i(l)("report.widget.legend.viewMore")), 1)
|
|
2375
2375
|
], 512),
|
|
2376
|
-
|
|
2376
|
+
q("ul", {
|
|
2377
2377
|
ref_key: "legendListRef",
|
|
2378
2378
|
ref: v,
|
|
2379
2379
|
class: Se(["chart-legend-list m-0 flex list-none p-0", [
|
|
2380
|
-
|
|
2380
|
+
C.value ? "flex-row flex-wrap justify-start gap-x-3 gap-y-2 pt-1" : "flex-wrap justify-center gap-x-2 gap-y-1 pt-1"
|
|
2381
2381
|
]]),
|
|
2382
2382
|
style: Pe(rt.value),
|
|
2383
|
-
onScroll:
|
|
2383
|
+
onScroll: N
|
|
2384
2384
|
}, [
|
|
2385
|
-
(X(!0), le(Fe, null, ct(qe.value, (d,
|
|
2386
|
-
key: Ge(d,
|
|
2385
|
+
(X(!0), le(Fe, null, ct(qe.value, (d, b) => (X(), le("li", {
|
|
2386
|
+
key: Ge(d, b),
|
|
2387
2387
|
class: Se(["chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto", {
|
|
2388
2388
|
"opacity-45": d.hidden
|
|
2389
2389
|
}]),
|
|
2390
2390
|
"data-legend-data": "true"
|
|
2391
2391
|
}, [
|
|
2392
|
-
|
|
2392
|
+
q("button", {
|
|
2393
2393
|
type: "button",
|
|
2394
|
-
class: Se(["inline-flex max-w-full items-center gap-1.5 border-none bg-transparent p-0", { "justify-start text-left":
|
|
2394
|
+
class: Se(["inline-flex max-w-full items-center gap-1.5 border-none bg-transparent p-0", { "justify-start text-left": C.value }]),
|
|
2395
2395
|
"aria-pressed": d.hidden === !0 ? "false" : "true",
|
|
2396
|
-
onClick: en((
|
|
2396
|
+
onClick: en(($) => Ue(d, b), ["stop"])
|
|
2397
2397
|
}, [
|
|
2398
2398
|
n.usePointStyle !== !1 ? (X(), le("span", {
|
|
2399
2399
|
key: 0,
|
|
2400
2400
|
class: "h-5 w-5 shrink-0 rounded-full",
|
|
2401
|
-
style: Pe({ backgroundColor: $e(d,
|
|
2401
|
+
style: Pe({ backgroundColor: $e(d, b) })
|
|
2402
2402
|
}, null, 4)) : (X(), le("span", {
|
|
2403
2403
|
key: 1,
|
|
2404
2404
|
class: "h-5 w-5 shrink-0 rounded-sm border border-solid border-gray-300",
|
|
2405
2405
|
style: Pe({
|
|
2406
|
-
backgroundColor: $e(d,
|
|
2406
|
+
backgroundColor: $e(d, b),
|
|
2407
2407
|
borderColor: "#c7c7cc"
|
|
2408
2408
|
})
|
|
2409
2409
|
}, null, 4)),
|
|
2410
|
-
|
|
2410
|
+
q("span", {
|
|
2411
2411
|
class: Se(["chart-legend-text leading-[1.4]", {
|
|
2412
|
-
"max-w-[120px] whitespace-nowrap overflow-hidden text-left":
|
|
2413
|
-
"whitespace-nowrap overflow-hidden": !
|
|
2412
|
+
"max-w-[120px] whitespace-nowrap overflow-hidden text-left": C.value,
|
|
2413
|
+
"whitespace-nowrap overflow-hidden": !C.value,
|
|
2414
2414
|
"line-through": d.hidden
|
|
2415
2415
|
}]),
|
|
2416
2416
|
title: d.text ?? ""
|
|
@@ -2418,7 +2418,7 @@ const xr = {
|
|
|
2418
2418
|
], 10, Fr)
|
|
2419
2419
|
], 2))), 128)),
|
|
2420
2420
|
f.value ? (X(), le("li", Nr, [
|
|
2421
|
-
|
|
2421
|
+
q("button", {
|
|
2422
2422
|
type: "button",
|
|
2423
2423
|
class: "inline-flex max-w-full cursor-pointer select-none underline items-center gap-1 rounded px-1 py-0.5 border-none bg-transparent text-fm-color-system-info-300 leading-[1.4] transition-colors hover:bg-black/5",
|
|
2424
2424
|
style: { fontSize: "var(--legend-font-size)" },
|
|
@@ -2426,12 +2426,12 @@ const xr = {
|
|
|
2426
2426
|
}, Te(u.value ? i(l)("report.widget.legend.viewLess") : i(l)("report.widget.legend.viewMore")), 1)
|
|
2427
2427
|
])) : he("", !0)
|
|
2428
2428
|
], 38),
|
|
2429
|
-
|
|
2429
|
+
D.value ? (X(), le("div", {
|
|
2430
2430
|
key: 0,
|
|
2431
2431
|
class: "absolute top-0 right-0 h-full w-2 rounded-full bg-transparent",
|
|
2432
2432
|
onMousedown: K
|
|
2433
2433
|
}, [
|
|
2434
|
-
|
|
2434
|
+
q("div", {
|
|
2435
2435
|
class: "absolute left-0 w-full rounded-full bg-gray-500/60 cursor-pointer hover:bg-gray-500/85",
|
|
2436
2436
|
style: Pe(A.value),
|
|
2437
2437
|
onMousedown: en(H, ["stop"])
|
|
@@ -2442,7 +2442,7 @@ const xr = {
|
|
|
2442
2442
|
}
|
|
2443
2443
|
}), Re = /* @__PURE__ */ go(Hr, [["__scopeId", "data-v-706fa016"]]);
|
|
2444
2444
|
function Wr(e, t) {
|
|
2445
|
-
const { t: n } = dt(), { breakpoints: o } = $t(), l =
|
|
2445
|
+
const { t: n } = dt(), { breakpoints: o } = $t(), l = I(!1), a = I(null), r = I(null);
|
|
2446
2446
|
function c() {
|
|
2447
2447
|
return Po(e.value) ?? r.value;
|
|
2448
2448
|
}
|
|
@@ -2452,7 +2452,7 @@ function Wr(e, t) {
|
|
|
2452
2452
|
function f(v, y) {
|
|
2453
2453
|
a.value = v, r.value = y ?? c(), l.value = !0;
|
|
2454
2454
|
}
|
|
2455
|
-
function
|
|
2455
|
+
function P(v) {
|
|
2456
2456
|
on(c(), v.focusTarget);
|
|
2457
2457
|
}
|
|
2458
2458
|
function O() {
|
|
@@ -2468,12 +2468,12 @@ function Wr(e, t) {
|
|
|
2468
2468
|
tooltipDetailsPayload: a,
|
|
2469
2469
|
tooltipOptions: x,
|
|
2470
2470
|
handleTooltipDetailsSheetVisibility: u,
|
|
2471
|
-
handleTooltipDetailsHover:
|
|
2471
|
+
handleTooltipDetailsHover: P,
|
|
2472
2472
|
handleTooltipDetailsLeave: O
|
|
2473
2473
|
};
|
|
2474
2474
|
}
|
|
2475
2475
|
function Or(e) {
|
|
2476
|
-
const t =
|
|
2476
|
+
const t = I([]), n = g(() => new Set(t.value));
|
|
2477
2477
|
function o(r, c) {
|
|
2478
2478
|
return bt({
|
|
2479
2479
|
datasetIndex: c,
|
|
@@ -2495,7 +2495,7 @@ function Or(e) {
|
|
|
2495
2495
|
e,
|
|
2496
2496
|
(r) => {
|
|
2497
2497
|
const c = new Set(
|
|
2498
|
-
r.map((f,
|
|
2498
|
+
r.map((f, P) => o(f, P))
|
|
2499
2499
|
), u = t.value.filter((f) => c.has(f));
|
|
2500
2500
|
u.length !== t.value.length && (t.value = u);
|
|
2501
2501
|
},
|
|
@@ -2516,18 +2516,18 @@ function Ot({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2516
2516
|
handleTooltipDetailsLeave: f
|
|
2517
2517
|
} = Wr(e, {
|
|
2518
2518
|
maxTooltipItems: o
|
|
2519
|
-
}), { datalabels:
|
|
2519
|
+
}), { datalabels: P, xCfg: O, yCfg: x, isTransposed: v, legend: y } = Ao(t.value), _ = g(
|
|
2520
2520
|
() => Dn(t.value.isTransposed === !0, r.value)
|
|
2521
|
-
),
|
|
2522
|
-
const
|
|
2523
|
-
return !
|
|
2524
|
-
}),
|
|
2525
|
-
() =>
|
|
2526
|
-
),
|
|
2527
|
-
() =>
|
|
2528
|
-
), { hiddenDatasetKeys:
|
|
2529
|
-
...
|
|
2530
|
-
hidden:
|
|
2521
|
+
), L = g(() => {
|
|
2522
|
+
const D = y.value.position;
|
|
2523
|
+
return !D || D === "top" || D === "bottom" || D === "left" || D === "right";
|
|
2524
|
+
}), S = g(() => y.value.position ?? "top"), B = g(
|
|
2525
|
+
() => S.value === "left" || S.value === "right"
|
|
2526
|
+
), F = g(
|
|
2527
|
+
() => S.value === "top" || S.value === "left"
|
|
2528
|
+
), { hiddenDatasetKeys: R, isDatasetHidden: V, toggleDatasetVisibility: C } = Or(n), k = g(() => n.value.map((D, A) => ({
|
|
2529
|
+
...D,
|
|
2530
|
+
hidden: V(D, A)
|
|
2531
2531
|
})));
|
|
2532
2532
|
return {
|
|
2533
2533
|
isTooltipDetailsSheetOpen: l,
|
|
@@ -2535,19 +2535,19 @@ function Ot({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2535
2535
|
handleTooltipDetailsSheetVisibility: c,
|
|
2536
2536
|
handleTooltipDetailsHover: u,
|
|
2537
2537
|
handleTooltipDetailsLeave: f,
|
|
2538
|
-
comparisonTooltip:
|
|
2539
|
-
datalabels:
|
|
2538
|
+
comparisonTooltip: _,
|
|
2539
|
+
datalabels: P,
|
|
2540
2540
|
xCfg: O,
|
|
2541
2541
|
yCfg: x,
|
|
2542
2542
|
isTransposed: v,
|
|
2543
2543
|
legend: y,
|
|
2544
|
-
useCustomLegend:
|
|
2545
|
-
legendPosition:
|
|
2546
|
-
isLegendSide:
|
|
2547
|
-
isLegendBeforeChart:
|
|
2548
|
-
hiddenDatasetKeys:
|
|
2549
|
-
toggleDatasetVisibility:
|
|
2550
|
-
datasets:
|
|
2544
|
+
useCustomLegend: L,
|
|
2545
|
+
legendPosition: S,
|
|
2546
|
+
isLegendSide: B,
|
|
2547
|
+
isLegendBeforeChart: F,
|
|
2548
|
+
hiddenDatasetKeys: R,
|
|
2549
|
+
toggleDatasetVisibility: C,
|
|
2550
|
+
datasets: k
|
|
2551
2551
|
};
|
|
2552
2552
|
}
|
|
2553
2553
|
const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /* @__PURE__ */ Ae({
|
|
@@ -2560,7 +2560,7 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
|
|
|
2560
2560
|
}),
|
|
2561
2561
|
emits: ["update:modelValue"],
|
|
2562
2562
|
setup(e) {
|
|
2563
|
-
const t = We(e, "modelValue"), n =
|
|
2563
|
+
const t = We(e, "modelValue"), n = I(null), o = g(() => {
|
|
2564
2564
|
var p;
|
|
2565
2565
|
return ((p = t.value.data) == null ? void 0 : p.datasets) ?? [];
|
|
2566
2566
|
}), l = g(() => {
|
|
@@ -2569,7 +2569,7 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
|
|
|
2569
2569
|
}), a = g(() => l.value.length === 1 && o.value.length > 1 && o.value.every((p) => p.values.length === 1 && p.isCompare !== !0)), r = g(() => a.value ? o.value.map((p) => p.name) : l.value), c = g(() => ({
|
|
2570
2570
|
categories: r.value
|
|
2571
2571
|
})), u = g(() => l.value.length === 1 && o.value.some((p) => p.isCompare === !0)), f = Ht("bar");
|
|
2572
|
-
function
|
|
2572
|
+
function P(p) {
|
|
2573
2573
|
return {
|
|
2574
2574
|
label: `__comparison_gap__${p}`,
|
|
2575
2575
|
data: [0],
|
|
@@ -2582,16 +2582,16 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
|
|
|
2582
2582
|
}
|
|
2583
2583
|
const O = g(() => o.value.length > 0 ? [
|
|
2584
2584
|
...o.value.map((p, M) => {
|
|
2585
|
-
const
|
|
2585
|
+
const z = Vt({
|
|
2586
2586
|
datasets: o.value,
|
|
2587
2587
|
datasetIndex: M
|
|
2588
|
-
}),
|
|
2589
|
-
datasetIndex:
|
|
2588
|
+
}), N = Be({
|
|
2589
|
+
datasetIndex: z,
|
|
2590
2590
|
isCompare: !1,
|
|
2591
2591
|
metricCount: t.value.metricCount,
|
|
2592
2592
|
mode: t.value.chartColorBinding
|
|
2593
2593
|
}), K = Be({
|
|
2594
|
-
datasetIndex:
|
|
2594
|
+
datasetIndex: z,
|
|
2595
2595
|
isCompare: !1,
|
|
2596
2596
|
metricCount: t.value.metricCount,
|
|
2597
2597
|
mode: be.metric
|
|
@@ -2600,8 +2600,8 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
|
|
|
2600
2600
|
a.value && (H = o.value.map(
|
|
2601
2601
|
(me, ue) => ue === M ? p.values[0] : NaN
|
|
2602
2602
|
));
|
|
2603
|
-
const J = t.value.chartColorBinding === be.breakdown,
|
|
2604
|
-
fallbackIndex:
|
|
2603
|
+
const J = t.value.chartColorBinding === be.breakdown, G = _t({
|
|
2604
|
+
fallbackIndex: z,
|
|
2605
2605
|
metricCount: t.value.metricCount
|
|
2606
2606
|
}), ae = H.map((me) => me === null ? NaN : Number(me));
|
|
2607
2607
|
return {
|
|
@@ -2611,7 +2611,7 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
|
|
|
2611
2611
|
minBarLength: void 0,
|
|
2612
2612
|
barPercentage: u.value ? gn : void 0,
|
|
2613
2613
|
backgroundColor: J ? kt({
|
|
2614
|
-
breakdownIndex:
|
|
2614
|
+
breakdownIndex: G,
|
|
2615
2615
|
metricIndex: K,
|
|
2616
2616
|
metricCount: t.value.metricCount,
|
|
2617
2617
|
isCompare: p.isCompare,
|
|
@@ -2619,7 +2619,7 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
|
|
|
2619
2619
|
useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
|
|
2620
2620
|
customColors: t.value.chartColors
|
|
2621
2621
|
}) : Ye({
|
|
2622
|
-
index:
|
|
2622
|
+
index: N,
|
|
2623
2623
|
isCompare: p.isCompare,
|
|
2624
2624
|
customColors: t.value.chartColors
|
|
2625
2625
|
})
|
|
@@ -2629,18 +2629,18 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
|
|
|
2629
2629
|
isTooltipDetailsSheetOpen: x,
|
|
2630
2630
|
tooltipDetailsPayload: v,
|
|
2631
2631
|
handleTooltipDetailsSheetVisibility: y,
|
|
2632
|
-
handleTooltipDetailsHover:
|
|
2633
|
-
handleTooltipDetailsLeave:
|
|
2634
|
-
comparisonTooltip:
|
|
2635
|
-
datalabels:
|
|
2636
|
-
xCfg:
|
|
2637
|
-
yCfg:
|
|
2638
|
-
isTransposed:
|
|
2639
|
-
legend:
|
|
2640
|
-
useCustomLegend:
|
|
2641
|
-
legendPosition:
|
|
2632
|
+
handleTooltipDetailsHover: _,
|
|
2633
|
+
handleTooltipDetailsLeave: L,
|
|
2634
|
+
comparisonTooltip: S,
|
|
2635
|
+
datalabels: B,
|
|
2636
|
+
xCfg: F,
|
|
2637
|
+
yCfg: R,
|
|
2638
|
+
isTransposed: V,
|
|
2639
|
+
legend: C,
|
|
2640
|
+
useCustomLegend: k,
|
|
2641
|
+
legendPosition: D,
|
|
2642
2642
|
isLegendSide: A,
|
|
2643
|
-
isLegendBeforeChart:
|
|
2643
|
+
isLegendBeforeChart: E,
|
|
2644
2644
|
hiddenDatasetKeys: Q,
|
|
2645
2645
|
toggleDatasetVisibility: oe,
|
|
2646
2646
|
datasets: j
|
|
@@ -2648,45 +2648,45 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
|
|
|
2648
2648
|
chartRef: n,
|
|
2649
2649
|
model: t,
|
|
2650
2650
|
baseDatasets: O
|
|
2651
|
-
}),
|
|
2651
|
+
}), T = g(() => {
|
|
2652
2652
|
if (!u.value)
|
|
2653
2653
|
return j.value;
|
|
2654
2654
|
const p = [];
|
|
2655
|
-
return j.value.forEach((M,
|
|
2655
|
+
return j.value.forEach((M, z) => {
|
|
2656
2656
|
p.push({
|
|
2657
2657
|
...M,
|
|
2658
2658
|
barPercentage: gn
|
|
2659
2659
|
});
|
|
2660
|
-
const
|
|
2661
|
-
M.dash === !0 &&
|
|
2660
|
+
const N = j.value[z + 1];
|
|
2661
|
+
M.dash === !0 && N && p.push(P(z));
|
|
2662
2662
|
}), p;
|
|
2663
2663
|
}), h = g(() => ({
|
|
2664
2664
|
display: !1,
|
|
2665
2665
|
labels: {
|
|
2666
2666
|
filter: (p, M) => {
|
|
2667
|
-
var
|
|
2668
|
-
return !((
|
|
2667
|
+
var z, N;
|
|
2668
|
+
return !((N = (z = M.datasets) == null ? void 0 : z[p.datasetIndex ?? -1]) != null && N.isSpacer);
|
|
2669
2669
|
}
|
|
2670
2670
|
}
|
|
2671
2671
|
}));
|
|
2672
2672
|
return (p, M) => {
|
|
2673
|
-
var
|
|
2674
|
-
const
|
|
2673
|
+
var N, K, H, J, G, ae;
|
|
2674
|
+
const z = ce("FmBarChart");
|
|
2675
2675
|
return X(), le(Fe, null, [
|
|
2676
|
-
|
|
2676
|
+
q("div", Ur, [
|
|
2677
2677
|
et(p.$slots, "menu"),
|
|
2678
|
-
|
|
2678
|
+
q("div", {
|
|
2679
2679
|
class: Se(["chart-layout", {
|
|
2680
|
-
"chart-layout--side": i(
|
|
2680
|
+
"chart-layout--side": i(k) && (i(C).display ?? !1) && i(A)
|
|
2681
2681
|
}])
|
|
2682
2682
|
}, [
|
|
2683
|
-
i(
|
|
2683
|
+
i(k) && (i(C).display ?? !1) && i(E) ? (X(), de(Re, {
|
|
2684
2684
|
key: 0,
|
|
2685
2685
|
"chart-ref": n.value,
|
|
2686
|
-
enabled: i(
|
|
2687
|
-
position: i(
|
|
2688
|
-
"text-color": (
|
|
2689
|
-
"font-size": (H = (K = i(
|
|
2686
|
+
enabled: i(C).display ?? !1,
|
|
2687
|
+
position: i(D),
|
|
2688
|
+
"text-color": (N = i(C).labels) == null ? void 0 : N.color,
|
|
2689
|
+
"font-size": (H = (K = i(C).labels) == null ? void 0 : K.font) == null ? void 0 : H.size,
|
|
2690
2690
|
"legend-update-key": i(j),
|
|
2691
2691
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
2692
2692
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -2697,28 +2697,28 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
|
|
|
2697
2697
|
"hidden-dataset-keys": i(Q),
|
|
2698
2698
|
onToggleDatasetVisibility: i(oe)
|
|
2699
2699
|
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : he("", !0),
|
|
2700
|
-
fe(
|
|
2700
|
+
fe(z, {
|
|
2701
2701
|
ref_key: "chartRef",
|
|
2702
2702
|
ref: n,
|
|
2703
2703
|
class: "bar-chart",
|
|
2704
|
-
datasets:
|
|
2704
|
+
datasets: T.value,
|
|
2705
2705
|
"x-axis": c.value,
|
|
2706
|
-
"x-cfg": i(
|
|
2707
|
-
"y-cfg": i(
|
|
2708
|
-
transpose: i(
|
|
2706
|
+
"x-cfg": i(F),
|
|
2707
|
+
"y-cfg": i(R),
|
|
2708
|
+
transpose: i(V),
|
|
2709
2709
|
legend: h.value,
|
|
2710
|
-
tooltip: i(
|
|
2711
|
-
datalabels: i(
|
|
2710
|
+
tooltip: i(S),
|
|
2711
|
+
datalabels: i(B),
|
|
2712
2712
|
plugins: [i(f)],
|
|
2713
2713
|
"maintain-aspect-ratio": !1
|
|
2714
2714
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "tooltip", "datalabels", "plugins"]),
|
|
2715
|
-
i(
|
|
2715
|
+
i(k) && (i(C).display ?? !1) && !i(E) ? (X(), de(Re, {
|
|
2716
2716
|
key: 1,
|
|
2717
2717
|
"chart-ref": n.value,
|
|
2718
|
-
enabled: i(
|
|
2719
|
-
position: i(
|
|
2720
|
-
"text-color": (J = i(
|
|
2721
|
-
"font-size": (ae = (
|
|
2718
|
+
enabled: i(C).display ?? !1,
|
|
2719
|
+
position: i(D),
|
|
2720
|
+
"text-color": (J = i(C).labels) == null ? void 0 : J.color,
|
|
2721
|
+
"font-size": (ae = (G = i(C).labels) == null ? void 0 : G.font) == null ? void 0 : ae.size,
|
|
2722
2722
|
"legend-update-key": i(j),
|
|
2723
2723
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
2724
2724
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -2735,8 +2735,8 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
|
|
|
2735
2735
|
"model-value": i(x),
|
|
2736
2736
|
"details-payload": i(v),
|
|
2737
2737
|
"onUpdate:modelValue": i(y),
|
|
2738
|
-
onValueHover: i(
|
|
2739
|
-
onValueLeave: i(
|
|
2738
|
+
onValueHover: i(_),
|
|
2739
|
+
onValueLeave: i(L)
|
|
2740
2740
|
}, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
|
|
2741
2741
|
], 64);
|
|
2742
2742
|
};
|
|
@@ -2751,75 +2751,75 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
|
|
|
2751
2751
|
}),
|
|
2752
2752
|
emits: ["update:modelValue"],
|
|
2753
2753
|
setup(e) {
|
|
2754
|
-
const t = We(e, "modelValue"), { breakpoints: n } = $t(), o =
|
|
2755
|
-
const
|
|
2756
|
-
return
|
|
2754
|
+
const t = We(e, "modelValue"), { breakpoints: n } = $t(), o = I(null), l = I([]), { datalabels: a, legend: r } = Ao(t.value), c = g(() => {
|
|
2755
|
+
const V = Array.isArray(t.value.data.datasets) ? t.value.data.datasets.map((C) => C.name) : [];
|
|
2756
|
+
return V.length > 0 ? V : Array.isArray(t.value.data.metrics) ? t.value.data.metrics.map((C) => String(C)) : [];
|
|
2757
2757
|
}), u = g(() => {
|
|
2758
|
-
let
|
|
2759
|
-
return Array.isArray(t.value.data.datasets) && t.value.data.datasets.length > 0 && (
|
|
2758
|
+
let V = [];
|
|
2759
|
+
return Array.isArray(t.value.data.datasets) && t.value.data.datasets.length > 0 && (V = [
|
|
2760
2760
|
{
|
|
2761
2761
|
label: c.value[0] ?? (Array.isArray(t.value.data.metrics) && t.value.data.metrics.length > 0 ? String(t.value.data.metrics[0]) : "Series"),
|
|
2762
2762
|
labels: c.value,
|
|
2763
2763
|
data: t.value.data.datasets.map(
|
|
2764
|
-
(
|
|
2764
|
+
(k, D) => l.value.includes(D) ? null : k.value
|
|
2765
2765
|
),
|
|
2766
2766
|
backgroundColor: t.value.data.datasets.map(
|
|
2767
|
-
(
|
|
2767
|
+
(k, D) => Ye({ index: D, customColors: t.value.chartColors })
|
|
2768
2768
|
)
|
|
2769
2769
|
}
|
|
2770
|
-
]),
|
|
2770
|
+
]), V;
|
|
2771
2771
|
});
|
|
2772
2772
|
we(
|
|
2773
2773
|
() => t.value.data.datasets,
|
|
2774
|
-
(
|
|
2775
|
-
const
|
|
2776
|
-
Array.isArray(
|
|
2774
|
+
(V) => {
|
|
2775
|
+
const C = new Set(
|
|
2776
|
+
Array.isArray(V) ? V.map((k, D) => D) : []
|
|
2777
2777
|
);
|
|
2778
2778
|
l.value = l.value.filter(
|
|
2779
|
-
(
|
|
2779
|
+
(k) => C.has(k)
|
|
2780
2780
|
);
|
|
2781
2781
|
},
|
|
2782
2782
|
{ deep: !0 }
|
|
2783
2783
|
);
|
|
2784
|
-
const f = g(() => typeof t.value.legendFontSize == "number" ? t.value.legendFontSize : n.value.lg ? 12 : 8),
|
|
2785
|
-
const
|
|
2786
|
-
return !
|
|
2787
|
-
}), O = g(() => r.value.display !== !1), x = g(() =>
|
|
2784
|
+
const f = g(() => typeof t.value.legendFontSize == "number" ? t.value.legendFontSize : n.value.lg ? 12 : 8), P = g(() => {
|
|
2785
|
+
const V = r.value.position;
|
|
2786
|
+
return !V || V === "top" || V === "bottom" || V === "left" || V === "right";
|
|
2787
|
+
}), O = g(() => r.value.display !== !1), x = g(() => P.value && O.value), v = g(() => r.value.position ?? "top"), y = g(
|
|
2788
2788
|
() => v.value === "left" || v.value === "right"
|
|
2789
|
-
),
|
|
2789
|
+
), _ = g(
|
|
2790
2790
|
() => v.value === "top" || v.value === "left"
|
|
2791
|
-
),
|
|
2792
|
-
var
|
|
2793
|
-
const
|
|
2794
|
-
return typeof
|
|
2795
|
-
}),
|
|
2791
|
+
), L = g(() => {
|
|
2792
|
+
var C;
|
|
2793
|
+
const V = (C = r.value.labels) == null ? void 0 : C.color;
|
|
2794
|
+
return typeof V == "string" && V.trim().length > 0 ? V : t.value.legendColor ?? "#6b6b6b";
|
|
2795
|
+
}), S = g(() => f.value), B = g(() => ({
|
|
2796
2796
|
display: !1
|
|
2797
|
-
})),
|
|
2798
|
-
function
|
|
2799
|
-
if (l.value.includes(
|
|
2797
|
+
})), F = _a();
|
|
2798
|
+
function R({ itemIndex: V }) {
|
|
2799
|
+
if (l.value.includes(V)) {
|
|
2800
2800
|
l.value = l.value.filter(
|
|
2801
|
-
(
|
|
2801
|
+
(C) => C !== V
|
|
2802
2802
|
);
|
|
2803
2803
|
return;
|
|
2804
2804
|
}
|
|
2805
|
-
l.value = [...l.value,
|
|
2805
|
+
l.value = [...l.value, V];
|
|
2806
2806
|
}
|
|
2807
|
-
return (
|
|
2808
|
-
const
|
|
2807
|
+
return (V, C) => {
|
|
2808
|
+
const k = ce("FmPieChart");
|
|
2809
2809
|
return X(), le("div", Xr, [
|
|
2810
|
-
et(
|
|
2811
|
-
|
|
2810
|
+
et(V.$slots, "menu"),
|
|
2811
|
+
q("div", {
|
|
2812
2812
|
class: Se(["chart-layout", {
|
|
2813
2813
|
"chart-layout--side": x.value && y.value
|
|
2814
2814
|
}])
|
|
2815
2815
|
}, [
|
|
2816
|
-
x.value &&
|
|
2816
|
+
x.value && _.value ? (X(), de(Re, {
|
|
2817
2817
|
key: 0,
|
|
2818
2818
|
"chart-ref": o.value,
|
|
2819
2819
|
enabled: O.value,
|
|
2820
2820
|
position: v.value,
|
|
2821
|
-
"text-color":
|
|
2822
|
-
"font-size":
|
|
2821
|
+
"text-color": L.value,
|
|
2822
|
+
"font-size": S.value,
|
|
2823
2823
|
"legend-update-key": u.value,
|
|
2824
2824
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
2825
2825
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -2828,28 +2828,28 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
|
|
|
2828
2828
|
"chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
|
|
2829
2829
|
"metric-count": t.value.metricCount,
|
|
2830
2830
|
"hidden-data-point-indexes": l.value,
|
|
2831
|
-
onToggleDataPointVisibility:
|
|
2831
|
+
onToggleDataPointVisibility: R
|
|
2832
2832
|
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-data-point-indexes"])) : he("", !0),
|
|
2833
|
-
fe(
|
|
2833
|
+
fe(k, {
|
|
2834
2834
|
ref_key: "chartRef",
|
|
2835
2835
|
ref: o,
|
|
2836
2836
|
class: "circular",
|
|
2837
2837
|
percentage: "70%",
|
|
2838
2838
|
datasets: u.value,
|
|
2839
2839
|
metrics: c.value,
|
|
2840
|
-
tooltip: i(
|
|
2840
|
+
tooltip: i(F),
|
|
2841
2841
|
variant: "doughnut",
|
|
2842
|
-
legend:
|
|
2842
|
+
legend: B.value,
|
|
2843
2843
|
datalabels: i(a),
|
|
2844
2844
|
"maintain-aspect-ratio": !1
|
|
2845
2845
|
}, null, 8, ["datasets", "metrics", "tooltip", "legend", "datalabels"]),
|
|
2846
|
-
x.value && !
|
|
2846
|
+
x.value && !_.value ? (X(), de(Re, {
|
|
2847
2847
|
key: 1,
|
|
2848
2848
|
"chart-ref": o.value,
|
|
2849
2849
|
enabled: O.value,
|
|
2850
2850
|
position: v.value,
|
|
2851
|
-
"text-color":
|
|
2852
|
-
"font-size":
|
|
2851
|
+
"text-color": L.value,
|
|
2852
|
+
"font-size": S.value,
|
|
2853
2853
|
"legend-update-key": u.value,
|
|
2854
2854
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
2855
2855
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -2858,7 +2858,7 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
|
|
|
2858
2858
|
"chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
|
|
2859
2859
|
"metric-count": t.value.metricCount,
|
|
2860
2860
|
"hidden-data-point-indexes": l.value,
|
|
2861
|
-
onToggleDataPointVisibility:
|
|
2861
|
+
onToggleDataPointVisibility: R
|
|
2862
2862
|
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-data-point-indexes"])) : he("", !0)
|
|
2863
2863
|
], 2)
|
|
2864
2864
|
]);
|
|
@@ -2888,25 +2888,25 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
|
|
|
2888
2888
|
});
|
|
2889
2889
|
});
|
|
2890
2890
|
return (o, l) => (X(), le("div", Er, [
|
|
2891
|
-
|
|
2891
|
+
q("div", Gr, [
|
|
2892
2892
|
(X(!0), le(Fe, null, ct(n.value, (a, r) => (X(), le("div", {
|
|
2893
2893
|
key: r,
|
|
2894
2894
|
class: "flex flex-col gap-1 flex-1 min-w-[80px]"
|
|
2895
2895
|
}, [
|
|
2896
|
-
|
|
2897
|
-
|
|
2896
|
+
q("div", qr, [
|
|
2897
|
+
q("span", {
|
|
2898
2898
|
class: "inline-block w-3 h-3 rounded-sm shrink-0",
|
|
2899
2899
|
style: Pe({ backgroundColor: a.color })
|
|
2900
2900
|
}, null, 4),
|
|
2901
|
-
|
|
2901
|
+
q("p", {
|
|
2902
2902
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary truncate",
|
|
2903
2903
|
title: a.label
|
|
2904
2904
|
}, Te(a.label), 9, jr)
|
|
2905
2905
|
]),
|
|
2906
|
-
|
|
2906
|
+
q("p", Jr, Te(a.display), 1)
|
|
2907
2907
|
]))), 128))
|
|
2908
2908
|
]),
|
|
2909
|
-
|
|
2909
|
+
q("div", Zr, [
|
|
2910
2910
|
(X(!0), le(Fe, null, ct(n.value, (a, r) => (X(), le("div", {
|
|
2911
2911
|
key: r,
|
|
2912
2912
|
style: Pe({ width: `${a.width}%`, backgroundColor: a.color })
|
|
@@ -2929,14 +2929,14 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
|
|
|
2929
2929
|
emits: ["update:modelValue"],
|
|
2930
2930
|
setup(e) {
|
|
2931
2931
|
const t = We(e, "modelValue"), { t: n } = dt(), { compareDateRange: o, defaultDateSetting: l } = At(an()), { country: a } = ho(), r = g(() => {
|
|
2932
|
-
var
|
|
2933
|
-
return ((
|
|
2932
|
+
var S;
|
|
2933
|
+
return ((S = t.value.data) == null ? void 0 : S.value) || "";
|
|
2934
2934
|
}), c = g(() => Ft(r.value)), u = g(() => {
|
|
2935
|
-
const { data:
|
|
2936
|
-
return
|
|
2935
|
+
const { data: S } = t.value;
|
|
2936
|
+
return S != null && S.comparison ? _o(r.value, S.comparison, a) : null;
|
|
2937
2937
|
});
|
|
2938
|
-
function f(
|
|
2939
|
-
switch (
|
|
2938
|
+
function f(S) {
|
|
2939
|
+
switch (S) {
|
|
2940
2940
|
case nn.bar:
|
|
2941
2941
|
return "bar";
|
|
2942
2942
|
case nn.stackedBar:
|
|
@@ -2946,31 +2946,31 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
|
|
|
2946
2946
|
return "line";
|
|
2947
2947
|
}
|
|
2948
2948
|
}
|
|
2949
|
-
const
|
|
2950
|
-
var
|
|
2951
|
-
return (
|
|
2949
|
+
const P = g(() => {
|
|
2950
|
+
var S;
|
|
2951
|
+
return (S = t.value.data) == null ? void 0 : S.sparkline;
|
|
2952
2952
|
}), O = g(() => ({
|
|
2953
2953
|
display: !1,
|
|
2954
2954
|
beginAtZero: !1
|
|
2955
2955
|
})), x = g(() => ({
|
|
2956
2956
|
display: !1,
|
|
2957
2957
|
beginAtZero: !0
|
|
2958
|
-
})), v = g(() =>
|
|
2959
|
-
label:
|
|
2960
|
-
data:
|
|
2958
|
+
})), v = g(() => P.value.datasets.map((S) => ({
|
|
2959
|
+
label: S.name,
|
|
2960
|
+
data: S.values,
|
|
2961
2961
|
fill: !0,
|
|
2962
2962
|
color: "#36a2eb"
|
|
2963
2963
|
}))), y = g(
|
|
2964
|
-
() => v.value.map((
|
|
2965
|
-
),
|
|
2966
|
-
return (
|
|
2967
|
-
var
|
|
2968
|
-
const
|
|
2964
|
+
() => v.value.map((S) => ({ ...S, backgroundColor: "rgba(54,162,235,0.25)" }))
|
|
2965
|
+
), _ = g(() => Dn(!1)), L = g(() => Dn(!1));
|
|
2966
|
+
return (S, B) => {
|
|
2967
|
+
var D;
|
|
2968
|
+
const F = ce("FmIcon"), R = ce("FmChip"), V = ce("FmTooltip"), C = ce("FmLineChart"), k = ce("FmBarChart");
|
|
2969
2969
|
return X(), le("div", el, [
|
|
2970
|
-
et(
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
fe(
|
|
2970
|
+
et(S.$slots, "menu"),
|
|
2971
|
+
q("p", tl, Te(c.value), 1),
|
|
2972
|
+
q("div", nl, [
|
|
2973
|
+
fe(V, {
|
|
2974
2974
|
disabled: u.value === null,
|
|
2975
2975
|
placement: "right",
|
|
2976
2976
|
"hide-arrow": "",
|
|
@@ -2979,40 +2979,40 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
|
|
|
2979
2979
|
content: _e(() => {
|
|
2980
2980
|
var A;
|
|
2981
2981
|
return [
|
|
2982
|
-
|
|
2982
|
+
q("span", ol, Te(`vs. ${(A = i(l).defaultCompareType) == null ? void 0 : A.split("_").join(" ")}`), 1)
|
|
2983
2983
|
];
|
|
2984
2984
|
}),
|
|
2985
2985
|
default: _e(() => [
|
|
2986
|
-
u.value ? (X(), de(
|
|
2986
|
+
u.value ? (X(), de(R, {
|
|
2987
2987
|
key: 0,
|
|
2988
2988
|
icon: u.value.icon.name,
|
|
2989
2989
|
class: Se(`bg-${u.value.icon.tailwind}`),
|
|
2990
2990
|
compact: ""
|
|
2991
2991
|
}, {
|
|
2992
2992
|
default: _e(() => [
|
|
2993
|
-
fe(
|
|
2993
|
+
fe(F, {
|
|
2994
2994
|
name: u.value.icon.name,
|
|
2995
2995
|
color: u.value.icon.color
|
|
2996
2996
|
}, null, 8, ["name", "color"]),
|
|
2997
|
-
|
|
2997
|
+
q("p", {
|
|
2998
2998
|
class: "fm-typo-en-body-md-600",
|
|
2999
2999
|
style: Pe({ color: u.value.icon.color })
|
|
3000
3000
|
}, Te(u.value.value), 5)
|
|
3001
3001
|
]),
|
|
3002
3002
|
_: 1
|
|
3003
3003
|
}, 8, ["icon", "class"])) : he("", !0),
|
|
3004
|
-
i(o).endDate != null && i(o).startDate != null && u.value === null ? (X(), de(
|
|
3004
|
+
i(o).endDate != null && i(o).startDate != null && u.value === null ? (X(), de(R, {
|
|
3005
3005
|
key: 1,
|
|
3006
3006
|
class: "invisible pointer-events-none",
|
|
3007
3007
|
"aria-hidden": "true",
|
|
3008
3008
|
compact: ""
|
|
3009
3009
|
}, {
|
|
3010
3010
|
default: _e(() => [
|
|
3011
|
-
fe(
|
|
3011
|
+
fe(F, {
|
|
3012
3012
|
name: "arrow_upward",
|
|
3013
3013
|
color: "#C7C7CC"
|
|
3014
3014
|
}),
|
|
3015
|
-
|
|
3015
|
+
B[0] || (B[0] = q("p", { class: "fm-typo-en-body-md-600" }, " ", -1))
|
|
3016
3016
|
]),
|
|
3017
3017
|
_: 1
|
|
3018
3018
|
})) : he("", !0)
|
|
@@ -3020,8 +3020,8 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
|
|
|
3020
3020
|
_: 1
|
|
3021
3021
|
}, 8, ["disabled"])
|
|
3022
3022
|
]),
|
|
3023
|
-
|
|
3024
|
-
f(
|
|
3023
|
+
P.value ? (X(), le("div", al, [
|
|
3024
|
+
f(P.value.type) === "line" ? (X(), de(C, {
|
|
3025
3025
|
key: 0,
|
|
3026
3026
|
class: "sparkline sparkline-chart",
|
|
3027
3027
|
datasets: y.value,
|
|
@@ -3029,12 +3029,12 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
|
|
|
3029
3029
|
display: !1
|
|
3030
3030
|
},
|
|
3031
3031
|
datalabels: { display: !1 },
|
|
3032
|
-
"x-axis": { categories:
|
|
3032
|
+
"x-axis": { categories: P.value.dimensions },
|
|
3033
3033
|
"y-cfg": O.value,
|
|
3034
3034
|
"x-cfg": { display: !1 },
|
|
3035
|
-
tooltip:
|
|
3035
|
+
tooltip: _.value,
|
|
3036
3036
|
"maintain-aspect-ratio": !1
|
|
3037
|
-
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : f(
|
|
3037
|
+
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : f(P.value.type) === "bar" ? (X(), de(k, {
|
|
3038
3038
|
key: 1,
|
|
3039
3039
|
class: "sparkline sparkline-chart",
|
|
3040
3040
|
datasets: v.value,
|
|
@@ -3042,24 +3042,24 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
|
|
|
3042
3042
|
display: !1
|
|
3043
3043
|
},
|
|
3044
3044
|
datalabels: { display: !1 },
|
|
3045
|
-
"x-axis": { categories:
|
|
3045
|
+
"x-axis": { categories: P.value.dimensions },
|
|
3046
3046
|
"y-cfg": x.value,
|
|
3047
3047
|
"x-cfg": { display: !1 },
|
|
3048
|
-
tooltip:
|
|
3048
|
+
tooltip: L.value,
|
|
3049
3049
|
"maintain-aspect-ratio": !1
|
|
3050
3050
|
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : (X(), de(Qr, {
|
|
3051
3051
|
key: 2,
|
|
3052
|
-
dimensions:
|
|
3053
|
-
values: ((
|
|
3054
|
-
"percent-of-total":
|
|
3052
|
+
dimensions: P.value.dimensions,
|
|
3053
|
+
values: ((D = P.value.datasets[0]) == null ? void 0 : D.values) ?? [],
|
|
3054
|
+
"percent-of-total": P.value.percentOfTotal === !0
|
|
3055
3055
|
}, null, 8, ["dimensions", "values", "percent-of-total"]))
|
|
3056
|
-
])) : (X(), le("div", rl,
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3056
|
+
])) : (X(), le("div", rl, B[1] || (B[1] = [
|
|
3057
|
+
q("div", { class: "sparkline" }, [
|
|
3058
|
+
q("div", { class: "flex flex-col gap-8" }, [
|
|
3059
|
+
q("div"),
|
|
3060
|
+
q("div")
|
|
3061
3061
|
]),
|
|
3062
|
-
|
|
3062
|
+
q("div", { class: "grow" })
|
|
3063
3063
|
], -1)
|
|
3064
3064
|
])))
|
|
3065
3065
|
]);
|
|
@@ -3083,7 +3083,7 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3083
3083
|
}),
|
|
3084
3084
|
emits: ["update:modelValue"],
|
|
3085
3085
|
setup(e) {
|
|
3086
|
-
const { t, te: n } = dt(), o = We(e, "modelValue"), { country: l } = ho(), { clearTileSorts: a, setTileSorts: r } = ea(), c = Pn(), u = e, f =
|
|
3086
|
+
const { t, te: n } = dt(), o = We(e, "modelValue"), { country: l } = ho(), { clearTileSorts: a, setTileSorts: r } = ea(), c = Pn(), u = e, f = I([]), P = I(null), O = g(() => {
|
|
3087
3087
|
var h;
|
|
3088
3088
|
return ((h = o.value.data) == null ? void 0 : h.columns) || [{ label: "", key: "" }];
|
|
3089
3089
|
}), x = g(() => {
|
|
@@ -3092,21 +3092,21 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3092
3092
|
}), v = g(() => o.value.colWidths ?? null), y = g(
|
|
3093
3093
|
() => o.value.rowHeight && o.value.rowHeight > 0 ? o.value.rowHeight : 48
|
|
3094
3094
|
);
|
|
3095
|
-
function
|
|
3095
|
+
function _() {
|
|
3096
3096
|
const h = `${y.value}px`;
|
|
3097
3097
|
return {
|
|
3098
3098
|
height: h,
|
|
3099
3099
|
minHeight: h
|
|
3100
3100
|
};
|
|
3101
3101
|
}
|
|
3102
|
-
function
|
|
3102
|
+
function L(h) {
|
|
3103
3103
|
var M;
|
|
3104
3104
|
const p = h ? (M = v.value) == null ? void 0 : M[h] : void 0;
|
|
3105
3105
|
if (!(!p || p <= 0))
|
|
3106
3106
|
return `${p}px`;
|
|
3107
3107
|
}
|
|
3108
|
-
function
|
|
3109
|
-
const p =
|
|
3108
|
+
function S(h) {
|
|
3109
|
+
const p = L(h);
|
|
3110
3110
|
if (p)
|
|
3111
3111
|
return {
|
|
3112
3112
|
boxSizing: "border-box",
|
|
@@ -3115,49 +3115,49 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3115
3115
|
maxWidth: p
|
|
3116
3116
|
};
|
|
3117
3117
|
}
|
|
3118
|
-
const
|
|
3118
|
+
const B = g(() => o.value.filterText), F = g(() => {
|
|
3119
3119
|
var p;
|
|
3120
3120
|
const h = (p = o.value.grandTotalLabel) == null ? void 0 : p.trim();
|
|
3121
3121
|
return h && h.length > 0 ? h : it(t, n, "Grand total", "other");
|
|
3122
|
-
}),
|
|
3122
|
+
}), R = g(() => {
|
|
3123
3123
|
var h, p;
|
|
3124
|
-
if (!(
|
|
3124
|
+
if (!(B.value && B.value.trim().length > 0 || !((h = x.value[0]) != null && h.isRollup) && !((p = x.value[x.value.length - 1]) != null && p.isRollup))) {
|
|
3125
3125
|
if (o.value.rollupPosition === Xe.top || o.value.rollupPosition === void 0)
|
|
3126
3126
|
return Xe.top;
|
|
3127
3127
|
if (o.value.rollupPosition === Xe.bottom)
|
|
3128
3128
|
return Xe.bottom;
|
|
3129
3129
|
}
|
|
3130
|
-
}),
|
|
3131
|
-
const h = y.value, p = 34.5, M = 32,
|
|
3132
|
-
return Math.floor((
|
|
3133
|
-
}),
|
|
3130
|
+
}), V = g(() => {
|
|
3131
|
+
const h = y.value, p = 34.5, M = 32, z = R.value !== void 0 ? 1 : 0, N = (P.value ? P.value.$el.offsetHeight : 0) - h;
|
|
3132
|
+
return Math.floor((N - p - M) / h) - z;
|
|
3133
|
+
}), C = g(() => {
|
|
3134
3134
|
var p, M;
|
|
3135
3135
|
let h = [];
|
|
3136
|
-
switch (
|
|
3136
|
+
switch (R.value) {
|
|
3137
3137
|
case Xe.top:
|
|
3138
|
-
h = [...((p = x.value[0]) == null ? void 0 : p.cells) || []].map((
|
|
3138
|
+
h = [...((p = x.value[0]) == null ? void 0 : p.cells) || []].map((z, N) => {
|
|
3139
3139
|
var K;
|
|
3140
3140
|
return {
|
|
3141
|
-
main:
|
|
3142
|
-
comparison: (K = x.value[0]) == null ? void 0 : K.comparisonCells[
|
|
3143
|
-
rowType: O.value[
|
|
3141
|
+
main: z,
|
|
3142
|
+
comparison: (K = x.value[0]) == null ? void 0 : K.comparisonCells[N],
|
|
3143
|
+
rowType: O.value[N].type
|
|
3144
3144
|
};
|
|
3145
3145
|
});
|
|
3146
3146
|
break;
|
|
3147
3147
|
case Xe.bottom:
|
|
3148
|
-
h = [...((M = x.value[x.value.length - 1]) == null ? void 0 : M.cells) || []].map((
|
|
3148
|
+
h = [...((M = x.value[x.value.length - 1]) == null ? void 0 : M.cells) || []].map((z, N) => {
|
|
3149
3149
|
var K;
|
|
3150
3150
|
return {
|
|
3151
|
-
main:
|
|
3152
|
-
comparison: (K = x.value[x.value.length - 1]) == null ? void 0 : K.comparisonCells[
|
|
3153
|
-
rowType: O.value[
|
|
3151
|
+
main: z,
|
|
3152
|
+
comparison: (K = x.value[x.value.length - 1]) == null ? void 0 : K.comparisonCells[N],
|
|
3153
|
+
rowType: O.value[N].type
|
|
3154
3154
|
};
|
|
3155
3155
|
});
|
|
3156
3156
|
break;
|
|
3157
3157
|
}
|
|
3158
|
-
return h.length > 0 && h[0].main === "" && (h[0].main =
|
|
3158
|
+
return h.length > 0 && h[0].main === "" && (h[0].main = F.value), h;
|
|
3159
3159
|
});
|
|
3160
|
-
function
|
|
3160
|
+
function k(h) {
|
|
3161
3161
|
let p = (h == null ? void 0 : h.main) || "";
|
|
3162
3162
|
return !h || h.main === "" || !h.comparison ? {
|
|
3163
3163
|
main: p
|
|
@@ -3170,12 +3170,12 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3170
3170
|
Nt(() => {
|
|
3171
3171
|
a();
|
|
3172
3172
|
});
|
|
3173
|
-
const
|
|
3174
|
-
let A = 0,
|
|
3173
|
+
const D = I([]);
|
|
3174
|
+
let A = 0, E;
|
|
3175
3175
|
function Q() {
|
|
3176
|
-
var
|
|
3177
|
-
if (!((
|
|
3178
|
-
|
|
3176
|
+
var N;
|
|
3177
|
+
if (!((N = o.value) != null && N.data)) {
|
|
3178
|
+
D.value = [];
|
|
3179
3179
|
return;
|
|
3180
3180
|
}
|
|
3181
3181
|
const h = ++A, p = (o.value.data.rows || []).map((K) => ({
|
|
@@ -3186,19 +3186,19 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3186
3186
|
key: K.key,
|
|
3187
3187
|
type: K.type,
|
|
3188
3188
|
label: K.label
|
|
3189
|
-
})),
|
|
3189
|
+
})), z = {
|
|
3190
3190
|
rows: p,
|
|
3191
3191
|
columns: M,
|
|
3192
|
-
filter:
|
|
3192
|
+
filter: B.value ?? "",
|
|
3193
3193
|
globalSorts: qo(f.value).map((K) => ({
|
|
3194
3194
|
key: K.key,
|
|
3195
3195
|
type: K.type
|
|
3196
3196
|
})),
|
|
3197
|
-
grandTotalPosition:
|
|
3198
|
-
pageSize:
|
|
3197
|
+
grandTotalPosition: R.value,
|
|
3198
|
+
pageSize: V.value
|
|
3199
3199
|
};
|
|
3200
|
-
ta(cl,
|
|
3201
|
-
h === A && (K != null && K.error ? (c.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(K.error),
|
|
3200
|
+
ta(cl, z).then((K) => {
|
|
3201
|
+
h === A && (K != null && K.error ? (c.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(K.error), D.value = []) : D.value = jo(K.data || []));
|
|
3202
3202
|
});
|
|
3203
3203
|
}
|
|
3204
3204
|
we(
|
|
@@ -3209,21 +3209,21 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3209
3209
|
{ immediate: !0, deep: !0 }
|
|
3210
3210
|
);
|
|
3211
3211
|
const oe = g(() => {
|
|
3212
|
-
var M,
|
|
3213
|
-
const h = ((M = o.value.data) == null ? void 0 : M.rows) || [], p = ((
|
|
3212
|
+
var M, z;
|
|
3213
|
+
const h = ((M = o.value.data) == null ? void 0 : M.rows) || [], p = ((z = o.value.data) == null ? void 0 : z.columns) || [];
|
|
3214
3214
|
return JSON.stringify({
|
|
3215
3215
|
rowsLength: h.length,
|
|
3216
|
-
columns: p.map((
|
|
3217
|
-
filter:
|
|
3218
|
-
globalSorts: f.value.map((
|
|
3219
|
-
grandTotalPosition:
|
|
3220
|
-
pageSize:
|
|
3216
|
+
columns: p.map((N) => ({ key: N.key, type: N.type, label: N.label })),
|
|
3217
|
+
filter: B.value ?? "",
|
|
3218
|
+
globalSorts: f.value.map((N) => ({ key: N.key, type: N.type })),
|
|
3219
|
+
grandTotalPosition: R.value,
|
|
3220
|
+
pageSize: V.value
|
|
3221
3221
|
});
|
|
3222
3222
|
});
|
|
3223
3223
|
we(
|
|
3224
3224
|
() => oe.value,
|
|
3225
3225
|
() => {
|
|
3226
|
-
clearTimeout(
|
|
3226
|
+
clearTimeout(E), E = setTimeout(Q, 200);
|
|
3227
3227
|
},
|
|
3228
3228
|
{ immediate: !0 }
|
|
3229
3229
|
);
|
|
@@ -3235,14 +3235,14 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3235
3235
|
}
|
|
3236
3236
|
p.type === Pt.Asc ? p.type = Pt.Desc : p.type === Pt.Desc && (f.value = f.value.filter((M) => M.key !== h));
|
|
3237
3237
|
}
|
|
3238
|
-
const
|
|
3238
|
+
const T = g(() => {
|
|
3239
3239
|
var h;
|
|
3240
3240
|
return (h = o.value.data) != null && h.columns ? o.value.data.columns.map((p, M) => {
|
|
3241
|
-
const
|
|
3241
|
+
const z = it(t, n, p.label, "other"), N = f.value.find((G) => G.key === p.key), K = !!N, H = S(p.key), J = K ? N.type === Pt.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
|
|
3242
3242
|
return {
|
|
3243
3243
|
accessorKey: p.key,
|
|
3244
3244
|
header: () => {
|
|
3245
|
-
const
|
|
3245
|
+
const G = ce("FmIcon");
|
|
3246
3246
|
return jt(
|
|
3247
3247
|
"button",
|
|
3248
3248
|
{
|
|
@@ -3254,9 +3254,9 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3254
3254
|
jt(
|
|
3255
3255
|
"span",
|
|
3256
3256
|
{ class: `${p.type === "NUMERIC" ? "text-right" : ""} whitespace-nowrap` },
|
|
3257
|
-
|
|
3257
|
+
z
|
|
3258
3258
|
),
|
|
3259
|
-
jt(
|
|
3259
|
+
jt(G, {
|
|
3260
3260
|
name: J,
|
|
3261
3261
|
color: K ? "primary" : "neutral-gray-400",
|
|
3262
3262
|
size: "sm",
|
|
@@ -3266,9 +3266,9 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3266
3266
|
]
|
|
3267
3267
|
);
|
|
3268
3268
|
},
|
|
3269
|
-
cell: (
|
|
3269
|
+
cell: (G) => {
|
|
3270
3270
|
var ue, re;
|
|
3271
|
-
const ae =
|
|
3271
|
+
const ae = k(G.getValue()), me = (re = (ue = G == null ? void 0 : G.row) == null ? void 0 : ue.original) == null ? void 0 : re.isRollup;
|
|
3272
3272
|
return jt(
|
|
3273
3273
|
"div",
|
|
3274
3274
|
{
|
|
@@ -3278,7 +3278,7 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3278
3278
|
"flex items-center w-full min-w-0",
|
|
3279
3279
|
"whitespace-nowrap"
|
|
3280
3280
|
].join(" "),
|
|
3281
|
-
style:
|
|
3281
|
+
style: _()
|
|
3282
3282
|
},
|
|
3283
3283
|
[p.type === "NUMERIC" ? Ft(ae.main) : ae.main]
|
|
3284
3284
|
);
|
|
@@ -3291,49 +3291,49 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3291
3291
|
return (h, p) => {
|
|
3292
3292
|
const M = ce("FmTable");
|
|
3293
3293
|
return X(), le("div", dl, [
|
|
3294
|
-
|
|
3294
|
+
q("div", fl, [
|
|
3295
3295
|
et(h.$slots, "menu")
|
|
3296
3296
|
]),
|
|
3297
3297
|
fe(M, {
|
|
3298
3298
|
ref_key: "table",
|
|
3299
|
-
ref:
|
|
3300
|
-
"column-defs":
|
|
3301
|
-
"row-data":
|
|
3302
|
-
"search-value":
|
|
3303
|
-
"page-size":
|
|
3299
|
+
ref: P,
|
|
3300
|
+
"column-defs": T.value,
|
|
3301
|
+
"row-data": D.value,
|
|
3302
|
+
"search-value": B.value,
|
|
3303
|
+
"page-size": V.value,
|
|
3304
3304
|
"shrink-at": !1,
|
|
3305
3305
|
"force-mobile-footer": !0,
|
|
3306
3306
|
class: "scrollbar-hide-table min-h-0 flex-1",
|
|
3307
3307
|
"pin-header-row": !0,
|
|
3308
3308
|
"auto-reset-page-index": !0
|
|
3309
3309
|
}, Go({ _: 2 }, [
|
|
3310
|
-
|
|
3310
|
+
R.value ? {
|
|
3311
3311
|
name: "pin-top",
|
|
3312
3312
|
fn: _e(() => [
|
|
3313
|
-
(X(), de(fo(
|
|
3313
|
+
(X(), de(fo(R.value === i(Xe).bottom ? "tfoot" : "tbody"), null, {
|
|
3314
3314
|
default: _e(() => [
|
|
3315
|
-
|
|
3316
|
-
(X(!0), le(Fe, null, ct(
|
|
3315
|
+
q("tr", ml, [
|
|
3316
|
+
(X(!0), le(Fe, null, ct(C.value, (z, N) => {
|
|
3317
3317
|
var K;
|
|
3318
3318
|
return X(), le("td", {
|
|
3319
|
-
key: `${i(Mt)()}_${
|
|
3319
|
+
key: `${i(Mt)()}_${N}`,
|
|
3320
3320
|
class: "text-fm-color-typo-primary px-16",
|
|
3321
3321
|
style: Pe({
|
|
3322
|
-
...
|
|
3323
|
-
...
|
|
3322
|
+
..._(),
|
|
3323
|
+
...S((K = O.value[N]) == null ? void 0 : K.key)
|
|
3324
3324
|
})
|
|
3325
3325
|
}, [
|
|
3326
|
-
|
|
3326
|
+
q("span", {
|
|
3327
3327
|
class: Se([
|
|
3328
3328
|
"flex items-center text-fm-color-typo-secondary gap-2",
|
|
3329
|
-
|
|
3329
|
+
z.rowType === "NUMERIC" ? "text-right justify-end" : "",
|
|
3330
3330
|
"w-full min-w-0",
|
|
3331
3331
|
"whitespace-nowrap"
|
|
3332
3332
|
]),
|
|
3333
|
-
style: Pe(
|
|
3333
|
+
style: Pe(_())
|
|
3334
3334
|
}, [
|
|
3335
|
-
|
|
3336
|
-
|
|
3335
|
+
q("p", pl, Te(z.rowType === "NUMERIC" ? i(Ft)(z.main) : z.main), 1),
|
|
3336
|
+
q("p", hl, Te(z.comparison ? z.rowType === "NUMERIC" ? `(${i(Ft)(z.comparison)})` : `(${z.comparison})` : ""), 1)
|
|
3337
3337
|
], 6)
|
|
3338
3338
|
], 4);
|
|
3339
3339
|
}), 128))
|
|
@@ -3358,7 +3358,7 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3358
3358
|
}),
|
|
3359
3359
|
emits: ["update:modelValue"],
|
|
3360
3360
|
setup(e) {
|
|
3361
|
-
const t = We(e, "modelValue"), n =
|
|
3361
|
+
const t = We(e, "modelValue"), n = I(null), o = g(() => {
|
|
3362
3362
|
var M;
|
|
3363
3363
|
return ((M = t.value.data) == null ? void 0 : M.xAxis) || [];
|
|
3364
3364
|
}), l = g(() => ({
|
|
@@ -3367,10 +3367,10 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3367
3367
|
var p;
|
|
3368
3368
|
return ((p = t.value.data) == null ? void 0 : p.datasets) ?? [];
|
|
3369
3369
|
}), r = Ht("bar"), c = g(() => t.value.stackBarOverlap === !0), u = g(() => c.value === !1), f = g(() => ({
|
|
3370
|
-
...
|
|
3370
|
+
...V.value,
|
|
3371
3371
|
stacked: u.value
|
|
3372
|
-
})),
|
|
3373
|
-
...
|
|
3372
|
+
})), P = g(() => ({
|
|
3373
|
+
...C.value,
|
|
3374
3374
|
stacked: u.value
|
|
3375
3375
|
})), O = g(() => ({
|
|
3376
3376
|
display: !1
|
|
@@ -3378,33 +3378,33 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3378
3378
|
function x({
|
|
3379
3379
|
datasetIndex: p,
|
|
3380
3380
|
colorIndex: M,
|
|
3381
|
-
breakdownIndex:
|
|
3381
|
+
breakdownIndex: z
|
|
3382
3382
|
}) {
|
|
3383
3383
|
var J;
|
|
3384
|
-
const
|
|
3385
|
-
return Number.isInteger(H) && H > 0 ? H :
|
|
3384
|
+
const N = t.value.chartColorBinding === be.metric ? M : t.value.chartColorBinding === be.breakdown ? z : p, K = (J = t.value.chartColorLayers) == null ? void 0 : J[N], H = Number(K);
|
|
3385
|
+
return Number.isInteger(H) && H > 0 ? H : N + 1;
|
|
3386
3386
|
}
|
|
3387
3387
|
const v = g(() => {
|
|
3388
3388
|
if (a.value.length > 0) {
|
|
3389
|
-
const p = a.value.map((M,
|
|
3390
|
-
const
|
|
3389
|
+
const p = a.value.map((M, z) => {
|
|
3390
|
+
const N = Vt({
|
|
3391
3391
|
datasets: a.value,
|
|
3392
|
-
datasetIndex:
|
|
3392
|
+
datasetIndex: z
|
|
3393
3393
|
}), K = Be({
|
|
3394
|
-
datasetIndex:
|
|
3394
|
+
datasetIndex: N,
|
|
3395
3395
|
isCompare: !1,
|
|
3396
3396
|
metricCount: t.value.metricCount,
|
|
3397
3397
|
mode: t.value.chartColorBinding
|
|
3398
3398
|
}), H = Be({
|
|
3399
|
-
datasetIndex:
|
|
3399
|
+
datasetIndex: N,
|
|
3400
3400
|
isCompare: !1,
|
|
3401
3401
|
metricCount: t.value.metricCount,
|
|
3402
3402
|
mode: be.metric
|
|
3403
3403
|
}), J = _t({
|
|
3404
|
-
fallbackIndex:
|
|
3404
|
+
fallbackIndex: N,
|
|
3405
3405
|
metricCount: t.value.metricCount
|
|
3406
|
-
}),
|
|
3407
|
-
datasetIndex:
|
|
3406
|
+
}), G = x({
|
|
3407
|
+
datasetIndex: N,
|
|
3408
3408
|
colorIndex: K,
|
|
3409
3409
|
breakdownIndex: J
|
|
3410
3410
|
}), me = M.values.map((ue) => ue === null ? NaN : Number(ue));
|
|
@@ -3415,7 +3415,7 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3415
3415
|
dash: !!M.isCompare,
|
|
3416
3416
|
minBarLength: void 0,
|
|
3417
3417
|
grouped: c.value ? !1 : void 0,
|
|
3418
|
-
order: c.value ?
|
|
3418
|
+
order: c.value ? G : void 0,
|
|
3419
3419
|
backgroundColor: t.value.chartColorBinding === be.breakdown ? kt({
|
|
3420
3420
|
breakdownIndex: J,
|
|
3421
3421
|
metricIndex: H,
|
|
@@ -3437,22 +3437,22 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3437
3437
|
return [];
|
|
3438
3438
|
}), {
|
|
3439
3439
|
isTooltipDetailsSheetOpen: y,
|
|
3440
|
-
tooltipDetailsPayload:
|
|
3441
|
-
handleTooltipDetailsSheetVisibility:
|
|
3442
|
-
handleTooltipDetailsHover:
|
|
3443
|
-
handleTooltipDetailsLeave:
|
|
3444
|
-
comparisonTooltip:
|
|
3445
|
-
datalabels:
|
|
3446
|
-
xCfg:
|
|
3447
|
-
yCfg:
|
|
3448
|
-
isTransposed:
|
|
3449
|
-
legend:
|
|
3440
|
+
tooltipDetailsPayload: _,
|
|
3441
|
+
handleTooltipDetailsSheetVisibility: L,
|
|
3442
|
+
handleTooltipDetailsHover: S,
|
|
3443
|
+
handleTooltipDetailsLeave: B,
|
|
3444
|
+
comparisonTooltip: F,
|
|
3445
|
+
datalabels: R,
|
|
3446
|
+
xCfg: V,
|
|
3447
|
+
yCfg: C,
|
|
3448
|
+
isTransposed: k,
|
|
3449
|
+
legend: D,
|
|
3450
3450
|
useCustomLegend: A,
|
|
3451
|
-
legendPosition:
|
|
3451
|
+
legendPosition: E,
|
|
3452
3452
|
isLegendSide: Q,
|
|
3453
3453
|
isLegendBeforeChart: oe,
|
|
3454
3454
|
hiddenDatasetKeys: j,
|
|
3455
|
-
toggleDatasetVisibility:
|
|
3455
|
+
toggleDatasetVisibility: T,
|
|
3456
3456
|
datasets: h
|
|
3457
3457
|
} = Ot({
|
|
3458
3458
|
chartRef: n,
|
|
@@ -3460,23 +3460,23 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3460
3460
|
baseDatasets: v
|
|
3461
3461
|
});
|
|
3462
3462
|
return (p, M) => {
|
|
3463
|
-
var
|
|
3464
|
-
const
|
|
3463
|
+
var N, K, H, J, G, ae;
|
|
3464
|
+
const z = ce("FmBarChart");
|
|
3465
3465
|
return X(), le(Fe, null, [
|
|
3466
|
-
|
|
3466
|
+
q("div", vl, [
|
|
3467
3467
|
et(p.$slots, "menu"),
|
|
3468
|
-
|
|
3468
|
+
q("div", {
|
|
3469
3469
|
class: Se(["chart-layout", {
|
|
3470
|
-
"chart-layout--side": i(A) && (i(
|
|
3470
|
+
"chart-layout--side": i(A) && (i(D).display ?? !1) && i(Q)
|
|
3471
3471
|
}])
|
|
3472
3472
|
}, [
|
|
3473
|
-
i(A) && (i(
|
|
3473
|
+
i(A) && (i(D).display ?? !1) && i(oe) ? (X(), de(Re, {
|
|
3474
3474
|
key: 0,
|
|
3475
3475
|
"chart-ref": n.value,
|
|
3476
|
-
enabled: i(
|
|
3477
|
-
position: i(
|
|
3478
|
-
"text-color": (
|
|
3479
|
-
"font-size": (H = (K = i(
|
|
3476
|
+
enabled: i(D).display ?? !1,
|
|
3477
|
+
position: i(E),
|
|
3478
|
+
"text-color": (N = i(D).labels) == null ? void 0 : N.color,
|
|
3479
|
+
"font-size": (H = (K = i(D).labels) == null ? void 0 : K.font) == null ? void 0 : H.size,
|
|
3480
3480
|
"legend-update-key": i(h),
|
|
3481
3481
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
3482
3482
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -3485,31 +3485,31 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3485
3485
|
"chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
|
|
3486
3486
|
"metric-count": t.value.metricCount,
|
|
3487
3487
|
"hidden-dataset-keys": i(j),
|
|
3488
|
-
onToggleDatasetVisibility: i(
|
|
3488
|
+
onToggleDatasetVisibility: i(T)
|
|
3489
3489
|
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : he("", !0),
|
|
3490
|
-
fe(
|
|
3490
|
+
fe(z, {
|
|
3491
3491
|
ref_key: "chartRef",
|
|
3492
3492
|
ref: n,
|
|
3493
3493
|
class: "bar-chart",
|
|
3494
3494
|
datasets: i(h),
|
|
3495
3495
|
"x-axis": l.value,
|
|
3496
3496
|
"x-cfg": f.value,
|
|
3497
|
-
"y-cfg":
|
|
3498
|
-
transpose: i(
|
|
3497
|
+
"y-cfg": P.value,
|
|
3498
|
+
transpose: i(k),
|
|
3499
3499
|
stacked: u.value,
|
|
3500
3500
|
legend: O.value,
|
|
3501
|
-
tooltip: i(
|
|
3501
|
+
tooltip: i(F),
|
|
3502
3502
|
plugins: [i(r)],
|
|
3503
|
-
datalabels: i(
|
|
3503
|
+
datalabels: i(R),
|
|
3504
3504
|
"maintain-aspect-ratio": !1
|
|
3505
3505
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "legend", "tooltip", "plugins", "datalabels"]),
|
|
3506
|
-
i(A) && (i(
|
|
3506
|
+
i(A) && (i(D).display ?? !1) && !i(oe) ? (X(), de(Re, {
|
|
3507
3507
|
key: 1,
|
|
3508
3508
|
"chart-ref": n.value,
|
|
3509
|
-
enabled: i(
|
|
3510
|
-
position: i(
|
|
3511
|
-
"text-color": (J = i(
|
|
3512
|
-
"font-size": (ae = (
|
|
3509
|
+
enabled: i(D).display ?? !1,
|
|
3510
|
+
position: i(E),
|
|
3511
|
+
"text-color": (J = i(D).labels) == null ? void 0 : J.color,
|
|
3512
|
+
"font-size": (ae = (G = i(D).labels) == null ? void 0 : G.font) == null ? void 0 : ae.size,
|
|
3513
3513
|
"legend-update-key": i(h),
|
|
3514
3514
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
3515
3515
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -3518,16 +3518,16 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3518
3518
|
"chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
|
|
3519
3519
|
"metric-count": t.value.metricCount,
|
|
3520
3520
|
"hidden-dataset-keys": i(j),
|
|
3521
|
-
onToggleDatasetVisibility: i(
|
|
3521
|
+
onToggleDatasetVisibility: i(T)
|
|
3522
3522
|
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : he("", !0)
|
|
3523
3523
|
], 2)
|
|
3524
3524
|
]),
|
|
3525
3525
|
fe(Wt, {
|
|
3526
3526
|
"model-value": i(y),
|
|
3527
|
-
"details-payload": i(
|
|
3528
|
-
"onUpdate:modelValue": i(
|
|
3529
|
-
onValueHover: i(
|
|
3530
|
-
onValueLeave: i(
|
|
3527
|
+
"details-payload": i(_),
|
|
3528
|
+
"onUpdate:modelValue": i(L),
|
|
3529
|
+
onValueHover: i(S),
|
|
3530
|
+
onValueLeave: i(B)
|
|
3531
3531
|
}, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
|
|
3532
3532
|
], 64);
|
|
3533
3533
|
};
|
|
@@ -3542,7 +3542,7 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3542
3542
|
}),
|
|
3543
3543
|
emits: ["update:modelValue"],
|
|
3544
3544
|
setup(e) {
|
|
3545
|
-
const t = We(e, "modelValue"), n =
|
|
3545
|
+
const t = We(e, "modelValue"), n = I(null), o = g(() => {
|
|
3546
3546
|
var H;
|
|
3547
3547
|
return ((H = t.value.data) == null ? void 0 : H.xAxis) || [];
|
|
3548
3548
|
}), l = g(() => ({
|
|
@@ -3550,28 +3550,28 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3550
3550
|
})), a = g(() => {
|
|
3551
3551
|
var H;
|
|
3552
3552
|
return ((H = t.value.data) == null ? void 0 : H.datasets) ?? [];
|
|
3553
|
-
}), r = Ht("bar"), c = g(() => t.value.stackBarOverlap === !0), u = g(() => c.value === !1), f = g(() => o.value.length === 1 && a.value.some((H) => H.isCompare === !0)),
|
|
3554
|
-
...
|
|
3553
|
+
}), r = Ht("bar"), c = g(() => t.value.stackBarOverlap === !0), u = g(() => c.value === !1), f = g(() => o.value.length === 1 && a.value.some((H) => H.isCompare === !0)), P = g(() => ({
|
|
3554
|
+
...D.value,
|
|
3555
3555
|
stacked: u.value
|
|
3556
3556
|
})), O = g(() => ({
|
|
3557
3557
|
...A.value,
|
|
3558
3558
|
stacked: u.value
|
|
3559
3559
|
}));
|
|
3560
3560
|
function x(H) {
|
|
3561
|
-
const J = " - ",
|
|
3562
|
-
return
|
|
3561
|
+
const J = " - ", G = H.lastIndexOf(J);
|
|
3562
|
+
return G < 0 ? {
|
|
3563
3563
|
clusterKey: H,
|
|
3564
3564
|
metricLabel: H
|
|
3565
3565
|
} : {
|
|
3566
|
-
clusterKey: H.slice(0,
|
|
3567
|
-
metricLabel: H.slice(
|
|
3566
|
+
clusterKey: H.slice(0, G),
|
|
3567
|
+
metricLabel: H.slice(G + J.length)
|
|
3568
3568
|
};
|
|
3569
3569
|
}
|
|
3570
3570
|
function v(H, J) {
|
|
3571
3571
|
if (typeof H == "string") {
|
|
3572
|
-
const
|
|
3573
|
-
if (
|
|
3574
|
-
return
|
|
3572
|
+
const G = H.trim();
|
|
3573
|
+
if (G.length > 0)
|
|
3574
|
+
return G;
|
|
3575
3575
|
}
|
|
3576
3576
|
return `Series ${J + 1}`;
|
|
3577
3577
|
}
|
|
@@ -3580,10 +3580,10 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3580
3580
|
colorIndex: J
|
|
3581
3581
|
}) {
|
|
3582
3582
|
var ue;
|
|
3583
|
-
const
|
|
3584
|
-
return Number.isInteger(me) && me > 0 ? me :
|
|
3583
|
+
const G = t.value.chartColorBinding === be.metric ? J : H, ae = (ue = t.value.chartColorLayers) == null ? void 0 : ue[G], me = Number(ae);
|
|
3584
|
+
return Number.isInteger(me) && me > 0 ? me : G + 1;
|
|
3585
3585
|
}
|
|
3586
|
-
function
|
|
3586
|
+
function _(H) {
|
|
3587
3587
|
return {
|
|
3588
3588
|
label: `__comparison_gap__${H}`,
|
|
3589
3589
|
tooltipLabel: `__comparison_gap__${H}`,
|
|
@@ -3597,7 +3597,7 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3597
3597
|
isSpacer: !0
|
|
3598
3598
|
};
|
|
3599
3599
|
}
|
|
3600
|
-
const
|
|
3600
|
+
const L = g(() => {
|
|
3601
3601
|
if (a.value.length === 0)
|
|
3602
3602
|
return [];
|
|
3603
3603
|
const H = a.value.map((re, ve) => ({
|
|
@@ -3605,10 +3605,10 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3605
3605
|
index: ve,
|
|
3606
3606
|
name: v(re == null ? void 0 : re.name, ve),
|
|
3607
3607
|
values: (re == null ? void 0 : re.values) ?? []
|
|
3608
|
-
})), J = /* @__PURE__ */ new Map(),
|
|
3608
|
+
})), J = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Map();
|
|
3609
3609
|
for (const re of H) {
|
|
3610
3610
|
const { clusterKey: ve, metricLabel: Ce } = x(re.name);
|
|
3611
|
-
|
|
3611
|
+
G.has(ve) || G.set(ve, G.size), J.has(Ce) || J.set(Ce, J.size);
|
|
3612
3612
|
}
|
|
3613
3613
|
const ae = Math.max(J.size, 1), me = t.value.chartColorBinding === be.breakdown, ue = t.value.chartUseSecondaryMetricShades !== !1;
|
|
3614
3614
|
return H.map((re) => {
|
|
@@ -3659,58 +3659,58 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3659
3659
|
};
|
|
3660
3660
|
});
|
|
3661
3661
|
}), {
|
|
3662
|
-
isTooltipDetailsSheetOpen:
|
|
3663
|
-
tooltipDetailsPayload:
|
|
3664
|
-
handleTooltipDetailsSheetVisibility:
|
|
3665
|
-
handleTooltipDetailsHover:
|
|
3666
|
-
handleTooltipDetailsLeave:
|
|
3667
|
-
comparisonTooltip:
|
|
3668
|
-
datalabels:
|
|
3669
|
-
xCfg:
|
|
3662
|
+
isTooltipDetailsSheetOpen: S,
|
|
3663
|
+
tooltipDetailsPayload: B,
|
|
3664
|
+
handleTooltipDetailsSheetVisibility: F,
|
|
3665
|
+
handleTooltipDetailsHover: R,
|
|
3666
|
+
handleTooltipDetailsLeave: V,
|
|
3667
|
+
comparisonTooltip: C,
|
|
3668
|
+
datalabels: k,
|
|
3669
|
+
xCfg: D,
|
|
3670
3670
|
yCfg: A,
|
|
3671
|
-
isTransposed:
|
|
3671
|
+
isTransposed: E,
|
|
3672
3672
|
legend: Q,
|
|
3673
3673
|
useCustomLegend: oe,
|
|
3674
3674
|
legendPosition: j,
|
|
3675
|
-
isLegendSide:
|
|
3675
|
+
isLegendSide: T,
|
|
3676
3676
|
isLegendBeforeChart: h,
|
|
3677
3677
|
hiddenDatasetKeys: p,
|
|
3678
3678
|
toggleDatasetVisibility: M,
|
|
3679
|
-
datasets:
|
|
3679
|
+
datasets: z
|
|
3680
3680
|
} = Ot({
|
|
3681
3681
|
chartRef: n,
|
|
3682
3682
|
model: t,
|
|
3683
|
-
baseDatasets:
|
|
3684
|
-
}),
|
|
3683
|
+
baseDatasets: L
|
|
3684
|
+
}), N = g(() => {
|
|
3685
3685
|
if (!f.value)
|
|
3686
|
-
return
|
|
3686
|
+
return z.value;
|
|
3687
3687
|
const H = [];
|
|
3688
|
-
return
|
|
3688
|
+
return z.value.forEach((J, G) => {
|
|
3689
3689
|
H.push({
|
|
3690
3690
|
...J,
|
|
3691
3691
|
barPercentage: vn
|
|
3692
3692
|
});
|
|
3693
|
-
const ae =
|
|
3694
|
-
J.dash === !0 && ae && H.push(
|
|
3693
|
+
const ae = z.value[G + 1];
|
|
3694
|
+
J.dash === !0 && ae && H.push(_(G));
|
|
3695
3695
|
}), H;
|
|
3696
3696
|
}), K = g(() => ({
|
|
3697
3697
|
display: !1,
|
|
3698
3698
|
labels: {
|
|
3699
3699
|
filter: (H, J) => {
|
|
3700
|
-
var
|
|
3701
|
-
return !((ae = (
|
|
3700
|
+
var G, ae;
|
|
3701
|
+
return !((ae = (G = J.datasets) == null ? void 0 : G[H.datasetIndex ?? -1]) != null && ae.isSpacer);
|
|
3702
3702
|
}
|
|
3703
3703
|
}
|
|
3704
3704
|
}));
|
|
3705
3705
|
return (H, J) => {
|
|
3706
3706
|
var ae, me, ue, re, ve, Ce;
|
|
3707
|
-
const
|
|
3707
|
+
const G = ce("FmBarChart");
|
|
3708
3708
|
return X(), le(Fe, null, [
|
|
3709
|
-
|
|
3709
|
+
q("div", bl, [
|
|
3710
3710
|
et(H.$slots, "menu"),
|
|
3711
|
-
|
|
3711
|
+
q("div", {
|
|
3712
3712
|
class: Se(["chart-layout", {
|
|
3713
|
-
"chart-layout--side": i(oe) && (i(Q).display ?? !1) && i(
|
|
3713
|
+
"chart-layout--side": i(oe) && (i(Q).display ?? !1) && i(T)
|
|
3714
3714
|
}])
|
|
3715
3715
|
}, [
|
|
3716
3716
|
i(oe) && (i(Q).display ?? !1) && i(h) ? (X(), de(Re, {
|
|
@@ -3720,7 +3720,7 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3720
3720
|
position: i(j),
|
|
3721
3721
|
"text-color": (ae = i(Q).labels) == null ? void 0 : ae.color,
|
|
3722
3722
|
"font-size": (ue = (me = i(Q).labels) == null ? void 0 : me.font) == null ? void 0 : ue.size,
|
|
3723
|
-
"legend-update-key": i(
|
|
3723
|
+
"legend-update-key": i(z),
|
|
3724
3724
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
3725
3725
|
"chart-color-binding": t.value.chartColorBinding,
|
|
3726
3726
|
"chart-colors": t.value.chartColors,
|
|
@@ -3730,20 +3730,20 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3730
3730
|
"hidden-dataset-keys": i(p),
|
|
3731
3731
|
onToggleDatasetVisibility: i(M)
|
|
3732
3732
|
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : he("", !0),
|
|
3733
|
-
fe(
|
|
3733
|
+
fe(G, {
|
|
3734
3734
|
ref_key: "chartRef",
|
|
3735
3735
|
ref: n,
|
|
3736
3736
|
class: "bar-chart",
|
|
3737
|
-
datasets:
|
|
3737
|
+
datasets: N.value,
|
|
3738
3738
|
"x-axis": l.value,
|
|
3739
|
-
"x-cfg":
|
|
3739
|
+
"x-cfg": P.value,
|
|
3740
3740
|
"y-cfg": O.value,
|
|
3741
|
-
transpose: i(
|
|
3741
|
+
transpose: i(E),
|
|
3742
3742
|
stacked: u.value,
|
|
3743
3743
|
legend: K.value,
|
|
3744
|
-
tooltip: i(
|
|
3744
|
+
tooltip: i(C),
|
|
3745
3745
|
plugins: [i(r)],
|
|
3746
|
-
datalabels: i(
|
|
3746
|
+
datalabels: i(k),
|
|
3747
3747
|
"maintain-aspect-ratio": !1
|
|
3748
3748
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "legend", "tooltip", "plugins", "datalabels"]),
|
|
3749
3749
|
i(oe) && (i(Q).display ?? !1) && !i(h) ? (X(), de(Re, {
|
|
@@ -3753,7 +3753,7 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3753
3753
|
position: i(j),
|
|
3754
3754
|
"text-color": (re = i(Q).labels) == null ? void 0 : re.color,
|
|
3755
3755
|
"font-size": (Ce = (ve = i(Q).labels) == null ? void 0 : ve.font) == null ? void 0 : Ce.size,
|
|
3756
|
-
"legend-update-key": i(
|
|
3756
|
+
"legend-update-key": i(z),
|
|
3757
3757
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
3758
3758
|
"chart-color-binding": t.value.chartColorBinding,
|
|
3759
3759
|
"chart-colors": t.value.chartColors,
|
|
@@ -3766,11 +3766,11 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
|
|
|
3766
3766
|
], 2)
|
|
3767
3767
|
]),
|
|
3768
3768
|
fe(Wt, {
|
|
3769
|
-
"model-value": i(
|
|
3770
|
-
"details-payload": i(
|
|
3771
|
-
"onUpdate:modelValue": i(
|
|
3772
|
-
onValueHover: i(
|
|
3773
|
-
onValueLeave: i(
|
|
3769
|
+
"model-value": i(S),
|
|
3770
|
+
"details-payload": i(B),
|
|
3771
|
+
"onUpdate:modelValue": i(F),
|
|
3772
|
+
onValueHover: i(R),
|
|
3773
|
+
onValueLeave: i(V)
|
|
3774
3774
|
}, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
|
|
3775
3775
|
], 64);
|
|
3776
3776
|
};
|
|
@@ -3802,28 +3802,28 @@ const wl = { class: "widget-content" }, _l = /* @__PURE__ */ Ae({
|
|
|
3802
3802
|
}),
|
|
3803
3803
|
emits: ["update:modelValue"],
|
|
3804
3804
|
setup(e) {
|
|
3805
|
-
const t = We(e, "modelValue"), n =
|
|
3806
|
-
var
|
|
3807
|
-
return ((
|
|
3805
|
+
const t = We(e, "modelValue"), n = I(null), o = g(() => {
|
|
3806
|
+
var T;
|
|
3807
|
+
return ((T = t.value.data) == null ? void 0 : T.xAxis) ?? [];
|
|
3808
3808
|
}), l = g(
|
|
3809
|
-
() => o.value.length === 1 && u.value.length > 0 && u.value.every((
|
|
3809
|
+
() => o.value.length === 1 && u.value.length > 0 && u.value.every((T) => T.values.length === 1)
|
|
3810
3810
|
), a = g(() => l.value ? ["", o.value[0], ""] : o.value), r = g(() => ({
|
|
3811
3811
|
categories: a.value
|
|
3812
3812
|
})), c = g(() => ({
|
|
3813
3813
|
display: !1
|
|
3814
3814
|
})), u = g(() => {
|
|
3815
|
-
var
|
|
3816
|
-
return ((
|
|
3817
|
-
}), f = Ht("line"),
|
|
3818
|
-
...u.value.map((
|
|
3815
|
+
var T;
|
|
3816
|
+
return ((T = t.value.data) == null ? void 0 : T.datasets) ?? [];
|
|
3817
|
+
}), f = Ht("line"), P = Fo("report-line-style-plugin-stack-line"), O = g(() => u.value.length > 0 ? [
|
|
3818
|
+
...u.value.map((T, h) => {
|
|
3819
3819
|
var ue;
|
|
3820
3820
|
const p = Vt({
|
|
3821
3821
|
datasets: u.value,
|
|
3822
3822
|
datasetIndex: h
|
|
3823
3823
|
});
|
|
3824
|
-
let M =
|
|
3824
|
+
let M = T.values;
|
|
3825
3825
|
l.value && (M = [NaN, M[0], NaN]);
|
|
3826
|
-
const
|
|
3826
|
+
const z = M.map((re) => re === null ? NaN : Number(re)), N = Be({
|
|
3827
3827
|
datasetIndex: p,
|
|
3828
3828
|
isCompare: !1,
|
|
3829
3829
|
metricCount: t.value.metricCount,
|
|
@@ -3835,29 +3835,29 @@ const wl = { class: "widget-content" }, _l = /* @__PURE__ */ Ae({
|
|
|
3835
3835
|
mode: be.metric
|
|
3836
3836
|
}), H = Be({
|
|
3837
3837
|
datasetIndex: h,
|
|
3838
|
-
isCompare:
|
|
3838
|
+
isCompare: T.isCompare,
|
|
3839
3839
|
metricCount: t.value.metricCount,
|
|
3840
3840
|
mode: t.value.lineStyleBinding
|
|
3841
|
-
}), J = (ue = t.value.lineStyles) == null ? void 0 : ue[H],
|
|
3841
|
+
}), J = (ue = t.value.lineStyles) == null ? void 0 : ue[H], G = t.value.chartColorBinding === be.breakdown, ae = _t({
|
|
3842
3842
|
fallbackIndex: p,
|
|
3843
3843
|
metricCount: t.value.metricCount
|
|
3844
|
-
}), me =
|
|
3844
|
+
}), me = G ? kt({
|
|
3845
3845
|
breakdownIndex: ae,
|
|
3846
3846
|
metricIndex: K,
|
|
3847
3847
|
metricCount: t.value.metricCount,
|
|
3848
|
-
isCompare:
|
|
3848
|
+
isCompare: T.isCompare,
|
|
3849
3849
|
breakdownColors: t.value.chartBreakdownColors,
|
|
3850
3850
|
useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
|
|
3851
3851
|
customColors: t.value.chartColors
|
|
3852
3852
|
}) : Ye({
|
|
3853
|
-
index:
|
|
3854
|
-
isCompare:
|
|
3853
|
+
index: N,
|
|
3854
|
+
isCompare: T.isCompare,
|
|
3855
3855
|
customColors: t.value.chartColors
|
|
3856
3856
|
});
|
|
3857
3857
|
return {
|
|
3858
|
-
label:
|
|
3859
|
-
data:
|
|
3860
|
-
dash:
|
|
3858
|
+
label: T.name,
|
|
3859
|
+
data: z,
|
|
3860
|
+
dash: T.isCompare,
|
|
3861
3861
|
lineStyle: J,
|
|
3862
3862
|
fill: !0,
|
|
3863
3863
|
color: me,
|
|
@@ -3872,18 +3872,18 @@ const wl = { class: "widget-content" }, _l = /* @__PURE__ */ Ae({
|
|
|
3872
3872
|
isTooltipDetailsSheetOpen: x,
|
|
3873
3873
|
tooltipDetailsPayload: v,
|
|
3874
3874
|
handleTooltipDetailsSheetVisibility: y,
|
|
3875
|
-
handleTooltipDetailsHover:
|
|
3876
|
-
handleTooltipDetailsLeave:
|
|
3877
|
-
comparisonTooltip:
|
|
3878
|
-
datalabels:
|
|
3879
|
-
xCfg:
|
|
3880
|
-
yCfg:
|
|
3881
|
-
isTransposed:
|
|
3882
|
-
legend:
|
|
3883
|
-
useCustomLegend:
|
|
3884
|
-
legendPosition:
|
|
3875
|
+
handleTooltipDetailsHover: _,
|
|
3876
|
+
handleTooltipDetailsLeave: L,
|
|
3877
|
+
comparisonTooltip: S,
|
|
3878
|
+
datalabels: B,
|
|
3879
|
+
xCfg: F,
|
|
3880
|
+
yCfg: R,
|
|
3881
|
+
isTransposed: V,
|
|
3882
|
+
legend: C,
|
|
3883
|
+
useCustomLegend: k,
|
|
3884
|
+
legendPosition: D,
|
|
3885
3885
|
isLegendSide: A,
|
|
3886
|
-
isLegendBeforeChart:
|
|
3886
|
+
isLegendBeforeChart: E,
|
|
3887
3887
|
hiddenDatasetKeys: Q,
|
|
3888
3888
|
toggleDatasetVisibility: oe,
|
|
3889
3889
|
datasets: j
|
|
@@ -3892,24 +3892,24 @@ const wl = { class: "widget-content" }, _l = /* @__PURE__ */ Ae({
|
|
|
3892
3892
|
model: t,
|
|
3893
3893
|
baseDatasets: O
|
|
3894
3894
|
});
|
|
3895
|
-
return (
|
|
3896
|
-
var M,
|
|
3895
|
+
return (T, h) => {
|
|
3896
|
+
var M, z, N, K, H, J;
|
|
3897
3897
|
const p = ce("FmLineChart");
|
|
3898
3898
|
return X(), le(Fe, null, [
|
|
3899
|
-
|
|
3900
|
-
et(
|
|
3901
|
-
|
|
3899
|
+
q("div", wl, [
|
|
3900
|
+
et(T.$slots, "menu"),
|
|
3901
|
+
q("div", {
|
|
3902
3902
|
class: Se(["chart-layout", {
|
|
3903
|
-
"chart-layout--side": i(
|
|
3903
|
+
"chart-layout--side": i(k) && (i(C).display ?? !1) && i(A)
|
|
3904
3904
|
}])
|
|
3905
3905
|
}, [
|
|
3906
|
-
i(
|
|
3906
|
+
i(k) && (i(C).display ?? !1) && i(E) ? (X(), de(Re, {
|
|
3907
3907
|
key: 0,
|
|
3908
3908
|
"chart-ref": n.value,
|
|
3909
|
-
enabled: i(
|
|
3910
|
-
position: i(
|
|
3911
|
-
"text-color": (M = i(
|
|
3912
|
-
"font-size": (
|
|
3909
|
+
enabled: i(C).display ?? !1,
|
|
3910
|
+
position: i(D),
|
|
3911
|
+
"text-color": (M = i(C).labels) == null ? void 0 : M.color,
|
|
3912
|
+
"font-size": (N = (z = i(C).labels) == null ? void 0 : z.font) == null ? void 0 : N.size,
|
|
3913
3913
|
"legend-update-key": i(j),
|
|
3914
3914
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
3915
3915
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -3926,23 +3926,23 @@ const wl = { class: "widget-content" }, _l = /* @__PURE__ */ Ae({
|
|
|
3926
3926
|
class: "line-chart",
|
|
3927
3927
|
datasets: i(j),
|
|
3928
3928
|
"x-axis": r.value,
|
|
3929
|
-
"x-cfg": i(
|
|
3930
|
-
"y-cfg": i(
|
|
3931
|
-
transpose: i(
|
|
3929
|
+
"x-cfg": i(F),
|
|
3930
|
+
"y-cfg": i(R),
|
|
3931
|
+
transpose: i(V),
|
|
3932
3932
|
legend: c.value,
|
|
3933
|
-
tooltip: i(
|
|
3934
|
-
plugins: [i(f), i(
|
|
3933
|
+
tooltip: i(S),
|
|
3934
|
+
plugins: [i(f), i(P)],
|
|
3935
3935
|
stacked: !0,
|
|
3936
|
-
datalabels: i(
|
|
3936
|
+
datalabels: i(B),
|
|
3937
3937
|
"maintain-aspect-ratio": !1
|
|
3938
3938
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "tooltip", "plugins", "datalabels"]),
|
|
3939
|
-
i(
|
|
3939
|
+
i(k) && (i(C).display ?? !1) && !i(E) ? (X(), de(Re, {
|
|
3940
3940
|
key: 1,
|
|
3941
3941
|
"chart-ref": n.value,
|
|
3942
|
-
enabled: i(
|
|
3943
|
-
position: i(
|
|
3944
|
-
"text-color": (K = i(
|
|
3945
|
-
"font-size": (J = (H = i(
|
|
3942
|
+
enabled: i(C).display ?? !1,
|
|
3943
|
+
position: i(D),
|
|
3944
|
+
"text-color": (K = i(C).labels) == null ? void 0 : K.color,
|
|
3945
|
+
"font-size": (J = (H = i(C).labels) == null ? void 0 : H.font) == null ? void 0 : J.size,
|
|
3946
3946
|
"legend-update-key": i(j),
|
|
3947
3947
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
3948
3948
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -3959,8 +3959,8 @@ const wl = { class: "widget-content" }, _l = /* @__PURE__ */ Ae({
|
|
|
3959
3959
|
"model-value": i(x),
|
|
3960
3960
|
"details-payload": i(v),
|
|
3961
3961
|
"onUpdate:modelValue": i(y),
|
|
3962
|
-
onValueHover: i(
|
|
3963
|
-
onValueLeave: i(
|
|
3962
|
+
onValueHover: i(_),
|
|
3963
|
+
onValueLeave: i(L)
|
|
3964
3964
|
}, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
|
|
3965
3965
|
], 64);
|
|
3966
3966
|
};
|
|
@@ -4011,7 +4011,7 @@ const Al = { class: "widget-content" }, Fl = /* @__PURE__ */ Ae({
|
|
|
4011
4011
|
}),
|
|
4012
4012
|
emits: ["update:modelValue"],
|
|
4013
4013
|
setup(e) {
|
|
4014
|
-
const t = We(e, "modelValue"), n =
|
|
4014
|
+
const t = We(e, "modelValue"), n = I(null), o = g(() => {
|
|
4015
4015
|
var h;
|
|
4016
4016
|
return ((h = t.value.data) == null ? void 0 : h.datasets) ?? [];
|
|
4017
4017
|
}), l = g(() => {
|
|
@@ -4023,32 +4023,32 @@ const Al = { class: "widget-content" }, Fl = /* @__PURE__ */ Ae({
|
|
|
4023
4023
|
categories: c.value
|
|
4024
4024
|
})), f = g(() => ({
|
|
4025
4025
|
display: !1
|
|
4026
|
-
})),
|
|
4026
|
+
})), P = Ht("line"), O = Fo("report-line-style-plugin-line"), x = g(() => o.value.length > 0 ? [
|
|
4027
4027
|
...o.value.map((h, p) => {
|
|
4028
4028
|
var Ce;
|
|
4029
4029
|
const M = Vt({
|
|
4030
4030
|
datasets: o.value,
|
|
4031
4031
|
datasetIndex: p
|
|
4032
|
-
}),
|
|
4032
|
+
}), z = Be({
|
|
4033
4033
|
datasetIndex: M,
|
|
4034
4034
|
isCompare: !1,
|
|
4035
4035
|
metricCount: t.value.metricCount,
|
|
4036
4036
|
mode: t.value.chartColorBinding
|
|
4037
|
-
}),
|
|
4037
|
+
}), N = Be({
|
|
4038
4038
|
datasetIndex: M,
|
|
4039
4039
|
isCompare: !1,
|
|
4040
4040
|
metricCount: t.value.metricCount,
|
|
4041
4041
|
mode: be.metric
|
|
4042
4042
|
}), K = Ye({
|
|
4043
|
-
index:
|
|
4043
|
+
index: z,
|
|
4044
4044
|
isCompare: h.isCompare,
|
|
4045
4045
|
customColors: t.value.chartColors
|
|
4046
4046
|
}), H = t.value.chartColorBinding === be.breakdown, J = _t({
|
|
4047
4047
|
fallbackIndex: M,
|
|
4048
4048
|
metricCount: t.value.metricCount
|
|
4049
|
-
}),
|
|
4049
|
+
}), G = H ? kt({
|
|
4050
4050
|
breakdownIndex: J,
|
|
4051
|
-
metricIndex:
|
|
4051
|
+
metricIndex: N,
|
|
4052
4052
|
metricCount: t.value.metricCount,
|
|
4053
4053
|
isCompare: h.isCompare,
|
|
4054
4054
|
breakdownColors: t.value.chartBreakdownColors,
|
|
@@ -4071,57 +4071,57 @@ const Al = { class: "widget-content" }, Fl = /* @__PURE__ */ Ae({
|
|
|
4071
4071
|
dash: !!h.isCompare,
|
|
4072
4072
|
lineStyle: ve,
|
|
4073
4073
|
fill: !1,
|
|
4074
|
-
color:
|
|
4074
|
+
color: G,
|
|
4075
4075
|
pointRadius: ue ? 4 : void 0,
|
|
4076
4076
|
pointHoverRadius: ue ? 6 : void 0,
|
|
4077
|
-
pointBackgroundColor: ue ?
|
|
4078
|
-
pointBorderColor: ue ?
|
|
4077
|
+
pointBackgroundColor: ue ? G : void 0,
|
|
4078
|
+
pointBorderColor: ue ? G : void 0,
|
|
4079
4079
|
pointBorderWidth: ue ? 2 : void 0
|
|
4080
4080
|
};
|
|
4081
4081
|
})
|
|
4082
4082
|
] : []), {
|
|
4083
4083
|
isTooltipDetailsSheetOpen: v,
|
|
4084
4084
|
tooltipDetailsPayload: y,
|
|
4085
|
-
handleTooltipDetailsSheetVisibility:
|
|
4086
|
-
handleTooltipDetailsHover:
|
|
4087
|
-
handleTooltipDetailsLeave:
|
|
4088
|
-
comparisonTooltip:
|
|
4089
|
-
datalabels:
|
|
4090
|
-
xCfg:
|
|
4091
|
-
yCfg:
|
|
4092
|
-
isTransposed:
|
|
4093
|
-
legend:
|
|
4094
|
-
useCustomLegend:
|
|
4085
|
+
handleTooltipDetailsSheetVisibility: _,
|
|
4086
|
+
handleTooltipDetailsHover: L,
|
|
4087
|
+
handleTooltipDetailsLeave: S,
|
|
4088
|
+
comparisonTooltip: B,
|
|
4089
|
+
datalabels: F,
|
|
4090
|
+
xCfg: R,
|
|
4091
|
+
yCfg: V,
|
|
4092
|
+
isTransposed: C,
|
|
4093
|
+
legend: k,
|
|
4094
|
+
useCustomLegend: D,
|
|
4095
4095
|
legendPosition: A,
|
|
4096
|
-
isLegendSide:
|
|
4096
|
+
isLegendSide: E,
|
|
4097
4097
|
isLegendBeforeChart: Q,
|
|
4098
4098
|
hiddenDatasetKeys: oe,
|
|
4099
4099
|
toggleDatasetVisibility: j,
|
|
4100
|
-
datasets:
|
|
4100
|
+
datasets: T
|
|
4101
4101
|
} = Ot({
|
|
4102
4102
|
chartRef: n,
|
|
4103
4103
|
model: t,
|
|
4104
4104
|
baseDatasets: x
|
|
4105
4105
|
});
|
|
4106
4106
|
return (h, p) => {
|
|
4107
|
-
var
|
|
4107
|
+
var z, N, K, H, J, G;
|
|
4108
4108
|
const M = ce("FmLineChart");
|
|
4109
4109
|
return X(), le(Fe, null, [
|
|
4110
|
-
|
|
4110
|
+
q("div", Al, [
|
|
4111
4111
|
et(h.$slots, "menu"),
|
|
4112
|
-
|
|
4112
|
+
q("div", {
|
|
4113
4113
|
class: Se(["chart-layout", {
|
|
4114
|
-
"chart-layout--side": i(
|
|
4114
|
+
"chart-layout--side": i(D) && (i(k).display ?? !1) && i(E)
|
|
4115
4115
|
}])
|
|
4116
4116
|
}, [
|
|
4117
|
-
i(
|
|
4117
|
+
i(D) && (i(k).display ?? !1) && i(Q) ? (X(), de(Re, {
|
|
4118
4118
|
key: 0,
|
|
4119
4119
|
"chart-ref": n.value,
|
|
4120
|
-
enabled: i(
|
|
4120
|
+
enabled: i(k).display ?? !1,
|
|
4121
4121
|
position: i(A),
|
|
4122
|
-
"text-color": (
|
|
4123
|
-
"font-size": (K = (
|
|
4124
|
-
"legend-update-key": i(
|
|
4122
|
+
"text-color": (z = i(k).labels) == null ? void 0 : z.color,
|
|
4123
|
+
"font-size": (K = (N = i(k).labels) == null ? void 0 : N.font) == null ? void 0 : K.size,
|
|
4124
|
+
"legend-update-key": i(T),
|
|
4125
4125
|
"chart-color-binding": t.value.chartColorBinding,
|
|
4126
4126
|
"chart-colors": t.value.chartColors,
|
|
4127
4127
|
"chart-breakdown-colors": t.value.chartBreakdownColors,
|
|
@@ -4135,25 +4135,25 @@ const Al = { class: "widget-content" }, Fl = /* @__PURE__ */ Ae({
|
|
|
4135
4135
|
ref_key: "chartRef",
|
|
4136
4136
|
ref: n,
|
|
4137
4137
|
class: "line-chart",
|
|
4138
|
-
datasets: i(
|
|
4138
|
+
datasets: i(T),
|
|
4139
4139
|
"x-axis": u.value,
|
|
4140
|
-
"x-cfg": i(
|
|
4141
|
-
"y-cfg": i(
|
|
4142
|
-
transpose: i(
|
|
4140
|
+
"x-cfg": i(R),
|
|
4141
|
+
"y-cfg": i(V),
|
|
4142
|
+
transpose: i(C),
|
|
4143
4143
|
legend: f.value,
|
|
4144
|
-
tooltip: i(
|
|
4145
|
-
datalabels: i(
|
|
4146
|
-
plugins: [i(
|
|
4144
|
+
tooltip: i(B),
|
|
4145
|
+
datalabels: i(F),
|
|
4146
|
+
plugins: [i(P), i(O)],
|
|
4147
4147
|
"maintain-aspect-ratio": !1
|
|
4148
4148
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "tooltip", "datalabels", "plugins"]),
|
|
4149
|
-
i(
|
|
4149
|
+
i(D) && (i(k).display ?? !1) && !i(Q) ? (X(), de(Re, {
|
|
4150
4150
|
key: 1,
|
|
4151
4151
|
"chart-ref": n.value,
|
|
4152
|
-
enabled: i(
|
|
4152
|
+
enabled: i(k).display ?? !1,
|
|
4153
4153
|
position: i(A),
|
|
4154
|
-
"text-color": (H = i(
|
|
4155
|
-
"font-size": (
|
|
4156
|
-
"legend-update-key": i(
|
|
4154
|
+
"text-color": (H = i(k).labels) == null ? void 0 : H.color,
|
|
4155
|
+
"font-size": (G = (J = i(k).labels) == null ? void 0 : J.font) == null ? void 0 : G.size,
|
|
4156
|
+
"legend-update-key": i(T),
|
|
4157
4157
|
"chart-color-binding": t.value.chartColorBinding,
|
|
4158
4158
|
"chart-colors": t.value.chartColors,
|
|
4159
4159
|
"chart-breakdown-colors": t.value.chartBreakdownColors,
|
|
@@ -4168,9 +4168,9 @@ const Al = { class: "widget-content" }, Fl = /* @__PURE__ */ Ae({
|
|
|
4168
4168
|
fe(Wt, {
|
|
4169
4169
|
"model-value": i(v),
|
|
4170
4170
|
"details-payload": i(y),
|
|
4171
|
-
"onUpdate:modelValue": i(
|
|
4172
|
-
onValueHover: i(
|
|
4173
|
-
onValueLeave: i(
|
|
4171
|
+
"onUpdate:modelValue": i(_),
|
|
4172
|
+
onValueHover: i(L),
|
|
4173
|
+
onValueLeave: i(S)
|
|
4174
4174
|
}, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
|
|
4175
4175
|
], 64);
|
|
4176
4176
|
};
|
|
@@ -4186,10 +4186,10 @@ const Al = { class: "widget-content" }, Fl = /* @__PURE__ */ Ae({
|
|
|
4186
4186
|
}),
|
|
4187
4187
|
emits: ["update:modelValue"],
|
|
4188
4188
|
setup(e) {
|
|
4189
|
-
const { t } = dt(), { FmForm: n } = sa, o = e, l =
|
|
4189
|
+
const { t } = dt(), { FmForm: n } = sa, o = e, l = I(), a = We(e, "modelValue"), r = I(!0), c = I(!1), u = Pn(), { selectedLocationIds: f, dateRange: P, timeRange: O } = At(an()), x = I(pn.PORTRAIT);
|
|
4190
4190
|
function v() {
|
|
4191
|
-
var
|
|
4192
|
-
(
|
|
4191
|
+
var _;
|
|
4192
|
+
(_ = l.value) == null || _.validateInputs();
|
|
4193
4193
|
}
|
|
4194
4194
|
async function y() {
|
|
4195
4195
|
c.value = !0;
|
|
@@ -4200,24 +4200,24 @@ const Al = { class: "widget-content" }, Fl = /* @__PURE__ */ Ae({
|
|
|
4200
4200
|
orientationTypes: [x.value],
|
|
4201
4201
|
isCombinedLocationLayout: r.value,
|
|
4202
4202
|
timeRange: O.value,
|
|
4203
|
-
dateRange:
|
|
4203
|
+
dateRange: P.value,
|
|
4204
4204
|
locationIds: f.value
|
|
4205
4205
|
});
|
|
4206
|
-
} catch (
|
|
4207
|
-
u.open({ message:
|
|
4206
|
+
} catch (_) {
|
|
4207
|
+
u.open({ message: _.message, type: "error" });
|
|
4208
4208
|
} finally {
|
|
4209
4209
|
c.value = !1;
|
|
4210
4210
|
}
|
|
4211
4211
|
}
|
|
4212
|
-
return (
|
|
4213
|
-
const
|
|
4214
|
-
return X(), de(
|
|
4212
|
+
return (_, L) => {
|
|
4213
|
+
const S = ce("FmRadio"), B = ce("FmRadioGroup"), F = ce("FmButton"), R = ce("FmDialog");
|
|
4214
|
+
return X(), de(R, {
|
|
4215
4215
|
modelValue: a.value,
|
|
4216
|
-
"onUpdate:modelValue":
|
|
4216
|
+
"onUpdate:modelValue": L[2] || (L[2] = (V) => a.value = V),
|
|
4217
4217
|
overlay: !0,
|
|
4218
4218
|
"z-index": 10
|
|
4219
4219
|
}, {
|
|
4220
|
-
"dialog-header": _e(() =>
|
|
4220
|
+
"dialog-header": _e(() => L[3] || (L[3] = [
|
|
4221
4221
|
Jo("Select Orientation")
|
|
4222
4222
|
])),
|
|
4223
4223
|
default: _e(() => [
|
|
@@ -4227,17 +4227,17 @@ const Al = { class: "widget-content" }, Fl = /* @__PURE__ */ Ae({
|
|
|
4227
4227
|
onValidationSuccess: y
|
|
4228
4228
|
}, {
|
|
4229
4229
|
default: _e(() => [
|
|
4230
|
-
|
|
4231
|
-
fe(
|
|
4230
|
+
q("div", Rl, [
|
|
4231
|
+
fe(B, {
|
|
4232
4232
|
modelValue: x.value,
|
|
4233
|
-
"onUpdate:modelValue":
|
|
4233
|
+
"onUpdate:modelValue": L[0] || (L[0] = (V) => x.value = V)
|
|
4234
4234
|
}, {
|
|
4235
4235
|
default: _e(() => [
|
|
4236
|
-
fe(
|
|
4236
|
+
fe(S, {
|
|
4237
4237
|
value: i(pn).PORTRAIT,
|
|
4238
4238
|
label: i(t)("report.common.portrait")
|
|
4239
4239
|
}, null, 8, ["value", "label"]),
|
|
4240
|
-
fe(
|
|
4240
|
+
fe(S, {
|
|
4241
4241
|
value: i(pn).LANDSCAPE,
|
|
4242
4242
|
label: i(t)("report.common.landscape")
|
|
4243
4243
|
}, null, 8, ["value", "label"])
|
|
@@ -4245,15 +4245,15 @@ const Al = { class: "widget-content" }, Fl = /* @__PURE__ */ Ae({
|
|
|
4245
4245
|
_: 1
|
|
4246
4246
|
}, 8, ["modelValue"])
|
|
4247
4247
|
]),
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
fe(
|
|
4248
|
+
q("div", Nl, [
|
|
4249
|
+
L[4] || (L[4] = q("div", { class: "grow" }, null, -1)),
|
|
4250
|
+
fe(F, {
|
|
4251
4251
|
label: i(t)("report.common.cancel"),
|
|
4252
4252
|
variant: "tertiary",
|
|
4253
|
-
onClick:
|
|
4253
|
+
onClick: L[1] || (L[1] = (V) => a.value = !1)
|
|
4254
4254
|
}, null, 8, ["label"]),
|
|
4255
|
-
|
|
4256
|
-
fe(
|
|
4255
|
+
q("div", null, [
|
|
4256
|
+
fe(F, {
|
|
4257
4257
|
label: i(t)("report.common.download"),
|
|
4258
4258
|
loading: c.value,
|
|
4259
4259
|
onClick: v
|
|
@@ -4270,32 +4270,32 @@ const Al = { class: "widget-content" }, Fl = /* @__PURE__ */ Ae({
|
|
|
4270
4270
|
}
|
|
4271
4271
|
});
|
|
4272
4272
|
function Vl(e) {
|
|
4273
|
-
const { breakpoints: t } = $t(), { containerRef: n, isTable: o =
|
|
4274
|
-
let l =
|
|
4273
|
+
const { breakpoints: t } = $t(), { containerRef: n, isTable: o = I(!0) } = e;
|
|
4274
|
+
let l = I(1), a = null, r = null, c = null, u = null, f = null, P = null;
|
|
4275
4275
|
function O() {
|
|
4276
4276
|
return n.value ? n.value.querySelector("table") : null;
|
|
4277
4277
|
}
|
|
4278
4278
|
function x() {
|
|
4279
|
-
var
|
|
4280
|
-
const
|
|
4279
|
+
var D;
|
|
4280
|
+
const C = [];
|
|
4281
4281
|
n.value && n.value.querySelectorAll("div,section,main,article,aside").forEach((A) => {
|
|
4282
4282
|
if (A.scrollWidth > A.clientWidth) {
|
|
4283
|
-
const
|
|
4284
|
-
(
|
|
4283
|
+
const E = window.getComputedStyle(A);
|
|
4284
|
+
(E.overflowX === "auto" || E.overflowX === "scroll") && C.push(A);
|
|
4285
4285
|
}
|
|
4286
4286
|
});
|
|
4287
|
-
let
|
|
4288
|
-
for (;
|
|
4289
|
-
if (
|
|
4290
|
-
const A = window.getComputedStyle(
|
|
4291
|
-
(A.overflowX === "auto" || A.overflowX === "scroll") &&
|
|
4287
|
+
let k = (D = n.value) == null ? void 0 : D.parentElement;
|
|
4288
|
+
for (; k; ) {
|
|
4289
|
+
if (k.scrollWidth > k.clientWidth) {
|
|
4290
|
+
const A = window.getComputedStyle(k);
|
|
4291
|
+
(A.overflowX === "auto" || A.overflowX === "scroll") && C.push(k);
|
|
4292
4292
|
}
|
|
4293
|
-
|
|
4293
|
+
k = k.parentElement;
|
|
4294
4294
|
}
|
|
4295
|
-
return
|
|
4295
|
+
return C;
|
|
4296
4296
|
}
|
|
4297
4297
|
function v() {
|
|
4298
|
-
if (
|
|
4298
|
+
if (R(), !o.value || !n.value || (r = O(), !r) || (c = r.querySelector("thead"), !c)) return;
|
|
4299
4299
|
a = document.createElement("div"), a.className = "sticky-header-clone", a.style.cssText = `
|
|
4300
4300
|
position: fixed;
|
|
4301
4301
|
top: ${l.value}px;
|
|
@@ -4306,37 +4306,37 @@ function Vl(e) {
|
|
|
4306
4306
|
pointer-events: none;
|
|
4307
4307
|
visibility: hidden;
|
|
4308
4308
|
`;
|
|
4309
|
-
const
|
|
4310
|
-
|
|
4309
|
+
const C = document.createElement("table");
|
|
4310
|
+
C.className = r.className, C.style.cssText = `
|
|
4311
4311
|
table-layout: fixed;
|
|
4312
4312
|
width: ${r.offsetWidth}px;
|
|
4313
4313
|
margin: 0;
|
|
4314
4314
|
border-collapse: collapse;
|
|
4315
4315
|
pointer-events: auto;
|
|
4316
4316
|
`;
|
|
4317
|
-
const
|
|
4318
|
-
|
|
4317
|
+
const k = c.cloneNode(!0);
|
|
4318
|
+
k.style.cssText = "pointer-events: auto;", y(c, k), C.appendChild(k), a.appendChild(C), document.body.appendChild(a), S(), B(), F(), L();
|
|
4319
4319
|
}
|
|
4320
|
-
function y(
|
|
4321
|
-
const
|
|
4322
|
-
|
|
4320
|
+
function y(C, k) {
|
|
4321
|
+
const D = C.querySelectorAll("th, td"), A = k.querySelectorAll("th, td");
|
|
4322
|
+
D.forEach((E, Q) => {
|
|
4323
4323
|
const oe = A[Q];
|
|
4324
4324
|
if (!oe) return;
|
|
4325
|
-
const j =
|
|
4325
|
+
const j = E, T = window.getComputedStyle(j);
|
|
4326
4326
|
Object.assign(oe.style, {
|
|
4327
4327
|
width: `${j.offsetWidth}px`,
|
|
4328
4328
|
minWidth: `${j.offsetWidth}px`,
|
|
4329
4329
|
maxWidth: `${j.offsetWidth}px`,
|
|
4330
4330
|
height: `${j.offsetHeight}px`,
|
|
4331
|
-
padding:
|
|
4332
|
-
backgroundColor:
|
|
4333
|
-
borderBottom:
|
|
4334
|
-
fontSize:
|
|
4335
|
-
fontWeight:
|
|
4336
|
-
textAlign:
|
|
4337
|
-
verticalAlign:
|
|
4331
|
+
padding: T.padding,
|
|
4332
|
+
backgroundColor: T.backgroundColor,
|
|
4333
|
+
borderBottom: T.borderBottom,
|
|
4334
|
+
fontSize: T.fontSize,
|
|
4335
|
+
fontWeight: T.fontWeight,
|
|
4336
|
+
textAlign: T.textAlign,
|
|
4337
|
+
verticalAlign: T.verticalAlign,
|
|
4338
4338
|
boxSizing: "border-box",
|
|
4339
|
-
cursor:
|
|
4339
|
+
cursor: T.cursor || "pointer",
|
|
4340
4340
|
pointerEvents: "auto"
|
|
4341
4341
|
}), oe.onclick = (h) => {
|
|
4342
4342
|
h.preventDefault(), h.stopPropagation();
|
|
@@ -4347,104 +4347,104 @@ function Vl(e) {
|
|
|
4347
4347
|
};
|
|
4348
4348
|
});
|
|
4349
4349
|
}
|
|
4350
|
-
function
|
|
4351
|
-
const
|
|
4352
|
-
if (
|
|
4350
|
+
function _() {
|
|
4351
|
+
const C = t.value.xs || t.value.sm, k = document.querySelector('[data-editor-header="true"]'), D = document.querySelector('[data-menu-tab="true"]');
|
|
4352
|
+
if (C && !k)
|
|
4353
4353
|
return 1;
|
|
4354
|
-
if (
|
|
4355
|
-
return
|
|
4356
|
-
if (
|
|
4357
|
-
let A =
|
|
4354
|
+
if (k)
|
|
4355
|
+
return k.getBoundingClientRect().bottom;
|
|
4356
|
+
if (D) {
|
|
4357
|
+
let A = D;
|
|
4358
4358
|
for (; A; ) {
|
|
4359
4359
|
if (window.getComputedStyle(A).position === "sticky")
|
|
4360
4360
|
return A.getBoundingClientRect().bottom;
|
|
4361
4361
|
A = A.parentElement;
|
|
4362
4362
|
}
|
|
4363
|
-
return
|
|
4363
|
+
return D.getBoundingClientRect().bottom;
|
|
4364
4364
|
}
|
|
4365
4365
|
return l.value;
|
|
4366
4366
|
}
|
|
4367
|
-
function
|
|
4367
|
+
function L() {
|
|
4368
4368
|
if (!a || !r || !c || !n.value) return;
|
|
4369
|
-
const
|
|
4370
|
-
if (!(
|
|
4369
|
+
const C = n.value.getBoundingClientRect(), k = r.getBoundingClientRect(), D = c.getBoundingClientRect(), A = _();
|
|
4370
|
+
if (!(k.top <= A && k.bottom >= A + D.height)) {
|
|
4371
4371
|
a.style.visibility = "hidden";
|
|
4372
4372
|
return;
|
|
4373
4373
|
}
|
|
4374
4374
|
a.style.visibility = "visible", a.style.top = `${A}px`;
|
|
4375
|
-
const Q = window.getComputedStyle(n.value), oe = parseFloat(Q.paddingLeft) || 0, j = parseFloat(Q.paddingRight) || 0,
|
|
4376
|
-
if (
|
|
4375
|
+
const Q = window.getComputedStyle(n.value), oe = parseFloat(Q.paddingLeft) || 0, j = parseFloat(Q.paddingRight) || 0, T = C.left + oe, h = C.right - j, p = Math.max(T, C.left), M = Math.min(h, C.right), z = Math.max(0, M - p);
|
|
4376
|
+
if (z <= 0) {
|
|
4377
4377
|
a.style.visibility = "hidden";
|
|
4378
4378
|
return;
|
|
4379
4379
|
}
|
|
4380
|
-
a.style.left = `${p}px`, a.style.width = `${
|
|
4381
|
-
const
|
|
4382
|
-
|
|
4380
|
+
a.style.left = `${p}px`, a.style.width = `${z}px`;
|
|
4381
|
+
const N = a.querySelector("table");
|
|
4382
|
+
N && (N.style.width = `${r.offsetWidth}px`, N.style.marginLeft = `${D.left - p}px`);
|
|
4383
4383
|
}
|
|
4384
|
-
function
|
|
4385
|
-
var
|
|
4386
|
-
f = () => requestAnimationFrame(
|
|
4387
|
-
f &&
|
|
4384
|
+
function S() {
|
|
4385
|
+
var k;
|
|
4386
|
+
f = () => requestAnimationFrame(L), window.addEventListener("scroll", f, { passive: !0 }), x().forEach((D) => {
|
|
4387
|
+
f && D.addEventListener("scroll", f, { passive: !0 });
|
|
4388
4388
|
});
|
|
4389
|
-
let
|
|
4390
|
-
for (;
|
|
4391
|
-
|
|
4389
|
+
let C = (k = n.value) == null ? void 0 : k.parentElement;
|
|
4390
|
+
for (; C; )
|
|
4391
|
+
C !== document.body && (C.scrollHeight > C.clientHeight || C.scrollWidth > C.clientWidth) && C.addEventListener("scroll", f, { passive: !0 }), C = C.parentElement;
|
|
4392
4392
|
}
|
|
4393
|
-
function
|
|
4393
|
+
function B() {
|
|
4394
4394
|
u = new ResizeObserver(() => {
|
|
4395
4395
|
if (c && a) {
|
|
4396
|
-
const
|
|
4397
|
-
|
|
4398
|
-
const
|
|
4399
|
-
|
|
4396
|
+
const C = a.querySelector("thead");
|
|
4397
|
+
C && y(c, C);
|
|
4398
|
+
const k = a.querySelector("table");
|
|
4399
|
+
k && r && (k.style.width = `${r.offsetWidth}px`);
|
|
4400
4400
|
}
|
|
4401
|
-
|
|
4401
|
+
L();
|
|
4402
4402
|
}), n.value && u.observe(n.value), r && u.observe(r);
|
|
4403
4403
|
}
|
|
4404
|
-
function
|
|
4404
|
+
function F() {
|
|
4405
4405
|
if (!c) return;
|
|
4406
|
-
const
|
|
4406
|
+
const C = yn(() => v(), 100), k = () => {
|
|
4407
4407
|
if (c && a) {
|
|
4408
|
-
const
|
|
4409
|
-
|
|
4408
|
+
const D = a.querySelector("thead");
|
|
4409
|
+
D && y(c, D), L();
|
|
4410
4410
|
}
|
|
4411
4411
|
};
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
}),
|
|
4412
|
+
P = new MutationObserver((D) => {
|
|
4413
|
+
D.some((E) => E.type === "childList" ? E.addedNodes.length > 0 || E.removedNodes.length > 0 : !1) ? C() : k();
|
|
4414
|
+
}), P.observe(c, {
|
|
4415
4415
|
childList: !0,
|
|
4416
4416
|
subtree: !0,
|
|
4417
4417
|
attributes: !0,
|
|
4418
4418
|
characterData: !0
|
|
4419
4419
|
});
|
|
4420
4420
|
}
|
|
4421
|
-
function
|
|
4422
|
-
var
|
|
4421
|
+
function R() {
|
|
4422
|
+
var C;
|
|
4423
4423
|
if (a && (a.remove(), a = null), f) {
|
|
4424
|
-
window.removeEventListener("scroll", f), x().forEach((
|
|
4425
|
-
f &&
|
|
4424
|
+
window.removeEventListener("scroll", f), x().forEach((D) => {
|
|
4425
|
+
f && D.removeEventListener("scroll", f);
|
|
4426
4426
|
});
|
|
4427
|
-
let
|
|
4428
|
-
for (;
|
|
4429
|
-
|
|
4427
|
+
let k = (C = n.value) == null ? void 0 : C.parentElement;
|
|
4428
|
+
for (; k; )
|
|
4429
|
+
k.removeEventListener("scroll", f), k = k.parentElement;
|
|
4430
4430
|
f = null;
|
|
4431
4431
|
}
|
|
4432
|
-
u && (u.disconnect(), u = null),
|
|
4432
|
+
u && (u.disconnect(), u = null), P && (P.disconnect(), P = null), r = null, c = null;
|
|
4433
4433
|
}
|
|
4434
|
-
function
|
|
4434
|
+
function V() {
|
|
4435
4435
|
v();
|
|
4436
4436
|
}
|
|
4437
|
-
return we(o, (
|
|
4438
|
-
|
|
4437
|
+
return we(o, (C) => {
|
|
4438
|
+
C ? v() : R();
|
|
4439
4439
|
}), we(l, () => {
|
|
4440
|
-
a && (a.style.top = `${l.value}px`,
|
|
4440
|
+
a && (a.style.top = `${l.value}px`, L());
|
|
4441
4441
|
}), we(n, () => {
|
|
4442
4442
|
n.value && o.value && setTimeout(v, 100);
|
|
4443
4443
|
}), Nt(() => {
|
|
4444
4444
|
o.value && setTimeout(v, 100);
|
|
4445
4445
|
}), mo(() => {
|
|
4446
|
-
|
|
4447
|
-
}), { refresh:
|
|
4446
|
+
R();
|
|
4447
|
+
}), { refresh: V, cleanup: R };
|
|
4448
4448
|
}
|
|
4449
4449
|
function zl(e) {
|
|
4450
4450
|
let t, n, o, l;
|
|
@@ -4521,41 +4521,43 @@ function Hl(e) {
|
|
|
4521
4521
|
return "option" in e && e.option && t.push(e.option), "aggregation" in e && e.aggregation && t.push(e.aggregation), t.push(e.label.replace(/[^\p{L}\p{N}_]+/gu, "")), t.join("_").toLowerCase();
|
|
4522
4522
|
}
|
|
4523
4523
|
function Wl(e, t, n = []) {
|
|
4524
|
-
var v, y,
|
|
4524
|
+
var v, y, _, L, S, B;
|
|
4525
4525
|
if (!e || !Array.isArray(e.columns) || !Array.isArray(e.rows))
|
|
4526
4526
|
return [];
|
|
4527
|
-
const o = (
|
|
4527
|
+
const o = (F) => F.schemaName === t.schemaName && F.name === t.name && (t.option ? F.option === t.option : !0), l = n.findIndex(o);
|
|
4528
4528
|
if (l === -1)
|
|
4529
4529
|
return [];
|
|
4530
4530
|
if (((v = n[l]) == null ? void 0 : v.hide) === !0)
|
|
4531
4531
|
return [];
|
|
4532
|
-
|
|
4532
|
+
if (((y = n[l]) == null ? void 0 : y.moveToColumn) === !0)
|
|
4533
|
+
return [];
|
|
4534
|
+
const a = n.filter((F) => F.hide !== !0 && F.moveToColumn !== !0), r = a.findIndex(o);
|
|
4533
4535
|
if (r === -1)
|
|
4534
4536
|
return [];
|
|
4535
4537
|
const u = e.columns.reduce(
|
|
4536
|
-
(
|
|
4538
|
+
(F, R, V) => (((R == null ? void 0 : R.aggregationType) ?? null) === null && F.push(V), F),
|
|
4537
4539
|
[]
|
|
4538
4540
|
)[r];
|
|
4539
4541
|
if (typeof u == "number")
|
|
4540
|
-
return e.rows.map((
|
|
4541
|
-
var
|
|
4542
|
-
return (
|
|
4543
|
-
}).filter((
|
|
4544
|
-
const f = e.columns.reduce((
|
|
4545
|
-
(
|
|
4546
|
-
var
|
|
4542
|
+
return e.rows.map((F) => {
|
|
4543
|
+
var R;
|
|
4544
|
+
return (R = F == null ? void 0 : F.cells) == null ? void 0 : R[u];
|
|
4545
|
+
}).filter((F) => F != null);
|
|
4546
|
+
const f = e.columns.reduce((F, R, V) => (String((R == null ? void 0 : R.type) ?? (R == null ? void 0 : R.dataType) ?? "").toUpperCase() === "STRING" && F.push(V), F), []), O = a.reduce(
|
|
4547
|
+
(F, R, V) => {
|
|
4548
|
+
var k, D, A, E;
|
|
4547
4549
|
return String(
|
|
4548
|
-
((
|
|
4549
|
-
).toUpperCase() === "STRING" &&
|
|
4550
|
+
((D = (k = e.columns) == null ? void 0 : k[V]) == null ? void 0 : D.type) ?? ((E = (A = e.columns) == null ? void 0 : A[V]) == null ? void 0 : E.dataType) ?? ""
|
|
4551
|
+
).toUpperCase() === "STRING" && F.push(V), F;
|
|
4550
4552
|
},
|
|
4551
4553
|
[]
|
|
4552
4554
|
).indexOf(r), x = O >= 0 ? f[O] ?? -1 : String(
|
|
4553
|
-
((
|
|
4555
|
+
((L = (_ = e.columns) == null ? void 0 : _[r]) == null ? void 0 : L.type) ?? ((B = (S = e.columns) == null ? void 0 : S[r]) == null ? void 0 : B.dataType) ?? ""
|
|
4554
4556
|
).toUpperCase() === "STRING" ? r : -1;
|
|
4555
|
-
return x === -1 ? [] : e.rows.map((
|
|
4556
|
-
var
|
|
4557
|
-
return (
|
|
4558
|
-
}).filter((
|
|
4557
|
+
return x === -1 ? [] : e.rows.map((F) => {
|
|
4558
|
+
var R;
|
|
4559
|
+
return (R = F == null ? void 0 : F.cells) == null ? void 0 : R[x];
|
|
4560
|
+
}).filter((F) => F != null);
|
|
4559
4561
|
}
|
|
4560
4562
|
const Ol = {
|
|
4561
4563
|
key: 0,
|
|
@@ -4606,53 +4608,53 @@ const Ol = {
|
|
|
4606
4608
|
}),
|
|
4607
4609
|
emits: /* @__PURE__ */ He(["update:table-response"], ["update:modelValue"]),
|
|
4608
4610
|
setup(e, { emit: t }) {
|
|
4609
|
-
const n =
|
|
4610
|
-
var
|
|
4611
|
-
return (
|
|
4611
|
+
const n = I(!0), o = We(e, "modelValue"), l = t, a = o.value.widget.config, { t: r, te: c, locale: u } = dt(), f = e, P = I(null), O = g(() => o.value.widget.type === Y.Table), x = g(() => {
|
|
4612
|
+
var w;
|
|
4613
|
+
return (w = P.value) == null ? void 0 : w.$el;
|
|
4612
4614
|
}), { refresh: v } = Vl({
|
|
4613
4615
|
containerRef: x,
|
|
4614
4616
|
isTable: O
|
|
4615
|
-
}), y =
|
|
4617
|
+
}), y = I(a.rollup), _ = I(Mt()), L = I(a.drillDimension), S = g(() => {
|
|
4616
4618
|
if (ke.value.length > 0) {
|
|
4617
|
-
const
|
|
4618
|
-
(se) => se.value ===
|
|
4619
|
+
const w = ke.value.findIndex(
|
|
4620
|
+
(se) => se.value === L.value
|
|
4619
4621
|
);
|
|
4620
|
-
return
|
|
4622
|
+
return w >= 0 ? w : 0;
|
|
4621
4623
|
} else
|
|
4622
4624
|
return -1;
|
|
4623
|
-
}),
|
|
4624
|
-
() =>
|
|
4625
|
-
),
|
|
4625
|
+
}), B = g(() => S.value !== 0), F = g(
|
|
4626
|
+
() => S.value != ke.value.length - 1
|
|
4627
|
+
), R = I(a.showTitle ?? !0), V = I(a.titleFontSize ?? 14), C = I(a.titleBold ?? !1), k = I(a.titleItalic ?? !1), D = I(a.titleUnderline ?? !1), A = I(
|
|
4626
4628
|
Array.isArray(a.chartColors) ? [...a.chartColors] : void 0
|
|
4627
|
-
),
|
|
4629
|
+
), E = I(
|
|
4628
4630
|
Array.isArray(a.chartColorLayers) ? [...a.chartColorLayers] : void 0
|
|
4629
|
-
), Q =
|
|
4631
|
+
), Q = I(
|
|
4630
4632
|
Array.isArray(a.chartBreakdownColors) ? [...a.chartBreakdownColors] : void 0
|
|
4631
|
-
), oe =
|
|
4633
|
+
), oe = I(a.chartUseSecondaryMetricShades ?? !0), j = I(a.chartColorBinding), T = I(
|
|
4632
4634
|
Array.isArray(a.lineStyles) ? [...a.lineStyles] : void 0
|
|
4633
|
-
), h =
|
|
4635
|
+
), h = I(a.lineStyleBinding), p = I(a.showLabel ?? !1), M = I(a.labelAlign ?? xn.center), z = I(a.labelAnchor ?? Cn.center), N = I(a.labelRotation ?? 0), K = I(a.labelOffset ?? 0), H = I(a.labelFontSize ?? 12), J = g(
|
|
4634
4636
|
() => {
|
|
4635
|
-
var
|
|
4636
|
-
return ((
|
|
4637
|
+
var w;
|
|
4638
|
+
return ((w = Ue.value) == null ? void 0 : w.showSearchBar) === !0 && (te.value.config.showSearchBar ?? !0);
|
|
4637
4639
|
}
|
|
4638
|
-
),
|
|
4640
|
+
), G = I(a.showX ?? !0), ae = I(a.xPosition ?? wn.bottom), me = I(a.showXGrid ?? !1), ue = I(a.showXTick ?? !0), re = I(a.xTickFontSize ?? 12), ve = I(a.showXTitle ?? !1), Ce = I(a.xTitle ?? ""), Ne = I(a.xTitleFontSize ?? 12), $e = I(a.showY ?? !0), Le = I(a.yPosition ?? _n.left), ft = I(a.showYGrid ?? !1), tt = I(a.showYTick ?? !0), nt = I(a.yTickFontSize ?? 12), mt = I(a.showYTitle ?? !1), pt = I(a.yTitle ?? ""), ht = I(a.yTitleFontSize ?? 12), gt = I(a.showLegend ?? void 0), ot = I(a.legendPosition ?? Sn.top), Ee = I(a.usePointStyle ?? !0), at = I(a.legendFontSize), Ge = I(a.legendColor ?? "#6b6b6b"), Ut = I(a.maxTooltipItems), Kt = I(a.stackBarOverlap ?? !1), Xt = I(a.rowHeight ?? null), Tt = I(a.colWidths ?? null), Oe = I(!1), Lt = I(""), { breakpoints: qe, getBreakpointsBoundary: rt } = $t(), Dt = I(), Yt = I(window.innerWidth), xe = g(
|
|
4639
4641
|
() => f.customScreenWidth === void 0 ? Yt.value : f.customScreenWidth
|
|
4640
4642
|
), It = g(
|
|
4641
4643
|
() => (xe == null ? void 0 : xe.value) > rt("xs")[1] && (xe == null ? void 0 : xe.value) <= rt("sm")[1]
|
|
4642
4644
|
), ln = g(
|
|
4643
4645
|
() => (xe == null ? void 0 : xe.value) > rt("sm")[1] && (xe == null ? void 0 : xe.value) <= rt("md")[1]
|
|
4644
4646
|
), sn = g(() => (xe == null ? void 0 : xe.value) > rt("md")[1]), Et = g(() => {
|
|
4645
|
-
const
|
|
4646
|
-
return sn.value || ln.value ? Ll(
|
|
4647
|
+
const w = o.value.size.width;
|
|
4648
|
+
return sn.value || ln.value ? Ll(w) : It.value ? Dl(w) : Il(w);
|
|
4647
4649
|
}), Ue = g(
|
|
4648
|
-
() => ia.find((
|
|
4650
|
+
() => ia.find((w) => w.type === o.value.widget.type)
|
|
4649
4651
|
), un = g(
|
|
4650
4652
|
() => {
|
|
4651
|
-
var
|
|
4652
|
-
return
|
|
4653
|
+
var w, se, Ie;
|
|
4654
|
+
return R.value || J.value || (((w = Ue.value) == null ? void 0 : w.showLabel) ?? !1) || (((se = Ue.value) == null ? void 0 : se.showDrillDimension) ?? !1) && ke.value.length > 0 || (((Ie = Ue.value) == null ? void 0 : Ie.showRollup) ?? !1) && Ve.value.length > 0;
|
|
4653
4655
|
}
|
|
4654
4656
|
), je = yn(async () => {
|
|
4655
|
-
Yt.value = window.innerWidth, Dt.value = Ro(),
|
|
4657
|
+
Yt.value = window.innerWidth, Dt.value = Ro(), _.value = Mt(), await co(), v();
|
|
4656
4658
|
}), s = g(() => {
|
|
4657
4659
|
if (ua(te.value.type, m.value))
|
|
4658
4660
|
switch (o.value.widget.type) {
|
|
@@ -4679,22 +4681,22 @@ const Ol = {
|
|
|
4679
4681
|
}
|
|
4680
4682
|
else
|
|
4681
4683
|
return Un;
|
|
4682
|
-
}), m =
|
|
4683
|
-
const
|
|
4684
|
+
}), m = I(null), { selectedLocationIds: d, dateRange: b, compareDateRange: $, timeRange: W } = At(an()), Z = na(), { globalFilters: ee, lastAppliedTileFilterIds: U } = At(Z), { businessDataVersion: ie } = At(an()), ge = I(!0), te = g(() => {
|
|
4685
|
+
const w = JSON.parse(JSON.stringify(o.value.widget));
|
|
4684
4686
|
return {
|
|
4685
|
-
...
|
|
4687
|
+
...w,
|
|
4686
4688
|
config: {
|
|
4687
|
-
...
|
|
4689
|
+
...w.config,
|
|
4688
4690
|
rollup: y.value,
|
|
4689
|
-
drillDimension:
|
|
4691
|
+
drillDimension: L.value,
|
|
4690
4692
|
showGrandTotal: !1
|
|
4691
4693
|
}
|
|
4692
4694
|
};
|
|
4693
4695
|
}), ne = g(() => {
|
|
4694
4696
|
var Ie;
|
|
4695
|
-
const
|
|
4697
|
+
const w = ((Ie = te.value.config.metrics) == null ? void 0 : Ie.length) ?? 0;
|
|
4696
4698
|
if (!te.value.config.isBlend)
|
|
4697
|
-
return
|
|
4699
|
+
return w;
|
|
4698
4700
|
const se = (te.value.config.joinDatasources ?? []).reduce(
|
|
4699
4701
|
(st, Ze) => {
|
|
4700
4702
|
var Qe;
|
|
@@ -4702,31 +4704,31 @@ const Ol = {
|
|
|
4702
4704
|
},
|
|
4703
4705
|
0
|
|
4704
4706
|
);
|
|
4705
|
-
return
|
|
4707
|
+
return w + se;
|
|
4706
4708
|
});
|
|
4707
4709
|
function pe() {
|
|
4708
4710
|
return {
|
|
4709
4711
|
data: m.value,
|
|
4710
|
-
showTitle:
|
|
4711
|
-
titleFontSize:
|
|
4712
|
-
titleBold:
|
|
4713
|
-
titleItalic:
|
|
4714
|
-
titleUnderline:
|
|
4712
|
+
showTitle: R.value,
|
|
4713
|
+
titleFontSize: V.value,
|
|
4714
|
+
titleBold: C.value,
|
|
4715
|
+
titleItalic: k.value,
|
|
4716
|
+
titleUnderline: D.value,
|
|
4715
4717
|
chartColors: A.value,
|
|
4716
|
-
chartColorLayers:
|
|
4718
|
+
chartColorLayers: E.value,
|
|
4717
4719
|
chartBreakdownColors: Q.value,
|
|
4718
4720
|
chartUseSecondaryMetricShades: oe.value,
|
|
4719
4721
|
chartColorBinding: j.value,
|
|
4720
4722
|
metricCount: ne.value,
|
|
4721
|
-
lineStyles:
|
|
4723
|
+
lineStyles: T.value,
|
|
4722
4724
|
lineStyleBinding: h.value,
|
|
4723
4725
|
showLabel: p.value,
|
|
4724
|
-
labelAnchor:
|
|
4726
|
+
labelAnchor: z.value,
|
|
4725
4727
|
labelAlign: M.value,
|
|
4726
|
-
labelRotation:
|
|
4728
|
+
labelRotation: N.value,
|
|
4727
4729
|
labelOffset: K.value,
|
|
4728
4730
|
labelFontSize: H.value,
|
|
4729
|
-
showX:
|
|
4731
|
+
showX: G.value,
|
|
4730
4732
|
xPosition: ae.value,
|
|
4731
4733
|
showXGrid: me.value,
|
|
4732
4734
|
showXTick: ue.value,
|
|
@@ -4777,9 +4779,9 @@ const Ol = {
|
|
|
4777
4779
|
return { data: m.value };
|
|
4778
4780
|
}
|
|
4779
4781
|
}), Ve = g(() => {
|
|
4780
|
-
const { config:
|
|
4781
|
-
if (
|
|
4782
|
-
const se = [...
|
|
4782
|
+
const { config: w } = o.value.widget;
|
|
4783
|
+
if (w.rollup != null) {
|
|
4784
|
+
const se = [...w.dimensions].filter((Ie) => !Ie.hide);
|
|
4783
4785
|
return [
|
|
4784
4786
|
{ label: it(r, c, "None", "other"), value: "none" },
|
|
4785
4787
|
{ label: it(r, c, "Grand Total", "other"), value: 0 },
|
|
@@ -4791,25 +4793,25 @@ const Ol = {
|
|
|
4791
4793
|
}
|
|
4792
4794
|
return [];
|
|
4793
4795
|
}), ke = g(() => {
|
|
4794
|
-
const { config:
|
|
4795
|
-
return
|
|
4796
|
+
const { config: w } = te.value;
|
|
4797
|
+
return w.isDrillable ? w.dimensions.map((se) => ({
|
|
4796
4798
|
label: it(r, c, se.label, "other"),
|
|
4797
4799
|
value: Hl(se)
|
|
4798
4800
|
})) : [];
|
|
4799
4801
|
}), lt = g(
|
|
4800
|
-
() => `${(d.value || []).join("|")}|${JSON.stringify(
|
|
4802
|
+
() => `${(d.value || []).join("|")}|${JSON.stringify(b.value)}|${JSON.stringify(
|
|
4801
4803
|
W.value
|
|
4802
4804
|
)}`
|
|
4803
4805
|
), De = g(() => {
|
|
4804
|
-
const
|
|
4806
|
+
const w = o.value.id;
|
|
4805
4807
|
return (ee.value || []).filter(
|
|
4806
|
-
(se) => Array.isArray(se.tileIds) && se.tileIds.includes(
|
|
4808
|
+
(se) => Array.isArray(se.tileIds) && se.tileIds.includes(w)
|
|
4807
4809
|
);
|
|
4808
4810
|
});
|
|
4809
4811
|
we(
|
|
4810
4812
|
() => o.value.widget.config,
|
|
4811
|
-
(
|
|
4812
|
-
y.value =
|
|
4813
|
+
(w) => {
|
|
4814
|
+
y.value = w.rollup, R.value = w.showTitle ?? !0, V.value = w.titleFontSize ?? 14, C.value = w.titleBold ?? !1, k.value = w.titleItalic ?? !1, D.value = w.titleUnderline ?? !1, A.value = Array.isArray(w.chartColors) ? [...w.chartColors] : void 0, E.value = Array.isArray(w.chartColorLayers) ? [...w.chartColorLayers] : void 0, Q.value = Array.isArray(w.chartBreakdownColors) ? [...w.chartBreakdownColors] : void 0, oe.value = w.chartUseSecondaryMetricShades ?? !0, j.value = w.chartColorBinding, T.value = Array.isArray(w.lineStyles) ? [...w.lineStyles] : void 0, h.value = w.lineStyleBinding, p.value = w.showLabel ?? !1, M.value = w.labelAlign ?? xn.center, z.value = w.labelAnchor ?? Cn.center, N.value = w.labelRotation ?? 0, K.value = w.labelOffset ?? 0, H.value = w.labelFontSize ?? 12, G.value = w.showX ?? !0, ae.value = w.xPosition ?? wn.bottom, me.value = w.showXGrid ?? !1, ue.value = w.showXTick ?? !0, re.value = w.xTickFontSize ?? 12, ve.value = w.showXTitle ?? !1, Ce.value = w.xTitle ?? "", Ne.value = w.xTitleFontSize ?? 12, $e.value = w.showY ?? !0, Le.value = w.yPosition ?? _n.left, ft.value = w.showYGrid ?? !1, tt.value = w.showYTick ?? !0, nt.value = w.yTickFontSize ?? 12, mt.value = w.showYTitle ?? !1, pt.value = w.yTitle ?? "", ht.value = w.yTitleFontSize ?? 12, gt.value = w.showLegend ?? void 0, ot.value = w.legendPosition ?? Sn.top, Ee.value = w.usePointStyle ?? !0, at.value = w.legendFontSize, Ge.value = w.legendColor ?? "#6b6b6b", Ut.value = w.maxTooltipItems, Kt.value = w.stackBarOverlap ?? !1, Xt.value = w.rowHeight ?? null, Tt.value = w.colWidths ?? null, _.value = Mt();
|
|
4813
4815
|
},
|
|
4814
4816
|
{ deep: !0, immediate: !0 }
|
|
4815
4817
|
), we(
|
|
@@ -4825,22 +4827,22 @@ const Ol = {
|
|
|
4825
4827
|
y.value !== null && (o.value.widget.config.rollup = y.value);
|
|
4826
4828
|
}), we(
|
|
4827
4829
|
lt,
|
|
4828
|
-
(
|
|
4829
|
-
se !== void 0 &&
|
|
4830
|
+
(w, se) => {
|
|
4831
|
+
se !== void 0 && w !== se && De.value.length > 0 && Vn();
|
|
4830
4832
|
},
|
|
4831
4833
|
{ flush: "pre" }
|
|
4832
4834
|
), we(
|
|
4833
4835
|
() => o.value,
|
|
4834
|
-
(
|
|
4835
|
-
!f.isTileEditor || !
|
|
4836
|
+
(w, se) => {
|
|
4837
|
+
!f.isTileEditor || !w || se !== void 0 && Vn();
|
|
4836
4838
|
},
|
|
4837
4839
|
{ deep: !0, flush: "pre" }
|
|
4838
4840
|
), we(
|
|
4839
4841
|
[
|
|
4840
4842
|
() => te.value,
|
|
4841
|
-
() =>
|
|
4843
|
+
() => b.value,
|
|
4842
4844
|
() => W.value,
|
|
4843
|
-
() =>
|
|
4845
|
+
() => $.value,
|
|
4844
4846
|
() => d.value,
|
|
4845
4847
|
() => ie.value
|
|
4846
4848
|
],
|
|
@@ -4850,8 +4852,8 @@ const Ol = {
|
|
|
4850
4852
|
{ deep: !0, flush: "post" }
|
|
4851
4853
|
), we(
|
|
4852
4854
|
() => U.value,
|
|
4853
|
-
(
|
|
4854
|
-
f.isEditingStyle ||
|
|
4855
|
+
(w) => {
|
|
4856
|
+
f.isEditingStyle || w.includes(o.value.id) && fn();
|
|
4855
4857
|
},
|
|
4856
4858
|
{ flush: "post" }
|
|
4857
4859
|
), we(
|
|
@@ -4884,12 +4886,12 @@ const Ol = {
|
|
|
4884
4886
|
dn();
|
|
4885
4887
|
try {
|
|
4886
4888
|
n.value = !0, qt && qt.abort(), qt = new AbortController();
|
|
4887
|
-
const
|
|
4889
|
+
const w = qt.signal, se = ie.value, Ie = await yn(
|
|
4888
4890
|
aa,
|
|
4889
4891
|
500
|
|
4890
4892
|
)({
|
|
4891
4893
|
widget: te.value,
|
|
4892
|
-
signal:
|
|
4894
|
+
signal: w,
|
|
4893
4895
|
tileId: o.value.id
|
|
4894
4896
|
});
|
|
4895
4897
|
if (ie.value === se) {
|
|
@@ -4901,11 +4903,11 @@ const Ol = {
|
|
|
4901
4903
|
De.value.length > 0 && De.value.forEach((Ze) => {
|
|
4902
4904
|
const Qe = Wl(Ie, Ze, st), mn = Array.from(new Set(Qe));
|
|
4903
4905
|
cn(ra(Ze, f.reportId), mn);
|
|
4904
|
-
}),
|
|
4906
|
+
}), _.value = Mt(), setTimeout(() => v(), 100);
|
|
4905
4907
|
}
|
|
4906
4908
|
n.value = !1;
|
|
4907
|
-
} catch (
|
|
4908
|
-
|
|
4909
|
+
} catch (w) {
|
|
4910
|
+
w.code !== "ERR_CANCELED" && (m.value = null, Je.open({ message: `Invalid chart ${te.value.type}`, type: "error" }), console.log(w), n.value = !1);
|
|
4909
4911
|
} finally {
|
|
4910
4912
|
Gt();
|
|
4911
4913
|
}
|
|
@@ -4916,32 +4918,32 @@ const Ol = {
|
|
|
4916
4918
|
return `${Ml(o.value.size.height, o.value.widget.type)}px`;
|
|
4917
4919
|
}
|
|
4918
4920
|
function No() {
|
|
4919
|
-
const
|
|
4920
|
-
|
|
4921
|
+
const w = S.value - 1;
|
|
4922
|
+
w >= 0 && (L.value = ke.value[w].value);
|
|
4921
4923
|
}
|
|
4922
4924
|
function $o() {
|
|
4923
|
-
const
|
|
4924
|
-
|
|
4925
|
+
const w = S.value + 1;
|
|
4926
|
+
w >= 0 && w < ke.value.length && (L.value = ke.value[w].value);
|
|
4925
4927
|
}
|
|
4926
|
-
const zn =
|
|
4927
|
-
label: la(
|
|
4928
|
-
value:
|
|
4928
|
+
const zn = I(yt.EXCEL), Hn = I(), Vo = Object.values(yt).map((w) => ({
|
|
4929
|
+
label: la(w),
|
|
4930
|
+
value: w,
|
|
4929
4931
|
onClick: async () => {
|
|
4930
|
-
|
|
4931
|
-
reportType:
|
|
4932
|
+
w === yt.EXCEL || w === yt.PDFFULLSIZE || w === yt.PDFRECEIPT ? await po({
|
|
4933
|
+
reportType: w,
|
|
4932
4934
|
index: f.index,
|
|
4933
4935
|
isCombinedLocationLayout: ge.value,
|
|
4934
4936
|
timeRange: W.value,
|
|
4935
|
-
dateRange:
|
|
4937
|
+
dateRange: b.value,
|
|
4936
4938
|
locationIds: d.value
|
|
4937
|
-
}) :
|
|
4939
|
+
}) : w === yt.PDF && (zn.value = w, Hn.value = f.index, Oe.value = !0);
|
|
4938
4940
|
}
|
|
4939
4941
|
})), zo = f.flat || te.value.type === Y.Spacer ? "flat" : "outlined", Ho = te.value.type === Y.Spacer ? "p-0" : "p-16", Wo = g(() => f.flat ? "w-full" : Et.value);
|
|
4940
|
-
return (
|
|
4942
|
+
return (w, se) => {
|
|
4941
4943
|
const Ie = ce("FmTooltip"), st = ce("FmSearch"), Ze = ce("FmCheckbox"), Qe = ce("FmButton"), mn = ce("FmSelect"), Oo = ce("FmMenuItem"), Uo = ce("FmMenu"), Ko = ce("FmForm"), Xo = ce("FmCircularProgress"), Yo = ce("FmCard");
|
|
4942
4944
|
return X(), de(Yo, {
|
|
4943
4945
|
ref_key: "tileCard",
|
|
4944
|
-
ref:
|
|
4946
|
+
ref: P,
|
|
4945
4947
|
class: Se(`${Wo.value} ${i(Ho)}`),
|
|
4946
4948
|
variant: i(zo),
|
|
4947
4949
|
style: Pe({ height: Dt.value })
|
|
@@ -4955,7 +4957,7 @@ const Ol = {
|
|
|
4955
4957
|
}, null, 8, ["modelValue", "report-type", "index"]),
|
|
4956
4958
|
n.value ? (X(), de(Xo, { key: 1 })) : (X(), le("div", Ol, [
|
|
4957
4959
|
(X(), de(fo(s.value), {
|
|
4958
|
-
key:
|
|
4960
|
+
key: _.value,
|
|
4959
4961
|
modelValue: Me.value,
|
|
4960
4962
|
"onUpdate:modelValue": se[4] || (se[4] = (vt) => Me.value = vt),
|
|
4961
4963
|
"tile-index": f.index
|
|
@@ -4977,17 +4979,17 @@ const Ol = {
|
|
|
4977
4979
|
"z-index": 99
|
|
4978
4980
|
}, {
|
|
4979
4981
|
default: _e(() => [
|
|
4980
|
-
|
|
4982
|
+
R.value !== !1 ? (X(), le("p", {
|
|
4981
4983
|
key: 0,
|
|
4982
4984
|
style: Pe({
|
|
4983
|
-
fontSize:
|
|
4984
|
-
fontWeight:
|
|
4985
|
-
fontStyle:
|
|
4986
|
-
paddingRight:
|
|
4987
|
-
textDecoration:
|
|
4985
|
+
fontSize: V.value + "px",
|
|
4986
|
+
fontWeight: C.value ? "bold" : "normal",
|
|
4987
|
+
fontStyle: k.value ? "italic" : "normal",
|
|
4988
|
+
paddingRight: k.value ? "4px" : "0px",
|
|
4989
|
+
textDecoration: D.value ? "underline" : "none"
|
|
4988
4990
|
}),
|
|
4989
4991
|
class: Se(["text-fm-color-typo-secondary line-clamp-1", [
|
|
4990
|
-
|
|
4992
|
+
V.value <= 18 ? "fm-typo-en-body-md-400" : "",
|
|
4991
4993
|
te.value.description ? "border-b-2 border-dashed border-gray-300" : ""
|
|
4992
4994
|
]])
|
|
4993
4995
|
}, Te(i(it)(i(r), i(c), te.value.title, "other")), 7)) : he("", !0)
|
|
@@ -5012,13 +5014,13 @@ const Ol = {
|
|
|
5012
5014
|
fe(Qe, {
|
|
5013
5015
|
icon: "arrow_upward",
|
|
5014
5016
|
variant: "tertiary",
|
|
5015
|
-
disabled: !
|
|
5017
|
+
disabled: !B.value,
|
|
5016
5018
|
onClick: No
|
|
5017
5019
|
}, null, 8, ["disabled"]),
|
|
5018
5020
|
fe(Qe, {
|
|
5019
5021
|
icon: "arrow_downward",
|
|
5020
5022
|
variant: "tertiary",
|
|
5021
|
-
disabled:
|
|
5023
|
+
disabled: !F.value,
|
|
5022
5024
|
onClick: $o
|
|
5023
5025
|
}, null, 8, ["disabled"])
|
|
5024
5026
|
])) : he("", !0),
|