@feedmepos/mf-report 5.27.36 → 5.27.37-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-CHT3iF-7.js → App-a4tBFUHG.js} +39 -39
- package/dist/{DateRangeSelect-D2772bgT.js → DateRangeSelect-CzdH8KIh.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CArSG8Z_.js → Default.vue_vue_type_script_setup_true_lang-Das5NydC.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-RABMoQ3F.js → DynamicWidget.vue_vue_type_script_setup_true_lang-C7MfH6lO.js} +189 -189
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DzZP-ANz.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CY9Ittfx.js} +320 -332
- package/dist/{InsightView-KYbGpFKj.js → InsightView-CeM0vAPG.js} +4 -4
- package/dist/{Integration-CocbSCYz.js → Integration-khURGqXN.js} +3 -3
- package/dist/{Integrations-DaKi0pnt.js → Integrations-ByX5HR8T.js} +2 -2
- package/dist/{Layout-p1hYeFa3.js → Layout-CuDYhf7_.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DG-9RjS_.js → MenuTab.vue_vue_type_script_setup_true_lang-Cugq5T_x.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-By2GxyK2.js → NavigationTab.vue_vue_type_script_setup_true_lang-CtFQwutL.js} +3 -3
- package/dist/{OverviewView-CfmhSHLj.js → OverviewView-CVHgWDoJ.js} +4 -4
- package/dist/{Report-tUyaWEtI.js → Report-CjubflTp.js} +3 -3
- package/dist/{ReportEditor-BUXYZXMs.js → ReportEditor--ybAiFQo.js} +6 -6
- package/dist/{ReportView-BwrLb4jX.js → ReportView-uIuOcRa1.js} +6 -6
- package/dist/{Setting-DApgIt2e.js → Setting-BBNkwb-7.js} +3 -3
- package/dist/{Template-Cte2kk4J.js → Template-CCfgnFUd.js} +3 -3
- package/dist/TileEditor-DO4ZbyI4.js +4160 -0
- package/dist/{TileGrid.vue_vue_type_script_setup_true_lang-CC-xGpBd.js → TileGrid.vue_vue_type_script_setup_true_lang-BFN_LBP_.js} +2 -2
- package/dist/{TransitionFade-DszPGM-J.js → TransitionFade-BVqXn6QI.js} +4 -4
- package/dist/{app-CwM9HM2R.js → app-CF0phXX0.js} +1569 -1565
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-Ci7ZpIYk.js → formatChartData.worker-4gz12Ml-.js} +6 -6
- package/dist/assets/{processTableData.worker-C2Ubh_e0.js → processTableData.worker-KnOy0AZ-.js} +6 -6
- package/dist/{useRestaurantPermission-BQ0MKNOz.js → useRestaurantPermission-DKLxTWCr.js} +1 -1
- package/package.json +1 -1
- package/dist/TileEditor-DPUludYa.js +0 -4154
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { computed as c, defineComponent as
|
|
2
|
-
import { W as E, x as ha, S as
|
|
3
|
-
import { l as cn, a as fn, u as ko } from "./app-
|
|
4
|
-
import { d as kn } from "./DateRangeSelect-
|
|
1
|
+
import { computed as c, defineComponent as Be, ref as P, watch as Le, onMounted as zt, onBeforeUnmount as Co, resolveComponent as fe, createBlock as de, openBlock as K, Transition as ia, withCtx as De, createElementBlock as le, createCommentVNode as he, createElementVNode as Y, unref as i, normalizeStyle as Pe, withModifiers as un, toDisplayString as Ce, createVNode as pe, Fragment as Ne, renderList as ft, normalizeClass as Ie, nextTick as xo, mergeModels as Oe, useModel as Ue, renderSlot as ot, h as nn, createSlots as ua, resolveDynamicComponent as wo, toRaw as ca, markRaw as da, createTextVNode as fa, onUnmounted as _o, withDirectives as ma, vShow as pa } from "vue";
|
|
2
|
+
import { W as E, x as ha, S as At, y as Rt, z as ga, F as Bt, e as on, A as xn, B as So, b as va, E as ya, G as ba, H as Ca, R as bt, J as xa } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CY9Ittfx.js";
|
|
3
|
+
import { l as cn, a as fn, u as ko } from "./app-CF0phXX0.js";
|
|
4
|
+
import { d as kn } from "./DateRangeSelect-CzdH8KIh.js";
|
|
5
5
|
import { storeToRefs as Nt } from "pinia";
|
|
6
6
|
import { detectLocale as Vn } from "@feedmepos/mf-common";
|
|
7
7
|
import { C as Tn } from "./chart-DDDh8zNk.js";
|
|
@@ -139,7 +139,7 @@ function Ta(e, t = !1) {
|
|
|
139
139
|
if (n === "dotted")
|
|
140
140
|
return [2, 4];
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function Ae({
|
|
143
143
|
datasetIndex: e,
|
|
144
144
|
isCompare: t,
|
|
145
145
|
metricCount: n,
|
|
@@ -231,7 +231,7 @@ function mn(e, t) {
|
|
|
231
231
|
return `#${o(1)}${o(3)}${o(5)}`;
|
|
232
232
|
}
|
|
233
233
|
const Ia = 0.25, Mo = 0.7;
|
|
234
|
-
function
|
|
234
|
+
function Ao(e) {
|
|
235
235
|
return mn(e, Ia);
|
|
236
236
|
}
|
|
237
237
|
function Qn(e) {
|
|
@@ -243,7 +243,7 @@ function Je({
|
|
|
243
243
|
opacity: n,
|
|
244
244
|
customColors: o
|
|
245
245
|
}) {
|
|
246
|
-
const a = Io(o), r = a[e % a.length], l = t ?
|
|
246
|
+
const a = Io(o), r = a[e % a.length], l = t ? Ao(r) : r;
|
|
247
247
|
let u = typeof n == "number" ? n : 1;
|
|
248
248
|
return t && (u = u * Mo), Po(l, u);
|
|
249
249
|
}
|
|
@@ -264,11 +264,11 @@ function Tt({
|
|
|
264
264
|
colorMode: u,
|
|
265
265
|
customColors: f
|
|
266
266
|
}) {
|
|
267
|
-
const m = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, D = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, W = l !== !1, C = e * m + D, v = u === "clustered" ? Lo(Math.max(wt.length, e + 1)) : Io(f), h = $t(r == null ? void 0 : r[e * m]) ?? v[e % v.length], L = W && D > 0 ? mn(h, Qn(D)) : $t(r == null ? void 0 : r[C]) ?? (D > 0 ? mn(h, Qn(D)) : h), I = o ?
|
|
268
|
-
let
|
|
269
|
-
return o && (
|
|
267
|
+
const m = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, D = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, W = l !== !1, C = e * m + D, v = u === "clustered" ? Lo(Math.max(wt.length, e + 1)) : Io(f), h = $t(r == null ? void 0 : r[e * m]) ?? v[e % v.length], L = W && D > 0 ? mn(h, Qn(D)) : $t(r == null ? void 0 : r[C]) ?? (D > 0 ? mn(h, Qn(D)) : h), I = o ? Ao(L) : L;
|
|
268
|
+
let B = typeof a == "number" ? a : 1;
|
|
269
|
+
return o && (B = B * Mo), Po(I, B);
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function Bo(e, t, n) {
|
|
272
272
|
if (e === "" || t === "")
|
|
273
273
|
return null;
|
|
274
274
|
let o = (f) => f == null ? void 0 : f.replace(/,/g, "");
|
|
@@ -365,7 +365,7 @@ function Ro(e) {
|
|
|
365
365
|
titleMarginBottom: 6
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
|
-
const
|
|
368
|
+
const Aa = Ot({
|
|
369
369
|
display: "block",
|
|
370
370
|
padding: "0",
|
|
371
371
|
background: "none",
|
|
@@ -376,7 +376,7 @@ const Ba = Ot({
|
|
|
376
376
|
cursor: "pointer",
|
|
377
377
|
"text-align": "left",
|
|
378
378
|
"pointer-events": "auto"
|
|
379
|
-
}),
|
|
379
|
+
}), Ba = {
|
|
380
380
|
"font-size": "13px",
|
|
381
381
|
"font-weight": "600",
|
|
382
382
|
color: "#111827",
|
|
@@ -516,7 +516,7 @@ function Ut(e) {
|
|
|
516
516
|
}
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
|
-
const Oa = Number.POSITIVE_INFINITY,
|
|
519
|
+
const Oa = Number.POSITIVE_INFINITY, An = 2, Ua = 1, Ka = 0.2, Xa = 120, Ya = 320, Ea = 24, { breakpoints: xt } = Ht(), $n = "report-v5:locationchange";
|
|
520
520
|
let no = !1;
|
|
521
521
|
const qa = "report.widget.comparisonTooltip";
|
|
522
522
|
function oo() {
|
|
@@ -633,12 +633,12 @@ function lr(e) {
|
|
|
633
633
|
const t = e.dataset, n = typeof e.dataIndex == "number" ? e.dataIndex : 0;
|
|
634
634
|
return Number.isFinite($o(t, n));
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function Bn(e) {
|
|
637
637
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/\"/g, """).replace(/'/g, "'");
|
|
638
638
|
}
|
|
639
639
|
function sr(e) {
|
|
640
640
|
const t = typeof e == "number" ? e : typeof e == "string" ? Number(e) : Number.NaN;
|
|
641
|
-
return Number.isFinite(t) ? Math.max(
|
|
641
|
+
return Number.isFinite(t) ? Math.max(An, Math.floor(t)) : Oa;
|
|
642
642
|
}
|
|
643
643
|
function ir(e) {
|
|
644
644
|
return e <= 0 ? 320 : xt.value.xs || xt.value.sm || e <= 640 ? Math.max(160, Math.floor(e * 0.38)) : xt.value.md || e <= 900 ? Math.max(200, Math.floor(e * 0.46)) : xt.value.lg || e <= 1200 ? Math.max(240, Math.floor(e * 0.54)) : Math.max(280, Math.floor(e * 0.62));
|
|
@@ -695,7 +695,7 @@ function so(e) {
|
|
|
695
695
|
}
|
|
696
696
|
function mr(e) {
|
|
697
697
|
return Ot({
|
|
698
|
-
...
|
|
698
|
+
...Ba,
|
|
699
699
|
margin: `${e ? "8px" : "0"} 0 4px`
|
|
700
700
|
});
|
|
701
701
|
}
|
|
@@ -706,7 +706,7 @@ function pr(e, t) {
|
|
|
706
706
|
});
|
|
707
707
|
}
|
|
708
708
|
function hr(e) {
|
|
709
|
-
return `<button type="button" data-tooltip-full-details="true" style="${
|
|
709
|
+
return `<button type="button" data-tooltip-full-details="true" style="${Aa}">${Bn(e)}</button>`;
|
|
710
710
|
}
|
|
711
711
|
function Wo(e, t, n, o, a, r, l, u, f) {
|
|
712
712
|
var _;
|
|
@@ -751,12 +751,12 @@ function Wo(e, t, n, o, a, r, l, u, f) {
|
|
|
751
751
|
const I = D ? h.map((S) => {
|
|
752
752
|
const x = L.get(S.matchingKey);
|
|
753
753
|
return !x || x.length === 0 ? so(S) : x.shift() ?? so(S);
|
|
754
|
-
}) : [],
|
|
754
|
+
}) : [], B = W.length > h.length || C.length > I.length, A = (S, x = !1) => `<div style="${mr(x)}">${Bn(S)}</div>`, J = (S) => {
|
|
755
755
|
const x = pr(S.isBar, S.color);
|
|
756
|
-
return `<div style="${Fa}"><span style="${x}"></span><span style="${Ra}">${
|
|
756
|
+
return `<div style="${Fa}"><span style="${x}"></span><span style="${Ra}">${Bn(S.text)}</span></div>`;
|
|
757
757
|
};
|
|
758
758
|
let k = "";
|
|
759
|
-
m.length > 0 && (k +=
|
|
759
|
+
m.length > 0 && (k += A(m)), k += h.map((S) => J(S)).join(""), D && I.length > 0 && (k += A(D, k.length > 0), k += I.map((S) => J(S)).join("")), a && B && (k += hr(n));
|
|
760
760
|
const V = [
|
|
761
761
|
{
|
|
762
762
|
title: m,
|
|
@@ -770,7 +770,7 @@ function Wo(e, t, n, o, a, r, l, u, f) {
|
|
|
770
770
|
return {
|
|
771
771
|
html: k,
|
|
772
772
|
detailsPayload: { sections: V },
|
|
773
|
-
hasCollapsedValues:
|
|
773
|
+
hasCollapsedValues: B
|
|
774
774
|
};
|
|
775
775
|
}
|
|
776
776
|
function io(e) {
|
|
@@ -807,7 +807,7 @@ function gr(e, t, n, o, a, r, l, u, f, m) {
|
|
|
807
807
|
),
|
|
808
808
|
maxTooltipItems: a
|
|
809
809
|
};
|
|
810
|
-
const D = Math.max(
|
|
810
|
+
const D = Math.max(An, t.length);
|
|
811
811
|
let W = D, C = rn(
|
|
812
812
|
e,
|
|
813
813
|
t,
|
|
@@ -825,9 +825,9 @@ function gr(e, t, n, o, a, r, l, u, f, m) {
|
|
|
825
825
|
markup: C,
|
|
826
826
|
maxTooltipItems: D
|
|
827
827
|
};
|
|
828
|
-
let v =
|
|
828
|
+
let v = An, h = D;
|
|
829
829
|
for (; v <= h; ) {
|
|
830
|
-
const I = Math.floor((v + h) / 2),
|
|
830
|
+
const I = Math.floor((v + h) / 2), B = rn(
|
|
831
831
|
e,
|
|
832
832
|
t,
|
|
833
833
|
n,
|
|
@@ -843,7 +843,7 @@ function gr(e, t, n, o, a, r, l, u, f, m) {
|
|
|
843
843
|
h = I - 1;
|
|
844
844
|
continue;
|
|
845
845
|
}
|
|
846
|
-
W = I, C =
|
|
846
|
+
W = I, C = B, v = I + 1;
|
|
847
847
|
}
|
|
848
848
|
return {
|
|
849
849
|
markup: W === D ? C : rn(
|
|
@@ -974,14 +974,14 @@ function Wn(e) {
|
|
|
974
974
|
function On(e, t, n, o, a, r, l = "center", u = !1) {
|
|
975
975
|
const f = t.getBoundingClientRect(), m = n.getBoundingClientRect(), D = n.scrollLeft, W = n.scrollTop, C = n.clientWidth, v = n.clientHeight, h = e;
|
|
976
976
|
(!Number.isFinite(h.__cachedWidth) || !Number.isFinite(h.__cachedHeight) || h.__measurementHostWidth !== C || h.__measurementHostHeight !== v) && (h.__cachedWidth = e.offsetWidth, h.__cachedHeight = e.offsetHeight, h.__measurementHostWidth = C, h.__measurementHostHeight = v);
|
|
977
|
-
const I = h.__cachedWidth ?? e.offsetWidth,
|
|
978
|
-
let x = W +
|
|
977
|
+
const I = h.__cachedWidth ?? e.offsetWidth, B = h.__cachedHeight ?? e.offsetHeight, A = 8, J = f.left - m.left + D + o, k = f.top - m.top + W + a, V = u ? l === "left" ? J - I - A : J + A : l === "left" ? J - I - A : l === "right" ? J + A : J - I / 2, _ = u ? k + A : r ? k - B / 2 : k + A, S = D + A;
|
|
978
|
+
let x = W + A;
|
|
979
979
|
const $ = document.querySelector('[data-menu-tab="true"]');
|
|
980
980
|
if ($) {
|
|
981
|
-
const y = $.getBoundingClientRect().bottom - m.top + W +
|
|
981
|
+
const y = $.getBoundingClientRect().bottom - m.top + W + A;
|
|
982
982
|
x = Math.max(x, y);
|
|
983
983
|
}
|
|
984
|
-
const q = Math.max(S, D + C - I -
|
|
984
|
+
const q = Math.max(S, D + C - I - A), O = Math.max(x, W + v - B - A), j = Math.round(Math.min(Math.max(S, V), q)), G = Math.round(Math.min(Math.max(x, _), O));
|
|
985
985
|
h.__lastLeftPx === j && h.__lastTopPx === G || (h.__lastLeftPx = j, h.__lastTopPx = G, e.style.left = `${j}px`, e.style.top = `${G}px`);
|
|
986
986
|
}
|
|
987
987
|
function Uo(e) {
|
|
@@ -1108,17 +1108,17 @@ function Pr(e, t, n, o, a) {
|
|
|
1108
1108
|
}, t.addEventListener("pointerleave", e.__onCanvasPointerLeave, {
|
|
1109
1109
|
passive: !0
|
|
1110
1110
|
})), e.__onCanvasClick || (e.__onCanvasClick = (l) => {
|
|
1111
|
-
var I,
|
|
1111
|
+
var I, B;
|
|
1112
1112
|
if (ct() || !(a != null && a.onViewFullDetails) || !e.__detailsPayload || e.style.opacity !== "1")
|
|
1113
1113
|
return;
|
|
1114
|
-
const u = (
|
|
1114
|
+
const u = (A) => {
|
|
1115
1115
|
var S, x, $, q;
|
|
1116
|
-
if (
|
|
1116
|
+
if (A.length === 0)
|
|
1117
1117
|
return !1;
|
|
1118
|
-
const J = (S =
|
|
1118
|
+
const J = (S = A.find(
|
|
1119
1119
|
(O) => typeof O.dataIndex == "number"
|
|
1120
1120
|
)) == null ? void 0 : S.dataIndex, k = ((x = n == null ? void 0 : n.data) == null ? void 0 : x.datasets) ?? [], V = ($ = n == null ? void 0 : n.config) == null ? void 0 : $.type, _ = Wo(
|
|
1121
|
-
|
|
1121
|
+
A,
|
|
1122
1122
|
o,
|
|
1123
1123
|
(a == null ? void 0 : a.viewFullDetailsLabel) ?? Vo(),
|
|
1124
1124
|
r,
|
|
@@ -1147,7 +1147,7 @@ function Pr(e, t, n, o, a) {
|
|
|
1147
1147
|
"index",
|
|
1148
1148
|
{ intersect: !1 },
|
|
1149
1149
|
!1
|
|
1150
|
-
), v = (D.length > 0 ? D : W).filter((
|
|
1150
|
+
), v = (D.length > 0 ? D : W).filter((A) => typeof A.datasetIndex == "number" && typeof A.index == "number").map((A) => ({ datasetIndex: A.datasetIndex, index: A.index }));
|
|
1151
1151
|
if (v.length === 0)
|
|
1152
1152
|
return;
|
|
1153
1153
|
const h = n == null ? void 0 : n.tooltip;
|
|
@@ -1162,7 +1162,7 @@ function Pr(e, t, n, o, a) {
|
|
|
1162
1162
|
} catch {
|
|
1163
1163
|
return;
|
|
1164
1164
|
}
|
|
1165
|
-
const L = ((
|
|
1165
|
+
const L = ((B = n == null ? void 0 : n.tooltip) == null ? void 0 : B.dataPoints) ?? [];
|
|
1166
1166
|
u(L);
|
|
1167
1167
|
}, t.addEventListener("click", e.__onCanvasClick)), e.__onCanvasPointerUp || (e.__onCanvasPointerUp = (l) => {
|
|
1168
1168
|
if (ct()) {
|
|
@@ -1181,9 +1181,9 @@ function Pr(e, t, n, o, a) {
|
|
|
1181
1181
|
"index",
|
|
1182
1182
|
{ intersect: !1 },
|
|
1183
1183
|
!1
|
|
1184
|
-
), C = (m.length > 0 ? m : D).filter((
|
|
1185
|
-
datasetIndex:
|
|
1186
|
-
index:
|
|
1184
|
+
), C = (m.length > 0 ? m : D).filter((B) => typeof B.datasetIndex == "number" && typeof B.index == "number").map((B) => ({
|
|
1185
|
+
datasetIndex: B.datasetIndex,
|
|
1186
|
+
index: B.index
|
|
1187
1187
|
}));
|
|
1188
1188
|
if (C.length === 0) {
|
|
1189
1189
|
je(e, n, !0);
|
|
@@ -1259,7 +1259,7 @@ function Mr(e, t, n) {
|
|
|
1259
1259
|
passive: !0
|
|
1260
1260
|
}));
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1262
|
+
function Ar(e, t) {
|
|
1263
1263
|
const { maxTooltipItems: n } = Ho(t);
|
|
1264
1264
|
return ({ chart: o, tooltip: a }) => {
|
|
1265
1265
|
var j, G, F, y;
|
|
@@ -1297,9 +1297,9 @@ function Br(e, t) {
|
|
|
1297
1297
|
C,
|
|
1298
1298
|
h,
|
|
1299
1299
|
t == null ? void 0 : t.comparisonXAxis
|
|
1300
|
-
),
|
|
1301
|
-
f.__detailsPayload =
|
|
1302
|
-
const
|
|
1300
|
+
), B = W && I;
|
|
1301
|
+
f.__detailsPayload = B ? L : void 0, f.style.pointerEvents = B ? "auto" : "none";
|
|
1302
|
+
const A = typeof (a == null ? void 0 : a.caretX) == "number" ? a.caretX : 0, J = Number(f.dataset.cursorCanvasX), k = Number(f.dataset.cursorCanvasY);
|
|
1303
1303
|
if (!(Number.isFinite(J) && Number.isFinite(k))) {
|
|
1304
1304
|
f.style.opacity = "0";
|
|
1305
1305
|
return;
|
|
@@ -1310,7 +1310,7 @@ function Br(e, t) {
|
|
|
1310
1310
|
return b;
|
|
1311
1311
|
if (!Number.isFinite(b))
|
|
1312
1312
|
return M;
|
|
1313
|
-
const z = Number.isFinite(S) ? S :
|
|
1313
|
+
const z = Number.isFinite(S) ? S : A, re = Math.abs(b - z);
|
|
1314
1314
|
return Math.abs(M - z) > re ? M : b;
|
|
1315
1315
|
}, Number.NaN) : Number.NaN, $ = J, q = k, O = e ? Number.isFinite(S) && Number.isFinite(x) && x < S ? "left" : "right" : "center";
|
|
1316
1316
|
On(
|
|
@@ -1330,7 +1330,7 @@ function Rn(e = !1, t) {
|
|
|
1330
1330
|
...Ro(e ? "y" : "x"),
|
|
1331
1331
|
enabled: !1,
|
|
1332
1332
|
filter: lr,
|
|
1333
|
-
external:
|
|
1333
|
+
external: Ar(e, t)
|
|
1334
1334
|
};
|
|
1335
1335
|
}
|
|
1336
1336
|
const fo = "en-US";
|
|
@@ -1344,7 +1344,7 @@ function mo(e, t) {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
return typeof o == "string" ? o : void 0;
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function Br() {
|
|
1348
1348
|
const e = Vn(), t = "report.widget.legend.comparison";
|
|
1349
1349
|
return `(${mo(cn[e] ?? cn[fo], t) ?? mo(cn[fo], t) ?? "Comparison"})`;
|
|
1350
1350
|
}
|
|
@@ -1352,10 +1352,10 @@ function Xo(e) {
|
|
|
1352
1352
|
function o(C, v, h) {
|
|
1353
1353
|
if (C.measureText(v).width <= h) return v;
|
|
1354
1354
|
const L = "…";
|
|
1355
|
-
let I = 0,
|
|
1356
|
-
for (; I <
|
|
1357
|
-
const
|
|
1358
|
-
C.measureText(J).width <= h ? I =
|
|
1355
|
+
let I = 0, B = v.length;
|
|
1356
|
+
for (; I < B; ) {
|
|
1357
|
+
const A = Math.floor((I + B) / 2), J = v.slice(0, A) + L;
|
|
1358
|
+
C.measureText(J).width <= h ? I = A + 1 : B = A;
|
|
1359
1359
|
}
|
|
1360
1360
|
return v.slice(0, I - 1) + L;
|
|
1361
1361
|
}
|
|
@@ -1370,7 +1370,7 @@ function Xo(e) {
|
|
|
1370
1370
|
function l(C, v) {
|
|
1371
1371
|
const h = C == null ? "" : String(C).trim();
|
|
1372
1372
|
if (h.length === 0) return h;
|
|
1373
|
-
const L =
|
|
1373
|
+
const L = Br();
|
|
1374
1374
|
return h.endsWith(` ${L}`) || h.endsWith(L) ? h : (v == null ? void 0 : v.dash) === !0 || (v == null ? void 0 : v.isCompare) === !0 ? `${h} ${L}` : h;
|
|
1375
1375
|
}
|
|
1376
1376
|
const u = c(() => ({
|
|
@@ -1403,11 +1403,11 @@ function Xo(e) {
|
|
|
1403
1403
|
if (L && typeof L.getLabelForValue == "function" && (h = L.getLabelForValue(C)), L != null && L.type && L.type !== "category")
|
|
1404
1404
|
return r(h);
|
|
1405
1405
|
h = a(h);
|
|
1406
|
-
const I = L == null ? void 0 : L.chart,
|
|
1407
|
-
if (
|
|
1408
|
-
|
|
1409
|
-
const k =
|
|
1410
|
-
return
|
|
1406
|
+
const I = L == null ? void 0 : L.chart, B = L == null ? void 0 : L.ctx, A = I.height * 0.25;
|
|
1407
|
+
if (B && A > 0) {
|
|
1408
|
+
B.save();
|
|
1409
|
+
const k = B.measureText(h).width > A ? o(B, h, A) : h;
|
|
1410
|
+
return B.restore(), k;
|
|
1411
1411
|
}
|
|
1412
1412
|
return h;
|
|
1413
1413
|
},
|
|
@@ -1453,11 +1453,11 @@ function Xo(e) {
|
|
|
1453
1453
|
if (L && typeof L.getLabelForValue == "function" && (h = L.getLabelForValue(C)), L != null && L.type && L.type !== "category")
|
|
1454
1454
|
return r(h);
|
|
1455
1455
|
h = a(h);
|
|
1456
|
-
const I = L == null ? void 0 : L.chart,
|
|
1457
|
-
if (
|
|
1458
|
-
|
|
1459
|
-
const k =
|
|
1460
|
-
return
|
|
1456
|
+
const I = L == null ? void 0 : L.chart, B = L == null ? void 0 : L.ctx, A = I.width * 0.4;
|
|
1457
|
+
if (B && A > 0) {
|
|
1458
|
+
B.save();
|
|
1459
|
+
const k = B.measureText(h).width > A ? o(B, h, A) : h;
|
|
1460
|
+
return B.restore(), k;
|
|
1461
1461
|
}
|
|
1462
1462
|
return h;
|
|
1463
1463
|
}
|
|
@@ -1486,10 +1486,10 @@ function Xo(e) {
|
|
|
1486
1486
|
if (h.length === 0) return [];
|
|
1487
1487
|
if (h.length === 1 && Array.isArray(h[0].backgroundColor) && h[0].backgroundColor.length > 1 && Array.isArray(h[0].data)) {
|
|
1488
1488
|
const I = h[0];
|
|
1489
|
-
return C.data.labels.map((
|
|
1489
|
+
return C.data.labels.map((A, J) => {
|
|
1490
1490
|
const k = I.backgroundColor[J];
|
|
1491
1491
|
return {
|
|
1492
|
-
text:
|
|
1492
|
+
text: A,
|
|
1493
1493
|
fontColor: v,
|
|
1494
1494
|
color: v,
|
|
1495
1495
|
fillStyle: k,
|
|
@@ -1500,16 +1500,16 @@ function Xo(e) {
|
|
|
1500
1500
|
};
|
|
1501
1501
|
});
|
|
1502
1502
|
}
|
|
1503
|
-
return C.data.datasets.map((I,
|
|
1504
|
-
const
|
|
1503
|
+
return C.data.datasets.map((I, B) => {
|
|
1504
|
+
const A = I.borderColor || I.backgroundColor;
|
|
1505
1505
|
return {
|
|
1506
1506
|
text: l(I.label, I),
|
|
1507
1507
|
fontColor: v,
|
|
1508
1508
|
color: v,
|
|
1509
|
-
fillStyle:
|
|
1510
|
-
strokeStyle:
|
|
1511
|
-
datasetIndex:
|
|
1512
|
-
hidden: !C.isDatasetVisible(
|
|
1509
|
+
fillStyle: A,
|
|
1510
|
+
strokeStyle: A,
|
|
1511
|
+
datasetIndex: B,
|
|
1512
|
+
hidden: !C.isDatasetVisible(B)
|
|
1513
1513
|
};
|
|
1514
1514
|
});
|
|
1515
1515
|
}
|
|
@@ -1526,7 +1526,7 @@ const Fr = {
|
|
|
1526
1526
|
}, Hr = ["onMouseenter", "onFocus"], Wr = { class: "min-w-0 flex flex-1 items-center gap-2.5 pr-2" }, Or = { class: "min-w-0 break-all text-fm-color-typo-secondary" }, Ur = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-secondary shrink-0 text-right tabular-nums" }, Kr = {
|
|
1527
1527
|
key: 1,
|
|
1528
1528
|
class: "flex justify-center px-2 pt-2"
|
|
1529
|
-
}, po = 500, Xr = 320, sn = 30, Kt = /* @__PURE__ */
|
|
1529
|
+
}, po = 500, Xr = 320, sn = 30, Kt = /* @__PURE__ */ Be({
|
|
1530
1530
|
__name: "TooltipDetailSidesheet",
|
|
1531
1531
|
props: {
|
|
1532
1532
|
modelValue: { type: Boolean },
|
|
@@ -1542,7 +1542,7 @@ const Fr = {
|
|
|
1542
1542
|
return (((F = n.detailsPayload) == null ? void 0 : F.sections) ?? []).filter((y) => y.values.length > 0);
|
|
1543
1543
|
}), W = c(
|
|
1544
1544
|
() => D.value.map((F, y) => {
|
|
1545
|
-
const b =
|
|
1545
|
+
const b = B(F.title, y), R = Math.min(f.value[b] ?? sn, F.values.length);
|
|
1546
1546
|
return {
|
|
1547
1547
|
...F,
|
|
1548
1548
|
key: b,
|
|
@@ -1568,12 +1568,12 @@ const Fr = {
|
|
|
1568
1568
|
function I() {
|
|
1569
1569
|
o("value-leave");
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1571
|
+
function B(F, y) {
|
|
1572
1572
|
return `${F || "section"}-${y}`;
|
|
1573
1573
|
}
|
|
1574
|
-
function
|
|
1574
|
+
function A() {
|
|
1575
1575
|
f.value = D.value.reduce(
|
|
1576
|
-
(F, y, b) => (F[
|
|
1576
|
+
(F, y, b) => (F[B(y.title, b)] = sn, F),
|
|
1577
1577
|
{}
|
|
1578
1578
|
);
|
|
1579
1579
|
}
|
|
@@ -1622,9 +1622,9 @@ const Fr = {
|
|
|
1622
1622
|
m.value && F.key === "Escape" && k();
|
|
1623
1623
|
}
|
|
1624
1624
|
return Le([D, m], () => {
|
|
1625
|
-
m.value &&
|
|
1625
|
+
m.value && A();
|
|
1626
1626
|
}), zt(() => {
|
|
1627
|
-
l.value = _(l.value),
|
|
1627
|
+
l.value = _(l.value), A(), document.addEventListener("pointerdown", j, !0), document.addEventListener("keydown", G), window.addEventListener("resize", O);
|
|
1628
1628
|
}), Co(() => {
|
|
1629
1629
|
x(), document.removeEventListener("pointerdown", j, !0), document.removeEventListener("keydown", G), window.removeEventListener("resize", O);
|
|
1630
1630
|
}), (F, y) => {
|
|
@@ -1719,7 +1719,7 @@ const Fr = {
|
|
|
1719
1719
|
}, Er = ["aria-pressed", "onClick"], qr = ["title"], Gr = {
|
|
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
|
-
}, jr = 36, ho = 2, go = 16, Jr = 50, Zr = 6, Qr = /* @__PURE__ */
|
|
1722
|
+
}, jr = 36, ho = 2, go = 16, Jr = 50, Zr = 6, Qr = /* @__PURE__ */ Be({
|
|
1723
1723
|
__name: "ChartLegendPanel",
|
|
1724
1724
|
props: {
|
|
1725
1725
|
chartRef: {},
|
|
@@ -1739,13 +1739,13 @@ const Fr = {
|
|
|
1739
1739
|
},
|
|
1740
1740
|
emits: ["toggleDatasetVisibility", "toggleDataPointVisibility"],
|
|
1741
1741
|
setup(e, { emit: t }) {
|
|
1742
|
-
const n = e, o = t, { t: a, locale: r } = mt(), l = P([]), u = P(0), f = P(!1), m = P(!1), D = P(0), W = P(null), C = P(null), v = P(null), h = P(null), L = P(!1), I = P(0),
|
|
1742
|
+
const n = e, o = t, { t: a, locale: r } = mt(), l = P([]), u = P(0), f = P(!1), m = P(!1), D = P(0), W = P(null), C = P(null), v = P(null), h = P(null), L = P(!1), I = P(0), B = P(0), A = P(!1), J = P(0), k = P(0), V = c(() => n.enabled !== !1), _ = c(() => n.position === "left" || n.position === "right");
|
|
1743
1743
|
let S = null;
|
|
1744
1744
|
const x = c(
|
|
1745
1745
|
() => f.value && m.value && L.value
|
|
1746
1746
|
), $ = c(() => ({
|
|
1747
1747
|
height: `${Math.max(0, I.value)}px`,
|
|
1748
|
-
transform: `translateY(${Math.max(0,
|
|
1748
|
+
transform: `translateY(${Math.max(0, B.value)}px)`
|
|
1749
1749
|
})), q = c(() => typeof n.textColor == "string" && n.textColor.trim().length > 0 ? n.textColor : "#6b6b6b"), O = c(() => typeof n.fontSize == "number" && Number.isFinite(n.fontSize) && n.fontSize > 0 ? n.fontSize : 12);
|
|
1750
1750
|
function j(s) {
|
|
1751
1751
|
G({ height: s, width: 0 });
|
|
@@ -1798,16 +1798,16 @@ const Fr = {
|
|
|
1798
1798
|
function T() {
|
|
1799
1799
|
const s = v.value;
|
|
1800
1800
|
if (!s) {
|
|
1801
|
-
L.value = !1, I.value = 0,
|
|
1801
|
+
L.value = !1, I.value = 0, B.value = 0;
|
|
1802
1802
|
return;
|
|
1803
1803
|
}
|
|
1804
1804
|
const p = s.clientHeight, d = s.scrollHeight, g = s.scrollTop, N = d > p + 1;
|
|
1805
1805
|
if (L.value = N, !N || p <= 0) {
|
|
1806
|
-
I.value = 0,
|
|
1806
|
+
I.value = 0, B.value = 0;
|
|
1807
1807
|
return;
|
|
1808
1808
|
}
|
|
1809
1809
|
const U = p, ee = Math.max(18, Math.round(p / d * U)), oe = Math.max(0, U - ee), X = Math.max(1, d - p), ce = Math.round(g / X * oe);
|
|
1810
|
-
I.value = ee,
|
|
1810
|
+
I.value = ee, B.value = ce;
|
|
1811
1811
|
}
|
|
1812
1812
|
function M() {
|
|
1813
1813
|
T();
|
|
@@ -1820,10 +1820,10 @@ const Fr = {
|
|
|
1820
1820
|
p.scrollTop = oe * X, T();
|
|
1821
1821
|
}
|
|
1822
1822
|
function re(s) {
|
|
1823
|
-
L.value && (
|
|
1823
|
+
L.value && (A.value = !0, J.value = s.clientY, k.value = B.value);
|
|
1824
1824
|
}
|
|
1825
1825
|
function se(s) {
|
|
1826
|
-
if (!
|
|
1826
|
+
if (!A.value)
|
|
1827
1827
|
return;
|
|
1828
1828
|
const p = v.value;
|
|
1829
1829
|
if (!p)
|
|
@@ -1832,7 +1832,7 @@ const Fr = {
|
|
|
1832
1832
|
p.scrollTop = U * ee, T();
|
|
1833
1833
|
}
|
|
1834
1834
|
function H() {
|
|
1835
|
-
|
|
1835
|
+
A.value && (A.value = !1);
|
|
1836
1836
|
}
|
|
1837
1837
|
function Z() {
|
|
1838
1838
|
var p;
|
|
@@ -1938,7 +1938,7 @@ const Fr = {
|
|
|
1938
1938
|
const X = St({
|
|
1939
1939
|
fallbackIndex: U,
|
|
1940
1940
|
metricCount: ee
|
|
1941
|
-
}), ce =
|
|
1941
|
+
}), ce = Ae({
|
|
1942
1942
|
datasetIndex: U,
|
|
1943
1943
|
metricCount: ee,
|
|
1944
1944
|
mode: xe.metric
|
|
@@ -1953,7 +1953,7 @@ const Fr = {
|
|
|
1953
1953
|
});
|
|
1954
1954
|
}
|
|
1955
1955
|
if (d === xe.metric) {
|
|
1956
|
-
const X =
|
|
1956
|
+
const X = Ae({
|
|
1957
1957
|
datasetIndex: U,
|
|
1958
1958
|
metricCount: ee,
|
|
1959
1959
|
mode: xe.metric
|
|
@@ -2386,7 +2386,7 @@ const Fr = {
|
|
|
2386
2386
|
Pt();
|
|
2387
2387
|
}
|
|
2388
2388
|
), Co(() => {
|
|
2389
|
-
|
|
2389
|
+
A.value = !1, F(), G({ height: 0, width: 0 }), window.removeEventListener("mousemove", se), window.removeEventListener("mouseup", H);
|
|
2390
2390
|
}), (s, p) => V.value ? (K(), le("div", {
|
|
2391
2391
|
key: 0,
|
|
2392
2392
|
ref_key: "legendPanelRef",
|
|
@@ -2563,10 +2563,10 @@ function Xt({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2563
2563
|
), I = c(() => {
|
|
2564
2564
|
const x = h.value.position;
|
|
2565
2565
|
return !x || x === "top" || x === "bottom" || x === "left" || x === "right";
|
|
2566
|
-
}),
|
|
2567
|
-
() =>
|
|
2566
|
+
}), B = c(() => h.value.position ?? "top"), A = c(
|
|
2567
|
+
() => B.value === "left" || B.value === "right"
|
|
2568
2568
|
), J = c(
|
|
2569
|
-
() =>
|
|
2569
|
+
() => B.value === "top" || B.value === "left"
|
|
2570
2570
|
), { hiddenDatasetKeys: k, isDatasetHidden: V, toggleDatasetVisibility: _ } = tl(n), S = c(() => n.value.map((x, $) => ({
|
|
2571
2571
|
...x,
|
|
2572
2572
|
hidden: V(x, $)
|
|
@@ -2584,8 +2584,8 @@ function Xt({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2584
2584
|
isTransposed: v,
|
|
2585
2585
|
legend: h,
|
|
2586
2586
|
useCustomLegend: I,
|
|
2587
|
-
legendPosition:
|
|
2588
|
-
isLegendSide:
|
|
2587
|
+
legendPosition: B,
|
|
2588
|
+
isLegendSide: A,
|
|
2589
2589
|
isLegendBeforeChart: J,
|
|
2590
2590
|
hiddenDatasetKeys: k,
|
|
2591
2591
|
toggleDatasetVisibility: _,
|
|
@@ -2622,7 +2622,7 @@ function qt(e, t, n) {
|
|
|
2622
2622
|
)
|
|
2623
2623
|
}) : e;
|
|
2624
2624
|
}
|
|
2625
|
-
const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /* @__PURE__ */
|
|
2625
|
+
const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /* @__PURE__ */ Be({
|
|
2626
2626
|
__name: "WidgetBarchart",
|
|
2627
2627
|
props: /* @__PURE__ */ Oe({
|
|
2628
2628
|
tileIndex: {}
|
|
@@ -2663,12 +2663,12 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
2663
2663
|
const z = Wt({
|
|
2664
2664
|
datasets: l.value,
|
|
2665
2665
|
datasetIndex: M
|
|
2666
|
-
}), re = r.value ? Et(l.value, z) : z, se =
|
|
2666
|
+
}), re = r.value ? Et(l.value, z) : z, se = Ae({
|
|
2667
2667
|
datasetIndex: re,
|
|
2668
2668
|
isCompare: !1,
|
|
2669
2669
|
metricCount: t.value.metricCount,
|
|
2670
2670
|
mode: t.value.chartColorBinding
|
|
2671
|
-
}), H =
|
|
2671
|
+
}), H = Ae({
|
|
2672
2672
|
datasetIndex: re,
|
|
2673
2673
|
isCompare: !1,
|
|
2674
2674
|
metricCount: t.value.metricCount,
|
|
@@ -2713,8 +2713,8 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
2713
2713
|
isTooltipDetailsSheetOpen: h,
|
|
2714
2714
|
tooltipDetailsPayload: L,
|
|
2715
2715
|
handleTooltipDetailsSheetVisibility: I,
|
|
2716
|
-
handleTooltipDetailsHover:
|
|
2717
|
-
handleTooltipDetailsLeave:
|
|
2716
|
+
handleTooltipDetailsHover: B,
|
|
2717
|
+
handleTooltipDetailsLeave: A,
|
|
2718
2718
|
comparisonTooltip: J,
|
|
2719
2719
|
datalabels: k,
|
|
2720
2720
|
xCfg: V,
|
|
@@ -2819,13 +2819,13 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
2819
2819
|
"model-value": i(h),
|
|
2820
2820
|
"details-payload": i(L),
|
|
2821
2821
|
"onUpdate:modelValue": i(I),
|
|
2822
|
-
onValueHover: i(
|
|
2823
|
-
onValueLeave: i(
|
|
2822
|
+
onValueHover: i(B),
|
|
2823
|
+
onValueLeave: i(A)
|
|
2824
2824
|
}, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
|
|
2825
2825
|
], 64);
|
|
2826
2826
|
};
|
|
2827
2827
|
}
|
|
2828
|
-
}), al = { class: "widget-content" }, rl = /* @__PURE__ */
|
|
2828
|
+
}), al = { class: "widget-content" }, rl = /* @__PURE__ */ Be({
|
|
2829
2829
|
__name: "WidgetCircular",
|
|
2830
2830
|
props: /* @__PURE__ */ Oe({
|
|
2831
2831
|
tileIndex: {}
|
|
@@ -2876,7 +2876,7 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
2876
2876
|
var _;
|
|
2877
2877
|
const V = (_ = l.value.labels) == null ? void 0 : _.color;
|
|
2878
2878
|
return typeof V == "string" && V.trim().length > 0 ? V : t.value.legendColor ?? "#6b6b6b";
|
|
2879
|
-
}),
|
|
2879
|
+
}), B = c(() => m.value), A = c(() => ({
|
|
2880
2880
|
display: !1
|
|
2881
2881
|
})), J = $a();
|
|
2882
2882
|
function k({ itemIndex: V }) {
|
|
@@ -2903,7 +2903,7 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
2903
2903
|
enabled: W.value,
|
|
2904
2904
|
position: v.value,
|
|
2905
2905
|
"text-color": I.value,
|
|
2906
|
-
"font-size":
|
|
2906
|
+
"font-size": B.value,
|
|
2907
2907
|
"legend-update-key": f.value,
|
|
2908
2908
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
2909
2909
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -2923,7 +2923,7 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
2923
2923
|
metrics: u.value,
|
|
2924
2924
|
tooltip: i(J),
|
|
2925
2925
|
variant: "doughnut",
|
|
2926
|
-
legend:
|
|
2926
|
+
legend: A.value,
|
|
2927
2927
|
datalabels: i(r),
|
|
2928
2928
|
"maintain-aspect-ratio": !1
|
|
2929
2929
|
}, null, 8, ["datasets", "metrics", "tooltip", "legend", "datalabels"]),
|
|
@@ -2933,7 +2933,7 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
2933
2933
|
enabled: W.value,
|
|
2934
2934
|
position: v.value,
|
|
2935
2935
|
"text-color": I.value,
|
|
2936
|
-
"font-size":
|
|
2936
|
+
"font-size": B.value,
|
|
2937
2937
|
"legend-update-key": f.value,
|
|
2938
2938
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
2939
2939
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -2951,7 +2951,7 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
2951
2951
|
}), ll = { class: "h-full flex flex-col gap-2 justify-end" }, sl = { class: "flex flex-wrap gap-x-4 gap-y-2" }, il = { class: "flex items-center gap-1" }, ul = ["title"], cl = { class: "fm-typo-en-body-lg-600" }, dl = {
|
|
2952
2952
|
class: "flex w-full h-3 shrink-0 rounded-full overflow-hidden",
|
|
2953
2953
|
style: { "background-color": "#f2f2f7" }
|
|
2954
|
-
}, fl = /* @__PURE__ */
|
|
2954
|
+
}, fl = /* @__PURE__ */ Be({
|
|
2955
2955
|
__name: "ScorecardStackedBar",
|
|
2956
2956
|
props: {
|
|
2957
2957
|
dimensions: {},
|
|
@@ -3007,7 +3007,7 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
3007
3007
|
}, _l = {
|
|
3008
3008
|
key: 2,
|
|
3009
3009
|
class: "mt-2"
|
|
3010
|
-
}, Sl = /* @__PURE__ */
|
|
3010
|
+
}, Sl = /* @__PURE__ */ Be({
|
|
3011
3011
|
__name: "WidgetScorecard",
|
|
3012
3012
|
props: {
|
|
3013
3013
|
modelValue: { required: !0 },
|
|
@@ -3040,14 +3040,14 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
3040
3040
|
() => v.value || n("report.widget.scorecardProgress.emptyValue")
|
|
3041
3041
|
), I = c(
|
|
3042
3042
|
() => n("report.widget.scorecardProgress.remaining", {
|
|
3043
|
-
value:
|
|
3043
|
+
value: B.value || n("report.widget.scorecardProgress.emptyValue")
|
|
3044
3044
|
})
|
|
3045
|
-
),
|
|
3045
|
+
), B = c(() => {
|
|
3046
3046
|
const O = D(l.value), j = m.value;
|
|
3047
3047
|
return !Number.isFinite(O) || j == null || j <= 0 ? "" : dt(Math.max(j - O, 0));
|
|
3048
|
-
}),
|
|
3048
|
+
}), A = c(() => {
|
|
3049
3049
|
const { data: O } = t.value;
|
|
3050
|
-
return O != null && O.comparison ?
|
|
3050
|
+
return O != null && O.comparison ? Bo(l.value, O.comparison, r) : null;
|
|
3051
3051
|
});
|
|
3052
3052
|
function J(O) {
|
|
3053
3053
|
switch (O) {
|
|
@@ -3085,7 +3085,7 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
3085
3085
|
Y("p", pl, Ce(u.value), 1),
|
|
3086
3086
|
Y("div", hl, [
|
|
3087
3087
|
pe(y, {
|
|
3088
|
-
disabled:
|
|
3088
|
+
disabled: A.value === null,
|
|
3089
3089
|
placement: "right",
|
|
3090
3090
|
"hide-arrow": "",
|
|
3091
3091
|
variant: "rich"
|
|
@@ -3097,25 +3097,25 @@ const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /*
|
|
|
3097
3097
|
];
|
|
3098
3098
|
}),
|
|
3099
3099
|
default: De(() => [
|
|
3100
|
-
|
|
3100
|
+
A.value ? (K(), de(F, {
|
|
3101
3101
|
key: 0,
|
|
3102
|
-
icon:
|
|
3103
|
-
class: Ie(`bg-${
|
|
3102
|
+
icon: A.value.icon.name,
|
|
3103
|
+
class: Ie(`bg-${A.value.icon.tailwind}`),
|
|
3104
3104
|
compact: ""
|
|
3105
3105
|
}, {
|
|
3106
3106
|
default: De(() => [
|
|
3107
3107
|
pe(G, {
|
|
3108
|
-
name:
|
|
3109
|
-
color:
|
|
3108
|
+
name: A.value.icon.name,
|
|
3109
|
+
color: A.value.icon.color
|
|
3110
3110
|
}, null, 8, ["name", "color"]),
|
|
3111
3111
|
Y("p", {
|
|
3112
3112
|
class: "fm-typo-en-body-md-600",
|
|
3113
|
-
style: Pe({ color:
|
|
3114
|
-
}, Ce(
|
|
3113
|
+
style: Pe({ color: A.value.icon.color })
|
|
3114
|
+
}, Ce(A.value.value), 5)
|
|
3115
3115
|
]),
|
|
3116
3116
|
_: 1
|
|
3117
3117
|
}, 8, ["icon", "class"])) : he("", !0),
|
|
3118
|
-
i(o).endDate != null && i(o).startDate != null &&
|
|
3118
|
+
i(o).endDate != null && i(o).startDate != null && A.value === null ? (K(), de(F, {
|
|
3119
3119
|
key: 1,
|
|
3120
3120
|
class: "invisible pointer-events-none",
|
|
3121
3121
|
"aria-hidden": "true",
|
|
@@ -3205,10 +3205,10 @@ function Tl(e, t) {
|
|
|
3205
3205
|
const n = fe("FmMenuDivider");
|
|
3206
3206
|
return K(), de(n);
|
|
3207
3207
|
}
|
|
3208
|
-
const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableData.worker-
|
|
3208
|
+
const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableData.worker-KnOy0AZ-.js", Il = { class: "flex h-full flex-col" }, Pl = { class: "my-4 shrink-0" }, Ml = {
|
|
3209
3209
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
3210
3210
|
style: { backgroundColor: "#f9f9f9" }
|
|
3211
|
-
},
|
|
3211
|
+
}, Al = { class: "font-bold" }, Bl = { class: "text-fm-color-neutral-gray-300" }, Fl = /* @__PURE__ */ Be({
|
|
3212
3212
|
__name: "WidgetTable",
|
|
3213
3213
|
props: /* @__PURE__ */ Oe({
|
|
3214
3214
|
tileIndex: {}
|
|
@@ -3240,7 +3240,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3240
3240
|
if (!(!b || b <= 0))
|
|
3241
3241
|
return `${b}px`;
|
|
3242
3242
|
}
|
|
3243
|
-
function
|
|
3243
|
+
function B(y) {
|
|
3244
3244
|
const b = I(y);
|
|
3245
3245
|
if (b)
|
|
3246
3246
|
return {
|
|
@@ -3250,13 +3250,13 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3250
3250
|
maxWidth: b
|
|
3251
3251
|
};
|
|
3252
3252
|
}
|
|
3253
|
-
const
|
|
3253
|
+
const A = c(() => o.value.filterText), J = c(() => {
|
|
3254
3254
|
var b;
|
|
3255
3255
|
const y = (b = o.value.grandTotalLabel) == null ? void 0 : b.trim();
|
|
3256
3256
|
return y && y.length > 0 ? y : ut(t, n, "Grand total", "other");
|
|
3257
3257
|
}), k = c(() => {
|
|
3258
3258
|
var y, b;
|
|
3259
|
-
if (!(
|
|
3259
|
+
if (!(A.value && A.value.trim().length > 0 || !((y = C.value[0]) != null && y.isRollup) && !((b = C.value[C.value.length - 1]) != null && b.isRollup))) {
|
|
3260
3260
|
if (o.value.rollupPosition === Ge.top || o.value.rollupPosition === void 0)
|
|
3261
3261
|
return Ge.top;
|
|
3262
3262
|
if (o.value.rollupPosition === Ge.bottom)
|
|
@@ -3299,7 +3299,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3299
3299
|
} : (b.includes("#") && !b.startsWith("#") && (b = b.split("#")[0]), {
|
|
3300
3300
|
main: b,
|
|
3301
3301
|
comparison: y == null ? void 0 : y.comparison,
|
|
3302
|
-
difference:
|
|
3302
|
+
difference: Bo(y.main, y.comparison, i(a))
|
|
3303
3303
|
});
|
|
3304
3304
|
}
|
|
3305
3305
|
zt(() => {
|
|
@@ -3324,7 +3324,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3324
3324
|
})), T = {
|
|
3325
3325
|
rows: b,
|
|
3326
3326
|
columns: R,
|
|
3327
|
-
filter:
|
|
3327
|
+
filter: A.value ?? "",
|
|
3328
3328
|
globalSorts: ca(m.value).map((z) => ({
|
|
3329
3329
|
key: z.key,
|
|
3330
3330
|
type: z.type
|
|
@@ -3349,7 +3349,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3349
3349
|
return JSON.stringify({
|
|
3350
3350
|
rowsLength: y.length,
|
|
3351
3351
|
columns: b.map((M) => ({ key: M.key, type: M.type, label: M.label })),
|
|
3352
|
-
filter:
|
|
3352
|
+
filter: A.value ?? "",
|
|
3353
3353
|
globalSorts: m.value.map((M) => ({ key: M.key, type: M.type })),
|
|
3354
3354
|
grandTotalPosition: k.value,
|
|
3355
3355
|
pageSize: V.value
|
|
@@ -3365,15 +3365,15 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3365
3365
|
function G(y) {
|
|
3366
3366
|
const b = m.value.find((R) => R.key === y);
|
|
3367
3367
|
if (!b) {
|
|
3368
|
-
m.value.push({ key: y, type:
|
|
3368
|
+
m.value.push({ key: y, type: At.Asc });
|
|
3369
3369
|
return;
|
|
3370
3370
|
}
|
|
3371
|
-
b.type ===
|
|
3371
|
+
b.type === At.Asc ? b.type = At.Desc : b.type === At.Desc && (m.value = m.value.filter((R) => R.key !== y));
|
|
3372
3372
|
}
|
|
3373
3373
|
const F = c(() => {
|
|
3374
3374
|
var y;
|
|
3375
3375
|
return (y = o.value.data) != null && y.columns ? o.value.data.columns.map((b, R) => {
|
|
3376
|
-
const T = ut(t, n, b.label, "other"), M = m.value.find((H) => H.key === b.key), z = !!M, re =
|
|
3376
|
+
const T = ut(t, n, b.label, "other"), M = m.value.find((H) => H.key === b.key), z = !!M, re = B(b.key), se = z ? M.type === At.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
|
|
3377
3377
|
return {
|
|
3378
3378
|
accessorKey: b.key,
|
|
3379
3379
|
header: () => {
|
|
@@ -3434,7 +3434,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3434
3434
|
ref: D,
|
|
3435
3435
|
"column-defs": F.value,
|
|
3436
3436
|
"row-data": x.value,
|
|
3437
|
-
"search-value":
|
|
3437
|
+
"search-value": A.value,
|
|
3438
3438
|
"page-size": V.value,
|
|
3439
3439
|
"shrink-at": !1,
|
|
3440
3440
|
"force-mobile-footer": !0,
|
|
@@ -3455,7 +3455,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3455
3455
|
class: "text-fm-color-typo-primary px-16",
|
|
3456
3456
|
style: Pe({
|
|
3457
3457
|
...L(),
|
|
3458
|
-
...
|
|
3458
|
+
...B((z = W.value[M]) == null ? void 0 : z.key)
|
|
3459
3459
|
})
|
|
3460
3460
|
}, [
|
|
3461
3461
|
Y("span", {
|
|
@@ -3467,8 +3467,8 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3467
3467
|
]),
|
|
3468
3468
|
style: Pe(L())
|
|
3469
3469
|
}, [
|
|
3470
|
-
Y("p",
|
|
3471
|
-
Y("p",
|
|
3470
|
+
Y("p", Al, Ce(T.rowType === "NUMERIC" ? i(dt)(T.main) : T.main), 1),
|
|
3471
|
+
Y("p", Bl, Ce(T.comparison ? T.rowType === "NUMERIC" ? `(${i(dt)(T.comparison)})` : `(${T.comparison})` : ""), 1)
|
|
3472
3472
|
], 6)
|
|
3473
3473
|
], 4);
|
|
3474
3474
|
}), 128))
|
|
@@ -3483,7 +3483,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3483
3483
|
]);
|
|
3484
3484
|
};
|
|
3485
3485
|
}
|
|
3486
|
-
}), Rl = { class: "widget-content" }, Vl = /* @__PURE__ */
|
|
3486
|
+
}), Rl = { class: "widget-content" }, Vl = /* @__PURE__ */ Be({
|
|
3487
3487
|
__name: "WidgetStackBarChart",
|
|
3488
3488
|
props: /* @__PURE__ */ Oe({
|
|
3489
3489
|
tileIndex: {}
|
|
@@ -3531,12 +3531,12 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3531
3531
|
const re = Wt({
|
|
3532
3532
|
datasets: u.value,
|
|
3533
3533
|
datasetIndex: z
|
|
3534
|
-
}), se = l.value ? Et(u.value, re) : re, H =
|
|
3534
|
+
}), se = l.value ? Et(u.value, re) : re, H = Ae({
|
|
3535
3535
|
datasetIndex: se,
|
|
3536
3536
|
isCompare: !1,
|
|
3537
3537
|
metricCount: t.value.metricCount,
|
|
3538
3538
|
mode: t.value.chartColorBinding
|
|
3539
|
-
}), Z =
|
|
3539
|
+
}), Z = Ae({
|
|
3540
3540
|
datasetIndex: se,
|
|
3541
3541
|
isCompare: !1,
|
|
3542
3542
|
metricCount: t.value.metricCount,
|
|
@@ -3583,8 +3583,8 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3583
3583
|
return [];
|
|
3584
3584
|
}), {
|
|
3585
3585
|
isTooltipDetailsSheetOpen: I,
|
|
3586
|
-
tooltipDetailsPayload:
|
|
3587
|
-
handleTooltipDetailsSheetVisibility:
|
|
3586
|
+
tooltipDetailsPayload: B,
|
|
3587
|
+
handleTooltipDetailsSheetVisibility: A,
|
|
3588
3588
|
handleTooltipDetailsHover: J,
|
|
3589
3589
|
handleTooltipDetailsLeave: k,
|
|
3590
3590
|
comparisonTooltip: V,
|
|
@@ -3670,15 +3670,15 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3670
3670
|
]),
|
|
3671
3671
|
pe(Kt, {
|
|
3672
3672
|
"model-value": i(I),
|
|
3673
|
-
"details-payload": i(
|
|
3674
|
-
"onUpdate:modelValue": i(
|
|
3673
|
+
"details-payload": i(B),
|
|
3674
|
+
"onUpdate:modelValue": i(A),
|
|
3675
3675
|
onValueHover: i(J),
|
|
3676
3676
|
onValueLeave: i(k)
|
|
3677
3677
|
}, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
|
|
3678
3678
|
], 64);
|
|
3679
3679
|
};
|
|
3680
3680
|
}
|
|
3681
|
-
}), Nl = { class: "widget-content" }, Sn = 1, bo = "rgba(0, 0, 0, 0)", $l = /* @__PURE__ */
|
|
3681
|
+
}), Nl = { class: "widget-content" }, Sn = 1, bo = "rgba(0, 0, 0, 0)", $l = /* @__PURE__ */ Be({
|
|
3682
3682
|
__name: "WidgetClusteredStackBarchart",
|
|
3683
3683
|
props: /* @__PURE__ */ Oe({
|
|
3684
3684
|
tileIndex: {}
|
|
@@ -3735,7 +3735,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3735
3735
|
const te = t.value.chartColorBinding === xe.metric ? Z : H, ie = (ye = t.value.chartColorLayers) == null ? void 0 : ye[te], me = Number(ie);
|
|
3736
3736
|
return Number.isInteger(me) && me > 0 ? me : te + 1;
|
|
3737
3737
|
}
|
|
3738
|
-
function
|
|
3738
|
+
function B(H) {
|
|
3739
3739
|
return {
|
|
3740
3740
|
label: `__comparison_gap__${H}`,
|
|
3741
3741
|
tooltipLabel: `__comparison_gap__${H}`,
|
|
@@ -3749,7 +3749,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3749
3749
|
isSpacer: !0
|
|
3750
3750
|
};
|
|
3751
3751
|
}
|
|
3752
|
-
const
|
|
3752
|
+
const A = c(() => {
|
|
3753
3753
|
if (r.value.length === 0)
|
|
3754
3754
|
return [];
|
|
3755
3755
|
const H = u.value.map((ne, we) => ({
|
|
@@ -3771,12 +3771,12 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3771
3771
|
}), _e = l.value ? Et(u.value, we) : we, Se = Do({
|
|
3772
3772
|
datasets: u.value,
|
|
3773
3773
|
datasetIndex: ne.index
|
|
3774
|
-
}), Ze =
|
|
3774
|
+
}), Ze = Ae({
|
|
3775
3775
|
datasetIndex: _e,
|
|
3776
3776
|
isCompare: !1,
|
|
3777
3777
|
metricCount: t.value.metricCount,
|
|
3778
3778
|
mode: t.value.chartColorBinding
|
|
3779
|
-
}), { clusterKey: Fe, metricLabel: at } = h(ne.name), pt = ((st = H[Se]) == null ? void 0 : st.name) ?? ne.name, { clusterKey: Lt, metricLabel: ht } = h(pt), gt =
|
|
3779
|
+
}), { clusterKey: Fe, metricLabel: at } = h(ne.name), pt = ((st = H[Se]) == null ? void 0 : st.name) ?? ne.name, { clusterKey: Lt, metricLabel: ht } = h(pt), gt = Ae({
|
|
3780
3780
|
datasetIndex: _e,
|
|
3781
3781
|
isCompare: !1,
|
|
3782
3782
|
metricCount: ie,
|
|
@@ -3835,7 +3835,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3835
3835
|
} = Xt({
|
|
3836
3836
|
chartRef: n,
|
|
3837
3837
|
model: t,
|
|
3838
|
-
baseDatasets:
|
|
3838
|
+
baseDatasets: A
|
|
3839
3839
|
}), re = c(() => {
|
|
3840
3840
|
if (!W.value)
|
|
3841
3841
|
return z.value;
|
|
@@ -3846,7 +3846,7 @@ const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableD
|
|
|
3846
3846
|
barPercentage: Sn
|
|
3847
3847
|
});
|
|
3848
3848
|
const ie = z.value[te + 1];
|
|
3849
|
-
Z.dash === !0 && ie && H.push(
|
|
3849
|
+
Z.dash === !0 && ie && H.push(B(te));
|
|
3850
3850
|
}), H;
|
|
3851
3851
|
}), se = c(() => ({
|
|
3852
3852
|
display: !1,
|
|
@@ -3947,7 +3947,7 @@ function Eo(e = "report-line-style-plugin") {
|
|
|
3947
3947
|
}
|
|
3948
3948
|
};
|
|
3949
3949
|
}
|
|
3950
|
-
const Hl = { class: "widget-content" }, Wl = /* @__PURE__ */
|
|
3950
|
+
const Hl = { class: "widget-content" }, Wl = /* @__PURE__ */ Be({
|
|
3951
3951
|
__name: "WidgetStackLineChart",
|
|
3952
3952
|
props: /* @__PURE__ */ Oe({
|
|
3953
3953
|
tileIndex: {}
|
|
@@ -3980,17 +3980,17 @@ const Hl = { class: "widget-content" }, Wl = /* @__PURE__ */ Ae({
|
|
|
3980
3980
|
}), M = r.value ? Et(l.value, T) : T;
|
|
3981
3981
|
let z = b.values;
|
|
3982
3982
|
u.value && (z = [NaN, z[0], NaN]);
|
|
3983
|
-
const re = Yt(z), se =
|
|
3983
|
+
const re = Yt(z), se = Ae({
|
|
3984
3984
|
datasetIndex: M,
|
|
3985
3985
|
isCompare: !1,
|
|
3986
3986
|
metricCount: t.value.metricCount,
|
|
3987
3987
|
mode: t.value.chartColorBinding
|
|
3988
|
-
}), H =
|
|
3988
|
+
}), H = Ae({
|
|
3989
3989
|
datasetIndex: M,
|
|
3990
3990
|
isCompare: !1,
|
|
3991
3991
|
metricCount: t.value.metricCount,
|
|
3992
3992
|
mode: xe.metric
|
|
3993
|
-
}), Z =
|
|
3993
|
+
}), Z = Ae({
|
|
3994
3994
|
datasetIndex: R,
|
|
3995
3995
|
isCompare: b.isCompare,
|
|
3996
3996
|
metricCount: t.value.metricCount,
|
|
@@ -4029,8 +4029,8 @@ const Hl = { class: "widget-content" }, Wl = /* @__PURE__ */ Ae({
|
|
|
4029
4029
|
isTooltipDetailsSheetOpen: h,
|
|
4030
4030
|
tooltipDetailsPayload: L,
|
|
4031
4031
|
handleTooltipDetailsSheetVisibility: I,
|
|
4032
|
-
handleTooltipDetailsHover:
|
|
4033
|
-
handleTooltipDetailsLeave:
|
|
4032
|
+
handleTooltipDetailsHover: B,
|
|
4033
|
+
handleTooltipDetailsLeave: A,
|
|
4034
4034
|
comparisonTooltip: J,
|
|
4035
4035
|
datalabels: k,
|
|
4036
4036
|
xCfg: V,
|
|
@@ -4116,8 +4116,8 @@ const Hl = { class: "widget-content" }, Wl = /* @__PURE__ */ Ae({
|
|
|
4116
4116
|
"model-value": i(h),
|
|
4117
4117
|
"details-payload": i(L),
|
|
4118
4118
|
"onUpdate:modelValue": i(I),
|
|
4119
|
-
onValueHover: i(
|
|
4120
|
-
onValueLeave: i(
|
|
4119
|
+
onValueHover: i(B),
|
|
4120
|
+
onValueLeave: i(A)
|
|
4121
4121
|
}, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
|
|
4122
4122
|
], 64);
|
|
4123
4123
|
};
|
|
@@ -4142,7 +4142,7 @@ function ks(e) {
|
|
|
4142
4142
|
return "";
|
|
4143
4143
|
}
|
|
4144
4144
|
}
|
|
4145
|
-
const Ul = ["src"], Kl = /* @__PURE__ */
|
|
4145
|
+
const Ul = ["src"], Kl = /* @__PURE__ */ Be({
|
|
4146
4146
|
__name: "TitleIcon",
|
|
4147
4147
|
props: {
|
|
4148
4148
|
icon: {},
|
|
@@ -4152,11 +4152,11 @@ const Ul = ["src"], Kl = /* @__PURE__ */ Ae({
|
|
|
4152
4152
|
setup(e) {
|
|
4153
4153
|
const t = e, n = c(
|
|
4154
4154
|
() => ({
|
|
4155
|
-
[
|
|
4156
|
-
[
|
|
4157
|
-
[
|
|
4158
|
-
[
|
|
4159
|
-
})[t.size ??
|
|
4155
|
+
[Bt.Small]: 16,
|
|
4156
|
+
[Bt.Medium]: 20,
|
|
4157
|
+
[Bt.Large]: 24,
|
|
4158
|
+
[Bt.ExtraLarge]: 32
|
|
4159
|
+
})[t.size ?? Bt.Small]
|
|
4160
4160
|
), o = c(
|
|
4161
4161
|
() => t.type ?? (t.icon.trim().startsWith("<svg") ? on.Custom : on.Material)
|
|
4162
4162
|
), a = c(() => o.value !== on.Custom || !t.icon.trim() ? "" : qo(t.icon) ? t.icon : Ol(t.icon));
|
|
@@ -4214,7 +4214,7 @@ const Jl = 150, Zl = 200;
|
|
|
4214
4214
|
function Ql(e, t) {
|
|
4215
4215
|
return (t === "SCORECARD" ? Zl : Jl) * e;
|
|
4216
4216
|
}
|
|
4217
|
-
const es = { class: "widget-content" }, ts = /* @__PURE__ */
|
|
4217
|
+
const es = { class: "widget-content" }, ts = /* @__PURE__ */ Be({
|
|
4218
4218
|
__name: "WidgetLinechart",
|
|
4219
4219
|
props: /* @__PURE__ */ Oe({
|
|
4220
4220
|
tileIndex: {}
|
|
@@ -4244,12 +4244,12 @@ const es = { class: "widget-content" }, ts = /* @__PURE__ */ Ae({
|
|
|
4244
4244
|
const M = Wt({
|
|
4245
4245
|
datasets: l.value,
|
|
4246
4246
|
datasetIndex: T
|
|
4247
|
-
}), z = r.value ? Et(l.value, M) : M, re =
|
|
4247
|
+
}), z = r.value ? Et(l.value, M) : M, re = Ae({
|
|
4248
4248
|
datasetIndex: z,
|
|
4249
4249
|
isCompare: !1,
|
|
4250
4250
|
metricCount: t.value.metricCount,
|
|
4251
4251
|
mode: t.value.chartColorBinding
|
|
4252
|
-
}), se =
|
|
4252
|
+
}), se = Ae({
|
|
4253
4253
|
datasetIndex: z,
|
|
4254
4254
|
isCompare: !1,
|
|
4255
4255
|
metricCount: t.value.metricCount,
|
|
@@ -4274,7 +4274,7 @@ const es = { class: "widget-content" }, ts = /* @__PURE__ */ Ae({
|
|
|
4274
4274
|
u.value ? me = l.value.map(
|
|
4275
4275
|
(Ze, Fe) => Fe === T ? R.values[0] : NaN
|
|
4276
4276
|
) : f.value && (me = [NaN, me[0], NaN]);
|
|
4277
|
-
const ye = Yt(me), ne = f.value || u.value, we =
|
|
4277
|
+
const ye = Yt(me), ne = f.value || u.value, we = Ae({
|
|
4278
4278
|
datasetIndex: T,
|
|
4279
4279
|
isCompare: R.isCompare,
|
|
4280
4280
|
metricCount: t.value.metricCount,
|
|
@@ -4297,8 +4297,8 @@ const es = { class: "widget-content" }, ts = /* @__PURE__ */ Ae({
|
|
|
4297
4297
|
] : []), {
|
|
4298
4298
|
isTooltipDetailsSheetOpen: L,
|
|
4299
4299
|
tooltipDetailsPayload: I,
|
|
4300
|
-
handleTooltipDetailsSheetVisibility:
|
|
4301
|
-
handleTooltipDetailsHover:
|
|
4300
|
+
handleTooltipDetailsSheetVisibility: B,
|
|
4301
|
+
handleTooltipDetailsHover: A,
|
|
4302
4302
|
handleTooltipDetailsLeave: J,
|
|
4303
4303
|
comparisonTooltip: k,
|
|
4304
4304
|
datalabels: V,
|
|
@@ -4383,14 +4383,14 @@ const es = { class: "widget-content" }, ts = /* @__PURE__ */ Ae({
|
|
|
4383
4383
|
pe(Kt, {
|
|
4384
4384
|
"model-value": i(L),
|
|
4385
4385
|
"details-payload": i(I),
|
|
4386
|
-
"onUpdate:modelValue": i(
|
|
4387
|
-
onValueHover: i(
|
|
4386
|
+
"onUpdate:modelValue": i(B),
|
|
4387
|
+
onValueHover: i(A),
|
|
4388
4388
|
onValueLeave: i(J)
|
|
4389
4389
|
}, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
|
|
4390
4390
|
], 64);
|
|
4391
4391
|
};
|
|
4392
4392
|
}
|
|
4393
|
-
}), ns = { class: "flex flex-col gap-16" }, os = { class: "flex flex-row" }, as = /* @__PURE__ */
|
|
4393
|
+
}), ns = { class: "flex flex-col gap-16" }, os = { class: "flex flex-row" }, as = /* @__PURE__ */ Be({
|
|
4394
4394
|
__name: "PdfOrientationDialog",
|
|
4395
4395
|
props: /* @__PURE__ */ Oe({
|
|
4396
4396
|
reportType: {},
|
|
@@ -4425,7 +4425,7 @@ const es = { class: "widget-content" }, ts = /* @__PURE__ */ Ae({
|
|
|
4425
4425
|
}
|
|
4426
4426
|
}
|
|
4427
4427
|
return (L, I) => {
|
|
4428
|
-
const
|
|
4428
|
+
const B = fe("FmRadio"), A = fe("FmRadioGroup"), J = fe("FmButton"), k = fe("FmDialog");
|
|
4429
4429
|
return K(), de(k, {
|
|
4430
4430
|
modelValue: r.value,
|
|
4431
4431
|
"onUpdate:modelValue": I[2] || (I[2] = (V) => r.value = V),
|
|
@@ -4443,16 +4443,16 @@ const es = { class: "widget-content" }, ts = /* @__PURE__ */ Ae({
|
|
|
4443
4443
|
}, {
|
|
4444
4444
|
default: De(() => [
|
|
4445
4445
|
Y("div", ns, [
|
|
4446
|
-
pe(
|
|
4446
|
+
pe(A, {
|
|
4447
4447
|
modelValue: C.value,
|
|
4448
4448
|
"onUpdate:modelValue": I[0] || (I[0] = (V) => C.value = V)
|
|
4449
4449
|
}, {
|
|
4450
4450
|
default: De(() => [
|
|
4451
|
-
pe(
|
|
4451
|
+
pe(B, {
|
|
4452
4452
|
value: i(xn).PORTRAIT,
|
|
4453
4453
|
label: i(t)("report.common.portrait")
|
|
4454
4454
|
}, null, 8, ["value", "label"]),
|
|
4455
|
-
pe(
|
|
4455
|
+
pe(B, {
|
|
4456
4456
|
value: i(xn).LANDSCAPE,
|
|
4457
4457
|
label: i(t)("report.common.landscape")
|
|
4458
4458
|
}, null, 8, ["value", "label"])
|
|
@@ -4530,7 +4530,7 @@ function rs(e) {
|
|
|
4530
4530
|
pointer-events: auto;
|
|
4531
4531
|
`;
|
|
4532
4532
|
const S = u.cloneNode(!0);
|
|
4533
|
-
S.style.cssText = "pointer-events: auto;", h(u, S), _.appendChild(S), r.appendChild(_), document.body.appendChild(r),
|
|
4533
|
+
S.style.cssText = "pointer-events: auto;", h(u, S), _.appendChild(S), r.appendChild(_), document.body.appendChild(r), B(), A(), J(), I();
|
|
4534
4534
|
}
|
|
4535
4535
|
function h(_, S) {
|
|
4536
4536
|
const x = _.querySelectorAll("th, td"), $ = S.querySelectorAll("th, td");
|
|
@@ -4596,7 +4596,7 @@ function rs(e) {
|
|
|
4596
4596
|
const M = r.querySelector("table");
|
|
4597
4597
|
M && (M.style.width = `${l.offsetWidth}px`, M.style.marginLeft = `${x.left - b}px`);
|
|
4598
4598
|
}
|
|
4599
|
-
function
|
|
4599
|
+
function B() {
|
|
4600
4600
|
var S;
|
|
4601
4601
|
m = () => requestAnimationFrame(I), window.addEventListener("scroll", m, { passive: !0 }), C().forEach((x) => {
|
|
4602
4602
|
m && x.addEventListener("scroll", m, { passive: !0 });
|
|
@@ -4605,7 +4605,7 @@ function rs(e) {
|
|
|
4605
4605
|
for (; _; )
|
|
4606
4606
|
_ !== document.body && (_.scrollHeight > _.clientHeight || _.scrollWidth > _.clientWidth) && _.addEventListener("scroll", m, { passive: !0 }), _ = _.parentElement;
|
|
4607
4607
|
}
|
|
4608
|
-
function
|
|
4608
|
+
function A() {
|
|
4609
4609
|
f = new ResizeObserver(() => {
|
|
4610
4610
|
if (u && r) {
|
|
4611
4611
|
const _ = r.querySelector("thead");
|
|
@@ -4737,7 +4737,7 @@ function ss(e) {
|
|
|
4737
4737
|
return "option" in e && e.option && t.push(e.option), "aggregation" in e && e.aggregation && t.push(e.aggregation), t.push(e.label.replace(/[^\p{L}\p{N}_]+/gu, "")), t.join("_").toLowerCase();
|
|
4738
4738
|
}
|
|
4739
4739
|
function is(e, t, n = []) {
|
|
4740
|
-
var h, L, I,
|
|
4740
|
+
var h, L, I, B, A, J;
|
|
4741
4741
|
if (!e || !Array.isArray(e.columns) || !Array.isArray(e.rows))
|
|
4742
4742
|
return [];
|
|
4743
4743
|
const o = (k) => k.schemaName === t.schemaName && k.name === t.name && (t.option ? k.option === t.option : !0), a = n.findIndex(o);
|
|
@@ -4770,7 +4770,7 @@ function is(e, t, n = []) {
|
|
|
4770
4770
|
},
|
|
4771
4771
|
[]
|
|
4772
4772
|
).indexOf(u), v = C >= 0 ? D[C] ?? -1 : String(
|
|
4773
|
-
((
|
|
4773
|
+
((B = (I = e.columns) == null ? void 0 : I[u]) == null ? void 0 : B.type) ?? ((J = (A = e.columns) == null ? void 0 : A[u]) == null ? void 0 : J.dataType) ?? ""
|
|
4774
4774
|
).toUpperCase() === "STRING" ? u : -1;
|
|
4775
4775
|
return v === -1 ? [] : l.map((k) => {
|
|
4776
4776
|
var V;
|
|
@@ -4789,7 +4789,7 @@ const us = {
|
|
|
4789
4789
|
}, fs = {
|
|
4790
4790
|
key: 2,
|
|
4791
4791
|
class: "flex"
|
|
4792
|
-
}, Ds = /* @__PURE__ */
|
|
4792
|
+
}, Ds = /* @__PURE__ */ Be({
|
|
4793
4793
|
__name: "DynamicWidget",
|
|
4794
4794
|
props: /* @__PURE__ */ Oe({
|
|
4795
4795
|
reportId: {
|
|
@@ -4835,7 +4835,7 @@ const us = {
|
|
|
4835
4835
|
}), { refresh: v } = rs({
|
|
4836
4836
|
containerRef: C,
|
|
4837
4837
|
isTable: W
|
|
4838
|
-
}), h = P(r.rollup), L = P(Rt()), I = P(r.drillDimension),
|
|
4838
|
+
}), h = P(r.rollup), L = P(Rt()), I = P(r.drillDimension), B = c(() => {
|
|
4839
4839
|
if (Me.value.length > 0) {
|
|
4840
4840
|
const w = Me.value.findIndex(
|
|
4841
4841
|
(ue) => ue.value === I.value
|
|
@@ -4843,8 +4843,8 @@ const us = {
|
|
|
4843
4843
|
return w >= 0 ? w : 0;
|
|
4844
4844
|
} else
|
|
4845
4845
|
return -1;
|
|
4846
|
-
}),
|
|
4847
|
-
() =>
|
|
4846
|
+
}), A = c(() => B.value !== 0), J = c(
|
|
4847
|
+
() => B.value != Me.value.length - 1
|
|
4848
4848
|
), k = P(r.showTitle ?? !0), V = P(r.titleFontSize ?? 14), _ = P(r.titleBold ?? !1), S = P(r.titleItalic ?? !1), x = P(r.titleUnderline ?? !1), $ = P(
|
|
4849
4849
|
Array.isArray(r.chartColors) ? [...r.chartColors] : void 0
|
|
4850
4850
|
), q = P(
|
|
@@ -5151,11 +5151,11 @@ const us = {
|
|
|
5151
5151
|
return `${Ql(o.value.size.height, o.value.widget.type)}px`;
|
|
5152
5152
|
}
|
|
5153
5153
|
function Jo() {
|
|
5154
|
-
const w =
|
|
5154
|
+
const w = B.value - 1;
|
|
5155
5155
|
w >= 0 && (I.value = Me.value[w].value);
|
|
5156
5156
|
}
|
|
5157
5157
|
function Zo() {
|
|
5158
|
-
const w =
|
|
5158
|
+
const w = B.value + 1;
|
|
5159
5159
|
w >= 0 && w < Me.value.length && (I.value = Me.value[w].value);
|
|
5160
5160
|
}
|
|
5161
5161
|
const qn = P(bt.EXCEL), Gn = P(), Qo = Object.values(bt).map((w) => ({
|
|
@@ -5255,7 +5255,7 @@ const us = {
|
|
|
5255
5255
|
pe(nt, {
|
|
5256
5256
|
icon: "arrow_upward",
|
|
5257
5257
|
variant: "tertiary",
|
|
5258
|
-
disabled: !
|
|
5258
|
+
disabled: !A.value,
|
|
5259
5259
|
onClick: Jo
|
|
5260
5260
|
}, null, 8, ["disabled"]),
|
|
5261
5261
|
pe(nt, {
|