@feedmepos/mf-report 5.13.0-beta.0 → 5.13.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 (24) hide show
  1. package/dist/{App-Ct3yuLBM.js → App-C_l_Aeaj.js} +33 -33
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-BVh9CBG8.js → BaseDialog.vue_vue_type_script_setup_true_lang-Dz3P3ljT.js} +1 -1
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-DIO5R9yT.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CgLjbbN6.js} +2 -2
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-Dm_oN-5O.js → Default.vue_vue_type_script_setup_true_lang-Buyu7K9V.js} +2 -2
  5. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-wpgkxZrA.js → DynamicWidget.vue_vue_type_script_setup_true_lang-cITdj1M4.js} +5 -5
  6. package/dist/{InsightView-DRwRR0H4.js → InsightView-Cn9Epu_a.js} +5 -5
  7. package/dist/{Integration-BLRYZdC-.js → Integration-BRgyDCRz.js} +2 -2
  8. package/dist/{Integrations-Ca0Xbhk1.js → Integrations-DnfCNEU_.js} +3 -3
  9. package/dist/{Layout-C1VAizPU.js → Layout-CnoUAHO2.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BUhdTqWm.js → MenuTab.vue_vue_type_script_setup_true_lang-VbzmzVWE.js} +6 -6
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CyvrW5EA.js → NavigationTab.vue_vue_type_script_setup_true_lang-CzP2mZaF.js} +5 -5
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-DB3zDUVV.js → NoData.vue_vue_type_script_setup_true_lang-Gln3UbEF.js} +1 -1
  13. package/dist/{OverviewView-CyMUY5vR.js → OverviewView-C93hW_o_.js} +5 -5
  14. package/dist/{Report-C5VE4kBy.js → Report-CdCufgxd.js} +4 -4
  15. package/dist/{ReportEditor-JeuV4I-i.js → ReportEditor-CimIa3T0.js} +6 -6
  16. package/dist/{ReportView-Cdotft9j.js → ReportView-CmU7z9KV.js} +7 -7
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-D_NmiN5U.js → SelectComponent.vue_vue_type_script_setup_true_lang-CJBY5CtV.js} +1 -1
  18. package/dist/{Setting-T1QsZfb_.js → Setting-DRARul1q.js} +4 -4
  19. package/dist/{TileEditor-CjtPunhn.js → TileEditor-B3M93VEM.js} +7 -7
  20. package/dist/{TransitionFade-lILBAWNM.js → TransitionFade-DRkD2C0U.js} +5 -5
  21. package/dist/app.js +11 -11
  22. package/dist/{helper-D4-BWsJj.js → helper-DgCafQmS.js} +1 -1
  23. package/dist/{vue-i18n-BMM8dWbV.js → vue-i18n-B1WI_h8l.js} +1 -1
  24. package/package.json +1 -1
