@feedmepos/mf-report 5.27.44 → 5.27.45
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-B-0VHXM1.js → App-qmp_wTqr.js} +105 -107
- package/dist/{DateRangeSelect-CGnROjSA.js → DateRangeSelect-DTc5W51W.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-B0E17Ovn.js → Default.vue_vue_type_script_setup_true_lang-Rfx_MV5j.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-DeajLQvr.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CgQT7aVu.js} +808 -807
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CqKnPfjr.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Ch8h7LYw.js} +2234 -2227
- package/dist/{InsightView-DLi1JKj-.js → InsightView-DTXLQI3y.js} +4 -4
- package/dist/{Integration-DcpEli4G.js → Integration-jDsdDTJe.js} +3 -3
- package/dist/{Integrations-FqE3NGWW.js → Integrations-Bw_gAgzo.js} +2 -2
- package/dist/{Layout-B3w9ncrY.js → Layout-KsXHFW6a.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DEZ9szG8.js → MenuTab.vue_vue_type_script_setup_true_lang-EX-uYhXm.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-hq2_fG5m.js → NavigationTab.vue_vue_type_script_setup_true_lang-CjkhnFr1.js} +3 -3
- package/dist/{OverviewView-C2q5HVfG.js → OverviewView-8gQ9VC5f.js} +4 -4
- package/dist/{Report-CpD-PQMF.js → Report-CyxE4Mk6.js} +34 -34
- package/dist/{ReportEditor-DY8bRLmi.js → ReportEditor-Bm5k5ZUc.js} +6 -6
- package/dist/{ReportView-kvAnnQQX.js → ReportView-B_EjiBA3.js} +6 -6
- package/dist/Setting-BEUoiP3V.js +368 -0
- package/dist/{Template-C-whg_Qs.js → Template-aCg-U8jo.js} +3 -3
- package/dist/{TileEditor-MvSW8uIv.js → TileEditor-BKfGFwLu.js} +5 -5
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-cNbphYz8.js → TilePageStack.vue_vue_type_script_setup_true_lang-C-x_Wda9.js} +2 -2
- package/dist/{TransitionFade-DqK-1YJF.js → TransitionFade-BEJ9_BKt.js} +4 -4
- package/dist/{app-Dpk_iYcH.js → app-5pQ-88Qg.js} +9264 -9269
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-NxArcyZE.js → formatChartData.worker-C93JSHxi.js} +5 -5
- package/dist/assets/{processTableData.worker-typkqQfh.js → processTableData.worker-BsZijJg_.js} +5 -5
- package/dist/{useRestaurantPermission-B5HIst3o.js → useRestaurantPermission-BIQpfucB.js} +1 -1
- package/package.json +2 -1
- package/dist/Setting-DIfsQKq7.js +0 -366
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { computed as c, defineComponent as
|
|
2
|
-
import { W as G, B as
|
|
3
|
-
import { l as dn, a as mn, u as
|
|
4
|
-
import { d as kn } from "./DateRangeSelect-
|
|
1
|
+
import { computed as c, defineComponent as Me, ref as P, watch as Te, onMounted as Ht, onBeforeUnmount as xo, resolveComponent as fe, createBlock as ce, openBlock as X, Transition as fa, withCtx as Le, createElementBlock as le, createCommentVNode as he, createElementVNode as q, unref as i, normalizeStyle as Pe, withModifiers as cn, toDisplayString as Ce, createVNode as pe, Fragment as Ne, renderList as ft, normalizeClass as De, nextTick as wo, mergeModels as We, useModel as Oe, renderSlot as nt, h as on, createSlots as ma, resolveDynamicComponent as _o, toRaw as pa, markRaw as ha, createTextVNode as ga, onUnmounted as So, provide as va, inject as ya, withDirectives as ba, vShow as Ca } from "vue";
|
|
2
|
+
import { W as G, B as xa, S as At, E as Nt, G as wa, F as Ft, e as an, H as xn, J as ko, f as _a, b as Sa, K as ka, L as Ta, N as La, R as xt, O as Da } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Ch8h7LYw.js";
|
|
3
|
+
import { l as dn, a as mn, u as To } from "./app-5pQ-88Qg.js";
|
|
4
|
+
import { d as kn } from "./DateRangeSelect-DTc5W51W.js";
|
|
5
5
|
import { storeToRefs as $t } from "pinia";
|
|
6
6
|
import { detectLocale as Nn } from "@feedmepos/mf-common";
|
|
7
7
|
import { C as Tn } from "./chart-DDDh8zNk.js";
|
|
8
|
-
import { useBreakpoints as Wt, useSnackbar as Vn, components as
|
|
9
|
-
import { u as
|
|
10
|
-
import { r as
|
|
11
|
-
import { _ as
|
|
12
|
-
var Vt = /* @__PURE__ */ ((e) => (e.line = "LINECHART", e.bar = "BARCHART", e.stackedBar = "STACKBARCHART", e.progress = "PROGRESS", e))(Vt || {}),
|
|
8
|
+
import { useBreakpoints as Wt, useSnackbar as Vn, components as Ia } from "@feedmepos/ui-library";
|
|
9
|
+
import { u as mt, _ as Lo } from "./_plugin-vue_export-helper-kkiiQoKl.js";
|
|
10
|
+
import { r as ut } from "./i18n-CI_sQ5d_.js";
|
|
11
|
+
import { _ as Qn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Ckn2p74A.js";
|
|
12
|
+
var Vt = /* @__PURE__ */ ((e) => (e.line = "LINECHART", e.bar = "BARCHART", e.stackedBar = "STACKBARCHART", e.progress = "PROGRESS", e))(Vt || {}), Ge = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(Ge || {}), Ln = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(Ln || {}), Dn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Dn || {}), In = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(In || {}), Pn = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Pn || {}), Mn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Mn || {}), we = /* @__PURE__ */ ((e) => (e.series = "SERIES", e.metric = "METRIC", e.breakdown = "BREAKDOWN", e))(we || {});
|
|
13
13
|
G.Circular, G.Table, G.BarChart, G.LineChart, G.StackBarChart, G.ClusteredStackBarChart, G.StackLineChart, G.Scorecard, G.Spacer;
|
|
14
|
-
const
|
|
14
|
+
const Pa = [
|
|
15
15
|
{
|
|
16
16
|
type: G.Circular,
|
|
17
17
|
showLabel: !1,
|
|
@@ -82,7 +82,7 @@ const Ia = [
|
|
|
82
82
|
showSearchBar: !1
|
|
83
83
|
}
|
|
84
84
|
];
|
|
85
|
-
function
|
|
85
|
+
function Ma(e, t) {
|
|
86
86
|
switch (e) {
|
|
87
87
|
case G.BarChart:
|
|
88
88
|
case G.LineChart:
|
|
@@ -100,7 +100,7 @@ function Pa(e, t) {
|
|
|
100
100
|
return !0;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
const
|
|
103
|
+
const St = [
|
|
104
104
|
"#36A2EB",
|
|
105
105
|
"#007BA7",
|
|
106
106
|
"#FF5D53",
|
|
@@ -112,34 +112,34 @@ const wt = [
|
|
|
112
112
|
"#8358D4",
|
|
113
113
|
"#9B5046"
|
|
114
114
|
];
|
|
115
|
-
function
|
|
115
|
+
function Do(e) {
|
|
116
116
|
const t = Math.max(1, Math.floor(e));
|
|
117
117
|
return Array.from({ length: t }, (n, o) => {
|
|
118
|
-
const a =
|
|
118
|
+
const a = St[o % St.length], r = Math.floor(o / St.length);
|
|
119
119
|
return r === 0 ? a : pn(a, Math.min(0.18 * r, 0.72));
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
|
-
const
|
|
123
|
-
function
|
|
122
|
+
const Bs = St.map(() => "solid");
|
|
123
|
+
function wt({
|
|
124
124
|
datasetIndex: e,
|
|
125
125
|
label: t
|
|
126
126
|
}) {
|
|
127
127
|
const n = typeof t == "string" ? t.trim().toLowerCase().replace(/\s+/g, " ") : "";
|
|
128
128
|
return `${e}:${n}`;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function Ba(e) {
|
|
131
131
|
return e === "dashed" || e === "dotted" ? e : "solid";
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Aa(e, t = !1) {
|
|
134
134
|
if (e == null)
|
|
135
135
|
return t ? [5, 5] : void 0;
|
|
136
|
-
const n =
|
|
136
|
+
const n = Ba(e);
|
|
137
137
|
if (n === "dashed")
|
|
138
138
|
return [8, 6];
|
|
139
139
|
if (n === "dotted")
|
|
140
140
|
return [2, 4];
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function Fe({
|
|
143
143
|
datasetIndex: e,
|
|
144
144
|
isCompare: t,
|
|
145
145
|
metricCount: n,
|
|
@@ -150,7 +150,7 @@ function Re({
|
|
|
150
150
|
const a = Number.isFinite(n) ? Number(n) : 0;
|
|
151
151
|
return a <= 0 ? e : t ? e >= a ? (e - a) % a : Math.max(0, (e - 1 + a) % a) : e % a;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Io({
|
|
154
154
|
datasets: e,
|
|
155
155
|
datasetIndex: t
|
|
156
156
|
}) {
|
|
@@ -178,7 +178,7 @@ function Ot({
|
|
|
178
178
|
datasetIndex: t
|
|
179
179
|
}) {
|
|
180
180
|
var a;
|
|
181
|
-
const n =
|
|
181
|
+
const n = Io({
|
|
182
182
|
datasets: e,
|
|
183
183
|
datasetIndex: t
|
|
184
184
|
});
|
|
@@ -191,12 +191,12 @@ function Ot({
|
|
|
191
191
|
}
|
|
192
192
|
return n;
|
|
193
193
|
}
|
|
194
|
-
const
|
|
194
|
+
const Fa = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
|
|
195
195
|
function zt(e) {
|
|
196
196
|
if (!e)
|
|
197
197
|
return null;
|
|
198
198
|
const t = e.trim();
|
|
199
|
-
if (!
|
|
199
|
+
if (!Fa.test(t))
|
|
200
200
|
return null;
|
|
201
201
|
if (t.length === 4) {
|
|
202
202
|
const [, n, o, a] = t;
|
|
@@ -204,7 +204,7 @@ function zt(e) {
|
|
|
204
204
|
}
|
|
205
205
|
return t.toUpperCase();
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Ra(e) {
|
|
208
208
|
const t = zt(e) ?? "#000000";
|
|
209
209
|
return {
|
|
210
210
|
red: Number.parseInt(t.slice(1, 3), 16),
|
|
@@ -212,15 +212,15 @@ function Fa(e) {
|
|
|
212
212
|
blue: Number.parseInt(t.slice(5, 7), 16)
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function Po(e) {
|
|
216
216
|
const t = Math.max(
|
|
217
|
-
|
|
217
|
+
St.length,
|
|
218
218
|
Array.isArray(e) ? e.length : 0
|
|
219
|
-
), n =
|
|
219
|
+
), n = Do(t);
|
|
220
220
|
return !Array.isArray(e) || e.length === 0 ? n : n.map((o, a) => zt(e[a]) ?? o);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
const { red: n, green: o, blue: a } =
|
|
222
|
+
function Mo(e, t) {
|
|
223
|
+
const { red: n, green: o, blue: a } = Ra(e);
|
|
224
224
|
return `rgba(${n}, ${o}, ${a}, ${t})`;
|
|
225
225
|
}
|
|
226
226
|
function pn(e, t) {
|
|
@@ -230,30 +230,30 @@ function pn(e, t) {
|
|
|
230
230
|
};
|
|
231
231
|
return `#${o(1)}${o(3)}${o(5)}`;
|
|
232
232
|
}
|
|
233
|
-
const
|
|
234
|
-
function
|
|
235
|
-
return pn(e,
|
|
233
|
+
const Na = 0.25, Bo = 0.7;
|
|
234
|
+
function Ao(e) {
|
|
235
|
+
return pn(e, Na);
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function eo(e) {
|
|
238
238
|
return Math.min(0.55 + (e - 1) * 0.18, 0.95);
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function Je({
|
|
241
241
|
index: e,
|
|
242
242
|
isCompare: t,
|
|
243
243
|
opacity: n,
|
|
244
244
|
customColors: o
|
|
245
245
|
}) {
|
|
246
|
-
const a =
|
|
246
|
+
const a = Po(o), r = a[e % a.length], l = t ? Ao(r) : r;
|
|
247
247
|
let u = typeof n == "number" ? n : 1;
|
|
248
|
-
return t && (u = u *
|
|
248
|
+
return t && (u = u * Bo), Mo(l, u);
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function Tt({
|
|
251
251
|
fallbackIndex: e,
|
|
252
252
|
metricCount: t
|
|
253
253
|
}) {
|
|
254
254
|
return Number.isInteger(t) && Number(t) > 0 ? Math.floor(e / Number(t)) : e;
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function Dt({
|
|
257
257
|
breakdownIndex: e,
|
|
258
258
|
metricIndex: t,
|
|
259
259
|
metricCount: n,
|
|
@@ -264,11 +264,11 @@ function Tt({
|
|
|
264
264
|
colorMode: u,
|
|
265
265
|
customColors: d
|
|
266
266
|
}) {
|
|
267
|
-
const m = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, L = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, U = l !== !1, y = e * m + L, v = u === "clustered" ?
|
|
267
|
+
const m = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, L = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, U = l !== !1, y = e * m + L, v = u === "clustered" ? Do(Math.max(St.length, e + 1)) : Po(d), h = zt(r == null ? void 0 : r[e * m]) ?? v[e % v.length], k = U && L > 0 ? pn(h, eo(L)) : zt(r == null ? void 0 : r[y]) ?? (L > 0 ? pn(h, eo(L)) : h), I = o ? Ao(k) : k;
|
|
268
268
|
let A = typeof a == "number" ? a : 1;
|
|
269
|
-
return o && (A = A *
|
|
269
|
+
return o && (A = A * Bo), Mo(I, A);
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function Fo(e, t, n) {
|
|
272
272
|
if (e === "" || t === "")
|
|
273
273
|
return null;
|
|
274
274
|
let o = (d) => d == null ? void 0 : d.replace(/,/g, "");
|
|
@@ -278,13 +278,13 @@ function Ao(e, t, n) {
|
|
|
278
278
|
return null;
|
|
279
279
|
let l = 0;
|
|
280
280
|
r === 0 ? a === 0 ? l = 0 : l = 1 : l = (a - r) / r;
|
|
281
|
-
const u =
|
|
281
|
+
const u = Va(l);
|
|
282
282
|
return {
|
|
283
283
|
value: isNaN(l) ? "" : `${(l * 100).toFixed(0)}%`,
|
|
284
284
|
icon: u
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function Va(e) {
|
|
288
288
|
return e > 0 ? {
|
|
289
289
|
name: "moving",
|
|
290
290
|
color: "#1F7735",
|
|
@@ -299,19 +299,19 @@ function Na(e) {
|
|
|
299
299
|
tailwind: "fm-color-neutral-gray-100"
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
|
-
const
|
|
303
|
-
function
|
|
304
|
-
return Nn() ||
|
|
302
|
+
const $a = "en-US";
|
|
303
|
+
function Ro() {
|
|
304
|
+
return Nn() || $a;
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function dt(e) {
|
|
307
307
|
if (e == null || e === "")
|
|
308
308
|
return "";
|
|
309
309
|
const t = String(e), n = Number(t);
|
|
310
310
|
if (isNaN(n)) return t;
|
|
311
|
-
const [o, a] = t.split("."), r = new Intl.NumberFormat(
|
|
311
|
+
const [o, a] = t.split("."), r = new Intl.NumberFormat(Ro()).format(Number(o));
|
|
312
312
|
return a !== void 0 ? `${r}.${a}` : r;
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function to(e, t) {
|
|
315
315
|
if (e == null || e === "")
|
|
316
316
|
return "";
|
|
317
317
|
const n = typeof e == "string" ? e.replace(/,/g, "") : e, o = Number(n);
|
|
@@ -319,7 +319,7 @@ function eo(e, t) {
|
|
|
319
319
|
return typeof e == "string" ? e : "";
|
|
320
320
|
if (Math.abs(o) < 1e3)
|
|
321
321
|
return String(o);
|
|
322
|
-
const a =
|
|
322
|
+
const a = Ro();
|
|
323
323
|
return new Intl.NumberFormat(a, {
|
|
324
324
|
notation: "compact",
|
|
325
325
|
compactDisplay: "short",
|
|
@@ -329,7 +329,7 @@ function eo(e, t) {
|
|
|
329
329
|
function Ut(e) {
|
|
330
330
|
return Object.entries(e).map(([t, n]) => `${t}:${n}`).join(";");
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function No(e) {
|
|
333
333
|
return {
|
|
334
334
|
mode: "index",
|
|
335
335
|
intersect: !1,
|
|
@@ -365,7 +365,7 @@ function Ro(e) {
|
|
|
365
365
|
titleMarginBottom: 6
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
|
-
const
|
|
368
|
+
const za = Ut({
|
|
369
369
|
display: "block",
|
|
370
370
|
padding: "0",
|
|
371
371
|
background: "none",
|
|
@@ -376,7 +376,7 @@ const $a = Ut({
|
|
|
376
376
|
cursor: "pointer",
|
|
377
377
|
"text-align": "left",
|
|
378
378
|
"pointer-events": "auto"
|
|
379
|
-
}),
|
|
379
|
+
}), Ha = {
|
|
380
380
|
"font-size": "13px",
|
|
381
381
|
"font-weight": "600",
|
|
382
382
|
color: "#111827",
|
|
@@ -384,7 +384,7 @@ const $a = Ut({
|
|
|
384
384
|
"white-space": "normal",
|
|
385
385
|
"word-break": "break-word",
|
|
386
386
|
"overflow-wrap": "anywhere"
|
|
387
|
-
},
|
|
387
|
+
}, Wa = Ut({
|
|
388
388
|
display: "flex",
|
|
389
389
|
"align-items": "flex-start",
|
|
390
390
|
"font-size": "13px",
|
|
@@ -394,13 +394,13 @@ const $a = Ut({
|
|
|
394
394
|
"line-height": "1.35",
|
|
395
395
|
margin: "0 0 3px",
|
|
396
396
|
overflow: "hidden"
|
|
397
|
-
}),
|
|
397
|
+
}), Oa = Ut({
|
|
398
398
|
flex: "1 1 auto",
|
|
399
399
|
"min-width": "0",
|
|
400
400
|
"white-space": "normal",
|
|
401
401
|
"word-break": "break-word",
|
|
402
402
|
"overflow-wrap": "anywhere"
|
|
403
|
-
}),
|
|
403
|
+
}), Ua = {
|
|
404
404
|
display: "inline-block",
|
|
405
405
|
width: "10px",
|
|
406
406
|
height: "10px",
|
|
@@ -409,7 +409,7 @@ const $a = Ut({
|
|
|
409
409
|
"box-sizing": "border-box",
|
|
410
410
|
"margin-right": "8px",
|
|
411
411
|
flex: "0 0 auto"
|
|
412
|
-
},
|
|
412
|
+
}, Ka = {
|
|
413
413
|
display: "inline-block",
|
|
414
414
|
width: "10px",
|
|
415
415
|
height: "10px",
|
|
@@ -420,9 +420,9 @@ const $a = Ut({
|
|
|
420
420
|
"margin-right": "8px",
|
|
421
421
|
flex: "0 0 auto"
|
|
422
422
|
};
|
|
423
|
-
function
|
|
423
|
+
function Xa() {
|
|
424
424
|
return {
|
|
425
|
-
...
|
|
425
|
+
...No(),
|
|
426
426
|
mode: "nearest",
|
|
427
427
|
intersect: !0,
|
|
428
428
|
usePointStyle: !0,
|
|
@@ -434,8 +434,8 @@ function Ka() {
|
|
|
434
434
|
}
|
|
435
435
|
};
|
|
436
436
|
}
|
|
437
|
-
const
|
|
438
|
-
function
|
|
437
|
+
const Ya = "rgba(0, 0, 0, 0.3)";
|
|
438
|
+
function no(e) {
|
|
439
439
|
if (typeof document > "u" || typeof window > "u")
|
|
440
440
|
return;
|
|
441
441
|
const t = String((e == null ? void 0 : e.id) ?? "");
|
|
@@ -448,9 +448,9 @@ function to(e) {
|
|
|
448
448
|
}
|
|
449
449
|
function wn(e, t, n, o) {
|
|
450
450
|
const { left: a, right: r, top: l, bottom: u } = n;
|
|
451
|
-
e.save(), e.beginPath(), e.lineWidth = 1, e.strokeStyle =
|
|
451
|
+
e.save(), e.beginPath(), e.lineWidth = 1, e.strokeStyle = Ya, e.setLineDash([5, 5]), t ? (e.moveTo(a, o), e.lineTo(r, o)) : (e.moveTo(o, l), e.lineTo(o, u)), e.stroke(), e.restore();
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Ea(e, t) {
|
|
454
454
|
if (typeof document > "u")
|
|
455
455
|
return;
|
|
456
456
|
const n = String((e == null ? void 0 : e.id) ?? "");
|
|
@@ -464,13 +464,13 @@ function Ya(e, t) {
|
|
|
464
464
|
const a = Number(t ? o.dataset.caretY : o.dataset.caretX);
|
|
465
465
|
return Number.isFinite(a) ? a : void 0;
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function qa(e, t, n) {
|
|
468
468
|
var h;
|
|
469
469
|
if (!n)
|
|
470
470
|
return;
|
|
471
471
|
const o = ((h = e.options) == null ? void 0 : h.indexAxis) === "y", a = e.tooltip, r = (a == null ? void 0 : a.getActiveElements()) ?? [];
|
|
472
472
|
if (r.length === 0) {
|
|
473
|
-
const k =
|
|
473
|
+
const k = Ea(e, o);
|
|
474
474
|
k !== void 0 && wn(e.ctx, o, e.chartArea, k);
|
|
475
475
|
return;
|
|
476
476
|
}
|
|
@@ -495,7 +495,7 @@ function Kt(e) {
|
|
|
495
495
|
return {
|
|
496
496
|
id: "crosshair",
|
|
497
497
|
afterDatasetsDraw: (o) => {
|
|
498
|
-
|
|
498
|
+
qa(o, e, n);
|
|
499
499
|
},
|
|
500
500
|
afterEvent: (o, a) => {
|
|
501
501
|
n = a.inChartArea === !0;
|
|
@@ -509,33 +509,33 @@ function Kt(e) {
|
|
|
509
509
|
t && (o.ctx.restore(), t = !1);
|
|
510
510
|
},
|
|
511
511
|
beforeDestroy: (o) => {
|
|
512
|
-
|
|
512
|
+
no(o);
|
|
513
513
|
},
|
|
514
514
|
afterDestroy: (o) => {
|
|
515
|
-
|
|
515
|
+
no(o);
|
|
516
516
|
}
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
|
-
const
|
|
520
|
-
let
|
|
521
|
-
const
|
|
522
|
-
function
|
|
519
|
+
const Ga = Number.POSITIVE_INFINITY, Bn = 2, ja = 1, Ja = 0.2, Za = 120, Qa = 320, er = 24, { breakpoints: _t } = Wt(), $n = "report-v5:locationchange";
|
|
520
|
+
let oo = !1;
|
|
521
|
+
const tr = "report.widget.comparisonTooltip";
|
|
522
|
+
function ao() {
|
|
523
523
|
window.dispatchEvent(new Event($n));
|
|
524
524
|
}
|
|
525
|
-
function
|
|
526
|
-
if (
|
|
525
|
+
function nr() {
|
|
526
|
+
if (oo)
|
|
527
527
|
return;
|
|
528
|
-
|
|
528
|
+
oo = !0;
|
|
529
529
|
const e = window.history.pushState.bind(window.history), t = window.history.replaceState.bind(window.history);
|
|
530
530
|
window.history.pushState = function(...o) {
|
|
531
531
|
const a = e(...o);
|
|
532
|
-
return
|
|
532
|
+
return ao(), a;
|
|
533
533
|
}, window.history.replaceState = function(...o) {
|
|
534
534
|
const a = t(...o);
|
|
535
|
-
return
|
|
535
|
+
return ao(), a;
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function or(e, t) {
|
|
539
539
|
const n = t.split(".");
|
|
540
540
|
let o = e;
|
|
541
541
|
for (const a of n) {
|
|
@@ -546,62 +546,62 @@ function nr(e, t) {
|
|
|
546
546
|
return typeof o == "string" ? o : void 0;
|
|
547
547
|
}
|
|
548
548
|
function zn(e) {
|
|
549
|
-
const t = `${
|
|
550
|
-
return
|
|
549
|
+
const t = `${tr}.${e}`, n = Nn(), o = dn[n];
|
|
550
|
+
return or(o, t) ?? t;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function Vo() {
|
|
553
553
|
return zn("viewBreakdown");
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function ro() {
|
|
556
556
|
return zn("current");
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function lo() {
|
|
559
559
|
return zn("compared");
|
|
560
560
|
}
|
|
561
561
|
function rn(e, t) {
|
|
562
562
|
const n = e.trim();
|
|
563
563
|
return n.length === 0 ? t : `${n} · ${t}`;
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function ar(e, t, n, o) {
|
|
566
566
|
var m;
|
|
567
|
-
const a =
|
|
567
|
+
const a = rr(e), r = (a == null ? void 0 : a[0]) ?? "", l = a == null ? void 0 : a[1], u = t.some((L) => $o(L)), d = typeof n == "number" ? (m = o == null ? void 0 : o[n]) == null ? void 0 : m.trim() : void 0;
|
|
568
568
|
return l ? {
|
|
569
|
-
firstTitle: rn(r,
|
|
570
|
-
secondTitle: rn(l,
|
|
569
|
+
firstTitle: rn(r, ro()),
|
|
570
|
+
secondTitle: rn(l, lo())
|
|
571
571
|
} : u ? {
|
|
572
|
-
firstTitle: rn(r,
|
|
572
|
+
firstTitle: rn(r, ro()),
|
|
573
573
|
secondTitle: rn(
|
|
574
574
|
d && d.length > 0 ? d : r,
|
|
575
|
-
|
|
575
|
+
lo()
|
|
576
576
|
)
|
|
577
577
|
} : {
|
|
578
578
|
firstTitle: r
|
|
579
579
|
};
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function rr(e) {
|
|
582
582
|
return e == null ? null : typeof e != "string" ? [] : e.split("#").map((t) => t.trim()).filter((t) => t.length > 0);
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function $o(e) {
|
|
585
585
|
return e.dash === !0 || e.isCompare === !0;
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function lr(e) {
|
|
588
588
|
return typeof e.label == "string" ? e.label : "N/A";
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function zo(e, t) {
|
|
591
591
|
let n;
|
|
592
592
|
return Array.isArray(e.data) && t < e.data.length && (n = e.data[t]), typeof n != "number" ? NaN : n;
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function sr(e, t) {
|
|
595
595
|
return `${e}: ${isNaN(t) ? "" : t.toLocaleString()}`;
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function ir(e, t) {
|
|
598
598
|
return e.type === "bar" ? !0 : t === "bar";
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function ur(e, t, n) {
|
|
601
601
|
const o = Rt(e.borderColor, t) || Rt(e.color, t), a = Rt(e.backgroundColor, t), r = Rt(e.pointBorderColor, t), l = Rt(e.pointBackgroundColor, t);
|
|
602
|
-
return n ?
|
|
602
|
+
return n ? so(a, l, o, r) : so(o, r, a, l);
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function cr(e) {
|
|
605
605
|
return e.trim().toLowerCase();
|
|
606
606
|
}
|
|
607
607
|
function Rt(e, t) {
|
|
@@ -611,79 +611,79 @@ function Rt(e, t) {
|
|
|
611
611
|
return typeof n == "string" ? n : void 0;
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function dr(e) {
|
|
615
615
|
if (typeof e != "string") return "#9ca3af";
|
|
616
616
|
const t = e.trim();
|
|
617
617
|
return /^[-#(),.%\sa-zA-Z0-9]+$/.test(t) ? t : "#9ca3af";
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function fr(e) {
|
|
620
620
|
const t = e.replace(/\s+/g, "").toLowerCase();
|
|
621
621
|
return !!(t === "transparent" || /^rgba\([^)]*,0(?:\.0+)?\)$/.test(t) || /^hsla\([^)]*,0(?:\.0+)?\)$/.test(t) || t === "#0000" || t === "#00000000");
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function so(...e) {
|
|
624
624
|
for (const t of e) {
|
|
625
625
|
if (!t) continue;
|
|
626
|
-
const n =
|
|
627
|
-
if (!
|
|
626
|
+
const n = dr(t);
|
|
627
|
+
if (!fr(n))
|
|
628
628
|
return n;
|
|
629
629
|
}
|
|
630
630
|
return "#9ca3af";
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function mr(e) {
|
|
633
633
|
const t = e.dataset, n = typeof e.dataIndex == "number" ? e.dataIndex : 0;
|
|
634
|
-
return Number.isFinite(
|
|
634
|
+
return Number.isFinite(zo(t, n));
|
|
635
635
|
}
|
|
636
636
|
function An(e) {
|
|
637
637
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/\"/g, """).replace(/'/g, "'");
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function pr(e) {
|
|
640
640
|
const t = typeof e == "number" ? e : typeof e == "string" ? Number(e) : Number.NaN;
|
|
641
|
-
return Number.isFinite(t) ? Math.max(Bn, Math.floor(t)) :
|
|
641
|
+
return Number.isFinite(t) ? Math.max(Bn, Math.floor(t)) : Ga;
|
|
642
642
|
}
|
|
643
|
-
function
|
|
644
|
-
return e <= 0 ? 320 :
|
|
643
|
+
function hr(e) {
|
|
644
|
+
return e <= 0 ? 320 : _t.value.xs || _t.value.sm || e <= 640 ? Math.max(160, Math.floor(e * 0.38)) : _t.value.md || e <= 900 ? Math.max(200, Math.floor(e * 0.46)) : _t.value.lg || e <= 1200 ? Math.max(240, Math.floor(e * 0.54)) : Math.max(280, Math.floor(e * 0.62));
|
|
645
645
|
}
|
|
646
646
|
function Hn(e, t) {
|
|
647
|
-
const n = window.innerHeight, o =
|
|
647
|
+
const n = window.innerHeight, o = hr(n), a = t ? Math.max(120, t.clientHeight - 16) : Number.POSITIVE_INFINITY, r = Math.max(120, Math.min(o, a));
|
|
648
648
|
e.style.maxHeight = `${r}px`;
|
|
649
649
|
}
|
|
650
|
-
function
|
|
651
|
-
return
|
|
650
|
+
function ct() {
|
|
651
|
+
return _t.value.xs || _t.value.sm;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function kt(e) {
|
|
654
654
|
return e.dataset.pinned === "true";
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function Ho(e, t) {
|
|
657
657
|
if (t) {
|
|
658
658
|
e.dataset.pinned = "true";
|
|
659
659
|
return;
|
|
660
660
|
}
|
|
661
661
|
delete e.dataset.pinned;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function Wo(e) {
|
|
664
664
|
return {
|
|
665
|
-
maxTooltipItems:
|
|
665
|
+
maxTooltipItems: pr(e == null ? void 0 : e.maxTooltipItems)
|
|
666
666
|
};
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function gr(e) {
|
|
669
669
|
e.__lastPhoneTapAt = void 0, e.__lastPhoneTapX = void 0, e.__lastPhoneTapY = void 0, e.__lastPhoneTapDatasetIndex = void 0, e.__lastPhoneTapDataIndex = void 0;
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function vr(e, t, n, o, a, r) {
|
|
672
672
|
e.__lastPhoneTapAt = o, e.__lastPhoneTapX = t, e.__lastPhoneTapY = n, e.__lastPhoneTapDatasetIndex = a, e.__lastPhoneTapDataIndex = r;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function yr(e, t, n) {
|
|
675
675
|
return e.__lastPhoneTapDatasetIndex === t && e.__lastPhoneTapDataIndex === n;
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function br(e, t, n, o) {
|
|
678
678
|
if (!Number.isFinite(e.__lastPhoneTapAt) || !Number.isFinite(e.__lastPhoneTapX) || !Number.isFinite(e.__lastPhoneTapY))
|
|
679
679
|
return !1;
|
|
680
680
|
const a = o - e.__lastPhoneTapAt;
|
|
681
|
-
if (a < 0 || a >
|
|
681
|
+
if (a < 0 || a > Qa)
|
|
682
682
|
return !1;
|
|
683
683
|
const r = t - e.__lastPhoneTapX, l = n - e.__lastPhoneTapY;
|
|
684
|
-
return Math.hypot(r, l) <=
|
|
684
|
+
return Math.hypot(r, l) <= er;
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function io(e) {
|
|
687
687
|
return {
|
|
688
688
|
text: `${e.datasetLabel}: ${0 .toLocaleString()}`,
|
|
689
689
|
color: "#cbd5e1",
|
|
@@ -693,24 +693,24 @@ function so(e) {
|
|
|
693
693
|
matchingKey: e.matchingKey
|
|
694
694
|
};
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function Cr(e) {
|
|
697
697
|
return Ut({
|
|
698
|
-
...
|
|
698
|
+
...Ha,
|
|
699
699
|
margin: `${e ? "8px" : "0"} 0 4px`
|
|
700
700
|
});
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function xr(e, t) {
|
|
703
703
|
return Ut({
|
|
704
|
-
...e ?
|
|
704
|
+
...e ? Ua : Ka,
|
|
705
705
|
background: t
|
|
706
706
|
});
|
|
707
707
|
}
|
|
708
|
-
function
|
|
709
|
-
return `<button type="button" data-tooltip-full-details="true" style="${
|
|
708
|
+
function wr(e) {
|
|
709
|
+
return `<button type="button" data-tooltip-full-details="true" style="${za}">${An(e)}</button>`;
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function Oo(e, t, n, o, a, r, l, u, d) {
|
|
712
712
|
var _;
|
|
713
|
-
const { firstTitle: m, secondTitle: L } =
|
|
713
|
+
const { firstTitle: m, secondTitle: L } = ar(
|
|
714
714
|
(_ = e[0]) == null ? void 0 : _.label,
|
|
715
715
|
r,
|
|
716
716
|
l,
|
|
@@ -722,18 +722,18 @@ function Wo(e, t, n, o, a, r, l, u, d) {
|
|
|
722
722
|
const z = S ?? {};
|
|
723
723
|
if (z.isSpacer === !0 || typeof z.xAxisIndex == "number" && z.xAxisIndex !== l)
|
|
724
724
|
return;
|
|
725
|
-
const j =
|
|
725
|
+
const j = lr(z), ae = zo(z, l);
|
|
726
726
|
if (!Number.isFinite(ae))
|
|
727
727
|
return;
|
|
728
|
-
const O =
|
|
729
|
-
text:
|
|
730
|
-
color:
|
|
728
|
+
const O = ir(z, u), H = {
|
|
729
|
+
text: sr(j, ae),
|
|
730
|
+
color: ur(z, l, O),
|
|
731
731
|
isBar: O,
|
|
732
732
|
value: ae,
|
|
733
733
|
datasetLabel: j,
|
|
734
|
-
matchingKey:
|
|
734
|
+
matchingKey: cr(j)
|
|
735
735
|
};
|
|
736
|
-
if (L &&
|
|
736
|
+
if (L && $o(z)) {
|
|
737
737
|
y.push(H);
|
|
738
738
|
return;
|
|
739
739
|
}
|
|
@@ -750,13 +750,13 @@ function Wo(e, t, n, o, a, r, l, u, d) {
|
|
|
750
750
|
});
|
|
751
751
|
const I = L ? h.map((S) => {
|
|
752
752
|
const x = k.get(S.matchingKey);
|
|
753
|
-
return !x || x.length === 0 ?
|
|
754
|
-
}) : [], A = U.length > h.length || y.length > I.length, N = (S, x = !1) => `<div style="${
|
|
755
|
-
const x =
|
|
756
|
-
return `<div style="${
|
|
753
|
+
return !x || x.length === 0 ? io(S) : x.shift() ?? io(S);
|
|
754
|
+
}) : [], A = U.length > h.length || y.length > I.length, N = (S, x = !1) => `<div style="${Cr(x)}">${An(S)}</div>`, E = (S) => {
|
|
755
|
+
const x = xr(S.isBar, S.color);
|
|
756
|
+
return `<div style="${Wa}"><span style="${x}"></span><span style="${Oa}">${An(S.text)}</span></div>`;
|
|
757
757
|
};
|
|
758
758
|
let D = "";
|
|
759
|
-
m.length > 0 && (D += N(m)), D += h.map((S) => E(S)).join(""), L && I.length > 0 && (D += N(L, D.length > 0), D += I.map((S) => E(S)).join("")), a && A && (D +=
|
|
759
|
+
m.length > 0 && (D += N(m)), D += h.map((S) => E(S)).join(""), L && I.length > 0 && (D += N(L, D.length > 0), D += I.map((S) => E(S)).join("")), a && A && (D += wr(n));
|
|
760
760
|
const B = [
|
|
761
761
|
{
|
|
762
762
|
title: m,
|
|
@@ -773,11 +773,11 @@ function Wo(e, t, n, o, a, r, l, u, d) {
|
|
|
773
773
|
hasCollapsedValues: A
|
|
774
774
|
};
|
|
775
775
|
}
|
|
776
|
-
function
|
|
777
|
-
return e.scrollHeight - e.clientHeight >
|
|
776
|
+
function uo(e) {
|
|
777
|
+
return e.scrollHeight - e.clientHeight > ja;
|
|
778
778
|
}
|
|
779
779
|
function ln(e, t, n, o, a, r, l, u, d, m) {
|
|
780
|
-
const L =
|
|
780
|
+
const L = Oo(
|
|
781
781
|
t,
|
|
782
782
|
n,
|
|
783
783
|
o,
|
|
@@ -788,9 +788,9 @@ function ln(e, t, n, o, a, r, l, u, d, m) {
|
|
|
788
788
|
d,
|
|
789
789
|
m
|
|
790
790
|
);
|
|
791
|
-
return e.innerHTML !== L.html && (e.innerHTML = L.html,
|
|
791
|
+
return e.innerHTML !== L.html && (e.innerHTML = L.html, Nr(e)), L;
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function _r(e, t, n, o, a, r, l, u, d, m) {
|
|
794
794
|
if (Number.isFinite(a))
|
|
795
795
|
return {
|
|
796
796
|
markup: ln(
|
|
@@ -820,7 +820,7 @@ function wr(e, t, n, o, a, r, l, u, d, m) {
|
|
|
820
820
|
d,
|
|
821
821
|
m
|
|
822
822
|
);
|
|
823
|
-
if (!
|
|
823
|
+
if (!uo(e))
|
|
824
824
|
return {
|
|
825
825
|
markup: y,
|
|
826
826
|
maxTooltipItems: L
|
|
@@ -839,7 +839,7 @@ function wr(e, t, n, o, a, r, l, u, d, m) {
|
|
|
839
839
|
d,
|
|
840
840
|
m
|
|
841
841
|
);
|
|
842
|
-
if (
|
|
842
|
+
if (uo(e)) {
|
|
843
843
|
h = I - 1;
|
|
844
844
|
continue;
|
|
845
845
|
}
|
|
@@ -861,7 +861,7 @@ function wr(e, t, n, o, a, r, l, u, d, m) {
|
|
|
861
861
|
maxTooltipItems: U
|
|
862
862
|
};
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function co(e, t) {
|
|
865
865
|
const n = Math.max(0, Math.min(1, t)), o = e.trim();
|
|
866
866
|
if (o.startsWith("#")) {
|
|
867
867
|
const l = o.slice(1), u = l.length === 3 ? `${l[0]}${l[0]}${l[1]}${l[1]}${l[2]}${l[2]}` : l.length === 4 ? `${l[0]}${l[0]}${l[1]}${l[1]}${l[2]}${l[2]}` : l.length >= 6 ? l.slice(0, 6) : "";
|
|
@@ -889,11 +889,11 @@ function uo(e, t) {
|
|
|
889
889
|
return e;
|
|
890
890
|
}
|
|
891
891
|
function sn(e, t) {
|
|
892
|
-
return typeof e == "string" ?
|
|
893
|
-
(n) => typeof n == "string" ?
|
|
892
|
+
return typeof e == "string" ? co(e, t) : Array.isArray(e) ? e.map(
|
|
893
|
+
(n) => typeof n == "string" ? co(n, t) : n
|
|
894
894
|
) : e;
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function Sr(e) {
|
|
897
897
|
e.__tooltipOriginalStyle || (e.__tooltipOriginalStyle = {
|
|
898
898
|
borderColor: Reflect.get(e, "borderColor"),
|
|
899
899
|
backgroundColor: Reflect.get(e, "backgroundColor"),
|
|
@@ -901,11 +901,11 @@ function _r(e) {
|
|
|
901
901
|
pointBackgroundColor: Reflect.get(e, "pointBackgroundColor")
|
|
902
902
|
});
|
|
903
903
|
}
|
|
904
|
-
function
|
|
904
|
+
function kr(e) {
|
|
905
905
|
const t = e.__tooltipOriginalStyle;
|
|
906
906
|
t && (Reflect.set(e, "borderColor", t.borderColor), Reflect.set(e, "backgroundColor", t.backgroundColor), Reflect.set(e, "pointBorderColor", t.pointBorderColor), Reflect.set(e, "pointBackgroundColor", t.pointBackgroundColor));
|
|
907
907
|
}
|
|
908
|
-
function
|
|
908
|
+
function Tr(e, t) {
|
|
909
909
|
const n = e.__tooltipOriginalStyle;
|
|
910
910
|
n && (Reflect.set(e, "borderColor", sn(n.borderColor, t)), Reflect.set(e, "backgroundColor", sn(n.backgroundColor, t)), Reflect.set(e, "pointBorderColor", sn(n.pointBorderColor, t)), Reflect.set(
|
|
911
911
|
e,
|
|
@@ -929,7 +929,7 @@ function fn(e, t) {
|
|
|
929
929
|
const n = e.data.datasets;
|
|
930
930
|
if (n.length !== 0) {
|
|
931
931
|
if (n.forEach((o, a) => {
|
|
932
|
-
|
|
932
|
+
Sr(o), !t || a === t.datasetIndex ? kr(o) : Tr(o, Ja);
|
|
933
933
|
}), typeof e.setActiveElements == "function")
|
|
934
934
|
try {
|
|
935
935
|
t ? e.setActiveElements([
|
|
@@ -948,7 +948,7 @@ function fn(e, t) {
|
|
|
948
948
|
}
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function Uo(e) {
|
|
952
952
|
const t = e, n = t == null ? void 0 : t.chart;
|
|
953
953
|
if (Fn(n))
|
|
954
954
|
return n;
|
|
@@ -961,14 +961,14 @@ function Oo(e) {
|
|
|
961
961
|
const r = Tn.getChart(a);
|
|
962
962
|
return Fn(r) ? r : null;
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function Lr(e) {
|
|
965
965
|
const t = window.getComputedStyle(e);
|
|
966
966
|
return [t.overflow, t.overflowX, t.overflowY].some((o) => o !== "visible");
|
|
967
967
|
}
|
|
968
968
|
function Wn(e) {
|
|
969
969
|
let t = e.parentElement ?? e, n = t;
|
|
970
970
|
for (; n && n.parentElement && n.parentElement !== document.body && n.parentElement !== document.documentElement; )
|
|
971
|
-
|
|
971
|
+
Lr(n) && (t = n.parentElement), n = n.parentElement;
|
|
972
972
|
return window.getComputedStyle(t).position === "static" && (t.style.position = "relative"), t;
|
|
973
973
|
}
|
|
974
974
|
function On(e, t, n, o, a, r, l = "center", u = !1) {
|
|
@@ -984,10 +984,10 @@ function On(e, t, n, o, a, r, l = "center", u = !1) {
|
|
|
984
984
|
const j = Math.max(S, L + y - I - N), ae = Math.max(x, U + v - A - N), O = Math.round(Math.min(Math.max(S, B), j)), H = Math.round(Math.min(Math.max(x, _), ae));
|
|
985
985
|
h.__lastLeftPx === O && h.__lastTopPx === H || (h.__lastLeftPx = O, h.__lastTopPx = H, e.style.left = `${O}px`, e.style.top = `${H}px`);
|
|
986
986
|
}
|
|
987
|
-
function
|
|
987
|
+
function Ko(e) {
|
|
988
988
|
return e.dataset.anchorDirection === "left" ? "left" : e.dataset.anchorDirection === "right" ? "right" : "center";
|
|
989
989
|
}
|
|
990
|
-
function
|
|
990
|
+
function Dr(e, t, n, o, a, r, l) {
|
|
991
991
|
const u = t.getBoundingClientRect(), d = o - u.left, m = a - u.top;
|
|
992
992
|
!Number.isFinite(d) || !Number.isFinite(m) || (e.dataset.cursorCanvasX = String(d), e.dataset.cursorCanvasY = String(m), e.dataset.caretX = String(d), e.dataset.caretY = String(m), e.dataset.anchorDirection = l, On(
|
|
993
993
|
e,
|
|
@@ -1000,32 +1000,32 @@ function Lr(e, t, n, o, a, r, l) {
|
|
|
1000
1000
|
!0
|
|
1001
1001
|
));
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1003
|
+
function Ir(e) {
|
|
1004
1004
|
const t = document.createElement("div");
|
|
1005
1005
|
return t.id = e, t.dataset.comparisonTooltip = "true", t.style.background = "linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86))", t.style.border = "1px solid rgba(255, 255, 255, 0.58)", t.style.borderRadius = "10px", t.style.boxShadow = "0 8px 24px rgba(15, 23, 42, 0.18)", t.style.color = "#111827", t.style.left = "0", t.style.opacity = "0", Hn(t), t.style.maxWidth = "min(360px, calc(100% - 16px))", t.style.overflow = "hidden", t.style.padding = "8px 10px", t.style.pointerEvents = "none", t.style.position = "absolute", t.style.textAlign = "left", t.style.top = "0", t.style.transform = "none", t.style.willChange = "left, top", t.style.whiteSpace = "normal", t.style.wordBreak = "normal", t.style.overflowWrap = "normal", t.style.zIndex = "10", t;
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1007
|
+
function Pr(e) {
|
|
1008
1008
|
e.__onViewportChange && (window.removeEventListener("scroll", e.__onViewportChange, !0), window.removeEventListener("resize", e.__onViewportChange));
|
|
1009
1009
|
}
|
|
1010
|
-
function
|
|
1010
|
+
function Mr(e) {
|
|
1011
1011
|
e.__onNavigationChange && (window.removeEventListener($n, e.__onNavigationChange), window.removeEventListener("popstate", e.__onNavigationChange), window.removeEventListener("hashchange", e.__onNavigationChange), window.removeEventListener("beforeunload", e.__onNavigationChange));
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1013
|
+
function Br(e) {
|
|
1014
1014
|
e.__disconnectObserver && (e.__disconnectObserver.disconnect(), e.__disconnectObserver = void 0);
|
|
1015
1015
|
}
|
|
1016
1016
|
function Un(e, t) {
|
|
1017
|
-
|
|
1017
|
+
Lt(e), Xo(e), Pr(e), Mr(e), Br(e), e.__onDetailsClick && e.removeEventListener("click", e.__onDetailsClick), e.__onTooltipPointerEnter && e.removeEventListener("pointerenter", e.__onTooltipPointerEnter), e.__onTooltipPointerLeave && e.removeEventListener("pointerleave", e.__onTooltipPointerLeave), t && e.__onCanvasPointerEnter && t.removeEventListener("pointerenter", e.__onCanvasPointerEnter), t && e.__onCanvasPointerMove && t.removeEventListener("pointermove", e.__onCanvasPointerMove), t && e.__onCanvasPointerLeave && t.removeEventListener("pointerleave", e.__onCanvasPointerLeave), t && e.__onCanvasClick && t.removeEventListener("click", e.__onCanvasClick), t && e.__onCanvasPointerUp && t.removeEventListener("pointerup", e.__onCanvasPointerUp), e.remove();
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1020
|
-
e.__onNavigationChange || (
|
|
1019
|
+
function Ar(e, t, n) {
|
|
1020
|
+
e.__onNavigationChange || (nr(), e.__onNavigationChange = () => {
|
|
1021
1021
|
if (!n.isConnected) {
|
|
1022
1022
|
Un(e, n);
|
|
1023
1023
|
return;
|
|
1024
1024
|
}
|
|
1025
|
-
|
|
1025
|
+
je(e, t, !0);
|
|
1026
1026
|
}, window.addEventListener($n, e.__onNavigationChange), window.addEventListener("popstate", e.__onNavigationChange), window.addEventListener("hashchange", e.__onNavigationChange), window.addEventListener("beforeunload", e.__onNavigationChange));
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1028
|
+
function Fr(e, t) {
|
|
1029
1029
|
e.__disconnectObserver || document.body && (e.__disconnectObserver = new MutationObserver(() => {
|
|
1030
1030
|
t.isConnected || Un(e, t);
|
|
1031
1031
|
}), e.__disconnectObserver.observe(document.body, {
|
|
@@ -1033,23 +1033,23 @@ function Ar(e, t) {
|
|
|
1033
1033
|
subtree: !0
|
|
1034
1034
|
}));
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function Rr(e, t, n) {
|
|
1037
1037
|
Array.from(
|
|
1038
1038
|
e.querySelectorAll('[data-comparison-tooltip="true"]')
|
|
1039
1039
|
).forEach((a) => {
|
|
1040
1040
|
a.id !== t && Un(a, n);
|
|
1041
1041
|
});
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function Lt(e) {
|
|
1044
1044
|
typeof e.__hideTimeoutId == "number" && (window.clearTimeout(e.__hideTimeoutId), e.__hideTimeoutId = void 0);
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1046
|
+
function Xo(e) {
|
|
1047
1047
|
typeof e.__cursorRafId == "number" && (window.cancelAnimationFrame(e.__cursorRafId), e.__cursorRafId = void 0);
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1049
|
+
function Nr(e) {
|
|
1050
1050
|
e.__cachedWidth = void 0, e.__cachedHeight = void 0, e.__measurementHostWidth = void 0, e.__measurementHostHeight = void 0;
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function fo(e, t, n, o, a) {
|
|
1053
1053
|
const r = t.getBoundingClientRect(), l = o - r.left, u = a - r.top;
|
|
1054
1054
|
!Number.isFinite(l) || !Number.isFinite(u) || (e.dataset.cursorCanvasX = String(l), e.dataset.cursorCanvasY = String(u), e.dataset.caretX = String(l), e.dataset.caretY = String(u), e.__pendingCursorClientX = o, e.__pendingCursorClientY = a, typeof e.__cursorRafId != "number" && (e.__cursorRafId = window.requestAnimationFrame(() => {
|
|
1055
1055
|
e.__cursorRafId = void 0;
|
|
@@ -1057,29 +1057,29 @@ function co(e, t, n, o, a) {
|
|
|
1057
1057
|
if (e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, !Number.isFinite(d) || !Number.isFinite(m))
|
|
1058
1058
|
return;
|
|
1059
1059
|
const L = Wn(t);
|
|
1060
|
-
e.parentElement !== L && L.appendChild(e),
|
|
1060
|
+
e.parentElement !== L && L.appendChild(e), Dr(
|
|
1061
1061
|
e,
|
|
1062
1062
|
t,
|
|
1063
1063
|
L,
|
|
1064
1064
|
d,
|
|
1065
1065
|
m,
|
|
1066
1066
|
n,
|
|
1067
|
-
|
|
1067
|
+
Ko(e)
|
|
1068
1068
|
);
|
|
1069
1069
|
})));
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1072
|
-
|
|
1071
|
+
function je(e, t, n = !1) {
|
|
1072
|
+
kt(e) && !n || (Lt(e), Xo(e), Ho(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", fn(t));
|
|
1073
1073
|
}
|
|
1074
|
-
function hn(e, t, n =
|
|
1075
|
-
e.__isTooltipHovered || (
|
|
1076
|
-
e.__isTooltipHovered ||
|
|
1074
|
+
function hn(e, t, n = Za) {
|
|
1075
|
+
e.__isTooltipHovered || (Lt(e), e.__hideTimeoutId = window.setTimeout(() => {
|
|
1076
|
+
e.__isTooltipHovered || je(e, t);
|
|
1077
1077
|
}, n));
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1080
|
-
const { maxTooltipItems: r } =
|
|
1079
|
+
function Vr(e, t, n, o, a) {
|
|
1080
|
+
const { maxTooltipItems: r } = Wo(a);
|
|
1081
1081
|
e.__onCanvasPointerEnter || (e.__onCanvasPointerEnter = (l) => {
|
|
1082
|
-
if (!(
|
|
1082
|
+
if (!(ct() && kt(e)) && (fo(
|
|
1083
1083
|
e,
|
|
1084
1084
|
t,
|
|
1085
1085
|
o,
|
|
@@ -1094,7 +1094,7 @@ function Nr(e, t, n, o, a) {
|
|
|
1094
1094
|
}, t.addEventListener("pointerenter", e.__onCanvasPointerEnter, {
|
|
1095
1095
|
passive: !0
|
|
1096
1096
|
})), e.__onCanvasPointerMove || (e.__onCanvasPointerMove = (l) => {
|
|
1097
|
-
|
|
1097
|
+
ct() && kt(e) || fo(
|
|
1098
1098
|
e,
|
|
1099
1099
|
t,
|
|
1100
1100
|
o,
|
|
@@ -1104,12 +1104,12 @@ function Nr(e, t, n, o, a) {
|
|
|
1104
1104
|
}, t.addEventListener("pointermove", e.__onCanvasPointerMove, {
|
|
1105
1105
|
passive: !0
|
|
1106
1106
|
})), e.__onCanvasPointerLeave || (e.__onCanvasPointerLeave = () => {
|
|
1107
|
-
|
|
1107
|
+
ct() && kt(e) || hn(e, n);
|
|
1108
1108
|
}, t.addEventListener("pointerleave", e.__onCanvasPointerLeave, {
|
|
1109
1109
|
passive: !0
|
|
1110
1110
|
})), e.__onCanvasClick || (e.__onCanvasClick = (l) => {
|
|
1111
1111
|
var I, A;
|
|
1112
|
-
if (
|
|
1112
|
+
if (ct() || !(a != null && a.onViewFullDetails) || !e.__detailsPayload || e.style.opacity !== "1")
|
|
1113
1113
|
return;
|
|
1114
1114
|
const u = (N) => {
|
|
1115
1115
|
var S, x, z, j;
|
|
@@ -1117,10 +1117,10 @@ function Nr(e, t, n, o, a) {
|
|
|
1117
1117
|
return !1;
|
|
1118
1118
|
const E = (S = N.find(
|
|
1119
1119
|
(ae) => typeof ae.dataIndex == "number"
|
|
1120
|
-
)) == null ? void 0 : S.dataIndex, D = ((x = n == null ? void 0 : n.data) == null ? void 0 : x.datasets) ?? [], B = (z = n == null ? void 0 : n.config) == null ? void 0 : z.type, _ =
|
|
1120
|
+
)) == null ? void 0 : S.dataIndex, D = ((x = n == null ? void 0 : n.data) == null ? void 0 : x.datasets) ?? [], B = (z = n == null ? void 0 : n.config) == null ? void 0 : z.type, _ = Oo(
|
|
1121
1121
|
N,
|
|
1122
1122
|
o,
|
|
1123
|
-
(a == null ? void 0 : a.viewFullDetailsLabel) ??
|
|
1123
|
+
(a == null ? void 0 : a.viewFullDetailsLabel) ?? Vo(),
|
|
1124
1124
|
r,
|
|
1125
1125
|
!0,
|
|
1126
1126
|
D,
|
|
@@ -1128,7 +1128,7 @@ function Nr(e, t, n, o, a) {
|
|
|
1128
1128
|
B,
|
|
1129
1129
|
a == null ? void 0 : a.comparisonXAxis
|
|
1130
1130
|
).detailsPayload;
|
|
1131
|
-
return (j = a.onViewFullDetails) == null || j.call(a, _, n),
|
|
1131
|
+
return (j = a.onViewFullDetails) == null || j.call(a, _, n), je(e, n), !0;
|
|
1132
1132
|
}, d = ((I = n == null ? void 0 : n.tooltip) == null ? void 0 : I.dataPoints) ?? [];
|
|
1133
1133
|
if (u(d))
|
|
1134
1134
|
return;
|
|
@@ -1165,7 +1165,7 @@ function Nr(e, t, n, o, a) {
|
|
|
1165
1165
|
const k = ((A = n == null ? void 0 : n.tooltip) == null ? void 0 : A.dataPoints) ?? [];
|
|
1166
1166
|
u(k);
|
|
1167
1167
|
}, t.addEventListener("click", e.__onCanvasClick)), e.__onCanvasPointerUp || (e.__onCanvasPointerUp = (l) => {
|
|
1168
|
-
if (
|
|
1168
|
+
if (ct()) {
|
|
1169
1169
|
const u = n == null ? void 0 : n.getElementsAtEventForMode, d = n == null ? void 0 : n.tooltip;
|
|
1170
1170
|
if (typeof u != "function" || typeof (d == null ? void 0 : d.setActiveElements) != "function")
|
|
1171
1171
|
return;
|
|
@@ -1186,19 +1186,19 @@ function Nr(e, t, n, o, a) {
|
|
|
1186
1186
|
index: A.index
|
|
1187
1187
|
}));
|
|
1188
1188
|
if (y.length === 0) {
|
|
1189
|
-
|
|
1189
|
+
je(e, n, !0);
|
|
1190
1190
|
return;
|
|
1191
1191
|
}
|
|
1192
|
-
const v = y[0], h =
|
|
1192
|
+
const v = y[0], h = yr(
|
|
1193
1193
|
e,
|
|
1194
1194
|
v.datasetIndex,
|
|
1195
1195
|
v.index
|
|
1196
|
-
), k = Number.isFinite(e.__lastPhoneTapAt), I = h &&
|
|
1196
|
+
), k = Number.isFinite(e.__lastPhoneTapAt), I = h && br(e, l.offsetX, l.offsetY, l.timeStamp);
|
|
1197
1197
|
if (k && !I && h) {
|
|
1198
|
-
|
|
1198
|
+
je(e, n, !0);
|
|
1199
1199
|
return;
|
|
1200
1200
|
}
|
|
1201
|
-
|
|
1201
|
+
Ho(e, !0), Lt(e), e.dataset.cursorCanvasX = String(l.offsetX), e.dataset.cursorCanvasY = String(l.offsetY), e.dataset.caretX = String(l.offsetX), e.dataset.caretY = String(l.offsetY), d.setActiveElements(y, {
|
|
1202
1202
|
x: l.offsetX,
|
|
1203
1203
|
y: l.offsetY
|
|
1204
1204
|
});
|
|
@@ -1208,10 +1208,10 @@ function Nr(e, t, n, o, a) {
|
|
|
1208
1208
|
return;
|
|
1209
1209
|
}
|
|
1210
1210
|
if (I && (a != null && a.onViewFullDetails) && e.__detailsPayload) {
|
|
1211
|
-
a.onViewFullDetails(e.__detailsPayload, n),
|
|
1211
|
+
a.onViewFullDetails(e.__detailsPayload, n), je(e, n);
|
|
1212
1212
|
return;
|
|
1213
1213
|
}
|
|
1214
|
-
|
|
1214
|
+
vr(
|
|
1215
1215
|
e,
|
|
1216
1216
|
l.offsetX,
|
|
1217
1217
|
l.offsetY,
|
|
@@ -1225,18 +1225,18 @@ function Nr(e, t, n, o, a) {
|
|
|
1225
1225
|
}, t.addEventListener("pointerup", e.__onCanvasPointerUp)), a != null && a.onViewFullDetails && (e.__onDetailsClick || (e.__onDetailsClick = (l) => {
|
|
1226
1226
|
var m;
|
|
1227
1227
|
const u = l.target;
|
|
1228
|
-
u != null && u.closest('[data-tooltip-full-details="true"]') && (l.preventDefault(), l.stopPropagation(), e.__detailsPayload && ((m = a.onViewFullDetails) == null || m.call(a, e.__detailsPayload, n),
|
|
1228
|
+
u != null && u.closest('[data-tooltip-full-details="true"]') && (l.preventDefault(), l.stopPropagation(), e.__detailsPayload && ((m = a.onViewFullDetails) == null || m.call(a, e.__detailsPayload, n), je(e, n)));
|
|
1229
1229
|
}, e.addEventListener("click", e.__onDetailsClick)), e.__onTooltipPointerEnter || (e.__onTooltipPointerEnter = () => {
|
|
1230
|
-
e.__isTooltipHovered = !0,
|
|
1230
|
+
e.__isTooltipHovered = !0, Lt(e);
|
|
1231
1231
|
}, e.addEventListener("pointerenter", e.__onTooltipPointerEnter)), e.__onTooltipPointerLeave || (e.__onTooltipPointerLeave = () => {
|
|
1232
1232
|
e.__isTooltipHovered = !1, hn(e, n);
|
|
1233
1233
|
}, e.addEventListener("pointerleave", e.__onTooltipPointerLeave)));
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1235
|
+
function $r(e, t, n) {
|
|
1236
1236
|
e.__onViewportChange || (e.__onViewportChange = () => {
|
|
1237
1237
|
if (e.style.opacity !== "1")
|
|
1238
1238
|
return;
|
|
1239
|
-
const o = Number(e.dataset.caretX), a = Number(e.dataset.caretY), r =
|
|
1239
|
+
const o = Number(e.dataset.caretX), a = Number(e.dataset.caretY), r = Ko(e);
|
|
1240
1240
|
if (!Number.isFinite(o) || !Number.isFinite(a)) {
|
|
1241
1241
|
e.style.opacity = "0";
|
|
1242
1242
|
return;
|
|
@@ -1259,8 +1259,8 @@ function Vr(e, t, n) {
|
|
|
1259
1259
|
passive: !0
|
|
1260
1260
|
}));
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1263
|
-
const { maxTooltipItems: n } =
|
|
1262
|
+
function zr(e, t) {
|
|
1263
|
+
const { maxTooltipItems: n } = Wo(t);
|
|
1264
1264
|
return ({ chart: o, tooltip: a }) => {
|
|
1265
1265
|
var O, H, F, b;
|
|
1266
1266
|
if (typeof document > "u" || typeof window > "u")
|
|
@@ -1270,23 +1270,23 @@ function $r(e, t) {
|
|
|
1270
1270
|
return;
|
|
1271
1271
|
const l = Wn(r), u = `comparison-tooltip-${String(o.id)}`;
|
|
1272
1272
|
let d = document.querySelector(`#${u}`);
|
|
1273
|
-
if (d || (d =
|
|
1274
|
-
if (
|
|
1273
|
+
if (d || (d = Ir(u)), d.parentElement !== l && l.appendChild(d), Hn(d, l), $r(d, r, e), Ar(d, o, r), Fr(d, r), Vr(d, r, o, e, t), ((a == null ? void 0 : a.opacity) ?? 0) === 0) {
|
|
1274
|
+
if (ct() && kt(d))
|
|
1275
1275
|
return;
|
|
1276
|
-
t != null && t.onViewFullDetails ? hn(d, o) :
|
|
1276
|
+
t != null && t.onViewFullDetails ? hn(d, o) : je(d, o);
|
|
1277
1277
|
return;
|
|
1278
1278
|
}
|
|
1279
1279
|
const m = (a == null ? void 0 : a.dataPoints) ?? [];
|
|
1280
1280
|
if (m.length === 0) {
|
|
1281
|
-
if (
|
|
1281
|
+
if (ct() && kt(d))
|
|
1282
1282
|
return;
|
|
1283
|
-
t != null && t.onViewFullDetails ? hn(d, o) :
|
|
1283
|
+
t != null && t.onViewFullDetails ? hn(d, o) : je(d, o);
|
|
1284
1284
|
return;
|
|
1285
1285
|
}
|
|
1286
|
-
|
|
1287
|
-
const L = (t == null ? void 0 : t.viewFullDetailsLabel) ??
|
|
1286
|
+
Rr(l, u, r), Lt(d);
|
|
1287
|
+
const L = (t == null ? void 0 : t.viewFullDetailsLabel) ?? Vo(), U = !!(t != null && t.onViewFullDetails), y = (O = m.find((C) => typeof C.dataIndex == "number")) == null ? void 0 : O.dataIndex, v = ((H = o == null ? void 0 : o.data) == null ? void 0 : H.datasets) ?? [], h = (F = o == null ? void 0 : o.config) == null ? void 0 : F.type, {
|
|
1288
1288
|
markup: { detailsPayload: k, hasCollapsedValues: I }
|
|
1289
|
-
} =
|
|
1289
|
+
} = _r(
|
|
1290
1290
|
d,
|
|
1291
1291
|
m,
|
|
1292
1292
|
e,
|
|
@@ -1327,14 +1327,14 @@ function $r(e, t) {
|
|
|
1327
1327
|
}
|
|
1328
1328
|
function Rn(e = !1, t) {
|
|
1329
1329
|
return {
|
|
1330
|
-
...
|
|
1330
|
+
...No(e ? "y" : "x"),
|
|
1331
1331
|
enabled: !1,
|
|
1332
|
-
filter:
|
|
1333
|
-
external:
|
|
1332
|
+
filter: mr,
|
|
1333
|
+
external: zr(e, t)
|
|
1334
1334
|
};
|
|
1335
1335
|
}
|
|
1336
|
-
const
|
|
1337
|
-
function
|
|
1336
|
+
const mo = "en-US";
|
|
1337
|
+
function po(e, t) {
|
|
1338
1338
|
const n = t.split(".");
|
|
1339
1339
|
let o = e;
|
|
1340
1340
|
for (const a of n) {
|
|
@@ -1344,11 +1344,11 @@ function mo(e, t) {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
return typeof o == "string" ? o : void 0;
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function Hr() {
|
|
1348
1348
|
const e = Nn(), t = "report.widget.legend.comparison";
|
|
1349
|
-
return `(${
|
|
1349
|
+
return `(${po(dn[e] ?? dn[mo], t) ?? po(dn[mo], t) ?? "Comparison"})`;
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1351
|
+
function Yo(e) {
|
|
1352
1352
|
function o(y, v, h) {
|
|
1353
1353
|
if (y.measureText(v).width <= h) return v;
|
|
1354
1354
|
const k = "…";
|
|
@@ -1364,13 +1364,13 @@ function Xo(e) {
|
|
|
1364
1364
|
return (h ?? v).trim();
|
|
1365
1365
|
}
|
|
1366
1366
|
function r(y) {
|
|
1367
|
-
const v = a(y), h =
|
|
1367
|
+
const v = a(y), h = to(v);
|
|
1368
1368
|
return h.length > 0 ? h : v;
|
|
1369
1369
|
}
|
|
1370
1370
|
function l(y, v) {
|
|
1371
1371
|
const h = y == null ? "" : String(y).trim();
|
|
1372
1372
|
if (h.length === 0) return h;
|
|
1373
|
-
const k =
|
|
1373
|
+
const k = Hr();
|
|
1374
1374
|
return h.endsWith(` ${k}`) || h.endsWith(k) ? h : (v == null ? void 0 : v.dash) === !0 || (v == null ? void 0 : v.isCompare) === !0 ? `${h} ${k}` : h;
|
|
1375
1375
|
}
|
|
1376
1376
|
const u = c(() => ({
|
|
@@ -1386,7 +1386,7 @@ function Xo(e) {
|
|
|
1386
1386
|
const v = y.chart.data.datasets[y.datasetIndex];
|
|
1387
1387
|
return v.borderColor ? Array.isArray(v.borderColor) ? v.borderColor[y.dataIndex] : v.borderColor : v.backgroundColor ? Array.isArray(v.backgroundColor) ? v.backgroundColor[y.dataIndex] : v.backgroundColor : "#000";
|
|
1388
1388
|
},
|
|
1389
|
-
formatter: (y) =>
|
|
1389
|
+
formatter: (y) => to(y)
|
|
1390
1390
|
})), d = c(() => ({
|
|
1391
1391
|
display: e.showX,
|
|
1392
1392
|
position: e.xPosition,
|
|
@@ -1517,16 +1517,16 @@ function Xo(e) {
|
|
|
1517
1517
|
})), U = c(() => e.isTransposed);
|
|
1518
1518
|
return { datalabels: u, xCfg: d, yCfg: m, isTransposed: U, legend: L };
|
|
1519
1519
|
}
|
|
1520
|
-
const
|
|
1520
|
+
const Wr = {
|
|
1521
1521
|
key: 0,
|
|
1522
1522
|
class: "pointer-events-none fixed inset-0 z-[120] flex justify-end"
|
|
1523
|
-
},
|
|
1523
|
+
}, Or = ["aria-label"], Ur = { class: "relative z-20 flex shrink-0 items-center bg-fm-color-neutral-white justify-between sm:px-5" }, Kr = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary min-w-0 flex-1 pr-3" }, Xr = { class: "flex items-center gap-1.5" }, Yr = {
|
|
1524
1524
|
key: 0,
|
|
1525
1525
|
class: "pb-2 fm-typo-en-body-lg-600 text-fm-color-typo-primary"
|
|
1526
|
-
},
|
|
1526
|
+
}, Er = ["onMouseenter", "onFocus"], qr = { class: "min-w-0 flex flex-1 items-center gap-2.5 pr-2" }, Gr = { class: "min-w-0 break-all text-fm-color-typo-secondary" }, jr = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-secondary shrink-0 text-right tabular-nums" }, Jr = {
|
|
1527
1527
|
key: 1,
|
|
1528
1528
|
class: "flex justify-center px-2 pt-2"
|
|
1529
|
-
},
|
|
1529
|
+
}, ho = 500, Zr = 320, un = 30, Xt = /* @__PURE__ */ Me({
|
|
1530
1530
|
__name: "TooltipDetailSidesheet",
|
|
1531
1531
|
props: {
|
|
1532
1532
|
modelValue: { type: Boolean },
|
|
@@ -1534,7 +1534,7 @@ const Hr = {
|
|
|
1534
1534
|
},
|
|
1535
1535
|
emits: ["update:modelValue", "value-hover", "value-leave"],
|
|
1536
1536
|
setup(e, { emit: t }) {
|
|
1537
|
-
const n = e, o = t, { t: a } =
|
|
1537
|
+
const n = e, o = t, { t: a } = mt(), r = P(null), l = P(ho), u = P(!1), d = P({}), m = c({
|
|
1538
1538
|
get: () => n.modelValue,
|
|
1539
1539
|
set: (F) => o("update:modelValue", F)
|
|
1540
1540
|
}), L = c(() => {
|
|
@@ -1587,10 +1587,10 @@ const Hr = {
|
|
|
1587
1587
|
I(), m.value = !1;
|
|
1588
1588
|
}
|
|
1589
1589
|
function B() {
|
|
1590
|
-
return typeof window > "u" ?
|
|
1590
|
+
return typeof window > "u" ? ho : Math.floor(window.innerWidth * 0.94);
|
|
1591
1591
|
}
|
|
1592
1592
|
function _(F) {
|
|
1593
|
-
const b = B(), C = Math.min(
|
|
1593
|
+
const b = B(), C = Math.min(Zr, b);
|
|
1594
1594
|
return Math.min(b, Math.max(C, Math.floor(F)));
|
|
1595
1595
|
}
|
|
1596
1596
|
function S(F) {
|
|
@@ -1625,11 +1625,11 @@ const Hr = {
|
|
|
1625
1625
|
m.value && N();
|
|
1626
1626
|
}), Ht(() => {
|
|
1627
1627
|
l.value = _(l.value), N(), document.addEventListener("pointerdown", O, !0), document.addEventListener("keydown", H), window.addEventListener("resize", ae);
|
|
1628
|
-
}),
|
|
1628
|
+
}), xo(() => {
|
|
1629
1629
|
x(), document.removeEventListener("pointerdown", O, !0), document.removeEventListener("keydown", H), window.removeEventListener("resize", ae);
|
|
1630
1630
|
}), (F, b) => {
|
|
1631
1631
|
const C = fe("FmButton");
|
|
1632
|
-
return X(), ce(
|
|
1632
|
+
return X(), ce(fa, {
|
|
1633
1633
|
"enter-active-class": "transform transition duration-200 ease-out",
|
|
1634
1634
|
"enter-from-class": "translate-x-full opacity-0",
|
|
1635
1635
|
"enter-to-class": "translate-x-0 opacity-100",
|
|
@@ -1638,7 +1638,7 @@ const Hr = {
|
|
|
1638
1638
|
"leave-to-class": "translate-x-full opacity-0"
|
|
1639
1639
|
}, {
|
|
1640
1640
|
default: Le(() => [
|
|
1641
|
-
m.value ? (X(), le("div",
|
|
1641
|
+
m.value ? (X(), le("div", Wr, [
|
|
1642
1642
|
q("div", {
|
|
1643
1643
|
ref_key: "panelRef",
|
|
1644
1644
|
ref: r,
|
|
@@ -1652,9 +1652,9 @@ const Hr = {
|
|
|
1652
1652
|
class: "absolute left-0 top-0 z-40 h-full w-3 -translate-x-1/2 cursor-ew-resize",
|
|
1653
1653
|
onPointerdown: cn(j, ["prevent"])
|
|
1654
1654
|
}, null, 32),
|
|
1655
|
-
q("div",
|
|
1656
|
-
q("div",
|
|
1657
|
-
q("div",
|
|
1655
|
+
q("div", Ur, [
|
|
1656
|
+
q("div", Kr, Ce(i(a)("report.widget.comparisonTooltip.fullBreakdownTitle")), 1),
|
|
1657
|
+
q("div", Xr, [
|
|
1658
1658
|
pe(C, {
|
|
1659
1659
|
class: "relative z-30 h-9 w-9 shrink-0",
|
|
1660
1660
|
variant: "tertiary",
|
|
@@ -1668,12 +1668,12 @@ const Hr = {
|
|
|
1668
1668
|
class: "flex flex-1 flex-col gap-4 overflow-y-auto px-4 py-4 sm:px-5",
|
|
1669
1669
|
onMouseleave: I
|
|
1670
1670
|
}, [
|
|
1671
|
-
(X(!0), le(
|
|
1671
|
+
(X(!0), le(Ne, null, ft(U.value, (R, T) => (X(), le("div", {
|
|
1672
1672
|
key: R.key,
|
|
1673
1673
|
class: "flex flex-col gap-2 rounded-2xl bg-fm-color-neutral-white/45 py-3"
|
|
1674
1674
|
}, [
|
|
1675
|
-
R.title ? (X(), le("p",
|
|
1676
|
-
(X(!0), le(
|
|
1675
|
+
R.title ? (X(), le("p", Yr, Ce(R.title), 1)) : he("", !0),
|
|
1676
|
+
(X(!0), le(Ne, null, ft(R.visibleValues, (M, $) => (X(), le("button", {
|
|
1677
1677
|
key: `${M.text}-${$}`,
|
|
1678
1678
|
type: "button",
|
|
1679
1679
|
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",
|
|
@@ -1682,7 +1682,7 @@ const Hr = {
|
|
|
1682
1682
|
onMouseleave: I,
|
|
1683
1683
|
onBlur: I
|
|
1684
1684
|
}, [
|
|
1685
|
-
q("span",
|
|
1685
|
+
q("span", qr, [
|
|
1686
1686
|
q("span", {
|
|
1687
1687
|
class: De([
|
|
1688
1688
|
"inline-block h-3 w-3 shrink-0 box-border",
|
|
@@ -1690,11 +1690,11 @@ const Hr = {
|
|
|
1690
1690
|
]),
|
|
1691
1691
|
style: Pe({ backgroundColor: M.color })
|
|
1692
1692
|
}, null, 6),
|
|
1693
|
-
q("span",
|
|
1693
|
+
q("span", Gr, Ce(h(M)), 1)
|
|
1694
1694
|
]),
|
|
1695
|
-
q("span",
|
|
1696
|
-
], 40,
|
|
1697
|
-
R.hasMore ? (X(), le("div",
|
|
1695
|
+
q("span", jr, Ce(v(M)), 1)
|
|
1696
|
+
], 40, Er))), 128)),
|
|
1697
|
+
R.hasMore ? (X(), le("div", Jr, [
|
|
1698
1698
|
pe(C, {
|
|
1699
1699
|
class: "w-full",
|
|
1700
1700
|
variant: "tertiary",
|
|
@@ -1705,21 +1705,21 @@ const Hr = {
|
|
|
1705
1705
|
])) : he("", !0)
|
|
1706
1706
|
]))), 128))
|
|
1707
1707
|
], 32)
|
|
1708
|
-
], 12,
|
|
1708
|
+
], 12, Or)
|
|
1709
1709
|
])) : he("", !0)
|
|
1710
1710
|
]),
|
|
1711
1711
|
_: 1
|
|
1712
1712
|
});
|
|
1713
1713
|
};
|
|
1714
1714
|
}
|
|
1715
|
-
}),
|
|
1715
|
+
}), Qr = {
|
|
1716
1716
|
type: "button",
|
|
1717
1717
|
class: "inline-flex cursor-pointer select-none items-center gap-1 rounded px-1 py-0.5 border-none bg-transparent text-fm-color-system-info-300 leading-[1.4]",
|
|
1718
1718
|
style: { fontSize: "var(--legend-font-size)" }
|
|
1719
|
-
},
|
|
1719
|
+
}, el = ["aria-pressed", "onClick"], tl = ["title"], nl = {
|
|
1720
1720
|
key: 0,
|
|
1721
1721
|
class: "chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto"
|
|
1722
|
-
},
|
|
1722
|
+
}, ol = 36, go = 2, vo = 16, al = 50, rl = 6, ll = /* @__PURE__ */ Me({
|
|
1723
1723
|
__name: "ChartLegendPanel",
|
|
1724
1724
|
props: {
|
|
1725
1725
|
chartRef: {},
|
|
@@ -1739,7 +1739,7 @@ const Hr = {
|
|
|
1739
1739
|
},
|
|
1740
1740
|
emits: ["toggleDatasetVisibility", "toggleDataPointVisibility"],
|
|
1741
1741
|
setup(e, { emit: t }) {
|
|
1742
|
-
const n = e, o = t, { t: a, locale: r } =
|
|
1742
|
+
const n = e, o = t, { t: a, locale: r } = mt(), l = P([]), u = P(0), d = P(!1), m = P(!1), L = P(0), U = P(null), y = P(null), v = P(null), h = P(null), k = P(!1), I = P(0), A = P(0), N = P(!1), E = P(0), D = P(0), B = c(() => n.enabled !== !1), _ = c(() => n.position === "left" || n.position === "right");
|
|
1743
1743
|
let S = null;
|
|
1744
1744
|
const x = c(
|
|
1745
1745
|
() => d.value && m.value && k.value
|
|
@@ -1762,7 +1762,7 @@ const Hr = {
|
|
|
1762
1762
|
S != null && (window.clearTimeout(S), S = null);
|
|
1763
1763
|
}
|
|
1764
1764
|
function b() {
|
|
1765
|
-
const s =
|
|
1765
|
+
const s = Uo(
|
|
1766
1766
|
n.chartRef
|
|
1767
1767
|
);
|
|
1768
1768
|
if (s)
|
|
@@ -1806,8 +1806,8 @@ const Hr = {
|
|
|
1806
1806
|
I.value = 0, A.value = 0;
|
|
1807
1807
|
return;
|
|
1808
1808
|
}
|
|
1809
|
-
const K = p,
|
|
1810
|
-
I.value =
|
|
1809
|
+
const K = p, Z = Math.max(18, Math.round(p / f * K)), te = Math.max(0, K - Z), Y = Math.max(1, f - p), de = Math.round(g / Y * te);
|
|
1810
|
+
I.value = Z, A.value = de;
|
|
1811
1811
|
}
|
|
1812
1812
|
function M() {
|
|
1813
1813
|
T();
|
|
@@ -1816,7 +1816,7 @@ const Hr = {
|
|
|
1816
1816
|
const p = v.value, f = y.value;
|
|
1817
1817
|
if (!p || !f || !k.value)
|
|
1818
1818
|
return;
|
|
1819
|
-
const g = f.getBoundingClientRect(), V = s.clientY - g.top, K = Math.max(0, V - I.value / 2),
|
|
1819
|
+
const g = f.getBoundingClientRect(), V = s.clientY - g.top, K = Math.max(0, V - I.value / 2), Z = Math.max(1, p.clientHeight - I.value), te = Math.min(1, K / Z), Y = Math.max(0, p.scrollHeight - p.clientHeight);
|
|
1820
1820
|
p.scrollTop = te * Y, T();
|
|
1821
1821
|
}
|
|
1822
1822
|
function re(s) {
|
|
@@ -1828,13 +1828,13 @@ const Hr = {
|
|
|
1828
1828
|
const p = v.value;
|
|
1829
1829
|
if (!p)
|
|
1830
1830
|
return;
|
|
1831
|
-
const f = s.clientY - E.value, g = Math.max(1, p.clientHeight - I.value), K = Math.min(g, Math.max(0, D.value + f)) / g,
|
|
1832
|
-
p.scrollTop = K *
|
|
1831
|
+
const f = s.clientY - E.value, g = Math.max(1, p.clientHeight - I.value), K = Math.min(g, Math.max(0, D.value + f)) / g, Z = Math.max(0, p.scrollHeight - p.clientHeight);
|
|
1832
|
+
p.scrollTop = K * Z, T();
|
|
1833
1833
|
}
|
|
1834
1834
|
function W() {
|
|
1835
1835
|
N.value && (N.value = !1);
|
|
1836
1836
|
}
|
|
1837
|
-
function
|
|
1837
|
+
function J() {
|
|
1838
1838
|
var p;
|
|
1839
1839
|
const s = [(p = n.chartRef) == null ? void 0 : p.$el, U.value];
|
|
1840
1840
|
for (const f of s) {
|
|
@@ -1860,9 +1860,9 @@ const Hr = {
|
|
|
1860
1860
|
return s;
|
|
1861
1861
|
const p = (V = n.chartRef) == null ? void 0 : V.$el;
|
|
1862
1862
|
if (p instanceof HTMLElement) {
|
|
1863
|
-
const
|
|
1864
|
-
if (
|
|
1865
|
-
return
|
|
1863
|
+
const Z = (K = p.closest(".chart-layout")) == null ? void 0 : K.parentElement;
|
|
1864
|
+
if (Z instanceof HTMLElement)
|
|
1865
|
+
return Z;
|
|
1866
1866
|
}
|
|
1867
1867
|
return null;
|
|
1868
1868
|
}
|
|
@@ -1877,24 +1877,24 @@ const Hr = {
|
|
|
1877
1877
|
function me() {
|
|
1878
1878
|
const s = ee();
|
|
1879
1879
|
if (s) {
|
|
1880
|
-
const
|
|
1881
|
-
if (Number.isFinite(
|
|
1882
|
-
return
|
|
1880
|
+
const Z = Number(s.getBoundingClientRect().height);
|
|
1881
|
+
if (Number.isFinite(Z) && Z > 0)
|
|
1882
|
+
return Z;
|
|
1883
1883
|
}
|
|
1884
|
-
const p =
|
|
1884
|
+
const p = J();
|
|
1885
1885
|
if (!p)
|
|
1886
1886
|
return null;
|
|
1887
1887
|
const f = window.getComputedStyle(p), g = parseFloat(f.paddingTop) || 0, V = parseFloat(f.paddingBottom) || 0, K = p.getBoundingClientRect().height - g - V;
|
|
1888
1888
|
return Number.isFinite(K) && K > 0 ? K : null;
|
|
1889
1889
|
}
|
|
1890
|
-
function
|
|
1890
|
+
function be() {
|
|
1891
1891
|
const s = ee();
|
|
1892
1892
|
if (s) {
|
|
1893
|
-
const
|
|
1894
|
-
if (Number.isFinite(
|
|
1895
|
-
return
|
|
1893
|
+
const Z = Number(s.getBoundingClientRect().width);
|
|
1894
|
+
if (Number.isFinite(Z) && Z > 0)
|
|
1895
|
+
return Z;
|
|
1896
1896
|
}
|
|
1897
|
-
const p =
|
|
1897
|
+
const p = J();
|
|
1898
1898
|
if (!p)
|
|
1899
1899
|
return null;
|
|
1900
1900
|
const f = window.getComputedStyle(p), g = parseFloat(f.paddingLeft) || 0, V = parseFloat(f.paddingRight) || 0, K = p.getBoundingClientRect().width - g - V;
|
|
@@ -1903,9 +1903,9 @@ const Hr = {
|
|
|
1903
1903
|
function ne() {
|
|
1904
1904
|
const s = b(), p = Number(s == null ? void 0 : s.height), f = me();
|
|
1905
1905
|
if (_.value)
|
|
1906
|
-
return Number.isFinite(p) && p > 0 ? Math.max(0, Math.floor(p -
|
|
1906
|
+
return Number.isFinite(p) && p > 0 ? Math.max(0, Math.floor(p - vo)) : f != null ? Math.max(0, Math.floor(f - vo)) : 120;
|
|
1907
1907
|
if (f != null) {
|
|
1908
|
-
const g = f * 0.3, V = f -
|
|
1908
|
+
const g = f * 0.3, V = f - ol, K = Math.min(g, V);
|
|
1909
1909
|
return Math.max(0, Math.floor(K));
|
|
1910
1910
|
}
|
|
1911
1911
|
return Number.isFinite(p) && p > 0 ? Math.max(0, Math.floor(p * 0.3)) : 120;
|
|
@@ -1913,9 +1913,9 @@ const Hr = {
|
|
|
1913
1913
|
function xe() {
|
|
1914
1914
|
var K;
|
|
1915
1915
|
if (_.value) {
|
|
1916
|
-
const
|
|
1917
|
-
if (
|
|
1918
|
-
return Math.max(0, Math.floor(
|
|
1916
|
+
const Z = be();
|
|
1917
|
+
if (Z != null)
|
|
1918
|
+
return Math.max(0, Math.floor(Z * 0.3));
|
|
1919
1919
|
const te = b(), Y = Number(te == null ? void 0 : te.width);
|
|
1920
1920
|
return Number.isFinite(Y) && Y > 0 ? Math.max(0, Math.floor(Y * 0.3)) : 180;
|
|
1921
1921
|
}
|
|
@@ -1924,44 +1924,44 @@ const Hr = {
|
|
|
1924
1924
|
return Math.max(0, Math.floor(s * 0.3));
|
|
1925
1925
|
const p = b(), f = Number(p == null ? void 0 : p.width), g = Number(((K = U.value) == null ? void 0 : K.getBoundingClientRect().width) ?? 0);
|
|
1926
1926
|
if (Number.isFinite(f) && f > 0) {
|
|
1927
|
-
const
|
|
1928
|
-
return Math.max(0, Math.floor(
|
|
1927
|
+
const Z = f + (Number.isFinite(g) ? g : 0);
|
|
1928
|
+
return Math.max(0, Math.floor(Z * 0.3));
|
|
1929
1929
|
}
|
|
1930
|
-
const V =
|
|
1930
|
+
const V = be();
|
|
1931
1931
|
return V != null ? Math.max(0, Math.floor(V * 0.3)) : 180;
|
|
1932
1932
|
}
|
|
1933
1933
|
function Ie(s, p) {
|
|
1934
1934
|
const f = n.chartColorBinding;
|
|
1935
1935
|
if (f) {
|
|
1936
|
-
const K = typeof s.datasetIndex == "number" ? s.datasetIndex : p,
|
|
1936
|
+
const K = typeof s.datasetIndex == "number" ? s.datasetIndex : p, Z = Number.isInteger(n.metricCount) && Number(n.metricCount) > 0 ? Number(n.metricCount) : Math.max(1, Number(l.value.length));
|
|
1937
1937
|
if (f === we.breakdown) {
|
|
1938
|
-
const Y =
|
|
1938
|
+
const Y = Tt({
|
|
1939
1939
|
fallbackIndex: K,
|
|
1940
|
-
metricCount:
|
|
1941
|
-
}), de =
|
|
1940
|
+
metricCount: Z
|
|
1941
|
+
}), de = Fe({
|
|
1942
1942
|
datasetIndex: K,
|
|
1943
|
-
metricCount:
|
|
1943
|
+
metricCount: Z,
|
|
1944
1944
|
mode: we.metric
|
|
1945
1945
|
});
|
|
1946
|
-
return
|
|
1946
|
+
return Dt({
|
|
1947
1947
|
breakdownIndex: Y,
|
|
1948
1948
|
metricIndex: de,
|
|
1949
|
-
metricCount:
|
|
1949
|
+
metricCount: Z,
|
|
1950
1950
|
breakdownColors: n.chartBreakdownColors,
|
|
1951
1951
|
useSecondaryMetricShades: n.chartUseSecondaryMetricShades,
|
|
1952
1952
|
customColors: n.chartColors
|
|
1953
1953
|
});
|
|
1954
1954
|
}
|
|
1955
1955
|
if (f === we.metric) {
|
|
1956
|
-
const Y =
|
|
1956
|
+
const Y = Fe({
|
|
1957
1957
|
datasetIndex: K,
|
|
1958
|
-
metricCount:
|
|
1958
|
+
metricCount: Z,
|
|
1959
1959
|
mode: we.metric
|
|
1960
1960
|
});
|
|
1961
|
-
return
|
|
1961
|
+
return Je({ index: Y, customColors: n.chartColors });
|
|
1962
1962
|
}
|
|
1963
1963
|
const te = typeof s.index == "number" ? s.index : K;
|
|
1964
|
-
return
|
|
1964
|
+
return Je({ index: te, customColors: n.chartColors });
|
|
1965
1965
|
}
|
|
1966
1966
|
const g = s;
|
|
1967
1967
|
return _e(s.fillStyle) || _e(s.strokeStyle) || _e(g.color) || "#9ca3af";
|
|
@@ -1969,10 +1969,10 @@ const Hr = {
|
|
|
1969
1969
|
function _e(s) {
|
|
1970
1970
|
return typeof s == "string" && s.trim().length > 0 ? s : Array.isArray(s) ? s.map((f) => _e(f)).find((f) => typeof f == "string" && f.trim().length > 0) ?? "" : "";
|
|
1971
1971
|
}
|
|
1972
|
-
function
|
|
1972
|
+
function Ze(s) {
|
|
1973
1973
|
return Array.isArray(n.hiddenDataPointIndexes) ? n.hiddenDataPointIndexes.includes(s) : !1;
|
|
1974
1974
|
}
|
|
1975
|
-
function
|
|
1975
|
+
function Be(s) {
|
|
1976
1976
|
return Array.isArray(s) ? s : [];
|
|
1977
1977
|
}
|
|
1978
1978
|
function ot(s) {
|
|
@@ -1980,24 +1980,24 @@ const Hr = {
|
|
|
1980
1980
|
return s;
|
|
1981
1981
|
const p = Number.isInteger(n.metricCount) && Number(n.metricCount) > 0 ? Number(n.metricCount) : 1;
|
|
1982
1982
|
return [...s.map((g, V) => {
|
|
1983
|
-
const K = typeof g.datasetIndex == "number" ? g.datasetIndex : V,
|
|
1983
|
+
const K = typeof g.datasetIndex == "number" ? g.datasetIndex : V, Z = Tt({
|
|
1984
1984
|
fallbackIndex: K,
|
|
1985
1985
|
metricCount: p
|
|
1986
1986
|
});
|
|
1987
1987
|
return {
|
|
1988
1988
|
item: g,
|
|
1989
1989
|
originalIndex: V,
|
|
1990
|
-
breakdownIndex:
|
|
1990
|
+
breakdownIndex: Z
|
|
1991
1991
|
};
|
|
1992
1992
|
})].sort((g, V) => g.breakdownIndex !== V.breakdownIndex ? g.breakdownIndex - V.breakdownIndex : g.originalIndex - V.originalIndex).map((g) => g.item);
|
|
1993
1993
|
}
|
|
1994
|
-
function
|
|
1994
|
+
function pt(s) {
|
|
1995
1995
|
if (s.length <= 1)
|
|
1996
1996
|
return s;
|
|
1997
1997
|
const p = /* @__PURE__ */ new Map(), f = [];
|
|
1998
1998
|
for (const g of s) {
|
|
1999
|
-
const V = typeof g.index == "number", K = g.datasetIndex,
|
|
2000
|
-
if (!
|
|
1999
|
+
const V = typeof g.index == "number", K = g.datasetIndex, Z = typeof K == "number" && !V, te = typeof g.text == "string" ? g.text.trim() : "";
|
|
2000
|
+
if (!Z || !te) {
|
|
2001
2001
|
f.push(g);
|
|
2002
2002
|
continue;
|
|
2003
2003
|
}
|
|
@@ -2010,46 +2010,46 @@ const Hr = {
|
|
|
2010
2010
|
}), p.set(Y, f.length - 1);
|
|
2011
2011
|
continue;
|
|
2012
2012
|
}
|
|
2013
|
-
const
|
|
2014
|
-
if (!
|
|
2013
|
+
const ve = f[de];
|
|
2014
|
+
if (!ve)
|
|
2015
2015
|
continue;
|
|
2016
|
-
const
|
|
2017
|
-
Array.isArray(
|
|
2016
|
+
const ye = new Set(
|
|
2017
|
+
Array.isArray(ve.datasetIndexes) ? ve.datasetIndexes : typeof ve.datasetIndex == "number" ? [ve.datasetIndex] : []
|
|
2018
2018
|
);
|
|
2019
|
-
|
|
2019
|
+
ye.add(K);
|
|
2020
2020
|
const oe = new Set(
|
|
2021
|
-
Array.isArray(
|
|
2021
|
+
Array.isArray(ve.datasetKeys) ? ve.datasetKeys : typeof ve.datasetKey == "string" && ve.datasetKey.trim().length > 0 ? [ve.datasetKey] : []
|
|
2022
2022
|
);
|
|
2023
2023
|
typeof g.datasetKey == "string" && g.datasetKey.trim().length > 0 && oe.add(g.datasetKey), f[de] = {
|
|
2024
|
-
...
|
|
2025
|
-
datasetIndexes: Array.from(
|
|
2024
|
+
...ve,
|
|
2025
|
+
datasetIndexes: Array.from(ye).sort((ge, Q) => ge - Q),
|
|
2026
2026
|
datasetKeys: Array.from(oe),
|
|
2027
|
-
hidden:
|
|
2027
|
+
hidden: ve.hidden === !0 && g.hidden === !0
|
|
2028
2028
|
};
|
|
2029
2029
|
}
|
|
2030
2030
|
return f;
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2033
|
-
var Y, de,
|
|
2032
|
+
function ht(s) {
|
|
2033
|
+
var Y, de, ve, ye, oe, ge;
|
|
2034
2034
|
const p = s == null ? void 0 : s.legend;
|
|
2035
2035
|
if (typeof (p == null ? void 0 : p.buildLabels) == "function")
|
|
2036
2036
|
try {
|
|
2037
2037
|
p.buildLabels();
|
|
2038
2038
|
} catch {
|
|
2039
2039
|
}
|
|
2040
|
-
const f =
|
|
2040
|
+
const f = Be(p == null ? void 0 : p.legendItems);
|
|
2041
2041
|
if (f.length > 0)
|
|
2042
2042
|
return f;
|
|
2043
|
-
const g = (de = (Y = s == null ? void 0 : s.options) == null ? void 0 : Y.plugins) == null ? void 0 : de.legend, V = g == null ? void 0 : g.labels, K = V == null ? void 0 : V.generateLabels,
|
|
2044
|
-
let te =
|
|
2043
|
+
const g = (de = (Y = s == null ? void 0 : s.options) == null ? void 0 : Y.plugins) == null ? void 0 : de.legend, V = g == null ? void 0 : g.labels, K = V == null ? void 0 : V.generateLabels, Z = (ge = (oe = (ye = (ve = Tn.defaults) == null ? void 0 : ve.plugins) == null ? void 0 : ye.legend) == null ? void 0 : oe.labels) == null ? void 0 : ge.generateLabels;
|
|
2044
|
+
let te = Be(
|
|
2045
2045
|
typeof K == "function" ? K(s) : []
|
|
2046
2046
|
);
|
|
2047
|
-
return te.length === 0 && typeof
|
|
2047
|
+
return te.length === 0 && typeof Z == "function" && (te = Be(Z(s))), typeof (V == null ? void 0 : V.filter) == "function" && (te = te.filter((Q) => V.filter(Q, s.data))), typeof (V == null ? void 0 : V.sort) == "function" && (te = [...te].sort((Q, Re) => V.sort(Q, Re, s.data))), (g == null ? void 0 : g.reverse) === !0 && (te = [...te].reverse()), te;
|
|
2048
2048
|
}
|
|
2049
|
-
function
|
|
2049
|
+
function gt(s) {
|
|
2050
2050
|
var f;
|
|
2051
2051
|
return (Array.isArray((f = s == null ? void 0 : s.data) == null ? void 0 : f.datasets) ? s.data.datasets : []).map((g, V) => {
|
|
2052
|
-
const K = _e((g == null ? void 0 : g.borderColor) ?? (g == null ? void 0 : g.backgroundColor)),
|
|
2052
|
+
const K = _e((g == null ? void 0 : g.borderColor) ?? (g == null ? void 0 : g.backgroundColor)), Z = wt({
|
|
2053
2053
|
datasetIndex: V,
|
|
2054
2054
|
label: g == null ? void 0 : g.label
|
|
2055
2055
|
});
|
|
@@ -2058,32 +2058,32 @@ const Hr = {
|
|
|
2058
2058
|
fillStyle: K,
|
|
2059
2059
|
strokeStyle: K,
|
|
2060
2060
|
datasetIndex: V,
|
|
2061
|
-
datasetKey:
|
|
2062
|
-
hidden: Array.isArray(n.hiddenDatasetKeys) ? n.hiddenDatasetKeys.includes(
|
|
2061
|
+
datasetKey: Z,
|
|
2062
|
+
hidden: Array.isArray(n.hiddenDatasetKeys) ? n.hiddenDatasetKeys.includes(Z) : typeof s.isDatasetVisible == "function" ? !s.isDatasetVisible(V) : !1
|
|
2063
2063
|
};
|
|
2064
2064
|
});
|
|
2065
2065
|
}
|
|
2066
|
-
const
|
|
2066
|
+
const vt = c(() => `(${a("report.widget.legend.comparison")})`), at = c(
|
|
2067
2067
|
() => (s, p) => {
|
|
2068
2068
|
const f = s == null ? "" : String(s).trim();
|
|
2069
2069
|
if (f.length === 0) return f;
|
|
2070
|
-
const g =
|
|
2070
|
+
const g = vt.value;
|
|
2071
2071
|
return f.endsWith(` ${g}`) || f.endsWith(g) ? f : (p == null ? void 0 : p.dash) === !0 || (p == null ? void 0 : p.isCompare) === !0 ? `${f} ${g}` : f;
|
|
2072
2072
|
}
|
|
2073
2073
|
);
|
|
2074
2074
|
function rt(s, p) {
|
|
2075
2075
|
if (!Array.isArray(s) || s.length === 0)
|
|
2076
2076
|
return [];
|
|
2077
|
-
const f = s, g = f[0], V = Array.isArray(g == null ? void 0 : g.labels) ? g.labels : [], K = Array.isArray(p == null ? void 0 : p.metrics) ? p.metrics : [],
|
|
2077
|
+
const f = s, g = f[0], V = Array.isArray(g == null ? void 0 : g.labels) ? g.labels : [], K = Array.isArray(p == null ? void 0 : p.metrics) ? p.metrics : [], Z = V.length > 0 ? V : K, te = g == null ? void 0 : g.backgroundColor;
|
|
2078
2078
|
return f.length === 1 && Array.isArray(te) && te.length > 1 ? te.map((Y, de) => ({
|
|
2079
|
-
text:
|
|
2079
|
+
text: Z[de] == null || String(Z[de]).trim().length === 0 ? `Series ${de + 1}` : String(Z[de]),
|
|
2080
2080
|
fillStyle: _e(Y),
|
|
2081
2081
|
strokeStyle: _e(Y),
|
|
2082
2082
|
datasetIndex: 0,
|
|
2083
2083
|
index: de,
|
|
2084
|
-
hidden:
|
|
2084
|
+
hidden: Ze(de)
|
|
2085
2085
|
})) : f.map((Y, de) => ({
|
|
2086
|
-
datasetKey:
|
|
2086
|
+
datasetKey: wt({
|
|
2087
2087
|
datasetIndex: de,
|
|
2088
2088
|
label: Y == null ? void 0 : Y.label
|
|
2089
2089
|
}),
|
|
@@ -2096,19 +2096,19 @@ const Hr = {
|
|
|
2096
2096
|
),
|
|
2097
2097
|
datasetIndex: de,
|
|
2098
2098
|
hidden: Array.isArray(n.hiddenDatasetKeys) ? n.hiddenDatasetKeys.includes(
|
|
2099
|
-
|
|
2099
|
+
wt({
|
|
2100
2100
|
datasetIndex: de,
|
|
2101
2101
|
label: Y == null ? void 0 : Y.label
|
|
2102
2102
|
})
|
|
2103
2103
|
) : !!(Y != null && Y.hidden)
|
|
2104
2104
|
}));
|
|
2105
2105
|
}
|
|
2106
|
-
function
|
|
2106
|
+
function yt() {
|
|
2107
2107
|
var p;
|
|
2108
2108
|
const s = (p = n.chartRef) == null ? void 0 : p.datasets;
|
|
2109
2109
|
return Array.isArray(s) ? s : [];
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2111
|
+
function $e(s, p) {
|
|
2112
2112
|
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}`;
|
|
2113
2113
|
}
|
|
2114
2114
|
function lt() {
|
|
@@ -2120,27 +2120,27 @@ const Hr = {
|
|
|
2120
2120
|
return s ? Math.ceil(s.getBoundingClientRect().height) : 0;
|
|
2121
2121
|
}
|
|
2122
2122
|
function Jt(s, p) {
|
|
2123
|
-
var
|
|
2123
|
+
var ye;
|
|
2124
2124
|
const f = v.value;
|
|
2125
2125
|
if (!f || s.length === 0)
|
|
2126
2126
|
return 0;
|
|
2127
|
-
const g = Math.max(0, p -
|
|
2127
|
+
const g = Math.max(0, p - go), V = window.getComputedStyle(f);
|
|
2128
2128
|
if (V.flexDirection.startsWith("column")) {
|
|
2129
|
-
const oe = Number.parseFloat(V.rowGap || V.gap || "0") || 0,
|
|
2130
|
-
let
|
|
2129
|
+
const oe = Number.parseFloat(V.rowGap || V.gap || "0") || 0, ge = jt();
|
|
2130
|
+
let Q = 0, Re = 0;
|
|
2131
2131
|
for (let Xe = 0; Xe < s.length; Xe += 1) {
|
|
2132
|
-
const
|
|
2133
|
-
if (!
|
|
2132
|
+
const et = s[Xe];
|
|
2133
|
+
if (!et)
|
|
2134
2134
|
continue;
|
|
2135
|
-
const
|
|
2136
|
-
if (
|
|
2135
|
+
const it = Q + (Re > 0 ? oe : 0) + et.offsetHeight, Ye = s.length - (Xe + 1) > 0 ? oe + ge : 0;
|
|
2136
|
+
if (it + Ye > g)
|
|
2137
2137
|
break;
|
|
2138
|
-
|
|
2138
|
+
Q = it, Re += 1;
|
|
2139
2139
|
}
|
|
2140
|
-
return
|
|
2140
|
+
return Re > 0 ? Re : 1;
|
|
2141
2141
|
}
|
|
2142
|
-
const
|
|
2143
|
-
(oe) => oe.offsetTop -
|
|
2142
|
+
const Z = ((ye = s[0]) == null ? void 0 : ye.offsetTop) ?? 0, te = s.filter(
|
|
2143
|
+
(oe) => oe.offsetTop - Z + oe.offsetHeight <= g
|
|
2144
2144
|
);
|
|
2145
2145
|
if (te.length === 0)
|
|
2146
2146
|
return 0;
|
|
@@ -2149,17 +2149,17 @@ const Hr = {
|
|
|
2149
2149
|
const Y = lt();
|
|
2150
2150
|
if (Y <= 0)
|
|
2151
2151
|
return Math.max(1, te.length - 1);
|
|
2152
|
-
const de = Number.parseFloat(V.columnGap || V.gap || "0") || 0,
|
|
2152
|
+
const de = Number.parseFloat(V.columnGap || V.gap || "0") || 0, ve = f.clientWidth;
|
|
2153
2153
|
for (let oe = te.length; oe > 0; oe -= 1) {
|
|
2154
|
-
const
|
|
2155
|
-
if (!
|
|
2154
|
+
const ge = te.slice(0, oe), Q = ge[ge.length - 1];
|
|
2155
|
+
if (!Q)
|
|
2156
2156
|
continue;
|
|
2157
|
-
if (
|
|
2157
|
+
if (Q.offsetLeft + Q.offsetWidth + de + Y <= ve)
|
|
2158
2158
|
return oe;
|
|
2159
2159
|
}
|
|
2160
2160
|
return 1;
|
|
2161
2161
|
}
|
|
2162
|
-
function
|
|
2162
|
+
function It() {
|
|
2163
2163
|
const s = v.value;
|
|
2164
2164
|
if (!s) {
|
|
2165
2165
|
m.value = !1, L.value = 0, u.value = 0, C(), T();
|
|
@@ -2172,19 +2172,19 @@ const Hr = {
|
|
|
2172
2172
|
m.value = !1, L.value = 0, u.value = 0, C(), T();
|
|
2173
2173
|
return;
|
|
2174
2174
|
}
|
|
2175
|
-
const f = Array.from(new Set(p.map((oe) => oe.offsetTop))).sort((oe,
|
|
2175
|
+
const f = Array.from(new Set(p.map((oe) => oe.offsetTop))).sort((oe, ge) => oe - ge), g = !d.value && l.value.length > p.length, V = !d.value && !g, K = V || L.value <= 0 ? ne() : L.value;
|
|
2176
2176
|
if ((V || L.value <= 0) && (L.value = K), g) {
|
|
2177
2177
|
const oe = ne();
|
|
2178
2178
|
if (oe > 0 && (L.value = oe), window.getComputedStyle(s).flexDirection.startsWith("column") && u.value < l.value.length) {
|
|
2179
|
-
const
|
|
2180
|
-
if (Xe + 1 <
|
|
2181
|
-
const
|
|
2182
|
-
if (
|
|
2183
|
-
const
|
|
2184
|
-
if (
|
|
2179
|
+
const Re = Math.max(0, L.value - go), Xe = s.scrollHeight;
|
|
2180
|
+
if (Xe + 1 < Re) {
|
|
2181
|
+
const et = p.map((Ae) => Ae.offsetHeight).filter((Ae) => Number.isFinite(Ae) && Ae > 0), it = et.length > 0 ? et.reduce((Ae, Ye) => Ae + Ye, 0) / et.length : 0;
|
|
2182
|
+
if (it > 0) {
|
|
2183
|
+
const Ae = window.getComputedStyle(s), Ye = Number.parseFloat(Ae.rowGap || Ae.gap || "0") || 0, ze = Math.max(1, it + Ye), yn = Re - Xe, bt = Math.floor(yn / ze);
|
|
2184
|
+
if (bt > 0) {
|
|
2185
2185
|
u.value = Math.min(
|
|
2186
2186
|
l.value.length,
|
|
2187
|
-
u.value +
|
|
2187
|
+
u.value + bt
|
|
2188
2188
|
), Ue();
|
|
2189
2189
|
return;
|
|
2190
2190
|
}
|
|
@@ -2194,17 +2194,17 @@ const Hr = {
|
|
|
2194
2194
|
m.value = !0, C(), T();
|
|
2195
2195
|
return;
|
|
2196
2196
|
}
|
|
2197
|
-
const
|
|
2198
|
-
(V || u.value <= 0) && (u.value = Math.max(0,
|
|
2197
|
+
const Z = f[0] ?? 0, te = f[f.length - 1] ?? Z, Y = p.filter((oe) => oe.offsetTop === te), de = Math.max(...Y.map((oe) => oe.offsetHeight), 0), ve = Math.max(0, te - Z + de), ye = Jt(p, K);
|
|
2198
|
+
(V || u.value <= 0) && (u.value = Math.max(0, ye)), m.value = ve > K, C(), T();
|
|
2199
2199
|
}
|
|
2200
2200
|
function Ue() {
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2201
|
+
wo(() => {
|
|
2202
|
+
It(), window.requestAnimationFrame(() => {
|
|
2203
|
+
It(), R(), T();
|
|
2204
2204
|
});
|
|
2205
2205
|
});
|
|
2206
2206
|
}
|
|
2207
|
-
const
|
|
2207
|
+
const Pt = c(() => {
|
|
2208
2208
|
const s = {
|
|
2209
2209
|
"--legend-text-color": j.value,
|
|
2210
2210
|
"--legend-font-size": `${ae.value}px`
|
|
@@ -2225,7 +2225,7 @@ const Hr = {
|
|
|
2225
2225
|
maxHeight: `${p}px`,
|
|
2226
2226
|
flex: "0 0 auto"
|
|
2227
2227
|
};
|
|
2228
|
-
}),
|
|
2228
|
+
}), Qe = c(() => {
|
|
2229
2229
|
if (d.value || !m.value)
|
|
2230
2230
|
return l.value;
|
|
2231
2231
|
const s = Math.max(1, u.value), p = _.value ? s : Math.max(0, s - 1);
|
|
@@ -2237,7 +2237,7 @@ const Hr = {
|
|
|
2237
2237
|
} : m.value ? {
|
|
2238
2238
|
overflow: "hidden"
|
|
2239
2239
|
} : {} : {});
|
|
2240
|
-
function
|
|
2240
|
+
function Mt() {
|
|
2241
2241
|
var g;
|
|
2242
2242
|
if (!B.value) {
|
|
2243
2243
|
l.value = [], u.value = 0, d.value = !1, m.value = !1, L.value = 0, H({ height: 0, width: 0 });
|
|
@@ -2252,12 +2252,12 @@ const Hr = {
|
|
|
2252
2252
|
return;
|
|
2253
2253
|
}
|
|
2254
2254
|
try {
|
|
2255
|
-
l.value =
|
|
2255
|
+
l.value = ht(s);
|
|
2256
2256
|
} catch {
|
|
2257
2257
|
l.value = [];
|
|
2258
2258
|
}
|
|
2259
2259
|
const p = Array.isArray((g = s == null ? void 0 : s.data) == null ? void 0 : g.datasets) ? s.data.datasets : [];
|
|
2260
|
-
l.value.length === 0 && (l.value = rt(n.legendUpdateKey, n.chartRef)), l.value.length === 0 && (l.value =
|
|
2260
|
+
l.value.length === 0 && (l.value = rt(n.legendUpdateKey, n.chartRef)), l.value.length === 0 && (l.value = gt(s)), l.value = pt(ot(l.value));
|
|
2261
2261
|
const f = Array.isArray(n.legendUpdateKey) && n.legendUpdateKey.length > 0 || !Array.isArray(n.legendUpdateKey) && !!n.legendUpdateKey;
|
|
2262
2262
|
l.value.length === 0 && !(p.length > 0 || f) && O(0), Ue();
|
|
2263
2263
|
}
|
|
@@ -2266,13 +2266,13 @@ const Hr = {
|
|
|
2266
2266
|
}
|
|
2267
2267
|
function Se(s, p) {
|
|
2268
2268
|
return Array.isArray(s.datasetKeys) && s.datasetKeys.length > 0 ? s.datasetKeys.filter((f) => typeof f == "string" && f.trim().length > 0) : typeof s.datasetKey == "string" && s.datasetKey.trim().length > 0 ? [s.datasetKey] : p.map(
|
|
2269
|
-
(f) =>
|
|
2269
|
+
(f) => wt({
|
|
2270
2270
|
datasetIndex: f,
|
|
2271
2271
|
label: s.text
|
|
2272
2272
|
})
|
|
2273
2273
|
);
|
|
2274
2274
|
}
|
|
2275
|
-
function
|
|
2275
|
+
function Bt(s, p) {
|
|
2276
2276
|
l.value = l.value.map(
|
|
2277
2277
|
(f) => s(f) ? {
|
|
2278
2278
|
...f,
|
|
@@ -2287,81 +2287,81 @@ const Hr = {
|
|
|
2287
2287
|
g && typeof g == "object" && (g.hidden = !f);
|
|
2288
2288
|
}
|
|
2289
2289
|
function vn(s, p) {
|
|
2290
|
-
var
|
|
2290
|
+
var Z;
|
|
2291
2291
|
if (typeof s.toggleDataVisibility == "function") {
|
|
2292
2292
|
s.toggleDataVisibility(p);
|
|
2293
2293
|
return;
|
|
2294
2294
|
}
|
|
2295
|
-
const f = Array.isArray((
|
|
2295
|
+
const f = Array.isArray((Z = s == null ? void 0 : s.data) == null ? void 0 : Z.datasets) ? s.data.datasets[0] : null, g = Array.isArray(f == null ? void 0 : f.data) ? f.data : [];
|
|
2296
2296
|
if (p < 0 || p >= g.length)
|
|
2297
2297
|
return;
|
|
2298
2298
|
const V = typeof s.getDatasetMeta == "function" ? s.getDatasetMeta(0) : null, K = Array.isArray(V == null ? void 0 : V.data) ? V.data[p] : null;
|
|
2299
2299
|
K && typeof K.hidden == "boolean" && (K.hidden = !K.hidden);
|
|
2300
2300
|
}
|
|
2301
2301
|
function Qt(s = 0) {
|
|
2302
|
-
|
|
2302
|
+
Mt();
|
|
2303
2303
|
const p = b(), f = l.value.length > 0;
|
|
2304
|
-
if (p || f || s >=
|
|
2304
|
+
if (p || f || s >= rl) {
|
|
2305
2305
|
F();
|
|
2306
2306
|
return;
|
|
2307
2307
|
}
|
|
2308
2308
|
F(), S = window.setTimeout(() => {
|
|
2309
2309
|
Qt(s + 1);
|
|
2310
|
-
},
|
|
2310
|
+
}, al);
|
|
2311
2311
|
}
|
|
2312
2312
|
function Ke(s, p) {
|
|
2313
|
-
var
|
|
2314
|
-
const f = b(), g = String(((
|
|
2313
|
+
var ve;
|
|
2314
|
+
const f = b(), g = String(((ve = f == null ? void 0 : f.config) == null ? void 0 : ve.type) ?? ""), V = g === "pie" || g === "doughnut" || g === "polarArea", K = typeof s.index == "number" ? s.index : typeof p == "number" ? p : null;
|
|
2315
2315
|
if ((V || typeof s.index == "number") && typeof K == "number") {
|
|
2316
2316
|
if (Array.isArray(n.hiddenDataPointIndexes)) {
|
|
2317
2317
|
o("toggleDataPointVisibility", { itemIndex: K });
|
|
2318
2318
|
return;
|
|
2319
2319
|
}
|
|
2320
2320
|
f && (vn(f, K), f.update());
|
|
2321
|
-
const
|
|
2322
|
-
|
|
2321
|
+
const ye = f && typeof f.getDataVisibility == "function" ? !f.getDataVisibility(K) : s.hidden !== !0;
|
|
2322
|
+
Bt(
|
|
2323
2323
|
(oe) => typeof oe.index == "number" ? oe.index === K : oe.datasetIndex === s.datasetIndex && oe.text === s.text,
|
|
2324
|
-
|
|
2324
|
+
ye
|
|
2325
2325
|
);
|
|
2326
2326
|
return;
|
|
2327
2327
|
}
|
|
2328
2328
|
const te = Zt(s), Y = Se(s, te);
|
|
2329
2329
|
if (Array.isArray(n.hiddenDatasetKeys) && te.length > 0) {
|
|
2330
|
-
te.forEach((
|
|
2330
|
+
te.forEach((ye, oe) => {
|
|
2331
2331
|
o("toggleDatasetVisibility", {
|
|
2332
|
-
datasetIndex:
|
|
2333
|
-
datasetKey: Y[oe] ??
|
|
2334
|
-
datasetIndex:
|
|
2332
|
+
datasetIndex: ye,
|
|
2333
|
+
datasetKey: Y[oe] ?? wt({
|
|
2334
|
+
datasetIndex: ye,
|
|
2335
2335
|
label: s.text
|
|
2336
2336
|
})
|
|
2337
2337
|
});
|
|
2338
2338
|
});
|
|
2339
2339
|
return;
|
|
2340
2340
|
}
|
|
2341
|
-
const de =
|
|
2341
|
+
const de = yt();
|
|
2342
2342
|
if (!f) {
|
|
2343
2343
|
if (te.length > 0) {
|
|
2344
|
-
const
|
|
2344
|
+
const ye = s.hidden !== !0;
|
|
2345
2345
|
te.forEach((oe) => {
|
|
2346
|
-
const
|
|
2347
|
-
|
|
2348
|
-
}),
|
|
2349
|
-
(oe) =>
|
|
2350
|
-
|
|
2346
|
+
const ge = de[oe];
|
|
2347
|
+
ge && typeof ge == "object" && (ge.hidden = ye);
|
|
2348
|
+
}), Bt(
|
|
2349
|
+
(oe) => $e(oe, 0) === $e(s, 0),
|
|
2350
|
+
ye
|
|
2351
2351
|
);
|
|
2352
2352
|
}
|
|
2353
2353
|
return;
|
|
2354
2354
|
}
|
|
2355
2355
|
if (te.length > 0) {
|
|
2356
2356
|
const oe = !te.every(
|
|
2357
|
-
(
|
|
2357
|
+
(ge) => typeof f.isDatasetVisible == "function" ? f.isDatasetVisible(ge) : s.hidden !== !0
|
|
2358
2358
|
);
|
|
2359
|
-
te.forEach((
|
|
2360
|
-
gn(f,
|
|
2361
|
-
const
|
|
2362
|
-
|
|
2363
|
-
}), f.update(),
|
|
2364
|
-
(
|
|
2359
|
+
te.forEach((ge) => {
|
|
2360
|
+
gn(f, ge, oe);
|
|
2361
|
+
const Q = de[ge];
|
|
2362
|
+
Q && typeof Q == "object" && (Q.hidden = !oe);
|
|
2363
|
+
}), f.update(), Bt(
|
|
2364
|
+
(ge) => $e(ge, 0) === $e(s, 0),
|
|
2365
2365
|
!oe
|
|
2366
2366
|
);
|
|
2367
2367
|
}
|
|
@@ -2383,9 +2383,9 @@ const Hr = {
|
|
|
2383
2383
|
r.value
|
|
2384
2384
|
],
|
|
2385
2385
|
() => {
|
|
2386
|
-
|
|
2386
|
+
Mt();
|
|
2387
2387
|
}
|
|
2388
|
-
),
|
|
2388
|
+
), xo(() => {
|
|
2389
2389
|
N.value = !1, F(), H({ height: 0, width: 0 }), window.removeEventListener("mousemove", ie), window.removeEventListener("mouseup", W);
|
|
2390
2390
|
}), (s, p) => B.value ? (X(), le("div", {
|
|
2391
2391
|
key: 0,
|
|
@@ -2396,7 +2396,7 @@ const Hr = {
|
|
|
2396
2396
|
"mb-2": !_.value && s.position === "top",
|
|
2397
2397
|
"mt-2": !_.value && s.position === "bottom"
|
|
2398
2398
|
}]),
|
|
2399
|
-
style: Pe(
|
|
2399
|
+
style: Pe(Pt.value)
|
|
2400
2400
|
}, [
|
|
2401
2401
|
q("div", {
|
|
2402
2402
|
ref_key: "legendScrollShellRef",
|
|
@@ -2408,7 +2408,7 @@ const Hr = {
|
|
|
2408
2408
|
ref: h,
|
|
2409
2409
|
class: "absolute invisible pointer-events-none left-0 top-0 z-[2] inline-flex max-w-full select-none"
|
|
2410
2410
|
}, [
|
|
2411
|
-
q("button",
|
|
2411
|
+
q("button", Qr, Ce(i(a)("report.widget.legend.viewMore")), 1)
|
|
2412
2412
|
], 512),
|
|
2413
2413
|
q("ul", {
|
|
2414
2414
|
ref_key: "legendListRef",
|
|
@@ -2419,8 +2419,8 @@ const Hr = {
|
|
|
2419
2419
|
style: Pe(st.value),
|
|
2420
2420
|
onScroll: M
|
|
2421
2421
|
}, [
|
|
2422
|
-
(X(!0), le(
|
|
2423
|
-
key:
|
|
2422
|
+
(X(!0), le(Ne, null, ft(Qe.value, (f, g) => (X(), le("li", {
|
|
2423
|
+
key: $e(f, g),
|
|
2424
2424
|
class: De(["chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto", {
|
|
2425
2425
|
"opacity-45": f.hidden
|
|
2426
2426
|
}]),
|
|
@@ -2451,10 +2451,10 @@ const Hr = {
|
|
|
2451
2451
|
"line-through": f.hidden
|
|
2452
2452
|
}]),
|
|
2453
2453
|
title: f.text ?? ""
|
|
2454
|
-
}, Ce(f.text), 11,
|
|
2455
|
-
], 10,
|
|
2454
|
+
}, Ce(f.text), 11, tl)
|
|
2455
|
+
], 10, el)
|
|
2456
2456
|
], 2))), 128)),
|
|
2457
|
-
m.value ? (X(), le("li",
|
|
2457
|
+
m.value ? (X(), le("li", nl, [
|
|
2458
2458
|
q("button", {
|
|
2459
2459
|
type: "button",
|
|
2460
2460
|
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",
|
|
@@ -2477,11 +2477,11 @@ const Hr = {
|
|
|
2477
2477
|
], 512)
|
|
2478
2478
|
], 6)) : he("", !0);
|
|
2479
2479
|
}
|
|
2480
|
-
}),
|
|
2481
|
-
function
|
|
2482
|
-
const { t: n } =
|
|
2480
|
+
}), Ve = /* @__PURE__ */ Lo(ll, [["__scopeId", "data-v-706fa016"]]);
|
|
2481
|
+
function sl(e, t) {
|
|
2482
|
+
const { t: n } = mt(), { breakpoints: o } = Wt(), a = P(!1), r = P(null), l = P(null);
|
|
2483
2483
|
function u() {
|
|
2484
|
-
return
|
|
2484
|
+
return Uo(e.value) ?? l.value;
|
|
2485
2485
|
}
|
|
2486
2486
|
function d(v) {
|
|
2487
2487
|
a.value = v, !v && (r.value = null, fn(u()), l.value = null);
|
|
@@ -2510,10 +2510,10 @@ function ll(e, t) {
|
|
|
2510
2510
|
handleTooltipDetailsLeave: U
|
|
2511
2511
|
};
|
|
2512
2512
|
}
|
|
2513
|
-
function
|
|
2513
|
+
function il(e) {
|
|
2514
2514
|
const t = P([]), n = c(() => new Set(t.value));
|
|
2515
2515
|
function o(l, u) {
|
|
2516
|
-
return
|
|
2516
|
+
return wt({
|
|
2517
2517
|
datasetIndex: u,
|
|
2518
2518
|
label: l == null ? void 0 : l.label
|
|
2519
2519
|
});
|
|
@@ -2552,13 +2552,13 @@ function Yt({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2552
2552
|
handleTooltipDetailsSheetVisibility: u,
|
|
2553
2553
|
handleTooltipDetailsHover: d,
|
|
2554
2554
|
handleTooltipDetailsLeave: m
|
|
2555
|
-
} =
|
|
2555
|
+
} = sl(e, {
|
|
2556
2556
|
maxTooltipItems: o,
|
|
2557
2557
|
comparisonXAxis: c(() => {
|
|
2558
2558
|
var x;
|
|
2559
2559
|
return (x = t.value.data) == null ? void 0 : x.comparisonXAxis;
|
|
2560
2560
|
})
|
|
2561
|
-
}), { datalabels: L, xCfg: U, yCfg: y, isTransposed: v, legend: h } =
|
|
2561
|
+
}), { datalabels: L, xCfg: U, yCfg: y, isTransposed: v, legend: h } = Yo(t.value), k = c(
|
|
2562
2562
|
() => Rn(t.value.isTransposed === !0, l.value)
|
|
2563
2563
|
), I = c(() => {
|
|
2564
2564
|
const x = h.value.position;
|
|
@@ -2567,7 +2567,7 @@ function Yt({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2567
2567
|
() => A.value === "left" || A.value === "right"
|
|
2568
2568
|
), E = c(
|
|
2569
2569
|
() => A.value === "top" || A.value === "left"
|
|
2570
|
-
), { hiddenDatasetKeys: D, isDatasetHidden: B, toggleDatasetVisibility: _ } =
|
|
2570
|
+
), { hiddenDatasetKeys: D, isDatasetHidden: B, toggleDatasetVisibility: _ } = il(n), S = c(() => n.value.map((x, z) => ({
|
|
2571
2571
|
...x,
|
|
2572
2572
|
hidden: B(x, z)
|
|
2573
2573
|
})));
|
|
@@ -2592,12 +2592,12 @@ function Yt({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2592
2592
|
datasets: S
|
|
2593
2593
|
};
|
|
2594
2594
|
}
|
|
2595
|
-
const
|
|
2596
|
-
function
|
|
2595
|
+
const yo = /* @__PURE__ */ new WeakMap();
|
|
2596
|
+
function Eo(e) {
|
|
2597
2597
|
return typeof e == "number" && Number.isFinite(e);
|
|
2598
2598
|
}
|
|
2599
2599
|
function Et(e) {
|
|
2600
|
-
return e.map((t) =>
|
|
2600
|
+
return e.map((t) => Eo(t) ? t : null);
|
|
2601
2601
|
}
|
|
2602
2602
|
function Kn(e) {
|
|
2603
2603
|
return e.reduce((t, n, o) => (n === null && t.push(o), t), []);
|
|
@@ -2606,14 +2606,14 @@ function qt(e, t) {
|
|
|
2606
2606
|
const n = e[t];
|
|
2607
2607
|
if (!n || n.xAxisIndex === void 0)
|
|
2608
2608
|
return t;
|
|
2609
|
-
let o =
|
|
2609
|
+
let o = yo.get(e);
|
|
2610
2610
|
return o || (o = /* @__PURE__ */ new Map(), e.forEach((a, r) => {
|
|
2611
2611
|
o.has(a.name) || o.set(a.name, r);
|
|
2612
|
-
}),
|
|
2612
|
+
}), yo.set(e, o)), o.get(n.name) ?? t;
|
|
2613
2613
|
}
|
|
2614
2614
|
function Gt(e, t, n) {
|
|
2615
2615
|
return e.some((o) => o.xAxisIndex !== void 0) ? e.filter(
|
|
2616
|
-
(o) => o.xAxisIndex === void 0 ||
|
|
2616
|
+
(o) => o.xAxisIndex === void 0 || Eo(o.values[0]) || (n == null ? void 0 : n.preserveNullableValues) === !0 && o.values[0] === null
|
|
2617
2617
|
).map((o) => o.xAxisIndex === void 0 ? o : {
|
|
2618
2618
|
...o,
|
|
2619
2619
|
values: Array.from(
|
|
@@ -2622,7 +2622,7 @@ function Gt(e, t, n) {
|
|
|
2622
2622
|
)
|
|
2623
2623
|
}) : e;
|
|
2624
2624
|
}
|
|
2625
|
-
const
|
|
2625
|
+
const ul = { class: "widget-content" }, _n = 1, bo = "rgba(0, 0, 0, 0)", cl = /* @__PURE__ */ Me({
|
|
2626
2626
|
__name: "WidgetBarchart",
|
|
2627
2627
|
props: /* @__PURE__ */ We({
|
|
2628
2628
|
tileIndex: {}
|
|
@@ -2651,8 +2651,8 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
2651
2651
|
return {
|
|
2652
2652
|
label: `__comparison_gap__${T}`,
|
|
2653
2653
|
data: [0],
|
|
2654
|
-
backgroundColor:
|
|
2655
|
-
borderColor:
|
|
2654
|
+
backgroundColor: bo,
|
|
2655
|
+
borderColor: bo,
|
|
2656
2656
|
minBarLength: 0,
|
|
2657
2657
|
barPercentage: _n,
|
|
2658
2658
|
isSpacer: !0
|
|
@@ -2663,30 +2663,30 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
2663
2663
|
const $ = Ot({
|
|
2664
2664
|
datasets: l.value,
|
|
2665
2665
|
datasetIndex: M
|
|
2666
|
-
}), re = r.value ? qt(l.value, $) : $, ie =
|
|
2666
|
+
}), re = r.value ? qt(l.value, $) : $, ie = Fe({
|
|
2667
2667
|
datasetIndex: re,
|
|
2668
2668
|
isCompare: !1,
|
|
2669
2669
|
metricCount: t.value.metricCount,
|
|
2670
2670
|
mode: t.value.chartColorBinding
|
|
2671
|
-
}), W =
|
|
2671
|
+
}), W = Fe({
|
|
2672
2672
|
datasetIndex: re,
|
|
2673
2673
|
isCompare: !1,
|
|
2674
2674
|
metricCount: t.value.metricCount,
|
|
2675
2675
|
mode: we.metric
|
|
2676
2676
|
});
|
|
2677
|
-
let
|
|
2678
|
-
u.value && (
|
|
2679
|
-
(
|
|
2677
|
+
let J = T.values;
|
|
2678
|
+
u.value && (J = o.value.map(
|
|
2679
|
+
(be, ne) => ne === M ? T.values[0] : NaN
|
|
2680
2680
|
));
|
|
2681
|
-
const ee = t.value.chartColorBinding === we.breakdown, ue =
|
|
2681
|
+
const ee = t.value.chartColorBinding === we.breakdown, ue = Tt({
|
|
2682
2682
|
fallbackIndex: re,
|
|
2683
2683
|
metricCount: t.value.metricCount
|
|
2684
|
-
}), me = Et(
|
|
2684
|
+
}), me = Et(J);
|
|
2685
2685
|
return {
|
|
2686
2686
|
label: T.name,
|
|
2687
2687
|
data: me,
|
|
2688
2688
|
xAxisIndex: T.xAxisIndex,
|
|
2689
|
-
emptyValueIndexes: t.value.hasNullableMetric ? T.xAxisIndex === void 0 ? Kn(
|
|
2689
|
+
emptyValueIndexes: t.value.hasNullableMetric ? T.xAxisIndex === void 0 ? Kn(J) : J[T.xAxisIndex] === null ? [T.xAxisIndex] : void 0 : void 0,
|
|
2690
2690
|
dash: !!T.isCompare,
|
|
2691
2691
|
// A SQL row only owns one X-axis bucket. Skip its generated nulls in
|
|
2692
2692
|
// every other bucket so an earlier date cannot reserve a bar slot
|
|
@@ -2694,7 +2694,7 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
2694
2694
|
skipNull: r.value,
|
|
2695
2695
|
minBarLength: void 0,
|
|
2696
2696
|
barPercentage: L.value ? _n : void 0,
|
|
2697
|
-
backgroundColor: ee ?
|
|
2697
|
+
backgroundColor: ee ? Dt({
|
|
2698
2698
|
breakdownIndex: ue,
|
|
2699
2699
|
metricIndex: W,
|
|
2700
2700
|
metricCount: t.value.metricCount,
|
|
@@ -2702,7 +2702,7 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
2702
2702
|
breakdownColors: t.value.chartBreakdownColors,
|
|
2703
2703
|
useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
|
|
2704
2704
|
customColors: t.value.chartColors
|
|
2705
|
-
}) :
|
|
2705
|
+
}) : Je({
|
|
2706
2706
|
index: ie,
|
|
2707
2707
|
isCompare: T.isCompare,
|
|
2708
2708
|
customColors: t.value.chartColors
|
|
@@ -2754,17 +2754,17 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
2754
2754
|
}
|
|
2755
2755
|
}));
|
|
2756
2756
|
return (T, M) => {
|
|
2757
|
-
var re, ie, W,
|
|
2757
|
+
var re, ie, W, J, ee, ue;
|
|
2758
2758
|
const $ = fe("FmBarChart");
|
|
2759
|
-
return X(), le(
|
|
2760
|
-
q("div",
|
|
2759
|
+
return X(), le(Ne, null, [
|
|
2760
|
+
q("div", ul, [
|
|
2761
2761
|
nt(T.$slots, "menu"),
|
|
2762
2762
|
q("div", {
|
|
2763
2763
|
class: De(["chart-layout", {
|
|
2764
2764
|
"chart-layout--side": i(z) && (i(x).display ?? !1) && i(ae)
|
|
2765
2765
|
}])
|
|
2766
2766
|
}, [
|
|
2767
|
-
i(z) && (i(x).display ?? !1) && i(O) ? (X(), ce(
|
|
2767
|
+
i(z) && (i(x).display ?? !1) && i(O) ? (X(), ce(Ve, {
|
|
2768
2768
|
key: 0,
|
|
2769
2769
|
"chart-ref": n.value,
|
|
2770
2770
|
enabled: i(x).display ?? !1,
|
|
@@ -2796,12 +2796,12 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
2796
2796
|
plugins: [i(U)],
|
|
2797
2797
|
"maintain-aspect-ratio": !1
|
|
2798
2798
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "tooltip", "datalabels", "plugins"]),
|
|
2799
|
-
i(z) && (i(x).display ?? !1) && !i(O) ? (X(), ce(
|
|
2799
|
+
i(z) && (i(x).display ?? !1) && !i(O) ? (X(), ce(Ve, {
|
|
2800
2800
|
key: 1,
|
|
2801
2801
|
"chart-ref": n.value,
|
|
2802
2802
|
enabled: i(x).display ?? !1,
|
|
2803
2803
|
position: i(j),
|
|
2804
|
-
"text-color": (
|
|
2804
|
+
"text-color": (J = i(x).labels) == null ? void 0 : J.color,
|
|
2805
2805
|
"font-size": (ue = (ee = i(x).labels) == null ? void 0 : ee.font) == null ? void 0 : ue.size,
|
|
2806
2806
|
"legend-update-key": i(b),
|
|
2807
2807
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
@@ -2825,7 +2825,7 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
2825
2825
|
], 64);
|
|
2826
2826
|
};
|
|
2827
2827
|
}
|
|
2828
|
-
}),
|
|
2828
|
+
}), dl = { class: "widget-content" }, fl = /* @__PURE__ */ Me({
|
|
2829
2829
|
__name: "WidgetCircular",
|
|
2830
2830
|
props: /* @__PURE__ */ We({
|
|
2831
2831
|
tileIndex: {}
|
|
@@ -2835,7 +2835,7 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
2835
2835
|
}),
|
|
2836
2836
|
emits: ["update:modelValue"],
|
|
2837
2837
|
setup(e) {
|
|
2838
|
-
const t = Oe(e, "modelValue"), { breakpoints: n } = Wt(), o = P(null), a = P([]), { datalabels: r, legend: l } =
|
|
2838
|
+
const t = Oe(e, "modelValue"), { breakpoints: n } = Wt(), o = P(null), a = P([]), { datalabels: r, legend: l } = Yo(t.value), u = c(() => {
|
|
2839
2839
|
const B = Array.isArray(t.value.data.datasets) ? t.value.data.datasets.map((_) => _.name) : [];
|
|
2840
2840
|
return B.length > 0 ? B : Array.isArray(t.value.data.metrics) ? t.value.data.metrics.map((_) => String(_)) : [];
|
|
2841
2841
|
}), d = c(() => {
|
|
@@ -2848,7 +2848,7 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
2848
2848
|
(S, x) => a.value.includes(x) ? null : S.value
|
|
2849
2849
|
),
|
|
2850
2850
|
backgroundColor: t.value.data.datasets.map(
|
|
2851
|
-
(S, x) =>
|
|
2851
|
+
(S, x) => Je({ index: x, customColors: t.value.chartColors })
|
|
2852
2852
|
)
|
|
2853
2853
|
}
|
|
2854
2854
|
]), B;
|
|
@@ -2878,7 +2878,7 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
2878
2878
|
return typeof B == "string" && B.trim().length > 0 ? B : t.value.legendColor ?? "#6b6b6b";
|
|
2879
2879
|
}), A = c(() => m.value), N = c(() => ({
|
|
2880
2880
|
display: !1
|
|
2881
|
-
})), E =
|
|
2881
|
+
})), E = Xa();
|
|
2882
2882
|
function D({ itemIndex: B }) {
|
|
2883
2883
|
if (a.value.includes(B)) {
|
|
2884
2884
|
a.value = a.value.filter(
|
|
@@ -2890,14 +2890,14 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
2890
2890
|
}
|
|
2891
2891
|
return (B, _) => {
|
|
2892
2892
|
const S = fe("FmPieChart");
|
|
2893
|
-
return X(), le("div",
|
|
2893
|
+
return X(), le("div", dl, [
|
|
2894
2894
|
nt(B.$slots, "menu"),
|
|
2895
2895
|
q("div", {
|
|
2896
2896
|
class: De(["chart-layout", {
|
|
2897
2897
|
"chart-layout--side": y.value && h.value
|
|
2898
2898
|
}])
|
|
2899
2899
|
}, [
|
|
2900
|
-
y.value && k.value ? (X(), ce(
|
|
2900
|
+
y.value && k.value ? (X(), ce(Ve, {
|
|
2901
2901
|
key: 0,
|
|
2902
2902
|
"chart-ref": o.value,
|
|
2903
2903
|
enabled: U.value,
|
|
@@ -2927,7 +2927,7 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
2927
2927
|
datalabels: i(r),
|
|
2928
2928
|
"maintain-aspect-ratio": !1
|
|
2929
2929
|
}, null, 8, ["datasets", "metrics", "tooltip", "legend", "datalabels"]),
|
|
2930
|
-
y.value && !k.value ? (X(), ce(
|
|
2930
|
+
y.value && !k.value ? (X(), ce(Ve, {
|
|
2931
2931
|
key: 1,
|
|
2932
2932
|
"chart-ref": o.value,
|
|
2933
2933
|
enabled: U.value,
|
|
@@ -2948,10 +2948,10 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
2948
2948
|
]);
|
|
2949
2949
|
};
|
|
2950
2950
|
}
|
|
2951
|
-
}),
|
|
2951
|
+
}), ml = { class: "h-full flex flex-col gap-2 justify-end" }, pl = { class: "flex flex-wrap gap-x-4 gap-y-2" }, hl = { class: "flex items-center gap-1" }, gl = ["title"], vl = { class: "fm-typo-en-body-lg-600" }, yl = {
|
|
2952
2952
|
class: "flex w-full h-3 shrink-0 rounded-full overflow-hidden",
|
|
2953
2953
|
style: { "background-color": "#f2f2f7" }
|
|
2954
|
-
},
|
|
2954
|
+
}, bl = /* @__PURE__ */ Me({
|
|
2955
2955
|
__name: "ScorecardStackedBar",
|
|
2956
2956
|
props: {
|
|
2957
2957
|
dimensions: {},
|
|
@@ -2966,18 +2966,18 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
2966
2966
|
return {
|
|
2967
2967
|
label: r,
|
|
2968
2968
|
width: a > 0 ? (o[l] ?? 0) / a * 100 : 0,
|
|
2969
|
-
color:
|
|
2970
|
-
display: t.percentOfTotal ? `${Math.round(u * 1e3) / 10}%` :
|
|
2969
|
+
color: Je({ index: l }),
|
|
2970
|
+
display: t.percentOfTotal ? `${Math.round(u * 1e3) / 10}%` : dt(u.toFixed(2))
|
|
2971
2971
|
};
|
|
2972
2972
|
});
|
|
2973
2973
|
});
|
|
2974
|
-
return (o, a) => (X(), le("div",
|
|
2975
|
-
q("div",
|
|
2976
|
-
(X(!0), le(
|
|
2974
|
+
return (o, a) => (X(), le("div", ml, [
|
|
2975
|
+
q("div", pl, [
|
|
2976
|
+
(X(!0), le(Ne, null, ft(n.value, (r, l) => (X(), le("div", {
|
|
2977
2977
|
key: l,
|
|
2978
2978
|
class: "flex flex-col gap-1 flex-1 min-w-[80px]"
|
|
2979
2979
|
}, [
|
|
2980
|
-
q("div",
|
|
2980
|
+
q("div", hl, [
|
|
2981
2981
|
q("span", {
|
|
2982
2982
|
class: "inline-block w-3 h-3 rounded-sm shrink-0",
|
|
2983
2983
|
style: Pe({ backgroundColor: r.color })
|
|
@@ -2985,29 +2985,29 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
2985
2985
|
q("p", {
|
|
2986
2986
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary truncate",
|
|
2987
2987
|
title: r.label
|
|
2988
|
-
}, Ce(r.label), 9,
|
|
2988
|
+
}, Ce(r.label), 9, gl)
|
|
2989
2989
|
]),
|
|
2990
|
-
q("p",
|
|
2990
|
+
q("p", vl, Ce(r.display), 1)
|
|
2991
2991
|
]))), 128))
|
|
2992
2992
|
]),
|
|
2993
|
-
q("div",
|
|
2994
|
-
(X(!0), le(
|
|
2993
|
+
q("div", yl, [
|
|
2994
|
+
(X(!0), le(Ne, null, ft(n.value, (r, l) => (X(), le("div", {
|
|
2995
2995
|
key: l,
|
|
2996
2996
|
style: Pe({ width: `${r.width}%`, backgroundColor: r.color })
|
|
2997
2997
|
}, null, 4))), 128))
|
|
2998
2998
|
])
|
|
2999
2999
|
]));
|
|
3000
3000
|
}
|
|
3001
|
-
}),
|
|
3001
|
+
}), Cl = { class: "flex flex-col h-full" }, xl = { class: "fm-typo-en-title-md-600" }, wl = { class: "flex gap-2 mt-2" }, _l = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Sl = {
|
|
3002
3002
|
key: 0,
|
|
3003
3003
|
class: "mt-auto pt-4"
|
|
3004
|
-
},
|
|
3004
|
+
}, kl = { class: "flex justify-between gap-2 text-fm-color-typo-secondary fm-typo-en-body-sm-600" }, Tl = { class: "text-right" }, Ll = ["aria-valuenow", "aria-valuetext"], Dl = { class: "mt-1 text-fm-color-typo-secondary fm-typo-en-body-sm-600" }, Il = {
|
|
3005
3005
|
key: 1,
|
|
3006
3006
|
class: "grow min-h-0 mt-2"
|
|
3007
|
-
},
|
|
3007
|
+
}, Pl = {
|
|
3008
3008
|
key: 2,
|
|
3009
3009
|
class: "mt-2"
|
|
3010
|
-
},
|
|
3010
|
+
}, Ml = /* @__PURE__ */ Me({
|
|
3011
3011
|
__name: "WidgetScorecard",
|
|
3012
3012
|
props: {
|
|
3013
3013
|
modelValue: { required: !0 },
|
|
@@ -3015,10 +3015,10 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
3015
3015
|
},
|
|
3016
3016
|
emits: ["update:modelValue"],
|
|
3017
3017
|
setup(e) {
|
|
3018
|
-
const t = Oe(e, "modelValue"), { t: n } =
|
|
3018
|
+
const t = Oe(e, "modelValue"), { t: n } = mt(), { compareDateRange: o, defaultDateSetting: a } = $t(mn()), { country: r } = To(), l = c(() => {
|
|
3019
3019
|
var O;
|
|
3020
3020
|
return ((O = t.value.data) == null ? void 0 : O.value) || "";
|
|
3021
|
-
}), u = c(() =>
|
|
3021
|
+
}), u = c(() => dt(l.value)), d = c(
|
|
3022
3022
|
() => {
|
|
3023
3023
|
var O, H;
|
|
3024
3024
|
return ((H = (O = t.value.data) == null ? void 0 : O.sparkline) == null ? void 0 : H.type) === Vt.progress;
|
|
@@ -3036,7 +3036,7 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
3036
3036
|
const y = c(() => {
|
|
3037
3037
|
const O = L(l.value), H = m.value;
|
|
3038
3038
|
return !Number.isFinite(O) || H == null || H <= 0 ? null : O / H * 100;
|
|
3039
|
-
}), v = c(() => y.value === null ? 0 : Math.min(Math.max(y.value, 0), 100)), h = c(() =>
|
|
3039
|
+
}), v = c(() => y.value === null ? 0 : Math.min(Math.max(y.value, 0), 100)), h = c(() => dt(m.value)), k = c(
|
|
3040
3040
|
() => n("report.widget.scorecardProgress.achieved", {
|
|
3041
3041
|
percentage: y.value === null ? "" : y.value.toFixed(2)
|
|
3042
3042
|
})
|
|
@@ -3050,10 +3050,10 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
3050
3050
|
const O = L(l.value), H = m.value;
|
|
3051
3051
|
if (!Number.isFinite(O) || H == null || H <= 0) return "";
|
|
3052
3052
|
const F = Math.max(U(l.value), U(H));
|
|
3053
|
-
return
|
|
3053
|
+
return dt(Math.max(H - O, 0).toFixed(F));
|
|
3054
3054
|
}), E = c(() => {
|
|
3055
3055
|
const { data: O } = t.value;
|
|
3056
|
-
return O != null && O.comparison ?
|
|
3056
|
+
return O != null && O.comparison ? Fo(l.value, O.comparison, r) : null;
|
|
3057
3057
|
});
|
|
3058
3058
|
function D(O) {
|
|
3059
3059
|
switch (O) {
|
|
@@ -3086,10 +3086,10 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
3086
3086
|
return (O, H) => {
|
|
3087
3087
|
var M;
|
|
3088
3088
|
const F = fe("FmIcon"), b = fe("FmChip"), C = fe("FmTooltip"), R = fe("FmLineChart"), T = fe("FmBarChart");
|
|
3089
|
-
return X(), le("div",
|
|
3089
|
+
return X(), le("div", Cl, [
|
|
3090
3090
|
nt(O.$slots, "menu"),
|
|
3091
|
-
q("p",
|
|
3092
|
-
q("div",
|
|
3091
|
+
q("p", xl, Ce(u.value), 1),
|
|
3092
|
+
q("div", wl, [
|
|
3093
3093
|
pe(C, {
|
|
3094
3094
|
disabled: E.value === null,
|
|
3095
3095
|
placement: "right",
|
|
@@ -3099,7 +3099,7 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
3099
3099
|
content: Le(() => {
|
|
3100
3100
|
var $;
|
|
3101
3101
|
return [
|
|
3102
|
-
q("span",
|
|
3102
|
+
q("span", _l, Ce(`vs. ${($ = i(a).defaultCompareType) == null ? void 0 : $.split("_").join(" ")}`), 1)
|
|
3103
3103
|
];
|
|
3104
3104
|
}),
|
|
3105
3105
|
default: Le(() => [
|
|
@@ -3140,12 +3140,12 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
3140
3140
|
_: 1
|
|
3141
3141
|
}, 8, ["disabled"])
|
|
3142
3142
|
]),
|
|
3143
|
-
d.value ? (X(), le("div",
|
|
3144
|
-
q("div",
|
|
3143
|
+
d.value ? (X(), le("div", Sl, [
|
|
3144
|
+
q("div", kl, [
|
|
3145
3145
|
q("span", {
|
|
3146
3146
|
class: De(y.value === null ? "" : "text-fm-color-primary-500")
|
|
3147
3147
|
}, Ce(k.value), 3),
|
|
3148
|
-
q("span",
|
|
3148
|
+
q("span", Tl, Ce(u.value) + " / " + Ce(I.value), 1)
|
|
3149
3149
|
]),
|
|
3150
3150
|
q("div", {
|
|
3151
3151
|
class: "h-8 mt-1 overflow-hidden rounded-full bg-fm-color-neutral-gray-100",
|
|
@@ -3159,9 +3159,9 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
3159
3159
|
class: "h-full rounded-full bg-[#36A2EB] transition-[width] duration-300",
|
|
3160
3160
|
style: Pe({ width: `${v.value}%` })
|
|
3161
3161
|
}, null, 4)
|
|
3162
|
-
], 8,
|
|
3163
|
-
q("p",
|
|
3164
|
-
])) : B.value ? (X(), le("div",
|
|
3162
|
+
], 8, Ll),
|
|
3163
|
+
q("p", Dl, Ce(A.value), 1)
|
|
3164
|
+
])) : B.value ? (X(), le("div", Il, [
|
|
3165
3165
|
D(B.value.type) === "line" ? (X(), ce(R, {
|
|
3166
3166
|
key: 0,
|
|
3167
3167
|
class: "sparkline sparkline-chart",
|
|
@@ -3188,13 +3188,13 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
3188
3188
|
"x-cfg": { display: !1 },
|
|
3189
3189
|
tooltip: ae.value,
|
|
3190
3190
|
"maintain-aspect-ratio": !1
|
|
3191
|
-
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : (X(), ce(
|
|
3191
|
+
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : (X(), ce(bl, {
|
|
3192
3192
|
key: 2,
|
|
3193
3193
|
dimensions: B.value.dimensions,
|
|
3194
3194
|
values: ((M = B.value.datasets[0]) == null ? void 0 : M.values) ?? [],
|
|
3195
3195
|
"percent-of-total": B.value.percentOfTotal === !0
|
|
3196
3196
|
}, null, 8, ["dimensions", "values", "percent-of-total"]))
|
|
3197
|
-
])) : (X(), le("div",
|
|
3197
|
+
])) : (X(), le("div", Pl, H[1] || (H[1] = [
|
|
3198
3198
|
q("div", { class: "sparkline" }, [
|
|
3199
3199
|
q("div", { class: "flex flex-col gap-8" }, [
|
|
3200
3200
|
q("div"),
|
|
@@ -3206,15 +3206,15 @@ const il = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ul = /*
|
|
|
3206
3206
|
]);
|
|
3207
3207
|
};
|
|
3208
3208
|
}
|
|
3209
|
-
}),
|
|
3210
|
-
function
|
|
3209
|
+
}), Bl = {};
|
|
3210
|
+
function Al(e, t) {
|
|
3211
3211
|
const n = fe("FmMenuDivider");
|
|
3212
3212
|
return X(), ce(n);
|
|
3213
3213
|
}
|
|
3214
|
-
const
|
|
3214
|
+
const Fl = /* @__PURE__ */ Lo(Bl, [["render", Al]]), Rl = "/assets/processTableData.worker-BsZijJg_.js", Nl = { class: "flex h-full flex-col" }, Vl = { class: "my-4 shrink-0" }, $l = {
|
|
3215
3215
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
3216
3216
|
style: { backgroundColor: "#f9f9f9" }
|
|
3217
|
-
},
|
|
3217
|
+
}, zl = { class: "font-bold" }, Hl = { class: "text-fm-color-neutral-gray-300" }, Wl = /* @__PURE__ */ Me({
|
|
3218
3218
|
__name: "WidgetTable",
|
|
3219
3219
|
props: /* @__PURE__ */ We({
|
|
3220
3220
|
tileIndex: {}
|
|
@@ -3224,7 +3224,7 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3224
3224
|
}),
|
|
3225
3225
|
emits: ["update:modelValue"],
|
|
3226
3226
|
setup(e) {
|
|
3227
|
-
const { t, te: n } =
|
|
3227
|
+
const { t, te: n } = mt(), o = Oe(e, "modelValue"), { country: a } = To(), { clearTileSorts: r, setTileSorts: l } = xa(), u = Vn(), d = e, m = P([]), L = P(null), U = c(() => {
|
|
3228
3228
|
var b;
|
|
3229
3229
|
return ((b = o.value.data) == null ? void 0 : b.columns) || [{ label: "", key: "" }];
|
|
3230
3230
|
}), y = c(() => {
|
|
@@ -3259,14 +3259,14 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3259
3259
|
const N = c(() => o.value.filterText), E = c(() => {
|
|
3260
3260
|
var C;
|
|
3261
3261
|
const b = (C = o.value.grandTotalLabel) == null ? void 0 : C.trim();
|
|
3262
|
-
return b && b.length > 0 ? b :
|
|
3262
|
+
return b && b.length > 0 ? b : ut(t, n, "Grand total", "other");
|
|
3263
3263
|
}), D = c(() => {
|
|
3264
3264
|
var b, C;
|
|
3265
3265
|
if (!(N.value && N.value.trim().length > 0 || !((b = y.value[0]) != null && b.isRollup) && !((C = y.value[y.value.length - 1]) != null && C.isRollup))) {
|
|
3266
|
-
if (o.value.rollupPosition ===
|
|
3267
|
-
return
|
|
3268
|
-
if (o.value.rollupPosition ===
|
|
3269
|
-
return
|
|
3266
|
+
if (o.value.rollupPosition === Ge.top || o.value.rollupPosition === void 0)
|
|
3267
|
+
return Ge.top;
|
|
3268
|
+
if (o.value.rollupPosition === Ge.bottom)
|
|
3269
|
+
return Ge.bottom;
|
|
3270
3270
|
}
|
|
3271
3271
|
}), B = c(() => {
|
|
3272
3272
|
const b = h.value, C = 34.5, R = 32, T = D.value !== void 0 ? 1 : 0, M = (L.value ? L.value.$el.offsetHeight : 0) - b;
|
|
@@ -3275,7 +3275,7 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3275
3275
|
var C, R;
|
|
3276
3276
|
let b = [];
|
|
3277
3277
|
switch (D.value) {
|
|
3278
|
-
case
|
|
3278
|
+
case Ge.top:
|
|
3279
3279
|
b = [...((C = y.value[0]) == null ? void 0 : C.cells) || []].map((T, M) => {
|
|
3280
3280
|
var $;
|
|
3281
3281
|
return {
|
|
@@ -3285,7 +3285,7 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3285
3285
|
};
|
|
3286
3286
|
});
|
|
3287
3287
|
break;
|
|
3288
|
-
case
|
|
3288
|
+
case Ge.bottom:
|
|
3289
3289
|
b = [...((R = y.value[y.value.length - 1]) == null ? void 0 : R.cells) || []].map((T, M) => {
|
|
3290
3290
|
var $;
|
|
3291
3291
|
return {
|
|
@@ -3305,7 +3305,7 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3305
3305
|
} : (C.includes("#") && !C.startsWith("#") && (C = C.split("#")[0]), {
|
|
3306
3306
|
main: C,
|
|
3307
3307
|
comparison: b == null ? void 0 : b.comparison,
|
|
3308
|
-
difference:
|
|
3308
|
+
difference: Fo(b.main, b.comparison, i(a))
|
|
3309
3309
|
});
|
|
3310
3310
|
}
|
|
3311
3311
|
Ht(() => {
|
|
@@ -3331,15 +3331,15 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3331
3331
|
rows: C,
|
|
3332
3332
|
columns: R,
|
|
3333
3333
|
filter: N.value ?? "",
|
|
3334
|
-
globalSorts:
|
|
3334
|
+
globalSorts: pa(m.value).map(($) => ({
|
|
3335
3335
|
key: $.key,
|
|
3336
3336
|
type: $.type
|
|
3337
3337
|
})),
|
|
3338
3338
|
grandTotalPosition: D.value,
|
|
3339
3339
|
pageSize: B.value
|
|
3340
3340
|
};
|
|
3341
|
-
|
|
3342
|
-
b === z && ($ != null && $.error ? (u.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log($.error), x.value = []) : x.value =
|
|
3341
|
+
wa(Rl, T).then(($) => {
|
|
3342
|
+
b === z && ($ != null && $.error ? (u.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log($.error), x.value = []) : x.value = ha($.data || []));
|
|
3343
3343
|
});
|
|
3344
3344
|
}
|
|
3345
3345
|
Te(
|
|
@@ -3379,7 +3379,7 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3379
3379
|
const F = c(() => {
|
|
3380
3380
|
var b;
|
|
3381
3381
|
return (b = o.value.data) != null && b.columns ? o.value.data.columns.map((C, R) => {
|
|
3382
|
-
const T =
|
|
3382
|
+
const T = ut(t, n, C.label, "other"), M = m.value.find((W) => W.key === C.key), $ = !!M, re = A(C.key), ie = $ ? M.type === At.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
|
|
3383
3383
|
return {
|
|
3384
3384
|
accessorKey: C.key,
|
|
3385
3385
|
header: () => {
|
|
@@ -3409,7 +3409,7 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3409
3409
|
},
|
|
3410
3410
|
cell: (W) => {
|
|
3411
3411
|
var ue, me;
|
|
3412
|
-
const
|
|
3412
|
+
const J = S(W.getValue()), ee = (me = (ue = W == null ? void 0 : W.row) == null ? void 0 : ue.original) == null ? void 0 : me.isRollup;
|
|
3413
3413
|
return on(
|
|
3414
3414
|
"div",
|
|
3415
3415
|
{
|
|
@@ -3421,7 +3421,7 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3421
3421
|
].join(" "),
|
|
3422
3422
|
style: k()
|
|
3423
3423
|
},
|
|
3424
|
-
[C.type === "NUMERIC" ?
|
|
3424
|
+
[C.type === "NUMERIC" ? dt(J.main) : J.main]
|
|
3425
3425
|
);
|
|
3426
3426
|
},
|
|
3427
3427
|
meta: re,
|
|
@@ -3431,8 +3431,8 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3431
3431
|
});
|
|
3432
3432
|
return (b, C) => {
|
|
3433
3433
|
const R = fe("FmTable");
|
|
3434
|
-
return X(), le("div",
|
|
3435
|
-
q("div",
|
|
3434
|
+
return X(), le("div", Nl, [
|
|
3435
|
+
q("div", Vl, [
|
|
3436
3436
|
nt(b.$slots, "menu")
|
|
3437
3437
|
]),
|
|
3438
3438
|
pe(R, {
|
|
@@ -3447,14 +3447,14 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3447
3447
|
class: "scrollbar-hide-table min-h-0 flex-1",
|
|
3448
3448
|
"pin-header-row": !0,
|
|
3449
3449
|
"auto-reset-page-index": !0
|
|
3450
|
-
},
|
|
3450
|
+
}, ma({ _: 2 }, [
|
|
3451
3451
|
D.value ? {
|
|
3452
3452
|
name: "pin-top",
|
|
3453
3453
|
fn: Le(() => [
|
|
3454
|
-
(X(), ce(
|
|
3454
|
+
(X(), ce(_o(D.value === i(Ge).bottom ? "tfoot" : "tbody"), null, {
|
|
3455
3455
|
default: Le(() => [
|
|
3456
|
-
q("tr",
|
|
3457
|
-
(X(!0), le(
|
|
3456
|
+
q("tr", $l, [
|
|
3457
|
+
(X(!0), le(Ne, null, ft(_.value, (T, M) => {
|
|
3458
3458
|
var $;
|
|
3459
3459
|
return X(), le("td", {
|
|
3460
3460
|
key: `${i(Nt)()}_${M}`,
|
|
@@ -3473,8 +3473,8 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3473
3473
|
]),
|
|
3474
3474
|
style: Pe(k())
|
|
3475
3475
|
}, [
|
|
3476
|
-
q("p",
|
|
3477
|
-
q("p",
|
|
3476
|
+
q("p", zl, Ce(T.rowType === "NUMERIC" ? i(dt)(T.main) : T.main), 1),
|
|
3477
|
+
q("p", Hl, Ce(T.comparison ? T.rowType === "NUMERIC" ? `(${i(dt)(T.comparison)})` : `(${T.comparison})` : ""), 1)
|
|
3478
3478
|
], 6)
|
|
3479
3479
|
], 4);
|
|
3480
3480
|
}), 128))
|
|
@@ -3489,7 +3489,7 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3489
3489
|
]);
|
|
3490
3490
|
};
|
|
3491
3491
|
}
|
|
3492
|
-
}),
|
|
3492
|
+
}), Ol = { class: "widget-content" }, Ul = /* @__PURE__ */ Me({
|
|
3493
3493
|
__name: "WidgetStackBarChart",
|
|
3494
3494
|
props: /* @__PURE__ */ We({
|
|
3495
3495
|
tileIndex: {}
|
|
@@ -3527,8 +3527,8 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3527
3527
|
colorIndex: M,
|
|
3528
3528
|
breakdownIndex: $
|
|
3529
3529
|
}) {
|
|
3530
|
-
var
|
|
3531
|
-
const re = t.value.chartColorBinding === we.metric ? M : t.value.chartColorBinding === we.breakdown ? $ : T, ie = (
|
|
3530
|
+
var J;
|
|
3531
|
+
const re = t.value.chartColorBinding === we.metric ? M : t.value.chartColorBinding === we.breakdown ? $ : T, ie = (J = t.value.chartColorLayers) == null ? void 0 : J[re], W = Number(ie);
|
|
3532
3532
|
return Number.isInteger(W) && W > 0 ? W : re + 1;
|
|
3533
3533
|
}
|
|
3534
3534
|
const k = c(() => {
|
|
@@ -3537,17 +3537,17 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3537
3537
|
const re = Ot({
|
|
3538
3538
|
datasets: u.value,
|
|
3539
3539
|
datasetIndex: $
|
|
3540
|
-
}), ie = l.value ? qt(u.value, re) : re, W =
|
|
3540
|
+
}), ie = l.value ? qt(u.value, re) : re, W = Fe({
|
|
3541
3541
|
datasetIndex: ie,
|
|
3542
3542
|
isCompare: !1,
|
|
3543
3543
|
metricCount: t.value.metricCount,
|
|
3544
3544
|
mode: t.value.chartColorBinding
|
|
3545
|
-
}),
|
|
3545
|
+
}), J = Fe({
|
|
3546
3546
|
datasetIndex: ie,
|
|
3547
3547
|
isCompare: !1,
|
|
3548
3548
|
metricCount: t.value.metricCount,
|
|
3549
3549
|
mode: we.metric
|
|
3550
|
-
}), ee =
|
|
3550
|
+
}), ee = Tt({
|
|
3551
3551
|
fallbackIndex: ie,
|
|
3552
3552
|
metricCount: t.value.metricCount
|
|
3553
3553
|
}), ue = h({
|
|
@@ -3556,11 +3556,11 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3556
3556
|
breakdownIndex: ee
|
|
3557
3557
|
});
|
|
3558
3558
|
let me = M.values;
|
|
3559
|
-
const
|
|
3559
|
+
const be = Et(me);
|
|
3560
3560
|
return {
|
|
3561
3561
|
dataset: {
|
|
3562
3562
|
label: M.name,
|
|
3563
|
-
data:
|
|
3563
|
+
data: be,
|
|
3564
3564
|
xAxisIndex: M.xAxisIndex,
|
|
3565
3565
|
emptyValueIndexes: t.value.hasNullableMetric ? M.xAxisIndex === void 0 ? Kn(me) : me[M.xAxisIndex] === null ? [M.xAxisIndex] : void 0 : void 0,
|
|
3566
3566
|
dash: !!M.isCompare,
|
|
@@ -3568,15 +3568,15 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3568
3568
|
minBarLength: void 0,
|
|
3569
3569
|
grouped: m.value ? !1 : void 0,
|
|
3570
3570
|
order: m.value ? ue : void 0,
|
|
3571
|
-
backgroundColor: t.value.chartColorBinding === we.breakdown ?
|
|
3571
|
+
backgroundColor: t.value.chartColorBinding === we.breakdown ? Dt({
|
|
3572
3572
|
breakdownIndex: ee,
|
|
3573
|
-
metricIndex:
|
|
3573
|
+
metricIndex: J,
|
|
3574
3574
|
metricCount: t.value.metricCount,
|
|
3575
3575
|
isCompare: M.isCompare,
|
|
3576
3576
|
breakdownColors: t.value.chartBreakdownColors,
|
|
3577
3577
|
useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
|
|
3578
3578
|
customColors: t.value.chartColors
|
|
3579
|
-
}) :
|
|
3579
|
+
}) : Je({
|
|
3580
3580
|
index: W,
|
|
3581
3581
|
isCompare: M.isCompare,
|
|
3582
3582
|
customColors: t.value.chartColors
|
|
@@ -3612,17 +3612,17 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3612
3612
|
baseDatasets: k
|
|
3613
3613
|
});
|
|
3614
3614
|
return (T, M) => {
|
|
3615
|
-
var re, ie, W,
|
|
3615
|
+
var re, ie, W, J, ee, ue;
|
|
3616
3616
|
const $ = fe("FmBarChart");
|
|
3617
|
-
return X(), le(
|
|
3618
|
-
q("div",
|
|
3617
|
+
return X(), le(Ne, null, [
|
|
3618
|
+
q("div", Ol, [
|
|
3619
3619
|
nt(T.$slots, "menu"),
|
|
3620
3620
|
q("div", {
|
|
3621
3621
|
class: De(["chart-layout", {
|
|
3622
3622
|
"chart-layout--side": i(ae) && (i(j).display ?? !1) && i(H)
|
|
3623
3623
|
}])
|
|
3624
3624
|
}, [
|
|
3625
|
-
i(ae) && (i(j).display ?? !1) && i(F) ? (X(), ce(
|
|
3625
|
+
i(ae) && (i(j).display ?? !1) && i(F) ? (X(), ce(Ve, {
|
|
3626
3626
|
key: 0,
|
|
3627
3627
|
"chart-ref": n.value,
|
|
3628
3628
|
enabled: i(j).display ?? !1,
|
|
@@ -3655,12 +3655,12 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3655
3655
|
datalabels: i(_),
|
|
3656
3656
|
"maintain-aspect-ratio": !1
|
|
3657
3657
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "legend", "tooltip", "plugins", "datalabels"]),
|
|
3658
|
-
i(ae) && (i(j).display ?? !1) && !i(F) ? (X(), ce(
|
|
3658
|
+
i(ae) && (i(j).display ?? !1) && !i(F) ? (X(), ce(Ve, {
|
|
3659
3659
|
key: 1,
|
|
3660
3660
|
"chart-ref": n.value,
|
|
3661
3661
|
enabled: i(j).display ?? !1,
|
|
3662
3662
|
position: i(O),
|
|
3663
|
-
"text-color": (
|
|
3663
|
+
"text-color": (J = i(j).labels) == null ? void 0 : J.color,
|
|
3664
3664
|
"font-size": (ue = (ee = i(j).labels) == null ? void 0 : ee.font) == null ? void 0 : ue.size,
|
|
3665
3665
|
"legend-update-key": i(R),
|
|
3666
3666
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
@@ -3684,7 +3684,7 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3684
3684
|
], 64);
|
|
3685
3685
|
};
|
|
3686
3686
|
}
|
|
3687
|
-
}),
|
|
3687
|
+
}), Kl = { class: "widget-content" }, Sn = 1, Co = "rgba(0, 0, 0, 0)", Xl = /* @__PURE__ */ Me({
|
|
3688
3688
|
__name: "WidgetClusteredStackBarchart",
|
|
3689
3689
|
props: /* @__PURE__ */ We({
|
|
3690
3690
|
tileIndex: {}
|
|
@@ -3716,29 +3716,29 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3716
3716
|
stacked: L.value
|
|
3717
3717
|
}));
|
|
3718
3718
|
function h(W) {
|
|
3719
|
-
const
|
|
3719
|
+
const J = " - ", ee = W.lastIndexOf(J);
|
|
3720
3720
|
return ee < 0 ? {
|
|
3721
3721
|
clusterKey: W,
|
|
3722
3722
|
metricLabel: W
|
|
3723
3723
|
} : {
|
|
3724
3724
|
clusterKey: W.slice(0, ee),
|
|
3725
|
-
metricLabel: W.slice(ee +
|
|
3725
|
+
metricLabel: W.slice(ee + J.length)
|
|
3726
3726
|
};
|
|
3727
3727
|
}
|
|
3728
|
-
function k(W,
|
|
3728
|
+
function k(W, J) {
|
|
3729
3729
|
if (typeof W == "string") {
|
|
3730
3730
|
const ee = W.trim();
|
|
3731
3731
|
if (ee.length > 0)
|
|
3732
3732
|
return ee;
|
|
3733
3733
|
}
|
|
3734
|
-
return `Series ${
|
|
3734
|
+
return `Series ${J + 1}`;
|
|
3735
3735
|
}
|
|
3736
3736
|
function I({
|
|
3737
3737
|
datasetIndex: W,
|
|
3738
|
-
colorIndex:
|
|
3738
|
+
colorIndex: J
|
|
3739
3739
|
}) {
|
|
3740
|
-
var
|
|
3741
|
-
const ee = t.value.chartColorBinding === we.metric ?
|
|
3740
|
+
var be;
|
|
3741
|
+
const ee = t.value.chartColorBinding === we.metric ? J : W, ue = (be = t.value.chartColorLayers) == null ? void 0 : be[ee], me = Number(ue);
|
|
3742
3742
|
return Number.isInteger(me) && me > 0 ? me : ee + 1;
|
|
3743
3743
|
}
|
|
3744
3744
|
function A(W) {
|
|
@@ -3748,8 +3748,8 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3748
3748
|
data: [0],
|
|
3749
3749
|
grouped: !0,
|
|
3750
3750
|
stack: `__comparison_gap__${W}`,
|
|
3751
|
-
backgroundColor:
|
|
3752
|
-
borderColor:
|
|
3751
|
+
backgroundColor: Co,
|
|
3752
|
+
borderColor: Co,
|
|
3753
3753
|
minBarLength: 0,
|
|
3754
3754
|
barPercentage: Sn,
|
|
3755
3755
|
isSpacer: !0
|
|
@@ -3763,45 +3763,45 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3763
3763
|
index: xe,
|
|
3764
3764
|
name: k(ne == null ? void 0 : ne.name, xe),
|
|
3765
3765
|
values: (ne == null ? void 0 : ne.values) ?? []
|
|
3766
|
-
})),
|
|
3766
|
+
})), J = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */ new Map();
|
|
3767
3767
|
for (const ne of W) {
|
|
3768
3768
|
const { clusterKey: xe, metricLabel: Ie } = h(ne.name);
|
|
3769
|
-
ee.has(xe) || ee.set(xe, ee.size),
|
|
3769
|
+
ee.has(xe) || ee.set(xe, ee.size), J.has(Ie) || J.set(Ie, J.size);
|
|
3770
3770
|
}
|
|
3771
|
-
const ue = Math.max(
|
|
3771
|
+
const ue = Math.max(J.size, 1), me = t.value.chartColorBinding === we.breakdown, be = t.value.chartUseSecondaryMetricShades !== !1;
|
|
3772
3772
|
return W.map((ne) => {
|
|
3773
3773
|
var lt;
|
|
3774
3774
|
const xe = Ot({
|
|
3775
3775
|
datasets: u.value,
|
|
3776
3776
|
datasetIndex: ne.index
|
|
3777
|
-
}), Ie = l.value ? qt(u.value, xe) : xe, _e =
|
|
3777
|
+
}), Ie = l.value ? qt(u.value, xe) : xe, _e = Io({
|
|
3778
3778
|
datasets: u.value,
|
|
3779
3779
|
datasetIndex: ne.index
|
|
3780
|
-
}),
|
|
3780
|
+
}), Ze = Fe({
|
|
3781
3781
|
datasetIndex: Ie,
|
|
3782
3782
|
isCompare: !1,
|
|
3783
3783
|
metricCount: t.value.metricCount,
|
|
3784
3784
|
mode: t.value.chartColorBinding
|
|
3785
|
-
}), { clusterKey:
|
|
3786
|
-
breakdownIndex:
|
|
3785
|
+
}), { clusterKey: Be, metricLabel: ot } = h(ne.name), pt = ((lt = W[_e]) == null ? void 0 : lt.name) ?? ne.name, { clusterKey: ht, metricLabel: gt } = h(pt), vt = ee.get(ht) ?? ee.get(Be) ?? 0, at = J.get(gt) ?? 0, rt = me ? Dt({
|
|
3786
|
+
breakdownIndex: vt,
|
|
3787
3787
|
metricIndex: at,
|
|
3788
3788
|
metricCount: ue,
|
|
3789
3789
|
isCompare: ne.source.isCompare,
|
|
3790
3790
|
breakdownColors: t.value.chartBreakdownColors,
|
|
3791
|
-
useSecondaryMetricShades:
|
|
3791
|
+
useSecondaryMetricShades: be,
|
|
3792
3792
|
colorMode: "clustered"
|
|
3793
|
-
}) :
|
|
3794
|
-
index:
|
|
3793
|
+
}) : Je({
|
|
3794
|
+
index: Ze,
|
|
3795
3795
|
isCompare: ne.source.isCompare,
|
|
3796
3796
|
customColors: t.value.chartColors
|
|
3797
|
-
}),
|
|
3797
|
+
}), yt = I({
|
|
3798
3798
|
datasetIndex: Ie,
|
|
3799
|
-
colorIndex:
|
|
3800
|
-
}),
|
|
3799
|
+
colorIndex: Ze
|
|
3800
|
+
}), $e = Et(ne.values);
|
|
3801
3801
|
return {
|
|
3802
3802
|
label: ne.name,
|
|
3803
|
-
tooltipLabel: `${
|
|
3804
|
-
data:
|
|
3803
|
+
tooltipLabel: `${Be} - ${ot}`,
|
|
3804
|
+
data: $e,
|
|
3805
3805
|
xAxisIndex: ne.source.xAxisIndex,
|
|
3806
3806
|
emptyValueIndexes: t.value.hasNullableMetric ? ne.source.xAxisIndex === void 0 ? Kn(ne.values) : ne.values[ne.source.xAxisIndex] === null ? [ne.source.xAxisIndex] : void 0 : void 0,
|
|
3807
3807
|
dash: !!ne.source.isCompare,
|
|
@@ -3809,8 +3809,8 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3809
3809
|
minBarLength: void 0,
|
|
3810
3810
|
barPercentage: U.value ? Sn : void 0,
|
|
3811
3811
|
grouped: !0,
|
|
3812
|
-
order: m.value ?
|
|
3813
|
-
stack: ne.source.isCompare ? `${
|
|
3812
|
+
order: m.value ? yt : void 0,
|
|
3813
|
+
stack: ne.source.isCompare ? `${Be}__compare` : `${Be}__main`,
|
|
3814
3814
|
backgroundColor: rt
|
|
3815
3815
|
};
|
|
3816
3816
|
});
|
|
@@ -3841,41 +3841,41 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3841
3841
|
if (!U.value)
|
|
3842
3842
|
return $.value;
|
|
3843
3843
|
const W = [];
|
|
3844
|
-
return $.value.forEach((
|
|
3844
|
+
return $.value.forEach((J, ee) => {
|
|
3845
3845
|
W.push({
|
|
3846
|
-
...
|
|
3846
|
+
...J,
|
|
3847
3847
|
barPercentage: Sn
|
|
3848
3848
|
});
|
|
3849
3849
|
const ue = $.value[ee + 1];
|
|
3850
|
-
|
|
3850
|
+
J.dash === !0 && ue && W.push(A(ee));
|
|
3851
3851
|
}), W;
|
|
3852
3852
|
}), ie = c(() => ({
|
|
3853
3853
|
display: !1,
|
|
3854
3854
|
labels: {
|
|
3855
|
-
filter: (W,
|
|
3855
|
+
filter: (W, J) => {
|
|
3856
3856
|
var ee, ue;
|
|
3857
|
-
return !((ue = (ee =
|
|
3857
|
+
return !((ue = (ee = J.datasets) == null ? void 0 : ee[W.datasetIndex ?? -1]) != null && ue.isSpacer);
|
|
3858
3858
|
}
|
|
3859
3859
|
}
|
|
3860
3860
|
}));
|
|
3861
|
-
return (W,
|
|
3862
|
-
var ue, me,
|
|
3861
|
+
return (W, J) => {
|
|
3862
|
+
var ue, me, be, ne, xe, Ie;
|
|
3863
3863
|
const ee = fe("FmBarChart");
|
|
3864
|
-
return X(), le(
|
|
3865
|
-
q("div",
|
|
3864
|
+
return X(), le(Ne, null, [
|
|
3865
|
+
q("div", Kl, [
|
|
3866
3866
|
nt(W.$slots, "menu"),
|
|
3867
3867
|
q("div", {
|
|
3868
3868
|
class: De(["chart-layout", {
|
|
3869
3869
|
"chart-layout--side": i(F) && (i(H).display ?? !1) && i(C)
|
|
3870
3870
|
}])
|
|
3871
3871
|
}, [
|
|
3872
|
-
i(F) && (i(H).display ?? !1) && i(R) ? (X(), ce(
|
|
3872
|
+
i(F) && (i(H).display ?? !1) && i(R) ? (X(), ce(Ve, {
|
|
3873
3873
|
key: 0,
|
|
3874
3874
|
"chart-ref": n.value,
|
|
3875
3875
|
enabled: i(H).display ?? !1,
|
|
3876
3876
|
position: i(b),
|
|
3877
3877
|
"text-color": (ue = i(H).labels) == null ? void 0 : ue.color,
|
|
3878
|
-
"font-size": (
|
|
3878
|
+
"font-size": (be = (me = i(H).labels) == null ? void 0 : me.font) == null ? void 0 : be.size,
|
|
3879
3879
|
"legend-update-key": i($),
|
|
3880
3880
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
3881
3881
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -3902,7 +3902,7 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3902
3902
|
datalabels: i(z),
|
|
3903
3903
|
"maintain-aspect-ratio": !1
|
|
3904
3904
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "legend", "tooltip", "plugins", "datalabels"]),
|
|
3905
|
-
i(F) && (i(H).display ?? !1) && !i(R) ? (X(), ce(
|
|
3905
|
+
i(F) && (i(H).display ?? !1) && !i(R) ? (X(), ce(Ve, {
|
|
3906
3906
|
key: 1,
|
|
3907
3907
|
"chart-ref": n.value,
|
|
3908
3908
|
enabled: i(H).display ?? !1,
|
|
@@ -3932,23 +3932,23 @@ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableD
|
|
|
3932
3932
|
};
|
|
3933
3933
|
}
|
|
3934
3934
|
});
|
|
3935
|
-
function
|
|
3935
|
+
function Yl(e) {
|
|
3936
3936
|
const t = Reflect.get(e, "lineStyle"), n = Reflect.get(e, "dash") === !0;
|
|
3937
|
-
return
|
|
3937
|
+
return Aa(t, n);
|
|
3938
3938
|
}
|
|
3939
|
-
function
|
|
3939
|
+
function qo(e = "report-line-style-plugin") {
|
|
3940
3940
|
return {
|
|
3941
3941
|
id: e,
|
|
3942
3942
|
beforeDatasetsUpdate(t) {
|
|
3943
3943
|
var o;
|
|
3944
3944
|
(((o = t == null ? void 0 : t.data) == null ? void 0 : o.datasets) ?? []).forEach((a) => {
|
|
3945
3945
|
const r = a;
|
|
3946
|
-
Reflect.set(r, "borderDash",
|
|
3946
|
+
Reflect.set(r, "borderDash", Yl(r));
|
|
3947
3947
|
});
|
|
3948
3948
|
}
|
|
3949
3949
|
};
|
|
3950
3950
|
}
|
|
3951
|
-
const
|
|
3951
|
+
const El = { class: "widget-content" }, ql = /* @__PURE__ */ Me({
|
|
3952
3952
|
__name: "WidgetStackLineChart",
|
|
3953
3953
|
props: /* @__PURE__ */ We({
|
|
3954
3954
|
tileIndex: {}
|
|
@@ -3972,7 +3972,7 @@ const Yl = { class: "widget-content" }, El = /* @__PURE__ */ Ae({
|
|
|
3972
3972
|
categories: d.value
|
|
3973
3973
|
})), L = c(() => ({
|
|
3974
3974
|
display: !1
|
|
3975
|
-
})), U = Kt("line"), y =
|
|
3975
|
+
})), U = Kt("line"), y = qo("report-line-style-plugin-stack-line"), v = c(() => a.value.length > 0 ? [
|
|
3976
3976
|
...l.value.map((C, R) => {
|
|
3977
3977
|
var ne;
|
|
3978
3978
|
const T = Ot({
|
|
@@ -3981,25 +3981,25 @@ const Yl = { class: "widget-content" }, El = /* @__PURE__ */ Ae({
|
|
|
3981
3981
|
}), M = r.value ? qt(l.value, T) : T;
|
|
3982
3982
|
let $ = C.values;
|
|
3983
3983
|
u.value && ($ = [NaN, $[0], NaN]);
|
|
3984
|
-
const re = Et($), ie =
|
|
3984
|
+
const re = Et($), ie = Fe({
|
|
3985
3985
|
datasetIndex: M,
|
|
3986
3986
|
isCompare: !1,
|
|
3987
3987
|
metricCount: t.value.metricCount,
|
|
3988
3988
|
mode: t.value.chartColorBinding
|
|
3989
|
-
}), W =
|
|
3989
|
+
}), W = Fe({
|
|
3990
3990
|
datasetIndex: M,
|
|
3991
3991
|
isCompare: !1,
|
|
3992
3992
|
metricCount: t.value.metricCount,
|
|
3993
3993
|
mode: we.metric
|
|
3994
|
-
}),
|
|
3994
|
+
}), J = Fe({
|
|
3995
3995
|
datasetIndex: R,
|
|
3996
3996
|
isCompare: C.isCompare,
|
|
3997
3997
|
metricCount: t.value.metricCount,
|
|
3998
3998
|
mode: t.value.lineStyleBinding
|
|
3999
|
-
}), ee = (ne = t.value.lineStyles) == null ? void 0 : ne[
|
|
3999
|
+
}), ee = (ne = t.value.lineStyles) == null ? void 0 : ne[J], ue = t.value.chartColorBinding === we.breakdown, me = Tt({
|
|
4000
4000
|
fallbackIndex: M,
|
|
4001
4001
|
metricCount: t.value.metricCount
|
|
4002
|
-
}),
|
|
4002
|
+
}), be = ue ? Dt({
|
|
4003
4003
|
breakdownIndex: me,
|
|
4004
4004
|
metricIndex: W,
|
|
4005
4005
|
metricCount: t.value.metricCount,
|
|
@@ -4007,7 +4007,7 @@ const Yl = { class: "widget-content" }, El = /* @__PURE__ */ Ae({
|
|
|
4007
4007
|
breakdownColors: t.value.chartBreakdownColors,
|
|
4008
4008
|
useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
|
|
4009
4009
|
customColors: t.value.chartColors
|
|
4010
|
-
}) :
|
|
4010
|
+
}) : Je({
|
|
4011
4011
|
index: ie,
|
|
4012
4012
|
isCompare: C.isCompare,
|
|
4013
4013
|
customColors: t.value.chartColors
|
|
@@ -4018,11 +4018,11 @@ const Yl = { class: "widget-content" }, El = /* @__PURE__ */ Ae({
|
|
|
4018
4018
|
dash: C.isCompare,
|
|
4019
4019
|
lineStyle: ee,
|
|
4020
4020
|
fill: !0,
|
|
4021
|
-
color:
|
|
4021
|
+
color: be,
|
|
4022
4022
|
pointRadius: u.value ? 4 : void 0,
|
|
4023
4023
|
pointHoverRadius: u.value ? 6 : void 0,
|
|
4024
|
-
pointBackgroundColor: u.value ?
|
|
4025
|
-
pointBorderColor: u.value ?
|
|
4024
|
+
pointBackgroundColor: u.value ? be : void 0,
|
|
4025
|
+
pointBorderColor: u.value ? be : void 0,
|
|
4026
4026
|
pointBorderWidth: u.value ? 2 : void 0
|
|
4027
4027
|
};
|
|
4028
4028
|
})
|
|
@@ -4051,17 +4051,17 @@ const Yl = { class: "widget-content" }, El = /* @__PURE__ */ Ae({
|
|
|
4051
4051
|
baseDatasets: v
|
|
4052
4052
|
});
|
|
4053
4053
|
return (C, R) => {
|
|
4054
|
-
var M, $, re, ie, W,
|
|
4054
|
+
var M, $, re, ie, W, J;
|
|
4055
4055
|
const T = fe("FmLineChart");
|
|
4056
|
-
return X(), le(
|
|
4057
|
-
q("div",
|
|
4056
|
+
return X(), le(Ne, null, [
|
|
4057
|
+
q("div", El, [
|
|
4058
4058
|
nt(C.$slots, "menu"),
|
|
4059
4059
|
q("div", {
|
|
4060
4060
|
class: De(["chart-layout", {
|
|
4061
4061
|
"chart-layout--side": i(z) && (i(x).display ?? !1) && i(ae)
|
|
4062
4062
|
}])
|
|
4063
4063
|
}, [
|
|
4064
|
-
i(z) && (i(x).display ?? !1) && i(O) ? (X(), ce(
|
|
4064
|
+
i(z) && (i(x).display ?? !1) && i(O) ? (X(), ce(Ve, {
|
|
4065
4065
|
key: 0,
|
|
4066
4066
|
"chart-ref": n.value,
|
|
4067
4067
|
enabled: i(x).display ?? !1,
|
|
@@ -4094,13 +4094,13 @@ const Yl = { class: "widget-content" }, El = /* @__PURE__ */ Ae({
|
|
|
4094
4094
|
datalabels: i(D),
|
|
4095
4095
|
"maintain-aspect-ratio": !1
|
|
4096
4096
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "tooltip", "plugins", "datalabels"]),
|
|
4097
|
-
i(z) && (i(x).display ?? !1) && !i(O) ? (X(), ce(
|
|
4097
|
+
i(z) && (i(x).display ?? !1) && !i(O) ? (X(), ce(Ve, {
|
|
4098
4098
|
key: 1,
|
|
4099
4099
|
"chart-ref": n.value,
|
|
4100
4100
|
enabled: i(x).display ?? !1,
|
|
4101
4101
|
position: i(j),
|
|
4102
4102
|
"text-color": (ie = i(x).labels) == null ? void 0 : ie.color,
|
|
4103
|
-
"font-size": (
|
|
4103
|
+
"font-size": (J = (W = i(x).labels) == null ? void 0 : W.font) == null ? void 0 : J.size,
|
|
4104
4104
|
"legend-update-key": i(b),
|
|
4105
4105
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
4106
4106
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -4124,18 +4124,18 @@ const Yl = { class: "widget-content" }, El = /* @__PURE__ */ Ae({
|
|
|
4124
4124
|
};
|
|
4125
4125
|
}
|
|
4126
4126
|
}), Xn = "data:image/svg+xml;base64,";
|
|
4127
|
-
function
|
|
4127
|
+
function Go(e) {
|
|
4128
4128
|
return e.startsWith(Xn);
|
|
4129
4129
|
}
|
|
4130
|
-
function
|
|
4130
|
+
function Gl(e) {
|
|
4131
4131
|
if (!e.trim()) return "";
|
|
4132
4132
|
const t = new TextEncoder().encode(e);
|
|
4133
4133
|
let n = "";
|
|
4134
4134
|
for (const o of t) n += String.fromCharCode(o);
|
|
4135
4135
|
return `${Xn}${btoa(n)}`;
|
|
4136
4136
|
}
|
|
4137
|
-
function
|
|
4138
|
-
if (!
|
|
4137
|
+
function As(e) {
|
|
4138
|
+
if (!Go(e)) return e;
|
|
4139
4139
|
try {
|
|
4140
4140
|
const t = atob(e.slice(Xn.length));
|
|
4141
4141
|
return new TextDecoder().decode(Uint8Array.from(t, (n) => n.charCodeAt(0)));
|
|
@@ -4143,7 +4143,7 @@ function Bs(e) {
|
|
|
4143
4143
|
return "";
|
|
4144
4144
|
}
|
|
4145
4145
|
}
|
|
4146
|
-
const
|
|
4146
|
+
const jl = ["src"], Jl = /* @__PURE__ */ Me({
|
|
4147
4147
|
__name: "TitleIcon",
|
|
4148
4148
|
props: {
|
|
4149
4149
|
icon: {},
|
|
@@ -4160,7 +4160,7 @@ const Gl = ["src"], jl = /* @__PURE__ */ Ae({
|
|
|
4160
4160
|
})[t.size ?? Ft.Small]
|
|
4161
4161
|
), o = c(
|
|
4162
4162
|
() => t.type ?? (t.icon.trim().startsWith("<svg") ? an.Custom : an.Material)
|
|
4163
|
-
), a = c(() => o.value !== an.Custom || !t.icon.trim() ? "" :
|
|
4163
|
+
), a = c(() => o.value !== an.Custom || !t.icon.trim() ? "" : Go(t.icon) ? t.icon : Gl(t.icon));
|
|
4164
4164
|
return (r, l) => {
|
|
4165
4165
|
const u = fe("FmIcon");
|
|
4166
4166
|
return o.value === i(an).Material && r.icon ? (X(), ce(u, {
|
|
@@ -4176,7 +4176,7 @@ const Gl = ["src"], jl = /* @__PURE__ */ Ae({
|
|
|
4176
4176
|
style: Pe({ width: `${n.value}px`, height: `${n.value}px` }),
|
|
4177
4177
|
alt: "",
|
|
4178
4178
|
"aria-hidden": "true"
|
|
4179
|
-
}, null, 12,
|
|
4179
|
+
}, null, 12, jl)) : he("", !0);
|
|
4180
4180
|
};
|
|
4181
4181
|
}
|
|
4182
4182
|
}), Yn = [
|
|
@@ -4193,17 +4193,14 @@ const Gl = ["src"], jl = /* @__PURE__ */ Ae({
|
|
|
4193
4193
|
"col-span-11",
|
|
4194
4194
|
"col-span-12"
|
|
4195
4195
|
];
|
|
4196
|
-
function Jl(e) {
|
|
4197
|
-
return Math.min(12, e);
|
|
4198
|
-
}
|
|
4199
4196
|
function Zl(e) {
|
|
4200
|
-
return Math.min(12, e
|
|
4197
|
+
return Math.min(12, e);
|
|
4201
4198
|
}
|
|
4202
4199
|
function Ql(e) {
|
|
4203
|
-
return Math.min(12, e *
|
|
4200
|
+
return Math.min(12, e * 2);
|
|
4204
4201
|
}
|
|
4205
4202
|
function es(e) {
|
|
4206
|
-
return
|
|
4203
|
+
return Math.min(12, e * 3);
|
|
4207
4204
|
}
|
|
4208
4205
|
function ts(e) {
|
|
4209
4206
|
return Yn[Zl(e) - 1];
|
|
@@ -4211,11 +4208,14 @@ function ts(e) {
|
|
|
4211
4208
|
function ns(e) {
|
|
4212
4209
|
return Yn[Ql(e) - 1];
|
|
4213
4210
|
}
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4211
|
+
function os(e) {
|
|
4212
|
+
return Yn[es(e) - 1];
|
|
4213
|
+
}
|
|
4214
|
+
const as = 150, rs = 200;
|
|
4215
|
+
function ls(e, t) {
|
|
4216
|
+
return (t === "SCORECARD" ? rs : as) * e;
|
|
4217
4217
|
}
|
|
4218
|
-
const
|
|
4218
|
+
const ss = { class: "widget-content" }, is = /* @__PURE__ */ Me({
|
|
4219
4219
|
__name: "WidgetLinechart",
|
|
4220
4220
|
props: /* @__PURE__ */ We({
|
|
4221
4221
|
tileIndex: {}
|
|
@@ -4239,30 +4239,30 @@ const ls = { class: "widget-content" }, ss = /* @__PURE__ */ Ae({
|
|
|
4239
4239
|
categories: m.value
|
|
4240
4240
|
})), U = c(() => ({
|
|
4241
4241
|
display: !1
|
|
4242
|
-
})), y = Kt("line"), v =
|
|
4242
|
+
})), y = Kt("line"), v = qo("report-line-style-plugin-line"), h = c(() => o.value.length > 0 ? [
|
|
4243
4243
|
...l.value.map((R, T) => {
|
|
4244
4244
|
var _e;
|
|
4245
4245
|
const M = Ot({
|
|
4246
4246
|
datasets: l.value,
|
|
4247
4247
|
datasetIndex: T
|
|
4248
|
-
}), $ = r.value ? qt(l.value, M) : M, re =
|
|
4248
|
+
}), $ = r.value ? qt(l.value, M) : M, re = Fe({
|
|
4249
4249
|
datasetIndex: $,
|
|
4250
4250
|
isCompare: !1,
|
|
4251
4251
|
metricCount: t.value.metricCount,
|
|
4252
4252
|
mode: t.value.chartColorBinding
|
|
4253
|
-
}), ie =
|
|
4253
|
+
}), ie = Fe({
|
|
4254
4254
|
datasetIndex: $,
|
|
4255
4255
|
isCompare: !1,
|
|
4256
4256
|
metricCount: t.value.metricCount,
|
|
4257
4257
|
mode: we.metric
|
|
4258
|
-
}), W =
|
|
4258
|
+
}), W = Je({
|
|
4259
4259
|
index: re,
|
|
4260
4260
|
isCompare: R.isCompare,
|
|
4261
4261
|
customColors: t.value.chartColors
|
|
4262
|
-
}),
|
|
4262
|
+
}), J = t.value.chartColorBinding === we.breakdown, ee = Tt({
|
|
4263
4263
|
fallbackIndex: $,
|
|
4264
4264
|
metricCount: t.value.metricCount
|
|
4265
|
-
}), ue =
|
|
4265
|
+
}), ue = J ? Dt({
|
|
4266
4266
|
breakdownIndex: ee,
|
|
4267
4267
|
metricIndex: ie,
|
|
4268
4268
|
metricCount: t.value.metricCount,
|
|
@@ -4273,9 +4273,9 @@ const ls = { class: "widget-content" }, ss = /* @__PURE__ */ Ae({
|
|
|
4273
4273
|
}) : W;
|
|
4274
4274
|
let me = R.values;
|
|
4275
4275
|
u.value ? me = l.value.map(
|
|
4276
|
-
(
|
|
4276
|
+
(Ze, Be) => Be === T ? R.values[0] : NaN
|
|
4277
4277
|
) : d.value && (me = [NaN, me[0], NaN]);
|
|
4278
|
-
const
|
|
4278
|
+
const be = Et(me), ne = d.value || u.value, xe = Fe({
|
|
4279
4279
|
datasetIndex: T,
|
|
4280
4280
|
isCompare: R.isCompare,
|
|
4281
4281
|
metricCount: t.value.metricCount,
|
|
@@ -4283,7 +4283,7 @@ const ls = { class: "widget-content" }, ss = /* @__PURE__ */ Ae({
|
|
|
4283
4283
|
}), Ie = (_e = t.value.lineStyles) == null ? void 0 : _e[xe];
|
|
4284
4284
|
return {
|
|
4285
4285
|
label: R.name,
|
|
4286
|
-
data:
|
|
4286
|
+
data: be,
|
|
4287
4287
|
dash: !!R.isCompare,
|
|
4288
4288
|
lineStyle: Ie,
|
|
4289
4289
|
fill: !1,
|
|
@@ -4320,17 +4320,17 @@ const ls = { class: "widget-content" }, ss = /* @__PURE__ */ Ae({
|
|
|
4320
4320
|
baseDatasets: h
|
|
4321
4321
|
});
|
|
4322
4322
|
return (R, T) => {
|
|
4323
|
-
var $, re, ie, W,
|
|
4323
|
+
var $, re, ie, W, J, ee;
|
|
4324
4324
|
const M = fe("FmLineChart");
|
|
4325
|
-
return X(), le(
|
|
4326
|
-
q("div",
|
|
4325
|
+
return X(), le(Ne, null, [
|
|
4326
|
+
q("div", ss, [
|
|
4327
4327
|
nt(R.$slots, "menu"),
|
|
4328
4328
|
q("div", {
|
|
4329
4329
|
class: De(["chart-layout", {
|
|
4330
4330
|
"chart-layout--side": i(j) && (i(z).display ?? !1) && i(O)
|
|
4331
4331
|
}])
|
|
4332
4332
|
}, [
|
|
4333
|
-
i(j) && (i(z).display ?? !1) && i(H) ? (X(), ce(
|
|
4333
|
+
i(j) && (i(z).display ?? !1) && i(H) ? (X(), ce(Ve, {
|
|
4334
4334
|
key: 0,
|
|
4335
4335
|
"chart-ref": n.value,
|
|
4336
4336
|
enabled: i(z).display ?? !1,
|
|
@@ -4362,13 +4362,13 @@ const ls = { class: "widget-content" }, ss = /* @__PURE__ */ Ae({
|
|
|
4362
4362
|
plugins: [i(y), i(v)],
|
|
4363
4363
|
"maintain-aspect-ratio": !1
|
|
4364
4364
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "tooltip", "datalabels", "plugins"]),
|
|
4365
|
-
i(j) && (i(z).display ?? !1) && !i(H) ? (X(), ce(
|
|
4365
|
+
i(j) && (i(z).display ?? !1) && !i(H) ? (X(), ce(Ve, {
|
|
4366
4366
|
key: 1,
|
|
4367
4367
|
"chart-ref": n.value,
|
|
4368
4368
|
enabled: i(z).display ?? !1,
|
|
4369
4369
|
position: i(ae),
|
|
4370
4370
|
"text-color": (W = i(z).labels) == null ? void 0 : W.color,
|
|
4371
|
-
"font-size": (ee = (
|
|
4371
|
+
"font-size": (ee = (J = i(z).labels) == null ? void 0 : J.font) == null ? void 0 : ee.size,
|
|
4372
4372
|
"legend-update-key": i(C),
|
|
4373
4373
|
"chart-color-binding": t.value.chartColorBinding,
|
|
4374
4374
|
"chart-colors": t.value.chartColors,
|
|
@@ -4391,7 +4391,7 @@ const ls = { class: "widget-content" }, ss = /* @__PURE__ */ Ae({
|
|
|
4391
4391
|
], 64);
|
|
4392
4392
|
};
|
|
4393
4393
|
}
|
|
4394
|
-
}),
|
|
4394
|
+
}), us = { class: "flex flex-col gap-16" }, cs = { class: "flex flex-row" }, ds = /* @__PURE__ */ Me({
|
|
4395
4395
|
__name: "PdfOrientationDialog",
|
|
4396
4396
|
props: /* @__PURE__ */ We({
|
|
4397
4397
|
reportType: {},
|
|
@@ -4402,7 +4402,7 @@ const ls = { class: "widget-content" }, ss = /* @__PURE__ */ Ae({
|
|
|
4402
4402
|
}),
|
|
4403
4403
|
emits: ["update:modelValue"],
|
|
4404
4404
|
setup(e) {
|
|
4405
|
-
const { t } =
|
|
4405
|
+
const { t } = mt(), { FmForm: n } = Ia, o = e, a = P(), r = Oe(e, "modelValue"), l = P(!0), u = P(!1), d = Vn(), { selectedLocationIds: m, dateRange: L, timeRange: U } = $t(mn()), y = P(xn.PORTRAIT);
|
|
4406
4406
|
function v() {
|
|
4407
4407
|
var k;
|
|
4408
4408
|
(k = a.value) == null || k.validateInputs();
|
|
@@ -4410,7 +4410,7 @@ const ls = { class: "widget-content" }, ss = /* @__PURE__ */ Ae({
|
|
|
4410
4410
|
async function h() {
|
|
4411
4411
|
u.value = !0;
|
|
4412
4412
|
try {
|
|
4413
|
-
o.index != null && await
|
|
4413
|
+
o.index != null && await ko({
|
|
4414
4414
|
reportType: o.reportType,
|
|
4415
4415
|
index: o.index,
|
|
4416
4416
|
orientationTypes: [y.value],
|
|
@@ -4434,7 +4434,7 @@ const ls = { class: "widget-content" }, ss = /* @__PURE__ */ Ae({
|
|
|
4434
4434
|
"z-index": 10
|
|
4435
4435
|
}, {
|
|
4436
4436
|
"dialog-header": Le(() => I[3] || (I[3] = [
|
|
4437
|
-
|
|
4437
|
+
ga("Select Orientation")
|
|
4438
4438
|
])),
|
|
4439
4439
|
default: Le(() => [
|
|
4440
4440
|
pe(i(n), {
|
|
@@ -4443,7 +4443,7 @@ const ls = { class: "widget-content" }, ss = /* @__PURE__ */ Ae({
|
|
|
4443
4443
|
onValidationSuccess: h
|
|
4444
4444
|
}, {
|
|
4445
4445
|
default: Le(() => [
|
|
4446
|
-
q("div",
|
|
4446
|
+
q("div", us, [
|
|
4447
4447
|
pe(N, {
|
|
4448
4448
|
modelValue: y.value,
|
|
4449
4449
|
"onUpdate:modelValue": I[0] || (I[0] = (B) => y.value = B)
|
|
@@ -4461,7 +4461,7 @@ const ls = { class: "widget-content" }, ss = /* @__PURE__ */ Ae({
|
|
|
4461
4461
|
_: 1
|
|
4462
4462
|
}, 8, ["modelValue"])
|
|
4463
4463
|
]),
|
|
4464
|
-
q("div",
|
|
4464
|
+
q("div", cs, [
|
|
4465
4465
|
I[4] || (I[4] = q("div", { class: "grow" }, null, -1)),
|
|
4466
4466
|
pe(E, {
|
|
4467
4467
|
label: i(t)("report.common.cancel"),
|
|
@@ -4485,7 +4485,7 @@ const ls = { class: "widget-content" }, ss = /* @__PURE__ */ Ae({
|
|
|
4485
4485
|
};
|
|
4486
4486
|
}
|
|
4487
4487
|
});
|
|
4488
|
-
function
|
|
4488
|
+
function fs(e) {
|
|
4489
4489
|
const { breakpoints: t } = Wt(), { containerRef: n, isTable: o = P(!0) } = e;
|
|
4490
4490
|
let a = P(1), r = null, l = null, u = null, d = null, m = null, L = null;
|
|
4491
4491
|
function U() {
|
|
@@ -4658,22 +4658,22 @@ function ds(e) {
|
|
|
4658
4658
|
n.value && o.value && setTimeout(v, 100);
|
|
4659
4659
|
}), Ht(() => {
|
|
4660
4660
|
o.value && setTimeout(v, 100);
|
|
4661
|
-
}),
|
|
4661
|
+
}), So(() => {
|
|
4662
4662
|
D();
|
|
4663
4663
|
}), { refresh: B, cleanup: D };
|
|
4664
4664
|
}
|
|
4665
|
-
const
|
|
4666
|
-
function
|
|
4667
|
-
|
|
4665
|
+
const jo = Symbol("report-page-nav");
|
|
4666
|
+
function Fs(e) {
|
|
4667
|
+
va(jo, e);
|
|
4668
4668
|
}
|
|
4669
|
-
function
|
|
4670
|
-
return
|
|
4669
|
+
function ms() {
|
|
4670
|
+
return ya(jo, void 0);
|
|
4671
4671
|
}
|
|
4672
|
-
function
|
|
4672
|
+
function ps(e) {
|
|
4673
4673
|
let t, n, o, a;
|
|
4674
4674
|
switch (e) {
|
|
4675
4675
|
case G.Table:
|
|
4676
|
-
t = [], n = !1, o =
|
|
4676
|
+
t = [], n = !1, o = Ge.top;
|
|
4677
4677
|
break;
|
|
4678
4678
|
case G.ClusteredStackBarChart:
|
|
4679
4679
|
a = !0;
|
|
@@ -4702,7 +4702,7 @@ function ms(e) {
|
|
|
4702
4702
|
joinDatasources: t
|
|
4703
4703
|
};
|
|
4704
4704
|
}
|
|
4705
|
-
function
|
|
4705
|
+
function Rs(e, t) {
|
|
4706
4706
|
let n = 1, o = 1;
|
|
4707
4707
|
switch (e) {
|
|
4708
4708
|
case G.Scorecard:
|
|
@@ -4733,18 +4733,18 @@ function Fs(e, t) {
|
|
|
4733
4733
|
widget: {
|
|
4734
4734
|
title: t || "New widget",
|
|
4735
4735
|
type: e,
|
|
4736
|
-
config:
|
|
4736
|
+
config: ps(e)
|
|
4737
4737
|
}
|
|
4738
4738
|
};
|
|
4739
4739
|
}
|
|
4740
|
-
function
|
|
4740
|
+
function Ns(e, t) {
|
|
4741
4741
|
return e.filter((n, o) => o !== t);
|
|
4742
4742
|
}
|
|
4743
|
-
function
|
|
4743
|
+
function hs(e) {
|
|
4744
4744
|
const t = [e.schemaName, e.name];
|
|
4745
4745
|
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();
|
|
4746
4746
|
}
|
|
4747
|
-
function
|
|
4747
|
+
function gs(e, t, n = []) {
|
|
4748
4748
|
var h, k, I, A, N, E;
|
|
4749
4749
|
if (!e || !Array.isArray(e.columns) || !Array.isArray(e.rows))
|
|
4750
4750
|
return [];
|
|
@@ -4785,19 +4785,19 @@ function hs(e, t, n = []) {
|
|
|
4785
4785
|
return (B = D == null ? void 0 : D.cells) == null ? void 0 : B[v];
|
|
4786
4786
|
}).filter((D) => D != null);
|
|
4787
4787
|
}
|
|
4788
|
-
const
|
|
4788
|
+
const vs = {
|
|
4789
4789
|
key: 0,
|
|
4790
4790
|
class: "h-full"
|
|
4791
|
-
},
|
|
4791
|
+
}, ys = {
|
|
4792
4792
|
key: 0,
|
|
4793
4793
|
class: "flex min-w-0 items-center gap-1"
|
|
4794
|
-
},
|
|
4794
|
+
}, bs = {
|
|
4795
4795
|
key: 1,
|
|
4796
4796
|
class: "grow"
|
|
4797
|
-
},
|
|
4797
|
+
}, Cs = {
|
|
4798
4798
|
key: 2,
|
|
4799
4799
|
class: "flex"
|
|
4800
|
-
},
|
|
4800
|
+
}, Vs = /* @__PURE__ */ Me({
|
|
4801
4801
|
__name: "DynamicWidget",
|
|
4802
4802
|
props: /* @__PURE__ */ We({
|
|
4803
4803
|
reportId: {
|
|
@@ -4837,22 +4837,22 @@ const gs = {
|
|
|
4837
4837
|
}),
|
|
4838
4838
|
emits: /* @__PURE__ */ We(["update:table-response"], ["update:modelValue"]),
|
|
4839
4839
|
setup(e, { emit: t }) {
|
|
4840
|
-
const n = P(!0), o = Oe(e, "modelValue"), a = t, r = o.value.widget.config, { t: l, te: u, locale: d } =
|
|
4840
|
+
const n = P(!0), o = Oe(e, "modelValue"), a = t, r = o.value.widget.config, { t: l, te: u, locale: d } = mt(), m = e, L = P(null), U = c(() => o.value.widget.type === G.Table), y = c(() => {
|
|
4841
4841
|
var w;
|
|
4842
4842
|
return (w = L.value) == null ? void 0 : w.$el;
|
|
4843
|
-
}), { refresh: v } =
|
|
4843
|
+
}), { refresh: v } = fs({
|
|
4844
4844
|
containerRef: y,
|
|
4845
4845
|
isTable: U
|
|
4846
4846
|
}), h = P(r.rollup), k = P(Nt()), I = P(r.drillDimension), A = c(() => {
|
|
4847
|
-
if (
|
|
4848
|
-
const w =
|
|
4847
|
+
if (ze.value.length > 0) {
|
|
4848
|
+
const w = ze.value.findIndex(
|
|
4849
4849
|
(se) => se.value === I.value
|
|
4850
4850
|
);
|
|
4851
4851
|
return w >= 0 ? w : 0;
|
|
4852
4852
|
} else
|
|
4853
4853
|
return -1;
|
|
4854
4854
|
}), N = c(() => A.value !== 0), E = c(
|
|
4855
|
-
() => A.value !=
|
|
4855
|
+
() => A.value != ze.value.length - 1
|
|
4856
4856
|
), D = P(r.showTitle ?? !0), B = P(r.titleFontSize ?? 14), _ = P(r.titleBold ?? !1), S = P(r.titleItalic ?? !1), x = P(r.titleUnderline ?? !1), z = P(
|
|
4857
4857
|
Array.isArray(r.chartColors) ? [...r.chartColors] : void 0
|
|
4858
4858
|
), j = P(
|
|
@@ -4864,53 +4864,53 @@ const gs = {
|
|
|
4864
4864
|
), b = P(r.lineStyleBinding), C = P(r.showLabel ?? !1), R = P(r.labelAlign ?? Dn.center), T = P(r.labelAnchor ?? Ln.center), M = P(r.labelRotation ?? 0), $ = P(r.labelOffset ?? 0), re = P(r.labelFontSize ?? 12), ie = c(
|
|
4865
4865
|
() => {
|
|
4866
4866
|
var w;
|
|
4867
|
-
return ((w = Ke.value) == null ? void 0 : w.showSearchBar) === !0 && (
|
|
4867
|
+
return ((w = Ke.value) == null ? void 0 : w.showSearchBar) === !0 && (Q.value.config.showSearchBar ?? !0);
|
|
4868
4868
|
}
|
|
4869
|
-
), W = P(r.showX ?? !0),
|
|
4869
|
+
), W = P(r.showX ?? !0), J = P(r.xPosition ?? In.bottom), ee = P(r.showXGrid ?? !1), ue = P(r.showXTick ?? !0), me = P(r.xTickFontSize ?? 12), be = P(r.showXTitle ?? !1), ne = P(r.xTitle ?? ""), xe = P(r.xTitleFontSize ?? 12), Ie = P(r.showY ?? !0), _e = P(r.yPosition ?? Pn.left), Ze = P(r.showYGrid ?? !1), Be = P(r.showYTick ?? !0), ot = P(r.yTickFontSize ?? 12), pt = P(r.showYTitle ?? !1), ht = P(r.yTitle ?? ""), gt = P(r.yTitleFontSize ?? 12), vt = P(r.showLegend ?? void 0), at = P(r.legendPosition ?? Mn.top), rt = P(r.usePointStyle ?? !0), yt = P(r.legendFontSize), $e = P(r.legendColor ?? "#6b6b6b"), lt = P(r.maxTooltipItems), jt = P(r.stackBarOverlap ?? !1), Jt = P(r.rowHeight ?? null), It = P(r.colWidths ?? null), Ue = P(!1), Pt = P(""), { breakpoints: Qe, getBreakpointsBoundary: st } = Wt(), Mt = P(), Zt = P(window.innerWidth), Se = c(
|
|
4870
4870
|
() => m.customScreenWidth === void 0 ? Zt.value : m.customScreenWidth
|
|
4871
|
-
),
|
|
4871
|
+
), Bt = c(
|
|
4872
4872
|
() => (Se == null ? void 0 : Se.value) > st("xs")[1] && (Se == null ? void 0 : Se.value) <= st("sm")[1]
|
|
4873
4873
|
), gn = c(
|
|
4874
4874
|
() => (Se == null ? void 0 : Se.value) > st("sm")[1] && (Se == null ? void 0 : Se.value) <= st("md")[1]
|
|
4875
4875
|
), vn = c(() => (Se == null ? void 0 : Se.value) > st("md")[1]), Qt = c(() => {
|
|
4876
4876
|
const w = o.value.size.width;
|
|
4877
|
-
return vn.value || gn.value ?
|
|
4877
|
+
return vn.value || gn.value ? ts(w) : Bt.value ? ns(w) : os(w);
|
|
4878
4878
|
}), Ke = c(
|
|
4879
|
-
() =>
|
|
4880
|
-
), en =
|
|
4879
|
+
() => Pa.find((w) => w.type === o.value.widget.type)
|
|
4880
|
+
), en = ms(), tn = c(() => !!en && _a(o.value)), s = c(
|
|
4881
4881
|
() => {
|
|
4882
4882
|
var w, se, ke;
|
|
4883
|
-
return D.value || ie.value || tn.value || (((w = Ke.value) == null ? void 0 : w.showLabel) ?? !1) || (((se = Ke.value) == null ? void 0 : se.showDrillDimension) ?? !1) &&
|
|
4883
|
+
return D.value || ie.value || tn.value || (((w = Ke.value) == null ? void 0 : w.showLabel) ?? !1) || (((se = Ke.value) == null ? void 0 : se.showDrillDimension) ?? !1) && ze.value.length > 0 || (((ke = Ke.value) == null ? void 0 : ke.showRollup) ?? !1) && Ye.value.length > 0;
|
|
4884
4884
|
}
|
|
4885
4885
|
), p = kn(async () => {
|
|
4886
|
-
Zt.value = window.innerWidth,
|
|
4886
|
+
Zt.value = window.innerWidth, Mt.value = ea(), k.value = Nt(), await wo(), v();
|
|
4887
4887
|
}), f = c(() => {
|
|
4888
|
-
if (
|
|
4888
|
+
if (Ma(Q.value.type, g.value))
|
|
4889
4889
|
switch (o.value.widget.type) {
|
|
4890
4890
|
case G.BarChart:
|
|
4891
|
-
return
|
|
4891
|
+
return cl;
|
|
4892
4892
|
case G.StackBarChart:
|
|
4893
|
-
return
|
|
4893
|
+
return Ul;
|
|
4894
4894
|
case G.ClusteredStackBarChart:
|
|
4895
|
-
return
|
|
4895
|
+
return Xl;
|
|
4896
4896
|
case G.LineChart:
|
|
4897
|
-
return
|
|
4897
|
+
return is;
|
|
4898
4898
|
case G.StackLineChart:
|
|
4899
|
-
return
|
|
4899
|
+
return ql;
|
|
4900
4900
|
case G.Circular:
|
|
4901
|
-
return
|
|
4901
|
+
return fl;
|
|
4902
4902
|
case G.Scorecard:
|
|
4903
|
-
return
|
|
4903
|
+
return Ml;
|
|
4904
4904
|
case G.Spacer:
|
|
4905
|
-
return
|
|
4905
|
+
return Fl;
|
|
4906
4906
|
case G.Table:
|
|
4907
|
-
return
|
|
4907
|
+
return Wl;
|
|
4908
4908
|
default:
|
|
4909
|
-
return
|
|
4909
|
+
return Qn;
|
|
4910
4910
|
}
|
|
4911
4911
|
else
|
|
4912
|
-
return
|
|
4913
|
-
}), g = P(null), { selectedLocationIds: V, dateRange: K, compareDateRange:
|
|
4912
|
+
return Qn;
|
|
4913
|
+
}), g = P(null), { selectedLocationIds: V, dateRange: K, compareDateRange: Z, timeRange: te } = $t(mn()), Y = Sa(), { globalFilters: de, lastAppliedTileFilterIds: ve } = $t(Y), { businessDataVersion: ye, dateSettingLoaded: oe } = $t(mn()), ge = P(!0), Q = c(() => {
|
|
4914
4914
|
const w = JSON.parse(JSON.stringify(o.value.widget));
|
|
4915
4915
|
return {
|
|
4916
4916
|
...w,
|
|
@@ -4921,27 +4921,27 @@ const gs = {
|
|
|
4921
4921
|
showGrandTotal: !1
|
|
4922
4922
|
}
|
|
4923
4923
|
};
|
|
4924
|
-
}),
|
|
4924
|
+
}), Re = c(() => {
|
|
4925
4925
|
var ke;
|
|
4926
|
-
const w = ((ke =
|
|
4927
|
-
if (!
|
|
4926
|
+
const w = ((ke = Q.value.config.metrics) == null ? void 0 : ke.length) ?? 0;
|
|
4927
|
+
if (!Q.value.config.isBlend)
|
|
4928
4928
|
return w;
|
|
4929
|
-
const se = (
|
|
4930
|
-
(
|
|
4931
|
-
var
|
|
4932
|
-
return
|
|
4929
|
+
const se = (Q.value.config.joinDatasources ?? []).reduce(
|
|
4930
|
+
(Ee, tt) => {
|
|
4931
|
+
var qe;
|
|
4932
|
+
return Ee + (((qe = tt.metrics) == null ? void 0 : qe.length) ?? 0);
|
|
4933
4933
|
},
|
|
4934
4934
|
0
|
|
4935
4935
|
);
|
|
4936
4936
|
return w + se;
|
|
4937
|
-
}),
|
|
4938
|
-
|
|
4939
|
-
...
|
|
4937
|
+
}), Xe = c(() => [
|
|
4938
|
+
Q.value.config,
|
|
4939
|
+
...Q.value.config.isBlend ? Q.value.config.joinDatasources ?? [] : []
|
|
4940
4940
|
].some((se) => {
|
|
4941
4941
|
var ke;
|
|
4942
|
-
return (ke = se.metrics) == null ? void 0 : ke.some((
|
|
4942
|
+
return (ke = se.metrics) == null ? void 0 : ke.some((Ee) => Ee.nullable);
|
|
4943
4943
|
}));
|
|
4944
|
-
function
|
|
4944
|
+
function et() {
|
|
4945
4945
|
return {
|
|
4946
4946
|
data: g.value,
|
|
4947
4947
|
showTitle: D.value,
|
|
@@ -4954,8 +4954,8 @@ const gs = {
|
|
|
4954
4954
|
chartBreakdownColors: ae.value,
|
|
4955
4955
|
chartUseSecondaryMetricShades: O.value,
|
|
4956
4956
|
chartColorBinding: H.value,
|
|
4957
|
-
metricCount:
|
|
4958
|
-
hasNullableMetric:
|
|
4957
|
+
metricCount: Re.value,
|
|
4958
|
+
hasNullableMetric: Xe.value,
|
|
4959
4959
|
lineStyles: F.value,
|
|
4960
4960
|
lineStyleBinding: b.value,
|
|
4961
4961
|
showLabel: C.value,
|
|
@@ -4965,85 +4965,85 @@ const gs = {
|
|
|
4965
4965
|
labelOffset: $.value,
|
|
4966
4966
|
labelFontSize: re.value,
|
|
4967
4967
|
showX: W.value,
|
|
4968
|
-
xPosition:
|
|
4968
|
+
xPosition: J.value,
|
|
4969
4969
|
showXGrid: ee.value,
|
|
4970
4970
|
showXTick: ue.value,
|
|
4971
4971
|
xTickFontSize: me.value,
|
|
4972
|
-
showXTitle:
|
|
4972
|
+
showXTitle: be.value,
|
|
4973
4973
|
xTitle: ne.value,
|
|
4974
4974
|
xTitleFontSize: xe.value,
|
|
4975
4975
|
showY: Ie.value,
|
|
4976
4976
|
yPosition: _e.value,
|
|
4977
|
-
showYGrid:
|
|
4978
|
-
showYTick:
|
|
4979
|
-
yTitle:
|
|
4980
|
-
showYTitle:
|
|
4981
|
-
yTitleFontSize:
|
|
4977
|
+
showYGrid: Ze.value,
|
|
4978
|
+
showYTick: Be.value,
|
|
4979
|
+
yTitle: ht.value,
|
|
4980
|
+
showYTitle: pt.value,
|
|
4981
|
+
yTitleFontSize: gt.value,
|
|
4982
4982
|
yTickFontSize: ot.value,
|
|
4983
|
-
isTransposed:
|
|
4984
|
-
showLegend:
|
|
4983
|
+
isTransposed: Q.value.config.isTransposed,
|
|
4984
|
+
showLegend: vt.value,
|
|
4985
4985
|
legendPosition: at.value,
|
|
4986
4986
|
usePointStyle: rt.value,
|
|
4987
|
-
legendFontSize:
|
|
4988
|
-
legendColor:
|
|
4987
|
+
legendFontSize: yt.value,
|
|
4988
|
+
legendColor: $e.value,
|
|
4989
4989
|
maxTooltipItems: lt.value,
|
|
4990
4990
|
stackBarOverlap: jt.value
|
|
4991
4991
|
};
|
|
4992
4992
|
}
|
|
4993
|
-
function
|
|
4993
|
+
function it() {
|
|
4994
4994
|
return {
|
|
4995
4995
|
data: g.value,
|
|
4996
|
-
filterText:
|
|
4997
|
-
rollupPosition:
|
|
4998
|
-
grandTotalLabel:
|
|
4996
|
+
filterText: Pt.value,
|
|
4997
|
+
rollupPosition: Q.value.config.rollupPosition,
|
|
4998
|
+
grandTotalLabel: Q.value.config.grandTotalLabel,
|
|
4999
4999
|
rowHeight: Jt.value,
|
|
5000
|
-
colWidths:
|
|
5000
|
+
colWidths: It.value
|
|
5001
5001
|
};
|
|
5002
5002
|
}
|
|
5003
|
-
const
|
|
5004
|
-
switch (
|
|
5003
|
+
const Ae = c(() => {
|
|
5004
|
+
switch (Q.value.type) {
|
|
5005
5005
|
case G.Table:
|
|
5006
|
-
return
|
|
5006
|
+
return it();
|
|
5007
5007
|
case G.BarChart:
|
|
5008
5008
|
case G.LineChart:
|
|
5009
5009
|
case G.StackBarChart:
|
|
5010
5010
|
case G.ClusteredStackBarChart:
|
|
5011
5011
|
case G.StackLineChart:
|
|
5012
5012
|
case G.Circular:
|
|
5013
|
-
return
|
|
5013
|
+
return et();
|
|
5014
5014
|
case G.Scorecard:
|
|
5015
5015
|
return {
|
|
5016
5016
|
data: g.value,
|
|
5017
|
-
sparklineTargetValue:
|
|
5017
|
+
sparklineTargetValue: Q.value.config.sparklineTargetValue
|
|
5018
5018
|
};
|
|
5019
5019
|
default:
|
|
5020
5020
|
return { data: g.value };
|
|
5021
5021
|
}
|
|
5022
|
-
}),
|
|
5022
|
+
}), Ye = c(() => {
|
|
5023
5023
|
const { config: w } = o.value.widget;
|
|
5024
5024
|
if (w.rollup != null) {
|
|
5025
5025
|
const se = [...w.dimensions].filter((ke) => !ke.hide);
|
|
5026
5026
|
return [
|
|
5027
|
-
{ label:
|
|
5028
|
-
{ label:
|
|
5029
|
-
...[...se].slice(0, se.length - 1).map((ke,
|
|
5030
|
-
label:
|
|
5031
|
-
value:
|
|
5027
|
+
{ label: ut(l, u, "None", "other"), value: "none" },
|
|
5028
|
+
{ label: ut(l, u, "Grand Total", "other"), value: 0 },
|
|
5029
|
+
...[...se].slice(0, se.length - 1).map((ke, Ee) => ({
|
|
5030
|
+
label: ut(l, u, ke.label, "other"),
|
|
5031
|
+
value: Ee + 1
|
|
5032
5032
|
}))
|
|
5033
5033
|
];
|
|
5034
5034
|
}
|
|
5035
5035
|
return [];
|
|
5036
|
-
}),
|
|
5037
|
-
const { config: w } =
|
|
5036
|
+
}), ze = c(() => {
|
|
5037
|
+
const { config: w } = Q.value;
|
|
5038
5038
|
return w.isDrillable ? w.dimensions.map((se) => ({
|
|
5039
|
-
label:
|
|
5040
|
-
value:
|
|
5039
|
+
label: ut(l, u, se.label, "other"),
|
|
5040
|
+
value: hs(se)
|
|
5041
5041
|
})) : [];
|
|
5042
5042
|
}), yn = c(
|
|
5043
5043
|
() => `${(V.value || []).join("|")}|${JSON.stringify(K.value)}|${JSON.stringify(
|
|
5044
5044
|
te.value
|
|
5045
5045
|
)}`
|
|
5046
|
-
),
|
|
5046
|
+
), bt = c(() => {
|
|
5047
5047
|
const w = o.value.id;
|
|
5048
5048
|
return (de.value || []).filter(
|
|
5049
5049
|
(se) => Array.isArray(se.tileIds) && se.tileIds.includes(w)
|
|
@@ -5052,7 +5052,7 @@ const gs = {
|
|
|
5052
5052
|
Te(
|
|
5053
5053
|
() => o.value.widget.config,
|
|
5054
5054
|
(w) => {
|
|
5055
|
-
h.value = w.rollup, D.value = w.showTitle ?? !0, B.value = w.titleFontSize ?? 14, _.value = w.titleBold ?? !1, S.value = w.titleItalic ?? !1, x.value = w.titleUnderline ?? !1, z.value = Array.isArray(w.chartColors) ? [...w.chartColors] : void 0, j.value = Array.isArray(w.chartColorLayers) ? [...w.chartColorLayers] : void 0, ae.value = Array.isArray(w.chartBreakdownColors) ? [...w.chartBreakdownColors] : void 0, O.value = w.chartUseSecondaryMetricShades ?? !0, H.value = w.chartColorBinding, F.value = Array.isArray(w.lineStyles) ? [...w.lineStyles] : void 0, b.value = w.lineStyleBinding, C.value = w.showLabel ?? !1, R.value = w.labelAlign ?? Dn.center, T.value = w.labelAnchor ?? Ln.center, M.value = w.labelRotation ?? 0, $.value = w.labelOffset ?? 0, re.value = w.labelFontSize ?? 12, W.value = w.showX ?? !0,
|
|
5055
|
+
h.value = w.rollup, D.value = w.showTitle ?? !0, B.value = w.titleFontSize ?? 14, _.value = w.titleBold ?? !1, S.value = w.titleItalic ?? !1, x.value = w.titleUnderline ?? !1, z.value = Array.isArray(w.chartColors) ? [...w.chartColors] : void 0, j.value = Array.isArray(w.chartColorLayers) ? [...w.chartColorLayers] : void 0, ae.value = Array.isArray(w.chartBreakdownColors) ? [...w.chartBreakdownColors] : void 0, O.value = w.chartUseSecondaryMetricShades ?? !0, H.value = w.chartColorBinding, F.value = Array.isArray(w.lineStyles) ? [...w.lineStyles] : void 0, b.value = w.lineStyleBinding, C.value = w.showLabel ?? !1, R.value = w.labelAlign ?? Dn.center, T.value = w.labelAnchor ?? Ln.center, M.value = w.labelRotation ?? 0, $.value = w.labelOffset ?? 0, re.value = w.labelFontSize ?? 12, W.value = w.showX ?? !0, J.value = w.xPosition ?? In.bottom, ee.value = w.showXGrid ?? !1, ue.value = w.showXTick ?? !0, me.value = w.xTickFontSize ?? 12, be.value = w.showXTitle ?? !1, ne.value = w.xTitle ?? "", xe.value = w.xTitleFontSize ?? 12, Ie.value = w.showY ?? !0, _e.value = w.yPosition ?? Pn.left, Ze.value = w.showYGrid ?? !1, Be.value = w.showYTick ?? !0, ot.value = w.yTickFontSize ?? 12, pt.value = w.showYTitle ?? !1, ht.value = w.yTitle ?? "", gt.value = w.yTitleFontSize ?? 12, vt.value = w.showLegend ?? void 0, at.value = w.legendPosition ?? Mn.top, rt.value = w.usePointStyle ?? !0, yt.value = w.legendFontSize, $e.value = w.legendColor ?? "#6b6b6b", lt.value = w.maxTooltipItems, jt.value = w.stackBarOverlap ?? !1, Jt.value = w.rowHeight ?? null, It.value = w.colWidths ?? null, k.value = Nt();
|
|
5056
5056
|
},
|
|
5057
5057
|
{ deep: !0, immediate: !0 }
|
|
5058
5058
|
), Te(
|
|
@@ -5069,30 +5069,31 @@ const gs = {
|
|
|
5069
5069
|
}), Te(
|
|
5070
5070
|
yn,
|
|
5071
5071
|
(w, se) => {
|
|
5072
|
-
se !== void 0 && w !== se &&
|
|
5072
|
+
se !== void 0 && w !== se && bt.value.length > 0 && qn();
|
|
5073
5073
|
},
|
|
5074
5074
|
{ flush: "pre" }
|
|
5075
5075
|
), Te(
|
|
5076
5076
|
() => o.value,
|
|
5077
5077
|
(w, se) => {
|
|
5078
|
-
!m.isTileEditor || !w || se !== void 0 &&
|
|
5078
|
+
!m.isTileEditor || !w || se !== void 0 && qn();
|
|
5079
5079
|
},
|
|
5080
5080
|
{ deep: !0, flush: "pre" }
|
|
5081
5081
|
), Te(
|
|
5082
5082
|
[
|
|
5083
|
-
() =>
|
|
5083
|
+
() => Q.value,
|
|
5084
5084
|
() => K.value,
|
|
5085
5085
|
() => te.value,
|
|
5086
|
-
() =>
|
|
5086
|
+
() => Z.value,
|
|
5087
5087
|
() => V.value,
|
|
5088
|
-
() =>
|
|
5088
|
+
() => ye.value,
|
|
5089
|
+
() => oe.value
|
|
5089
5090
|
],
|
|
5090
5091
|
() => {
|
|
5091
5092
|
m.isEditingStyle || bn();
|
|
5092
5093
|
},
|
|
5093
5094
|
{ deep: !0, flush: "post" }
|
|
5094
5095
|
), Te(
|
|
5095
|
-
() =>
|
|
5096
|
+
() => ve.value,
|
|
5096
5097
|
(w) => {
|
|
5097
5098
|
m.isEditingStyle || w.includes(o.value.id) && bn();
|
|
5098
5099
|
},
|
|
@@ -5104,128 +5105,128 @@ const gs = {
|
|
|
5104
5105
|
},
|
|
5105
5106
|
{ deep: !0 }
|
|
5106
5107
|
), Ht(() => {
|
|
5107
|
-
p(),
|
|
5108
|
-
}),
|
|
5109
|
-
|
|
5108
|
+
p(), Qe.value.sm || Qe.value.md || Qe.value.xs ? (console.log("Ignoring resize event due to keyboard"), addEventListener("change", p)) : addEventListener("resize", p), bn();
|
|
5109
|
+
}), So(() => {
|
|
5110
|
+
Qe.value.sm || Qe.value.md || Qe.value.xs ? (console.log("Ignoring resize event due to keyboard"), removeEventListener("change", p)) : removeEventListener("resize", p);
|
|
5110
5111
|
});
|
|
5111
|
-
const
|
|
5112
|
-
setWidgetResult:
|
|
5113
|
-
startWidgetResultLoading:
|
|
5114
|
-
finishWidgetResultLoading:
|
|
5115
|
-
clearAllWidgetResults:
|
|
5116
|
-
} =
|
|
5112
|
+
const En = Vn(), {
|
|
5113
|
+
setWidgetResult: Jo,
|
|
5114
|
+
startWidgetResultLoading: Zo,
|
|
5115
|
+
finishWidgetResultLoading: Qo,
|
|
5116
|
+
clearAllWidgetResults: qn
|
|
5117
|
+
} = ka();
|
|
5117
5118
|
let nn;
|
|
5118
5119
|
async function bn() {
|
|
5119
|
-
if (!m.isEditingStyle) {
|
|
5120
|
-
if (
|
|
5121
|
-
|
|
5120
|
+
if (!m.isEditingStyle && oe.value) {
|
|
5121
|
+
if (Q.value.config.schemaNames.length <= 0 && !(Q.value.config.dimensions.length <= 0 || Q.value.config.metrics.length <= 0)) {
|
|
5122
|
+
En.open({
|
|
5122
5123
|
message: "schema must not be empty and dimension or metrics must have at least 1 column",
|
|
5123
5124
|
type: "info"
|
|
5124
5125
|
}), n.value = !1;
|
|
5125
5126
|
return;
|
|
5126
5127
|
}
|
|
5127
|
-
|
|
5128
|
+
Zo();
|
|
5128
5129
|
try {
|
|
5129
5130
|
n.value = !0, nn && nn.abort(), nn = new AbortController();
|
|
5130
|
-
const w = nn.signal, se =
|
|
5131
|
-
|
|
5131
|
+
const w = nn.signal, se = ye.value, ke = await kn(
|
|
5132
|
+
Ta,
|
|
5132
5133
|
500
|
|
5133
5134
|
)({
|
|
5134
|
-
widget:
|
|
5135
|
+
widget: Q.value,
|
|
5135
5136
|
signal: w,
|
|
5136
5137
|
tileId: o.value.id
|
|
5137
5138
|
});
|
|
5138
|
-
if (
|
|
5139
|
+
if (ye.value === se) {
|
|
5139
5140
|
g.value = ke;
|
|
5140
|
-
const
|
|
5141
|
-
...
|
|
5142
|
-
...(
|
|
5141
|
+
const Ee = [
|
|
5142
|
+
...Q.value.config.dimensions,
|
|
5143
|
+
...(Q.value.config.joinDatasources ?? []).flatMap((tt) => tt.dimensions ?? [])
|
|
5143
5144
|
];
|
|
5144
|
-
|
|
5145
|
-
const
|
|
5146
|
-
|
|
5145
|
+
bt.value.length > 0 && bt.value.forEach((tt) => {
|
|
5146
|
+
const qe = gs(ke, tt, Ee), Cn = Array.from(new Set(qe));
|
|
5147
|
+
Jo(La(tt, m.reportId), Cn);
|
|
5147
5148
|
}), k.value = Nt(), setTimeout(() => v(), 100);
|
|
5148
5149
|
}
|
|
5149
5150
|
n.value = !1;
|
|
5150
5151
|
} catch (w) {
|
|
5151
|
-
w.code !== "ERR_CANCELED" && (g.value = null,
|
|
5152
|
+
w.code !== "ERR_CANCELED" && (g.value = null, En.open({ message: `Invalid chart ${Q.value.type}`, type: "error" }), console.log(w), n.value = !1);
|
|
5152
5153
|
} finally {
|
|
5153
|
-
|
|
5154
|
+
Qo();
|
|
5154
5155
|
}
|
|
5155
5156
|
}
|
|
5156
5157
|
}
|
|
5157
|
-
function
|
|
5158
|
+
function ea() {
|
|
5158
5159
|
if (o.value.widget.type !== "SPACER")
|
|
5159
|
-
return `${
|
|
5160
|
+
return `${ls(o.value.size.height, o.value.widget.type)}px`;
|
|
5160
5161
|
}
|
|
5161
|
-
function
|
|
5162
|
+
function ta() {
|
|
5162
5163
|
const w = A.value - 1;
|
|
5163
|
-
w >= 0 && (I.value =
|
|
5164
|
+
w >= 0 && (I.value = ze.value[w].value);
|
|
5164
5165
|
}
|
|
5165
|
-
function
|
|
5166
|
+
function na() {
|
|
5166
5167
|
const w = A.value + 1;
|
|
5167
|
-
w >= 0 && w <
|
|
5168
|
+
w >= 0 && w < ze.value.length && (I.value = ze.value[w].value);
|
|
5168
5169
|
}
|
|
5169
|
-
const
|
|
5170
|
-
label:
|
|
5170
|
+
const Gn = P(xt.EXCEL), jn = P(), oa = Object.values(xt).map((w) => ({
|
|
5171
|
+
label: Da(w),
|
|
5171
5172
|
value: w,
|
|
5172
5173
|
onClick: async () => {
|
|
5173
|
-
w ===
|
|
5174
|
+
w === xt.EXCEL || w === xt.PDFFULLSIZE || w === xt.PDFRECEIPT ? await ko({
|
|
5174
5175
|
reportType: w,
|
|
5175
5176
|
index: m.index,
|
|
5176
|
-
isCombinedLocationLayout:
|
|
5177
|
+
isCombinedLocationLayout: ge.value,
|
|
5177
5178
|
timeRange: te.value,
|
|
5178
5179
|
dateRange: K.value,
|
|
5179
5180
|
locationIds: V.value
|
|
5180
|
-
}) : w ===
|
|
5181
|
+
}) : w === xt.PDF && (Gn.value = w, jn.value = m.index, Ue.value = !0);
|
|
5181
5182
|
}
|
|
5182
|
-
})),
|
|
5183
|
+
})), aa = m.flat || Q.value.type === G.Spacer ? "flat" : "outlined", ra = Q.value.type === G.Spacer ? "p-0" : "p-16", la = c(() => m.flat ? "w-full" : Qt.value);
|
|
5183
5184
|
return (w, se) => {
|
|
5184
|
-
const ke = fe("FmTooltip"),
|
|
5185
|
-
return X(), ce(
|
|
5185
|
+
const ke = fe("FmTooltip"), Ee = fe("FmSearch"), tt = fe("FmCheckbox"), qe = fe("FmButton"), Cn = fe("FmSelect"), sa = fe("FmMenuItem"), ia = fe("FmMenu"), ua = fe("FmForm"), ca = fe("FmCircularProgress"), da = fe("FmCard");
|
|
5186
|
+
return X(), ce(da, {
|
|
5186
5187
|
ref_key: "tileCard",
|
|
5187
5188
|
ref: L,
|
|
5188
|
-
class: De(`${
|
|
5189
|
-
variant: i(
|
|
5190
|
-
style: Pe({ height:
|
|
5189
|
+
class: De(`${la.value} ${i(ra)}`),
|
|
5190
|
+
variant: i(aa),
|
|
5191
|
+
style: Pe({ height: Mt.value })
|
|
5191
5192
|
}, {
|
|
5192
5193
|
default: Le(() => [
|
|
5193
|
-
pe(
|
|
5194
|
+
pe(ds, {
|
|
5194
5195
|
modelValue: Ue.value,
|
|
5195
|
-
"onUpdate:modelValue": se[0] || (se[0] = (
|
|
5196
|
-
"report-type":
|
|
5197
|
-
index:
|
|
5196
|
+
"onUpdate:modelValue": se[0] || (se[0] = (Ct) => Ue.value = Ct),
|
|
5197
|
+
"report-type": Gn.value,
|
|
5198
|
+
index: jn.value
|
|
5198
5199
|
}, null, 8, ["modelValue", "report-type", "index"]),
|
|
5199
|
-
n.value ? (X(), ce(
|
|
5200
|
-
(X(), ce(
|
|
5200
|
+
n.value ? (X(), ce(ca, { key: 1 })) : (X(), le("div", vs, [
|
|
5201
|
+
(X(), ce(_o(f.value), {
|
|
5201
5202
|
key: k.value,
|
|
5202
|
-
modelValue:
|
|
5203
|
-
"onUpdate:modelValue": se[5] || (se[5] = (
|
|
5203
|
+
modelValue: Ae.value,
|
|
5204
|
+
"onUpdate:modelValue": se[5] || (se[5] = (Ct) => Ae.value = Ct),
|
|
5204
5205
|
"tile-index": m.index
|
|
5205
5206
|
}, {
|
|
5206
5207
|
menu: Le(() => [
|
|
5207
|
-
s.value ? (X(), ce(
|
|
5208
|
+
s.value ? (X(), ce(ua, {
|
|
5208
5209
|
key: 0,
|
|
5209
5210
|
class: "flex items-center gap-2"
|
|
5210
5211
|
}, {
|
|
5211
5212
|
default: Le(() => {
|
|
5212
|
-
var
|
|
5213
|
+
var Ct, Jn, Zn;
|
|
5213
5214
|
return [
|
|
5214
5215
|
pe(ke, {
|
|
5215
5216
|
variant: "plain",
|
|
5216
5217
|
placement: "right",
|
|
5217
|
-
content:
|
|
5218
|
+
content: Q.value.description,
|
|
5218
5219
|
"hide-arrow": !0,
|
|
5219
|
-
disabled: !
|
|
5220
|
+
disabled: !Q.value.description,
|
|
5220
5221
|
"z-index": 99
|
|
5221
5222
|
}, {
|
|
5222
5223
|
default: Le(() => [
|
|
5223
|
-
D.value !== !1 ? (X(), le("div",
|
|
5224
|
-
|
|
5224
|
+
D.value !== !1 ? (X(), le("div", ys, [
|
|
5225
|
+
Q.value.type === i(G).Scorecard && Q.value.config.titleIcon !== "" ? (X(), ce(Jl, {
|
|
5225
5226
|
key: 0,
|
|
5226
|
-
icon:
|
|
5227
|
-
type:
|
|
5228
|
-
size:
|
|
5227
|
+
icon: Q.value.config.titleIcon || "",
|
|
5228
|
+
type: Q.value.config.titleIconType,
|
|
5229
|
+
size: Q.value.config.titleIconSize
|
|
5229
5230
|
}, null, 8, ["icon", "type", "size"])) : he("", !0),
|
|
5230
5231
|
q("p", {
|
|
5231
5232
|
style: Pe({
|
|
@@ -5238,67 +5239,67 @@ const gs = {
|
|
|
5238
5239
|
class: De(["line-clamp-1", [
|
|
5239
5240
|
_.value ? "" : "text-fm-color-typo-secondary",
|
|
5240
5241
|
B.value <= 18 ? "fm-typo-en-body-md-400" : "",
|
|
5241
|
-
|
|
5242
|
+
Q.value.description ? "border-b-2 border-dashed border-gray-300" : ""
|
|
5242
5243
|
]])
|
|
5243
|
-
}, Ce(i(
|
|
5244
|
+
}, Ce(i(ut)(i(l), i(u), Q.value.title, "other")), 7)
|
|
5244
5245
|
])) : he("", !0)
|
|
5245
5246
|
]),
|
|
5246
5247
|
_: 1
|
|
5247
5248
|
}, 8, ["content", "disabled"]),
|
|
5248
|
-
ie.value ? (X(), ce(
|
|
5249
|
+
ie.value ? (X(), ce(Ee, {
|
|
5249
5250
|
key: 0,
|
|
5250
|
-
modelValue:
|
|
5251
|
-
"onUpdate:modelValue": se[1] || (se[1] = (He) =>
|
|
5251
|
+
modelValue: Pt.value,
|
|
5252
|
+
"onUpdate:modelValue": se[1] || (se[1] = (He) => Pt.value = He),
|
|
5252
5253
|
class: "grow"
|
|
5253
|
-
}, null, 8, ["modelValue"])) : (X(), le("div",
|
|
5254
|
-
|
|
5254
|
+
}, null, 8, ["modelValue"])) : (X(), le("div", bs)),
|
|
5255
|
+
ba(pe(tt, {
|
|
5255
5256
|
modelValue: C.value,
|
|
5256
5257
|
"onUpdate:modelValue": se[2] || (se[2] = (He) => C.value = He),
|
|
5257
5258
|
label: "Label",
|
|
5258
5259
|
value: !1
|
|
5259
5260
|
}, null, 8, ["modelValue"]), [
|
|
5260
|
-
[
|
|
5261
|
+
[Ca, (Ct = Ke.value) == null ? void 0 : Ct.showLabel]
|
|
5261
5262
|
]),
|
|
5262
|
-
(
|
|
5263
|
-
pe(
|
|
5263
|
+
(Jn = Ke.value) != null && Jn.showDrillDimension && ze.value.length > 0 ? (X(), le("div", Cs, [
|
|
5264
|
+
pe(qe, {
|
|
5264
5265
|
icon: "arrow_upward",
|
|
5265
5266
|
variant: "tertiary",
|
|
5266
5267
|
disabled: !N.value,
|
|
5267
|
-
onClick:
|
|
5268
|
+
onClick: ta
|
|
5268
5269
|
}, null, 8, ["disabled"]),
|
|
5269
|
-
pe(
|
|
5270
|
+
pe(qe, {
|
|
5270
5271
|
icon: "arrow_downward",
|
|
5271
5272
|
variant: "tertiary",
|
|
5272
5273
|
disabled: !E.value,
|
|
5273
|
-
onClick:
|
|
5274
|
+
onClick: na
|
|
5274
5275
|
}, null, 8, ["disabled"])
|
|
5275
5276
|
])) : he("", !0),
|
|
5276
|
-
(
|
|
5277
|
+
(Zn = Ke.value) != null && Zn.showRollup && Ye.value.length > 0 ? (X(), ce(Cn, {
|
|
5277
5278
|
key: `rollup-${i(d)}`,
|
|
5278
5279
|
modelValue: h.value,
|
|
5279
5280
|
"onUpdate:modelValue": se[3] || (se[3] = (He) => h.value = He),
|
|
5280
5281
|
class: "w-[150px]",
|
|
5281
|
-
items:
|
|
5282
|
+
items: Ye.value
|
|
5282
5283
|
}, null, 8, ["modelValue", "items"])) : he("", !0),
|
|
5283
|
-
tn.value ? (X(), ce(
|
|
5284
|
+
tn.value ? (X(), ce(qe, {
|
|
5284
5285
|
key: 4,
|
|
5285
5286
|
icon: "arrow_forward",
|
|
5286
5287
|
variant: "tertiary",
|
|
5287
5288
|
title: i(l)("report.common.openPage"),
|
|
5288
5289
|
onClick: se[4] || (se[4] = (He) => i(en).openPage(o.value))
|
|
5289
5290
|
}, null, 8, ["title"])) : he("", !0),
|
|
5290
|
-
m.hideExport ? he("", !0) : (X(), ce(
|
|
5291
|
+
m.hideExport ? he("", !0) : (X(), ce(ia, {
|
|
5291
5292
|
key: 5,
|
|
5292
5293
|
shift: !0
|
|
5293
5294
|
}, {
|
|
5294
5295
|
"menu-button": Le(() => [
|
|
5295
|
-
pe(
|
|
5296
|
+
pe(qe, {
|
|
5296
5297
|
icon: "more_vert",
|
|
5297
5298
|
variant: "tertiary"
|
|
5298
5299
|
})
|
|
5299
5300
|
]),
|
|
5300
5301
|
default: Le(() => [
|
|
5301
|
-
(X(!0), le(
|
|
5302
|
+
(X(!0), le(Ne, null, ft(i(oa), (He) => (X(), ce(sa, {
|
|
5302
5303
|
key: He.value,
|
|
5303
5304
|
label: He.label,
|
|
5304
5305
|
onClick: He.onClick
|
|
@@ -5322,23 +5323,23 @@ const gs = {
|
|
|
5322
5323
|
});
|
|
5323
5324
|
export {
|
|
5324
5325
|
Dn as L,
|
|
5325
|
-
|
|
5326
|
+
Ge as R,
|
|
5326
5327
|
we as S,
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5328
|
+
Jl as _,
|
|
5329
|
+
Vs as a,
|
|
5330
|
+
ns as b,
|
|
5331
|
+
ts as c,
|
|
5332
|
+
As as d,
|
|
5333
|
+
Gl as e,
|
|
5334
|
+
os as f,
|
|
5335
|
+
hs as g,
|
|
5336
|
+
Ns as h,
|
|
5337
|
+
Rs as i,
|
|
5338
|
+
ps as j,
|
|
5338
5339
|
Ln as k,
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5340
|
+
St as l,
|
|
5341
|
+
Do as m,
|
|
5342
|
+
Bs as n,
|
|
5343
|
+
Fs as p,
|
|
5344
|
+
ls as t
|
|
5344
5345
|
};
|