@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.
Files changed (26) hide show
  1. package/dist/{App-iSIj8_lS.js → App-cuHcpcZw.js} +26 -26
  2. package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-03nmej58.js +19983 -0
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-CPniBJgZ.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-cfshXMB2.js} +36 -37
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-Blc6DBml.js → Default.vue_vue_type_script_setup_true_lang-BhMWXLug.js} +11 -12
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-CHTMrqtt.js → FilterSelector.vue_vue_type_script_setup_true_lang-fzO5gzwh.js} +235 -236
  6. package/dist/{InsightView-Ckkwb92m.js → InsightView-DJJJmFkl.js} +16 -17
  7. package/dist/{Integration-BoYn0XvH.js → Integration-D93eQCHy.js} +4 -5
  8. package/dist/{Integrations-D6Qz0hqf.js → Integrations-jn20KmcD.js} +27 -28
  9. package/dist/{Layout-DIs6pMOT.js → Layout-B1jaac85.js} +1 -1
  10. 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
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DZIauCN0.js → NavigationTab.vue_vue_type_script_setup_true_lang-BZVeEoDt.js} +97 -98
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-CW6oZEnc.js → NoData.vue_vue_type_script_setup_true_lang-BUoYdn5S.js} +1 -1
  13. package/dist/{OverviewView-Bx_6RMle.js → OverviewView-Cuzw4aLB.js} +16 -16
  14. package/dist/{Report-E8GN07k7.js → Report-P_a1NjPi.js} +9 -8
  15. package/dist/{ReportEditor-bz8aajNj.js → ReportEditor-CkNtAVi9.js} +8 -9
  16. package/dist/{ReportView-BEWiRAvV.js → ReportView-BiF6T_r0.js} +12 -12
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-CiT09OeD.js → SelectComponent.vue_vue_type_script_setup_true_lang-B2oCOTUH.js} +1 -1
  18. package/dist/{Setting-B6nnaJaX.js → Setting-DLnskPxP.js} +6 -7
  19. package/dist/{TileEditor-DncjwvcR.js → TileEditor-LFwn_4CK.js} +17 -18
  20. package/dist/{TransitionFade-Bold22aO.js → TransitionFade-12ARL50A.js} +21 -22
  21. package/dist/app.js +5184 -6
  22. package/dist/vue-i18n-BQN8HgvD.js +6457 -0
  23. package/package.json +1 -1
  24. package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-Bnu9l9U0.js +0 -315
  25. package/dist/app-CDw9UOqm.js +0 -28808
  26. package/dist/vue-i18n-CQAzKJVO.js +0 -2711
@@ -1,17 +1,16 @@
1
- import { defineComponent as V, resolveComponent as S, createBlock as p, openBlock as y, withCtx as I, createCommentVNode as Y, createElementVNode as M, toDisplayString as j, renderSlot as A, mergeModels as C, useModel as R, ref as O, watch as k, createElementBlock as B, createVNode as b, unref as D } from "vue";
2
- import { d as r, G as U, H as W, a as q, a9 as G, w as H } from "./app-CDw9UOqm.js";
1
+ import { defineComponent as V, resolveComponent as S, createBlock as p, openBlock as y, withCtx as I, createCommentVNode as Y, createElementVNode as M, toDisplayString as j, renderSlot as A, mergeModels as $, useModel as R, ref as O, watch as k, createElementBlock as U, createVNode as b, unref as D } from "vue";
2
+ import { d as r, m as B, t as W, u as q, b as G, U as H, C as K } from "./vue-i18n-BQN8HgvD.js";
3
3
  import { detectLocale as z } from "@feedmepos/mf-common";
4
- import { u as K } from "./vue-i18n-CQAzKJVO.js";
5
4
  import { storeToRefs as L } from "pinia";
6
5
  var g = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))(g || {});
