@feedmepos/mf-report 5.19.15 → 5.19.16-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.
Files changed (26) hide show
  1. package/dist/{App-CgBepc4W.js → App-BUf0sh3j.js} +31 -31
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-D3dOLhm1.js → BaseDialog.vue_vue_type_script_setup_true_lang-BAGI-keW.js} +246 -239
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-C7mhpRK0.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BVi8DNni.js} +2 -2
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-Ces7bvD0.js → Default.vue_vue_type_script_setup_true_lang-B_5MME0B.js} +2 -2
  5. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-DFRkSQUK.js → DynamicWidget.vue_vue_type_script_setup_true_lang--8kvkrNQ.js} +74 -74
  6. package/dist/{InsightView-DsW5vrmr.js → InsightView-3cY8PXA2.js} +5 -5
  7. package/dist/{Integration-D2rqevDl.js → Integration-B58qXrEi.js} +2 -2
  8. package/dist/{Integrations-BGNXoeWI.js → Integrations-D4ju0l38.js} +3 -3
  9. package/dist/{Layout-r5jtimyJ.js → Layout-DmfGacqe.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CVsSWc-R.js → MenuTab.vue_vue_type_script_setup_true_lang-DXjzOZX_.js} +6 -6
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BAwOPmLH.js → NavigationTab.vue_vue_type_script_setup_true_lang-BauHmHEX.js} +5 -5
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-CUuIeYhQ.js → NoData.vue_vue_type_script_setup_true_lang-DX1We5Q0.js} +1 -1
  13. package/dist/{OverviewView-4q3iT_ZG.js → OverviewView-BhfD8tGQ.js} +5 -5
  14. package/dist/{Report-CX_wFGlL.js → Report-DsbRVZwY.js} +4 -4
  15. package/dist/{ReportEditor-CFX2Sy_p.js → ReportEditor-BbKkqKuJ.js} +6 -6
  16. package/dist/{ReportView-B_EfFR1x.js → ReportView-BH3kcjko.js} +7 -7
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-IdXw91_v.js → SelectComponent.vue_vue_type_script_setup_true_lang-DYOjRnAy.js} +1 -1
  18. package/dist/{Setting-CwNJQn0a.js → Setting-DaOPg-cb.js} +4 -4
  19. package/dist/{TileEditor-C7q-tvNh.js → TileEditor-CsgJT3I2.js} +7 -7
  20. package/dist/{TransitionFade-BS7SdKMr.js → TransitionFade-DVfXpQCP.js} +5 -5
  21. package/dist/app.js +11 -11
  22. package/dist/assets/{formatChartData.worker-reYyZ0mM.js → formatChartData.worker-B0yNimSD.js} +6 -6
  23. package/dist/assets/{processTableData.worker-LuS08Ujn.js → processTableData.worker-VJ40ZCSA.js} +6 -6
  24. package/dist/{helper-B2iB0Dbh.js → helper-CLGnwM-X.js} +1 -1
  25. package/dist/{vue-i18n-D33f1SSo.js → vue-i18n-DsnU36hZ.js} +1 -1
  26. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as $, resolveComponent as S, createBlock as v, openBlock as c, withCtx as C, createCommentVNode as h, createElementVNode as x, toDisplayString as N, renderSlot as Y, mergeModels as T, useModel as R, ref as F, watch as V, createElementBlock as j, createVNode as b, unref as m } from "vue";
2
- import { d as n, l as U, t as q, u as _, b as A, T as G, C as L } from "./vue-i18n-D33f1SSo.js";
3
- import { d as k } from "./helper-B2iB0Dbh.js";
2
+ import { d as n, l as U, t as q, u as _, b as A, T as G, C as L } from "./vue-i18n-DsnU36hZ.js";
3
+ import { d as k } from "./helper-CLGnwM-X.js";
4
4
  import { detectLocale as P } from "@feedmepos/mf-common";
5
5
  import { storeToRefs as H } from "pinia";
