@feedmepos/mf-report 5.4.31 → 5.4.32-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.
@@ -1,6 +1,6 @@
1
- import { defineComponent as O, resolveComponent as C, createBlock as T, openBlock as m, unref as r, isRef as Y, withCtx as w, createElementVNode as N, createVNode as $, toDisplayString as q, createTextVNode as Z, onMounted as j, watch as p, ref as z, computed as I, onBeforeMount as M, onBeforeUnmount as ee, createElementBlock as k, Fragment as te } from "vue";
2
- import { detectLocale as g, useCoreStore as b } from "@feedmepos/mf-common";
3
- import { u as oe, d as F, a as re, b as ne, c as se, e as ae, f as le, g as ue } from "./global-loader-D9UMph7l.js";
1
+ import { defineComponent as O, resolveComponent as C, createBlock as T, openBlock as m, unref as r, isRef as Y, withCtx as w, createElementVNode as N, createVNode as $, toDisplayString as q, createTextVNode as Z, onMounted as j, watch as p, ref as z, computed as I, onBeforeMount as M, onBeforeUnmount as ee, createElementBlock as b, Fragment as te } from "vue";
2
+ import { detectLocale as g, useCoreStore as k } from "@feedmepos/mf-common";
3
+ import { u as oe, d as F, a as re, b as ne, c as ae, e as se, f as le, g as ue } from "./global-loader-D9UMph7l.js";
4
4
  import { storeToRefs as B } from "pinia";
5
5
  import { u as ie, a as ce } from "./v4-D67i4aLh.js";
6
6
  import { u as me } from "./report-schema-BEEUlheS.js";