7
- function le(e, t = 100) {
6
+ function re(e, t = 100) {
8
7
  let n = null;
9
8
  const a = function(...o) {
10
9
  return n && clearTimeout(n), new Promise((l) => {
11
10
  n = setTimeout(() => {
12
11
  n = null;
13
- const c = e(...o);
14
- l(c);
12
+ const m = e(...o);
13
+ l(m);
15
14
  }, t);
16
15
  });
17
16
  };
@@ -22,7 +21,7 @@ function le(e, t = 100) {
22
21
  function J() {
23
22
  return [...Array(12).keys()].map((e) => r().month(e).format("MMM"));
24
23
  }
25
- function oe(e, t, n = "") {
24
+ function le(e, t, n = "") {
26
25
  switch (e.type) {
27
26
  case g.Day:
28
27
  return t("report.schedule.everyDay");
@@ -70,15 +69,15 @@ function F(e = {
70
69
  let t = r().subtract(1, "day").endOf("day"), n = r().endOf("day");
71
70
  return e.startDate && (t = r(e.startDate).locale(e.locale)), e.endDate && (n = r(e.endDate).locale(e.locale)), t.format("YYYY") !== n.format("YYYY") ? `${t.format("DD MMM YYYY")} - ${n.format("DD MMM YYYY")}` : `${t.format("DD MMM")} - ${n.format("DD MMM YYYY")}`;
72
71
  }
73
- function se(e = {
72
+ function oe(e = {
74
73
  startTime: null,
75
74
  endTime: null,
76
75
  locale: "en-US"
77
76
  }) {
78
77
  const t = "hh:mmA", { startTime: n, endTime: a, locale: o } = e;
79
78
  if (!n || !a) return "";
80
- const l = r().set("hour", n.hour).set("minute", n.minute).locale(o), c = r().set("hour", a.hour).set("minute", a.minute).locale(o);
81
- return `${l.format(t)}-${c.format(t)}`;
79
+ const l = r().set("hour", n.hour).set("minute", n.minute).locale(o), m = r().set("hour", a.hour).set("minute", a.minute).locale(o);
80
+ return `${l.format(t)}-${m.format(t)}`;
82
81
  }
83
82
  const Q = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-0" }, X = { class: "text-ellipsis overflow-hidden whitespace-nowrap flex-1 min-w-0" }, Z = { class: "whitespace-nowrap flex-none" }, P = /* @__PURE__ */ V({
84
83
  __name: "FilterChip",
@@ -138,16 +137,16 @@ const Q = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
138
137
  });
139
138
  };
140
139
  }
141
- }), _ = { class: "flex gap-2 items-center" }, h = "YYYY-MM-DD", ue = /* @__PURE__ */ V({
140
+ }), _ = { class: "flex gap-2 items-center" }, h = "YYYY-MM-DD", se = /* @__PURE__ */ V({
142
141
  __name: "DateRangeSelect",
143
- props: /* @__PURE__ */ C({
142
+ props: /* @__PURE__ */ $({
144
143
  compare: {
145
144
  type: Boolean,
146
145
  default: !1
147
146
  },
148
147
  datePredefinedRanges: {
149
148
  type: Array,
150
- default: () => G()
149
+ default: () => H()
151
150
  },
152
151
  label: {
153
152
  type: String,
@@ -162,7 +161,7 @@ const Q = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
162
161
  }, {
163
162
  compareType: {
164
163
  type: String,
165
- default: H.PRECEDING_PERIOD
164
+ default: K.PRECEDING_PERIOD
166
165
  },
167
166
  compareTypeModifiers: {},
168
167
  dateRange: {
@@ -182,16 +181,16 @@ const Q = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
182
181
  },
183
182
  compareDateRangeModifiers: {}
184
183
  }),
185
- emits: /* @__PURE__ */ C(["update", "chip-closed"], ["update:compareType", "update:dateRange", "update:compareDateRange"]),
184
+ emits: /* @__PURE__ */ $(["update", "chip-closed"], ["update:compareType", "update:dateRange", "update:compareDateRange"]),
186
185
  setup(e, { emit: t }) {
187
- var w, T, x, $;
188
- r.extend(U), r.extend(W);
189
- const { t: n } = K(), a = t, o = R(e, "compareType"), l = R(e, "dateRange"), c = R(e, "compareDateRange"), { timezone: i } = L(q()), d = O({
190
- startDate: l.value.startDate ? (w = r(l.value.startDate)) == null ? void 0 : w.tz(i.value).format(h) : null,
191
- endDate: l.value.endDate ? (T = r(l.value.endDate)) == null ? void 0 : T.tz(i.value).format(h) : null
186
+ var T, w, x, C;
187
+ r.extend(B), r.extend(W);
188
+ const { t: n } = q(), a = t, o = R(e, "compareType"), l = R(e, "dateRange"), m = R(e, "compareDateRange"), { timezone: i } = L(G()), d = O({
189
+ startDate: l.value.startDate ? (T = r(l.value.startDate)) == null ? void 0 : T.tz(i.value).format(h) : null,
190
+ endDate: l.value.endDate ? (w = r(l.value.endDate)) == null ? void 0 : w.tz(i.value).format(h) : null
192
191
  }), f = O({
193
- startDate: c.value.startDate ? (x = r(c.value.startDate)) == null ? void 0 : x.tz(i.value).format(h) : null,
194
- endDate: c.value.endDate ? ($ = r(c.value.endDate)) == null ? void 0 : $.tz(i.value).format(h) : null
192
+ startDate: m.value.startDate ? (x = r(m.value.startDate)) == null ? void 0 : x.tz(i.value).format(h) : null,
193
+ endDate: m.value.endDate ? (C = r(m.value.endDate)) == null ? void 0 : C.tz(i.value).format(h) : null
195
194
  });
196
195
  k(
197
196
  [() => d.value],
@@ -207,10 +206,10 @@ const Q = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
207
206
  ), k([() => f.value], () => {
208
207
  const u = f.value.startDate, s = f.value.endDate, v = u ? r(
209
208
  u instanceof Date ? u : r(u).toDate()
210
- ).startOf("day").tz(i.value, !0).toISOString() : void 0, m = s ? r(s instanceof Date ? s : r(s).toDate()).tz(i.value, !0).endOf("day").toISOString() : void 0;
211
- c.value = {
209
+ ).startOf("day").tz(i.value, !0).toISOString() : void 0, c = s ? r(s instanceof Date ? s : r(s).toDate()).tz(i.value, !0).endOf("day").toISOString() : void 0;
210
+ m.value = {
212
211
  startDate: v,
213
- endDate: m
212
+ endDate: c
214
213
  };
215
214
  });
216
215
  function E(u) {
@@ -221,14 +220,14 @@ const Q = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
221
220
  }
222
221
  return (u, s) => {
223
222
  const v = S("FmSimpleDateRangePicker");
224
- return y(), B("div", _, [
223
+ return y(), U("div", _, [
225
224
  b(v, {
226
225
  modelValue: d.value,
227
- "onUpdate:modelValue": s[1] || (s[1] = (m) => d.value = m),
226
+ "onUpdate:modelValue": s[1] || (s[1] = (c) => d.value = c),
228
227
  "show-predefined-range": "",
229
- "predefined-range": e.datePredefinedRanges.map((m) => ({
230
- ...m,
231
- label: D(n)(`report.date.${m.label}`)
228
+ "predefined-range": e.datePredefinedRanges.map((c) => ({
229
+ ...c,
230
+ label: D(n)(`report.date.${c.label}`)
232
231
  })),
233
232
  class: "w-2/6"
234
233
  }, {
@@ -241,7 +240,7 @@ const Q = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
241
240
  locale: D(z)()
242
241
  }),
243
242
  removable: e.removable,
244
- onChipClosed: s[0] || (s[0] = (m) => N(!0))
243
+ onChipClosed: s[0] || (s[0] = (c) => N(!0))
245
244
  }, null, 8, ["left-icon", "label", "removable"])
246
245
  ]),
247
246
  _: 1
@@ -249,9 +248,9 @@ const Q = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
249
248
  e.compare ? (y(), p(v, {
250
249
  key: 0,
251
250
  modelValue: f.value,
252
- "onUpdate:modelValue": s[2] || (s[2] = (m) => f.value = m),
251
+ "onUpdate:modelValue": s[2] || (s[2] = (c) => f.value = c),
253
252
  "compare-type": o.value,
254
- "onUpdate:compareType": s[3] || (s[3] = (m) => o.value = m),
253
+ "onUpdate:compareType": s[3] || (s[3] = (c) => o.value = c),
255
254
  "show-predefined-range": "",
256
255
  "compare-target": d.value,
257
256
  onSelectComparison: E
@@ -273,11 +272,11 @@ const Q = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
273
272
  });
274
273
  export {
275
274
  g as C,
276
- ue as _,
275
+ se as _,
277
276
  P as a,
278
277
  F as b,
279
- se as c,
280
- le as d,
281
- oe as e,
278
+ oe as c,
279
+ re as d,
280
+ le as e,
282
281
  J as g
283
282
  };
@@ -1,30 +1,29 @@
1
- import { defineComponent as u, computed as f, resolveComponent as p, createElementBlock as r, 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-DZIauCN0.js";
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-BZVeEoDt.js";
3
3
  import { useBreakpoints as b } from "@feedmepos/ui-library";
4
4
  import { storeToRefs as C } from "pinia";
5
- import { f as q } from "./app-CDw9UOqm.js";
6
- import { useRoute as w } from "vue-router";
7
- import { u as B } from "./vue-i18n-CQAzKJVO.js";
5
+ import { u as q, f as w } from "./vue-i18n-BQN8HgvD.js";
6
+ import { useRoute as B } from "vue-router";
8
7
  const $ = {
9
8
  key: 1,
10
9
  class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"
11
- }, N = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, R = /* @__PURE__ */ u({
10
+ }, N = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, P = /* @__PURE__ */ u({
12
11
  __name: "Default",
13
12
  setup(S) {
14
- const { t: l } = B(), { breakpoints: s } = b(), { isLoading: c } = C(q()), o = w(), a = f(() => !o.query.token);
13
+ const { t: l } = q(), { breakpoints: r } = b(), { isLoading: c } = C(w()), o = B(), a = f(() => !o.query.token);
15
14
  return (m, z) => {
16
15
  const i = p("FmCircularProgress");
17
- return t(), r("div", {
18
- class: d(`${e(s).lg || e(s).md ? "flex w-full" : ""} bg-fm-color-neutral-white`),
16
+ return t(), s("div", {
17
+ class: d(`${e(r).lg || e(r).md ? "flex w-full" : ""} bg-fm-color-neutral-white`),
19
18
  style: n({
20
19
  height: `calc(100vh - ${e(o).query.token && e(o).query.businessId ? "0" : "64"}px)`
21
20
  })
22
21
  }, [
23
22
  a.value ? _("", !0) : (t(), y(v, { key: 0 })),
24
- e(c) ? (t(), r("div", $, [
23
+ e(c) ? (t(), s("div", $, [
25
24
  h(i, { size: "xl" }),
26
25
  k("span", N, g(e(l)("report.common.isLoading")), 1)
27
- ])) : (t(), r("div", {
26
+ ])) : (t(), s("div", {
28
27
  key: 2,
29
28
  class: "w-full flex flex-col",
30
29
  style: n({
@@ -38,5 +37,5 @@ const $ = {
38
37
  }
39
38
  });
40
39
  export {
41
- R as _
40
+ P as _
42
41
  };