@feedmepos/mf-report 5.22.18 → 5.22.19
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-enD-4HHy.js → App-COGFM59w.js} +5 -5
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-C49ZAzoi.js → BaseDialog.vue_vue_type_script_setup_true_lang-CpPggDTn.js} +188 -125
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-C5Qzte47.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CD_INaTH.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CjBkTTPJ.js → Default.vue_vue_type_script_setup_true_lang-BBBm2zeV.js} +2 -2
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-B6-2LHbm.js → FilterSelector.vue_vue_type_script_setup_true_lang-CRtqPKcb.js} +172 -172
- package/dist/{InsightView-Gmy8uRRA.js → InsightView-nAjEsKUZ.js} +6 -6
- package/dist/{Integration-XVx-xxQQ.js → Integration-B7o4DpQ2.js} +4 -4
- package/dist/{Integrations-B8srdxQu.js → Integrations-DoqMCThZ.js} +4 -4
- package/dist/{Layout-BOnzoYYj.js → Layout-DxkxaQ1B.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-6BfverKP.js → MenuTab.vue_vue_type_script_setup_true_lang-DaSoyVAI.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-B1hI_gK-.js → NavigationTab.vue_vue_type_script_setup_true_lang-D6n_km8R.js} +5 -5
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-Cs8sD3rK.js → NoData.vue_vue_type_script_setup_true_lang-BgwSGgGU.js} +1 -1
- package/dist/{OverviewView-DK9ZKAav.js → OverviewView-C9BOn7Bb.js} +5 -5
- package/dist/{Report-CwBPC82L.js → Report-kimjiUSI.js} +4 -4
- package/dist/{ReportEditor-BwSJl4gs.js → ReportEditor-DkADq6qo.js} +6 -6
- package/dist/{ReportView-ByR3qqcr.js → ReportView-DWHGpPAV.js} +8 -8
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-CMvfIlqk.js → SelectComponent.vue_vue_type_script_setup_true_lang-D89xYYT0.js} +1 -1
- package/dist/{Setting-BkxyOb1i.js → Setting-v2KklKgi.js} +5 -5
- package/dist/{TileEditor-DxbZPAQK.js → TileEditor-Dsyfnl1T.js} +8 -8
- package/dist/{TransitionFade-5eHd3rY6.js → TransitionFade-C8GnPaYR.js} +6 -6
- package/dist/{app-acvgMINZ.js → app-CeVFa3GS.js} +11 -11
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-BMafyqs1.js → formatChartData.worker-DufYjVgs.js} +65 -23
- package/dist/assets/{processTableData.worker-SW0HOvM7.js → processTableData.worker-oX5FTv9A.js} +65 -23
- package/dist/{useRestaurantPermission-Xw9UmekH.js → useRestaurantPermission-ttW245gZ.js} +1 -1
- package/dist/{vue-i18n-D3jEMKmJ.js → vue-i18n-DYZdbLEQ.js} +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { computed as v, defineComponent as tt, ref as L, onMounted as lt, onBeforeUnmount as da, resolveComponent as ge, createBlock as xe, openBlock as
|
|
2
|
-
import { W as se, f as Nt, g as Ja, S as xt, v as
|
|
3
|
-
import { u as Ct, b as
|
|
4
|
-
import { d as Cn, _ as oo, a as ro, b as lo, c as so } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { computed as v, defineComponent as tt, ref as L, onMounted as lt, onBeforeUnmount as da, resolveComponent as ge, createBlock as xe, openBlock as X, Transition as Ka, withCtx as Re, createElementBlock as ye, createCommentVNode as Le, createElementVNode as J, unref as l, normalizeStyle as je, withModifiers as kt, toDisplayString as Ye, createVNode as fe, Fragment as Je, renderList as Tt, normalizeClass as Xe, watch as Pe, nextTick as Qe, mergeModels as pt, useModel as it, renderSlot as vt, h as an, createSlots as qa, resolveDynamicComponent as fa, toRaw as Xa, markRaw as Ya, createTextVNode as bn, onUnmounted as ha, withDirectives as Ga, vShow as ja } from "vue";
|
|
2
|
+
import { W as se, f as Nt, g as Ja, S as xt, v as Xt, h as Za, i as vn, j as ma, q as pa, R as Mt, k as Qa, D as ft, d as Ge, C as rt, a as eo, b as to, _ as no } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CpPggDTn.js";
|
|
3
|
+
import { u as Ct, b as Yt, a as Bn, h as ao } from "./vue-i18n-DYZdbLEQ.js";
|
|
4
|
+
import { d as Cn, _ as oo, a as ro, b as lo, c as so } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CD_INaTH.js";
|
|
5
5
|
import { storeToRefs as mt, defineStore as va } from "pinia";
|
|
6
6
|
import { C as wn } from "./chart-DDDh8zNk.js";
|
|
7
7
|
import { detectLocale as io } from "@feedmepos/mf-common";
|
|
8
8
|
import { useBreakpoints as dn, useSnackbar as Vn, components as uo } from "@feedmepos/ui-library";
|
|
9
|
-
import { t as co, z as fo, a as ho, e as mo, d as Ft } from "./app-
|
|
10
|
-
import { _ as ga } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { t as co, z as fo, a as ho, e as mo, d as Ft } from "./app-CeVFa3GS.js";
|
|
10
|
+
import { _ as ga } from "./SelectComponent.vue_vue_type_script_setup_true_lang-D89xYYT0.js";
|
|
11
11
|
import { r as St } from "./i18n-CI_sQ5d_.js";
|
|
12
|
-
import { _ as xn } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
12
|
+
import { _ as xn } from "./NoData.vue_vue_type_script_setup_true_lang-BgwSGgGU.js";
|
|
13
13
|
var Sn = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(Sn || {}), yt = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(yt || {}), _n = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(_n || {}), kn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(kn || {}), Tn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(Tn || {}), Ln = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Ln || {}), Dn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Dn || {}), Ee = /* @__PURE__ */ ((e) => (e.series = "SERIES", e.metric = "METRIC", e.breakdown = "BREAKDOWN", e))(Ee || {});
|
|
14
14
|
se.Circular, se.Table, se.BarChart, se.LineChart, se.StackBarChart, se.ClusteredStackBarChart, se.StackLineChart, se.Scorecard, se.Spacer;
|
|
15
15
|
const po = [
|
|
@@ -116,7 +116,7 @@ const cn = [
|
|
|
116
116
|
"#50BE9B",
|
|
117
117
|
"#8358D4",
|
|
118
118
|
"#9B5046"
|
|
119
|
-
],
|
|
119
|
+
], Yl = cn.map(() => "solid");
|
|
120
120
|
function Bt({
|
|
121
121
|
datasetIndex: e,
|
|
122
122
|
label: n
|
|
@@ -175,14 +175,14 @@ function ba(e, n) {
|
|
|
175
175
|
const { red: t, green: a, blue: r } = Co(e);
|
|
176
176
|
return `rgba(${t}, ${a}, ${r}, ${n})`;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function Xn(e, n) {
|
|
179
179
|
const t = Gt(e) ?? "#000000", a = (r) => {
|
|
180
180
|
const s = Number.parseInt(t.slice(r, r + 2), 16);
|
|
181
181
|
return Math.round(s + (255 - s) * n).toString(16).padStart(2, "0").toUpperCase();
|
|
182
182
|
};
|
|
183
183
|
return `#${a(1)}${a(3)}${a(5)}`;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Yn(e) {
|
|
186
186
|
return Math.min(0.55 + (e - 1) * 0.18, 0.95);
|
|
187
187
|
}
|
|
188
188
|
function bt({
|
|
@@ -212,7 +212,7 @@ function Ht({
|
|
|
212
212
|
colorMode: h,
|
|
213
213
|
customColors: c
|
|
214
214
|
}) {
|
|
215
|
-
const _ = Number.isInteger(t) && Number(t) > 0 ? Number(t) : 1, B = Number.isInteger(n) && Number(n) >= 0 ? Number(n) : 0, H = u !== !1, T = e * _ + B, C = h === "clustered" ? cn : ya(c), d = Gt(s == null ? void 0 : s[e * _]) ?? C[e % C.length], F = H && B > 0 ?
|
|
215
|
+
const _ = Number.isInteger(t) && Number(t) > 0 ? Number(t) : 1, B = Number.isInteger(n) && Number(n) >= 0 ? Number(n) : 0, H = u !== !1, T = e * _ + B, C = h === "clustered" ? cn : ya(c), d = Gt(s == null ? void 0 : s[e * _]) ?? C[e % C.length], F = H && B > 0 ? Xn(d, Yn(B)) : Gt(s == null ? void 0 : s[T]) ?? (B > 0 ? Xn(d, Yn(B)) : d);
|
|
216
216
|
let M = typeof r == "number" ? r : 1;
|
|
217
217
|
return a && (M = M * 0.6), ba(F, M);
|
|
218
218
|
}
|
|
@@ -583,13 +583,13 @@ const Wo = Jt({
|
|
|
583
583
|
"margin-right": "8px",
|
|
584
584
|
flex: "0 0 auto"
|
|
585
585
|
};
|
|
586
|
-
function
|
|
586
|
+
function Xo(e) {
|
|
587
587
|
return Jt({
|
|
588
588
|
...Oo,
|
|
589
589
|
margin: `${e ? "8px" : "0"} 0 4px`
|
|
590
590
|
});
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function Yo(e, n) {
|
|
593
593
|
return Jt({
|
|
594
594
|
...e ? Ko : qo,
|
|
595
595
|
background: n
|
|
@@ -632,8 +632,8 @@ function La(e, n, t, a, r) {
|
|
|
632
632
|
const C = c ? H.map((g) => {
|
|
633
633
|
const w = T.get(g.matchingKey);
|
|
634
634
|
return !w || w.length === 0 ? ea(g) : w.shift() ?? ea(g);
|
|
635
|
-
}) : [], d = _.length > H.length || B.length > C.length, F = (g, w = !1) => `<div style="${
|
|
636
|
-
const w =
|
|
635
|
+
}) : [], d = _.length > H.length || B.length > C.length, F = (g, w = !1) => `<div style="${Xo(w)}">${Mn(g)}</div>`, M = (g) => {
|
|
636
|
+
const w = Yo(g.isBar, g.color);
|
|
637
637
|
return `<div style="${Eo}"><span style="${w}"></span><span style="${Uo}">${Mn(g.text)}</span></div>`;
|
|
638
638
|
};
|
|
639
639
|
let I = "";
|
|
@@ -843,7 +843,7 @@ function Nn(e, n, t, a, r, s, u = "center", h = !1) {
|
|
|
843
843
|
const ue = p.getBoundingClientRect().bottom - _.top + H + b;
|
|
844
844
|
R = Math.max(R, ue);
|
|
845
845
|
}
|
|
846
|
-
const V = Math.max($, B + T - M - b),
|
|
846
|
+
const V = Math.max($, B + T - M - b), Y = Math.max(R, H + C - I - b), G = Math.round(Math.min(Math.max($, w), V)), oe = Math.round(Math.min(Math.max(R, x), Y));
|
|
847
847
|
d.__lastLeftPx === G && d.__lastTopPx === oe || (d.__lastLeftPx = G, d.__lastTopPx = oe, e.style.left = `${G}px`, e.style.top = `${oe}px`);
|
|
848
848
|
}
|
|
849
849
|
function Ia(e) {
|
|
@@ -1135,8 +1135,8 @@ function fr(e, n) {
|
|
|
1135
1135
|
c.style.opacity = "0";
|
|
1136
1136
|
return;
|
|
1137
1137
|
}
|
|
1138
|
-
const f = (p = a == null ? void 0 : a.scales) == null ? void 0 : p.x, g = f && typeof f.getPixelForValue == "function" ? f.getPixelForValue(0) : NaN, w = e ? _.reduce((V,
|
|
1139
|
-
const G =
|
|
1138
|
+
const f = (p = a == null ? void 0 : a.scales) == null ? void 0 : p.x, g = f && typeof f.getPixelForValue == "function" ? f.getPixelForValue(0) : NaN, w = e ? _.reduce((V, Y) => {
|
|
1139
|
+
const G = Y == null ? void 0 : Y.element, oe = G == null ? void 0 : G.x;
|
|
1140
1140
|
if (typeof oe != "number" || !Number.isFinite(oe))
|
|
1141
1141
|
return V;
|
|
1142
1142
|
if (!Number.isFinite(V))
|
|
@@ -1401,8 +1401,8 @@ const mr = {
|
|
|
1401
1401
|
return typeof window > "u" ? ra : Math.floor(window.innerWidth * 0.94);
|
|
1402
1402
|
}
|
|
1403
1403
|
function I(p) {
|
|
1404
|
-
const V = M(),
|
|
1405
|
-
return Math.min(V, Math.max(
|
|
1404
|
+
const V = M(), Y = Math.min(kr, V);
|
|
1405
|
+
return Math.min(V, Math.max(Y, Math.floor(p)));
|
|
1406
1406
|
}
|
|
1407
1407
|
function b(p) {
|
|
1408
1408
|
typeof window > "u" || (u.value = I(window.innerWidth - p));
|
|
@@ -1426,8 +1426,8 @@ const mr = {
|
|
|
1426
1426
|
const V = p.target;
|
|
1427
1427
|
if (!(V instanceof Node))
|
|
1428
1428
|
return;
|
|
1429
|
-
const
|
|
1430
|
-
|
|
1429
|
+
const Y = V instanceof Element ? V : null;
|
|
1430
|
+
Y != null && Y.closest('[data-tooltip-full-details="true"]') || (G = s.value) != null && G.contains(V) || F();
|
|
1431
1431
|
}
|
|
1432
1432
|
function R(p) {
|
|
1433
1433
|
c.value && p.key === "Escape" && F();
|
|
@@ -1437,8 +1437,8 @@ const mr = {
|
|
|
1437
1437
|
}), da(() => {
|
|
1438
1438
|
f(), document.removeEventListener("pointerdown", $, !0), document.removeEventListener("keydown", R), window.removeEventListener("resize", x);
|
|
1439
1439
|
}), (p, V) => {
|
|
1440
|
-
const
|
|
1441
|
-
return
|
|
1440
|
+
const Y = ge("FmButton");
|
|
1441
|
+
return X(), xe(Ka, {
|
|
1442
1442
|
"enter-active-class": "transform transition duration-200 ease-out",
|
|
1443
1443
|
"enter-from-class": "translate-x-full opacity-0",
|
|
1444
1444
|
"enter-to-class": "translate-x-0 opacity-100",
|
|
@@ -1447,7 +1447,7 @@ const mr = {
|
|
|
1447
1447
|
"leave-to-class": "translate-x-full opacity-0"
|
|
1448
1448
|
}, {
|
|
1449
1449
|
default: Re(() => [
|
|
1450
|
-
c.value ? (
|
|
1450
|
+
c.value ? (X(), ye("div", mr, [
|
|
1451
1451
|
J("div", {
|
|
1452
1452
|
ref_key: "panelRef",
|
|
1453
1453
|
ref: s,
|
|
@@ -1462,9 +1462,9 @@ const mr = {
|
|
|
1462
1462
|
onPointerdown: kt(w, ["prevent"])
|
|
1463
1463
|
}, null, 32),
|
|
1464
1464
|
J("div", vr, [
|
|
1465
|
-
J("div", gr,
|
|
1465
|
+
J("div", gr, Ye(l(r)("report.widget.comparisonTooltip.fullBreakdownTitle")), 1),
|
|
1466
1466
|
J("div", yr, [
|
|
1467
|
-
fe(
|
|
1467
|
+
fe(Y, {
|
|
1468
1468
|
class: "relative z-30 h-9 w-9 shrink-0",
|
|
1469
1469
|
variant: "tertiary",
|
|
1470
1470
|
icon: "close",
|
|
@@ -1477,12 +1477,12 @@ const mr = {
|
|
|
1477
1477
|
class: "flex flex-1 flex-col gap-4 overflow-y-auto px-4 py-4 sm:px-5",
|
|
1478
1478
|
onMouseleave: d
|
|
1479
1479
|
}, [
|
|
1480
|
-
(
|
|
1480
|
+
(X(!0), ye(Je, null, Tt(_.value, (G, oe) => (X(), ye("div", {
|
|
1481
1481
|
key: `${G.title || "section"}-${oe}`,
|
|
1482
1482
|
class: "flex flex-col gap-2 rounded-2xl bg-fm-color-neutral-white/45 py-3"
|
|
1483
1483
|
}, [
|
|
1484
|
-
G.title ? (
|
|
1485
|
-
(
|
|
1484
|
+
G.title ? (X(), ye("p", br, Ye(G.title), 1)) : Le("", !0),
|
|
1485
|
+
(X(!0), ye(Je, null, Tt(G.values, (ne, ue) => (X(), ye(Je, {
|
|
1486
1486
|
key: `${ne.text}-${ue}`
|
|
1487
1487
|
}, [
|
|
1488
1488
|
J("button", {
|
|
@@ -1495,17 +1495,17 @@ const mr = {
|
|
|
1495
1495
|
}, [
|
|
1496
1496
|
J("span", wr, [
|
|
1497
1497
|
J("span", {
|
|
1498
|
-
class:
|
|
1498
|
+
class: Xe([
|
|
1499
1499
|
"inline-block h-3 w-3 shrink-0 box-border",
|
|
1500
1500
|
ne.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
1501
|
]),
|
|
1502
1502
|
style: je({ backgroundColor: ne.color })
|
|
1503
1503
|
}, null, 6),
|
|
1504
|
-
J("span", xr,
|
|
1504
|
+
J("span", xr, Ye(T(ne)), 1)
|
|
1505
1505
|
]),
|
|
1506
|
-
J("span", Sr,
|
|
1506
|
+
J("span", Sr, Ye(H(ne)), 1)
|
|
1507
1507
|
], 40, Cr),
|
|
1508
|
-
ue < G.values.length - 1 ? (
|
|
1508
|
+
ue < G.values.length - 1 ? (X(), ye("hr", _r)) : Le("", !0)
|
|
1509
1509
|
], 64))), 128))
|
|
1510
1510
|
]))), 128))
|
|
1511
1511
|
], 32)
|
|
@@ -1583,7 +1583,7 @@ const Tr = {
|
|
|
1583
1583
|
height: `${Math.max(0, F.value)}px`,
|
|
1584
1584
|
transform: `translateY(${Math.max(0, M.value)}px)`
|
|
1585
1585
|
})), p = v(() => typeof t.textColor == "string" && t.textColor.trim().length > 0 ? t.textColor : "#6b6b6b"), V = v(() => typeof t.fontSize == "number" && Number.isFinite(t.fontSize) && t.fontSize > 0 ? t.fontSize : 12);
|
|
1586
|
-
function
|
|
1586
|
+
function Y(o) {
|
|
1587
1587
|
G({ height: o, width: 0 });
|
|
1588
1588
|
}
|
|
1589
1589
|
function G({ height: o, width: y }) {
|
|
@@ -2080,7 +2080,7 @@ const Tr = {
|
|
|
2080
2080
|
const y = Array.isArray((S = o == null ? void 0 : o.data) == null ? void 0 : S.datasets) ? o.data.datasets : [];
|
|
2081
2081
|
s.value.length === 0 && (s.value = Ue(t.legendUpdateKey, t.chartRef)), s.value.length === 0 && (s.value = Ce(o)), s.value = Z(E(s.value));
|
|
2082
2082
|
const m = Array.isArray(t.legendUpdateKey) && t.legendUpdateKey.length > 0 || !Array.isArray(t.legendUpdateKey) && !!t.legendUpdateKey;
|
|
2083
|
-
s.value.length === 0 && !(y.length > 0 || m) &&
|
|
2083
|
+
s.value.length === 0 && !(y.length > 0 || m) && Y(0), Se();
|
|
2084
2084
|
}
|
|
2085
2085
|
function Oe(o) {
|
|
2086
2086
|
return Array.isArray(o.datasetIndexes) && o.datasetIndexes.length > 0 ? o.datasetIndexes.filter((y) => Number.isInteger(y)) : typeof o.datasetIndex == "number" ? [o.datasetIndex] : [];
|
|
@@ -2207,11 +2207,11 @@ const Tr = {
|
|
|
2207
2207
|
}
|
|
2208
2208
|
), da(() => {
|
|
2209
2209
|
I.value = !1, oe(), G({ height: 0, width: 0 }), window.removeEventListener("mousemove", A), window.removeEventListener("mouseup", P);
|
|
2210
|
-
}), (o, y) => g.value ? (
|
|
2210
|
+
}), (o, y) => g.value ? (X(), ye("div", {
|
|
2211
2211
|
key: 0,
|
|
2212
2212
|
ref_key: "legendPanelRef",
|
|
2213
2213
|
ref: B,
|
|
2214
|
-
class:
|
|
2214
|
+
class: Xe(["chart-legend-panel relative z-[2] flex min-w-0 flex-col overflow-hidden pointer-events-auto", {
|
|
2215
2215
|
"self-stretch h-full": w.value,
|
|
2216
2216
|
"mb-2": !w.value && o.position === "top",
|
|
2217
2217
|
"mt-2": !w.value && o.position === "bottom"
|
|
@@ -2228,20 +2228,20 @@ const Tr = {
|
|
|
2228
2228
|
ref: C,
|
|
2229
2229
|
class: "absolute invisible pointer-events-none left-0 top-0 z-[2] inline-flex max-w-full select-none"
|
|
2230
2230
|
}, [
|
|
2231
|
-
J("button", Tr,
|
|
2231
|
+
J("button", Tr, Ye(l(r)("report.widget.legend.viewMore")), 1)
|
|
2232
2232
|
], 512),
|
|
2233
2233
|
J("ul", {
|
|
2234
2234
|
ref_key: "legendListRef",
|
|
2235
2235
|
ref: T,
|
|
2236
|
-
class:
|
|
2236
|
+
class: Xe(["chart-legend-list m-0 flex list-none p-0", [
|
|
2237
2237
|
w.value ? "flex-col flex-nowrap gap-2 text-left" : "flex-wrap justify-center gap-x-2 gap-y-1 pt-1"
|
|
2238
2238
|
]]),
|
|
2239
2239
|
style: je($e.value),
|
|
2240
2240
|
onScroll: K
|
|
2241
2241
|
}, [
|
|
2242
|
-
(
|
|
2242
|
+
(X(!0), ye(Je, null, Tt(Ne.value, (m, S) => (X(), ye("li", {
|
|
2243
2243
|
key: We(m, S),
|
|
2244
|
-
class:
|
|
2244
|
+
class: Xe(["chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto", {
|
|
2245
2245
|
"w-full": w.value,
|
|
2246
2246
|
"opacity-45": m.hidden
|
|
2247
2247
|
}]),
|
|
@@ -2249,7 +2249,7 @@ const Tr = {
|
|
|
2249
2249
|
}, [
|
|
2250
2250
|
J("button", {
|
|
2251
2251
|
type: "button",
|
|
2252
|
-
class:
|
|
2252
|
+
class: Xe(["inline-flex max-w-full items-center gap-1.5 border-none bg-transparent p-0", { "w-full items-start justify-start text-left": w.value }]),
|
|
2253
2253
|
"aria-pressed": m.hidden === !0 ? "false" : "true",
|
|
2254
2254
|
onClick: kt((U) => hn(m, S), ["stop"])
|
|
2255
2255
|
}, [
|
|
@@ -2258,25 +2258,25 @@ const Tr = {
|
|
|
2258
2258
|
style: je({ backgroundColor: Te(m, S) })
|
|
2259
2259
|
}, null, 4),
|
|
2260
2260
|
J("span", {
|
|
2261
|
-
class:
|
|
2261
|
+
class: Xe(["chart-legend-text leading-[1.4]", {
|
|
2262
2262
|
"flex-1 min-w-0 max-w-none whitespace-normal break-words text-left": w.value,
|
|
2263
2263
|
"whitespace-nowrap overflow-hidden": !w.value,
|
|
2264
2264
|
"line-through": m.hidden
|
|
2265
2265
|
}]),
|
|
2266
2266
|
title: m.text ?? ""
|
|
2267
|
-
},
|
|
2267
|
+
}, Ye(m.text), 11, Dr)
|
|
2268
2268
|
], 10, Lr)
|
|
2269
2269
|
], 2))), 128)),
|
|
2270
|
-
c.value ? (
|
|
2270
|
+
c.value ? (X(), ye("li", Ir, [
|
|
2271
2271
|
J("button", {
|
|
2272
2272
|
type: "button",
|
|
2273
2273
|
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
2274
|
style: { fontSize: "var(--legend-font-size)" },
|
|
2275
2275
|
onClick: y[0] || (y[0] = kt((m) => h.value ? Lt() : mn(), ["stop"]))
|
|
2276
|
-
},
|
|
2276
|
+
}, Ye(h.value ? l(r)("report.widget.legend.viewLess") : l(r)("report.widget.legend.viewMore")), 1)
|
|
2277
2277
|
])) : Le("", !0)
|
|
2278
2278
|
], 38),
|
|
2279
|
-
$.value ? (
|
|
2279
|
+
$.value ? (X(), ye("div", {
|
|
2280
2280
|
key: 0,
|
|
2281
2281
|
class: "absolute top-0 right-0 h-full w-2 rounded-full bg-transparent",
|
|
2282
2282
|
onMousedown: N
|
|
@@ -2359,7 +2359,7 @@ const Ar = { class: "widget-content" }, $r = /* @__PURE__ */ tt({
|
|
|
2359
2359
|
return !N || N === "top" || N === "bottom" || N === "left" || N === "right";
|
|
2360
2360
|
}), p = v(() => f.value.position ?? "top"), V = v(
|
|
2361
2361
|
() => p.value === "left" || p.value === "right"
|
|
2362
|
-
),
|
|
2362
|
+
), Y = v(
|
|
2363
2363
|
() => p.value === "top" || p.value === "left"
|
|
2364
2364
|
), G = v(() => H.value.length > 0 ? [
|
|
2365
2365
|
...H.value.map((N, z) => {
|
|
@@ -2419,13 +2419,13 @@ const Ar = { class: "widget-content" }, $r = /* @__PURE__ */ tt({
|
|
|
2419
2419
|
}), (N, z) => {
|
|
2420
2420
|
var P, re, ve, W, ee, te;
|
|
2421
2421
|
const A = ge("FmBarChart");
|
|
2422
|
-
return
|
|
2422
|
+
return X(), ye(Je, null, [
|
|
2423
2423
|
J("div", Ar, [
|
|
2424
2424
|
vt(N.$slots, "menu"),
|
|
2425
2425
|
J("div", {
|
|
2426
|
-
class:
|
|
2426
|
+
class: Xe(["chart-layout", { "chart-layout--side": R.value && (l(f).display ?? !1) && V.value }])
|
|
2427
2427
|
}, [
|
|
2428
|
-
R.value && (l(f).display ?? !1) &&
|
|
2428
|
+
R.value && (l(f).display ?? !1) && Y.value ? (X(), xe(ot, {
|
|
2429
2429
|
key: 0,
|
|
2430
2430
|
"chart-ref": a.value,
|
|
2431
2431
|
enabled: l(f).display ?? !1,
|
|
@@ -2463,7 +2463,7 @@ const Ar = { class: "widget-content" }, $r = /* @__PURE__ */ tt({
|
|
|
2463
2463
|
"--chart-height": R.value && (l(f).display ?? !1) && !V.value ? "calc(100% - 36px - var(--legend-panel-height, 0px))" : l(w) !== void 0 ? l(w) + "px" : "100%"
|
|
2464
2464
|
})
|
|
2465
2465
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "tooltip", "datalabels", "plugins", "style"]),
|
|
2466
|
-
R.value && (l(f).display ?? !1) && !
|
|
2466
|
+
R.value && (l(f).display ?? !1) && !Y.value ? (X(), xe(ot, {
|
|
2467
2467
|
key: 1,
|
|
2468
2468
|
"chart-ref": a.value,
|
|
2469
2469
|
enabled: l(f).display ?? !1,
|
|
@@ -2512,10 +2512,10 @@ const Ar = { class: "widget-content" }, $r = /* @__PURE__ */ tt({
|
|
|
2512
2512
|
label: B.value[0] ?? (Array.isArray(t.value.data.metrics) && t.value.data.metrics.length > 0 ? String(t.value.data.metrics[0]) : "Series"),
|
|
2513
2513
|
labels: B.value,
|
|
2514
2514
|
data: t.value.data.datasets.map(
|
|
2515
|
-
(
|
|
2515
|
+
(Y, G) => s.value.includes(G) ? null : Y.value
|
|
2516
2516
|
),
|
|
2517
2517
|
backgroundColor: t.value.data.datasets.map(
|
|
2518
|
-
(
|
|
2518
|
+
(Y, G) => bt({ index: G, customColors: t.value.chartColors })
|
|
2519
2519
|
)
|
|
2520
2520
|
}
|
|
2521
2521
|
]), p;
|
|
@@ -2533,10 +2533,10 @@ const Ar = { class: "widget-content" }, $r = /* @__PURE__ */ tt({
|
|
|
2533
2533
|
() => t.value.data.datasets,
|
|
2534
2534
|
(p) => {
|
|
2535
2535
|
const V = new Set(
|
|
2536
|
-
Array.isArray(p) ? p.map((
|
|
2536
|
+
Array.isArray(p) ? p.map((Y, G) => G) : []
|
|
2537
2537
|
);
|
|
2538
2538
|
s.value = s.value.filter(
|
|
2539
|
-
(
|
|
2539
|
+
(Y) => V.has(Y)
|
|
2540
2540
|
);
|
|
2541
2541
|
},
|
|
2542
2542
|
{ deep: !0 }
|
|
@@ -2561,15 +2561,15 @@ const Ar = { class: "widget-content" }, $r = /* @__PURE__ */ tt({
|
|
|
2561
2561
|
s.value = [...s.value, p];
|
|
2562
2562
|
}
|
|
2563
2563
|
return (p, V) => {
|
|
2564
|
-
const
|
|
2565
|
-
return
|
|
2564
|
+
const Y = ge("FmPieChart");
|
|
2565
|
+
return X(), ye("div", Rr, [
|
|
2566
2566
|
vt(p.$slots, "menu"),
|
|
2567
2567
|
J("div", {
|
|
2568
|
-
class:
|
|
2568
|
+
class: Xe(["chart-layout", {
|
|
2569
2569
|
"chart-layout--side": I.value && f.value
|
|
2570
2570
|
}])
|
|
2571
2571
|
}, [
|
|
2572
|
-
I.value && g.value ? (
|
|
2572
|
+
I.value && g.value ? (X(), xe(ot, {
|
|
2573
2573
|
key: 0,
|
|
2574
2574
|
"chart-ref": r.value,
|
|
2575
2575
|
enabled: M.value,
|
|
@@ -2586,7 +2586,7 @@ const Ar = { class: "widget-content" }, $r = /* @__PURE__ */ tt({
|
|
|
2586
2586
|
"hidden-data-point-indexes": s.value,
|
|
2587
2587
|
onToggleDataPointVisibility: R
|
|
2588
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"])) : Le("", !0),
|
|
2589
|
-
fe(
|
|
2589
|
+
fe(Y, {
|
|
2590
2590
|
ref_key: "chartRef",
|
|
2591
2591
|
ref: r,
|
|
2592
2592
|
class: "circular",
|
|
@@ -2605,7 +2605,7 @@ const Ar = { class: "widget-content" }, $r = /* @__PURE__ */ tt({
|
|
|
2605
2605
|
"--chart-height": I.value && !f.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(_) !== void 0 ? l(_) + "px" : "100%"
|
|
2606
2606
|
})
|
|
2607
2607
|
}, null, 8, ["datasets", "metrics", "tooltip", "datalabels", "style"]),
|
|
2608
|
-
I.value && !g.value ? (
|
|
2608
|
+
I.value && !g.value ? (X(), xe(ot, {
|
|
2609
2609
|
key: 1,
|
|
2610
2610
|
"chart-ref": r.value,
|
|
2611
2611
|
enabled: M.value,
|
|
@@ -2643,7 +2643,7 @@ const zr = { class: "flex flex-col gap-1" }, Nr = { class: "fm-typo-en-title-md-
|
|
|
2643
2643
|
},
|
|
2644
2644
|
emits: ["update:modelValue"],
|
|
2645
2645
|
setup(e) {
|
|
2646
|
-
const n = it(e, "modelValue"), { t } = Ct(), { compareDateRange: a, defaultDateSetting: r } = mt(
|
|
2646
|
+
const n = it(e, "modelValue"), { t } = Ct(), { compareDateRange: a, defaultDateSetting: r } = mt(Yt()), { country: s } = Bn(), u = v(() => {
|
|
2647
2647
|
var d;
|
|
2648
2648
|
return ((d = n.value.data) == null ? void 0 : d.value) || "";
|
|
2649
2649
|
}), h = v(() => un(u.value)), c = v(() => {
|
|
@@ -2675,9 +2675,9 @@ const zr = { class: "flex flex-col gap-1" }, Nr = { class: "fm-typo-en-title-md-
|
|
|
2675
2675
|
}))), C = v(() => Wt(!1, !0));
|
|
2676
2676
|
return (d, F) => {
|
|
2677
2677
|
const M = ge("FmIcon"), I = ge("FmChip"), b = ge("FmTooltip"), f = ge("FmLineChart");
|
|
2678
|
-
return
|
|
2678
|
+
return X(), ye("div", zr, [
|
|
2679
2679
|
vt(d.$slots, "menu"),
|
|
2680
|
-
J("p", Nr,
|
|
2680
|
+
J("p", Nr, Ye(h.value), 1),
|
|
2681
2681
|
J("div", Hr, [
|
|
2682
2682
|
fe(b, {
|
|
2683
2683
|
disabled: c.value === null,
|
|
@@ -2688,14 +2688,14 @@ const zr = { class: "flex flex-col gap-1" }, Nr = { class: "fm-typo-en-title-md-
|
|
|
2688
2688
|
content: Re(() => {
|
|
2689
2689
|
var g;
|
|
2690
2690
|
return [
|
|
2691
|
-
J("span", Wr,
|
|
2691
|
+
J("span", Wr, Ye(`vs. ${(g = l(r).defaultCompareType) == null ? void 0 : g.split("_").join(" ")}`), 1)
|
|
2692
2692
|
];
|
|
2693
2693
|
}),
|
|
2694
2694
|
default: Re(() => [
|
|
2695
|
-
c.value ? (
|
|
2695
|
+
c.value ? (X(), xe(I, {
|
|
2696
2696
|
key: 0,
|
|
2697
2697
|
icon: c.value.icon.name,
|
|
2698
|
-
class:
|
|
2698
|
+
class: Xe(`bg-${c.value.icon.tailwind}`),
|
|
2699
2699
|
compact: ""
|
|
2700
2700
|
}, {
|
|
2701
2701
|
default: Re(() => [
|
|
@@ -2706,11 +2706,11 @@ const zr = { class: "flex flex-col gap-1" }, Nr = { class: "fm-typo-en-title-md-
|
|
|
2706
2706
|
J("p", {
|
|
2707
2707
|
class: "fm-typo-en-body-md-600",
|
|
2708
2708
|
style: je({ color: c.value.icon.color })
|
|
2709
|
-
},
|
|
2709
|
+
}, Ye(c.value.value), 5)
|
|
2710
2710
|
]),
|
|
2711
2711
|
_: 1
|
|
2712
2712
|
}, 8, ["icon", "class"])) : Le("", !0),
|
|
2713
|
-
l(a).endDate != null && l(a).startDate != null && c.value === null ? (
|
|
2713
|
+
l(a).endDate != null && l(a).startDate != null && c.value === null ? (X(), xe(I, {
|
|
2714
2714
|
key: 1,
|
|
2715
2715
|
class: "invisible pointer-events-none",
|
|
2716
2716
|
"aria-hidden": "true",
|
|
@@ -2729,8 +2729,8 @@ const zr = { class: "flex flex-col gap-1" }, Nr = { class: "fm-typo-en-title-md-
|
|
|
2729
2729
|
_: 1
|
|
2730
2730
|
}, 8, ["disabled"])
|
|
2731
2731
|
]),
|
|
2732
|
-
B.value ? (
|
|
2733
|
-
_(B.value.type) === "line" ? (
|
|
2732
|
+
B.value ? (X(), ye("div", Or, [
|
|
2733
|
+
_(B.value.type) === "line" ? (X(), xe(f, {
|
|
2734
2734
|
key: 0,
|
|
2735
2735
|
class: "sparkline",
|
|
2736
2736
|
datasets: T.value,
|
|
@@ -2744,7 +2744,7 @@ const zr = { class: "flex flex-col gap-1" }, Nr = { class: "fm-typo-en-title-md-
|
|
|
2744
2744
|
tooltip: C.value,
|
|
2745
2745
|
"maintain-aspect-ratio": !1
|
|
2746
2746
|
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : Le("", !0)
|
|
2747
|
-
])) : (
|
|
2747
|
+
])) : (X(), ye("div", Er, F[1] || (F[1] = [
|
|
2748
2748
|
J("div", { class: "sparkline" }, [
|
|
2749
2749
|
J("div", { class: "flex flex-col gap-8" }, [
|
|
2750
2750
|
J("div"),
|
|
@@ -2759,9 +2759,9 @@ const zr = { class: "flex flex-col gap-1" }, Nr = { class: "fm-typo-en-title-md-
|
|
|
2759
2759
|
}), Kr = {};
|
|
2760
2760
|
function qr(e, n) {
|
|
2761
2761
|
const t = ge("FmMenuDivider");
|
|
2762
|
-
return
|
|
2762
|
+
return X(), xe(t);
|
|
2763
2763
|
}
|
|
2764
|
-
const
|
|
2764
|
+
const Xr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Yr = "mf-reporttable-dimension", ia = va(Yr, () => {
|
|
2765
2765
|
const e = L(0), n = L([]), t = L(!1), a = (b, f) => {
|
|
2766
2766
|
e.value = b, s(b, f);
|
|
2767
2767
|
}, r = (b, f, g, w) => {
|
|
@@ -2827,7 +2827,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
2827
2827
|
}
|
|
2828
2828
|
}
|
|
2829
2829
|
B(f, !1);
|
|
2830
|
-
let
|
|
2830
|
+
let Y = null, G = null;
|
|
2831
2831
|
const oe = () => {
|
|
2832
2832
|
if (G === null) return;
|
|
2833
2833
|
const ie = x;
|
|
@@ -2835,12 +2835,12 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
2835
2835
|
let D = 0;
|
|
2836
2836
|
w.querySelectorAll("th").forEach((N, z) => {
|
|
2837
2837
|
D += z === f ? G : N.getBoundingClientRect().width;
|
|
2838
|
-
}), w.classList.remove("w-full"), w.style.width = `${D}px`,
|
|
2838
|
+
}), w.classList.remove("w-full"), w.style.width = `${D}px`, Y = null;
|
|
2839
2839
|
}, ne = (ie) => {
|
|
2840
2840
|
const D = ie.clientX - g;
|
|
2841
|
-
G = Math.max(V, $ + D),
|
|
2841
|
+
G = Math.max(V, $ + D), Y === null && (Y = requestAnimationFrame(oe));
|
|
2842
2842
|
}, ue = () => {
|
|
2843
|
-
|
|
2843
|
+
Y !== null && cancelAnimationFrame(Y), G !== null && (x.style.width = `${G}px`);
|
|
2844
2844
|
const ie = w.querySelectorAll("th"), D = [];
|
|
2845
2845
|
ie.forEach((K) => {
|
|
2846
2846
|
D.push(K.getBoundingClientRect().width);
|
|
@@ -2888,8 +2888,8 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
2888
2888
|
};
|
|
2889
2889
|
w.forEach(($) => {
|
|
2890
2890
|
const R = $.closest("thead") !== null;
|
|
2891
|
-
$.querySelectorAll(R ? "th" : "td").forEach((V,
|
|
2892
|
-
const G = x("col",
|
|
2891
|
+
$.querySelectorAll(R ? "th" : "td").forEach((V, Y) => {
|
|
2892
|
+
const G = x("col", Y), oe = x("row", Y);
|
|
2893
2893
|
V.appendChild(G), V.appendChild(oe);
|
|
2894
2894
|
});
|
|
2895
2895
|
}), h();
|
|
@@ -2898,7 +2898,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
2898
2898
|
c();
|
|
2899
2899
|
}
|
|
2900
2900
|
};
|
|
2901
|
-
}), Gr = "/assets/processTableData.worker-
|
|
2901
|
+
}), Gr = "/assets/processTableData.worker-oX5FTv9A.js", jr = { class: "my-4" }, Jr = {
|
|
2902
2902
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
2903
2903
|
style: { backgroundColor: "#f9f9f9" }
|
|
2904
2904
|
}, Zr = { class: "font-bold" }, Qr = { class: "text-fm-color-neutral-gray-300" }, el = /* @__PURE__ */ tt({
|
|
@@ -2973,7 +2973,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
2973
2973
|
s();
|
|
2974
2974
|
});
|
|
2975
2975
|
const p = L([]);
|
|
2976
|
-
let V = 0,
|
|
2976
|
+
let V = 0, Y;
|
|
2977
2977
|
function G() {
|
|
2978
2978
|
var A;
|
|
2979
2979
|
if (!((A = a.value) != null && A.data)) {
|
|
@@ -2992,7 +2992,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
2992
2992
|
rows: K,
|
|
2993
2993
|
columns: N,
|
|
2994
2994
|
filter: f.value ?? "",
|
|
2995
|
-
globalSorts:
|
|
2995
|
+
globalSorts: Xa(_.value).map((P) => ({
|
|
2996
2996
|
key: P.key,
|
|
2997
2997
|
type: P.type
|
|
2998
2998
|
})),
|
|
@@ -3000,7 +3000,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3000
3000
|
pageSize: x.value
|
|
3001
3001
|
};
|
|
3002
3002
|
Za(Gr, z).then((P) => {
|
|
3003
|
-
D === V && (P != null && P.error ? (h.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(P.error), p.value = []) : p.value =
|
|
3003
|
+
D === V && (P != null && P.error ? (h.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(P.error), p.value = []) : p.value = Ya(P.data || []));
|
|
3004
3004
|
});
|
|
3005
3005
|
}
|
|
3006
3006
|
Pe(
|
|
@@ -3025,7 +3025,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3025
3025
|
Pe(
|
|
3026
3026
|
() => oe.value,
|
|
3027
3027
|
() => {
|
|
3028
|
-
clearTimeout(
|
|
3028
|
+
clearTimeout(Y), Y = setTimeout(G, 200);
|
|
3029
3029
|
},
|
|
3030
3030
|
{ immediate: !0 }
|
|
3031
3031
|
);
|
|
@@ -3115,7 +3115,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3115
3115
|
{ immediate: !0 }
|
|
3116
3116
|
), (D, K) => {
|
|
3117
3117
|
const N = ge("FmTable");
|
|
3118
|
-
return
|
|
3118
|
+
return X(), ye(Je, null, [
|
|
3119
3119
|
J("div", jr, [
|
|
3120
3120
|
vt(D.$slots, "menu")
|
|
3121
3121
|
]),
|
|
@@ -3135,22 +3135,22 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3135
3135
|
w.value ? {
|
|
3136
3136
|
name: "pin-top",
|
|
3137
3137
|
fn: Re(() => [
|
|
3138
|
-
(
|
|
3138
|
+
(X(), xe(fa(w.value === l(yt).bottom ? "tfoot" : "tbody"), null, {
|
|
3139
3139
|
default: Re(() => [
|
|
3140
3140
|
J("tr", Jr, [
|
|
3141
|
-
(
|
|
3142
|
-
key: `${l(
|
|
3141
|
+
(X(!0), ye(Je, null, Tt($.value, (z, A) => (X(), ye("td", {
|
|
3142
|
+
key: `${l(Xt)()}_${A}`,
|
|
3143
3143
|
class: "h-[48px] text-fm-color-typo-primary px-16"
|
|
3144
3144
|
}, [
|
|
3145
3145
|
J("span", {
|
|
3146
|
-
class:
|
|
3146
|
+
class: Xe([
|
|
3147
3147
|
"items-center text-fm-color-typo-secondary gap-2",
|
|
3148
3148
|
z.rowType === "NUMERIC" ? "text-right" : "",
|
|
3149
3149
|
ue.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
|
|
3150
3150
|
])
|
|
3151
3151
|
}, [
|
|
3152
|
-
J("p", Zr,
|
|
3153
|
-
J("p", Qr,
|
|
3152
|
+
J("p", Zr, Ye(z.rowType === "NUMERIC" ? l(un)(z.main) : z.main), 1),
|
|
3153
|
+
J("p", Qr, Ye(z.comparison ? z.rowType === "NUMERIC" ? `(${l(un)(z.comparison)})` : `(${z.comparison})` : ""), 1)
|
|
3154
3154
|
], 2)
|
|
3155
3155
|
]))), 128))
|
|
3156
3156
|
])
|
|
@@ -3198,7 +3198,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3198
3198
|
return !P || P === "top" || P === "bottom" || P === "left" || P === "right";
|
|
3199
3199
|
}), p = v(() => I.value.position ?? "top"), V = v(
|
|
3200
3200
|
() => p.value === "left" || p.value === "right"
|
|
3201
|
-
),
|
|
3201
|
+
), Y = v(
|
|
3202
3202
|
() => p.value === "top" || p.value === "left"
|
|
3203
3203
|
), G = v(() => ({
|
|
3204
3204
|
...d.value,
|
|
@@ -3283,13 +3283,13 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3283
3283
|
}), (P, re) => {
|
|
3284
3284
|
var W, ee, te, be, we, Te;
|
|
3285
3285
|
const ve = ge("FmBarChart");
|
|
3286
|
-
return
|
|
3286
|
+
return X(), ye(Je, null, [
|
|
3287
3287
|
J("div", tl, [
|
|
3288
3288
|
vt(P.$slots, "menu"),
|
|
3289
3289
|
J("div", {
|
|
3290
|
-
class:
|
|
3290
|
+
class: Xe(["chart-layout", { "chart-layout--side": R.value && (l(I).display ?? !1) && V.value }])
|
|
3291
3291
|
}, [
|
|
3292
|
-
R.value && (l(I).display ?? !1) &&
|
|
3292
|
+
R.value && (l(I).display ?? !1) && Y.value ? (X(), xe(ot, {
|
|
3293
3293
|
key: 0,
|
|
3294
3294
|
"chart-ref": a.value,
|
|
3295
3295
|
enabled: l(I).display ?? !1,
|
|
@@ -3328,7 +3328,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3328
3328
|
"--chart-height": R.value && (l(I).display ?? !1) && !V.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(f) !== void 0 ? l(f) + "px" : "100%"
|
|
3329
3329
|
})
|
|
3330
3330
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "tooltip", "plugins", "datalabels", "style"]),
|
|
3331
|
-
R.value && (l(I).display ?? !1) && !
|
|
3331
|
+
R.value && (l(I).display ?? !1) && !Y.value ? (X(), xe(ot, {
|
|
3332
3332
|
key: 1,
|
|
3333
3333
|
"chart-ref": a.value,
|
|
3334
3334
|
enabled: l(I).display ?? !1,
|
|
@@ -3391,7 +3391,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3391
3391
|
return !W || W === "top" || W === "bottom" || W === "left" || W === "right";
|
|
3392
3392
|
}), p = v(() => I.value.position ?? "top"), V = v(
|
|
3393
3393
|
() => p.value === "left" || p.value === "right"
|
|
3394
|
-
),
|
|
3394
|
+
), Y = v(
|
|
3395
3395
|
() => p.value === "top" || p.value === "left"
|
|
3396
3396
|
), G = v(() => ({
|
|
3397
3397
|
...d.value,
|
|
@@ -3497,13 +3497,13 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3497
3497
|
}), (W, ee) => {
|
|
3498
3498
|
var be, we, Te, ce, ze, i;
|
|
3499
3499
|
const te = ge("FmBarChart");
|
|
3500
|
-
return
|
|
3500
|
+
return X(), ye(Je, null, [
|
|
3501
3501
|
J("div", al, [
|
|
3502
3502
|
vt(W.$slots, "menu"),
|
|
3503
3503
|
J("div", {
|
|
3504
|
-
class:
|
|
3504
|
+
class: Xe(["chart-layout", { "chart-layout--side": R.value && (l(I).display ?? !1) && V.value }])
|
|
3505
3505
|
}, [
|
|
3506
|
-
R.value && (l(I).display ?? !1) &&
|
|
3506
|
+
R.value && (l(I).display ?? !1) && Y.value ? (X(), xe(ot, {
|
|
3507
3507
|
key: 0,
|
|
3508
3508
|
"chart-ref": a.value,
|
|
3509
3509
|
enabled: l(I).display ?? !1,
|
|
@@ -3542,7 +3542,7 @@ const Yr = /* @__PURE__ */ ga(Kr, [["render", qr]]), Xr = "mf-reporttable-dimens
|
|
|
3542
3542
|
"--chart-height": R.value && (l(I).display ?? !1) && !V.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(f) !== void 0 ? l(f) + "px" : "100%"
|
|
3543
3543
|
})
|
|
3544
3544
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "tooltip", "plugins", "datalabels", "style"]),
|
|
3545
|
-
R.value && (l(I).display ?? !1) && !
|
|
3545
|
+
R.value && (l(I).display ?? !1) && !Y.value ? (X(), xe(ot, {
|
|
3546
3546
|
key: 1,
|
|
3547
3547
|
"chart-ref": a.value,
|
|
3548
3548
|
enabled: l(I).display ?? !1,
|
|
@@ -3622,7 +3622,7 @@ const ll = { class: "widget-content" }, sl = /* @__PURE__ */ tt({
|
|
|
3622
3622
|
), $ = jt("line"), R = Fa("report-line-style-plugin-stack-line"), p = v(() => {
|
|
3623
3623
|
const z = f.value.position;
|
|
3624
3624
|
return !z || z === "top" || z === "bottom" || z === "left" || z === "right";
|
|
3625
|
-
}), V = v(() => f.value.position ?? "top"),
|
|
3625
|
+
}), V = v(() => f.value.position ?? "top"), Y = v(
|
|
3626
3626
|
() => V.value === "left" || V.value === "right"
|
|
3627
3627
|
), G = v(
|
|
3628
3628
|
() => V.value === "top" || V.value === "left"
|
|
@@ -3694,13 +3694,13 @@ const ll = { class: "widget-content" }, sl = /* @__PURE__ */ tt({
|
|
|
3694
3694
|
}), (z, A) => {
|
|
3695
3695
|
var re, ve, W, ee, te, be;
|
|
3696
3696
|
const P = ge("FmLineChart");
|
|
3697
|
-
return
|
|
3697
|
+
return X(), ye(Je, null, [
|
|
3698
3698
|
J("div", ll, [
|
|
3699
3699
|
vt(z.$slots, "menu"),
|
|
3700
3700
|
J("div", {
|
|
3701
|
-
class:
|
|
3701
|
+
class: Xe(["chart-layout", { "chart-layout--side": p.value && (l(f).display ?? !1) && Y.value }])
|
|
3702
3702
|
}, [
|
|
3703
|
-
p.value && (l(f).display ?? !1) && G.value ? (
|
|
3703
|
+
p.value && (l(f).display ?? !1) && G.value ? (X(), xe(ot, {
|
|
3704
3704
|
key: 0,
|
|
3705
3705
|
"chart-ref": a.value,
|
|
3706
3706
|
enabled: l(f).display ?? !1,
|
|
@@ -3735,11 +3735,11 @@ const ll = { class: "widget-content" }, sl = /* @__PURE__ */ tt({
|
|
|
3735
3735
|
datalabels: l(F),
|
|
3736
3736
|
"maintain-aspect-ratio": !1,
|
|
3737
3737
|
style: je({
|
|
3738
|
-
"--chart-width": p.value && (l(f).display ?? !1) &&
|
|
3739
|
-
"--chart-height": p.value && (l(f).display ?? !1) && !
|
|
3738
|
+
"--chart-width": p.value && (l(f).display ?? !1) && Y.value ? "calc(100% - var(--legend-panel-width, 0px))" : l(g) !== void 0 ? l(g) + "px" : "100%",
|
|
3739
|
+
"--chart-height": p.value && (l(f).display ?? !1) && !Y.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(w) !== void 0 ? l(w) + "px" : "100%"
|
|
3740
3740
|
})
|
|
3741
3741
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "tooltip", "plugins", "datalabels", "style"]),
|
|
3742
|
-
p.value && (l(f).display ?? !1) && !G.value ? (
|
|
3742
|
+
p.value && (l(f).display ?? !1) && !G.value ? (X(), xe(ot, {
|
|
3743
3743
|
key: 1,
|
|
3744
3744
|
"chart-ref": a.value,
|
|
3745
3745
|
enabled: l(f).display ?? !1,
|
|
@@ -3825,10 +3825,10 @@ const dl = { class: "widget-content" }, fl = /* @__PURE__ */ tt({
|
|
|
3825
3825
|
), R = jt("line"), p = Fa("report-line-style-plugin-line"), V = v(() => {
|
|
3826
3826
|
const A = g.value.position;
|
|
3827
3827
|
return !A || A === "top" || A === "bottom" || A === "left" || A === "right";
|
|
3828
|
-
}),
|
|
3829
|
-
() =>
|
|
3828
|
+
}), Y = v(() => g.value.position ?? "top"), G = v(
|
|
3829
|
+
() => Y.value === "left" || Y.value === "right"
|
|
3830
3830
|
), oe = v(
|
|
3831
|
-
() =>
|
|
3831
|
+
() => Y.value === "top" || Y.value === "left"
|
|
3832
3832
|
), ne = v(() => H.value.length > 0 ? [
|
|
3833
3833
|
...H.value.map((A, P) => {
|
|
3834
3834
|
var i;
|
|
@@ -3900,17 +3900,17 @@ const dl = { class: "widget-content" }, fl = /* @__PURE__ */ tt({
|
|
|
3900
3900
|
}), (A, P) => {
|
|
3901
3901
|
var ve, W, ee, te, be, we;
|
|
3902
3902
|
const re = ge("FmLineChart");
|
|
3903
|
-
return
|
|
3903
|
+
return X(), ye(Je, null, [
|
|
3904
3904
|
J("div", dl, [
|
|
3905
3905
|
vt(A.$slots, "menu"),
|
|
3906
3906
|
J("div", {
|
|
3907
|
-
class:
|
|
3907
|
+
class: Xe(["chart-layout", { "chart-layout--side": V.value && (l(g).display ?? !1) && G.value }])
|
|
3908
3908
|
}, [
|
|
3909
|
-
V.value && (l(g).display ?? !1) && oe.value ? (
|
|
3909
|
+
V.value && (l(g).display ?? !1) && oe.value ? (X(), xe(ot, {
|
|
3910
3910
|
key: 0,
|
|
3911
3911
|
"chart-ref": a.value,
|
|
3912
3912
|
enabled: l(g).display ?? !1,
|
|
3913
|
-
position:
|
|
3913
|
+
position: Y.value,
|
|
3914
3914
|
"max-width": l(g).maxWidth,
|
|
3915
3915
|
"text-color": (ve = l(g).labels) == null ? void 0 : ve.color,
|
|
3916
3916
|
"font-size": (ee = (W = l(g).labels) == null ? void 0 : W.font) == null ? void 0 : ee.size,
|
|
@@ -3944,11 +3944,11 @@ const dl = { class: "widget-content" }, fl = /* @__PURE__ */ tt({
|
|
|
3944
3944
|
"--chart-height": V.value && (l(g).display ?? !1) && !G.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(x) !== void 0 ? l(x) + "px" : "100%"
|
|
3945
3945
|
})
|
|
3946
3946
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "tooltip", "datalabels", "plugins", "style"]),
|
|
3947
|
-
V.value && (l(g).display ?? !1) && !oe.value ? (
|
|
3947
|
+
V.value && (l(g).display ?? !1) && !oe.value ? (X(), xe(ot, {
|
|
3948
3948
|
key: 1,
|
|
3949
3949
|
"chart-ref": a.value,
|
|
3950
3950
|
enabled: l(g).display ?? !1,
|
|
3951
|
-
position:
|
|
3951
|
+
position: Y.value,
|
|
3952
3952
|
"max-width": l(g).maxWidth,
|
|
3953
3953
|
"text-color": (te = l(g).labels) == null ? void 0 : te.color,
|
|
3954
3954
|
"font-size": (we = (be = l(g).labels) == null ? void 0 : be.font) == null ? void 0 : we.size,
|
|
@@ -3984,7 +3984,7 @@ const dl = { class: "widget-content" }, fl = /* @__PURE__ */ tt({
|
|
|
3984
3984
|
}),
|
|
3985
3985
|
emits: ["update:modelValue"],
|
|
3986
3986
|
setup(e) {
|
|
3987
|
-
const { t: n } = Ct(), { FmForm: t } = uo, a = e, r = L(), s = it(e, "modelValue"), u = L(!0), h = L(!1), c = Vn(), { selectedLocationIds: _, dateRange: B, timeRange: H } = mt(
|
|
3987
|
+
const { t: n } = Ct(), { FmForm: t } = uo, a = e, r = L(), s = it(e, "modelValue"), u = L(!0), h = L(!1), c = Vn(), { selectedLocationIds: _, dateRange: B, timeRange: H } = mt(Yt()), T = L(vn.PORTRAIT);
|
|
3988
3988
|
function C() {
|
|
3989
3989
|
var F;
|
|
3990
3990
|
(F = r.value) == null || F.validateInputs();
|
|
@@ -4009,7 +4009,7 @@ const dl = { class: "widget-content" }, fl = /* @__PURE__ */ tt({
|
|
|
4009
4009
|
}
|
|
4010
4010
|
return (F, M) => {
|
|
4011
4011
|
const I = ge("FmRadio"), b = ge("FmRadioGroup"), f = ge("FmButton"), g = ge("FmDialog");
|
|
4012
|
-
return
|
|
4012
|
+
return X(), xe(g, {
|
|
4013
4013
|
modelValue: s.value,
|
|
4014
4014
|
"onUpdate:modelValue": M[2] || (M[2] = (w) => s.value = w),
|
|
4015
4015
|
overlay: !0,
|
|
@@ -4117,8 +4117,8 @@ function vl(e) {
|
|
|
4117
4117
|
}
|
|
4118
4118
|
function d(x, $) {
|
|
4119
4119
|
const R = x.querySelectorAll("th, td"), p = $.querySelectorAll("th, td");
|
|
4120
|
-
R.forEach((V,
|
|
4121
|
-
const G = p[
|
|
4120
|
+
R.forEach((V, Y) => {
|
|
4121
|
+
const G = p[Y];
|
|
4122
4122
|
if (!G) return;
|
|
4123
4123
|
const oe = V, ne = window.getComputedStyle(oe);
|
|
4124
4124
|
Object.assign(G.style, {
|
|
@@ -4170,7 +4170,7 @@ function vl(e) {
|
|
|
4170
4170
|
return;
|
|
4171
4171
|
}
|
|
4172
4172
|
s.style.visibility = "visible", s.style.top = `${p}px`;
|
|
4173
|
-
const
|
|
4173
|
+
const Y = window.getComputedStyle(t.value), G = parseFloat(Y.paddingLeft) || 0, oe = parseFloat(Y.paddingRight) || 0, ne = x.left + G, ue = x.right - oe, ie = Math.max(ne, x.left), D = Math.min(ue, x.right), K = Math.max(0, D - ie);
|
|
4174
4174
|
if (K <= 0) {
|
|
4175
4175
|
s.style.visibility = "hidden";
|
|
4176
4176
|
return;
|
|
@@ -4283,7 +4283,7 @@ const gl = {
|
|
|
4283
4283
|
}), { refresh: H } = vl({
|
|
4284
4284
|
containerRef: B,
|
|
4285
4285
|
isTable: _
|
|
4286
|
-
}), T = L(a.rollup), C = L(
|
|
4286
|
+
}), T = L(a.rollup), C = L(Xt()), d = L(a.drillDimension), F = v(() => {
|
|
4287
4287
|
if (st.value.length > 0) {
|
|
4288
4288
|
const k = st.value.findIndex(
|
|
4289
4289
|
(Me) => Me.value === d.value
|
|
@@ -4297,7 +4297,7 @@ const gl = {
|
|
|
4297
4297
|
Array.isArray(a.chartColors) ? [...a.chartColors] : void 0
|
|
4298
4298
|
), V = L(
|
|
4299
4299
|
Array.isArray(a.chartColorLayers) ? [...a.chartColorLayers] : void 0
|
|
4300
|
-
),
|
|
4300
|
+
), Y = L(
|
|
4301
4301
|
Array.isArray(a.chartBreakdownColors) ? [...a.chartBreakdownColors] : void 0
|
|
4302
4302
|
), G = L(a.chartUseSecondaryMetricShades ?? !0), oe = L(a.chartColorBinding), ne = L(
|
|
4303
4303
|
Array.isArray(a.lineStyles) ? [...a.lineStyles] : void 0
|
|
@@ -4314,7 +4314,7 @@ const gl = {
|
|
|
4314
4314
|
() => po.find((k) => k.type === t.value.widget.type)
|
|
4315
4315
|
), o = Cn(() => {
|
|
4316
4316
|
var k;
|
|
4317
|
-
gt.value = Va((k = c.value) == null ? void 0 : k.$el.offsetWidth), C.value =
|
|
4317
|
+
gt.value = Va((k = c.value) == null ? void 0 : k.$el.offsetWidth), C.value = Xt();
|
|
4318
4318
|
}), y = v(() => {
|
|
4319
4319
|
if (vo(le.value.type, m.value))
|
|
4320
4320
|
switch (t.value.widget.type) {
|
|
@@ -4333,7 +4333,7 @@ const gl = {
|
|
|
4333
4333
|
case se.Scorecard:
|
|
4334
4334
|
return Ur;
|
|
4335
4335
|
case se.Spacer:
|
|
4336
|
-
return
|
|
4336
|
+
return Xr;
|
|
4337
4337
|
case se.Table:
|
|
4338
4338
|
return el;
|
|
4339
4339
|
default:
|
|
@@ -4348,7 +4348,7 @@ const gl = {
|
|
|
4348
4348
|
timeRange: ae,
|
|
4349
4349
|
globalFilters: me,
|
|
4350
4350
|
isGlobalFiltersLoading: j
|
|
4351
|
-
} = mt(
|
|
4351
|
+
} = mt(Yt()), { businessId: ke } = mt(Bn()), { businessLoadedId: Ae, businessDataVersion: _e } = mt(Yt());
|
|
4352
4352
|
v(() => Ae.value === ke.value && S.value.length > 0 && !j.value);
|
|
4353
4353
|
const pe = L(!0), le = v(() => {
|
|
4354
4354
|
const k = JSON.parse(JSON.stringify(t.value.widget));
|
|
@@ -4387,7 +4387,7 @@ const gl = {
|
|
|
4387
4387
|
chartWidth: $.value,
|
|
4388
4388
|
chartColors: p.value,
|
|
4389
4389
|
chartColorLayers: V.value,
|
|
4390
|
-
chartBreakdownColors:
|
|
4390
|
+
chartBreakdownColors: Y.value,
|
|
4391
4391
|
chartUseSecondaryMetricShades: G.value,
|
|
4392
4392
|
chartColorBinding: oe.value,
|
|
4393
4393
|
metricCount: qe.value,
|
|
@@ -4481,7 +4481,7 @@ const gl = {
|
|
|
4481
4481
|
Pe(
|
|
4482
4482
|
() => t.value.widget.config,
|
|
4483
4483
|
(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, R.value = k.chartHeight ?? void 0, $.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,
|
|
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, R.value = k.chartHeight ?? void 0, $.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, Y.value = Array.isArray(k.chartBreakdownColors) ? [...k.chartBreakdownColors] : void 0, G.value = k.chartUseSecondaryMetricShades ?? !0, oe.value = k.chartColorBinding, ne.value = Array.isArray(k.lineStyles) ? [...k.lineStyles] : void 0, ue.value = k.lineStyleBinding, ie.value = k.showLabel ?? !1, D.value = k.labelAlign ?? kn.center, K.value = k.labelAnchor ?? _n.center, N.value = k.labelRotation ?? 0, z.value = k.labelOffset ?? 0, A.value = k.labelFontSize ?? 12, re.value = k.showX ?? !0, ve.value = k.xPosition ?? Tn.bottom, W.value = k.showXGrid ?? !1, ee.value = k.showXTick ?? !0, te.value = k.xTickFontSize ?? 12, be.value = k.showXTitle ?? !1, we.value = k.xTitle ?? "", Te.value = k.xTitleFontSize ?? 12, ce.value = k.showY ?? !0, ze.value = k.yPosition ?? Ln.left, i.value = k.showYGrid ?? !0, E.value = k.showYTick ?? !0, Z.value = k.yTickFontSize ?? 12, Q.value = k.showYTitle ?? !1, Ce.value = k.yTitle ?? "", Fe.value = k.yTitleFontSize ?? 12, Ue.value = k.showLegend ?? void 0, Ke.value = k.legendPosition ?? Dn.top, We.value = k.usePointStyle ?? !0, Be.value = k.legendFontSize, de.value = k.legendColor ?? "#6b6b6b", O.value = k.legendMaxWidth, De.value = k.maxTooltipItems, Se.value = k.stackBarOverlap ?? !1, Ie.value = k.rowHeight ?? 0, Ne.value = k.colWidths ?? [], C.value = Xt();
|
|
4485
4485
|
},
|
|
4486
4486
|
{ deep: !0 }
|
|
4487
4487
|
), Pe([() => T.value], () => {
|
|
@@ -4525,7 +4525,7 @@ const gl = {
|
|
|
4525
4525
|
try {
|
|
4526
4526
|
n.value = !0, nn && nn.abort(), nn = new AbortController();
|
|
4527
4527
|
const k = nn.signal, Me = _e.value, at = await Cn(pa, 500)(le.value, k, t.value.id);
|
|
4528
|
-
_e.value === Me && (m.value = at, C.value =
|
|
4528
|
+
_e.value === Me && (m.value = at, C.value = Xt(), setTimeout(() => H(), 100)), n.value = !1;
|
|
4529
4529
|
} catch (k) {
|
|
4530
4530
|
k.code !== "ERR_CANCELED" && (m.value = null, Ut.open({ message: `Invalid chart ${le.value.type}`, type: "error" }), console.log(k), n.value = !1);
|
|
4531
4531
|
}
|
|
@@ -4566,10 +4566,10 @@ const gl = {
|
|
|
4566
4566
|
})), Pa = le.value.type === se.Spacer ? "flat" : "outlined", za = le.value.type === se.Spacer ? "p-0" : "p-16";
|
|
4567
4567
|
return (k, Me) => {
|
|
4568
4568
|
const at = ge("FmTooltip"), wt = ge("FmSearch"), pn = ge("FmCheckbox"), Dt = ge("FmButton"), Na = ge("FmSelect"), Ha = ge("FmMenuItem"), Wa = ge("FmMenu"), Oa = ge("FmForm"), Ea = ge("FmCircularProgress"), Ua = ge("FmCard");
|
|
4569
|
-
return
|
|
4569
|
+
return X(), xe(Ua, {
|
|
4570
4570
|
ref_key: "tileCard",
|
|
4571
4571
|
ref: c,
|
|
4572
|
-
class:
|
|
4572
|
+
class: Xe(`${mn.value} ${l(za)}`),
|
|
4573
4573
|
variant: l(Pa)
|
|
4574
4574
|
}, {
|
|
4575
4575
|
default: Re(() => [
|
|
@@ -4579,11 +4579,11 @@ const gl = {
|
|
|
4579
4579
|
"report-type": On.value,
|
|
4580
4580
|
index: En.value
|
|
4581
4581
|
}, null, 8, ["modelValue", "report-type", "index"]),
|
|
4582
|
-
!n.value && !l(j) ? (
|
|
4582
|
+
!n.value && !l(j) ? (X(), ye("div", {
|
|
4583
4583
|
key: 0,
|
|
4584
4584
|
style: je({ height: gt.value })
|
|
4585
4585
|
}, [
|
|
4586
|
-
(
|
|
4586
|
+
(X(), xe(fa(y.value), {
|
|
4587
4587
|
key: C.value,
|
|
4588
4588
|
modelValue: Ze.value,
|
|
4589
4589
|
"onUpdate:modelValue": Me[4] || (Me[4] = (It) => Ze.value = It),
|
|
@@ -4603,7 +4603,7 @@ const gl = {
|
|
|
4603
4603
|
"z-index": 99
|
|
4604
4604
|
}, {
|
|
4605
4605
|
default: Re(() => [
|
|
4606
|
-
b.value !== !1 ? (
|
|
4606
|
+
b.value !== !1 ? (X(), ye("p", {
|
|
4607
4607
|
key: 0,
|
|
4608
4608
|
style: je({
|
|
4609
4609
|
fontSize: f.value + "px",
|
|
@@ -4611,20 +4611,20 @@ const gl = {
|
|
|
4611
4611
|
fontStyle: w.value ? "italic" : "normal",
|
|
4612
4612
|
textDecoration: x.value ? "underline" : "none"
|
|
4613
4613
|
}),
|
|
4614
|
-
class:
|
|
4614
|
+
class: Xe(["text-fm-color-typo-secondary line-clamp-1", [
|
|
4615
4615
|
f.value <= 18 ? "fm-typo-en-body-md-400" : "",
|
|
4616
4616
|
le.value.description ? "border-b-2 border-dashed border-gray-300" : ""
|
|
4617
4617
|
]])
|
|
4618
|
-
},
|
|
4618
|
+
}, Ye(l(St)(l(r), l(s), le.value.title, "other")), 7)) : Le("", !0)
|
|
4619
4619
|
]),
|
|
4620
4620
|
_: 1
|
|
4621
4621
|
}, 8, ["content", "disabled"]),
|
|
4622
|
-
(It = Lt.value) != null && It.showSearchBar ? (
|
|
4622
|
+
(It = Lt.value) != null && It.showSearchBar ? (X(), xe(wt, {
|
|
4623
4623
|
key: 0,
|
|
4624
4624
|
modelValue: Ve.value,
|
|
4625
4625
|
"onUpdate:modelValue": Me[1] || (Me[1] = (dt) => Ve.value = dt),
|
|
4626
4626
|
class: "grow"
|
|
4627
|
-
}, null, 8, ["modelValue"])) : (
|
|
4627
|
+
}, null, 8, ["modelValue"])) : (X(), ye("div", gl)),
|
|
4628
4628
|
Ga(fe(pn, {
|
|
4629
4629
|
modelValue: ie.value,
|
|
4630
4630
|
"onUpdate:modelValue": Me[2] || (Me[2] = (dt) => ie.value = dt),
|
|
@@ -4633,7 +4633,7 @@ const gl = {
|
|
|
4633
4633
|
}, null, 8, ["modelValue"]), [
|
|
4634
4634
|
[ja, (Un = Lt.value) == null ? void 0 : Un.showLabel]
|
|
4635
4635
|
]),
|
|
4636
|
-
(Kn = Lt.value) != null && Kn.showDrillDimension && st.value.length > 0 ? (
|
|
4636
|
+
(Kn = Lt.value) != null && Kn.showDrillDimension && st.value.length > 0 ? (X(), ye("div", yl, [
|
|
4637
4637
|
fe(Dt, {
|
|
4638
4638
|
icon: "arrow_upward",
|
|
4639
4639
|
variant: "tertiary",
|
|
@@ -4647,14 +4647,14 @@ const gl = {
|
|
|
4647
4647
|
onClick: $a
|
|
4648
4648
|
}, null, 8, ["disabled"])
|
|
4649
4649
|
])) : Le("", !0),
|
|
4650
|
-
(qn = Lt.value) != null && qn.showRollup && ct.value.length > 0 ? (
|
|
4650
|
+
(qn = Lt.value) != null && qn.showRollup && ct.value.length > 0 ? (X(), xe(Na, {
|
|
4651
4651
|
key: `rollup-${l(u)}`,
|
|
4652
4652
|
modelValue: T.value,
|
|
4653
4653
|
"onUpdate:modelValue": Me[3] || (Me[3] = (dt) => T.value = dt),
|
|
4654
4654
|
class: "w-[150px]",
|
|
4655
4655
|
items: ct.value
|
|
4656
4656
|
}, null, 8, ["modelValue", "items"])) : Le("", !0),
|
|
4657
|
-
h.hideExport ? Le("", !0) : (
|
|
4657
|
+
h.hideExport ? Le("", !0) : (X(), xe(Wa, {
|
|
4658
4658
|
key: 4,
|
|
4659
4659
|
shift: !0
|
|
4660
4660
|
}, {
|
|
@@ -4665,7 +4665,7 @@ const gl = {
|
|
|
4665
4665
|
})
|
|
4666
4666
|
]),
|
|
4667
4667
|
default: Re(() => [
|
|
4668
|
-
(
|
|
4668
|
+
(X(!0), ye(Je, null, Tt(l(Ra), (dt) => (X(), xe(Ha, {
|
|
4669
4669
|
key: dt.value,
|
|
4670
4670
|
label: dt.label,
|
|
4671
4671
|
onClick: dt.onClick
|
|
@@ -4680,7 +4680,7 @@ const gl = {
|
|
|
4680
4680
|
]),
|
|
4681
4681
|
_: 1
|
|
4682
4682
|
}, 8, ["modelValue", "tile-index"]))
|
|
4683
|
-
], 4)) : (
|
|
4683
|
+
], 4)) : (X(), xe(Ea, { key: 1 }))
|
|
4684
4684
|
]),
|
|
4685
4685
|
_: 1
|
|
4686
4686
|
}, 8, ["class", "variant"]);
|
|
@@ -4931,7 +4931,7 @@ const wl = va(Cl, () => {
|
|
|
4931
4931
|
__name: "FilterSelector",
|
|
4932
4932
|
setup(e) {
|
|
4933
4933
|
const { t: n, locale: t } = Ct(), { currentReport: a, editingTile: r } = mt(eo());
|
|
4934
|
-
let { globalFilters: s, isGlobalFiltersLoading: u, timeRange: h, dateRange: c, selectedLocationIds: _, timezone: B } = mt(
|
|
4934
|
+
let { globalFilters: s, isGlobalFiltersLoading: u, timeRange: h, dateRange: c, selectedLocationIds: _, timezone: B } = mt(Yt()), { schemas: H } = mt(to()), { showMore: T, getGlobalFilter: C, setGlobalFilter: d, setIncludeUnavailable: F, getKey: M, isMenuOpen: I } = wl();
|
|
4935
4935
|
const b = v(() => n("report.input.unknown"));
|
|
4936
4936
|
let f = null;
|
|
4937
4937
|
const g = L(!1), w = v(() => {
|
|
@@ -4965,7 +4965,7 @@ const wl = va(Cl, () => {
|
|
|
4965
4965
|
filter: i,
|
|
4966
4966
|
search: Z.search,
|
|
4967
4967
|
options: [],
|
|
4968
|
-
type:
|
|
4968
|
+
type: Y(i),
|
|
4969
4969
|
selectedValues: Q,
|
|
4970
4970
|
visibleCount: Z.visibleCount,
|
|
4971
4971
|
keepSelection: Z.keepSelection,
|
|
@@ -4994,7 +4994,7 @@ const wl = va(Cl, () => {
|
|
|
4994
4994
|
await A(!0);
|
|
4995
4995
|
}
|
|
4996
4996
|
);
|
|
4997
|
-
function
|
|
4997
|
+
function Y(i) {
|
|
4998
4998
|
var Z;
|
|
4999
4999
|
const E = (Z = H.value.find((Q) => Q.name === i.schemaName)) == null ? void 0 : Z.fields.find((Q) => Q.name === i.name);
|
|
5000
5000
|
return E == null ? void 0 : E.type;
|
|
@@ -5139,7 +5139,7 @@ const wl = va(Cl, () => {
|
|
|
5139
5139
|
p(i);
|
|
5140
5140
|
return;
|
|
5141
5141
|
}
|
|
5142
|
-
if (!(!i.type && (i.type =
|
|
5142
|
+
if (!(!i.type && (i.type = Y(i.filter), !i.type))) {
|
|
5143
5143
|
if (D(i.filter)) {
|
|
5144
5144
|
i.options = N(i.filter), V(i);
|
|
5145
5145
|
return;
|
|
@@ -5297,13 +5297,13 @@ const wl = va(Cl, () => {
|
|
|
5297
5297
|
}
|
|
5298
5298
|
return (i, E) => {
|
|
5299
5299
|
const Z = ge("FmCircularProgress"), Q = ge("FmTextField"), Ce = ge("FmMenuItem"), Fe = ge("FmTooltip"), Ue = ge("FmIcon"), Ke = ge("FmMenuDivider"), We = ge("FmSwitch"), Be = ge("FmButton"), de = ge("FmMenu");
|
|
5300
|
-
return
|
|
5301
|
-
(
|
|
5300
|
+
return X(), ye("div", xl, [
|
|
5301
|
+
(X(!0), ye(Je, null, Tt(x.value, (O, De) => {
|
|
5302
5302
|
var Se, Ie, Ne, $e, Ve, Oe;
|
|
5303
|
-
return
|
|
5303
|
+
return X(), ye("div", {
|
|
5304
5304
|
key: O.id
|
|
5305
5305
|
}, [
|
|
5306
|
-
O.filter.option === l(Ge).DateTime && !D(O.filter) ? (
|
|
5306
|
+
O.filter.option === l(Ge).DateTime && !D(O.filter) ? (X(), xe(oo, {
|
|
5307
5307
|
key: 0,
|
|
5308
5308
|
"model-value": { startDate: (Se = O.filter.values) == null ? void 0 : Se[0], endDate: (Ie = O.filter.values) == null ? void 0 : Ie[1] },
|
|
5309
5309
|
class: "w-full",
|
|
@@ -5311,7 +5311,7 @@ const wl = va(Cl, () => {
|
|
|
5311
5311
|
removable: ((Ne = O.filter.values) == null ? void 0 : Ne.length) === 2,
|
|
5312
5312
|
onUpdate: (He) => re(O.filter, He),
|
|
5313
5313
|
onChipClosed: () => re(O.filter, null)
|
|
5314
|
-
}, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : O.filter.option === l(Ge).TimeOfDay && !D(O.filter) ? (
|
|
5314
|
+
}, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : O.filter.option === l(Ge).TimeOfDay && !D(O.filter) ? (X(), xe(no, {
|
|
5315
5315
|
key: 1,
|
|
5316
5316
|
"model-value": { start: ($e = O.filter.values) == null ? void 0 : $e[0], end: (Ve = O.filter.values) == null ? void 0 : Ve[1] },
|
|
5317
5317
|
class: "w-full",
|
|
@@ -5319,7 +5319,7 @@ const wl = va(Cl, () => {
|
|
|
5319
5319
|
removable: ((Oe = O.filter.values) == null ? void 0 : Oe.length) === 2,
|
|
5320
5320
|
onUpdate: (He) => ze(O.filter, He),
|
|
5321
5321
|
onChipClosed: () => ze(O.filter, null)
|
|
5322
|
-
}, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : (
|
|
5322
|
+
}, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : (X(), xe(de, {
|
|
5323
5323
|
key: 2,
|
|
5324
5324
|
"close-on-click": !1,
|
|
5325
5325
|
shift: !0,
|
|
@@ -5334,7 +5334,7 @@ const wl = va(Cl, () => {
|
|
|
5334
5334
|
class: "w-full"
|
|
5335
5335
|
}, {
|
|
5336
5336
|
default: Re(() => [
|
|
5337
|
-
bn(
|
|
5337
|
+
bn(Ye(ee(O).suffix), 1)
|
|
5338
5338
|
]),
|
|
5339
5339
|
_: 2
|
|
5340
5340
|
}, 1032, ["label"])
|
|
@@ -5345,9 +5345,9 @@ const wl = va(Cl, () => {
|
|
|
5345
5345
|
class: "flex flex-col bg-fm-color-neutral-white p-2 rounded-lg shadow-light-300",
|
|
5346
5346
|
style: je({ maxHeight: `${He}px`, width: gt })
|
|
5347
5347
|
}, [
|
|
5348
|
-
g.value ? (
|
|
5348
|
+
g.value ? (X(), ye("div", _l, [
|
|
5349
5349
|
fe(Z)
|
|
5350
|
-
])) : O.options.length > 0 && !l(u) ? (
|
|
5350
|
+
])) : O.options.length > 0 && !l(u) ? (X(), ye(Je, { key: 1 }, [
|
|
5351
5351
|
J("div", kl, [
|
|
5352
5352
|
fe(Q, {
|
|
5353
5353
|
modelValue: O.search,
|
|
@@ -5370,17 +5370,17 @@ const wl = va(Cl, () => {
|
|
|
5370
5370
|
indeterminate: !0,
|
|
5371
5371
|
onClick: (he) => ne(O)
|
|
5372
5372
|
}, null, 8, ["label", "model-value", "onClick"]),
|
|
5373
|
-
(
|
|
5373
|
+
(X(!0), ye(Je, null, Tt(ue.value[De], (he) => (X(), ye(Je, {
|
|
5374
5374
|
key: he.value
|
|
5375
5375
|
}, [
|
|
5376
|
-
he.label && he.label.length > 110 ? (
|
|
5376
|
+
he.label && he.label.length > 110 ? (X(), xe(Fe, {
|
|
5377
5377
|
key: 0,
|
|
5378
5378
|
placement: "right",
|
|
5379
5379
|
"hide-arrow": !0,
|
|
5380
5380
|
"z-index": 2e3
|
|
5381
5381
|
}, {
|
|
5382
5382
|
content: Re(() => [
|
|
5383
|
-
bn(
|
|
5383
|
+
bn(Ye(he.label), 1)
|
|
5384
5384
|
]),
|
|
5385
5385
|
default: Re(() => [
|
|
5386
5386
|
J("div", Dl, [
|
|
@@ -5388,7 +5388,7 @@ const wl = va(Cl, () => {
|
|
|
5388
5388
|
label: ce(he.label, 110),
|
|
5389
5389
|
"has-checkbox": !0,
|
|
5390
5390
|
"model-value": O.selectedValues.includes(he.value),
|
|
5391
|
-
class:
|
|
5391
|
+
class: Xe([
|
|
5392
5392
|
"flex-1 text-left",
|
|
5393
5393
|
{ "bg-gray-200": he.available === !1 }
|
|
5394
5394
|
]),
|
|
@@ -5397,16 +5397,16 @@ const wl = va(Cl, () => {
|
|
|
5397
5397
|
])
|
|
5398
5398
|
]),
|
|
5399
5399
|
_: 2
|
|
5400
|
-
}, 1024)) : (
|
|
5400
|
+
}, 1024)) : (X(), xe(Ce, {
|
|
5401
5401
|
key: 1,
|
|
5402
5402
|
label: he.label,
|
|
5403
5403
|
"has-checkbox": !0,
|
|
5404
5404
|
"model-value": O.selectedValues.includes(he.value),
|
|
5405
|
-
class:
|
|
5405
|
+
class: Xe(["flex-1 text-left", { "bg-gray-100": he.available === !1 }]),
|
|
5406
5406
|
onClick: () => P(O, he.value)
|
|
5407
5407
|
}, null, 8, ["label", "model-value", "class", "onClick"]))
|
|
5408
5408
|
], 64))), 128)),
|
|
5409
|
-
ue.value[De].length < O.options.length && !O.search ? (
|
|
5409
|
+
ue.value[De].length < O.options.length && !O.search ? (X(), xe(Ce, {
|
|
5410
5410
|
key: 0,
|
|
5411
5411
|
class: "fm-typo-en-body-md-400 -ml-2",
|
|
5412
5412
|
label: l(n)("report.section.filter.loadMore"),
|
|
@@ -5424,10 +5424,10 @@ const wl = va(Cl, () => {
|
|
|
5424
5424
|
size: "md",
|
|
5425
5425
|
class: ""
|
|
5426
5426
|
}, null, 8, ["name"]),
|
|
5427
|
-
J("span", Ml,
|
|
5427
|
+
J("span", Ml, Ye(l(n)("report.section.filter.advanced")), 1)
|
|
5428
5428
|
], 8, Il),
|
|
5429
5429
|
fe(Ke),
|
|
5430
|
-
O.showAdvanced ? (
|
|
5430
|
+
O.showAdvanced ? (X(), ye("div", Fl, [
|
|
5431
5431
|
J("div", Bl, [
|
|
5432
5432
|
J("div", Vl, [
|
|
5433
5433
|
fe(We, {
|
|
@@ -5441,7 +5441,7 @@ const wl = va(Cl, () => {
|
|
|
5441
5441
|
"z-index": 2e3
|
|
5442
5442
|
}, {
|
|
5443
5443
|
content: Re(() => [
|
|
5444
|
-
J("div", Al,
|
|
5444
|
+
J("div", Al, Ye(l(n)("report.section.filter.keepSelectionTooltip")), 1)
|
|
5445
5445
|
]),
|
|
5446
5446
|
default: Re(() => [
|
|
5447
5447
|
fe(Ue, {
|
|
@@ -5467,7 +5467,7 @@ const wl = va(Cl, () => {
|
|
|
5467
5467
|
label: l(n)("report.common.apply")
|
|
5468
5468
|
}, null, 8, ["onClick", "label"])
|
|
5469
5469
|
])
|
|
5470
|
-
], 64)) : l(u) ? Le("", !0) : (
|
|
5470
|
+
], 64)) : l(u) ? Le("", !0) : (X(), xe(xn, { key: 2 }))
|
|
5471
5471
|
], 4)
|
|
5472
5472
|
]),
|
|
5473
5473
|
_: 2
|
|
@@ -5491,7 +5491,7 @@ export {
|
|
|
5491
5491
|
gn as b,
|
|
5492
5492
|
_n as c,
|
|
5493
5493
|
cn as d,
|
|
5494
|
-
|
|
5494
|
+
Yl as e,
|
|
5495
5495
|
Dn as f,
|
|
5496
5496
|
jl as g,
|
|
5497
5497
|
Jl as h,
|