@feedmepos/mf-report 5.27.38 → 5.27.39
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/README.md +18 -3
- package/dist/{App-D0egtvQ-.js → App-S90BTDsA.js} +4 -4
- package/dist/{DateRangeSelect-CqMwZ27u.js → DateRangeSelect-D8yWjVRH.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-D39cFe6x.js → Default.vue_vue_type_script_setup_true_lang-CPKHc9Ij.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-625jnYWz.js → DynamicWidget.vue_vue_type_script_setup_true_lang-aP-DhJoD.js} +360 -365
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CWYMdEeD.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-HWUtlVoJ.js} +4 -4
- package/dist/{InsightView-94nHX-WA.js → InsightView-9dc7VxLd.js} +4 -4
- package/dist/{Integration-CtKBgWah.js → Integration-DgT3WP7T.js} +3 -3
- package/dist/{Integrations-CgdpQtx8.js → Integrations-DTjuN8ir.js} +2 -2
- package/dist/{Layout-XtPVe59c.js → Layout-BhTbEl_I.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-D7MNgCvE.js → MenuTab.vue_vue_type_script_setup_true_lang-B3NaH_DG.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-D3zMj_qy.js → NavigationTab.vue_vue_type_script_setup_true_lang-Cg-74bAB.js} +3 -3
- package/dist/{OverviewView-e_yLkpE7.js → OverviewView-CLUe1Opn.js} +4 -4
- package/dist/{Report-BJRREsz2.js → Report-BtKLh93q.js} +3 -3
- package/dist/{ReportEditor-DuNJhfDd.js → ReportEditor-BSoWyCZA.js} +6 -6
- package/dist/{ReportView-6vGSlxht.js → ReportView-DMah7z_A.js} +6 -6
- package/dist/{Setting-9lMuIq7F.js → Setting-DbZY2zk5.js} +3 -3
- package/dist/Template-CoM9-uOV.js +521 -0
- package/dist/{TileEditor-D4xAquwa.js → TileEditor-DDtA5B1e.js} +5 -5
- package/dist/{TileGrid.vue_vue_type_script_setup_true_lang-DoSQ6pxv.js → TileGrid.vue_vue_type_script_setup_true_lang-DdwPdPJ2.js} +2 -2
- package/dist/{TransitionFade-DokaTWBh.js → TransitionFade-cviixQkL.js} +4 -4
- package/dist/{app-CqDIZ6G6.js → app-CuP9NY1I.js} +1138 -1121
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-4gz12Ml-.js → formatChartData.worker-C3TaOBES.js} +1 -1
- package/dist/assets/{processTableData.worker-KnOy0AZ-.js → processTableData.worker-boBcpckx.js} +1 -1
- package/dist/{useRestaurantPermission-D26lLMqS.js → useRestaurantPermission-i9i6cu96.js} +1 -1
- package/package.json +17 -5
- package/dist/Template-pAXd86VQ.js +0 -482
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { computed as c, defineComponent as Be, ref as P, watch as
|
|
2
|
-
import { W as E, x as ha, S as
|
|
3
|
-
import { l as cn, a as fn, u as ko } from "./app-
|
|
4
|
-
import { d as kn } from "./DateRangeSelect-
|
|
1
|
+
import { computed as c, defineComponent as Be, ref as P, watch as Te, onMounted as zt, onBeforeUnmount as Co, resolveComponent as fe, createBlock as de, openBlock as K, Transition as ia, withCtx as Le, createElementBlock as le, createCommentVNode as he, createElementVNode as Y, unref as i, normalizeStyle as Pe, withModifiers as un, toDisplayString as Ce, createVNode as pe, Fragment as Ne, renderList as ft, normalizeClass as De, nextTick as xo, mergeModels as Oe, useModel as Ue, renderSlot as ot, h as nn, createSlots as ua, resolveDynamicComponent as wo, toRaw as ca, markRaw as da, createTextVNode as fa, onUnmounted as _o, withDirectives as ma, vShow as pa } from "vue";
|
|
2
|
+
import { W as E, x as ha, S as Bt, y as Rt, z as ga, F as At, e as on, A as xn, B as So, b as va, E as ya, G as ba, H as Ca, R as Ct, J as xa } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-HWUtlVoJ.js";
|
|
3
|
+
import { l as cn, a as fn, u as ko } from "./app-CuP9NY1I.js";
|
|
4
|
+
import { d as kn } from "./DateRangeSelect-D8yWjVRH.js";
|
|
5
5
|
import { storeToRefs as Nt } from "pinia";
|
|
6
6
|
import { detectLocale as Vn } from "@feedmepos/mf-common";
|
|
7
7
|
import { C as Tn } from "./chart-DDDh8zNk.js";
|
|
@@ -9,7 +9,7 @@ import { useBreakpoints as Ht, useSnackbar as Nn, components as wa } from "@feed
|
|
|
9
9
|
import { u as mt, _ as To } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
10
10
|
import { r as ut } from "./i18n-CI_sQ5d_.js";
|
|
11
11
|
import { _ as Zn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
12
|
-
var Vt = /* @__PURE__ */ ((e) => (e.line = "LINECHART", e.bar = "BARCHART", e.stackedBar = "STACKBARCHART", e.progress = "PROGRESS", e))(Vt || {}), Ge = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(Ge || {}), Ln = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(Ln || {}), Dn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Dn || {}), In = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(In || {}), Pn = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Pn || {}), Mn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Mn || {}),
|
|
12
|
+
var Vt = /* @__PURE__ */ ((e) => (e.line = "LINECHART", e.bar = "BARCHART", e.stackedBar = "STACKBARCHART", e.progress = "PROGRESS", e))(Vt || {}), Ge = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(Ge || {}), Ln = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(Ln || {}), Dn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Dn || {}), In = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(In || {}), Pn = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Pn || {}), Mn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Mn || {}), we = /* @__PURE__ */ ((e) => (e.series = "SERIES", e.metric = "METRIC", e.breakdown = "BREAKDOWN", e))(we || {});
|
|
13
13
|
E.Circular, E.Table, E.BarChart, E.LineChart, E.StackBarChart, E.ClusteredStackBarChart, E.StackLineChart, E.Scorecard, E.Spacer;
|
|
14
14
|
const _a = [
|
|
15
15
|
{
|
|
@@ -100,7 +100,7 @@ function Sa(e, t) {
|
|
|
100
100
|
return !0;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
const
|
|
103
|
+
const _t = [
|
|
104
104
|
"#36A2EB",
|
|
105
105
|
"#007BA7",
|
|
106
106
|
"#FF5D53",
|
|
@@ -115,12 +115,12 @@ const wt = [
|
|
|
115
115
|
function Lo(e) {
|
|
116
116
|
const t = Math.max(1, Math.floor(e));
|
|
117
117
|
return Array.from({ length: t }, (n, o) => {
|
|
118
|
-
const a =
|
|
118
|
+
const a = _t[o % _t.length], r = Math.floor(o / _t.length);
|
|
119
119
|
return r === 0 ? a : mn(a, Math.min(0.18 * r, 0.72));
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
|
-
const Ss =
|
|
123
|
-
function
|
|
122
|
+
const Ss = _t.map(() => "solid");
|
|
123
|
+
function xt({
|
|
124
124
|
datasetIndex: e,
|
|
125
125
|
label: t
|
|
126
126
|
}) {
|
|
@@ -139,13 +139,13 @@ function Ta(e, t = !1) {
|
|
|
139
139
|
if (n === "dotted")
|
|
140
140
|
return [2, 4];
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function Fe({
|
|
143
143
|
datasetIndex: e,
|
|
144
144
|
isCompare: t,
|
|
145
145
|
metricCount: n,
|
|
146
146
|
mode: o
|
|
147
147
|
}) {
|
|
148
|
-
if (o !==
|
|
148
|
+
if (o !== we.metric)
|
|
149
149
|
return e;
|
|
150
150
|
const a = Number.isFinite(n) ? Number(n) : 0;
|
|
151
151
|
return a <= 0 ? e : t ? e >= a ? (e - a) % a : Math.max(0, (e - 1 + a) % a) : e % a;
|
|
@@ -214,7 +214,7 @@ function Da(e) {
|
|
|
214
214
|
}
|
|
215
215
|
function Io(e) {
|
|
216
216
|
const t = Math.max(
|
|
217
|
-
|
|
217
|
+
_t.length,
|
|
218
218
|
Array.isArray(e) ? e.length : 0
|
|
219
219
|
), n = Lo(t);
|
|
220
220
|
return !Array.isArray(e) || e.length === 0 ? n : n.map((o, a) => $t(e[a]) ?? o);
|
|
@@ -231,7 +231,7 @@ function mn(e, t) {
|
|
|
231
231
|
return `#${o(1)}${o(3)}${o(5)}`;
|
|
232
232
|
}
|
|
233
233
|
const Ia = 0.25, Mo = 0.7;
|
|
234
|
-
function
|
|
234
|
+
function Bo(e) {
|
|
235
235
|
return mn(e, Ia);
|
|
236
236
|
}
|
|
237
237
|
function Qn(e) {
|
|
@@ -243,17 +243,17 @@ function Je({
|
|
|
243
243
|
opacity: n,
|
|
244
244
|
customColors: o
|
|
245
245
|
}) {
|
|
246
|
-
const a = Io(o), r = a[e % a.length], l = t ?
|
|
246
|
+
const a = Io(o), r = a[e % a.length], l = t ? Bo(r) : r;
|
|
247
247
|
let u = typeof n == "number" ? n : 1;
|
|
248
248
|
return t && (u = u * Mo), Po(l, u);
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function kt({
|
|
251
251
|
fallbackIndex: e,
|
|
252
252
|
metricCount: t
|
|
253
253
|
}) {
|
|
254
254
|
return Number.isInteger(t) && Number(t) > 0 ? Math.floor(e / Number(t)) : e;
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function Lt({
|
|
257
257
|
breakdownIndex: e,
|
|
258
258
|
metricIndex: t,
|
|
259
259
|
metricCount: n,
|
|
@@ -264,11 +264,11 @@ function Tt({
|
|
|
264
264
|
colorMode: u,
|
|
265
265
|
customColors: f
|
|
266
266
|
}) {
|
|
267
|
-
const m = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, D = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, W = l !== !1, C = e * m + D, v = u === "clustered" ? Lo(Math.max(
|
|
268
|
-
let
|
|
269
|
-
return o && (
|
|
267
|
+
const m = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, D = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, W = l !== !1, C = e * m + D, v = u === "clustered" ? Lo(Math.max(_t.length, e + 1)) : Io(f), h = $t(r == null ? void 0 : r[e * m]) ?? v[e % v.length], L = W && D > 0 ? mn(h, Qn(D)) : $t(r == null ? void 0 : r[C]) ?? (D > 0 ? mn(h, Qn(D)) : h), I = o ? Bo(L) : L;
|
|
268
|
+
let A = typeof a == "number" ? a : 1;
|
|
269
|
+
return o && (A = A * Mo), Po(I, A);
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function Ao(e, t, n) {
|
|
272
272
|
if (e === "" || t === "")
|
|
273
273
|
return null;
|
|
274
274
|
let o = (f) => f == null ? void 0 : f.replace(/,/g, "");
|
|
@@ -365,7 +365,7 @@ function Ro(e) {
|
|
|
365
365
|
titleMarginBottom: 6
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
|
-
const
|
|
368
|
+
const Ba = Ot({
|
|
369
369
|
display: "block",
|
|
370
370
|
padding: "0",
|
|
371
371
|
background: "none",
|
|
@@ -376,7 +376,7 @@ const Aa = Ot({
|
|
|
376
376
|
cursor: "pointer",
|
|
377
377
|
"text-align": "left",
|
|
378
378
|
"pointer-events": "auto"
|
|
379
|
-
}),
|
|
379
|
+
}), Aa = {
|
|
380
380
|
"font-size": "13px",
|
|
381
381
|
"font-weight": "600",
|
|
382
382
|
color: "#111827",
|
|
@@ -516,7 +516,7 @@ function Ut(e) {
|
|
|
516
516
|
}
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
|
-
const Oa = Number.POSITIVE_INFINITY,
|
|
519
|
+
const Oa = Number.POSITIVE_INFINITY, Bn = 2, Ua = 1, Ka = 0.2, Xa = 120, Ya = 320, Ea = 24, { breakpoints: wt } = Ht(), $n = "report-v5:locationchange";
|
|
520
520
|
let no = !1;
|
|
521
521
|
const qa = "report.widget.comparisonTooltip";
|
|
522
522
|
function oo() {
|
|
@@ -633,24 +633,24 @@ function lr(e) {
|
|
|
633
633
|
const t = e.dataset, n = typeof e.dataIndex == "number" ? e.dataIndex : 0;
|
|
634
634
|
return Number.isFinite($o(t, n));
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function An(e) {
|
|
637
637
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/\"/g, """).replace(/'/g, "'");
|
|
638
638
|
}
|
|
639
639
|
function sr(e) {
|
|
640
640
|
const t = typeof e == "number" ? e : typeof e == "string" ? Number(e) : Number.NaN;
|
|
641
|
-
return Number.isFinite(t) ? Math.max(
|
|
641
|
+
return Number.isFinite(t) ? Math.max(Bn, Math.floor(t)) : Oa;
|
|
642
642
|
}
|
|
643
643
|
function ir(e) {
|
|
644
|
-
return e <= 0 ? 320 :
|
|
644
|
+
return e <= 0 ? 320 : wt.value.xs || wt.value.sm || e <= 640 ? Math.max(160, Math.floor(e * 0.38)) : wt.value.md || e <= 900 ? Math.max(200, Math.floor(e * 0.46)) : wt.value.lg || e <= 1200 ? Math.max(240, Math.floor(e * 0.54)) : Math.max(280, Math.floor(e * 0.62));
|
|
645
645
|
}
|
|
646
646
|
function Hn(e, t) {
|
|
647
647
|
const n = window.innerHeight, o = ir(n), a = t ? Math.max(120, t.clientHeight - 16) : Number.POSITIVE_INFINITY, r = Math.max(120, Math.min(o, a));
|
|
648
648
|
e.style.maxHeight = `${r}px`;
|
|
649
649
|
}
|
|
650
650
|
function ct() {
|
|
651
|
-
return
|
|
651
|
+
return wt.value.xs || wt.value.sm;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function St(e) {
|
|
654
654
|
return e.dataset.pinned === "true";
|
|
655
655
|
}
|
|
656
656
|
function zo(e, t) {
|
|
@@ -695,7 +695,7 @@ function so(e) {
|
|
|
695
695
|
}
|
|
696
696
|
function mr(e) {
|
|
697
697
|
return Ot({
|
|
698
|
-
...
|
|
698
|
+
...Aa,
|
|
699
699
|
margin: `${e ? "8px" : "0"} 0 4px`
|
|
700
700
|
});
|
|
701
701
|
}
|
|
@@ -706,7 +706,7 @@ function pr(e, t) {
|
|
|
706
706
|
});
|
|
707
707
|
}
|
|
708
708
|
function hr(e) {
|
|
709
|
-
return `<button type="button" data-tooltip-full-details="true" style="${
|
|
709
|
+
return `<button type="button" data-tooltip-full-details="true" style="${Ba}">${An(e)}</button>`;
|
|
710
710
|
}
|
|
711
711
|
function Wo(e, t, n, o, a, r, l, u, f) {
|
|
712
712
|
var _;
|
|
@@ -751,12 +751,12 @@ function Wo(e, t, n, o, a, r, l, u, f) {
|
|
|
751
751
|
const I = D ? h.map((S) => {
|
|
752
752
|
const x = L.get(S.matchingKey);
|
|
753
753
|
return !x || x.length === 0 ? so(S) : x.shift() ?? so(S);
|
|
754
|
-
}) : [],
|
|
754
|
+
}) : [], A = W.length > h.length || C.length > I.length, B = (S, x = !1) => `<div style="${mr(x)}">${An(S)}</div>`, J = (S) => {
|
|
755
755
|
const x = pr(S.isBar, S.color);
|
|
756
|
-
return `<div style="${Fa}"><span style="${x}"></span><span style="${Ra}">${
|
|
756
|
+
return `<div style="${Fa}"><span style="${x}"></span><span style="${Ra}">${An(S.text)}</span></div>`;
|
|
757
757
|
};
|
|
758
758
|
let k = "";
|
|
759
|
-
m.length > 0 && (k +=
|
|
759
|
+
m.length > 0 && (k += B(m)), k += h.map((S) => J(S)).join(""), D && I.length > 0 && (k += B(D, k.length > 0), k += I.map((S) => J(S)).join("")), a && A && (k += hr(n));
|
|
760
760
|
const V = [
|
|
761
761
|
{
|
|
762
762
|
title: m,
|
|
@@ -770,7 +770,7 @@ function Wo(e, t, n, o, a, r, l, u, f) {
|
|
|
770
770
|
return {
|
|
771
771
|
html: k,
|
|
772
772
|
detailsPayload: { sections: V },
|
|
773
|
-
hasCollapsedValues:
|
|
773
|
+
hasCollapsedValues: A
|
|
774
774
|
};
|
|
775
775
|
}
|
|
776
776
|
function io(e) {
|
|
@@ -807,7 +807,7 @@ function gr(e, t, n, o, a, r, l, u, f, m) {
|
|
|
807
807
|
),
|
|
808
808
|
maxTooltipItems: a
|
|
809
809
|
};
|
|
810
|
-
const D = Math.max(
|
|
810
|
+
const D = Math.max(Bn, t.length);
|
|
811
811
|
let W = D, C = rn(
|
|
812
812
|
e,
|
|
813
813
|
t,
|
|
@@ -825,9 +825,9 @@ function gr(e, t, n, o, a, r, l, u, f, m) {
|
|
|
825
825
|
markup: C,
|
|
826
826
|
maxTooltipItems: D
|
|
827
827
|
};
|
|
828
|
-
let v =
|
|
828
|
+
let v = Bn, h = D;
|
|
829
829
|
for (; v <= h; ) {
|
|
830
|
-
const I = Math.floor((v + h) / 2),
|
|
830
|
+
const I = Math.floor((v + h) / 2), A = rn(
|
|
831
831
|
e,
|
|
832
832
|
t,
|
|
833
833
|
n,
|
|
@@ -843,7 +843,7 @@ function gr(e, t, n, o, a, r, l, u, f, m) {
|
|
|
843
843
|
h = I - 1;
|
|
844
844
|
continue;
|
|
845
845
|
}
|
|
846
|
-
W = I, C =
|
|
846
|
+
W = I, C = A, v = I + 1;
|
|
847
847
|
}
|
|
848
848
|
return {
|
|
849
849
|
markup: W === D ? C : rn(
|
|
@@ -974,14 +974,14 @@ function Wn(e) {
|
|
|
974
974
|
function On(e, t, n, o, a, r, l = "center", u = !1) {
|
|
975
975
|
const f = t.getBoundingClientRect(), m = n.getBoundingClientRect(), D = n.scrollLeft, W = n.scrollTop, C = n.clientWidth, v = n.clientHeight, h = e;
|
|
976
976
|
(!Number.isFinite(h.__cachedWidth) || !Number.isFinite(h.__cachedHeight) || h.__measurementHostWidth !== C || h.__measurementHostHeight !== v) && (h.__cachedWidth = e.offsetWidth, h.__cachedHeight = e.offsetHeight, h.__measurementHostWidth = C, h.__measurementHostHeight = v);
|
|
977
|
-
const I = h.__cachedWidth ?? e.offsetWidth,
|
|
978
|
-
let x = W +
|
|
977
|
+
const I = h.__cachedWidth ?? e.offsetWidth, A = h.__cachedHeight ?? e.offsetHeight, B = 8, J = f.left - m.left + D + o, k = f.top - m.top + W + a, V = u ? l === "left" ? J - I - B : J + B : l === "left" ? J - I - B : l === "right" ? J + B : J - I / 2, _ = u ? k + B : r ? k - A / 2 : k + B, S = D + B;
|
|
978
|
+
let x = W + B;
|
|
979
979
|
const $ = document.querySelector('[data-menu-tab="true"]');
|
|
980
980
|
if ($) {
|
|
981
|
-
const y = $.getBoundingClientRect().bottom - m.top + W +
|
|
981
|
+
const y = $.getBoundingClientRect().bottom - m.top + W + B;
|
|
982
982
|
x = Math.max(x, y);
|
|
983
983
|
}
|
|
984
|
-
const q = Math.max(S, D + C - I -
|
|
984
|
+
const q = Math.max(S, D + C - I - B), O = Math.max(x, W + v - A - B), j = Math.round(Math.min(Math.max(S, V), q)), G = Math.round(Math.min(Math.max(x, _), O));
|
|
985
985
|
h.__lastLeftPx === j && h.__lastTopPx === G || (h.__lastLeftPx = j, h.__lastTopPx = G, e.style.left = `${j}px`, e.style.top = `${G}px`);
|
|
986
986
|
}
|
|
987
987
|
function Uo(e) {
|
|
@@ -1014,7 +1014,7 @@ function kr(e) {
|
|
|
1014
1014
|
e.__disconnectObserver && (e.__disconnectObserver.disconnect(), e.__disconnectObserver = void 0);
|
|
1015
1015
|
}
|
|
1016
1016
|
function Un(e, t) {
|
|
1017
|
-
|
|
1017
|
+
Tt(e), Ko(e), _r(e), Sr(e), kr(e), e.__onDetailsClick && e.removeEventListener("click", e.__onDetailsClick), e.__onTooltipPointerEnter && e.removeEventListener("pointerenter", e.__onTooltipPointerEnter), e.__onTooltipPointerLeave && e.removeEventListener("pointerleave", e.__onTooltipPointerLeave), t && e.__onCanvasPointerEnter && t.removeEventListener("pointerenter", e.__onCanvasPointerEnter), t && e.__onCanvasPointerMove && t.removeEventListener("pointermove", e.__onCanvasPointerMove), t && e.__onCanvasPointerLeave && t.removeEventListener("pointerleave", e.__onCanvasPointerLeave), t && e.__onCanvasClick && t.removeEventListener("click", e.__onCanvasClick), t && e.__onCanvasPointerUp && t.removeEventListener("pointerup", e.__onCanvasPointerUp), e.remove();
|
|
1018
1018
|
}
|
|
1019
1019
|
function Tr(e, t, n) {
|
|
1020
1020
|
e.__onNavigationChange || (Ga(), e.__onNavigationChange = () => {
|
|
@@ -1040,7 +1040,7 @@ function Dr(e, t, n) {
|
|
|
1040
1040
|
a.id !== t && Un(a, n);
|
|
1041
1041
|
});
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function Tt(e) {
|
|
1044
1044
|
typeof e.__hideTimeoutId == "number" && (window.clearTimeout(e.__hideTimeoutId), e.__hideTimeoutId = void 0);
|
|
1045
1045
|
}
|
|
1046
1046
|
function Ko(e) {
|
|
@@ -1069,17 +1069,17 @@ function co(e, t, n, o, a) {
|
|
|
1069
1069
|
})));
|
|
1070
1070
|
}
|
|
1071
1071
|
function je(e, t, n = !1) {
|
|
1072
|
-
|
|
1072
|
+
St(e) && !n || (Tt(e), Ko(e), zo(e, !1), ur(e), e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, e.__detailsPayload = void 0, e.__lastLeftPx = void 0, e.__lastTopPx = void 0, delete e.dataset.cursorCanvasX, delete e.dataset.cursorCanvasY, e.__isTooltipHovered = !1, e.style.pointerEvents = "none", e.style.opacity = "0", dn(t));
|
|
1073
1073
|
}
|
|
1074
1074
|
function pn(e, t, n = Xa) {
|
|
1075
|
-
e.__isTooltipHovered || (
|
|
1075
|
+
e.__isTooltipHovered || (Tt(e), e.__hideTimeoutId = window.setTimeout(() => {
|
|
1076
1076
|
e.__isTooltipHovered || je(e, t);
|
|
1077
1077
|
}, n));
|
|
1078
1078
|
}
|
|
1079
1079
|
function Pr(e, t, n, o, a) {
|
|
1080
1080
|
const { maxTooltipItems: r } = Ho(a);
|
|
1081
1081
|
e.__onCanvasPointerEnter || (e.__onCanvasPointerEnter = (l) => {
|
|
1082
|
-
if (!(ct() &&
|
|
1082
|
+
if (!(ct() && St(e)) && (co(
|
|
1083
1083
|
e,
|
|
1084
1084
|
t,
|
|
1085
1085
|
o,
|
|
@@ -1094,7 +1094,7 @@ function Pr(e, t, n, o, a) {
|
|
|
1094
1094
|
}, t.addEventListener("pointerenter", e.__onCanvasPointerEnter, {
|
|
1095
1095
|
passive: !0
|
|
1096
1096
|
})), e.__onCanvasPointerMove || (e.__onCanvasPointerMove = (l) => {
|
|
1097
|
-
ct() &&
|
|
1097
|
+
ct() && St(e) || co(
|
|
1098
1098
|
e,
|
|
1099
1099
|
t,
|
|
1100
1100
|
o,
|
|
@@ -1104,21 +1104,21 @@ function Pr(e, t, n, o, a) {
|
|
|
1104
1104
|
}, t.addEventListener("pointermove", e.__onCanvasPointerMove, {
|
|
1105
1105
|
passive: !0
|
|
1106
1106
|
})), e.__onCanvasPointerLeave || (e.__onCanvasPointerLeave = () => {
|
|
1107
|
-
ct() &&
|
|
1107
|
+
ct() && St(e) || pn(e, n);
|
|
1108
1108
|
}, t.addEventListener("pointerleave", e.__onCanvasPointerLeave, {
|
|
1109
1109
|
passive: !0
|
|
1110
1110
|
})), e.__onCanvasClick || (e.__onCanvasClick = (l) => {
|
|
1111
|
-
var I,
|
|
1111
|
+
var I, A;
|
|
1112
1112
|
if (ct() || !(a != null && a.onViewFullDetails) || !e.__detailsPayload || e.style.opacity !== "1")
|
|
1113
1113
|
return;
|
|
1114
|
-
const u = (
|
|
1114
|
+
const u = (B) => {
|
|
1115
1115
|
var S, x, $, q;
|
|
1116
|
-
if (
|
|
1116
|
+
if (B.length === 0)
|
|
1117
1117
|
return !1;
|
|
1118
|
-
const J = (S =
|
|
1118
|
+
const J = (S = B.find(
|
|
1119
1119
|
(O) => typeof O.dataIndex == "number"
|
|
1120
1120
|
)) == null ? void 0 : S.dataIndex, k = ((x = n == null ? void 0 : n.data) == null ? void 0 : x.datasets) ?? [], V = ($ = n == null ? void 0 : n.config) == null ? void 0 : $.type, _ = Wo(
|
|
1121
|
-
|
|
1121
|
+
B,
|
|
1122
1122
|
o,
|
|
1123
1123
|
(a == null ? void 0 : a.viewFullDetailsLabel) ?? Vo(),
|
|
1124
1124
|
r,
|
|
@@ -1147,7 +1147,7 @@ function Pr(e, t, n, o, a) {
|
|
|
1147
1147
|
"index",
|
|
1148
1148
|
{ intersect: !1 },
|
|
1149
1149
|
!1
|
|
1150
|
-
), v = (D.length > 0 ? D : W).filter((
|
|
1150
|
+
), v = (D.length > 0 ? D : W).filter((B) => typeof B.datasetIndex == "number" && typeof B.index == "number").map((B) => ({ datasetIndex: B.datasetIndex, index: B.index }));
|
|
1151
1151
|
if (v.length === 0)
|
|
1152
1152
|
return;
|
|
1153
1153
|
const h = n == null ? void 0 : n.tooltip;
|
|
@@ -1162,7 +1162,7 @@ function Pr(e, t, n, o, a) {
|
|
|
1162
1162
|
} catch {
|
|
1163
1163
|
return;
|
|
1164
1164
|
}
|
|
1165
|
-
const L = ((
|
|
1165
|
+
const L = ((A = n == null ? void 0 : n.tooltip) == null ? void 0 : A.dataPoints) ?? [];
|
|
1166
1166
|
u(L);
|
|
1167
1167
|
}, t.addEventListener("click", e.__onCanvasClick)), e.__onCanvasPointerUp || (e.__onCanvasPointerUp = (l) => {
|
|
1168
1168
|
if (ct()) {
|
|
@@ -1181,9 +1181,9 @@ function Pr(e, t, n, o, a) {
|
|
|
1181
1181
|
"index",
|
|
1182
1182
|
{ intersect: !1 },
|
|
1183
1183
|
!1
|
|
1184
|
-
), C = (m.length > 0 ? m : D).filter((
|
|
1185
|
-
datasetIndex:
|
|
1186
|
-
index:
|
|
1184
|
+
), C = (m.length > 0 ? m : D).filter((A) => typeof A.datasetIndex == "number" && typeof A.index == "number").map((A) => ({
|
|
1185
|
+
datasetIndex: A.datasetIndex,
|
|
1186
|
+
index: A.index
|
|
1187
1187
|
}));
|
|
1188
1188
|
if (C.length === 0) {
|
|
1189
1189
|
je(e, n, !0);
|
|
@@ -1198,7 +1198,7 @@ function Pr(e, t, n, o, a) {
|
|
|
1198
1198
|
je(e, n, !0);
|
|
1199
1199
|
return;
|
|
1200
1200
|
}
|
|
1201
|
-
zo(e, !0),
|
|
1201
|
+
zo(e, !0), Tt(e), e.dataset.cursorCanvasX = String(l.offsetX), e.dataset.cursorCanvasY = String(l.offsetY), e.dataset.caretX = String(l.offsetX), e.dataset.caretY = String(l.offsetY), f.setActiveElements(C, {
|
|
1202
1202
|
x: l.offsetX,
|
|
1203
1203
|
y: l.offsetY
|
|
1204
1204
|
});
|
|
@@ -1227,7 +1227,7 @@ function Pr(e, t, n, o, a) {
|
|
|
1227
1227
|
const u = l.target;
|
|
1228
1228
|
u != null && u.closest('[data-tooltip-full-details="true"]') && (l.preventDefault(), l.stopPropagation(), e.__detailsPayload && ((m = a.onViewFullDetails) == null || m.call(a, e.__detailsPayload, n), je(e, n)));
|
|
1229
1229
|
}, e.addEventListener("click", e.__onDetailsClick)), e.__onTooltipPointerEnter || (e.__onTooltipPointerEnter = () => {
|
|
1230
|
-
e.__isTooltipHovered = !0,
|
|
1230
|
+
e.__isTooltipHovered = !0, Tt(e);
|
|
1231
1231
|
}, e.addEventListener("pointerenter", e.__onTooltipPointerEnter)), e.__onTooltipPointerLeave || (e.__onTooltipPointerLeave = () => {
|
|
1232
1232
|
e.__isTooltipHovered = !1, pn(e, n);
|
|
1233
1233
|
}, e.addEventListener("pointerleave", e.__onTooltipPointerLeave)));
|
|
@@ -1259,7 +1259,7 @@ function Mr(e, t, n) {
|
|
|
1259
1259
|
passive: !0
|
|
1260
1260
|
}));
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1262
|
+
function Br(e, t) {
|
|
1263
1263
|
const { maxTooltipItems: n } = Ho(t);
|
|
1264
1264
|
return ({ chart: o, tooltip: a }) => {
|
|
1265
1265
|
var j, G, F, y;
|
|
@@ -1271,19 +1271,19 @@ function Ar(e, t) {
|
|
|
1271
1271
|
const l = Wn(r), u = `comparison-tooltip-${String(o.id)}`;
|
|
1272
1272
|
let f = document.querySelector(`#${u}`);
|
|
1273
1273
|
if (f || (f = wr(u)), f.parentElement !== l && l.appendChild(f), Hn(f, l), Mr(f, r, e), Tr(f, o, r), Lr(f, r), Pr(f, r, o, e, t), ((a == null ? void 0 : a.opacity) ?? 0) === 0) {
|
|
1274
|
-
if (ct() &&
|
|
1274
|
+
if (ct() && St(f))
|
|
1275
1275
|
return;
|
|
1276
1276
|
t != null && t.onViewFullDetails ? pn(f, o) : je(f, o);
|
|
1277
1277
|
return;
|
|
1278
1278
|
}
|
|
1279
1279
|
const m = (a == null ? void 0 : a.dataPoints) ?? [];
|
|
1280
1280
|
if (m.length === 0) {
|
|
1281
|
-
if (ct() &&
|
|
1281
|
+
if (ct() && St(f))
|
|
1282
1282
|
return;
|
|
1283
1283
|
t != null && t.onViewFullDetails ? pn(f, o) : je(f, o);
|
|
1284
1284
|
return;
|
|
1285
1285
|
}
|
|
1286
|
-
Dr(l, u, r),
|
|
1286
|
+
Dr(l, u, r), Tt(f);
|
|
1287
1287
|
const D = (t == null ? void 0 : t.viewFullDetailsLabel) ?? Vo(), W = !!(t != null && t.onViewFullDetails), C = (j = m.find((b) => typeof b.dataIndex == "number")) == null ? void 0 : j.dataIndex, v = ((G = o == null ? void 0 : o.data) == null ? void 0 : G.datasets) ?? [], h = (F = o == null ? void 0 : o.config) == null ? void 0 : F.type, {
|
|
1288
1288
|
markup: { detailsPayload: L, hasCollapsedValues: I }
|
|
1289
1289
|
} = gr(
|
|
@@ -1297,9 +1297,9 @@ function Ar(e, t) {
|
|
|
1297
1297
|
C,
|
|
1298
1298
|
h,
|
|
1299
1299
|
t == null ? void 0 : t.comparisonXAxis
|
|
1300
|
-
),
|
|
1301
|
-
f.__detailsPayload =
|
|
1302
|
-
const
|
|
1300
|
+
), A = W && I;
|
|
1301
|
+
f.__detailsPayload = A ? L : void 0, f.style.pointerEvents = A ? "auto" : "none";
|
|
1302
|
+
const B = typeof (a == null ? void 0 : a.caretX) == "number" ? a.caretX : 0, J = Number(f.dataset.cursorCanvasX), k = Number(f.dataset.cursorCanvasY);
|
|
1303
1303
|
if (!(Number.isFinite(J) && Number.isFinite(k))) {
|
|
1304
1304
|
f.style.opacity = "0";
|
|
1305
1305
|
return;
|
|
@@ -1310,7 +1310,7 @@ function Ar(e, t) {
|
|
|
1310
1310
|
return b;
|
|
1311
1311
|
if (!Number.isFinite(b))
|
|
1312
1312
|
return M;
|
|
1313
|
-
const z = Number.isFinite(S) ? S :
|
|
1313
|
+
const z = Number.isFinite(S) ? S : B, re = Math.abs(b - z);
|
|
1314
1314
|
return Math.abs(M - z) > re ? M : b;
|
|
1315
1315
|
}, Number.NaN) : Number.NaN, $ = J, q = k, O = e ? Number.isFinite(S) && Number.isFinite(x) && x < S ? "left" : "right" : "center";
|
|
1316
1316
|
On(
|
|
@@ -1330,7 +1330,7 @@ function Rn(e = !1, t) {
|
|
|
1330
1330
|
...Ro(e ? "y" : "x"),
|
|
1331
1331
|
enabled: !1,
|
|
1332
1332
|
filter: lr,
|
|
1333
|
-
external:
|
|
1333
|
+
external: Br(e, t)
|
|
1334
1334
|
};
|
|
1335
1335
|
}
|
|
1336
1336
|
const fo = "en-US";
|
|
@@ -1344,7 +1344,7 @@ function mo(e, t) {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
return typeof o == "string" ? o : void 0;
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function Ar() {
|
|
1348
1348
|
const e = Vn(), t = "report.widget.legend.comparison";
|
|
1349
1349
|
return `(${mo(cn[e] ?? cn[fo], t) ?? mo(cn[fo], t) ?? "Comparison"})`;
|
|
1350
1350
|
}
|
|
@@ -1352,10 +1352,10 @@ function Xo(e) {
|
|
|
1352
1352
|
function o(C, v, h) {
|
|
1353
1353
|
if (C.measureText(v).width <= h) return v;
|
|
1354
1354
|
const L = "…";
|
|
1355
|
-
let I = 0,
|
|
1356
|
-
for (; I <
|
|
1357
|
-
const
|
|
1358
|
-
C.measureText(J).width <= h ? I =
|
|
1355
|
+
let I = 0, A = v.length;
|
|
1356
|
+
for (; I < A; ) {
|
|
1357
|
+
const B = Math.floor((I + A) / 2), J = v.slice(0, B) + L;
|
|
1358
|
+
C.measureText(J).width <= h ? I = B + 1 : A = B;
|
|
1359
1359
|
}
|
|
1360
1360
|
return v.slice(0, I - 1) + L;
|
|
1361
1361
|
}
|
|
@@ -1370,7 +1370,7 @@ function Xo(e) {
|
|
|
1370
1370
|
function l(C, v) {
|
|
1371
1371
|
const h = C == null ? "" : String(C).trim();
|
|
1372
1372
|
if (h.length === 0) return h;
|
|
1373
|
-
const L =
|
|
1373
|
+
const L = Ar();
|
|
1374
1374
|
return h.endsWith(` ${L}`) || h.endsWith(L) ? h : (v == null ? void 0 : v.dash) === !0 || (v == null ? void 0 : v.isCompare) === !0 ? `${h} ${L}` : h;
|
|
1375
1375
|
}
|
|
1376
1376
|
const u = c(() => ({
|
|
@@ -1403,11 +1403,11 @@ function Xo(e) {
|
|
|
1403
1403
|
if (L && typeof L.getLabelForValue == "function" && (h = L.getLabelForValue(C)), L != null && L.type && L.type !== "category")
|
|
1404
1404
|
return r(h);
|
|
1405
1405
|
h = a(h);
|
|
1406
|
-
const I = L == null ? void 0 : L.chart,
|
|
1407
|
-
if (
|
|
1408
|
-
|
|
1409
|
-
const k =
|
|
1410
|
-
return
|
|
1406
|
+
const I = L == null ? void 0 : L.chart, A = L == null ? void 0 : L.ctx, B = I.height * 0.25;
|
|
1407
|
+
if (A && B > 0) {
|
|
1408
|
+
A.save();
|
|
1409
|
+
const k = A.measureText(h).width > B ? o(A, h, B) : h;
|
|
1410
|
+
return A.restore(), k;
|
|
1411
1411
|
}
|
|
1412
1412
|
return h;
|
|
1413
1413
|
},
|
|
@@ -1453,11 +1453,11 @@ function Xo(e) {
|
|
|
1453
1453
|
if (L && typeof L.getLabelForValue == "function" && (h = L.getLabelForValue(C)), L != null && L.type && L.type !== "category")
|
|
1454
1454
|
return r(h);
|
|
1455
1455
|
h = a(h);
|
|
1456
|
-
const I = L == null ? void 0 : L.chart,
|
|
1457
|
-
if (
|
|
1458
|
-
|
|
1459
|
-
const k =
|
|
1460
|
-
return
|
|
1456
|
+
const I = L == null ? void 0 : L.chart, A = L == null ? void 0 : L.ctx, B = I.width * 0.4;
|
|
1457
|
+
if (A && B > 0) {
|
|
1458
|
+
A.save();
|
|
1459
|
+
const k = A.measureText(h).width > B ? o(A, h, B) : h;
|
|
1460
|
+
return A.restore(), k;
|
|
1461
1461
|
}
|
|
1462
1462
|
return h;
|
|
1463
1463
|
}
|
|
@@ -1486,10 +1486,10 @@ function Xo(e) {
|
|
|
1486
1486
|
if (h.length === 0) return [];
|
|
1487
1487
|
if (h.length === 1 && Array.isArray(h[0].backgroundColor) && h[0].backgroundColor.length > 1 && Array.isArray(h[0].data)) {
|
|
1488
1488
|
const I = h[0];
|
|
1489
|
-
return C.data.labels.map((
|
|
1489
|
+
return C.data.labels.map((B, J) => {
|
|
1490
1490
|
const k = I.backgroundColor[J];
|
|
1491
1491
|
return {
|
|
1492
|
-
text:
|
|
1492
|
+
text: B,
|
|
1493
1493
|
fontColor: v,
|
|
1494
1494
|
color: v,
|
|
1495
1495
|
fillStyle: k,
|
|
@@ -1500,16 +1500,16 @@ function Xo(e) {
|
|
|
1500
1500
|
};
|
|
1501
1501
|
});
|
|
1502
1502
|
}
|
|
1503
|
-
return C.data.datasets.map((I,
|
|
1504
|
-
const
|
|
1503
|
+
return C.data.datasets.map((I, A) => {
|
|
1504
|
+
const B = I.borderColor || I.backgroundColor;
|
|
1505
1505
|
return {
|
|
1506
1506
|
text: l(I.label, I),
|
|
1507
1507
|
fontColor: v,
|
|
1508
1508
|
color: v,
|
|
1509
|
-
fillStyle:
|
|
1510
|
-
strokeStyle:
|
|
1511
|
-
datasetIndex:
|
|
1512
|
-
hidden: !C.isDatasetVisible(
|
|
1509
|
+
fillStyle: B,
|
|
1510
|
+
strokeStyle: B,
|
|
1511
|
+
datasetIndex: A,
|
|
1512
|
+
hidden: !C.isDatasetVisible(A)
|
|
1513
1513
|
};
|
|
1514
1514
|
});
|
|
1515
1515
|
}
|
|
@@ -1542,7 +1542,7 @@ const Fr = {
|
|
|
1542
1542
|
return (((F = n.detailsPayload) == null ? void 0 : F.sections) ?? []).filter((y) => y.values.length > 0);
|
|
1543
1543
|
}), W = c(
|
|
1544
1544
|
() => D.value.map((F, y) => {
|
|
1545
|
-
const b =
|
|
1545
|
+
const b = A(F.title, y), R = Math.min(f.value[b] ?? sn, F.values.length);
|
|
1546
1546
|
return {
|
|
1547
1547
|
...F,
|
|
1548
1548
|
key: b,
|
|
@@ -1568,12 +1568,12 @@ const Fr = {
|
|
|
1568
1568
|
function I() {
|
|
1569
1569
|
o("value-leave");
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1571
|
+
function A(F, y) {
|
|
1572
1572
|
return `${F || "section"}-${y}`;
|
|
1573
1573
|
}
|
|
1574
|
-
function
|
|
1574
|
+
function B() {
|
|
1575
1575
|
f.value = D.value.reduce(
|
|
1576
|
-
(F, y, b) => (F[
|
|
1576
|
+
(F, y, b) => (F[A(y.title, b)] = sn, F),
|
|
1577
1577
|
{}
|
|
1578
1578
|
);
|
|
1579
1579
|
}
|
|
@@ -1621,10 +1621,10 @@ const Fr = {
|
|
|
1621
1621
|
function G(F) {
|
|
1622
1622
|
m.value && F.key === "Escape" && k();
|
|
1623
1623
|
}
|
|
1624
|
-
return
|
|
1625
|
-
m.value &&
|
|
1624
|
+
return Te([D, m], () => {
|
|
1625
|
+
m.value && B();
|
|
1626
1626
|
}), zt(() => {
|
|
1627
|
-
l.value = _(l.value),
|
|
1627
|
+
l.value = _(l.value), B(), document.addEventListener("pointerdown", j, !0), document.addEventListener("keydown", G), window.addEventListener("resize", O);
|
|
1628
1628
|
}), Co(() => {
|
|
1629
1629
|
x(), document.removeEventListener("pointerdown", j, !0), document.removeEventListener("keydown", G), window.removeEventListener("resize", O);
|
|
1630
1630
|
}), (F, y) => {
|
|
@@ -1637,7 +1637,7 @@ const Fr = {
|
|
|
1637
1637
|
"leave-from-class": "translate-x-0 opacity-100",
|
|
1638
1638
|
"leave-to-class": "translate-x-full opacity-0"
|
|
1639
1639
|
}, {
|
|
1640
|
-
default:
|
|
1640
|
+
default: Le(() => [
|
|
1641
1641
|
m.value ? (K(), le("div", Fr, [
|
|
1642
1642
|
Y("div", {
|
|
1643
1643
|
ref_key: "panelRef",
|
|
@@ -1684,7 +1684,7 @@ const Fr = {
|
|
|
1684
1684
|
}, [
|
|
1685
1685
|
Y("span", Wr, [
|
|
1686
1686
|
Y("span", {
|
|
1687
|
-
class:
|
|
1687
|
+
class: De([
|
|
1688
1688
|
"inline-block h-3 w-3 shrink-0 box-border",
|
|
1689
1689
|
M.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)]"
|
|
1690
1690
|
]),
|
|
@@ -1739,13 +1739,13 @@ const Fr = {
|
|
|
1739
1739
|
},
|
|
1740
1740
|
emits: ["toggleDatasetVisibility", "toggleDataPointVisibility"],
|
|
1741
1741
|
setup(e, { emit: t }) {
|
|
1742
|
-
const n = e, o = t, { t: a, locale: r } = mt(), l = P([]), u = P(0), f = P(!1), m = P(!1), D = P(0), W = P(null), C = P(null), v = P(null), h = P(null), L = P(!1), I = P(0),
|
|
1742
|
+
const n = e, o = t, { t: a, locale: r } = mt(), l = P([]), u = P(0), f = P(!1), m = P(!1), D = P(0), W = P(null), C = P(null), v = P(null), h = P(null), L = P(!1), I = P(0), A = P(0), B = P(!1), J = P(0), k = P(0), V = c(() => n.enabled !== !1), _ = c(() => n.position === "left" || n.position === "right");
|
|
1743
1743
|
let S = null;
|
|
1744
1744
|
const x = c(
|
|
1745
1745
|
() => f.value && m.value && L.value
|
|
1746
1746
|
), $ = c(() => ({
|
|
1747
1747
|
height: `${Math.max(0, I.value)}px`,
|
|
1748
|
-
transform: `translateY(${Math.max(0,
|
|
1748
|
+
transform: `translateY(${Math.max(0, A.value)}px)`
|
|
1749
1749
|
})), q = c(() => typeof n.textColor == "string" && n.textColor.trim().length > 0 ? n.textColor : "#6b6b6b"), O = c(() => typeof n.fontSize == "number" && Number.isFinite(n.fontSize) && n.fontSize > 0 ? n.fontSize : 12);
|
|
1750
1750
|
function j(s) {
|
|
1751
1751
|
G({ height: s, width: 0 });
|
|
@@ -1798,16 +1798,16 @@ const Fr = {
|
|
|
1798
1798
|
function T() {
|
|
1799
1799
|
const s = v.value;
|
|
1800
1800
|
if (!s) {
|
|
1801
|
-
L.value = !1, I.value = 0,
|
|
1801
|
+
L.value = !1, I.value = 0, A.value = 0;
|
|
1802
1802
|
return;
|
|
1803
1803
|
}
|
|
1804
1804
|
const p = s.clientHeight, d = s.scrollHeight, g = s.scrollTop, N = d > p + 1;
|
|
1805
1805
|
if (L.value = N, !N || p <= 0) {
|
|
1806
|
-
I.value = 0,
|
|
1806
|
+
I.value = 0, A.value = 0;
|
|
1807
1807
|
return;
|
|
1808
1808
|
}
|
|
1809
1809
|
const U = p, ee = Math.max(18, Math.round(p / d * U)), oe = Math.max(0, U - ee), X = Math.max(1, d - p), ce = Math.round(g / X * oe);
|
|
1810
|
-
I.value = ee,
|
|
1810
|
+
I.value = ee, A.value = ce;
|
|
1811
1811
|
}
|
|
1812
1812
|
function M() {
|
|
1813
1813
|
T();
|
|
@@ -1820,10 +1820,10 @@ const Fr = {
|
|
|
1820
1820
|
p.scrollTop = oe * X, T();
|
|
1821
1821
|
}
|
|
1822
1822
|
function re(s) {
|
|
1823
|
-
L.value && (
|
|
1823
|
+
L.value && (B.value = !0, J.value = s.clientY, k.value = A.value);
|
|
1824
1824
|
}
|
|
1825
1825
|
function se(s) {
|
|
1826
|
-
if (!
|
|
1826
|
+
if (!B.value)
|
|
1827
1827
|
return;
|
|
1828
1828
|
const p = v.value;
|
|
1829
1829
|
if (!p)
|
|
@@ -1832,7 +1832,7 @@ const Fr = {
|
|
|
1832
1832
|
p.scrollTop = U * ee, T();
|
|
1833
1833
|
}
|
|
1834
1834
|
function H() {
|
|
1835
|
-
|
|
1835
|
+
B.value && (B.value = !1);
|
|
1836
1836
|
}
|
|
1837
1837
|
function Z() {
|
|
1838
1838
|
var p;
|
|
@@ -1910,7 +1910,7 @@ const Fr = {
|
|
|
1910
1910
|
}
|
|
1911
1911
|
return Number.isFinite(p) && p > 0 ? Math.max(0, Math.floor(p * 0.3)) : 120;
|
|
1912
1912
|
}
|
|
1913
|
-
function
|
|
1913
|
+
function xe() {
|
|
1914
1914
|
var U;
|
|
1915
1915
|
if (_.value) {
|
|
1916
1916
|
const ee = ye();
|
|
@@ -1930,20 +1930,20 @@ const Fr = {
|
|
|
1930
1930
|
const N = ye();
|
|
1931
1931
|
return N != null ? Math.max(0, Math.floor(N * 0.3)) : 180;
|
|
1932
1932
|
}
|
|
1933
|
-
function
|
|
1933
|
+
function Ie(s, p) {
|
|
1934
1934
|
const d = n.chartColorBinding;
|
|
1935
1935
|
if (d) {
|
|
1936
1936
|
const U = typeof s.datasetIndex == "number" ? s.datasetIndex : p, ee = Number.isInteger(n.metricCount) && Number(n.metricCount) > 0 ? Number(n.metricCount) : Math.max(1, Number(l.value.length));
|
|
1937
|
-
if (d ===
|
|
1938
|
-
const X =
|
|
1937
|
+
if (d === we.breakdown) {
|
|
1938
|
+
const X = kt({
|
|
1939
1939
|
fallbackIndex: U,
|
|
1940
1940
|
metricCount: ee
|
|
1941
|
-
}), ce =
|
|
1941
|
+
}), ce = Fe({
|
|
1942
1942
|
datasetIndex: U,
|
|
1943
1943
|
metricCount: ee,
|
|
1944
|
-
mode:
|
|
1944
|
+
mode: we.metric
|
|
1945
1945
|
});
|
|
1946
|
-
return
|
|
1946
|
+
return Lt({
|
|
1947
1947
|
breakdownIndex: X,
|
|
1948
1948
|
metricIndex: ce,
|
|
1949
1949
|
metricCount: ee,
|
|
@@ -1952,11 +1952,11 @@ const Fr = {
|
|
|
1952
1952
|
customColors: n.chartColors
|
|
1953
1953
|
});
|
|
1954
1954
|
}
|
|
1955
|
-
if (d ===
|
|
1956
|
-
const X =
|
|
1955
|
+
if (d === we.metric) {
|
|
1956
|
+
const X = Fe({
|
|
1957
1957
|
datasetIndex: U,
|
|
1958
1958
|
metricCount: ee,
|
|
1959
|
-
mode:
|
|
1959
|
+
mode: we.metric
|
|
1960
1960
|
});
|
|
1961
1961
|
return Je({ index: X, customColors: n.chartColors });
|
|
1962
1962
|
}
|
|
@@ -1964,15 +1964,15 @@ const Fr = {
|
|
|
1964
1964
|
return Je({ index: oe, customColors: n.chartColors });
|
|
1965
1965
|
}
|
|
1966
1966
|
const g = s;
|
|
1967
|
-
return
|
|
1967
|
+
return _e(s.fillStyle) || _e(s.strokeStyle) || _e(g.color) || "#9ca3af";
|
|
1968
1968
|
}
|
|
1969
|
-
function
|
|
1970
|
-
return typeof s == "string" && s.trim().length > 0 ? s : Array.isArray(s) ? s.map((d) =>
|
|
1969
|
+
function _e(s) {
|
|
1970
|
+
return typeof s == "string" && s.trim().length > 0 ? s : Array.isArray(s) ? s.map((d) => _e(d)).find((d) => typeof d == "string" && d.trim().length > 0) ?? "" : "";
|
|
1971
1971
|
}
|
|
1972
1972
|
function Ze(s) {
|
|
1973
1973
|
return Array.isArray(n.hiddenDataPointIndexes) ? n.hiddenDataPointIndexes.includes(s) : !1;
|
|
1974
1974
|
}
|
|
1975
|
-
function
|
|
1975
|
+
function Ae(s) {
|
|
1976
1976
|
return Array.isArray(s) ? s : [];
|
|
1977
1977
|
}
|
|
1978
1978
|
function at(s) {
|
|
@@ -1980,7 +1980,7 @@ const Fr = {
|
|
|
1980
1980
|
return s;
|
|
1981
1981
|
const p = Number.isInteger(n.metricCount) && Number(n.metricCount) > 0 ? Number(n.metricCount) : 1;
|
|
1982
1982
|
return [...s.map((g, N) => {
|
|
1983
|
-
const U = typeof g.datasetIndex == "number" ? g.datasetIndex : N, ee =
|
|
1983
|
+
const U = typeof g.datasetIndex == "number" ? g.datasetIndex : N, ee = kt({
|
|
1984
1984
|
fallbackIndex: U,
|
|
1985
1985
|
metricCount: p
|
|
1986
1986
|
});
|
|
@@ -2029,7 +2029,7 @@ const Fr = {
|
|
|
2029
2029
|
}
|
|
2030
2030
|
return d;
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2032
|
+
function ht(s) {
|
|
2033
2033
|
var X, ce, ve, Q, ae, ge;
|
|
2034
2034
|
const p = s == null ? void 0 : s.legend;
|
|
2035
2035
|
if (typeof (p == null ? void 0 : p.buildLabels) == "function")
|
|
@@ -2037,19 +2037,19 @@ const Fr = {
|
|
|
2037
2037
|
p.buildLabels();
|
|
2038
2038
|
} catch {
|
|
2039
2039
|
}
|
|
2040
|
-
const d =
|
|
2040
|
+
const d = Ae(p == null ? void 0 : p.legendItems);
|
|
2041
2041
|
if (d.length > 0)
|
|
2042
2042
|
return d;
|
|
2043
2043
|
const g = (ce = (X = s == null ? void 0 : s.options) == null ? void 0 : X.plugins) == null ? void 0 : ce.legend, N = g == null ? void 0 : g.labels, U = N == null ? void 0 : N.generateLabels, ee = (ge = (ae = (Q = (ve = Tn.defaults) == null ? void 0 : ve.plugins) == null ? void 0 : Q.legend) == null ? void 0 : ae.labels) == null ? void 0 : ge.generateLabels;
|
|
2044
|
-
let oe =
|
|
2044
|
+
let oe = Ae(
|
|
2045
2045
|
typeof U == "function" ? U(s) : []
|
|
2046
2046
|
);
|
|
2047
|
-
return oe.length === 0 && typeof ee == "function" && (oe =
|
|
2047
|
+
return oe.length === 0 && typeof ee == "function" && (oe = Ae(ee(s))), typeof (N == null ? void 0 : N.filter) == "function" && (oe = oe.filter((be) => N.filter(be, s.data))), typeof (N == null ? void 0 : N.sort) == "function" && (oe = [...oe].sort((be, Re) => N.sort(be, Re, s.data))), (g == null ? void 0 : g.reverse) === !0 && (oe = [...oe].reverse()), oe;
|
|
2048
2048
|
}
|
|
2049
|
-
function
|
|
2049
|
+
function gt(s) {
|
|
2050
2050
|
var d;
|
|
2051
2051
|
return (Array.isArray((d = s == null ? void 0 : s.data) == null ? void 0 : d.datasets) ? s.data.datasets : []).map((g, N) => {
|
|
2052
|
-
const U =
|
|
2052
|
+
const U = _e((g == null ? void 0 : g.borderColor) ?? (g == null ? void 0 : g.backgroundColor)), ee = xt({
|
|
2053
2053
|
datasetIndex: N,
|
|
2054
2054
|
label: g == null ? void 0 : g.label
|
|
2055
2055
|
});
|
|
@@ -2063,11 +2063,11 @@ const Fr = {
|
|
|
2063
2063
|
};
|
|
2064
2064
|
});
|
|
2065
2065
|
}
|
|
2066
|
-
const
|
|
2066
|
+
const vt = c(() => `(${a("report.widget.legend.comparison")})`), rt = c(
|
|
2067
2067
|
() => (s, p) => {
|
|
2068
2068
|
const d = s == null ? "" : String(s).trim();
|
|
2069
2069
|
if (d.length === 0) return d;
|
|
2070
|
-
const g =
|
|
2070
|
+
const g = vt.value;
|
|
2071
2071
|
return d.endsWith(` ${g}`) || d.endsWith(g) ? d : (p == null ? void 0 : p.dash) === !0 || (p == null ? void 0 : p.isCompare) === !0 ? `${d} ${g}` : d;
|
|
2072
2072
|
}
|
|
2073
2073
|
);
|
|
@@ -2077,33 +2077,33 @@ const Fr = {
|
|
|
2077
2077
|
const d = s, g = d[0], N = Array.isArray(g == null ? void 0 : g.labels) ? g.labels : [], U = Array.isArray(p == null ? void 0 : p.metrics) ? p.metrics : [], ee = N.length > 0 ? N : U, oe = g == null ? void 0 : g.backgroundColor;
|
|
2078
2078
|
return d.length === 1 && Array.isArray(oe) && oe.length > 1 ? oe.map((X, ce) => ({
|
|
2079
2079
|
text: ee[ce] == null || String(ee[ce]).trim().length === 0 ? `Series ${ce + 1}` : String(ee[ce]),
|
|
2080
|
-
fillStyle:
|
|
2081
|
-
strokeStyle:
|
|
2080
|
+
fillStyle: _e(X),
|
|
2081
|
+
strokeStyle: _e(X),
|
|
2082
2082
|
datasetIndex: 0,
|
|
2083
2083
|
index: ce,
|
|
2084
2084
|
hidden: Ze(ce)
|
|
2085
2085
|
})) : d.map((X, ce) => ({
|
|
2086
|
-
datasetKey:
|
|
2086
|
+
datasetKey: xt({
|
|
2087
2087
|
datasetIndex: ce,
|
|
2088
2088
|
label: X == null ? void 0 : X.label
|
|
2089
2089
|
}),
|
|
2090
2090
|
text: rt.value(X == null ? void 0 : X.label, X),
|
|
2091
|
-
fillStyle:
|
|
2091
|
+
fillStyle: _e(
|
|
2092
2092
|
(X == null ? void 0 : X.color) ?? (X == null ? void 0 : X.borderColor) ?? (X == null ? void 0 : X.backgroundColor) ?? (X == null ? void 0 : X.pointBackgroundColor)
|
|
2093
2093
|
),
|
|
2094
|
-
strokeStyle:
|
|
2094
|
+
strokeStyle: _e(
|
|
2095
2095
|
(X == null ? void 0 : X.color) ?? (X == null ? void 0 : X.borderColor) ?? (X == null ? void 0 : X.backgroundColor) ?? (X == null ? void 0 : X.pointBorderColor)
|
|
2096
2096
|
),
|
|
2097
2097
|
datasetIndex: ce,
|
|
2098
2098
|
hidden: Array.isArray(n.hiddenDatasetKeys) ? n.hiddenDatasetKeys.includes(
|
|
2099
|
-
|
|
2099
|
+
xt({
|
|
2100
2100
|
datasetIndex: ce,
|
|
2101
2101
|
label: X == null ? void 0 : X.label
|
|
2102
2102
|
})
|
|
2103
2103
|
) : !!(X != null && X.hidden)
|
|
2104
2104
|
}));
|
|
2105
2105
|
}
|
|
2106
|
-
function
|
|
2106
|
+
function yt() {
|
|
2107
2107
|
var p;
|
|
2108
2108
|
const s = (p = n.chartRef) == null ? void 0 : p.datasets;
|
|
2109
2109
|
return Array.isArray(s) ? s : [];
|
|
@@ -2210,7 +2210,7 @@ const Fr = {
|
|
|
2210
2210
|
"--legend-font-size": `${O.value}px`
|
|
2211
2211
|
}, p = ne();
|
|
2212
2212
|
if (_.value) {
|
|
2213
|
-
const d =
|
|
2213
|
+
const d = xe();
|
|
2214
2214
|
return {
|
|
2215
2215
|
...s,
|
|
2216
2216
|
width: "fit-content",
|
|
@@ -2252,21 +2252,21 @@ const Fr = {
|
|
|
2252
2252
|
return;
|
|
2253
2253
|
}
|
|
2254
2254
|
try {
|
|
2255
|
-
l.value =
|
|
2255
|
+
l.value = ht(s);
|
|
2256
2256
|
} catch {
|
|
2257
2257
|
l.value = [];
|
|
2258
2258
|
}
|
|
2259
2259
|
const p = Array.isArray((g = s == null ? void 0 : s.data) == null ? void 0 : g.datasets) ? s.data.datasets : [];
|
|
2260
|
-
l.value.length === 0 && (l.value = lt(n.legendUpdateKey, n.chartRef)), l.value.length === 0 && (l.value =
|
|
2260
|
+
l.value.length === 0 && (l.value = lt(n.legendUpdateKey, n.chartRef)), l.value.length === 0 && (l.value = gt(s)), l.value = pt(at(l.value));
|
|
2261
2261
|
const d = Array.isArray(n.legendUpdateKey) && n.legendUpdateKey.length > 0 || !Array.isArray(n.legendUpdateKey) && !!n.legendUpdateKey;
|
|
2262
2262
|
l.value.length === 0 && !(p.length > 0 || d) && j(0), Ke();
|
|
2263
2263
|
}
|
|
2264
2264
|
function Jt(s) {
|
|
2265
2265
|
return Array.isArray(s.datasetIndexes) && s.datasetIndexes.length > 0 ? s.datasetIndexes.filter((p) => Number.isInteger(p)) : typeof s.datasetIndex == "number" ? [s.datasetIndex] : [];
|
|
2266
2266
|
}
|
|
2267
|
-
function
|
|
2267
|
+
function Se(s, p) {
|
|
2268
2268
|
return Array.isArray(s.datasetKeys) && s.datasetKeys.length > 0 ? s.datasetKeys.filter((d) => typeof d == "string" && d.trim().length > 0) : typeof s.datasetKey == "string" && s.datasetKey.trim().length > 0 ? [s.datasetKey] : p.map(
|
|
2269
|
-
(d) =>
|
|
2269
|
+
(d) => xt({
|
|
2270
2270
|
datasetIndex: d,
|
|
2271
2271
|
label: s.text
|
|
2272
2272
|
})
|
|
@@ -2325,12 +2325,12 @@ const Fr = {
|
|
|
2325
2325
|
);
|
|
2326
2326
|
return;
|
|
2327
2327
|
}
|
|
2328
|
-
const oe = Jt(s), X =
|
|
2328
|
+
const oe = Jt(s), X = Se(s, oe);
|
|
2329
2329
|
if (Array.isArray(n.hiddenDatasetKeys) && oe.length > 0) {
|
|
2330
2330
|
oe.forEach((Q, ae) => {
|
|
2331
2331
|
o("toggleDatasetVisibility", {
|
|
2332
2332
|
datasetIndex: Q,
|
|
2333
|
-
datasetKey: X[ae] ??
|
|
2333
|
+
datasetKey: X[ae] ?? xt({
|
|
2334
2334
|
datasetIndex: Q,
|
|
2335
2335
|
label: s.text
|
|
2336
2336
|
})
|
|
@@ -2338,7 +2338,7 @@ const Fr = {
|
|
|
2338
2338
|
});
|
|
2339
2339
|
return;
|
|
2340
2340
|
}
|
|
2341
|
-
const ce =
|
|
2341
|
+
const ce = yt();
|
|
2342
2342
|
if (!d) {
|
|
2343
2343
|
if (oe.length > 0) {
|
|
2344
2344
|
const Q = s.hidden !== !0;
|
|
@@ -2374,7 +2374,7 @@ const Fr = {
|
|
|
2374
2374
|
}
|
|
2375
2375
|
return zt(() => {
|
|
2376
2376
|
Zt(), window.addEventListener("mousemove", se), window.addEventListener("mouseup", H);
|
|
2377
|
-
}),
|
|
2377
|
+
}), Te(
|
|
2378
2378
|
() => [
|
|
2379
2379
|
n.enabled,
|
|
2380
2380
|
n.legendUpdateKey,
|
|
@@ -2386,12 +2386,12 @@ const Fr = {
|
|
|
2386
2386
|
Pt();
|
|
2387
2387
|
}
|
|
2388
2388
|
), Co(() => {
|
|
2389
|
-
|
|
2389
|
+
B.value = !1, F(), G({ height: 0, width: 0 }), window.removeEventListener("mousemove", se), window.removeEventListener("mouseup", H);
|
|
2390
2390
|
}), (s, p) => V.value ? (K(), le("div", {
|
|
2391
2391
|
key: 0,
|
|
2392
2392
|
ref_key: "legendPanelRef",
|
|
2393
2393
|
ref: W,
|
|
2394
|
-
class:
|
|
2394
|
+
class: De(["chart-legend-panel relative z-[2] flex min-w-0 flex-col overflow-hidden pointer-events-auto", {
|
|
2395
2395
|
"self-stretch h-full pt-2": _.value,
|
|
2396
2396
|
"mb-2": !_.value && s.position === "top",
|
|
2397
2397
|
"mt-2": !_.value && s.position === "bottom"
|
|
@@ -2413,7 +2413,7 @@ const Fr = {
|
|
|
2413
2413
|
Y("ul", {
|
|
2414
2414
|
ref_key: "legendListRef",
|
|
2415
2415
|
ref: v,
|
|
2416
|
-
class:
|
|
2416
|
+
class: De(["chart-legend-list m-0 flex list-none p-0", [
|
|
2417
2417
|
_.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"
|
|
2418
2418
|
]]),
|
|
2419
2419
|
style: Pe(it.value),
|
|
@@ -2421,31 +2421,31 @@ const Fr = {
|
|
|
2421
2421
|
}, [
|
|
2422
2422
|
(K(!0), le(Ne, null, ft(Qe.value, (d, g) => (K(), le("li", {
|
|
2423
2423
|
key: ze(d, g),
|
|
2424
|
-
class:
|
|
2424
|
+
class: De(["chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto", {
|
|
2425
2425
|
"opacity-45": d.hidden
|
|
2426
2426
|
}]),
|
|
2427
2427
|
"data-legend-data": "true"
|
|
2428
2428
|
}, [
|
|
2429
2429
|
Y("button", {
|
|
2430
2430
|
type: "button",
|
|
2431
|
-
class:
|
|
2431
|
+
class: De(["inline-flex max-w-full items-center gap-1.5 border-none bg-transparent p-0", { "justify-start text-left": _.value }]),
|
|
2432
2432
|
"aria-pressed": d.hidden === !0 ? "false" : "true",
|
|
2433
2433
|
onClick: un((N) => Xe(d, g), ["stop"])
|
|
2434
2434
|
}, [
|
|
2435
2435
|
n.usePointStyle !== !1 ? (K(), le("span", {
|
|
2436
2436
|
key: 0,
|
|
2437
2437
|
class: "h-5 w-5 shrink-0 rounded-full",
|
|
2438
|
-
style: Pe({ backgroundColor:
|
|
2438
|
+
style: Pe({ backgroundColor: Ie(d, g) })
|
|
2439
2439
|
}, null, 4)) : (K(), le("span", {
|
|
2440
2440
|
key: 1,
|
|
2441
2441
|
class: "h-5 w-5 shrink-0 rounded-sm border border-solid border-gray-300",
|
|
2442
2442
|
style: Pe({
|
|
2443
|
-
backgroundColor:
|
|
2443
|
+
backgroundColor: Ie(d, g),
|
|
2444
2444
|
borderColor: "#c7c7cc"
|
|
2445
2445
|
})
|
|
2446
2446
|
}, null, 4)),
|
|
2447
2447
|
Y("span", {
|
|
2448
|
-
class:
|
|
2448
|
+
class: De(["chart-legend-text leading-[1.4]", {
|
|
2449
2449
|
"max-w-[120px] whitespace-nowrap overflow-hidden text-left": _.value,
|
|
2450
2450
|
"whitespace-nowrap overflow-hidden": !_.value,
|
|
2451
2451
|
"line-through": d.hidden
|
|
@@ -2513,7 +2513,7 @@ function el(e, t) {
|
|
|
2513
2513
|
function tl(e) {
|
|
2514
2514
|
const t = P([]), n = c(() => new Set(t.value));
|
|
2515
2515
|
function o(l, u) {
|
|
2516
|
-
return
|
|
2516
|
+
return xt({
|
|
2517
2517
|
datasetIndex: u,
|
|
2518
2518
|
label: l == null ? void 0 : l.label
|
|
2519
2519
|
});
|
|
@@ -2529,7 +2529,7 @@ function tl(e) {
|
|
|
2529
2529
|
}
|
|
2530
2530
|
t.value = [...t.value, f];
|
|
2531
2531
|
}
|
|
2532
|
-
return
|
|
2532
|
+
return Te(
|
|
2533
2533
|
e,
|
|
2534
2534
|
(l) => {
|
|
2535
2535
|
const u = new Set(
|
|
@@ -2563,10 +2563,10 @@ function Xt({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2563
2563
|
), I = c(() => {
|
|
2564
2564
|
const x = h.value.position;
|
|
2565
2565
|
return !x || x === "top" || x === "bottom" || x === "left" || x === "right";
|
|
2566
|
-
}),
|
|
2567
|
-
() =>
|
|
2566
|
+
}), A = c(() => h.value.position ?? "top"), B = c(
|
|
2567
|
+
() => A.value === "left" || A.value === "right"
|
|
2568
2568
|
), J = c(
|
|
2569
|
-
() =>
|
|
2569
|
+
() => A.value === "top" || A.value === "left"
|
|
2570
2570
|
), { hiddenDatasetKeys: k, isDatasetHidden: V, toggleDatasetVisibility: _ } = tl(n), S = c(() => n.value.map((x, $) => ({
|
|
2571
2571
|
...x,
|
|
2572
2572
|
hidden: V(x, $)
|
|
@@ -2584,8 +2584,8 @@ function Xt({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2584
2584
|
isTransposed: v,
|
|
2585
2585
|
legend: h,
|
|
2586
2586
|
useCustomLegend: I,
|
|
2587
|
-
legendPosition:
|
|
2588
|
-
isLegendSide:
|
|
2587
|
+
legendPosition: A,
|
|
2588
|
+
isLegendSide: B,
|
|
2589
2589
|
isLegendBeforeChart: J,
|
|
2590
2590
|
hiddenDatasetKeys: k,
|
|
2591
2591
|
toggleDatasetVisibility: _,
|
|
@@ -2663,22 +2663,22 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
2663
2663
|
const z = Wt({
|
|
2664
2664
|
datasets: l.value,
|
|
2665
2665
|
datasetIndex: M
|
|
2666
|
-
}), re = r.value ? Et(l.value, z) : z, se =
|
|
2666
|
+
}), re = r.value ? Et(l.value, z) : z, se = Fe({
|
|
2667
2667
|
datasetIndex: re,
|
|
2668
2668
|
isCompare: !1,
|
|
2669
2669
|
metricCount: t.value.metricCount,
|
|
2670
2670
|
mode: t.value.chartColorBinding
|
|
2671
|
-
}), H =
|
|
2671
|
+
}), H = Fe({
|
|
2672
2672
|
datasetIndex: re,
|
|
2673
2673
|
isCompare: !1,
|
|
2674
2674
|
metricCount: t.value.metricCount,
|
|
2675
|
-
mode:
|
|
2675
|
+
mode: we.metric
|
|
2676
2676
|
});
|
|
2677
2677
|
let Z = T.values;
|
|
2678
2678
|
u.value && (Z = o.value.map(
|
|
2679
2679
|
(ye, ne) => ne === M ? T.values[0] : NaN
|
|
2680
2680
|
));
|
|
2681
|
-
const te = t.value.chartColorBinding ===
|
|
2681
|
+
const te = t.value.chartColorBinding === we.breakdown, ie = kt({
|
|
2682
2682
|
fallbackIndex: re,
|
|
2683
2683
|
metricCount: t.value.metricCount
|
|
2684
2684
|
}), me = Yt(Z);
|
|
@@ -2694,7 +2694,7 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
2694
2694
|
skipNull: r.value,
|
|
2695
2695
|
minBarLength: void 0,
|
|
2696
2696
|
barPercentage: D.value ? _n : void 0,
|
|
2697
|
-
backgroundColor: te ?
|
|
2697
|
+
backgroundColor: te ? Lt({
|
|
2698
2698
|
breakdownIndex: ie,
|
|
2699
2699
|
metricIndex: H,
|
|
2700
2700
|
metricCount: t.value.metricCount,
|
|
@@ -2713,8 +2713,8 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
2713
2713
|
isTooltipDetailsSheetOpen: h,
|
|
2714
2714
|
tooltipDetailsPayload: L,
|
|
2715
2715
|
handleTooltipDetailsSheetVisibility: I,
|
|
2716
|
-
handleTooltipDetailsHover:
|
|
2717
|
-
handleTooltipDetailsLeave:
|
|
2716
|
+
handleTooltipDetailsHover: A,
|
|
2717
|
+
handleTooltipDetailsLeave: B,
|
|
2718
2718
|
comparisonTooltip: J,
|
|
2719
2719
|
datalabels: k,
|
|
2720
2720
|
xCfg: V,
|
|
@@ -2760,7 +2760,7 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
2760
2760
|
Y("div", nl, [
|
|
2761
2761
|
ot(T.$slots, "menu"),
|
|
2762
2762
|
Y("div", {
|
|
2763
|
-
class:
|
|
2763
|
+
class: De(["chart-layout", {
|
|
2764
2764
|
"chart-layout--side": i($) && (i(x).display ?? !1) && i(O)
|
|
2765
2765
|
}])
|
|
2766
2766
|
}, [
|
|
@@ -2819,8 +2819,8 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
2819
2819
|
"model-value": i(h),
|
|
2820
2820
|
"details-payload": i(L),
|
|
2821
2821
|
"onUpdate:modelValue": i(I),
|
|
2822
|
-
onValueHover: i(
|
|
2823
|
-
onValueLeave: i(
|
|
2822
|
+
onValueHover: i(A),
|
|
2823
|
+
onValueLeave: i(B)
|
|
2824
2824
|
}, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
|
|
2825
2825
|
], 64);
|
|
2826
2826
|
};
|
|
@@ -2853,7 +2853,7 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
2853
2853
|
}
|
|
2854
2854
|
]), V;
|
|
2855
2855
|
});
|
|
2856
|
-
|
|
2856
|
+
Te(
|
|
2857
2857
|
() => t.value.data.datasets,
|
|
2858
2858
|
(V) => {
|
|
2859
2859
|
const _ = new Set(
|
|
@@ -2876,7 +2876,7 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
2876
2876
|
var _;
|
|
2877
2877
|
const V = (_ = l.value.labels) == null ? void 0 : _.color;
|
|
2878
2878
|
return typeof V == "string" && V.trim().length > 0 ? V : t.value.legendColor ?? "#6b6b6b";
|
|
2879
|
-
}),
|
|
2879
|
+
}), A = c(() => m.value), B = c(() => ({
|
|
2880
2880
|
display: !1
|
|
2881
2881
|
})), J = $a();
|
|
2882
2882
|
function k({ itemIndex: V }) {
|
|
@@ -2893,7 +2893,7 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
2893
2893
|
return K(), le("div", al, [
|
|
2894
2894
|
ot(V.$slots, "menu"),
|
|
2895
2895
|
Y("div", {
|
|
2896
|
-
class:
|
|
2896
|
+
class: De(["chart-layout", {
|
|
2897
2897
|
"chart-layout--side": C.value && h.value
|
|
2898
2898
|
}])
|
|
2899
2899
|
}, [
|
|
@@ -2903,7 +2903,7 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
2903
2903
|
enabled: W.value,
|
|
2904
2904
|
position: v.value,
|
|
2905
2905
|
"text-color": I.value,
|
|
2906
|
-
"font-size":
|
|
2906
|
+
"font-size": A.value,
|
|
2907
2907
|
"legend-update-key": f.value,
|
|
2908
2908
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
2909
2909
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -2923,7 +2923,7 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
2923
2923
|
metrics: u.value,
|
|
2924
2924
|
tooltip: i(J),
|
|
2925
2925
|
variant: "doughnut",
|
|
2926
|
-
legend:
|
|
2926
|
+
legend: B.value,
|
|
2927
2927
|
datalabels: i(r),
|
|
2928
2928
|
"maintain-aspect-ratio": !1
|
|
2929
2929
|
}, null, 8, ["datasets", "metrics", "tooltip", "legend", "datalabels"]),
|
|
@@ -2933,7 +2933,7 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
2933
2933
|
enabled: W.value,
|
|
2934
2934
|
position: v.value,
|
|
2935
2935
|
"text-color": I.value,
|
|
2936
|
-
"font-size":
|
|
2936
|
+
"font-size": A.value,
|
|
2937
2937
|
"legend-update-key": f.value,
|
|
2938
2938
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
2939
2939
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -3040,14 +3040,14 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
3040
3040
|
() => v.value || n("report.widget.scorecardProgress.emptyValue")
|
|
3041
3041
|
), I = c(
|
|
3042
3042
|
() => n("report.widget.scorecardProgress.remaining", {
|
|
3043
|
-
value:
|
|
3043
|
+
value: A.value || n("report.widget.scorecardProgress.emptyValue")
|
|
3044
3044
|
})
|
|
3045
|
-
),
|
|
3045
|
+
), A = c(() => {
|
|
3046
3046
|
const O = D(l.value), j = m.value;
|
|
3047
3047
|
return !Number.isFinite(O) || j == null || j <= 0 ? "" : dt(Math.max(j - O, 0));
|
|
3048
|
-
}),
|
|
3048
|
+
}), B = c(() => {
|
|
3049
3049
|
const { data: O } = t.value;
|
|
3050
|
-
return O != null && O.comparison ?
|
|
3050
|
+
return O != null && O.comparison ? Ao(l.value, O.comparison, r) : null;
|
|
3051
3051
|
});
|
|
3052
3052
|
function J(O) {
|
|
3053
3053
|
switch (O) {
|
|
@@ -3085,43 +3085,43 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
3085
3085
|
Y("p", pl, Ce(u.value), 1),
|
|
3086
3086
|
Y("div", hl, [
|
|
3087
3087
|
pe(y, {
|
|
3088
|
-
disabled:
|
|
3088
|
+
disabled: B.value === null,
|
|
3089
3089
|
placement: "right",
|
|
3090
3090
|
"hide-arrow": "",
|
|
3091
3091
|
variant: "rich"
|
|
3092
3092
|
}, {
|
|
3093
|
-
content:
|
|
3093
|
+
content: Le(() => {
|
|
3094
3094
|
var M;
|
|
3095
3095
|
return [
|
|
3096
3096
|
Y("span", gl, Ce(`vs. ${(M = i(a).defaultCompareType) == null ? void 0 : M.split("_").join(" ")}`), 1)
|
|
3097
3097
|
];
|
|
3098
3098
|
}),
|
|
3099
|
-
default:
|
|
3100
|
-
|
|
3099
|
+
default: Le(() => [
|
|
3100
|
+
B.value ? (K(), de(F, {
|
|
3101
3101
|
key: 0,
|
|
3102
|
-
icon:
|
|
3103
|
-
class:
|
|
3102
|
+
icon: B.value.icon.name,
|
|
3103
|
+
class: De(`bg-${B.value.icon.tailwind}`),
|
|
3104
3104
|
compact: ""
|
|
3105
3105
|
}, {
|
|
3106
|
-
default:
|
|
3106
|
+
default: Le(() => [
|
|
3107
3107
|
pe(G, {
|
|
3108
|
-
name:
|
|
3109
|
-
color:
|
|
3108
|
+
name: B.value.icon.name,
|
|
3109
|
+
color: B.value.icon.color
|
|
3110
3110
|
}, null, 8, ["name", "color"]),
|
|
3111
3111
|
Y("p", {
|
|
3112
3112
|
class: "fm-typo-en-body-md-600",
|
|
3113
|
-
style: Pe({ color:
|
|
3114
|
-
}, Ce(
|
|
3113
|
+
style: Pe({ color: B.value.icon.color })
|
|
3114
|
+
}, Ce(B.value.value), 5)
|
|
3115
3115
|
]),
|
|
3116
3116
|
_: 1
|
|
3117
3117
|
}, 8, ["icon", "class"])) : he("", !0),
|
|
3118
|
-
i(o).endDate != null && i(o).startDate != null &&
|
|
3118
|
+
i(o).endDate != null && i(o).startDate != null && B.value === null ? (K(), de(F, {
|
|
3119
3119
|
key: 1,
|
|
3120
3120
|
class: "invisible pointer-events-none",
|
|
3121
3121
|
"aria-hidden": "true",
|
|
3122
3122
|
compact: ""
|
|
3123
3123
|
}, {
|
|
3124
|
-
default:
|
|
3124
|
+
default: Le(() => [
|
|
3125
3125
|
pe(G, {
|
|
3126
3126
|
name: "arrow_upward",
|
|
3127
3127
|
color: "#C7C7CC"
|
|
@@ -3137,7 +3137,7 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
3137
3137
|
f.value ? (K(), le("div", vl, [
|
|
3138
3138
|
Y("div", yl, [
|
|
3139
3139
|
Y("span", {
|
|
3140
|
-
class:
|
|
3140
|
+
class: De(W.value === null ? "" : "text-fm-color-primary-500")
|
|
3141
3141
|
}, Ce(h.value), 3),
|
|
3142
3142
|
Y("span", bl, Ce(u.value) + " / " + Ce(L.value), 1)
|
|
3143
3143
|
]),
|
|
@@ -3205,10 +3205,10 @@ function Tl(e, t) {
|
|
|
3205
3205
|
const n = fe("FmMenuDivider");
|
|
3206
3206
|
return K(), de(n);
|
|
3207
3207
|
}
|
|
3208
|
-
const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableData.worker-
|
|
3208
|
+
const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableData.worker-boBcpckx.js", Il = { class: "flex h-full flex-col" }, Pl = { class: "my-4 shrink-0" }, Ml = {
|
|
3209
3209
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
3210
3210
|
style: { backgroundColor: "#f9f9f9" }
|
|
3211
|
-
},
|
|
3211
|
+
}, Bl = { class: "font-bold" }, Al = { class: "text-fm-color-neutral-gray-300" }, Fl = /* @__PURE__ */ Be({
|
|
3212
3212
|
__name: "WidgetTable",
|
|
3213
3213
|
props: /* @__PURE__ */ Oe({
|
|
3214
3214
|
tileIndex: {}
|
|
@@ -3240,7 +3240,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3240
3240
|
if (!(!b || b <= 0))
|
|
3241
3241
|
return `${b}px`;
|
|
3242
3242
|
}
|
|
3243
|
-
function
|
|
3243
|
+
function A(y) {
|
|
3244
3244
|
const b = I(y);
|
|
3245
3245
|
if (b)
|
|
3246
3246
|
return {
|
|
@@ -3250,13 +3250,13 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3250
3250
|
maxWidth: b
|
|
3251
3251
|
};
|
|
3252
3252
|
}
|
|
3253
|
-
const
|
|
3253
|
+
const B = c(() => o.value.filterText), J = c(() => {
|
|
3254
3254
|
var b;
|
|
3255
3255
|
const y = (b = o.value.grandTotalLabel) == null ? void 0 : b.trim();
|
|
3256
3256
|
return y && y.length > 0 ? y : ut(t, n, "Grand total", "other");
|
|
3257
3257
|
}), k = c(() => {
|
|
3258
3258
|
var y, b;
|
|
3259
|
-
if (!(
|
|
3259
|
+
if (!(B.value && B.value.trim().length > 0 || !((y = C.value[0]) != null && y.isRollup) && !((b = C.value[C.value.length - 1]) != null && b.isRollup))) {
|
|
3260
3260
|
if (o.value.rollupPosition === Ge.top || o.value.rollupPosition === void 0)
|
|
3261
3261
|
return Ge.top;
|
|
3262
3262
|
if (o.value.rollupPosition === Ge.bottom)
|
|
@@ -3299,7 +3299,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3299
3299
|
} : (b.includes("#") && !b.startsWith("#") && (b = b.split("#")[0]), {
|
|
3300
3300
|
main: b,
|
|
3301
3301
|
comparison: y == null ? void 0 : y.comparison,
|
|
3302
|
-
difference:
|
|
3302
|
+
difference: Ao(y.main, y.comparison, i(a))
|
|
3303
3303
|
});
|
|
3304
3304
|
}
|
|
3305
3305
|
zt(() => {
|
|
@@ -3324,7 +3324,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3324
3324
|
})), T = {
|
|
3325
3325
|
rows: b,
|
|
3326
3326
|
columns: R,
|
|
3327
|
-
filter:
|
|
3327
|
+
filter: B.value ?? "",
|
|
3328
3328
|
globalSorts: ca(m.value).map((z) => ({
|
|
3329
3329
|
key: z.key,
|
|
3330
3330
|
type: z.type
|
|
@@ -3336,7 +3336,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3336
3336
|
y === $ && (z != null && z.error ? (u.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(z.error), x.value = []) : x.value = da(z.data || []));
|
|
3337
3337
|
});
|
|
3338
3338
|
}
|
|
3339
|
-
|
|
3339
|
+
Te(
|
|
3340
3340
|
() => m.value,
|
|
3341
3341
|
(y) => {
|
|
3342
3342
|
f.tileIndex === void 0 || f.tileIndex === null || l(f.tileIndex, y);
|
|
@@ -3349,13 +3349,13 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3349
3349
|
return JSON.stringify({
|
|
3350
3350
|
rowsLength: y.length,
|
|
3351
3351
|
columns: b.map((M) => ({ key: M.key, type: M.type, label: M.label })),
|
|
3352
|
-
filter:
|
|
3352
|
+
filter: B.value ?? "",
|
|
3353
3353
|
globalSorts: m.value.map((M) => ({ key: M.key, type: M.type })),
|
|
3354
3354
|
grandTotalPosition: k.value,
|
|
3355
3355
|
pageSize: V.value
|
|
3356
3356
|
});
|
|
3357
3357
|
});
|
|
3358
|
-
|
|
3358
|
+
Te(
|
|
3359
3359
|
() => j.value,
|
|
3360
3360
|
() => {
|
|
3361
3361
|
clearTimeout(q), q = setTimeout(O, 200);
|
|
@@ -3365,15 +3365,15 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3365
3365
|
function G(y) {
|
|
3366
3366
|
const b = m.value.find((R) => R.key === y);
|
|
3367
3367
|
if (!b) {
|
|
3368
|
-
m.value.push({ key: y, type:
|
|
3368
|
+
m.value.push({ key: y, type: Bt.Asc });
|
|
3369
3369
|
return;
|
|
3370
3370
|
}
|
|
3371
|
-
b.type ===
|
|
3371
|
+
b.type === Bt.Asc ? b.type = Bt.Desc : b.type === Bt.Desc && (m.value = m.value.filter((R) => R.key !== y));
|
|
3372
3372
|
}
|
|
3373
3373
|
const F = c(() => {
|
|
3374
3374
|
var y;
|
|
3375
3375
|
return (y = o.value.data) != null && y.columns ? o.value.data.columns.map((b, R) => {
|
|
3376
|
-
const T = ut(t, n, b.label, "other"), M = m.value.find((H) => H.key === b.key), z = !!M, re =
|
|
3376
|
+
const T = ut(t, n, b.label, "other"), M = m.value.find((H) => H.key === b.key), z = !!M, re = A(b.key), se = z ? M.type === Bt.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
|
|
3377
3377
|
return {
|
|
3378
3378
|
accessorKey: b.key,
|
|
3379
3379
|
header: () => {
|
|
@@ -3434,7 +3434,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3434
3434
|
ref: D,
|
|
3435
3435
|
"column-defs": F.value,
|
|
3436
3436
|
"row-data": x.value,
|
|
3437
|
-
"search-value":
|
|
3437
|
+
"search-value": B.value,
|
|
3438
3438
|
"page-size": V.value,
|
|
3439
3439
|
"shrink-at": !1,
|
|
3440
3440
|
"force-mobile-footer": !0,
|
|
@@ -3444,9 +3444,9 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3444
3444
|
}, ua({ _: 2 }, [
|
|
3445
3445
|
k.value ? {
|
|
3446
3446
|
name: "pin-top",
|
|
3447
|
-
fn:
|
|
3447
|
+
fn: Le(() => [
|
|
3448
3448
|
(K(), de(wo(k.value === i(Ge).bottom ? "tfoot" : "tbody"), null, {
|
|
3449
|
-
default:
|
|
3449
|
+
default: Le(() => [
|
|
3450
3450
|
Y("tr", Ml, [
|
|
3451
3451
|
(K(!0), le(Ne, null, ft(_.value, (T, M) => {
|
|
3452
3452
|
var z;
|
|
@@ -3455,11 +3455,11 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3455
3455
|
class: "text-fm-color-typo-primary px-16",
|
|
3456
3456
|
style: Pe({
|
|
3457
3457
|
...L(),
|
|
3458
|
-
...
|
|
3458
|
+
...A((z = W.value[M]) == null ? void 0 : z.key)
|
|
3459
3459
|
})
|
|
3460
3460
|
}, [
|
|
3461
3461
|
Y("span", {
|
|
3462
|
-
class:
|
|
3462
|
+
class: De([
|
|
3463
3463
|
"flex items-center text-fm-color-typo-secondary gap-2",
|
|
3464
3464
|
T.rowType === "NUMERIC" ? "text-right justify-end" : "",
|
|
3465
3465
|
"w-full min-w-0",
|
|
@@ -3467,8 +3467,8 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3467
3467
|
]),
|
|
3468
3468
|
style: Pe(L())
|
|
3469
3469
|
}, [
|
|
3470
|
-
Y("p",
|
|
3471
|
-
Y("p",
|
|
3470
|
+
Y("p", Bl, Ce(T.rowType === "NUMERIC" ? i(dt)(T.main) : T.main), 1),
|
|
3471
|
+
Y("p", Al, Ce(T.comparison ? T.rowType === "NUMERIC" ? `(${i(dt)(T.comparison)})` : `(${T.comparison})` : ""), 1)
|
|
3472
3472
|
], 6)
|
|
3473
3473
|
], 4);
|
|
3474
3474
|
}), 128))
|
|
@@ -3522,7 +3522,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3522
3522
|
breakdownIndex: z
|
|
3523
3523
|
}) {
|
|
3524
3524
|
var Z;
|
|
3525
|
-
const re = t.value.chartColorBinding ===
|
|
3525
|
+
const re = t.value.chartColorBinding === we.metric ? M : t.value.chartColorBinding === we.breakdown ? z : T, se = (Z = t.value.chartColorLayers) == null ? void 0 : Z[re], H = Number(se);
|
|
3526
3526
|
return Number.isInteger(H) && H > 0 ? H : re + 1;
|
|
3527
3527
|
}
|
|
3528
3528
|
const L = c(() => {
|
|
@@ -3531,17 +3531,17 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3531
3531
|
const re = Wt({
|
|
3532
3532
|
datasets: u.value,
|
|
3533
3533
|
datasetIndex: z
|
|
3534
|
-
}), se = l.value ? Et(u.value, re) : re, H =
|
|
3534
|
+
}), se = l.value ? Et(u.value, re) : re, H = Fe({
|
|
3535
3535
|
datasetIndex: se,
|
|
3536
3536
|
isCompare: !1,
|
|
3537
3537
|
metricCount: t.value.metricCount,
|
|
3538
3538
|
mode: t.value.chartColorBinding
|
|
3539
|
-
}), Z =
|
|
3539
|
+
}), Z = Fe({
|
|
3540
3540
|
datasetIndex: se,
|
|
3541
3541
|
isCompare: !1,
|
|
3542
3542
|
metricCount: t.value.metricCount,
|
|
3543
|
-
mode:
|
|
3544
|
-
}), te =
|
|
3543
|
+
mode: we.metric
|
|
3544
|
+
}), te = kt({
|
|
3545
3545
|
fallbackIndex: se,
|
|
3546
3546
|
metricCount: t.value.metricCount
|
|
3547
3547
|
}), ie = h({
|
|
@@ -3562,7 +3562,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3562
3562
|
minBarLength: void 0,
|
|
3563
3563
|
grouped: m.value ? !1 : void 0,
|
|
3564
3564
|
order: m.value ? ie : void 0,
|
|
3565
|
-
backgroundColor: t.value.chartColorBinding ===
|
|
3565
|
+
backgroundColor: t.value.chartColorBinding === we.breakdown ? Lt({
|
|
3566
3566
|
breakdownIndex: te,
|
|
3567
3567
|
metricIndex: Z,
|
|
3568
3568
|
metricCount: t.value.metricCount,
|
|
@@ -3583,8 +3583,8 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3583
3583
|
return [];
|
|
3584
3584
|
}), {
|
|
3585
3585
|
isTooltipDetailsSheetOpen: I,
|
|
3586
|
-
tooltipDetailsPayload:
|
|
3587
|
-
handleTooltipDetailsSheetVisibility:
|
|
3586
|
+
tooltipDetailsPayload: A,
|
|
3587
|
+
handleTooltipDetailsSheetVisibility: B,
|
|
3588
3588
|
handleTooltipDetailsHover: J,
|
|
3589
3589
|
handleTooltipDetailsLeave: k,
|
|
3590
3590
|
comparisonTooltip: V,
|
|
@@ -3612,7 +3612,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3612
3612
|
Y("div", Rl, [
|
|
3613
3613
|
ot(T.$slots, "menu"),
|
|
3614
3614
|
Y("div", {
|
|
3615
|
-
class:
|
|
3615
|
+
class: De(["chart-layout", {
|
|
3616
3616
|
"chart-layout--side": i(O) && (i(q).display ?? !1) && i(G)
|
|
3617
3617
|
}])
|
|
3618
3618
|
}, [
|
|
@@ -3670,8 +3670,8 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3670
3670
|
]),
|
|
3671
3671
|
pe(Kt, {
|
|
3672
3672
|
"model-value": i(I),
|
|
3673
|
-
"details-payload": i(
|
|
3674
|
-
"onUpdate:modelValue": i(
|
|
3673
|
+
"details-payload": i(A),
|
|
3674
|
+
"onUpdate:modelValue": i(B),
|
|
3675
3675
|
onValueHover: i(J),
|
|
3676
3676
|
onValueLeave: i(k)
|
|
3677
3677
|
}, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
|
|
@@ -3732,10 +3732,10 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3732
3732
|
colorIndex: Z
|
|
3733
3733
|
}) {
|
|
3734
3734
|
var ye;
|
|
3735
|
-
const te = t.value.chartColorBinding ===
|
|
3735
|
+
const te = t.value.chartColorBinding === we.metric ? Z : H, ie = (ye = t.value.chartColorLayers) == null ? void 0 : ye[te], me = Number(ie);
|
|
3736
3736
|
return Number.isInteger(me) && me > 0 ? me : te + 1;
|
|
3737
3737
|
}
|
|
3738
|
-
function
|
|
3738
|
+
function A(H) {
|
|
3739
3739
|
return {
|
|
3740
3740
|
label: `__comparison_gap__${H}`,
|
|
3741
3741
|
tooltipLabel: `__comparison_gap__${H}`,
|
|
@@ -3749,40 +3749,35 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3749
3749
|
isSpacer: !0
|
|
3750
3750
|
};
|
|
3751
3751
|
}
|
|
3752
|
-
const
|
|
3752
|
+
const B = c(() => {
|
|
3753
3753
|
if (r.value.length === 0)
|
|
3754
3754
|
return [];
|
|
3755
|
-
const H = u.value.map((ne,
|
|
3755
|
+
const H = u.value.map((ne, xe) => ({
|
|
3756
3756
|
source: ne,
|
|
3757
|
-
index:
|
|
3758
|
-
name: L(ne == null ? void 0 : ne.name,
|
|
3757
|
+
index: xe,
|
|
3758
|
+
name: L(ne == null ? void 0 : ne.name, xe),
|
|
3759
3759
|
values: (ne == null ? void 0 : ne.values) ?? []
|
|
3760
3760
|
})), Z = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ new Map();
|
|
3761
3761
|
for (const ne of H) {
|
|
3762
|
-
const { clusterKey:
|
|
3763
|
-
te.has(
|
|
3762
|
+
const { clusterKey: xe, metricLabel: Ie } = h(ne.name);
|
|
3763
|
+
te.has(xe) || te.set(xe, te.size), Z.has(Ie) || Z.set(Ie, Z.size);
|
|
3764
3764
|
}
|
|
3765
|
-
const ie = Math.max(Z.size, 1), me = t.value.chartColorBinding ===
|
|
3765
|
+
const ie = Math.max(Z.size, 1), me = t.value.chartColorBinding === we.breakdown, ye = t.value.chartUseSecondaryMetricShades !== !1;
|
|
3766
3766
|
return H.map((ne) => {
|
|
3767
3767
|
var st;
|
|
3768
|
-
const
|
|
3768
|
+
const xe = Wt({
|
|
3769
3769
|
datasets: u.value,
|
|
3770
3770
|
datasetIndex: ne.index
|
|
3771
|
-
}),
|
|
3771
|
+
}), Ie = l.value ? Et(u.value, xe) : xe, _e = Do({
|
|
3772
3772
|
datasets: u.value,
|
|
3773
3773
|
datasetIndex: ne.index
|
|
3774
|
-
}), Ze =
|
|
3775
|
-
datasetIndex:
|
|
3774
|
+
}), Ze = Fe({
|
|
3775
|
+
datasetIndex: Ie,
|
|
3776
3776
|
isCompare: !1,
|
|
3777
3777
|
metricCount: t.value.metricCount,
|
|
3778
3778
|
mode: t.value.chartColorBinding
|
|
3779
|
-
}), { clusterKey:
|
|
3780
|
-
|
|
3781
|
-
isCompare: !1,
|
|
3782
|
-
metricCount: ie,
|
|
3783
|
-
mode: xe.breakdown
|
|
3784
|
-
}), rt = Z.get(ht) ?? 0, lt = me ? Tt({
|
|
3785
|
-
breakdownIndex: gt,
|
|
3779
|
+
}), { clusterKey: Ae, metricLabel: at } = h(ne.name), pt = ((st = H[_e]) == null ? void 0 : st.name) ?? ne.name, { clusterKey: ht, metricLabel: gt } = h(pt), vt = te.get(ht) ?? te.get(Ae) ?? 0, rt = Z.get(gt) ?? 0, lt = me ? Lt({
|
|
3780
|
+
breakdownIndex: vt,
|
|
3786
3781
|
metricIndex: rt,
|
|
3787
3782
|
metricCount: ie,
|
|
3788
3783
|
isCompare: ne.source.isCompare,
|
|
@@ -3793,13 +3788,13 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3793
3788
|
index: Ze,
|
|
3794
3789
|
isCompare: ne.source.isCompare,
|
|
3795
3790
|
customColors: t.value.chartColors
|
|
3796
|
-
}),
|
|
3797
|
-
datasetIndex:
|
|
3791
|
+
}), yt = I({
|
|
3792
|
+
datasetIndex: Ie,
|
|
3798
3793
|
colorIndex: Ze
|
|
3799
3794
|
}), ze = Yt(ne.values);
|
|
3800
3795
|
return {
|
|
3801
3796
|
label: ne.name,
|
|
3802
|
-
tooltipLabel: `${
|
|
3797
|
+
tooltipLabel: `${Ae} - ${at}`,
|
|
3803
3798
|
data: ze,
|
|
3804
3799
|
xAxisIndex: ne.source.xAxisIndex,
|
|
3805
3800
|
emptyValueIndexes: t.value.hasNullableMetric ? ne.source.xAxisIndex === void 0 ? Kn(ne.values) : ne.values[ne.source.xAxisIndex] === null ? [ne.source.xAxisIndex] : void 0 : void 0,
|
|
@@ -3808,8 +3803,8 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3808
3803
|
minBarLength: void 0,
|
|
3809
3804
|
barPercentage: W.value ? Sn : void 0,
|
|
3810
3805
|
grouped: !0,
|
|
3811
|
-
order: m.value ?
|
|
3812
|
-
stack: ne.source.isCompare ? `${
|
|
3806
|
+
order: m.value ? yt : void 0,
|
|
3807
|
+
stack: ne.source.isCompare ? `${Ae}__compare` : `${Ae}__main`,
|
|
3813
3808
|
backgroundColor: lt
|
|
3814
3809
|
};
|
|
3815
3810
|
});
|
|
@@ -3835,7 +3830,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3835
3830
|
} = Xt({
|
|
3836
3831
|
chartRef: n,
|
|
3837
3832
|
model: t,
|
|
3838
|
-
baseDatasets:
|
|
3833
|
+
baseDatasets: B
|
|
3839
3834
|
}), re = c(() => {
|
|
3840
3835
|
if (!W.value)
|
|
3841
3836
|
return z.value;
|
|
@@ -3846,7 +3841,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3846
3841
|
barPercentage: Sn
|
|
3847
3842
|
});
|
|
3848
3843
|
const ie = z.value[te + 1];
|
|
3849
|
-
Z.dash === !0 && ie && H.push(
|
|
3844
|
+
Z.dash === !0 && ie && H.push(A(te));
|
|
3850
3845
|
}), H;
|
|
3851
3846
|
}), se = c(() => ({
|
|
3852
3847
|
display: !1,
|
|
@@ -3858,13 +3853,13 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3858
3853
|
}
|
|
3859
3854
|
}));
|
|
3860
3855
|
return (H, Z) => {
|
|
3861
|
-
var ie, me, ye, ne,
|
|
3856
|
+
var ie, me, ye, ne, xe, Ie;
|
|
3862
3857
|
const te = fe("FmBarChart");
|
|
3863
3858
|
return K(), le(Ne, null, [
|
|
3864
3859
|
Y("div", Nl, [
|
|
3865
3860
|
ot(H.$slots, "menu"),
|
|
3866
3861
|
Y("div", {
|
|
3867
|
-
class:
|
|
3862
|
+
class: De(["chart-layout", {
|
|
3868
3863
|
"chart-layout--side": i(F) && (i(G).display ?? !1) && i(b)
|
|
3869
3864
|
}])
|
|
3870
3865
|
}, [
|
|
@@ -3907,7 +3902,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3907
3902
|
enabled: i(G).display ?? !1,
|
|
3908
3903
|
position: i(y),
|
|
3909
3904
|
"text-color": (ne = i(G).labels) == null ? void 0 : ne.color,
|
|
3910
|
-
"font-size": (
|
|
3905
|
+
"font-size": (Ie = (xe = i(G).labels) == null ? void 0 : xe.font) == null ? void 0 : Ie.size,
|
|
3911
3906
|
"legend-update-key": i(z),
|
|
3912
3907
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
3913
3908
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -3980,25 +3975,25 @@ const Hl = { class: "widget-content" }, Wl = /* @__PURE__ */ Be({
|
|
|
3980
3975
|
}), M = r.value ? Et(l.value, T) : T;
|
|
3981
3976
|
let z = b.values;
|
|
3982
3977
|
u.value && (z = [NaN, z[0], NaN]);
|
|
3983
|
-
const re = Yt(z), se =
|
|
3978
|
+
const re = Yt(z), se = Fe({
|
|
3984
3979
|
datasetIndex: M,
|
|
3985
3980
|
isCompare: !1,
|
|
3986
3981
|
metricCount: t.value.metricCount,
|
|
3987
3982
|
mode: t.value.chartColorBinding
|
|
3988
|
-
}), H =
|
|
3983
|
+
}), H = Fe({
|
|
3989
3984
|
datasetIndex: M,
|
|
3990
3985
|
isCompare: !1,
|
|
3991
3986
|
metricCount: t.value.metricCount,
|
|
3992
|
-
mode:
|
|
3993
|
-
}), Z =
|
|
3987
|
+
mode: we.metric
|
|
3988
|
+
}), Z = Fe({
|
|
3994
3989
|
datasetIndex: R,
|
|
3995
3990
|
isCompare: b.isCompare,
|
|
3996
3991
|
metricCount: t.value.metricCount,
|
|
3997
3992
|
mode: t.value.lineStyleBinding
|
|
3998
|
-
}), te = (ne = t.value.lineStyles) == null ? void 0 : ne[Z], ie = t.value.chartColorBinding ===
|
|
3993
|
+
}), te = (ne = t.value.lineStyles) == null ? void 0 : ne[Z], ie = t.value.chartColorBinding === we.breakdown, me = kt({
|
|
3999
3994
|
fallbackIndex: M,
|
|
4000
3995
|
metricCount: t.value.metricCount
|
|
4001
|
-
}), ye = ie ?
|
|
3996
|
+
}), ye = ie ? Lt({
|
|
4002
3997
|
breakdownIndex: me,
|
|
4003
3998
|
metricIndex: H,
|
|
4004
3999
|
metricCount: t.value.metricCount,
|
|
@@ -4029,8 +4024,8 @@ const Hl = { class: "widget-content" }, Wl = /* @__PURE__ */ Be({
|
|
|
4029
4024
|
isTooltipDetailsSheetOpen: h,
|
|
4030
4025
|
tooltipDetailsPayload: L,
|
|
4031
4026
|
handleTooltipDetailsSheetVisibility: I,
|
|
4032
|
-
handleTooltipDetailsHover:
|
|
4033
|
-
handleTooltipDetailsLeave:
|
|
4027
|
+
handleTooltipDetailsHover: A,
|
|
4028
|
+
handleTooltipDetailsLeave: B,
|
|
4034
4029
|
comparisonTooltip: J,
|
|
4035
4030
|
datalabels: k,
|
|
4036
4031
|
xCfg: V,
|
|
@@ -4056,7 +4051,7 @@ const Hl = { class: "widget-content" }, Wl = /* @__PURE__ */ Be({
|
|
|
4056
4051
|
Y("div", Hl, [
|
|
4057
4052
|
ot(b.$slots, "menu"),
|
|
4058
4053
|
Y("div", {
|
|
4059
|
-
class:
|
|
4054
|
+
class: De(["chart-layout", {
|
|
4060
4055
|
"chart-layout--side": i($) && (i(x).display ?? !1) && i(O)
|
|
4061
4056
|
}])
|
|
4062
4057
|
}, [
|
|
@@ -4116,8 +4111,8 @@ const Hl = { class: "widget-content" }, Wl = /* @__PURE__ */ Be({
|
|
|
4116
4111
|
"model-value": i(h),
|
|
4117
4112
|
"details-payload": i(L),
|
|
4118
4113
|
"onUpdate:modelValue": i(I),
|
|
4119
|
-
onValueHover: i(
|
|
4120
|
-
onValueLeave: i(
|
|
4114
|
+
onValueHover: i(A),
|
|
4115
|
+
onValueLeave: i(B)
|
|
4121
4116
|
}, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
|
|
4122
4117
|
], 64);
|
|
4123
4118
|
};
|
|
@@ -4152,11 +4147,11 @@ const Ul = ["src"], Kl = /* @__PURE__ */ Be({
|
|
|
4152
4147
|
setup(e) {
|
|
4153
4148
|
const t = e, n = c(
|
|
4154
4149
|
() => ({
|
|
4155
|
-
[
|
|
4156
|
-
[
|
|
4157
|
-
[
|
|
4158
|
-
[
|
|
4159
|
-
})[t.size ??
|
|
4150
|
+
[At.Small]: 16,
|
|
4151
|
+
[At.Medium]: 20,
|
|
4152
|
+
[At.Large]: 24,
|
|
4153
|
+
[At.ExtraLarge]: 32
|
|
4154
|
+
})[t.size ?? At.Small]
|
|
4160
4155
|
), o = c(
|
|
4161
4156
|
() => t.type ?? (t.icon.trim().startsWith("<svg") ? on.Custom : on.Material)
|
|
4162
4157
|
), a = c(() => o.value !== on.Custom || !t.icon.trim() ? "" : qo(t.icon) ? t.icon : Ol(t.icon));
|
|
@@ -4240,28 +4235,28 @@ const es = { class: "widget-content" }, ts = /* @__PURE__ */ Be({
|
|
|
4240
4235
|
display: !1
|
|
4241
4236
|
})), C = Ut("line"), v = Eo("report-line-style-plugin-line"), h = c(() => o.value.length > 0 ? [
|
|
4242
4237
|
...l.value.map((R, T) => {
|
|
4243
|
-
var
|
|
4238
|
+
var _e;
|
|
4244
4239
|
const M = Wt({
|
|
4245
4240
|
datasets: l.value,
|
|
4246
4241
|
datasetIndex: T
|
|
4247
|
-
}), z = r.value ? Et(l.value, M) : M, re =
|
|
4242
|
+
}), z = r.value ? Et(l.value, M) : M, re = Fe({
|
|
4248
4243
|
datasetIndex: z,
|
|
4249
4244
|
isCompare: !1,
|
|
4250
4245
|
metricCount: t.value.metricCount,
|
|
4251
4246
|
mode: t.value.chartColorBinding
|
|
4252
|
-
}), se =
|
|
4247
|
+
}), se = Fe({
|
|
4253
4248
|
datasetIndex: z,
|
|
4254
4249
|
isCompare: !1,
|
|
4255
4250
|
metricCount: t.value.metricCount,
|
|
4256
|
-
mode:
|
|
4251
|
+
mode: we.metric
|
|
4257
4252
|
}), H = Je({
|
|
4258
4253
|
index: re,
|
|
4259
4254
|
isCompare: R.isCompare,
|
|
4260
4255
|
customColors: t.value.chartColors
|
|
4261
|
-
}), Z = t.value.chartColorBinding ===
|
|
4256
|
+
}), Z = t.value.chartColorBinding === we.breakdown, te = kt({
|
|
4262
4257
|
fallbackIndex: z,
|
|
4263
4258
|
metricCount: t.value.metricCount
|
|
4264
|
-
}), ie = Z ?
|
|
4259
|
+
}), ie = Z ? Lt({
|
|
4265
4260
|
breakdownIndex: te,
|
|
4266
4261
|
metricIndex: se,
|
|
4267
4262
|
metricCount: t.value.metricCount,
|
|
@@ -4272,19 +4267,19 @@ const es = { class: "widget-content" }, ts = /* @__PURE__ */ Be({
|
|
|
4272
4267
|
}) : H;
|
|
4273
4268
|
let me = R.values;
|
|
4274
4269
|
u.value ? me = l.value.map(
|
|
4275
|
-
(Ze,
|
|
4270
|
+
(Ze, Ae) => Ae === T ? R.values[0] : NaN
|
|
4276
4271
|
) : f.value && (me = [NaN, me[0], NaN]);
|
|
4277
|
-
const ye = Yt(me), ne = f.value || u.value,
|
|
4272
|
+
const ye = Yt(me), ne = f.value || u.value, xe = Fe({
|
|
4278
4273
|
datasetIndex: T,
|
|
4279
4274
|
isCompare: R.isCompare,
|
|
4280
4275
|
metricCount: t.value.metricCount,
|
|
4281
4276
|
mode: t.value.lineStyleBinding
|
|
4282
|
-
}),
|
|
4277
|
+
}), Ie = (_e = t.value.lineStyles) == null ? void 0 : _e[xe];
|
|
4283
4278
|
return {
|
|
4284
4279
|
label: R.name,
|
|
4285
4280
|
data: ye,
|
|
4286
4281
|
dash: !!R.isCompare,
|
|
4287
|
-
lineStyle:
|
|
4282
|
+
lineStyle: Ie,
|
|
4288
4283
|
fill: !1,
|
|
4289
4284
|
color: ie,
|
|
4290
4285
|
pointRadius: ne ? 4 : void 0,
|
|
@@ -4297,8 +4292,8 @@ const es = { class: "widget-content" }, ts = /* @__PURE__ */ Be({
|
|
|
4297
4292
|
] : []), {
|
|
4298
4293
|
isTooltipDetailsSheetOpen: L,
|
|
4299
4294
|
tooltipDetailsPayload: I,
|
|
4300
|
-
handleTooltipDetailsSheetVisibility:
|
|
4301
|
-
handleTooltipDetailsHover:
|
|
4295
|
+
handleTooltipDetailsSheetVisibility: A,
|
|
4296
|
+
handleTooltipDetailsHover: B,
|
|
4302
4297
|
handleTooltipDetailsLeave: J,
|
|
4303
4298
|
comparisonTooltip: k,
|
|
4304
4299
|
datalabels: V,
|
|
@@ -4325,7 +4320,7 @@ const es = { class: "widget-content" }, ts = /* @__PURE__ */ Be({
|
|
|
4325
4320
|
Y("div", es, [
|
|
4326
4321
|
ot(R.$slots, "menu"),
|
|
4327
4322
|
Y("div", {
|
|
4328
|
-
class:
|
|
4323
|
+
class: De(["chart-layout", {
|
|
4329
4324
|
"chart-layout--side": i(q) && (i($).display ?? !1) && i(j)
|
|
4330
4325
|
}])
|
|
4331
4326
|
}, [
|
|
@@ -4383,8 +4378,8 @@ const es = { class: "widget-content" }, ts = /* @__PURE__ */ Be({
|
|
|
4383
4378
|
pe(Kt, {
|
|
4384
4379
|
"model-value": i(L),
|
|
4385
4380
|
"details-payload": i(I),
|
|
4386
|
-
"onUpdate:modelValue": i(
|
|
4387
|
-
onValueHover: i(
|
|
4381
|
+
"onUpdate:modelValue": i(A),
|
|
4382
|
+
onValueHover: i(B),
|
|
4388
4383
|
onValueLeave: i(J)
|
|
4389
4384
|
}, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
|
|
4390
4385
|
], 64);
|
|
@@ -4425,34 +4420,34 @@ const es = { class: "widget-content" }, ts = /* @__PURE__ */ Be({
|
|
|
4425
4420
|
}
|
|
4426
4421
|
}
|
|
4427
4422
|
return (L, I) => {
|
|
4428
|
-
const
|
|
4423
|
+
const A = fe("FmRadio"), B = fe("FmRadioGroup"), J = fe("FmButton"), k = fe("FmDialog");
|
|
4429
4424
|
return K(), de(k, {
|
|
4430
4425
|
modelValue: r.value,
|
|
4431
4426
|
"onUpdate:modelValue": I[2] || (I[2] = (V) => r.value = V),
|
|
4432
4427
|
overlay: !0,
|
|
4433
4428
|
"z-index": 10
|
|
4434
4429
|
}, {
|
|
4435
|
-
"dialog-header":
|
|
4430
|
+
"dialog-header": Le(() => I[3] || (I[3] = [
|
|
4436
4431
|
fa("Select Orientation")
|
|
4437
4432
|
])),
|
|
4438
|
-
default:
|
|
4433
|
+
default: Le(() => [
|
|
4439
4434
|
pe(i(n), {
|
|
4440
4435
|
ref_key: "form",
|
|
4441
4436
|
ref: a,
|
|
4442
4437
|
onValidationSuccess: h
|
|
4443
4438
|
}, {
|
|
4444
|
-
default:
|
|
4439
|
+
default: Le(() => [
|
|
4445
4440
|
Y("div", ns, [
|
|
4446
|
-
pe(
|
|
4441
|
+
pe(B, {
|
|
4447
4442
|
modelValue: C.value,
|
|
4448
4443
|
"onUpdate:modelValue": I[0] || (I[0] = (V) => C.value = V)
|
|
4449
4444
|
}, {
|
|
4450
|
-
default:
|
|
4451
|
-
pe(
|
|
4445
|
+
default: Le(() => [
|
|
4446
|
+
pe(A, {
|
|
4452
4447
|
value: i(xn).PORTRAIT,
|
|
4453
4448
|
label: i(t)("report.common.portrait")
|
|
4454
4449
|
}, null, 8, ["value", "label"]),
|
|
4455
|
-
pe(
|
|
4450
|
+
pe(A, {
|
|
4456
4451
|
value: i(xn).LANDSCAPE,
|
|
4457
4452
|
label: i(t)("report.common.landscape")
|
|
4458
4453
|
}, null, 8, ["value", "label"])
|
|
@@ -4530,7 +4525,7 @@ function rs(e) {
|
|
|
4530
4525
|
pointer-events: auto;
|
|
4531
4526
|
`;
|
|
4532
4527
|
const S = u.cloneNode(!0);
|
|
4533
|
-
S.style.cssText = "pointer-events: auto;", h(u, S), _.appendChild(S), r.appendChild(_), document.body.appendChild(r),
|
|
4528
|
+
S.style.cssText = "pointer-events: auto;", h(u, S), _.appendChild(S), r.appendChild(_), document.body.appendChild(r), A(), B(), J(), I();
|
|
4534
4529
|
}
|
|
4535
4530
|
function h(_, S) {
|
|
4536
4531
|
const x = _.querySelectorAll("th, td"), $ = S.querySelectorAll("th, td");
|
|
@@ -4596,7 +4591,7 @@ function rs(e) {
|
|
|
4596
4591
|
const M = r.querySelector("table");
|
|
4597
4592
|
M && (M.style.width = `${l.offsetWidth}px`, M.style.marginLeft = `${x.left - b}px`);
|
|
4598
4593
|
}
|
|
4599
|
-
function
|
|
4594
|
+
function A() {
|
|
4600
4595
|
var S;
|
|
4601
4596
|
m = () => requestAnimationFrame(I), window.addEventListener("scroll", m, { passive: !0 }), C().forEach((x) => {
|
|
4602
4597
|
m && x.addEventListener("scroll", m, { passive: !0 });
|
|
@@ -4605,7 +4600,7 @@ function rs(e) {
|
|
|
4605
4600
|
for (; _; )
|
|
4606
4601
|
_ !== document.body && (_.scrollHeight > _.clientHeight || _.scrollWidth > _.clientWidth) && _.addEventListener("scroll", m, { passive: !0 }), _ = _.parentElement;
|
|
4607
4602
|
}
|
|
4608
|
-
function
|
|
4603
|
+
function B() {
|
|
4609
4604
|
f = new ResizeObserver(() => {
|
|
4610
4605
|
if (u && r) {
|
|
4611
4606
|
const _ = r.querySelector("thead");
|
|
@@ -4649,11 +4644,11 @@ function rs(e) {
|
|
|
4649
4644
|
function V() {
|
|
4650
4645
|
v();
|
|
4651
4646
|
}
|
|
4652
|
-
return
|
|
4647
|
+
return Te(o, (_) => {
|
|
4653
4648
|
_ ? v() : k();
|
|
4654
|
-
}),
|
|
4649
|
+
}), Te(a, () => {
|
|
4655
4650
|
r && (r.style.top = `${a.value}px`, I());
|
|
4656
|
-
}),
|
|
4651
|
+
}), Te(n, () => {
|
|
4657
4652
|
n.value && o.value && setTimeout(v, 100);
|
|
4658
4653
|
}), zt(() => {
|
|
4659
4654
|
o.value && setTimeout(v, 100);
|
|
@@ -4737,7 +4732,7 @@ function ss(e) {
|
|
|
4737
4732
|
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();
|
|
4738
4733
|
}
|
|
4739
4734
|
function is(e, t, n = []) {
|
|
4740
|
-
var h, L, I,
|
|
4735
|
+
var h, L, I, A, B, J;
|
|
4741
4736
|
if (!e || !Array.isArray(e.columns) || !Array.isArray(e.rows))
|
|
4742
4737
|
return [];
|
|
4743
4738
|
const o = (k) => k.schemaName === t.schemaName && k.name === t.name && (t.option ? k.option === t.option : !0), a = n.findIndex(o);
|
|
@@ -4770,7 +4765,7 @@ function is(e, t, n = []) {
|
|
|
4770
4765
|
},
|
|
4771
4766
|
[]
|
|
4772
4767
|
).indexOf(u), v = C >= 0 ? D[C] ?? -1 : String(
|
|
4773
|
-
((
|
|
4768
|
+
((A = (I = e.columns) == null ? void 0 : I[u]) == null ? void 0 : A.type) ?? ((J = (B = e.columns) == null ? void 0 : B[u]) == null ? void 0 : J.dataType) ?? ""
|
|
4774
4769
|
).toUpperCase() === "STRING" ? u : -1;
|
|
4775
4770
|
return v === -1 ? [] : l.map((k) => {
|
|
4776
4771
|
var V;
|
|
@@ -4835,7 +4830,7 @@ const us = {
|
|
|
4835
4830
|
}), { refresh: v } = rs({
|
|
4836
4831
|
containerRef: C,
|
|
4837
4832
|
isTable: W
|
|
4838
|
-
}), h = P(r.rollup), L = P(Rt()), I = P(r.drillDimension),
|
|
4833
|
+
}), h = P(r.rollup), L = P(Rt()), I = P(r.drillDimension), A = c(() => {
|
|
4839
4834
|
if (Me.value.length > 0) {
|
|
4840
4835
|
const w = Me.value.findIndex(
|
|
4841
4836
|
(ue) => ue.value === I.value
|
|
@@ -4843,8 +4838,8 @@ const us = {
|
|
|
4843
4838
|
return w >= 0 ? w : 0;
|
|
4844
4839
|
} else
|
|
4845
4840
|
return -1;
|
|
4846
|
-
}),
|
|
4847
|
-
() =>
|
|
4841
|
+
}), B = c(() => A.value !== 0), J = c(
|
|
4842
|
+
() => A.value != Me.value.length - 1
|
|
4848
4843
|
), k = P(r.showTitle ?? !0), V = P(r.titleFontSize ?? 14), _ = P(r.titleBold ?? !1), S = P(r.titleItalic ?? !1), x = P(r.titleUnderline ?? !1), $ = P(
|
|
4849
4844
|
Array.isArray(r.chartColors) ? [...r.chartColors] : void 0
|
|
4850
4845
|
), q = P(
|
|
@@ -4858,21 +4853,21 @@ const us = {
|
|
|
4858
4853
|
var w;
|
|
4859
4854
|
return ((w = Xe.value) == null ? void 0 : w.showSearchBar) === !0 && (Q.value.config.showSearchBar ?? !0);
|
|
4860
4855
|
}
|
|
4861
|
-
), H = P(r.showX ?? !0), Z = P(r.xPosition ?? In.bottom), te = P(r.showXGrid ?? !1), ie = P(r.showXTick ?? !0), me = P(r.xTickFontSize ?? 12), ye = P(r.showXTitle ?? !1), ne = P(r.xTitle ?? ""),
|
|
4856
|
+
), H = P(r.showX ?? !0), Z = P(r.xPosition ?? In.bottom), te = P(r.showXGrid ?? !1), ie = P(r.showXTick ?? !0), me = P(r.xTickFontSize ?? 12), ye = P(r.showXTitle ?? !1), ne = P(r.xTitle ?? ""), xe = P(r.xTitleFontSize ?? 12), Ie = P(r.showY ?? !0), _e = P(r.yPosition ?? Pn.left), Ze = P(r.showYGrid ?? !1), Ae = P(r.showYTick ?? !0), at = P(r.yTickFontSize ?? 12), pt = P(r.showYTitle ?? !1), ht = P(r.yTitle ?? ""), gt = P(r.yTitleFontSize ?? 12), vt = P(r.showLegend ?? void 0), rt = P(r.legendPosition ?? Mn.top), lt = P(r.usePointStyle ?? !0), yt = P(r.legendFontSize), ze = P(r.legendColor ?? "#6b6b6b"), st = P(r.maxTooltipItems), Gt = P(r.stackBarOverlap ?? !1), jt = P(r.rowHeight ?? null), Dt = P(r.colWidths ?? null), Ke = P(!1), It = P(""), { breakpoints: Qe, getBreakpointsBoundary: it } = Ht(), Pt = P(), Jt = P(window.innerWidth), Se = c(
|
|
4862
4857
|
() => m.customScreenWidth === void 0 ? Jt.value : m.customScreenWidth
|
|
4863
4858
|
), Mt = c(
|
|
4864
|
-
() => (
|
|
4859
|
+
() => (Se == null ? void 0 : Se.value) > it("xs")[1] && (Se == null ? void 0 : Se.value) <= it("sm")[1]
|
|
4865
4860
|
), hn = c(
|
|
4866
|
-
() => (
|
|
4867
|
-
), gn = c(() => (
|
|
4861
|
+
() => (Se == null ? void 0 : Se.value) > it("sm")[1] && (Se == null ? void 0 : Se.value) <= it("md")[1]
|
|
4862
|
+
), gn = c(() => (Se == null ? void 0 : Se.value) > it("md")[1]), Zt = c(() => {
|
|
4868
4863
|
const w = o.value.size.width;
|
|
4869
4864
|
return gn.value || hn.value ? ql(w) : Mt.value ? Gl(w) : jl(w);
|
|
4870
4865
|
}), Xe = c(
|
|
4871
4866
|
() => _a.find((w) => w.type === o.value.widget.type)
|
|
4872
4867
|
), vn = c(
|
|
4873
4868
|
() => {
|
|
4874
|
-
var w, ue,
|
|
4875
|
-
return k.value || se.value || (((w = Xe.value) == null ? void 0 : w.showLabel) ?? !1) || (((ue = Xe.value) == null ? void 0 : ue.showDrillDimension) ?? !1) && Me.value.length > 0 || (((
|
|
4869
|
+
var w, ue, ke;
|
|
4870
|
+
return k.value || se.value || (((w = Xe.value) == null ? void 0 : w.showLabel) ?? !1) || (((ue = Xe.value) == null ? void 0 : ue.showDrillDimension) ?? !1) && Me.value.length > 0 || (((ke = Xe.value) == null ? void 0 : ke.showRollup) ?? !1) && We.value.length > 0;
|
|
4876
4871
|
}
|
|
4877
4872
|
), et = kn(async () => {
|
|
4878
4873
|
Jt.value = window.innerWidth, Pt.value = jo(), L.value = Rt(), await xo(), v();
|
|
@@ -4914,8 +4909,8 @@ const us = {
|
|
|
4914
4909
|
}
|
|
4915
4910
|
};
|
|
4916
4911
|
}), ae = c(() => {
|
|
4917
|
-
var
|
|
4918
|
-
const w = ((
|
|
4912
|
+
var ke;
|
|
4913
|
+
const w = ((ke = Q.value.config.metrics) == null ? void 0 : ke.length) ?? 0;
|
|
4919
4914
|
if (!Q.value.config.isBlend)
|
|
4920
4915
|
return w;
|
|
4921
4916
|
const ue = (Q.value.config.joinDatasources ?? []).reduce(
|
|
@@ -4930,8 +4925,8 @@ const us = {
|
|
|
4930
4925
|
Q.value.config,
|
|
4931
4926
|
...Q.value.config.isBlend ? Q.value.config.joinDatasources ?? [] : []
|
|
4932
4927
|
].some((ue) => {
|
|
4933
|
-
var
|
|
4934
|
-
return (
|
|
4928
|
+
var ke;
|
|
4929
|
+
return (ke = ue.metrics) == null ? void 0 : ke.some((Ee) => Ee.nullable);
|
|
4935
4930
|
}));
|
|
4936
4931
|
function be() {
|
|
4937
4932
|
return {
|
|
@@ -4963,20 +4958,20 @@ const us = {
|
|
|
4963
4958
|
xTickFontSize: me.value,
|
|
4964
4959
|
showXTitle: ye.value,
|
|
4965
4960
|
xTitle: ne.value,
|
|
4966
|
-
xTitleFontSize:
|
|
4967
|
-
showY:
|
|
4968
|
-
yPosition:
|
|
4961
|
+
xTitleFontSize: xe.value,
|
|
4962
|
+
showY: Ie.value,
|
|
4963
|
+
yPosition: _e.value,
|
|
4969
4964
|
showYGrid: Ze.value,
|
|
4970
|
-
showYTick:
|
|
4971
|
-
yTitle:
|
|
4965
|
+
showYTick: Ae.value,
|
|
4966
|
+
yTitle: ht.value,
|
|
4972
4967
|
showYTitle: pt.value,
|
|
4973
|
-
yTitleFontSize:
|
|
4968
|
+
yTitleFontSize: gt.value,
|
|
4974
4969
|
yTickFontSize: at.value,
|
|
4975
4970
|
isTransposed: Q.value.config.isTransposed,
|
|
4976
|
-
showLegend:
|
|
4971
|
+
showLegend: vt.value,
|
|
4977
4972
|
legendPosition: rt.value,
|
|
4978
4973
|
usePointStyle: lt.value,
|
|
4979
|
-
legendFontSize:
|
|
4974
|
+
legendFontSize: yt.value,
|
|
4980
4975
|
legendColor: ze.value,
|
|
4981
4976
|
maxTooltipItems: st.value,
|
|
4982
4977
|
stackBarOverlap: Gt.value
|
|
@@ -5014,12 +5009,12 @@ const us = {
|
|
|
5014
5009
|
}), We = c(() => {
|
|
5015
5010
|
const { config: w } = o.value.widget;
|
|
5016
5011
|
if (w.rollup != null) {
|
|
5017
|
-
const ue = [...w.dimensions].filter((
|
|
5012
|
+
const ue = [...w.dimensions].filter((ke) => !ke.hide);
|
|
5018
5013
|
return [
|
|
5019
5014
|
{ label: ut(l, u, "None", "other"), value: "none" },
|
|
5020
5015
|
{ label: ut(l, u, "Grand Total", "other"), value: 0 },
|
|
5021
|
-
...[...ue].slice(0, ue.length - 1).map((
|
|
5022
|
-
label: ut(l, u,
|
|
5016
|
+
...[...ue].slice(0, ue.length - 1).map((ke, Ee) => ({
|
|
5017
|
+
label: ut(l, u, ke.label, "other"),
|
|
5023
5018
|
value: Ee + 1
|
|
5024
5019
|
}))
|
|
5025
5020
|
];
|
|
@@ -5041,13 +5036,13 @@ const us = {
|
|
|
5041
5036
|
(ue) => Array.isArray(ue.tileIds) && ue.tileIds.includes(w)
|
|
5042
5037
|
);
|
|
5043
5038
|
});
|
|
5044
|
-
|
|
5039
|
+
Te(
|
|
5045
5040
|
() => o.value.widget.config,
|
|
5046
5041
|
(w) => {
|
|
5047
|
-
h.value = w.rollup, k.value = w.showTitle ?? !0, V.value = w.titleFontSize ?? 14, _.value = w.titleBold ?? !1, S.value = w.titleItalic ?? !1, x.value = w.titleUnderline ?? !1, $.value = Array.isArray(w.chartColors) ? [...w.chartColors] : void 0, q.value = Array.isArray(w.chartColorLayers) ? [...w.chartColorLayers] : void 0, O.value = Array.isArray(w.chartBreakdownColors) ? [...w.chartBreakdownColors] : void 0, j.value = w.chartUseSecondaryMetricShades ?? !0, G.value = w.chartColorBinding, F.value = Array.isArray(w.lineStyles) ? [...w.lineStyles] : void 0, y.value = w.lineStyleBinding, b.value = w.showLabel ?? !1, R.value = w.labelAlign ?? Dn.center, T.value = w.labelAnchor ?? Ln.center, M.value = w.labelRotation ?? 0, z.value = w.labelOffset ?? 0, re.value = w.labelFontSize ?? 12, H.value = w.showX ?? !0, Z.value = w.xPosition ?? In.bottom, te.value = w.showXGrid ?? !1, ie.value = w.showXTick ?? !0, me.value = w.xTickFontSize ?? 12, ye.value = w.showXTitle ?? !1, ne.value = w.xTitle ?? "",
|
|
5042
|
+
h.value = w.rollup, k.value = w.showTitle ?? !0, V.value = w.titleFontSize ?? 14, _.value = w.titleBold ?? !1, S.value = w.titleItalic ?? !1, x.value = w.titleUnderline ?? !1, $.value = Array.isArray(w.chartColors) ? [...w.chartColors] : void 0, q.value = Array.isArray(w.chartColorLayers) ? [...w.chartColorLayers] : void 0, O.value = Array.isArray(w.chartBreakdownColors) ? [...w.chartBreakdownColors] : void 0, j.value = w.chartUseSecondaryMetricShades ?? !0, G.value = w.chartColorBinding, F.value = Array.isArray(w.lineStyles) ? [...w.lineStyles] : void 0, y.value = w.lineStyleBinding, b.value = w.showLabel ?? !1, R.value = w.labelAlign ?? Dn.center, T.value = w.labelAnchor ?? Ln.center, M.value = w.labelRotation ?? 0, z.value = w.labelOffset ?? 0, re.value = w.labelFontSize ?? 12, H.value = w.showX ?? !0, Z.value = w.xPosition ?? In.bottom, te.value = w.showXGrid ?? !1, ie.value = w.showXTick ?? !0, me.value = w.xTickFontSize ?? 12, ye.value = w.showXTitle ?? !1, ne.value = w.xTitle ?? "", xe.value = w.xTitleFontSize ?? 12, Ie.value = w.showY ?? !0, _e.value = w.yPosition ?? Pn.left, Ze.value = w.showYGrid ?? !1, Ae.value = w.showYTick ?? !0, at.value = w.yTickFontSize ?? 12, pt.value = w.showYTitle ?? !1, ht.value = w.yTitle ?? "", gt.value = w.yTitleFontSize ?? 12, vt.value = w.showLegend ?? void 0, rt.value = w.legendPosition ?? Mn.top, lt.value = w.usePointStyle ?? !0, yt.value = w.legendFontSize, ze.value = w.legendColor ?? "#6b6b6b", st.value = w.maxTooltipItems, Gt.value = w.stackBarOverlap ?? !1, jt.value = w.rowHeight ?? null, Dt.value = w.colWidths ?? null, L.value = Rt();
|
|
5048
5043
|
},
|
|
5049
5044
|
{ deep: !0, immediate: !0 }
|
|
5050
|
-
),
|
|
5045
|
+
), Te(
|
|
5051
5046
|
[W, p],
|
|
5052
5047
|
() => {
|
|
5053
5048
|
a(
|
|
@@ -5056,21 +5051,21 @@ const us = {
|
|
|
5056
5051
|
);
|
|
5057
5052
|
},
|
|
5058
5053
|
{ immediate: !0 }
|
|
5059
|
-
),
|
|
5054
|
+
), Te([() => h.value], () => {
|
|
5060
5055
|
h.value !== null && (o.value.widget.config.rollup = h.value);
|
|
5061
|
-
}),
|
|
5056
|
+
}), Te(
|
|
5062
5057
|
Ve,
|
|
5063
5058
|
(w, ue) => {
|
|
5064
5059
|
ue !== void 0 && w !== ue && Ye.value.length > 0 && En();
|
|
5065
5060
|
},
|
|
5066
5061
|
{ flush: "pre" }
|
|
5067
|
-
),
|
|
5062
|
+
), Te(
|
|
5068
5063
|
() => o.value,
|
|
5069
5064
|
(w, ue) => {
|
|
5070
5065
|
!m.isTileEditor || !w || ue !== void 0 && En();
|
|
5071
5066
|
},
|
|
5072
5067
|
{ deep: !0, flush: "pre" }
|
|
5073
|
-
),
|
|
5068
|
+
), Te(
|
|
5074
5069
|
[
|
|
5075
5070
|
() => Q.value,
|
|
5076
5071
|
() => g.value,
|
|
@@ -5083,13 +5078,13 @@ const us = {
|
|
|
5083
5078
|
m.isEditingStyle || bn();
|
|
5084
5079
|
},
|
|
5085
5080
|
{ deep: !0, flush: "post" }
|
|
5086
|
-
),
|
|
5081
|
+
), Te(
|
|
5087
5082
|
() => X.value,
|
|
5088
5083
|
(w) => {
|
|
5089
5084
|
m.isEditingStyle || w.includes(o.value.id) && bn();
|
|
5090
5085
|
},
|
|
5091
5086
|
{ flush: "post" }
|
|
5092
|
-
),
|
|
5087
|
+
), Te(
|
|
5093
5088
|
[() => o.value.size],
|
|
5094
5089
|
() => {
|
|
5095
5090
|
et();
|
|
@@ -5119,7 +5114,7 @@ const us = {
|
|
|
5119
5114
|
en();
|
|
5120
5115
|
try {
|
|
5121
5116
|
n.value = !0, tn && tn.abort(), tn = new AbortController();
|
|
5122
|
-
const w = tn.signal, ue = ce.value,
|
|
5117
|
+
const w = tn.signal, ue = ce.value, ke = await kn(
|
|
5123
5118
|
ba,
|
|
5124
5119
|
500
|
|
5125
5120
|
)({
|
|
@@ -5128,13 +5123,13 @@ const us = {
|
|
|
5128
5123
|
tileId: o.value.id
|
|
5129
5124
|
});
|
|
5130
5125
|
if (ce.value === ue) {
|
|
5131
|
-
p.value =
|
|
5126
|
+
p.value = ke;
|
|
5132
5127
|
const Ee = [
|
|
5133
5128
|
...Q.value.config.dimensions,
|
|
5134
5129
|
...(Q.value.config.joinDatasources ?? []).flatMap((tt) => tt.dimensions ?? [])
|
|
5135
5130
|
];
|
|
5136
5131
|
Ye.value.length > 0 && Ye.value.forEach((tt) => {
|
|
5137
|
-
const nt = is(
|
|
5132
|
+
const nt = is(ke, tt, Ee), Cn = Array.from(new Set(nt));
|
|
5138
5133
|
yn(Ca(tt, m.reportId), Cn);
|
|
5139
5134
|
}), L.value = Rt(), setTimeout(() => v(), 100);
|
|
5140
5135
|
}
|
|
@@ -5151,40 +5146,40 @@ const us = {
|
|
|
5151
5146
|
return `${Ql(o.value.size.height, o.value.widget.type)}px`;
|
|
5152
5147
|
}
|
|
5153
5148
|
function Jo() {
|
|
5154
|
-
const w =
|
|
5149
|
+
const w = A.value - 1;
|
|
5155
5150
|
w >= 0 && (I.value = Me.value[w].value);
|
|
5156
5151
|
}
|
|
5157
5152
|
function Zo() {
|
|
5158
|
-
const w =
|
|
5153
|
+
const w = A.value + 1;
|
|
5159
5154
|
w >= 0 && w < Me.value.length && (I.value = Me.value[w].value);
|
|
5160
5155
|
}
|
|
5161
|
-
const qn = P(
|
|
5156
|
+
const qn = P(Ct.EXCEL), Gn = P(), Qo = Object.values(Ct).map((w) => ({
|
|
5162
5157
|
label: xa(w),
|
|
5163
5158
|
value: w,
|
|
5164
5159
|
onClick: async () => {
|
|
5165
|
-
w ===
|
|
5160
|
+
w === Ct.EXCEL || w === Ct.PDFFULLSIZE || w === Ct.PDFRECEIPT ? await So({
|
|
5166
5161
|
reportType: w,
|
|
5167
5162
|
index: m.index,
|
|
5168
5163
|
isCombinedLocationLayout: ve.value,
|
|
5169
5164
|
timeRange: U.value,
|
|
5170
5165
|
dateRange: g.value,
|
|
5171
5166
|
locationIds: d.value
|
|
5172
|
-
}) : w ===
|
|
5167
|
+
}) : w === Ct.PDF && (qn.value = w, Gn.value = m.index, Ke.value = !0);
|
|
5173
5168
|
}
|
|
5174
5169
|
})), ea = m.flat || Q.value.type === E.Spacer ? "flat" : "outlined", ta = Q.value.type === E.Spacer ? "p-0" : "p-16", na = c(() => m.flat ? "w-full" : Zt.value);
|
|
5175
5170
|
return (w, ue) => {
|
|
5176
|
-
const
|
|
5171
|
+
const ke = fe("FmTooltip"), Ee = fe("FmSearch"), tt = fe("FmCheckbox"), nt = fe("FmButton"), Cn = fe("FmSelect"), oa = fe("FmMenuItem"), aa = fe("FmMenu"), ra = fe("FmForm"), la = fe("FmCircularProgress"), sa = fe("FmCard");
|
|
5177
5172
|
return K(), de(sa, {
|
|
5178
5173
|
ref_key: "tileCard",
|
|
5179
5174
|
ref: D,
|
|
5180
|
-
class:
|
|
5175
|
+
class: De(`${na.value} ${i(ta)}`),
|
|
5181
5176
|
variant: i(ea),
|
|
5182
5177
|
style: Pe({ height: Pt.value })
|
|
5183
5178
|
}, {
|
|
5184
|
-
default:
|
|
5179
|
+
default: Le(() => [
|
|
5185
5180
|
pe(as, {
|
|
5186
5181
|
modelValue: Ke.value,
|
|
5187
|
-
"onUpdate:modelValue": ue[0] || (ue[0] = (
|
|
5182
|
+
"onUpdate:modelValue": ue[0] || (ue[0] = (bt) => Ke.value = bt),
|
|
5188
5183
|
"report-type": qn.value,
|
|
5189
5184
|
index: Gn.value
|
|
5190
5185
|
}, null, 8, ["modelValue", "report-type", "index"]),
|
|
@@ -5192,18 +5187,18 @@ const us = {
|
|
|
5192
5187
|
(K(), de(wo(s.value), {
|
|
5193
5188
|
key: L.value,
|
|
5194
5189
|
modelValue: He.value,
|
|
5195
|
-
"onUpdate:modelValue": ue[4] || (ue[4] = (
|
|
5190
|
+
"onUpdate:modelValue": ue[4] || (ue[4] = (bt) => He.value = bt),
|
|
5196
5191
|
"tile-index": m.index
|
|
5197
5192
|
}, {
|
|
5198
|
-
menu:
|
|
5193
|
+
menu: Le(() => [
|
|
5199
5194
|
vn.value ? (K(), de(ra, {
|
|
5200
5195
|
key: 0,
|
|
5201
5196
|
class: "flex items-center gap-2"
|
|
5202
5197
|
}, {
|
|
5203
|
-
default:
|
|
5204
|
-
var
|
|
5198
|
+
default: Le(() => {
|
|
5199
|
+
var bt, jn, Jn;
|
|
5205
5200
|
return [
|
|
5206
|
-
pe(
|
|
5201
|
+
pe(ke, {
|
|
5207
5202
|
variant: "plain",
|
|
5208
5203
|
placement: "right",
|
|
5209
5204
|
content: Q.value.description,
|
|
@@ -5211,7 +5206,7 @@ const us = {
|
|
|
5211
5206
|
disabled: !Q.value.description,
|
|
5212
5207
|
"z-index": 99
|
|
5213
5208
|
}, {
|
|
5214
|
-
default:
|
|
5209
|
+
default: Le(() => [
|
|
5215
5210
|
k.value !== !1 ? (K(), le("div", cs, [
|
|
5216
5211
|
Q.value.type === i(E).Scorecard && Q.value.config.titleIcon !== "" ? (K(), de(Kl, {
|
|
5217
5212
|
key: 0,
|
|
@@ -5227,7 +5222,7 @@ const us = {
|
|
|
5227
5222
|
paddingRight: S.value ? "4px" : "0px",
|
|
5228
5223
|
textDecoration: x.value ? "underline" : "none"
|
|
5229
5224
|
}),
|
|
5230
|
-
class:
|
|
5225
|
+
class: De(["line-clamp-1", [
|
|
5231
5226
|
_.value ? "" : "text-fm-color-typo-secondary",
|
|
5232
5227
|
V.value <= 18 ? "fm-typo-en-body-md-400" : "",
|
|
5233
5228
|
Q.value.description ? "border-b-2 border-dashed border-gray-300" : ""
|
|
@@ -5249,13 +5244,13 @@ const us = {
|
|
|
5249
5244
|
label: "Label",
|
|
5250
5245
|
value: !1
|
|
5251
5246
|
}, null, 8, ["modelValue"]), [
|
|
5252
|
-
[pa, (
|
|
5247
|
+
[pa, (bt = Xe.value) == null ? void 0 : bt.showLabel]
|
|
5253
5248
|
]),
|
|
5254
5249
|
(jn = Xe.value) != null && jn.showDrillDimension && Me.value.length > 0 ? (K(), le("div", fs, [
|
|
5255
5250
|
pe(nt, {
|
|
5256
5251
|
icon: "arrow_upward",
|
|
5257
5252
|
variant: "tertiary",
|
|
5258
|
-
disabled: !
|
|
5253
|
+
disabled: !B.value,
|
|
5259
5254
|
onClick: Jo
|
|
5260
5255
|
}, null, 8, ["disabled"]),
|
|
5261
5256
|
pe(nt, {
|
|
@@ -5276,13 +5271,13 @@ const us = {
|
|
|
5276
5271
|
key: 4,
|
|
5277
5272
|
shift: !0
|
|
5278
5273
|
}, {
|
|
5279
|
-
"menu-button":
|
|
5274
|
+
"menu-button": Le(() => [
|
|
5280
5275
|
pe(nt, {
|
|
5281
5276
|
icon: "more_vert",
|
|
5282
5277
|
variant: "tertiary"
|
|
5283
5278
|
})
|
|
5284
5279
|
]),
|
|
5285
|
-
default:
|
|
5280
|
+
default: Le(() => [
|
|
5286
5281
|
(K(!0), le(Ne, null, ft(i(Qo), (qe) => (K(), de(oa, {
|
|
5287
5282
|
key: qe.value,
|
|
5288
5283
|
label: qe.label,
|
|
@@ -5308,7 +5303,7 @@ const us = {
|
|
|
5308
5303
|
export {
|
|
5309
5304
|
Dn as L,
|
|
5310
5305
|
Ge as R,
|
|
5311
|
-
|
|
5306
|
+
we as S,
|
|
5312
5307
|
Kl as _,
|
|
5313
5308
|
Ds as a,
|
|
5314
5309
|
Gl as b,
|
|
@@ -5321,7 +5316,7 @@ export {
|
|
|
5321
5316
|
Ts as i,
|
|
5322
5317
|
ls as j,
|
|
5323
5318
|
Ln as k,
|
|
5324
|
-
|
|
5319
|
+
_t as l,
|
|
5325
5320
|
Lo as m,
|
|
5326
5321
|
Ss as n,
|
|
5327
5322
|
Ql as t
|