6
6
  const J = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, K = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, M = /* @__PURE__ */ $({
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as u, computed as f, resolveComponent as p, createElementBlock as s, openBlock as t, normalizeStyle as n, normalizeClass as d, unref as e, createBlock as y, createCommentVNode as _, createVNode as h, createElementVNode as k, toDisplayString as g, renderSlot as x } from "vue";
2
- import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BAwOPmLH.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BauHmHEX.js";
3
3
  import { useBreakpoints as b } from "@feedmepos/ui-library";
4
4
  import { storeToRefs as C } from "pinia";
5
- import { u as q, f as w } from "./vue-i18n-D33f1SSo.js";
5
+ import { u as q, f as w } from "./vue-i18n-DsnU36hZ.js";
6
6
  import { useRoute as B } from "vue-router";
7
7
  const $ = {
8
8
  key: 1,
@@ -1,12 +1,12 @@
1
1
  import { computed as f, defineComponent as se, mergeModels as me, useModel as re, ref as u, onMounted as we, nextTick as J, watch as G, resolveComponent as H, createElementBlock as O, openBlock as W, Fragment as de, renderSlot as xe, createVNode as I, normalizeStyle as he, unref as l, createElementVNode as M, toDisplayString as Ee, withCtx as Y, createBlock as j, createCommentVNode as be, normalizeClass as Me, h as Be, renderList as Ft, toRaw as aa, markRaw as oa, createTextVNode as la, onUnmounted as na, resolveDynamicComponent as sa, withDirectives as ra, vShow as ia } from "vue";
2
- import { W as _, d as Ve, e as ca, S as We, v as Ie, f as ua, g as Je, h as Rt, q as da, R as Fe, i as ha } from "./BaseDialog.vue_vue_type_script_setup_true_lang-D3dOLhm1.js";
3
- import { u as qe, b as Ne, a as nt } from "./vue-i18n-D33f1SSo.js";
4
- import { a as St } from "./helper-B2iB0Dbh.js";
2
+ import { W as _, d as Ve, e as ca, S as We, v as Ie, f as ua, g as Je, h as Rt, q as da, R as Fe, i as ha } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BAGI-keW.js";
3
+ import { u as qe, b as Ne, a as nt } from "./vue-i18n-DsnU36hZ.js";
4
+ import { a as St } from "./helper-CLGnwM-X.js";
5
5
  import { storeToRefs as Le, defineStore as ma } from "pinia";
6
6
  import { useBreakpoints as Lt, useSnackbar as st, components as pa } from "@feedmepos/ui-library";
7
- import { a as fa } from "./SelectComponent.vue_vue_type_script_setup_true_lang-IdXw91_v.js";
7
+ import { a as fa } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DYOjRnAy.js";
8
8
  import { r as Re } from "./i18n-Cif1I9J2.js";
9
- import { _ as kt } from "./NoData.vue_vue_type_script_setup_true_lang-CUuIeYhQ.js";
9
+ import { _ as kt } from "./NoData.vue_vue_type_script_setup_true_lang-DX1We5Q0.js";
10
10
  var Qe = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(Qe || {}), ye = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(ye || {}), et = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(et || {}), tt = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(tt || {}), at = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(at || {}), ot = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(ot || {}), lt = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(lt || {});
11
11
  _.Circular, _.Table, _.BarChart, _.LineChart, _.StackBarChart, _.StackLineChart, _.Scorecard, _.Spacer;
12
12
  const va = [
@@ -72,7 +72,7 @@ const va = [
72
72
  showSearchBar: !1
73
73
  }
74
74
  ];
75
- function Ke(e) {
75
+ function Ze(e) {
76
76
  const n = [e.schemaName, e.name];
77
77
  return "option" in e && e.option && n.push(e.option), "aggregation" in e && e.aggregation && n.push(e.aggregation), n.push(e.label.replace(/[^a-zA-Z0-9]/g, "")), n.join("_").toLowerCase();
78
78
  }
@@ -595,19 +595,19 @@ const La = /* @__PURE__ */ fa(Fa, [["render", Ra]]), za = "mf-reporttable-dimens
595
595
  }, b = (d, o) => {
596
596
  const y = /* @__PURE__ */ new Map(), g = d.clientX, k = d.target.closest("table"), V = k == null ? void 0 : k.querySelectorAll("th")[o], $ = V == null ? void 0 : V.getBoundingClientRect().width, P = y.get(o) ? n[o.toString()] || 60 : (y.set(o, !0), $ || n[o.toString()] || 60), N = V == null ? void 0 : V.querySelector("p");
597
597
  if (!N) return;
598
- const ie = N.textContent || "", Z = window.getComputedStyle(N), ce = `${Z.fontWeight} ${Z.fontSize} ${Z.fontFamily}`, ee = document.createElement("canvas").getContext("2d");
598
+ const ie = N.textContent || "", K = window.getComputedStyle(N), ce = `${K.fontWeight} ${K.fontSize} ${K.fontFamily}`, ee = document.createElement("canvas").getContext("2d");
599
599
  if (!ee) return;
600
600
  ee.font = ce;
601
- const p = ee.measureText(ie), T = window.getComputedStyle(V), E = parseFloat(T.paddingLeft || "0"), D = parseFloat(T.paddingRight || "0"), A = p.width + E + D;
601
+ const p = ee.measureText(ie), T = window.getComputedStyle(V), E = parseFloat(T.paddingLeft || "0"), A = parseFloat(T.paddingRight || "0"), D = p.width + E + A;
602
602
  c(o, !1);
603
603
  const L = (te) => {
604
- const ae = te.clientX - g, Q = Math.max(A, P + ae);
604
+ const ae = te.clientX - g, Q = Math.max(D, P + ae);
605
605
  if (k) {
606
606
  w(o, Q, k, !0);
607
- let K = 0;
607
+ let Z = 0;
608
608
  k.querySelectorAll("th").forEach((fe, ve) => {
609
- K += ve === o ? Q : n[ve] || fe.getBoundingClientRect().width;
610
- }), k.classList.remove("w-full"), k.style.width = `${K}px`;
609
+ Z += ve === o ? Q : n[ve] || fe.getBoundingClientRect().width;
610
+ }), k.classList.remove("w-full"), k.style.width = `${Z}px`;
611
611
  const ue = k == null ? void 0 : k.parentElement;
612
612
  if (ue) {
613
613
  const fe = ue.scrollWidth, ve = ue.scrollLeft;
@@ -616,9 +616,9 @@ const La = /* @__PURE__ */ fa(Fa, [["render", Ra]]), za = "mf-reporttable-dimens
616
616
  }
617
617
  }, U = () => {
618
618
  const te = (k == null ? void 0 : k.querySelectorAll("th")) ?? [], ae = [...n.value];
619
- te.forEach((Q, K) => {
619
+ te.forEach((Q, Z) => {
620
620
  const Ce = Q.getBoundingClientRect().width;
621
- n[K] = Ce, ae[K] = Ce;
621
+ n[Z] = Ce, ae[Z] = Ce;
622
622
  }), n.value = ae, x(!1), document.removeEventListener("mousemove", L), document.removeEventListener("mouseup", U);
623
623
  };
624
624
  document.addEventListener("mousemove", L), document.addEventListener("mouseup", U);
@@ -664,8 +664,8 @@ const La = /* @__PURE__ */ fa(Fa, [["render", Ra]]), za = "mf-reporttable-dimens
664
664
  g.forEach((V) => {
665
665
  const $ = V.closest("thead") !== null;
666
666
  V.querySelectorAll($ ? "th" : "td").forEach((N, ie) => {
667
- const Z = k("col", ie), ce = k("row", ie);
668
- N.appendChild(Z), N.appendChild(ce);
667
+ const K = k("col", ie), ce = k("row", ie);
668
+ N.appendChild(K), N.appendChild(ce);
669
669
  });
670
670
  }), S();
671
671
  },
@@ -674,7 +674,7 @@ const La = /* @__PURE__ */ fa(Fa, [["render", Ra]]), za = "mf-reporttable-dimens
674
674
  }
675
675
  };
676
676
  });
