@feedmepos/mf-report 5.21.25 → 5.21.26

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.
@@ -99,7 +99,7 @@ const ze = ["src"], Qe = ["src"], et = /* @__PURE__ */ ee({
99
99
  }), Re(() => {
100
100
  g(Fe);
101
101
  }), ae(() => {
102
- console.log("5.21.25", !0), window.addEventListener("message", Q), window.addEventListener("message", j);
102
+ console.log("5.21.26", !0), window.addEventListener("message", Q), window.addEventListener("message", j);
103
103
  });
104
104
  const I = Ne(), V = $e(), n = X();
105
105
  qe(() => {
@@ -603,8 +603,8 @@ const Zl = /* @__PURE__ */ Il(Jl, [["render", Kl]]), Ql = "mf-reporttable-dimens
603
603
  const f = W.textContent || "", D = window.getComputedStyle(W), Y = `${D.fontWeight} ${D.fontSize} ${D.fontFamily}`, I = document.createElement("canvas").getContext("2d");
604
604
  if (I) {
605
605
  I.font = Y;
606
- const H = I.measureText(f), he = window.getComputedStyle(d), _e = parseFloat(he.paddingLeft || "0"), Ae = parseFloat(he.paddingRight || "0");
607
- j = H.width + _e + Ae;
606
+ const O = I.measureText(f), he = window.getComputedStyle(d), _e = parseFloat(he.paddingLeft || "0"), Ae = parseFloat(he.paddingRight || "0");
607
+ j = O.width + _e + Ae;
608
608
  }
609
609
  }
610
610
  y(r, !1);
@@ -614,8 +614,8 @@ const Zl = /* @__PURE__ */ Il(Jl, [["render", Kl]]), Ql = "mf-reporttable-dimens
614
614
  const f = d;
615
615
  f.style.width = `${J}px`;
616
616
  let D = 0;
617
- n.querySelectorAll("th").forEach((O, I) => {
618
- D += I === r ? J : O.getBoundingClientRect().width;
617
+ n.querySelectorAll("th").forEach((H, I) => {
618
+ D += I === r ? J : H.getBoundingClientRect().width;
619
619
  }), n.classList.remove("w-full"), n.style.width = `${D}px`, ue = null;
620
620
  }, ye = (f) => {
621
621
  const D = f.clientX - L;
@@ -716,28 +716,28 @@ const ea = "/assets/processTableData.worker-93fLL2HJ.js", ta = { class: "my-4" }
716
716
  return Be.bottom;
717
717
  }
718
718
  }), n = T(() => {
719
- const O = L.value !== void 0 ? 1 : 0, I = (b.value ? b.value.$el.offsetHeight : 0) - 48;
720
- return Math.floor((I - 34.5 - 32) / 48) - O;
719
+ const H = L.value !== void 0 ? 1 : 0, I = (b.value ? b.value.$el.offsetHeight : 0) - 48;
720
+ return Math.floor((I - 34.5 - 32) / 48) - H;
721
721
  }), d = T(() => {
722
722
  var D, Y;
723
723
  let f = [];
724
724
  switch (L.value) {
725
725
  case Be.top:
726
- f = [...((D = w.value[0]) == null ? void 0 : D.cells) || []].map((O, I) => {
727
- var H;
726
+ f = [...((D = w.value[0]) == null ? void 0 : D.cells) || []].map((H, I) => {
727
+ var O;
728
728
  return {
729
- main: O,
730
- comparison: (H = w.value[0]) == null ? void 0 : H.comparisonCells[I],
729
+ main: H,
730
+ comparison: (O = w.value[0]) == null ? void 0 : O.comparisonCells[I],
731
731
  rowType: U.value[I].type
732
732
  };
733
733
  });
734
734
  break;
735
735
  case Be.bottom:
736
- f = [...((Y = w.value[w.value.length - 1]) == null ? void 0 : Y.cells) || []].map((O, I) => {
737
- var H;
736
+ f = [...((Y = w.value[w.value.length - 1]) == null ? void 0 : Y.cells) || []].map((H, I) => {
737
+ var O;
738
738
  return {
739
- main: O,
740
- comparison: (H = w.value[0]) == null ? void 0 : H.comparisonCells[I],
739
+ main: H,
740
+ comparison: (O = w.value[0]) == null ? void 0 : O.comparisonCells[I],
741
741
  rowType: U.value[I].type
742
742
  };
743
743
  });
@@ -766,27 +766,27 @@ const ea = "/assets/processTableData.worker-93fLL2HJ.js", ta = { class: "my-4" }
766
766
  E.value = [];
767
767
  return;
768
768
  }
769
- const f = ++W, D = (l.value.data.rows || []).map((H) => ({
770
- isRollup: H.isRollup,
771
- cells: Array.isArray(H.cells) ? [...H.cells] : [],
772
- comparisonCells: Array.isArray(H.comparisonCells) ? [...H.comparisonCells] : []
773
- })), Y = (l.value.data.columns || []).map((H) => ({
774
- key: H.key,
775
- type: H.type,
776
- label: H.label
777
- })), O = {
769
+ const f = ++W, D = (l.value.data.rows || []).map((O) => ({
770
+ isRollup: O.isRollup,
771
+ cells: Array.isArray(O.cells) ? [...O.cells] : [],
772
+ comparisonCells: Array.isArray(O.comparisonCells) ? [...O.comparisonCells] : []
773
+ })), Y = (l.value.data.columns || []).map((O) => ({
774
+ key: O.key,
775
+ type: O.type,
776
+ label: O.label
777
+ })), H = {
778
778
  rows: D,
779
779
  columns: Y,
780
780
  filter: r.value ?? "",
781
- globalSorts: xl(m.value).map((H) => ({
782
- key: H.key,
783
- type: H.type
781
+ globalSorts: xl(m.value).map((O) => ({
782
+ key: O.key,
783
+ type: O.type
784
784
  })),
785
785
  grandTotalPosition: L.value,
786
786
  pageSize: n.value
787
787
  };
788
- Fl(ea, O).then((H) => {
789
- f === W && (H != null && H.error ? (F.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(H.error), E.value = []) : E.value = Sl(H.data || []));
788
+ console.log(H), Fl(ea, H).then((O) => {
789
+ f === W && (O != null && O.error ? (F.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(O.error), E.value = []) : E.value = Sl(O.data || []));
790
790
  });
791
791
  }
792
792
  me(
@@ -797,8 +797,8 @@ const ea = "/assets/processTableData.worker-93fLL2HJ.js", ta = { class: "my-4" }
797
797
  { immediate: !0, deep: !0 }
798
798
  );
799
799
  const J = T(() => {
800
- var Y, O;
801
- const f = ((Y = l.value.data) == null ? void 0 : Y.rows) || [], D = ((O = l.value.data) == null ? void 0 : O.columns) || [];
800
+ var Y, H;
801
+ const f = ((Y = l.value.data) == null ? void 0 : Y.rows) || [], D = ((H = l.value.data) == null ? void 0 : H.columns) || [];
802
802
  return JSON.stringify({
803
803
  rowsLength: f.length,
804
804
  columns: D.map((I) => ({ key: I.key, type: I.type, label: I.label })),
@@ -831,7 +831,7 @@ const ea = "/assets/processTableData.worker-93fLL2HJ.js", ta = { class: "my-4" }
831
831
  ), pe = T(() => {
832
832
  var f;
833
833
  return (f = l.value.data) != null && f.columns ? l.value.data.columns.map((D) => {
834
- const Y = Ue(a, o, D.label, "other"), O = m.value.find((he) => he.key === D.key), I = !!O, H = I ? O.type === qe.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
834
+ const Y = Ue(a, o, D.label, "other"), H = m.value.find((he) => he.key === D.key), I = !!H, O = I ? H.type === qe.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
835
835
  return {
836
836
  accessorKey: D.key,
837
837
  header: () => {
@@ -850,11 +850,11 @@ const ea = "/assets/processTableData.worker-93fLL2HJ.js", ta = { class: "my-4" }
850
850
  Y
851
851
  ),
852
852
  rt(he, {
853
- name: H,
853
+ name: O,
854
854
  color: I ? "primary" : "neutral-gray-400",
855
855
  size: "sm",
856
856
  class: "transition-transform",
857
- style: H === "arrow_upward" ? "transform: translateY(-1px);" : ""
857
+ style: O === "arrow_upward" ? "transform: translateY(-1px);" : ""
858
858
  })
859
859
  ]
860
860
  );
@@ -866,7 +866,7 @@ const ea = "/assets/processTableData.worker-93fLL2HJ.js", ta = { class: "my-4" }
866
866
  "div",
867
867
  {
868
868
  class: [
869
- Ae ? "fm-typo-en-body-md-600 text-fm-color-typo-secondary" : "fm-typo-en-body-md-400",
869
+ Ae ? "fm-typo-en-body-md-600 text-fm-color-typo-primary" : "fm-typo-en-body-md-400",
870
870
  D.type === "NUMERIC" ? "text-right" : "",
871
871
  ye.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
872
872
  ].join(" ")
@@ -893,9 +893,9 @@ const ea = "/assets/processTableData.worker-93fLL2HJ.js", ta = { class: "my-4" }
893
893
  const D = f.querySelector("table");
894
894
  if (!D) return;
895
895
  D.classList.add(ye.value ? "table-fixed" : "table-auto");
896
- let Y, O;
897
- y.value ? (S(), Y = h.value, O = u.value) : (O = l.value.rowHeight, Y = l.value.colWidths), typeof O == "number" && x(O, f), Y == null || Y.forEach((H, he) => {
898
- p(he, H, f);
896
+ let Y, H;
897
+ y.value ? (S(), Y = h.value, H = u.value) : (H = l.value.rowHeight, Y = l.value.colWidths), typeof H == "number" && x(H, f), Y == null || Y.forEach((O, he) => {
898
+ p(he, O, f);
899
899
  });
900
900
  },
901
901
  { immediate: !0 }
@@ -920,19 +920,19 @@ const ea = "/assets/processTableData.worker-93fLL2HJ.js", ta = { class: "my-4" }
920
920
  "pin-top": ie(() => [
921
921
  X("tbody", null, [
922
922
  X("tr", la, [
923
- (M(!0), ne(xe, null, ut(d.value, (O, I) => (M(), ne("td", {
923
+ (M(!0), ne(xe, null, ut(d.value, (H, I) => (M(), ne("td", {
924
924
  key: `${s(it)()}_${I}`,
925
925
  class: "h-[48px] text-fm-color-typo-primary px-16"
926
926
  }, [
927
927
  X("span", {
928
928
  class: Ze([
929
929
  "items-center text-fm-color-typo-secondary gap-2",
930
- O.rowType === "NUMERIC" ? "text-right" : "",
930
+ H.rowType === "NUMERIC" ? "text-right" : "",
931
931
  ye.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
932
932
  ])
933
933
  }, [
934
- X("p", aa, De(O.rowType === "NUMERIC" ? s(gt)(O.main) : O.main), 1),
935
- X("p", na, De(O.comparison ? O.rowType === "NUMERIC" ? `(${s(gt)(O.comparison)})` : `(${O.comparison})` : ""), 1)
934
+ X("p", aa, De(H.rowType === "NUMERIC" ? s(gt)(H.main) : H.main), 1),
935
+ X("p", na, De(H.comparison ? H.rowType === "NUMERIC" ? `(${s(gt)(H.comparison)})` : `(${H.comparison})` : ""), 1)
936
936
  ], 2)
937
937
  ]))), 128))
938
938
  ])
@@ -1499,7 +1499,7 @@ const va = {
1499
1499
  return -1;
1500
1500
  }), U = T(() => b.value !== 0), w = T(
1501
1501
  () => b.value != Pe.value.length - 1
1502
- ), r = v(l.showTitle ?? !0), L = v(l.titleFontSize ?? 14), n = v(l.titleBold ?? !1), d = v(l.titleItalic ?? !1), $ = v(l.titleUnderline ?? !1), E = v(l.chartWidth ?? void 0), W = v(l.chartHeight ?? void 0), j = v(l.showLabel ?? !1), ue = v(l.labelAlign ?? Ct.center), J = v(l.labelAnchor ?? St.center), oe = v(l.labelRotation ?? 0), ye = v(l.labelOffset ?? 0), pe = v(l.labelFontSize ?? 12), f = T(() => l.showSearchBar), D = v(l.showX ?? !0), Y = v(l.xPosition ?? kt.bottom), O = v(l.showXGrid ?? !1), I = v(l.showXTick ?? !0), H = v(l.xTickFontSize ?? 12), he = v(l.showXTitle ?? !1), _e = v(l.xTitle ?? ""), Ae = v(l.xTitleFontSize ?? 12), He = v(l.showY ?? !0), Me = v(l.yPosition ?? Tt.left), t = v(l.showYGrid ?? !1), k = v(l.showYTick ?? !0), z = v(l.yTickFontSize ?? 12), V = v(l.showYTitle ?? !1), G = v(l.yTitle ?? ""), re = v(l.yTitleFontSize ?? 12), be = v(l.showLegend ?? void 0), ve = v(l.legendPosition ?? _t.top), le = v(l.usePointStyle ?? !0), N = v(l.legendMaxHeight), P = v(l.legendMaxWidth), C = v(l.rowHeight ?? 0), ae = v(l.colWidths ?? []), K = v(!1), ce = v(""), { breakpoints: ee, getBreakpointsBoundary: Z } = jt(), we = v(), Q = T(
1502
+ ), r = v(l.showTitle ?? !0), L = v(l.titleFontSize ?? 14), n = v(l.titleBold ?? !1), d = v(l.titleItalic ?? !1), $ = v(l.titleUnderline ?? !1), E = v(l.chartWidth ?? void 0), W = v(l.chartHeight ?? void 0), j = v(l.showLabel ?? !1), ue = v(l.labelAlign ?? Ct.center), J = v(l.labelAnchor ?? St.center), oe = v(l.labelRotation ?? 0), ye = v(l.labelOffset ?? 0), pe = v(l.labelFontSize ?? 12), f = T(() => l.showSearchBar), D = v(l.showX ?? !0), Y = v(l.xPosition ?? kt.bottom), H = v(l.showXGrid ?? !1), I = v(l.showXTick ?? !0), O = v(l.xTickFontSize ?? 12), he = v(l.showXTitle ?? !1), _e = v(l.xTitle ?? ""), Ae = v(l.xTitleFontSize ?? 12), He = v(l.showY ?? !0), Me = v(l.yPosition ?? Tt.left), t = v(l.showYGrid ?? !1), k = v(l.showYTick ?? !0), z = v(l.yTickFontSize ?? 12), V = v(l.showYTitle ?? !1), G = v(l.yTitle ?? ""), re = v(l.yTitleFontSize ?? 12), be = v(l.showLegend ?? void 0), ve = v(l.legendPosition ?? _t.top), le = v(l.usePointStyle ?? !0), N = v(l.legendMaxHeight), P = v(l.legendMaxWidth), C = v(l.rowHeight ?? 0), ae = v(l.colWidths ?? []), K = v(!1), ce = v(""), { breakpoints: ee, getBreakpointsBoundary: Z } = jt(), we = v(), Q = T(
1503
1503
  () => F.customScreenWidth === void 0 ? window.innerWidth : F.customScreenWidth
1504
1504
  ), Oe = T(
1505
1505
  () => (Q == null ? void 0 : Q.value) > Z("xs")[1] && (Q == null ? void 0 : Q.value) <= Z("sm")[1]
@@ -1576,9 +1576,9 @@ const va = {
1576
1576
  labelFontSize: pe.value,
1577
1577
  showX: D.value,
1578
1578
  xPosition: Y.value,
1579
- showXGrid: O.value,
1579
+ showXGrid: H.value,
1580
1580
  showXTick: I.value,
1581
- xTickFontSize: H.value,
1581
+ xTickFontSize: O.value,
1582
1582
  showXTitle: he.value,
1583
1583
  xTitle: _e.value,
1584
1584
  xTitleFontSize: Ae.value,
@@ -1651,7 +1651,7 @@ const va = {
1651
1651
  me(
1652
1652
  () => o.value.widget.config,
1653
1653
  (i) => {
1654
- p.value = i.rollup, r.value = i.showTitle ?? !0, L.value = i.titleFontSize ?? 14, n.value = i.titleBold ?? !1, d.value = i.titleItalic ?? !1, $.value = i.titleUnderline ?? !1, W.value = i.chartHeight ?? void 0, E.value = i.chartWidth ?? void 0, j.value = i.showLabel ?? !1, ue.value = i.labelAlign ?? Ct.center, J.value = i.labelAnchor ?? St.center, oe.value = i.labelRotation ?? 0, ye.value = i.labelOffset ?? 0, pe.value = i.labelFontSize ?? 12, D.value = i.showX ?? !0, Y.value = i.xPosition ?? kt.bottom, O.value = i.showXGrid ?? !1, I.value = i.showXTick ?? !0, H.value = i.xTickFontSize ?? 12, he.value = i.showXTitle ?? !1, _e.value = i.xTitle ?? "", Ae.value = i.xTitleFontSize ?? 12, He.value = i.showY ?? !0, Me.value = i.yPosition ?? Tt.left, t.value = i.showYGrid ?? !1, k.value = i.showYTick ?? !0, z.value = i.yTickFontSize ?? 12, V.value = i.showYTitle ?? !1, G.value = i.yTitle ?? "", re.value = i.yTitleFontSize ?? 12, be.value = i.showLegend ?? void 0, ve.value = i.legendPosition ?? _t.top, le.value = i.usePointStyle ?? !0, N.value = i.legendMaxHeight, P.value = i.legendMaxWidth, C.value = i.rowHeight ?? 0, ae.value = i.colWidths ?? [];
1654
+ p.value = i.rollup, r.value = i.showTitle ?? !0, L.value = i.titleFontSize ?? 14, n.value = i.titleBold ?? !1, d.value = i.titleItalic ?? !1, $.value = i.titleUnderline ?? !1, W.value = i.chartHeight ?? void 0, E.value = i.chartWidth ?? void 0, j.value = i.showLabel ?? !1, ue.value = i.labelAlign ?? Ct.center, J.value = i.labelAnchor ?? St.center, oe.value = i.labelRotation ?? 0, ye.value = i.labelOffset ?? 0, pe.value = i.labelFontSize ?? 12, D.value = i.showX ?? !0, Y.value = i.xPosition ?? kt.bottom, H.value = i.showXGrid ?? !1, I.value = i.showXTick ?? !0, O.value = i.xTickFontSize ?? 12, he.value = i.showXTitle ?? !1, _e.value = i.xTitle ?? "", Ae.value = i.xTitleFontSize ?? 12, He.value = i.showY ?? !0, Me.value = i.yPosition ?? Tt.left, t.value = i.showYGrid ?? !1, k.value = i.showYTick ?? !0, z.value = i.yTickFontSize ?? 12, V.value = i.showYTitle ?? !1, G.value = i.yTitle ?? "", re.value = i.yTitleFontSize ?? 12, be.value = i.showLegend ?? void 0, ve.value = i.legendPosition ?? _t.top, le.value = i.usePointStyle ?? !0, N.value = i.legendMaxHeight, P.value = i.legendMaxWidth, C.value = i.rowHeight ?? 0, ae.value = i.colWidths ?? [];
1655
1655
  },
1656
1656
  { deep: !0 }
1657
1657
  ), me([() => p.value], () => {
@@ -2358,7 +2358,7 @@ const wa = Xt(ba, () => {
2358
2358
  const k = (t.selectedValues || []).filter((z) => z !== "(EMPTY)");
2359
2359
  return `${a("report.section.filter.selectAll")} (${k.length}/${t.options.length})`;
2360
2360
  }
2361
- function O(t) {
2361
+ function H(t) {
2362
2362
  const k = t.options.length, z = a("report.section.filter.search"), V = a("report.common.results", { count: k });
2363
2363
  return `${z} (${V})`;
2364
2364
  }
@@ -2398,7 +2398,7 @@ const wa = Xt(ba, () => {
2398
2398
  suffix: `(${V.length} selected)`
2399
2399
  } : { preview: G, suffix: `${k}` };
2400
2400
  }
2401
- function H(t) {
2401
+ function O(t) {
2402
2402
  t.filter.values = [...t.selectedValues || []], p(t.filter, n.value, "selectedValues", t.selectedValues), document.body.click();
2403
2403
  }
2404
2404
  function he(t) {
@@ -2486,7 +2486,7 @@ const wa = Xt(ba, () => {
2486
2486
  ],
2487
2487
  type: "text",
2488
2488
  "prepend-icon": "search",
2489
- placeholder: O(C),
2489
+ placeholder: H(C),
2490
2490
  class: "border px-2 pb-8 text-sm mb-1 rounded"
2491
2491
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
2492
2492
  ]),
@@ -2592,7 +2592,7 @@ const wa = Xt(ba, () => {
2592
2592
  }, null, 8, ["label", "onClick"]),
2593
2593
  q(N, {
2594
2594
  color: "primary",
2595
- onClick: ht((se) => H(C), ["stop"]),
2595
+ onClick: ht((se) => O(C), ["stop"]),
2596
2596
  label: s(a)("report.common.apply")
2597
2597
  }, null, 8, ["onClick", "label"])
2598
2598
  ])
@@ -4,7 +4,7 @@ import { storeToRefs as D } from "pinia";
4
4
  import { a as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CEJrC4ag.js";
5
5
  import { _ as U } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CS10GX8d.js";
6
6
  import { _ as N } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CnCFX1Cy.js";
7
- import { a as S } from "./FilterSelector.vue_vue_type_script_setup_true_lang-BMx7tOtZ.js";
7
+ import { a as S } from "./FilterSelector.vue_vue_type_script_setup_true_lang-6G7uvSDs.js";
8
8
  import { useRoute as z } from "vue-router";
9
9
  import { useBreakpoints as E } from "@feedmepos/ui-library";
10
10
  const L = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrollbar-hide" }, O = { class: "flex flex-col gap-2 py-2" }, q = /* @__PURE__ */ b({
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as k, computed as w, resolveComponent as $, createBlock as n, openBlock as t, withCtx as y, createVNode as d, createElementVNode as h, unref as e, normalizeStyle as C, normalizeClass as u, createElementBlock as _, Fragment as b, renderList as B } from "vue";
2
- import { _ as F } from "./FilterSelector.vue_vue_type_script_setup_true_lang-BMx7tOtZ.js";
2
+ import { _ as F } from "./FilterSelector.vue_vue_type_script_setup_true_lang-6G7uvSDs.js";
3
3
  import { _ as L } from "./Default.vue_vue_type_script_setup_true_lang-Dhu7Z5sI.js";
4
4
  import { a as P } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CnCFX1Cy.js";
5
5
  import { storeToRefs as R } from "pinia";
6
6
  import { _ as S } from "./NoData.vue_vue_type_script_setup_true_lang-DDKbpI_N.js";
7
7
  import { useBreakpoints as V } from "@feedmepos/ui-library";
8
- import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-241s6nOG.js";
8
+ import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-Dqfxostu.js";
9
9
  import { useI18n as D } from "@feedmepos/mf-common";
10
10
  import { r as E } from "./i18n-7InkCBCc.js";
11
11
  const M = /* @__PURE__ */ k({