@feedmepos/mf-report 5.25.4 → 5.25.5-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 (22) hide show
  1. package/dist/{App-zRHXHcPT.js → App-7sis1lMo.js} +61 -61
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BVdgmiki.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-DmAd3AZP.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-By3S17dA.js → Default.vue_vue_type_script_setup_true_lang-cPJFk36N.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-nqE6iEkZ.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BrzAvoWk.js} +1089 -1090
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CeERNo7f.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-l3JcKn80.js} +2420 -2408
  6. package/dist/{InsightView-BBhWazOR.js → InsightView-BeAVxIfO.js} +4 -4
  7. package/dist/{Integration-DwrH45Cv.js → Integration-CMfs0ua0.js} +3 -3
  8. package/dist/{Integrations-B2oXCMtI.js → Integrations-DumyMXnZ.js} +2 -2
  9. package/dist/{Layout-8K-hl0GX.js → Layout-DRzH9XAo.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Bk13wM8J.js → MenuTab.vue_vue_type_script_setup_true_lang-Bc-yRS2N.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DJQmFNyV.js → NavigationTab.vue_vue_type_script_setup_true_lang-Cp3dKAq-.js} +3 -3
  12. package/dist/{OverviewView-VK-QiYBv.js → OverviewView-CiPJi2Ti.js} +4 -4
  13. package/dist/{Report-DjEakQjd.js → Report-gOWkJKSt.js} +47 -49
  14. package/dist/{ReportEditor-DkDpoEA1.js → ReportEditor-CvIIK5yy.js} +3 -3
  15. package/dist/{ReportView-D7pPDt9i.js → ReportView-CLSJ6l7e.js} +6 -6
  16. package/dist/{Setting-Cj8FNkcg.js → Setting-DtovNxdr.js} +3 -3
  17. package/dist/{TileEditor-DiIeHLZ2.js → TileEditor-tfL6dwGn.js} +5 -5
  18. package/dist/{TransitionFade-D3p2nUld.js → TransitionFade-xVV5QHHE.js} +4 -4
  19. package/dist/{app-t7VSpu_w.js → app-CxVhBBUS.js} +12 -12
  20. package/dist/app.js +1 -1
  21. package/dist/{useRestaurantPermission-ClMBdaFt.js → useRestaurantPermission-BTsXpe68.js} +1 -1
  22. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, resolveComponent as t, createBlock as r, openBlock as n, withCtx as _, createVNode as c } from "vue";
