@feedmepos/mf-report 5.22.28 → 5.22.29
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-Bz8yPA7U.js → App-B8x2luSi.js} +4 -4
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-D8QgSQ8z.js → BaseDialog.vue_vue_type_script_setup_true_lang-B6JA_9JY.js} +2 -2
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-CrzsCG-f.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BfYY0njO.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-D8cW1pV5.js → Default.vue_vue_type_script_setup_true_lang-BI7mJXne.js} +1 -1
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-DKR92Gkk.js → FilterSelector.vue_vue_type_script_setup_true_lang-CIycVheg.js} +282 -289
- package/dist/{InsightView-DsREAMVL.js → InsightView-CbsCF94n.js} +67 -67
- package/dist/{Integration-BrEe-zrT.js → Integration-CnclVlOE.js} +3 -3
- package/dist/{Integrations-5xFssfqa.js → Integrations-DhUOnmOQ.js} +2 -2
- package/dist/{Layout-CqaNGelo.js → Layout-C6UDQNoE.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DhdTBWhH.js → MenuTab.vue_vue_type_script_setup_true_lang-B91L61Dw.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-D_GkXV-6.js → NavigationTab.vue_vue_type_script_setup_true_lang-Bovpqbm3.js} +3 -3
- package/dist/{OverviewView-DqIVVlFf.js → OverviewView-CgKq0E-j.js} +4 -4
- package/dist/{Report-k0uPJOPs.js → Report-Dx9NwFxX.js} +3 -3
- package/dist/{ReportEditor-C60a-s6G.js → ReportEditor-C3maVreL.js} +4 -4
- package/dist/{ReportView-BaAGxget.js → ReportView-BwI-ibGf.js} +6 -6
- package/dist/{Setting-DPe0XjS3.js → Setting-DMJe-7Dq.js} +3 -3
- package/dist/{TileEditor-CoX2x0oC.js → TileEditor-BPM3N0ab.js} +5 -5
- package/dist/{TransitionFade-7GC_VeBl.js → TransitionFade-BmP4IMj0.js} +4 -4
- package/dist/{app-BhXsPUbs.js → app-CpPu2GEO.js} +11 -11
- package/dist/app.js +1 -1
- package/dist/{useRestaurantPermission-BwfzAGzt.js → useRestaurantPermission-6HGCBYJz.js} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { computed as v, defineComponent as at, ref as L, onMounted as it, onBeforeUnmount as da, resolveComponent as ve, createBlock as we, openBlock as Y, Transition as Ka, withCtx as $e, createElementBlock as ge, createCommentVNode as
|
|
2
|
-
import { W as se, d as Ht, e as Ja, S as St, v as Xt, f as Za, g as vn, h as ma, q as pa, R as Ft, i as Qa, D as mt, b as Je, C as st, u as eo, a as to, _ as no } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { k as ao, z as oo, l as ro, m as lo, a as Gt, u as Bn, d as Bt, i as so } from "./app-
|
|
4
|
-
import { d as Cn, _ as io, a as uo, b as co, c as fo } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { computed as v, defineComponent as at, ref as L, onMounted as it, onBeforeUnmount as da, resolveComponent as ve, createBlock as we, openBlock as Y, Transition as Ka, withCtx as $e, createElementBlock as ge, createCommentVNode as Me, createElementVNode as J, unref as r, normalizeStyle as Ze, withModifiers as Tt, toDisplayString as Ge, createVNode as fe, Fragment as et, renderList as Lt, normalizeClass as Ye, watch as Re, nextTick as tt, mergeModels as gt, useModel as ct, renderSlot as yt, h as on, createSlots as qa, resolveDynamicComponent as fa, toRaw as Ya, markRaw as Xa, createTextVNode as bn, onUnmounted as ha, withDirectives as Ga, vShow as ja } from "vue";
|
|
2
|
+
import { W as se, d as Ht, e as Ja, S as St, v as Xt, f as Za, g as vn, h as ma, q as pa, R as Ft, i as Qa, D as mt, b as Je, C as st, u as eo, a as to, _ as no } from "./BaseDialog.vue_vue_type_script_setup_true_lang-B6JA_9JY.js";
|
|
3
|
+
import { k as ao, z as oo, l as ro, m as lo, a as Gt, u as Bn, d as Bt, i as so } from "./app-CpPu2GEO.js";
|
|
4
|
+
import { d as Cn, _ as io, a as uo, b as co, c as fo } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BfYY0njO.js";
|
|
5
5
|
import { storeToRefs as vt, defineStore as va } from "pinia";
|
|
6
6
|
import { C as wn } from "./chart-DDDh8zNk.js";
|
|
7
7
|
import { detectLocale as ho } from "@feedmepos/mf-common";
|
|
@@ -116,7 +116,7 @@ const dn = [
|
|
|
116
116
|
"#50BE9B",
|
|
117
117
|
"#8358D4",
|
|
118
118
|
"#9B5046"
|
|
119
|
-
],
|
|
119
|
+
], Yl = dn.map(() => "solid");
|
|
120
120
|
function Vt({
|
|
121
121
|
datasetIndex: e,
|
|
122
122
|
label: n
|
|
@@ -840,8 +840,8 @@ function Nn(e, n, t, a, l, s, i = "center", h = !1) {
|
|
|
840
840
|
let P = H + b;
|
|
841
841
|
const p = document.querySelector('[data-menu-tab="true"]');
|
|
842
842
|
if (p) {
|
|
843
|
-
const
|
|
844
|
-
P = Math.max(P,
|
|
843
|
+
const ce = p.getBoundingClientRect().bottom - _.top + H + b;
|
|
844
|
+
P = Math.max(P, ce);
|
|
845
845
|
}
|
|
846
846
|
const V = Math.max(A, B + T - M - b), X = Math.max(P, H + C - I - b), G = Math.round(Math.min(Math.max(A, w), V)), oe = Math.round(Math.min(Math.max(P, x), X));
|
|
847
847
|
d.__lastLeftPx === G && d.__lastTopPx === oe || (d.__lastLeftPx = G, d.__lastTopPx = oe, e.style.left = `${G}px`, e.style.top = `${oe}px`);
|
|
@@ -1141,8 +1141,8 @@ function fr(e, n) {
|
|
|
1141
1141
|
return V;
|
|
1142
1142
|
if (!Number.isFinite(V))
|
|
1143
1143
|
return oe;
|
|
1144
|
-
const te = Number.isFinite(g) ? g : F,
|
|
1145
|
-
return Math.abs(oe - te) >
|
|
1144
|
+
const te = Number.isFinite(g) ? g : F, ce = Math.abs(V - te);
|
|
1145
|
+
return Math.abs(oe - te) > ce ? oe : V;
|
|
1146
1146
|
}, Number.NaN) : Number.NaN, x = M, A = I, P = e ? Number.isFinite(g) && Number.isFinite(w) && w < g ? "left" : "right" : "center";
|
|
1147
1147
|
Nn(
|
|
1148
1148
|
c,
|
|
@@ -1360,10 +1360,7 @@ const mr = {
|
|
|
1360
1360
|
}, pr = ["aria-label"], vr = { class: "relative z-20 flex shrink-0 items-center bg-fm-color-neutral-white justify-between sm:px-5" }, gr = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary min-w-0 flex-1 pr-3" }, yr = { class: "flex items-center gap-1.5" }, br = {
|
|
1361
1361
|
key: 0,
|
|
1362
1362
|
class: "pb-2 fm-typo-en-body-md-600 text-fm-color-typo-primary"
|
|
1363
|
-
}, Cr = ["onMouseenter", "onFocus"], wr = { class: "min-w-0 flex flex-1 items-center gap-2.5 pr-2" }, xr = { class: "min-w-0 text-fm-color-typo-secondary" }, Sr = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary shrink-0 text-right tabular-nums" }, _r = {
|
|
1364
|
-
key: 0,
|
|
1365
|
-
class: "mx-2 border-t border-fm-color-border-secondary my-1"
|
|
1366
|
-
}, ra = 500, kr = 320, Qt = /* @__PURE__ */ at({
|
|
1363
|
+
}, Cr = ["onMouseenter", "onFocus"], wr = { class: "min-w-0 flex flex-1 items-center gap-2.5 pr-2" }, xr = { class: "min-w-0 text-fm-color-typo-secondary" }, Sr = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary shrink-0 text-right tabular-nums" }, ra = 500, _r = 320, Qt = /* @__PURE__ */ at({
|
|
1367
1364
|
__name: "TooltipDetailSidesheet",
|
|
1368
1365
|
props: {
|
|
1369
1366
|
modelValue: { type: Boolean },
|
|
@@ -1401,7 +1398,7 @@ const mr = {
|
|
|
1401
1398
|
return typeof window > "u" ? ra : Math.floor(window.innerWidth * 0.94);
|
|
1402
1399
|
}
|
|
1403
1400
|
function I(p) {
|
|
1404
|
-
const V = M(), X = Math.min(
|
|
1401
|
+
const V = M(), X = Math.min(_r, V);
|
|
1405
1402
|
return Math.min(V, Math.max(X, Math.floor(p)));
|
|
1406
1403
|
}
|
|
1407
1404
|
function b(p) {
|
|
@@ -1477,40 +1474,36 @@ const mr = {
|
|
|
1477
1474
|
class: "flex flex-1 flex-col gap-4 overflow-y-auto px-4 py-4 sm:px-5",
|
|
1478
1475
|
onMouseleave: d
|
|
1479
1476
|
}, [
|
|
1480
|
-
(Y(!0), ge(
|
|
1477
|
+
(Y(!0), ge(et, null, Lt(_.value, (G, oe) => (Y(), ge("div", {
|
|
1481
1478
|
key: `${G.title || "section"}-${oe}`,
|
|
1482
1479
|
class: "flex flex-col gap-2 rounded-2xl bg-fm-color-neutral-white/45 py-3"
|
|
1483
1480
|
}, [
|
|
1484
|
-
G.title ? (Y(), ge("p", br, Ge(G.title), 1)) :
|
|
1485
|
-
(Y(!0), ge(
|
|
1486
|
-
key: `${te.text}-${
|
|
1481
|
+
G.title ? (Y(), ge("p", br, Ge(G.title), 1)) : Me("", !0),
|
|
1482
|
+
(Y(!0), ge(et, null, Lt(G.values, (te, ce) => (Y(), ge("button", {
|
|
1483
|
+
key: `${te.text}-${ce}`,
|
|
1484
|
+
type: "button",
|
|
1485
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex w-full items-center 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",
|
|
1486
|
+
onMouseenter: (ie) => C(te),
|
|
1487
|
+
onFocus: (ie) => C(te),
|
|
1488
|
+
onMouseleave: d,
|
|
1489
|
+
onBlur: d
|
|
1487
1490
|
}, [
|
|
1488
|
-
J("
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
J("span",
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
te.isBar ? "rounded-sm border border-fm-color-neutral-gray-400" : "rounded-full border border-white shadow-[0_0_0_1px_rgba(17,24,39,0.28)]"
|
|
1501
|
-
]),
|
|
1502
|
-
style: Ze({ backgroundColor: te.color })
|
|
1503
|
-
}, null, 6),
|
|
1504
|
-
J("span", xr, Ge(T(te)), 1)
|
|
1505
|
-
]),
|
|
1506
|
-
J("span", Sr, Ge(H(te)), 1)
|
|
1507
|
-
], 40, Cr),
|
|
1508
|
-
ue < G.values.length - 1 ? (Y(), ge("hr", _r)) : Le("", !0)
|
|
1509
|
-
], 64))), 128))
|
|
1491
|
+
J("span", wr, [
|
|
1492
|
+
J("span", {
|
|
1493
|
+
class: Ye([
|
|
1494
|
+
"inline-block h-3 w-3 shrink-0 box-border",
|
|
1495
|
+
te.isBar ? "rounded-sm border border-fm-color-neutral-gray-400" : "rounded-full border border-white shadow-[0_0_0_1px_rgba(17,24,39,0.28)]"
|
|
1496
|
+
]),
|
|
1497
|
+
style: Ze({ backgroundColor: te.color })
|
|
1498
|
+
}, null, 6),
|
|
1499
|
+
J("span", xr, Ge(T(te)), 1)
|
|
1500
|
+
]),
|
|
1501
|
+
J("span", Sr, Ge(H(te)), 1)
|
|
1502
|
+
], 40, Cr))), 128))
|
|
1510
1503
|
]))), 128))
|
|
1511
1504
|
], 32)
|
|
1512
1505
|
], 12, pr)
|
|
1513
|
-
])) :
|
|
1506
|
+
])) : Me("", !0)
|
|
1514
1507
|
]),
|
|
1515
1508
|
_: 1
|
|
1516
1509
|
});
|
|
@@ -1548,14 +1541,14 @@ function en(e, n) {
|
|
|
1548
1541
|
handleTooltipDetailsLeave: B
|
|
1549
1542
|
};
|
|
1550
1543
|
}
|
|
1551
|
-
const
|
|
1544
|
+
const kr = {
|
|
1552
1545
|
type: "button",
|
|
1553
1546
|
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]",
|
|
1554
1547
|
style: { fontSize: "var(--legend-font-size)" }
|
|
1555
|
-
},
|
|
1548
|
+
}, Tr = ["aria-pressed", "onClick"], Lr = ["title"], Dr = {
|
|
1556
1549
|
key: 0,
|
|
1557
1550
|
class: "chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto"
|
|
1558
|
-
},
|
|
1551
|
+
}, Ir = 36, la = 2, sa = 16, Mr = 50, Fr = 6, Br = /* @__PURE__ */ at({
|
|
1559
1552
|
__name: "ChartLegendPanel",
|
|
1560
1553
|
props: {
|
|
1561
1554
|
chartRef: {},
|
|
@@ -1611,7 +1604,7 @@ const Tr = {
|
|
|
1611
1604
|
}
|
|
1612
1605
|
return null;
|
|
1613
1606
|
}
|
|
1614
|
-
function
|
|
1607
|
+
function ce() {
|
|
1615
1608
|
ie();
|
|
1616
1609
|
}
|
|
1617
1610
|
function ie() {
|
|
@@ -1739,7 +1732,7 @@ const Tr = {
|
|
|
1739
1732
|
if (w.value)
|
|
1740
1733
|
return Number.isFinite(y) && y > 0 ? Math.max(0, Math.floor(y - sa)) : m != null ? Math.max(0, Math.floor(m - sa)) : 120;
|
|
1741
1734
|
if (m != null) {
|
|
1742
|
-
const S = m * 0.3, U = m -
|
|
1735
|
+
const S = m * 0.3, U = m - Ir, K = Math.min(S, U);
|
|
1743
1736
|
return Math.max(0, Math.floor(K));
|
|
1744
1737
|
}
|
|
1745
1738
|
return Number.isFinite(y) && y > 0 ? Math.max(0, Math.floor(y * 0.3)) : 120;
|
|
@@ -1791,10 +1784,10 @@ const Tr = {
|
|
|
1791
1784
|
return Ct({ index: he, customColors: t.chartColors });
|
|
1792
1785
|
}
|
|
1793
1786
|
const S = o;
|
|
1794
|
-
return
|
|
1787
|
+
return ue(o.fillStyle) || ue(o.strokeStyle) || ue(S.color) || "#9ca3af";
|
|
1795
1788
|
}
|
|
1796
|
-
function
|
|
1797
|
-
return typeof o == "string" && o.trim().length > 0 ? o : Array.isArray(o) ? o.map((m) =>
|
|
1789
|
+
function ue(o) {
|
|
1790
|
+
return typeof o == "string" && o.trim().length > 0 ? o : Array.isArray(o) ? o.map((m) => ue(m)).find((m) => typeof m == "string" && m.trim().length > 0) ?? "" : "";
|
|
1798
1791
|
}
|
|
1799
1792
|
function We(o) {
|
|
1800
1793
|
return Array.isArray(t.hiddenDataPointIndexes) ? t.hiddenDataPointIndexes.includes(o) : !1;
|
|
@@ -1876,7 +1869,7 @@ const Tr = {
|
|
|
1876
1869
|
function Z(o) {
|
|
1877
1870
|
var m;
|
|
1878
1871
|
return (Array.isArray((m = o == null ? void 0 : o.data) == null ? void 0 : m.datasets) ? o.data.datasets : []).map((S, U) => {
|
|
1879
|
-
const K =
|
|
1872
|
+
const K = ue((S == null ? void 0 : S.borderColor) ?? (S == null ? void 0 : S.backgroundColor)), ae = Vt({
|
|
1880
1873
|
datasetIndex: U,
|
|
1881
1874
|
label: S == null ? void 0 : S.label
|
|
1882
1875
|
});
|
|
@@ -1899,8 +1892,8 @@ const Tr = {
|
|
|
1899
1892
|
const m = o, S = m[0], U = Array.isArray(S == null ? void 0 : S.labels) ? S.labels : [], K = Array.isArray(y == null ? void 0 : y.metrics) ? y.metrics : [], ae = U.length > 0 ? U : K, he = S == null ? void 0 : S.backgroundColor;
|
|
1900
1893
|
return m.length === 1 && Array.isArray(he) && he.length > 1 ? he.map((j, _e) => ({
|
|
1901
1894
|
text: ae[_e] == null || String(ae[_e]).trim().length === 0 ? `Series ${_e + 1}` : String(ae[_e]),
|
|
1902
|
-
fillStyle:
|
|
1903
|
-
strokeStyle:
|
|
1895
|
+
fillStyle: ue(j),
|
|
1896
|
+
strokeStyle: ue(j),
|
|
1904
1897
|
datasetIndex: 0,
|
|
1905
1898
|
index: _e,
|
|
1906
1899
|
hidden: We(_e)
|
|
@@ -1910,10 +1903,10 @@ const Tr = {
|
|
|
1910
1903
|
label: j == null ? void 0 : j.label
|
|
1911
1904
|
}),
|
|
1912
1905
|
text: be(j == null ? void 0 : j.label),
|
|
1913
|
-
fillStyle:
|
|
1906
|
+
fillStyle: ue(
|
|
1914
1907
|
(j == null ? void 0 : j.color) ?? (j == null ? void 0 : j.borderColor) ?? (j == null ? void 0 : j.backgroundColor) ?? (j == null ? void 0 : j.pointBackgroundColor)
|
|
1915
1908
|
),
|
|
1916
|
-
strokeStyle:
|
|
1909
|
+
strokeStyle: ue(
|
|
1917
1910
|
(j == null ? void 0 : j.color) ?? (j == null ? void 0 : j.borderColor) ?? (j == null ? void 0 : j.backgroundColor) ?? (j == null ? void 0 : j.pointBorderColor)
|
|
1918
1911
|
),
|
|
1919
1912
|
datasetIndex: _e,
|
|
@@ -1951,10 +1944,10 @@ const Tr = {
|
|
|
1951
1944
|
const xe = window.getComputedStyle(m), me = Number.parseFloat(xe.rowGap || xe.gap || "0") || 0, le = Fe();
|
|
1952
1945
|
let qe = 0, ot = 0;
|
|
1953
1946
|
for (let dt = 0; dt < o.length; dt += 1) {
|
|
1954
|
-
const
|
|
1955
|
-
if (!
|
|
1947
|
+
const Qe = o[dt];
|
|
1948
|
+
if (!Qe)
|
|
1956
1949
|
continue;
|
|
1957
|
-
const ft = qe + (ot > 0 ? me : 0) +
|
|
1950
|
+
const ft = qe + (ot > 0 ? me : 0) + Qe.offsetHeight, Ut = o.length - (dt + 1) > 0 ? me + le : 0;
|
|
1958
1951
|
if (ft + Ut > S)
|
|
1959
1952
|
break;
|
|
1960
1953
|
qe = ft, ot += 1;
|
|
@@ -1984,14 +1977,14 @@ const Tr = {
|
|
|
1984
1977
|
function W() {
|
|
1985
1978
|
const o = T.value;
|
|
1986
1979
|
if (!o) {
|
|
1987
|
-
c.value = !1, _.value = 0, i.value = 0,
|
|
1980
|
+
c.value = !1, _.value = 0, i.value = 0, ce(), D();
|
|
1988
1981
|
return;
|
|
1989
1982
|
}
|
|
1990
1983
|
const y = Array.from(
|
|
1991
1984
|
o.querySelectorAll(".chart-legend-item[data-legend-data='true']")
|
|
1992
1985
|
);
|
|
1993
1986
|
if (y.length === 0) {
|
|
1994
|
-
c.value = !1, _.value = 0, i.value = 0,
|
|
1987
|
+
c.value = !1, _.value = 0, i.value = 0, ce(), D();
|
|
1995
1988
|
return;
|
|
1996
1989
|
}
|
|
1997
1990
|
const m = Array.from(new Set(y.map((me) => me.offsetTop))).sort((me, le) => me - le), S = !h.value && s.value.length > y.length, U = !h.value && !S, K = U || _.value <= 0 ? ye() : _.value;
|
|
@@ -2000,9 +1993,9 @@ const Tr = {
|
|
|
2000
1993
|
if (me > 0 && (_.value = me), w.value && i.value < s.value.length) {
|
|
2001
1994
|
const le = Math.max(0, _.value - la), qe = o.scrollHeight;
|
|
2002
1995
|
if (qe + 1 < le) {
|
|
2003
|
-
const ot = y.map((
|
|
1996
|
+
const ot = y.map((Qe) => Qe.offsetHeight).filter((Qe) => Number.isFinite(Qe) && Qe > 0), dt = ot.length > 0 ? ot.reduce((Qe, ft) => Qe + ft, 0) / ot.length : 0;
|
|
2004
1997
|
if (dt > 0) {
|
|
2005
|
-
const
|
|
1998
|
+
const Qe = window.getComputedStyle(o), ft = Number.parseFloat(Qe.rowGap || Qe.gap || "0") || 0, ut = Math.max(1, dt + ft), Ut = le - qe, Kt = Math.floor(Ut / ut);
|
|
2006
1999
|
if (Kt > 0) {
|
|
2007
2000
|
i.value = Math.min(
|
|
2008
2001
|
s.value.length,
|
|
@@ -2013,11 +2006,11 @@ const Tr = {
|
|
|
2013
2006
|
}
|
|
2014
2007
|
}
|
|
2015
2008
|
}
|
|
2016
|
-
c.value = !0,
|
|
2009
|
+
c.value = !0, ce(), D();
|
|
2017
2010
|
return;
|
|
2018
2011
|
}
|
|
2019
2012
|
const ae = m[0] ?? 0, he = m[m.length - 1] ?? ae, j = y.filter((me) => me.offsetTop === he), _e = Math.max(...j.map((me) => me.offsetHeight), 0), Ae = Math.max(0, he - ae + _e), xe = de(y, K);
|
|
2020
|
-
(U || i.value <= 0) && (i.value = Math.max(0, xe)), c.value = Ae > K,
|
|
2013
|
+
(U || i.value <= 0) && (i.value = Math.max(0, xe)), c.value = Ae > K, ce(), D();
|
|
2021
2014
|
}
|
|
2022
2015
|
function Se() {
|
|
2023
2016
|
tt(() => {
|
|
@@ -2046,7 +2039,7 @@ const Tr = {
|
|
|
2046
2039
|
maxHeight: `${y}px`,
|
|
2047
2040
|
flex: "0 0 auto"
|
|
2048
2041
|
};
|
|
2049
|
-
}),
|
|
2042
|
+
}), Le = v(() => {
|
|
2050
2043
|
if (h.value || !c.value)
|
|
2051
2044
|
return s.value;
|
|
2052
2045
|
const o = Math.max(1, i.value), y = w.value ? o : Math.max(0, o - 1);
|
|
@@ -2082,7 +2075,7 @@ const Tr = {
|
|
|
2082
2075
|
const m = Array.isArray(t.legendUpdateKey) && t.legendUpdateKey.length > 0 || !Array.isArray(t.legendUpdateKey) && !!t.legendUpdateKey;
|
|
2083
2076
|
s.value.length === 0 && !(y.length > 0 || m) && X(0), Se();
|
|
2084
2077
|
}
|
|
2085
|
-
function
|
|
2078
|
+
function De(o) {
|
|
2086
2079
|
return Array.isArray(o.datasetIndexes) && o.datasetIndexes.length > 0 ? o.datasetIndexes.filter((y) => Number.isInteger(y)) : typeof o.datasetIndex == "number" ? [o.datasetIndex] : [];
|
|
2087
2080
|
}
|
|
2088
2081
|
function Ee(o, y) {
|
|
@@ -2122,13 +2115,13 @@ const Tr = {
|
|
|
2122
2115
|
function nn(o = 0) {
|
|
2123
2116
|
Be();
|
|
2124
2117
|
const y = te(), m = s.value.length > 0;
|
|
2125
|
-
if (y || m || o >=
|
|
2118
|
+
if (y || m || o >= Fr) {
|
|
2126
2119
|
oe();
|
|
2127
2120
|
return;
|
|
2128
2121
|
}
|
|
2129
2122
|
oe(), x = window.setTimeout(() => {
|
|
2130
2123
|
nn(o + 1);
|
|
2131
|
-
},
|
|
2124
|
+
}, Mr);
|
|
2132
2125
|
}
|
|
2133
2126
|
function hn(o, y) {
|
|
2134
2127
|
var Ae;
|
|
@@ -2146,7 +2139,7 @@ const Tr = {
|
|
|
2146
2139
|
);
|
|
2147
2140
|
return;
|
|
2148
2141
|
}
|
|
2149
|
-
const he =
|
|
2142
|
+
const he = De(o), j = Ee(o, he);
|
|
2150
2143
|
if (Array.isArray(t.hiddenDatasetKeys) && he.length > 0) {
|
|
2151
2144
|
he.forEach((xe, me) => {
|
|
2152
2145
|
a("toggleDatasetVisibility", {
|
|
@@ -2228,7 +2221,7 @@ const Tr = {
|
|
|
2228
2221
|
ref: C,
|
|
2229
2222
|
class: "absolute invisible pointer-events-none left-0 top-0 z-[2] inline-flex max-w-full select-none"
|
|
2230
2223
|
}, [
|
|
2231
|
-
J("button",
|
|
2224
|
+
J("button", kr, Ge(r(l)("report.widget.legend.viewMore")), 1)
|
|
2232
2225
|
], 512),
|
|
2233
2226
|
J("ul", {
|
|
2234
2227
|
ref_key: "legendListRef",
|
|
@@ -2239,7 +2232,7 @@ const Tr = {
|
|
|
2239
2232
|
style: Ze(He.value),
|
|
2240
2233
|
onScroll: q
|
|
2241
2234
|
}, [
|
|
2242
|
-
(Y(!0), ge(
|
|
2235
|
+
(Y(!0), ge(et, null, Lt(Le.value, (m, S) => (Y(), ge("li", {
|
|
2243
2236
|
key: Ne(m, S),
|
|
2244
2237
|
class: Ye(["chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto", {
|
|
2245
2238
|
"w-full": w.value,
|
|
@@ -2264,17 +2257,17 @@ const Tr = {
|
|
|
2264
2257
|
"line-through": m.hidden
|
|
2265
2258
|
}]),
|
|
2266
2259
|
title: m.text ?? ""
|
|
2267
|
-
}, Ge(m.text), 11,
|
|
2268
|
-
], 10,
|
|
2260
|
+
}, Ge(m.text), 11, Lr)
|
|
2261
|
+
], 10, Tr)
|
|
2269
2262
|
], 2))), 128)),
|
|
2270
|
-
c.value ? (Y(), ge("li",
|
|
2263
|
+
c.value ? (Y(), ge("li", Dr, [
|
|
2271
2264
|
J("button", {
|
|
2272
2265
|
type: "button",
|
|
2273
2266
|
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",
|
|
2274
2267
|
style: { fontSize: "var(--legend-font-size)" },
|
|
2275
2268
|
onClick: y[0] || (y[0] = Tt((m) => h.value ? Dt() : mn(), ["stop"]))
|
|
2276
2269
|
}, Ge(h.value ? r(l)("report.widget.legend.viewLess") : r(l)("report.widget.legend.viewMore")), 1)
|
|
2277
|
-
])) :
|
|
2270
|
+
])) : Me("", !0)
|
|
2278
2271
|
], 38),
|
|
2279
2272
|
A.value ? (Y(), ge("div", {
|
|
2280
2273
|
key: 0,
|
|
@@ -2286,11 +2279,11 @@ const Tr = {
|
|
|
2286
2279
|
style: Ze(P.value),
|
|
2287
2280
|
onMousedown: Tt(N, ["stop"])
|
|
2288
2281
|
}, null, 36)
|
|
2289
|
-
], 32)) :
|
|
2282
|
+
], 32)) : Me("", !0)
|
|
2290
2283
|
], 512)
|
|
2291
|
-
], 6)) :
|
|
2284
|
+
], 6)) : Me("", !0);
|
|
2292
2285
|
}
|
|
2293
|
-
}), lt = /* @__PURE__ */ ga(
|
|
2286
|
+
}), lt = /* @__PURE__ */ ga(Br, [["__scopeId", "data-v-6006dfdf"]]);
|
|
2294
2287
|
function tn(e) {
|
|
2295
2288
|
const n = L([]), t = v(() => new Set(n.value));
|
|
2296
2289
|
function a(i, h) {
|
|
@@ -2325,7 +2318,7 @@ function tn(e) {
|
|
|
2325
2318
|
toggleDatasetVisibility: s
|
|
2326
2319
|
};
|
|
2327
2320
|
}
|
|
2328
|
-
const
|
|
2321
|
+
const Vr = { class: "widget-content" }, Ar = /* @__PURE__ */ at({
|
|
2329
2322
|
__name: "WidgetBarchart",
|
|
2330
2323
|
props: /* @__PURE__ */ gt({
|
|
2331
2324
|
tileIndex: {}
|
|
@@ -2401,7 +2394,7 @@ const Ar = { class: "widget-content" }, $r = /* @__PURE__ */ at({
|
|
|
2401
2394
|
})
|
|
2402
2395
|
};
|
|
2403
2396
|
})
|
|
2404
|
-
] : []), { hiddenDatasetKeys: oe, isDatasetHidden: te, toggleDatasetVisibility:
|
|
2397
|
+
] : []), { hiddenDatasetKeys: oe, isDatasetHidden: te, toggleDatasetVisibility: ce } = tn(G), ie = v(
|
|
2405
2398
|
() => G.value.map((z, N) => ({
|
|
2406
2399
|
...z,
|
|
2407
2400
|
hidden: te(z, N)
|
|
@@ -2419,8 +2412,8 @@ const Ar = { class: "widget-content" }, $r = /* @__PURE__ */ at({
|
|
|
2419
2412
|
}), (z, N) => {
|
|
2420
2413
|
var R, re, pe, O, ne, ee;
|
|
2421
2414
|
const $ = ve("FmBarChart");
|
|
2422
|
-
return Y(), ge(
|
|
2423
|
-
J("div",
|
|
2415
|
+
return Y(), ge(et, null, [
|
|
2416
|
+
J("div", Vr, [
|
|
2424
2417
|
yt(z.$slots, "menu"),
|
|
2425
2418
|
J("div", {
|
|
2426
2419
|
class: Ye(["chart-layout", { "chart-layout--side": P.value && (r(f).display ?? !1) && V.value }])
|
|
@@ -2440,8 +2433,8 @@ const Ar = { class: "widget-content" }, $r = /* @__PURE__ */ at({
|
|
|
2440
2433
|
"chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
|
|
2441
2434
|
"metric-count": t.value.metricCount,
|
|
2442
2435
|
"hidden-dataset-keys": r(oe),
|
|
2443
|
-
onToggleDatasetVisibility: r(
|
|
2444
|
-
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) :
|
|
2436
|
+
onToggleDatasetVisibility: r(ce)
|
|
2437
|
+
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Me("", !0),
|
|
2445
2438
|
fe($, {
|
|
2446
2439
|
ref_key: "chartRef",
|
|
2447
2440
|
ref: a,
|
|
@@ -2478,8 +2471,8 @@ const Ar = { class: "widget-content" }, $r = /* @__PURE__ */ at({
|
|
|
2478
2471
|
"chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
|
|
2479
2472
|
"metric-count": t.value.metricCount,
|
|
2480
2473
|
"hidden-dataset-keys": r(oe),
|
|
2481
|
-
onToggleDatasetVisibility: r(
|
|
2482
|
-
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) :
|
|
2474
|
+
onToggleDatasetVisibility: r(ce)
|
|
2475
|
+
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Me("", !0)
|
|
2483
2476
|
], 2)
|
|
2484
2477
|
]),
|
|
2485
2478
|
fe(Qt, {
|
|
@@ -2492,7 +2485,7 @@ const Ar = { class: "widget-content" }, $r = /* @__PURE__ */ at({
|
|
|
2492
2485
|
], 64);
|
|
2493
2486
|
};
|
|
2494
2487
|
}
|
|
2495
|
-
}),
|
|
2488
|
+
}), $r = { class: "widget-content" }, Rr = /* @__PURE__ */ at({
|
|
2496
2489
|
__name: "WidgetCircular",
|
|
2497
2490
|
props: /* @__PURE__ */ gt({
|
|
2498
2491
|
tileIndex: {}
|
|
@@ -2562,7 +2555,7 @@ const Ar = { class: "widget-content" }, $r = /* @__PURE__ */ at({
|
|
|
2562
2555
|
}
|
|
2563
2556
|
return (p, V) => {
|
|
2564
2557
|
const X = ve("FmPieChart");
|
|
2565
|
-
return Y(), ge("div",
|
|
2558
|
+
return Y(), ge("div", $r, [
|
|
2566
2559
|
yt(p.$slots, "menu"),
|
|
2567
2560
|
J("div", {
|
|
2568
2561
|
class: Ye(["chart-layout", {
|
|
@@ -2585,7 +2578,7 @@ const Ar = { class: "widget-content" }, $r = /* @__PURE__ */ at({
|
|
|
2585
2578
|
"metric-count": t.value.metricCount,
|
|
2586
2579
|
"hidden-data-point-indexes": s.value,
|
|
2587
2580
|
onToggleDataPointVisibility: P
|
|
2588
|
-
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-data-point-indexes"])) :
|
|
2581
|
+
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-data-point-indexes"])) : Me("", !0),
|
|
2589
2582
|
fe(X, {
|
|
2590
2583
|
ref_key: "chartRef",
|
|
2591
2584
|
ref: l,
|
|
@@ -2621,7 +2614,7 @@ const Ar = { class: "widget-content" }, $r = /* @__PURE__ */ at({
|
|
|
2621
2614
|
"metric-count": t.value.metricCount,
|
|
2622
2615
|
"hidden-data-point-indexes": s.value,
|
|
2623
2616
|
onToggleDataPointVisibility: P
|
|
2624
|
-
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-data-point-indexes"])) :
|
|
2617
|
+
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-data-point-indexes"])) : Me("", !0)
|
|
2625
2618
|
], 2)
|
|
2626
2619
|
]);
|
|
2627
2620
|
};
|
|
@@ -2635,7 +2628,7 @@ function cn(e) {
|
|
|
2635
2628
|
const [a, l] = n.split("."), s = new Intl.NumberFormat("en-US").format(Number(a));
|
|
2636
2629
|
return l !== void 0 ? `${s}.${l}` : s;
|
|
2637
2630
|
}
|
|
2638
|
-
const
|
|
2631
|
+
const Pr = { class: "flex flex-col gap-1" }, zr = { class: "fm-typo-en-title-md-600" }, Nr = { class: "flex gap-2" }, Hr = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Wr = { key: 0 }, Or = { key: 1 }, Er = /* @__PURE__ */ at({
|
|
2639
2632
|
__name: "WidgetScorecard",
|
|
2640
2633
|
props: {
|
|
2641
2634
|
modelValue: { required: !0 },
|
|
@@ -2675,10 +2668,10 @@ const zr = { class: "flex flex-col gap-1" }, Nr = { class: "fm-typo-en-title-md-
|
|
|
2675
2668
|
}))), C = v(() => Ot(!1, !0));
|
|
2676
2669
|
return (d, F) => {
|
|
2677
2670
|
const M = ve("FmIcon"), I = ve("FmChip"), b = ve("FmTooltip"), f = ve("FmLineChart");
|
|
2678
|
-
return Y(), ge("div",
|
|
2671
|
+
return Y(), ge("div", Pr, [
|
|
2679
2672
|
yt(d.$slots, "menu"),
|
|
2680
|
-
J("p",
|
|
2681
|
-
J("div",
|
|
2673
|
+
J("p", zr, Ge(h.value), 1),
|
|
2674
|
+
J("div", Nr, [
|
|
2682
2675
|
fe(b, {
|
|
2683
2676
|
disabled: c.value === null,
|
|
2684
2677
|
placement: "right",
|
|
@@ -2688,7 +2681,7 @@ const zr = { class: "flex flex-col gap-1" }, Nr = { class: "fm-typo-en-title-md-
|
|
|
2688
2681
|
content: $e(() => {
|
|
2689
2682
|
var g;
|
|
2690
2683
|
return [
|
|
2691
|
-
J("span",
|
|
2684
|
+
J("span", Hr, Ge(`vs. ${(g = r(l).defaultCompareType) == null ? void 0 : g.split("_").join(" ")}`), 1)
|
|
2692
2685
|
];
|
|
2693
2686
|
}),
|
|
2694
2687
|
default: $e(() => [
|
|
@@ -2709,7 +2702,7 @@ const zr = { class: "flex flex-col gap-1" }, Nr = { class: "fm-typo-en-title-md-
|
|
|
2709
2702
|
}, Ge(c.value.value), 5)
|
|
2710
2703
|
]),
|
|
2711
2704
|
_: 1
|
|
2712
|
-
}, 8, ["icon", "class"])) :
|
|
2705
|
+
}, 8, ["icon", "class"])) : Me("", !0),
|
|
2713
2706
|
r(a).endDate != null && r(a).startDate != null && c.value === null ? (Y(), we(I, {
|
|
2714
2707
|
key: 1,
|
|
2715
2708
|
class: "invisible pointer-events-none",
|
|
@@ -2724,12 +2717,12 @@ const zr = { class: "flex flex-col gap-1" }, Nr = { class: "fm-typo-en-title-md-
|
|
|
2724
2717
|
F[0] || (F[0] = J("p", { class: "fm-typo-en-body-md-600" }, " ", -1))
|
|
2725
2718
|
]),
|
|
2726
2719
|
_: 1
|
|
2727
|
-
})) :
|
|
2720
|
+
})) : Me("", !0)
|
|
2728
2721
|
]),
|
|
2729
2722
|
_: 1
|
|
2730
2723
|
}, 8, ["disabled"])
|
|
2731
2724
|
]),
|
|
2732
|
-
B.value ? (Y(), ge("div",
|
|
2725
|
+
B.value ? (Y(), ge("div", Wr, [
|
|
2733
2726
|
_(B.value.type) === "line" ? (Y(), we(f, {
|
|
2734
2727
|
key: 0,
|
|
2735
2728
|
class: "sparkline",
|
|
@@ -2743,8 +2736,8 @@ const zr = { class: "flex flex-col gap-1" }, Nr = { class: "fm-typo-en-title-md-
|
|
|
2743
2736
|
"x-cfg": { display: !1 },
|
|
2744
2737
|
tooltip: C.value,
|
|
2745
2738
|
"maintain-aspect-ratio": !1
|
|
2746
|
-
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) :
|
|
2747
|
-
])) : (Y(), ge("div",
|
|
2739
|
+
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : Me("", !0)
|
|
2740
|
+
])) : (Y(), ge("div", Or, F[1] || (F[1] = [
|
|
2748
2741
|
J("div", { class: "sparkline" }, [
|
|
2749
2742
|
J("div", { class: "flex flex-col gap-8" }, [
|
|
2750
2743
|
J("div"),
|
|
@@ -2756,12 +2749,12 @@ const zr = { class: "flex flex-col gap-1" }, Nr = { class: "fm-typo-en-title-md-
|
|
|
2756
2749
|
]);
|
|
2757
2750
|
};
|
|
2758
2751
|
}
|
|
2759
|
-
}),
|
|
2760
|
-
function
|
|
2752
|
+
}), Ur = {};
|
|
2753
|
+
function Kr(e, n) {
|
|
2761
2754
|
const t = ve("FmMenuDivider");
|
|
2762
2755
|
return Y(), we(t);
|
|
2763
2756
|
}
|
|
2764
|
-
const
|
|
2757
|
+
const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimension", ia = va(Yr, () => {
|
|
2765
2758
|
const e = L(0), n = L([]), t = L(!1), a = (b, f) => {
|
|
2766
2759
|
e.value = b, s(b, f);
|
|
2767
2760
|
}, l = (b, f, g, w) => {
|
|
@@ -2839,14 +2832,14 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
2839
2832
|
}, te = (ie) => {
|
|
2840
2833
|
const D = ie.clientX - g;
|
|
2841
2834
|
G = Math.max(V, A + D), X === null && (X = requestAnimationFrame(oe));
|
|
2842
|
-
},
|
|
2835
|
+
}, ce = () => {
|
|
2843
2836
|
X !== null && cancelAnimationFrame(X), G !== null && (x.style.width = `${G}px`);
|
|
2844
2837
|
const ie = w.querySelectorAll("th"), D = [];
|
|
2845
2838
|
ie.forEach((q) => {
|
|
2846
2839
|
D.push(q.getBoundingClientRect().width);
|
|
2847
|
-
}), n.value = D, C(!1), document.removeEventListener("mousemove", te), document.removeEventListener("mouseup",
|
|
2840
|
+
}), n.value = D, C(!1), document.removeEventListener("mousemove", te), document.removeEventListener("mouseup", ce);
|
|
2848
2841
|
};
|
|
2849
|
-
document.addEventListener("mousemove", te), document.addEventListener("mouseup",
|
|
2842
|
+
document.addEventListener("mousemove", te), document.addEventListener("mouseup", ce);
|
|
2850
2843
|
}, F = (b) => {
|
|
2851
2844
|
const f = b.clientY, g = b.target.closest("table"), w = e.value || 48;
|
|
2852
2845
|
H(!1);
|
|
@@ -2898,10 +2891,10 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
2898
2891
|
c();
|
|
2899
2892
|
}
|
|
2900
2893
|
};
|
|
2901
|
-
}),
|
|
2894
|
+
}), Xr = "/assets/processTableData.worker-C1Lshb3k.js", Gr = { class: "my-4" }, jr = {
|
|
2902
2895
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
2903
2896
|
style: { backgroundColor: "#f9f9f9" }
|
|
2904
|
-
},
|
|
2897
|
+
}, Jr = { class: "font-bold" }, Zr = { class: "text-fm-color-neutral-gray-300" }, Qr = /* @__PURE__ */ at({
|
|
2905
2898
|
__name: "WidgetTable",
|
|
2906
2899
|
props: /* @__PURE__ */ gt({
|
|
2907
2900
|
tileIndex: {}
|
|
@@ -2999,7 +2992,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
2999
2992
|
grandTotalPosition: w.value,
|
|
3000
2993
|
pageSize: x.value
|
|
3001
2994
|
};
|
|
3002
|
-
Za(
|
|
2995
|
+
Za(Xr, N).then((R) => {
|
|
3003
2996
|
D === V && (R != null && R.error ? (h.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(R.error), p.value = []) : p.value = Xa(R.data || []));
|
|
3004
2997
|
});
|
|
3005
2998
|
}
|
|
@@ -3037,7 +3030,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3037
3030
|
}
|
|
3038
3031
|
q.type === St.Asc ? q.type = St.Desc : q.type === St.Desc && (_.value = _.value.filter((z) => z.key !== D));
|
|
3039
3032
|
}
|
|
3040
|
-
const
|
|
3033
|
+
const ce = v(
|
|
3041
3034
|
() => {
|
|
3042
3035
|
var D;
|
|
3043
3036
|
return (((D = a.value.colWidths) == null ? void 0 : D.length) ?? 0) > 0 || H.value.length > 0;
|
|
@@ -3082,7 +3075,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3082
3075
|
class: [
|
|
3083
3076
|
O ? "fm-typo-en-body-md-600 text-fm-color-typo-primary" : "fm-typo-en-body-md-400",
|
|
3084
3077
|
q.type === "NUMERIC" ? "text-right" : "",
|
|
3085
|
-
|
|
3078
|
+
ce.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
|
|
3086
3079
|
].join(" ")
|
|
3087
3080
|
},
|
|
3088
3081
|
[q.type === "NUMERIC" ? cn(pe.main) : pe.main]
|
|
@@ -3106,7 +3099,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3106
3099
|
if (!D) return;
|
|
3107
3100
|
const q = D.querySelector("table");
|
|
3108
3101
|
if (!q) return;
|
|
3109
|
-
q.classList.add(
|
|
3102
|
+
q.classList.add(ce.value ? "table-fixed" : "table-auto");
|
|
3110
3103
|
let z, N;
|
|
3111
3104
|
B.value ? (F(), z = H.value, N = T.value) : (N = a.value.rowHeight, z = a.value.colWidths), typeof N == "number" && d(N, D), z == null || z.forEach((R, re) => {
|
|
3112
3105
|
C(re, R, D);
|
|
@@ -3115,8 +3108,8 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3115
3108
|
{ immediate: !0 }
|
|
3116
3109
|
), (D, q) => {
|
|
3117
3110
|
const z = ve("FmTable");
|
|
3118
|
-
return Y(), ge(
|
|
3119
|
-
J("div",
|
|
3111
|
+
return Y(), ge(et, null, [
|
|
3112
|
+
J("div", Gr, [
|
|
3120
3113
|
yt(D.$slots, "menu")
|
|
3121
3114
|
]),
|
|
3122
3115
|
fe(z, {
|
|
@@ -3137,8 +3130,8 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3137
3130
|
fn: $e(() => [
|
|
3138
3131
|
(Y(), we(fa(w.value === r(bt).bottom ? "tfoot" : "tbody"), null, {
|
|
3139
3132
|
default: $e(() => [
|
|
3140
|
-
J("tr",
|
|
3141
|
-
(Y(!0), ge(
|
|
3133
|
+
J("tr", jr, [
|
|
3134
|
+
(Y(!0), ge(et, null, Lt(A.value, (N, $) => (Y(), ge("td", {
|
|
3142
3135
|
key: `${r(Xt)()}_${$}`,
|
|
3143
3136
|
class: "h-[48px] text-fm-color-typo-primary px-16"
|
|
3144
3137
|
}, [
|
|
@@ -3146,11 +3139,11 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3146
3139
|
class: Ye([
|
|
3147
3140
|
"items-center text-fm-color-typo-secondary gap-2",
|
|
3148
3141
|
N.rowType === "NUMERIC" ? "text-right" : "",
|
|
3149
|
-
|
|
3142
|
+
ce.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
|
|
3150
3143
|
])
|
|
3151
3144
|
}, [
|
|
3152
|
-
J("p",
|
|
3153
|
-
J("p",
|
|
3145
|
+
J("p", Jr, Ge(N.rowType === "NUMERIC" ? r(cn)(N.main) : N.main), 1),
|
|
3146
|
+
J("p", Zr, Ge(N.comparison ? N.rowType === "NUMERIC" ? `(${r(cn)(N.comparison)})` : `(${N.comparison})` : ""), 1)
|
|
3154
3147
|
], 2)
|
|
3155
3148
|
]))), 128))
|
|
3156
3149
|
])
|
|
@@ -3164,7 +3157,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3164
3157
|
], 64);
|
|
3165
3158
|
};
|
|
3166
3159
|
}
|
|
3167
|
-
}),
|
|
3160
|
+
}), el = { class: "widget-content" }, tl = /* @__PURE__ */ at({
|
|
3168
3161
|
__name: "WidgetStackBarChart",
|
|
3169
3162
|
props: /* @__PURE__ */ gt({
|
|
3170
3163
|
tileIndex: {}
|
|
@@ -3216,7 +3209,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3216
3209
|
const O = t.value.chartColorBinding === Ke.metric ? re : t.value.chartColorBinding === Ke.breakdown ? pe : R, ne = (ye = t.value.chartColorLayers) == null ? void 0 : ye[O], ee = Number(ne);
|
|
3217
3210
|
return Number.isInteger(ee) && ee > 0 ? ee : O + 1;
|
|
3218
3211
|
}
|
|
3219
|
-
const
|
|
3212
|
+
const ce = v(() => {
|
|
3220
3213
|
if (T.value.length > 0) {
|
|
3221
3214
|
let R = 0, re = 0;
|
|
3222
3215
|
const pe = T.value.map((O, ne) => {
|
|
@@ -3238,11 +3231,11 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3238
3231
|
colorIndex: ee,
|
|
3239
3232
|
breakdownIndex: Ce
|
|
3240
3233
|
});
|
|
3241
|
-
let
|
|
3234
|
+
let ue = O.values;
|
|
3242
3235
|
return {
|
|
3243
3236
|
dataset: {
|
|
3244
3237
|
label: O.name,
|
|
3245
|
-
data:
|
|
3238
|
+
data: ue,
|
|
3246
3239
|
dash: !!O.isCompare,
|
|
3247
3240
|
grouped: x.value ? !1 : void 0,
|
|
3248
3241
|
order: x.value ? ke : void 0,
|
|
@@ -3265,8 +3258,8 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3265
3258
|
return x.value ? pe.map((O) => O.dataset) : pe.map((O) => O.dataset);
|
|
3266
3259
|
} else
|
|
3267
3260
|
return [];
|
|
3268
|
-
}), { hiddenDatasetKeys: ie, isDatasetHidden: D, toggleDatasetVisibility: q } = tn(
|
|
3269
|
-
() =>
|
|
3261
|
+
}), { hiddenDatasetKeys: ie, isDatasetHidden: D, toggleDatasetVisibility: q } = tn(ce), z = v(
|
|
3262
|
+
() => ce.value.map((R, re) => ({
|
|
3270
3263
|
...R,
|
|
3271
3264
|
hidden: D(R, re)
|
|
3272
3265
|
}))
|
|
@@ -3283,8 +3276,8 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3283
3276
|
}), (R, re) => {
|
|
3284
3277
|
var O, ne, ee, ye, Ce, ke;
|
|
3285
3278
|
const pe = ve("FmBarChart");
|
|
3286
|
-
return Y(), ge(
|
|
3287
|
-
J("div",
|
|
3279
|
+
return Y(), ge(et, null, [
|
|
3280
|
+
J("div", el, [
|
|
3288
3281
|
yt(R.$slots, "menu"),
|
|
3289
3282
|
J("div", {
|
|
3290
3283
|
class: Ye(["chart-layout", { "chart-layout--side": P.value && (r(I).display ?? !1) && V.value }])
|
|
@@ -3305,7 +3298,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3305
3298
|
"metric-count": t.value.metricCount,
|
|
3306
3299
|
"hidden-dataset-keys": r(ie),
|
|
3307
3300
|
onToggleDatasetVisibility: r(q)
|
|
3308
|
-
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) :
|
|
3301
|
+
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Me("", !0),
|
|
3309
3302
|
fe(pe, {
|
|
3310
3303
|
ref_key: "chartRef",
|
|
3311
3304
|
ref: a,
|
|
@@ -3344,7 +3337,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3344
3337
|
"metric-count": t.value.metricCount,
|
|
3345
3338
|
"hidden-dataset-keys": r(ie),
|
|
3346
3339
|
onToggleDatasetVisibility: r(q)
|
|
3347
|
-
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) :
|
|
3340
|
+
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Me("", !0)
|
|
3348
3341
|
], 2)
|
|
3349
3342
|
]),
|
|
3350
3343
|
fe(Qt, {
|
|
@@ -3357,7 +3350,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3357
3350
|
], 64);
|
|
3358
3351
|
};
|
|
3359
3352
|
}
|
|
3360
|
-
}),
|
|
3353
|
+
}), nl = { class: "widget-content" }, al = /* @__PURE__ */ at({
|
|
3361
3354
|
__name: "WidgetClusteredStackBarchart",
|
|
3362
3355
|
props: /* @__PURE__ */ gt({
|
|
3363
3356
|
tileIndex: {}
|
|
@@ -3410,7 +3403,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3410
3403
|
metricLabel: O.slice(ee + ne.length)
|
|
3411
3404
|
};
|
|
3412
3405
|
}
|
|
3413
|
-
function
|
|
3406
|
+
function ce(O, ne) {
|
|
3414
3407
|
if (typeof O == "string") {
|
|
3415
3408
|
const ee = O.trim();
|
|
3416
3409
|
if (ee.length > 0)
|
|
@@ -3435,47 +3428,47 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3435
3428
|
const q = v(() => {
|
|
3436
3429
|
if (T.value.length === 0)
|
|
3437
3430
|
return [];
|
|
3438
|
-
const O = T.value.map((
|
|
3439
|
-
source:
|
|
3431
|
+
const O = T.value.map((ue, We) => ({
|
|
3432
|
+
source: ue,
|
|
3440
3433
|
index: We,
|
|
3441
|
-
name: ue
|
|
3442
|
-
values: ie(
|
|
3434
|
+
name: ce(ue == null ? void 0 : ue.name, We),
|
|
3435
|
+
values: ie(ue == null ? void 0 : ue.values)
|
|
3443
3436
|
})), ne = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */ new Map();
|
|
3444
|
-
for (const
|
|
3445
|
-
const { clusterKey: We, metricLabel: Pe } = te(
|
|
3437
|
+
for (const ue of O) {
|
|
3438
|
+
const { clusterKey: We, metricLabel: Pe } = te(ue.name);
|
|
3446
3439
|
ee.has(We) || ee.set(We, ee.size), ne.has(Pe) || ne.set(Pe, ne.size);
|
|
3447
3440
|
}
|
|
3448
3441
|
const ye = Math.max(ne.size, 1), Ce = t.value.chartColorBinding === Ke.breakdown, ke = t.value.chartUseSecondaryMetricShades !== !1;
|
|
3449
|
-
return O.map((
|
|
3442
|
+
return O.map((ue) => {
|
|
3450
3443
|
const We = nt({
|
|
3451
|
-
datasetIndex:
|
|
3452
|
-
isCompare:
|
|
3444
|
+
datasetIndex: ue.index,
|
|
3445
|
+
isCompare: ue.source.isCompare,
|
|
3453
3446
|
metricCount: t.value.metricCount,
|
|
3454
3447
|
mode: t.value.chartColorBinding
|
|
3455
|
-
}), { clusterKey: Pe, metricLabel: u } = te(
|
|
3448
|
+
}), { clusterKey: Pe, metricLabel: u } = te(ue.name), E = ee.get(Pe) ?? 0, Q = ne.get(u) ?? 0, Z = Ce ? Wt({
|
|
3456
3449
|
breakdownIndex: E,
|
|
3457
3450
|
metricIndex: Q,
|
|
3458
3451
|
metricCount: ye,
|
|
3459
|
-
isCompare:
|
|
3452
|
+
isCompare: ue.source.isCompare,
|
|
3460
3453
|
breakdownColors: t.value.chartBreakdownColors,
|
|
3461
3454
|
useSecondaryMetricShades: ke,
|
|
3462
3455
|
colorMode: "clustered"
|
|
3463
3456
|
}) : Ct({
|
|
3464
3457
|
index: We,
|
|
3465
|
-
isCompare:
|
|
3458
|
+
isCompare: ue.source.isCompare,
|
|
3466
3459
|
customColors: t.value.chartColors
|
|
3467
3460
|
}), be = D({
|
|
3468
|
-
datasetIndex:
|
|
3461
|
+
datasetIndex: ue.index,
|
|
3469
3462
|
colorIndex: We
|
|
3470
3463
|
});
|
|
3471
3464
|
return {
|
|
3472
|
-
label:
|
|
3465
|
+
label: ue.name,
|
|
3473
3466
|
tooltipLabel: `${Pe} - ${u}`,
|
|
3474
|
-
data:
|
|
3475
|
-
dash: !!
|
|
3467
|
+
data: ue.values,
|
|
3468
|
+
dash: !!ue.source.isCompare,
|
|
3476
3469
|
grouped: !0,
|
|
3477
3470
|
order: x.value ? be : void 0,
|
|
3478
|
-
stack:
|
|
3471
|
+
stack: ue.source.isCompare ? `${Pe}__compare` : `${Pe}__main`,
|
|
3479
3472
|
backgroundColor: Z
|
|
3480
3473
|
};
|
|
3481
3474
|
});
|
|
@@ -3495,10 +3488,10 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3495
3488
|
}), Re([R], () => {
|
|
3496
3489
|
tt(() => pe());
|
|
3497
3490
|
}), (O, ne) => {
|
|
3498
|
-
var ye, Ce, ke,
|
|
3491
|
+
var ye, Ce, ke, ue, We, Pe;
|
|
3499
3492
|
const ee = ve("FmBarChart");
|
|
3500
|
-
return Y(), ge(
|
|
3501
|
-
J("div",
|
|
3493
|
+
return Y(), ge(et, null, [
|
|
3494
|
+
J("div", nl, [
|
|
3502
3495
|
yt(O.$slots, "menu"),
|
|
3503
3496
|
J("div", {
|
|
3504
3497
|
class: Ye(["chart-layout", { "chart-layout--side": P.value && (r(I).display ?? !1) && V.value }])
|
|
@@ -3519,7 +3512,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3519
3512
|
"metric-count": t.value.metricCount,
|
|
3520
3513
|
"hidden-dataset-keys": r(z),
|
|
3521
3514
|
onToggleDatasetVisibility: r($)
|
|
3522
|
-
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) :
|
|
3515
|
+
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Me("", !0),
|
|
3523
3516
|
fe(ee, {
|
|
3524
3517
|
ref_key: "chartRef",
|
|
3525
3518
|
ref: a,
|
|
@@ -3548,7 +3541,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3548
3541
|
enabled: r(I).display ?? !1,
|
|
3549
3542
|
position: p.value,
|
|
3550
3543
|
"max-width": r(I).maxWidth,
|
|
3551
|
-
"text-color": (
|
|
3544
|
+
"text-color": (ue = r(I).labels) == null ? void 0 : ue.color,
|
|
3552
3545
|
"font-size": (Pe = (We = r(I).labels) == null ? void 0 : We.font) == null ? void 0 : Pe.size,
|
|
3553
3546
|
"legend-update-key": R.value,
|
|
3554
3547
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -3558,7 +3551,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3558
3551
|
"metric-count": t.value.metricCount,
|
|
3559
3552
|
"hidden-dataset-keys": r(z),
|
|
3560
3553
|
onToggleDatasetVisibility: r($)
|
|
3561
|
-
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) :
|
|
3554
|
+
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Me("", !0)
|
|
3562
3555
|
], 2)
|
|
3563
3556
|
]),
|
|
3564
3557
|
fe(Qt, {
|
|
@@ -3572,7 +3565,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3572
3565
|
};
|
|
3573
3566
|
}
|
|
3574
3567
|
});
|
|
3575
|
-
function
|
|
3568
|
+
function ol(e) {
|
|
3576
3569
|
const n = Reflect.get(e, "lineStyle"), t = Reflect.get(e, "dash") === !0;
|
|
3577
3570
|
return yo(n, t);
|
|
3578
3571
|
}
|
|
@@ -3583,12 +3576,12 @@ function Fa(e = "report-line-style-plugin") {
|
|
|
3583
3576
|
var a;
|
|
3584
3577
|
(((a = n == null ? void 0 : n.data) == null ? void 0 : a.datasets) ?? []).forEach((l) => {
|
|
3585
3578
|
const s = l;
|
|
3586
|
-
Reflect.set(s, "borderDash",
|
|
3579
|
+
Reflect.set(s, "borderDash", ol(s));
|
|
3587
3580
|
});
|
|
3588
3581
|
}
|
|
3589
3582
|
};
|
|
3590
3583
|
}
|
|
3591
|
-
const
|
|
3584
|
+
const rl = { class: "widget-content" }, ll = /* @__PURE__ */ at({
|
|
3592
3585
|
__name: "WidgetStackLineChart",
|
|
3593
3586
|
props: /* @__PURE__ */ gt({
|
|
3594
3587
|
tileIndex: {}
|
|
@@ -3676,10 +3669,10 @@ const ll = { class: "widget-content" }, sl = /* @__PURE__ */ at({
|
|
|
3676
3669
|
pointBorderWidth: T.value ? 2 : void 0
|
|
3677
3670
|
};
|
|
3678
3671
|
})
|
|
3679
|
-
] : []), { hiddenDatasetKeys: te, isDatasetHidden:
|
|
3672
|
+
] : []), { hiddenDatasetKeys: te, isDatasetHidden: ce, toggleDatasetVisibility: ie } = tn(oe), D = v(
|
|
3680
3673
|
() => oe.value.map((N, $) => ({
|
|
3681
3674
|
...N,
|
|
3682
|
-
hidden:
|
|
3675
|
+
hidden: ce(N, $)
|
|
3683
3676
|
}))
|
|
3684
3677
|
), q = Ht();
|
|
3685
3678
|
function z() {
|
|
@@ -3694,8 +3687,8 @@ const ll = { class: "widget-content" }, sl = /* @__PURE__ */ at({
|
|
|
3694
3687
|
}), (N, $) => {
|
|
3695
3688
|
var re, pe, O, ne, ee, ye;
|
|
3696
3689
|
const R = ve("FmLineChart");
|
|
3697
|
-
return Y(), ge(
|
|
3698
|
-
J("div",
|
|
3690
|
+
return Y(), ge(et, null, [
|
|
3691
|
+
J("div", rl, [
|
|
3699
3692
|
yt(N.$slots, "menu"),
|
|
3700
3693
|
J("div", {
|
|
3701
3694
|
class: Ye(["chart-layout", { "chart-layout--side": p.value && (r(f).display ?? !1) && X.value }])
|
|
@@ -3716,7 +3709,7 @@ const ll = { class: "widget-content" }, sl = /* @__PURE__ */ at({
|
|
|
3716
3709
|
"metric-count": t.value.metricCount,
|
|
3717
3710
|
"hidden-dataset-keys": r(te),
|
|
3718
3711
|
onToggleDatasetVisibility: r(ie)
|
|
3719
|
-
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) :
|
|
3712
|
+
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Me("", !0),
|
|
3720
3713
|
fe(R, {
|
|
3721
3714
|
ref_key: "chartRef",
|
|
3722
3715
|
ref: a,
|
|
@@ -3755,7 +3748,7 @@ const ll = { class: "widget-content" }, sl = /* @__PURE__ */ at({
|
|
|
3755
3748
|
"metric-count": t.value.metricCount,
|
|
3756
3749
|
"hidden-dataset-keys": r(te),
|
|
3757
3750
|
onToggleDatasetVisibility: r(ie)
|
|
3758
|
-
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) :
|
|
3751
|
+
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Me("", !0)
|
|
3759
3752
|
], 2)
|
|
3760
3753
|
]),
|
|
3761
3754
|
fe(Qt, {
|
|
@@ -3782,16 +3775,16 @@ const ll = { class: "widget-content" }, sl = /* @__PURE__ */ at({
|
|
|
3782
3775
|
"col-span-11",
|
|
3783
3776
|
"col-span-12"
|
|
3784
3777
|
];
|
|
3785
|
-
function
|
|
3778
|
+
function sl(e) {
|
|
3786
3779
|
return e < 12 ? Nt[e - 1] : Nt[11];
|
|
3787
3780
|
}
|
|
3788
|
-
function
|
|
3781
|
+
function il(e) {
|
|
3789
3782
|
return e < 12 ? Nt[Math.min(11, e * 2 - 1)] : Nt[11];
|
|
3790
3783
|
}
|
|
3791
|
-
function
|
|
3784
|
+
function ul(e) {
|
|
3792
3785
|
return e < 12 ? Nt[Math.min(11, e * 3 - 1)] : Nt[11];
|
|
3793
3786
|
}
|
|
3794
|
-
const
|
|
3787
|
+
const cl = { class: "widget-content" }, dl = /* @__PURE__ */ at({
|
|
3795
3788
|
__name: "WidgetLinechart",
|
|
3796
3789
|
props: /* @__PURE__ */ gt({
|
|
3797
3790
|
tileIndex: {}
|
|
@@ -3862,12 +3855,12 @@ const dl = { class: "widget-content" }, fl = /* @__PURE__ */ at({
|
|
|
3862
3855
|
C.value ? Ce = H.value.map(
|
|
3863
3856
|
(u, E) => E === R ? $.values[0] : Number.NaN
|
|
3864
3857
|
) : d.value && (Ce = [NaN, Ce[0], NaN]);
|
|
3865
|
-
const ke = d.value || C.value,
|
|
3858
|
+
const ke = d.value || C.value, ue = nt({
|
|
3866
3859
|
datasetIndex: R,
|
|
3867
3860
|
isCompare: $.isCompare,
|
|
3868
3861
|
metricCount: t.value.metricCount,
|
|
3869
3862
|
mode: t.value.lineStyleBinding
|
|
3870
|
-
}), We = (Pe = t.value.lineStyles) == null ? void 0 : Pe[
|
|
3863
|
+
}), We = (Pe = t.value.lineStyles) == null ? void 0 : Pe[ue];
|
|
3871
3864
|
return {
|
|
3872
3865
|
label: $.name,
|
|
3873
3866
|
data: Ce,
|
|
@@ -3882,7 +3875,7 @@ const dl = { class: "widget-content" }, fl = /* @__PURE__ */ at({
|
|
|
3882
3875
|
pointBorderWidth: ke ? 2 : void 0
|
|
3883
3876
|
};
|
|
3884
3877
|
})
|
|
3885
|
-
] : []), { hiddenDatasetKeys:
|
|
3878
|
+
] : []), { hiddenDatasetKeys: ce, isDatasetHidden: ie, toggleDatasetVisibility: D } = tn(te), q = v(
|
|
3886
3879
|
() => te.value.map(($, R) => ({
|
|
3887
3880
|
...$,
|
|
3888
3881
|
hidden: ie($, R)
|
|
@@ -3900,8 +3893,8 @@ const dl = { class: "widget-content" }, fl = /* @__PURE__ */ at({
|
|
|
3900
3893
|
}), ($, R) => {
|
|
3901
3894
|
var pe, O, ne, ee, ye, Ce;
|
|
3902
3895
|
const re = ve("FmLineChart");
|
|
3903
|
-
return Y(), ge(
|
|
3904
|
-
J("div",
|
|
3896
|
+
return Y(), ge(et, null, [
|
|
3897
|
+
J("div", cl, [
|
|
3905
3898
|
yt($.$slots, "menu"),
|
|
3906
3899
|
J("div", {
|
|
3907
3900
|
class: Ye(["chart-layout", { "chart-layout--side": V.value && (r(g).display ?? !1) && G.value }])
|
|
@@ -3920,9 +3913,9 @@ const dl = { class: "widget-content" }, fl = /* @__PURE__ */ at({
|
|
|
3920
3913
|
"chart-breakdown-colors": t.value.chartBreakdownColors,
|
|
3921
3914
|
"chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
|
|
3922
3915
|
"metric-count": t.value.metricCount,
|
|
3923
|
-
"hidden-dataset-keys": r(
|
|
3916
|
+
"hidden-dataset-keys": r(ce),
|
|
3924
3917
|
onToggleDatasetVisibility: r(D)
|
|
3925
|
-
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) :
|
|
3918
|
+
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Me("", !0),
|
|
3926
3919
|
fe(re, {
|
|
3927
3920
|
ref_key: "chartRef",
|
|
3928
3921
|
ref: a,
|
|
@@ -3958,9 +3951,9 @@ const dl = { class: "widget-content" }, fl = /* @__PURE__ */ at({
|
|
|
3958
3951
|
"chart-breakdown-colors": t.value.chartBreakdownColors,
|
|
3959
3952
|
"chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
|
|
3960
3953
|
"metric-count": t.value.metricCount,
|
|
3961
|
-
"hidden-dataset-keys": r(
|
|
3954
|
+
"hidden-dataset-keys": r(ce),
|
|
3962
3955
|
onToggleDatasetVisibility: r(D)
|
|
3963
|
-
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) :
|
|
3956
|
+
}, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Me("", !0)
|
|
3964
3957
|
], 2)
|
|
3965
3958
|
]),
|
|
3966
3959
|
fe(Qt, {
|
|
@@ -3973,7 +3966,7 @@ const dl = { class: "widget-content" }, fl = /* @__PURE__ */ at({
|
|
|
3973
3966
|
], 64);
|
|
3974
3967
|
};
|
|
3975
3968
|
}
|
|
3976
|
-
}),
|
|
3969
|
+
}), fl = { class: "flex flex-col gap-16" }, hl = { class: "flex flex-row" }, ml = /* @__PURE__ */ at({
|
|
3977
3970
|
__name: "PdfOrientationDialog",
|
|
3978
3971
|
props: /* @__PURE__ */ gt({
|
|
3979
3972
|
reportType: {},
|
|
@@ -4025,7 +4018,7 @@ const dl = { class: "widget-content" }, fl = /* @__PURE__ */ at({
|
|
|
4025
4018
|
onValidationSuccess: d
|
|
4026
4019
|
}, {
|
|
4027
4020
|
default: $e(() => [
|
|
4028
|
-
J("div",
|
|
4021
|
+
J("div", fl, [
|
|
4029
4022
|
fe(b, {
|
|
4030
4023
|
modelValue: T.value,
|
|
4031
4024
|
"onUpdate:modelValue": M[0] || (M[0] = (w) => T.value = w)
|
|
@@ -4043,7 +4036,7 @@ const dl = { class: "widget-content" }, fl = /* @__PURE__ */ at({
|
|
|
4043
4036
|
_: 1
|
|
4044
4037
|
}, 8, ["modelValue"])
|
|
4045
4038
|
]),
|
|
4046
|
-
J("div",
|
|
4039
|
+
J("div", hl, [
|
|
4047
4040
|
M[4] || (M[4] = J("div", { class: "grow" }, null, -1)),
|
|
4048
4041
|
fe(f, {
|
|
4049
4042
|
label: r(n)("report.common.cancel"),
|
|
@@ -4067,7 +4060,7 @@ const dl = { class: "widget-content" }, fl = /* @__PURE__ */ at({
|
|
|
4067
4060
|
};
|
|
4068
4061
|
}
|
|
4069
4062
|
});
|
|
4070
|
-
function
|
|
4063
|
+
function pl(e) {
|
|
4071
4064
|
const { breakpoints: n } = fn(), { containerRef: t, isTable: a = L(!0) } = e;
|
|
4072
4065
|
let l = L(1), s = null, i = null, h = null, c = null, _ = null, B = null;
|
|
4073
4066
|
function H() {
|
|
@@ -4136,8 +4129,8 @@ function vl(e) {
|
|
|
4136
4129
|
boxSizing: "border-box",
|
|
4137
4130
|
cursor: te.cursor || "pointer",
|
|
4138
4131
|
pointerEvents: "auto"
|
|
4139
|
-
}), G.onclick = (
|
|
4140
|
-
|
|
4132
|
+
}), G.onclick = (ce) => {
|
|
4133
|
+
ce.preventDefault(), ce.stopPropagation();
|
|
4141
4134
|
const ie = oe.querySelector(
|
|
4142
4135
|
"button, a, [role='button']"
|
|
4143
4136
|
);
|
|
@@ -4170,7 +4163,7 @@ function vl(e) {
|
|
|
4170
4163
|
return;
|
|
4171
4164
|
}
|
|
4172
4165
|
s.style.visibility = "visible", s.style.top = `${p}px`;
|
|
4173
|
-
const X = window.getComputedStyle(t.value), G = parseFloat(X.paddingLeft) || 0, oe = parseFloat(X.paddingRight) || 0, te = x.left + G,
|
|
4166
|
+
const X = window.getComputedStyle(t.value), G = parseFloat(X.paddingLeft) || 0, oe = parseFloat(X.paddingRight) || 0, te = x.left + G, ce = x.right - oe, ie = Math.max(te, x.left), D = Math.min(ce, x.right), q = Math.max(0, D - ie);
|
|
4174
4167
|
if (q <= 0) {
|
|
4175
4168
|
s.style.visibility = "hidden";
|
|
4176
4169
|
return;
|
|
@@ -4244,13 +4237,13 @@ function vl(e) {
|
|
|
4244
4237
|
g();
|
|
4245
4238
|
}), { refresh: w, cleanup: g };
|
|
4246
4239
|
}
|
|
4247
|
-
const
|
|
4240
|
+
const vl = {
|
|
4248
4241
|
key: 1,
|
|
4249
4242
|
class: "grow"
|
|
4250
|
-
},
|
|
4243
|
+
}, gl = {
|
|
4251
4244
|
key: 2,
|
|
4252
4245
|
class: "flex"
|
|
4253
|
-
},
|
|
4246
|
+
}, Xl = /* @__PURE__ */ at({
|
|
4254
4247
|
__name: "DynamicWidget",
|
|
4255
4248
|
props: /* @__PURE__ */ gt({
|
|
4256
4249
|
index: {
|
|
@@ -4280,13 +4273,13 @@ const gl = {
|
|
|
4280
4273
|
const n = L(!0), t = ct(e, "modelValue"), a = t.value.widget.config, { t: l, te: s, locale: i } = wt(), h = e, c = L(null), _ = v(() => t.value.widget.type === se.Table), B = v(() => {
|
|
4281
4274
|
var k;
|
|
4282
4275
|
return (k = c.value) == null ? void 0 : k.$el;
|
|
4283
|
-
}), { refresh: H } =
|
|
4276
|
+
}), { refresh: H } = pl({
|
|
4284
4277
|
containerRef: B,
|
|
4285
4278
|
isTable: _
|
|
4286
4279
|
}), T = L(a.rollup), C = L(Xt()), d = L(a.drillDimension), F = v(() => {
|
|
4287
4280
|
if (ut.value.length > 0) {
|
|
4288
4281
|
const k = ut.value.findIndex(
|
|
4289
|
-
(
|
|
4282
|
+
(Ie) => Ie.value === d.value
|
|
4290
4283
|
);
|
|
4291
4284
|
return k >= 0 ? k : 0;
|
|
4292
4285
|
} else
|
|
@@ -4301,7 +4294,7 @@ const gl = {
|
|
|
4301
4294
|
Array.isArray(a.chartBreakdownColors) ? [...a.chartBreakdownColors] : void 0
|
|
4302
4295
|
), G = L(a.chartUseSecondaryMetricShades ?? !0), oe = L(a.chartColorBinding), te = L(
|
|
4303
4296
|
Array.isArray(a.lineStyles) ? [...a.lineStyles] : void 0
|
|
4304
|
-
),
|
|
4297
|
+
), ce = L(a.lineStyleBinding), ie = L(a.showLabel ?? !1), D = L(a.labelAlign ?? kn.center), q = L(a.labelAnchor ?? _n.center), z = L(a.labelRotation ?? 0), N = L(a.labelOffset ?? 0), $ = L(a.labelFontSize ?? 12), R = v(() => a.showSearchBar), re = L(a.showX ?? !0), pe = L(a.xPosition ?? Tn.bottom), O = L(a.showXGrid ?? !1), ne = L(a.showXTick ?? !0), ee = L(a.xTickFontSize ?? 12), ye = L(a.showXTitle ?? !1), Ce = L(a.xTitle ?? ""), ke = L(a.xTitleFontSize ?? 12), ue = L(a.showY ?? !0), We = L(a.yPosition ?? Ln.left), Pe = L(a.showYGrid ?? !1), u = L(a.showYTick ?? !0), E = L(a.yTickFontSize ?? 12), Q = L(a.showYTitle ?? !1), Z = L(a.yTitle ?? ""), be = L(a.yTitleFontSize ?? 12), ze = L(a.showLegend ?? void 0), Xe = L(a.legendPosition ?? Dn.top), Ne = L(a.usePointStyle ?? !0), je = L(a.legendFontSize), Fe = L(a.legendColor ?? "#6b6b6b"), de = L(a.legendMaxWidth), W = L(a.maxTooltipItems), Se = L(a.stackBarOverlap ?? !1), Te = L(a.rowHeight ?? 0), Le = L(a.colWidths ?? []), He = L(!1), Be = L(""), { breakpoints: De, getBreakpointsBoundary: Ee } = fn(), Oe = L(), Ue = v(
|
|
4305
4298
|
() => h.customScreenWidth === void 0 ? window.innerWidth : h.customScreenWidth
|
|
4306
4299
|
), Ve = v(
|
|
4307
4300
|
() => (Ue == null ? void 0 : Ue.value) > Ee("xs")[1] && (Ue == null ? void 0 : Ue.value) <= Ee("sm")[1]
|
|
@@ -4309,7 +4302,7 @@ const gl = {
|
|
|
4309
4302
|
() => (Ue == null ? void 0 : Ue.value) > Ee("sm")[1] && (Ue == null ? void 0 : Ue.value) <= Ee("md")[1]
|
|
4310
4303
|
), hn = v(() => (Ue == null ? void 0 : Ue.value) > Ee("md")[1]), mn = v(() => {
|
|
4311
4304
|
const k = t.value.size.width;
|
|
4312
|
-
return hn.value || nn.value ?
|
|
4305
|
+
return hn.value || nn.value ? sl(k) : Ve.value ? il(k) : ul(k);
|
|
4313
4306
|
}), Dt = v(
|
|
4314
4307
|
() => po.find((k) => k.type === t.value.widget.type)
|
|
4315
4308
|
), o = Cn(() => {
|
|
@@ -4319,23 +4312,23 @@ const gl = {
|
|
|
4319
4312
|
if (vo(le.value.type, m.value))
|
|
4320
4313
|
switch (t.value.widget.type) {
|
|
4321
4314
|
case se.BarChart:
|
|
4322
|
-
return
|
|
4315
|
+
return Ar;
|
|
4323
4316
|
case se.StackBarChart:
|
|
4324
|
-
return
|
|
4317
|
+
return tl;
|
|
4325
4318
|
case se.ClusteredStackBarChart:
|
|
4326
|
-
return
|
|
4319
|
+
return al;
|
|
4327
4320
|
case se.LineChart:
|
|
4328
|
-
return
|
|
4321
|
+
return dl;
|
|
4329
4322
|
case se.StackLineChart:
|
|
4330
|
-
return
|
|
4323
|
+
return ll;
|
|
4331
4324
|
case se.Circular:
|
|
4332
|
-
return
|
|
4325
|
+
return Rr;
|
|
4333
4326
|
case se.Scorecard:
|
|
4334
|
-
return
|
|
4327
|
+
return Er;
|
|
4335
4328
|
case se.Spacer:
|
|
4336
|
-
return
|
|
4329
|
+
return qr;
|
|
4337
4330
|
case se.Table:
|
|
4338
|
-
return
|
|
4331
|
+
return Qr;
|
|
4339
4332
|
default:
|
|
4340
4333
|
return xn;
|
|
4341
4334
|
}
|
|
@@ -4366,14 +4359,14 @@ const gl = {
|
|
|
4366
4359
|
const k = ((rt = le.value.config.metrics) == null ? void 0 : rt.length) ?? 0;
|
|
4367
4360
|
if (!le.value.config.isBlend)
|
|
4368
4361
|
return k;
|
|
4369
|
-
const
|
|
4362
|
+
const Ie = (le.value.config.joinDatasources ?? []).reduce(
|
|
4370
4363
|
(xt, pn) => {
|
|
4371
4364
|
var It;
|
|
4372
4365
|
return xt + (((It = pn.metrics) == null ? void 0 : It.length) ?? 0);
|
|
4373
4366
|
},
|
|
4374
4367
|
0
|
|
4375
4368
|
);
|
|
4376
|
-
return k +
|
|
4369
|
+
return k + Ie;
|
|
4377
4370
|
});
|
|
4378
4371
|
function ot() {
|
|
4379
4372
|
return {
|
|
@@ -4392,7 +4385,7 @@ const gl = {
|
|
|
4392
4385
|
chartColorBinding: oe.value,
|
|
4393
4386
|
metricCount: qe.value,
|
|
4394
4387
|
lineStyles: te.value,
|
|
4395
|
-
lineStyleBinding:
|
|
4388
|
+
lineStyleBinding: ce.value,
|
|
4396
4389
|
showLabel: ie.value,
|
|
4397
4390
|
labelAnchor: q.value,
|
|
4398
4391
|
labelAlign: D.value,
|
|
@@ -4407,7 +4400,7 @@ const gl = {
|
|
|
4407
4400
|
showXTitle: ye.value,
|
|
4408
4401
|
xTitle: Ce.value,
|
|
4409
4402
|
xTitleFontSize: ke.value,
|
|
4410
|
-
showY:
|
|
4403
|
+
showY: ue.value,
|
|
4411
4404
|
yPosition: We.value,
|
|
4412
4405
|
showYGrid: Pe.value,
|
|
4413
4406
|
showYTick: u.value,
|
|
@@ -4433,10 +4426,10 @@ const gl = {
|
|
|
4433
4426
|
rollupPosition: le.value.config.rollupPosition,
|
|
4434
4427
|
grandTotalLabel: le.value.config.grandTotalLabel,
|
|
4435
4428
|
rowHeight: Te.value,
|
|
4436
|
-
colWidths:
|
|
4429
|
+
colWidths: Le.value
|
|
4437
4430
|
};
|
|
4438
4431
|
}
|
|
4439
|
-
const
|
|
4432
|
+
const Qe = v(() => {
|
|
4440
4433
|
switch (le.value.type) {
|
|
4441
4434
|
case se.Table:
|
|
4442
4435
|
return dt();
|
|
@@ -4453,13 +4446,13 @@ const gl = {
|
|
|
4453
4446
|
}), ft = v(() => {
|
|
4454
4447
|
const { config: k } = t.value.widget;
|
|
4455
4448
|
if (k.rollup != null) {
|
|
4456
|
-
const
|
|
4457
|
-
return
|
|
4449
|
+
const Ie = [...k.dimensions].filter((rt) => !rt.hide);
|
|
4450
|
+
return Ie.sort(
|
|
4458
4451
|
(rt, xt) => (k.rowIds || []).indexOf(gn(rt)) - (k.rowIds || []).indexOf(gn(xt))
|
|
4459
4452
|
), [
|
|
4460
4453
|
{ label: _t(l, s, "None", "other"), value: "none" },
|
|
4461
4454
|
{ label: _t(l, s, "Grand Total", "other"), value: 0 },
|
|
4462
|
-
...[...
|
|
4455
|
+
...[...Ie].slice(0, Ie.length - 1).map((rt, xt) => ({
|
|
4463
4456
|
label: _t(l, s, rt.label, "other"),
|
|
4464
4457
|
value: xt + 1
|
|
4465
4458
|
}))
|
|
@@ -4468,20 +4461,20 @@ const gl = {
|
|
|
4468
4461
|
return [];
|
|
4469
4462
|
}), ut = v(() => {
|
|
4470
4463
|
const { config: k } = le.value;
|
|
4471
|
-
return k.isDrillable ? k.dimensions.map((
|
|
4472
|
-
label: _t(l, s,
|
|
4473
|
-
value: gn(
|
|
4464
|
+
return k.isDrillable ? k.dimensions.map((Ie) => ({
|
|
4465
|
+
label: _t(l, s, Ie.label, "other"),
|
|
4466
|
+
value: gn(Ie)
|
|
4474
4467
|
})) : [];
|
|
4475
4468
|
}), Ut = v(() => {
|
|
4476
4469
|
const k = t.value.id;
|
|
4477
4470
|
return (he.value || []).filter(
|
|
4478
|
-
(
|
|
4471
|
+
(Ie) => Array.isArray(Ie.tileIds) && Ie.tileIds.includes(k)
|
|
4479
4472
|
);
|
|
4480
4473
|
});
|
|
4481
4474
|
Re(
|
|
4482
4475
|
() => t.value.widget.config,
|
|
4483
4476
|
(k) => {
|
|
4484
|
-
T.value = k.rollup, b.value = k.showTitle ?? !0, f.value = k.titleFontSize ?? 14, g.value = k.titleBold ?? !1, w.value = k.titleItalic ?? !1, x.value = k.titleUnderline ?? !1, P.value = k.chartHeight ?? void 0, A.value = k.chartWidth ?? void 0, p.value = Array.isArray(k.chartColors) ? [...k.chartColors] : void 0, V.value = Array.isArray(k.chartColorLayers) ? [...k.chartColorLayers] : void 0, X.value = Array.isArray(k.chartBreakdownColors) ? [...k.chartBreakdownColors] : void 0, G.value = k.chartUseSecondaryMetricShades ?? !0, oe.value = k.chartColorBinding, te.value = Array.isArray(k.lineStyles) ? [...k.lineStyles] : void 0,
|
|
4477
|
+
T.value = k.rollup, b.value = k.showTitle ?? !0, f.value = k.titleFontSize ?? 14, g.value = k.titleBold ?? !1, w.value = k.titleItalic ?? !1, x.value = k.titleUnderline ?? !1, P.value = k.chartHeight ?? void 0, A.value = k.chartWidth ?? void 0, p.value = Array.isArray(k.chartColors) ? [...k.chartColors] : void 0, V.value = Array.isArray(k.chartColorLayers) ? [...k.chartColorLayers] : void 0, X.value = Array.isArray(k.chartBreakdownColors) ? [...k.chartBreakdownColors] : void 0, G.value = k.chartUseSecondaryMetricShades ?? !0, oe.value = k.chartColorBinding, te.value = Array.isArray(k.lineStyles) ? [...k.lineStyles] : void 0, ce.value = k.lineStyleBinding, ie.value = k.showLabel ?? !1, D.value = k.labelAlign ?? kn.center, q.value = k.labelAnchor ?? _n.center, z.value = k.labelRotation ?? 0, N.value = k.labelOffset ?? 0, $.value = k.labelFontSize ?? 12, re.value = k.showX ?? !0, pe.value = k.xPosition ?? Tn.bottom, O.value = k.showXGrid ?? !1, ne.value = k.showXTick ?? !0, ee.value = k.xTickFontSize ?? 12, ye.value = k.showXTitle ?? !1, Ce.value = k.xTitle ?? "", ke.value = k.xTitleFontSize ?? 12, ue.value = k.showY ?? !0, We.value = k.yPosition ?? Ln.left, Pe.value = k.showYGrid ?? !0, u.value = k.showYTick ?? !0, E.value = k.yTickFontSize ?? 12, Q.value = k.showYTitle ?? !1, Z.value = k.yTitle ?? "", be.value = k.yTitleFontSize ?? 12, ze.value = k.showLegend ?? void 0, Xe.value = k.legendPosition ?? Dn.top, Ne.value = k.usePointStyle ?? !0, je.value = k.legendFontSize, Fe.value = k.legendColor ?? "#6b6b6b", de.value = k.legendMaxWidth, W.value = k.maxTooltipItems, Se.value = k.stackBarOverlap ?? !1, Te.value = k.rowHeight ?? 0, Le.value = k.colWidths ?? [], C.value = Xt();
|
|
4485
4478
|
},
|
|
4486
4479
|
{ deep: !0 }
|
|
4487
4480
|
), Re([() => T.value], () => {
|
|
@@ -4507,9 +4500,9 @@ const gl = {
|
|
|
4507
4500
|
},
|
|
4508
4501
|
{ deep: !0 }
|
|
4509
4502
|
), it(() => {
|
|
4510
|
-
o(),
|
|
4503
|
+
o(), De.value.sm || De.value.md || De.value.xs ? (console.log("Ignoring resize event due to keyboard"), addEventListener("change", o)) : addEventListener("resize", o), Wn();
|
|
4511
4504
|
}), ha(() => {
|
|
4512
|
-
|
|
4505
|
+
De.value.sm || De.value.md || De.value.xs ? (console.log("Ignoring resize event due to keyboard"), removeEventListener("change", o)) : removeEventListener("resize", o);
|
|
4513
4506
|
});
|
|
4514
4507
|
const Kt = Vn();
|
|
4515
4508
|
let an;
|
|
@@ -4524,8 +4517,8 @@ const gl = {
|
|
|
4524
4517
|
}
|
|
4525
4518
|
try {
|
|
4526
4519
|
n.value = !0, an && an.abort(), an = new AbortController();
|
|
4527
|
-
const k = an.signal,
|
|
4528
|
-
xe.value ===
|
|
4520
|
+
const k = an.signal, Ie = xe.value, rt = await Cn(pa, 500)(le.value, k, t.value.id);
|
|
4521
|
+
xe.value === Ie && (m.value = rt, C.value = Xt(), setTimeout(() => H(), 100)), n.value = !1;
|
|
4529
4522
|
} catch (k) {
|
|
4530
4523
|
k.code !== "ERR_CANCELED" && (m.value = null, Kt.open({ message: `Invalid chart ${le.value.type}`, type: "error" }), console.log(k), n.value = !1);
|
|
4531
4524
|
}
|
|
@@ -4564,7 +4557,7 @@ const gl = {
|
|
|
4564
4557
|
}) : k === Ft.PDF && (On.value = k, En.value = h.index, He.value = !0);
|
|
4565
4558
|
}
|
|
4566
4559
|
})), Pa = le.value.type === se.Spacer ? "flat" : "outlined", za = le.value.type === se.Spacer ? "p-0" : "p-16";
|
|
4567
|
-
return (k,
|
|
4560
|
+
return (k, Ie) => {
|
|
4568
4561
|
const rt = ve("FmTooltip"), xt = ve("FmSearch"), pn = ve("FmCheckbox"), It = ve("FmButton"), Na = ve("FmSelect"), Ha = ve("FmMenuItem"), Wa = ve("FmMenu"), Oa = ve("FmForm"), Ea = ve("FmCircularProgress"), Ua = ve("FmCard");
|
|
4569
4562
|
return Y(), we(Ua, {
|
|
4570
4563
|
ref_key: "tileCard",
|
|
@@ -4573,9 +4566,9 @@ const gl = {
|
|
|
4573
4566
|
variant: r(Pa)
|
|
4574
4567
|
}, {
|
|
4575
4568
|
default: $e(() => [
|
|
4576
|
-
fe(
|
|
4569
|
+
fe(ml, {
|
|
4577
4570
|
modelValue: He.value,
|
|
4578
|
-
"onUpdate:modelValue":
|
|
4571
|
+
"onUpdate:modelValue": Ie[0] || (Ie[0] = (Mt) => He.value = Mt),
|
|
4579
4572
|
"report-type": On.value,
|
|
4580
4573
|
index: En.value
|
|
4581
4574
|
}, null, 8, ["modelValue", "report-type", "index"]),
|
|
@@ -4585,8 +4578,8 @@ const gl = {
|
|
|
4585
4578
|
}, [
|
|
4586
4579
|
(Y(), we(fa(y.value), {
|
|
4587
4580
|
key: C.value,
|
|
4588
|
-
modelValue:
|
|
4589
|
-
"onUpdate:modelValue":
|
|
4581
|
+
modelValue: Qe.value,
|
|
4582
|
+
"onUpdate:modelValue": Ie[4] || (Ie[4] = (Mt) => Qe.value = Mt),
|
|
4590
4583
|
"tile-index": h.index
|
|
4591
4584
|
}, {
|
|
4592
4585
|
menu: $e(() => [
|
|
@@ -4615,25 +4608,25 @@ const gl = {
|
|
|
4615
4608
|
f.value <= 18 ? "fm-typo-en-body-md-400" : "",
|
|
4616
4609
|
le.value.description ? "border-b-2 border-dashed border-gray-300" : ""
|
|
4617
4610
|
]])
|
|
4618
|
-
}, Ge(r(_t)(r(l), r(s), le.value.title, "other")), 7)) :
|
|
4611
|
+
}, Ge(r(_t)(r(l), r(s), le.value.title, "other")), 7)) : Me("", !0)
|
|
4619
4612
|
]),
|
|
4620
4613
|
_: 1
|
|
4621
4614
|
}, 8, ["content", "disabled"]),
|
|
4622
4615
|
(Mt = Dt.value) != null && Mt.showSearchBar ? (Y(), we(xt, {
|
|
4623
4616
|
key: 0,
|
|
4624
4617
|
modelValue: Be.value,
|
|
4625
|
-
"onUpdate:modelValue":
|
|
4618
|
+
"onUpdate:modelValue": Ie[1] || (Ie[1] = (ht) => Be.value = ht),
|
|
4626
4619
|
class: "grow"
|
|
4627
|
-
}, null, 8, ["modelValue"])) : (Y(), ge("div",
|
|
4620
|
+
}, null, 8, ["modelValue"])) : (Y(), ge("div", vl)),
|
|
4628
4621
|
Ga(fe(pn, {
|
|
4629
4622
|
modelValue: ie.value,
|
|
4630
|
-
"onUpdate:modelValue":
|
|
4623
|
+
"onUpdate:modelValue": Ie[2] || (Ie[2] = (ht) => ie.value = ht),
|
|
4631
4624
|
label: "Label",
|
|
4632
4625
|
value: !1
|
|
4633
4626
|
}, null, 8, ["modelValue"]), [
|
|
4634
4627
|
[ja, (Un = Dt.value) == null ? void 0 : Un.showLabel]
|
|
4635
4628
|
]),
|
|
4636
|
-
(Kn = Dt.value) != null && Kn.showDrillDimension && ut.value.length > 0 ? (Y(), ge("div",
|
|
4629
|
+
(Kn = Dt.value) != null && Kn.showDrillDimension && ut.value.length > 0 ? (Y(), ge("div", gl, [
|
|
4637
4630
|
fe(It, {
|
|
4638
4631
|
icon: "arrow_upward",
|
|
4639
4632
|
variant: "tertiary",
|
|
@@ -4646,15 +4639,15 @@ const gl = {
|
|
|
4646
4639
|
disabled: !I.value,
|
|
4647
4640
|
onClick: $a
|
|
4648
4641
|
}, null, 8, ["disabled"])
|
|
4649
|
-
])) :
|
|
4642
|
+
])) : Me("", !0),
|
|
4650
4643
|
(qn = Dt.value) != null && qn.showRollup && ft.value.length > 0 ? (Y(), we(Na, {
|
|
4651
4644
|
key: `rollup-${r(i)}`,
|
|
4652
4645
|
modelValue: T.value,
|
|
4653
|
-
"onUpdate:modelValue":
|
|
4646
|
+
"onUpdate:modelValue": Ie[3] || (Ie[3] = (ht) => T.value = ht),
|
|
4654
4647
|
class: "w-[150px]",
|
|
4655
4648
|
items: ft.value
|
|
4656
|
-
}, null, 8, ["modelValue", "items"])) :
|
|
4657
|
-
h.hideExport ?
|
|
4649
|
+
}, null, 8, ["modelValue", "items"])) : Me("", !0),
|
|
4650
|
+
h.hideExport ? Me("", !0) : (Y(), we(Wa, {
|
|
4658
4651
|
key: 4,
|
|
4659
4652
|
shift: !0
|
|
4660
4653
|
}, {
|
|
@@ -4665,7 +4658,7 @@ const gl = {
|
|
|
4665
4658
|
})
|
|
4666
4659
|
]),
|
|
4667
4660
|
default: $e(() => [
|
|
4668
|
-
(Y(!0), ge(
|
|
4661
|
+
(Y(!0), ge(et, null, Lt(r(Ra), (ht) => (Y(), we(Ha, {
|
|
4669
4662
|
key: ht.value,
|
|
4670
4663
|
label: ht.label,
|
|
4671
4664
|
onClick: ht.onClick
|
|
@@ -4688,7 +4681,7 @@ const gl = {
|
|
|
4688
4681
|
}
|
|
4689
4682
|
});
|
|
4690
4683
|
var kt = /* @__PURE__ */ ((e) => (e.Select = "Select", e.TextField = "TextField", e.Timestamp = "Timestamp", e))(kt || {});
|
|
4691
|
-
function
|
|
4684
|
+
function yl(e) {
|
|
4692
4685
|
let n = !1, t = 1;
|
|
4693
4686
|
switch (e) {
|
|
4694
4687
|
case st.Equal:
|
|
@@ -4712,13 +4705,13 @@ function bl(e) {
|
|
|
4712
4705
|
count: t
|
|
4713
4706
|
};
|
|
4714
4707
|
}
|
|
4715
|
-
function
|
|
4708
|
+
function Gl({
|
|
4716
4709
|
operator: e,
|
|
4717
4710
|
dimensionOption: n,
|
|
4718
4711
|
dataType: t,
|
|
4719
4712
|
t: a
|
|
4720
4713
|
}) {
|
|
4721
|
-
const { fixed: l, count: s } =
|
|
4714
|
+
const { fixed: l, count: s } = yl(e);
|
|
4722
4715
|
switch (t) {
|
|
4723
4716
|
case mt.String:
|
|
4724
4717
|
return {
|
|
@@ -4763,7 +4756,7 @@ function jl({
|
|
|
4763
4756
|
default: ""
|
|
4764
4757
|
};
|
|
4765
4758
|
}
|
|
4766
|
-
function
|
|
4759
|
+
function jl(e) {
|
|
4767
4760
|
switch (e) {
|
|
4768
4761
|
case Je.HourOfDay:
|
|
4769
4762
|
return 0;
|
|
@@ -4773,7 +4766,7 @@ function Jl(e) {
|
|
|
4773
4766
|
return;
|
|
4774
4767
|
}
|
|
4775
4768
|
}
|
|
4776
|
-
function
|
|
4769
|
+
function Jl(e) {
|
|
4777
4770
|
switch (e) {
|
|
4778
4771
|
case Je.HourOfDay:
|
|
4779
4772
|
return 23;
|
|
@@ -4870,7 +4863,7 @@ function ua({
|
|
|
4870
4863
|
});
|
|
4871
4864
|
return t.type !== kt.Select ? [] : [{ label: n("report.input.unknown"), value: "" }, ...t.options];
|
|
4872
4865
|
}
|
|
4873
|
-
const
|
|
4866
|
+
const bl = "mf-reportglobalFilter";
|
|
4874
4867
|
function ca(e, n) {
|
|
4875
4868
|
var t;
|
|
4876
4869
|
return [
|
|
@@ -4883,7 +4876,7 @@ function ca(e, n) {
|
|
|
4883
4876
|
((t = e.tileIds) == null ? void 0 : t.join(",")) ?? ""
|
|
4884
4877
|
].join("|");
|
|
4885
4878
|
}
|
|
4886
|
-
const
|
|
4879
|
+
const Cl = va(bl, () => {
|
|
4887
4880
|
const e = L({}), n = L(!1), t = L(null), a = () => ({
|
|
4888
4881
|
search: "",
|
|
4889
4882
|
selectedValues: [],
|
|
@@ -4924,14 +4917,14 @@ const wl = va(Cl, () => {
|
|
|
4924
4917
|
closeMenu: H,
|
|
4925
4918
|
getKey: ca
|
|
4926
4919
|
};
|
|
4927
|
-
}),
|
|
4920
|
+
}), wl = { class: "flex flex-row flex-wrap gap-2" }, xl = { class: "inline-flex max-w-[460px]" }, Sl = {
|
|
4928
4921
|
key: 0,
|
|
4929
4922
|
class: "flex justify-center my-2"
|
|
4930
|
-
},
|
|
4923
|
+
}, _l = { class: "px-2 pb-8" }, kl = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, Tl = { class: "px-2 pb-8" }, Ll = { class: "flex items-start w-full" }, Dl = ["onClick"], Il = { class: "fm-typo-en-body-md-400" }, Ml = { key: 0 }, Fl = { class: "px-12 py-3" }, Bl = { class: "flex items-center justify-between" }, Vl = { class: "text-xs max-w-[200px]" }, Al = { class: "px-4 py-3 flex flex-row justify-end gap-2 bg-white" }, Yt = "(EMPTY)", Zl = /* @__PURE__ */ at({
|
|
4931
4924
|
__name: "FilterSelector",
|
|
4932
4925
|
setup(e) {
|
|
4933
4926
|
const { t: n, locale: t } = wt(), { currentReport: a, editingTile: l } = vt(eo());
|
|
4934
|
-
let { globalFilters: s, isGlobalFiltersLoading: i, timeRange: h, dateRange: c, selectedLocationIds: _, timezone: B } = vt(Gt()), { schemas: H } = vt(to()), { showMore: T, getGlobalFilter: C, setGlobalFilter: d, setIncludeUnavailable: F, getKey: M, isMenuOpen: I } =
|
|
4927
|
+
let { globalFilters: s, isGlobalFiltersLoading: i, timeRange: h, dateRange: c, selectedLocationIds: _, timezone: B } = vt(Gt()), { schemas: H } = vt(to()), { showMore: T, getGlobalFilter: C, setGlobalFilter: d, setIncludeUnavailable: F, getKey: M, isMenuOpen: I } = Cl();
|
|
4935
4928
|
const b = v(() => n("report.input.unknown"));
|
|
4936
4929
|
let f = null;
|
|
4937
4930
|
const g = L(!1), w = v(() => {
|
|
@@ -5004,21 +4997,21 @@ const wl = va(Cl, () => {
|
|
|
5004
4997
|
if (!a.value && !l.value) return [];
|
|
5005
4998
|
if (!((Ne = u.tileIds) != null && Ne.length)) return [];
|
|
5006
4999
|
const E = l.value ? [l.value] : [...((je = a.value) == null ? void 0 : je.tiles) ?? []], { name: Q = "", schemaName: Z = "" } = u, be = E.filter((Fe) => {
|
|
5007
|
-
var
|
|
5008
|
-
const de = (
|
|
5000
|
+
var Le, He;
|
|
5001
|
+
const de = (Le = Fe == null ? void 0 : Fe.widget) == null ? void 0 : Le.config;
|
|
5009
5002
|
if (!de || (He = u.tileIds) != null && He.length && !u.tileIds.includes(Fe.id)) return !1;
|
|
5010
5003
|
const W = (de.dimensions ?? []).some(
|
|
5011
5004
|
(Be) => Be.schemaName === Z && Be.name === Q
|
|
5012
5005
|
), Se = (de.joinDatasources ?? []).some(
|
|
5013
|
-
(Be) => (Be.dimensions ?? []).some((
|
|
5006
|
+
(Be) => (Be.dimensions ?? []).some((De) => De.schemaName === Z && De.name === Q)
|
|
5014
5007
|
), Te = (de.schemaNames ?? []).includes(Z);
|
|
5015
5008
|
return W || Se || Te;
|
|
5016
5009
|
});
|
|
5017
5010
|
if (!be.length) return [];
|
|
5018
5011
|
const ze = (Fe, de) => {
|
|
5019
5012
|
const W = /* @__PURE__ */ new Map(), Se = (Te) => {
|
|
5020
|
-
const
|
|
5021
|
-
He ? [st.Like, st.NotLike].includes(Te.operator) ? He.values = Array.from(/* @__PURE__ */ new Set([...He.values ?? [], ...Te.values ?? []])) : W.set(
|
|
5013
|
+
const Le = `${Te.schemaName}:${Te.name}:${Te.operator}:${Te.option ?? ""}:${Te.dataFormula ?? ""}`, He = W.get(Le);
|
|
5014
|
+
He ? [st.Like, st.NotLike].includes(Te.operator) ? He.values = Array.from(/* @__PURE__ */ new Set([...He.values ?? [], ...Te.values ?? []])) : W.set(Le, { ...Te }) : W.set(Le, { ...Te });
|
|
5022
5015
|
};
|
|
5023
5016
|
return Fe.forEach(Se), de.forEach(Se), Array.from(W.values());
|
|
5024
5017
|
}, Xe = (Fe) => {
|
|
@@ -5036,7 +5029,7 @@ const wl = va(Cl, () => {
|
|
|
5036
5029
|
};
|
|
5037
5030
|
};
|
|
5038
5031
|
return be.map((Fe) => {
|
|
5039
|
-
var Be,
|
|
5032
|
+
var Be, De;
|
|
5040
5033
|
const de = (Be = Fe == null ? void 0 : Fe.widget) == null ? void 0 : Be.config;
|
|
5041
5034
|
if (!de) return null;
|
|
5042
5035
|
const W = Xe(de), Se = (de.dimensions ?? []).some((Ee) => Ee.schemaName === Z) || (de.schemaNames ?? []).includes(Z), Te = ze(
|
|
@@ -5045,13 +5038,13 @@ const wl = va(Cl, () => {
|
|
|
5045
5038
|
var Oe;
|
|
5046
5039
|
return (Oe = de.schemaNames) == null ? void 0 : Oe.includes(Ee.schemaName);
|
|
5047
5040
|
})
|
|
5048
|
-
),
|
|
5041
|
+
), Le = (De = de.joinDatasources) == null ? void 0 : De.find(
|
|
5049
5042
|
(Ee) => (Ee.schemaNames ?? []).includes(Z) || (Ee.dimensions ?? []).some((Oe) => Oe.schemaName === Z)
|
|
5050
5043
|
), He = ze(
|
|
5051
|
-
(
|
|
5044
|
+
(Le == null ? void 0 : Le.filters) ?? [],
|
|
5052
5045
|
(u.filters ?? []).filter((Ee) => {
|
|
5053
5046
|
var Oe;
|
|
5054
|
-
return (Oe =
|
|
5047
|
+
return (Oe = Le == null ? void 0 : Le.schemaNames) == null ? void 0 : Oe.includes(Ee.schemaName);
|
|
5055
5048
|
})
|
|
5056
5049
|
);
|
|
5057
5050
|
return {
|
|
@@ -5063,9 +5056,9 @@ const wl = va(Cl, () => {
|
|
|
5063
5056
|
dimensions: Se ? [W] : [],
|
|
5064
5057
|
filters: Te,
|
|
5065
5058
|
sorts: Se ? [{ name: Q, schemaName: Z, type: St.Asc, aggregation: null, dimensionOption: null }] : [],
|
|
5066
|
-
joinDatasources: !Se &&
|
|
5059
|
+
joinDatasources: !Se && Le ? [
|
|
5067
5060
|
{
|
|
5068
|
-
...
|
|
5061
|
+
...Le,
|
|
5069
5062
|
dimensions: [W],
|
|
5070
5063
|
sorts: [
|
|
5071
5064
|
{
|
|
@@ -5103,7 +5096,7 @@ const wl = va(Cl, () => {
|
|
|
5103
5096
|
function te(u) {
|
|
5104
5097
|
oe(u) ? u.selectedValues = [Yt] : u.selectedValues = u.options.map((E) => E.value);
|
|
5105
5098
|
}
|
|
5106
|
-
const
|
|
5099
|
+
const ce = v(
|
|
5107
5100
|
() => x.value.map((u) => {
|
|
5108
5101
|
const E = u.options, Q = u.search.toLowerCase() ?? "";
|
|
5109
5102
|
return E.filter(
|
|
@@ -5249,10 +5242,10 @@ const wl = va(Cl, () => {
|
|
|
5249
5242
|
timezone: B.value
|
|
5250
5243
|
})}` : E, suffix: "" };
|
|
5251
5244
|
if (u.filter.option === Je.TimeOfDay) {
|
|
5252
|
-
const Se = (Fe = u.filter.values) != null && Fe[0] ? Bt(u.filter.values[0]).tz(B.value) : null, Te = (de = u.filter.values) != null && de[1] ? Bt(u.filter.values[1]).tz(B.value) : null,
|
|
5245
|
+
const Se = (Fe = u.filter.values) != null && Fe[0] ? Bt(u.filter.values[0]).tz(B.value) : null, Te = (de = u.filter.values) != null && de[1] ? Bt(u.filter.values[1]).tz(B.value) : null, Le = (Be) => Be && Be.isValid() ? { hour: Be.hour(), minute: Be.minute() } : null;
|
|
5253
5246
|
return { preview: W ? `${E} is between ${fo({
|
|
5254
|
-
startTime:
|
|
5255
|
-
endTime:
|
|
5247
|
+
startTime: Le(Se),
|
|
5248
|
+
endTime: Le(Te),
|
|
5256
5249
|
locale: t.value
|
|
5257
5250
|
})}` : E, suffix: "" };
|
|
5258
5251
|
}
|
|
@@ -5260,7 +5253,7 @@ const wl = va(Cl, () => {
|
|
|
5260
5253
|
const Se = ua({
|
|
5261
5254
|
dimensionOption: u.filter.option,
|
|
5262
5255
|
t: n
|
|
5263
|
-
}), Te = new Map(Se.map((
|
|
5256
|
+
}), Te = new Map(Se.map((De) => [String(De.value), De.label])), He = A(u.selectedValues || []).map((De) => Te.get(String(De)) ?? String(De)), Be = He.map((De) => De.length > 20 ? `${De.slice(0, 20)}…` : De).join(", ");
|
|
5264
5257
|
return He.length ? {
|
|
5265
5258
|
preview: `${E}: ${Be}`,
|
|
5266
5259
|
suffix: `(${He.length} selected)`
|
|
@@ -5282,7 +5275,7 @@ const wl = va(Cl, () => {
|
|
|
5282
5275
|
function ke(u) {
|
|
5283
5276
|
u.showAdvanced = !u.showAdvanced, d(u.filter, w.value, "showAdvanced", u.showAdvanced);
|
|
5284
5277
|
}
|
|
5285
|
-
function
|
|
5278
|
+
function ue(u) {
|
|
5286
5279
|
u.keepSelection = !u.keepSelection, F(u.keepSelection), d(u.filter, w.value, "keepSelection", u.keepSelection), u.options = [], R(!0);
|
|
5287
5280
|
}
|
|
5288
5281
|
function We(u, E) {
|
|
@@ -5301,15 +5294,15 @@ const wl = va(Cl, () => {
|
|
|
5301
5294
|
}
|
|
5302
5295
|
return (u, E) => {
|
|
5303
5296
|
const Q = ve("FmCircularProgress"), Z = ve("FmTextField"), be = ve("FmMenuItem"), ze = ve("FmTooltip"), Xe = ve("FmIcon"), Ne = ve("FmMenuDivider"), je = ve("FmSwitch"), Fe = ve("FmButton"), de = ve("FmMenu");
|
|
5304
|
-
return Y(), ge("div",
|
|
5305
|
-
(Y(!0), ge(
|
|
5306
|
-
var Te,
|
|
5297
|
+
return Y(), ge("div", wl, [
|
|
5298
|
+
(Y(!0), ge(et, null, Lt(x.value, (W, Se) => {
|
|
5299
|
+
var Te, Le, He, Be, De, Ee;
|
|
5307
5300
|
return Y(), ge("div", {
|
|
5308
5301
|
key: W.id
|
|
5309
5302
|
}, [
|
|
5310
5303
|
W.filter.option === r(Je).DateTime && !D(W.filter) ? (Y(), we(io, {
|
|
5311
5304
|
key: 0,
|
|
5312
|
-
"model-value": { startDate: (Te = W.filter.values) == null ? void 0 : Te[0], endDate: (
|
|
5305
|
+
"model-value": { startDate: (Te = W.filter.values) == null ? void 0 : Te[0], endDate: (Le = W.filter.values) == null ? void 0 : Le[1] },
|
|
5313
5306
|
class: "w-full",
|
|
5314
5307
|
label: ee(W).preview,
|
|
5315
5308
|
removable: ((He = W.filter.values) == null ? void 0 : He.length) === 2,
|
|
@@ -5317,7 +5310,7 @@ const wl = va(Cl, () => {
|
|
|
5317
5310
|
onChipClosed: () => pe(W.filter, null)
|
|
5318
5311
|
}, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : W.filter.option === r(Je).TimeOfDay && !D(W.filter) ? (Y(), we(no, {
|
|
5319
5312
|
key: 1,
|
|
5320
|
-
"model-value": { start: (Be = W.filter.values) == null ? void 0 : Be[0], end: (
|
|
5313
|
+
"model-value": { start: (Be = W.filter.values) == null ? void 0 : Be[0], end: (De = W.filter.values) == null ? void 0 : De[1] },
|
|
5321
5314
|
class: "w-full",
|
|
5322
5315
|
label: ee(W).preview,
|
|
5323
5316
|
removable: ((Ee = W.filter.values) == null ? void 0 : Ee.length) === 2,
|
|
@@ -5330,7 +5323,7 @@ const wl = va(Cl, () => {
|
|
|
5330
5323
|
open: r(I)(W.id)
|
|
5331
5324
|
}, {
|
|
5332
5325
|
"menu-button": $e(() => [
|
|
5333
|
-
J("div",
|
|
5326
|
+
J("div", xl, [
|
|
5334
5327
|
fe(uo, {
|
|
5335
5328
|
"left-icon": "filter_alt",
|
|
5336
5329
|
"trailing-icon": "expand_more",
|
|
@@ -5349,10 +5342,10 @@ const wl = va(Cl, () => {
|
|
|
5349
5342
|
class: "flex flex-col bg-fm-color-neutral-white p-2 rounded-lg shadow-light-300",
|
|
5350
5343
|
style: Ze({ maxHeight: `${Oe}px`, width: Ue })
|
|
5351
5344
|
}, [
|
|
5352
|
-
g.value ? (Y(), ge("div",
|
|
5345
|
+
g.value ? (Y(), ge("div", Sl, [
|
|
5353
5346
|
fe(Q)
|
|
5354
|
-
])) : W.options.length > 0 && !r(i) ? (Y(), ge(
|
|
5355
|
-
J("div",
|
|
5347
|
+
])) : W.options.length > 0 && !r(i) ? (Y(), ge(et, { key: 1 }, [
|
|
5348
|
+
J("div", _l, [
|
|
5356
5349
|
fe(Z, {
|
|
5357
5350
|
modelValue: W.search,
|
|
5358
5351
|
"onUpdate:modelValue": [
|
|
@@ -5365,8 +5358,8 @@ const wl = va(Cl, () => {
|
|
|
5365
5358
|
class: "border px-2 pb-8 text-sm mb-1 rounded"
|
|
5366
5359
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
5367
5360
|
]),
|
|
5368
|
-
J("div",
|
|
5369
|
-
J("div",
|
|
5361
|
+
J("div", kl, [
|
|
5362
|
+
J("div", Tl, [
|
|
5370
5363
|
fe(be, {
|
|
5371
5364
|
label: O(W),
|
|
5372
5365
|
"has-checkbox": !0,
|
|
@@ -5374,7 +5367,7 @@ const wl = va(Cl, () => {
|
|
|
5374
5367
|
indeterminate: !0,
|
|
5375
5368
|
onClick: (Ve) => te(W)
|
|
5376
5369
|
}, null, 8, ["label", "model-value", "onClick"]),
|
|
5377
|
-
(Y(!0), ge(
|
|
5370
|
+
(Y(!0), ge(et, null, Lt(ce.value[Se], (Ve) => (Y(), ge(et, {
|
|
5378
5371
|
key: Ve.value
|
|
5379
5372
|
}, [
|
|
5380
5373
|
Ve.label && Ve.label.length > 110 ? (Y(), we(ze, {
|
|
@@ -5387,7 +5380,7 @@ const wl = va(Cl, () => {
|
|
|
5387
5380
|
bn(Ge(Ve.label), 1)
|
|
5388
5381
|
]),
|
|
5389
5382
|
default: $e(() => [
|
|
5390
|
-
J("div",
|
|
5383
|
+
J("div", Ll, [
|
|
5391
5384
|
fe(be, {
|
|
5392
5385
|
label: We(Ve.label, 110),
|
|
5393
5386
|
"has-checkbox": !0,
|
|
@@ -5410,13 +5403,13 @@ const wl = va(Cl, () => {
|
|
|
5410
5403
|
onClick: () => re(W, Ve.value)
|
|
5411
5404
|
}, null, 8, ["label", "model-value", "class", "onClick"]))
|
|
5412
5405
|
], 64))), 128)),
|
|
5413
|
-
|
|
5406
|
+
ce.value[Se].length < W.options.length && !W.search ? (Y(), we(be, {
|
|
5414
5407
|
key: 0,
|
|
5415
5408
|
class: "fm-typo-en-body-md-400 -ml-2",
|
|
5416
5409
|
label: r(n)("report.section.filter.loadMore"),
|
|
5417
5410
|
onClick: Tt((Ve) => ie(W), ["stop"]),
|
|
5418
5411
|
icon: "autorenew"
|
|
5419
|
-
}, null, 8, ["label", "onClick"])) :
|
|
5412
|
+
}, null, 8, ["label", "onClick"])) : Me("", !0)
|
|
5420
5413
|
])
|
|
5421
5414
|
]),
|
|
5422
5415
|
J("div", {
|
|
@@ -5428,24 +5421,24 @@ const wl = va(Cl, () => {
|
|
|
5428
5421
|
size: "md",
|
|
5429
5422
|
class: ""
|
|
5430
5423
|
}, null, 8, ["name"]),
|
|
5431
|
-
J("span",
|
|
5432
|
-
], 8,
|
|
5424
|
+
J("span", Il, Ge(r(n)("report.section.filter.advanced")), 1)
|
|
5425
|
+
], 8, Dl),
|
|
5433
5426
|
fe(Ne),
|
|
5434
|
-
W.showAdvanced ? (Y(), ge("div",
|
|
5435
|
-
J("div",
|
|
5436
|
-
J("div",
|
|
5427
|
+
W.showAdvanced ? (Y(), ge("div", Ml, [
|
|
5428
|
+
J("div", Fl, [
|
|
5429
|
+
J("div", Bl, [
|
|
5437
5430
|
fe(je, {
|
|
5438
5431
|
"model-value": W.keepSelection,
|
|
5439
5432
|
label: r(n)("report.section.filter.keepSelection"),
|
|
5440
5433
|
labelPlacement: "right",
|
|
5441
|
-
"onUpdate:modelValue": () =>
|
|
5434
|
+
"onUpdate:modelValue": () => ue(W)
|
|
5442
5435
|
}, null, 8, ["model-value", "label", "onUpdate:modelValue"]),
|
|
5443
5436
|
fe(ze, {
|
|
5444
5437
|
placement: "top",
|
|
5445
5438
|
"z-index": 2e3
|
|
5446
5439
|
}, {
|
|
5447
5440
|
content: $e(() => [
|
|
5448
|
-
J("div",
|
|
5441
|
+
J("div", Vl, Ge(r(n)("report.section.filter.keepSelectionTooltip")), 1)
|
|
5449
5442
|
]),
|
|
5450
5443
|
default: $e(() => [
|
|
5451
5444
|
fe(Xe, {
|
|
@@ -5458,8 +5451,8 @@ const wl = va(Cl, () => {
|
|
|
5458
5451
|
})
|
|
5459
5452
|
])
|
|
5460
5453
|
])
|
|
5461
|
-
])) :
|
|
5462
|
-
J("div",
|
|
5454
|
+
])) : Me("", !0),
|
|
5455
|
+
J("div", Al, [
|
|
5463
5456
|
fe(Fe, {
|
|
5464
5457
|
variant: "tertiary",
|
|
5465
5458
|
label: r(n)("report.common.cancel"),
|
|
@@ -5471,7 +5464,7 @@ const wl = va(Cl, () => {
|
|
|
5471
5464
|
label: r(n)("report.common.apply")
|
|
5472
5465
|
}, null, 8, ["onClick", "label"])
|
|
5473
5466
|
])
|
|
5474
|
-
], 64)) : r(i) ?
|
|
5467
|
+
], 64)) : r(i) ? Me("", !0) : (Y(), we(xn, {
|
|
5475
5468
|
key: 2,
|
|
5476
5469
|
title: q(W) ? r(n)("report.messages.noWidgetsApplied") : void 0,
|
|
5477
5470
|
"sub-title": q(W) ? r(n)("report.messages.assignWidgetsToUseThisFilter") : void 0
|
|
@@ -5494,15 +5487,15 @@ export {
|
|
|
5494
5487
|
Ke as S,
|
|
5495
5488
|
Tn as X,
|
|
5496
5489
|
Ln as Y,
|
|
5497
|
-
|
|
5498
|
-
|
|
5490
|
+
Xl as _,
|
|
5491
|
+
Zl as a,
|
|
5499
5492
|
gn as b,
|
|
5500
5493
|
_n as c,
|
|
5501
5494
|
dn as d,
|
|
5502
|
-
|
|
5495
|
+
Yl as e,
|
|
5503
5496
|
Dn as f,
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5497
|
+
Gl as g,
|
|
5498
|
+
jl as h,
|
|
5499
|
+
Jl as i,
|
|
5507
5500
|
ia as u
|
|
5508
5501
|
};
|