@feedmepos/mf-report 5.14.2 → 5.14.3-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 (25) hide show
  1. package/dist/{App-B42aRUhC.js → App-BmniZkjD.js} +33 -33
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-BRk-mwHe.js → BaseDialog.vue_vue_type_script_setup_true_lang-BfqoIHbA.js} +1 -1
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BLPR2QZJ.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-D_vOomEW.js} +2 -2
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-CUUKwwv6.js → Default.vue_vue_type_script_setup_true_lang-SKf2r2G8.js} +2 -2
  5. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-BE9jLROO.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BMVhDJ_I.js} +5 -5
  6. package/dist/{InsightView-jcDgQV7R.js → InsightView-BFki5EUd.js} +5 -5
  7. package/dist/{Integration-BDxihj0c.js → Integration-C1vkCqlT.js} +2 -2
  8. package/dist/{Integrations-Cbzkedz3.js → Integrations-BTB-ZK56.js} +3 -3
  9. package/dist/{Layout-XwjMLwUh.js → Layout-V_HNhnDl.js} +1 -1
  10. package/dist/MenuTab.vue_vue_type_script_setup_true_lang-ChwL80JF.js +352 -0
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-Bu64bEVK.js → NavigationTab.vue_vue_type_script_setup_true_lang-CCX9gZ52.js} +5 -5
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-qEkm--BH.js → NoData.vue_vue_type_script_setup_true_lang-DT2L1CAc.js} +1 -1
  13. package/dist/{OverviewView-N0NfgdDr.js → OverviewView-uVj6jdCi.js} +5 -5
  14. package/dist/{Report-emNwoHcT.js → Report-CNKUdP4L.js} +4 -4
  15. package/dist/{ReportEditor-Cms4XXsE.js → ReportEditor-BLwUfj38.js} +6 -6
  16. package/dist/{ReportView-nvpOI3qk.js → ReportView-ZDP3QOwI.js} +7 -7
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-C3hWhvK1.js → SelectComponent.vue_vue_type_script_setup_true_lang-CJaP9yq9.js} +1 -1
  18. package/dist/{Setting-B32ZmcuI.js → Setting-glu98b3A.js} +4 -4
  19. package/dist/{TileEditor-eYARHGC2.js → TileEditor-BmlqAFyc.js} +7 -7
  20. package/dist/{TransitionFade-BnQP-rN4.js → TransitionFade-DKCPXh2R.js} +5 -5
  21. package/dist/app.js +11 -11
  22. package/dist/{helper-8cjX1HJZ.js → helper-CZss0RvH.js} +1 -1
  23. package/dist/{vue-i18n-Fbuacdec.js → vue-i18n-CLA-22OG.js} +1 -1
  24. package/package.json +1 -1
  25. package/dist/MenuTab.vue_vue_type_script_setup_true_lang-6I99YY2U.js +0 -361
@@ -1,15 +1,15 @@
1
- import { defineComponent as O, resolveComponent as b, createBlock as I, openBlock as c, unref as r, isRef as X, withCtx as S, createElementVNode as D, createVNode as k, toDisplayString as E, createTextVNode as Y, onMounted as T, watch as f, ref as j, computed as N, onBeforeMount as Z, onBeforeUnmount as M, createElementBlock as w, Fragment as ee } from "vue";
1
+ import { defineComponent as O, resolveComponent as b, createBlock as I, openBlock as c, unref as r, isRef as X, withCtx as S, createElementVNode as R, createVNode as k, toDisplayString as V, createTextVNode as Y, onMounted as T, watch as f, ref as z, computed as D, onBeforeMount as Z, onBeforeUnmount as M, createElementBlock as w, Fragment as ee } from "vue";
2
2
  import { detectLocale as p, useCoreStore as y } from "@feedmepos/mf-common";
