@feedmepos/mf-report 5.33.3 → 5.34.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-BgRqim5d.js → App-BdSGNJ3L.js} +114 -113
- package/dist/{DateRangeSelect-XyU5XG5c.js → DateRangeSelect-Cre6UJLD.js} +67 -67
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CC7fE3F8.js → Default.vue_vue_type_script_setup_true_lang-CvM5oewZ.js} +3 -3
- package/dist/DigestListView-BuB4JOlT.js +876 -0
- package/dist/{DigestReaderView-DSNoAESE.js → DigestReaderView-DdpTY1Ax.js} +63 -63
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CsDiXGUk.js → DynamicWidget.vue_vue_type_script_setup_true_lang-4qBcakJs.js} +733 -733
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-D7Rsh-uY.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BL3kxHFR.js} +526 -526
- package/dist/{InsightView-CF8mQJha.js → InsightView-CZOStmyJ.js} +88 -88
- package/dist/{Integration-QMdYwTwW.js → Integration-BC-DWRpD.js} +1983 -1967
- package/dist/{Integrations-Dbx1ScOv.js → Integrations-ibKrdipe.js} +10 -10
- package/dist/{Layout-CgiplBHM.js → Layout-D0W7xdty.js} +3 -3
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-zW8JA7j3.js → LocationSelect.vue_vue_type_script_setup_true_lang-CJCSJkT_.js} +306 -306
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-B0q9V1x8.js → MenuTab.vue_vue_type_script_setup_true_lang-DnPC8AcN.js} +6 -6
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BVWZ8vTw.js → NavigationTab.vue_vue_type_script_setup_true_lang-CKaMBQka.js} +12784 -11760
- package/dist/{OverviewView-BbZ8WkLb.js → OverviewView-AOwgvPBq.js} +7 -7
- package/dist/{Report-BYi0pPZs.js → Report-Bs5sy1OF.js} +12 -12
- package/dist/{ReportCanvasView-CfFtVomc.js → ReportCanvasView-CYai96pI.js} +426 -426
- package/dist/{ReportEditor-BLEkGUVR.js → ReportEditor-BbsLe4B7.js} +32 -32
- package/dist/{ReportView-TG78Krm2.js → ReportView-B5Fqspyn.js} +13 -13
- package/dist/{ReportViewRoute-BUADf4Cr.js → ReportViewRoute-D2wI79x9.js} +5 -5
- package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js +137 -0
- package/dist/{Setting-Curkhv9_.js → Setting-DdYXi5qR.js} +6 -6
- package/dist/{Template-BN_ds698.js → Template-YEa1E6oz.js} +80 -80
- package/dist/{TileEditor-Cfb0uXGr.js → TileEditor-CnmEhIab.js} +1566 -1566
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-1FKwWbpC.js → TilePageStack.vue_vue_type_script_setup_true_lang-CqWXV57r.js} +82 -82
- package/dist/{TransitionFade-D0_ZoB-O.js → TransitionFade-BmItOXFf.js} +170 -170
- package/dist/{XeroRedirect-CuTrP62C.js → XeroRedirect-D4sHbZe7.js} +3 -3
- package/dist/_plugin-vue_export-helper-Bx7s49ra.js +2828 -0
- package/dist/{app-LKjvcmXa.js → app-BmNusIzI.js} +5688 -13890
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-DvK7K5ca.js → formatChartData.worker-Cpgnh20a.js} +62 -62
- package/dist/assets/{processTableData.worker-C3l4iUXL.js → processTableData.worker-B7I6PElJ.js} +64 -64
- package/dist/{chart-BywXiz4O.js → chart-DU0N9V2o.js} +7 -4
- package/dist/currency-DAk-bsf8.js +12 -0
- package/dist/index-6T_rmIM_.js +24722 -0
- package/dist/{report-Ci2ElGpp.js → report-NKl3Yb5J.js} +23 -23
- package/dist/style.css +1 -1
- package/dist/{useDigestFont-BxXC7U3d.js → useDigestFont-Bxq6g3WO.js} +80 -80
- package/dist/{useReportCanvasPanel-BjmRiMSh.js → useReportCanvasPanel-BN-Gq7Uj.js} +975 -976
- package/dist/{useRestaurantPermission-DX52YBfA.js → useRestaurantPermission-D8b3oI0-.js} +2 -2
- package/package.json +11 -11
- package/dist/DigestListView-Bqp4LA1w.js +0 -876
- package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js +0 -137
- package/dist/_plugin-vue_export-helper-C6QDExPN.js +0 -2718
- package/dist/currency-DFN_8rRJ.js +0 -12
- package/dist/index-xdTpLFHc.js +0 -25511
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { computed as c, defineComponent as ze, ref as k, watch as Le, onMounted as Gt, onBeforeUnmount as Eo, resolveComponent as be,
|
|
2
|
-
import { u as Qa, h as er, i as qo, j as tr, q as ko, k as nr } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as Ln, af as xn, a as _n, ag as or } from "./app-
|
|
4
|
-
import { W as Z, S as Je, v as Kt, F as Ot, c as
|
|
5
|
-
import { c as Dn, w as Et } from "./currency-
|
|
6
|
-
import { d as Xn } from "./DateRangeSelect-
|
|
1
|
+
import { computed as c, defineComponent as ze, ref as k, watch as Le, onMounted as Gt, onBeforeUnmount as Eo, resolveComponent as be, openBlock as j, createBlock as ye, Transition as Ya, withCtx as Re, createElementBlock as me, createElementVNode as Q, unref as l, normalizeStyle as Ve, withModifiers as Cn, toDisplayString as Me, createVNode as Ce, Fragment as Ye, renderList as St, createCommentVNode as we, normalizeClass as Fe, nextTick as jo, useModel as at, renderSlot as pt, mergeModels as ot, h as Pt, createSlots as Xa, resolveDynamicComponent as Go, markRaw as So, toRaw as Ea, createTextVNode as ja, onUnmounted as Yn, provide as Ga, inject as qa, withDirectives as Ja, vShow as Za } from "vue";
|
|
2
|
+
import { u as Qa, h as er, i as qo, j as tr, q as ko, k as nr } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BL3kxHFR.js";
|
|
3
|
+
import { u as Ln, af as xn, a as _n, ag as or } from "./app-BmNusIzI.js";
|
|
4
|
+
import { W as Z, S as Je, v as Kt, F as Ot, c as pn, w as Hn, d as ar, o as rr, x as lr, E as Mt, y as sr } from "./report-NKl3Yb5J.js";
|
|
5
|
+
import { c as Dn, w as Et } from "./currency-DAk-bsf8.js";
|
|
6
|
+
import { d as Xn } from "./DateRangeSelect-Cre6UJLD.js";
|
|
7
7
|
import { storeToRefs as At } from "pinia";
|
|
8
8
|
import { detectLocale as oo } from "@feedmepos/mf-common";
|
|
9
|
-
import "./index-
|
|
10
|
-
import { C as En, t as ir } from "./chart-
|
|
9
|
+
import "./index-6T_rmIM_.js";
|
|
10
|
+
import { C as En, t as ir } from "./chart-DU0N9V2o.js";
|
|
11
11
|
import { useBreakpoints as qt, useSnackbar as Sn, components as ur } from "@feedmepos/ui-library";
|
|
12
|
-
import { u as kt, _ as Jo } from "./_plugin-vue_export-helper-
|
|
12
|
+
import { u as kt, _ as Jo } from "./_plugin-vue_export-helper-Bx7s49ra.js";
|
|
13
13
|
import { r as wt } from "./i18n-DbyciK4x.js";
|
|
14
|
-
import { _ as Wn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
14
|
+
import { _ as Wn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js";
|
|
15
15
|
var Yt = /* @__PURE__ */ ((e) => (e.line = "LINECHART", e.bar = "BARCHART", e.stackedBar = "STACKBARCHART", e.progress = "PROGRESS", e))(Yt || {}), qe = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(qe || {}), jn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(jn || {}), Gn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Gn || {}), qn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(qn || {}), Jn = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Jn || {}), Zn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Zn || {}), Be = /* @__PURE__ */ ((e) => (e.series = "SERIES", e.metric = "METRIC", e.breakdown = "BREAKDOWN", e))(Be || {});
|
|
16
16
|
Z.Circular, Z.Table, Z.BarChart, Z.LineChart, Z.StackBarChart, Z.ClusteredStackBarChart, Z.StackLineChart, Z.Scorecard, Z.Spacer;
|
|
17
17
|
const cr = [
|
|
@@ -122,7 +122,7 @@ function Zo(e) {
|
|
|
122
122
|
return i === 0 ? r : kn(r, Math.min(0.18 * i, 0.72));
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
-
const
|
|
125
|
+
const vi = Ft.map(() => "solid");
|
|
126
126
|
function Bt({
|
|
127
127
|
datasetIndex: e,
|
|
128
128
|
label: t
|
|
@@ -133,7 +133,7 @@ function Bt({
|
|
|
133
133
|
function fr(e) {
|
|
134
134
|
return e === "dashed" || e === "dotted" ? e : "solid";
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function vr(e, t = !1) {
|
|
137
137
|
if (e == null)
|
|
138
138
|
return t ? [5, 5] : void 0;
|
|
139
139
|
const n = fr(e);
|
|
@@ -194,12 +194,12 @@ function Jt({
|
|
|
194
194
|
}
|
|
195
195
|
return n;
|
|
196
196
|
}
|
|
197
|
-
const
|
|
197
|
+
const mr = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
|
|
198
198
|
function jt(e) {
|
|
199
199
|
if (!e)
|
|
200
200
|
return null;
|
|
201
201
|
const t = e.trim();
|
|
202
|
-
if (!
|
|
202
|
+
if (!mr.test(t))
|
|
203
203
|
return null;
|
|
204
204
|
if (t.length === 4) {
|
|
205
205
|
const [, n, o, r] = t;
|
|
@@ -207,7 +207,7 @@ function jt(e) {
|
|
|
207
207
|
}
|
|
208
208
|
return t.toUpperCase();
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function pr(e) {
|
|
211
211
|
const t = jt(e) ?? "#000000";
|
|
212
212
|
return {
|
|
213
213
|
red: Number.parseInt(t.slice(1, 3), 16),
|
|
@@ -223,7 +223,7 @@ function ea(e) {
|
|
|
223
223
|
return !Array.isArray(e) || e.length === 0 ? n : n.map((o, r) => jt(e[r]) ?? o);
|
|
224
224
|
}
|
|
225
225
|
function ta(e, t) {
|
|
226
|
-
const { red: n, green: o, blue: r } =
|
|
226
|
+
const { red: n, green: o, blue: r } = pr(e);
|
|
227
227
|
return `rgba(${n}, ${o}, ${r}, ${t})`;
|
|
228
228
|
}
|
|
229
229
|
function kn(e, t) {
|
|
@@ -233,9 +233,9 @@ function kn(e, t) {
|
|
|
233
233
|
};
|
|
234
234
|
return `#${o(1)}${o(3)}${o(5)}`;
|
|
235
235
|
}
|
|
236
|
-
const
|
|
236
|
+
const gr = 0.25, na = 0.7;
|
|
237
237
|
function oa(e) {
|
|
238
|
-
return kn(e,
|
|
238
|
+
return kn(e, gr);
|
|
239
239
|
}
|
|
240
240
|
function To(e) {
|
|
241
241
|
return Math.min(0.55 + (e - 1) * 0.18, 0.95);
|
|
@@ -265,29 +265,29 @@ function zt({
|
|
|
265
265
|
breakdownColors: i,
|
|
266
266
|
useSecondaryMetricShades: a,
|
|
267
267
|
colorMode: u,
|
|
268
|
-
customColors:
|
|
268
|
+
customColors: v
|
|
269
269
|
}) {
|
|
270
|
-
const
|
|
270
|
+
const h = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, x = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, Y = a !== !1, H = e * h + x, d = u === "clustered" ? Zo(Math.max(Ft.length, e + 1)) : ea(v), b = jt(i == null ? void 0 : i[e * h]) ?? d[e % d.length], w = Y && x > 0 ? kn(b, To(x)) : jt(i == null ? void 0 : i[H]) ?? (x > 0 ? kn(b, To(x)) : b), g = o ? oa(w) : w;
|
|
271
271
|
let I = typeof r == "number" ? r : 1;
|
|
272
|
-
return o && (I = I * na), ta(
|
|
272
|
+
return o && (I = I * na), ta(g, I);
|
|
273
273
|
}
|
|
274
274
|
function aa(e, t, n) {
|
|
275
275
|
if (e === "" || t === "")
|
|
276
276
|
return null;
|
|
277
|
-
let o = (
|
|
278
|
-
n === "ID" && (o = (
|
|
277
|
+
let o = (v) => v == null ? void 0 : v.replace(/,/g, "");
|
|
278
|
+
n === "ID" && (o = (v) => v == null ? void 0 : v.replace(/\./g, "").replace(/,/g, "."));
|
|
279
279
|
const r = Number(o(e)), i = Number(o(t));
|
|
280
280
|
if (isNaN(r) || isNaN(i))
|
|
281
281
|
return null;
|
|
282
282
|
let a = 0;
|
|
283
283
|
i === 0 ? r === 0 ? a = 0 : a = 1 : a = (r - i) / i;
|
|
284
|
-
const u =
|
|
284
|
+
const u = hr(a);
|
|
285
285
|
return {
|
|
286
286
|
value: isNaN(a) ? "" : `${(a * 100).toFixed(0)}%`,
|
|
287
287
|
icon: u
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function hr(e) {
|
|
291
291
|
return e > 0 ? {
|
|
292
292
|
name: "moving",
|
|
293
293
|
color: "#1F7735",
|
|
@@ -480,17 +480,17 @@ function Dr(e, t, n) {
|
|
|
480
480
|
const a = e.scales.x, u = e.scales.y;
|
|
481
481
|
if (!a || !u)
|
|
482
482
|
return;
|
|
483
|
-
const
|
|
484
|
-
if (!
|
|
483
|
+
const v = i[0];
|
|
484
|
+
if (!v)
|
|
485
485
|
return;
|
|
486
486
|
if (t === "bar") {
|
|
487
|
-
const
|
|
488
|
-
On(e.ctx, o, e.chartArea,
|
|
487
|
+
const g = (o ? u : a).getPixelForValue(v.index);
|
|
488
|
+
On(e.ctx, o, e.chartArea, g);
|
|
489
489
|
return;
|
|
490
490
|
}
|
|
491
|
-
if (!
|
|
491
|
+
if (!v.element)
|
|
492
492
|
return;
|
|
493
|
-
const
|
|
493
|
+
const h = v.element, x = o ? u : a, Y = o ? h.y : h.x, H = x.getPixelForValue(v.index), d = Y ?? H;
|
|
494
494
|
On(e.ctx, o, e.chartArea, d);
|
|
495
495
|
}
|
|
496
496
|
function Qt(e) {
|
|
@@ -561,20 +561,20 @@ function Mo() {
|
|
|
561
561
|
function Bo() {
|
|
562
562
|
return ro("compared");
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function gn(e, t) {
|
|
565
565
|
const n = e.trim();
|
|
566
566
|
return n.length === 0 ? t : `${n} · ${t}`;
|
|
567
567
|
}
|
|
568
568
|
function $r(e, t, n, o) {
|
|
569
|
-
var
|
|
570
|
-
const r = zr(e), i = (r == null ? void 0 : r[0]) ?? "", a = r == null ? void 0 : r[1], u = t.some((x) => ia(x)),
|
|
569
|
+
var h;
|
|
570
|
+
const r = zr(e), i = (r == null ? void 0 : r[0]) ?? "", a = r == null ? void 0 : r[1], u = t.some((x) => ia(x)), v = typeof n == "number" ? (h = o == null ? void 0 : o[n]) == null ? void 0 : h.trim() : void 0;
|
|
571
571
|
return a ? {
|
|
572
|
-
firstTitle:
|
|
573
|
-
secondTitle:
|
|
572
|
+
firstTitle: gn(i, Mo()),
|
|
573
|
+
secondTitle: gn(a, Bo())
|
|
574
574
|
} : u ? {
|
|
575
|
-
firstTitle:
|
|
576
|
-
secondTitle:
|
|
577
|
-
|
|
575
|
+
firstTitle: gn(i, Mo()),
|
|
576
|
+
secondTitle: gn(
|
|
577
|
+
v && v.length > 0 ? v : i,
|
|
578
578
|
Bo()
|
|
579
579
|
)
|
|
580
580
|
} : {
|
|
@@ -711,13 +711,13 @@ function el(e, t) {
|
|
|
711
711
|
function tl(e) {
|
|
712
712
|
return `<button type="button" data-tooltip-full-details="true" style="${br}">${eo(e)}</button>`;
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function va(e, t, n, o, r, i, a, u, v) {
|
|
715
715
|
var $;
|
|
716
|
-
const { firstTitle:
|
|
716
|
+
const { firstTitle: h, secondTitle: x } = $r(
|
|
717
717
|
($ = e[0]) == null ? void 0 : $.label,
|
|
718
718
|
i,
|
|
719
719
|
a,
|
|
720
|
-
|
|
720
|
+
v
|
|
721
721
|
), Y = [], H = [], d = /* @__PURE__ */ new Set(), b = i.some((C) => (C == null ? void 0 : C.formatter) === "CURRENCY") ? Dn(Ln().country) : void 0;
|
|
722
722
|
i.forEach((C, z) => {
|
|
723
723
|
if (d.has(z))
|
|
@@ -743,27 +743,27 @@ function ma(e, t, n, o, r, i, a, u, m) {
|
|
|
743
743
|
}
|
|
744
744
|
Y.push(q);
|
|
745
745
|
});
|
|
746
|
-
const w = Y.slice(0, o),
|
|
746
|
+
const w = Y.slice(0, o), g = /* @__PURE__ */ new Map();
|
|
747
747
|
H.forEach((C) => {
|
|
748
|
-
const z =
|
|
748
|
+
const z = g.get(C.matchingKey);
|
|
749
749
|
if (!z) {
|
|
750
|
-
|
|
750
|
+
g.set(C.matchingKey, [C]);
|
|
751
751
|
return;
|
|
752
752
|
}
|
|
753
753
|
z.push(C);
|
|
754
754
|
});
|
|
755
755
|
const I = x ? w.map((C) => {
|
|
756
|
-
const z =
|
|
756
|
+
const z = g.get(C.matchingKey);
|
|
757
757
|
return !z || z.length === 0 ? Ro(C) : z.shift() ?? Ro(C);
|
|
758
758
|
}) : [], P = Y.length > w.length || H.length > I.length, W = (C, z = !1) => `<div style="${Qr(z)}">${eo(C)}</div>`, M = (C) => {
|
|
759
759
|
const z = el(C.isBar, C.color);
|
|
760
760
|
return `<div style="${xr}"><span style="${z}"></span><span style="${wr}">${eo(C.text)}</span></div>`;
|
|
761
761
|
};
|
|
762
762
|
let S = "";
|
|
763
|
-
|
|
763
|
+
h.length > 0 && (S += W(h)), S += w.map((C) => M(C)).join(""), x && I.length > 0 && (S += W(x, S.length > 0), S += I.map((C) => M(C)).join("")), r && P && (S += tl(n));
|
|
764
764
|
const D = [
|
|
765
765
|
{
|
|
766
|
-
title:
|
|
766
|
+
title: h,
|
|
767
767
|
values: Y
|
|
768
768
|
},
|
|
769
769
|
{
|
|
@@ -780,8 +780,8 @@ function ma(e, t, n, o, r, i, a, u, m) {
|
|
|
780
780
|
function Fo(e) {
|
|
781
781
|
return e.scrollHeight - e.clientHeight > Pr;
|
|
782
782
|
}
|
|
783
|
-
function
|
|
784
|
-
const x =
|
|
783
|
+
function hn(e, t, n, o, r, i, a, u, v, h) {
|
|
784
|
+
const x = va(
|
|
785
785
|
t,
|
|
786
786
|
n,
|
|
787
787
|
o,
|
|
@@ -789,15 +789,15 @@ function vn(e, t, n, o, r, i, a, u, m, v) {
|
|
|
789
789
|
i,
|
|
790
790
|
a,
|
|
791
791
|
u,
|
|
792
|
-
|
|
793
|
-
|
|
792
|
+
v,
|
|
793
|
+
h
|
|
794
794
|
);
|
|
795
|
-
return e.innerHTML !== x.html && (e.innerHTML = x.html,
|
|
795
|
+
return e.innerHTML !== x.html && (e.innerHTML = x.html, pl(e)), x;
|
|
796
796
|
}
|
|
797
|
-
function nl(e, t, n, o, r, i, a, u,
|
|
797
|
+
function nl(e, t, n, o, r, i, a, u, v, h) {
|
|
798
798
|
if (Number.isFinite(r))
|
|
799
799
|
return {
|
|
800
|
-
markup:
|
|
800
|
+
markup: hn(
|
|
801
801
|
e,
|
|
802
802
|
t,
|
|
803
803
|
n,
|
|
@@ -806,13 +806,13 @@ function nl(e, t, n, o, r, i, a, u, m, v) {
|
|
|
806
806
|
i,
|
|
807
807
|
a,
|
|
808
808
|
u,
|
|
809
|
-
|
|
810
|
-
|
|
809
|
+
v,
|
|
810
|
+
h
|
|
811
811
|
),
|
|
812
812
|
maxTooltipItems: r
|
|
813
813
|
};
|
|
814
814
|
const x = Math.max(Qn, t.length);
|
|
815
|
-
let Y = x, H =
|
|
815
|
+
let Y = x, H = hn(
|
|
816
816
|
e,
|
|
817
817
|
t,
|
|
818
818
|
n,
|
|
@@ -821,8 +821,8 @@ function nl(e, t, n, o, r, i, a, u, m, v) {
|
|
|
821
821
|
i,
|
|
822
822
|
a,
|
|
823
823
|
u,
|
|
824
|
-
|
|
825
|
-
|
|
824
|
+
v,
|
|
825
|
+
h
|
|
826
826
|
);
|
|
827
827
|
if (!Fo(e))
|
|
828
828
|
return {
|
|
@@ -831,26 +831,26 @@ function nl(e, t, n, o, r, i, a, u, m, v) {
|
|
|
831
831
|
};
|
|
832
832
|
let d = Qn, b = x;
|
|
833
833
|
for (; d <= b; ) {
|
|
834
|
-
const
|
|
834
|
+
const g = Math.floor((d + b) / 2), I = hn(
|
|
835
835
|
e,
|
|
836
836
|
t,
|
|
837
837
|
n,
|
|
838
838
|
o,
|
|
839
|
-
|
|
839
|
+
g,
|
|
840
840
|
i,
|
|
841
841
|
a,
|
|
842
842
|
u,
|
|
843
|
-
|
|
844
|
-
|
|
843
|
+
v,
|
|
844
|
+
h
|
|
845
845
|
);
|
|
846
846
|
if (Fo(e)) {
|
|
847
|
-
b =
|
|
847
|
+
b = g - 1;
|
|
848
848
|
continue;
|
|
849
849
|
}
|
|
850
|
-
Y =
|
|
850
|
+
Y = g, H = I, d = g + 1;
|
|
851
851
|
}
|
|
852
852
|
return {
|
|
853
|
-
markup: Y === x ? H :
|
|
853
|
+
markup: Y === x ? H : hn(
|
|
854
854
|
e,
|
|
855
855
|
t,
|
|
856
856
|
n,
|
|
@@ -859,8 +859,8 @@ function nl(e, t, n, o, r, i, a, u, m, v) {
|
|
|
859
859
|
i,
|
|
860
860
|
a,
|
|
861
861
|
u,
|
|
862
|
-
|
|
863
|
-
|
|
862
|
+
v,
|
|
863
|
+
h
|
|
864
864
|
),
|
|
865
865
|
maxTooltipItems: Y
|
|
866
866
|
};
|
|
@@ -870,24 +870,24 @@ function No(e, t) {
|
|
|
870
870
|
if (o.startsWith("#")) {
|
|
871
871
|
const a = o.slice(1), u = a.length === 3 ? `${a[0]}${a[0]}${a[1]}${a[1]}${a[2]}${a[2]}` : a.length === 4 ? `${a[0]}${a[0]}${a[1]}${a[1]}${a[2]}${a[2]}` : a.length >= 6 ? a.slice(0, 6) : "";
|
|
872
872
|
if (/^[0-9a-fA-F]{6}$/.test(u)) {
|
|
873
|
-
const
|
|
874
|
-
return `rgba(${
|
|
873
|
+
const v = Number.parseInt(u.slice(0, 2), 16), h = Number.parseInt(u.slice(2, 4), 16), x = Number.parseInt(u.slice(4, 6), 16);
|
|
874
|
+
return `rgba(${v}, ${h}, ${x}, ${n})`;
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
877
|
const r = o.match(/^rgba?\(([^)]+)\)$/i);
|
|
878
878
|
if (r) {
|
|
879
879
|
const a = r[1].split(",").map((u) => u.trim());
|
|
880
880
|
if (a.length >= 3) {
|
|
881
|
-
const [u,
|
|
882
|
-
return `rgba(${u}, ${
|
|
881
|
+
const [u, v, h] = a;
|
|
882
|
+
return `rgba(${u}, ${v}, ${h}, ${n})`;
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
885
|
const i = o.match(/^hsla?\(([^)]+)\)$/i);
|
|
886
886
|
if (i) {
|
|
887
887
|
const a = i[1].split(",").map((u) => u.trim());
|
|
888
888
|
if (a.length >= 3) {
|
|
889
|
-
const [u,
|
|
890
|
-
return `hsla(${u}, ${
|
|
889
|
+
const [u, v, h] = a;
|
|
890
|
+
return `hsla(${u}, ${v}, ${h}, ${n})`;
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
893
|
return e;
|
|
@@ -952,7 +952,7 @@ function wn(e, t) {
|
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function ma(e) {
|
|
956
956
|
const t = e, n = t == null ? void 0 : t.chart;
|
|
957
957
|
if (to(n))
|
|
958
958
|
return n;
|
|
@@ -976,29 +976,29 @@ function so(e) {
|
|
|
976
976
|
return window.getComputedStyle(t).position === "static" && (t.style.position = "relative"), t;
|
|
977
977
|
}
|
|
978
978
|
function io(e, t, n, o, r, i, a = "center", u = !1) {
|
|
979
|
-
const
|
|
979
|
+
const v = t.getBoundingClientRect(), h = n.getBoundingClientRect(), x = n.scrollLeft, Y = n.scrollTop, H = n.clientWidth, d = n.clientHeight, b = e;
|
|
980
980
|
(!Number.isFinite(b.__cachedWidth) || !Number.isFinite(b.__cachedHeight) || b.__measurementHostWidth !== H || b.__measurementHostHeight !== d) && (b.__cachedWidth = e.offsetWidth, b.__cachedHeight = e.offsetHeight, b.__measurementHostWidth = H, b.__measurementHostHeight = d);
|
|
981
|
-
const
|
|
981
|
+
const g = b.__cachedWidth ?? e.offsetWidth, I = b.__cachedHeight ?? e.offsetHeight, P = 8, W = v.left - h.left + x + o, M = v.top - h.top + Y + r, S = u ? a === "left" ? W - g - P : W + P : a === "left" ? W - g - P : a === "right" ? W + P : W - g / 2, D = u ? M + P : i ? M - I / 2 : M + P, $ = x + P;
|
|
982
982
|
let C = Y + P;
|
|
983
983
|
const z = document.querySelector('[data-menu-tab="true"]');
|
|
984
984
|
if (z) {
|
|
985
|
-
const q = z.getBoundingClientRect().bottom -
|
|
985
|
+
const q = z.getBoundingClientRect().bottom - h.top + Y + P;
|
|
986
986
|
C = Math.max(C, q);
|
|
987
987
|
}
|
|
988
|
-
const O = Math.max($, x + H -
|
|
988
|
+
const O = Math.max($, x + H - g - P), ue = Math.max(C, Y + d - I - P), R = Math.round(Math.min(Math.max($, S), O)), A = Math.round(Math.min(Math.max(C, D), ue));
|
|
989
989
|
b.__lastLeftPx === R && b.__lastTopPx === A || (b.__lastLeftPx = R, b.__lastTopPx = A, e.style.left = `${R}px`, e.style.top = `${A}px`);
|
|
990
990
|
}
|
|
991
|
-
function
|
|
991
|
+
function pa(e) {
|
|
992
992
|
return e.dataset.anchorDirection === "left" ? "left" : e.dataset.anchorDirection === "right" ? "right" : "center";
|
|
993
993
|
}
|
|
994
994
|
function sl(e, t, n, o, r, i, a) {
|
|
995
|
-
const u = t.getBoundingClientRect(),
|
|
996
|
-
!Number.isFinite(
|
|
995
|
+
const u = t.getBoundingClientRect(), v = o - u.left, h = r - u.top;
|
|
996
|
+
!Number.isFinite(v) || !Number.isFinite(h) || (e.dataset.cursorCanvasX = String(v), e.dataset.cursorCanvasY = String(h), e.dataset.caretX = String(v), e.dataset.caretY = String(h), e.dataset.anchorDirection = a, io(
|
|
997
997
|
e,
|
|
998
998
|
t,
|
|
999
999
|
n,
|
|
1000
|
-
m,
|
|
1001
1000
|
v,
|
|
1001
|
+
h,
|
|
1002
1002
|
i,
|
|
1003
1003
|
a,
|
|
1004
1004
|
!0
|
|
@@ -1018,7 +1018,7 @@ function dl(e) {
|
|
|
1018
1018
|
e.__disconnectObserver && (e.__disconnectObserver.disconnect(), e.__disconnectObserver = void 0);
|
|
1019
1019
|
}
|
|
1020
1020
|
function uo(e, t) {
|
|
1021
|
-
$t(e),
|
|
1021
|
+
$t(e), ga(e), ul(e), cl(e), dl(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();
|
|
1022
1022
|
}
|
|
1023
1023
|
function fl(e, t, n) {
|
|
1024
1024
|
e.__onNavigationChange || (Nr(), e.__onNavigationChange = () => {
|
|
@@ -1029,7 +1029,7 @@ function fl(e, t, n) {
|
|
|
1029
1029
|
ct(e, t, !0);
|
|
1030
1030
|
}, window.addEventListener(ao, e.__onNavigationChange), window.addEventListener("popstate", e.__onNavigationChange), window.addEventListener("hashchange", e.__onNavigationChange), window.addEventListener("beforeunload", e.__onNavigationChange));
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function vl(e, t) {
|
|
1033
1033
|
e.__disconnectObserver || document.body && (e.__disconnectObserver = new MutationObserver(() => {
|
|
1034
1034
|
t.isConnected || uo(e, t);
|
|
1035
1035
|
}), e.__disconnectObserver.observe(document.body, {
|
|
@@ -1037,7 +1037,7 @@ function ml(e, t) {
|
|
|
1037
1037
|
subtree: !0
|
|
1038
1038
|
}));
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function ml(e, t, n) {
|
|
1041
1041
|
Array.from(
|
|
1042
1042
|
e.querySelectorAll('[data-comparison-tooltip="true"]')
|
|
1043
1043
|
).forEach((r) => {
|
|
@@ -1047,40 +1047,40 @@ function pl(e, t, n) {
|
|
|
1047
1047
|
function $t(e) {
|
|
1048
1048
|
typeof e.__hideTimeoutId == "number" && (window.clearTimeout(e.__hideTimeoutId), e.__hideTimeoutId = void 0);
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function ga(e) {
|
|
1051
1051
|
typeof e.__cursorRafId == "number" && (window.cancelAnimationFrame(e.__cursorRafId), e.__cursorRafId = void 0);
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function pl(e) {
|
|
1054
1054
|
e.__cachedWidth = void 0, e.__cachedHeight = void 0, e.__measurementHostWidth = void 0, e.__measurementHostHeight = void 0;
|
|
1055
1055
|
}
|
|
1056
1056
|
function Vo(e, t, n, o, r) {
|
|
1057
1057
|
const i = t.getBoundingClientRect(), a = o - i.left, u = r - i.top;
|
|
1058
1058
|
!Number.isFinite(a) || !Number.isFinite(u) || (e.dataset.cursorCanvasX = String(a), e.dataset.cursorCanvasY = String(u), e.dataset.caretX = String(a), e.dataset.caretY = String(u), e.__pendingCursorClientX = o, e.__pendingCursorClientY = r, typeof e.__cursorRafId != "number" && (e.__cursorRafId = window.requestAnimationFrame(() => {
|
|
1059
1059
|
e.__cursorRafId = void 0;
|
|
1060
|
-
const
|
|
1061
|
-
if (e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, !Number.isFinite(
|
|
1060
|
+
const v = e.__pendingCursorClientX, h = e.__pendingCursorClientY;
|
|
1061
|
+
if (e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, !Number.isFinite(v) || !Number.isFinite(h))
|
|
1062
1062
|
return;
|
|
1063
1063
|
const x = so(t);
|
|
1064
1064
|
e.parentElement !== x && x.appendChild(e), sl(
|
|
1065
1065
|
e,
|
|
1066
1066
|
t,
|
|
1067
1067
|
x,
|
|
1068
|
-
m,
|
|
1069
1068
|
v,
|
|
1069
|
+
h,
|
|
1070
1070
|
n,
|
|
1071
|
-
|
|
1071
|
+
pa(e)
|
|
1072
1072
|
);
|
|
1073
1073
|
})));
|
|
1074
1074
|
}
|
|
1075
1075
|
function ct(e, t, n = !1) {
|
|
1076
|
-
Nt(e) && !n || ($t(e),
|
|
1076
|
+
Nt(e) && !n || ($t(e), ga(e), da(e, !1), Gr(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", wn(t));
|
|
1077
1077
|
}
|
|
1078
1078
|
function Tn(e, t, n = Br) {
|
|
1079
1079
|
e.__isTooltipHovered || ($t(e), e.__hideTimeoutId = window.setTimeout(() => {
|
|
1080
1080
|
e.__isTooltipHovered || ct(e, t);
|
|
1081
1081
|
}, n));
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1083
|
+
function gl(e, t, n, o, r) {
|
|
1084
1084
|
const { maxTooltipItems: i } = fa(r);
|
|
1085
1085
|
e.__onCanvasPointerEnter || (e.__onCanvasPointerEnter = (a) => {
|
|
1086
1086
|
if (!(_t() && Nt(e)) && (Vo(
|
|
@@ -1112,7 +1112,7 @@ function hl(e, t, n, o, r) {
|
|
|
1112
1112
|
}, t.addEventListener("pointerleave", e.__onCanvasPointerLeave, {
|
|
1113
1113
|
passive: !0
|
|
1114
1114
|
})), e.__onCanvasClick || (e.__onCanvasClick = (a) => {
|
|
1115
|
-
var
|
|
1115
|
+
var g, I;
|
|
1116
1116
|
if (_t() || !(r != null && r.onViewFullDetails) || !e.__detailsPayload || e.style.opacity !== "1")
|
|
1117
1117
|
return;
|
|
1118
1118
|
const u = (P) => {
|
|
@@ -1121,7 +1121,7 @@ function hl(e, t, n, o, r) {
|
|
|
1121
1121
|
return !1;
|
|
1122
1122
|
const W = ($ = P.find(
|
|
1123
1123
|
(ue) => typeof ue.dataIndex == "number"
|
|
1124
|
-
)) == null ? void 0 : $.dataIndex, M = ((C = n == null ? void 0 : n.data) == null ? void 0 : C.datasets) ?? [], S = (z = n == null ? void 0 : n.config) == null ? void 0 : z.type, D =
|
|
1124
|
+
)) == null ? void 0 : $.dataIndex, M = ((C = n == null ? void 0 : n.data) == null ? void 0 : C.datasets) ?? [], S = (z = n == null ? void 0 : n.config) == null ? void 0 : z.type, D = va(
|
|
1125
1125
|
P,
|
|
1126
1126
|
o,
|
|
1127
1127
|
(r == null ? void 0 : r.viewFullDetailsLabel) ?? sa(),
|
|
@@ -1133,19 +1133,19 @@ function hl(e, t, n, o, r) {
|
|
|
1133
1133
|
r == null ? void 0 : r.comparisonXAxis
|
|
1134
1134
|
).detailsPayload;
|
|
1135
1135
|
return (O = r.onViewFullDetails) == null || O.call(r, D, n), ct(e, n), !0;
|
|
1136
|
-
},
|
|
1137
|
-
if (u(
|
|
1136
|
+
}, v = ((g = n == null ? void 0 : n.tooltip) == null ? void 0 : g.dataPoints) ?? [];
|
|
1137
|
+
if (u(v))
|
|
1138
1138
|
return;
|
|
1139
|
-
const
|
|
1140
|
-
if (typeof
|
|
1139
|
+
const h = n == null ? void 0 : n.getElementsAtEventForMode;
|
|
1140
|
+
if (typeof h != "function")
|
|
1141
1141
|
return;
|
|
1142
|
-
const x =
|
|
1142
|
+
const x = h.call(
|
|
1143
1143
|
n,
|
|
1144
1144
|
a,
|
|
1145
1145
|
"nearest",
|
|
1146
1146
|
{ intersect: !0 },
|
|
1147
1147
|
!1
|
|
1148
|
-
), Y =
|
|
1148
|
+
), Y = h.call(
|
|
1149
1149
|
n,
|
|
1150
1150
|
a,
|
|
1151
1151
|
"index",
|
|
@@ -1170,10 +1170,10 @@ function hl(e, t, n, o, r) {
|
|
|
1170
1170
|
u(w);
|
|
1171
1171
|
}, t.addEventListener("click", e.__onCanvasClick)), e.__onCanvasPointerUp || (e.__onCanvasPointerUp = (a) => {
|
|
1172
1172
|
if (_t()) {
|
|
1173
|
-
const u = n == null ? void 0 : n.getElementsAtEventForMode,
|
|
1174
|
-
if (typeof u != "function" || typeof (
|
|
1173
|
+
const u = n == null ? void 0 : n.getElementsAtEventForMode, v = n == null ? void 0 : n.tooltip;
|
|
1174
|
+
if (typeof u != "function" || typeof (v == null ? void 0 : v.setActiveElements) != "function")
|
|
1175
1175
|
return;
|
|
1176
|
-
const
|
|
1176
|
+
const h = u.call(
|
|
1177
1177
|
n,
|
|
1178
1178
|
a,
|
|
1179
1179
|
"nearest",
|
|
@@ -1185,7 +1185,7 @@ function hl(e, t, n, o, r) {
|
|
|
1185
1185
|
"index",
|
|
1186
1186
|
{ intersect: !1 },
|
|
1187
1187
|
!1
|
|
1188
|
-
), H = (
|
|
1188
|
+
), H = (h.length > 0 ? h : x).filter((I) => typeof I.datasetIndex == "number" && typeof I.index == "number").map((I) => ({
|
|
1189
1189
|
datasetIndex: I.datasetIndex,
|
|
1190
1190
|
index: I.index
|
|
1191
1191
|
}));
|
|
@@ -1197,12 +1197,12 @@ function hl(e, t, n, o, r) {
|
|
|
1197
1197
|
e,
|
|
1198
1198
|
d.datasetIndex,
|
|
1199
1199
|
d.index
|
|
1200
|
-
), w = Number.isFinite(e.__lastPhoneTapAt),
|
|
1201
|
-
if (w && !
|
|
1200
|
+
), w = Number.isFinite(e.__lastPhoneTapAt), g = b && Zr(e, a.offsetX, a.offsetY, a.timeStamp);
|
|
1201
|
+
if (w && !g && b) {
|
|
1202
1202
|
ct(e, n, !0);
|
|
1203
1203
|
return;
|
|
1204
1204
|
}
|
|
1205
|
-
da(e, !0), $t(e), e.dataset.cursorCanvasX = String(a.offsetX), e.dataset.cursorCanvasY = String(a.offsetY), e.dataset.caretX = String(a.offsetX), e.dataset.caretY = String(a.offsetY),
|
|
1205
|
+
da(e, !0), $t(e), e.dataset.cursorCanvasX = String(a.offsetX), e.dataset.cursorCanvasY = String(a.offsetY), e.dataset.caretX = String(a.offsetX), e.dataset.caretY = String(a.offsetY), v.setActiveElements(H, {
|
|
1206
1206
|
x: a.offsetX,
|
|
1207
1207
|
y: a.offsetY
|
|
1208
1208
|
});
|
|
@@ -1211,7 +1211,7 @@ function hl(e, t, n, o, r) {
|
|
|
1211
1211
|
} catch {
|
|
1212
1212
|
return;
|
|
1213
1213
|
}
|
|
1214
|
-
if (
|
|
1214
|
+
if (g && (r != null && r.onViewFullDetails) && e.__detailsPayload) {
|
|
1215
1215
|
r.onViewFullDetails(e.__detailsPayload, n), ct(e, n);
|
|
1216
1216
|
return;
|
|
1217
1217
|
}
|
|
@@ -1227,20 +1227,20 @@ function hl(e, t, n, o, r) {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
e.__onCanvasClick && e.__onCanvasClick(a);
|
|
1229
1229
|
}, t.addEventListener("pointerup", e.__onCanvasPointerUp)), r != null && r.onViewFullDetails && (e.__onDetailsClick || (e.__onDetailsClick = (a) => {
|
|
1230
|
-
var
|
|
1230
|
+
var h;
|
|
1231
1231
|
const u = a.target;
|
|
1232
|
-
u != null && u.closest('[data-tooltip-full-details="true"]') && (a.preventDefault(), a.stopPropagation(), e.__detailsPayload && ((
|
|
1232
|
+
u != null && u.closest('[data-tooltip-full-details="true"]') && (a.preventDefault(), a.stopPropagation(), e.__detailsPayload && ((h = r.onViewFullDetails) == null || h.call(r, e.__detailsPayload, n), ct(e, n)));
|
|
1233
1233
|
}, e.addEventListener("click", e.__onDetailsClick)), e.__onTooltipPointerEnter || (e.__onTooltipPointerEnter = () => {
|
|
1234
1234
|
e.__isTooltipHovered = !0, $t(e);
|
|
1235
1235
|
}, e.addEventListener("pointerenter", e.__onTooltipPointerEnter)), e.__onTooltipPointerLeave || (e.__onTooltipPointerLeave = () => {
|
|
1236
1236
|
e.__isTooltipHovered = !1, Tn(e, n);
|
|
1237
1237
|
}, e.addEventListener("pointerleave", e.__onTooltipPointerLeave)));
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function hl(e, t, n) {
|
|
1240
1240
|
e.__onViewportChange || (e.__onViewportChange = () => {
|
|
1241
1241
|
if (e.style.opacity !== "1")
|
|
1242
1242
|
return;
|
|
1243
|
-
const o = Number(e.dataset.caretX), r = Number(e.dataset.caretY), i =
|
|
1243
|
+
const o = Number(e.dataset.caretX), r = Number(e.dataset.caretY), i = pa(e);
|
|
1244
1244
|
if (!Number.isFinite(o) || !Number.isFinite(r)) {
|
|
1245
1245
|
e.style.opacity = "0";
|
|
1246
1246
|
return;
|
|
@@ -1273,26 +1273,26 @@ function yl(e, t) {
|
|
|
1273
1273
|
if (!(i instanceof HTMLCanvasElement))
|
|
1274
1274
|
return;
|
|
1275
1275
|
const a = so(i), u = `comparison-tooltip-${String(o.id)}`;
|
|
1276
|
-
let
|
|
1277
|
-
if (
|
|
1278
|
-
if (_t() && Nt(
|
|
1276
|
+
let v = document.querySelector(`#${u}`);
|
|
1277
|
+
if (v || (v = il(u)), v.parentElement !== a && a.appendChild(v), lo(v, a), hl(v, i, e), fl(v, o, i), vl(v, i), gl(v, i, o, e, t), ((r == null ? void 0 : r.opacity) ?? 0) === 0) {
|
|
1278
|
+
if (_t() && Nt(v))
|
|
1279
1279
|
return;
|
|
1280
|
-
t != null && t.onViewFullDetails ? Tn(
|
|
1280
|
+
t != null && t.onViewFullDetails ? Tn(v, o) : ct(v, o);
|
|
1281
1281
|
return;
|
|
1282
1282
|
}
|
|
1283
|
-
const
|
|
1284
|
-
if (
|
|
1285
|
-
if (_t() && Nt(
|
|
1283
|
+
const h = (r == null ? void 0 : r.dataPoints) ?? [];
|
|
1284
|
+
if (h.length === 0) {
|
|
1285
|
+
if (_t() && Nt(v))
|
|
1286
1286
|
return;
|
|
1287
|
-
t != null && t.onViewFullDetails ? Tn(
|
|
1287
|
+
t != null && t.onViewFullDetails ? Tn(v, o) : ct(v, o);
|
|
1288
1288
|
return;
|
|
1289
1289
|
}
|
|
1290
|
-
|
|
1291
|
-
const x = (t == null ? void 0 : t.viewFullDetailsLabel) ?? sa(), Y = !!(t != null && t.onViewFullDetails), H = (R =
|
|
1292
|
-
markup: { detailsPayload: w, hasCollapsedValues:
|
|
1290
|
+
ml(a, u, i), $t(v);
|
|
1291
|
+
const x = (t == null ? void 0 : t.viewFullDetailsLabel) ?? sa(), Y = !!(t != null && t.onViewFullDetails), H = (R = h.find((U) => typeof U.dataIndex == "number")) == null ? void 0 : R.dataIndex, d = ((A = o == null ? void 0 : o.data) == null ? void 0 : A.datasets) ?? [], b = (T = o == null ? void 0 : o.config) == null ? void 0 : T.type, {
|
|
1292
|
+
markup: { detailsPayload: w, hasCollapsedValues: g }
|
|
1293
1293
|
} = nl(
|
|
1294
|
-
m,
|
|
1295
1294
|
v,
|
|
1295
|
+
h,
|
|
1296
1296
|
e,
|
|
1297
1297
|
x,
|
|
1298
1298
|
n,
|
|
@@ -1301,24 +1301,24 @@ function yl(e, t) {
|
|
|
1301
1301
|
H,
|
|
1302
1302
|
b,
|
|
1303
1303
|
t == null ? void 0 : t.comparisonXAxis
|
|
1304
|
-
), I = Y &&
|
|
1305
|
-
|
|
1306
|
-
const P = typeof (r == null ? void 0 : r.caretX) == "number" ? r.caretX : 0, W = Number(
|
|
1304
|
+
), I = Y && g;
|
|
1305
|
+
v.__detailsPayload = I ? w : void 0, v.style.pointerEvents = I ? "auto" : "none";
|
|
1306
|
+
const P = typeof (r == null ? void 0 : r.caretX) == "number" ? r.caretX : 0, W = Number(v.dataset.cursorCanvasX), M = Number(v.dataset.cursorCanvasY);
|
|
1307
1307
|
if (!(Number.isFinite(W) && Number.isFinite(M))) {
|
|
1308
|
-
|
|
1308
|
+
v.style.opacity = "0";
|
|
1309
1309
|
return;
|
|
1310
1310
|
}
|
|
1311
|
-
const D = (q = o == null ? void 0 : o.scales) == null ? void 0 : q.x, $ = D && typeof D.getPixelForValue == "function" ? D.getPixelForValue(0) : NaN, C = e ?
|
|
1311
|
+
const D = (q = o == null ? void 0 : o.scales) == null ? void 0 : q.x, $ = D && typeof D.getPixelForValue == "function" ? D.getPixelForValue(0) : NaN, C = e ? h.reduce((U, X) => {
|
|
1312
1312
|
const B = X == null ? void 0 : X.element, K = B == null ? void 0 : B.x;
|
|
1313
1313
|
if (typeof K != "number" || !Number.isFinite(K))
|
|
1314
1314
|
return U;
|
|
1315
1315
|
if (!Number.isFinite(U))
|
|
1316
1316
|
return K;
|
|
1317
|
-
const
|
|
1318
|
-
return Math.abs(K -
|
|
1317
|
+
const ne = Number.isFinite($) ? $ : P, ce = Math.abs(U - ne);
|
|
1318
|
+
return Math.abs(K - ne) > ce ? K : U;
|
|
1319
1319
|
}, Number.NaN) : Number.NaN, z = W, O = M, ue = e ? Number.isFinite($) && Number.isFinite(C) && C < $ ? "left" : "right" : "center";
|
|
1320
1320
|
io(
|
|
1321
|
-
|
|
1321
|
+
v,
|
|
1322
1322
|
i,
|
|
1323
1323
|
a,
|
|
1324
1324
|
z,
|
|
@@ -1326,7 +1326,7 @@ function yl(e, t) {
|
|
|
1326
1326
|
e,
|
|
1327
1327
|
ue,
|
|
1328
1328
|
!0
|
|
1329
|
-
),
|
|
1329
|
+
), v.dataset.caretX = String(z), v.dataset.caretY = String(O), v.dataset.anchorDirection = ue, v.style.opacity = "1";
|
|
1330
1330
|
};
|
|
1331
1331
|
}
|
|
1332
1332
|
function no(e = !1, t) {
|
|
@@ -1352,39 +1352,39 @@ function bl() {
|
|
|
1352
1352
|
const e = oo(), t = "report.widget.legend.comparison";
|
|
1353
1353
|
return `(${zo(xn[e] ?? xn[$o], t) ?? zo(xn[$o], t) ?? "Comparison"})`;
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1355
|
+
function ha(e) {
|
|
1356
1356
|
function o(d, b, w) {
|
|
1357
1357
|
if (d.measureText(b).width <= w) return b;
|
|
1358
|
-
const
|
|
1358
|
+
const g = "…";
|
|
1359
1359
|
let I = 0, P = b.length;
|
|
1360
1360
|
for (; I < P; ) {
|
|
1361
|
-
const W = Math.floor((I + P) / 2), M = b.slice(0, W) +
|
|
1361
|
+
const W = Math.floor((I + P) / 2), M = b.slice(0, W) + g;
|
|
1362
1362
|
d.measureText(M).width <= w ? I = W + 1 : P = W;
|
|
1363
1363
|
}
|
|
1364
|
-
return b.slice(0, I - 1) +
|
|
1364
|
+
return b.slice(0, I - 1) + g;
|
|
1365
1365
|
}
|
|
1366
1366
|
function r(d, b) {
|
|
1367
1367
|
const w = d == null ? void 0 : d.ctx;
|
|
1368
1368
|
if (!w || !(d.width > 0)) return !1;
|
|
1369
1369
|
w.save(), w.font = ir(d.options.ticks.font).string;
|
|
1370
|
-
const
|
|
1371
|
-
return w.restore(),
|
|
1370
|
+
const g = b.reduce((I, P) => Math.max(I, w.measureText(P).width), 0);
|
|
1371
|
+
return w.restore(), g + 8 <= d.width / b.length;
|
|
1372
1372
|
}
|
|
1373
1373
|
function i(d) {
|
|
1374
1374
|
const b = d == null ? "" : String(d), [w] = b.split("#");
|
|
1375
1375
|
return (w ?? b).trim();
|
|
1376
1376
|
}
|
|
1377
1377
|
function a(d, b) {
|
|
1378
|
-
const w = i(d),
|
|
1379
|
-
return
|
|
1378
|
+
const w = i(d), g = Lo(w);
|
|
1379
|
+
return g.length > 0 ? Et(g, b) : w;
|
|
1380
1380
|
}
|
|
1381
1381
|
function u(d, b) {
|
|
1382
1382
|
const w = d == null ? "" : String(d).trim();
|
|
1383
1383
|
if (w.length === 0) return w;
|
|
1384
|
-
const
|
|
1385
|
-
return w.endsWith(` ${
|
|
1384
|
+
const g = bl();
|
|
1385
|
+
return w.endsWith(` ${g}`) || w.endsWith(g) ? w : (b == null ? void 0 : b.dash) === !0 || (b == null ? void 0 : b.isCompare) === !0 ? `${w} ${g}` : w;
|
|
1386
1386
|
}
|
|
1387
|
-
const
|
|
1387
|
+
const v = c(() => ({
|
|
1388
1388
|
display: e.showLabel,
|
|
1389
1389
|
align: e.labelAlign,
|
|
1390
1390
|
anchor: e.labelAnchor,
|
|
@@ -1398,7 +1398,7 @@ function va(e) {
|
|
|
1398
1398
|
return b.borderColor ? Array.isArray(b.borderColor) ? b.borderColor[d.dataIndex] : b.borderColor : b.backgroundColor ? Array.isArray(b.backgroundColor) ? b.backgroundColor[d.dataIndex] : b.backgroundColor : "#000";
|
|
1399
1399
|
},
|
|
1400
1400
|
formatter: (d) => Et(Lo(d), e.valueCurrency)
|
|
1401
|
-
})),
|
|
1401
|
+
})), h = c(() => ({
|
|
1402
1402
|
display: e.showX,
|
|
1403
1403
|
position: e.xPosition,
|
|
1404
1404
|
grid: {
|
|
@@ -1410,11 +1410,11 @@ function va(e) {
|
|
|
1410
1410
|
callback: function(d) {
|
|
1411
1411
|
if ((e == null ? void 0 : e.isTransposed) === !0) return a(d, e.valueCurrency);
|
|
1412
1412
|
let w = String(d);
|
|
1413
|
-
const
|
|
1414
|
-
if (
|
|
1413
|
+
const g = this;
|
|
1414
|
+
if (g && typeof g.getLabelForValue == "function" && (w = g.getLabelForValue(d)), g != null && g.type && g.type !== "category")
|
|
1415
1415
|
return a(w);
|
|
1416
1416
|
w = i(w);
|
|
1417
|
-
const I =
|
|
1417
|
+
const I = g == null ? void 0 : g.chart, P = g == null ? void 0 : g.ctx, W = I.height * 0.25;
|
|
1418
1418
|
if (P && W > 0) {
|
|
1419
1419
|
P.save();
|
|
1420
1420
|
const S = P.measureText(w).width > W ? o(P, w, W) : w;
|
|
@@ -1436,8 +1436,8 @@ function va(e) {
|
|
|
1436
1436
|
afterBuildTicks: (d) => {
|
|
1437
1437
|
const b = Array.isArray(d == null ? void 0 : d.ticks) ? d.ticks : [];
|
|
1438
1438
|
if (b.length === 0) return;
|
|
1439
|
-
const w = b.map((I) => i(d.getLabelForValue(I.value))),
|
|
1440
|
-
d.options.ticks.minRotation =
|
|
1439
|
+
const w = b.map((I) => i(d.getLabelForValue(I.value))), g = !isNaN(Number(w[0]));
|
|
1440
|
+
d.options.ticks.minRotation = g || b.length < 10 || r(d, w) ? 0 : 90;
|
|
1441
1441
|
},
|
|
1442
1442
|
afterFit: (d) => {
|
|
1443
1443
|
if (!(e != null && e.isTransposed)) {
|
|
@@ -1460,11 +1460,11 @@ function va(e) {
|
|
|
1460
1460
|
callback: function(d) {
|
|
1461
1461
|
if (!((e == null ? void 0 : e.isTransposed) === !0)) return a(d, e.valueCurrency);
|
|
1462
1462
|
let w = String(d);
|
|
1463
|
-
const
|
|
1464
|
-
if (
|
|
1463
|
+
const g = this;
|
|
1464
|
+
if (g && typeof g.getLabelForValue == "function" && (w = g.getLabelForValue(d)), g != null && g.type && g.type !== "category")
|
|
1465
1465
|
return a(w);
|
|
1466
1466
|
w = i(w);
|
|
1467
|
-
const I =
|
|
1467
|
+
const I = g == null ? void 0 : g.chart, P = g == null ? void 0 : g.ctx, W = I.width * 0.4;
|
|
1468
1468
|
if (P && W > 0) {
|
|
1469
1469
|
P.save();
|
|
1470
1470
|
const S = P.measureText(w).width > W ? o(P, w, W) : w;
|
|
@@ -1492,8 +1492,8 @@ function va(e) {
|
|
|
1492
1492
|
size: e.legendFontSize
|
|
1493
1493
|
},
|
|
1494
1494
|
generateLabels: (d) => {
|
|
1495
|
-
var
|
|
1496
|
-
const b = e.legendColor ?? "#6b6b6b", w = ((
|
|
1495
|
+
var g;
|
|
1496
|
+
const b = e.legendColor ?? "#6b6b6b", w = ((g = d == null ? void 0 : d.data) == null ? void 0 : g.datasets) || [];
|
|
1497
1497
|
if (w.length === 0) return [];
|
|
1498
1498
|
if (w.length === 1 && Array.isArray(w[0].backgroundColor) && w[0].backgroundColor.length > 1 && Array.isArray(w[0].data)) {
|
|
1499
1499
|
const I = w[0];
|
|
@@ -1526,7 +1526,7 @@ function va(e) {
|
|
|
1526
1526
|
}
|
|
1527
1527
|
}
|
|
1528
1528
|
})), H = c(() => e.isTransposed);
|
|
1529
|
-
return { datalabels:
|
|
1529
|
+
return { datalabels: v, xCfg: h, yCfg: x, isTransposed: H, legend: Y };
|
|
1530
1530
|
}
|
|
1531
1531
|
const Cl = {
|
|
1532
1532
|
key: 0,
|
|
@@ -1545,7 +1545,7 @@ const Cl = {
|
|
|
1545
1545
|
},
|
|
1546
1546
|
emits: ["update:modelValue", "value-hover", "value-leave"],
|
|
1547
1547
|
setup(e, { emit: t }) {
|
|
1548
|
-
const n = e, o = t, { t: r } = kt(), i = k(null), a = k(Ho), u = k(!1),
|
|
1548
|
+
const n = e, o = t, { t: r } = kt(), i = k(null), a = k(Ho), u = k(!1), v = k({}), h = c({
|
|
1549
1549
|
get: () => n.modelValue,
|
|
1550
1550
|
set: (T) => o("update:modelValue", T)
|
|
1551
1551
|
}), x = c(() => {
|
|
@@ -1553,7 +1553,7 @@ const Cl = {
|
|
|
1553
1553
|
return (((T = n.detailsPayload) == null ? void 0 : T.sections) ?? []).filter((q) => q.values.length > 0);
|
|
1554
1554
|
}), Y = c(
|
|
1555
1555
|
() => x.value.map((T, q) => {
|
|
1556
|
-
const U = I(T.title, q), X = Math.min(
|
|
1556
|
+
const U = I(T.title, q), X = Math.min(v.value[U] ?? bn, T.values.length);
|
|
1557
1557
|
return {
|
|
1558
1558
|
...T,
|
|
1559
1559
|
key: U,
|
|
@@ -1576,26 +1576,26 @@ const Cl = {
|
|
|
1576
1576
|
function w(T) {
|
|
1577
1577
|
o("value-hover", T);
|
|
1578
1578
|
}
|
|
1579
|
-
function
|
|
1579
|
+
function g() {
|
|
1580
1580
|
o("value-leave");
|
|
1581
1581
|
}
|
|
1582
1582
|
function I(T, q) {
|
|
1583
1583
|
return `${T || "section"}-${q}`;
|
|
1584
1584
|
}
|
|
1585
1585
|
function P() {
|
|
1586
|
-
|
|
1586
|
+
v.value = x.value.reduce(
|
|
1587
1587
|
(T, q, U) => (T[I(q.title, U)] = bn, T),
|
|
1588
1588
|
{}
|
|
1589
1589
|
);
|
|
1590
1590
|
}
|
|
1591
1591
|
function W(T) {
|
|
1592
|
-
|
|
1593
|
-
...
|
|
1594
|
-
[T]: (
|
|
1592
|
+
v.value = {
|
|
1593
|
+
...v.value,
|
|
1594
|
+
[T]: (v.value[T] ?? bn) + bn
|
|
1595
1595
|
};
|
|
1596
1596
|
}
|
|
1597
1597
|
function M() {
|
|
1598
|
-
|
|
1598
|
+
g(), h.value = !1;
|
|
1599
1599
|
}
|
|
1600
1600
|
function S() {
|
|
1601
1601
|
return typeof window > "u" ? Ho : Math.floor(window.innerWidth * 0.94);
|
|
@@ -1614,14 +1614,14 @@ const Cl = {
|
|
|
1614
1614
|
u.value && $(T.clientX);
|
|
1615
1615
|
}
|
|
1616
1616
|
function O(T) {
|
|
1617
|
-
|
|
1617
|
+
h.value && (u.value = !0, $(T.clientX), document.addEventListener("pointermove", z), document.addEventListener("pointerup", C), document.addEventListener("pointercancel", C));
|
|
1618
1618
|
}
|
|
1619
1619
|
function ue() {
|
|
1620
1620
|
a.value = D(a.value);
|
|
1621
1621
|
}
|
|
1622
1622
|
function R(T) {
|
|
1623
1623
|
var X;
|
|
1624
|
-
if (!
|
|
1624
|
+
if (!h.value)
|
|
1625
1625
|
return;
|
|
1626
1626
|
const q = T.target;
|
|
1627
1627
|
if (!(q instanceof Node))
|
|
@@ -1630,10 +1630,10 @@ const Cl = {
|
|
|
1630
1630
|
U != null && U.closest('[data-tooltip-full-details="true"]') || (X = i.value) != null && X.contains(q) || M();
|
|
1631
1631
|
}
|
|
1632
1632
|
function A(T) {
|
|
1633
|
-
|
|
1633
|
+
h.value && T.key === "Escape" && M();
|
|
1634
1634
|
}
|
|
1635
|
-
return Le([x,
|
|
1636
|
-
|
|
1635
|
+
return Le([x, h], () => {
|
|
1636
|
+
h.value && P();
|
|
1637
1637
|
}), Gt(() => {
|
|
1638
1638
|
a.value = D(a.value), P(), document.addEventListener("pointerdown", R, !0), document.addEventListener("keydown", A), window.addEventListener("resize", ue);
|
|
1639
1639
|
}), Eo(() => {
|
|
@@ -1649,7 +1649,7 @@ const Cl = {
|
|
|
1649
1649
|
"leave-to-class": "translate-x-full opacity-0"
|
|
1650
1650
|
}, {
|
|
1651
1651
|
default: Re(() => [
|
|
1652
|
-
|
|
1652
|
+
h.value ? (j(), me("div", Cl, [
|
|
1653
1653
|
Q("div", {
|
|
1654
1654
|
ref_key: "panelRef",
|
|
1655
1655
|
ref: i,
|
|
@@ -1677,21 +1677,21 @@ const Cl = {
|
|
|
1677
1677
|
]),
|
|
1678
1678
|
Q("div", {
|
|
1679
1679
|
class: "flex flex-1 flex-col gap-4 overflow-y-auto px-4 py-4 sm:px-5",
|
|
1680
|
-
onMouseleave:
|
|
1680
|
+
onMouseleave: g
|
|
1681
1681
|
}, [
|
|
1682
|
-
(j(!0),
|
|
1682
|
+
(j(!0), me(Ye, null, St(Y.value, (X, B) => (j(), me("div", {
|
|
1683
1683
|
key: X.key,
|
|
1684
1684
|
class: "flex flex-col gap-2 rounded-2xl bg-fm-color-neutral-white/45 py-3"
|
|
1685
1685
|
}, [
|
|
1686
|
-
X.title ? (j(),
|
|
1687
|
-
(j(!0),
|
|
1688
|
-
key: `${K.text}-${
|
|
1686
|
+
X.title ? (j(), me("p", kl, Me(X.title), 1)) : we("", !0),
|
|
1687
|
+
(j(!0), me(Ye, null, St(X.visibleValues, (K, ne) => (j(), me("button", {
|
|
1688
|
+
key: `${K.text}-${ne}`,
|
|
1689
1689
|
type: "button",
|
|
1690
1690
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary flex w-full items-start justify-between gap-3 bg-transparent px-2 py-1.5 text-left transition-colors hover:bg-fm-color-opacity-sm focus-visible:bg-fm-color-opacity-sm focus-visible:outline-none",
|
|
1691
1691
|
onMouseenter: (ce) => w(K),
|
|
1692
1692
|
onFocus: (ce) => w(K),
|
|
1693
|
-
onMouseleave:
|
|
1694
|
-
onBlur:
|
|
1693
|
+
onMouseleave: g,
|
|
1694
|
+
onBlur: g
|
|
1695
1695
|
}, [
|
|
1696
1696
|
Q("span", Ll, [
|
|
1697
1697
|
Q("span", {
|
|
@@ -1705,7 +1705,7 @@ const Cl = {
|
|
|
1705
1705
|
]),
|
|
1706
1706
|
Q("span", Il, Me(d(K)), 1)
|
|
1707
1707
|
], 40, Tl))), 128)),
|
|
1708
|
-
X.hasMore ? (j(),
|
|
1708
|
+
X.hasMore ? (j(), me("div", Pl, [
|
|
1709
1709
|
Ce(U, {
|
|
1710
1710
|
class: "w-full",
|
|
1711
1711
|
variant: "tertiary",
|
|
@@ -1750,36 +1750,36 @@ const Cl = {
|
|
|
1750
1750
|
},
|
|
1751
1751
|
emits: ["toggleDatasetVisibility", "toggleDataPointVisibility"],
|
|
1752
1752
|
setup(e, { emit: t }) {
|
|
1753
|
-
const n = e, o = t, { t: r, locale: i } = kt(), a = k([]), u = k(0),
|
|
1753
|
+
const n = e, o = t, { t: r, locale: i } = kt(), a = k([]), u = k(0), v = k(!1), h = k(!1), x = k(0), Y = k(null), H = k(null), d = k(null), b = k(null), w = k(!1), g = k(0), I = k(0), P = k(!1), W = k(0), M = k(0), S = c(() => n.enabled !== !1), D = c(() => n.position === "left" || n.position === "right");
|
|
1754
1754
|
let $ = null;
|
|
1755
1755
|
const C = c(
|
|
1756
|
-
() =>
|
|
1756
|
+
() => v.value && h.value && w.value
|
|
1757
1757
|
), z = c(() => ({
|
|
1758
|
-
height: `${Math.max(0,
|
|
1758
|
+
height: `${Math.max(0, g.value)}px`,
|
|
1759
1759
|
transform: `translateY(${Math.max(0, I.value)}px)`
|
|
1760
1760
|
})), O = c(() => typeof n.textColor == "string" && n.textColor.trim().length > 0 ? n.textColor : "#6b6b6b"), ue = c(() => typeof n.fontSize == "number" && Number.isFinite(n.fontSize) && n.fontSize > 0 ? n.fontSize : 12);
|
|
1761
1761
|
function R(s) {
|
|
1762
1762
|
A({ height: s, width: 0 });
|
|
1763
1763
|
}
|
|
1764
|
-
function A({ height: s, width:
|
|
1764
|
+
function A({ height: s, width: p }) {
|
|
1765
1765
|
var N;
|
|
1766
|
-
const
|
|
1767
|
-
if (!(
|
|
1766
|
+
const m = (N = n.chartRef) == null ? void 0 : N.$el;
|
|
1767
|
+
if (!(m instanceof HTMLElement))
|
|
1768
1768
|
return;
|
|
1769
|
-
const y = `${Math.max(0, Math.floor(s))}px`, V = `${Math.max(0, Math.floor(
|
|
1770
|
-
|
|
1769
|
+
const y = `${Math.max(0, Math.floor(s))}px`, V = `${Math.max(0, Math.floor(p))}px`;
|
|
1770
|
+
m.style.getPropertyValue("--legend-panel-height") !== y && m.style.setProperty("--legend-panel-height", y), m.style.getPropertyValue("--legend-panel-width") !== V && m.style.setProperty("--legend-panel-width", V);
|
|
1771
1771
|
}
|
|
1772
1772
|
function T() {
|
|
1773
1773
|
$ != null && (window.clearTimeout($), $ = null);
|
|
1774
1774
|
}
|
|
1775
1775
|
function q() {
|
|
1776
|
-
const s =
|
|
1776
|
+
const s = ma(
|
|
1777
1777
|
n.chartRef
|
|
1778
1778
|
);
|
|
1779
1779
|
if (s)
|
|
1780
1780
|
return s;
|
|
1781
|
-
const
|
|
1782
|
-
for (const y of
|
|
1781
|
+
const p = Y.value, m = [p == null ? void 0 : p.parentElement, p == null ? void 0 : p.closest(".h-full"), p];
|
|
1782
|
+
for (const y of m) {
|
|
1783
1783
|
if (!(y instanceof HTMLElement))
|
|
1784
1784
|
continue;
|
|
1785
1785
|
const V = y.querySelector("canvas");
|
|
@@ -1796,11 +1796,11 @@ const Cl = {
|
|
|
1796
1796
|
}
|
|
1797
1797
|
function X() {
|
|
1798
1798
|
var y;
|
|
1799
|
-
const s = (y = Y.value) == null ? void 0 : y.getBoundingClientRect(),
|
|
1800
|
-
if (Number.isFinite(
|
|
1799
|
+
const s = (y = Y.value) == null ? void 0 : y.getBoundingClientRect(), p = Number((s == null ? void 0 : s.height) ?? 0), m = Number((s == null ? void 0 : s.width) ?? 0);
|
|
1800
|
+
if (Number.isFinite(p) && p >= 0) {
|
|
1801
1801
|
A({
|
|
1802
|
-
height: D.value ? 0 :
|
|
1803
|
-
width: D.value && Number.isFinite(
|
|
1802
|
+
height: D.value ? 0 : p,
|
|
1803
|
+
width: D.value && Number.isFinite(m) && m >= 0 ? m : 0
|
|
1804
1804
|
});
|
|
1805
1805
|
return;
|
|
1806
1806
|
}
|
|
@@ -1809,81 +1809,81 @@ const Cl = {
|
|
|
1809
1809
|
function B() {
|
|
1810
1810
|
const s = d.value;
|
|
1811
1811
|
if (!s) {
|
|
1812
|
-
w.value = !1,
|
|
1812
|
+
w.value = !1, g.value = 0, I.value = 0;
|
|
1813
1813
|
return;
|
|
1814
1814
|
}
|
|
1815
|
-
const
|
|
1816
|
-
if (w.value = V, !V ||
|
|
1817
|
-
|
|
1815
|
+
const p = s.clientHeight, m = s.scrollHeight, y = s.scrollTop, V = m > p + 1;
|
|
1816
|
+
if (w.value = V, !V || p <= 0) {
|
|
1817
|
+
g.value = 0, I.value = 0;
|
|
1818
1818
|
return;
|
|
1819
1819
|
}
|
|
1820
|
-
const N =
|
|
1821
|
-
|
|
1820
|
+
const N = p, te = Math.max(18, Math.round(p / m * N)), se = Math.max(0, N - te), E = Math.max(1, m - p), he = Math.round(y / E * se);
|
|
1821
|
+
g.value = te, I.value = he;
|
|
1822
1822
|
}
|
|
1823
1823
|
function K() {
|
|
1824
1824
|
B();
|
|
1825
1825
|
}
|
|
1826
|
-
function
|
|
1827
|
-
const
|
|
1828
|
-
if (!
|
|
1826
|
+
function ne(s) {
|
|
1827
|
+
const p = d.value, m = H.value;
|
|
1828
|
+
if (!p || !m || !w.value)
|
|
1829
1829
|
return;
|
|
1830
|
-
const y =
|
|
1831
|
-
|
|
1830
|
+
const y = m.getBoundingClientRect(), V = s.clientY - y.top, N = Math.max(0, V - g.value / 2), te = Math.max(1, p.clientHeight - g.value), se = Math.min(1, N / te), E = Math.max(0, p.scrollHeight - p.clientHeight);
|
|
1831
|
+
p.scrollTop = se * E, B();
|
|
1832
1832
|
}
|
|
1833
1833
|
function ce(s) {
|
|
1834
1834
|
w.value && (P.value = !0, W.value = s.clientY, M.value = I.value);
|
|
1835
1835
|
}
|
|
1836
|
-
function
|
|
1836
|
+
function pe(s) {
|
|
1837
1837
|
if (!P.value)
|
|
1838
1838
|
return;
|
|
1839
|
-
const
|
|
1840
|
-
if (!
|
|
1839
|
+
const p = d.value;
|
|
1840
|
+
if (!p)
|
|
1841
1841
|
return;
|
|
1842
|
-
const
|
|
1843
|
-
|
|
1842
|
+
const m = s.clientY - W.value, y = Math.max(1, p.clientHeight - g.value), N = Math.min(y, Math.max(0, M.value + m)) / y, te = Math.max(0, p.scrollHeight - p.clientHeight);
|
|
1843
|
+
p.scrollTop = N * te, B();
|
|
1844
1844
|
}
|
|
1845
1845
|
function G() {
|
|
1846
1846
|
P.value && (P.value = !1);
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1849
|
-
var
|
|
1850
|
-
const s = [(
|
|
1851
|
-
for (const
|
|
1852
|
-
if (!(
|
|
1848
|
+
function oe() {
|
|
1849
|
+
var p;
|
|
1850
|
+
const s = [(p = n.chartRef) == null ? void 0 : p.$el, Y.value];
|
|
1851
|
+
for (const m of s) {
|
|
1852
|
+
if (!(m instanceof HTMLElement))
|
|
1853
1853
|
continue;
|
|
1854
|
-
const y =
|
|
1854
|
+
const y = m.closest('[class*="fm-card"]');
|
|
1855
1855
|
if (y)
|
|
1856
1856
|
return y;
|
|
1857
1857
|
}
|
|
1858
|
-
for (const
|
|
1859
|
-
if (!(
|
|
1858
|
+
for (const m of s) {
|
|
1859
|
+
if (!(m instanceof HTMLElement))
|
|
1860
1860
|
continue;
|
|
1861
|
-
const y =
|
|
1861
|
+
const y = m.closest(".h-full") ?? m.parentElement;
|
|
1862
1862
|
if (y)
|
|
1863
1863
|
return y;
|
|
1864
1864
|
}
|
|
1865
1865
|
return null;
|
|
1866
1866
|
}
|
|
1867
1867
|
function re() {
|
|
1868
|
-
var
|
|
1869
|
-
const s = (y = (
|
|
1868
|
+
var m, y, V, N;
|
|
1869
|
+
const s = (y = (m = Y.value) == null ? void 0 : m.closest(".chart-layout")) == null ? void 0 : y.parentElement;
|
|
1870
1870
|
if (s instanceof HTMLElement)
|
|
1871
1871
|
return s;
|
|
1872
|
-
const
|
|
1873
|
-
if (
|
|
1874
|
-
const te = (N =
|
|
1872
|
+
const p = (V = n.chartRef) == null ? void 0 : V.$el;
|
|
1873
|
+
if (p instanceof HTMLElement) {
|
|
1874
|
+
const te = (N = p.closest(".chart-layout")) == null ? void 0 : N.parentElement;
|
|
1875
1875
|
if (te instanceof HTMLElement)
|
|
1876
1876
|
return te;
|
|
1877
1877
|
}
|
|
1878
1878
|
return null;
|
|
1879
1879
|
}
|
|
1880
|
-
function
|
|
1881
|
-
var
|
|
1882
|
-
const s = ((
|
|
1880
|
+
function ge() {
|
|
1881
|
+
var m, y, V, N;
|
|
1882
|
+
const s = ((m = Y.value) == null ? void 0 : m.closest(".chart-layout")) ?? ((N = (V = (y = n.chartRef) == null ? void 0 : y.$el) == null ? void 0 : V.closest) == null ? void 0 : N.call(V, ".chart-layout")) ?? null;
|
|
1883
1883
|
if (!(s instanceof HTMLElement))
|
|
1884
1884
|
return null;
|
|
1885
|
-
const
|
|
1886
|
-
return Number.isFinite(
|
|
1885
|
+
const p = Number(s.getBoundingClientRect().width);
|
|
1886
|
+
return Number.isFinite(p) && p > 0 ? p : null;
|
|
1887
1887
|
}
|
|
1888
1888
|
function _() {
|
|
1889
1889
|
const s = re();
|
|
@@ -1892,10 +1892,10 @@ const Cl = {
|
|
|
1892
1892
|
if (Number.isFinite(te) && te > 0)
|
|
1893
1893
|
return te;
|
|
1894
1894
|
}
|
|
1895
|
-
const
|
|
1896
|
-
if (!
|
|
1895
|
+
const p = oe();
|
|
1896
|
+
if (!p)
|
|
1897
1897
|
return null;
|
|
1898
|
-
const
|
|
1898
|
+
const m = window.getComputedStyle(p), y = parseFloat(m.paddingTop) || 0, V = parseFloat(m.paddingBottom) || 0, N = p.getBoundingClientRect().height - y - V;
|
|
1899
1899
|
return Number.isFinite(N) && N > 0 ? N : null;
|
|
1900
1900
|
}
|
|
1901
1901
|
function L() {
|
|
@@ -1905,21 +1905,21 @@ const Cl = {
|
|
|
1905
1905
|
if (Number.isFinite(te) && te > 0)
|
|
1906
1906
|
return te;
|
|
1907
1907
|
}
|
|
1908
|
-
const
|
|
1909
|
-
if (!
|
|
1908
|
+
const p = oe();
|
|
1909
|
+
if (!p)
|
|
1910
1910
|
return null;
|
|
1911
|
-
const
|
|
1911
|
+
const m = window.getComputedStyle(p), y = parseFloat(m.paddingLeft) || 0, V = parseFloat(m.paddingRight) || 0, N = p.getBoundingClientRect().width - y - V;
|
|
1912
1912
|
return Number.isFinite(N) && N > 0 ? N : null;
|
|
1913
1913
|
}
|
|
1914
1914
|
function F() {
|
|
1915
|
-
const s = q(),
|
|
1915
|
+
const s = q(), p = Number(s == null ? void 0 : s.height), m = _();
|
|
1916
1916
|
if (D.value)
|
|
1917
|
-
return Number.isFinite(
|
|
1918
|
-
if (
|
|
1919
|
-
const y =
|
|
1917
|
+
return Number.isFinite(p) && p > 0 ? Math.max(0, Math.floor(p - Oo)) : m != null ? Math.max(0, Math.floor(m - Oo)) : 120;
|
|
1918
|
+
if (m != null) {
|
|
1919
|
+
const y = m * 0.3, V = m - Nl, N = Math.min(y, V);
|
|
1920
1920
|
return Math.max(0, Math.floor(N));
|
|
1921
1921
|
}
|
|
1922
|
-
return Number.isFinite(
|
|
1922
|
+
return Number.isFinite(p) && p > 0 ? Math.max(0, Math.floor(p * 0.3)) : 120;
|
|
1923
1923
|
}
|
|
1924
1924
|
function le() {
|
|
1925
1925
|
var N;
|
|
@@ -1930,40 +1930,40 @@ const Cl = {
|
|
|
1930
1930
|
const se = q(), E = Number(se == null ? void 0 : se.width);
|
|
1931
1931
|
return Number.isFinite(E) && E > 0 ? Math.max(0, Math.floor(E * 0.3)) : 180;
|
|
1932
1932
|
}
|
|
1933
|
-
const s =
|
|
1933
|
+
const s = ge();
|
|
1934
1934
|
if (s != null)
|
|
1935
1935
|
return Math.max(0, Math.floor(s * 0.3));
|
|
1936
|
-
const
|
|
1937
|
-
if (Number.isFinite(
|
|
1938
|
-
const te =
|
|
1936
|
+
const p = q(), m = Number(p == null ? void 0 : p.width), y = Number(((N = Y.value) == null ? void 0 : N.getBoundingClientRect().width) ?? 0);
|
|
1937
|
+
if (Number.isFinite(m) && m > 0) {
|
|
1938
|
+
const te = m + (Number.isFinite(y) ? y : 0);
|
|
1939
1939
|
return Math.max(0, Math.floor(te * 0.3));
|
|
1940
1940
|
}
|
|
1941
1941
|
const V = L();
|
|
1942
1942
|
return V != null ? Math.max(0, Math.floor(V * 0.3)) : 180;
|
|
1943
1943
|
}
|
|
1944
|
-
function de(s,
|
|
1945
|
-
const
|
|
1946
|
-
if (
|
|
1947
|
-
const N = typeof s.datasetIndex == "number" ? s.datasetIndex :
|
|
1948
|
-
if (
|
|
1944
|
+
function de(s, p) {
|
|
1945
|
+
const m = n.chartColorBinding;
|
|
1946
|
+
if (m) {
|
|
1947
|
+
const N = typeof s.datasetIndex == "number" ? s.datasetIndex : p, te = Number.isInteger(n.metricCount) && Number(n.metricCount) > 0 ? Number(n.metricCount) : Math.max(1, Number(a.value.length));
|
|
1948
|
+
if (m === Be.breakdown) {
|
|
1949
1949
|
const E = Vt({
|
|
1950
1950
|
fallbackIndex: N,
|
|
1951
1951
|
metricCount: te
|
|
1952
|
-
}),
|
|
1952
|
+
}), he = Oe({
|
|
1953
1953
|
datasetIndex: N,
|
|
1954
1954
|
metricCount: te,
|
|
1955
1955
|
mode: Be.metric
|
|
1956
1956
|
});
|
|
1957
1957
|
return zt({
|
|
1958
1958
|
breakdownIndex: E,
|
|
1959
|
-
metricIndex:
|
|
1959
|
+
metricIndex: he,
|
|
1960
1960
|
metricCount: te,
|
|
1961
1961
|
breakdownColors: n.chartBreakdownColors,
|
|
1962
1962
|
useSecondaryMetricShades: n.chartUseSecondaryMetricShades,
|
|
1963
1963
|
customColors: n.chartColors
|
|
1964
1964
|
});
|
|
1965
1965
|
}
|
|
1966
|
-
if (
|
|
1966
|
+
if (m === Be.metric) {
|
|
1967
1967
|
const E = Oe({
|
|
1968
1968
|
datasetIndex: N,
|
|
1969
1969
|
metricCount: te,
|
|
@@ -1978,7 +1978,7 @@ const Cl = {
|
|
|
1978
1978
|
return ee(s.fillStyle) || ee(s.strokeStyle) || ee(y.color) || "#9ca3af";
|
|
1979
1979
|
}
|
|
1980
1980
|
function ee(s) {
|
|
1981
|
-
return typeof s == "string" && s.trim().length > 0 ? s : Array.isArray(s) ? s.map((
|
|
1981
|
+
return typeof s == "string" && s.trim().length > 0 ? s : Array.isArray(s) ? s.map((m) => ee(m)).find((m) => typeof m == "string" && m.trim().length > 0) ?? "" : "";
|
|
1982
1982
|
}
|
|
1983
1983
|
function Ne(s) {
|
|
1984
1984
|
return Array.isArray(n.hiddenDataPointIndexes) ? n.hiddenDataPointIndexes.includes(s) : !1;
|
|
@@ -1989,11 +1989,11 @@ const Cl = {
|
|
|
1989
1989
|
function Te(s) {
|
|
1990
1990
|
if (s.length <= 1)
|
|
1991
1991
|
return s;
|
|
1992
|
-
const
|
|
1992
|
+
const p = Number.isInteger(n.metricCount) && Number(n.metricCount) > 0 ? Number(n.metricCount) : 1;
|
|
1993
1993
|
return [...s.map((y, V) => {
|
|
1994
1994
|
const N = typeof y.datasetIndex == "number" ? y.datasetIndex : V, te = Vt({
|
|
1995
1995
|
fallbackIndex: N,
|
|
1996
|
-
metricCount:
|
|
1996
|
+
metricCount: p
|
|
1997
1997
|
});
|
|
1998
1998
|
return {
|
|
1999
1999
|
item: y,
|
|
@@ -2005,23 +2005,23 @@ const Cl = {
|
|
|
2005
2005
|
function Ze(s) {
|
|
2006
2006
|
if (s.length <= 1)
|
|
2007
2007
|
return s;
|
|
2008
|
-
const
|
|
2008
|
+
const p = /* @__PURE__ */ new Map(), m = [];
|
|
2009
2009
|
for (const y of s) {
|
|
2010
2010
|
const V = typeof y.index == "number", N = y.datasetIndex, te = typeof N == "number" && !V, se = typeof y.text == "string" ? y.text.trim() : "";
|
|
2011
2011
|
if (!te || !se) {
|
|
2012
|
-
|
|
2012
|
+
m.push(y);
|
|
2013
2013
|
continue;
|
|
2014
2014
|
}
|
|
2015
|
-
const E = se.toLowerCase(),
|
|
2016
|
-
if (
|
|
2017
|
-
|
|
2015
|
+
const E = se.toLowerCase(), he = p.get(E);
|
|
2016
|
+
if (he == null) {
|
|
2017
|
+
m.push({
|
|
2018
2018
|
...y,
|
|
2019
2019
|
datasetIndexes: [N],
|
|
2020
2020
|
datasetKeys: typeof y.datasetKey == "string" && y.datasetKey.trim().length > 0 ? [y.datasetKey] : []
|
|
2021
|
-
}),
|
|
2021
|
+
}), p.set(E, m.length - 1);
|
|
2022
2022
|
continue;
|
|
2023
2023
|
}
|
|
2024
|
-
const _e =
|
|
2024
|
+
const _e = m[he];
|
|
2025
2025
|
if (!_e)
|
|
2026
2026
|
continue;
|
|
2027
2027
|
const Se = new Set(
|
|
@@ -2031,35 +2031,35 @@ const Cl = {
|
|
|
2031
2031
|
const ae = new Set(
|
|
2032
2032
|
Array.isArray(_e.datasetKeys) ? _e.datasetKeys : typeof _e.datasetKey == "string" && _e.datasetKey.trim().length > 0 ? [_e.datasetKey] : []
|
|
2033
2033
|
);
|
|
2034
|
-
typeof y.datasetKey == "string" && y.datasetKey.trim().length > 0 && ae.add(y.datasetKey),
|
|
2034
|
+
typeof y.datasetKey == "string" && y.datasetKey.trim().length > 0 && ae.add(y.datasetKey), m[he] = {
|
|
2035
2035
|
..._e,
|
|
2036
2036
|
datasetIndexes: Array.from(Se).sort((fe, ke) => fe - ke),
|
|
2037
2037
|
datasetKeys: Array.from(ae),
|
|
2038
2038
|
hidden: _e.hidden === !0 && y.hidden === !0
|
|
2039
2039
|
};
|
|
2040
2040
|
}
|
|
2041
|
-
return
|
|
2041
|
+
return m;
|
|
2042
2042
|
}
|
|
2043
2043
|
function ft(s) {
|
|
2044
|
-
var E,
|
|
2045
|
-
const
|
|
2046
|
-
if (typeof (
|
|
2044
|
+
var E, he, _e, Se, ae, fe;
|
|
2045
|
+
const p = s == null ? void 0 : s.legend;
|
|
2046
|
+
if (typeof (p == null ? void 0 : p.buildLabels) == "function")
|
|
2047
2047
|
try {
|
|
2048
|
-
|
|
2048
|
+
p.buildLabels();
|
|
2049
2049
|
} catch {
|
|
2050
2050
|
}
|
|
2051
|
-
const
|
|
2052
|
-
if (
|
|
2053
|
-
return
|
|
2054
|
-
const y = (
|
|
2051
|
+
const m = Ie(p == null ? void 0 : p.legendItems);
|
|
2052
|
+
if (m.length > 0)
|
|
2053
|
+
return m;
|
|
2054
|
+
const y = (he = (E = s == null ? void 0 : s.options) == null ? void 0 : E.plugins) == null ? void 0 : he.legend, V = y == null ? void 0 : y.labels, N = V == null ? void 0 : V.generateLabels, te = (fe = (ae = (Se = (_e = En.defaults) == null ? void 0 : _e.plugins) == null ? void 0 : Se.legend) == null ? void 0 : ae.labels) == null ? void 0 : fe.generateLabels;
|
|
2055
2055
|
let se = Ie(
|
|
2056
2056
|
typeof N == "function" ? N(s) : []
|
|
2057
2057
|
);
|
|
2058
2058
|
return se.length === 0 && typeof te == "function" && (se = Ie(te(s))), typeof (V == null ? void 0 : V.filter) == "function" && (se = se.filter((ke) => V.filter(ke, s.data))), typeof (V == null ? void 0 : V.sort) == "function" && (se = [...se].sort((ke, $e) => V.sort(ke, $e, s.data))), (y == null ? void 0 : y.reverse) === !0 && (se = [...se].reverse()), se;
|
|
2059
2059
|
}
|
|
2060
2060
|
function rt(s) {
|
|
2061
|
-
var
|
|
2062
|
-
return (Array.isArray((
|
|
2061
|
+
var m;
|
|
2062
|
+
return (Array.isArray((m = s == null ? void 0 : s.data) == null ? void 0 : m.datasets) ? s.data.datasets : []).map((y, V) => {
|
|
2063
2063
|
const N = ee((y == null ? void 0 : y.borderColor) ?? (y == null ? void 0 : y.backgroundColor)), te = Bt({
|
|
2064
2064
|
datasetIndex: V,
|
|
2065
2065
|
label: y == null ? void 0 : y.label
|
|
@@ -2075,27 +2075,27 @@ const Cl = {
|
|
|
2075
2075
|
});
|
|
2076
2076
|
}
|
|
2077
2077
|
const lt = c(() => `(${r("report.widget.legend.comparison")})`), Qe = c(
|
|
2078
|
-
() => (s,
|
|
2079
|
-
const
|
|
2080
|
-
if (
|
|
2078
|
+
() => (s, p) => {
|
|
2079
|
+
const m = s == null ? "" : String(s).trim();
|
|
2080
|
+
if (m.length === 0) return m;
|
|
2081
2081
|
const y = lt.value;
|
|
2082
|
-
return
|
|
2082
|
+
return m.endsWith(` ${y}`) || m.endsWith(y) ? m : (p == null ? void 0 : p.dash) === !0 || (p == null ? void 0 : p.isCompare) === !0 ? `${m} ${y}` : m;
|
|
2083
2083
|
}
|
|
2084
2084
|
);
|
|
2085
|
-
function st(s,
|
|
2085
|
+
function st(s, p) {
|
|
2086
2086
|
if (!Array.isArray(s) || s.length === 0)
|
|
2087
2087
|
return [];
|
|
2088
|
-
const
|
|
2089
|
-
return
|
|
2090
|
-
text: te[
|
|
2088
|
+
const m = s, y = m[0], V = Array.isArray(y == null ? void 0 : y.labels) ? y.labels : [], N = Array.isArray(p == null ? void 0 : p.metrics) ? p.metrics : [], te = V.length > 0 ? V : N, se = y == null ? void 0 : y.backgroundColor;
|
|
2089
|
+
return m.length === 1 && Array.isArray(se) && se.length > 1 ? se.map((E, he) => ({
|
|
2090
|
+
text: te[he] == null || String(te[he]).trim().length === 0 ? `Series ${he + 1}` : String(te[he]),
|
|
2091
2091
|
fillStyle: ee(E),
|
|
2092
2092
|
strokeStyle: ee(E),
|
|
2093
2093
|
datasetIndex: 0,
|
|
2094
|
-
index:
|
|
2095
|
-
hidden: Ne(
|
|
2096
|
-
})) :
|
|
2094
|
+
index: he,
|
|
2095
|
+
hidden: Ne(he)
|
|
2096
|
+
})) : m.map((E, he) => ({
|
|
2097
2097
|
datasetKey: Bt({
|
|
2098
|
-
datasetIndex:
|
|
2098
|
+
datasetIndex: he,
|
|
2099
2099
|
label: E == null ? void 0 : E.label
|
|
2100
2100
|
}),
|
|
2101
2101
|
text: Qe.value(E == null ? void 0 : E.label, E),
|
|
@@ -2105,24 +2105,24 @@ const Cl = {
|
|
|
2105
2105
|
strokeStyle: ee(
|
|
2106
2106
|
(E == null ? void 0 : E.color) ?? (E == null ? void 0 : E.borderColor) ?? (E == null ? void 0 : E.backgroundColor) ?? (E == null ? void 0 : E.pointBorderColor)
|
|
2107
2107
|
),
|
|
2108
|
-
datasetIndex:
|
|
2108
|
+
datasetIndex: he,
|
|
2109
2109
|
hidden: Array.isArray(n.hiddenDatasetKeys) ? n.hiddenDatasetKeys.includes(
|
|
2110
2110
|
Bt({
|
|
2111
|
-
datasetIndex:
|
|
2111
|
+
datasetIndex: he,
|
|
2112
2112
|
label: E == null ? void 0 : E.label
|
|
2113
2113
|
})
|
|
2114
2114
|
) : !!(E != null && E.hidden)
|
|
2115
2115
|
}));
|
|
2116
2116
|
}
|
|
2117
2117
|
function Tt() {
|
|
2118
|
-
var
|
|
2119
|
-
const s = (
|
|
2118
|
+
var p;
|
|
2119
|
+
const s = (p = n.chartRef) == null ? void 0 : p.datasets;
|
|
2120
2120
|
return Array.isArray(s) ? s : [];
|
|
2121
2121
|
}
|
|
2122
|
-
function et(s,
|
|
2123
|
-
return typeof s.datasetKey == "string" && s.datasetKey.trim().length > 0 ? `dataset-key:${s.datasetKey}` : typeof s.datasetIndex == "number" && typeof s.index == "number" ? `dataset:${s.datasetIndex}-item:${s.index}` : typeof s.datasetIndex == "number" ? `dataset:${s.datasetIndex}` : typeof s.index == "number" ? `item:${s.index}` : typeof s.text == "string" && s.text.trim().length > 0 ? `text:${s.text.trim()}` : `fallback:${
|
|
2122
|
+
function et(s, p) {
|
|
2123
|
+
return typeof s.datasetKey == "string" && s.datasetKey.trim().length > 0 ? `dataset-key:${s.datasetKey}` : typeof s.datasetIndex == "number" && typeof s.index == "number" ? `dataset:${s.datasetIndex}-item:${s.index}` : typeof s.datasetIndex == "number" ? `dataset:${s.datasetIndex}` : typeof s.index == "number" ? `item:${s.index}` : typeof s.text == "string" && s.text.trim().length > 0 ? `text:${s.text.trim()}` : `fallback:${p}`;
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2125
|
+
function gt() {
|
|
2126
2126
|
const s = b.value;
|
|
2127
2127
|
return s ? Math.ceil(s.getBoundingClientRect().width) : 0;
|
|
2128
2128
|
}
|
|
@@ -2130,12 +2130,12 @@ const Cl = {
|
|
|
2130
2130
|
const s = b.value;
|
|
2131
2131
|
return s ? Math.ceil(s.getBoundingClientRect().height) : 0;
|
|
2132
2132
|
}
|
|
2133
|
-
function ln(s,
|
|
2133
|
+
function ln(s, p) {
|
|
2134
2134
|
var Se;
|
|
2135
|
-
const
|
|
2136
|
-
if (!
|
|
2135
|
+
const m = d.value;
|
|
2136
|
+
if (!m || s.length === 0)
|
|
2137
2137
|
return 0;
|
|
2138
|
-
const y = Math.max(0,
|
|
2138
|
+
const y = Math.max(0, p - Wo), V = window.getComputedStyle(m);
|
|
2139
2139
|
if (V.flexDirection.startsWith("column")) {
|
|
2140
2140
|
const ae = Number.parseFloat(V.rowGap || V.gap || "0") || 0, fe = rn();
|
|
2141
2141
|
let ke = 0, $e = 0;
|
|
@@ -2157,15 +2157,15 @@ const Cl = {
|
|
|
2157
2157
|
return 0;
|
|
2158
2158
|
if (se.length >= s.length)
|
|
2159
2159
|
return se.length;
|
|
2160
|
-
const E =
|
|
2160
|
+
const E = gt();
|
|
2161
2161
|
if (E <= 0)
|
|
2162
2162
|
return Math.max(1, se.length - 1);
|
|
2163
|
-
const
|
|
2163
|
+
const he = Number.parseFloat(V.columnGap || V.gap || "0") || 0, _e = m.clientWidth;
|
|
2164
2164
|
for (let ae = se.length; ae > 0; ae -= 1) {
|
|
2165
2165
|
const fe = se.slice(0, ae), ke = fe[fe.length - 1];
|
|
2166
2166
|
if (!ke)
|
|
2167
2167
|
continue;
|
|
2168
|
-
if (ke.offsetLeft + ke.offsetWidth +
|
|
2168
|
+
if (ke.offsetLeft + ke.offsetWidth + he + E <= _e)
|
|
2169
2169
|
return ae;
|
|
2170
2170
|
}
|
|
2171
2171
|
return 1;
|
|
@@ -2173,42 +2173,42 @@ const Cl = {
|
|
|
2173
2173
|
function Ht() {
|
|
2174
2174
|
const s = d.value;
|
|
2175
2175
|
if (!s) {
|
|
2176
|
-
|
|
2176
|
+
h.value = !1, x.value = 0, u.value = 0, U(), B();
|
|
2177
2177
|
return;
|
|
2178
2178
|
}
|
|
2179
|
-
const
|
|
2179
|
+
const p = Array.from(
|
|
2180
2180
|
s.querySelectorAll(".chart-legend-item[data-legend-data='true']")
|
|
2181
2181
|
);
|
|
2182
|
-
if (
|
|
2183
|
-
|
|
2182
|
+
if (p.length === 0) {
|
|
2183
|
+
h.value = !1, x.value = 0, u.value = 0, U(), B();
|
|
2184
2184
|
return;
|
|
2185
2185
|
}
|
|
2186
|
-
const
|
|
2186
|
+
const m = Array.from(new Set(p.map((ae) => ae.offsetTop))).sort((ae, fe) => ae - fe), y = !v.value && a.value.length > p.length, V = !v.value && !y, N = V || x.value <= 0 ? F() : x.value;
|
|
2187
2187
|
if ((V || x.value <= 0) && (x.value = N), y) {
|
|
2188
2188
|
const ae = F();
|
|
2189
2189
|
if (ae > 0 && (x.value = ae), window.getComputedStyle(s).flexDirection.startsWith("column") && u.value < a.value.length) {
|
|
2190
2190
|
const $e = Math.max(0, x.value - Wo), Ee = s.scrollHeight;
|
|
2191
2191
|
if (Ee + 1 < $e) {
|
|
2192
|
-
const je =
|
|
2192
|
+
const je = p.map((Ue) => Ue.offsetHeight).filter((Ue) => Number.isFinite(Ue) && Ue > 0), tt = je.length > 0 ? je.reduce((Ue, Ge) => Ue + Ge, 0) / je.length : 0;
|
|
2193
2193
|
if (tt > 0) {
|
|
2194
2194
|
const Ue = window.getComputedStyle(s), Ge = Number.parseFloat(Ue.rowGap || Ue.gap || "0") || 0, Bn = Math.max(1, tt + Ge), An = $e - Ee, dn = Math.floor(An / Bn);
|
|
2195
2195
|
if (dn > 0) {
|
|
2196
2196
|
u.value = Math.min(
|
|
2197
2197
|
a.value.length,
|
|
2198
2198
|
u.value + dn
|
|
2199
|
-
),
|
|
2199
|
+
), vt();
|
|
2200
2200
|
return;
|
|
2201
2201
|
}
|
|
2202
2202
|
}
|
|
2203
2203
|
}
|
|
2204
2204
|
}
|
|
2205
|
-
|
|
2205
|
+
h.value = !0, U(), B();
|
|
2206
2206
|
return;
|
|
2207
2207
|
}
|
|
2208
|
-
const te =
|
|
2209
|
-
(V || u.value <= 0) && (u.value = Math.max(0, Se)),
|
|
2208
|
+
const te = m[0] ?? 0, se = m[m.length - 1] ?? te, E = p.filter((ae) => ae.offsetTop === se), he = Math.max(...E.map((ae) => ae.offsetHeight), 0), _e = Math.max(0, se - te + he), Se = ln(p, N);
|
|
2209
|
+
(V || u.value <= 0) && (u.value = Math.max(0, Se)), h.value = _e > N, U(), B();
|
|
2210
2210
|
}
|
|
2211
|
-
function
|
|
2211
|
+
function vt() {
|
|
2212
2212
|
jo(() => {
|
|
2213
2213
|
Ht(), window.requestAnimationFrame(() => {
|
|
2214
2214
|
Ht(), X(), B();
|
|
@@ -2219,47 +2219,47 @@ const Cl = {
|
|
|
2219
2219
|
const s = {
|
|
2220
2220
|
"--legend-text-color": O.value,
|
|
2221
2221
|
"--legend-font-size": `${ue.value}px`
|
|
2222
|
-
},
|
|
2222
|
+
}, p = F();
|
|
2223
2223
|
if (D.value) {
|
|
2224
|
-
const
|
|
2224
|
+
const m = le();
|
|
2225
2225
|
return {
|
|
2226
2226
|
...s,
|
|
2227
2227
|
width: "fit-content",
|
|
2228
|
-
maxWidth: `${
|
|
2229
|
-
maxHeight: `${
|
|
2228
|
+
maxWidth: `${m}px`,
|
|
2229
|
+
maxHeight: `${p}px`,
|
|
2230
2230
|
minWidth: "0",
|
|
2231
2231
|
flex: "0 1 auto"
|
|
2232
2232
|
};
|
|
2233
2233
|
}
|
|
2234
2234
|
return {
|
|
2235
2235
|
...s,
|
|
2236
|
-
maxHeight: `${
|
|
2236
|
+
maxHeight: `${p}px`,
|
|
2237
2237
|
flex: "0 0 auto"
|
|
2238
2238
|
};
|
|
2239
2239
|
}), Wt = c(() => {
|
|
2240
|
-
if (
|
|
2240
|
+
if (v.value || !h.value)
|
|
2241
2241
|
return a.value;
|
|
2242
|
-
const s = Math.max(1, u.value),
|
|
2243
|
-
return a.value.slice(0, Math.min(
|
|
2244
|
-
}),
|
|
2242
|
+
const s = Math.max(1, u.value), p = D.value ? s : Math.max(0, s - 1);
|
|
2243
|
+
return a.value.slice(0, Math.min(p, a.value.length));
|
|
2244
|
+
}), ht = c(() => S.value ? h.value && v.value ? {
|
|
2245
2245
|
flex: "1 1 auto",
|
|
2246
2246
|
minHeight: "0",
|
|
2247
2247
|
overflowY: "auto"
|
|
2248
|
-
} :
|
|
2248
|
+
} : h.value ? {
|
|
2249
2249
|
overflow: "hidden"
|
|
2250
2250
|
} : {} : {});
|
|
2251
2251
|
function it() {
|
|
2252
2252
|
var y;
|
|
2253
2253
|
if (!S.value) {
|
|
2254
|
-
a.value = [], u.value = 0,
|
|
2254
|
+
a.value = [], u.value = 0, v.value = !1, h.value = !1, x.value = 0, A({ height: 0, width: 0 });
|
|
2255
2255
|
return;
|
|
2256
2256
|
}
|
|
2257
|
-
u.value = 0,
|
|
2257
|
+
u.value = 0, h.value = !1, x.value = 0;
|
|
2258
2258
|
const s = q();
|
|
2259
2259
|
if (!s) {
|
|
2260
2260
|
a.value = Te(
|
|
2261
2261
|
st(n.legendUpdateKey, n.chartRef)
|
|
2262
|
-
),
|
|
2262
|
+
), vt();
|
|
2263
2263
|
return;
|
|
2264
2264
|
}
|
|
2265
2265
|
try {
|
|
@@ -2267,52 +2267,52 @@ const Cl = {
|
|
|
2267
2267
|
} catch {
|
|
2268
2268
|
a.value = [];
|
|
2269
2269
|
}
|
|
2270
|
-
const
|
|
2270
|
+
const p = Array.isArray((y = s == null ? void 0 : s.data) == null ? void 0 : y.datasets) ? s.data.datasets : [];
|
|
2271
2271
|
a.value.length === 0 && (a.value = st(n.legendUpdateKey, n.chartRef)), a.value.length === 0 && (a.value = rt(s)), a.value = Ze(Te(a.value));
|
|
2272
|
-
const
|
|
2273
|
-
a.value.length === 0 && !(
|
|
2272
|
+
const m = Array.isArray(n.legendUpdateKey) && n.legendUpdateKey.length > 0 || !Array.isArray(n.legendUpdateKey) && !!n.legendUpdateKey;
|
|
2273
|
+
a.value.length === 0 && !(p.length > 0 || m) && R(0), vt();
|
|
2274
2274
|
}
|
|
2275
2275
|
function yt(s) {
|
|
2276
|
-
return Array.isArray(s.datasetIndexes) && s.datasetIndexes.length > 0 ? s.datasetIndexes.filter((
|
|
2276
|
+
return Array.isArray(s.datasetIndexes) && s.datasetIndexes.length > 0 ? s.datasetIndexes.filter((p) => Number.isInteger(p)) : typeof s.datasetIndex == "number" ? [s.datasetIndex] : [];
|
|
2277
2277
|
}
|
|
2278
|
-
function un(s,
|
|
2279
|
-
return Array.isArray(s.datasetKeys) && s.datasetKeys.length > 0 ? s.datasetKeys.filter((
|
|
2280
|
-
(
|
|
2281
|
-
datasetIndex:
|
|
2278
|
+
function un(s, p) {
|
|
2279
|
+
return Array.isArray(s.datasetKeys) && s.datasetKeys.length > 0 ? s.datasetKeys.filter((m) => typeof m == "string" && m.trim().length > 0) : typeof s.datasetKey == "string" && s.datasetKey.trim().length > 0 ? [s.datasetKey] : p.map(
|
|
2280
|
+
(m) => Bt({
|
|
2281
|
+
datasetIndex: m,
|
|
2282
2282
|
label: s.text
|
|
2283
2283
|
})
|
|
2284
2284
|
);
|
|
2285
2285
|
}
|
|
2286
|
-
function Lt(s,
|
|
2286
|
+
function Lt(s, p) {
|
|
2287
2287
|
a.value = a.value.map(
|
|
2288
|
-
(
|
|
2289
|
-
...
|
|
2290
|
-
hidden:
|
|
2291
|
-
} :
|
|
2288
|
+
(m) => s(m) ? {
|
|
2289
|
+
...m,
|
|
2290
|
+
hidden: p
|
|
2291
|
+
} : m
|
|
2292
2292
|
);
|
|
2293
2293
|
}
|
|
2294
|
-
function Ae(s,
|
|
2294
|
+
function Ae(s, p, m) {
|
|
2295
2295
|
var V;
|
|
2296
|
-
typeof s.setDatasetVisibility == "function" ? s.setDatasetVisibility(
|
|
2297
|
-
const y = Array.isArray((V = s == null ? void 0 : s.data) == null ? void 0 : V.datasets) ? s.data.datasets[
|
|
2298
|
-
y && typeof y == "object" && (y.hidden = !
|
|
2296
|
+
typeof s.setDatasetVisibility == "function" ? s.setDatasetVisibility(p, m) : m && typeof s.show == "function" ? s.show(p) : !m && typeof s.hide == "function" && s.hide(p);
|
|
2297
|
+
const y = Array.isArray((V = s == null ? void 0 : s.data) == null ? void 0 : V.datasets) ? s.data.datasets[p] : null;
|
|
2298
|
+
y && typeof y == "object" && (y.hidden = !m);
|
|
2299
2299
|
}
|
|
2300
|
-
function In(s,
|
|
2300
|
+
function In(s, p) {
|
|
2301
2301
|
var te;
|
|
2302
2302
|
if (typeof s.toggleDataVisibility == "function") {
|
|
2303
|
-
s.toggleDataVisibility(
|
|
2303
|
+
s.toggleDataVisibility(p);
|
|
2304
2304
|
return;
|
|
2305
2305
|
}
|
|
2306
|
-
const
|
|
2307
|
-
if (
|
|
2306
|
+
const m = Array.isArray((te = s == null ? void 0 : s.data) == null ? void 0 : te.datasets) ? s.data.datasets[0] : null, y = Array.isArray(m == null ? void 0 : m.data) ? m.data : [];
|
|
2307
|
+
if (p < 0 || p >= y.length)
|
|
2308
2308
|
return;
|
|
2309
|
-
const V = typeof s.getDatasetMeta == "function" ? s.getDatasetMeta(0) : null, N = Array.isArray(V == null ? void 0 : V.data) ? V.data[
|
|
2309
|
+
const V = typeof s.getDatasetMeta == "function" ? s.getDatasetMeta(0) : null, N = Array.isArray(V == null ? void 0 : V.data) ? V.data[p] : null;
|
|
2310
2310
|
N && typeof N.hidden == "boolean" && (N.hidden = !N.hidden);
|
|
2311
2311
|
}
|
|
2312
2312
|
function cn(s = 0) {
|
|
2313
2313
|
it();
|
|
2314
|
-
const
|
|
2315
|
-
if (
|
|
2314
|
+
const p = q(), m = a.value.length > 0;
|
|
2315
|
+
if (p || m || s >= $l) {
|
|
2316
2316
|
T();
|
|
2317
2317
|
return;
|
|
2318
2318
|
}
|
|
@@ -2320,16 +2320,16 @@ const Cl = {
|
|
|
2320
2320
|
cn(s + 1);
|
|
2321
2321
|
}, Vl);
|
|
2322
2322
|
}
|
|
2323
|
-
function Pn(s,
|
|
2323
|
+
function Pn(s, p) {
|
|
2324
2324
|
var _e;
|
|
2325
|
-
const
|
|
2325
|
+
const m = q(), y = String(((_e = m == null ? void 0 : m.config) == null ? void 0 : _e.type) ?? ""), V = y === "pie" || y === "doughnut" || y === "polarArea", N = typeof s.index == "number" ? s.index : typeof p == "number" ? p : null;
|
|
2326
2326
|
if ((V || typeof s.index == "number") && typeof N == "number") {
|
|
2327
2327
|
if (Array.isArray(n.hiddenDataPointIndexes)) {
|
|
2328
2328
|
o("toggleDataPointVisibility", { itemIndex: N });
|
|
2329
2329
|
return;
|
|
2330
2330
|
}
|
|
2331
|
-
|
|
2332
|
-
const Se =
|
|
2331
|
+
m && (In(m, N), m.update());
|
|
2332
|
+
const Se = m && typeof m.getDataVisibility == "function" ? !m.getDataVisibility(N) : s.hidden !== !0;
|
|
2333
2333
|
Lt(
|
|
2334
2334
|
(ae) => typeof ae.index == "number" ? ae.index === N : ae.datasetIndex === s.datasetIndex && ae.text === s.text,
|
|
2335
2335
|
Se
|
|
@@ -2349,12 +2349,12 @@ const Cl = {
|
|
|
2349
2349
|
});
|
|
2350
2350
|
return;
|
|
2351
2351
|
}
|
|
2352
|
-
const
|
|
2353
|
-
if (!
|
|
2352
|
+
const he = Tt();
|
|
2353
|
+
if (!m) {
|
|
2354
2354
|
if (se.length > 0) {
|
|
2355
2355
|
const Se = s.hidden !== !0;
|
|
2356
2356
|
se.forEach((ae) => {
|
|
2357
|
-
const fe =
|
|
2357
|
+
const fe = he[ae];
|
|
2358
2358
|
fe && typeof fe == "object" && (fe.hidden = Se);
|
|
2359
2359
|
}), Lt(
|
|
2360
2360
|
(ae) => et(ae, 0) === et(s, 0),
|
|
@@ -2365,26 +2365,26 @@ const Cl = {
|
|
|
2365
2365
|
}
|
|
2366
2366
|
if (se.length > 0) {
|
|
2367
2367
|
const ae = !se.every(
|
|
2368
|
-
(fe) => typeof
|
|
2368
|
+
(fe) => typeof m.isDatasetVisible == "function" ? m.isDatasetVisible(fe) : s.hidden !== !0
|
|
2369
2369
|
);
|
|
2370
2370
|
se.forEach((fe) => {
|
|
2371
|
-
Ae(
|
|
2372
|
-
const ke =
|
|
2371
|
+
Ae(m, fe, ae);
|
|
2372
|
+
const ke = he[fe];
|
|
2373
2373
|
ke && typeof ke == "object" && (ke.hidden = !ae);
|
|
2374
|
-
}),
|
|
2374
|
+
}), m.update(), Lt(
|
|
2375
2375
|
(fe) => et(fe, 0) === et(s, 0),
|
|
2376
2376
|
!ae
|
|
2377
2377
|
);
|
|
2378
2378
|
}
|
|
2379
2379
|
}
|
|
2380
2380
|
function Mn() {
|
|
2381
|
-
|
|
2381
|
+
v.value = !0, vt();
|
|
2382
2382
|
}
|
|
2383
2383
|
function ut() {
|
|
2384
|
-
|
|
2384
|
+
v.value = !1, d.value && (d.value.scrollTop = 0), vt();
|
|
2385
2385
|
}
|
|
2386
2386
|
return Gt(() => {
|
|
2387
|
-
cn(), window.addEventListener("mousemove",
|
|
2387
|
+
cn(), window.addEventListener("mousemove", pe), window.addEventListener("mouseup", G);
|
|
2388
2388
|
}), Le(
|
|
2389
2389
|
() => [
|
|
2390
2390
|
n.enabled,
|
|
@@ -2397,15 +2397,15 @@ const Cl = {
|
|
|
2397
2397
|
it();
|
|
2398
2398
|
}
|
|
2399
2399
|
), Eo(() => {
|
|
2400
|
-
P.value = !1, T(), A({ height: 0, width: 0 }), window.removeEventListener("mousemove",
|
|
2401
|
-
}), (s,
|
|
2400
|
+
P.value = !1, T(), A({ height: 0, width: 0 }), window.removeEventListener("mousemove", pe), window.removeEventListener("mouseup", G);
|
|
2401
|
+
}), (s, p) => S.value ? (j(), me("div", {
|
|
2402
2402
|
key: 0,
|
|
2403
2403
|
ref_key: "legendPanelRef",
|
|
2404
2404
|
ref: Y,
|
|
2405
2405
|
class: Fe(["chart-legend-panel relative z-[2] flex min-w-0 flex-col overflow-hidden pointer-events-auto", {
|
|
2406
2406
|
"self-stretch h-full pt-2": D.value,
|
|
2407
|
-
"mb-2": !D.value &&
|
|
2408
|
-
"mt-2": !D.value &&
|
|
2407
|
+
"mb-2": !D.value && e.position === "top",
|
|
2408
|
+
"mt-2": !D.value && e.position === "bottom"
|
|
2409
2409
|
}]),
|
|
2410
2410
|
style: Ve(sn.value)
|
|
2411
2411
|
}, [
|
|
@@ -2427,31 +2427,31 @@ const Cl = {
|
|
|
2427
2427
|
class: Fe(["chart-legend-list m-0 flex list-none p-0", [
|
|
2428
2428
|
D.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"
|
|
2429
2429
|
]]),
|
|
2430
|
-
style: Ve(
|
|
2430
|
+
style: Ve(ht.value),
|
|
2431
2431
|
onScroll: K
|
|
2432
2432
|
}, [
|
|
2433
|
-
(j(!0),
|
|
2434
|
-
key: et(
|
|
2433
|
+
(j(!0), me(Ye, null, St(Wt.value, (m, y) => (j(), me("li", {
|
|
2434
|
+
key: et(m, y),
|
|
2435
2435
|
class: Fe(["chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto", {
|
|
2436
|
-
"opacity-45":
|
|
2436
|
+
"opacity-45": m.hidden
|
|
2437
2437
|
}]),
|
|
2438
2438
|
"data-legend-data": "true"
|
|
2439
2439
|
}, [
|
|
2440
2440
|
Q("button", {
|
|
2441
2441
|
type: "button",
|
|
2442
2442
|
class: Fe(["inline-flex max-w-full items-center gap-1.5 border-none bg-transparent p-0", { "justify-start text-left": D.value }]),
|
|
2443
|
-
"aria-pressed":
|
|
2444
|
-
onClick: Cn((V) => Pn(
|
|
2443
|
+
"aria-pressed": m.hidden === !0 ? "false" : "true",
|
|
2444
|
+
onClick: Cn((V) => Pn(m, y), ["stop"])
|
|
2445
2445
|
}, [
|
|
2446
|
-
n.usePointStyle !== !1 ? (j(),
|
|
2446
|
+
n.usePointStyle !== !1 ? (j(), me("span", {
|
|
2447
2447
|
key: 0,
|
|
2448
2448
|
class: "h-5 w-5 shrink-0 rounded-full",
|
|
2449
|
-
style: Ve({ backgroundColor: de(
|
|
2450
|
-
}, null, 4)) : (j(),
|
|
2449
|
+
style: Ve({ backgroundColor: de(m, y) })
|
|
2450
|
+
}, null, 4)) : (j(), me("span", {
|
|
2451
2451
|
key: 1,
|
|
2452
2452
|
class: "h-5 w-5 shrink-0 rounded-sm border border-solid border-gray-300",
|
|
2453
2453
|
style: Ve({
|
|
2454
|
-
backgroundColor: de(
|
|
2454
|
+
backgroundColor: de(m, y),
|
|
2455
2455
|
borderColor: "#c7c7cc"
|
|
2456
2456
|
})
|
|
2457
2457
|
}, null, 4)),
|
|
@@ -2459,25 +2459,25 @@ const Cl = {
|
|
|
2459
2459
|
class: Fe(["chart-legend-text leading-[1.4]", {
|
|
2460
2460
|
"max-w-[120px] whitespace-nowrap overflow-hidden text-left": D.value,
|
|
2461
2461
|
"whitespace-nowrap overflow-hidden": !D.value,
|
|
2462
|
-
"line-through":
|
|
2462
|
+
"line-through": m.hidden
|
|
2463
2463
|
}]),
|
|
2464
|
-
title:
|
|
2465
|
-
}, Me(
|
|
2464
|
+
title: m.text ?? ""
|
|
2465
|
+
}, Me(m.text), 11, Rl)
|
|
2466
2466
|
], 10, Al)
|
|
2467
2467
|
], 2))), 128)),
|
|
2468
|
-
|
|
2468
|
+
h.value ? (j(), me("li", Fl, [
|
|
2469
2469
|
Q("button", {
|
|
2470
2470
|
type: "button",
|
|
2471
2471
|
class: "inline-flex max-w-full cursor-pointer select-none underline items-center gap-1 rounded px-1 py-0.5 border-none bg-transparent text-fm-color-system-info-300 leading-[1.4] transition-colors hover:bg-black/5",
|
|
2472
2472
|
style: { fontSize: "var(--legend-font-size)" },
|
|
2473
|
-
onClick:
|
|
2474
|
-
}, Me(
|
|
2473
|
+
onClick: p[0] || (p[0] = Cn((m) => v.value ? ut() : Mn(), ["stop"]))
|
|
2474
|
+
}, Me(v.value ? l(r)("report.widget.legend.viewLess") : l(r)("report.widget.legend.viewMore")), 1)
|
|
2475
2475
|
])) : we("", !0)
|
|
2476
2476
|
], 38),
|
|
2477
|
-
C.value ? (j(),
|
|
2477
|
+
C.value ? (j(), me("div", {
|
|
2478
2478
|
key: 0,
|
|
2479
2479
|
class: "absolute top-0 right-0 h-full w-2 rounded-full bg-transparent",
|
|
2480
|
-
onMousedown:
|
|
2480
|
+
onMousedown: ne
|
|
2481
2481
|
}, [
|
|
2482
2482
|
Q("div", {
|
|
2483
2483
|
class: "absolute left-0 w-full rounded-full bg-gray-500/60 cursor-pointer hover:bg-gray-500/85",
|
|
@@ -2492,12 +2492,12 @@ const Cl = {
|
|
|
2492
2492
|
function Hl(e, t) {
|
|
2493
2493
|
const { t: n } = kt(), { breakpoints: o } = qt(), r = k(!1), i = k(null), a = k(null);
|
|
2494
2494
|
function u() {
|
|
2495
|
-
return
|
|
2495
|
+
return ma(e.value) ?? a.value;
|
|
2496
2496
|
}
|
|
2497
|
-
function
|
|
2497
|
+
function v(d) {
|
|
2498
2498
|
r.value = d, !d && (i.value = null, wn(u()), a.value = null);
|
|
2499
2499
|
}
|
|
2500
|
-
function
|
|
2500
|
+
function h(d, b) {
|
|
2501
2501
|
i.value = d, a.value = b ?? u(), r.value = !0;
|
|
2502
2502
|
}
|
|
2503
2503
|
function x(d) {
|
|
@@ -2508,7 +2508,7 @@ function Hl(e, t) {
|
|
|
2508
2508
|
}
|
|
2509
2509
|
const H = c(() => ({
|
|
2510
2510
|
viewFullDetailsLabel: o.value.xs || o.value.sm ? n("report.widget.comparisonTooltip.doubleClickViewBreakdown") : n("report.widget.comparisonTooltip.viewBreakdown"),
|
|
2511
|
-
onViewFullDetails:
|
|
2511
|
+
onViewFullDetails: h,
|
|
2512
2512
|
maxTooltipItems: l(t == null ? void 0 : t.maxTooltipItems),
|
|
2513
2513
|
comparisonXAxis: l(t == null ? void 0 : t.comparisonXAxis)
|
|
2514
2514
|
}));
|
|
@@ -2516,7 +2516,7 @@ function Hl(e, t) {
|
|
|
2516
2516
|
isTooltipDetailsSheetOpen: r,
|
|
2517
2517
|
tooltipDetailsPayload: i,
|
|
2518
2518
|
tooltipOptions: H,
|
|
2519
|
-
handleTooltipDetailsSheetVisibility:
|
|
2519
|
+
handleTooltipDetailsSheetVisibility: v,
|
|
2520
2520
|
handleTooltipDetailsHover: x,
|
|
2521
2521
|
handleTooltipDetailsLeave: Y
|
|
2522
2522
|
};
|
|
@@ -2533,20 +2533,20 @@ function Wl(e) {
|
|
|
2533
2533
|
return n.value.has(o(a, u));
|
|
2534
2534
|
}
|
|
2535
2535
|
function i({ datasetIndex: a, datasetKey: u }) {
|
|
2536
|
-
const
|
|
2537
|
-
if (n.value.has(
|
|
2538
|
-
t.value = t.value.filter((
|
|
2536
|
+
const v = u ?? o(e.value[a], a);
|
|
2537
|
+
if (n.value.has(v)) {
|
|
2538
|
+
t.value = t.value.filter((h) => h !== v);
|
|
2539
2539
|
return;
|
|
2540
2540
|
}
|
|
2541
|
-
t.value = [...t.value,
|
|
2541
|
+
t.value = [...t.value, v];
|
|
2542
2542
|
}
|
|
2543
2543
|
return Le(
|
|
2544
2544
|
e,
|
|
2545
2545
|
(a) => {
|
|
2546
2546
|
const u = new Set(
|
|
2547
|
-
a.map((
|
|
2548
|
-
),
|
|
2549
|
-
|
|
2547
|
+
a.map((h, x) => o(h, x))
|
|
2548
|
+
), v = t.value.filter((h) => u.has(h));
|
|
2549
|
+
v.length !== t.value.length && (t.value = v);
|
|
2550
2550
|
},
|
|
2551
2551
|
{ immediate: !0 }
|
|
2552
2552
|
), {
|
|
@@ -2561,17 +2561,17 @@ function tn({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2561
2561
|
tooltipDetailsPayload: i,
|
|
2562
2562
|
tooltipOptions: a,
|
|
2563
2563
|
handleTooltipDetailsSheetVisibility: u,
|
|
2564
|
-
handleTooltipDetailsHover:
|
|
2565
|
-
handleTooltipDetailsLeave:
|
|
2564
|
+
handleTooltipDetailsHover: v,
|
|
2565
|
+
handleTooltipDetailsLeave: h
|
|
2566
2566
|
} = Hl(e, {
|
|
2567
2567
|
maxTooltipItems: o,
|
|
2568
2568
|
comparisonXAxis: c(() => {
|
|
2569
2569
|
var C;
|
|
2570
2570
|
return (C = t.value.data) == null ? void 0 : C.comparisonXAxis;
|
|
2571
2571
|
})
|
|
2572
|
-
}), { datalabels: x, xCfg: Y, yCfg: H, isTransposed: d, legend: b } =
|
|
2572
|
+
}), { datalabels: x, xCfg: Y, yCfg: H, isTransposed: d, legend: b } = ha(t.value), w = c(
|
|
2573
2573
|
() => no(t.value.isTransposed === !0, a.value)
|
|
2574
|
-
),
|
|
2574
|
+
), g = c(() => {
|
|
2575
2575
|
const C = b.value.position;
|
|
2576
2576
|
return !C || C === "top" || C === "bottom" || C === "left" || C === "right";
|
|
2577
2577
|
}), I = c(() => b.value.position ?? "top"), P = c(
|
|
@@ -2586,15 +2586,15 @@ function tn({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2586
2586
|
isTooltipDetailsSheetOpen: r,
|
|
2587
2587
|
tooltipDetailsPayload: i,
|
|
2588
2588
|
handleTooltipDetailsSheetVisibility: u,
|
|
2589
|
-
handleTooltipDetailsHover:
|
|
2590
|
-
handleTooltipDetailsLeave:
|
|
2589
|
+
handleTooltipDetailsHover: v,
|
|
2590
|
+
handleTooltipDetailsLeave: h,
|
|
2591
2591
|
comparisonTooltip: w,
|
|
2592
2592
|
datalabels: x,
|
|
2593
2593
|
xCfg: Y,
|
|
2594
2594
|
yCfg: H,
|
|
2595
2595
|
isTransposed: d,
|
|
2596
2596
|
legend: b,
|
|
2597
|
-
useCustomLegend:
|
|
2597
|
+
useCustomLegend: g,
|
|
2598
2598
|
legendPosition: I,
|
|
2599
2599
|
isLegendSide: P,
|
|
2600
2600
|
isLegendBeforeChart: W,
|
|
@@ -2655,8 +2655,8 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2655
2655
|
() => an(o.value, r.value.length, {
|
|
2656
2656
|
preserveNullableValues: t.value.hasNullableMetric
|
|
2657
2657
|
})
|
|
2658
|
-
), u = c(() => !i.value && r.value.length === 1 && o.value.length > 1 && o.value.every((B) => B.values.length === 1 && B.isCompare !== !0)),
|
|
2659
|
-
categories:
|
|
2658
|
+
), u = c(() => !i.value && r.value.length === 1 && o.value.length > 1 && o.value.every((B) => B.values.length === 1 && B.isCompare !== !0)), v = c(() => u.value ? o.value.map((B) => B.name) : r.value), h = c(() => ({
|
|
2659
|
+
categories: v.value
|
|
2660
2660
|
})), x = c(() => !i.value && r.value.length === 1 && o.value.some((B) => B.isCompare === !0)), Y = Qt("bar");
|
|
2661
2661
|
function H(B) {
|
|
2662
2662
|
return {
|
|
@@ -2671,10 +2671,10 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2671
2671
|
}
|
|
2672
2672
|
const d = c(() => o.value.length > 0 ? [
|
|
2673
2673
|
...a.value.map((B, K) => {
|
|
2674
|
-
const
|
|
2674
|
+
const ne = Jt({
|
|
2675
2675
|
datasets: a.value,
|
|
2676
2676
|
datasetIndex: K
|
|
2677
|
-
}), ce = i.value ? on(a.value,
|
|
2677
|
+
}), ce = i.value ? on(a.value, ne) : ne, pe = Oe({
|
|
2678
2678
|
datasetIndex: ce,
|
|
2679
2679
|
isCompare: !1,
|
|
2680
2680
|
metricCount: t.value.metricCount,
|
|
@@ -2685,20 +2685,20 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2685
2685
|
metricCount: t.value.metricCount,
|
|
2686
2686
|
mode: Be.metric
|
|
2687
2687
|
});
|
|
2688
|
-
let
|
|
2689
|
-
u.value && (
|
|
2688
|
+
let oe = B.values;
|
|
2689
|
+
u.value && (oe = o.value.map(
|
|
2690
2690
|
(L, F) => F === K ? B.values[0] : NaN
|
|
2691
2691
|
));
|
|
2692
|
-
const re = t.value.chartColorBinding === Be.breakdown,
|
|
2692
|
+
const re = t.value.chartColorBinding === Be.breakdown, ge = Vt({
|
|
2693
2693
|
fallbackIndex: ce,
|
|
2694
2694
|
metricCount: t.value.metricCount
|
|
2695
|
-
}), _ = nn(
|
|
2695
|
+
}), _ = nn(oe);
|
|
2696
2696
|
return {
|
|
2697
2697
|
label: B.name,
|
|
2698
2698
|
formatter: B.formatter,
|
|
2699
2699
|
data: _,
|
|
2700
2700
|
xAxisIndex: B.xAxisIndex,
|
|
2701
|
-
emptyValueIndexes: t.value.hasNullableMetric ? B.xAxisIndex === void 0 ? co(
|
|
2701
|
+
emptyValueIndexes: t.value.hasNullableMetric ? B.xAxisIndex === void 0 ? co(oe) : oe[B.xAxisIndex] === null ? [B.xAxisIndex] : void 0 : void 0,
|
|
2702
2702
|
dash: !!B.isCompare,
|
|
2703
2703
|
// A SQL row only owns one X-axis bucket. Skip its generated nulls in
|
|
2704
2704
|
// every other bucket so an earlier date cannot reserve a bar slot
|
|
@@ -2707,7 +2707,7 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2707
2707
|
minBarLength: void 0,
|
|
2708
2708
|
barPercentage: x.value ? Un : void 0,
|
|
2709
2709
|
backgroundColor: re ? zt({
|
|
2710
|
-
breakdownIndex:
|
|
2710
|
+
breakdownIndex: ge,
|
|
2711
2711
|
metricIndex: G,
|
|
2712
2712
|
metricCount: t.value.metricCount,
|
|
2713
2713
|
isCompare: B.isCompare,
|
|
@@ -2715,7 +2715,7 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2715
2715
|
useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
|
|
2716
2716
|
customColors: t.value.chartColors
|
|
2717
2717
|
}) : dt({
|
|
2718
|
-
index:
|
|
2718
|
+
index: pe,
|
|
2719
2719
|
isCompare: B.isCompare,
|
|
2720
2720
|
customColors: t.value.chartColors
|
|
2721
2721
|
})
|
|
@@ -2724,7 +2724,7 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2724
2724
|
] : []), {
|
|
2725
2725
|
isTooltipDetailsSheetOpen: b,
|
|
2726
2726
|
tooltipDetailsPayload: w,
|
|
2727
|
-
handleTooltipDetailsSheetVisibility:
|
|
2727
|
+
handleTooltipDetailsSheetVisibility: g,
|
|
2728
2728
|
handleTooltipDetailsHover: I,
|
|
2729
2729
|
handleTooltipDetailsLeave: P,
|
|
2730
2730
|
comparisonTooltip: W,
|
|
@@ -2748,29 +2748,29 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2748
2748
|
if (!x.value)
|
|
2749
2749
|
return q.value;
|
|
2750
2750
|
const B = [];
|
|
2751
|
-
return q.value.forEach((K,
|
|
2751
|
+
return q.value.forEach((K, ne) => {
|
|
2752
2752
|
B.push({
|
|
2753
2753
|
...K,
|
|
2754
2754
|
barPercentage: Un
|
|
2755
2755
|
});
|
|
2756
|
-
const ce = q.value[
|
|
2757
|
-
K.dash === !0 && ce && B.push(H(
|
|
2756
|
+
const ce = q.value[ne + 1];
|
|
2757
|
+
K.dash === !0 && ce && B.push(H(ne));
|
|
2758
2758
|
}), B;
|
|
2759
2759
|
}), X = c(() => ({
|
|
2760
2760
|
display: !1,
|
|
2761
2761
|
labels: {
|
|
2762
2762
|
filter: (B, K) => {
|
|
2763
|
-
var
|
|
2764
|
-
return !((ce = (
|
|
2763
|
+
var ne, ce;
|
|
2764
|
+
return !((ce = (ne = K.datasets) == null ? void 0 : ne[B.datasetIndex ?? -1]) != null && ce.isSpacer);
|
|
2765
2765
|
}
|
|
2766
2766
|
}
|
|
2767
2767
|
}));
|
|
2768
2768
|
return (B, K) => {
|
|
2769
|
-
var ce,
|
|
2770
|
-
const
|
|
2771
|
-
return j(),
|
|
2769
|
+
var ce, pe, G, oe, re, ge;
|
|
2770
|
+
const ne = be("FmBarChart");
|
|
2771
|
+
return j(), me(Ye, null, [
|
|
2772
2772
|
Q("div", Ol, [
|
|
2773
|
-
|
|
2773
|
+
pt(B.$slots, "menu"),
|
|
2774
2774
|
Q("div", {
|
|
2775
2775
|
class: Fe(["chart-layout", {
|
|
2776
2776
|
"chart-layout--side": l(z) && (l(C).display ?? !1) && l(ue)
|
|
@@ -2782,7 +2782,7 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2782
2782
|
enabled: l(C).display ?? !1,
|
|
2783
2783
|
position: l(O),
|
|
2784
2784
|
"text-color": (ce = l(C).labels) == null ? void 0 : ce.color,
|
|
2785
|
-
"font-size": (G = (
|
|
2785
|
+
"font-size": (G = (pe = l(C).labels) == null ? void 0 : pe.font) == null ? void 0 : G.size,
|
|
2786
2786
|
"legend-update-key": l(q),
|
|
2787
2787
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
2788
2788
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -2793,12 +2793,12 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2793
2793
|
"hidden-dataset-keys": l(A),
|
|
2794
2794
|
onToggleDatasetVisibility: l(T)
|
|
2795
2795
|
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : we("", !0),
|
|
2796
|
-
Ce(
|
|
2796
|
+
Ce(ne, {
|
|
2797
2797
|
ref_key: "chartRef",
|
|
2798
2798
|
ref: n,
|
|
2799
2799
|
class: "bar-chart",
|
|
2800
2800
|
datasets: U.value,
|
|
2801
|
-
"x-axis":
|
|
2801
|
+
"x-axis": h.value,
|
|
2802
2802
|
"x-cfg": l(S),
|
|
2803
2803
|
"y-cfg": l(D),
|
|
2804
2804
|
transpose: l($),
|
|
@@ -2813,8 +2813,8 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2813
2813
|
"chart-ref": n.value,
|
|
2814
2814
|
enabled: l(C).display ?? !1,
|
|
2815
2815
|
position: l(O),
|
|
2816
|
-
"text-color": (
|
|
2817
|
-
"font-size": (
|
|
2816
|
+
"text-color": (oe = l(C).labels) == null ? void 0 : oe.color,
|
|
2817
|
+
"font-size": (ge = (re = l(C).labels) == null ? void 0 : re.font) == null ? void 0 : ge.size,
|
|
2818
2818
|
"legend-update-key": l(q),
|
|
2819
2819
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
2820
2820
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -2830,7 +2830,7 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2830
2830
|
Ce(en, {
|
|
2831
2831
|
"model-value": l(b),
|
|
2832
2832
|
"details-payload": l(w),
|
|
2833
|
-
"onUpdate:modelValue": l(
|
|
2833
|
+
"onUpdate:modelValue": l(g),
|
|
2834
2834
|
onValueHover: l(I),
|
|
2835
2835
|
onValueLeave: l(P)
|
|
2836
2836
|
}, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
|
|
@@ -2847,10 +2847,10 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2847
2847
|
}),
|
|
2848
2848
|
emits: ["update:modelValue"],
|
|
2849
2849
|
setup(e) {
|
|
2850
|
-
const t = at(e, "modelValue"), { breakpoints: n } = qt(), o = k(null), r = k([]), { datalabels: i, legend: a } =
|
|
2850
|
+
const t = at(e, "modelValue"), { breakpoints: n } = qt(), o = k(null), r = k([]), { datalabels: i, legend: a } = ha(t.value), u = c(() => {
|
|
2851
2851
|
const S = Array.isArray(t.value.data.datasets) ? t.value.data.datasets.map((D) => D.name) : [];
|
|
2852
2852
|
return S.length > 0 ? S : Array.isArray(t.value.data.metrics) ? t.value.data.metrics.map((D) => String(D)) : [];
|
|
2853
|
-
}),
|
|
2853
|
+
}), v = c(() => {
|
|
2854
2854
|
let S = [];
|
|
2855
2855
|
return Array.isArray(t.value.data.datasets) && t.value.data.datasets.length > 0 && (S = [
|
|
2856
2856
|
{
|
|
@@ -2877,18 +2877,18 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2877
2877
|
},
|
|
2878
2878
|
{ deep: !0 }
|
|
2879
2879
|
);
|
|
2880
|
-
const
|
|
2880
|
+
const h = c(() => typeof t.value.legendFontSize == "number" ? t.value.legendFontSize : n.value.lg ? 12 : 8), x = c(() => {
|
|
2881
2881
|
const S = a.value.position;
|
|
2882
2882
|
return !S || S === "top" || S === "bottom" || S === "left" || S === "right";
|
|
2883
2883
|
}), Y = c(() => a.value.display !== !1), H = c(() => x.value && Y.value), d = c(() => a.value.position ?? "top"), b = c(
|
|
2884
2884
|
() => d.value === "left" || d.value === "right"
|
|
2885
2885
|
), w = c(
|
|
2886
2886
|
() => d.value === "top" || d.value === "left"
|
|
2887
|
-
),
|
|
2887
|
+
), g = c(() => {
|
|
2888
2888
|
var D;
|
|
2889
2889
|
const S = (D = a.value.labels) == null ? void 0 : D.color;
|
|
2890
2890
|
return typeof S == "string" && S.trim().length > 0 ? S : t.value.legendColor ?? "#6b6b6b";
|
|
2891
|
-
}), I = c(() =>
|
|
2891
|
+
}), I = c(() => h.value), P = c(() => ({
|
|
2892
2892
|
display: !1
|
|
2893
2893
|
})), W = kr();
|
|
2894
2894
|
function M({ itemIndex: S }) {
|
|
@@ -2902,8 +2902,8 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2902
2902
|
}
|
|
2903
2903
|
return (S, D) => {
|
|
2904
2904
|
const $ = be("FmPieChart");
|
|
2905
|
-
return j(),
|
|
2906
|
-
|
|
2905
|
+
return j(), me("div", Kl, [
|
|
2906
|
+
pt(S.$slots, "menu"),
|
|
2907
2907
|
Q("div", {
|
|
2908
2908
|
class: Fe(["chart-layout", {
|
|
2909
2909
|
"chart-layout--side": H.value && b.value
|
|
@@ -2914,9 +2914,9 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2914
2914
|
"chart-ref": o.value,
|
|
2915
2915
|
enabled: Y.value,
|
|
2916
2916
|
position: d.value,
|
|
2917
|
-
"text-color":
|
|
2917
|
+
"text-color": g.value,
|
|
2918
2918
|
"font-size": I.value,
|
|
2919
|
-
"legend-update-key":
|
|
2919
|
+
"legend-update-key": v.value,
|
|
2920
2920
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
2921
2921
|
"chart-color-binding": t.value.chartColorBinding,
|
|
2922
2922
|
"chart-colors": t.value.chartColors,
|
|
@@ -2931,7 +2931,7 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2931
2931
|
ref: o,
|
|
2932
2932
|
class: "circular",
|
|
2933
2933
|
percentage: "70%",
|
|
2934
|
-
datasets:
|
|
2934
|
+
datasets: v.value,
|
|
2935
2935
|
metrics: u.value,
|
|
2936
2936
|
tooltip: l(W),
|
|
2937
2937
|
variant: "doughnut",
|
|
@@ -2944,9 +2944,9 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2944
2944
|
"chart-ref": o.value,
|
|
2945
2945
|
enabled: Y.value,
|
|
2946
2946
|
position: d.value,
|
|
2947
|
-
"text-color":
|
|
2947
|
+
"text-color": g.value,
|
|
2948
2948
|
"font-size": I.value,
|
|
2949
|
-
"legend-update-key":
|
|
2949
|
+
"legend-update-key": v.value,
|
|
2950
2950
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
2951
2951
|
"chart-color-binding": t.value.chartColorBinding,
|
|
2952
2952
|
"chart-colors": t.value.chartColors,
|
|
@@ -2983,9 +2983,9 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2983
2983
|
};
|
|
2984
2984
|
});
|
|
2985
2985
|
});
|
|
2986
|
-
return (o, r) => (j(),
|
|
2986
|
+
return (o, r) => (j(), me("div", Xl, [
|
|
2987
2987
|
Q("div", El, [
|
|
2988
|
-
(j(!0),
|
|
2988
|
+
(j(!0), me(Ye, null, St(n.value, (i, a) => (j(), me("div", {
|
|
2989
2989
|
key: a,
|
|
2990
2990
|
class: "flex flex-col gap-1 flex-1 min-w-[80px]"
|
|
2991
2991
|
}, [
|
|
@@ -3003,7 +3003,7 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
3003
3003
|
]))), 128))
|
|
3004
3004
|
]),
|
|
3005
3005
|
Q("div", Jl, [
|
|
3006
|
-
(j(!0),
|
|
3006
|
+
(j(!0), me(Ye, null, St(n.value, (i, a) => (j(), me("div", {
|
|
3007
3007
|
key: a,
|
|
3008
3008
|
style: Ve({ width: `${i.width}%`, backgroundColor: i.color })
|
|
3009
3009
|
}, null, 4))), 128))
|
|
@@ -3034,12 +3034,12 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
3034
3034
|
var A;
|
|
3035
3035
|
const R = ((A = t.value.data) == null ? void 0 : A.formatter) === "CURRENCY" ? Dn(l(i)) : "";
|
|
3036
3036
|
return Et(Xt(a.value), R);
|
|
3037
|
-
}),
|
|
3037
|
+
}), v = c(
|
|
3038
3038
|
() => {
|
|
3039
3039
|
var R, A;
|
|
3040
3040
|
return ((A = (R = t.value.data) == null ? void 0 : R.sparkline) == null ? void 0 : A.type) === Yt.progress;
|
|
3041
3041
|
}
|
|
3042
|
-
),
|
|
3042
|
+
), h = c(() => t.value.sparklineTargetValue);
|
|
3043
3043
|
function x(R) {
|
|
3044
3044
|
if (R === void 0 || R === "") return NaN;
|
|
3045
3045
|
const A = String(R);
|
|
@@ -3050,20 +3050,20 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
3050
3050
|
return R === void 0 || R === "" ? 0 : ((A = String(R).split(".")[1]) == null ? void 0 : A.length) ?? 0;
|
|
3051
3051
|
}
|
|
3052
3052
|
const H = c(() => {
|
|
3053
|
-
const R = x(a.value), A =
|
|
3053
|
+
const R = x(a.value), A = h.value;
|
|
3054
3054
|
return !Number.isFinite(R) || A == null || A <= 0 ? null : R / A * 100;
|
|
3055
|
-
}), d = c(() => H.value === null ? 0 : Math.min(Math.max(H.value, 0), 100)), b = c(() => Xt(
|
|
3055
|
+
}), d = c(() => H.value === null ? 0 : Math.min(Math.max(H.value, 0), 100)), b = c(() => Xt(h.value)), w = c(
|
|
3056
3056
|
() => n("report.widget.scorecardProgress.achieved", {
|
|
3057
3057
|
percentage: H.value === null ? "" : H.value.toFixed(2)
|
|
3058
3058
|
})
|
|
3059
|
-
),
|
|
3059
|
+
), g = c(
|
|
3060
3060
|
() => b.value || n("report.widget.scorecardProgress.emptyValue")
|
|
3061
3061
|
), I = c(
|
|
3062
3062
|
() => n("report.widget.scorecardProgress.remaining", {
|
|
3063
3063
|
value: P.value || n("report.widget.scorecardProgress.emptyValue")
|
|
3064
3064
|
})
|
|
3065
3065
|
), P = c(() => {
|
|
3066
|
-
const R = x(a.value), A =
|
|
3066
|
+
const R = x(a.value), A = h.value;
|
|
3067
3067
|
if (!Number.isFinite(R) || A == null || A <= 0) return "";
|
|
3068
3068
|
const T = Math.max(Y(a.value), Y(A));
|
|
3069
3069
|
return Xt(Math.max(A - R, 0).toFixed(T));
|
|
@@ -3102,8 +3102,8 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
3102
3102
|
return (R, A) => {
|
|
3103
3103
|
var K;
|
|
3104
3104
|
const T = be("FmIcon"), q = be("FmChip"), U = be("FmTooltip"), X = be("FmLineChart"), B = be("FmBarChart");
|
|
3105
|
-
return j(),
|
|
3106
|
-
|
|
3105
|
+
return j(), me("div", Ql, [
|
|
3106
|
+
pt(R.$slots, "menu"),
|
|
3107
3107
|
Q("p", es, Me(u.value), 1),
|
|
3108
3108
|
Q("div", ts, [
|
|
3109
3109
|
Ce(U, {
|
|
@@ -3113,9 +3113,9 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
3113
3113
|
variant: "rich"
|
|
3114
3114
|
}, {
|
|
3115
3115
|
content: Re(() => {
|
|
3116
|
-
var
|
|
3116
|
+
var ne;
|
|
3117
3117
|
return [
|
|
3118
|
-
Q("span", ns, Me(`vs. ${(
|
|
3118
|
+
Q("span", ns, Me(`vs. ${(ne = l(r).defaultCompareType) == null ? void 0 : ne.split("_").join(" ")}`), 1)
|
|
3119
3119
|
];
|
|
3120
3120
|
}),
|
|
3121
3121
|
default: Re(() => [
|
|
@@ -3156,12 +3156,12 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
3156
3156
|
_: 1
|
|
3157
3157
|
}, 8, ["disabled"])
|
|
3158
3158
|
]),
|
|
3159
|
-
|
|
3159
|
+
v.value ? (j(), me("div", os, [
|
|
3160
3160
|
Q("div", as, [
|
|
3161
3161
|
Q("span", {
|
|
3162
3162
|
class: Fe(H.value === null ? "" : "text-fm-color-primary-500")
|
|
3163
3163
|
}, Me(w.value), 3),
|
|
3164
|
-
Q("span", rs, Me(u.value) + " / " + Me(
|
|
3164
|
+
Q("span", rs, Me(u.value) + " / " + Me(g.value), 1)
|
|
3165
3165
|
]),
|
|
3166
3166
|
Q("div", {
|
|
3167
3167
|
class: "h-8 mt-1 overflow-hidden rounded-full bg-fm-color-neutral-gray-100",
|
|
@@ -3177,7 +3177,7 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
3177
3177
|
}, null, 4)
|
|
3178
3178
|
], 8, ls),
|
|
3179
3179
|
Q("p", ss, Me(I.value), 1)
|
|
3180
|
-
])) : S.value ? (j(),
|
|
3180
|
+
])) : S.value ? (j(), me("div", is, [
|
|
3181
3181
|
M(S.value.type) === "line" ? (j(), ye(X, {
|
|
3182
3182
|
key: 0,
|
|
3183
3183
|
class: "sparkline sparkline-chart",
|
|
@@ -3210,7 +3210,7 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
3210
3210
|
values: ((K = S.value.datasets[0]) == null ? void 0 : K.values) ?? [],
|
|
3211
3211
|
"percent-of-total": S.value.percentOfTotal === !0
|
|
3212
3212
|
}, null, 8, ["dimensions", "values", "percent-of-total"]))
|
|
3213
|
-
])) : (j(),
|
|
3213
|
+
])) : (j(), me("div", us, [...A[1] || (A[1] = [
|
|
3214
3214
|
Q("div", { class: "sparkline" }, [
|
|
3215
3215
|
Q("div", { class: "flex flex-col gap-8" }, [
|
|
3216
3216
|
Q("div"),
|
|
@@ -3218,7 +3218,7 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
3218
3218
|
]),
|
|
3219
3219
|
Q("div", { class: "grow" })
|
|
3220
3220
|
], -1)
|
|
3221
|
-
])))
|
|
3221
|
+
])]))
|
|
3222
3222
|
]);
|
|
3223
3223
|
};
|
|
3224
3224
|
}
|
|
@@ -3227,7 +3227,7 @@ function fs(e, t) {
|
|
|
3227
3227
|
const n = be("FmMenuDivider");
|
|
3228
3228
|
return j(), ye(n);
|
|
3229
3229
|
}
|
|
3230
|
-
const
|
|
3230
|
+
const vs = /* @__PURE__ */ Jo(ds, [["render", fs]]), ms = "/assets/processTableData.worker-B7I6PElJ.js", ps = { class: "flex h-full flex-col" }, gs = { class: "my-4 shrink-0" }, hs = {
|
|
3231
3231
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
3232
3232
|
style: { backgroundColor: "#f9f9f9" }
|
|
3233
3233
|
}, ys = { class: "font-bold" }, bs = { class: "text-fm-color-neutral-gray-300" }, Cs = /* @__PURE__ */ ze({
|
|
@@ -3240,7 +3240,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3240
3240
|
}),
|
|
3241
3241
|
emits: ["update:modelValue"],
|
|
3242
3242
|
setup(e) {
|
|
3243
|
-
const { t, te: n } = kt(), o = at(e, "modelValue"), { country: r } = Ln(), { clearTileSorts: i, setTileSorts: a } = Qa(), u = Sn(),
|
|
3243
|
+
const { t, te: n } = kt(), o = at(e, "modelValue"), { country: r } = Ln(), { clearTileSorts: i, setTileSorts: a } = Qa(), u = Sn(), v = e, h = k([]), x = k(null), Y = c(() => {
|
|
3244
3244
|
var _;
|
|
3245
3245
|
return ((_ = o.value.data) == null ? void 0 : _.columns) || [{ label: "", key: "" }];
|
|
3246
3246
|
}), H = c(() => {
|
|
@@ -3249,7 +3249,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3249
3249
|
}), d = c(() => o.value.paged ?? null), b = c(() => o.value.colWidths ?? null), w = c(
|
|
3250
3250
|
() => o.value.rowHeight && o.value.rowHeight > 0 ? o.value.rowHeight : 48
|
|
3251
3251
|
);
|
|
3252
|
-
function
|
|
3252
|
+
function g() {
|
|
3253
3253
|
const _ = `${w.value}px`;
|
|
3254
3254
|
return {
|
|
3255
3255
|
height: _,
|
|
@@ -3363,7 +3363,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3363
3363
|
rows: L,
|
|
3364
3364
|
columns: F,
|
|
3365
3365
|
filter: W.value ?? "",
|
|
3366
|
-
globalSorts: Ea(
|
|
3366
|
+
globalSorts: Ea(h.value).map((ee) => ({
|
|
3367
3367
|
key: ee.key,
|
|
3368
3368
|
type: ee.type
|
|
3369
3369
|
})),
|
|
@@ -3371,14 +3371,14 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3371
3371
|
rollupPosition: S.value,
|
|
3372
3372
|
pageSize: C.value
|
|
3373
3373
|
};
|
|
3374
|
-
er(
|
|
3374
|
+
er(ms, le).then((ee) => {
|
|
3375
3375
|
_ === A && (ee != null && ee.error ? (u.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(ee.error), R.value = []) : R.value = So(ee.data || []));
|
|
3376
3376
|
});
|
|
3377
3377
|
}
|
|
3378
3378
|
Le(
|
|
3379
|
-
() =>
|
|
3379
|
+
() => h.value,
|
|
3380
3380
|
(_) => {
|
|
3381
|
-
|
|
3381
|
+
v.tileIndex === void 0 || v.tileIndex === null || a(v.tileIndex, _);
|
|
3382
3382
|
},
|
|
3383
3383
|
{ immediate: !0, deep: !0 }
|
|
3384
3384
|
);
|
|
@@ -3389,7 +3389,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3389
3389
|
rowsLength: _.length,
|
|
3390
3390
|
columns: L.map((ee) => ({ key: ee.key, type: ee.type, label: ee.label })),
|
|
3391
3391
|
filter: W.value ?? "",
|
|
3392
|
-
globalSorts:
|
|
3392
|
+
globalSorts: h.value.map((ee) => ({ key: ee.key, type: ee.type })),
|
|
3393
3393
|
grandTotalPosition: $.value,
|
|
3394
3394
|
rollupPosition: S.value,
|
|
3395
3395
|
pageSize: C.value,
|
|
@@ -3416,14 +3416,14 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3416
3416
|
d.value.setServerSorts(de ? [{ key: _, type: de }] : []);
|
|
3417
3417
|
return;
|
|
3418
3418
|
}
|
|
3419
|
-
const L =
|
|
3419
|
+
const L = h.value.find((le) => le.key === _);
|
|
3420
3420
|
if (!L) {
|
|
3421
|
-
|
|
3421
|
+
h.value.push({ key: _, type: Je.Asc });
|
|
3422
3422
|
return;
|
|
3423
3423
|
}
|
|
3424
|
-
L.type === Je.Asc ? L.type = Je.Desc : L.type === Je.Desc && (
|
|
3424
|
+
L.type === Je.Asc ? L.type = Je.Desc : L.type === Je.Desc && (h.value = h.value.filter((le) => le.key !== _));
|
|
3425
3425
|
}
|
|
3426
|
-
const
|
|
3426
|
+
const ne = c(() => {
|
|
3427
3427
|
var de;
|
|
3428
3428
|
const _ = (de = x.value) == null ? void 0 : de.$el, L = (_ == null ? void 0 : _.offsetHeight) ?? 0;
|
|
3429
3429
|
if (L <= 0) return 0;
|
|
@@ -3431,14 +3431,14 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3431
3431
|
return le > 0 ? le : 0;
|
|
3432
3432
|
}), ce = k(0);
|
|
3433
3433
|
Le(
|
|
3434
|
-
|
|
3434
|
+
ne,
|
|
3435
3435
|
(_) => {
|
|
3436
3436
|
_ > 0 && ce.value === 0 && (ce.value = _);
|
|
3437
3437
|
},
|
|
3438
3438
|
{ immediate: !0 }
|
|
3439
3439
|
);
|
|
3440
|
-
const
|
|
3441
|
-
() => d.value ? Math.max(1, Math.ceil(d.value.pageableRows /
|
|
3440
|
+
const pe = c(() => ce.value || 12), G = c(() => d.value ? pe.value : C.value), oe = c(
|
|
3441
|
+
() => d.value ? Math.max(1, Math.ceil(d.value.pageableRows / pe.value)) : 0
|
|
3442
3442
|
);
|
|
3443
3443
|
async function re({
|
|
3444
3444
|
pageIndex: _,
|
|
@@ -3450,7 +3450,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3450
3450
|
Le(
|
|
3451
3451
|
() => {
|
|
3452
3452
|
var _;
|
|
3453
|
-
return [((_ = d.value) == null ? void 0 : _.windowSize) ?? 0,
|
|
3453
|
+
return [((_ = d.value) == null ? void 0 : _.windowSize) ?? 0, pe.value];
|
|
3454
3454
|
},
|
|
3455
3455
|
([_, L]) => {
|
|
3456
3456
|
const F = d.value;
|
|
@@ -3458,10 +3458,10 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3458
3458
|
},
|
|
3459
3459
|
{ immediate: !0 }
|
|
3460
3460
|
);
|
|
3461
|
-
const
|
|
3461
|
+
const ge = c(() => {
|
|
3462
3462
|
var _;
|
|
3463
3463
|
return (_ = o.value.data) != null && _.columns ? o.value.data.columns.map((L, F) => {
|
|
3464
|
-
const le = wt(t, n, L.label, "other"), de = d.value ? d.value.serverSorts.find((Te) => Te.key === L.key) :
|
|
3464
|
+
const le = wt(t, n, L.label, "other"), de = d.value ? d.value.serverSorts.find((Te) => Te.key === L.key) : h.value.find((Te) => Te.key === L.key), ee = !!de, Ne = P(L.key), Ie = ee ? de.type === Je.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
|
|
3465
3465
|
return {
|
|
3466
3466
|
accessorKey: L.key,
|
|
3467
3467
|
header: () => {
|
|
@@ -3501,7 +3501,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3501
3501
|
"flex items-center gap-2 w-full min-w-0",
|
|
3502
3502
|
"whitespace-nowrap"
|
|
3503
3503
|
].join(" "),
|
|
3504
|
-
style:
|
|
3504
|
+
style: g()
|
|
3505
3505
|
},
|
|
3506
3506
|
[
|
|
3507
3507
|
Pt("span", rt(Ze.main)),
|
|
@@ -3516,18 +3516,18 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3516
3516
|
});
|
|
3517
3517
|
return (_, L) => {
|
|
3518
3518
|
const F = be("FmTable");
|
|
3519
|
-
return j(),
|
|
3520
|
-
Q("div",
|
|
3521
|
-
|
|
3519
|
+
return j(), me("div", ps, [
|
|
3520
|
+
Q("div", gs, [
|
|
3521
|
+
pt(_.$slots, "menu")
|
|
3522
3522
|
]),
|
|
3523
3523
|
Ce(F, {
|
|
3524
3524
|
ref_key: "table",
|
|
3525
3525
|
ref: x,
|
|
3526
|
-
"column-defs":
|
|
3526
|
+
"column-defs": ge.value,
|
|
3527
3527
|
"row-data": R.value,
|
|
3528
3528
|
"search-value": W.value,
|
|
3529
3529
|
"page-size": G.value,
|
|
3530
|
-
"page-count": d.value ?
|
|
3530
|
+
"page-count": d.value ? oe.value : void 0,
|
|
3531
3531
|
"shrink-at": !1,
|
|
3532
3532
|
"force-mobile-footer": !0,
|
|
3533
3533
|
class: "scrollbar-hide-table min-h-0 flex-1",
|
|
@@ -3542,14 +3542,14 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3542
3542
|
fn: Re(() => [
|
|
3543
3543
|
(j(), ye(Go($.value === l(qe).bottom ? "tfoot" : "tbody"), null, {
|
|
3544
3544
|
default: Re(() => [
|
|
3545
|
-
Q("tr",
|
|
3546
|
-
(j(!0),
|
|
3545
|
+
Q("tr", hs, [
|
|
3546
|
+
(j(!0), me(Ye, null, St(z.value, (le, de) => {
|
|
3547
3547
|
var ee, Ne;
|
|
3548
|
-
return j(),
|
|
3548
|
+
return j(), me("td", {
|
|
3549
3549
|
key: `${l(Kt)()}_${de}`,
|
|
3550
3550
|
class: "text-fm-color-typo-primary px-16",
|
|
3551
3551
|
style: Ve({
|
|
3552
|
-
...
|
|
3552
|
+
...g(),
|
|
3553
3553
|
...P((ee = Y.value[de]) == null ? void 0 : ee.key)
|
|
3554
3554
|
})
|
|
3555
3555
|
}, [
|
|
@@ -3560,7 +3560,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3560
3560
|
"w-full min-w-0",
|
|
3561
3561
|
"whitespace-nowrap"
|
|
3562
3562
|
]),
|
|
3563
|
-
style: Ve(
|
|
3563
|
+
style: Ve(g())
|
|
3564
3564
|
}, [
|
|
3565
3565
|
Q("p", ys, Me(O(le.main, Y.value[de])), 1),
|
|
3566
3566
|
Q("p", bs, Me(le.comparison && ((Ne = Y.value[de]) != null && Ne.aggregationType) ? `(${O(le.comparison, Y.value[de])})` : ""), 1)
|
|
@@ -3602,7 +3602,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3602
3602
|
() => an(i.value, o.value.length, {
|
|
3603
3603
|
preserveNullableValues: t.value.hasNullableMetric
|
|
3604
3604
|
})
|
|
3605
|
-
),
|
|
3605
|
+
), v = Qt("bar"), h = c(() => t.value.stackBarOverlap === !0), x = c(() => h.value === !1), Y = c(() => ({
|
|
3606
3606
|
...$.value,
|
|
3607
3607
|
stacked: x.value
|
|
3608
3608
|
})), H = c(() => ({
|
|
@@ -3614,33 +3614,33 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3614
3614
|
function b({
|
|
3615
3615
|
datasetIndex: B,
|
|
3616
3616
|
colorIndex: K,
|
|
3617
|
-
breakdownIndex:
|
|
3617
|
+
breakdownIndex: ne
|
|
3618
3618
|
}) {
|
|
3619
|
-
var
|
|
3620
|
-
const ce = t.value.chartColorBinding === Be.metric ? K : t.value.chartColorBinding === Be.breakdown ?
|
|
3619
|
+
var oe;
|
|
3620
|
+
const ce = t.value.chartColorBinding === Be.metric ? K : t.value.chartColorBinding === Be.breakdown ? ne : B, pe = (oe = t.value.chartColorLayers) == null ? void 0 : oe[ce], G = Number(pe);
|
|
3621
3621
|
return Number.isInteger(G) && G > 0 ? G : ce + 1;
|
|
3622
3622
|
}
|
|
3623
3623
|
const w = c(() => {
|
|
3624
3624
|
if (i.value.length > 0) {
|
|
3625
|
-
const B = u.value.map((K,
|
|
3625
|
+
const B = u.value.map((K, ne) => {
|
|
3626
3626
|
const ce = Jt({
|
|
3627
3627
|
datasets: u.value,
|
|
3628
|
-
datasetIndex:
|
|
3629
|
-
}),
|
|
3630
|
-
datasetIndex:
|
|
3628
|
+
datasetIndex: ne
|
|
3629
|
+
}), pe = a.value ? on(u.value, ce) : ce, G = Oe({
|
|
3630
|
+
datasetIndex: pe,
|
|
3631
3631
|
isCompare: !1,
|
|
3632
3632
|
metricCount: t.value.metricCount,
|
|
3633
3633
|
mode: t.value.chartColorBinding
|
|
3634
|
-
}),
|
|
3635
|
-
datasetIndex:
|
|
3634
|
+
}), oe = Oe({
|
|
3635
|
+
datasetIndex: pe,
|
|
3636
3636
|
isCompare: !1,
|
|
3637
3637
|
metricCount: t.value.metricCount,
|
|
3638
3638
|
mode: Be.metric
|
|
3639
3639
|
}), re = Vt({
|
|
3640
|
-
fallbackIndex:
|
|
3640
|
+
fallbackIndex: pe,
|
|
3641
3641
|
metricCount: t.value.metricCount
|
|
3642
|
-
}),
|
|
3643
|
-
datasetIndex:
|
|
3642
|
+
}), ge = b({
|
|
3643
|
+
datasetIndex: pe,
|
|
3644
3644
|
colorIndex: G,
|
|
3645
3645
|
breakdownIndex: re
|
|
3646
3646
|
});
|
|
@@ -3656,11 +3656,11 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3656
3656
|
dash: !!K.isCompare,
|
|
3657
3657
|
skipNull: a.value,
|
|
3658
3658
|
minBarLength: void 0,
|
|
3659
|
-
grouped:
|
|
3660
|
-
order:
|
|
3659
|
+
grouped: h.value ? !1 : void 0,
|
|
3660
|
+
order: h.value ? ge : void 0,
|
|
3661
3661
|
backgroundColor: t.value.chartColorBinding === Be.breakdown ? zt({
|
|
3662
3662
|
breakdownIndex: re,
|
|
3663
|
-
metricIndex:
|
|
3663
|
+
metricIndex: oe,
|
|
3664
3664
|
metricCount: t.value.metricCount,
|
|
3665
3665
|
isCompare: K.isCompare,
|
|
3666
3666
|
breakdownColors: t.value.chartBreakdownColors,
|
|
@@ -3674,11 +3674,11 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3674
3674
|
}
|
|
3675
3675
|
};
|
|
3676
3676
|
});
|
|
3677
|
-
return
|
|
3677
|
+
return h.value ? B.map((K) => K.dataset) : B.map((K) => K.dataset);
|
|
3678
3678
|
} else
|
|
3679
3679
|
return [];
|
|
3680
3680
|
}), {
|
|
3681
|
-
isTooltipDetailsSheetOpen:
|
|
3681
|
+
isTooltipDetailsSheetOpen: g,
|
|
3682
3682
|
tooltipDetailsPayload: I,
|
|
3683
3683
|
handleTooltipDetailsSheetVisibility: P,
|
|
3684
3684
|
handleTooltipDetailsHover: W,
|
|
@@ -3702,11 +3702,11 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3702
3702
|
baseDatasets: w
|
|
3703
3703
|
});
|
|
3704
3704
|
return (B, K) => {
|
|
3705
|
-
var ce,
|
|
3706
|
-
const
|
|
3707
|
-
return j(),
|
|
3705
|
+
var ce, pe, G, oe, re, ge;
|
|
3706
|
+
const ne = be("FmBarChart");
|
|
3707
|
+
return j(), me(Ye, null, [
|
|
3708
3708
|
Q("div", xs, [
|
|
3709
|
-
|
|
3709
|
+
pt(B.$slots, "menu"),
|
|
3710
3710
|
Q("div", {
|
|
3711
3711
|
class: Fe(["chart-layout", {
|
|
3712
3712
|
"chart-layout--side": l(ue) && (l(O).display ?? !1) && l(A)
|
|
@@ -3718,7 +3718,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3718
3718
|
enabled: l(O).display ?? !1,
|
|
3719
3719
|
position: l(R),
|
|
3720
3720
|
"text-color": (ce = l(O).labels) == null ? void 0 : ce.color,
|
|
3721
|
-
"font-size": (G = (
|
|
3721
|
+
"font-size": (G = (pe = l(O).labels) == null ? void 0 : pe.font) == null ? void 0 : G.size,
|
|
3722
3722
|
"legend-update-key": l(X),
|
|
3723
3723
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
3724
3724
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -3729,7 +3729,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3729
3729
|
"hidden-dataset-keys": l(q),
|
|
3730
3730
|
onToggleDatasetVisibility: l(U)
|
|
3731
3731
|
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : we("", !0),
|
|
3732
|
-
Ce(
|
|
3732
|
+
Ce(ne, {
|
|
3733
3733
|
ref_key: "chartRef",
|
|
3734
3734
|
ref: n,
|
|
3735
3735
|
class: "bar-chart",
|
|
@@ -3741,7 +3741,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3741
3741
|
stacked: x.value,
|
|
3742
3742
|
legend: d.value,
|
|
3743
3743
|
tooltip: l(S),
|
|
3744
|
-
plugins: [l(
|
|
3744
|
+
plugins: [l(v)],
|
|
3745
3745
|
datalabels: l(D),
|
|
3746
3746
|
"maintain-aspect-ratio": !1
|
|
3747
3747
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "legend", "tooltip", "plugins", "datalabels"]),
|
|
@@ -3750,8 +3750,8 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3750
3750
|
"chart-ref": n.value,
|
|
3751
3751
|
enabled: l(O).display ?? !1,
|
|
3752
3752
|
position: l(R),
|
|
3753
|
-
"text-color": (
|
|
3754
|
-
"font-size": (
|
|
3753
|
+
"text-color": (oe = l(O).labels) == null ? void 0 : oe.color,
|
|
3754
|
+
"font-size": (ge = (re = l(O).labels) == null ? void 0 : re.font) == null ? void 0 : ge.size,
|
|
3755
3755
|
"legend-update-key": l(X),
|
|
3756
3756
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
3757
3757
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -3765,7 +3765,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3765
3765
|
], 2)
|
|
3766
3766
|
]),
|
|
3767
3767
|
Ce(en, {
|
|
3768
|
-
"model-value": l(
|
|
3768
|
+
"model-value": l(g),
|
|
3769
3769
|
"details-payload": l(I),
|
|
3770
3770
|
"onUpdate:modelValue": l(P),
|
|
3771
3771
|
onValueHover: l(W),
|
|
@@ -3798,7 +3798,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3798
3798
|
() => an(i.value, o.value.length, {
|
|
3799
3799
|
preserveNullableValues: t.value.hasNullableMetric
|
|
3800
3800
|
})
|
|
3801
|
-
),
|
|
3801
|
+
), v = Qt("bar"), h = c(() => t.value.stackBarOverlap === !0), x = c(() => h.value === !1), Y = c(() => !a.value && o.value.length === 1 && i.value.some((G) => G.isCompare === !0)), H = c(() => ({
|
|
3802
3802
|
...O.value,
|
|
3803
3803
|
stacked: x.value
|
|
3804
3804
|
})), d = c(() => ({
|
|
@@ -3806,29 +3806,29 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3806
3806
|
stacked: x.value
|
|
3807
3807
|
}));
|
|
3808
3808
|
function b(G) {
|
|
3809
|
-
const
|
|
3809
|
+
const re = G.lastIndexOf(" - ");
|
|
3810
3810
|
return re < 0 ? {
|
|
3811
3811
|
clusterKey: G,
|
|
3812
3812
|
metricLabel: G
|
|
3813
3813
|
} : {
|
|
3814
3814
|
clusterKey: G.slice(0, re),
|
|
3815
|
-
metricLabel: G.slice(re +
|
|
3815
|
+
metricLabel: G.slice(re + 3)
|
|
3816
3816
|
};
|
|
3817
3817
|
}
|
|
3818
|
-
function w(G,
|
|
3818
|
+
function w(G, oe) {
|
|
3819
3819
|
if (typeof G == "string") {
|
|
3820
3820
|
const re = G.trim();
|
|
3821
3821
|
if (re.length > 0)
|
|
3822
3822
|
return re;
|
|
3823
3823
|
}
|
|
3824
|
-
return `Series ${
|
|
3824
|
+
return `Series ${oe + 1}`;
|
|
3825
3825
|
}
|
|
3826
|
-
function
|
|
3826
|
+
function g({
|
|
3827
3827
|
datasetIndex: G,
|
|
3828
|
-
colorIndex:
|
|
3828
|
+
colorIndex: oe
|
|
3829
3829
|
}) {
|
|
3830
3830
|
var L;
|
|
3831
|
-
const re = t.value.chartColorBinding === Be.metric ?
|
|
3831
|
+
const re = t.value.chartColorBinding === Be.metric ? oe : G, ge = (L = t.value.chartColorLayers) == null ? void 0 : L[re], _ = Number(ge);
|
|
3832
3832
|
return Number.isInteger(_) && _ > 0 ? _ : re + 1;
|
|
3833
3833
|
}
|
|
3834
3834
|
function I(G) {
|
|
@@ -3853,14 +3853,14 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3853
3853
|
index: le,
|
|
3854
3854
|
name: w(F == null ? void 0 : F.name, le),
|
|
3855
3855
|
values: (F == null ? void 0 : F.values) ?? []
|
|
3856
|
-
})),
|
|
3856
|
+
})), oe = /* @__PURE__ */ new Map(), re = /* @__PURE__ */ new Map();
|
|
3857
3857
|
for (const F of G) {
|
|
3858
3858
|
const { clusterKey: le, metricLabel: de } = b(F.name);
|
|
3859
|
-
re.has(le) || re.set(le, re.size),
|
|
3859
|
+
re.has(le) || re.set(le, re.size), oe.has(de) || oe.set(de, oe.size);
|
|
3860
3860
|
}
|
|
3861
|
-
const
|
|
3861
|
+
const ge = Math.max(oe.size, 1), _ = t.value.chartColorBinding === Be.breakdown, L = t.value.chartUseSecondaryMetricShades !== !1;
|
|
3862
3862
|
return G.map((F) => {
|
|
3863
|
-
var
|
|
3863
|
+
var gt;
|
|
3864
3864
|
const le = Jt({
|
|
3865
3865
|
datasets: u.value,
|
|
3866
3866
|
datasetIndex: F.index
|
|
@@ -3872,10 +3872,10 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3872
3872
|
isCompare: !1,
|
|
3873
3873
|
metricCount: t.value.metricCount,
|
|
3874
3874
|
mode: t.value.chartColorBinding
|
|
3875
|
-
}), { clusterKey: Ie, metricLabel: Te } = b(F.name), Ze = ((
|
|
3875
|
+
}), { clusterKey: Ie, metricLabel: Te } = b(F.name), Ze = ((gt = G[ee]) == null ? void 0 : gt.name) ?? F.name, { clusterKey: ft, metricLabel: rt } = b(Ze), lt = re.get(ft) ?? re.get(Ie) ?? 0, Qe = oe.get(rt) ?? 0, st = _ ? zt({
|
|
3876
3876
|
breakdownIndex: lt,
|
|
3877
3877
|
metricIndex: Qe,
|
|
3878
|
-
metricCount:
|
|
3878
|
+
metricCount: ge,
|
|
3879
3879
|
isCompare: F.source.isCompare,
|
|
3880
3880
|
breakdownColors: t.value.chartBreakdownColors,
|
|
3881
3881
|
useSecondaryMetricShades: L,
|
|
@@ -3884,7 +3884,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3884
3884
|
index: Ne,
|
|
3885
3885
|
isCompare: F.source.isCompare,
|
|
3886
3886
|
customColors: t.value.chartColors
|
|
3887
|
-
}), Tt =
|
|
3887
|
+
}), Tt = g({
|
|
3888
3888
|
datasetIndex: de,
|
|
3889
3889
|
colorIndex: Ne
|
|
3890
3890
|
}), et = nn(F.values);
|
|
@@ -3900,7 +3900,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3900
3900
|
minBarLength: void 0,
|
|
3901
3901
|
barPercentage: Y.value ? Kn : void 0,
|
|
3902
3902
|
grouped: !0,
|
|
3903
|
-
order:
|
|
3903
|
+
order: h.value ? Tt : void 0,
|
|
3904
3904
|
stack: F.source.isCompare ? `${Ie}__compare` : `${Ie}__main`,
|
|
3905
3905
|
backgroundColor: st
|
|
3906
3906
|
};
|
|
@@ -3923,38 +3923,38 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3923
3923
|
isLegendBeforeChart: X,
|
|
3924
3924
|
hiddenDatasetKeys: B,
|
|
3925
3925
|
toggleDatasetVisibility: K,
|
|
3926
|
-
datasets:
|
|
3926
|
+
datasets: ne
|
|
3927
3927
|
} = tn({
|
|
3928
3928
|
chartRef: n,
|
|
3929
3929
|
model: t,
|
|
3930
3930
|
baseDatasets: P
|
|
3931
3931
|
}), ce = c(() => {
|
|
3932
3932
|
if (!Y.value)
|
|
3933
|
-
return
|
|
3933
|
+
return ne.value;
|
|
3934
3934
|
const G = [];
|
|
3935
|
-
return
|
|
3935
|
+
return ne.value.forEach((oe, re) => {
|
|
3936
3936
|
G.push({
|
|
3937
|
-
...
|
|
3937
|
+
...oe,
|
|
3938
3938
|
barPercentage: Kn
|
|
3939
3939
|
});
|
|
3940
|
-
const
|
|
3941
|
-
|
|
3940
|
+
const ge = ne.value[re + 1];
|
|
3941
|
+
oe.dash === !0 && ge && G.push(I(re));
|
|
3942
3942
|
}), G;
|
|
3943
|
-
}),
|
|
3943
|
+
}), pe = c(() => ({
|
|
3944
3944
|
display: !1,
|
|
3945
3945
|
labels: {
|
|
3946
|
-
filter: (G,
|
|
3947
|
-
var re,
|
|
3948
|
-
return !((
|
|
3946
|
+
filter: (G, oe) => {
|
|
3947
|
+
var re, ge;
|
|
3948
|
+
return !((ge = (re = oe.datasets) == null ? void 0 : re[G.datasetIndex ?? -1]) != null && ge.isSpacer);
|
|
3949
3949
|
}
|
|
3950
3950
|
}
|
|
3951
3951
|
}));
|
|
3952
|
-
return (G,
|
|
3953
|
-
var
|
|
3952
|
+
return (G, oe) => {
|
|
3953
|
+
var ge, _, L, F, le, de;
|
|
3954
3954
|
const re = be("FmBarChart");
|
|
3955
|
-
return j(),
|
|
3955
|
+
return j(), me(Ye, null, [
|
|
3956
3956
|
Q("div", _s, [
|
|
3957
|
-
|
|
3957
|
+
pt(G.$slots, "menu"),
|
|
3958
3958
|
Q("div", {
|
|
3959
3959
|
class: Fe(["chart-layout", {
|
|
3960
3960
|
"chart-layout--side": l(T) && (l(A).display ?? !1) && l(U)
|
|
@@ -3965,9 +3965,9 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3965
3965
|
"chart-ref": n.value,
|
|
3966
3966
|
enabled: l(A).display ?? !1,
|
|
3967
3967
|
position: l(q),
|
|
3968
|
-
"text-color": (
|
|
3968
|
+
"text-color": (ge = l(A).labels) == null ? void 0 : ge.color,
|
|
3969
3969
|
"font-size": (L = (_ = l(A).labels) == null ? void 0 : _.font) == null ? void 0 : L.size,
|
|
3970
|
-
"legend-update-key": l(
|
|
3970
|
+
"legend-update-key": l(ne),
|
|
3971
3971
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
3972
3972
|
"chart-color-binding": t.value.chartColorBinding,
|
|
3973
3973
|
"chart-colors": t.value.chartColors,
|
|
@@ -3987,9 +3987,9 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3987
3987
|
"y-cfg": d.value,
|
|
3988
3988
|
transpose: l(R),
|
|
3989
3989
|
stacked: x.value,
|
|
3990
|
-
legend:
|
|
3990
|
+
legend: pe.value,
|
|
3991
3991
|
tooltip: l(C),
|
|
3992
|
-
plugins: [l(
|
|
3992
|
+
plugins: [l(v)],
|
|
3993
3993
|
datalabels: l(z),
|
|
3994
3994
|
"maintain-aspect-ratio": !1
|
|
3995
3995
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "legend", "tooltip", "plugins", "datalabels"]),
|
|
@@ -4000,7 +4000,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
4000
4000
|
position: l(q),
|
|
4001
4001
|
"text-color": (F = l(A).labels) == null ? void 0 : F.color,
|
|
4002
4002
|
"font-size": (de = (le = l(A).labels) == null ? void 0 : le.font) == null ? void 0 : de.size,
|
|
4003
|
-
"legend-update-key": l(
|
|
4003
|
+
"legend-update-key": l(ne),
|
|
4004
4004
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
4005
4005
|
"chart-color-binding": t.value.chartColorBinding,
|
|
4006
4006
|
"chart-colors": t.value.chartColors,
|
|
@@ -4025,7 +4025,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
4025
4025
|
});
|
|
4026
4026
|
function ks(e) {
|
|
4027
4027
|
const t = Reflect.get(e, "lineStyle"), n = Reflect.get(e, "dash") === !0;
|
|
4028
|
-
return
|
|
4028
|
+
return vr(t, n);
|
|
4029
4029
|
}
|
|
4030
4030
|
function ba(e = "report-line-style-plugin") {
|
|
4031
4031
|
return {
|
|
@@ -4059,8 +4059,8 @@ const Ts = { class: "widget-content" }, Ls = /* @__PURE__ */ ze({
|
|
|
4059
4059
|
() => r.value.some((U) => U.xAxisIndex !== void 0)
|
|
4060
4060
|
), a = c(() => an(r.value, o.value.length)), u = c(
|
|
4061
4061
|
() => !i.value && o.value.length === 1 && r.value.length > 0 && r.value.every((U) => U.values.length === 1)
|
|
4062
|
-
),
|
|
4063
|
-
categories:
|
|
4062
|
+
), v = c(() => u.value ? ["", o.value[0], ""] : o.value), h = c(() => ({
|
|
4063
|
+
categories: v.value
|
|
4064
4064
|
})), x = c(() => ({
|
|
4065
4065
|
display: !1
|
|
4066
4066
|
})), Y = Qt("line"), H = ba("report-line-style-plugin-stack-line"), d = c(() => r.value.length > 0 ? [
|
|
@@ -4070,9 +4070,9 @@ const Ts = { class: "widget-content" }, Ls = /* @__PURE__ */ ze({
|
|
|
4070
4070
|
datasets: a.value,
|
|
4071
4071
|
datasetIndex: X
|
|
4072
4072
|
}), K = i.value ? on(a.value, B) : B;
|
|
4073
|
-
let
|
|
4074
|
-
u.value && (
|
|
4075
|
-
const ce = nn(
|
|
4073
|
+
let ne = U.values;
|
|
4074
|
+
u.value && (ne = [NaN, ne[0], NaN]);
|
|
4075
|
+
const ce = nn(ne), pe = Oe({
|
|
4076
4076
|
datasetIndex: K,
|
|
4077
4077
|
isCompare: !1,
|
|
4078
4078
|
metricCount: t.value.metricCount,
|
|
@@ -4082,15 +4082,15 @@ const Ts = { class: "widget-content" }, Ls = /* @__PURE__ */ ze({
|
|
|
4082
4082
|
isCompare: !1,
|
|
4083
4083
|
metricCount: t.value.metricCount,
|
|
4084
4084
|
mode: Be.metric
|
|
4085
|
-
}),
|
|
4085
|
+
}), oe = Oe({
|
|
4086
4086
|
datasetIndex: X,
|
|
4087
4087
|
isCompare: U.isCompare,
|
|
4088
4088
|
metricCount: t.value.metricCount,
|
|
4089
4089
|
mode: t.value.lineStyleBinding
|
|
4090
|
-
}), re = (F = t.value.lineStyles) == null ? void 0 : F[
|
|
4090
|
+
}), re = (F = t.value.lineStyles) == null ? void 0 : F[oe], ge = t.value.chartColorBinding === Be.breakdown, _ = Vt({
|
|
4091
4091
|
fallbackIndex: K,
|
|
4092
4092
|
metricCount: t.value.metricCount
|
|
4093
|
-
}), L =
|
|
4093
|
+
}), L = ge ? zt({
|
|
4094
4094
|
breakdownIndex: _,
|
|
4095
4095
|
metricIndex: G,
|
|
4096
4096
|
metricCount: t.value.metricCount,
|
|
@@ -4099,7 +4099,7 @@ const Ts = { class: "widget-content" }, Ls = /* @__PURE__ */ ze({
|
|
|
4099
4099
|
useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
|
|
4100
4100
|
customColors: t.value.chartColors
|
|
4101
4101
|
}) : dt({
|
|
4102
|
-
index:
|
|
4102
|
+
index: pe,
|
|
4103
4103
|
isCompare: U.isCompare,
|
|
4104
4104
|
customColors: t.value.chartColors
|
|
4105
4105
|
});
|
|
@@ -4121,7 +4121,7 @@ const Ts = { class: "widget-content" }, Ls = /* @__PURE__ */ ze({
|
|
|
4121
4121
|
] : []), {
|
|
4122
4122
|
isTooltipDetailsSheetOpen: b,
|
|
4123
4123
|
tooltipDetailsPayload: w,
|
|
4124
|
-
handleTooltipDetailsSheetVisibility:
|
|
4124
|
+
handleTooltipDetailsSheetVisibility: g,
|
|
4125
4125
|
handleTooltipDetailsHover: I,
|
|
4126
4126
|
handleTooltipDetailsLeave: P,
|
|
4127
4127
|
comparisonTooltip: W,
|
|
@@ -4143,11 +4143,11 @@ const Ts = { class: "widget-content" }, Ls = /* @__PURE__ */ ze({
|
|
|
4143
4143
|
baseDatasets: d
|
|
4144
4144
|
});
|
|
4145
4145
|
return (U, X) => {
|
|
4146
|
-
var K,
|
|
4146
|
+
var K, ne, ce, pe, G, oe;
|
|
4147
4147
|
const B = be("FmLineChart");
|
|
4148
|
-
return j(),
|
|
4148
|
+
return j(), me(Ye, null, [
|
|
4149
4149
|
Q("div", Ts, [
|
|
4150
|
-
|
|
4150
|
+
pt(U.$slots, "menu"),
|
|
4151
4151
|
Q("div", {
|
|
4152
4152
|
class: Fe(["chart-layout", {
|
|
4153
4153
|
"chart-layout--side": l(z) && (l(C).display ?? !1) && l(ue)
|
|
@@ -4159,7 +4159,7 @@ const Ts = { class: "widget-content" }, Ls = /* @__PURE__ */ ze({
|
|
|
4159
4159
|
enabled: l(C).display ?? !1,
|
|
4160
4160
|
position: l(O),
|
|
4161
4161
|
"text-color": (K = l(C).labels) == null ? void 0 : K.color,
|
|
4162
|
-
"font-size": (ce = (
|
|
4162
|
+
"font-size": (ce = (ne = l(C).labels) == null ? void 0 : ne.font) == null ? void 0 : ce.size,
|
|
4163
4163
|
"legend-update-key": l(q),
|
|
4164
4164
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
4165
4165
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -4175,7 +4175,7 @@ const Ts = { class: "widget-content" }, Ls = /* @__PURE__ */ ze({
|
|
|
4175
4175
|
ref: n,
|
|
4176
4176
|
class: "line-chart",
|
|
4177
4177
|
datasets: l(q),
|
|
4178
|
-
"x-axis":
|
|
4178
|
+
"x-axis": h.value,
|
|
4179
4179
|
"x-cfg": l(S),
|
|
4180
4180
|
"y-cfg": l(D),
|
|
4181
4181
|
transpose: l($),
|
|
@@ -4191,8 +4191,8 @@ const Ts = { class: "widget-content" }, Ls = /* @__PURE__ */ ze({
|
|
|
4191
4191
|
"chart-ref": n.value,
|
|
4192
4192
|
enabled: l(C).display ?? !1,
|
|
4193
4193
|
position: l(O),
|
|
4194
|
-
"text-color": (
|
|
4195
|
-
"font-size": (
|
|
4194
|
+
"text-color": (pe = l(C).labels) == null ? void 0 : pe.color,
|
|
4195
|
+
"font-size": (oe = (G = l(C).labels) == null ? void 0 : G.font) == null ? void 0 : oe.size,
|
|
4196
4196
|
"legend-update-key": l(q),
|
|
4197
4197
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
4198
4198
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -4208,7 +4208,7 @@ const Ts = { class: "widget-content" }, Ls = /* @__PURE__ */ ze({
|
|
|
4208
4208
|
Ce(en, {
|
|
4209
4209
|
"model-value": l(b),
|
|
4210
4210
|
"details-payload": l(w),
|
|
4211
|
-
"onUpdate:modelValue": l(
|
|
4211
|
+
"onUpdate:modelValue": l(g),
|
|
4212
4212
|
onValueHover: l(I),
|
|
4213
4213
|
onValueLeave: l(P)
|
|
4214
4214
|
}, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
|
|
@@ -4226,7 +4226,7 @@ function Ds(e) {
|
|
|
4226
4226
|
for (const o of t) n += String.fromCharCode(o);
|
|
4227
4227
|
return `${fo}${btoa(n)}`;
|
|
4228
4228
|
}
|
|
4229
|
-
function
|
|
4229
|
+
function mi(e) {
|
|
4230
4230
|
if (!Ca(e)) return e;
|
|
4231
4231
|
try {
|
|
4232
4232
|
const t = atob(e.slice(fo.length));
|
|
@@ -4251,17 +4251,17 @@ const Is = ["src"], Ps = /* @__PURE__ */ ze({
|
|
|
4251
4251
|
[Ot.ExtraLarge]: 32
|
|
4252
4252
|
})[t.size ?? Ot.Small]
|
|
4253
4253
|
), o = c(
|
|
4254
|
-
() => t.type ?? (t.icon.trim().startsWith("<svg") ?
|
|
4255
|
-
), r = c(() => o.value !==
|
|
4254
|
+
() => t.type ?? (t.icon.trim().startsWith("<svg") ? pn.Custom : pn.Material)
|
|
4255
|
+
), r = c(() => o.value !== pn.Custom || !t.icon.trim() ? "" : Ca(t.icon) ? t.icon : Ds(t.icon));
|
|
4256
4256
|
return (i, a) => {
|
|
4257
4257
|
const u = be("FmIcon");
|
|
4258
|
-
return o.value === l(
|
|
4258
|
+
return o.value === l(pn).Material && e.icon ? (j(), ye(u, {
|
|
4259
4259
|
key: 0,
|
|
4260
|
-
name:
|
|
4261
|
-
size:
|
|
4260
|
+
name: e.icon,
|
|
4261
|
+
size: e.size ?? "sm",
|
|
4262
4262
|
class: "shrink-0",
|
|
4263
4263
|
"aria-hidden": "true"
|
|
4264
|
-
}, null, 8, ["name", "size"])) : r.value ? (j(),
|
|
4264
|
+
}, null, 8, ["name", "size"])) : r.value ? (j(), me("img", {
|
|
4265
4265
|
key: 1,
|
|
4266
4266
|
src: r.value,
|
|
4267
4267
|
class: "title-icon shrink-0",
|
|
@@ -4271,7 +4271,7 @@ const Is = ["src"], Ps = /* @__PURE__ */ ze({
|
|
|
4271
4271
|
}, null, 12, Is)) : we("", !0);
|
|
4272
4272
|
};
|
|
4273
4273
|
}
|
|
4274
|
-
}),
|
|
4274
|
+
}), vo = [
|
|
4275
4275
|
"col-span-1",
|
|
4276
4276
|
"col-span-2",
|
|
4277
4277
|
"col-span-3",
|
|
@@ -4295,13 +4295,13 @@ function As(e) {
|
|
|
4295
4295
|
return Math.min(12, e * 3);
|
|
4296
4296
|
}
|
|
4297
4297
|
function Rs(e) {
|
|
4298
|
-
return
|
|
4298
|
+
return vo[Ms(e) - 1];
|
|
4299
4299
|
}
|
|
4300
4300
|
function Fs(e) {
|
|
4301
|
-
return
|
|
4301
|
+
return vo[Bs(e) - 1];
|
|
4302
4302
|
}
|
|
4303
4303
|
function Ns(e) {
|
|
4304
|
-
return
|
|
4304
|
+
return vo[As(e) - 1];
|
|
4305
4305
|
}
|
|
4306
4306
|
const Vs = 150, $s = 200;
|
|
4307
4307
|
function zs(e, t) {
|
|
@@ -4325,10 +4325,10 @@ const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
|
4325
4325
|
return ((X = t.value.data) == null ? void 0 : X.xAxis) ?? [];
|
|
4326
4326
|
}), i = c(
|
|
4327
4327
|
() => o.value.some((X) => X.xAxisIndex !== void 0)
|
|
4328
|
-
), a = c(() => an(o.value, r.value.length)), u = c(() => !i.value && r.value.length === 1 && o.value.length > 1 && o.value.every((X) => X.values.length === 1 && X.isCompare !== !0)),
|
|
4328
|
+
), a = c(() => an(o.value, r.value.length)), u = c(() => !i.value && r.value.length === 1 && o.value.length > 1 && o.value.every((X) => X.values.length === 1 && X.isCompare !== !0)), v = c(
|
|
4329
4329
|
() => !i.value && r.value.length === 1 && o.value.length > 0 && o.value.every((X) => X.values.length === 1)
|
|
4330
|
-
),
|
|
4331
|
-
categories:
|
|
4330
|
+
), h = c(() => u.value ? o.value.map((X) => X.name) : v.value ? ["", r.value[0], ""] : r.value), x = c(() => ({
|
|
4331
|
+
categories: h.value
|
|
4332
4332
|
})), Y = c(() => ({
|
|
4333
4333
|
display: !1
|
|
4334
4334
|
})), H = Qt("line"), d = ba("report-line-style-plugin-line"), b = c(() => o.value.length > 0 ? [
|
|
@@ -4337,13 +4337,13 @@ const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
|
4337
4337
|
const K = Jt({
|
|
4338
4338
|
datasets: a.value,
|
|
4339
4339
|
datasetIndex: B
|
|
4340
|
-
}),
|
|
4341
|
-
datasetIndex:
|
|
4340
|
+
}), ne = i.value ? on(a.value, K) : K, ce = Oe({
|
|
4341
|
+
datasetIndex: ne,
|
|
4342
4342
|
isCompare: !1,
|
|
4343
4343
|
metricCount: t.value.metricCount,
|
|
4344
4344
|
mode: t.value.chartColorBinding
|
|
4345
|
-
}),
|
|
4346
|
-
datasetIndex:
|
|
4345
|
+
}), pe = Oe({
|
|
4346
|
+
datasetIndex: ne,
|
|
4347
4347
|
isCompare: !1,
|
|
4348
4348
|
metricCount: t.value.metricCount,
|
|
4349
4349
|
mode: Be.metric
|
|
@@ -4351,12 +4351,12 @@ const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
|
4351
4351
|
index: ce,
|
|
4352
4352
|
isCompare: X.isCompare,
|
|
4353
4353
|
customColors: t.value.chartColors
|
|
4354
|
-
}),
|
|
4355
|
-
fallbackIndex:
|
|
4354
|
+
}), oe = t.value.chartColorBinding === Be.breakdown, re = Vt({
|
|
4355
|
+
fallbackIndex: ne,
|
|
4356
4356
|
metricCount: t.value.metricCount
|
|
4357
|
-
}),
|
|
4357
|
+
}), ge = oe ? zt({
|
|
4358
4358
|
breakdownIndex: re,
|
|
4359
|
-
metricIndex:
|
|
4359
|
+
metricIndex: pe,
|
|
4360
4360
|
metricCount: t.value.metricCount,
|
|
4361
4361
|
isCompare: X.isCompare,
|
|
4362
4362
|
breakdownColors: t.value.chartBreakdownColors,
|
|
@@ -4366,8 +4366,8 @@ const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
|
4366
4366
|
let _ = X.values;
|
|
4367
4367
|
u.value ? _ = a.value.map(
|
|
4368
4368
|
(Ne, Ie) => Ie === B ? X.values[0] : NaN
|
|
4369
|
-
) :
|
|
4370
|
-
const L = nn(_), F =
|
|
4369
|
+
) : v.value && (_ = [NaN, _[0], NaN]);
|
|
4370
|
+
const L = nn(_), F = v.value || u.value, le = Oe({
|
|
4371
4371
|
datasetIndex: B,
|
|
4372
4372
|
isCompare: X.isCompare,
|
|
4373
4373
|
metricCount: t.value.metricCount,
|
|
@@ -4380,17 +4380,17 @@ const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
|
4380
4380
|
dash: !!X.isCompare,
|
|
4381
4381
|
lineStyle: de,
|
|
4382
4382
|
fill: !1,
|
|
4383
|
-
color:
|
|
4383
|
+
color: ge,
|
|
4384
4384
|
pointRadius: F ? 4 : void 0,
|
|
4385
4385
|
pointHoverRadius: F ? 6 : void 0,
|
|
4386
|
-
pointBackgroundColor: F ?
|
|
4387
|
-
pointBorderColor: F ?
|
|
4386
|
+
pointBackgroundColor: F ? ge : void 0,
|
|
4387
|
+
pointBorderColor: F ? ge : void 0,
|
|
4388
4388
|
pointBorderWidth: F ? 2 : void 0
|
|
4389
4389
|
};
|
|
4390
4390
|
})
|
|
4391
4391
|
] : []), {
|
|
4392
4392
|
isTooltipDetailsSheetOpen: w,
|
|
4393
|
-
tooltipDetailsPayload:
|
|
4393
|
+
tooltipDetailsPayload: g,
|
|
4394
4394
|
handleTooltipDetailsSheetVisibility: I,
|
|
4395
4395
|
handleTooltipDetailsHover: P,
|
|
4396
4396
|
handleTooltipDetailsLeave: W,
|
|
@@ -4413,11 +4413,11 @@ const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
|
4413
4413
|
baseDatasets: b
|
|
4414
4414
|
});
|
|
4415
4415
|
return (X, B) => {
|
|
4416
|
-
var
|
|
4416
|
+
var ne, ce, pe, G, oe, re;
|
|
4417
4417
|
const K = be("FmLineChart");
|
|
4418
|
-
return j(),
|
|
4418
|
+
return j(), me(Ye, null, [
|
|
4419
4419
|
Q("div", Hs, [
|
|
4420
|
-
|
|
4420
|
+
pt(X.$slots, "menu"),
|
|
4421
4421
|
Q("div", {
|
|
4422
4422
|
class: Fe(["chart-layout", {
|
|
4423
4423
|
"chart-layout--side": l(O) && (l(z).display ?? !1) && l(R)
|
|
@@ -4428,8 +4428,8 @@ const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
|
4428
4428
|
"chart-ref": n.value,
|
|
4429
4429
|
enabled: l(z).display ?? !1,
|
|
4430
4430
|
position: l(ue),
|
|
4431
|
-
"text-color": (
|
|
4432
|
-
"font-size": (
|
|
4431
|
+
"text-color": (ne = l(z).labels) == null ? void 0 : ne.color,
|
|
4432
|
+
"font-size": (pe = (ce = l(z).labels) == null ? void 0 : ce.font) == null ? void 0 : pe.size,
|
|
4433
4433
|
"legend-update-key": l(U),
|
|
4434
4434
|
"chart-color-binding": t.value.chartColorBinding,
|
|
4435
4435
|
"chart-colors": t.value.chartColors,
|
|
@@ -4461,7 +4461,7 @@ const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
|
4461
4461
|
enabled: l(z).display ?? !1,
|
|
4462
4462
|
position: l(ue),
|
|
4463
4463
|
"text-color": (G = l(z).labels) == null ? void 0 : G.color,
|
|
4464
|
-
"font-size": (re = (
|
|
4464
|
+
"font-size": (re = (oe = l(z).labels) == null ? void 0 : oe.font) == null ? void 0 : re.size,
|
|
4465
4465
|
"legend-update-key": l(U),
|
|
4466
4466
|
"chart-color-binding": t.value.chartColorBinding,
|
|
4467
4467
|
"chart-colors": t.value.chartColors,
|
|
@@ -4476,7 +4476,7 @@ const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
|
4476
4476
|
]),
|
|
4477
4477
|
Ce(en, {
|
|
4478
4478
|
"model-value": l(w),
|
|
4479
|
-
"details-payload": l(
|
|
4479
|
+
"details-payload": l(g),
|
|
4480
4480
|
"onUpdate:modelValue": l(I),
|
|
4481
4481
|
onValueHover: l(P),
|
|
4482
4482
|
onValueLeave: l(W)
|
|
@@ -4495,7 +4495,7 @@ const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
|
4495
4495
|
}),
|
|
4496
4496
|
emits: ["update:modelValue"],
|
|
4497
4497
|
setup(e) {
|
|
4498
|
-
const { t } = kt(), { FmForm: n } = ur, o = e, r = k(), i = at(e, "modelValue"), a = k(!0), u = k(!1),
|
|
4498
|
+
const { t } = kt(), { FmForm: n } = ur, o = e, r = k(), i = at(e, "modelValue"), a = k(!0), u = k(!1), v = Sn(), { selectedLocationIds: h, dateRange: x, timeRange: Y } = At(_n()), H = k(Hn.PORTRAIT);
|
|
4499
4499
|
function d() {
|
|
4500
4500
|
var w;
|
|
4501
4501
|
(w = r.value) == null || w.validateInputs();
|
|
@@ -4510,25 +4510,25 @@ const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
|
4510
4510
|
isCombinedLocationLayout: a.value,
|
|
4511
4511
|
timeRange: Y.value,
|
|
4512
4512
|
dateRange: x.value,
|
|
4513
|
-
locationIds:
|
|
4513
|
+
locationIds: h.value
|
|
4514
4514
|
});
|
|
4515
4515
|
} catch (w) {
|
|
4516
|
-
|
|
4516
|
+
v.open({ message: w.message, type: "error" });
|
|
4517
4517
|
} finally {
|
|
4518
4518
|
u.value = !1;
|
|
4519
4519
|
}
|
|
4520
4520
|
}
|
|
4521
|
-
return (w,
|
|
4521
|
+
return (w, g) => {
|
|
4522
4522
|
const I = be("FmRadio"), P = be("FmRadioGroup"), W = be("FmButton"), M = be("FmDialog");
|
|
4523
4523
|
return j(), ye(M, {
|
|
4524
4524
|
modelValue: i.value,
|
|
4525
|
-
"onUpdate:modelValue":
|
|
4525
|
+
"onUpdate:modelValue": g[2] || (g[2] = (S) => i.value = S),
|
|
4526
4526
|
overlay: !0,
|
|
4527
4527
|
"z-index": 10
|
|
4528
4528
|
}, {
|
|
4529
|
-
"dialog-header": Re(() =>
|
|
4530
|
-
ja("Select Orientation")
|
|
4531
|
-
])),
|
|
4529
|
+
"dialog-header": Re(() => [...g[3] || (g[3] = [
|
|
4530
|
+
ja("Select Orientation", -1)
|
|
4531
|
+
])]),
|
|
4532
4532
|
default: Re(() => [
|
|
4533
4533
|
Ce(l(n), {
|
|
4534
4534
|
ref_key: "form",
|
|
@@ -4539,7 +4539,7 @@ const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
|
4539
4539
|
Q("div", Os, [
|
|
4540
4540
|
Ce(P, {
|
|
4541
4541
|
modelValue: H.value,
|
|
4542
|
-
"onUpdate:modelValue":
|
|
4542
|
+
"onUpdate:modelValue": g[0] || (g[0] = (S) => H.value = S)
|
|
4543
4543
|
}, {
|
|
4544
4544
|
default: Re(() => [
|
|
4545
4545
|
Ce(I, {
|
|
@@ -4555,11 +4555,11 @@ const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
|
4555
4555
|
}, 8, ["modelValue"])
|
|
4556
4556
|
]),
|
|
4557
4557
|
Q("div", Us, [
|
|
4558
|
-
|
|
4558
|
+
g[4] || (g[4] = Q("div", { class: "grow" }, null, -1)),
|
|
4559
4559
|
Ce(W, {
|
|
4560
4560
|
label: l(t)("report.common.cancel"),
|
|
4561
4561
|
variant: "tertiary",
|
|
4562
|
-
onClick:
|
|
4562
|
+
onClick: g[1] || (g[1] = (S) => i.value = !1)
|
|
4563
4563
|
}, null, 8, ["label"]),
|
|
4564
4564
|
Q("div", null, [
|
|
4565
4565
|
Ce(W, {
|
|
@@ -4580,7 +4580,7 @@ const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
|
4580
4580
|
});
|
|
4581
4581
|
function Ys(e) {
|
|
4582
4582
|
const { breakpoints: t } = qt(), { containerRef: n, isTable: o = k(!0) } = e;
|
|
4583
|
-
let r = k(1), i = null, a = null, u = null,
|
|
4583
|
+
let r = k(1), i = null, a = null, u = null, v = null, h = null, x = null;
|
|
4584
4584
|
function Y() {
|
|
4585
4585
|
return n.value ? n.value.querySelector("table") : null;
|
|
4586
4586
|
}
|
|
@@ -4617,7 +4617,7 @@ function Ys(e) {
|
|
|
4617
4617
|
pointer-events: auto;
|
|
4618
4618
|
`;
|
|
4619
4619
|
const $ = u.cloneNode(!0);
|
|
4620
|
-
$.style.cssText = "pointer-events: auto;", b(u, $), D.appendChild($), i.appendChild(D), document.body.appendChild(i), I(), P(), W(),
|
|
4620
|
+
$.style.cssText = "pointer-events: auto;", b(u, $), D.appendChild($), i.appendChild(D), document.body.appendChild(i), I(), P(), W(), g();
|
|
4621
4621
|
}
|
|
4622
4622
|
function b(D, $) {
|
|
4623
4623
|
const C = D.querySelectorAll("th, td"), z = $.querySelectorAll("th, td");
|
|
@@ -4666,7 +4666,7 @@ function Ys(e) {
|
|
|
4666
4666
|
}
|
|
4667
4667
|
return r.value;
|
|
4668
4668
|
}
|
|
4669
|
-
function
|
|
4669
|
+
function g() {
|
|
4670
4670
|
if (!i) return;
|
|
4671
4671
|
if (!a || !u || !n.value) {
|
|
4672
4672
|
i.style.visibility = "hidden";
|
|
@@ -4687,25 +4687,25 @@ function Ys(e) {
|
|
|
4687
4687
|
K && (K.style.width = `${a.offsetWidth}px`, K.style.marginLeft = `${C.left - U}px`);
|
|
4688
4688
|
}
|
|
4689
4689
|
function I() {
|
|
4690
|
-
|
|
4690
|
+
h = () => requestAnimationFrame(g), document.addEventListener("scroll", h, { capture: !0, passive: !0 }), window.addEventListener("resize", h, { passive: !0 });
|
|
4691
4691
|
}
|
|
4692
4692
|
function P() {
|
|
4693
|
-
|
|
4693
|
+
v = new ResizeObserver(() => {
|
|
4694
4694
|
if (u && i) {
|
|
4695
4695
|
const D = i.querySelector("thead");
|
|
4696
4696
|
D && b(u, D);
|
|
4697
4697
|
const $ = i.querySelector("table");
|
|
4698
4698
|
$ && a && ($.style.width = `${a.offsetWidth}px`);
|
|
4699
4699
|
}
|
|
4700
|
-
|
|
4701
|
-
}), n.value &&
|
|
4700
|
+
g();
|
|
4701
|
+
}), n.value && v.observe(n.value), a && v.observe(a);
|
|
4702
4702
|
}
|
|
4703
4703
|
function W() {
|
|
4704
4704
|
if (!u) return;
|
|
4705
4705
|
const D = Xn(() => d(), 100), $ = () => {
|
|
4706
4706
|
if (u && i) {
|
|
4707
4707
|
const C = i.querySelector("thead");
|
|
4708
|
-
C && b(u, C),
|
|
4708
|
+
C && b(u, C), g();
|
|
4709
4709
|
}
|
|
4710
4710
|
};
|
|
4711
4711
|
x = new MutationObserver((C) => {
|
|
@@ -4718,7 +4718,7 @@ function Ys(e) {
|
|
|
4718
4718
|
});
|
|
4719
4719
|
}
|
|
4720
4720
|
function M() {
|
|
4721
|
-
i && (i.remove(), i = null),
|
|
4721
|
+
i && (i.remove(), i = null), h && (document.removeEventListener("scroll", h, !0), window.removeEventListener("resize", h), h = null), v && (v.disconnect(), v = null), x && (x.disconnect(), x = null), a = null, u = null;
|
|
4722
4722
|
}
|
|
4723
4723
|
function S() {
|
|
4724
4724
|
d();
|
|
@@ -4726,7 +4726,7 @@ function Ys(e) {
|
|
|
4726
4726
|
return Le(o, (D) => {
|
|
4727
4727
|
D ? d() : M();
|
|
4728
4728
|
}), Le(r, () => {
|
|
4729
|
-
i && (i.style.top = `${r.value}px`,
|
|
4729
|
+
i && (i.style.top = `${r.value}px`, g());
|
|
4730
4730
|
}), Le(n, () => {
|
|
4731
4731
|
n.value && o.value && setTimeout(d, 100);
|
|
4732
4732
|
}), Gt(() => {
|
|
@@ -4736,7 +4736,7 @@ function Ys(e) {
|
|
|
4736
4736
|
}), { refresh: S, cleanup: M };
|
|
4737
4737
|
}
|
|
4738
4738
|
const xa = Symbol("report-page-nav");
|
|
4739
|
-
function
|
|
4739
|
+
function pi(e) {
|
|
4740
4740
|
Ga(xa, e);
|
|
4741
4741
|
}
|
|
4742
4742
|
function Xs() {
|
|
@@ -4775,7 +4775,7 @@ function Es(e) {
|
|
|
4775
4775
|
joinDatasources: t
|
|
4776
4776
|
};
|
|
4777
4777
|
}
|
|
4778
|
-
function
|
|
4778
|
+
function gi(e, t) {
|
|
4779
4779
|
let n = 1, o = 1;
|
|
4780
4780
|
switch (e) {
|
|
4781
4781
|
case Z.Scorecard:
|
|
@@ -4810,7 +4810,7 @@ function hi(e, t) {
|
|
|
4810
4810
|
}
|
|
4811
4811
|
};
|
|
4812
4812
|
}
|
|
4813
|
-
function
|
|
4813
|
+
function hi(e, t) {
|
|
4814
4814
|
return e.filter((n, o) => o !== t);
|
|
4815
4815
|
}
|
|
4816
4816
|
function Xo(e) {
|
|
@@ -4818,7 +4818,7 @@ function Xo(e) {
|
|
|
4818
4818
|
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();
|
|
4819
4819
|
}
|
|
4820
4820
|
function js(e, t, n = []) {
|
|
4821
|
-
var b, w,
|
|
4821
|
+
var b, w, g, I, P, W;
|
|
4822
4822
|
if (!e || !Array.isArray(e.columns) || !Array.isArray(e.rows))
|
|
4823
4823
|
return [];
|
|
4824
4824
|
const o = (M) => M.schemaName === t.schemaName && M.name === t.name && (t.option ? M.option === t.option : !0), r = n.findIndex(o);
|
|
@@ -4833,14 +4833,14 @@ function js(e, t, n = []) {
|
|
|
4833
4833
|
), a = e.rows.filter((M) => (M == null ? void 0 : M.isRollup) !== !0), u = i.findIndex(o);
|
|
4834
4834
|
if (u === -1)
|
|
4835
4835
|
return [];
|
|
4836
|
-
const
|
|
4836
|
+
const h = e.columns.reduce(
|
|
4837
4837
|
(M, S, D) => (((S == null ? void 0 : S.aggregationType) ?? null) === null && M.push(D), M),
|
|
4838
4838
|
[]
|
|
4839
4839
|
)[u];
|
|
4840
|
-
if (typeof
|
|
4840
|
+
if (typeof h == "number")
|
|
4841
4841
|
return a.map((M) => {
|
|
4842
4842
|
var S;
|
|
4843
|
-
return (S = M == null ? void 0 : M.cells) == null ? void 0 : S[
|
|
4843
|
+
return (S = M == null ? void 0 : M.cells) == null ? void 0 : S[h];
|
|
4844
4844
|
}).filter((M) => M != null);
|
|
4845
4845
|
const x = e.columns.reduce((M, S, D) => (String((S == null ? void 0 : S.type) ?? (S == null ? void 0 : S.dataType) ?? "").toUpperCase() === "STRING" && M.push(D), M), []), H = i.reduce(
|
|
4846
4846
|
(M, S, D) => {
|
|
@@ -4851,7 +4851,7 @@ function js(e, t, n = []) {
|
|
|
4851
4851
|
},
|
|
4852
4852
|
[]
|
|
4853
4853
|
).indexOf(u), d = H >= 0 ? x[H] ?? -1 : String(
|
|
4854
|
-
((I = (
|
|
4854
|
+
((I = (g = e.columns) == null ? void 0 : g[u]) == null ? void 0 : I.type) ?? ((W = (P = e.columns) == null ? void 0 : P[u]) == null ? void 0 : W.dataType) ?? ""
|
|
4855
4855
|
).toUpperCase() === "STRING" ? u : -1;
|
|
4856
4856
|
return d === -1 ? [] : a.map((M) => {
|
|
4857
4857
|
var S;
|
|
@@ -4910,22 +4910,22 @@ const Gs = {
|
|
|
4910
4910
|
}),
|
|
4911
4911
|
emits: /* @__PURE__ */ ot(["update:table-response"], ["update:modelValue"]),
|
|
4912
4912
|
setup(e, { emit: t }) {
|
|
4913
|
-
const n = k(!0), o = k(!1), r = at(e, "modelValue"), i = t, a = r.value.widget.config, { t: u, te:
|
|
4913
|
+
const n = k(!0), o = k(!1), r = at(e, "modelValue"), i = t, a = r.value.widget.config, { t: u, te: v, locale: h } = kt(), x = e, Y = k(null), H = c(() => r.value.widget.type === Z.Table), d = c(() => {
|
|
4914
4914
|
var f;
|
|
4915
4915
|
return (f = Y.value) == null ? void 0 : f.$el;
|
|
4916
4916
|
}), { refresh: b } = Ys({
|
|
4917
4917
|
containerRef: d,
|
|
4918
4918
|
isTable: H
|
|
4919
|
-
}), w = k(a.rollup),
|
|
4920
|
-
if (
|
|
4921
|
-
const f =
|
|
4919
|
+
}), w = k(a.rollup), g = k(Kt()), I = k(a.drillDimension), P = c(() => {
|
|
4920
|
+
if (mt.value.length > 0) {
|
|
4921
|
+
const f = mt.value.findIndex(
|
|
4922
4922
|
(J) => J.value === I.value
|
|
4923
4923
|
);
|
|
4924
4924
|
return f >= 0 ? f : 0;
|
|
4925
4925
|
} else
|
|
4926
4926
|
return -1;
|
|
4927
4927
|
}), W = c(() => P.value !== 0), M = c(
|
|
4928
|
-
() => P.value !=
|
|
4928
|
+
() => P.value != mt.value.length - 1
|
|
4929
4929
|
), S = k(a.showTitle ?? !0), D = k(a.titleFontSize ?? 14), $ = k(a.titleBold ?? !1), C = k(a.titleItalic ?? !1), z = k(a.titleUnderline ?? !1), O = k(
|
|
4930
4930
|
Array.isArray(a.chartColors) ? [...a.chartColors] : void 0
|
|
4931
4931
|
), ue = k(
|
|
@@ -4934,12 +4934,12 @@ const Gs = {
|
|
|
4934
4934
|
Array.isArray(a.chartBreakdownColors) ? [...a.chartBreakdownColors] : void 0
|
|
4935
4935
|
), A = k(a.chartUseSecondaryMetricShades ?? !0), T = k(a.chartColorBinding), q = k(
|
|
4936
4936
|
Array.isArray(a.lineStyles) ? [...a.lineStyles] : void 0
|
|
4937
|
-
), U = k(a.lineStyleBinding), X = k(a.showLabel ?? !1), B = k(a.labelAlign ?? Gn.center), K = k(a.labelAnchor ?? jn.center),
|
|
4937
|
+
), U = k(a.lineStyleBinding), X = k(a.showLabel ?? !1), B = k(a.labelAlign ?? Gn.center), K = k(a.labelAnchor ?? jn.center), ne = k(a.labelRotation ?? 0), ce = k(a.labelOffset ?? 0), pe = k(a.labelFontSize ?? 12), G = Sn(), oe = c(
|
|
4938
4938
|
() => {
|
|
4939
4939
|
var f;
|
|
4940
|
-
return ((f = ut.value) == null ? void 0 : f.showSearchBar) === !0 && (
|
|
4940
|
+
return ((f = ut.value) == null ? void 0 : f.showSearchBar) === !0 && (ve.value.config.showSearchBar ?? !0);
|
|
4941
4941
|
}
|
|
4942
|
-
), re = k(a.showX ?? !0),
|
|
4942
|
+
), re = k(a.showX ?? !0), ge = k(a.xPosition ?? qn.bottom), _ = k(a.showXGrid ?? !1), L = k(a.showXTick ?? !0), F = k(a.xTickFontSize ?? 12), le = k(a.showXTitle ?? !1), de = k(a.xTitle ?? ""), ee = k(a.xTitleFontSize ?? 12), Ne = k(a.showY ?? !0), Ie = k(a.yPosition ?? Jn.left), Te = k(a.showYGrid ?? !1), Ze = k(a.showYTick ?? !0), ft = k(a.yTickFontSize ?? 12), rt = k(a.showYTitle ?? !1), lt = k(a.yTitle ?? ""), Qe = k(a.yTitleFontSize ?? 12), st = k(a.showLegend ?? void 0), Tt = k(a.legendPosition ?? Zn.top), et = k(a.usePointStyle ?? !0), gt = k(a.legendFontSize), rn = k(a.legendColor ?? "#6b6b6b"), ln = k(a.maxTooltipItems), Ht = k(a.stackBarOverlap ?? !1), vt = k(a.rowHeight ?? null), sn = k(a.colWidths ?? null), Wt = k(!1), ht = k(""), { breakpoints: it, getBreakpointsBoundary: yt } = qt(), un = k(), Lt = k(window.innerWidth), Ae = c(
|
|
4943
4943
|
() => x.customScreenWidth === void 0 ? Lt.value : x.customScreenWidth
|
|
4944
4944
|
), In = c(
|
|
4945
4945
|
() => (Ae == null ? void 0 : Ae.value) > yt("xs")[1] && (Ae == null ? void 0 : Ae.value) <= yt("sm")[1]
|
|
@@ -4950,17 +4950,17 @@ const Gs = {
|
|
|
4950
4950
|
return Pn.value || cn.value ? Rs(f) : In.value ? Fs(f) : Ns(f);
|
|
4951
4951
|
}), ut = c(
|
|
4952
4952
|
() => cr.find((f) => f.type === r.value.widget.type)
|
|
4953
|
-
), s = Xs(),
|
|
4953
|
+
), s = Xs(), p = c(() => !!s && ar(r.value)), m = c(
|
|
4954
4954
|
() => {
|
|
4955
4955
|
var f, J, ie;
|
|
4956
|
-
return S.value ||
|
|
4956
|
+
return S.value || oe.value || p.value || (((f = ut.value) == null ? void 0 : f.showLabel) ?? !1) || (((J = ut.value) == null ? void 0 : J.showDrillDimension) ?? !1) && mt.value.length > 0 || (((ie = ut.value) == null ? void 0 : ie.showRollup) ?? !1) && $n.value.length > 0;
|
|
4957
4957
|
}
|
|
4958
4958
|
), y = Xn(async () => {
|
|
4959
|
-
Lt.value = window.innerWidth, un.value = $a(),
|
|
4959
|
+
Lt.value = window.innerWidth, un.value = $a(), g.value = Kt(), await jo(), b();
|
|
4960
4960
|
}), V = c(() => {
|
|
4961
4961
|
if (o.value)
|
|
4962
4962
|
return Wn;
|
|
4963
|
-
if (dr(
|
|
4963
|
+
if (dr(ve.value.type, N.value))
|
|
4964
4964
|
switch (r.value.widget.type) {
|
|
4965
4965
|
case Z.BarChart:
|
|
4966
4966
|
return Ul;
|
|
@@ -4977,7 +4977,7 @@ const Gs = {
|
|
|
4977
4977
|
case Z.Scorecard:
|
|
4978
4978
|
return cs;
|
|
4979
4979
|
case Z.Spacer:
|
|
4980
|
-
return
|
|
4980
|
+
return vs;
|
|
4981
4981
|
case Z.Table:
|
|
4982
4982
|
return Cs;
|
|
4983
4983
|
default:
|
|
@@ -4985,12 +4985,12 @@ const Gs = {
|
|
|
4985
4985
|
}
|
|
4986
4986
|
else
|
|
4987
4987
|
return Wn;
|
|
4988
|
-
}), N = k(null), te = 5e3, se = k(!1), E = k(""),
|
|
4988
|
+
}), N = k(null), te = 5e3, se = k(!1), E = k(""), he = k(!1), _e = k([]), Se = k(null), ae = k({ startIndex: 0, count: 0 });
|
|
4989
4989
|
let fe = null;
|
|
4990
4990
|
const ke = k(0), $e = c(
|
|
4991
4991
|
() => {
|
|
4992
4992
|
var f;
|
|
4993
|
-
return
|
|
4993
|
+
return ve.value.type === Z.Table ? ((f = N.value) == null ? void 0 : f.paging) ?? null : null;
|
|
4994
4994
|
}
|
|
4995
4995
|
), Ee = c(() => $e.value != null || se.value), je = c(() => Se.value ? 1 : 0);
|
|
4996
4996
|
function tt() {
|
|
@@ -5025,7 +5025,7 @@ const Gs = {
|
|
|
5025
5025
|
ie != null && ie.paging && (N.value = { ...ie, paging: { ...ie.paging, jobId: f } }), J && (ke.value = J), fe = { jobId: f, blocks: /* @__PURE__ */ new Map() };
|
|
5026
5026
|
}
|
|
5027
5027
|
async function An(f, J) {
|
|
5028
|
-
var bt,
|
|
5028
|
+
var bt, vn, mn;
|
|
5029
5029
|
const ie = $e.value;
|
|
5030
5030
|
if (!ie) {
|
|
5031
5031
|
Ge(f, J);
|
|
@@ -5038,12 +5038,12 @@ const Gs = {
|
|
|
5038
5038
|
Ge(f, J);
|
|
5039
5039
|
return;
|
|
5040
5040
|
}
|
|
5041
|
-
|
|
5041
|
+
he.value = !0;
|
|
5042
5042
|
let He = ie.jobId;
|
|
5043
5043
|
try {
|
|
5044
5044
|
for (const We of Ke) {
|
|
5045
5045
|
const xt = await ko({
|
|
5046
|
-
widget:
|
|
5046
|
+
widget: mo(),
|
|
5047
5047
|
signal: new AbortController().signal,
|
|
5048
5048
|
tileId: r.value.id,
|
|
5049
5049
|
pageRead: { jobId: He, startIndex: We, maxResults: xe },
|
|
@@ -5051,8 +5051,8 @@ const Gs = {
|
|
|
5051
5051
|
search: E.value || void 0
|
|
5052
5052
|
});
|
|
5053
5053
|
if (!xt || ((bt = $e.value) == null ? void 0 : bt.jobId) !== He) return;
|
|
5054
|
-
const It = (
|
|
5055
|
-
It && It !== He && (He = It, Bn(He, (
|
|
5054
|
+
const It = (vn = xt.paging) == null ? void 0 : vn.jobId;
|
|
5055
|
+
It && It !== He && (He = It, Bn(He, (mn = xt.paging) == null ? void 0 : mn.totalRows)), (fe == null ? void 0 : fe.jobId) !== He && (fe = { jobId: He, blocks: /* @__PURE__ */ new Map() }), fe.blocks.set(We, xt.rows);
|
|
5056
5056
|
}
|
|
5057
5057
|
Ge(f, J);
|
|
5058
5058
|
} catch (We) {
|
|
@@ -5062,18 +5062,18 @@ const Gs = {
|
|
|
5062
5062
|
}
|
|
5063
5063
|
G.open({ message: u("report.messages.errorLoading"), type: "error" }), console.error(We);
|
|
5064
5064
|
} finally {
|
|
5065
|
-
|
|
5065
|
+
he.value = !1;
|
|
5066
5066
|
}
|
|
5067
5067
|
}
|
|
5068
5068
|
function dn(f) {
|
|
5069
|
-
const J =
|
|
5069
|
+
const J = ve.value.config, ie = [J, ...J.joinDatasources ?? []];
|
|
5070
5070
|
for (const xe of ie)
|
|
5071
5071
|
for (const Pe of [...xe.dimensions ?? [], ...xe.metrics ?? []])
|
|
5072
5072
|
if (Xo(Pe) === f) return Pe;
|
|
5073
5073
|
return null;
|
|
5074
5074
|
}
|
|
5075
|
-
function
|
|
5076
|
-
if (_e.value.length === 0) return
|
|
5075
|
+
function mo() {
|
|
5076
|
+
if (_e.value.length === 0) return ve.value;
|
|
5077
5077
|
const f = _e.value.map((J) => {
|
|
5078
5078
|
const ie = dn(J.key);
|
|
5079
5079
|
return ie ? {
|
|
@@ -5084,25 +5084,25 @@ const Gs = {
|
|
|
5084
5084
|
type: J.type === Je.Desc ? Je.Desc : Je.Asc
|
|
5085
5085
|
} : null;
|
|
5086
5086
|
}).filter((J) => J != null);
|
|
5087
|
-
return f.length === 0 ?
|
|
5088
|
-
...
|
|
5089
|
-
config: { ...
|
|
5087
|
+
return f.length === 0 ? ve.value : {
|
|
5088
|
+
...ve.value,
|
|
5089
|
+
config: { ...ve.value.config, sorts: f }
|
|
5090
5090
|
};
|
|
5091
5091
|
}
|
|
5092
|
-
let
|
|
5092
|
+
let po;
|
|
5093
5093
|
Le(
|
|
5094
|
-
() =>
|
|
5094
|
+
() => ht.value,
|
|
5095
5095
|
(f) => {
|
|
5096
|
-
Ee.value && (clearTimeout(
|
|
5096
|
+
Ee.value && (clearTimeout(po), po = setTimeout(() => go(f.trim()), 500));
|
|
5097
5097
|
}
|
|
5098
5098
|
);
|
|
5099
|
-
function
|
|
5099
|
+
function go(f) {
|
|
5100
5100
|
f !== E.value && (E.value = f, tt(), Dt());
|
|
5101
5101
|
}
|
|
5102
5102
|
function wa(f) {
|
|
5103
5103
|
_e.value = f, tt(), Dt();
|
|
5104
5104
|
}
|
|
5105
|
-
const { selectedLocationIds: Rn, dateRange: Fn, compareDateRange: _a, timeRange: Nn } = At(_n()), Sa = rr(), { globalFilters: ka, lastAppliedTileFilterIds: Ta } = At(Sa), { businessDataVersion: Vn, dateSettingLoaded:
|
|
5105
|
+
const { selectedLocationIds: Rn, dateRange: Fn, compareDateRange: _a, timeRange: Nn } = At(_n()), Sa = rr(), { globalFilters: ka, lastAppliedTileFilterIds: Ta } = At(Sa), { businessDataVersion: Vn, dateSettingLoaded: ho } = At(_n()), { country: La } = At(Ln()), Da = k(!0), ve = c(() => {
|
|
5106
5106
|
const f = JSON.parse(JSON.stringify(r.value.widget));
|
|
5107
5107
|
return {
|
|
5108
5108
|
...f,
|
|
@@ -5115,10 +5115,10 @@ const Gs = {
|
|
|
5115
5115
|
};
|
|
5116
5116
|
}), Ia = c(() => {
|
|
5117
5117
|
var ie;
|
|
5118
|
-
const f = ((ie =
|
|
5119
|
-
if (!
|
|
5118
|
+
const f = ((ie = ve.value.config.metrics) == null ? void 0 : ie.length) ?? 0;
|
|
5119
|
+
if (!ve.value.config.isBlend)
|
|
5120
5120
|
return f;
|
|
5121
|
-
const J = (
|
|
5121
|
+
const J = (ve.value.config.joinDatasources ?? []).reduce(
|
|
5122
5122
|
(xe, Pe) => {
|
|
5123
5123
|
var De;
|
|
5124
5124
|
return xe + (((De = Pe.metrics) == null ? void 0 : De.length) ?? 0);
|
|
@@ -5127,8 +5127,8 @@ const Gs = {
|
|
|
5127
5127
|
);
|
|
5128
5128
|
return f + J;
|
|
5129
5129
|
}), Pa = c(() => [
|
|
5130
|
-
|
|
5131
|
-
...
|
|
5130
|
+
ve.value.config,
|
|
5131
|
+
...ve.value.config.isBlend ? ve.value.config.joinDatasources ?? [] : []
|
|
5132
5132
|
].some((J) => {
|
|
5133
5133
|
var ie;
|
|
5134
5134
|
return (ie = J.metrics) == null ? void 0 : ie.some((xe) => xe.nullable);
|
|
@@ -5158,11 +5158,11 @@ const Gs = {
|
|
|
5158
5158
|
showLabel: X.value,
|
|
5159
5159
|
labelAnchor: K.value,
|
|
5160
5160
|
labelAlign: B.value,
|
|
5161
|
-
labelRotation:
|
|
5161
|
+
labelRotation: ne.value,
|
|
5162
5162
|
labelOffset: ce.value,
|
|
5163
|
-
labelFontSize:
|
|
5163
|
+
labelFontSize: pe.value,
|
|
5164
5164
|
showX: re.value,
|
|
5165
|
-
xPosition:
|
|
5165
|
+
xPosition: ge.value,
|
|
5166
5166
|
showXGrid: _.value,
|
|
5167
5167
|
showXTick: L.value,
|
|
5168
5168
|
xTickFontSize: F.value,
|
|
@@ -5177,11 +5177,11 @@ const Gs = {
|
|
|
5177
5177
|
showYTitle: rt.value,
|
|
5178
5178
|
yTitleFontSize: Qe.value,
|
|
5179
5179
|
yTickFontSize: ft.value,
|
|
5180
|
-
isTransposed:
|
|
5180
|
+
isTransposed: ve.value.config.isTransposed,
|
|
5181
5181
|
showLegend: st.value,
|
|
5182
5182
|
legendPosition: Tt.value,
|
|
5183
5183
|
usePointStyle: et.value,
|
|
5184
|
-
legendFontSize:
|
|
5184
|
+
legendFontSize: gt.value,
|
|
5185
5185
|
legendColor: rn.value,
|
|
5186
5186
|
maxTooltipItems: ln.value,
|
|
5187
5187
|
stackBarOverlap: Ht.value
|
|
@@ -5195,23 +5195,23 @@ const Gs = {
|
|
|
5195
5195
|
rowOffset: je.value,
|
|
5196
5196
|
windowStart: ae.value.startIndex,
|
|
5197
5197
|
windowSize: ae.value.count,
|
|
5198
|
-
loading:
|
|
5198
|
+
loading: he.value,
|
|
5199
5199
|
grandTotalRow: Se.value,
|
|
5200
5200
|
goTo: An,
|
|
5201
5201
|
setServerSorts: wa,
|
|
5202
5202
|
serverSorts: _e.value,
|
|
5203
|
-
setServerSearch:
|
|
5203
|
+
setServerSearch: go,
|
|
5204
5204
|
serverSearch: E.value
|
|
5205
5205
|
} : void 0,
|
|
5206
|
-
filterText: Ee.value ? "" :
|
|
5207
|
-
rollupPosition:
|
|
5208
|
-
grandTotalLabel:
|
|
5209
|
-
rowHeight:
|
|
5206
|
+
filterText: Ee.value ? "" : ht.value,
|
|
5207
|
+
rollupPosition: ve.value.config.rollupPosition,
|
|
5208
|
+
grandTotalLabel: ve.value.config.grandTotalLabel,
|
|
5209
|
+
rowHeight: vt.value,
|
|
5210
5210
|
colWidths: sn.value
|
|
5211
5211
|
};
|
|
5212
5212
|
}
|
|
5213
5213
|
const yo = c(() => {
|
|
5214
|
-
switch (
|
|
5214
|
+
switch (ve.value.type) {
|
|
5215
5215
|
case Z.Table:
|
|
5216
5216
|
return Aa();
|
|
5217
5217
|
case Z.BarChart:
|
|
@@ -5224,7 +5224,7 @@ const Gs = {
|
|
|
5224
5224
|
case Z.Scorecard:
|
|
5225
5225
|
return {
|
|
5226
5226
|
data: N.value,
|
|
5227
|
-
sparklineTargetValue:
|
|
5227
|
+
sparklineTargetValue: ve.value.config.sparklineTargetValue
|
|
5228
5228
|
};
|
|
5229
5229
|
default:
|
|
5230
5230
|
return { data: N.value };
|
|
@@ -5234,19 +5234,19 @@ const Gs = {
|
|
|
5234
5234
|
if (f.rollup != null) {
|
|
5235
5235
|
const J = [...f.dimensions].filter((ie) => !ie.hide);
|
|
5236
5236
|
return [
|
|
5237
|
-
{ label: wt(u,
|
|
5238
|
-
{ label: wt(u,
|
|
5237
|
+
{ label: wt(u, v, "None", "other"), value: "none" },
|
|
5238
|
+
{ label: wt(u, v, "Grand Total", "other"), value: 0 },
|
|
5239
5239
|
...[...J].slice(0, J.length - 1).map((ie, xe) => ({
|
|
5240
|
-
label: wt(u,
|
|
5240
|
+
label: wt(u, v, ie.label, "other"),
|
|
5241
5241
|
value: xe + 1
|
|
5242
5242
|
}))
|
|
5243
5243
|
];
|
|
5244
5244
|
}
|
|
5245
5245
|
return [];
|
|
5246
|
-
}),
|
|
5247
|
-
const { config: f } =
|
|
5246
|
+
}), mt = c(() => {
|
|
5247
|
+
const { config: f } = ve.value;
|
|
5248
5248
|
return f.isDrillable ? f.dimensions.map((J) => ({
|
|
5249
|
-
label: wt(u,
|
|
5249
|
+
label: wt(u, v, J.label, "other"),
|
|
5250
5250
|
value: Xo(J)
|
|
5251
5251
|
})) : [];
|
|
5252
5252
|
}), Ra = c(
|
|
@@ -5262,7 +5262,7 @@ const Gs = {
|
|
|
5262
5262
|
Le(
|
|
5263
5263
|
() => r.value.widget.config,
|
|
5264
5264
|
(f) => {
|
|
5265
|
-
w.value = f.rollup, S.value = f.showTitle ?? !0, D.value = f.titleFontSize ?? 14, $.value = f.titleBold ?? !1, C.value = f.titleItalic ?? !1, z.value = f.titleUnderline ?? !1, O.value = Array.isArray(f.chartColors) ? [...f.chartColors] : void 0, ue.value = Array.isArray(f.chartColorLayers) ? [...f.chartColorLayers] : void 0, R.value = Array.isArray(f.chartBreakdownColors) ? [...f.chartBreakdownColors] : void 0, A.value = f.chartUseSecondaryMetricShades ?? !0, T.value = f.chartColorBinding, q.value = Array.isArray(f.lineStyles) ? [...f.lineStyles] : void 0, U.value = f.lineStyleBinding, X.value = f.showLabel ?? !1, B.value = f.labelAlign ?? Gn.center, K.value = f.labelAnchor ?? jn.center,
|
|
5265
|
+
w.value = f.rollup, S.value = f.showTitle ?? !0, D.value = f.titleFontSize ?? 14, $.value = f.titleBold ?? !1, C.value = f.titleItalic ?? !1, z.value = f.titleUnderline ?? !1, O.value = Array.isArray(f.chartColors) ? [...f.chartColors] : void 0, ue.value = Array.isArray(f.chartColorLayers) ? [...f.chartColorLayers] : void 0, R.value = Array.isArray(f.chartBreakdownColors) ? [...f.chartBreakdownColors] : void 0, A.value = f.chartUseSecondaryMetricShades ?? !0, T.value = f.chartColorBinding, q.value = Array.isArray(f.lineStyles) ? [...f.lineStyles] : void 0, U.value = f.lineStyleBinding, X.value = f.showLabel ?? !1, B.value = f.labelAlign ?? Gn.center, K.value = f.labelAnchor ?? jn.center, ne.value = f.labelRotation ?? 0, ce.value = f.labelOffset ?? 0, pe.value = f.labelFontSize ?? 12, re.value = f.showX ?? !0, ge.value = f.xPosition ?? qn.bottom, _.value = f.showXGrid ?? !1, L.value = f.showXTick ?? !0, F.value = f.xTickFontSize ?? 12, le.value = f.showXTitle ?? !1, de.value = f.xTitle ?? "", ee.value = f.xTitleFontSize ?? 12, Ne.value = f.showY ?? !0, Ie.value = f.yPosition ?? Jn.left, Te.value = f.showYGrid ?? !1, Ze.value = f.showYTick ?? !0, ft.value = f.yTickFontSize ?? 12, rt.value = f.showYTitle ?? !1, lt.value = f.yTitle ?? "", Qe.value = f.yTitleFontSize ?? 12, st.value = f.showLegend ?? void 0, Tt.value = f.legendPosition ?? Zn.top, et.value = f.usePointStyle ?? !0, gt.value = f.legendFontSize, rn.value = f.legendColor ?? "#6b6b6b", ln.value = f.maxTooltipItems, Ht.value = f.stackBarOverlap ?? !1, vt.value = f.rowHeight ?? null, sn.value = f.colWidths ?? null, g.value = Kt();
|
|
5266
5266
|
},
|
|
5267
5267
|
{ deep: !0, immediate: !0 }
|
|
5268
5268
|
), Le(
|
|
@@ -5290,13 +5290,13 @@ const Gs = {
|
|
|
5290
5290
|
{ deep: !0, flush: "pre" }
|
|
5291
5291
|
), Le(
|
|
5292
5292
|
[
|
|
5293
|
-
() =>
|
|
5293
|
+
() => ve.value,
|
|
5294
5294
|
() => Fn.value,
|
|
5295
5295
|
() => Nn.value,
|
|
5296
5296
|
() => _a.value,
|
|
5297
5297
|
() => Rn.value,
|
|
5298
5298
|
() => Vn.value,
|
|
5299
|
-
() =>
|
|
5299
|
+
() => ho.value
|
|
5300
5300
|
],
|
|
5301
5301
|
() => {
|
|
5302
5302
|
x.isEditingStyle || Dt();
|
|
@@ -5327,8 +5327,8 @@ const Gs = {
|
|
|
5327
5327
|
} = tr();
|
|
5328
5328
|
let fn;
|
|
5329
5329
|
async function Dt() {
|
|
5330
|
-
if (o.value = !1, !x.isEditingStyle &&
|
|
5331
|
-
if (
|
|
5330
|
+
if (o.value = !1, !x.isEditingStyle && ho.value) {
|
|
5331
|
+
if (ve.value.config.schemaNames.length <= 0 && !(ve.value.config.dimensions.length <= 0 || ve.value.config.metrics.length <= 0)) {
|
|
5332
5332
|
bo.open({
|
|
5333
5333
|
message: "schema must not be empty and dimension or metrics must have at least 1 column",
|
|
5334
5334
|
type: "info"
|
|
@@ -5342,24 +5342,24 @@ const Gs = {
|
|
|
5342
5342
|
ko,
|
|
5343
5343
|
500
|
|
5344
5344
|
)({
|
|
5345
|
-
widget:
|
|
5345
|
+
widget: mo(),
|
|
5346
5346
|
signal: f,
|
|
5347
5347
|
tileId: r.value.id,
|
|
5348
5348
|
// A table asks to be paged; the backend only pages when the result is
|
|
5349
5349
|
// bigger than one block, so small tables come back whole as before.
|
|
5350
|
-
page:
|
|
5350
|
+
page: ve.value.type === Z.Table ? { size: te } : void 0,
|
|
5351
5351
|
search: E.value || void 0
|
|
5352
5352
|
});
|
|
5353
5353
|
if (Vn.value === J) {
|
|
5354
5354
|
N.value = ie, Ue(ie);
|
|
5355
5355
|
const xe = [
|
|
5356
|
-
...
|
|
5357
|
-
...(
|
|
5356
|
+
...ve.value.config.dimensions,
|
|
5357
|
+
...(ve.value.config.joinDatasources ?? []).flatMap((Pe) => Pe.dimensions ?? [])
|
|
5358
5358
|
];
|
|
5359
5359
|
zn.value.length > 0 && zn.value.forEach((Pe) => {
|
|
5360
5360
|
const De = js(ie, Pe, xe), Ke = Array.from(new Set(De));
|
|
5361
5361
|
Fa(lr(Pe, x.reportId), Ke);
|
|
5362
|
-
}),
|
|
5362
|
+
}), g.value = Kt(), setTimeout(() => b(), 100);
|
|
5363
5363
|
}
|
|
5364
5364
|
n.value = !1;
|
|
5365
5365
|
} catch (f) {
|
|
@@ -5375,15 +5375,15 @@ const Gs = {
|
|
|
5375
5375
|
}
|
|
5376
5376
|
function za() {
|
|
5377
5377
|
const f = P.value - 1;
|
|
5378
|
-
f >= 0 && (I.value =
|
|
5378
|
+
f >= 0 && (I.value = mt.value[f].value);
|
|
5379
5379
|
}
|
|
5380
5380
|
function Ha() {
|
|
5381
5381
|
const f = P.value + 1;
|
|
5382
|
-
f >= 0 && f <
|
|
5382
|
+
f >= 0 && f < mt.value.length && (I.value = mt.value[f].value);
|
|
5383
5383
|
}
|
|
5384
5384
|
const xo = k(Mt.EXCEL), wo = k(), { setTileSearch: _o } = nr();
|
|
5385
5385
|
Le(
|
|
5386
|
-
() =>
|
|
5386
|
+
() => ht.value,
|
|
5387
5387
|
(f) => {
|
|
5388
5388
|
x.isTileEditor || _o(x.index, f);
|
|
5389
5389
|
}
|
|
@@ -5403,9 +5403,9 @@ const Gs = {
|
|
|
5403
5403
|
locationIds: Rn.value
|
|
5404
5404
|
}) : f === Mt.PDF && (xo.value = f, wo.value = x.index, Wt.value = !0);
|
|
5405
5405
|
}
|
|
5406
|
-
})), Oa = x.flat ||
|
|
5406
|
+
})), Oa = x.flat || ve.value.type === Z.Spacer ? "flat" : "outlined", Ua = ve.value.type === Z.Spacer ? "p-0" : "p-16", Ka = c(() => x.flat ? "w-full" : Mn.value);
|
|
5407
5407
|
return (f, J) => {
|
|
5408
|
-
const ie = be("FmTooltip"), xe = be("FmSearch"), Pe = be("FmCheckbox"), De = be("FmButton"), Ke = be("FmSelect"), He = be("FmMenuItem"), bt = be("FmMenu"),
|
|
5408
|
+
const ie = be("FmTooltip"), xe = be("FmSearch"), Pe = be("FmCheckbox"), De = be("FmButton"), Ke = be("FmSelect"), He = be("FmMenuItem"), bt = be("FmMenu"), vn = be("FmForm"), mn = be("FmCircularProgress"), We = be("FmCard");
|
|
5409
5409
|
return j(), ye(We, {
|
|
5410
5410
|
ref_key: "tileCard",
|
|
5411
5411
|
ref: Y,
|
|
@@ -5420,9 +5420,9 @@ const Gs = {
|
|
|
5420
5420
|
"file-type": xo.value,
|
|
5421
5421
|
index: wo.value
|
|
5422
5422
|
}, null, 8, ["modelValue", "file-type", "index"]),
|
|
5423
|
-
n.value ? (j(), ye(
|
|
5423
|
+
n.value ? (j(), ye(mn, { key: 1 })) : (j(), me("div", Gs, [
|
|
5424
5424
|
(j(), ye(Go(V.value), {
|
|
5425
|
-
key:
|
|
5425
|
+
key: g.value,
|
|
5426
5426
|
modelValue: yo.value,
|
|
5427
5427
|
"onUpdate:modelValue": J[5] || (J[5] = (Ct) => yo.value = Ct),
|
|
5428
5428
|
"tile-index": x.index,
|
|
@@ -5430,7 +5430,7 @@ const Gs = {
|
|
|
5430
5430
|
"sub-title": o.value ? l(u)("report.messages.errorLoadingHint") : void 0
|
|
5431
5431
|
}, {
|
|
5432
5432
|
menu: Re(() => [
|
|
5433
|
-
|
|
5433
|
+
m.value ? (j(), ye(vn, {
|
|
5434
5434
|
key: 0,
|
|
5435
5435
|
class: "flex items-center gap-2"
|
|
5436
5436
|
}, {
|
|
@@ -5440,18 +5440,18 @@ const Gs = {
|
|
|
5440
5440
|
Ce(ie, {
|
|
5441
5441
|
variant: "plain",
|
|
5442
5442
|
placement: "right",
|
|
5443
|
-
content:
|
|
5443
|
+
content: ve.value.description,
|
|
5444
5444
|
"hide-arrow": !0,
|
|
5445
|
-
disabled: !
|
|
5445
|
+
disabled: !ve.value.description,
|
|
5446
5446
|
"z-index": 99
|
|
5447
5447
|
}, {
|
|
5448
5448
|
default: Re(() => [
|
|
5449
|
-
S.value !== !1 ? (j(),
|
|
5450
|
-
|
|
5449
|
+
S.value !== !1 ? (j(), me("div", qs, [
|
|
5450
|
+
ve.value.type === l(Z).Scorecard && ve.value.config.titleIcon !== "" ? (j(), ye(Ps, {
|
|
5451
5451
|
key: 0,
|
|
5452
|
-
icon:
|
|
5453
|
-
type:
|
|
5454
|
-
size:
|
|
5452
|
+
icon: ve.value.config.titleIcon || "",
|
|
5453
|
+
type: ve.value.config.titleIconType,
|
|
5454
|
+
size: ve.value.config.titleIconSize
|
|
5455
5455
|
}, null, 8, ["icon", "type", "size"])) : we("", !0),
|
|
5456
5456
|
Q("p", {
|
|
5457
5457
|
style: Ve({
|
|
@@ -5464,19 +5464,19 @@ const Gs = {
|
|
|
5464
5464
|
class: Fe(["line-clamp-1", [
|
|
5465
5465
|
$.value ? "" : "text-fm-color-typo-secondary",
|
|
5466
5466
|
D.value <= 18 ? "fm-typo-en-body-md-400" : "",
|
|
5467
|
-
|
|
5467
|
+
ve.value.description ? "border-b-2 border-dashed border-gray-300" : ""
|
|
5468
5468
|
]])
|
|
5469
|
-
}, Me(l(wt)(l(u), l(
|
|
5469
|
+
}, Me(l(wt)(l(u), l(v), ve.value.title, "other")), 7)
|
|
5470
5470
|
])) : we("", !0)
|
|
5471
5471
|
]),
|
|
5472
5472
|
_: 1
|
|
5473
5473
|
}, 8, ["content", "disabled"]),
|
|
5474
|
-
|
|
5474
|
+
oe.value ? (j(), ye(xe, {
|
|
5475
5475
|
key: 0,
|
|
5476
|
-
modelValue:
|
|
5477
|
-
"onUpdate:modelValue": J[1] || (J[1] = (nt) =>
|
|
5476
|
+
modelValue: ht.value,
|
|
5477
|
+
"onUpdate:modelValue": J[1] || (J[1] = (nt) => ht.value = nt),
|
|
5478
5478
|
class: "grow"
|
|
5479
|
-
}, null, 8, ["modelValue"])) : (j(),
|
|
5479
|
+
}, null, 8, ["modelValue"])) : (j(), me("div", Js)),
|
|
5480
5480
|
Ja(Ce(Pe, {
|
|
5481
5481
|
modelValue: X.value,
|
|
5482
5482
|
"onUpdate:modelValue": J[2] || (J[2] = (nt) => X.value = nt),
|
|
@@ -5485,7 +5485,7 @@ const Gs = {
|
|
|
5485
5485
|
}, null, 8, ["modelValue"]), [
|
|
5486
5486
|
[Za, (Ct = ut.value) == null ? void 0 : Ct.showLabel]
|
|
5487
5487
|
]),
|
|
5488
|
-
(xt = ut.value) != null && xt.showDrillDimension &&
|
|
5488
|
+
(xt = ut.value) != null && xt.showDrillDimension && mt.value.length > 0 ? (j(), me("div", Zs, [
|
|
5489
5489
|
Ce(De, {
|
|
5490
5490
|
icon: "arrow_upward",
|
|
5491
5491
|
variant: "tertiary",
|
|
@@ -5500,13 +5500,13 @@ const Gs = {
|
|
|
5500
5500
|
}, null, 8, ["disabled"])
|
|
5501
5501
|
])) : we("", !0),
|
|
5502
5502
|
(It = ut.value) != null && It.showRollup && $n.value.length > 0 ? (j(), ye(Ke, {
|
|
5503
|
-
key: `rollup-${l(
|
|
5503
|
+
key: `rollup-${l(h)}`,
|
|
5504
5504
|
modelValue: w.value,
|
|
5505
5505
|
"onUpdate:modelValue": J[3] || (J[3] = (nt) => w.value = nt),
|
|
5506
5506
|
class: "w-[150px]",
|
|
5507
5507
|
items: $n.value
|
|
5508
5508
|
}, null, 8, ["modelValue", "items"])) : we("", !0),
|
|
5509
|
-
|
|
5509
|
+
p.value ? (j(), ye(De, {
|
|
5510
5510
|
key: 4,
|
|
5511
5511
|
icon: "arrow_forward",
|
|
5512
5512
|
variant: "tertiary",
|
|
@@ -5524,7 +5524,7 @@ const Gs = {
|
|
|
5524
5524
|
})
|
|
5525
5525
|
]),
|
|
5526
5526
|
default: Re(() => [
|
|
5527
|
-
(j(!0),
|
|
5527
|
+
(j(!0), me(Ye, null, St(l(Wa), (nt) => (j(), ye(He, {
|
|
5528
5528
|
key: nt.value,
|
|
5529
5529
|
label: nt.label,
|
|
5530
5530
|
onClick: nt.onClick
|
|
@@ -5554,17 +5554,17 @@ export {
|
|
|
5554
5554
|
Es as a,
|
|
5555
5555
|
jn as b,
|
|
5556
5556
|
Ft as c,
|
|
5557
|
-
|
|
5557
|
+
mi as d,
|
|
5558
5558
|
Ds as e,
|
|
5559
5559
|
Zo as f,
|
|
5560
5560
|
Xo as g,
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5561
|
+
hi as h,
|
|
5562
|
+
gi as i,
|
|
5563
|
+
vi as j,
|
|
5564
5564
|
Ps as k,
|
|
5565
5565
|
Rs as l,
|
|
5566
5566
|
Fs as m,
|
|
5567
5567
|
Ns as n,
|
|
5568
|
-
|
|
5568
|
+
pi as p,
|
|
5569
5569
|
zs as t
|
|
5570
5570
|
};
|