@feedmepos/mf-report 5.19.29 → 5.19.30-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-BVNkyQmT.js → App-XEjh_Xrl.js} +31 -31
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-DlnwoJDz.js → BaseDialog.vue_vue_type_script_setup_true_lang-CYBD2WwJ.js} +4 -4
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-cfshXMB2.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BeBr4VIF.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-DQTwfMwg.js → Default.vue_vue_type_script_setup_true_lang-BLpaR5va.js} +2 -2
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-vW1omSCR.js → FilterSelector.vue_vue_type_script_setup_true_lang-C1KHdQQJ.js} +70 -70
- package/dist/{InsightView-BBSyP485.js → InsightView-CZ9UrUHm.js} +5 -5
- package/dist/{Integration-D93eQCHy.js → Integration-Czc6q14E.js} +2 -2
- package/dist/{Integrations-jn20KmcD.js → Integrations-DIXSWGS_.js} +3 -3
- package/dist/{Layout-BEhF-CWz.js → Layout-DmQngDnf.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-jWupvynu.js → MenuTab.vue_vue_type_script_setup_true_lang-DAXaI1gI.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BsEyUPY0.js → NavigationTab.vue_vue_type_script_setup_true_lang-DQwgX6st.js} +4 -4
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-BUoYdn5S.js → NoData.vue_vue_type_script_setup_true_lang-CtN7oqXx.js} +1 -1
- package/dist/{OverviewView-DfOu_bSg.js → OverviewView-CNCOg7uB.js} +5 -5
- package/dist/{Report-C9HlWJ43.js → Report-Bii8vfvw.js} +4 -4
- package/dist/{ReportEditor-DP6HxDAG.js → ReportEditor-CwN1k2Cb.js} +6 -6
- package/dist/{ReportView-2Ir0qxby.js → ReportView-D_beb2er.js} +7 -7
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-B2oCOTUH.js → SelectComponent.vue_vue_type_script_setup_true_lang-BcQEW5MO.js} +1 -1
- package/dist/{Setting-B7x3IYVZ.js → Setting-Cn7ZHArF.js} +4 -4
- package/dist/{TileEditor-Dnznq-BX.js → TileEditor-BP3HHjvK.js} +989 -989
- package/dist/{TransitionFade-D826EPGl.js → TransitionFade-B2Bg3oRF.js} +5 -5
- package/dist/app.js +11 -11
- package/dist/assets/{formatChartData.worker-BoGBMLoY.js → formatChartData.worker-BQkqrr7j.js} +1 -1
- package/dist/assets/{processTableData.worker-D8SrEWGB.js → processTableData.worker-DFxLNXJc.js} +1 -1
- package/dist/{vue-i18n-BQN8HgvD.js → vue-i18n-BJW_sJot.js} +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { computed as C, defineComponent as Ee, mergeModels as Ue, useModel as Oe, ref as p, onMounted as Ke, 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 Je, 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 st, v as ut, g as ka, h as Ft, i as Kt, q as Zt, R as tt, 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 at, i as La } from "./vue-i18n-
|
|
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-
|
|
2
|
+
import { W as M, e as dt, f as Ca, S as st, v as ut, g as ka, h as Ft, i as Kt, q as Zt, R as tt, 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-CYBD2WwJ.js";
|
|
3
|
+
import { u as mt, b as ct, a as It, d as at, i as La } from "./vue-i18n-BJW_sJot.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-BeBr4VIF.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-
|
|
8
|
-
import { r as
|
|
9
|
-
import { _ as Vt } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { a as Ea } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BcQEW5MO.js";
|
|
8
|
+
import { r as Ge } from "./i18n-DQxDgiLO.js";
|
|
9
|
+
import { _ as Vt } from "./NoData.vue_vue_type_script_setup_true_lang-CtN7oqXx.js";
|
|
10
10
|
import "@feedmepos/mf-common";
|
|
11
|
-
var zt = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(zt || {}),
|
|
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
|
{
|
|
@@ -94,7 +94,7 @@ function Na(e, l) {
|
|
|
94
94
|
return !0;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
const
|
|
97
|
+
const jt = [
|
|
98
98
|
"54, 162, 235",
|
|
99
99
|
//8CE6D7
|
|
100
100
|
"0, 123, 167",
|
|
@@ -122,7 +122,7 @@ function Be({
|
|
|
122
122
|
opacity: i
|
|
123
123
|
}) {
|
|
124
124
|
let a = typeof i == "number" ? i : 1;
|
|
125
|
-
return l && (a = a * 0.6), `rgba(${
|
|
125
|
+
return l && (a = a * 0.6), `rgba(${jt[e % jt.length]}, ${a})`;
|
|
126
126
|
}
|
|
127
127
|
function ta(e, l, i) {
|
|
128
128
|
if (e === "" || l === "")
|
|
@@ -538,12 +538,12 @@ const Wa = /* @__PURE__ */ Ee({
|
|
|
538
538
|
]);
|
|
539
539
|
};
|
|
540
540
|
}
|
|
541
|
-
}),
|
|
542
|
-
function
|
|
541
|
+
}), ja = {};
|
|
542
|
+
function Ga(e, l) {
|
|
543
543
|
const i = q("FmMenuDivider");
|
|
544
544
|
return E(), ie(i);
|
|
545
545
|
}
|
|
546
|
-
const Xa = /* @__PURE__ */ Ea(
|
|
546
|
+
const Xa = /* @__PURE__ */ Ea(ja, [["render", Ga]]), Ja = "mf-reporttable-dimension", Gt = Qt(Ja, () => {
|
|
547
547
|
const e = p(0), l = p([]), i = p(!1), a = (h, n) => {
|
|
548
548
|
e.value = h, x(h, n);
|
|
549
549
|
}, w = (h, n, k, F) => {
|
|
@@ -551,16 +551,16 @@ const Xa = /* @__PURE__ */ Ea(Ga, [["render", ja]]), Ja = "mf-reporttable-dimens
|
|
|
551
551
|
}, x = (h, n) => {
|
|
552
552
|
const k = (n == null ? void 0 : n.querySelectorAll("thead tr")) ?? [], F = (n == null ? void 0 : n.querySelectorAll("tbody tr")) ?? [];
|
|
553
553
|
[...k, ...F].forEach((B) => {
|
|
554
|
-
const
|
|
555
|
-
|
|
554
|
+
const G = B;
|
|
555
|
+
G && (G.style.height = `${h}px`);
|
|
556
556
|
});
|
|
557
557
|
}, R = (h, n, k, F = !1) => {
|
|
558
558
|
const A = (k == null ? void 0 : k.querySelectorAll("th")) ?? [];
|
|
559
559
|
if (h === void 0) return;
|
|
560
|
-
const B = A[h],
|
|
561
|
-
if (!B ||
|
|
560
|
+
const B = A[h], G = F ? l[h] : n;
|
|
561
|
+
if (!B || G === void 0) return;
|
|
562
562
|
const X = () => {
|
|
563
|
-
B.style.width = `${
|
|
563
|
+
B.style.width = `${G}px`;
|
|
564
564
|
};
|
|
565
565
|
F ? requestAnimationFrame(X) : X();
|
|
566
566
|
}, L = () => {
|
|
@@ -594,12 +594,12 @@ const Xa = /* @__PURE__ */ Ea(Ga, [["render", ja]]), 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, A = h.target.closest("table"), B = A == null ? void 0 : A.querySelectorAll("th")[n],
|
|
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;
|
|
601
601
|
_e.font = De;
|
|
602
|
-
const b = _e.measureText(ve), $ = window.getComputedStyle(B),
|
|
602
|
+
const b = _e.measureText(ve), $ = window.getComputedStyle(B), j = parseFloat($.paddingLeft || "0"), W = parseFloat($.paddingRight || "0"), H = b.width + j + W;
|
|
603
603
|
m(n, !1);
|
|
604
604
|
const N = (Te) => {
|
|
605
605
|
const ge = Te.clientX - F, Se = Math.max(H, X + ge);
|
|
@@ -626,8 +626,8 @@ const Xa = /* @__PURE__ */ Ea(Ga, [["render", ja]]), 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
|
u(!1);
|
|
629
|
-
const A = (
|
|
630
|
-
const X = Math.max(30, F + (
|
|
629
|
+
const A = (G) => {
|
|
630
|
+
const X = Math.max(30, F + (G.clientY - n));
|
|
631
631
|
k && a(X, k);
|
|
632
632
|
}, B = () => {
|
|
633
633
|
c(!1), document.removeEventListener("mousemove", A), document.removeEventListener("mouseup", B);
|
|
@@ -654,17 +654,17 @@ const Xa = /* @__PURE__ */ Ea(Ga, [["render", ja]]), 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 A = (B,
|
|
657
|
+
const A = (B, G) => {
|
|
658
658
|
const X = document.createElement("div");
|
|
659
|
-
return X.className = `${B}-resize-handle`, B === "col" ? (X.addEventListener("mouseenter", () => m(
|
|
660
|
-
le.stopPropagation(), y(le,
|
|
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
|
+
le.stopPropagation(), y(le, G);
|
|
661
661
|
})) : (X.addEventListener("mouseenter", () => u(!0)), X.addEventListener("mouseleave", () => c(!0)), X.addEventListener("mousedown", (le) => {
|
|
662
662
|
le.stopPropagation(), T(le);
|
|
663
663
|
})), X;
|
|
664
664
|
};
|
|
665
665
|
F.forEach((B) => {
|
|
666
|
-
const
|
|
667
|
-
B.querySelectorAll(
|
|
666
|
+
const G = B.closest("thead") !== null;
|
|
667
|
+
B.querySelectorAll(G ? "th" : "td").forEach((le, ve) => {
|
|
668
668
|
const we = A("col", ve), De = A("row", ve);
|
|
669
669
|
le.appendChild(we), le.appendChild(De);
|
|
670
670
|
});
|
|
@@ -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-DFxLNXJc.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-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
696
696
|
}),
|
|
697
697
|
emits: ["update:modelValue"],
|
|
698
698
|
setup(e) {
|
|
699
|
-
const { t: l, te: i } = mt(), a = Oe(e, "modelValue"), { country: w } = It(), { clearTileSorts: x, setTileSorts: R } = Ca(), L = Wt(), z = e, d = p([]), { isEditing: m, colWidths: u, rowHeight: c } = $e(
|
|
699
|
+
const { t: l, te: i } = mt(), a = Oe(e, "modelValue"), { country: w } = It(), { clearTileSorts: x, setTileSorts: R } = Ca(), L = Wt(), z = e, d = p([]), { isEditing: m, colWidths: u, 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(() => {
|
|
@@ -705,19 +705,19 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
705
705
|
}), n = C(() => a.value.filterText), k = C(() => {
|
|
706
706
|
var b, $;
|
|
707
707
|
if (!(n.value && n.value.trim().length > 0 || !((b = h.value[0]) != null && b.isRollup) && !(($ = h.value[h.value.length - 1]) != null && $.isRollup))) {
|
|
708
|
-
if (a.value.rollupPosition ===
|
|
709
|
-
return
|
|
710
|
-
if (a.value.rollupPosition ===
|
|
711
|
-
return
|
|
708
|
+
if (a.value.rollupPosition === je.top || a.value.rollupPosition === void 0)
|
|
709
|
+
return je.top;
|
|
710
|
+
if (a.value.rollupPosition === je.bottom)
|
|
711
|
+
return je.bottom;
|
|
712
712
|
}
|
|
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
|
-
var $,
|
|
717
|
+
var $, j;
|
|
718
718
|
let b = [];
|
|
719
719
|
switch (k.value) {
|
|
720
|
-
case
|
|
720
|
+
case je.top:
|
|
721
721
|
b = [...(($ = h.value[0]) == null ? void 0 : $.cells) || []].map((W, H) => {
|
|
722
722
|
var N;
|
|
723
723
|
return {
|
|
@@ -727,8 +727,8 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
727
727
|
};
|
|
728
728
|
});
|
|
729
729
|
break;
|
|
730
|
-
case
|
|
731
|
-
b = [...((
|
|
730
|
+
case je.bottom:
|
|
731
|
+
b = [...((j = h.value[h.value.length - 1]) == null ? void 0 : j.cells) || []].map((W, H) => {
|
|
732
732
|
var N;
|
|
733
733
|
return {
|
|
734
734
|
main: W,
|
|
@@ -738,7 +738,7 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
738
738
|
});
|
|
739
739
|
break;
|
|
740
740
|
}
|
|
741
|
-
return b.length > 0 && b[0].main === "" && (b[0].main =
|
|
741
|
+
return b.length > 0 && b[0].main === "" && (b[0].main = Ge(l, i, "Grand Total", "other")), b;
|
|
742
742
|
});
|
|
743
743
|
function B(b) {
|
|
744
744
|
let $ = (b == null ? void 0 : b.main) || "";
|
|
@@ -753,25 +753,25 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
753
753
|
Ke(() => {
|
|
754
754
|
x();
|
|
755
755
|
});
|
|
756
|
-
const
|
|
756
|
+
const G = p([]);
|
|
757
757
|
let X = 0, le;
|
|
758
758
|
function ve() {
|
|
759
759
|
var H;
|
|
760
760
|
if (!((H = a.value) != null && H.data)) {
|
|
761
|
-
|
|
761
|
+
G.value = [];
|
|
762
762
|
return;
|
|
763
763
|
}
|
|
764
764
|
const b = ++X, $ = (a.value.data.rows || []).map((N) => ({
|
|
765
765
|
isRollup: N.isRollup,
|
|
766
766
|
cells: Array.isArray(N.cells) ? [...N.cells] : [],
|
|
767
767
|
comparisonCells: Array.isArray(N.comparisonCells) ? [...N.comparisonCells] : []
|
|
768
|
-
})),
|
|
768
|
+
})), j = (a.value.data.columns || []).map((N) => ({
|
|
769
769
|
key: N.key,
|
|
770
770
|
type: N.type,
|
|
771
771
|
label: N.label
|
|
772
772
|
})), W = {
|
|
773
773
|
rows: $,
|
|
774
|
-
columns:
|
|
774
|
+
columns: j,
|
|
775
775
|
filter: n.value ?? "",
|
|
776
776
|
globalSorts: va(d.value).map((N) => ({
|
|
777
777
|
key: N.key,
|
|
@@ -781,7 +781,7 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
781
781
|
pageSize: F.value
|
|
782
782
|
};
|
|
783
783
|
ka(Ka, W).then((N) => {
|
|
784
|
-
b === X && (N != null && N.error ? (L.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(N.error),
|
|
784
|
+
b === X && (N != null && N.error ? (L.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(N.error), G.value = []) : G.value = ga(N.data || []));
|
|
785
785
|
});
|
|
786
786
|
}
|
|
787
787
|
fe(
|
|
@@ -792,8 +792,8 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
792
792
|
{ immediate: !0, deep: !0 }
|
|
793
793
|
);
|
|
794
794
|
const we = C(() => {
|
|
795
|
-
var
|
|
796
|
-
const b = ((
|
|
795
|
+
var j, W;
|
|
796
|
+
const b = ((j = a.value.data) == null ? void 0 : j.rows) || [], $ = ((W = a.value.data) == null ? void 0 : W.columns) || [];
|
|
797
797
|
return JSON.stringify({
|
|
798
798
|
rowsLength: b.length,
|
|
799
799
|
columns: $.map((H) => ({ key: H.key, type: H.type, label: H.label })),
|
|
@@ -811,12 +811,12 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
811
811
|
{ immediate: !0 }
|
|
812
812
|
);
|
|
813
813
|
function De(b) {
|
|
814
|
-
const $ = d.value.find((
|
|
814
|
+
const $ = d.value.find((j) => j.key === b);
|
|
815
815
|
if (!$) {
|
|
816
816
|
d.value.push({ key: b, type: st.Asc });
|
|
817
817
|
return;
|
|
818
818
|
}
|
|
819
|
-
$.type === st.Asc ? $.type = st.Desc : $.type === st.Desc && (d.value = d.value.filter((
|
|
819
|
+
$.type === st.Asc ? $.type = st.Desc : $.type === st.Desc && (d.value = d.value.filter((j) => j.key !== b));
|
|
820
820
|
}
|
|
821
821
|
const Le = C(
|
|
822
822
|
() => {
|
|
@@ -826,7 +826,7 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
826
826
|
), _e = C(() => {
|
|
827
827
|
var b;
|
|
828
828
|
return (b = a.value.data) != null && b.columns ? a.value.data.columns.map(($) => {
|
|
829
|
-
const
|
|
829
|
+
const j = Ge(l, i, $.label, "other"), W = d.value.find((ue) => ue.key === $.key), H = !!W, N = H ? W.type === st.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
|
|
830
830
|
return {
|
|
831
831
|
accessorKey: $.key,
|
|
832
832
|
header: () => {
|
|
@@ -842,7 +842,7 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
842
842
|
xt(
|
|
843
843
|
"span",
|
|
844
844
|
{ class: `${$.type === "NUMERIC" ? "text-right" : ""} whitespace-nowrap` },
|
|
845
|
-
|
|
845
|
+
j
|
|
846
846
|
),
|
|
847
847
|
xt(ue, {
|
|
848
848
|
name: N,
|
|
@@ -888,23 +888,23 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
888
888
|
const $ = b.querySelector("table");
|
|
889
889
|
if (!$) return;
|
|
890
890
|
$.classList.add(Le.value ? "table-fixed" : "table-auto");
|
|
891
|
-
let
|
|
892
|
-
m.value ? (T(),
|
|
891
|
+
let j, W;
|
|
892
|
+
m.value ? (T(), j = u.value, W = c.value) : (W = a.value.rowHeight, j = a.value.colWidths), typeof W == "number" && y(W, b), j == null || j.forEach((N, ue) => {
|
|
893
893
|
S(ue, N, b);
|
|
894
894
|
});
|
|
895
895
|
},
|
|
896
896
|
{ immediate: !0 }
|
|
897
897
|
), (b, $) => {
|
|
898
|
-
const
|
|
898
|
+
const j = q("FmTable");
|
|
899
899
|
return E(), ee(Ce, null, [
|
|
900
900
|
U("div", Za, [
|
|
901
901
|
Ye(b.$slots, "menu")
|
|
902
902
|
]),
|
|
903
|
-
O(
|
|
903
|
+
O(j, {
|
|
904
904
|
ref_key: "table",
|
|
905
905
|
ref: v,
|
|
906
906
|
"column-defs": _e.value,
|
|
907
|
-
"row-data":
|
|
907
|
+
"row-data": G.value,
|
|
908
908
|
"search-value": n.value,
|
|
909
909
|
"page-size": F.value,
|
|
910
910
|
"shrink-at": !1,
|
|
@@ -1310,7 +1310,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1310
1310
|
return -1;
|
|
1311
1311
|
}), c = C(() => u.value !== 0), S = C(
|
|
1312
1312
|
() => u.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), A = p(a.labelAlign ?? $t.center), B = p(a.labelAnchor ?? At.center),
|
|
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]
|
|
@@ -1382,7 +1382,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1382
1382
|
showLabel: F.value,
|
|
1383
1383
|
labelAnchor: B.value,
|
|
1384
1384
|
labelAlign: A.value,
|
|
1385
|
-
labelRotation:
|
|
1385
|
+
labelRotation: G.value,
|
|
1386
1386
|
labelOffset: X.value,
|
|
1387
1387
|
labelFontSize: le.value,
|
|
1388
1388
|
showX: we.value,
|
|
@@ -1391,7 +1391,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1391
1391
|
showXTick: _e.value,
|
|
1392
1392
|
xTickFontSize: b.value,
|
|
1393
1393
|
showXTitle: $.value,
|
|
1394
|
-
xTitle:
|
|
1394
|
+
xTitle: j.value,
|
|
1395
1395
|
xTitleFontSize: W.value,
|
|
1396
1396
|
showY: H.value,
|
|
1397
1397
|
yPosition: N.value,
|
|
@@ -1438,10 +1438,10 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1438
1438
|
return Z.sort(
|
|
1439
1439
|
(Ie, it) => (r.rowIds || []).indexOf(Dt(Ie)) - (r.rowIds || []).indexOf(Dt(it))
|
|
1440
1440
|
), [
|
|
1441
|
-
{ label:
|
|
1442
|
-
{ label:
|
|
1441
|
+
{ label: Ge(w, x, "None", "other"), value: "none" },
|
|
1442
|
+
{ label: Ge(w, x, "Grand Total", "other"), value: 0 },
|
|
1443
1443
|
...[...Z].slice(0, Z.length - 1).map((Ie, it) => ({
|
|
1444
|
-
label:
|
|
1444
|
+
label: Ge(w, x, Ie.label, "other"),
|
|
1445
1445
|
value: it + 1
|
|
1446
1446
|
}))
|
|
1447
1447
|
];
|
|
@@ -1450,7 +1450,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1450
1450
|
}), xe = C(() => {
|
|
1451
1451
|
const { config: r } = oe.value;
|
|
1452
1452
|
return r.isDrillable ? r.dimensions.map((Z) => ({
|
|
1453
|
-
label:
|
|
1453
|
+
label: Ge(w, x, Z.label, "other"),
|
|
1454
1454
|
value: Dt(Z)
|
|
1455
1455
|
})) : [];
|
|
1456
1456
|
}), wt = C(() => {
|
|
@@ -1462,7 +1462,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1462
1462
|
fe(
|
|
1463
1463
|
() => i.value.widget.config,
|
|
1464
1464
|
(r) => {
|
|
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,
|
|
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
1468
|
), fe([() => z.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
|
-
}, ze(s(
|
|
1596
|
+
}, ze(s(Ge)(s(w), s(x), oe.value.title, "other")), 7)) : Ae("", !0)
|
|
1597
1597
|
]),
|
|
1598
1598
|
_: 1
|
|
1599
1599
|
}, 8, ["content", "disabled"]),
|
|
@@ -1926,7 +1926,7 @@ const Jt = Qt(fl, () => {
|
|
|
1926
1926
|
var t;
|
|
1927
1927
|
return ((t = a.value) == null ? void 0 : t.id) ?? "";
|
|
1928
1928
|
}), B = p([]);
|
|
1929
|
-
function
|
|
1929
|
+
function G(t) {
|
|
1930
1930
|
const g = I(t.filter).selectedValues;
|
|
1931
1931
|
t.selectedValues = t.keepSelection ? g : t.options.map((_) => _.value), t.filter.values = [...t.selectedValues], S(t.filter, t.selectedValues);
|
|
1932
1932
|
}
|
|
@@ -2094,7 +2094,7 @@ const Jt = Qt(fl, () => {
|
|
|
2094
2094
|
function $(t) {
|
|
2095
2095
|
t.visibleCount += 50, c(t.filter, 50);
|
|
2096
2096
|
}
|
|
2097
|
-
async function
|
|
2097
|
+
async function j(t) {
|
|
2098
2098
|
var f;
|
|
2099
2099
|
switch (t.type) {
|
|
2100
2100
|
case Pe.String:
|
|
@@ -2120,7 +2120,7 @@ const Jt = Qt(fl, () => {
|
|
|
2120
2120
|
label: String(V),
|
|
2121
2121
|
value: V,
|
|
2122
2122
|
available: t.keepSelection ? Y.has(V) : new Set(Q).has(V)
|
|
2123
|
-
})),
|
|
2123
|
+
})), G(t);
|
|
2124
2124
|
} catch (g) {
|
|
2125
2125
|
if ((g == null ? void 0 : g.code) === "ERR_CANCELED" || (g == null ? void 0 : g.name) === "CanceledError")
|
|
2126
2126
|
return;
|
|
@@ -2131,7 +2131,7 @@ const Jt = Qt(fl, () => {
|
|
|
2131
2131
|
t.options = [
|
|
2132
2132
|
{ label: "Yes", value: !0 },
|
|
2133
2133
|
{ label: "No", value: !1 }
|
|
2134
|
-
],
|
|
2134
|
+
], G(t);
|
|
2135
2135
|
break;
|
|
2136
2136
|
}
|
|
2137
2137
|
case Pe.Timestamp:
|
|
@@ -2139,7 +2139,7 @@ const Jt = Qt(fl, () => {
|
|
|
2139
2139
|
const g = t.filter.option;
|
|
2140
2140
|
t.options = Xt({ dimensionOption: g, t: l }), t.filter.values = t.options.length ? t.options.map((_) => _.value) : ["NULL"];
|
|
2141
2141
|
}
|
|
2142
|
-
|
|
2142
|
+
G(t);
|
|
2143
2143
|
break;
|
|
2144
2144
|
case Pe.Numeric:
|
|
2145
2145
|
break;
|
|
@@ -2151,7 +2151,7 @@ const Jt = Qt(fl, () => {
|
|
|
2151
2151
|
try {
|
|
2152
2152
|
t || (L.value = !0), n.value = !0;
|
|
2153
2153
|
const f = B.value.map(async (g) => {
|
|
2154
|
-
await
|
|
2154
|
+
await j(g);
|
|
2155
2155
|
});
|
|
2156
2156
|
await Promise.all(f);
|
|
2157
2157
|
} finally {
|
|
@@ -2443,7 +2443,7 @@ const Jt = Qt(fl, () => {
|
|
|
2443
2443
|
export {
|
|
2444
2444
|
Xe as I,
|
|
2445
2445
|
$t as L,
|
|
2446
|
-
|
|
2446
|
+
je as R,
|
|
2447
2447
|
Hl as _,
|
|
2448
2448
|
Yl as a,
|
|
2449
2449
|
At as b,
|
|
@@ -2451,5 +2451,5 @@ export {
|
|
|
2451
2451
|
Ul as d,
|
|
2452
2452
|
Ol as e,
|
|
2453
2453
|
Dt as g,
|
|
2454
|
-
|
|
2454
|
+
Gt as u
|
|
2455
2455
|
};
|
|
@@ -2,13 +2,13 @@ var Zo = Object.defineProperty;
|
|
|
2
2
|
var Jo = (i, t, e) => t in i ? Zo(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
3
|
var k = (i, t, e) => Jo(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
import { ref as $t, defineComponent as oe, watch as ri, computed as _t, onMounted as Qo, createElementBlock as U, openBlock as I, createElementVNode as R, renderSlot as Un, toDisplayString as lt, resolveDirective as Xn, createCommentVNode as St, Fragment as Ii, renderList as zi, createBlock as Ht, withDirectives as Ge, resolveDynamicComponent as es, unref as G, withCtx as Yt, createVNode as et, normalizeClass as Ze, resolveComponent as Me, useModel as ta, createTextVNode as ea, isRef as ki, nextTick as ia } from "vue";
|
|
5
|
-
import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { d as Bi, a as Kn, q as qn, F as Gn, u as Zn, h as ys, b as oa } from "./vue-i18n-
|
|
5
|
+
import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-BLpaR5va.js";
|
|
6
|
+
import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BeBr4VIF.js";
|
|
7
|
+
import { d as Bi, a as Kn, q as qn, F as Gn, u as Zn, h as ys, b as oa } from "./vue-i18n-BJW_sJot.js";
|
|
8
8
|
import { storeToRefs as Jn } from "pinia";
|
|
9
9
|
import { components as is, useSnackbar as aa } from "@feedmepos/ui-library";
|
|
10
|
-
import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-CtN7oqXx.js";
|
|
11
|
+
import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DQwgX6st.js";
|
|
12
12
|
import { useCoreStore as ha } from "@feedmepos/mf-common";
|
|
13
13
|
function da({ start: i, end: t }) {
|
|
14
14
|
return `${Bi(t).format("DD MMM")}, ${Bi(t).format("YYYY")}`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as J, mergeModels as Se, useModel as te, computed as q, resolveComponent as A, createElementBlock as I, openBlock as w, createElementVNode as t, createCommentVNode as L, normalizeClass as Ue, Fragment as ke, createBlock as j, withCtx as xe, toDisplayString as C, renderList as De, createVNode as l, unref as d, h as k, normalizeStyle as tt, createTextVNode as ot, ref as z, onUnmounted as Re, watch as Ce, isRef as Te, resolveDynamicComponent as Fe, mergeProps as Qe, onMounted as Ge } from "vue";
|
|
2
2
|
import { useRouter as be, useRoute as at } from "vue-router";
|
|
3
|
-
import { u as oe, I as he, d as Ve, x as lt, A as nt, e as Ae, f as Pe, b as we, B as ve, E as st, o as rt, z as Me, G as je, H as Ke, J as Le, K as ze, L as it, M as dt, N as mt, O as qe, c as Ze, P as pt, Q as ut, R as ct, S as ft, T as gt } from "./vue-i18n-
|
|
3
|
+
import { u as oe, I as he, d as Ve, x as lt, A as nt, e as Ae, f as Pe, b as we, B as ve, E as st, o as rt, z as Me, G as je, H as Ke, J as Le, K as ze, L as it, M as dt, N as mt, O as qe, c as Ze, P as pt, Q as ut, R as ct, S as ft, T as gt } from "./vue-i18n-BJW_sJot.js";
|
|
4
4
|
import { u as Oe } from "./message-dialog-UoMWOnil.js";
|
|
5
5
|
import { useSnackbar as _e } from "@feedmepos/ui-library";
|
|
6
6
|
import { storeToRefs as Ee } from "pinia";
|
|
7
|
-
import { _ as Be } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as Be } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BeBr4VIF.js";
|
|
8
8
|
const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, yt = { class: "w-[100%]" }, xt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, bt = { class: "w-[100%] flex flex-row gap-[4px]" }, wt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, _t = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, ht = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "w-[24px] flex items-center"
|