@@ -10,12 +10,12 @@ import { useRoute as fe } from "vue-router";
10
10
  const pe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, ge = /* @__PURE__ */ O({
11
11
  __name: "Dialog",
12
12
  setup(d) {
13
- const { t } = oe(), n = U(), { isOpened: s, message: i, title: c } = B(U());
13
+ const { t } = oe(), n = U(), { isOpened: a, message: i, title: c } = B(U());
14
14
  return (h, u) => {
15
15
  const v = C("FmButton"), y = C("FmDialog");
16
16
  return m(), T(y, {
17
- modelValue: r(s),
18
- "onUpdate:modelValue": u[0] || (u[0] = (_) => Y(s) ? s.value = _ : null),
17
+ modelValue: r(a),
18
+ "onUpdate:modelValue": u[0] || (u[0] = (_) => Y(a) ? a.value = _ : null),
19
19
  overlay: "",
20
20
  "close-button": !1
21
21
  }, {
@@ -63,13 +63,13 @@ F.locale(g() === "zh-CN" ? "zh-cn" : "en");
63
63
  const ye = ["src"], _e = ["src"], Le = /* @__PURE__ */ O({
64
64
  __name: "App",
65
65
  setup(d) {
66
- const { businessId: t, token: n, country: s } = B(re()), { sessionUser: i, currentBusiness: c, currentCountry: h, registerSidebarComponent: u } = b(), { getRestaurantAndWarehouse: v, getBusinessSetting: y } = ne(), { getFeatureFlags: _ } = se(), { version: a } = B(ie()), { getSettings: A } = ae(), l = fe(), { promptLoader: J } = le(), G = I(() => `https://portal-v1.feedme.cc/b/${t.value}/report/CLOSE_UP?showHeader=false&country=${s.value.toUpperCase()}&menuOption=business-report&token=${n.value}&v2=true&reportV5Button=true`), P = I(() => `https://report-v4.feedme.cc?businessId=${t.value}&country=${s.value}&token=${n.value}&reportV3Button=true`);
66
+ const { businessId: t, token: n, country: a } = B(re()), { sessionUser: i, currentBusiness: c, currentCountry: h, registerSidebarComponent: u } = k(), { getRestaurantAndWarehouse: v, getBusinessSetting: y } = ne(), { getFeatureFlags: _ } = ae(), { version: s } = B(ie()), { getSettings: A } = se(), l = fe(), { promptLoader: J } = le(), G = I(() => `https://portal-v1.feedme.cc/b/${t.value}/report/CLOSE_UP?showHeader=false&country=${a.value.toUpperCase()}&menuOption=business-report&token=${n.value}&v2=true&reportV5Button=true`), P = I(() => `https://report-v4.feedme.cc?businessId=${t.value}&country=${a.value}&token=${n.value}&reportV3Button=true`);
67
67
  p(
68
68
  // if route query pass in the detail we switch accordingly
69
69
  [() => l.query, () => c.value, () => i.value],
70
70
  () => {
71
71
  var o, e, f;
72
- l.query.token && l.query.businessId && l.query.country ? (t.value = l.query.businessId, n.value = l.query.token, s.value = l.query.country) : ((o = c.value) != null && o.id && (t.value = c.value.id), (e = i.value) != null && e.token && (n.value = (f = i.value) == null ? void 0 : f.token), h.value && (s.value = h.value));
72
+ l.query.token && l.query.businessId && l.query.country ? (t.value = l.query.businessId, n.value = l.query.token, a.value = l.query.country) : ((o = c.value) != null && o.id && (t.value = c.value.id), (e = i.value) != null && e.token && (n.value = (f = i.value) == null ? void 0 : f.token), h.value && (a.value = h.value));
73
73
  },
74
74
  { immediate: !0 }
75
75
  );
@@ -86,17 +86,17 @@ const ye = ["src"], _e = ["src"], Le = /* @__PURE__ */ O({
86
86
  if (typeof o.data == "string")
87
87
  try {
88
88
  const e = JSON.parse(o.data);
89
- (e == null ? void 0 : e.v5) === !0 ? a.value = S.value : (e == null ? void 0 : e.v3) === !0 && (a.value = "v3");
89
+ (e == null ? void 0 : e.v5) === !0 ? s.value = S.value : (e == null ? void 0 : e.v3) === !0 && (s.value = "v3");
90
90
  } catch (e) {
91
91
  console.error(e);
92
92
  }
93
93
  }
94
- p(a, () => {
95
- ["v3", "v4"].includes(a.value) ? b().hideSidebarToggle(!0) : b().hideSidebarToggle(!1);
94
+ p(s, () => {
95
+ ["v3", "v4"].includes(s.value) ? k().hideSidebarToggle(!0) : k().hideSidebarToggle(!1);
96
96
  }), M(() => {
97
97
  u(de);
98
98
  }), j(() => {
99
- console.log("5.4.31", !0), window.addEventListener("message", R), window.addEventListener("message", L);
99
+ console.log("5.4.32-beta.0", !0), window.addEventListener("message", R), window.addEventListener("message", L);
100
100
  });
101
101
  const V = ce(), D = ve();
102
102
  ee(() => {
@@ -114,7 +114,7 @@ const ye = ["src"], _e = ["src"], Le = /* @__PURE__ */ O({
114
114
  cacheFlags: !1
115
115
  });
116
116
  const o = await E();
117
- S.value = o.version, a.value = S.value, await Promise.all([
117
+ S.value = o.version, s.value = S.value, await Promise.all([
118
118
  _(),
119
119
  E(),
120
120
  K(),
@@ -132,13 +132,13 @@ const ye = ["src"], _e = ["src"], Le = /* @__PURE__ */ O({
132
132
  }
133
133
  ), he(), (o, e) => {
134
134
  const f = C("router-view");
135
- return m(), k(te, null, [
135
+ return m(), b(te, null, [
136
136
  $(ge),
137
- r(a) === "v3" ? (m(), k("iframe", {
137
+ r(s) === "v3" ? (m(), b("iframe", {
138
138
  key: 0,
139
139
  class: "bg-white h-full w-full",
140
140
  src: G.value
141
- }, null, 8, ye)) : r(a) === "v4" ? (m(), k("iframe", {
141
+ }, null, 8, ye)) : r(s) === "v4" ? (m(), b("iframe", {
142
142
  key: 1,
143
143
  class: "bg-white h-full w-full",
144
144
  src: P.value
package/dist/app.js CHANGED
@@ -276,6 +276,7 @@ const r = {
276
276
  general: "General"
277
277
  },
278
278
  sql: {
279
+ refreshTooltip: "Repopulate the fields based on the dates selected in Preview.",
279
280
  general: "General"
280
281
  }
281
282
  },
@@ -731,6 +732,7 @@ const r = {
731
732
  general: "一般"
732
733
  },
733
734
  sql: {
735
+ refreshTooltip: "根据预览中选择的日期重新填充字段。",
734
736
  general: "一般"
735
737
  }
736
738
  },
@@ -1183,6 +1185,7 @@ const r = {
1183
1185
  general: "ทั่วไป"
1184
1186
  },
1185
1187
  sql: {
1188
+ refreshTooltip: "เติมข้อมูลใหม่จากวันที่ที่เลือกในดูตัวอย่าง",
1186
1189
  general: "ทั่วไป"
1187
1190
  }
1188
1191
  },
@@ -1432,7 +1435,7 @@ const p = {
1432
1435
  "en-US": a,
1433
1436
  "zh-CN": i,
1434
1437
  "th-TH": c
1435
- }, u = e(() => import("./App-BEYrnl4C.js"));
1438
+ }, u = e(() => import("./App-DVsWRfsp.js"));
1436
1439
  export {
1437
1440
  u as FmApp,
1438
1441
  p as i18nMessages,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-report",
3
- "version": "5.4.31",
3
+ "version": "5.4.32-beta.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],