@feedmepos/mf-report 5.22.1-remy-beta.2 → 5.22.1-remy.1
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-iSIj8_lS.js → App-cuHcpcZw.js} +26 -26
- package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-03nmej58.js +19983 -0
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-CPniBJgZ.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-cfshXMB2.js} +36 -37
- package/dist/{Default.vue_vue_type_script_setup_true_lang-Blc6DBml.js → Default.vue_vue_type_script_setup_true_lang-BhMWXLug.js} +11 -12
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-CHTMrqtt.js → FilterSelector.vue_vue_type_script_setup_true_lang-fzO5gzwh.js} +235 -236
- package/dist/{InsightView-Ckkwb92m.js → InsightView-DJJJmFkl.js} +16 -17
- package/dist/{Integration-BoYn0XvH.js → Integration-D93eQCHy.js} +4 -5
- package/dist/{Integrations-D6Qz0hqf.js → Integrations-jn20KmcD.js} +27 -28
- package/dist/{Layout-DIs6pMOT.js → Layout-B1jaac85.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Brwm-7zb.js → MenuTab.vue_vue_type_script_setup_true_lang-BrCMbeEl.js} +9 -9
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DZIauCN0.js → NavigationTab.vue_vue_type_script_setup_true_lang-BZVeEoDt.js} +97 -98
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-CW6oZEnc.js → NoData.vue_vue_type_script_setup_true_lang-BUoYdn5S.js} +1 -1
- package/dist/{OverviewView-Bx_6RMle.js → OverviewView-Cuzw4aLB.js} +16 -16
- package/dist/{Report-E8GN07k7.js → Report-P_a1NjPi.js} +9 -8
- package/dist/{ReportEditor-bz8aajNj.js → ReportEditor-CkNtAVi9.js} +8 -9
- package/dist/{ReportView-BEWiRAvV.js → ReportView-BiF6T_r0.js} +12 -12
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-CiT09OeD.js → SelectComponent.vue_vue_type_script_setup_true_lang-B2oCOTUH.js} +1 -1
- package/dist/{Setting-B6nnaJaX.js → Setting-DLnskPxP.js} +6 -7
- package/dist/{TileEditor-DncjwvcR.js → TileEditor-LFwn_4CK.js} +17 -18
- package/dist/{TransitionFade-Bold22aO.js → TransitionFade-12ARL50A.js} +21 -22
- package/dist/app.js +5184 -6
- package/dist/vue-i18n-BQN8HgvD.js +6457 -0
- package/package.json +1 -1
- package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-Bnu9l9U0.js +0 -315
- package/dist/app-CDw9UOqm.js +0 -28808
- package/dist/vue-i18n-CQAzKJVO.js +0 -2711
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { computed as k, defineComponent as Le, mergeModels as Ie, useModel as Me, ref as h, onMounted as Ue, nextTick as we, watch as he, resolveComponent as O, createElementBlock as te, openBlock as $, Fragment as be, renderSlot as Ne, createVNode as B, normalizeStyle as Ee, unref as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { d as Mt, _ as Ll, a as Dl, b as Rl, c as Vl } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { computed as k, defineComponent as Le, mergeModels as Ie, useModel as Me, ref as h, onMounted as Ue, nextTick as we, watch as he, resolveComponent as O, createElementBlock as te, openBlock as $, Fragment as be, renderSlot as Ne, createVNode as B, normalizeStyle as Ee, unref as s, createElementVNode as H, toDisplayString as Te, withCtx as oe, createBlock as re, createCommentVNode as Fe, normalizeClass as qe, h as st, renderList as nt, toRaw as fl, markRaw as vl, createTextVNode as ht, onUnmounted as gl, resolveDynamicComponent as yl, withDirectives as bl, vShow as wl, withModifiers as ct } from "vue";
|
|
2
|
+
import { W as A, e as et, f as xl, S as Be, v as ot, g as Sl, h as dt, i as Bt, q as Ot, R as je, j as Cl, D as ze, c as pe, C as Ce, a as kl, b as _l, _ as Tl } from "./BaseDialog.vue_vue_type_script_setup_true_lang-03nmej58.js";
|
|
3
|
+
import { u as tt, b as Qe, a as St, d as Ke, i as Fl } from "./vue-i18n-BQN8HgvD.js";
|
|
4
|
+
import { d as Mt, _ as Ll, a as Dl, b as Rl, c as Vl } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-cfshXMB2.js";
|
|
5
5
|
import { storeToRefs as $e, defineStore as Ht } from "pinia";
|
|
6
6
|
import { useBreakpoints as qt, useSnackbar as Ct, components as zl } from "@feedmepos/ui-library";
|
|
7
|
-
import {
|
|
8
|
-
import { a as $l } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CiT09OeD.js";
|
|
7
|
+
import { a as $l } from "./SelectComponent.vue_vue_type_script_setup_true_lang-B2oCOTUH.js";
|
|
9
8
|
import { r as Oe } from "./i18n-DQxDgiLO.js";
|
|
10
|
-
import { _ as ft } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as ft } from "./NoData.vue_vue_type_script_setup_true_lang-BUoYdn5S.js";
|
|
11
10
|
var vt = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(vt || {}), Pe = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(Pe || {}), gt = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(gt || {}), yt = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(yt || {}), bt = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(bt || {}), wt = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(wt || {}), xt = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(xt || {});
|
|
12
11
|
A.Circular, A.Table, A.BarChart, A.LineChart, A.StackBarChart, A.StackLineChart, A.Scorecard, A.Spacer;
|
|
13
12
|
const Al = [
|
|
@@ -119,16 +118,16 @@ const It = [
|
|
|
119
118
|
function Ae({
|
|
120
119
|
index: e,
|
|
121
120
|
isCompare: a,
|
|
122
|
-
opacity:
|
|
121
|
+
opacity: o
|
|
123
122
|
}) {
|
|
124
|
-
let l = typeof
|
|
123
|
+
let l = typeof o == "number" ? o : 1;
|
|
125
124
|
return a && (l = l * 0.6), `rgba(${It[e % It.length]}, ${l})`;
|
|
126
125
|
}
|
|
127
|
-
function Ut(e, a,
|
|
126
|
+
function Ut(e, a, o) {
|
|
128
127
|
if (e === "" || a === "")
|
|
129
128
|
return null;
|
|
130
129
|
let l = (z) => z == null ? void 0 : z.replace(/,/g, "");
|
|
131
|
-
|
|
130
|
+
o === "ID" && (l = (z) => z == null ? void 0 : z.replace(/\./g, "").replace(/,/g, "."));
|
|
132
131
|
const g = Number(l(e)), _ = Number(l(a));
|
|
133
132
|
if (isNaN(g) || isNaN(_))
|
|
134
133
|
return null;
|
|
@@ -166,7 +165,7 @@ function lt(e) {
|
|
|
166
165
|
}
|
|
167
166
|
return p.slice(0, w - 1) + i;
|
|
168
167
|
}
|
|
169
|
-
const
|
|
168
|
+
const o = k(() => ({
|
|
170
169
|
display: e.showLabel,
|
|
171
170
|
align: e.labelAlign,
|
|
172
171
|
anchor: e.labelAnchor,
|
|
@@ -297,7 +296,7 @@ function lt(e) {
|
|
|
297
296
|
}
|
|
298
297
|
}
|
|
299
298
|
})), D = k(() => e.isTransposed), R = k(() => e.chartWidth), z = k(() => e.chartHeight);
|
|
300
|
-
return { datalabels:
|
|
299
|
+
return { datalabels: o, xCfg: l, yCfg: g, isTransposed: D, legend: _, chartWidth: R, chartHeight: z };
|
|
301
300
|
}
|
|
302
301
|
const Il = /* @__PURE__ */ Le({
|
|
303
302
|
__name: "WidgetBarchart",
|
|
@@ -309,14 +308,14 @@ const Il = /* @__PURE__ */ Le({
|
|
|
309
308
|
}),
|
|
310
309
|
emits: ["update:modelValue"],
|
|
311
310
|
setup(e) {
|
|
312
|
-
const a = e,
|
|
311
|
+
const a = e, o = Me(e, "modelValue"), l = h(null), g = k(() => {
|
|
313
312
|
var y;
|
|
314
|
-
return ((y =
|
|
313
|
+
return ((y = o.value.data) == null ? void 0 : y.xAxis) ?? [];
|
|
315
314
|
}), _ = k(() => {
|
|
316
315
|
var y;
|
|
317
|
-
return ((y =
|
|
316
|
+
return ((y = o.value.data) == null ? void 0 : y.datasets) ?? [];
|
|
318
317
|
}), { datalabels: D, xCfg: R, yCfg: z, isTransposed: c, legend: p, chartWidth: d, chartHeight: i } = lt(
|
|
319
|
-
|
|
318
|
+
o.value
|
|
320
319
|
), w = k(() => _.value.length > 0 ? [
|
|
321
320
|
..._.value.map((y, W) => ({
|
|
322
321
|
label: y.name,
|
|
@@ -344,21 +343,21 @@ const Il = /* @__PURE__ */ Le({
|
|
|
344
343
|
class: "bar-chart",
|
|
345
344
|
datasets: w.value,
|
|
346
345
|
"x-axis": { categories: g.value },
|
|
347
|
-
"x-cfg":
|
|
348
|
-
"y-cfg":
|
|
349
|
-
transpose:
|
|
346
|
+
"x-cfg": s(R),
|
|
347
|
+
"y-cfg": s(z),
|
|
348
|
+
transpose: s(c),
|
|
350
349
|
legend: {
|
|
351
|
-
display:
|
|
352
|
-
position:
|
|
353
|
-
maxHeight:
|
|
354
|
-
maxWidth:
|
|
355
|
-
labels:
|
|
350
|
+
display: s(p).display ?? !1,
|
|
351
|
+
position: s(p).position,
|
|
352
|
+
maxHeight: s(p).maxHeight,
|
|
353
|
+
maxWidth: s(p).maxWidth,
|
|
354
|
+
labels: s(p).labels
|
|
356
355
|
},
|
|
357
|
-
datalabels:
|
|
356
|
+
datalabels: s(D),
|
|
358
357
|
"maintain-aspect-ratio": !1,
|
|
359
358
|
style: Ee({
|
|
360
|
-
"--chart-width":
|
|
361
|
-
"--chart-height":
|
|
359
|
+
"--chart-width": s(d) !== void 0 ? s(d) + "px" : "100%",
|
|
360
|
+
"--chart-height": s(i) !== void 0 ? s(i) + "px" : "calc(100% - 36px)"
|
|
362
361
|
})
|
|
363
362
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "datalabels", "style"])
|
|
364
363
|
], 64);
|
|
@@ -374,13 +373,13 @@ const Il = /* @__PURE__ */ Le({
|
|
|
374
373
|
}),
|
|
375
374
|
emits: ["update:modelValue"],
|
|
376
375
|
setup(e) {
|
|
377
|
-
const a = e,
|
|
376
|
+
const a = e, o = Me(e, "modelValue"), { breakpoints: l } = qt(), g = h(null), { datalabels: _, legend: D, chartWidth: R, chartHeight: z } = lt(o.value), c = k(() => {
|
|
378
377
|
let w = [];
|
|
379
|
-
return
|
|
378
|
+
return o.value.data.datasets && o.value.data.metrics && o.value.data.datasets.length > 0 && o.value.data.metrics.length > 0 && (w = [
|
|
380
379
|
{
|
|
381
|
-
label:
|
|
382
|
-
data:
|
|
383
|
-
backgroundColor:
|
|
380
|
+
label: o.value.data.metrics[0],
|
|
381
|
+
data: o.value.data.datasets.map((x) => x.value),
|
|
382
|
+
backgroundColor: o.value.data.datasets.map((x, C) => Ae({ index: C }))
|
|
384
383
|
}
|
|
385
384
|
]), w;
|
|
386
385
|
}), p = et();
|
|
@@ -405,25 +404,25 @@ const Il = /* @__PURE__ */ Le({
|
|
|
405
404
|
class: "circular",
|
|
406
405
|
percentage: "70%",
|
|
407
406
|
datasets: c.value,
|
|
408
|
-
metrics:
|
|
407
|
+
metrics: o.value.data.datasets.map((y) => y.name),
|
|
409
408
|
variant: "doughnut",
|
|
410
409
|
legend: {
|
|
411
|
-
display:
|
|
412
|
-
position:
|
|
413
|
-
maxHeight:
|
|
414
|
-
maxWidth:
|
|
410
|
+
display: s(D).display ?? !0,
|
|
411
|
+
position: s(D).position ?? "top",
|
|
412
|
+
maxHeight: s(D).maxHeight,
|
|
413
|
+
maxWidth: s(D).maxWidth,
|
|
415
414
|
labels: {
|
|
416
|
-
...
|
|
415
|
+
...s(D).labels,
|
|
417
416
|
font: {
|
|
418
417
|
size: i.value
|
|
419
418
|
}
|
|
420
419
|
}
|
|
421
420
|
},
|
|
422
|
-
datalabels:
|
|
421
|
+
datalabels: s(_),
|
|
423
422
|
"maintain-aspect-ratio": !1,
|
|
424
423
|
style: Ee({
|
|
425
|
-
"--chart-width":
|
|
426
|
-
"--chart-height":
|
|
424
|
+
"--chart-width": s(R) !== void 0 ? s(R) + "px" : "100%",
|
|
425
|
+
"--chart-height": s(z) !== void 0 ? s(z) + "px" : "calc(100% - 36px)"
|
|
427
426
|
})
|
|
428
427
|
}, null, 8, ["datasets", "metrics", "legend", "datalabels", "style"])
|
|
429
428
|
], 64);
|
|
@@ -437,7 +436,7 @@ const Il = /* @__PURE__ */ Le({
|
|
|
437
436
|
},
|
|
438
437
|
emits: ["update:modelValue"],
|
|
439
438
|
setup(e) {
|
|
440
|
-
const a = Me(e, "modelValue"), { t:
|
|
439
|
+
const a = Me(e, "modelValue"), { t: o } = tt(), { compareDateRange: l, defaultDateSetting: g } = $e(Qe()), { country: _ } = St(), D = k(() => {
|
|
441
440
|
var d;
|
|
442
441
|
return ((d = a.value.data) == null ? void 0 : d.value) || "";
|
|
443
442
|
}), R = k(() => {
|
|
@@ -471,19 +470,19 @@ const Il = /* @__PURE__ */ Le({
|
|
|
471
470
|
H("p", Pl, Te(D.value), 1),
|
|
472
471
|
H("div", Bl, [
|
|
473
472
|
B(C, {
|
|
474
|
-
content: `vs. ${(W =
|
|
473
|
+
content: `vs. ${(W = s(g).defaultCompareType) == null ? void 0 : W.split("_").join(" ")}`,
|
|
475
474
|
placement: "right",
|
|
476
475
|
"hide-arrow": "",
|
|
477
476
|
variant: "plain"
|
|
478
477
|
}, {
|
|
479
|
-
default:
|
|
478
|
+
default: oe(() => [
|
|
480
479
|
R.value ? ($(), re(x, {
|
|
481
480
|
key: 0,
|
|
482
481
|
icon: R.value.icon.name,
|
|
483
482
|
class: qe(`bg-${R.value.icon.tailwind}`),
|
|
484
483
|
compact: ""
|
|
485
484
|
}, {
|
|
486
|
-
default:
|
|
485
|
+
default: oe(() => [
|
|
487
486
|
B(w, {
|
|
488
487
|
name: R.value.icon.name,
|
|
489
488
|
color: R.value.icon.color
|
|
@@ -495,11 +494,11 @@ const Il = /* @__PURE__ */ Le({
|
|
|
495
494
|
]),
|
|
496
495
|
_: 1
|
|
497
496
|
}, 8, ["icon", "class"])) : Fe("", !0),
|
|
498
|
-
|
|
497
|
+
s(l).endDate !== null && s(l).startDate !== null && R.value === null ? ($(), re(x, {
|
|
499
498
|
key: 1,
|
|
500
499
|
compact: ""
|
|
501
500
|
}, {
|
|
502
|
-
default:
|
|
501
|
+
default: oe(() => [
|
|
503
502
|
B(w, {
|
|
504
503
|
name: "arrow_upward",
|
|
505
504
|
color: "#C7C7CC"
|
|
@@ -540,11 +539,11 @@ const Il = /* @__PURE__ */ Le({
|
|
|
540
539
|
}
|
|
541
540
|
}), Ul = {};
|
|
542
541
|
function Gl(e, a) {
|
|
543
|
-
const
|
|
544
|
-
return $(), re(
|
|
542
|
+
const o = O("FmMenuDivider");
|
|
543
|
+
return $(), re(o);
|
|
545
544
|
}
|
|
546
545
|
const Yl = /* @__PURE__ */ $l(Ul, [["render", Gl]]), Xl = "mf-reporttable-dimension", Nt = Ht(Xl, () => {
|
|
547
|
-
const e = h(0), a = h([]),
|
|
546
|
+
const e = h(0), a = h([]), o = h(!1), l = (v, n) => {
|
|
548
547
|
e.value = v, _(v, n);
|
|
549
548
|
}, g = (v, n, T, m) => {
|
|
550
549
|
a[v] = n, a.value = [...a.value], D(v, n, T, m);
|
|
@@ -565,10 +564,10 @@ const Yl = /* @__PURE__ */ $l(Ul, [["render", Gl]]), Xl = "mf-reporttable-dimens
|
|
|
565
564
|
m ? requestAnimationFrame(ee) : ee();
|
|
566
565
|
}, R = () => {
|
|
567
566
|
const v = document.querySelectorAll("th"), n = document.querySelectorAll("td"), T = document.querySelector("table");
|
|
568
|
-
T == null || T.classList.add("table-fixed"), v.forEach((m) => m.classList.add("toggleEditResize")), n.forEach((m) => m.classList.add("toggleEditResize")),
|
|
567
|
+
T == null || T.classList.add("table-fixed"), v.forEach((m) => m.classList.add("toggleEditResize")), n.forEach((m) => m.classList.add("toggleEditResize")), o.value = !0;
|
|
569
568
|
}, z = () => {
|
|
570
569
|
const v = document.querySelectorAll("th"), n = document.querySelectorAll("td"), T = document.querySelectorAll(".col-resize-handle"), m = document.querySelectorAll(".row-resize-handle");
|
|
571
|
-
v.forEach((L) => L.classList.remove("toggleEditResize")), n.forEach((L) => L.classList.remove("toggleEditResize")), T.forEach((L) => L.remove()), m.forEach((L) => L.remove()),
|
|
570
|
+
v.forEach((L) => L.classList.remove("toggleEditResize")), n.forEach((L) => L.classList.remove("toggleEditResize")), T.forEach((L) => L.remove()), m.forEach((L) => L.remove()), o.value = !1;
|
|
572
571
|
}, c = () => {
|
|
573
572
|
e.value = 0, a.value = [];
|
|
574
573
|
}, p = (v, n) => {
|
|
@@ -594,9 +593,9 @@ const Yl = /* @__PURE__ */ $l(Ul, [["render", Gl]]), Xl = "mf-reporttable-dimens
|
|
|
594
593
|
n.classList.remove("highlight-hover-col");
|
|
595
594
|
}) : document.querySelectorAll(".highlight-col").forEach((n) => n.classList.remove("highlight-col"));
|
|
596
595
|
}, x = (v, n) => {
|
|
597
|
-
const T = /* @__PURE__ */ new Map(), m = v.clientX, L = v.target.closest("table"), U = L == null ? void 0 : L.querySelectorAll("th")[n], K = U == null ? void 0 : U.getBoundingClientRect().width, ee = T.get(n) ? a[n.toString()] || 60 : (T.set(n, !0), K || a[n.toString()] || 60),
|
|
598
|
-
if (!
|
|
599
|
-
const ke =
|
|
596
|
+
const T = /* @__PURE__ */ new Map(), m = v.clientX, L = v.target.closest("table"), U = L == null ? void 0 : L.querySelectorAll("th")[n], K = U == null ? void 0 : U.getBoundingClientRect().width, ee = T.get(n) ? a[n.toString()] || 60 : (T.set(n, !0), K || a[n.toString()] || 60), se = U == null ? void 0 : U.querySelector("p");
|
|
597
|
+
if (!se) return;
|
|
598
|
+
const ke = se.textContent || "", ve = window.getComputedStyle(se), _e = `${ve.fontWeight} ${ve.fontSize} ${ve.fontFamily}`, fe = document.createElement("canvas").getContext("2d");
|
|
600
599
|
if (!fe) return;
|
|
601
600
|
fe.font = _e;
|
|
602
601
|
const b = fe.measureText(ke), V = window.getComputedStyle(U), G = parseFloat(V.paddingLeft || "0"), P = parseFloat(V.paddingRight || "0"), I = b.width + G + P;
|
|
@@ -637,7 +636,7 @@ const Yl = /* @__PURE__ */ $l(Ul, [["render", Gl]]), Xl = "mf-reporttable-dimens
|
|
|
637
636
|
return {
|
|
638
637
|
rowHeight: e,
|
|
639
638
|
colWidths: a,
|
|
640
|
-
isEditing:
|
|
639
|
+
isEditing: o,
|
|
641
640
|
updateRowHeight: l,
|
|
642
641
|
updateColWidth: g,
|
|
643
642
|
setRowHeights: _,
|
|
@@ -656,17 +655,17 @@ const Yl = /* @__PURE__ */ $l(Ul, [["render", Gl]]), Xl = "mf-reporttable-dimens
|
|
|
656
655
|
v && v.classList.remove("sticky");
|
|
657
656
|
const L = (U, K) => {
|
|
658
657
|
const ee = document.createElement("div");
|
|
659
|
-
return ee.className = `${U}-resize-handle`, U === "col" ? (ee.addEventListener("mouseenter", () => p(K, !0)), ee.addEventListener("mouseleave", () => w(!0)), ee.addEventListener("mousedown", (
|
|
660
|
-
|
|
661
|
-
})) : (ee.addEventListener("mouseenter", () => d(!0)), ee.addEventListener("mouseleave", () => i(!0)), ee.addEventListener("mousedown", (
|
|
662
|
-
|
|
658
|
+
return ee.className = `${U}-resize-handle`, U === "col" ? (ee.addEventListener("mouseenter", () => p(K, !0)), ee.addEventListener("mouseleave", () => w(!0)), ee.addEventListener("mousedown", (se) => {
|
|
659
|
+
se.stopPropagation(), x(se, K);
|
|
660
|
+
})) : (ee.addEventListener("mouseenter", () => d(!0)), ee.addEventListener("mouseleave", () => i(!0)), ee.addEventListener("mousedown", (se) => {
|
|
661
|
+
se.stopPropagation(), C(se);
|
|
663
662
|
})), ee;
|
|
664
663
|
};
|
|
665
664
|
m.forEach((U) => {
|
|
666
665
|
const K = U.closest("thead") !== null;
|
|
667
|
-
U.querySelectorAll(K ? "th" : "td").forEach((
|
|
666
|
+
U.querySelectorAll(K ? "th" : "td").forEach((se, ke) => {
|
|
668
667
|
const ve = L("col", ke), _e = L("row", ke);
|
|
669
|
-
|
|
668
|
+
se.appendChild(ve), se.appendChild(_e);
|
|
670
669
|
});
|
|
671
670
|
}), R();
|
|
672
671
|
},
|
|
@@ -678,8 +677,8 @@ const Yl = /* @__PURE__ */ $l(Ul, [["render", Gl]]), Xl = "mf-reporttable-dimens
|
|
|
678
677
|
function pt(e) {
|
|
679
678
|
if (e == null || e === "")
|
|
680
679
|
return "";
|
|
681
|
-
const a = String(e),
|
|
682
|
-
if (isNaN(
|
|
680
|
+
const a = String(e), o = Number(a);
|
|
681
|
+
if (isNaN(o)) return a;
|
|
683
682
|
const [l, g] = a.split("."), _ = new Intl.NumberFormat("en-US").format(Number(l));
|
|
684
683
|
return g !== void 0 ? `${_}.${g}` : _;
|
|
685
684
|
}
|
|
@@ -696,7 +695,7 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
|
|
|
696
695
|
}),
|
|
697
696
|
emits: ["update:modelValue"],
|
|
698
697
|
setup(e) {
|
|
699
|
-
const { t: a, te:
|
|
698
|
+
const { t: a, te: o } = tt(), l = Me(e, "modelValue"), { country: g } = St(), { clearTileSorts: _, setTileSorts: D } = xl(), R = Ct(), z = e, c = h([]), { isEditing: p, colWidths: d, rowHeight: i } = $e(Nt()), { setColWidths: w, setRowHeights: x, enableCellResizing: C } = Nt(), y = h(null), W = k(() => {
|
|
700
699
|
var b;
|
|
701
700
|
return ((b = l.value.data) == null ? void 0 : b.columns) || [{ label: "", key: "" }];
|
|
702
701
|
}), v = k(() => {
|
|
@@ -738,7 +737,7 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
|
|
|
738
737
|
});
|
|
739
738
|
break;
|
|
740
739
|
}
|
|
741
|
-
return b.length > 0 && b[0].main === "" && (b[0].main = Oe(a,
|
|
740
|
+
return b.length > 0 && b[0].main === "" && (b[0].main = Oe(a, o, "Grand Total", "other")), b;
|
|
742
741
|
});
|
|
743
742
|
function U(b) {
|
|
744
743
|
let V = (b == null ? void 0 : b.main) || "";
|
|
@@ -754,7 +753,7 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
|
|
|
754
753
|
_();
|
|
755
754
|
});
|
|
756
755
|
const K = h([]);
|
|
757
|
-
let ee = 0,
|
|
756
|
+
let ee = 0, se;
|
|
758
757
|
function ke() {
|
|
759
758
|
var I;
|
|
760
759
|
if (!((I = l.value) != null && I.data)) {
|
|
@@ -806,7 +805,7 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
|
|
|
806
805
|
he(
|
|
807
806
|
() => ve.value,
|
|
808
807
|
() => {
|
|
809
|
-
clearTimeout(
|
|
808
|
+
clearTimeout(se), se = setTimeout(ke, 200);
|
|
810
809
|
},
|
|
811
810
|
{ immediate: !0 }
|
|
812
811
|
);
|
|
@@ -826,12 +825,12 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
|
|
|
826
825
|
), fe = k(() => {
|
|
827
826
|
var b;
|
|
828
827
|
return (b = l.value.data) != null && b.columns ? l.value.data.columns.map((V) => {
|
|
829
|
-
const G = Oe(a,
|
|
828
|
+
const G = Oe(a, o, V.label, "other"), P = c.value.find((ie) => ie.key === V.key), I = !!P, M = I ? P.type === Be.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
|
|
830
829
|
return {
|
|
831
830
|
accessorKey: V.key,
|
|
832
831
|
header: () => {
|
|
833
832
|
const ie = O("FmIcon");
|
|
834
|
-
return
|
|
833
|
+
return st(
|
|
835
834
|
"button",
|
|
836
835
|
{
|
|
837
836
|
type: "button",
|
|
@@ -839,12 +838,12 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
|
|
|
839
838
|
onClick: () => _e(V.key)
|
|
840
839
|
},
|
|
841
840
|
[
|
|
842
|
-
|
|
841
|
+
st(
|
|
843
842
|
"span",
|
|
844
843
|
{ class: `${V.type === "NUMERIC" ? "text-right" : ""} whitespace-nowrap` },
|
|
845
844
|
G
|
|
846
845
|
),
|
|
847
|
-
|
|
846
|
+
st(ie, {
|
|
848
847
|
name: M,
|
|
849
848
|
color: I ? "primary" : "neutral-gray-400",
|
|
850
849
|
size: "sm",
|
|
@@ -857,7 +856,7 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
|
|
|
857
856
|
cell: (ie) => {
|
|
858
857
|
var ge, t;
|
|
859
858
|
const xe = U(ie.getValue()), Se = (t = (ge = ie == null ? void 0 : ie.row) == null ? void 0 : ge.original) == null ? void 0 : t.isRollup;
|
|
860
|
-
return
|
|
859
|
+
return st(
|
|
861
860
|
"div",
|
|
862
861
|
{
|
|
863
862
|
class: [
|
|
@@ -911,11 +910,11 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
|
|
|
911
910
|
"force-mobile-footer": !0,
|
|
912
911
|
class: "scrollbar-hide-table"
|
|
913
912
|
}, {
|
|
914
|
-
"pin-top":
|
|
913
|
+
"pin-top": oe(() => [
|
|
915
914
|
H("tbody", null, [
|
|
916
915
|
H("tr", Jl, [
|
|
917
916
|
($(!0), te(be, null, nt(L.value, (P, I) => ($(), te("td", {
|
|
918
|
-
key: `${
|
|
917
|
+
key: `${s(ot)()}_${I}`,
|
|
919
918
|
class: "h-[48px] text-fm-color-typo-primary px-16"
|
|
920
919
|
}, [
|
|
921
920
|
H("span", {
|
|
@@ -925,8 +924,8 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
|
|
|
925
924
|
De.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
|
|
926
925
|
])
|
|
927
926
|
}, [
|
|
928
|
-
H("p", Zl, Te(P.rowType === "NUMERIC" ?
|
|
929
|
-
H("p", Ql, Te(P.comparison ? P.rowType === "NUMERIC" ? `(${
|
|
927
|
+
H("p", Zl, Te(P.rowType === "NUMERIC" ? s(pt)(P.main) : P.main), 1),
|
|
928
|
+
H("p", Ql, Te(P.comparison ? P.rowType === "NUMERIC" ? `(${s(pt)(P.comparison)})` : `(${P.comparison})` : ""), 1)
|
|
930
929
|
], 2)
|
|
931
930
|
]))), 128))
|
|
932
931
|
])
|
|
@@ -947,14 +946,14 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
|
|
|
947
946
|
}),
|
|
948
947
|
emits: ["update:modelValue"],
|
|
949
948
|
setup(e) {
|
|
950
|
-
const a = e,
|
|
949
|
+
const a = e, o = Me(e, "modelValue"), l = h(null), g = k(() => {
|
|
951
950
|
var W;
|
|
952
|
-
return ((W =
|
|
951
|
+
return ((W = o.value.data) == null ? void 0 : W.xAxis) || [];
|
|
953
952
|
}), _ = k(() => {
|
|
954
953
|
var y;
|
|
955
|
-
return ((y =
|
|
954
|
+
return ((y = o.value.data) == null ? void 0 : y.datasets) ?? [];
|
|
956
955
|
}), { datalabels: D, xCfg: R, yCfg: z, isTransposed: c, legend: p, chartWidth: d, chartHeight: i } = lt(
|
|
957
|
-
|
|
956
|
+
o.value
|
|
958
957
|
), w = k(() => _.value.length > 0 ? [
|
|
959
958
|
..._.value.map((y, W) => {
|
|
960
959
|
let v = y.values;
|
|
@@ -985,22 +984,22 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
|
|
|
985
984
|
class: "bar-chart",
|
|
986
985
|
datasets: w.value,
|
|
987
986
|
"x-axis": { categories: g.value },
|
|
988
|
-
"x-cfg":
|
|
989
|
-
"y-cfg":
|
|
990
|
-
transpose:
|
|
987
|
+
"x-cfg": s(R),
|
|
988
|
+
"y-cfg": s(z),
|
|
989
|
+
transpose: s(c),
|
|
991
990
|
stacked: !0,
|
|
992
991
|
legend: {
|
|
993
|
-
display:
|
|
994
|
-
position:
|
|
995
|
-
maxHeight:
|
|
996
|
-
maxWidth:
|
|
997
|
-
labels:
|
|
992
|
+
display: s(p).display ?? !1,
|
|
993
|
+
position: s(p).position,
|
|
994
|
+
maxHeight: s(p).maxHeight,
|
|
995
|
+
maxWidth: s(p).maxWidth,
|
|
996
|
+
labels: s(p).labels
|
|
998
997
|
},
|
|
999
|
-
datalabels:
|
|
998
|
+
datalabels: s(D),
|
|
1000
999
|
"maintain-aspect-ratio": !1,
|
|
1001
1000
|
style: Ee({
|
|
1002
|
-
"--chart-width":
|
|
1003
|
-
"--chart-height":
|
|
1001
|
+
"--chart-width": s(d) !== void 0 ? s(d) + "px" : "100%",
|
|
1002
|
+
"--chart-height": s(i) !== void 0 ? s(i) + "px" : "calc(100% - 36px)"
|
|
1004
1003
|
})
|
|
1005
1004
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "datalabels", "style"])
|
|
1006
1005
|
], 64);
|
|
@@ -1017,13 +1016,13 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
|
|
|
1017
1016
|
emits: ["update:modelValue"],
|
|
1018
1017
|
setup(e) {
|
|
1019
1018
|
var v;
|
|
1020
|
-
const a = e,
|
|
1019
|
+
const a = e, o = Me(e, "modelValue"), l = ((v = o.value.data) == null ? void 0 : v.xAxis) ?? [], g = k(
|
|
1021
1020
|
() => l.length === 1 && R.value.length > 0 && R.value.every((n) => n.values.length === 1)
|
|
1022
1021
|
), _ = k(() => g.value ? ["", l[0], ""] : l), D = h(null), R = k(() => {
|
|
1023
1022
|
var n;
|
|
1024
|
-
return ((n =
|
|
1023
|
+
return ((n = o.value.data) == null ? void 0 : n.datasets) ?? [];
|
|
1025
1024
|
}), { datalabels: z, xCfg: c, yCfg: p, isTransposed: d, legend: i, chartWidth: w, chartHeight: x } = lt(
|
|
1026
|
-
|
|
1025
|
+
o.value
|
|
1027
1026
|
), C = k(() => R.value.length > 0 ? [
|
|
1028
1027
|
...R.value.map((n, T) => {
|
|
1029
1028
|
let m = n.values;
|
|
@@ -1060,22 +1059,22 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
|
|
|
1060
1059
|
class: "line-chart",
|
|
1061
1060
|
datasets: C.value,
|
|
1062
1061
|
"x-axis": { categories: _.value },
|
|
1063
|
-
"x-cfg":
|
|
1064
|
-
"y-cfg":
|
|
1065
|
-
transpose:
|
|
1062
|
+
"x-cfg": s(c),
|
|
1063
|
+
"y-cfg": s(p),
|
|
1064
|
+
transpose: s(d),
|
|
1066
1065
|
legend: {
|
|
1067
|
-
display:
|
|
1068
|
-
position:
|
|
1069
|
-
maxHeight:
|
|
1070
|
-
maxWidth:
|
|
1071
|
-
labels:
|
|
1066
|
+
display: s(i).display ?? !1,
|
|
1067
|
+
position: s(i).position,
|
|
1068
|
+
maxHeight: s(i).maxHeight,
|
|
1069
|
+
maxWidth: s(i).maxWidth,
|
|
1070
|
+
labels: s(i).labels
|
|
1072
1071
|
},
|
|
1073
1072
|
stacked: !0,
|
|
1074
|
-
datalabels:
|
|
1073
|
+
datalabels: s(z),
|
|
1075
1074
|
"maintain-aspect-ratio": !1,
|
|
1076
1075
|
style: Ee({
|
|
1077
|
-
"--chart-width":
|
|
1078
|
-
"--chart-height":
|
|
1076
|
+
"--chart-width": s(w) !== void 0 ? s(w) + "px" : "100%",
|
|
1077
|
+
"--chart-height": s(x) !== void 0 ? s(x) + "px" : "calc(100% - 36px)"
|
|
1079
1078
|
})
|
|
1080
1079
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "datalabels", "style"])
|
|
1081
1080
|
], 64);
|
|
@@ -1098,10 +1097,10 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
|
|
|
1098
1097
|
function aa(e) {
|
|
1099
1098
|
return e < 12 ? Je[e - 1] : Je[11];
|
|
1100
1099
|
}
|
|
1101
|
-
function
|
|
1100
|
+
function sa(e) {
|
|
1102
1101
|
return e < 12 ? Je[Math.min(11, e * 2 - 1)] : Je[11];
|
|
1103
1102
|
}
|
|
1104
|
-
function
|
|
1103
|
+
function oa(e) {
|
|
1105
1104
|
return e < 12 ? Je[Math.min(11, e * 3 - 1)] : Je[11];
|
|
1106
1105
|
}
|
|
1107
1106
|
const na = /* @__PURE__ */ Le({
|
|
@@ -1115,13 +1114,13 @@ const na = /* @__PURE__ */ Le({
|
|
|
1115
1114
|
emits: ["update:modelValue"],
|
|
1116
1115
|
setup(e) {
|
|
1117
1116
|
var v;
|
|
1118
|
-
const a = e,
|
|
1117
|
+
const a = e, o = Me(e, "modelValue"), l = ((v = o.value.data) == null ? void 0 : v.xAxis) ?? [], g = k(
|
|
1119
1118
|
() => l.length === 1 && R.value.length > 0 && R.value.every((n) => n.values.length === 1)
|
|
1120
1119
|
), _ = k(() => g.value ? ["", l[0], ""] : l), D = h(null), R = k(() => {
|
|
1121
1120
|
var n;
|
|
1122
|
-
return ((n =
|
|
1121
|
+
return ((n = o.value.data) == null ? void 0 : n.datasets) ?? [];
|
|
1123
1122
|
}), { datalabels: z, xCfg: c, yCfg: p, isTransposed: d, legend: i, chartWidth: w, chartHeight: x } = lt(
|
|
1124
|
-
|
|
1123
|
+
o.value
|
|
1125
1124
|
), C = k(() => R.value.length > 0 ? [
|
|
1126
1125
|
...R.value.map((n, T) => {
|
|
1127
1126
|
let m = n.values;
|
|
@@ -1158,21 +1157,21 @@ const na = /* @__PURE__ */ Le({
|
|
|
1158
1157
|
class: "line-chart",
|
|
1159
1158
|
datasets: C.value,
|
|
1160
1159
|
"x-axis": { categories: _.value },
|
|
1161
|
-
"x-cfg":
|
|
1162
|
-
"y-cfg":
|
|
1163
|
-
transpose:
|
|
1160
|
+
"x-cfg": s(c),
|
|
1161
|
+
"y-cfg": s(p),
|
|
1162
|
+
transpose: s(d),
|
|
1164
1163
|
legend: {
|
|
1165
|
-
display:
|
|
1166
|
-
position:
|
|
1167
|
-
maxHeight:
|
|
1168
|
-
maxWidth:
|
|
1169
|
-
labels:
|
|
1164
|
+
display: s(i).display ?? !1,
|
|
1165
|
+
position: s(i).position,
|
|
1166
|
+
maxHeight: s(i).maxHeight,
|
|
1167
|
+
maxWidth: s(i).maxWidth,
|
|
1168
|
+
labels: s(i).labels
|
|
1170
1169
|
},
|
|
1171
|
-
datalabels:
|
|
1170
|
+
datalabels: s(z),
|
|
1172
1171
|
"maintain-aspect-ratio": !1,
|
|
1173
1172
|
style: Ee({
|
|
1174
|
-
"--chart-width":
|
|
1175
|
-
"--chart-height":
|
|
1173
|
+
"--chart-width": s(w) !== void 0 ? s(w) + "px" : "100%",
|
|
1174
|
+
"--chart-height": s(x) !== void 0 ? s(x) + "px" : "calc(100% - 36px)"
|
|
1176
1175
|
})
|
|
1177
1176
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "datalabels", "style"])
|
|
1178
1177
|
], 64);
|
|
@@ -1189,7 +1188,7 @@ const na = /* @__PURE__ */ Le({
|
|
|
1189
1188
|
}),
|
|
1190
1189
|
emits: ["update:modelValue"],
|
|
1191
1190
|
setup(e) {
|
|
1192
|
-
const { t: a } = tt(), { FmForm:
|
|
1191
|
+
const { t: a } = tt(), { FmForm: o } = zl, l = e, g = h(), _ = Me(e, "modelValue"), D = h(!0), R = h(!1), z = Ct(), { selectedLocationIds: c, dateRange: p, timeRange: d } = $e(Qe()), i = h(dt.PORTRAIT);
|
|
1193
1192
|
function w() {
|
|
1194
1193
|
var C;
|
|
1195
1194
|
(C = g.value) == null || C.validateInputs();
|
|
@@ -1220,29 +1219,29 @@ const na = /* @__PURE__ */ Le({
|
|
|
1220
1219
|
overlay: !0,
|
|
1221
1220
|
"z-index": 10
|
|
1222
1221
|
}, {
|
|
1223
|
-
"dialog-header":
|
|
1222
|
+
"dialog-header": oe(() => y[3] || (y[3] = [
|
|
1224
1223
|
ht("Select Orientation")
|
|
1225
1224
|
])),
|
|
1226
|
-
default:
|
|
1227
|
-
B(o
|
|
1225
|
+
default: oe(() => [
|
|
1226
|
+
B(s(o), {
|
|
1228
1227
|
ref_key: "form",
|
|
1229
1228
|
ref: g,
|
|
1230
1229
|
onValidationSuccess: x
|
|
1231
1230
|
}, {
|
|
1232
|
-
default:
|
|
1231
|
+
default: oe(() => [
|
|
1233
1232
|
H("div", ra, [
|
|
1234
1233
|
B(v, {
|
|
1235
1234
|
modelValue: i.value,
|
|
1236
1235
|
"onUpdate:modelValue": y[0] || (y[0] = (m) => i.value = m)
|
|
1237
1236
|
}, {
|
|
1238
|
-
default:
|
|
1237
|
+
default: oe(() => [
|
|
1239
1238
|
B(W, {
|
|
1240
|
-
value:
|
|
1241
|
-
label:
|
|
1239
|
+
value: s(dt).PORTRAIT,
|
|
1240
|
+
label: s(a)("report.common.portrait")
|
|
1242
1241
|
}, null, 8, ["value", "label"]),
|
|
1243
1242
|
B(W, {
|
|
1244
|
-
value:
|
|
1245
|
-
label:
|
|
1243
|
+
value: s(dt).LANDSCAPE,
|
|
1244
|
+
label: s(a)("report.common.landscape")
|
|
1246
1245
|
}, null, 8, ["value", "label"])
|
|
1247
1246
|
]),
|
|
1248
1247
|
_: 1
|
|
@@ -1251,13 +1250,13 @@ const na = /* @__PURE__ */ Le({
|
|
|
1251
1250
|
H("div", ia, [
|
|
1252
1251
|
y[4] || (y[4] = H("div", { class: "grow" }, null, -1)),
|
|
1253
1252
|
B(n, {
|
|
1254
|
-
label:
|
|
1253
|
+
label: s(a)("report.common.cancel"),
|
|
1255
1254
|
variant: "tertiary",
|
|
1256
1255
|
onClick: y[1] || (y[1] = (m) => _.value = !1)
|
|
1257
1256
|
}, null, 8, ["label"]),
|
|
1258
1257
|
H("div", null, [
|
|
1259
1258
|
B(n, {
|
|
1260
|
-
label:
|
|
1259
|
+
label: s(a)("report.common.download"),
|
|
1261
1260
|
loading: R.value,
|
|
1262
1261
|
onClick: w
|
|
1263
1262
|
}, null, 8, ["label", "loading"])
|
|
@@ -1277,7 +1276,7 @@ const na = /* @__PURE__ */ Le({
|
|
|
1277
1276
|
}, da = {
|
|
1278
1277
|
key: 2,
|
|
1279
1278
|
class: "flex"
|
|
1280
|
-
},
|
|
1279
|
+
}, Pa = /* @__PURE__ */ Le({
|
|
1281
1280
|
__name: "DynamicWidget",
|
|
1282
1281
|
props: /* @__PURE__ */ Ie({
|
|
1283
1282
|
index: {
|
|
@@ -1300,7 +1299,7 @@ const na = /* @__PURE__ */ Le({
|
|
|
1300
1299
|
}),
|
|
1301
1300
|
emits: ["update:modelValue"],
|
|
1302
1301
|
setup(e) {
|
|
1303
|
-
const a = h(!0),
|
|
1302
|
+
const a = h(!0), o = Me(e, "modelValue"), l = o.value.widget.config, { t: g, te: _ } = tt(), D = e, R = h(null), z = h(l.rollup), c = h(ot()), p = h(l.drillDimension), d = k(() => {
|
|
1304
1303
|
if (We.value.length > 0) {
|
|
1305
1304
|
const r = We.value.findIndex(
|
|
1306
1305
|
(Q) => Q.value === p.value
|
|
@@ -1310,23 +1309,23 @@ const na = /* @__PURE__ */ Le({
|
|
|
1310
1309
|
return -1;
|
|
1311
1310
|
}), i = k(() => d.value !== 0), w = k(
|
|
1312
1311
|
() => d.value != We.value.length - 1
|
|
1313
|
-
), x = h(l.showTitle ?? !0), C = h(l.titleFontSize ?? 14), y = h(l.titleBold ?? !1), W = h(l.titleItalic ?? !1), v = h(l.titleUnderline ?? !1), n = h(l.chartWidth ?? void 0), T = h(l.chartHeight ?? void 0), m = h(l.showLabel ?? !1), L = h(l.labelAlign ?? yt.center), U = h(l.labelAnchor ?? gt.center), K = h(l.labelRotation ?? 0), ee = h(l.labelOffset ?? 0),
|
|
1312
|
+
), x = h(l.showTitle ?? !0), C = h(l.titleFontSize ?? 14), y = h(l.titleBold ?? !1), W = h(l.titleItalic ?? !1), v = h(l.titleUnderline ?? !1), n = h(l.chartWidth ?? void 0), T = h(l.chartHeight ?? void 0), m = h(l.showLabel ?? !1), L = h(l.labelAlign ?? yt.center), U = h(l.labelAnchor ?? gt.center), K = h(l.labelRotation ?? 0), ee = h(l.labelOffset ?? 0), se = h(l.labelFontSize ?? 12), ke = k(() => l.showSearchBar), ve = h(l.showX ?? !0), _e = h(l.xPosition ?? bt.bottom), De = h(l.showXGrid ?? !1), fe = h(l.showXTick ?? !0), b = h(l.xTickFontSize ?? 12), V = h(l.showXTitle ?? !1), G = h(l.xTitle ?? ""), P = h(l.xTitleFontSize ?? 12), I = h(l.showY ?? !0), M = h(l.yPosition ?? wt.left), ie = h(l.showYGrid ?? !1), xe = h(l.showYTick ?? !0), Se = h(l.yTickFontSize ?? 12), ge = h(l.showYTitle ?? !1), t = h(l.yTitle ?? ""), f = h(l.yTitleFontSize ?? 12), F = h(l.showLegend ?? void 0), S = h(l.legendPosition ?? xt.top), N = h(l.usePointStyle ?? !0), le = h(l.legendMaxHeight), de = h(l.legendMaxWidth), me = h(l.rowHeight ?? 0), J = h(l.colWidths ?? []), E = h(!1), u = h(""), { breakpoints: X, getBreakpointsBoundary: j } = qt(), Z = h(), q = k(
|
|
1314
1313
|
() => D.customScreenWidth === void 0 ? window.innerWidth : D.customScreenWidth
|
|
1315
1314
|
), ne = k(
|
|
1316
1315
|
() => (q == null ? void 0 : q.value) > j("xs")[1] && (q == null ? void 0 : q.value) <= j("sm")[1]
|
|
1317
1316
|
), ae = k(
|
|
1318
1317
|
() => (q == null ? void 0 : q.value) > j("sm")[1] && (q == null ? void 0 : q.value) <= j("md")[1]
|
|
1319
1318
|
), ye = k(() => (q == null ? void 0 : q.value) > j("md")[1]), ue = k(() => {
|
|
1320
|
-
const r =
|
|
1321
|
-
return ye.value || ae.value ? aa(r) : ne.value ?
|
|
1319
|
+
const r = o.value.size.width;
|
|
1320
|
+
return ye.value || ae.value ? aa(r) : ne.value ? sa(r) : oa(r);
|
|
1322
1321
|
}), Ge = k(
|
|
1323
|
-
() => Al.find((r) => r.type ===
|
|
1322
|
+
() => Al.find((r) => r.type === o.value.widget.type)
|
|
1324
1323
|
), Y = Mt(() => {
|
|
1325
1324
|
var r;
|
|
1326
|
-
Z.value = ll((r = R.value) == null ? void 0 : r.$el.offsetWidth), c.value =
|
|
1325
|
+
Z.value = ll((r = R.value) == null ? void 0 : r.$el.offsetWidth), c.value = ot();
|
|
1327
1326
|
}), Yt = k(() => {
|
|
1328
1327
|
if (El(ce.value.type, Ye.value))
|
|
1329
|
-
switch (
|
|
1328
|
+
switch (o.value.widget.type) {
|
|
1330
1329
|
case A.BarChart:
|
|
1331
1330
|
return Il;
|
|
1332
1331
|
case A.StackBarChart:
|
|
@@ -1358,7 +1357,7 @@ const na = /* @__PURE__ */ Le({
|
|
|
1358
1357
|
} = $e(Qe()), { businessId: Kt } = $e(St()), { businessLoadedId: Jt, businessDataVersion: it } = $e(Qe());
|
|
1359
1358
|
k(() => Jt.value === Kt.value && rt.value.length > 0 && !Tt.value);
|
|
1360
1359
|
const Zt = h(!0), ce = k(() => {
|
|
1361
|
-
const r = JSON.parse(JSON.stringify(
|
|
1360
|
+
const r = JSON.parse(JSON.stringify(o.value.widget));
|
|
1362
1361
|
return {
|
|
1363
1362
|
...r,
|
|
1364
1363
|
config: {
|
|
@@ -1384,7 +1383,7 @@ const na = /* @__PURE__ */ Le({
|
|
|
1384
1383
|
labelAlign: L.value,
|
|
1385
1384
|
labelRotation: K.value,
|
|
1386
1385
|
labelOffset: ee.value,
|
|
1387
|
-
labelFontSize:
|
|
1386
|
+
labelFontSize: se.value,
|
|
1388
1387
|
showX: ve.value,
|
|
1389
1388
|
xPosition: _e.value,
|
|
1390
1389
|
showXGrid: De.value,
|
|
@@ -1432,7 +1431,7 @@ const na = /* @__PURE__ */ Le({
|
|
|
1432
1431
|
return { data: Ye.value };
|
|
1433
1432
|
}
|
|
1434
1433
|
}), Lt = k(() => {
|
|
1435
|
-
const { config: r } =
|
|
1434
|
+
const { config: r } = o.value.widget;
|
|
1436
1435
|
if (r.rollup != null) {
|
|
1437
1436
|
const Q = [...r.dimensions].filter((Re) => !Re.hide);
|
|
1438
1437
|
return Q.sort(
|
|
@@ -1454,19 +1453,19 @@ const na = /* @__PURE__ */ Le({
|
|
|
1454
1453
|
value: mt(Q)
|
|
1455
1454
|
})) : [];
|
|
1456
1455
|
}), tl = k(() => {
|
|
1457
|
-
const r =
|
|
1456
|
+
const r = o.value.id;
|
|
1458
1457
|
return (jt.value || []).filter(
|
|
1459
1458
|
(Q) => Array.isArray(Q.tileIds) && Q.tileIds.includes(r)
|
|
1460
1459
|
);
|
|
1461
1460
|
});
|
|
1462
1461
|
he(
|
|
1463
|
-
() =>
|
|
1462
|
+
() => o.value.widget.config,
|
|
1464
1463
|
(r) => {
|
|
1465
|
-
z.value = r.rollup, x.value = r.showTitle ?? !0, C.value = r.titleFontSize ?? 14, y.value = r.titleBold ?? !1, W.value = r.titleItalic ?? !1, v.value = r.titleUnderline ?? !1, T.value = r.chartHeight ?? void 0, n.value = r.chartWidth ?? void 0, m.value = r.showLabel ?? !1, L.value = r.labelAlign ?? yt.center, U.value = r.labelAnchor ?? gt.center, K.value = r.labelRotation ?? 0, ee.value = r.labelOffset ?? 0,
|
|
1464
|
+
z.value = r.rollup, x.value = r.showTitle ?? !0, C.value = r.titleFontSize ?? 14, y.value = r.titleBold ?? !1, W.value = r.titleItalic ?? !1, v.value = r.titleUnderline ?? !1, T.value = r.chartHeight ?? void 0, n.value = r.chartWidth ?? void 0, m.value = r.showLabel ?? !1, L.value = r.labelAlign ?? yt.center, U.value = r.labelAnchor ?? gt.center, K.value = r.labelRotation ?? 0, ee.value = r.labelOffset ?? 0, se.value = r.labelFontSize ?? 12, ve.value = r.showX ?? !0, _e.value = r.xPosition ?? bt.bottom, De.value = r.showXGrid ?? !1, fe.value = r.showXTick ?? !0, b.value = r.xTickFontSize ?? 12, V.value = r.showXTitle ?? !1, G.value = r.xTitle ?? "", P.value = r.xTitleFontSize ?? 12, I.value = r.showY ?? !0, M.value = r.yPosition ?? wt.left, ie.value = r.showYGrid ?? !1, xe.value = r.showYTick ?? !0, Se.value = r.yTickFontSize ?? 12, ge.value = r.showYTitle ?? !1, t.value = r.yTitle ?? "", f.value = r.yTitleFontSize ?? 12, F.value = r.showLegend ?? void 0, S.value = r.legendPosition ?? xt.top, N.value = r.usePointStyle ?? !0, le.value = r.legendMaxHeight, de.value = r.legendMaxWidth, me.value = r.rowHeight ?? 0, J.value = r.colWidths ?? [];
|
|
1466
1465
|
},
|
|
1467
1466
|
{ deep: !0 }
|
|
1468
1467
|
), he([() => z.value], () => {
|
|
1469
|
-
z.value !== null && (
|
|
1468
|
+
z.value !== null && (o.value.widget.config.rollup = z.value);
|
|
1470
1469
|
}), he(
|
|
1471
1470
|
[
|
|
1472
1471
|
() => ce.value,
|
|
@@ -1482,7 +1481,7 @@ const na = /* @__PURE__ */ Le({
|
|
|
1482
1481
|
},
|
|
1483
1482
|
{ deep: !0 }
|
|
1484
1483
|
), he(
|
|
1485
|
-
[() =>
|
|
1484
|
+
[() => o.value.size],
|
|
1486
1485
|
() => {
|
|
1487
1486
|
Y();
|
|
1488
1487
|
},
|
|
@@ -1504,43 +1503,43 @@ const na = /* @__PURE__ */ Le({
|
|
|
1504
1503
|
}
|
|
1505
1504
|
try {
|
|
1506
1505
|
a.value = !0, at && at.abort(), at = new AbortController();
|
|
1507
|
-
const r = at.signal, Q = it.value, Re = await Mt(Ot, 500)(ce.value, r,
|
|
1508
|
-
it.value === Q && (Ye.value = Re, c.value =
|
|
1506
|
+
const r = at.signal, Q = it.value, Re = await Mt(Ot, 500)(ce.value, r, o.value.id);
|
|
1507
|
+
it.value === Q && (Ye.value = Re, c.value = ot()), a.value = !1;
|
|
1509
1508
|
} catch (r) {
|
|
1510
1509
|
r.code !== "ERR_CANCELED" && (Ye.value = null, Dt.open({ message: `Invalid chart ${ce.value.type}`, type: "error" }), console.log(r), a.value = !1);
|
|
1511
1510
|
}
|
|
1512
1511
|
}
|
|
1513
1512
|
function ll(r) {
|
|
1514
|
-
switch (
|
|
1513
|
+
switch (o.value.widget.type) {
|
|
1515
1514
|
case "SPACER":
|
|
1516
1515
|
return;
|
|
1517
1516
|
case "SCORECARD":
|
|
1518
1517
|
return;
|
|
1519
1518
|
case "TABLE":
|
|
1520
|
-
return `${
|
|
1519
|
+
return `${o.value.size.height * 100 + (ke.value ? 72 : 0) + 96.5}px`;
|
|
1521
1520
|
}
|
|
1522
|
-
return `${Math.max(r /
|
|
1521
|
+
return `${Math.max(r / o.value.size.width, 90) * o.value.size.height}px`;
|
|
1523
1522
|
}
|
|
1524
1523
|
function al() {
|
|
1525
1524
|
const r = d.value - 1;
|
|
1526
1525
|
r >= 0 && (p.value = We.value[r].value);
|
|
1527
1526
|
}
|
|
1528
|
-
function
|
|
1527
|
+
function sl() {
|
|
1529
1528
|
const r = d.value + 1;
|
|
1530
1529
|
r >= 0 && r < We.value.length && (p.value = We.value[r].value);
|
|
1531
1530
|
}
|
|
1532
|
-
const Vt = h(
|
|
1533
|
-
label:
|
|
1531
|
+
const Vt = h(je.EXCEL), zt = h(), ol = Object.values(je).map((r) => ({
|
|
1532
|
+
label: Cl(r),
|
|
1534
1533
|
value: r,
|
|
1535
1534
|
onClick: async () => {
|
|
1536
|
-
r ===
|
|
1535
|
+
r === je.EXCEL || r === je.PDFFULLSIZE || r === je.PDFRECEIPT ? await Bt({
|
|
1537
1536
|
reportType: r,
|
|
1538
1537
|
index: D.index,
|
|
1539
1538
|
isCombinedLocationLayout: Zt.value,
|
|
1540
1539
|
timeRange: _t.value,
|
|
1541
1540
|
dateRange: kt.value,
|
|
1542
1541
|
locationIds: rt.value
|
|
1543
|
-
}) : r ===
|
|
1542
|
+
}) : r === je.PDF && (Vt.value = r, zt.value = D.index, E.value = !0);
|
|
1544
1543
|
}
|
|
1545
1544
|
})), nl = ce.value.type === A.Spacer ? "flat" : "outlined", rl = ce.value.type === A.Spacer ? "p-0" : "p-16";
|
|
1546
1545
|
return (r, Q) => {
|
|
@@ -1548,17 +1547,17 @@ const na = /* @__PURE__ */ Le({
|
|
|
1548
1547
|
return $(), re(hl, {
|
|
1549
1548
|
ref_key: "tileCard",
|
|
1550
1549
|
ref: R,
|
|
1551
|
-
class: qe(`${ue.value} ${
|
|
1552
|
-
variant:
|
|
1550
|
+
class: qe(`${ue.value} ${s(rl)}`),
|
|
1551
|
+
variant: s(nl)
|
|
1553
1552
|
}, {
|
|
1554
|
-
default:
|
|
1553
|
+
default: oe(() => [
|
|
1555
1554
|
B(ua, {
|
|
1556
1555
|
modelValue: E.value,
|
|
1557
1556
|
"onUpdate:modelValue": Q[0] || (Q[0] = (Xe) => E.value = Xe),
|
|
1558
1557
|
"report-type": Vt.value,
|
|
1559
1558
|
index: zt.value
|
|
1560
1559
|
}, null, 8, ["modelValue", "report-type", "index"]),
|
|
1561
|
-
!a.value && !
|
|
1560
|
+
!a.value && !s(Tt) ? ($(), te("div", {
|
|
1562
1561
|
key: 0,
|
|
1563
1562
|
style: Ee({ height: Z.value })
|
|
1564
1563
|
}, [
|
|
@@ -1568,9 +1567,9 @@ const na = /* @__PURE__ */ Le({
|
|
|
1568
1567
|
"onUpdate:modelValue": Q[4] || (Q[4] = (Xe) => Ft.value = Xe),
|
|
1569
1568
|
"tile-index": D.index
|
|
1570
1569
|
}, {
|
|
1571
|
-
menu:
|
|
1570
|
+
menu: oe(() => [
|
|
1572
1571
|
B(ml, { class: "flex items-center gap-2" }, {
|
|
1573
|
-
default:
|
|
1572
|
+
default: oe(() => {
|
|
1574
1573
|
var Xe, $t, At, Et;
|
|
1575
1574
|
return [
|
|
1576
1575
|
B(Re, {
|
|
@@ -1580,7 +1579,7 @@ const na = /* @__PURE__ */ Le({
|
|
|
1580
1579
|
"hide-arrow": !0,
|
|
1581
1580
|
disabled: !ce.value.description
|
|
1582
1581
|
}, {
|
|
1583
|
-
default:
|
|
1582
|
+
default: oe(() => [
|
|
1584
1583
|
x.value !== !1 ? ($(), te("p", {
|
|
1585
1584
|
key: 0,
|
|
1586
1585
|
style: Ee({
|
|
@@ -1593,7 +1592,7 @@ const na = /* @__PURE__ */ Le({
|
|
|
1593
1592
|
C.value <= 18 ? "fm-typo-en-body-md-400" : "",
|
|
1594
1593
|
ce.value.description ? "border-b-2 border-dashed border-gray-300" : ""
|
|
1595
1594
|
]])
|
|
1596
|
-
}, Te(
|
|
1595
|
+
}, Te(s(Oe)(s(g), s(_), ce.value.title, "other")), 7)) : Fe("", !0)
|
|
1597
1596
|
]),
|
|
1598
1597
|
_: 1
|
|
1599
1598
|
}, 8, ["content", "disabled"]),
|
|
@@ -1622,7 +1621,7 @@ const na = /* @__PURE__ */ Le({
|
|
|
1622
1621
|
icon: "arrow_downward",
|
|
1623
1622
|
variant: "tertiary",
|
|
1624
1623
|
disabled: !w.value,
|
|
1625
|
-
onClick:
|
|
1624
|
+
onClick: sl
|
|
1626
1625
|
}, null, 8, ["disabled"])
|
|
1627
1626
|
])) : Fe("", !0),
|
|
1628
1627
|
(Et = Ge.value) != null && Et.showRollup && Lt.value.length > 0 ? ($(), re(ul, {
|
|
@@ -1636,14 +1635,14 @@ const na = /* @__PURE__ */ Le({
|
|
|
1636
1635
|
key: 4,
|
|
1637
1636
|
shift: !0
|
|
1638
1637
|
}, {
|
|
1639
|
-
"menu-button":
|
|
1638
|
+
"menu-button": oe(() => [
|
|
1640
1639
|
B(ut, {
|
|
1641
1640
|
icon: "more_vert",
|
|
1642
1641
|
variant: "tertiary"
|
|
1643
1642
|
})
|
|
1644
1643
|
]),
|
|
1645
|
-
default:
|
|
1646
|
-
($(!0), te(be, null, nt(
|
|
1644
|
+
default: oe(() => [
|
|
1645
|
+
($(!0), te(be, null, nt(s(ol), (Ve) => ($(), re(cl, {
|
|
1647
1646
|
key: Ve.value,
|
|
1648
1647
|
label: Ve.label,
|
|
1649
1648
|
onClick: Ve.onClick
|
|
@@ -1667,37 +1666,37 @@ const na = /* @__PURE__ */ Le({
|
|
|
1667
1666
|
});
|
|
1668
1667
|
var He = /* @__PURE__ */ ((e) => (e.Select = "Select", e.TextField = "TextField", e.Timestamp = "Timestamp", e))(He || {});
|
|
1669
1668
|
function ma(e) {
|
|
1670
|
-
let a = !1,
|
|
1669
|
+
let a = !1, o = 1;
|
|
1671
1670
|
switch (e) {
|
|
1672
1671
|
case Ce.Equal:
|
|
1673
1672
|
case Ce.NotEqual:
|
|
1674
1673
|
case Ce.Like:
|
|
1675
1674
|
case Ce.NotLike:
|
|
1676
|
-
a = !1,
|
|
1675
|
+
a = !1, o = 1;
|
|
1677
1676
|
break;
|
|
1678
1677
|
case Ce.GreaterThan:
|
|
1679
1678
|
case Ce.GreaterThanOrEqual:
|
|
1680
1679
|
case Ce.LessThan:
|
|
1681
1680
|
case Ce.LessThanOrEqual:
|
|
1682
|
-
a = !0,
|
|
1681
|
+
a = !0, o = 1;
|
|
1683
1682
|
break;
|
|
1684
1683
|
case Ce.Between:
|
|
1685
|
-
a = !0,
|
|
1684
|
+
a = !0, o = 2;
|
|
1686
1685
|
break;
|
|
1687
1686
|
}
|
|
1688
1687
|
return {
|
|
1689
1688
|
fixed: a,
|
|
1690
|
-
count:
|
|
1689
|
+
count: o
|
|
1691
1690
|
};
|
|
1692
1691
|
}
|
|
1693
|
-
function
|
|
1692
|
+
function Ba({
|
|
1694
1693
|
operator: e,
|
|
1695
1694
|
dimensionOption: a,
|
|
1696
|
-
dataType:
|
|
1695
|
+
dataType: o,
|
|
1697
1696
|
t: l
|
|
1698
1697
|
}) {
|
|
1699
1698
|
const { fixed: g, count: _ } = ma(e);
|
|
1700
|
-
switch (
|
|
1699
|
+
switch (o) {
|
|
1701
1700
|
case ze.String:
|
|
1702
1701
|
return {
|
|
1703
1702
|
type: "TextField",
|
|
@@ -1741,7 +1740,7 @@ function Oa({
|
|
|
1741
1740
|
default: ""
|
|
1742
1741
|
};
|
|
1743
1742
|
}
|
|
1744
|
-
function
|
|
1743
|
+
function Oa(e) {
|
|
1745
1744
|
switch (e) {
|
|
1746
1745
|
case pe.HourOfDay:
|
|
1747
1746
|
return 0;
|
|
@@ -1751,7 +1750,7 @@ function Ha(e) {
|
|
|
1751
1750
|
return;
|
|
1752
1751
|
}
|
|
1753
1752
|
}
|
|
1754
|
-
function
|
|
1753
|
+
function Ha(e) {
|
|
1755
1754
|
switch (e) {
|
|
1756
1755
|
case pe.HourOfDay:
|
|
1757
1756
|
return 23;
|
|
@@ -1764,7 +1763,7 @@ function qa(e) {
|
|
|
1764
1763
|
function Gt({
|
|
1765
1764
|
dimensionOption: e,
|
|
1766
1765
|
fixed: a,
|
|
1767
|
-
count:
|
|
1766
|
+
count: o,
|
|
1768
1767
|
t: l
|
|
1769
1768
|
}) {
|
|
1770
1769
|
switch (e) {
|
|
@@ -1772,7 +1771,7 @@ function Gt({
|
|
|
1772
1771
|
return {
|
|
1773
1772
|
type: He.Select,
|
|
1774
1773
|
fixed: a,
|
|
1775
|
-
count:
|
|
1774
|
+
count: o,
|
|
1776
1775
|
options: Array.from({ length: 24 }, (g, _) => ({
|
|
1777
1776
|
label: _.toString().padStart(2, "0"),
|
|
1778
1777
|
value: _.toString()
|
|
@@ -1783,7 +1782,7 @@ function Gt({
|
|
|
1783
1782
|
return {
|
|
1784
1783
|
type: He.Select,
|
|
1785
1784
|
fixed: a,
|
|
1786
|
-
count:
|
|
1785
|
+
count: o,
|
|
1787
1786
|
options: [
|
|
1788
1787
|
{ label: l("report.days.sunday"), value: "1" },
|
|
1789
1788
|
{ label: l("report.days.monday"), value: "2" },
|
|
@@ -1799,7 +1798,7 @@ function Gt({
|
|
|
1799
1798
|
return {
|
|
1800
1799
|
type: He.Select,
|
|
1801
1800
|
fixed: a,
|
|
1802
|
-
count:
|
|
1801
|
+
count: o,
|
|
1803
1802
|
options: Array.from({ length: 31 }, (g, _) => ({
|
|
1804
1803
|
label: (_ + 1).toString(),
|
|
1805
1804
|
value: (_ + 1).toString()
|
|
@@ -1810,7 +1809,7 @@ function Gt({
|
|
|
1810
1809
|
return {
|
|
1811
1810
|
type: He.Select,
|
|
1812
1811
|
fixed: a,
|
|
1813
|
-
count:
|
|
1812
|
+
count: o,
|
|
1814
1813
|
options: [
|
|
1815
1814
|
{ label: l("report.months.january"), value: "1" },
|
|
1816
1815
|
{ label: l("report.months.february"), value: "2" },
|
|
@@ -1831,7 +1830,7 @@ function Gt({
|
|
|
1831
1830
|
return {
|
|
1832
1831
|
type: He.Timestamp,
|
|
1833
1832
|
fixed: a,
|
|
1834
|
-
count:
|
|
1833
|
+
count: o,
|
|
1835
1834
|
default: (/* @__PURE__ */ new Date()).toISOString()
|
|
1836
1835
|
};
|
|
1837
1836
|
}
|
|
@@ -1840,17 +1839,17 @@ function Wt({
|
|
|
1840
1839
|
dimensionOption: e,
|
|
1841
1840
|
t: a
|
|
1842
1841
|
}) {
|
|
1843
|
-
const
|
|
1842
|
+
const o = Gt({
|
|
1844
1843
|
dimensionOption: e,
|
|
1845
1844
|
fixed: !1,
|
|
1846
1845
|
count: 1,
|
|
1847
1846
|
t: a
|
|
1848
1847
|
});
|
|
1849
|
-
return
|
|
1848
|
+
return o.type === He.Select ? o.options : [];
|
|
1850
1849
|
}
|
|
1851
1850
|
const pa = "mf-reportglobalFilter";
|
|
1852
1851
|
function Pt(e, a) {
|
|
1853
|
-
var
|
|
1852
|
+
var o;
|
|
1854
1853
|
return [
|
|
1855
1854
|
a,
|
|
1856
1855
|
e.schemaName,
|
|
@@ -1858,11 +1857,11 @@ function Pt(e, a) {
|
|
|
1858
1857
|
e.operator ?? "",
|
|
1859
1858
|
e.option ?? "",
|
|
1860
1859
|
e.dataFormula ?? "",
|
|
1861
|
-
((
|
|
1860
|
+
((o = e.tileIds) == null ? void 0 : o.join(",")) ?? ""
|
|
1862
1861
|
].join("|");
|
|
1863
1862
|
}
|
|
1864
1863
|
const ha = Ht(pa, () => {
|
|
1865
|
-
const e = h({}), a = h(!1),
|
|
1864
|
+
const e = h({}), a = h(!1), o = h(null), l = () => ({
|
|
1866
1865
|
search: "",
|
|
1867
1866
|
selectedValues: [],
|
|
1868
1867
|
keepSelection: !1,
|
|
@@ -1873,7 +1872,7 @@ const ha = Ht(pa, () => {
|
|
|
1873
1872
|
const x = Pt(i, w);
|
|
1874
1873
|
return e.value[x] || (e.value[x] = l()), e.value[x];
|
|
1875
1874
|
}
|
|
1876
|
-
const _ = k(() => e.value), D = (i) =>
|
|
1875
|
+
const _ = k(() => e.value), D = (i) => o.value === i;
|
|
1877
1876
|
function R(i, w, x, C) {
|
|
1878
1877
|
g(i, w)[x] = C;
|
|
1879
1878
|
}
|
|
@@ -1884,15 +1883,15 @@ const ha = Ht(pa, () => {
|
|
|
1884
1883
|
a.value = i;
|
|
1885
1884
|
}
|
|
1886
1885
|
function p(i) {
|
|
1887
|
-
|
|
1886
|
+
o.value = i;
|
|
1888
1887
|
}
|
|
1889
1888
|
function d() {
|
|
1890
|
-
|
|
1889
|
+
o.value = null;
|
|
1891
1890
|
}
|
|
1892
1891
|
return {
|
|
1893
1892
|
allStates: _,
|
|
1894
1893
|
includeUnavailable: a,
|
|
1895
|
-
openMenuKey:
|
|
1894
|
+
openMenuKey: o,
|
|
1896
1895
|
getGlobalFilter: g,
|
|
1897
1896
|
isMenuOpen: D,
|
|
1898
1897
|
setGlobalFilter: R,
|
|
@@ -1905,11 +1904,11 @@ const ha = Ht(pa, () => {
|
|
|
1905
1904
|
}), fa = { class: "flex flex-row flex-wrap gap-2" }, va = { class: "inline-flex max-w-[460px]" }, ga = {
|
|
1906
1905
|
key: 0,
|
|
1907
1906
|
class: "flex justify-center my-2"
|
|
1908
|
-
}, ya = { class: "px-2 pb-8" }, ba = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, wa = { class: "px-2 pb-8" }, xa = { class: "flex items-start w-full" }, Sa = ["onClick"], Ca = { class: "fm-typo-en-body-md-400" }, ka = { key: 0 }, _a = { class: "px-12 py-3" }, Ta = { class: "flex items-center justify-between" }, Fa = ["onClick"], La = { class: "fm-typo-en-body-md-400" }, Da = { class: "text-xs max-w-[200px]" }, Ra = { class: "px-4 py-3 flex flex-row justify-end gap-2 bg-white" },
|
|
1907
|
+
}, ya = { class: "px-2 pb-8" }, ba = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, wa = { class: "px-2 pb-8" }, xa = { class: "flex items-start w-full" }, Sa = ["onClick"], Ca = { class: "fm-typo-en-body-md-400" }, ka = { key: 0 }, _a = { class: "px-12 py-3" }, Ta = { class: "flex items-center justify-between" }, Fa = ["onClick"], La = { class: "fm-typo-en-body-md-400" }, Da = { class: "text-xs max-w-[200px]" }, Ra = { class: "px-4 py-3 flex flex-row justify-end gap-2 bg-white" }, qa = /* @__PURE__ */ Le({
|
|
1909
1908
|
__name: "FilterSelector",
|
|
1910
1909
|
setup(e) {
|
|
1911
|
-
const { t: a, locale:
|
|
1912
|
-
let { globalFilters: _, isGlobalFiltersLoading: D, timeRange: R, dateRange: z, selectedLocationIds: c } = $e(Qe()), { schemas: p } = $e(
|
|
1910
|
+
const { t: a, locale: o } = tt(), { currentReport: l, editingTile: g } = $e(kl());
|
|
1911
|
+
let { globalFilters: _, isGlobalFiltersLoading: D, timeRange: R, dateRange: z, selectedLocationIds: c } = $e(Qe()), { schemas: p } = $e(_l()), {
|
|
1913
1912
|
showMore: d,
|
|
1914
1913
|
getGlobalFilter: i,
|
|
1915
1914
|
setGlobalFilter: w,
|
|
@@ -2063,14 +2062,14 @@ const ha = Ht(pa, () => {
|
|
|
2063
2062
|
};
|
|
2064
2063
|
}).filter(Boolean);
|
|
2065
2064
|
}
|
|
2066
|
-
function
|
|
2065
|
+
function se(t) {
|
|
2067
2066
|
return t.options.every((f) => {
|
|
2068
2067
|
var F;
|
|
2069
2068
|
return (F = t.selectedValues) == null ? void 0 : F.includes(f.value);
|
|
2070
2069
|
});
|
|
2071
2070
|
}
|
|
2072
2071
|
function ke(t) {
|
|
2073
|
-
|
|
2072
|
+
se(t) ? t.selectedValues = ["(EMPTY)"] : t.selectedValues = t.options.map((f) => f.value);
|
|
2074
2073
|
}
|
|
2075
2074
|
const ve = k(
|
|
2076
2075
|
() => L.value.map((t) => {
|
|
@@ -2158,7 +2157,7 @@ const ha = Ht(pa, () => {
|
|
|
2158
2157
|
if (f === null)
|
|
2159
2158
|
t.values = [];
|
|
2160
2159
|
else {
|
|
2161
|
-
const S =
|
|
2160
|
+
const S = Ke(f.startDate).startOf("day").utc().toISOString(), N = Ke(f.endDate).endOf("day").utc().toISOString();
|
|
2162
2161
|
t.values = [S, N];
|
|
2163
2162
|
}
|
|
2164
2163
|
const F = L.value.find((S) => S.id === C(t, m.value));
|
|
@@ -2174,21 +2173,21 @@ const ha = Ht(pa, () => {
|
|
|
2174
2173
|
}
|
|
2175
2174
|
function I(t) {
|
|
2176
2175
|
var le, de, me, J, E;
|
|
2177
|
-
const f =
|
|
2176
|
+
const f = Fl(t.filter);
|
|
2178
2177
|
if (t.type === ze.Timestamp) {
|
|
2179
2178
|
const u = ((le = t.filter.values) == null ? void 0 : le.length) === 2;
|
|
2180
2179
|
if (t.filter.option === pe.DateTime)
|
|
2181
2180
|
return { preview: u ? `${f} is between ${Rl({
|
|
2182
2181
|
startDate: ((de = t.filter.values) == null ? void 0 : de[0]) || null,
|
|
2183
2182
|
endDate: ((me = t.filter.values) == null ? void 0 : me[1]) || null,
|
|
2184
|
-
locale:
|
|
2183
|
+
locale: o.value
|
|
2185
2184
|
})}` : f, suffix: "" };
|
|
2186
2185
|
if (t.filter.option === pe.TimeOfDay) {
|
|
2187
|
-
const X = (J = t.filter.values) != null && J[0] ?
|
|
2186
|
+
const X = (J = t.filter.values) != null && J[0] ? Ke(t.filter.values[0]) : null, j = (E = t.filter.values) != null && E[1] ? Ke(t.filter.values[1]) : null, Z = (ne) => ne && ne.isValid() ? { hour: ne.hour(), minute: ne.minute() } : null;
|
|
2188
2187
|
return { preview: u ? `${f} is between ${Vl({
|
|
2189
2188
|
startTime: Z(X),
|
|
2190
2189
|
endTime: Z(j),
|
|
2191
|
-
locale:
|
|
2190
|
+
locale: o.value
|
|
2192
2191
|
})}` : f, suffix: "" };
|
|
2193
2192
|
}
|
|
2194
2193
|
if (t.filter.option !== pe.DateTime && t.filter.option !== pe.TimeOfDay) {
|
|
@@ -2225,7 +2224,7 @@ const ha = Ht(pa, () => {
|
|
|
2225
2224
|
if (f === null)
|
|
2226
2225
|
t.values = [];
|
|
2227
2226
|
else {
|
|
2228
|
-
const me =
|
|
2227
|
+
const me = Ke().set("hour", Number((S = f.start) == null ? void 0 : S.hour)).set("minute", Number((N = f.start) == null ? void 0 : N.minute)).toISOString(), J = Ke().set("hour", Number((le = f.end) == null ? void 0 : le.hour)).set("minute", Number((de = f.end) == null ? void 0 : de.minute)).toISOString();
|
|
2229
2228
|
t.values = [me, J];
|
|
2230
2229
|
}
|
|
2231
2230
|
const F = L.value.find((me) => me.id === C(t, m.value));
|
|
@@ -2239,7 +2238,7 @@ const ha = Ht(pa, () => {
|
|
|
2239
2238
|
return $(), te("div", {
|
|
2240
2239
|
key: `${u.id}`
|
|
2241
2240
|
}, [
|
|
2242
|
-
u.filter.option ===
|
|
2241
|
+
u.filter.option === s(pe).DateTime ? ($(), re(Ll, {
|
|
2243
2242
|
key: 0,
|
|
2244
2243
|
"model-value": { startDate: (j = u.filter.values) == null ? void 0 : j[0], endDate: (Z = u.filter.values) == null ? void 0 : Z[1] },
|
|
2245
2244
|
class: "w-full",
|
|
@@ -2247,7 +2246,7 @@ const ha = Ht(pa, () => {
|
|
|
2247
2246
|
removable: ((q = u.filter.values) == null ? void 0 : q.length) === 2,
|
|
2248
2247
|
onUpdate: (ue) => V(u.filter, ue),
|
|
2249
2248
|
onChipClosed: () => V(u.filter, null)
|
|
2250
|
-
}, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : u.filter.option ===
|
|
2249
|
+
}, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : u.filter.option === s(pe).TimeOfDay ? ($(), re(Tl, {
|
|
2251
2250
|
key: 1,
|
|
2252
2251
|
"model-value": { start: (ne = u.filter.values) == null ? void 0 : ne[0], end: (ae = u.filter.values) == null ? void 0 : ae[1] },
|
|
2253
2252
|
class: "w-full",
|
|
@@ -2259,10 +2258,10 @@ const ha = Ht(pa, () => {
|
|
|
2259
2258
|
key: 2,
|
|
2260
2259
|
"close-on-click": !1,
|
|
2261
2260
|
shift: !0,
|
|
2262
|
-
open:
|
|
2263
|
-
onMenuChanged: (ue) => ue ?
|
|
2261
|
+
open: s(y)(u.id),
|
|
2262
|
+
onMenuChanged: (ue) => ue ? s(W)(u.id) : s(v)()
|
|
2264
2263
|
}, {
|
|
2265
|
-
"menu-button":
|
|
2264
|
+
"menu-button": oe(() => [
|
|
2266
2265
|
H("div", va, [
|
|
2267
2266
|
B(Dl, {
|
|
2268
2267
|
"left-icon": "filter_alt",
|
|
@@ -2270,27 +2269,27 @@ const ha = Ht(pa, () => {
|
|
|
2270
2269
|
label: I(u).preview,
|
|
2271
2270
|
class: "w-full"
|
|
2272
2271
|
}, {
|
|
2273
|
-
default:
|
|
2272
|
+
default: oe(() => [
|
|
2274
2273
|
ht(Te(I(u).suffix), 1)
|
|
2275
2274
|
]),
|
|
2276
2275
|
_: 2
|
|
2277
2276
|
}, 1032, ["label"])
|
|
2278
2277
|
])
|
|
2279
2278
|
]),
|
|
2280
|
-
"menu-wrapper":
|
|
2279
|
+
"menu-wrapper": oe(({ maxHeight: ue, width: Ge }) => [
|
|
2281
2280
|
H("div", {
|
|
2282
2281
|
class: "flex flex-col bg-fm-color-neutral-white p-2 rounded-lg shadow-light-300",
|
|
2283
2282
|
style: Ee({ maxHeight: `${ue}px`, width: Ge })
|
|
2284
2283
|
}, [
|
|
2285
2284
|
T.value ? ($(), te("div", ga, [
|
|
2286
2285
|
B(F)
|
|
2287
|
-
])) : u.options.length > 0 && !
|
|
2286
|
+
])) : u.options.length > 0 && !s(D) ? ($(), te(be, { key: 1 }, [
|
|
2288
2287
|
H("div", ya, [
|
|
2289
2288
|
B(S, {
|
|
2290
2289
|
modelValue: u.search,
|
|
2291
2290
|
"onUpdate:modelValue": [
|
|
2292
2291
|
(Y) => u.search = Y,
|
|
2293
|
-
(Y) =>
|
|
2292
|
+
(Y) => s(w)(u.filter, m.value, "search", Y)
|
|
2294
2293
|
],
|
|
2295
2294
|
type: "text",
|
|
2296
2295
|
"prepend-icon": "search",
|
|
@@ -2303,7 +2302,7 @@ const ha = Ht(pa, () => {
|
|
|
2303
2302
|
B(N, {
|
|
2304
2303
|
label: G(u),
|
|
2305
2304
|
"has-checkbox": !0,
|
|
2306
|
-
"model-value":
|
|
2305
|
+
"model-value": se(u),
|
|
2307
2306
|
indeterminate: !0,
|
|
2308
2307
|
onClick: (Y) => ke(u)
|
|
2309
2308
|
}, null, 8, ["label", "model-value", "onClick"]),
|
|
@@ -2316,10 +2315,10 @@ const ha = Ht(pa, () => {
|
|
|
2316
2315
|
"hide-arrow": !0,
|
|
2317
2316
|
"z-index": 2e3
|
|
2318
2317
|
}, {
|
|
2319
|
-
content:
|
|
2318
|
+
content: oe(() => [
|
|
2320
2319
|
ht(Te(Y.label), 1)
|
|
2321
2320
|
]),
|
|
2322
|
-
default:
|
|
2321
|
+
default: oe(() => [
|
|
2323
2322
|
H("div", xa, [
|
|
2324
2323
|
B(N, {
|
|
2325
2324
|
label: Se(Y.label, 110),
|
|
@@ -2346,7 +2345,7 @@ const ha = Ht(pa, () => {
|
|
|
2346
2345
|
ve.value[X].length < u.options.length && !u.search ? ($(), re(N, {
|
|
2347
2346
|
key: 0,
|
|
2348
2347
|
class: "fm-typo-en-body-md-400 -ml-2",
|
|
2349
|
-
label:
|
|
2348
|
+
label: s(a)("report.section.filter.loadMore"),
|
|
2350
2349
|
onClick: ct((Y) => _e(u), ["stop"]),
|
|
2351
2350
|
icon: "autorenew"
|
|
2352
2351
|
}, null, 8, ["label", "onClick"])) : Fe("", !0)
|
|
@@ -2361,7 +2360,7 @@ const ha = Ht(pa, () => {
|
|
|
2361
2360
|
size: "md",
|
|
2362
2361
|
class: ""
|
|
2363
2362
|
}, null, 8, ["name"]),
|
|
2364
|
-
H("span", Ca, Te(
|
|
2363
|
+
H("span", Ca, Te(s(a)("report.section.filter.advanced")), 1)
|
|
2365
2364
|
], 8, Sa),
|
|
2366
2365
|
B(me),
|
|
2367
2366
|
u.showAdvanced ? ($(), te("div", ka, [
|
|
@@ -2378,16 +2377,16 @@ const ha = Ht(pa, () => {
|
|
|
2378
2377
|
u.keepSelection ? "text-fm-color-primary" : "text-fm-color-neutral-gray-400"
|
|
2379
2378
|
)
|
|
2380
2379
|
}, null, 8, ["name", "class"]),
|
|
2381
|
-
H("span", La, Te(
|
|
2380
|
+
H("span", La, Te(s(a)("report.section.filter.keepSelection")), 1)
|
|
2382
2381
|
], 8, Fa),
|
|
2383
2382
|
B(le, {
|
|
2384
2383
|
placement: "top",
|
|
2385
2384
|
"z-index": 2e3
|
|
2386
2385
|
}, {
|
|
2387
|
-
content:
|
|
2388
|
-
H("div", Da, Te(
|
|
2386
|
+
content: oe(() => [
|
|
2387
|
+
H("div", Da, Te(s(a)("report.section.filter.keepSelectionTooltip")), 1)
|
|
2389
2388
|
]),
|
|
2390
|
-
default:
|
|
2389
|
+
default: oe(() => [
|
|
2391
2390
|
B(de, {
|
|
2392
2391
|
name: "info",
|
|
2393
2392
|
size: "md",
|
|
@@ -2402,16 +2401,16 @@ const ha = Ht(pa, () => {
|
|
|
2402
2401
|
H("div", Ra, [
|
|
2403
2402
|
B(J, {
|
|
2404
2403
|
variant: "tertiary",
|
|
2405
|
-
label:
|
|
2406
|
-
onClick: f[0] || (f[0] = ct((Y) =>
|
|
2404
|
+
label: s(a)("report.common.cancel"),
|
|
2405
|
+
onClick: f[0] || (f[0] = ct((Y) => s(v)(), ["stop"]))
|
|
2407
2406
|
}, null, 8, ["label"]),
|
|
2408
2407
|
B(J, {
|
|
2409
2408
|
color: "primary",
|
|
2410
2409
|
onClick: ct((Y) => M(u), ["stop"]),
|
|
2411
|
-
label:
|
|
2410
|
+
label: s(a)("report.common.apply")
|
|
2412
2411
|
}, null, 8, ["onClick", "label"])
|
|
2413
2412
|
])
|
|
2414
|
-
], 64)) :
|
|
2413
|
+
], 64)) : s(D) ? Fe("", !0) : ($(), re(ft, { key: 2 }))
|
|
2415
2414
|
], 4)
|
|
2416
2415
|
]),
|
|
2417
2416
|
_: 2
|
|
@@ -2427,12 +2426,12 @@ export {
|
|
|
2427
2426
|
He as I,
|
|
2428
2427
|
yt as L,
|
|
2429
2428
|
Pe as R,
|
|
2430
|
-
|
|
2431
|
-
|
|
2429
|
+
Pa as _,
|
|
2430
|
+
qa as a,
|
|
2432
2431
|
gt as b,
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2432
|
+
Oa as c,
|
|
2433
|
+
Ha as d,
|
|
2434
|
+
Ba as e,
|
|
2436
2435
|
mt as g,
|
|
2437
2436
|
Nt as u
|
|
2438
2437
|
};
|