@feedmepos/mf-report 5.27.54 → 5.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-C6xpf-Q0.js → App-BDhSFQX_.js} +45 -44
- package/dist/DateRangeSelect-CRsKMi0U.js +437 -0
- package/dist/{Default.vue_vue_type_script_setup_true_lang-BwPZXC_d.js → Default.vue_vue_type_script_setup_true_lang-WGOOX2b8.js} +12 -11
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-BpgXiPBY.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CQM-l5Rk.js} +182 -181
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CVShUWJC.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CMioHpn1.js} +5091 -5717
- package/dist/{InsightView-BYW66Wrv.js → InsightView-lnOobZAr.js} +17 -15
- package/dist/{Integration-DQPJBE-0.js → Integration-D5ssimUg.js} +27 -25
- package/dist/{Integrations-BW4H9lUS.js → Integrations-CaqGvkzI.js} +8 -7
- package/dist/{Layout-CMlh08aB.js → Layout-DS0XCT_E.js} +1 -1
- package/dist/LocationSelect.vue_vue_type_script_setup_true_lang-DC9QYJk-.js +8055 -0
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BUvD1_b0.js → MenuTab.vue_vue_type_script_setup_true_lang-nOukNXp3.js} +11 -10
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-TpeQ_Wm1.js → NavigationTab.vue_vue_type_script_setup_true_lang-DXNbt08D.js} +9636 -17677
- package/dist/{OverviewView-BtGpQkBY.js → OverviewView-BkIozvMs.js} +5 -5
- package/dist/{Report-CJ9myNLK.js → Report-HiSGRNhn.js} +27 -25
- package/dist/ReportCanvasView-ILVhB1KL.js +448 -0
- package/dist/{ReportEditor-DtnTBbY1.js → ReportEditor-B4tyVB8s.js} +30 -28
- package/dist/{ReportView-Ci8nFyI9.js → ReportView-CIQQHvWT.js} +14 -13
- package/dist/ReportViewRoute-B3KwVB0v.js +18 -0
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-Ckn2p74A.js → SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js} +1 -1
- package/dist/{Setting-QSiMSAQk.js → Setting-CvToMUKq.js} +5 -5
- package/dist/{Template-CAPlAQO9.js → Template-BBQEaHrM.js} +10 -9
- package/dist/{TileEditor-e7ZCWMU9.js → TileEditor-Cqy98LmJ.js} +19 -17
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-B4g3YPzM.js → TilePageStack.vue_vue_type_script_setup_true_lang-CzggUdfI.js} +3 -3
- package/dist/{TransitionFade-DqIazHHG.js → TransitionFade-D-8BYs6T.js} +36 -33
- package/dist/{_plugin-vue_export-helper-kkiiQoKl.js → _plugin-vue_export-helper-C6QDExPN.js} +276 -291
- package/dist/{app-BAgs-zHf.js → app-Bjt_JuJi.js} +670 -567
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-epD1fsTW.js → formatChartData.worker-BeBGCyYW.js} +1 -1
- package/dist/assets/{processTableData.worker-BJZ_Z45H.js → processTableData.worker-frTYV0ok.js} +39 -39
- package/dist/global-loader-BuxFfehu.js +19 -0
- package/dist/index-CtZE4sab.js +82 -0
- package/dist/report-DjGDWvm3.js +635 -0
- package/dist/report-canvas-frame.html +888 -0
- package/dist/report-canvas-libs/chart.js-4.js +14 -0
- package/dist/report-canvas-libs/fm-ui-1.js +904 -0
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-ChYMJfXG.js → useRestaurantPermission-Dkbh_cv8.js} +4 -4
- package/package.json +1 -1
- package/dist/DateRangeSelect-DYVOvSCA.js +0 -517
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { computed as c, defineComponent as $e, ref as S, watch as De, onMounted as Et, onBeforeUnmount as Oo, resolveComponent as ye, createBlock as ve, openBlock as Y, Transition as za, withCtx as Ae, createElementBlock as pe, createCommentVNode as Ce, createElementVNode as Q, unref as l, normalizeStyle as Fe, withModifiers as bn, toDisplayString as Pe, createVNode as be, Fragment as Ke, renderList as _t, normalizeClass as Re, nextTick as Uo, mergeModels as tt, useModel as nt, renderSlot as ft, h as mn, createSlots as Ha, resolveDynamicComponent as Ko, markRaw as bo, toRaw as Wa, createTextVNode as Oa, onUnmounted as Yo, provide as Ua, inject as Ka, withDirectives as Ya, vShow as Xa } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { d as
|
|
2
|
+
import { u as Ea, h as ja, i as Xo, j as Ga, q as Co } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CMioHpn1.js";
|
|
3
|
+
import { V as Cn, a as wn, u as Eo, W as qa } from "./app-Bjt_JuJi.js";
|
|
4
|
+
import { W as Z, S as qe, v as Ut, F as Wt, c as pn, w as Vn, d as Ja, o as Za, x as Qa, E as Mt, y as er } from "./report-DjGDWvm3.js";
|
|
5
|
+
import { d as On } from "./DateRangeSelect-CRsKMi0U.js";
|
|
5
6
|
import { storeToRefs as Yt } from "pinia";
|
|
6
7
|
import { detectLocale as Qn } from "@feedmepos/mf-common";
|
|
7
8
|
import { C as Un } from "./chart-DDDh8zNk.js";
|
|
8
|
-
import { useBreakpoints as
|
|
9
|
-
import { u as St, _ as
|
|
9
|
+
import { useBreakpoints as jt, useSnackbar as _n, components as tr } from "@feedmepos/ui-library";
|
|
10
|
+
import { u as St, _ as jo } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
10
11
|
import { r as Ct } from "./i18n-DbyciK4x.js";
|
|
11
|
-
import { _ as $n } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
var Kt = /* @__PURE__ */ ((e) => (e.line = "LINECHART", e.bar = "BARCHART", e.stackedBar = "STACKBARCHART", e.progress = "PROGRESS", e))(Kt || {}),
|
|
12
|
+
import { _ as $n } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
13
|
+
var Kt = /* @__PURE__ */ ((e) => (e.line = "LINECHART", e.bar = "BARCHART", e.stackedBar = "STACKBARCHART", e.progress = "PROGRESS", e))(Kt || {}), Ge = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(Ge || {}), Kn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(Kn || {}), Yn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Yn || {}), Xn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(Xn || {}), En = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(En || {}), jn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(jn || {}), Me = /* @__PURE__ */ ((e) => (e.series = "SERIES", e.metric = "METRIC", e.breakdown = "BREAKDOWN", e))(Me || {});
|
|
13
14
|
Z.Circular, Z.Table, Z.BarChart, Z.LineChart, Z.StackBarChart, Z.ClusteredStackBarChart, Z.StackLineChart, Z.Scorecard, Z.Spacer;
|
|
14
15
|
const nr = [
|
|
15
16
|
{
|
|
@@ -112,14 +113,14 @@ const Rt = [
|
|
|
112
113
|
"#8358D4",
|
|
113
114
|
"#9B5046"
|
|
114
115
|
];
|
|
115
|
-
function
|
|
116
|
+
function Go(e) {
|
|
116
117
|
const t = Math.max(1, Math.floor(e));
|
|
117
118
|
return Array.from({ length: t }, (n, o) => {
|
|
118
119
|
const r = Rt[o % Rt.length], i = Math.floor(o / Rt.length);
|
|
119
120
|
return i === 0 ? r : Sn(r, Math.min(0.18 * i, 0.72));
|
|
120
121
|
});
|
|
121
122
|
}
|
|
122
|
-
const
|
|
123
|
+
const ai = Rt.map(() => "solid");
|
|
123
124
|
function Bt({
|
|
124
125
|
datasetIndex: e,
|
|
125
126
|
label: t
|
|
@@ -173,7 +174,7 @@ function qo({
|
|
|
173
174
|
return a;
|
|
174
175
|
return t;
|
|
175
176
|
}
|
|
176
|
-
function
|
|
177
|
+
function Gt({
|
|
177
178
|
datasets: e,
|
|
178
179
|
datasetIndex: t
|
|
179
180
|
}) {
|
|
@@ -216,7 +217,7 @@ function Jo(e) {
|
|
|
216
217
|
const t = Math.max(
|
|
217
218
|
Rt.length,
|
|
218
219
|
Array.isArray(e) ? e.length : 0
|
|
219
|
-
), n =
|
|
220
|
+
), n = Go(t);
|
|
220
221
|
return !Array.isArray(e) || e.length === 0 ? n : n.map((o, r) => Xt(e[r]) ?? o);
|
|
221
222
|
}
|
|
222
223
|
function Zo(e, t) {
|
|
@@ -264,7 +265,7 @@ function $t({
|
|
|
264
265
|
colorMode: u,
|
|
265
266
|
customColors: d
|
|
266
267
|
}) {
|
|
267
|
-
const h = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, C = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, X = a !== !1, b = e * h + C, f = u === "clustered" ?
|
|
268
|
+
const h = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, C = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, X = a !== !1, b = e * h + C, f = u === "clustered" ? Go(Math.max(Rt.length, e + 1)) : Jo(d), y = Xt(i == null ? void 0 : i[e * h]) ?? f[e % f.length], _ = X && C > 0 ? Sn(y, xo(C)) : Xt(i == null ? void 0 : i[b]) ?? (C > 0 ? Sn(y, xo(C)) : y), k = o ? ea(_) : _;
|
|
268
269
|
let B = typeof r == "number" ? r : 1;
|
|
269
270
|
return o && (B = B * Qo), Zo(k, B);
|
|
270
271
|
}
|
|
@@ -516,7 +517,7 @@ function Jt(e) {
|
|
|
516
517
|
}
|
|
517
518
|
};
|
|
518
519
|
}
|
|
519
|
-
const xr = Number.POSITIVE_INFINITY,
|
|
520
|
+
const xr = Number.POSITIVE_INFINITY, Gn = 2, wr = 1, _r = 0.2, Sr = 120, kr = 320, Tr = 24, { breakpoints: At } = jt(), eo = "report-v5:locationchange";
|
|
520
521
|
let So = !1;
|
|
521
522
|
const Lr = "report.widget.comparisonTooltip";
|
|
522
523
|
function ko() {
|
|
@@ -638,7 +639,7 @@ function qn(e) {
|
|
|
638
639
|
}
|
|
639
640
|
function Hr(e) {
|
|
640
641
|
const t = typeof e == "number" ? e : typeof e == "string" ? Number(e) : Number.NaN;
|
|
641
|
-
return Number.isFinite(t) ? Math.max(
|
|
642
|
+
return Number.isFinite(t) ? Math.max(Gn, Math.floor(t)) : xr;
|
|
642
643
|
}
|
|
643
644
|
function Wr(e) {
|
|
644
645
|
return e <= 0 ? 320 : At.value.xs || At.value.sm || e <= 640 ? Math.max(160, Math.floor(e * 0.38)) : At.value.md || e <= 900 ? Math.max(200, Math.floor(e * 0.46)) : At.value.lg || e <= 1200 ? Math.max(240, Math.floor(e * 0.54)) : Math.max(280, Math.floor(e * 0.62));
|
|
@@ -705,7 +706,7 @@ function Er(e, t) {
|
|
|
705
706
|
background: t
|
|
706
707
|
});
|
|
707
708
|
}
|
|
708
|
-
function
|
|
709
|
+
function jr(e) {
|
|
709
710
|
return `<button type="button" data-tooltip-full-details="true" style="${dr}">${qn(e)}</button>`;
|
|
710
711
|
}
|
|
711
712
|
function ua(e, t, n, o, r, i, a, u, d) {
|
|
@@ -751,12 +752,12 @@ function ua(e, t, n, o, r, i, a, u, d) {
|
|
|
751
752
|
const k = C ? y.map((T) => {
|
|
752
753
|
const w = _.get(T.matchingKey);
|
|
753
754
|
return !w || w.length === 0 ? Io(T) : w.shift() ?? Io(T);
|
|
754
|
-
}) : [], B = X.length > y.length || b.length > k.length, R = (T, w = !1) => `<div style="${Xr(w)}">${qn(T)}</div>`,
|
|
755
|
+
}) : [], B = X.length > y.length || b.length > k.length, R = (T, w = !1) => `<div style="${Xr(w)}">${qn(T)}</div>`, j = (T) => {
|
|
755
756
|
const w = Er(T.isBar, T.color);
|
|
756
757
|
return `<div style="${mr}"><span style="${w}"></span><span style="${pr}">${qn(T.text)}</span></div>`;
|
|
757
758
|
};
|
|
758
759
|
let P = "";
|
|
759
|
-
h.length > 0 && (P += R(h)), P += y.map((T) =>
|
|
760
|
+
h.length > 0 && (P += R(h)), P += y.map((T) => j(T)).join(""), C && k.length > 0 && (P += R(C, P.length > 0), P += k.map((T) => j(T)).join("")), r && B && (P += jr(n));
|
|
760
761
|
const I = [
|
|
761
762
|
{
|
|
762
763
|
title: h,
|
|
@@ -790,7 +791,7 @@ function hn(e, t, n, o, r, i, a, u, d, h) {
|
|
|
790
791
|
);
|
|
791
792
|
return e.innerHTML !== C.html && (e.innerHTML = C.html, il(e)), C;
|
|
792
793
|
}
|
|
793
|
-
function
|
|
794
|
+
function Gr(e, t, n, o, r, i, a, u, d, h) {
|
|
794
795
|
if (Number.isFinite(r))
|
|
795
796
|
return {
|
|
796
797
|
markup: hn(
|
|
@@ -807,7 +808,7 @@ function jr(e, t, n, o, r, i, a, u, d, h) {
|
|
|
807
808
|
),
|
|
808
809
|
maxTooltipItems: r
|
|
809
810
|
};
|
|
810
|
-
const C = Math.max(
|
|
811
|
+
const C = Math.max(Gn, t.length);
|
|
811
812
|
let X = C, b = hn(
|
|
812
813
|
e,
|
|
813
814
|
t,
|
|
@@ -825,7 +826,7 @@ function jr(e, t, n, o, r, i, a, u, d, h) {
|
|
|
825
826
|
markup: b,
|
|
826
827
|
maxTooltipItems: C
|
|
827
828
|
};
|
|
828
|
-
let f =
|
|
829
|
+
let f = Gn, y = C;
|
|
829
830
|
for (; f <= y; ) {
|
|
830
831
|
const k = Math.floor((f + y) / 2), B = hn(
|
|
831
832
|
e,
|
|
@@ -974,7 +975,7 @@ function oo(e) {
|
|
|
974
975
|
function ao(e, t, n, o, r, i, a = "center", u = !1) {
|
|
975
976
|
const d = t.getBoundingClientRect(), h = n.getBoundingClientRect(), C = n.scrollLeft, X = n.scrollTop, b = n.clientWidth, f = n.clientHeight, y = e;
|
|
976
977
|
(!Number.isFinite(y.__cachedWidth) || !Number.isFinite(y.__cachedHeight) || y.__measurementHostWidth !== b || y.__measurementHostHeight !== f) && (y.__cachedWidth = e.offsetWidth, y.__cachedHeight = e.offsetHeight, y.__measurementHostWidth = b, y.__measurementHostHeight = f);
|
|
977
|
-
const k = y.__cachedWidth ?? e.offsetWidth, B = y.__cachedHeight ?? e.offsetHeight, R = 8,
|
|
978
|
+
const k = y.__cachedWidth ?? e.offsetWidth, B = y.__cachedHeight ?? e.offsetHeight, R = 8, j = d.left - h.left + C + o, P = d.top - h.top + X + r, I = u ? a === "left" ? j - k - R : j + R : a === "left" ? j - k - R : a === "right" ? j + R : j - k / 2, L = u ? P + R : i ? P - B / 2 : P + R, T = C + R;
|
|
978
979
|
let w = X + R;
|
|
979
980
|
const H = document.querySelector('[data-menu-tab="true"]');
|
|
980
981
|
if (H) {
|
|
@@ -1115,7 +1116,7 @@ function ul(e, t, n, o, r) {
|
|
|
1115
1116
|
var T, w, H, q;
|
|
1116
1117
|
if (R.length === 0)
|
|
1117
1118
|
return !1;
|
|
1118
|
-
const
|
|
1119
|
+
const j = (T = R.find(
|
|
1119
1120
|
(le) => typeof le.dataIndex == "number"
|
|
1120
1121
|
)) == null ? void 0 : T.dataIndex, P = ((w = n == null ? void 0 : n.data) == null ? void 0 : w.datasets) ?? [], I = (H = n == null ? void 0 : n.config) == null ? void 0 : H.type, L = ua(
|
|
1121
1122
|
R,
|
|
@@ -1124,7 +1125,7 @@ function ul(e, t, n, o, r) {
|
|
|
1124
1125
|
i,
|
|
1125
1126
|
!0,
|
|
1126
1127
|
P,
|
|
1127
|
-
|
|
1128
|
+
j,
|
|
1128
1129
|
I,
|
|
1129
1130
|
r == null ? void 0 : r.comparisonXAxis
|
|
1130
1131
|
).detailsPayload;
|
|
@@ -1286,7 +1287,7 @@ function dl(e, t) {
|
|
|
1286
1287
|
sl(a, u, i), Vt(d);
|
|
1287
1288
|
const C = (t == null ? void 0 : t.viewFullDetailsLabel) ?? aa(), X = !!(t != null && t.onViewFullDetails), b = (z = h.find((W) => typeof W.dataIndex == "number")) == null ? void 0 : z.dataIndex, f = ((N = o == null ? void 0 : o.data) == null ? void 0 : N.datasets) ?? [], y = (D = o == null ? void 0 : o.config) == null ? void 0 : D.type, {
|
|
1288
1289
|
markup: { detailsPayload: _, hasCollapsedValues: k }
|
|
1289
|
-
} =
|
|
1290
|
+
} = Gr(
|
|
1290
1291
|
d,
|
|
1291
1292
|
h,
|
|
1292
1293
|
e,
|
|
@@ -1299,8 +1300,8 @@ function dl(e, t) {
|
|
|
1299
1300
|
t == null ? void 0 : t.comparisonXAxis
|
|
1300
1301
|
), B = X && k;
|
|
1301
1302
|
d.__detailsPayload = B ? _ : void 0, d.style.pointerEvents = B ? "auto" : "none";
|
|
1302
|
-
const R = typeof (r == null ? void 0 : r.caretX) == "number" ? r.caretX : 0,
|
|
1303
|
-
if (!(Number.isFinite(
|
|
1303
|
+
const R = typeof (r == null ? void 0 : r.caretX) == "number" ? r.caretX : 0, j = Number(d.dataset.cursorCanvasX), P = Number(d.dataset.cursorCanvasY);
|
|
1304
|
+
if (!(Number.isFinite(j) && Number.isFinite(P))) {
|
|
1304
1305
|
d.style.opacity = "0";
|
|
1305
1306
|
return;
|
|
1306
1307
|
}
|
|
@@ -1312,7 +1313,7 @@ function dl(e, t) {
|
|
|
1312
1313
|
return O;
|
|
1313
1314
|
const ne = Number.isFinite(T) ? T : R, ue = Math.abs(W - ne);
|
|
1314
1315
|
return Math.abs(O - ne) > ue ? O : W;
|
|
1315
|
-
}, Number.NaN) : Number.NaN, H =
|
|
1316
|
+
}, Number.NaN) : Number.NaN, H = j, q = P, le = e ? Number.isFinite(T) && Number.isFinite(w) && w < T ? "left" : "right" : "center";
|
|
1316
1317
|
ao(
|
|
1317
1318
|
d,
|
|
1318
1319
|
i,
|
|
@@ -1354,8 +1355,8 @@ function ma(e) {
|
|
|
1354
1355
|
const _ = "…";
|
|
1355
1356
|
let k = 0, B = f.length;
|
|
1356
1357
|
for (; k < B; ) {
|
|
1357
|
-
const R = Math.floor((k + B) / 2),
|
|
1358
|
-
b.measureText(
|
|
1358
|
+
const R = Math.floor((k + B) / 2), j = f.slice(0, R) + _;
|
|
1359
|
+
b.measureText(j).width <= y ? k = R + 1 : B = R;
|
|
1359
1360
|
}
|
|
1360
1361
|
return f.slice(0, k - 1) + _;
|
|
1361
1362
|
}
|
|
@@ -1486,8 +1487,8 @@ function ma(e) {
|
|
|
1486
1487
|
if (y.length === 0) return [];
|
|
1487
1488
|
if (y.length === 1 && Array.isArray(y[0].backgroundColor) && y[0].backgroundColor.length > 1 && Array.isArray(y[0].data)) {
|
|
1488
1489
|
const k = y[0];
|
|
1489
|
-
return b.data.labels.map((R,
|
|
1490
|
-
const P = k.backgroundColor[
|
|
1490
|
+
return b.data.labels.map((R, j) => {
|
|
1491
|
+
const P = k.backgroundColor[j];
|
|
1491
1492
|
return {
|
|
1492
1493
|
text: R,
|
|
1493
1494
|
fontColor: f,
|
|
@@ -1495,8 +1496,8 @@ function ma(e) {
|
|
|
1495
1496
|
fillStyle: P,
|
|
1496
1497
|
strokeStyle: P,
|
|
1497
1498
|
datasetIndex: 0,
|
|
1498
|
-
index:
|
|
1499
|
-
hidden: b.getDataVisibility ? !b.getDataVisibility(
|
|
1499
|
+
index: j,
|
|
1500
|
+
hidden: b.getDataVisibility ? !b.getDataVisibility(j) : !1
|
|
1500
1501
|
};
|
|
1501
1502
|
});
|
|
1502
1503
|
}
|
|
@@ -1577,7 +1578,7 @@ const ml = {
|
|
|
1577
1578
|
{}
|
|
1578
1579
|
);
|
|
1579
1580
|
}
|
|
1580
|
-
function
|
|
1581
|
+
function j(D) {
|
|
1581
1582
|
d.value = {
|
|
1582
1583
|
...d.value,
|
|
1583
1584
|
[D]: (d.value[D] ?? yn) + yn
|
|
@@ -1700,7 +1701,7 @@ const ml = {
|
|
|
1700
1701
|
variant: "tertiary",
|
|
1701
1702
|
size: "sm",
|
|
1702
1703
|
label: `${l(r)("report.widget.legend.viewMore")} (${K.remainingCount})`,
|
|
1703
|
-
onClick: (O) =>
|
|
1704
|
+
onClick: (O) => j(K.key)
|
|
1704
1705
|
}, null, 8, ["label", "onClick"])
|
|
1705
1706
|
])) : Ce("", !0)
|
|
1706
1707
|
]))), 128))
|
|
@@ -1739,7 +1740,7 @@ const ml = {
|
|
|
1739
1740
|
},
|
|
1740
1741
|
emits: ["toggleDatasetVisibility", "toggleDataPointVisibility"],
|
|
1741
1742
|
setup(e, { emit: t }) {
|
|
1742
|
-
const n = e, o = t, { t: r, locale: i } = St(), a = S([]), u = S(0), d = S(!1), h = S(!1), C = S(0), X = S(null), b = S(null), f = S(null), y = S(null), _ = S(!1), k = S(0), B = S(0), R = S(!1),
|
|
1743
|
+
const n = e, o = t, { t: r, locale: i } = St(), a = S([]), u = S(0), d = S(!1), h = S(!1), C = S(0), X = S(null), b = S(null), f = S(null), y = S(null), _ = S(!1), k = S(0), B = S(0), R = S(!1), j = S(0), P = S(0), I = c(() => n.enabled !== !1), L = c(() => n.position === "left" || n.position === "right");
|
|
1743
1744
|
let T = null;
|
|
1744
1745
|
const w = c(
|
|
1745
1746
|
() => d.value && h.value && _.value
|
|
@@ -1820,7 +1821,7 @@ const ml = {
|
|
|
1820
1821
|
g.scrollTop = ie * U, A();
|
|
1821
1822
|
}
|
|
1822
1823
|
function ue(s) {
|
|
1823
|
-
_.value && (R.value = !0,
|
|
1824
|
+
_.value && (R.value = !0, j.value = s.clientY, P.value = B.value);
|
|
1824
1825
|
}
|
|
1825
1826
|
function ge(s) {
|
|
1826
1827
|
if (!R.value)
|
|
@@ -1828,7 +1829,7 @@ const ml = {
|
|
|
1828
1829
|
const g = f.value;
|
|
1829
1830
|
if (!g)
|
|
1830
1831
|
return;
|
|
1831
|
-
const m = s.clientY -
|
|
1832
|
+
const m = s.clientY - j.value, v = Math.max(1, g.clientHeight - k.value), V = Math.min(v, Math.max(0, P.value + m)) / v, oe = Math.max(0, g.scrollHeight - g.clientHeight);
|
|
1832
1833
|
g.scrollTop = V * oe, A();
|
|
1833
1834
|
}
|
|
1834
1835
|
function E() {
|
|
@@ -2132,8 +2133,8 @@ const ml = {
|
|
|
2132
2133
|
const Ee = s[Xe];
|
|
2133
2134
|
if (!Ee)
|
|
2134
2135
|
continue;
|
|
2135
|
-
const Qe = ke + (Ne > 0 ? re : 0) + Ee.offsetHeight,
|
|
2136
|
-
if (Qe +
|
|
2136
|
+
const Qe = ke + (Ne > 0 ? re : 0) + Ee.offsetHeight, je = s.length - (Xe + 1) > 0 ? re + fe : 0;
|
|
2137
|
+
if (Qe + je > v)
|
|
2137
2138
|
break;
|
|
2138
2139
|
ke = Qe, Ne += 1;
|
|
2139
2140
|
}
|
|
@@ -2178,9 +2179,9 @@ const ml = {
|
|
|
2178
2179
|
if (re > 0 && (C.value = re), window.getComputedStyle(s).flexDirection.startsWith("column") && u.value < a.value.length) {
|
|
2179
2180
|
const Ne = Math.max(0, C.value - No), Xe = s.scrollHeight;
|
|
2180
2181
|
if (Xe + 1 < Ne) {
|
|
2181
|
-
const Ee = g.map((Oe) => Oe.offsetHeight).filter((Oe) => Number.isFinite(Oe) && Oe > 0), Qe = Ee.length > 0 ? Ee.reduce((Oe,
|
|
2182
|
+
const Ee = g.map((Oe) => Oe.offsetHeight).filter((Oe) => Number.isFinite(Oe) && Oe > 0), Qe = Ee.length > 0 ? Ee.reduce((Oe, je) => Oe + je, 0) / Ee.length : 0;
|
|
2182
2183
|
if (Qe > 0) {
|
|
2183
|
-
const Oe = window.getComputedStyle(s),
|
|
2184
|
+
const Oe = window.getComputedStyle(s), je = Number.parseFloat(Oe.rowGap || Oe.gap || "0") || 0, In = Math.max(1, Qe + je), Pn = Ne - Xe, un = Math.floor(Pn / In);
|
|
2184
2185
|
if (un > 0) {
|
|
2185
2186
|
u.value = Math.min(
|
|
2186
2187
|
a.value.length,
|
|
@@ -2477,9 +2478,9 @@ const ml = {
|
|
|
2477
2478
|
], 512)
|
|
2478
2479
|
], 6)) : Ce("", !0);
|
|
2479
2480
|
}
|
|
2480
|
-
}), Ye = /* @__PURE__ */
|
|
2481
|
+
}), Ye = /* @__PURE__ */ jo(Bl, [["__scopeId", "data-v-706fa016"]]);
|
|
2481
2482
|
function Al(e, t) {
|
|
2482
|
-
const { t: n } = St(), { breakpoints: o } =
|
|
2483
|
+
const { t: n } = St(), { breakpoints: o } = jt(), r = S(!1), i = S(null), a = S(null);
|
|
2483
2484
|
function u() {
|
|
2484
2485
|
return ca(e.value) ?? a.value;
|
|
2485
2486
|
}
|
|
@@ -2565,7 +2566,7 @@ function Qt({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2565
2566
|
return !w || w === "top" || w === "bottom" || w === "left" || w === "right";
|
|
2566
2567
|
}), B = c(() => y.value.position ?? "top"), R = c(
|
|
2567
2568
|
() => B.value === "left" || B.value === "right"
|
|
2568
|
-
),
|
|
2569
|
+
), j = c(
|
|
2569
2570
|
() => B.value === "top" || B.value === "left"
|
|
2570
2571
|
), { hiddenDatasetKeys: P, isDatasetHidden: I, toggleDatasetVisibility: L } = Rl(n), T = c(() => n.value.map((w, H) => ({
|
|
2571
2572
|
...w,
|
|
@@ -2586,7 +2587,7 @@ function Qt({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2586
2587
|
useCustomLegend: k,
|
|
2587
2588
|
legendPosition: B,
|
|
2588
2589
|
isLegendSide: R,
|
|
2589
|
-
isLegendBeforeChart:
|
|
2590
|
+
isLegendBeforeChart: j,
|
|
2590
2591
|
hiddenDatasetKeys: P,
|
|
2591
2592
|
toggleDatasetVisibility: L,
|
|
2592
2593
|
datasets: T
|
|
@@ -2660,7 +2661,7 @@ const Fl = { class: "widget-content" }, Hn = 1, zo = "rgba(0, 0, 0, 0)", Nl = /*
|
|
|
2660
2661
|
}
|
|
2661
2662
|
const f = c(() => o.value.length > 0 ? [
|
|
2662
2663
|
...a.value.map((A, O) => {
|
|
2663
|
-
const ne =
|
|
2664
|
+
const ne = Gt({
|
|
2664
2665
|
datasets: a.value,
|
|
2665
2666
|
datasetIndex: O
|
|
2666
2667
|
}), ue = i.value ? tn(a.value, ne) : ne, ge = We({
|
|
@@ -2715,7 +2716,7 @@ const Fl = { class: "widget-content" }, Hn = 1, zo = "rgba(0, 0, 0, 0)", Nl = /*
|
|
|
2715
2716
|
handleTooltipDetailsSheetVisibility: k,
|
|
2716
2717
|
handleTooltipDetailsHover: B,
|
|
2717
2718
|
handleTooltipDetailsLeave: R,
|
|
2718
|
-
comparisonTooltip:
|
|
2719
|
+
comparisonTooltip: j,
|
|
2719
2720
|
datalabels: P,
|
|
2720
2721
|
xCfg: I,
|
|
2721
2722
|
yCfg: L,
|
|
@@ -2791,7 +2792,7 @@ const Fl = { class: "widget-content" }, Hn = 1, zo = "rgba(0, 0, 0, 0)", Nl = /*
|
|
|
2791
2792
|
"y-cfg": l(L),
|
|
2792
2793
|
transpose: l(T),
|
|
2793
2794
|
legend: K.value,
|
|
2794
|
-
tooltip: l(
|
|
2795
|
+
tooltip: l(j),
|
|
2795
2796
|
datalabels: l(P),
|
|
2796
2797
|
plugins: [l(X)],
|
|
2797
2798
|
"maintain-aspect-ratio": !1
|
|
@@ -2835,7 +2836,7 @@ const Fl = { class: "widget-content" }, Hn = 1, zo = "rgba(0, 0, 0, 0)", Nl = /*
|
|
|
2835
2836
|
}),
|
|
2836
2837
|
emits: ["update:modelValue"],
|
|
2837
2838
|
setup(e) {
|
|
2838
|
-
const t = nt(e, "modelValue"), { breakpoints: n } =
|
|
2839
|
+
const t = nt(e, "modelValue"), { breakpoints: n } = jt(), o = S(null), r = S([]), { datalabels: i, legend: a } = ma(t.value), u = c(() => {
|
|
2839
2840
|
const I = Array.isArray(t.value.data.datasets) ? t.value.data.datasets.map((L) => L.name) : [];
|
|
2840
2841
|
return I.length > 0 ? I : Array.isArray(t.value.data.metrics) ? t.value.data.metrics.map((L) => String(L)) : [];
|
|
2841
2842
|
}), d = c(() => {
|
|
@@ -2878,7 +2879,7 @@ const Fl = { class: "widget-content" }, Hn = 1, zo = "rgba(0, 0, 0, 0)", Nl = /*
|
|
|
2878
2879
|
return typeof I == "string" && I.trim().length > 0 ? I : t.value.legendColor ?? "#6b6b6b";
|
|
2879
2880
|
}), B = c(() => h.value), R = c(() => ({
|
|
2880
2881
|
display: !1
|
|
2881
|
-
})),
|
|
2882
|
+
})), j = vr();
|
|
2882
2883
|
function P({ itemIndex: I }) {
|
|
2883
2884
|
if (r.value.includes(I)) {
|
|
2884
2885
|
r.value = r.value.filter(
|
|
@@ -2921,7 +2922,7 @@ const Fl = { class: "widget-content" }, Hn = 1, zo = "rgba(0, 0, 0, 0)", Nl = /*
|
|
|
2921
2922
|
percentage: "70%",
|
|
2922
2923
|
datasets: d.value,
|
|
2923
2924
|
metrics: u.value,
|
|
2924
|
-
tooltip: l(
|
|
2925
|
+
tooltip: l(j),
|
|
2925
2926
|
variant: "doughnut",
|
|
2926
2927
|
legend: R.value,
|
|
2927
2928
|
datalabels: l(i),
|
|
@@ -2998,7 +2999,7 @@ const Fl = { class: "widget-content" }, Hn = 1, zo = "rgba(0, 0, 0, 0)", Nl = /*
|
|
|
2998
2999
|
])
|
|
2999
3000
|
]));
|
|
3000
3001
|
}
|
|
3001
|
-
}), Xl = { class: "flex flex-col h-full" }, El = { class: "fm-typo-en-title-md-600" },
|
|
3002
|
+
}), Xl = { class: "flex flex-col h-full" }, El = { class: "fm-typo-en-title-md-600" }, jl = { class: "flex gap-2 mt-2" }, Gl = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, ql = {
|
|
3002
3003
|
key: 0,
|
|
3003
3004
|
class: "mt-auto pt-4"
|
|
3004
3005
|
}, Jl = { class: "flex justify-between gap-2 text-fm-color-typo-secondary fm-typo-en-body-sm-600" }, Zl = { class: "text-right" }, Ql = ["aria-valuenow", "aria-valuetext"], es = { class: "mt-1 text-fm-color-typo-secondary fm-typo-en-body-sm-600" }, ts = {
|
|
@@ -3051,7 +3052,7 @@ const Fl = { class: "widget-content" }, Hn = 1, zo = "rgba(0, 0, 0, 0)", Nl = /*
|
|
|
3051
3052
|
if (!Number.isFinite(z) || N == null || N <= 0) return "";
|
|
3052
3053
|
const D = Math.max(X(a.value), X(N));
|
|
3053
3054
|
return wt(Math.max(N - z, 0).toFixed(D));
|
|
3054
|
-
}),
|
|
3055
|
+
}), j = c(() => {
|
|
3055
3056
|
const { data: z } = t.value;
|
|
3056
3057
|
return z != null && z.comparison ? ta(a.value, z.comparison, i) : null;
|
|
3057
3058
|
});
|
|
@@ -3089,9 +3090,9 @@ const Fl = { class: "widget-content" }, Hn = 1, zo = "rgba(0, 0, 0, 0)", Nl = /*
|
|
|
3089
3090
|
return Y(), pe("div", Xl, [
|
|
3090
3091
|
ft(z.$slots, "menu"),
|
|
3091
3092
|
Q("p", El, Pe(u.value), 1),
|
|
3092
|
-
Q("div",
|
|
3093
|
+
Q("div", jl, [
|
|
3093
3094
|
be(W, {
|
|
3094
|
-
disabled:
|
|
3095
|
+
disabled: j.value === null,
|
|
3095
3096
|
placement: "right",
|
|
3096
3097
|
"hide-arrow": "",
|
|
3097
3098
|
variant: "rich"
|
|
@@ -3099,29 +3100,29 @@ const Fl = { class: "widget-content" }, Hn = 1, zo = "rgba(0, 0, 0, 0)", Nl = /*
|
|
|
3099
3100
|
content: Ae(() => {
|
|
3100
3101
|
var ne;
|
|
3101
3102
|
return [
|
|
3102
|
-
Q("span",
|
|
3103
|
+
Q("span", Gl, Pe(`vs. ${(ne = l(r).defaultCompareType) == null ? void 0 : ne.split("_").join(" ")}`), 1)
|
|
3103
3104
|
];
|
|
3104
3105
|
}),
|
|
3105
3106
|
default: Ae(() => [
|
|
3106
|
-
|
|
3107
|
+
j.value ? (Y(), ve(J, {
|
|
3107
3108
|
key: 0,
|
|
3108
|
-
icon:
|
|
3109
|
-
class: Re(`bg-${
|
|
3109
|
+
icon: j.value.icon.name,
|
|
3110
|
+
class: Re(`bg-${j.value.icon.tailwind}`),
|
|
3110
3111
|
compact: ""
|
|
3111
3112
|
}, {
|
|
3112
3113
|
default: Ae(() => [
|
|
3113
3114
|
be(D, {
|
|
3114
|
-
name:
|
|
3115
|
-
color:
|
|
3115
|
+
name: j.value.icon.name,
|
|
3116
|
+
color: j.value.icon.color
|
|
3116
3117
|
}, null, 8, ["name", "color"]),
|
|
3117
3118
|
Q("p", {
|
|
3118
3119
|
class: "fm-typo-en-body-md-600",
|
|
3119
|
-
style: Fe({ color:
|
|
3120
|
-
}, Pe(
|
|
3120
|
+
style: Fe({ color: j.value.icon.color })
|
|
3121
|
+
}, Pe(j.value.value), 5)
|
|
3121
3122
|
]),
|
|
3122
3123
|
_: 1
|
|
3123
3124
|
}, 8, ["icon", "class"])) : Ce("", !0),
|
|
3124
|
-
l(o).endDate != null && l(o).startDate != null &&
|
|
3125
|
+
l(o).endDate != null && l(o).startDate != null && j.value === null ? (Y(), ve(J, {
|
|
3125
3126
|
key: 1,
|
|
3126
3127
|
class: "invisible pointer-events-none",
|
|
3127
3128
|
"aria-hidden": "true",
|
|
@@ -3211,7 +3212,7 @@ function rs(e, t) {
|
|
|
3211
3212
|
const n = ye("FmMenuDivider");
|
|
3212
3213
|
return Y(), ve(n);
|
|
3213
3214
|
}
|
|
3214
|
-
const ls = /* @__PURE__ */
|
|
3215
|
+
const ls = /* @__PURE__ */ jo(as, [["render", rs]]), ss = "/assets/processTableData.worker-frTYV0ok.js", is = { class: "flex h-full flex-col" }, us = { class: "my-4 shrink-0" }, cs = {
|
|
3215
3216
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
3216
3217
|
style: { backgroundColor: "#f9f9f9" }
|
|
3217
3218
|
}, ds = { class: "font-bold" }, fs = { class: "text-fm-color-neutral-gray-300" }, ms = /* @__PURE__ */ $e({
|
|
@@ -3256,24 +3257,24 @@ const ls = /* @__PURE__ */ Go(as, [["render", rs]]), ss = "/assets/processTableD
|
|
|
3256
3257
|
maxWidth: M
|
|
3257
3258
|
};
|
|
3258
3259
|
}
|
|
3259
|
-
const
|
|
3260
|
+
const j = c(() => o.value.filterText), P = c(() => {
|
|
3260
3261
|
var M;
|
|
3261
3262
|
const x = (M = o.value.grandTotalLabel) == null ? void 0 : M.trim();
|
|
3262
3263
|
return x && x.length > 0 ? x : Ct(t, n, "Grand total", "other");
|
|
3263
3264
|
}), I = c(
|
|
3264
|
-
() => o.value.rollupPosition ===
|
|
3265
|
+
() => o.value.rollupPosition === Ge.bottom ? Ge.bottom : Ge.top
|
|
3265
3266
|
), L = c(() => {
|
|
3266
3267
|
var x, M;
|
|
3267
3268
|
return f.value ? f.value.grandTotalRow : (x = b.value[0]) != null && x.isRollup ? b.value[0] : (M = b.value[b.value.length - 1]) != null && M.isRollup ? b.value[b.value.length - 1] : null;
|
|
3268
3269
|
}), T = c(() => {
|
|
3269
3270
|
var x, M;
|
|
3270
3271
|
if (f.value)
|
|
3271
|
-
return f.value.grandTotalRow ?
|
|
3272
|
-
if (!(
|
|
3273
|
-
if (o.value.rollupPosition ===
|
|
3274
|
-
return
|
|
3275
|
-
if (o.value.rollupPosition ===
|
|
3276
|
-
return
|
|
3272
|
+
return f.value.grandTotalRow ? Ge.top : void 0;
|
|
3273
|
+
if (!(j.value && j.value.trim().length > 0 || !((x = b.value[0]) != null && x.isRollup) && !((M = b.value[b.value.length - 1]) != null && M.isRollup))) {
|
|
3274
|
+
if (o.value.rollupPosition === Ge.top || o.value.rollupPosition === void 0)
|
|
3275
|
+
return Ge.top;
|
|
3276
|
+
if (o.value.rollupPosition === Ge.bottom)
|
|
3277
|
+
return Ge.bottom;
|
|
3277
3278
|
}
|
|
3278
3279
|
}), w = c(() => {
|
|
3279
3280
|
const x = _.value, M = 34.5, te = 32, F = T.value !== void 0 ? 1 : 0, ce = (C.value ? C.value.$el.offsetHeight : 0) - x, ee = Math.floor((ce - M - te) / x) - F;
|
|
@@ -3341,7 +3342,7 @@ const ls = /* @__PURE__ */ Go(as, [["render", rs]]), ss = "/assets/processTableD
|
|
|
3341
3342
|
})), F = {
|
|
3342
3343
|
rows: M,
|
|
3343
3344
|
columns: te,
|
|
3344
|
-
filter:
|
|
3345
|
+
filter: j.value ?? "",
|
|
3345
3346
|
globalSorts: Wa(h.value).map((ee) => ({
|
|
3346
3347
|
key: ee.key,
|
|
3347
3348
|
type: ee.type
|
|
@@ -3350,7 +3351,7 @@ const ls = /* @__PURE__ */ Go(as, [["render", rs]]), ss = "/assets/processTableD
|
|
|
3350
3351
|
rollupPosition: I.value,
|
|
3351
3352
|
pageSize: w.value
|
|
3352
3353
|
};
|
|
3353
|
-
|
|
3354
|
+
ja(ss, F).then((ee) => {
|
|
3354
3355
|
x === z && (ee != null && ee.error ? (u.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(ee.error), le.value = []) : le.value = bo(ee.data || []));
|
|
3355
3356
|
});
|
|
3356
3357
|
}
|
|
@@ -3367,7 +3368,7 @@ const ls = /* @__PURE__ */ Go(as, [["render", rs]]), ss = "/assets/processTableD
|
|
|
3367
3368
|
return JSON.stringify({
|
|
3368
3369
|
rowsLength: x.length,
|
|
3369
3370
|
columns: M.map((ee) => ({ key: ee.key, type: ee.type, label: ee.label })),
|
|
3370
|
-
filter:
|
|
3371
|
+
filter: j.value ?? "",
|
|
3371
3372
|
globalSorts: h.value.map((ee) => ({ key: ee.key, type: ee.type })),
|
|
3372
3373
|
grandTotalPosition: T.value,
|
|
3373
3374
|
rollupPosition: I.value,
|
|
@@ -3501,7 +3502,7 @@ const ls = /* @__PURE__ */ Go(as, [["render", rs]]), ss = "/assets/processTableD
|
|
|
3501
3502
|
ref: C,
|
|
3502
3503
|
"column-defs": se.value,
|
|
3503
3504
|
"row-data": le.value,
|
|
3504
|
-
"search-value":
|
|
3505
|
+
"search-value": j.value,
|
|
3505
3506
|
"page-size": ge.value,
|
|
3506
3507
|
"page-count": f.value ? E.value : void 0,
|
|
3507
3508
|
"shrink-at": !1,
|
|
@@ -3516,7 +3517,7 @@ const ls = /* @__PURE__ */ Go(as, [["render", rs]]), ss = "/assets/processTableD
|
|
|
3516
3517
|
T.value ? {
|
|
3517
3518
|
name: "pin-top",
|
|
3518
3519
|
fn: Ae(() => [
|
|
3519
|
-
(Y(), ve(Ko(T.value === l(
|
|
3520
|
+
(Y(), ve(Ko(T.value === l(Ge).bottom ? "tfoot" : "tbody"), null, {
|
|
3520
3521
|
default: Ae(() => [
|
|
3521
3522
|
Q("tr", cs, [
|
|
3522
3523
|
(Y(!0), pe(Ke, null, _t(H.value, (F, ce) => {
|
|
@@ -3599,7 +3600,7 @@ const ls = /* @__PURE__ */ Go(as, [["render", rs]]), ss = "/assets/processTableD
|
|
|
3599
3600
|
const _ = c(() => {
|
|
3600
3601
|
if (i.value.length > 0) {
|
|
3601
3602
|
const A = u.value.map((O, ne) => {
|
|
3602
|
-
const ue =
|
|
3603
|
+
const ue = Gt({
|
|
3603
3604
|
datasets: u.value,
|
|
3604
3605
|
datasetIndex: ne
|
|
3605
3606
|
}), ge = a.value ? tn(u.value, ue) : ue, E = We({
|
|
@@ -3656,7 +3657,7 @@ const ls = /* @__PURE__ */ Go(as, [["render", rs]]), ss = "/assets/processTableD
|
|
|
3656
3657
|
isTooltipDetailsSheetOpen: k,
|
|
3657
3658
|
tooltipDetailsPayload: B,
|
|
3658
3659
|
handleTooltipDetailsSheetVisibility: R,
|
|
3659
|
-
handleTooltipDetailsHover:
|
|
3660
|
+
handleTooltipDetailsHover: j,
|
|
3660
3661
|
handleTooltipDetailsLeave: P,
|
|
3661
3662
|
comparisonTooltip: I,
|
|
3662
3663
|
datalabels: L,
|
|
@@ -3743,7 +3744,7 @@ const ls = /* @__PURE__ */ Go(as, [["render", rs]]), ss = "/assets/processTableD
|
|
|
3743
3744
|
"model-value": l(k),
|
|
3744
3745
|
"details-payload": l(B),
|
|
3745
3746
|
"onUpdate:modelValue": l(R),
|
|
3746
|
-
onValueHover: l(
|
|
3747
|
+
onValueHover: l(j),
|
|
3747
3748
|
onValueLeave: l(P)
|
|
3748
3749
|
}, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
|
|
3749
3750
|
], 64);
|
|
@@ -3836,7 +3837,7 @@ const ls = /* @__PURE__ */ Go(as, [["render", rs]]), ss = "/assets/processTableD
|
|
|
3836
3837
|
const x = Math.max(ae.size, 1), M = t.value.chartColorBinding === Me.breakdown, te = t.value.chartUseSecondaryMetricShades !== !1;
|
|
3837
3838
|
return E.map((F) => {
|
|
3838
3839
|
var gt;
|
|
3839
|
-
const ce =
|
|
3840
|
+
const ce = Gt({
|
|
3840
3841
|
datasets: u.value,
|
|
3841
3842
|
datasetIndex: F.index
|
|
3842
3843
|
}), ee = a.value ? tn(u.value, ce) : ce, Te = qo({
|
|
@@ -3880,7 +3881,7 @@ const ls = /* @__PURE__ */ Go(as, [["render", rs]]), ss = "/assets/processTableD
|
|
|
3880
3881
|
};
|
|
3881
3882
|
});
|
|
3882
3883
|
}), {
|
|
3883
|
-
isTooltipDetailsSheetOpen:
|
|
3884
|
+
isTooltipDetailsSheetOpen: j,
|
|
3884
3885
|
tooltipDetailsPayload: P,
|
|
3885
3886
|
handleTooltipDetailsSheetVisibility: I,
|
|
3886
3887
|
handleTooltipDetailsHover: L,
|
|
@@ -3987,7 +3988,7 @@ const ls = /* @__PURE__ */ Go(as, [["render", rs]]), ss = "/assets/processTableD
|
|
|
3987
3988
|
], 2)
|
|
3988
3989
|
]),
|
|
3989
3990
|
be(Zt, {
|
|
3990
|
-
"model-value": l(
|
|
3991
|
+
"model-value": l(j),
|
|
3991
3992
|
"details-payload": l(P),
|
|
3992
3993
|
"onUpdate:modelValue": l(I),
|
|
3993
3994
|
onValueHover: l(L),
|
|
@@ -4040,7 +4041,7 @@ const bs = { class: "widget-content" }, Cs = /* @__PURE__ */ $e({
|
|
|
4040
4041
|
})), X = Jt("line"), b = ga("report-line-style-plugin-stack-line"), f = c(() => r.value.length > 0 ? [
|
|
4041
4042
|
...a.value.map((W, K) => {
|
|
4042
4043
|
var F;
|
|
4043
|
-
const A =
|
|
4044
|
+
const A = Gt({
|
|
4044
4045
|
datasets: a.value,
|
|
4045
4046
|
datasetIndex: K
|
|
4046
4047
|
}), O = i.value ? tn(a.value, A) : A;
|
|
@@ -4097,7 +4098,7 @@ const bs = { class: "widget-content" }, Cs = /* @__PURE__ */ $e({
|
|
|
4097
4098
|
handleTooltipDetailsSheetVisibility: k,
|
|
4098
4099
|
handleTooltipDetailsHover: B,
|
|
4099
4100
|
handleTooltipDetailsLeave: R,
|
|
4100
|
-
comparisonTooltip:
|
|
4101
|
+
comparisonTooltip: j,
|
|
4101
4102
|
datalabels: P,
|
|
4102
4103
|
xCfg: I,
|
|
4103
4104
|
yCfg: L,
|
|
@@ -4153,7 +4154,7 @@ const bs = { class: "widget-content" }, Cs = /* @__PURE__ */ $e({
|
|
|
4153
4154
|
"y-cfg": l(L),
|
|
4154
4155
|
transpose: l(T),
|
|
4155
4156
|
legend: C.value,
|
|
4156
|
-
tooltip: l(
|
|
4157
|
+
tooltip: l(j),
|
|
4157
4158
|
plugins: [l(X), l(b)],
|
|
4158
4159
|
stacked: !0,
|
|
4159
4160
|
datalabels: l(P),
|
|
@@ -4199,7 +4200,7 @@ function xs(e) {
|
|
|
4199
4200
|
for (const o of t) n += String.fromCharCode(o);
|
|
4200
4201
|
return `${so}${btoa(n)}`;
|
|
4201
4202
|
}
|
|
4202
|
-
function
|
|
4203
|
+
function ri(e) {
|
|
4203
4204
|
if (!ha(e)) return e;
|
|
4204
4205
|
try {
|
|
4205
4206
|
const t = atob(e.slice(so.length));
|
|
@@ -4307,7 +4308,7 @@ const As = { class: "widget-content" }, Rs = /* @__PURE__ */ $e({
|
|
|
4307
4308
|
})), b = Jt("line"), f = ga("report-line-style-plugin-line"), y = c(() => o.value.length > 0 ? [
|
|
4308
4309
|
...a.value.map((K, A) => {
|
|
4309
4310
|
var Te;
|
|
4310
|
-
const O =
|
|
4311
|
+
const O = Gt({
|
|
4311
4312
|
datasets: a.value,
|
|
4312
4313
|
datasetIndex: A
|
|
4313
4314
|
}), ne = i.value ? tn(a.value, O) : O, ue = We({
|
|
@@ -4365,7 +4366,7 @@ const As = { class: "widget-content" }, Rs = /* @__PURE__ */ $e({
|
|
|
4365
4366
|
tooltipDetailsPayload: k,
|
|
4366
4367
|
handleTooltipDetailsSheetVisibility: B,
|
|
4367
4368
|
handleTooltipDetailsHover: R,
|
|
4368
|
-
handleTooltipDetailsLeave:
|
|
4369
|
+
handleTooltipDetailsLeave: j,
|
|
4369
4370
|
comparisonTooltip: P,
|
|
4370
4371
|
datalabels: I,
|
|
4371
4372
|
xCfg: L,
|
|
@@ -4451,7 +4452,7 @@ const As = { class: "widget-content" }, Rs = /* @__PURE__ */ $e({
|
|
|
4451
4452
|
"details-payload": l(k),
|
|
4452
4453
|
"onUpdate:modelValue": l(B),
|
|
4453
4454
|
onValueHover: l(R),
|
|
4454
|
-
onValueLeave: l(
|
|
4455
|
+
onValueLeave: l(j)
|
|
4455
4456
|
}, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
|
|
4456
4457
|
], 64);
|
|
4457
4458
|
};
|
|
@@ -4459,7 +4460,7 @@ const As = { class: "widget-content" }, Rs = /* @__PURE__ */ $e({
|
|
|
4459
4460
|
}), Fs = { class: "flex flex-col gap-16" }, Ns = { class: "flex flex-row" }, Vs = /* @__PURE__ */ $e({
|
|
4460
4461
|
__name: "PdfOrientationDialog",
|
|
4461
4462
|
props: /* @__PURE__ */ tt({
|
|
4462
|
-
|
|
4463
|
+
fileType: {},
|
|
4463
4464
|
index: {}
|
|
4464
4465
|
}, {
|
|
4465
4466
|
modelValue: { type: Boolean, required: !0 },
|
|
@@ -4476,7 +4477,7 @@ const As = { class: "widget-content" }, Rs = /* @__PURE__ */ $e({
|
|
|
4476
4477
|
u.value = !0;
|
|
4477
4478
|
try {
|
|
4478
4479
|
o.index != null && await Xo({
|
|
4479
|
-
|
|
4480
|
+
fileType: o.fileType,
|
|
4480
4481
|
index: o.index,
|
|
4481
4482
|
orientationTypes: [b.value],
|
|
4482
4483
|
isCombinedLocationLayout: a.value,
|
|
@@ -4491,7 +4492,7 @@ const As = { class: "widget-content" }, Rs = /* @__PURE__ */ $e({
|
|
|
4491
4492
|
}
|
|
4492
4493
|
}
|
|
4493
4494
|
return (_, k) => {
|
|
4494
|
-
const B = ye("FmRadio"), R = ye("FmRadioGroup"),
|
|
4495
|
+
const B = ye("FmRadio"), R = ye("FmRadioGroup"), j = ye("FmButton"), P = ye("FmDialog");
|
|
4495
4496
|
return Y(), ve(P, {
|
|
4496
4497
|
modelValue: i.value,
|
|
4497
4498
|
"onUpdate:modelValue": k[2] || (k[2] = (I) => i.value = I),
|
|
@@ -4528,13 +4529,13 @@ const As = { class: "widget-content" }, Rs = /* @__PURE__ */ $e({
|
|
|
4528
4529
|
]),
|
|
4529
4530
|
Q("div", Ns, [
|
|
4530
4531
|
k[4] || (k[4] = Q("div", { class: "grow" }, null, -1)),
|
|
4531
|
-
be(
|
|
4532
|
+
be(j, {
|
|
4532
4533
|
label: l(t)("report.common.cancel"),
|
|
4533
4534
|
variant: "tertiary",
|
|
4534
4535
|
onClick: k[1] || (k[1] = (I) => i.value = !1)
|
|
4535
4536
|
}, null, 8, ["label"]),
|
|
4536
4537
|
Q("div", null, [
|
|
4537
|
-
be(
|
|
4538
|
+
be(j, {
|
|
4538
4539
|
label: l(t)("report.common.download"),
|
|
4539
4540
|
loading: u.value,
|
|
4540
4541
|
onClick: f
|
|
@@ -4551,7 +4552,7 @@ const As = { class: "widget-content" }, Rs = /* @__PURE__ */ $e({
|
|
|
4551
4552
|
}
|
|
4552
4553
|
});
|
|
4553
4554
|
function $s(e) {
|
|
4554
|
-
const { breakpoints: t } =
|
|
4555
|
+
const { breakpoints: t } = jt(), { containerRef: n, isTable: o = S(!0) } = e;
|
|
4555
4556
|
let r = S(1), i = null, a = null, u = null, d = null, h = null, C = null;
|
|
4556
4557
|
function X() {
|
|
4557
4558
|
return n.value ? n.value.querySelector("table") : null;
|
|
@@ -4589,7 +4590,7 @@ function $s(e) {
|
|
|
4589
4590
|
pointer-events: auto;
|
|
4590
4591
|
`;
|
|
4591
4592
|
const T = u.cloneNode(!0);
|
|
4592
|
-
T.style.cssText = "pointer-events: auto;", y(u, T), L.appendChild(T), i.appendChild(L), document.body.appendChild(i), B(), R(),
|
|
4593
|
+
T.style.cssText = "pointer-events: auto;", y(u, T), L.appendChild(T), i.appendChild(L), document.body.appendChild(i), B(), R(), j(), k();
|
|
4593
4594
|
}
|
|
4594
4595
|
function y(L, T) {
|
|
4595
4596
|
const w = L.querySelectorAll("th, td"), H = T.querySelectorAll("th, td");
|
|
@@ -4672,7 +4673,7 @@ function $s(e) {
|
|
|
4672
4673
|
k();
|
|
4673
4674
|
}), n.value && d.observe(n.value), a && d.observe(a);
|
|
4674
4675
|
}
|
|
4675
|
-
function
|
|
4676
|
+
function j() {
|
|
4676
4677
|
if (!u) return;
|
|
4677
4678
|
const L = On(() => f(), 100), T = () => {
|
|
4678
4679
|
if (u && i) {
|
|
@@ -4708,7 +4709,7 @@ function $s(e) {
|
|
|
4708
4709
|
}), { refresh: I, cleanup: P };
|
|
4709
4710
|
}
|
|
4710
4711
|
const va = Symbol("report-page-nav");
|
|
4711
|
-
function
|
|
4712
|
+
function li(e) {
|
|
4712
4713
|
Ua(va, e);
|
|
4713
4714
|
}
|
|
4714
4715
|
function zs() {
|
|
@@ -4718,7 +4719,7 @@ function Hs(e) {
|
|
|
4718
4719
|
let t, n, o, r;
|
|
4719
4720
|
switch (e) {
|
|
4720
4721
|
case Z.Table:
|
|
4721
|
-
t = [], n = !0, o =
|
|
4722
|
+
t = [], n = !0, o = Ge.top;
|
|
4722
4723
|
break;
|
|
4723
4724
|
case Z.ClusteredStackBarChart:
|
|
4724
4725
|
r = !0;
|
|
@@ -4747,7 +4748,7 @@ function Hs(e) {
|
|
|
4747
4748
|
joinDatasources: t
|
|
4748
4749
|
};
|
|
4749
4750
|
}
|
|
4750
|
-
function
|
|
4751
|
+
function si(e, t) {
|
|
4751
4752
|
let n = 1, o = 1;
|
|
4752
4753
|
switch (e) {
|
|
4753
4754
|
case Z.Scorecard:
|
|
@@ -4782,7 +4783,7 @@ function li(e, t) {
|
|
|
4782
4783
|
}
|
|
4783
4784
|
};
|
|
4784
4785
|
}
|
|
4785
|
-
function
|
|
4786
|
+
function ii(e, t) {
|
|
4786
4787
|
return e.filter((n, o) => o !== t);
|
|
4787
4788
|
}
|
|
4788
4789
|
function Wo(e) {
|
|
@@ -4790,7 +4791,7 @@ function Wo(e) {
|
|
|
4790
4791
|
return "option" in e && e.option && t.push(e.option), "aggregation" in e && e.aggregation && t.push(e.aggregation), t.push(e.label.replace(/[^\p{L}\p{N}_]+/gu, "")), t.join("_").toLowerCase();
|
|
4791
4792
|
}
|
|
4792
4793
|
function Ws(e, t, n = []) {
|
|
4793
|
-
var y, _, k, B, R,
|
|
4794
|
+
var y, _, k, B, R, j;
|
|
4794
4795
|
if (!e || !Array.isArray(e.columns) || !Array.isArray(e.rows))
|
|
4795
4796
|
return [];
|
|
4796
4797
|
const o = (P) => P.schemaName === t.schemaName && P.name === t.name && (t.option ? P.option === t.option : !0), r = n.findIndex(o);
|
|
@@ -4823,7 +4824,7 @@ function Ws(e, t, n = []) {
|
|
|
4823
4824
|
},
|
|
4824
4825
|
[]
|
|
4825
4826
|
).indexOf(u), f = b >= 0 ? C[b] ?? -1 : String(
|
|
4826
|
-
((B = (k = e.columns) == null ? void 0 : k[u]) == null ? void 0 : B.type) ?? ((
|
|
4827
|
+
((B = (k = e.columns) == null ? void 0 : k[u]) == null ? void 0 : B.type) ?? ((j = (R = e.columns) == null ? void 0 : R[u]) == null ? void 0 : j.dataType) ?? ""
|
|
4827
4828
|
).toUpperCase() === "STRING" ? u : -1;
|
|
4828
4829
|
return f === -1 ? [] : a.map((P) => {
|
|
4829
4830
|
var I;
|
|
@@ -4842,7 +4843,7 @@ const Os = {
|
|
|
4842
4843
|
}, Ys = {
|
|
4843
4844
|
key: 2,
|
|
4844
4845
|
class: "flex"
|
|
4845
|
-
},
|
|
4846
|
+
}, ui = /* @__PURE__ */ $e({
|
|
4846
4847
|
__name: "DynamicWidget",
|
|
4847
4848
|
props: /* @__PURE__ */ tt({
|
|
4848
4849
|
reportId: {
|
|
@@ -4891,12 +4892,12 @@ const Os = {
|
|
|
4891
4892
|
}), _ = S(a.rollup), k = S(Ut()), B = S(a.drillDimension), R = c(() => {
|
|
4892
4893
|
if (dt.value.length > 0) {
|
|
4893
4894
|
const p = dt.value.findIndex(
|
|
4894
|
-
(
|
|
4895
|
+
(G) => G.value === B.value
|
|
4895
4896
|
);
|
|
4896
4897
|
return p >= 0 ? p : 0;
|
|
4897
4898
|
} else
|
|
4898
4899
|
return -1;
|
|
4899
|
-
}),
|
|
4900
|
+
}), j = c(() => R.value !== 0), P = c(
|
|
4900
4901
|
() => R.value != dt.value.length - 1
|
|
4901
4902
|
), I = S(a.showTitle ?? !0), L = S(a.titleFontSize ?? 14), T = S(a.titleBold ?? !1), w = S(a.titleItalic ?? !1), H = S(a.titleUnderline ?? !1), q = S(
|
|
4902
4903
|
Array.isArray(a.chartColors) ? [...a.chartColors] : void 0
|
|
@@ -4911,7 +4912,7 @@ const Os = {
|
|
|
4911
4912
|
var p;
|
|
4912
4913
|
return ((p = lt.value) == null ? void 0 : p.showSearchBar) === !0 && (me.value.config.showSearchBar ?? !0);
|
|
4913
4914
|
}
|
|
4914
|
-
), se = S(a.showX ?? !0), x = S(a.xPosition ?? Xn.bottom), M = S(a.showXGrid ?? !1), te = S(a.showXTick ?? !0), F = S(a.xTickFontSize ?? 12), ce = S(a.showXTitle ?? !1), ee = S(a.xTitle ?? ""), Te = S(a.xTitleFontSize ?? 12), Ve = S(a.showY ?? !0), xe = S(a.yPosition ?? En.left), Je = S(a.showYGrid ?? !1), ut = S(a.showYTick ?? !0), ot = S(a.yTickFontSize ?? 12), at = S(a.showYTitle ?? !1), kt = S(a.yTitle ?? ""), mt = S(a.yTitleFontSize ?? 12), pt = S(a.showLegend ?? void 0), Tt = S(a.legendPosition ??
|
|
4915
|
+
), se = S(a.showX ?? !0), x = S(a.xPosition ?? Xn.bottom), M = S(a.showXGrid ?? !1), te = S(a.showXTick ?? !0), F = S(a.xTickFontSize ?? 12), ce = S(a.showXTitle ?? !1), ee = S(a.xTitle ?? ""), Te = S(a.xTitleFontSize ?? 12), Ve = S(a.showY ?? !0), xe = S(a.yPosition ?? En.left), Je = S(a.showYGrid ?? !1), ut = S(a.showYTick ?? !0), ot = S(a.yTickFontSize ?? 12), at = S(a.showYTitle ?? !1), kt = S(a.yTitle ?? ""), mt = S(a.yTitleFontSize ?? 12), pt = S(a.showLegend ?? void 0), Tt = S(a.legendPosition ?? jn.top), Ze = S(a.usePointStyle ?? !0), gt = S(a.legendFontSize), on = S(a.legendColor ?? "#6b6b6b"), an = S(a.maxTooltipItems), zt = S(a.stackBarOverlap ?? !1), ct = S(a.rowHeight ?? null), rn = S(a.colWidths ?? null), Ht = S(!1), Lt = S(""), { breakpoints: rt, getBreakpointsBoundary: ht } = jt(), ln = S(), Dt = S(window.innerWidth), Be = c(
|
|
4915
4916
|
() => C.customScreenWidth === void 0 ? Dt.value : C.customScreenWidth
|
|
4916
4917
|
), Tn = c(
|
|
4917
4918
|
() => (Be == null ? void 0 : Be.value) > ht("xs")[1] && (Be == null ? void 0 : Be.value) <= ht("sm")[1]
|
|
@@ -4922,10 +4923,10 @@ const Os = {
|
|
|
4922
4923
|
return Ln.value || sn.value ? Ls(p) : Tn.value ? Ds(p) : Is(p);
|
|
4923
4924
|
}), lt = c(
|
|
4924
4925
|
() => nr.find((p) => p.type === r.value.widget.type)
|
|
4925
|
-
), s = zs(), g = c(() => !!s &&
|
|
4926
|
+
), s = zs(), g = c(() => !!s && Ja(r.value)), m = c(
|
|
4926
4927
|
() => {
|
|
4927
|
-
var p,
|
|
4928
|
-
return I.value || ae.value || g.value || (((p = lt.value) == null ? void 0 : p.showLabel) ?? !1) || (((
|
|
4928
|
+
var p, G, de;
|
|
4929
|
+
return I.value || ae.value || g.value || (((p = lt.value) == null ? void 0 : p.showLabel) ?? !1) || (((G = lt.value) == null ? void 0 : G.showDrillDimension) ?? !1) && dt.value.length > 0 || (((de = lt.value) == null ? void 0 : de.showRollup) ?? !1) && Fn.value.length > 0;
|
|
4929
4930
|
}
|
|
4930
4931
|
), v = On(async () => {
|
|
4931
4932
|
Dt.value = window.innerWidth, ln.value = Ba(), k.value = Ut(), await Uo(), y();
|
|
@@ -4970,44 +4971,44 @@ const Os = {
|
|
|
4970
4971
|
}
|
|
4971
4972
|
function Oe(p) {
|
|
4972
4973
|
var _e, Ie;
|
|
4973
|
-
const
|
|
4974
|
+
const G = p, de = G == null ? void 0 : G.paging;
|
|
4974
4975
|
if (!de) {
|
|
4975
|
-
if (Qe(), ie.value &&
|
|
4976
|
-
const Le =
|
|
4977
|
-
Se.value = (_e = Le[0]) != null && _e.isRollup ? Le[0] : null, ke.value = Le.length, fe = { jobId: "whole", blocks: /* @__PURE__ */ new Map([[0, Le]]) },
|
|
4976
|
+
if (Qe(), ie.value && G) {
|
|
4977
|
+
const Le = G.rows;
|
|
4978
|
+
Se.value = (_e = Le[0]) != null && _e.isRollup ? Le[0] : null, ke.value = Le.length, fe = { jobId: "whole", blocks: /* @__PURE__ */ new Map([[0, Le]]) }, je(Ee.value, re.value.count || Le.length);
|
|
4978
4979
|
}
|
|
4979
4980
|
return;
|
|
4980
4981
|
}
|
|
4981
|
-
ie.value = !0, ke.value = de.totalRows, Se.value = (Ie =
|
|
4982
|
+
ie.value = !0, ke.value = de.totalRows, Se.value = (Ie = G.rows[0]) != null && Ie.isRollup ? G.rows[0] : null, fe = { jobId: de.jobId, blocks: /* @__PURE__ */ new Map([[0, G.rows]]) }, je(Ee.value, re.value.count || Math.min(G.rows.length, 25));
|
|
4982
4983
|
}
|
|
4983
|
-
function
|
|
4984
|
+
function je(p, G) {
|
|
4984
4985
|
var Le;
|
|
4985
4986
|
const de = V.value;
|
|
4986
4987
|
if (!de || !fe) return;
|
|
4987
4988
|
const _e = ((Le = Ne.value) == null ? void 0 : Le.pageSize) ?? oe, Ie = [];
|
|
4988
|
-
for (let Ue = p; Ue < p +
|
|
4989
|
+
for (let Ue = p; Ue < p + G; Ue++) {
|
|
4989
4990
|
const ze = fe.blocks.get(Math.floor(Ue / _e) * _e), vt = ze == null ? void 0 : ze[Ue % _e];
|
|
4990
4991
|
if (!vt) break;
|
|
4991
4992
|
Ie.push(vt);
|
|
4992
4993
|
}
|
|
4993
|
-
re.value = { startIndex: p, count:
|
|
4994
|
+
re.value = { startIndex: p, count: G }, V.value = { ...de, rows: Ie };
|
|
4994
4995
|
}
|
|
4995
|
-
function In(p,
|
|
4996
|
+
function In(p, G) {
|
|
4996
4997
|
const de = V.value;
|
|
4997
|
-
de != null && de.paging && (V.value = { ...de, paging: { ...de.paging, jobId: p } }),
|
|
4998
|
+
de != null && de.paging && (V.value = { ...de, paging: { ...de.paging, jobId: p } }), G && (ke.value = G), fe = { jobId: p, blocks: /* @__PURE__ */ new Map() };
|
|
4998
4999
|
}
|
|
4999
|
-
async function Pn(p,
|
|
5000
|
+
async function Pn(p, G) {
|
|
5000
5001
|
var vt, dn, fn;
|
|
5001
5002
|
const de = Ne.value;
|
|
5002
5003
|
if (!de) {
|
|
5003
|
-
|
|
5004
|
+
je(p, G);
|
|
5004
5005
|
return;
|
|
5005
5006
|
}
|
|
5006
|
-
const _e = de.pageSize, Ie = Math.floor(p / _e) * _e, Le = Math.floor((p +
|
|
5007
|
+
const _e = de.pageSize, Ie = Math.floor(p / _e) * _e, Le = Math.floor((p + G - 1) / _e) * _e, Ue = [];
|
|
5007
5008
|
for (let He = Ie; He <= Le && He < ke.value; He += _e)
|
|
5008
5009
|
((fe == null ? void 0 : fe.jobId) !== de.jobId || !fe.blocks.has(He)) && Ue.push(He);
|
|
5009
5010
|
if (Ue.length === 0) {
|
|
5010
|
-
|
|
5011
|
+
je(p, G);
|
|
5011
5012
|
return;
|
|
5012
5013
|
}
|
|
5013
5014
|
he.value = !0;
|
|
@@ -5026,9 +5027,9 @@ const Os = {
|
|
|
5026
5027
|
const Pt = (dn = bt.paging) == null ? void 0 : dn.jobId;
|
|
5027
5028
|
Pt && Pt !== ze && (ze = Pt, In(ze, (fn = bt.paging) == null ? void 0 : fn.totalRows)), (fe == null ? void 0 : fe.jobId) !== ze && (fe = { jobId: ze, blocks: /* @__PURE__ */ new Map() }), fe.blocks.set(He, bt.rows);
|
|
5028
5029
|
}
|
|
5029
|
-
|
|
5030
|
+
je(p, G);
|
|
5030
5031
|
} catch (He) {
|
|
5031
|
-
if (
|
|
5032
|
+
if (qa(He) === 410) {
|
|
5032
5033
|
Qe(), await It();
|
|
5033
5034
|
return;
|
|
5034
5035
|
}
|
|
@@ -5038,7 +5039,7 @@ const Os = {
|
|
|
5038
5039
|
}
|
|
5039
5040
|
}
|
|
5040
5041
|
function un(p) {
|
|
5041
|
-
const
|
|
5042
|
+
const G = me.value.config, de = [G, ...G.joinDatasources ?? []];
|
|
5042
5043
|
for (const _e of de)
|
|
5043
5044
|
for (const Ie of [..._e.dimensions ?? [], ..._e.metrics ?? []])
|
|
5044
5045
|
if (Wo(Ie) === p) return Ie;
|
|
@@ -5046,16 +5047,16 @@ const Os = {
|
|
|
5046
5047
|
}
|
|
5047
5048
|
function uo() {
|
|
5048
5049
|
if (we.value.length === 0) return me.value;
|
|
5049
|
-
const p = we.value.map((
|
|
5050
|
-
const de = un(
|
|
5050
|
+
const p = we.value.map((G) => {
|
|
5051
|
+
const de = un(G.key);
|
|
5051
5052
|
return de ? {
|
|
5052
5053
|
schemaName: de.schemaName,
|
|
5053
5054
|
name: de.name,
|
|
5054
5055
|
aggregation: de.aggregation ?? null,
|
|
5055
5056
|
dimensionOption: de.option ?? null,
|
|
5056
|
-
type:
|
|
5057
|
+
type: G.type === qe.Desc ? qe.Desc : qe.Asc
|
|
5057
5058
|
} : null;
|
|
5058
|
-
}).filter((
|
|
5059
|
+
}).filter((G) => G != null);
|
|
5059
5060
|
return p.length === 0 ? me.value : {
|
|
5060
5061
|
...me.value,
|
|
5061
5062
|
config: { ...me.value.config, sorts: p }
|
|
@@ -5074,7 +5075,7 @@ const Os = {
|
|
|
5074
5075
|
function ya(p) {
|
|
5075
5076
|
we.value = p, Qe(), It();
|
|
5076
5077
|
}
|
|
5077
|
-
const { selectedLocationIds: Mn, dateRange: Bn, compareDateRange: ba, timeRange: An } = Yt(wn()), Ca =
|
|
5078
|
+
const { selectedLocationIds: Mn, dateRange: Bn, compareDateRange: ba, timeRange: An } = Yt(wn()), Ca = Za(), { globalFilters: xa, lastAppliedTileFilterIds: wa } = Yt(Ca), { businessDataVersion: Rn, dateSettingLoaded: mo } = Yt(wn()), _a = S(!0), me = c(() => {
|
|
5078
5079
|
const p = JSON.parse(JSON.stringify(r.value.widget));
|
|
5079
5080
|
return {
|
|
5080
5081
|
...p,
|
|
@@ -5090,20 +5091,20 @@ const Os = {
|
|
|
5090
5091
|
const p = ((de = me.value.config.metrics) == null ? void 0 : de.length) ?? 0;
|
|
5091
5092
|
if (!me.value.config.isBlend)
|
|
5092
5093
|
return p;
|
|
5093
|
-
const
|
|
5094
|
+
const G = (me.value.config.joinDatasources ?? []).reduce(
|
|
5094
5095
|
(_e, Ie) => {
|
|
5095
5096
|
var Le;
|
|
5096
5097
|
return _e + (((Le = Ie.metrics) == null ? void 0 : Le.length) ?? 0);
|
|
5097
5098
|
},
|
|
5098
5099
|
0
|
|
5099
5100
|
);
|
|
5100
|
-
return p +
|
|
5101
|
+
return p + G;
|
|
5101
5102
|
}), ka = c(() => [
|
|
5102
5103
|
me.value.config,
|
|
5103
5104
|
...me.value.config.isBlend ? me.value.config.joinDatasources ?? [] : []
|
|
5104
|
-
].some((
|
|
5105
|
+
].some((G) => {
|
|
5105
5106
|
var de;
|
|
5106
|
-
return (de =
|
|
5107
|
+
return (de = G.metrics) == null ? void 0 : de.some((_e) => _e.nullable);
|
|
5107
5108
|
}));
|
|
5108
5109
|
function Ta() {
|
|
5109
5110
|
return {
|
|
@@ -5199,11 +5200,11 @@ const Os = {
|
|
|
5199
5200
|
}), Fn = c(() => {
|
|
5200
5201
|
const { config: p } = r.value.widget;
|
|
5201
5202
|
if (p.rollup != null) {
|
|
5202
|
-
const
|
|
5203
|
+
const G = [...p.dimensions].filter((de) => !de.hide);
|
|
5203
5204
|
return [
|
|
5204
5205
|
{ label: Ct(u, d, "None", "other"), value: "none" },
|
|
5205
5206
|
{ label: Ct(u, d, "Grand Total", "other"), value: 0 },
|
|
5206
|
-
...[...
|
|
5207
|
+
...[...G].slice(0, G.length - 1).map((de, _e) => ({
|
|
5207
5208
|
label: Ct(u, d, de.label, "other"),
|
|
5208
5209
|
value: _e + 1
|
|
5209
5210
|
}))
|
|
@@ -5212,9 +5213,9 @@ const Os = {
|
|
|
5212
5213
|
return [];
|
|
5213
5214
|
}), dt = c(() => {
|
|
5214
5215
|
const { config: p } = me.value;
|
|
5215
|
-
return p.isDrillable ? p.dimensions.map((
|
|
5216
|
-
label: Ct(u, d,
|
|
5217
|
-
value: Wo(
|
|
5216
|
+
return p.isDrillable ? p.dimensions.map((G) => ({
|
|
5217
|
+
label: Ct(u, d, G.label, "other"),
|
|
5218
|
+
value: Wo(G)
|
|
5218
5219
|
})) : [];
|
|
5219
5220
|
}), Da = c(
|
|
5220
5221
|
() => `${(Mn.value || []).join("|")}|${JSON.stringify(Bn.value)}|${JSON.stringify(
|
|
@@ -5223,13 +5224,13 @@ const Os = {
|
|
|
5223
5224
|
), Nn = c(() => {
|
|
5224
5225
|
const p = r.value.id;
|
|
5225
5226
|
return (xa.value || []).filter(
|
|
5226
|
-
(
|
|
5227
|
+
(G) => Array.isArray(G.tileIds) && G.tileIds.includes(p)
|
|
5227
5228
|
);
|
|
5228
5229
|
});
|
|
5229
5230
|
De(
|
|
5230
5231
|
() => r.value.widget.config,
|
|
5231
5232
|
(p) => {
|
|
5232
|
-
_.value = p.rollup, I.value = p.showTitle ?? !0, L.value = p.titleFontSize ?? 14, T.value = p.titleBold ?? !1, w.value = p.titleItalic ?? !1, H.value = p.titleUnderline ?? !1, q.value = Array.isArray(p.chartColors) ? [...p.chartColors] : void 0, le.value = Array.isArray(p.chartColorLayers) ? [...p.chartColorLayers] : void 0, z.value = Array.isArray(p.chartBreakdownColors) ? [...p.chartBreakdownColors] : void 0, N.value = p.chartUseSecondaryMetricShades ?? !0, D.value = p.chartColorBinding, J.value = Array.isArray(p.lineStyles) ? [...p.lineStyles] : void 0, W.value = p.lineStyleBinding, K.value = p.showLabel ?? !1, A.value = p.labelAlign ?? Yn.center, O.value = p.labelAnchor ?? Kn.center, ne.value = p.labelRotation ?? 0, ue.value = p.labelOffset ?? 0, ge.value = p.labelFontSize ?? 12, se.value = p.showX ?? !0, x.value = p.xPosition ?? Xn.bottom, M.value = p.showXGrid ?? !1, te.value = p.showXTick ?? !0, F.value = p.xTickFontSize ?? 12, ce.value = p.showXTitle ?? !1, ee.value = p.xTitle ?? "", Te.value = p.xTitleFontSize ?? 12, Ve.value = p.showY ?? !0, xe.value = p.yPosition ?? En.left, Je.value = p.showYGrid ?? !1, ut.value = p.showYTick ?? !0, ot.value = p.yTickFontSize ?? 12, at.value = p.showYTitle ?? !1, kt.value = p.yTitle ?? "", mt.value = p.yTitleFontSize ?? 12, pt.value = p.showLegend ?? void 0, Tt.value = p.legendPosition ??
|
|
5233
|
+
_.value = p.rollup, I.value = p.showTitle ?? !0, L.value = p.titleFontSize ?? 14, T.value = p.titleBold ?? !1, w.value = p.titleItalic ?? !1, H.value = p.titleUnderline ?? !1, q.value = Array.isArray(p.chartColors) ? [...p.chartColors] : void 0, le.value = Array.isArray(p.chartColorLayers) ? [...p.chartColorLayers] : void 0, z.value = Array.isArray(p.chartBreakdownColors) ? [...p.chartBreakdownColors] : void 0, N.value = p.chartUseSecondaryMetricShades ?? !0, D.value = p.chartColorBinding, J.value = Array.isArray(p.lineStyles) ? [...p.lineStyles] : void 0, W.value = p.lineStyleBinding, K.value = p.showLabel ?? !1, A.value = p.labelAlign ?? Yn.center, O.value = p.labelAnchor ?? Kn.center, ne.value = p.labelRotation ?? 0, ue.value = p.labelOffset ?? 0, ge.value = p.labelFontSize ?? 12, se.value = p.showX ?? !0, x.value = p.xPosition ?? Xn.bottom, M.value = p.showXGrid ?? !1, te.value = p.showXTick ?? !0, F.value = p.xTickFontSize ?? 12, ce.value = p.showXTitle ?? !1, ee.value = p.xTitle ?? "", Te.value = p.xTitleFontSize ?? 12, Ve.value = p.showY ?? !0, xe.value = p.yPosition ?? En.left, Je.value = p.showYGrid ?? !1, ut.value = p.showYTick ?? !0, ot.value = p.yTickFontSize ?? 12, at.value = p.showYTitle ?? !1, kt.value = p.yTitle ?? "", mt.value = p.yTitleFontSize ?? 12, pt.value = p.showLegend ?? void 0, Tt.value = p.legendPosition ?? jn.top, Ze.value = p.usePointStyle ?? !0, gt.value = p.legendFontSize, on.value = p.legendColor ?? "#6b6b6b", an.value = p.maxTooltipItems, zt.value = p.stackBarOverlap ?? !1, ct.value = p.rowHeight ?? null, rn.value = p.colWidths ?? null, k.value = Ut();
|
|
5233
5234
|
},
|
|
5234
5235
|
{ deep: !0, immediate: !0 }
|
|
5235
5236
|
), De(
|
|
@@ -5245,14 +5246,14 @@ const Os = {
|
|
|
5245
5246
|
_.value !== null && (r.value.widget.config.rollup = _.value);
|
|
5246
5247
|
}), De(
|
|
5247
5248
|
Da,
|
|
5248
|
-
(p,
|
|
5249
|
-
|
|
5249
|
+
(p, G) => {
|
|
5250
|
+
G !== void 0 && p !== G && Nn.value.length > 0 && ho();
|
|
5250
5251
|
},
|
|
5251
5252
|
{ flush: "pre" }
|
|
5252
5253
|
), De(
|
|
5253
5254
|
() => r.value,
|
|
5254
|
-
(p,
|
|
5255
|
-
!C.isTileEditor || !p ||
|
|
5255
|
+
(p, G) => {
|
|
5256
|
+
!C.isTileEditor || !p || G !== void 0 && ho();
|
|
5256
5257
|
},
|
|
5257
5258
|
{ deep: !0, flush: "pre" }
|
|
5258
5259
|
), De(
|
|
@@ -5291,7 +5292,7 @@ const Os = {
|
|
|
5291
5292
|
startWidgetResultLoading: Pa,
|
|
5292
5293
|
finishWidgetResultLoading: Ma,
|
|
5293
5294
|
clearAllWidgetResults: ho
|
|
5294
|
-
} =
|
|
5295
|
+
} = Ga();
|
|
5295
5296
|
let cn;
|
|
5296
5297
|
async function It() {
|
|
5297
5298
|
if (o.value = !1, !C.isEditingStyle && mo.value) {
|
|
@@ -5305,7 +5306,7 @@ const Os = {
|
|
|
5305
5306
|
Pa();
|
|
5306
5307
|
try {
|
|
5307
5308
|
n.value = !0, cn && cn.abort(), cn = new AbortController();
|
|
5308
|
-
const p = cn.signal,
|
|
5309
|
+
const p = cn.signal, G = Rn.value, de = await On(
|
|
5309
5310
|
Co,
|
|
5310
5311
|
500
|
|
5311
5312
|
)({
|
|
@@ -5317,7 +5318,7 @@ const Os = {
|
|
|
5317
5318
|
page: me.value.type === Z.Table ? { size: oe } : void 0,
|
|
5318
5319
|
search: U.value || void 0
|
|
5319
5320
|
});
|
|
5320
|
-
if (Rn.value ===
|
|
5321
|
+
if (Rn.value === G) {
|
|
5321
5322
|
V.value = de, Oe(de);
|
|
5322
5323
|
const _e = [
|
|
5323
5324
|
...me.value.config.dimensions,
|
|
@@ -5325,7 +5326,7 @@ const Os = {
|
|
|
5325
5326
|
];
|
|
5326
5327
|
Nn.value.length > 0 && Nn.value.forEach((Ie) => {
|
|
5327
5328
|
const Le = Ws(de, Ie, _e), Ue = Array.from(new Set(Le));
|
|
5328
|
-
Ia(
|
|
5329
|
+
Ia(Qa(Ie, C.reportId), Ue);
|
|
5329
5330
|
}), k.value = Ut(), setTimeout(() => y(), 100);
|
|
5330
5331
|
}
|
|
5331
5332
|
n.value = !1;
|
|
@@ -5349,11 +5350,11 @@ const Os = {
|
|
|
5349
5350
|
p >= 0 && p < dt.value.length && (B.value = dt.value[p].value);
|
|
5350
5351
|
}
|
|
5351
5352
|
const vo = S(Mt.EXCEL), yo = S(), Fa = Object.values(Mt).map((p) => ({
|
|
5352
|
-
label:
|
|
5353
|
+
label: er(p),
|
|
5353
5354
|
value: p,
|
|
5354
5355
|
onClick: async () => {
|
|
5355
5356
|
p === Mt.EXCEL || p === Mt.PDFFULLSIZE || p === Mt.PDFRECEIPT ? await Xo({
|
|
5356
|
-
|
|
5357
|
+
fileType: p,
|
|
5357
5358
|
index: C.index,
|
|
5358
5359
|
isCombinedLocationLayout: _a.value,
|
|
5359
5360
|
timeRange: An.value,
|
|
@@ -5362,7 +5363,7 @@ const Os = {
|
|
|
5362
5363
|
}) : p === Mt.PDF && (vo.value = p, yo.value = C.index, Ht.value = !0);
|
|
5363
5364
|
}
|
|
5364
5365
|
})), Na = C.flat || me.value.type === Z.Spacer ? "flat" : "outlined", Va = me.value.type === Z.Spacer ? "p-0" : "p-16", $a = c(() => C.flat ? "w-full" : Dn.value);
|
|
5365
|
-
return (p,
|
|
5366
|
+
return (p, G) => {
|
|
5366
5367
|
const de = ye("FmTooltip"), _e = ye("FmSearch"), Ie = ye("FmCheckbox"), Le = ye("FmButton"), Ue = ye("FmSelect"), ze = ye("FmMenuItem"), vt = ye("FmMenu"), dn = ye("FmForm"), fn = ye("FmCircularProgress"), He = ye("FmCard");
|
|
5367
5368
|
return Y(), ve(He, {
|
|
5368
5369
|
ref_key: "tileCard",
|
|
@@ -5374,15 +5375,15 @@ const Os = {
|
|
|
5374
5375
|
default: Ae(() => [
|
|
5375
5376
|
be(Vs, {
|
|
5376
5377
|
modelValue: Ht.value,
|
|
5377
|
-
"onUpdate:modelValue":
|
|
5378
|
-
"
|
|
5378
|
+
"onUpdate:modelValue": G[0] || (G[0] = (yt) => Ht.value = yt),
|
|
5379
|
+
"file-type": vo.value,
|
|
5379
5380
|
index: yo.value
|
|
5380
|
-
}, null, 8, ["modelValue", "
|
|
5381
|
+
}, null, 8, ["modelValue", "file-type", "index"]),
|
|
5381
5382
|
n.value ? (Y(), ve(fn, { key: 1 })) : (Y(), pe("div", Os, [
|
|
5382
5383
|
(Y(), ve(Ko($.value), {
|
|
5383
5384
|
key: k.value,
|
|
5384
5385
|
modelValue: po.value,
|
|
5385
|
-
"onUpdate:modelValue":
|
|
5386
|
+
"onUpdate:modelValue": G[5] || (G[5] = (yt) => po.value = yt),
|
|
5386
5387
|
"tile-index": C.index,
|
|
5387
5388
|
title: o.value ? l(u)("report.messages.errorLoading") : void 0,
|
|
5388
5389
|
"sub-title": o.value ? l(u)("report.messages.errorLoadingHint") : void 0
|
|
@@ -5432,12 +5433,12 @@ const Os = {
|
|
|
5432
5433
|
ae.value ? (Y(), ve(_e, {
|
|
5433
5434
|
key: 0,
|
|
5434
5435
|
modelValue: Lt.value,
|
|
5435
|
-
"onUpdate:modelValue":
|
|
5436
|
+
"onUpdate:modelValue": G[1] || (G[1] = (et) => Lt.value = et),
|
|
5436
5437
|
class: "grow"
|
|
5437
5438
|
}, null, 8, ["modelValue"])) : (Y(), pe("div", Ks)),
|
|
5438
5439
|
Ya(be(Ie, {
|
|
5439
5440
|
modelValue: K.value,
|
|
5440
|
-
"onUpdate:modelValue":
|
|
5441
|
+
"onUpdate:modelValue": G[2] || (G[2] = (et) => K.value = et),
|
|
5441
5442
|
label: "Label",
|
|
5442
5443
|
value: !1
|
|
5443
5444
|
}, null, 8, ["modelValue"]), [
|
|
@@ -5447,7 +5448,7 @@ const Os = {
|
|
|
5447
5448
|
be(Le, {
|
|
5448
5449
|
icon: "arrow_upward",
|
|
5449
5450
|
variant: "tertiary",
|
|
5450
|
-
disabled: !
|
|
5451
|
+
disabled: !j.value,
|
|
5451
5452
|
onClick: Aa
|
|
5452
5453
|
}, null, 8, ["disabled"]),
|
|
5453
5454
|
be(Le, {
|
|
@@ -5460,7 +5461,7 @@ const Os = {
|
|
|
5460
5461
|
(Pt = lt.value) != null && Pt.showRollup && Fn.value.length > 0 ? (Y(), ve(Ue, {
|
|
5461
5462
|
key: `rollup-${l(h)}`,
|
|
5462
5463
|
modelValue: _.value,
|
|
5463
|
-
"onUpdate:modelValue":
|
|
5464
|
+
"onUpdate:modelValue": G[3] || (G[3] = (et) => _.value = et),
|
|
5464
5465
|
class: "w-[150px]",
|
|
5465
5466
|
items: Fn.value
|
|
5466
5467
|
}, null, 8, ["modelValue", "items"])) : Ce("", !0),
|
|
@@ -5469,7 +5470,7 @@ const Os = {
|
|
|
5469
5470
|
icon: "arrow_forward",
|
|
5470
5471
|
variant: "tertiary",
|
|
5471
5472
|
title: l(u)("report.common.openPage"),
|
|
5472
|
-
onClick:
|
|
5473
|
+
onClick: G[4] || (G[4] = (et) => l(s).openPage(r.value))
|
|
5473
5474
|
}, null, 8, ["title"])) : Ce("", !0),
|
|
5474
5475
|
C.hideExport ? Ce("", !0) : (Y(), ve(vt, {
|
|
5475
5476
|
key: 5,
|
|
@@ -5506,23 +5507,23 @@ const Os = {
|
|
|
5506
5507
|
});
|
|
5507
5508
|
export {
|
|
5508
5509
|
Yn as L,
|
|
5509
|
-
|
|
5510
|
+
Ge as R,
|
|
5510
5511
|
Me as S,
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5512
|
+
ui as _,
|
|
5513
|
+
Hs as a,
|
|
5514
|
+
Kn as b,
|
|
5515
|
+
Rt as c,
|
|
5516
|
+
ri as d,
|
|
5516
5517
|
xs as e,
|
|
5517
|
-
|
|
5518
|
+
Go as f,
|
|
5518
5519
|
Wo as g,
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5520
|
+
ii as h,
|
|
5521
|
+
si as i,
|
|
5522
|
+
ai as j,
|
|
5523
|
+
_s as k,
|
|
5524
|
+
Ls as l,
|
|
5525
|
+
Ds as m,
|
|
5526
|
+
Is as n,
|
|
5527
|
+
li as p,
|
|
5527
5528
|
Bs as t
|
|
5528
5529
|
};
|