@feedmepos/mf-report 5.19.21-beta.0 → 5.19.21
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-C4x7ZEye.js → App-Ukq6UyUP.js} +31 -31
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-CosulEnD.js → BaseDialog.vue_vue_type_script_setup_true_lang-g-uxOKsk.js} +1645 -1603
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BeBr4VIF.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-cfshXMB2.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-g1a2ZeGy.js → Default.vue_vue_type_script_setup_true_lang-CKFgPJYQ.js} +2 -2
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-Cgc4ZMrl.js → FilterSelector.vue_vue_type_script_setup_true_lang-CaNN2UuW.js} +91 -91
- package/dist/{InsightView-jAOVvZfx.js → InsightView-C454vlgZ.js} +5 -5
- package/dist/{Integration-BovNO2yX.js → Integration-CPVZguLL.js} +2 -2
- package/dist/{Integrations-DIXSWGS_.js → Integrations-jn20KmcD.js} +3 -3
- package/dist/{Layout-CptBKFVs.js → Layout-D5Wd65PM.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BGEMZOKu.js → MenuTab.vue_vue_type_script_setup_true_lang-D-WSq7fL.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-B3sRs2Tc.js → NavigationTab.vue_vue_type_script_setup_true_lang-CmW84nrF.js} +4 -4
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-CtN7oqXx.js → NoData.vue_vue_type_script_setup_true_lang-BUoYdn5S.js} +1 -1
- package/dist/{OverviewView-DVL5KgO_.js → OverviewView-TpvpO6h7.js} +5 -5
- package/dist/{Report-C6U6OiZy.js → Report-BUofTX7w.js} +4 -4
- package/dist/{ReportEditor-DD8jAl9a.js → ReportEditor-DDiBdI4N.js} +6 -6
- package/dist/{ReportView-DAL1aJFD.js → ReportView-L-b31EKi.js} +7 -7
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-BcQEW5MO.js → SelectComponent.vue_vue_type_script_setup_true_lang-B2oCOTUH.js} +1 -1
- package/dist/{Setting-DpyuOpXG.js → Setting-CuBDsvAT.js} +4 -4
- package/dist/{TileEditor-B4NsHTN2.js → TileEditor-56iZaQx_.js} +573 -551
- package/dist/{TransitionFade-z0DXUsgP.js → TransitionFade-CgWSxrTR.js} +5 -5
- package/dist/app.js +19 -19
- package/dist/assets/formatChartData.worker-Cb40k96i.js +134 -0
- package/dist/assets/processTableData.worker-DS6uNX_h.js +134 -0
- package/dist/{vue-i18n-BJW_sJot.js → vue-i18n-BQN8HgvD.js} +1 -1
- package/package.json +1 -1
- package/dist/assets/formatChartData.worker-CO5zKPH5.js +0 -134
- package/dist/assets/processTableData.worker-BAMcED0j.js +0 -134
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as V, resolveComponent as S, createBlock as p, openBlock as y, withCtx as I, createCommentVNode as Y, createElementVNode as M, toDisplayString as j, renderSlot as A, mergeModels as $, useModel as R, ref as O, watch as k, createElementBlock as U, createVNode as b, unref as D } from "vue";
|
|
2
|
-
import { d as r, m as B, t as W, u as q, b as G, U as H, C as K } from "./vue-i18n-
|
|
2
|
+
import { d as r, m as B, t as W, u as q, b as G, U as H, C as K } from "./vue-i18n-BQN8HgvD.js";
|
|
3
3
|
import { detectLocale as z } from "@feedmepos/mf-common";
|
|
4
4
|
import { storeToRefs as L } from "pinia";
|
|
5
5
|
var g = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))(g || {});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as u, computed as f, resolveComponent as p, createElementBlock as s, openBlock as t, normalizeStyle as n, normalizeClass as d, unref as e, createBlock as y, createCommentVNode as _, createVNode as h, createElementVNode as k, toDisplayString as g, renderSlot as x } from "vue";
|
|
2
|
-
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CmW84nrF.js";
|
|
3
3
|
import { useBreakpoints as b } from "@feedmepos/ui-library";
|
|
4
4
|
import { storeToRefs as C } from "pinia";
|
|
5
|
-
import { u as q, f as w } from "./vue-i18n-
|
|
5
|
+
import { u as q, f as w } from "./vue-i18n-BQN8HgvD.js";
|
|
6
6
|
import { useRoute as B } from "vue-router";
|
|
7
7
|
const $ = {
|
|
8
8
|
key: 1,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { computed as C, defineComponent as Ee, mergeModels as Ue, useModel as Oe, ref as p, onMounted as Je, nextTick as ke, watch as fe, resolveComponent as q, createElementBlock as ee, openBlock as E, Fragment as Ce, renderSlot as Ye, createVNode as O, normalizeStyle as He, unref as s, createElementVNode as U, toDisplayString as
|
|
2
|
-
import { W as M, e as dt, f as Ca, S as lt, v as ut, g as ka, h as Ft, i as Kt, q as Zt, R as et, j as _a, D as Pe, c as he, C as Fe, a as Ta, b as Fa, _ as Da } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as mt, b as ct, a as It, d as tt, i as La } from "./vue-i18n-
|
|
4
|
-
import { d as Yt, _ as Ra, a as Va, b as
|
|
1
|
+
import { computed as C, defineComponent as Ee, mergeModels as Ue, useModel as Oe, ref as p, onMounted as Je, nextTick as ke, watch as fe, resolveComponent as q, createElementBlock as ee, openBlock as E, Fragment as Ce, renderSlot as Ye, createVNode as O, normalizeStyle as He, unref as s, createElementVNode as U, toDisplayString as ze, withCtx as ae, createBlock as ie, createCommentVNode as Ae, normalizeClass as Xe, h as xt, renderList as Ct, toRaw as va, markRaw as ga, createTextVNode as Rt, onUnmounted as ya, resolveDynamicComponent as ba, withDirectives as wa, vShow as Sa, withModifiers as Tt, isRef as xa } from "vue";
|
|
2
|
+
import { W as M, e as dt, f as Ca, S as lt, v as ut, g as ka, h as Ft, i as Kt, q as Zt, R as et, j as _a, D as Pe, c as he, C as Fe, a as Ta, b as Fa, _ as Da } from "./BaseDialog.vue_vue_type_script_setup_true_lang-g-uxOKsk.js";
|
|
3
|
+
import { u as mt, b as ct, a as It, d as tt, i as La } from "./vue-i18n-BQN8HgvD.js";
|
|
4
|
+
import { d as Yt, _ as Ra, a as Va, b as za, c as Aa } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-cfshXMB2.js";
|
|
5
5
|
import { storeToRefs as $e, defineStore as Qt } from "pinia";
|
|
6
6
|
import { useBreakpoints as ea, useSnackbar as Wt, components as $a } from "@feedmepos/ui-library";
|
|
7
|
-
import { a as Ea } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { a as Ea } from "./SelectComponent.vue_vue_type_script_setup_true_lang-B2oCOTUH.js";
|
|
8
8
|
import { r as st } from "./i18n-Cif1I9J2.js";
|
|
9
|
-
import { _ as Vt } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as Vt } from "./NoData.vue_vue_type_script_setup_true_lang-BUoYdn5S.js";
|
|
10
10
|
import "@feedmepos/mf-common";
|
|
11
|
-
var
|
|
11
|
+
var zt = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(zt || {}), je = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(je || {}), At = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(At || {}), $t = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))($t || {}), Et = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(Et || {}), Mt = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Mt || {}), Nt = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Nt || {});
|
|
12
12
|
M.Circular, M.Table, M.BarChart, M.LineChart, M.StackBarChart, M.StackLineChart, M.Scorecard, M.Spacer;
|
|
13
13
|
const Ma = [
|
|
14
14
|
{
|
|
@@ -127,8 +127,8 @@ function Be({
|
|
|
127
127
|
function ta(e, l, u) {
|
|
128
128
|
if (e === "" || l === "")
|
|
129
129
|
return null;
|
|
130
|
-
let a = (
|
|
131
|
-
u === "ID" && (a = (
|
|
130
|
+
let a = (z) => z == null ? void 0 : z.replace(/,/g, "");
|
|
131
|
+
u === "ID" && (a = (z) => z == null ? void 0 : z.replace(/\./g, "").replace(/,/g, "."));
|
|
132
132
|
const w = Number(a(e)), x = Number(a(l));
|
|
133
133
|
if (isNaN(w) || isNaN(x))
|
|
134
134
|
return null;
|
|
@@ -296,8 +296,8 @@ function pt(e) {
|
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
})), R = C(() => e.isTransposed), L = C(() => e.chartWidth),
|
|
300
|
-
return { datalabels: u, xCfg: a, yCfg: w, isTransposed: R, legend: x, chartWidth: L, chartHeight:
|
|
299
|
+
})), R = C(() => e.isTransposed), L = C(() => e.chartWidth), z = C(() => e.chartHeight);
|
|
300
|
+
return { datalabels: u, xCfg: a, yCfg: w, isTransposed: R, legend: x, chartWidth: L, chartHeight: z };
|
|
301
301
|
}
|
|
302
302
|
const Wa = /* @__PURE__ */ Ee({
|
|
303
303
|
__name: "WidgetBarchart",
|
|
@@ -315,7 +315,7 @@ const Wa = /* @__PURE__ */ Ee({
|
|
|
315
315
|
}), x = C(() => {
|
|
316
316
|
var v;
|
|
317
317
|
return ((v = u.value.data) == null ? void 0 : v.datasets) ?? [];
|
|
318
|
-
}), { datalabels: R, xCfg: L, yCfg:
|
|
318
|
+
}), { datalabels: R, xCfg: L, yCfg: z, isTransposed: d, legend: m, chartWidth: i, chartHeight: c } = pt(
|
|
319
319
|
u.value
|
|
320
320
|
), S = C(() => x.value.length > 0 ? [
|
|
321
321
|
...x.value.map((v, I) => ({
|
|
@@ -345,7 +345,7 @@ const Wa = /* @__PURE__ */ Ee({
|
|
|
345
345
|
datasets: S.value,
|
|
346
346
|
"x-axis": { categories: w.value },
|
|
347
347
|
"x-cfg": s(L),
|
|
348
|
-
"y-cfg": s(
|
|
348
|
+
"y-cfg": s(z),
|
|
349
349
|
transpose: s(d),
|
|
350
350
|
legend: {
|
|
351
351
|
display: s(m).display ?? !1,
|
|
@@ -374,7 +374,7 @@ const Wa = /* @__PURE__ */ Ee({
|
|
|
374
374
|
}),
|
|
375
375
|
emits: ["update:modelValue"],
|
|
376
376
|
setup(e) {
|
|
377
|
-
const l = e, u = Oe(e, "modelValue"), { breakpoints: a } = ea(), w = p(null), { datalabels: x, legend: R, chartWidth: L, chartHeight:
|
|
377
|
+
const l = e, u = Oe(e, "modelValue"), { breakpoints: a } = ea(), w = p(null), { datalabels: x, legend: R, chartWidth: L, chartHeight: z } = pt(u.value), d = C(() => {
|
|
378
378
|
let S = [];
|
|
379
379
|
return u.value.data.datasets && u.value.data.metrics && u.value.data.datasets.length > 0 && u.value.data.metrics.length > 0 && (S = [
|
|
380
380
|
{
|
|
@@ -423,7 +423,7 @@ const Wa = /* @__PURE__ */ Ee({
|
|
|
423
423
|
"maintain-aspect-ratio": !1,
|
|
424
424
|
style: He({
|
|
425
425
|
"--chart-width": s(L) !== void 0 ? s(L) + "px" : "100%",
|
|
426
|
-
"--chart-height": s(
|
|
426
|
+
"--chart-height": s(z) !== void 0 ? s(z) + "px" : "calc(100% - 36px)"
|
|
427
427
|
})
|
|
428
428
|
}, null, 8, ["datasets", "metrics", "legend", "datalabels", "style"])
|
|
429
429
|
], 64);
|
|
@@ -444,11 +444,11 @@ const Wa = /* @__PURE__ */ Ee({
|
|
|
444
444
|
const { data: i } = l.value;
|
|
445
445
|
return i != null && i.comparison ? ta(R.value, i.comparison, x) : null;
|
|
446
446
|
});
|
|
447
|
-
function
|
|
447
|
+
function z(i) {
|
|
448
448
|
switch (i) {
|
|
449
|
-
case
|
|
449
|
+
case zt.bar:
|
|
450
450
|
return "bar";
|
|
451
|
-
case
|
|
451
|
+
case zt.line:
|
|
452
452
|
return "line";
|
|
453
453
|
default:
|
|
454
454
|
return "line";
|
|
@@ -468,7 +468,7 @@ const Wa = /* @__PURE__ */ Ee({
|
|
|
468
468
|
const S = q("FmIcon"), y = q("FmChip"), T = q("FmTooltip"), v = q("FmLineChart");
|
|
469
469
|
return E(), ee("div", Ba, [
|
|
470
470
|
Ye(i.$slots, "menu"),
|
|
471
|
-
U("p", Ha,
|
|
471
|
+
U("p", Ha, ze(R.value), 1),
|
|
472
472
|
U("div", Oa, [
|
|
473
473
|
O(T, {
|
|
474
474
|
content: `vs. ${(I = s(w).defaultCompareType) == null ? void 0 : I.split("_").join(" ")}`,
|
|
@@ -491,10 +491,10 @@ const Wa = /* @__PURE__ */ Ee({
|
|
|
491
491
|
U("p", {
|
|
492
492
|
class: "fm-typo-en-body-md-600",
|
|
493
493
|
style: He({ color: L.value.icon.color })
|
|
494
|
-
},
|
|
494
|
+
}, ze(L.value.value), 5)
|
|
495
495
|
]),
|
|
496
496
|
_: 1
|
|
497
|
-
}, 8, ["icon", "class"])) :
|
|
497
|
+
}, 8, ["icon", "class"])) : Ae("", !0),
|
|
498
498
|
s(a).endDate !== null && s(a).startDate !== null && L.value === null ? (E(), ie(y, {
|
|
499
499
|
key: 1,
|
|
500
500
|
compact: ""
|
|
@@ -507,13 +507,13 @@ const Wa = /* @__PURE__ */ Ee({
|
|
|
507
507
|
c[0] || (c[0] = U("p", { class: "fm-typo-en-body-md-600 text-fm-color-typo-disabled" }, "N/A", -1))
|
|
508
508
|
]),
|
|
509
509
|
_: 1
|
|
510
|
-
})) :
|
|
510
|
+
})) : Ae("", !0)
|
|
511
511
|
]),
|
|
512
512
|
_: 1
|
|
513
513
|
}, 8, ["content"])
|
|
514
514
|
]),
|
|
515
515
|
d.value ? (E(), ee("div", qa, [
|
|
516
|
-
|
|
516
|
+
z(d.value.type) === "line" ? (E(), ie(v, {
|
|
517
517
|
key: 0,
|
|
518
518
|
class: "sparkline",
|
|
519
519
|
datasets: m.value,
|
|
@@ -525,7 +525,7 @@ const Wa = /* @__PURE__ */ Ee({
|
|
|
525
525
|
"y-cfg": { display: !1 },
|
|
526
526
|
"x-cfg": { display: !1 },
|
|
527
527
|
"maintain-aspect-ratio": !1
|
|
528
|
-
}, null, 8, ["datasets", "x-axis"])) :
|
|
528
|
+
}, null, 8, ["datasets", "x-axis"])) : Ae("", !0)
|
|
529
529
|
])) : (E(), ee("div", Ua, c[1] || (c[1] = [
|
|
530
530
|
U("div", { class: "sparkline" }, [
|
|
531
531
|
U("div", { class: "flex flex-col gap-8" }, [
|
|
@@ -555,9 +555,9 @@ const Xa = /* @__PURE__ */ Ea(ja, [["render", Ga]]), Ja = "mf-reporttable-dimens
|
|
|
555
555
|
G && (G.style.height = `${h}px`);
|
|
556
556
|
});
|
|
557
557
|
}, R = (h, n, k, F = !1) => {
|
|
558
|
-
const
|
|
558
|
+
const A = (k == null ? void 0 : k.querySelectorAll("th")) ?? [];
|
|
559
559
|
if (h === void 0) return;
|
|
560
|
-
const B =
|
|
560
|
+
const B = A[h], G = F ? l[h] : n;
|
|
561
561
|
if (!B || G === void 0) return;
|
|
562
562
|
const X = () => {
|
|
563
563
|
B.style.width = `${G}px`;
|
|
@@ -566,16 +566,16 @@ const Xa = /* @__PURE__ */ Ea(ja, [["render", Ga]]), Ja = "mf-reporttable-dimens
|
|
|
566
566
|
}, L = () => {
|
|
567
567
|
const h = document.querySelectorAll("th"), n = document.querySelectorAll("td"), k = document.querySelector("table");
|
|
568
568
|
k == null || k.classList.add("table-fixed"), h.forEach((F) => F.classList.add("toggleEditResize")), n.forEach((F) => F.classList.add("toggleEditResize")), u.value = !0;
|
|
569
|
-
},
|
|
569
|
+
}, z = () => {
|
|
570
570
|
const h = document.querySelectorAll("th"), n = document.querySelectorAll("td"), k = document.querySelectorAll(".col-resize-handle"), F = document.querySelectorAll(".row-resize-handle");
|
|
571
|
-
h.forEach((
|
|
571
|
+
h.forEach((A) => A.classList.remove("toggleEditResize")), n.forEach((A) => A.classList.remove("toggleEditResize")), k.forEach((A) => A.remove()), F.forEach((A) => A.remove()), u.value = !1;
|
|
572
572
|
}, d = () => {
|
|
573
573
|
e.value = 0, l.value = [];
|
|
574
574
|
}, m = (h, n) => {
|
|
575
575
|
if (n) {
|
|
576
576
|
const k = document.querySelectorAll(`thead th:nth-child(${h + 1})`), F = document.querySelectorAll(`tbody td:nth-child(${h + 1})`);
|
|
577
|
-
[...k, ...F].forEach((
|
|
578
|
-
|
|
577
|
+
[...k, ...F].forEach((A) => {
|
|
578
|
+
A.classList.add("highlight-hover-col");
|
|
579
579
|
});
|
|
580
580
|
} else
|
|
581
581
|
document.querySelectorAll(
|
|
@@ -583,8 +583,8 @@ const Xa = /* @__PURE__ */ Ea(ja, [["render", Ga]]), Ja = "mf-reporttable-dimens
|
|
|
583
583
|
).forEach((k) => k.classList.add("highlight-col"));
|
|
584
584
|
}, i = (h) => {
|
|
585
585
|
const n = document.querySelectorAll("thead tr"), k = document.querySelectorAll("tbody tr"), F = [...n, ...k];
|
|
586
|
-
for (const
|
|
587
|
-
h ?
|
|
586
|
+
for (const A of F)
|
|
587
|
+
h ? A.classList.add("highlight-hover-row") : A.classList.add("highlight-row");
|
|
588
588
|
}, c = (h) => {
|
|
589
589
|
const n = h ? ".highlight-hover-row" : ".highlight-row", k = document.querySelectorAll(n);
|
|
590
590
|
for (const F of k)
|
|
@@ -594,7 +594,7 @@ const Xa = /* @__PURE__ */ Ea(ja, [["render", Ga]]), Ja = "mf-reporttable-dimens
|
|
|
594
594
|
n.classList.remove("highlight-hover-col");
|
|
595
595
|
}) : document.querySelectorAll(".highlight-col").forEach((n) => n.classList.remove("highlight-col"));
|
|
596
596
|
}, y = (h, n) => {
|
|
597
|
-
const k = /* @__PURE__ */ new Map(), F = h.clientX,
|
|
597
|
+
const k = /* @__PURE__ */ new Map(), F = h.clientX, A = h.target.closest("table"), B = A == null ? void 0 : A.querySelectorAll("th")[n], G = B == null ? void 0 : B.getBoundingClientRect().width, X = k.get(n) ? l[n.toString()] || 60 : (k.set(n, !0), G || l[n.toString()] || 60), le = B == null ? void 0 : B.querySelector("p");
|
|
598
598
|
if (!le) return;
|
|
599
599
|
const ve = le.textContent || "", we = window.getComputedStyle(le), De = `${we.fontWeight} ${we.fontSize} ${we.fontFamily}`, _e = document.createElement("canvas").getContext("2d");
|
|
600
600
|
if (!_e) return;
|
|
@@ -603,20 +603,20 @@ const Xa = /* @__PURE__ */ Ea(ja, [["render", Ga]]), Ja = "mf-reporttable-dimens
|
|
|
603
603
|
m(n, !1);
|
|
604
604
|
const N = (Te) => {
|
|
605
605
|
const ge = Te.clientX - F, Se = Math.max(H, X + ge);
|
|
606
|
-
if (
|
|
607
|
-
w(n, Se,
|
|
606
|
+
if (A) {
|
|
607
|
+
w(n, Se, A, !0);
|
|
608
608
|
let ye = 0;
|
|
609
|
-
|
|
609
|
+
A.querySelectorAll("th").forEach((Ve, t) => {
|
|
610
610
|
ye += t === n ? Se : l[t] || Ve.getBoundingClientRect().width;
|
|
611
|
-
}),
|
|
612
|
-
const Re =
|
|
611
|
+
}), A.classList.remove("w-full"), A.style.width = `${ye}px`;
|
|
612
|
+
const Re = A == null ? void 0 : A.parentElement;
|
|
613
613
|
if (Re) {
|
|
614
614
|
const Ve = Re.scrollWidth, t = Re.scrollLeft;
|
|
615
615
|
Re.offsetWidth + t >= Ve - 100 && (Re.scrollLeft = Ve);
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
}, ue = () => {
|
|
619
|
-
const Te = (
|
|
619
|
+
const Te = (A == null ? void 0 : A.querySelectorAll("th")) ?? [], ge = [...l.value];
|
|
620
620
|
Te.forEach((Se, ye) => {
|
|
621
621
|
const qe = Se.getBoundingClientRect().width;
|
|
622
622
|
l[ye] = qe, ge[ye] = qe;
|
|
@@ -626,13 +626,13 @@ const Xa = /* @__PURE__ */ Ea(ja, [["render", Ga]]), Ja = "mf-reporttable-dimens
|
|
|
626
626
|
}, T = (h) => {
|
|
627
627
|
const n = h.clientY, k = h.target.closest("table"), F = e.value || 48;
|
|
628
628
|
i(!1);
|
|
629
|
-
const
|
|
629
|
+
const A = (G) => {
|
|
630
630
|
const X = Math.max(30, F + (G.clientY - n));
|
|
631
631
|
k && a(X, k);
|
|
632
632
|
}, B = () => {
|
|
633
|
-
c(!1), document.removeEventListener("mousemove",
|
|
633
|
+
c(!1), document.removeEventListener("mousemove", A), document.removeEventListener("mouseup", B);
|
|
634
634
|
};
|
|
635
|
-
document.addEventListener("mousemove",
|
|
635
|
+
document.addEventListener("mousemove", A), document.addEventListener("mouseup", B);
|
|
636
636
|
};
|
|
637
637
|
return {
|
|
638
638
|
rowHeight: e,
|
|
@@ -643,7 +643,7 @@ const Xa = /* @__PURE__ */ Ea(ja, [["render", Ga]]), Ja = "mf-reporttable-dimens
|
|
|
643
643
|
setRowHeights: x,
|
|
644
644
|
setColWidths: R,
|
|
645
645
|
enableEditMode: L,
|
|
646
|
-
disableEditMode:
|
|
646
|
+
disableEditMode: z,
|
|
647
647
|
resetStore: d,
|
|
648
648
|
highlightCol: m,
|
|
649
649
|
highlightRows: i,
|
|
@@ -654,7 +654,7 @@ const Xa = /* @__PURE__ */ Ea(ja, [["render", Ga]]), Ja = "mf-reporttable-dimens
|
|
|
654
654
|
enableCellResizing: () => {
|
|
655
655
|
const h = document.querySelector("thead"), n = document.querySelectorAll("thead tr"), k = document.querySelectorAll("tbody tr"), F = [...n, ...k];
|
|
656
656
|
h && h.classList.remove("sticky");
|
|
657
|
-
const
|
|
657
|
+
const A = (B, G) => {
|
|
658
658
|
const X = document.createElement("div");
|
|
659
659
|
return X.className = `${B}-resize-handle`, B === "col" ? (X.addEventListener("mouseenter", () => m(G, !0)), X.addEventListener("mouseleave", () => S(!0)), X.addEventListener("mousedown", (le) => {
|
|
660
660
|
le.stopPropagation(), y(le, G);
|
|
@@ -665,13 +665,13 @@ const Xa = /* @__PURE__ */ Ea(ja, [["render", Ga]]), Ja = "mf-reporttable-dimens
|
|
|
665
665
|
F.forEach((B) => {
|
|
666
666
|
const G = B.closest("thead") !== null;
|
|
667
667
|
B.querySelectorAll(G ? "th" : "td").forEach((le, ve) => {
|
|
668
|
-
const we =
|
|
668
|
+
const we = A("col", ve), De = A("row", ve);
|
|
669
669
|
le.appendChild(we), le.appendChild(De);
|
|
670
670
|
});
|
|
671
671
|
}), L();
|
|
672
672
|
},
|
|
673
673
|
cancelResizingChanges: () => {
|
|
674
|
-
|
|
674
|
+
z();
|
|
675
675
|
}
|
|
676
676
|
};
|
|
677
677
|
});
|
|
@@ -683,7 +683,7 @@ function Lt(e) {
|
|
|
683
683
|
const [a, w] = l.split("."), x = new Intl.NumberFormat("en-US").format(Number(a));
|
|
684
684
|
return w !== void 0 ? `${x}.${w}` : x;
|
|
685
685
|
}
|
|
686
|
-
const Ka = "/assets/processTableData.worker-
|
|
686
|
+
const Ka = "/assets/processTableData.worker-DS6uNX_h.js", Za = { class: "my-4" }, Qa = {
|
|
687
687
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
688
688
|
style: { backgroundColor: "#f9f9f9" }
|
|
689
689
|
}, el = { class: "font-bold" }, tl = { class: "text-fm-color-neutral-gray-300" }, al = /* @__PURE__ */ Ee({
|
|
@@ -696,7 +696,7 @@ const Ka = "/assets/processTableData.worker-BAMcED0j.js", Za = { class: "my-4" }
|
|
|
696
696
|
}),
|
|
697
697
|
emits: ["update:modelValue"],
|
|
698
698
|
setup(e) {
|
|
699
|
-
const { t: l, te: u } = mt(), a = Oe(e, "modelValue"), { country: w } = It(), { clearTileSorts: x, setTileSorts: R } = Ca(), L = Wt(),
|
|
699
|
+
const { t: l, te: u } = mt(), a = Oe(e, "modelValue"), { country: w } = It(), { clearTileSorts: x, setTileSorts: R } = Ca(), L = Wt(), z = e, d = p([]), { isEditing: m, colWidths: i, rowHeight: c } = $e(Gt()), { setColWidths: S, setRowHeights: y, enableCellResizing: T } = Gt(), v = p(null), I = C(() => {
|
|
700
700
|
var b;
|
|
701
701
|
return ((b = a.value.data) == null ? void 0 : b.columns) || [{ label: "", key: "" }];
|
|
702
702
|
}), h = C(() => {
|
|
@@ -713,7 +713,7 @@ const Ka = "/assets/processTableData.worker-BAMcED0j.js", Za = { class: "my-4" }
|
|
|
713
713
|
}), F = C(() => {
|
|
714
714
|
const W = k.value !== void 0 ? 1 : 0, H = (v.value ? v.value.$el.offsetHeight : 0) - 48;
|
|
715
715
|
return Math.floor((H - 34.5 - 32) / 48) - W;
|
|
716
|
-
}),
|
|
716
|
+
}), A = C(() => {
|
|
717
717
|
var $, j;
|
|
718
718
|
let b = [];
|
|
719
719
|
switch (k.value) {
|
|
@@ -787,7 +787,7 @@ const Ka = "/assets/processTableData.worker-BAMcED0j.js", Za = { class: "my-4" }
|
|
|
787
787
|
fe(
|
|
788
788
|
() => d.value,
|
|
789
789
|
(b) => {
|
|
790
|
-
|
|
790
|
+
z.tileIndex === void 0 || z.tileIndex === null || R(z.tileIndex, b);
|
|
791
791
|
},
|
|
792
792
|
{ immediate: !0, deep: !0 }
|
|
793
793
|
);
|
|
@@ -914,7 +914,7 @@ const Ka = "/assets/processTableData.worker-BAMcED0j.js", Za = { class: "my-4" }
|
|
|
914
914
|
"pin-top": ae(() => [
|
|
915
915
|
U("tbody", null, [
|
|
916
916
|
U("tr", Qa, [
|
|
917
|
-
(E(!0), ee(Ce, null, Ct(
|
|
917
|
+
(E(!0), ee(Ce, null, Ct(A.value, (W, H) => (E(), ee("td", {
|
|
918
918
|
key: `${s(ut)()}_${H}`,
|
|
919
919
|
class: "h-[48px] text-fm-color-typo-primary px-16"
|
|
920
920
|
}, [
|
|
@@ -925,8 +925,8 @@ const Ka = "/assets/processTableData.worker-BAMcED0j.js", Za = { class: "my-4" }
|
|
|
925
925
|
Le.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
|
|
926
926
|
])
|
|
927
927
|
}, [
|
|
928
|
-
U("p", el,
|
|
929
|
-
U("p", tl,
|
|
928
|
+
U("p", el, ze(W.rowType === "NUMERIC" ? s(Lt)(W.main) : W.main), 1),
|
|
929
|
+
U("p", tl, ze(W.comparison ? W.rowType === "NUMERIC" ? `(${s(Lt)(W.comparison)})` : `(${W.comparison})` : ""), 1)
|
|
930
930
|
], 2)
|
|
931
931
|
]))), 128))
|
|
932
932
|
])
|
|
@@ -953,7 +953,7 @@ const Ka = "/assets/processTableData.worker-BAMcED0j.js", Za = { class: "my-4" }
|
|
|
953
953
|
}), x = C(() => {
|
|
954
954
|
var v;
|
|
955
955
|
return ((v = u.value.data) == null ? void 0 : v.datasets) ?? [];
|
|
956
|
-
}), { datalabels: R, xCfg: L, yCfg:
|
|
956
|
+
}), { datalabels: R, xCfg: L, yCfg: z, isTransposed: d, legend: m, chartWidth: i, chartHeight: c } = pt(
|
|
957
957
|
u.value
|
|
958
958
|
), S = C(() => x.value.length > 0 ? [
|
|
959
959
|
...x.value.map((v, I) => {
|
|
@@ -986,7 +986,7 @@ const Ka = "/assets/processTableData.worker-BAMcED0j.js", Za = { class: "my-4" }
|
|
|
986
986
|
datasets: S.value,
|
|
987
987
|
"x-axis": { categories: w.value },
|
|
988
988
|
"x-cfg": s(L),
|
|
989
|
-
"y-cfg": s(
|
|
989
|
+
"y-cfg": s(z),
|
|
990
990
|
transpose: s(d),
|
|
991
991
|
stacked: !0,
|
|
992
992
|
legend: {
|
|
@@ -1022,7 +1022,7 @@ const Ka = "/assets/processTableData.worker-BAMcED0j.js", Za = { class: "my-4" }
|
|
|
1022
1022
|
), x = C(() => w.value ? ["", a[0], ""] : a), R = p(null), L = C(() => {
|
|
1023
1023
|
var n;
|
|
1024
1024
|
return ((n = u.value.data) == null ? void 0 : n.datasets) ?? [];
|
|
1025
|
-
}), { datalabels:
|
|
1025
|
+
}), { datalabels: z, xCfg: d, yCfg: m, isTransposed: i, legend: c, chartWidth: S, chartHeight: y } = pt(
|
|
1026
1026
|
u.value
|
|
1027
1027
|
), T = C(() => L.value.length > 0 ? [
|
|
1028
1028
|
...L.value.map((n, k) => {
|
|
@@ -1071,7 +1071,7 @@ const Ka = "/assets/processTableData.worker-BAMcED0j.js", Za = { class: "my-4" }
|
|
|
1071
1071
|
labels: s(c).labels
|
|
1072
1072
|
},
|
|
1073
1073
|
stacked: !0,
|
|
1074
|
-
datalabels: s(
|
|
1074
|
+
datalabels: s(z),
|
|
1075
1075
|
"maintain-aspect-ratio": !1,
|
|
1076
1076
|
style: He({
|
|
1077
1077
|
"--chart-width": s(S) !== void 0 ? s(S) + "px" : "100%",
|
|
@@ -1120,7 +1120,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1120
1120
|
), x = C(() => w.value ? ["", a[0], ""] : a), R = p(null), L = C(() => {
|
|
1121
1121
|
var n;
|
|
1122
1122
|
return ((n = u.value.data) == null ? void 0 : n.datasets) ?? [];
|
|
1123
|
-
}), { datalabels:
|
|
1123
|
+
}), { datalabels: z, xCfg: d, yCfg: m, isTransposed: i, legend: c, chartWidth: S, chartHeight: y } = pt(
|
|
1124
1124
|
u.value
|
|
1125
1125
|
), T = C(() => L.value.length > 0 ? [
|
|
1126
1126
|
...L.value.map((n, k) => {
|
|
@@ -1168,7 +1168,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1168
1168
|
maxWidth: s(c).maxWidth,
|
|
1169
1169
|
labels: s(c).labels
|
|
1170
1170
|
},
|
|
1171
|
-
datalabels: s(
|
|
1171
|
+
datalabels: s(z),
|
|
1172
1172
|
"maintain-aspect-ratio": !1,
|
|
1173
1173
|
style: He({
|
|
1174
1174
|
"--chart-width": s(S) !== void 0 ? s(S) + "px" : "100%",
|
|
@@ -1189,7 +1189,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1189
1189
|
}),
|
|
1190
1190
|
emits: ["update:modelValue"],
|
|
1191
1191
|
setup(e) {
|
|
1192
|
-
const { t: l } = mt(), { FmForm: u } = $a, a = e, w = p(), x = Oe(e, "modelValue"), R = p(!0), L = p(!1),
|
|
1192
|
+
const { t: l } = mt(), { FmForm: u } = $a, a = e, w = p(), x = Oe(e, "modelValue"), R = p(!0), L = p(!1), z = Wt(), { selectedLocationIds: d, dateRange: m, timeRange: i } = $e(ct()), c = p(Ft.PORTRAIT);
|
|
1193
1193
|
function S() {
|
|
1194
1194
|
var T;
|
|
1195
1195
|
(T = w.value) == null || T.validateInputs();
|
|
@@ -1207,7 +1207,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1207
1207
|
locationIds: d.value
|
|
1208
1208
|
});
|
|
1209
1209
|
} catch (T) {
|
|
1210
|
-
|
|
1210
|
+
z.open({ message: T.message, type: "error" });
|
|
1211
1211
|
} finally {
|
|
1212
1212
|
L.value = !1;
|
|
1213
1213
|
}
|
|
@@ -1300,7 +1300,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1300
1300
|
}),
|
|
1301
1301
|
emits: ["update:modelValue"],
|
|
1302
1302
|
setup(e) {
|
|
1303
|
-
const l = p(!0), u = Oe(e, "modelValue"), a = u.value.widget.config, { t: w, te: x } = mt(), R = e, L = p(null),
|
|
1303
|
+
const l = p(!0), u = Oe(e, "modelValue"), a = u.value.widget.config, { t: w, te: x } = mt(), R = e, L = p(null), z = p(a.rollup), d = p(ut()), m = p(a.drillDimension), i = C(() => {
|
|
1304
1304
|
if (xe.value.length > 0) {
|
|
1305
1305
|
const r = xe.value.findIndex(
|
|
1306
1306
|
(Z) => Z.value === m.value
|
|
@@ -1310,7 +1310,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1310
1310
|
return -1;
|
|
1311
1311
|
}), c = C(() => i.value !== 0), S = C(
|
|
1312
1312
|
() => i.value != xe.value.length - 1
|
|
1313
|
-
), y = p(a.showTitle ?? !0), T = p(a.titleFontSize ?? 14), v = p(a.titleBold ?? !1), I = p(a.titleItalic ?? !1), h = p(a.titleUnderline ?? !1), n = p(a.chartWidth ?? void 0), k = p(a.chartHeight ?? void 0), F = p(a.showLabel ?? !1),
|
|
1313
|
+
), y = p(a.showTitle ?? !0), T = p(a.titleFontSize ?? 14), v = p(a.titleBold ?? !1), I = p(a.titleItalic ?? !1), h = p(a.titleUnderline ?? !1), n = p(a.chartWidth ?? void 0), k = p(a.chartHeight ?? void 0), F = p(a.showLabel ?? !1), A = p(a.labelAlign ?? $t.center), B = p(a.labelAnchor ?? At.center), G = p(a.labelRotation ?? 0), X = p(a.labelOffset ?? 0), le = p(a.labelFontSize ?? 12), ve = C(() => a.showSearchBar), we = p(a.showX ?? !0), De = p(a.xPosition ?? Et.bottom), Le = p(a.showXGrid ?? !1), _e = p(a.showXTick ?? !0), b = p(a.xTickFontSize ?? 12), $ = p(a.showXTitle ?? !1), j = p(a.xTitle ?? ""), W = p(a.xTitleFontSize ?? 12), H = p(a.showY ?? !0), N = p(a.yPosition ?? Mt.left), ue = p(a.showYGrid ?? !1), Te = p(a.showYTick ?? !0), ge = p(a.yTickFontSize ?? 12), Se = p(a.showYTitle ?? !1), ye = p(a.yTitle ?? ""), qe = p(a.yTitleFontSize ?? 12), Re = p(a.showLegend ?? void 0), Ve = p(a.legendPosition ?? Nt.top), t = p(a.usePointStyle ?? !0), f = p(a.legendMaxHeight), g = p(a.legendMaxWidth), _ = p(a.rowHeight ?? 0), D = p(a.colWidths ?? []), Q = p(!1), te = p(""), { breakpoints: se, getBreakpointsBoundary: Y } = ea(), V = p(), o = C(
|
|
1314
1314
|
() => R.customScreenWidth === void 0 ? window.innerWidth : R.customScreenWidth
|
|
1315
1315
|
), me = C(
|
|
1316
1316
|
() => (o == null ? void 0 : o.value) > Y("xs")[1] && (o == null ? void 0 : o.value) <= Y("sm")[1]
|
|
@@ -1363,7 +1363,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1363
1363
|
...r,
|
|
1364
1364
|
config: {
|
|
1365
1365
|
...r.config,
|
|
1366
|
-
rollup:
|
|
1366
|
+
rollup: z.value,
|
|
1367
1367
|
drillDimension: m.value,
|
|
1368
1368
|
showGrandTotal: !1
|
|
1369
1369
|
}
|
|
@@ -1381,7 +1381,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1381
1381
|
chartWidth: n.value,
|
|
1382
1382
|
showLabel: F.value,
|
|
1383
1383
|
labelAnchor: B.value,
|
|
1384
|
-
labelAlign:
|
|
1384
|
+
labelAlign: A.value,
|
|
1385
1385
|
labelRotation: G.value,
|
|
1386
1386
|
labelOffset: X.value,
|
|
1387
1387
|
labelFontSize: le.value,
|
|
@@ -1462,11 +1462,11 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1462
1462
|
fe(
|
|
1463
1463
|
() => u.value.widget.config,
|
|
1464
1464
|
(r) => {
|
|
1465
|
-
|
|
1465
|
+
z.value = r.rollup, y.value = r.showTitle ?? !0, T.value = r.titleFontSize ?? 14, v.value = r.titleBold ?? !1, I.value = r.titleItalic ?? !1, h.value = r.titleUnderline ?? !1, k.value = r.chartHeight ?? void 0, n.value = r.chartWidth ?? void 0, F.value = r.showLabel ?? !1, A.value = r.labelAlign ?? $t.center, B.value = r.labelAnchor ?? At.center, G.value = r.labelRotation ?? 0, X.value = r.labelOffset ?? 0, le.value = r.labelFontSize ?? 12, we.value = r.showX ?? !0, De.value = r.xPosition ?? Et.bottom, Le.value = r.showXGrid ?? !1, _e.value = r.showXTick ?? !0, b.value = r.xTickFontSize ?? 12, $.value = r.showXTitle ?? !1, j.value = r.xTitle ?? "", W.value = r.xTitleFontSize ?? 12, H.value = r.showY ?? !0, N.value = r.yPosition ?? Mt.left, ue.value = r.showYGrid ?? !1, Te.value = r.showYTick ?? !0, ge.value = r.yTickFontSize ?? 12, Se.value = r.showYTitle ?? !1, ye.value = r.yTitle ?? "", qe.value = r.yTitleFontSize ?? 12, Re.value = r.showLegend ?? void 0, Ve.value = r.legendPosition ?? Nt.top, t.value = r.usePointStyle ?? !0, f.value = r.legendMaxHeight, g.value = r.legendMaxWidth, _.value = r.rowHeight ?? 0, D.value = r.colWidths ?? [];
|
|
1466
1466
|
},
|
|
1467
1467
|
{ deep: !0 }
|
|
1468
|
-
), fe([() =>
|
|
1469
|
-
|
|
1468
|
+
), fe([() => z.value], () => {
|
|
1469
|
+
z.value !== null && (u.value.widget.config.rollup = z.value);
|
|
1470
1470
|
}), fe(
|
|
1471
1471
|
[
|
|
1472
1472
|
() => oe.value,
|
|
@@ -1593,7 +1593,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1593
1593
|
T.value <= 18 ? "fm-typo-en-body-md-400" : "",
|
|
1594
1594
|
oe.value.description ? "border-b-2 border-dashed border-gray-300" : ""
|
|
1595
1595
|
]])
|
|
1596
|
-
},
|
|
1596
|
+
}, ze(s(st)(s(w), s(x), oe.value.title, "other")), 7)) : Ae("", !0)
|
|
1597
1597
|
]),
|
|
1598
1598
|
_: 1
|
|
1599
1599
|
}, 8, ["content", "disabled"]),
|
|
@@ -1624,15 +1624,15 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1624
1624
|
disabled: !S.value,
|
|
1625
1625
|
onClick: oa
|
|
1626
1626
|
}, null, 8, ["disabled"])
|
|
1627
|
-
])) :
|
|
1627
|
+
])) : Ae("", !0),
|
|
1628
1628
|
(Ut = ne.value) != null && Ut.showRollup && re.value.length > 0 ? (E(), ie(ca, {
|
|
1629
1629
|
key: 3,
|
|
1630
|
-
modelValue:
|
|
1631
|
-
"onUpdate:modelValue": Z[3] || (Z[3] = (We) =>
|
|
1630
|
+
modelValue: z.value,
|
|
1631
|
+
"onUpdate:modelValue": Z[3] || (Z[3] = (We) => z.value = We),
|
|
1632
1632
|
class: "w-[150px]",
|
|
1633
1633
|
items: re.value
|
|
1634
|
-
}, null, 8, ["modelValue", "items"])) :
|
|
1635
|
-
R.hideExport ?
|
|
1634
|
+
}, null, 8, ["modelValue", "items"])) : Ae("", !0),
|
|
1635
|
+
R.hideExport ? Ae("", !0) : (E(), ie(ma, {
|
|
1636
1636
|
key: 4,
|
|
1637
1637
|
shift: !0
|
|
1638
1638
|
}, {
|
|
@@ -1879,7 +1879,7 @@ const Jt = Qt(fl, () => {
|
|
|
1879
1879
|
const S = at(i), y = a(S);
|
|
1880
1880
|
y.keepSelection = c;
|
|
1881
1881
|
}
|
|
1882
|
-
function
|
|
1882
|
+
function z(i, c) {
|
|
1883
1883
|
const S = at(i), y = a(S);
|
|
1884
1884
|
y.showAdvanced = c;
|
|
1885
1885
|
}
|
|
@@ -1893,7 +1893,7 @@ const Jt = Qt(fl, () => {
|
|
|
1893
1893
|
setSelectedValues: x,
|
|
1894
1894
|
setSearch: R,
|
|
1895
1895
|
setKeepSelection: L,
|
|
1896
|
-
setShowAdvanced:
|
|
1896
|
+
setShowAdvanced: z,
|
|
1897
1897
|
increaseVisibleCount: d,
|
|
1898
1898
|
includeUnavailable: l
|
|
1899
1899
|
};
|
|
@@ -1904,7 +1904,7 @@ const Jt = Qt(fl, () => {
|
|
|
1904
1904
|
__name: "FilterSelector",
|
|
1905
1905
|
setup(e) {
|
|
1906
1906
|
const { t: l, locale: u } = mt(), { currentReport: a, editingReport: w, editingTile: x } = $e(Ta());
|
|
1907
|
-
let { globalFilters: R, isGlobalFiltersLoading: L, timeRange:
|
|
1907
|
+
let { globalFilters: R, isGlobalFiltersLoading: L, timeRange: z, dateRange: d, selectedLocationIds: m } = $e(ct()), { schemas: i } = $e(Fa()), {
|
|
1908
1908
|
increaseVisibleCount: c,
|
|
1909
1909
|
setSelectedValues: S,
|
|
1910
1910
|
setKeepSelection: y,
|
|
@@ -1922,7 +1922,7 @@ const Jt = Qt(fl, () => {
|
|
|
1922
1922
|
delete _[g], k.value = _;
|
|
1923
1923
|
}
|
|
1924
1924
|
}
|
|
1925
|
-
const
|
|
1925
|
+
const A = C(() => {
|
|
1926
1926
|
var t;
|
|
1927
1927
|
return ((t = a.value) == null ? void 0 : t.id) ?? "";
|
|
1928
1928
|
}), B = p([]);
|
|
@@ -1966,7 +1966,7 @@ const Jt = Qt(fl, () => {
|
|
|
1966
1966
|
},
|
|
1967
1967
|
{ immediate: !0 }
|
|
1968
1968
|
), fe(
|
|
1969
|
-
[
|
|
1969
|
+
[z, d, m],
|
|
1970
1970
|
async () => {
|
|
1971
1971
|
await W();
|
|
1972
1972
|
},
|
|
@@ -2146,7 +2146,7 @@ const Jt = Qt(fl, () => {
|
|
|
2146
2146
|
}
|
|
2147
2147
|
}
|
|
2148
2148
|
async function W(t = !1) {
|
|
2149
|
-
if (!(!
|
|
2149
|
+
if (!(!A.value || !B.value.length)) {
|
|
2150
2150
|
ve && (ve == null || ve.abort()), ve = new AbortController();
|
|
2151
2151
|
try {
|
|
2152
2152
|
t || (L.value = !0), n.value = !0;
|
|
@@ -2192,14 +2192,14 @@ const Jt = Qt(fl, () => {
|
|
|
2192
2192
|
if (t.type === Pe.Timestamp) {
|
|
2193
2193
|
const o = ((Q = t.filter.values) == null ? void 0 : Q.length) === 2;
|
|
2194
2194
|
if (t.filter.option === he.DateTime)
|
|
2195
|
-
return { preview: o ? `${f} is between ${
|
|
2195
|
+
return { preview: o ? `${f} is between ${za({
|
|
2196
2196
|
startDate: ((te = t.filter.values) == null ? void 0 : te[0]) || null,
|
|
2197
2197
|
endDate: ((se = t.filter.values) == null ? void 0 : se[1]) || null,
|
|
2198
2198
|
locale: u.value
|
|
2199
2199
|
})}` : f, suffix: "" };
|
|
2200
2200
|
if (t.filter.option === he.TimeOfDay) {
|
|
2201
2201
|
const me = (Y = t.filter.values) != null && Y[0] ? tt(t.filter.values[0]) : null, pe = (V = t.filter.values) != null && V[1] ? tt(t.filter.values[1]) : null, be = (ne) => ne && ne.isValid() ? { hour: ne.hour(), minute: ne.minute() } : null;
|
|
2202
|
-
return { preview: o ? `${f} is between ${
|
|
2202
|
+
return { preview: o ? `${f} is between ${Aa({
|
|
2203
2203
|
startTime: be(me),
|
|
2204
2204
|
endTime: be(pe),
|
|
2205
2205
|
locale: u.value
|
|
@@ -2287,7 +2287,7 @@ const Jt = Qt(fl, () => {
|
|
|
2287
2287
|
class: "w-full"
|
|
2288
2288
|
}, {
|
|
2289
2289
|
default: ae(() => [
|
|
2290
|
-
Rt(
|
|
2290
|
+
Rt(ze(ge(o).suffix), 1)
|
|
2291
2291
|
]),
|
|
2292
2292
|
_: 2
|
|
2293
2293
|
}, 1032, ["label"])
|
|
@@ -2330,7 +2330,7 @@ const Jt = Qt(fl, () => {
|
|
|
2330
2330
|
"z-index": 2e3
|
|
2331
2331
|
}, {
|
|
2332
2332
|
content: ae(() => [
|
|
2333
|
-
Rt(
|
|
2333
|
+
Rt(ze(K.label), 1)
|
|
2334
2334
|
]),
|
|
2335
2335
|
default: ae(() => [
|
|
2336
2336
|
U("div", xl, [
|
|
@@ -2362,7 +2362,7 @@ const Jt = Qt(fl, () => {
|
|
|
2362
2362
|
label: s(l)("report.section.filter.loadMore"),
|
|
2363
2363
|
onClick: Tt((K) => $(o), ["stop"]),
|
|
2364
2364
|
icon: "autorenew"
|
|
2365
|
-
}, null, 8, ["label", "onClick"])) :
|
|
2365
|
+
}, null, 8, ["label", "onClick"])) : Ae("", !0)
|
|
2366
2366
|
])
|
|
2367
2367
|
]),
|
|
2368
2368
|
U("div", {
|
|
@@ -2376,7 +2376,7 @@ const Jt = Qt(fl, () => {
|
|
|
2376
2376
|
size: "md",
|
|
2377
2377
|
class: ""
|
|
2378
2378
|
}, null, 8, ["name"]),
|
|
2379
|
-
U("span", kl,
|
|
2379
|
+
U("span", kl, ze(s(l)("report.section.filter.advanced")), 1)
|
|
2380
2380
|
], 8, Cl),
|
|
2381
2381
|
O(se),
|
|
2382
2382
|
o.showAdvanced ? (E(), ee("div", _l, [
|
|
@@ -2395,14 +2395,14 @@ const Jt = Qt(fl, () => {
|
|
|
2395
2395
|
o.keepSelection ? "text-fm-color-primary" : "text-fm-color-neutral-gray-400"
|
|
2396
2396
|
)
|
|
2397
2397
|
}, null, 8, ["name", "class"]),
|
|
2398
|
-
U("span", Ll,
|
|
2398
|
+
U("span", Ll, ze(s(l)("report.section.filter.keepSelection")), 1)
|
|
2399
2399
|
], 8, Dl),
|
|
2400
2400
|
O(Q, {
|
|
2401
2401
|
placement: "top",
|
|
2402
2402
|
"z-index": 2e3
|
|
2403
2403
|
}, {
|
|
2404
2404
|
content: ae(() => [
|
|
2405
|
-
U("div", Rl,
|
|
2405
|
+
U("div", Rl, ze(s(l)("report.section.filter.keepSelectionTooltip")), 1)
|
|
2406
2406
|
]),
|
|
2407
2407
|
default: ae(() => [
|
|
2408
2408
|
O(te, {
|
|
@@ -2415,7 +2415,7 @@ const Jt = Qt(fl, () => {
|
|
|
2415
2415
|
})
|
|
2416
2416
|
])
|
|
2417
2417
|
])
|
|
2418
|
-
])) :
|
|
2418
|
+
])) : Ae("", !0),
|
|
2419
2419
|
U("div", Vl, [
|
|
2420
2420
|
O(Y, {
|
|
2421
2421
|
variant: "tertiary",
|
|
@@ -2428,7 +2428,7 @@ const Jt = Qt(fl, () => {
|
|
|
2428
2428
|
label: s(l)("report.common.apply")
|
|
2429
2429
|
}, null, 8, ["onClick", "label"])
|
|
2430
2430
|
])
|
|
2431
|
-
], 64)) : s(L) ?
|
|
2431
|
+
], 64)) : s(L) ? Ae("", !0) : (E(), ie(Vt, { key: 2 }))
|
|
2432
2432
|
], 4)
|
|
2433
2433
|
]),
|
|
2434
2434
|
_: 2
|
|
@@ -2446,7 +2446,7 @@ export {
|
|
|
2446
2446
|
je as R,
|
|
2447
2447
|
Hl as _,
|
|
2448
2448
|
Yl as a,
|
|
2449
|
-
|
|
2449
|
+
At as b,
|
|
2450
2450
|
ql as c,
|
|
2451
2451
|
Ul as d,
|
|
2452
2452
|
Ol as e,
|