677
- function Ze(e) {
677
+ function Ke(e) {
678
678
  if (e == null || e === "")
679
679
  return "";
680
680
  const n = String(e), m = Number(n);
@@ -682,7 +682,7 @@ function Ze(e) {
682
682
  const [t, w] = n.split("."), R = new Intl.NumberFormat("en-US").format(Number(t));
683
683
  return w !== void 0 ? `${R}.${w}` : R;
684
684
  }
685
- const Da = "/assets/processTableData.worker-LuS08Ujn.js", Aa = { class: "my-4" }, Wa = {
685
+ const Aa = "/assets/processTableData.worker-VJ40ZCSA.js", Da = { class: "my-4" }, Wa = {
686
686
  class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
687
687
  style: { backgroundColor: "#f9f9f9" }
688
688
  }, Ea = { class: "font-bold" }, Va = { class: "text-fm-color-neutral-gray-300" }, Ha = /* @__PURE__ */ se({
@@ -710,29 +710,29 @@ const Da = "/assets/processTableData.worker-LuS08Ujn.js", Aa = { class: "my-4" }
710
710
  return ye.bottom;
711
711
  }
712
712
  }), g = f(() => {
713
- const D = y.value !== void 0 ? 1 : 0, A = (h.value ? h.value.$el.offsetHeight : 0) - 48;
714
- return Math.floor((A - 34.5 - 32) / 48) - D;
713
+ const A = y.value !== void 0 ? 1 : 0, D = (h.value ? h.value.$el.offsetHeight : 0) - 48;
714
+ return Math.floor((D - 34.5 - 32) / 48) - A;
715
715
  }), k = f(() => {
716
716
  var T, E;
717
717
  let p = [];
718
718
  switch (y.value) {
719
719
  case ye.top:
720
- p = [...((T = d.value[0]) == null ? void 0 : T.cells) || []].map((D, A) => {
720
+ p = [...((T = d.value[0]) == null ? void 0 : T.cells) || []].map((A, D) => {
721
721
  var L;
722
722
  return {
723
- main: D,
724
- comparison: (L = d.value[0]) == null ? void 0 : L.comparisonCells[A],
725
- rowType: z.value[A].type
723
+ main: A,
724
+ comparison: (L = d.value[0]) == null ? void 0 : L.comparisonCells[D],
725
+ rowType: z.value[D].type
726
726
  };
727
727
  });
728
728
  break;
729
729
  case ye.bottom:
730
- p = [...((E = d.value[d.value.length - 1]) == null ? void 0 : E.cells) || []].map((D, A) => {
730
+ p = [...((E = d.value[d.value.length - 1]) == null ? void 0 : E.cells) || []].map((A, D) => {
731
731
  var L;
732
732
  return {
733
- main: D,
734
- comparison: (L = d.value[0]) == null ? void 0 : L.comparisonCells[A],
735
- rowType: z.value[A].type
733
+ main: A,
734
+ comparison: (L = d.value[0]) == null ? void 0 : L.comparisonCells[D],
735
+ rowType: z.value[D].type
736
736
  };
737
737
  });
738
738
  break;
@@ -755,8 +755,8 @@ const Da = "/assets/processTableData.worker-LuS08Ujn.js", Aa = { class: "my-4" }
755
755
  const $ = u([]);
756
756
  let P = 0, N;
757
757
  function ie() {
758
- var A;
759
- if (!((A = t.value) != null && A.data)) {
758
+ var D;
759
+ if (!((D = t.value) != null && D.data)) {
760
760
  $.value = [];
761
761
  return;
762
762
  }
@@ -768,7 +768,7 @@ const Da = "/assets/processTableData.worker-LuS08Ujn.js", Aa = { class: "my-4" }
768
768
  key: L.key,
769
769
  type: L.type,
770
770
  label: L.label
771
- })), D = {
771
+ })), A = {
772
772
  rows: T,
773
773
  columns: E,
774
774
  filter: o.value ?? "",
@@ -779,7 +779,7 @@ const Da = "/assets/processTableData.worker-LuS08Ujn.js", Aa = { class: "my-4" }
779
779
  grandTotalPosition: y.value,
780
780
  pageSize: g.value
781
781
  };
782
- ua(Da, D).then((L) => {
782
+ ua(Aa, A).then((L) => {
783
783
  p === P && (L != null && L.error ? (S.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(L.error), $.value = []) : $.value = oa(L.data || []));
784
784
  });
785
785
  }
@@ -790,20 +790,20 @@ const Da = "/assets/processTableData.worker-LuS08Ujn.js", Aa = { class: "my-4" }
790
790
  },
791
791
  { immediate: !0, deep: !0 }
792
792
  );
793
- const Z = f(() => {
794
- var E, D;
795
- const p = ((E = t.value.data) == null ? void 0 : E.rows) || [], T = ((D = t.value.data) == null ? void 0 : D.columns) || [];
793
+ const K = f(() => {
794
+ var E, A;
795
+ const p = ((E = t.value.data) == null ? void 0 : E.rows) || [], T = ((A = t.value.data) == null ? void 0 : A.columns) || [];
796
796
  return JSON.stringify({
797
797
  rowsLength: p.length,
798
- columns: T.map((A) => ({ key: A.key, type: A.type, label: A.label })),
798
+ columns: T.map((D) => ({ key: D.key, type: D.type, label: D.label })),
799
799
  filter: o.value ?? "",
800
- globalSorts: s.value.map((A) => ({ key: A.key, type: A.type })),
800
+ globalSorts: s.value.map((D) => ({ key: D.key, type: D.type })),
801
801
  grandTotalPosition: y.value,
802
802
  pageSize: g.value
803
803
  });
804
804
  });
805
805
  G(
806
- () => Z.value,
806
+ () => K.value,
807
807
  () => {
808
808
  clearTimeout(N), N = setTimeout(ie, 200);
809
809
  },
@@ -825,7 +825,7 @@ const Da = "/assets/processTableData.worker-LuS08Ujn.js", Aa = { class: "my-4" }
825
825
  ), ee = f(() => {
826
826
  var p;
827
827
  return (p = t.value.data) != null && p.columns ? t.value.data.columns.map((T) => {
828
- const E = Re(n, m, T.label, "other"), D = s.value.find((U) => U.key === T.key), A = !!D, L = A ? D.type === We.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
828
+ const E = Re(n, m, T.label, "other"), A = s.value.find((U) => U.key === T.key), D = !!A, L = D ? A.type === We.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
829
829
  return {
830
830
  accessorKey: T.key,
831
831
  header: () => {
@@ -834,7 +834,7 @@ const Da = "/assets/processTableData.worker-LuS08Ujn.js", Aa = { class: "my-4" }
834
834
  "button",
835
835
  {
836
836
  type: "button",
837
- class: `w-full flex items-center gap-1 group/select-header select-none ${T.type === "NUMERIC" ? "justify-end" : "justify-start"} ${A ? "text-fm-color-typo-primary" : "text-fm-color-neutral-gray-400"}`,
837
+ class: `w-full flex items-center gap-1 group/select-header select-none ${T.type === "NUMERIC" ? "justify-end" : "justify-start"} ${D ? "text-fm-color-typo-primary" : "text-fm-color-neutral-gray-400"}`,
838
838
  onClick: () => ce(T.key)
839
839
  },
840
840
  [
@@ -845,7 +845,7 @@ const Da = "/assets/processTableData.worker-LuS08Ujn.js", Aa = { class: "my-4" }
845
845
  ),
846
846
  Be(U, {
847
847
  name: L,
848
- color: A ? "primary" : "neutral-gray-400",
848
+ color: D ? "primary" : "neutral-gray-400",
849
849
  size: "sm",
850
850
  class: "transition-transform",
851
851
  style: L === "arrow_upward" ? "transform: translateY(-1px);" : ""
@@ -854,8 +854,8 @@ const Da = "/assets/processTableData.worker-LuS08Ujn.js", Aa = { class: "my-4" }
854
854
  );
855
855
  },
856
856
  cell: (U) => {
857
- var Q, K;
858
- const te = V(U.getValue()), ae = (K = (Q = U == null ? void 0 : U.row) == null ? void 0 : Q.original) == null ? void 0 : K.isRollup;
857
+ var Q, Z;
858
+ const te = V(U.getValue()), ae = (Z = (Q = U == null ? void 0 : U.row) == null ? void 0 : Q.original) == null ? void 0 : Z.isRollup;
859
859
  return Be(
860
860
  "div",
861
861
  {
@@ -865,7 +865,7 @@ const Da = "/assets/processTableData.worker-LuS08Ujn.js", Aa = { class: "my-4" }
865
865
  pe.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
866
866
  ].join(" ")
867
867
  },
868
- [T.type === "NUMERIC" ? Ze(te.main) : te.main]
868
+ [T.type === "NUMERIC" ? Ke(te.main) : te.main]
869
869
  );
870
870
  },
871
871
  enableSorting: !1
@@ -880,15 +880,15 @@ const Da = "/assets/processTableData.worker-LuS08Ujn.js", Aa = { class: "my-4" }
880
880
  ), G(
881
881
  [() => ee.value],
882
882
  async () => {
883
- var A;
883
+ var D;
884
884
  await J();
885
- const p = (A = h.value) == null ? void 0 : A.$el;
885
+ const p = (D = h.value) == null ? void 0 : D.$el;
886
886
  if (!p) return;
887
887
  const T = p.querySelector("table");
888
888
  if (!T) return;
889
889
  T.classList.add(pe.value ? "table-fixed" : "table-auto");
890
- let E, D;
891
- c.value ? (v(), E = i.value, D = r.value) : (D = t.value.rowHeight, E = t.value.colWidths), typeof D == "number" && b(D, p), E == null || E.forEach((L, U) => {
890
+ let E, A;
891
+ c.value ? (v(), E = i.value, A = r.value) : (A = t.value.rowHeight, E = t.value.colWidths), typeof A == "number" && b(A, p), E == null || E.forEach((L, U) => {
892
892
  x(U, L, p);
893
893
  });
894
894
  },
@@ -896,7 +896,7 @@ const Da = "/assets/processTableData.worker-LuS08Ujn.js", Aa = { class: "my-4" }
896
896
  ), (p, T) => {
897
897
  const E = H("FmTable");
898
898
  return W(), O(de, null, [
899
- M("div", Aa, [
899
+ M("div", Da, [
900
900
  xe(p.$slots, "menu")
901
901
  ]),
902
902
  I(E, {
@@ -913,19 +913,19 @@ const Da = "/assets/processTableData.worker-LuS08Ujn.js", Aa = { class: "my-4" }
913
913
  "pin-top": Y(() => [
914
914
  M("tbody", null, [
915
915
  M("tr", Wa, [
916
- (W(!0), O(de, null, Ft(k.value, (D, A) => (W(), O("td", {
917
- key: `${l(Ie)()}_${A}`,
916
+ (W(!0), O(de, null, Ft(k.value, (A, D) => (W(), O("td", {
917
+ key: `${l(Ie)()}_${D}`,
918
918
  class: "h-[48px] text-fm-color-typo-primary px-16"
919
919
  }, [
920
920
  M("span", {
921
921
  class: Me([
922
922
  "items-center text-fm-color-typo-secondary gap-2",
923
- D.rowType === "NUMERIC" ? "text-right" : "",
923
+ A.rowType === "NUMERIC" ? "text-right" : "",
924
924
  pe.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
925
925
  ])
926
926
  }, [
927
- M("p", Ea, Ee(D.rowType === "NUMERIC" ? l(Ze)(D.main) : D.main), 1),
928
- M("p", Va, Ee(D.comparison ? D.rowType === "NUMERIC" ? `(${l(Ze)(D.comparison)})` : `(${D.comparison})` : ""), 1)
927
+ M("p", Ea, Ee(A.rowType === "NUMERIC" ? l(Ke)(A.main) : A.main), 1),
928
+ M("p", Va, Ee(A.comparison ? A.rowType === "NUMERIC" ? `(${l(Ke)(A.comparison)})` : `(${A.comparison})` : ""), 1)
929
929
  ], 2)
930
930
  ]))), 128))
931
931
  ])
@@ -1309,15 +1309,15 @@ const Na = /* @__PURE__ */ se({
1309
1309
  return -1;
1310
1310
  }), r = f(() => i.value !== 0), x = f(
1311
1311
  () => i.value != ge.value.length - 1
1312
- ), b = u(t.showTitle ?? !0), v = u(t.titleFontSize ?? 14), h = u(t.titleBold ?? !1), z = u(t.titleItalic ?? !1), d = u(t.titleUnderline ?? !1), o = u(t.chartWidth ?? void 0), y = u(t.chartHeight ?? void 0), g = u(t.showLabel ?? !1), k = u(t.labelAlign ?? tt.center), V = u(t.labelAnchor ?? et.center), $ = u(t.labelRotation ?? 0), P = u(t.labelOffset ?? 0), N = u(t.labelFontSize ?? 12), ie = f(() => t.showSearchBar), Z = u(t.showX ?? !0), ce = u(t.xPosition ?? at.bottom), pe = u(t.showXGrid ?? !1), ee = u(t.showXTick ?? !0), p = u(t.xTickFontSize ?? 12), T = u(t.showXTitle ?? !1), E = u(t.xTitle ?? ""), D = u(t.xTitleFontSize ?? 12), A = u(t.showY ?? !0), L = u(t.yPosition ?? ot.left), U = u(t.showYGrid ?? !1), te = u(t.showYTick ?? !0), ae = u(t.yTickFontSize ?? 12), Q = u(t.showYTitle ?? !1), K = u(t.yTitle ?? ""), Ce = u(t.yTitleFontSize ?? 12), ue = u(t.showLegend ?? void 0), fe = u(t.legendPosition ?? lt.top), ve = u(t.usePointStyle ?? !0), Ue = u(t.legendMaxHeight), rt = u(t.legendMaxWidth), it = u(t.rowHeight ?? 0), ct = u(t.colWidths ?? []), Oe = u(!1), Xe = u(""), { breakpoints: Se, getBreakpointsBoundary: De } = Lt(), ut = u(), X = f(
1312
+ ), b = u(t.showTitle ?? !0), v = u(t.titleFontSize ?? 14), h = u(t.titleBold ?? !1), z = u(t.titleItalic ?? !1), d = u(t.titleUnderline ?? !1), o = u(t.chartWidth ?? void 0), y = u(t.chartHeight ?? void 0), g = u(t.showLabel ?? !1), k = u(t.labelAlign ?? tt.center), V = u(t.labelAnchor ?? et.center), $ = u(t.labelRotation ?? 0), P = u(t.labelOffset ?? 0), N = u(t.labelFontSize ?? 12), ie = f(() => t.showSearchBar), K = u(t.showX ?? !0), ce = u(t.xPosition ?? at.bottom), pe = u(t.showXGrid ?? !1), ee = u(t.showXTick ?? !0), p = u(t.xTickFontSize ?? 12), T = u(t.showXTitle ?? !1), E = u(t.xTitle ?? ""), A = u(t.xTitleFontSize ?? 12), D = u(t.showY ?? !0), L = u(t.yPosition ?? ot.left), U = u(t.showYGrid ?? !1), te = u(t.showYTick ?? !0), ae = u(t.yTickFontSize ?? 12), Q = u(t.showYTitle ?? !1), Z = u(t.yTitle ?? ""), Ce = u(t.yTitleFontSize ?? 12), ue = u(t.showLegend ?? void 0), fe = u(t.legendPosition ?? lt.top), ve = u(t.usePointStyle ?? !0), Ue = u(t.legendMaxHeight), rt = u(t.legendMaxWidth), it = u(t.rowHeight ?? 0), ct = u(t.colWidths ?? []), Oe = u(!1), Xe = u(""), { breakpoints: Se, getBreakpointsBoundary: Ae } = Lt(), ut = u(), X = f(
1313
1313
  () => C.customScreenWidth === void 0 ? window.innerWidth : C.customScreenWidth
1314
- ), Dt = f(
1315
- () => (X == null ? void 0 : X.value) > De("xs")[1] && (X == null ? void 0 : X.value) <= De("sm")[1]
1316
1314
  ), At = f(
1317
- () => (X == null ? void 0 : X.value) > De("sm")[1] && (X == null ? void 0 : X.value) <= De("md")[1]
1318
- ), Wt = f(() => (X == null ? void 0 : X.value) > De("md")[1]), Et = f(() => {
1315
+ () => (X == null ? void 0 : X.value) > Ae("xs")[1] && (X == null ? void 0 : X.value) <= Ae("sm")[1]
1316
+ ), Dt = f(
1317
+ () => (X == null ? void 0 : X.value) > Ae("sm")[1] && (X == null ? void 0 : X.value) <= Ae("md")[1]
1318
+ ), Wt = f(() => (X == null ? void 0 : X.value) > Ae("md")[1]), Et = f(() => {
1319
1319
  const a = m.value.size.width;
1320
- return Wt.value || At.value ? Ba(a) : Dt.value ? Ia(a) : Ma(a);
1320
+ return Wt.value || Dt.value ? Ba(a) : At.value ? Ia(a) : Ma(a);
1321
1321
  }), $e = f(
1322
1322
  () => va.find((a) => a.type === m.value.widget.type)
1323
1323
  ), ke = St(() => {
@@ -1384,19 +1384,19 @@ const Na = /* @__PURE__ */ se({
1384
1384
  labelRotation: $.value,
1385
1385
  labelOffset: P.value,
1386
1386
  labelFontSize: N.value,
1387
- showX: Z.value,
1387
+ showX: K.value,
1388
1388
  xPosition: ce.value,
1389
1389
  showXGrid: pe.value,
1390
1390
  showXTick: ee.value,
1391
1391
  xTickFontSize: p.value,
1392
1392
  showXTitle: T.value,
1393
1393
  xTitle: E.value,
1394
- xTitleFontSize: D.value,
1395
- showY: A.value,
1394
+ xTitleFontSize: A.value,
1395
+ showY: D.value,
1396
1396
  yPosition: L.value,
1397
1397
  showYGrid: U.value,
1398
1398
  showYTick: te.value,
1399
- yTitle: K.value,
1399
+ yTitle: Z.value,
1400
1400
  showYTitle: Q.value,
1401
1401
  yTitleFontSize: Ce.value,
1402
1402
  yTickFontSize: ae.value,
@@ -1435,13 +1435,13 @@ const Na = /* @__PURE__ */ se({
1435
1435
  if (a.rollup != null) {
1436
1436
  const B = [...a.dimensions].filter((oe) => !oe.hide);
1437
1437
  return B.sort(
1438
- (oe, Ae) => (a.rowIds || []).indexOf(Ke(oe)) - (a.rowIds || []).indexOf(Ke(Ae))
1438
+ (oe, De) => (a.rowIds || []).indexOf(Ze(oe)) - (a.rowIds || []).indexOf(Ze(De))
1439
1439
  ), [
1440
1440
  { label: Re(w, R, "None", "other"), value: "none" },
1441
1441
  { label: Re(w, R, "Grand Total", "other"), value: 0 },
1442
- ...[...B].slice(0, B.length - 1).map((oe, Ae) => ({
1442
+ ...[...B].slice(0, B.length - 1).map((oe, De) => ({
1443
1443
  label: Re(w, R, oe.label, "other"),
1444
- value: Ae + 1
1444
+ value: De + 1
1445
1445
  }))
1446
1446
  ];
1447
1447
  }
@@ -1450,13 +1450,13 @@ const Na = /* @__PURE__ */ se({
1450
1450
  const { config: a } = q.value;
1451
1451
  return a.isDrillable ? a.dimensions.map((B) => ({
1452
1452
  label: Re(w, R, B.label, "other"),
1453
- value: Ke(B)
1453
+ value: Ze(B)
1454
1454
  })) : [];
1455
1455
  });
1456
1456
  G(
1457
1457
  () => m.value.widget.config,
1458
1458
  (a) => {
1459
- F.value = a.rollup, b.value = a.showTitle ?? !0, v.value = a.titleFontSize ?? 14, h.value = a.titleBold ?? !1, z.value = a.titleItalic ?? !1, d.value = a.titleUnderline ?? !1, y.value = a.chartHeight ?? void 0, o.value = a.chartWidth ?? void 0, g.value = a.showLabel ?? !1, k.value = a.labelAlign ?? tt.center, V.value = a.labelAnchor ?? et.center, $.value = a.labelRotation ?? 0, P.value = a.labelOffset ?? 0, N.value = a.labelFontSize ?? 12, Z.value = a.showX ?? !0, ce.value = a.xPosition ?? at.bottom, pe.value = a.showXGrid ?? !1, ee.value = a.showXTick ?? !0, p.value = a.xTickFontSize ?? 12, T.value = a.showXTitle ?? !1, E.value = a.xTitle ?? "", D.value = a.xTitleFontSize ?? 12, A.value = a.showY ?? !0, L.value = a.yPosition ?? ot.left, U.value = a.showYGrid ?? !1, te.value = a.showYTick ?? !0, ae.value = a.yTickFontSize ?? 12, Q.value = a.showYTitle ?? !1, K.value = a.yTitle ?? "", Ce.value = a.yTitleFontSize ?? 12, ue.value = a.showLegend ?? void 0, fe.value = a.legendPosition ?? lt.top, ve.value = a.usePointStyle ?? !0, Ue.value = a.legendMaxHeight, rt.value = a.legendMaxWidth, it.value = a.rowHeight ?? 0, ct.value = a.colWidths ?? [];
1459
+ F.value = a.rollup, b.value = a.showTitle ?? !0, v.value = a.titleFontSize ?? 14, h.value = a.titleBold ?? !1, z.value = a.titleItalic ?? !1, d.value = a.titleUnderline ?? !1, y.value = a.chartHeight ?? void 0, o.value = a.chartWidth ?? void 0, g.value = a.showLabel ?? !1, k.value = a.labelAlign ?? tt.center, V.value = a.labelAnchor ?? et.center, $.value = a.labelRotation ?? 0, P.value = a.labelOffset ?? 0, N.value = a.labelFontSize ?? 12, K.value = a.showX ?? !0, ce.value = a.xPosition ?? at.bottom, pe.value = a.showXGrid ?? !1, ee.value = a.showXTick ?? !0, p.value = a.xTickFontSize ?? 12, T.value = a.showXTitle ?? !1, E.value = a.xTitle ?? "", A.value = a.xTitleFontSize ?? 12, D.value = a.showY ?? !0, L.value = a.yPosition ?? ot.left, U.value = a.showYGrid ?? !1, te.value = a.showYTick ?? !0, ae.value = a.yTickFontSize ?? 12, Q.value = a.showYTitle ?? !1, Z.value = a.yTitle ?? "", Ce.value = a.yTitleFontSize ?? 12, ue.value = a.showLegend ?? void 0, fe.value = a.legendPosition ?? lt.top, ve.value = a.usePointStyle ?? !0, Ue.value = a.legendMaxHeight, rt.value = a.legendMaxWidth, it.value = a.rowHeight ?? 0, ct.value = a.colWidths ?? [];
1460
1460
  },
1461
1461
  { deep: !0 }
1462
1462
  ), G([() => F.value], () => {
@@ -1538,7 +1538,7 @@ const Na = /* @__PURE__ */ se({
1538
1538
  }
1539
1539
  })), Yt = q.value.type === _.Spacer ? "flat" : "outlined", Gt = q.value.type === _.Spacer ? "p-0" : "p-16";
1540
1540
  return (a, B) => {
1541
- const oe = H("FmTooltip"), Ae = H("FmSearch"), jt = H("FmCheckbox"), je = H("FmButton"), Jt = H("FmSelect"), Kt = H("FmMenuItem"), Zt = H("FmMenu"), Qt = H("FmForm"), ea = H("FmCircularProgress"), ta = H("FmCard");
1541
+ const oe = H("FmTooltip"), De = H("FmSearch"), jt = H("FmCheckbox"), je = H("FmButton"), Jt = H("FmSelect"), Zt = H("FmMenuItem"), Kt = H("FmMenu"), Qt = H("FmForm"), ea = H("FmCircularProgress"), ta = H("FmCard");
1542
1542
  return W(), j(ta, {
1543
1543
  ref_key: "tileCard",
1544
1544
  ref: S,
@@ -1591,7 +1591,7 @@ const Na = /* @__PURE__ */ se({
1591
1591
  ]),
1592
1592
  _: 1
1593
1593
  }, 8, ["content", "disabled"]),
1594
- (_e = $e.value) != null && _e.showSearchBar ? (W(), j(Ae, {
1594
+ (_e = $e.value) != null && _e.showSearchBar ? (W(), j(De, {
1595
1595
  key: 0,
1596
1596
  modelValue: Xe.value,
1597
1597
  "onUpdate:modelValue": B[1] || (B[1] = (le) => Xe.value = le),
@@ -1626,7 +1626,7 @@ const Na = /* @__PURE__ */ se({
1626
1626
  class: "w-[150px]",
1627
1627
  items: ft.value
1628
1628
  }, null, 8, ["modelValue", "items"])) : be("", !0),
1629
- C.hideExport ? be("", !0) : (W(), j(Zt, {
1629
+ C.hideExport ? be("", !0) : (W(), j(Kt, {
1630
1630
  key: 4,
1631
1631
  shift: !0
1632
1632
  }, {
@@ -1637,7 +1637,7 @@ const Na = /* @__PURE__ */ se({
1637
1637
  })
1638
1638
  ]),
1639
1639
  default: Y(() => [
1640
- (W(!0), O(de, null, Ft(l(Xt), (le) => (W(), j(Kt, {
1640
+ (W(!0), O(de, null, Ft(l(Xt), (le) => (W(), j(Zt, {
1641
1641
  key: le.value,
1642
1642
  label: le.label,
1643
1643
  onClick: le.onClick
@@ -1664,6 +1664,6 @@ export {
1664
1664
  ye as R,
1665
1665
  oo as _,
1666
1666
  et as a,
1667
- Ke as g,
1667
+ Ze as g,
1668
1668
  _t as u
1669
1669
  };
@@ -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-Ces7bvD0.js";
6
- import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-C7mhpRK0.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-D33f1SSo.js";
5
+ import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-B_5MME0B.js";
6
+ import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BVi8DNni.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-DsnU36hZ.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-CUuIeYhQ.js";
11
- import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BAwOPmLH.js";
10
+ import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-DX1We5Q0.js";
11
+ import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BauHmHEX.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 Ne, 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 Ie, watch as Ce, isRef as Ke, resolveDynamicComponent as Te, 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, w as lt, z as nt, e as Ae, f as Re, b as we, A as ve, B as st, n as rt, y as Pe, E as Me, G as je, H as Le, J as ze, K as it, L as dt, M as mt, N as qe, c as Ze, O as pt, P as ut, Q as ct, R as ft, S as gt } from "./vue-i18n-D33f1SSo.js";
3
+ import { u as oe, I as he, d as Ve, w as lt, z as nt, e as Ae, f as Re, b as we, A as ve, B as st, n as rt, y as Pe, E as Me, G as je, H as Le, J as ze, K as it, L as dt, M as mt, N as qe, c as Ze, O as pt, P as ut, Q as ct, R as ft, S as gt } from "./vue-i18n-DsnU36hZ.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-C7mhpRK0.js";
7
+ import { _ as Be } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BVi8DNni.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"