2
- import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-By3S17dA.js";
2
+ import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-cPJFk36N.js";
3
3
  const f = /* @__PURE__ */ o({
4
4
  __name: "Layout",
5
5
  setup(m) {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as R, computed as V, createElementBlock as x, openBlock as a, createElementVNode as y, createVNode as p, unref as e, isRef as i, withCtx as _, createBlock as g, createCommentVNode as k, useModel as $, resolveComponent as f, normalizeClass as C, Fragment as w, renderList as M, toDisplayString as T } from "vue";
2
- import { a as B } from "./app-t7VSpu_w.js";
2
+ import { a as B } from "./app-CxVhBBUS.js";
3
3
  import { storeToRefs as D } from "pinia";
4
- import { a as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DJQmFNyV.js";
5
- import { _ as U } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BVdgmiki.js";
6
- import { _ as N, b as S } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CeERNo7f.js";
4
+ import { a as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-Cp3dKAq-.js";
5
+ import { _ as U } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DmAd3AZP.js";
6
+ import { _ as N, b as S } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-l3JcKn80.js";
7
7
  import { useRoute as z } from "vue-router";
8
8
  import { useBreakpoints as E } from "@feedmepos/ui-library";
9
9
  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__ */ R({
@@ -4,12 +4,12 @@ var Dl = (e, r, t) => I5(e, typeof r != "symbol" ? r + "" : r, t);
4
4
  import { defineComponent as tr, computed as Ge, useModel as Sn, ref as Fe, watch as Nr, resolveComponent as me, createBlock as Ke, unref as V, openBlock as re, withCtx as je, createElementVNode as Q, createVNode as _, toDisplayString as Ne, withDirectives as Ii, createElementBlock as Pe, Fragment as gt, renderList as Xt, vShow as Gs, createTextVNode as _r, mergeModels as fi, createCommentVNode as at, normalizeClass as ci, onMounted as o0, withKeys as zh, withModifiers as ii, isRef as wa, vModelText as Xh, normalizeStyle as ac, renderSlot as Hh, mergeProps as F5, nextTick as V5, resolveDynamicComponent as Hu, createSlots as L5 } from "vue";
5
5
  import { useRouter as qh, useRoute as Wh } from "vue-router";
6
6
  import { storeToRefs as Lr, defineStore as f0 } from "pinia";
7
- import { u as ol, p as kd, r as N5, l as ai, R as Wa, n as Qs, w as Gl, _ as c0, e as M5, v as R5, d as B5, x as z5, b as jh, m as X5, y as H5, z as wn, A as q5 } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CeERNo7f.js";
7
+ import { u as ol, p as kd, r as N5, l as ai, R as Wa, n as Qs, w as Gl, _ as c0, e as M5, v as R5, d as B5, x as z5, b as jh, m as X5, y as H5, z as wn, A as q5 } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-l3JcKn80.js";
8
8
  import { useBreakpoints as ko, components as Fi, useSnackbar as Xi, useDialog as W5, useDialogChild as j5, FmButtonVariant as xd } from "@feedmepos/ui-library";
9
9
  import { u as ha } from "./vue-i18n-DVWuTfed.js";
10
10
  import { b as Td, a as Uh } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js";
11
- import { C as hr, g as U5, b as ti, e as Zh, f as Z5, _ as Yh, p as Y5 } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BVdgmiki.js";
12
- import { u as Za, F as Ya, r as fl, a as Hi, d as Ot, q as xo, h as Gh, j as G5, k as Q5, e as K5, l as Il, m as Qh, c as J5, n as _5 } from "./app-t7VSpu_w.js";
11
+ import { C as hr, g as U5, b as ti, e as Zh, f as Z5, _ as Yh, p as Y5 } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DmAd3AZP.js";
12
+ import { u as Za, F as Ya, r as fl, a as Hi, d as Ot, q as xo, h as Gh, j as G5, k as Q5, e as K5, l as Il, m as Qh, c as J5, n as _5 } from "./app-CxVhBBUS.js";
13
13
  import { detectLocale as $5, useCoreStore as e8 } from "@feedmepos/mf-common";
14
14
  const t8 = { class: "flex flex-col" }, r8 = { class: "fm-typo-en-title-sm-600" }, a8 = { class: "grow" }, n8 = { class: "flex flex-col gap-8" }, i8 = { class: "flex flex-col w-full" }, s8 = { class: "flex flex-col gap-5 p-6" }, l8 = { class: "flex" }, Cd = {
15
15
  // sales: [
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as w, computed as c, resolveComponent as $, createBlock as l, openBlock as r, withCtx as y, createVNode as u, createElementVNode as h, unref as e, normalizeStyle as C, normalizeClass as d, createElementBlock as _, Fragment as b, renderList as B } from "vue";
2
- import { _ as F } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-nqE6iEkZ.js";
3
- import { _ as L } from "./Default.vue_vue_type_script_setup_true_lang-By3S17dA.js";
4
- import { u as P } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CeERNo7f.js";
2
+ import { _ as F } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BrzAvoWk.js";
3
+ import { _ as L } from "./Default.vue_vue_type_script_setup_true_lang-cPJFk36N.js";
4
+ import { u as P } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-l3JcKn80.js";
5
5
  import { storeToRefs as R } from "pinia";
6
6
  import { _ as S } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js";
7
7
  import { useBreakpoints as V } from "@feedmepos/ui-library";
8
- import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-Bk13wM8J.js";
8
+ import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-Bc-yRS2N.js";
9
9
  import { useI18n as D } from "@feedmepos/mf-common";
10
10
  import { r as E } from "./i18n-CI_sQ5d_.js";
11
11
  const M = /* @__PURE__ */ w({
@@ -1,12 +1,12 @@
1
- import { defineComponent as $e, ref as j, watch as pe, computed as b, h as p, withModifiers as De, resolveComponent as k, createBlock as G, openBlock as A, withCtx as m, createVNode as c, createElementVNode as w, unref as e, normalizeStyle as Ie, normalizeClass as x, withDirectives as H, createElementBlock as Fe, Fragment as Oe, renderList as Pe, toDisplayString as J, createTextVNode as Le, vShow as Q } from "vue";
1
+ import { defineComponent as $e, ref as j, watch as pe, computed as b, h as p, withModifiers as De, resolveComponent as S, createBlock as G, openBlock as A, withCtx as m, createVNode as c, createElementVNode as w, unref as e, normalizeStyle as Ie, normalizeClass as k, withDirectives as H, createElementBlock as Fe, Fragment as Oe, renderList as Le, toDisplayString as J, createTextVNode as Pe, vShow as Q } from "vue";
2
2
  import { storeToRefs as de } from "pinia";
3
- import { u as Ne } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CeERNo7f.js";
4
- import { _ as Ve } from "./Default.vue_vue_type_script_setup_true_lang-By3S17dA.js";
3
+ import { u as Ne } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-l3JcKn80.js";
4
+ import { _ as Ve } from "./Default.vue_vue_type_script_setup_true_lang-cPJFk36N.js";
5
5
  import { u as Ae } from "./message-dialog-UoMWOnil.js";
6
6
  import { a as Je } from "./vue-i18n-DVWuTfed.js";
7
7
  import { useSnackbar as ze, useBreakpoints as Be, components as Te, FmButtonColorThemeVariant as Ue } from "@feedmepos/ui-library";
8
8
  import { _ as Ee } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js";
9
- import { c as Ke, a as fe, g as Me } from "./app-t7VSpu_w.js";
9
+ import { c as Ke, a as fe, g as Me } from "./app-CxVhBBUS.js";
10
10
  import { useRouter as Ye, useRoute as qe, onBeforeRouteLeave as je } from "vue-router";
11
11
  import { useI18n as Ge } from "@feedmepos/mf-common";
12
12
  import { r as W } from "./i18n-CI_sQ5d_.js";
@@ -16,11 +16,11 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
16
16
  const { t: a, te: z } = Ge(), X = Ye(), Z = qe(), d = Ne(), ve = Ke(), { business: ge } = de(fe()), {
17
17
  reports: f,
18
18
  overviewReport: B,
19
- categories: D,
20
- pinReport: I,
19
+ categories: $,
20
+ pinReport: D,
21
21
  isOpenAddReportDialog: ye,
22
22
  scrollPositionY: ee,
23
- customReportQuota: F,
23
+ customReportQuota: I,
24
24
  canCreateCustomReport: te
25
25
  } = de(d), { promptMessage: oe } = Ae(), { promptLoader: T } = Je(), i = ze(), { breakpoints: u } = Be(), { canRead: ae, canUpdate: re, canDuplicate: be, canDelete: ne, canCreateReport: we } = Me(), C = j();
26
26
  je(() => {
@@ -30,9 +30,9 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
30
30
  C.value.$el.children[0].scrollTop = ee.value;
31
31
  }, 200);
32
32
  });
33
- const U = b(() => I.value && f.value ? f.value.filter((o) => {
33
+ const U = b(() => D.value && f.value ? f.value.filter((o) => {
34
34
  var t;
35
- return (t = I.value) == null ? void 0 : t.includes(o.id);
35
+ return (t = D.value) == null ? void 0 : t.includes(o.id);
36
36
  }) : []);
37
37
  pe(
38
38
  [() => ge.value],
@@ -45,13 +45,13 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
45
45
  (o) => U.value.findIndex((t) => t.id === o.id) === -1
46
46
  ) : f.value), { FmButton: Ce, FmMenu: E, FmMenuItem: h, FmIcon: K, FmChip: M } = Te, le = b(() => [
47
47
  { value: void 0, label: "All" },
48
- ...D.value.map((o) => ({
48
+ ...$.value.map((o) => ({
49
49
  value: o.id,
50
50
  label: o.name
51
51
  }))
52
- ]), O = j(le.value[0]), Y = j(""), R = b(() => se.value.length === 0 || D.value.length === 0 ? [] : [
52
+ ]), F = j(le.value[0]), Y = j(""), R = b(() => se.value.length === 0 || $.value.length === 0 ? [] : [
53
53
  ...U.value.map((t) => {
54
- const r = D.value.find((l) => l.id === t.category);
54
+ const r = $.value.find((l) => l.id === t.category);
55
55
  return {
56
56
  name: W(a, z, t.name, "other"),
57
57
  categoryId: (r == null ? void 0 : r.id) ?? "",
@@ -65,7 +65,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
65
65
  };
66
66
  }),
67
67
  ...se.value.map((t) => {
68
- const r = D.value.find((l) => l.id === t.category);
68
+ const r = $.value.find((l) => l.id === t.category);
69
69
  return {
70
70
  name: W(a, z, t.name, "other"),
71
71
  categoryId: (r == null ? void 0 : r.id) ?? "",
@@ -78,7 +78,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
78
78
  canRead: ae(t)
79
79
  };
80
80
  })
81
- ].filter((t) => O.value.value && t.categoryId !== O.value.value ? !1 : `${(t == null ? void 0 : t.name) || ""}${(t == null ? void 0 : t.description) || ""}`.toLowerCase().indexOf(Y.value.toLowerCase()) !== -1)), he = b(
81
+ ].filter((t) => F.value.value && t.categoryId !== F.value.value ? !1 : `${(t == null ? void 0 : t.name) || ""}${(t == null ? void 0 : t.description) || ""}`.toLowerCase().indexOf(Y.value.toLowerCase()) !== -1)), he = b(
82
82
  () => R.value.map((o) => `${o.name}${o.category}`).toString()
83
83
  ), Re = b(() => [
84
84
  {
@@ -133,17 +133,17 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
133
133
  },
134
134
  cell: (o) => {
135
135
  var g;
136
- const t = o.row.original, r = t.reportId, l = f.value.find((s) => s.id === r), q = r === ((g = B.value) == null ? void 0 : g.id), S = !t.canRead, $ = l ? be(l) : !1, V = l ? ne(l) : !1, n = [
136
+ const t = o.row.original, r = t.reportId, l = f.value.find((s) => s.id === r), q = r === ((g = B.value) == null ? void 0 : g.id), N = !t.canRead, _ = l ? be(l) : !1, V = l ? ne(l) : !1, n = [
137
137
  {
138
138
  label: a("report.common.duplicate"),
139
139
  onClick: () => {
140
- l && $ ? ue(l) : $ || i.open({
140
+ l && _ ? ue(l) : _ || i.open({
141
141
  message: a("report.messages.noPermissionDuplicateReport"),
142
142
  type: "error"
143
143
  });
144
144
  },
145
145
  variant: "",
146
- disabled: !$
146
+ disabled: !_
147
147
  },
148
148
  {
149
149
  label: a(q ? "report.common.unsetAsOverview" : "report.common.setAsOverview"),
@@ -175,14 +175,12 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
175
175
  p(
176
176
  "button",
177
177
  {
178
- disabled: S,
179
- title: S ? a("report.messages.noPermission") : void 0,
178
+ disabled: N,
179
+ title: N ? a("report.messages.noPermission") : void 0,
180
180
  onClick: De(() => {
181
181
  l && me(l);
182
182
  }, ["stop"]),
183
- class: `text-fm-color-neutral-gray-400 ${t.pin ? "" : "show-pin"} hover:bg-fm-color-opacity-sm rounded-lg flex items-center justify-center`,
184
- disabled: S,
185
- title: S ? a("report.messages.noPermission") : void 0
183
+ class: `text-fm-color-neutral-gray-400 ${t.pin ? "" : "show-pin"} hover:bg-fm-color-opacity-sm rounded-lg flex items-center justify-center`
186
184
  },
187
185
  {
188
186
  default: () => [
@@ -301,8 +299,8 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
301
299
  if (te.value)
302
300
  await Se(o);
303
301
  else {
304
- let t = `Your current plan only support up to ${F.value} custom reports.`;
305
- F.value === 0 && (t = "Your current plan does not support custom report."), i.open({
302
+ let t = `Your current plan only support up to ${I.value} custom reports.`;
303
+ I.value === 0 && (t = "Your current plan does not support custom report."), i.open({
306
304
  message: t,
307
305
  type: "error"
308
306
  });
@@ -319,8 +317,8 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
319
317
  if (te.value)
320
318
  ye.value = !0;
321
319
  else {
322
- let o = `Your current plan only support up to ${F.value} custom reports.`;
323
- F.value === 0 && (o = "Your current plan does not support custom report."), i.open({
320
+ let o = `Your current plan only support up to ${I.value} custom reports.`;
321
+ I.value === 0 && (o = "Your current plan does not support custom report."), i.open({
324
322
  message: o,
325
323
  type: "error"
326
324
  });
@@ -328,7 +326,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
328
326
  }
329
327
  function me(o) {
330
328
  const t = W(a, z, o.name, "other") ?? "";
331
- I.value && I.value.includes(o.id) ? (i.open({
329
+ D.value && D.value.includes(o.id) ? (i.open({
332
330
  message: `${a("report.common.unpin")} ${t} ${a("report.common.successful")}`,
333
331
  type: "success"
334
332
  }), d.clearPinReport(o.id)) : (i.open({
@@ -337,11 +335,11 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
337
335
  }), d.cachePinReport(o));
338
336
  }
339
337
  function xe(o) {
340
- O.value = o;
338
+ F.value = o;
341
339
  }
342
- const { selectedLocationIds: _, dateRange: P, compareDateRange: L, timeRange: v, locations: _e } = fe(), N = b(() => _.length === _e.length);
340
+ const { selectedLocationIds: x, dateRange: O, compareDateRange: L, timeRange: v, locations: _e } = fe(), P = b(() => x.length === _e.length);
343
341
  return (o, t) => {
344
- const r = k("FmPageHead"), l = k("FmSearch"), q = k("FmForm"), S = k("FmListItem"), $ = k("FmList"), V = k("FmTable");
342
+ const r = S("FmPageHead"), l = S("FmSearch"), q = S("FmForm"), N = S("FmListItem"), _ = S("FmList"), V = S("FmTable");
345
343
  return A(), G(Ve, null, {
346
344
  default: m(() => [
347
345
  c(r, {
@@ -358,25 +356,25 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
358
356
  "onClick:action": t[0] || (t[0] = (n) => ke())
359
357
  }, null, 8, ["title", "actions"]),
360
358
  w("div", {
361
- class: x(`overflow-y-hidden flex flex-col gap-8 ${e(u).sm || e(u).xs ? "mb-20" : ""}`),
359
+ class: k(`overflow-y-hidden flex flex-col gap-8 ${e(u).sm || e(u).xs ? "mb-20" : ""}`),
362
360
  style: Ie({ height: `calc(100% - ${e(u).lg || e(u).md ? 72 : 64}px)` })
363
361
  }, [
364
362
  c(q, {
365
- class: x(`flex items-center gap-2 ${e(u).sm || e(u).xs ? "px-3" : "px-24"}`)
363
+ class: k(`flex items-center gap-2 ${e(u).sm || e(u).xs ? "px-3" : "px-24"}`)
366
364
  }, {
367
365
  default: m(() => [
368
366
  c(e(E), null, {
369
367
  "menu-button": m(() => [
370
368
  c(e(M), { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-400" }, {
371
369
  default: m(() => [
372
- w("p", null, J(e(a)(`report.category.${O.value.label}`)), 1),
370
+ w("p", null, J(e(a)(`report.category.${F.value.label}`)), 1),
373
371
  c(e(K), { name: "expand_more" })
374
372
  ]),
375
373
  _: 1
376
374
  })
377
375
  ]),
378
376
  default: m(() => [
379
- (A(!0), Fe(Oe, null, Pe(le.value, (n, g) => (A(), G(e(h), {
377
+ (A(!0), Fe(Oe, null, Le(le.value, (n, g) => (A(), G(e(h), {
380
378
  key: g,
381
379
  label: e(a)(`report.category.${n.label}`),
382
380
  onClick: () => xe(n)
@@ -385,7 +383,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
385
383
  _: 1
386
384
  }),
387
385
  w("div", {
388
- class: x(`flex ${e(u).sm || e(u).xs ? "justify-center items-center" : ""}`)
386
+ class: k(`flex ${e(u).sm || e(u).xs ? "justify-center items-center" : ""}`)
389
387
  }, [
390
388
  w("p", He, J(e(a)("report.common.results", { count: R.value.length })), 1)
391
389
  ], 2),
@@ -394,7 +392,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
394
392
  c(l, {
395
393
  modelValue: Y.value,
396
394
  "onUpdate:modelValue": t[1] || (t[1] = (n) => Y.value = n),
397
- class: x(`${e(u).lg || e(u).md ? "grow" : ""}`)
395
+ class: k(`${e(u).lg || e(u).md ? "grow" : ""}`)
398
396
  }, null, 8, ["modelValue", "class"])
399
397
  ])
400
398
  ]),
@@ -404,7 +402,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
404
402
  key: he.value,
405
403
  ref_key: "table",
406
404
  ref: C,
407
- class: x([e(u).sm || e(u).xs ? "px-0" : "px-24", "report-table"]),
405
+ class: k([e(u).sm || e(u).xs ? "px-0" : "px-24", "report-table"]),
408
406
  style: { height: "calc(100% - 40px)" },
409
407
  "column-defs": Re.value,
410
408
  "row-data": R.value,
@@ -424,20 +422,20 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
424
422
  query: {
425
423
  ...e(Z).query,
426
424
  reportId: n.original.reportId,
427
- startDate: e(P).startDate,
428
- endDate: e(P).endDate,
425
+ startDate: e(O).startDate,
426
+ endDate: e(O).endDate,
429
427
  compareStartDate: e(L).startDate,
430
428
  compareEndDate: e(L).endDate,
431
429
  timeStart: e(v).start ? JSON.stringify(e(v).start) : null,
432
430
  timeEnd: e(v).end ? JSON.stringify(e(v).end) : null,
433
- isAllLocation: N.value.toString(),
434
- locationIds: N.value ? void 0 : e(_) ? JSON.stringify(e(_)) : void 0
431
+ isAllLocation: P.value.toString(),
432
+ locationIds: P.value ? void 0 : e(x) ? JSON.stringify(e(x)) : void 0
435
433
  }
436
434
  });
437
435
  })
438
436
  }, {
439
437
  "list-row": m(({ original: n }) => [
440
- c($, {
438
+ c(_, {
441
439
  onClick: () => {
442
440
  if (!n.canRead) {
443
441
  e(i).open({
@@ -451,27 +449,27 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
451
449
  query: {
452
450
  ...e(Z).query,
453
451
  reportId: n.reportId,
454
- startDate: e(P).startDate,
455
- endDate: e(P).endDate,
452
+ startDate: e(O).startDate,
453
+ endDate: e(O).endDate,
456
454
  compareStartDate: e(L).startDate,
457
455
  compareEndDate: e(L).endDate,
458
456
  timeStart: e(v).start ? JSON.stringify(e(v).start) : null,
459
457
  timeEnd: e(v).end ? JSON.stringify(e(v).end) : null,
460
- isAllLocation: N.value.toString(),
461
- locationIds: N.value ? void 0 : e(_) ? JSON.stringify(e(_)) : void 0
458
+ isAllLocation: P.value.toString(),
459
+ locationIds: P.value ? void 0 : e(x) ? JSON.stringify(e(x)) : void 0
462
460
  }
463
461
  }));
464
462
  }
465
463
  }, {
466
464
  default: m(() => [
467
- c(S, {
465
+ c(N, {
468
466
  tag: "label",
469
467
  label: n.name,
470
468
  clickable: ""
471
469
  }, {
472
470
  append: m(() => [
473
471
  c(e(M), {
474
- class: x(
472
+ class: k(
475
473
  n.category !== "Uncategorized" ? "bg-fm-color-system-info-100 text-fm-color-typo-info" : "text-fm-color-typo-secondary"
476
474
  ),
477
475
  compact: !0
@@ -534,7 +532,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
534
532
  }
535
533
  }, {
536
534
  label: m(() => [
537
- Le(J(e(a)("report.common.delete")), 1)
535
+ Pe(J(e(a)("report.common.delete")), 1)
538
536
  ]),
539
537
  _: 2
540
538
  }, 1032, ["label", "onClick"]), [
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as ye, mergeModels as ge, useModel as be, ref as I, computed as S, resolveComponent as _, createBlock as T, openBlock as s, withCtx as p, createElementVNode as h, createVNode as a, unref as o, normalizeClass as ke, createTextVNode as Le, toDisplayString as Y, createElementBlock as C, Fragment as ee, renderSlot as Ye, createCommentVNode as A, watch as fe, renderList as ce, resolveDynamicComponent as sl, isRef as Ze, normalizeStyle as He, onMounted as ul } from "vue";
2
- import { W as dl, g as ml, _ as cl, a as pl, i as vl, S as Ae, d as Ge, T as fl, b as gl } from "./TransitionFade-D3p2nUld.js";
3
- import { C as ve, D as X, c as Ve, g as bl, u as el, a as yl, d as Ke, v as Oe, b as Qe } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CeERNo7f.js";
2
+ import { W as dl, g as ml, _ as cl, a as pl, i as vl, S as Ae, d as Ge, T as fl, b as gl } from "./TransitionFade-xVV5QHHE.js";
3
+ import { C as ve, D as X, c as Ve, g as bl, u as el, a as yl, d as Ke, v as Oe, b as Qe } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-l3JcKn80.js";
4
4
  import { storeToRefs as Re } from "pinia";
5
5
  import { useRouter as ll, useRoute as tl } from "vue-router";
6
6
  import { useBreakpoints as Ie, useSnackbar as ol, FmButtonColorThemeVariant as xe } from "@feedmepos/ui-library";
7
7
  import { u as al } from "./message-dialog-UoMWOnil.js";
8
8
  import { u as Ne, a as hl } from "./vue-i18n-DVWuTfed.js";
9
9
  import { r as $e } from "./i18n-CI_sQ5d_.js";
10
- import { _ as Ee } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-nqE6iEkZ.js";
10
+ import { _ as Ee } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BrzAvoWk.js";
11
11
  import { b as Pe, _ as Je } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js";
12
12
  import { useCoreStore as _l } from "@feedmepos/mf-common";
13
13
  const wl = /* @__PURE__ */ ye({
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as ee, ref as oe, computed as c, watch as te, resolveComponent as J, createBlock as _, openBlock as d, withCtx as w, createVNode as S, createElementVNode as k, unref as s, toDisplayString as re, normalizeStyle as ae, normalizeClass as T, createElementBlock as N, Fragment as se, renderList as ne } from "vue";
2
- import { _ as le } from "./MenuTab.vue_vue_type_script_setup_true_lang-Bk13wM8J.js";
3
- import { _ as ie } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-nqE6iEkZ.js";
2
+ import { _ as le } from "./MenuTab.vue_vue_type_script_setup_true_lang-Bc-yRS2N.js";
3
+ import { _ as ie } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BrzAvoWk.js";
4
4
  import { useRouter as ue, useRoute as ce } from "vue-router";
5
- import { _ as pe } from "./Default.vue_vue_type_script_setup_true_lang-By3S17dA.js";
6
- import { u as me, s as de } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CeERNo7f.js";
5
+ import { _ as pe } from "./Default.vue_vue_type_script_setup_true_lang-cPJFk36N.js";
6
+ import { u as me, s as de } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-l3JcKn80.js";
7
7
  import { storeToRefs as f } from "pinia";
8
- import { b as ve, c as fe, u as ge, g as ye } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DJQmFNyV.js";
8
+ import { b as ve, c as fe, u as ge, g as ye } from "./NavigationTab.vue_vue_type_script_setup_true_lang-Cp3dKAq-.js";
9
9
  import { _ as be, a as _e } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js";
10
10
  import { useSnackbar as we, useBreakpoints as Se } from "@feedmepos/ui-library";
11
11
  import { u as ke, a as xe } from "./vue-i18n-DVWuTfed.js";
12
12
  import { u as he } from "./message-dialog-UoMWOnil.js";
13
- import { e as Ce, g as Re } from "./app-t7VSpu_w.js";
13
+ import { e as Ce, g as Re } from "./app-CxVhBBUS.js";
14
14
  import { r as Pe } from "./i18n-CI_sQ5d_.js";
15
15
  const De = { class: "fm-typo-en-title-md-600 block min-w-0 max-w-full overflow-hidden text-ellipsis whitespace-nowrap" }, Oe = { class: "sticky top-0 z-10 bg-white" }, Ie = /* @__PURE__ */ ee({
16
16
  __name: "ReportView",
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as B, ref as H, useModel as M, resolveComponent as h, createElementBlock as k, openBlock as x, createBlock as P, createElementVNode as t, resolveDynamicComponent as ne, unref as e, withCtx as y, createVNode as a, normalizeClass as O, toDisplayString as s, Fragment as A, renderList as G, createTextVNode as ie, withDirectives as K, vShow as Q, watch as me, normalizeStyle as ue } from "vue";
2
- import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-By3S17dA.js";
3
- import { d as L, C as q, D as pe, a as ce } from "./app-t7VSpu_w.js";
2
+ import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-cPJFk36N.js";
3
+ import { d as L, C as q, D as pe, a as ce } from "./app-CxVhBBUS.js";
4
4
  import { components as z, useSnackbar as W, useBreakpoints as X, FmButtonColorThemeVariant as I } from "@feedmepos/ui-library";
5
- import { t as N, o as fe } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CeERNo7f.js";
5
+ import { t as N, o as fe } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-l3JcKn80.js";
6
6
  import { u as ve } from "./message-dialog-UoMWOnil.js";
7
7
  import { u as U } from "./vue-i18n-DVWuTfed.js";
8
8
  import { detectLocale as F } from "@feedmepos/mf-common";
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as ie, mergeModels as pe, useModel as fe, computed as T, ref as oe, resolveComponent as $, createElementBlock as H, openBlock as f, createVNode as u, createElementVNode as C, unref as l, withCtx as G, toDisplayString as Q, Fragment as ue, renderList as xe, withModifiers as ye, createTextVNode as Le, watch as he, createCommentVNode as O, createBlock as N, onUnmounted as Nl, renderSlot as dl, onMounted as Ke, onBeforeUnmount as ml, resolveDynamicComponent as cl, normalizeClass as ke, withDirectives as Ce, vShow as we, withKeys as ol, vModelText as jl, normalizeStyle as He, isRef as zl } from "vue";
2
2
  import { useRoute as Rl, useRouter as Il } from "vue-router";
3
- import { h as Pl, d as Ie, S as Ye, a as El, W as Xl, c as Wl, T as ql, b as Hl } from "./TransitionFade-D3p2nUld.js";
4
- import { W as K, a as pl, e as Ae, D as Yl, S as tl, C as Gl, u as vl, P as al, d as Jl, b as Kl } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CeERNo7f.js";
3
+ import { h as Pl, d as Ie, S as Ye, a as El, W as Xl, c as Wl, T as ql, b as Hl } from "./TransitionFade-xVV5QHHE.js";
4
+ import { W as K, a as pl, e as Ae, D as Yl, S as tl, C as Gl, u as vl, P as al, d as Jl, b as Kl } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-l3JcKn80.js";
5
5
  import { storeToRefs as Se } from "pinia";
6
6
  import { u as fl } from "./message-dialog-UoMWOnil.js";
7
7
  import { useSnackbar as Ql, useBreakpoints as gl, FmButtonColorThemeVariant as nl } from "@feedmepos/ui-library";
8
8
  import { b as ve, a as yl, _ as bl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js";
9
9
  import { u as me } from "./vue-i18n-DVWuTfed.js";
10
10
  import { r as de } from "./i18n-CI_sQ5d_.js";
11
- import { g as _e, u as je, R as il, L as Fe, a as Ne, S as ae, d as ce, b as We, c as sl, e as Zl, Y as eo, X as lo, _ as hl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-nqE6iEkZ.js";
12
- import { a as De, d as ze } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BVdgmiki.js";
13
- import { a as oo, d as Oe } from "./app-t7VSpu_w.js";
11
+ import { g as _e, u as je, R as il, L as Fe, a as Ne, S as ae, d as ce, b as We, c as sl, e as Zl, Y as eo, X as lo, _ as hl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BrzAvoWk.js";
12
+ import { a as De, d as ze } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DmAd3AZP.js";
13
+ import { a as oo, d as Oe } from "./app-CxVhBBUS.js";
14
14
  const Pe = [
15
15
  {
16
16
  type: K.Circular,
@@ -3,11 +3,11 @@ import { u as Pt, a as Pn } from "./vue-i18n-DVWuTfed.js";
3
3
  import { useCoreStore as Vn } from "@feedmepos/mf-common";
4
4
  import { storeToRefs as Mn } from "pinia";
5
5
  import { useRoute as Ln } from "vue-router";
6
- import { W as F, I as Be, f as rn, h as an, c as De, g as Bn, e as $n } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CeERNo7f.js";
7
- import { p as Rn, a as ln, d as Xn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BVdgmiki.js";
6
+ import { W as F, I as Be, f as rn, h as an, c as De, g as Bn, e as $n } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-l3JcKn80.js";
7
+ import { p as Rn, a as ln, d as Xn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DmAd3AZP.js";
8
8
  import { a as Vt, b as Wt } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js";
9
- import { R as Yn } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-nqE6iEkZ.js";
10
- import { d as ht } from "./app-t7VSpu_w.js";
9
+ import { R as Yn } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BrzAvoWk.js";
10
+ import { d as ht } from "./app-CxVhBBUS.js";
11
11
  import { r as Wn } from "./i18n-CI_sQ5d_.js";
12
12
  import { useSnackbar as Un } from "@feedmepos/ui-library";
13
13
  const jn = {
@@ -9991,7 +9991,7 @@ class xt {
9991
9991
  this.baseUrl = t;
9992
9992
  }
9993
9993
  }
9994
- const se = new xt("https://query-engine{.country}.feedmeapi.com"), mt = new xt("https://query-engine{.country}.feedmeapi.com/report-query"), bA = new xt("https://query-engine{.country}.feedmeapi.com/report-file"), KA = new xt("https://portal-v2{.country}.feedmeapi.com"), yc = (e) => ({
9994
+ const se = new xt("https://query-engine{.country}.feedmeapidev.com"), mt = new xt("https://query-engine{.country}.feedmeapidev.com/report-query"), bA = new xt("https://query-engine{.country}.feedmeapidev.com/report-file"), KA = new xt("https://portal-v2{.country}.feedmeapidev.com"), yc = (e) => ({
9995
9995
  id: e._id,
9996
9996
  name: e.profile.name,
9997
9997
  code: e.profile.code,
@@ -11576,7 +11576,7 @@ const oA = [
11576
11576
  path: "/overview",
11577
11577
  alias: ["/"],
11578
11578
  name: "overview",
11579
- component: ft(() => import("./OverviewView-VK-QiYBv.js")),
11579
+ component: ft(() => import("./OverviewView-CiPJi2Ti.js")),
11580
11580
  meta: {
11581
11581
  validationManifest: pt(
11582
11582
  z.report_accessOverview
@@ -11586,12 +11586,12 @@ const oA = [
11586
11586
  {
11587
11587
  path: "/report",
11588
11588
  name: "reports",
11589
- component: () => import("./Report-DjEakQjd.js")
11589
+ component: () => import("./Report-gOWkJKSt.js")
11590
11590
  },
11591
11591
  {
11592
11592
  path: "/insights",
11593
11593
  name: "insights",
11594
- component: ft(() => import("./InsightView-BBhWazOR.js")),
11594
+ component: ft(() => import("./InsightView-BeAVxIfO.js")),
11595
11595
  meta: {
11596
11596
  validationManifest: pt(
11597
11597
  z.report_accessInsight
@@ -11601,22 +11601,22 @@ const oA = [
11601
11601
  {
11602
11602
  path: "/report-view",
11603
11603
  name: "reportView",
11604
- component: () => import("./ReportView-D7pPDt9i.js")
11604
+ component: () => import("./ReportView-CLSJ6l7e.js")
11605
11605
  },
11606
11606
  {
11607
11607
  path: "/report-editor",
11608
11608
  name: "reportEditor",
11609
- component: () => import("./ReportEditor-DkDpoEA1.js")
11609
+ component: () => import("./ReportEditor-CvIIK5yy.js")
11610
11610
  },
11611
11611
  {
11612
11612
  path: "/report-editor/tile-editor",
11613
11613
  name: "tileEditor",
11614
- component: () => import("./TileEditor-DiIeHLZ2.js")
11614
+ component: () => import("./TileEditor-tfL6dwGn.js")
11615
11615
  },
11616
11616
  {
11617
11617
  path: "/setting",
11618
11618
  name: "setting",
11619
- component: ft(() => import("./Setting-Cj8FNkcg.js")),
11619
+ component: ft(() => import("./Setting-DtovNxdr.js")),
11620
11620
  meta: {
11621
11621
  validationManifest: pt(
11622
11622
  z.report_accessSetting
@@ -11625,7 +11625,7 @@ const oA = [
11625
11625
  },
11626
11626
  {
11627
11627
  path: "/integration",
11628
- component: ft(() => import("./Layout-8K-hl0GX.js")),
11628
+ component: ft(() => import("./Layout-DRzH9XAo.js")),
11629
11629
  meta: {
11630
11630
  validationManifest: pt(
11631
11631
  z.report_accessIntegration
@@ -11635,12 +11635,12 @@ const oA = [
11635
11635
  {
11636
11636
  name: "integrations",
11637
11637
  path: "",
11638
- component: () => import("./Integrations-B2oXCMtI.js")
11638
+ component: () => import("./Integrations-DumyMXnZ.js")
11639
11639
  },
11640
11640
  {
11641
11641
  name: "integration",
11642
11642
  path: "/integration/:id",
11643
- component: () => import("./Integration-DwrH45Cv.js")
11643
+ component: () => import("./Integration-CMfs0ua0.js")
11644
11644
  }
11645
11645
  ]
11646
11646
  },
@@ -11664,7 +11664,7 @@ const WA = {
11664
11664
  "zh-CN": dn,
11665
11665
  "th-TH": pn,
11666
11666
  "zh-Hant": gn
11667
- }, ZA = _o(() => import("./App-zRHXHcPT.js"));
11667
+ }, ZA = _o(() => import("./App-7sis1lMo.js"));
11668
11668
  export {
11669
11669
  bc as A,
11670
11670
  xc as B,
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { X as e, i as o, Y as p } from "./app-t7VSpu_w.js";
2
+ import { X as e, i as o, Y as p } from "./app-CxVhBBUS.js";
3
3
  export {
4
4
  e as FmApp,
5
5
  o as i18nMessages,
@@ -2,7 +2,7 @@ import { computed as u } from "vue";
2
2
  import { u as c } from "./vue-i18n-DVWuTfed.js";
3
3
  import { useSnackbar as f } from "@feedmepos/ui-library";
4
4
  import { useCoreStore as d } from "@feedmepos/mf-common";
5
- import { V as l, W as i } from "./app-t7VSpu_w.js";
5
+ import { V as l, W as i } from "./app-CxVhBBUS.js";
6
6
  function g(t) {
7
7
  return Array.isArray(t) ? t : [];
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-report",
3
- "version": "5.25.4",
3
+ "version": "5.25.5-beta.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],