3
- import { u as te, d as C, a as oe, b as re, c as ae, e as ne, f as se, g as le } from "./vue-i18n-Fbuacdec.js";
3
+ import { u as te, d as C, a as oe, b as re, c as ae, e as ne, f as se, g as le } from "./vue-i18n-CLA-22OG.js";
4
4
  import { storeToRefs as $ } from "pinia";
5
- import { u as ue, a as ie, b as ce } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BRk-mwHe.js";
6
- import { _ as me, u as de } from "./NavigationTab.vue_vue_type_script_setup_true_lang-Bu64bEVK.js";
5
+ import { u as ue, a as ie, b as ce } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BfqoIHbA.js";
6
+ import { _ as de, u as me } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CCX9gZ52.js";
7
7
  import { u as U } from "./message-dialog-UoMWOnil.js";
8
8
  const ve = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, fe = /* @__PURE__ */ O({
9
9
  __name: "Dialog",
10
- setup(m) {
10
+ setup(d) {
11
11
  const { t } = te(), a = U(), { isOpened: n, message: u, title: i } = $(U());
12
- return (d, l) => {
12
+ return (m, l) => {
13
13
  const v = b("FmButton"), g = b("FmDialog");
14
14
  return c(), I(g, {
15
15
  modelValue: r(n),
@@ -18,13 +18,13 @@ const ve = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, fe
18
18
  "close-button": !1
19
19
  }, {
20
20
  "dialog-header": S(() => [
21
- Y(E(r(i)), 1)
21
+ Y(V(r(i)), 1)
22
22
  ]),
23
23
  default: S(() => [
24
- D("p", ve, E(r(u)), 1)
24
+ R("p", ve, V(r(u)), 1)
25
25
  ]),
26
26
  "dialog-footer": S(() => [
27
- l[1] || (l[1] = D("div", { class: "grow" }, null, -1)),
27
+ l[1] || (l[1] = R("div", { class: "grow" }, null, -1)),
28
28
  k(v, {
29
29
  label: r(t)("report.common.cancel"),
30
30
  variant: "tertiary",
@@ -39,9 +39,9 @@ const ve = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, fe
39
39
  }, 8, ["modelValue"]);
40
40
  };
41
41
  }
42
- }), x = j(p());
42
+ }), x = z(p());
43
43
  function pe() {
44
- const m = (t) => {
44
+ const d = (t) => {
45
45
  switch (x.value = t, t) {
46
46
  case "zh-CN":
47
47
  C.locale("zh-cn");
@@ -52,21 +52,21 @@ function pe() {
52
52
  }
53
53
  };
54
54
  return T(() => {
55
- m(p());
56
- }), f(() => p(), m, { deep: !0, immediate: !0 }), {
55
+ d(p());
56
+ }), f(() => p(), d, { deep: !0, immediate: !0 }), {
57
57
  currentLocale: x
58
58
  };
59
59
  }
60
60
  C.locale(p() === "zh-CN" ? "zh-cn" : "en");
61
61
  const ge = ["src"], he = ["src"], $e = /* @__PURE__ */ O({
62
62
  __name: "App",
63
- setup(m) {
64
- const { businessId: t, token: a, country: n } = $(oe()), { sessionUser: u, currentBusiness: i, currentCountry: d, registerSidebarComponent: l } = y(), { getRestaurantAndWarehouse: v, getBusinessSetting: g } = re(), { getFeatureFlags: h } = ae(), { version: s } = $(ue()), { getSettings: z } = ne(), { promptLoader: A } = se(), J = N(() => `https://portal-v1.feedme.cc/b/${t.value}/report/CLOSE_UP?showHeader=false&country=${n.value.toUpperCase()}&menuOption=business-report&token=${a.value}&v2=true&reportV5Button=true`), G = N(() => `https://report-v4.feedme.cc?businessId=${t.value}&country=${n.value}&token=${a.value}&reportV3Button=true`);
63
+ setup(d) {
64
+ const { businessId: t, token: a, country: n } = $(oe()), { sessionUser: u, currentBusiness: i, currentCountry: m, registerSidebarComponent: l } = y(), { getRestaurantAndWarehouse: v, getBusinessSetting: g } = re(), { getFeatureFlags: h } = ae(), { version: s } = $(ue()), { getSettings: j } = ne(), { promptLoader: A } = se(), J = D(() => `https://portal-v1.feedmedev.cc/b/${t.value}/report/CLOSE_UP?showHeader=false&country=${n.value.toUpperCase()}&menuOption=business-report&token=${a.value}&v2=true&reportV5Button=true`), W = D(() => `https://report-v4.feedmedev.cc?businessId=${t.value}&country=${n.value}&token=${a.value}&reportV3Button=true`);
65
65
  f(
66
- [() => i.value, () => u.value, () => d.value],
66
+ [() => i.value, () => u.value, () => m.value],
67
67
  () => {
68
68
  var o, e;
69
- i.value && u.value && d.value && (t.value = ((o = i.value) == null ? void 0 : o.id) ?? "", a.value = ((e = u.value) == null ? void 0 : e.token) ?? "", n.value = d.value ?? "");
69
+ i.value && u.value && m.value && (t.value = ((o = i.value) == null ? void 0 : o.id) ?? "", a.value = ((e = u.value) == null ? void 0 : e.token) ?? "", n.value = m.value ?? "");
70
70
  },
71
71
  { immediate: !0 }
72
72
  );
@@ -91,36 +91,36 @@ const ge = ["src"], he = ["src"], $e = /* @__PURE__ */ O({
91
91
  f(s, () => {
92
92
  ["v3", "v4"].includes(s.value) ? y().hideSidebarToggle(!0) : y().hideSidebarToggle(!1);
93
93
  }), Z(() => {
94
- l(me);
94
+ l(de);
95
95
  }), T(() => {
96
- console.log("5.14.2", !0), window.addEventListener("message", F), window.addEventListener("message", B);
96
+ console.log("5.14.3-beta.0", !0), window.addEventListener("message", F), window.addEventListener("message", B);
97
97
  });
98
- const L = ie(), R = de();
98
+ const E = ie(), L = me();
99
99
  M(() => {
100
- window.removeEventListener("message", F), window.removeEventListener("message", B), L.$dispose(), R.$dispose();
100
+ window.removeEventListener("message", F), window.removeEventListener("message", B), E.$dispose(), L.$dispose();
101
101
  });
102
- const { getReports: P, getOverviewReport: H, getReportConfig: V } = L, { getSchema: K } = ce(), { fetchSchedules: Q } = R, { init: W } = le(), _ = j("v5");
102
+ const { getReports: G, getOverviewReport: K, getReportConfig: N } = E, { getSchema: P } = ce(), { fetchSchedules: q } = L, { init: H } = le(), _ = z("v5");
103
103
  return f(
104
104
  () => t.value,
105
105
  () => {
106
106
  t.value !== "" && A(async () => {
107
- await W({
108
- apiKey: "6GhcttsJ9Rj9cTevcdrpin",
107
+ await H({
108
+ apiKey: "MaGoXrEWuEJNpWgKTqseee",
109
109
  url: "https://flag.feedme.farm/api/v1/",
110
110
  enableAnalytics: !1,
111
111
  cacheFlags: !1
112
112
  });
113
- const o = await V();
113
+ const o = await N();
114
114
  _.value = o.version, s.value = _.value, await Promise.all([
115
115
  h(),
116
- V(),
117
- H(),
118
- P(),
116
+ N(),
119
117
  K(),
120
- Q(),
118
+ G(),
119
+ P(),
120
+ q(),
121
121
  g(),
122
122
  v(),
123
- z()
123
+ j()
124
124
  ]);
125
125
  });
126
126
  },
@@ -128,7 +128,7 @@ const ge = ["src"], he = ["src"], $e = /* @__PURE__ */ O({
128
128
  immediate: !0
129
129
  }
130
130
  ), pe(), (o, e) => {
131
- const q = b("router-view");
131
+ const Q = b("router-view");
132
132
  return c(), w(ee, null, [
133
133
  k(fe),
134
134
  r(s) === "v3" ? (c(), w("iframe", {
@@ -138,8 +138,8 @@ const ge = ["src"], he = ["src"], $e = /* @__PURE__ */ O({
138
138
  }, null, 8, ge)) : r(s) === "v4" ? (c(), w("iframe", {
139
139
  key: 1,
140
140
  class: "bg-white h-full w-full",
141
- src: G.value
142
- }, null, 8, he)) : (c(), I(q, { key: 2 }))
141
+ src: W.value
142
+ }, null, 8, he)) : (c(), I(Q, { key: 2 }))
143
143
  ], 64);
144
144
  };
145
145
  }
@@ -1,4 +1,4 @@
1
- import { l as Pe, a as ee, F as Z, h as z, b as Ce, c as Qe, q as nt, d as ye, e as at, m as st } from "./vue-i18n-Fbuacdec.js";
1
+ import { l as Pe, a as ee, F as Z, h as z, b as Ce, c as Qe, q as nt, d as ye, e as at, m as st } from "./vue-i18n-CLA-22OG.js";
2
2
  import { storeToRefs as G, defineStore as Me } from "pinia";
3
3
  import { ref as B, computed as Ae, watch as Je, h as lt, defineComponent as ot, mergeModels as xe, useModel as _t, resolveComponent as Ne, createBlock as ut, openBlock as dt, withCtx as be, createElementVNode as ct, createVNode as qe, renderSlot as pt, createTextVNode as yt, toDisplayString as ft } from "vue";
4
4
  import { useSnackbar as Be, components as $t } from "@feedmepos/ui-library";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as P, resolveComponent as b, createBlock as D, openBlock as i, withCtx as R, createCommentVNode as S, createElementVNode as V, toDisplayString as E, renderSlot as N, mergeModels as k, useModel as v, ref as x, watch as F, createElementBlock as Y, createVNode as y, unref as u } from "vue";
2
- import { u as j, d as o, N as U, C as q } from "./vue-i18n-Fbuacdec.js";
3
- import { d as T } from "./helper-8cjX1HJZ.js";
2
+ import { u as j, d as o, N as U, C as q } from "./vue-i18n-CLA-22OG.js";
3
+ import { d as T } from "./helper-CZss0RvH.js";
4
4
  import { detectLocale as M } from "@feedmepos/mf-common";
5
5
  const z = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, _ = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, O = /* @__PURE__ */ P({
6
6
  __name: "FilterChip",
@@ -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-Bu64bEVK.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CCX9gZ52.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-Fbuacdec.js";
5
+ import { u as q, f as w } from "./vue-i18n-CLA-22OG.js";
6
6
  import { useRoute as B } from "vue-router";
7
7
  const $ = {
8
8
  key: 1,
@@ -1,11 +1,11 @@
1
1
  import { computed as y, defineComponent as ee, mergeModels as me, useModel as te, ref as h, onMounted as Se, nextTick as X, watch as J, resolveComponent as V, createElementBlock as N, openBlock as W, Fragment as oe, renderSlot as pe, createVNode as B, normalizeStyle as ne, unref as l, createElementVNode as P, toDisplayString as ze, withCtx as q, createBlock as U, createCommentVNode as he, normalizeClass as Pe, h as bt, renderList as _t, createTextVNode as Kt, onUnmounted as Zt, resolveDynamicComponent as Qt, withDirectives as ea, vShow as ta } from "vue";
2
- import { W as F, d as Ee, v as $e, e as Ye, f as kt, q as aa, R as Fe, g as la } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BRk-mwHe.js";
3
- import { u as Me, b as at, a as lt } from "./vue-i18n-Fbuacdec.js";
4
- import { a as wt } from "./helper-8cjX1HJZ.js";
2
+ import { W as F, d as Ee, v as $e, e as Ye, f as kt, q as aa, R as Fe, g as la } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BfqoIHbA.js";
3
+ import { u as Me, b as at, a as lt } from "./vue-i18n-CLA-22OG.js";
4
+ import { a as wt } from "./helper-CZss0RvH.js";
5
5
  import { storeToRefs as Le, defineStore as oa } from "pinia";
6
- import { a as na } from "./SelectComponent.vue_vue_type_script_setup_true_lang-C3hWhvK1.js";
6
+ import { a as na } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CJaP9yq9.js";
7
7
  import { r as xe } from "./i18n-Cif1I9J2.js";
8
- import { _ as xt } from "./NoData.vue_vue_type_script_setup_true_lang-qEkm--BH.js";
8
+ import { _ as xt } from "./NoData.vue_vue_type_script_setup_true_lang-DT2L1CAc.js";
9
9
  import { components as sa, useSnackbar as Tt, useBreakpoints as ra } from "@feedmepos/ui-library";
10
10
  var Je = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(Je || {}), Z = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(Z || {}), Ke = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(Ke || {}), Ze = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Ze || {}), Qe = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(Qe || {}), et = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(et || {}), tt = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(tt || {});
11
11
  F.Circular, F.Table, F.BarChart, F.LineChart, F.StackBarChart, F.StackLineChart, F.Scorecard, F.Spacer;
@@ -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-CUUKwwv6.js";
6
- import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BLPR2QZJ.js";
7
- import { d as Bi, a as Kn, h as qn, F as Gn, u as Zn, i as ys, b as oa } from "./vue-i18n-Fbuacdec.js";
5
+ import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-SKf2r2G8.js";
6
+ import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-D_vOomEW.js";
7
+ import { d as Bi, a as Kn, h as qn, F as Gn, u as Zn, i as ys, b as oa } from "./vue-i18n-CLA-22OG.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-qEkm--BH.js";
11
- import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-Bu64bEVK.js";
10
+ import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-DT2L1CAc.js";
11
+ import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CCX9gZ52.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 Q, mergeModels as Ae, useModel as J, computed as Y, resolveComponent as K, createElementBlock as R, openBlock as b, createElementVNode as t, createCommentVNode as j, normalizeClass as je, Fragment as xe, createBlock as M, withCtx as be, toDisplayString as C, renderList as Ce, createVNode as l, unref as r, normalizeStyle as We, createTextVNode as Ze, ref as B, onUnmounted as Se, watch as we, isRef as $e, h as F, resolveDynamicComponent as Ve, mergeProps as Be, onMounted as Ye } from "vue";
2
2
  import { useRouter as ue, useRoute as et } from "vue-router";
3
- import { u as W, I as ge, d as Me, s as tt, e as ke, f as De, b as fe, v as ot, o as at, t as Fe, w as Ke, x as Te, y as Ne, z as Ee, A as lt, B as nt, E as st, G as _e, H as Oe, J as it, K as rt, L as dt, M as mt } from "./vue-i18n-Fbuacdec.js";
3
+ import { u as W, I as ge, d as Me, s as tt, e as ke, f as De, b as fe, v as ot, o as at, t as Fe, w as Ke, x as Te, y as Ne, z as Ee, A as lt, B as nt, E as st, G as _e, H as Oe, J as it, K as rt, L as dt, M as mt } from "./vue-i18n-CLA-22OG.js";
4
4
  import { u as Ue } from "./message-dialog-UoMWOnil.js";
5
5
  import { useSnackbar as ve } from "@feedmepos/ui-library";
6
6
  import { storeToRefs as Ie } from "pinia";
7
- import { _ as Re } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BLPR2QZJ.js";
7
+ import { _ as Re } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-D_vOomEW.js";
8
8
  const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, ct = { class: "w-[100%]" }, ut = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, ft = { class: "w-[100%] flex flex-row gap-[4px]" }, vt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, gt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, yt = {
9
9
  key: 0,
10
10
  class: "w-[24px] flex items-center"