@@ -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 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";
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";
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-BMM8dWbV.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-B1WI_h8l.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-BVh9CBG8.js";
6
- import { _ as de, u as me } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CyvrW5EA.js";
5
+ import { u as ue, a as ie, b as ce } from "./BaseDialog.vue_vue_type_script_setup_true_lang-Dz3P3ljT.js";
6
+ import { _ as me, u as de } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CzP2mZaF.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(d) {
10
+ setup(m) {
11
11
  const { t } = te(), a = U(), { isOpened: n, message: u, title: i } = $(U());
12
- return (m, l) => {
12
+ return (d, 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(V(r(i)), 1)
21
+ Y(E(r(i)), 1)
22
22
  ]),
23
23
  default: S(() => [
24
- R("p", ve, V(r(u)), 1)
24
+ D("p", ve, E(r(u)), 1)
25
25
  ]),
26
26
  "dialog-footer": S(() => [
27
- l[1] || (l[1] = R("div", { class: "grow" }, null, -1)),
27
+ l[1] || (l[1] = D("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 = z(p());
42
+ }), x = j(p());
43
43
  function pe() {
44
- const d = (t) => {
44
+ const m = (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
- d(p());
56
- }), f(() => p(), d, { deep: !0, immediate: !0 }), {
55
+ m(p());
56
+ }), f(() => p(), m, { 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(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`);
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`);
65
65
  f(
66
- [() => i.value, () => u.value, () => m.value],
66
+ [() => i.value, () => u.value, () => d.value],
67
67
  () => {
68
68
  var o, e;
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 ?? "");
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 ?? "");
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(de);
94
+ l(me);
95
95
  }), T(() => {
96
- console.log("5.13.0-beta.0", !0), window.addEventListener("message", F), window.addEventListener("message", B);
96
+ console.log("5.13.0", !0), window.addEventListener("message", F), window.addEventListener("message", B);
97
97
  });
98
- const E = ie(), L = me();
98
+ const L = ie(), R = de();
99
99
  M(() => {
100
- window.removeEventListener("message", F), window.removeEventListener("message", B), E.$dispose(), L.$dispose();
100
+ window.removeEventListener("message", F), window.removeEventListener("message", B), L.$dispose(), R.$dispose();
101
101
  });
102
- const { getReports: G, getOverviewReport: K, getReportConfig: N } = E, { getSchema: P } = ce(), { fetchSchedules: q } = L, { init: H } = le(), _ = z("v5");
102
+ const { getReports: P, getOverviewReport: H, getReportConfig: V } = L, { getSchema: K } = ce(), { fetchSchedules: Q } = R, { init: W } = le(), _ = j("v5");
103
103
  return f(
104
104
  () => t.value,
105
105
  () => {
106
106
  t.value !== "" && A(async () => {
107
- await H({
108
- apiKey: "MaGoXrEWuEJNpWgKTqseee",
107
+ await W({
108
+ apiKey: "6GhcttsJ9Rj9cTevcdrpin",
109
109
  url: "https://flag.feedme.farm/api/v1/",
110
110
  enableAnalytics: !1,
111
111
  cacheFlags: !1
112
112
  });
113
- const o = await N();
113
+ const o = await V();
114
114
  _.value = o.version, s.value = _.value, await Promise.all([
115
115
  h(),
116
- N(),
117
- K(),
118
- G(),
116
+ V(),
117
+ H(),
119
118
  P(),
120
- q(),
119
+ K(),
120
+ Q(),
121
121
  g(),
122
122
  v(),
123
- j()
123
+ z()
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: W.value
142
- }, null, 8, he)) : (c(), I(Q, { key: 2 }))
141
+ src: G.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 X, F as K, h as W, b as Ce, c as Qe, q as it, d as de, e as nt, m as at } from "./vue-i18n-BMM8dWbV.js";
1
+ import { l as Pe, a as X, F as K, h as W, b as Ce, c as Qe, q as it, d as de, e as nt, m as at } from "./vue-i18n-B1WI_h8l.js";
2
2
  import { storeToRefs as G, defineStore as Le } from "pinia";
3
3
  import { ref as B, computed as Ae, watch as Je, h as st, defineComponent as lt, mergeModels as xe, useModel as ot, resolveComponent as Ne, createBlock as _t, openBlock as ut, withCtx as Re, createElementVNode as dt, createVNode as qe, renderSlot as ct, createTextVNode as pt, toDisplayString as yt } from "vue";
4
4
  import { useSnackbar as Be, components as ft } 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-BMM8dWbV.js";
3
- import { d as T } from "./helper-D4-BWsJj.js";
2
+ import { u as j, d as o, N as U, C as q } from "./vue-i18n-B1WI_h8l.js";
3
+ import { d as T } from "./helper-DgCafQmS.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-CyvrW5EA.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CzP2mZaF.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-BMM8dWbV.js";
5
+ import { u as q, f as w } from "./vue-i18n-B1WI_h8l.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 m, defineComponent as Q, useModel as ee, ref as u, watchEffect as Fe, resolveComponent as z, createElementBlock as q, openBlock as W, Fragment as le, renderSlot as he, createVNode as B, normalizeStyle as oe, unref as n, createElementVNode as V, toDisplayString as Re, withCtx as I, createBlock as X, createCommentVNode as de, normalizeClass as Be, h as vt, watch as be, nextTick as gt, renderList as xt, mergeModels as St, createTextVNode as Jt, onMounted as Kt, onUnmounted as Zt, resolveDynamicComponent as Qt, withDirectives as ea, vShow as ta } from "vue";
2
- import { W as C, a as Le, v as Ae, d as Xe, e as _t, q as aa, R as ke, g as la } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BVh9CBG8.js";
3
- import { u as Pe, b as Qe, a as et } from "./vue-i18n-BMM8dWbV.js";
4
- import { a as yt } from "./helper-D4-BWsJj.js";
2
+ import { W as C, a as Le, v as Ae, d as Xe, e as _t, q as aa, R as ke, g as la } from "./BaseDialog.vue_vue_type_script_setup_true_lang-Dz3P3ljT.js";
3
+ import { u as Pe, b as Qe, a as et } from "./vue-i18n-B1WI_h8l.js";
4
+ import { a as yt } from "./helper-DgCafQmS.js";
5
5
  import { storeToRefs as j, defineStore as oa } from "pinia";
6
- import { a as na } from "./SelectComponent.vue_vue_type_script_setup_true_lang-D_NmiN5U.js";
6
+ import { a as na } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CJBY5CtV.js";
7
7
  import { r as we } from "./i18n-Cif1I9J2.js";
8
- import { _ as wt } from "./NoData.vue_vue_type_script_setup_true_lang-DB3zDUVV.js";
8
+ import { _ as wt } from "./NoData.vue_vue_type_script_setup_true_lang-Gln3UbEF.js";
9
9
  import { components as sa, useSnackbar as Tt, useBreakpoints as ra } from "@feedmepos/ui-library";
10
10
  var Ue = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(Ue || {}), K = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(K || {}), Ge = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(Ge || {}), je = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(je || {}), Je = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(Je || {}), Ke = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Ke || {}), Ze = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Ze || {});
11
11
  C.Circular, C.Table, C.BarChart, C.LineChart, C.StackBarChart, C.StackLineChart, C.Scorecard, C.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-Dm_oN-5O.js";
6
- import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DIO5R9yT.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-BMM8dWbV.js";
5
+ import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-Buyu7K9V.js";
6
+ import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CgLjbbN6.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-B1WI_h8l.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-DB3zDUVV.js";
11
- import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CyvrW5EA.js";
10
+ import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-Gln3UbEF.js";
11
+ import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CzP2mZaF.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 Z, mergeModels as Me, useModel as oe, computed as q, resolveComponent as U, createElementBlock as h, openBlock as i, createElementVNode as t, createCommentVNode as L, normalizeClass as Ce, Fragment as B, renderList as Y, createBlock as P, createVNode as a, withCtx as G, toDisplayString as A, unref as d, renderSlot as st, ref as H, onUnmounted as je, watch as Ae, isRef as Ke, h as F, resolveDynamicComponent as Ie, mergeProps as at, onMounted as lt } from "vue";
2
2
  import { useRouter as ke, useRoute as it } from "vue-router";
3
- import { u as ae, I as Se, d as We, s as rt, e as Ne, f as Le, b as Ve, v as dt, o as ct, t as Oe, w as Be, x as Ee, y as qe, z as tt, A as mt, B as ut, E as pt, G as De, H as Je, J as ft, K as vt, L as gt, M as yt } from "./vue-i18n-BMM8dWbV.js";
3
+ import { u as ae, I as Se, d as We, s as rt, e as Ne, f as Le, b as Ve, v as dt, o as ct, t as Oe, w as Be, x as Ee, y as qe, z as tt, A as mt, B as ut, E as pt, G as De, H as Je, J as ft, K as vt, L as gt, M as yt } from "./vue-i18n-B1WI_h8l.js";
4
4
  import { u as Ye } from "./message-dialog-UoMWOnil.js";
5
5
  import { useSnackbar as $e } from "@feedmepos/ui-library";
6
6
  import { storeToRefs as ze } from "pinia";
7
- import { _ as He } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DIO5R9yT.js";
7
+ import { _ as He } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CgLjbbN6.js";
8
8
  const xt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, bt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, _t = {
9
9
  key: 0,
10
10
  class: "w-[24px] flex items-center"