@feedmepos/mf-report 5.27.43 → 5.27.44-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 (26) hide show
  1. package/dist/{App-B9MK4itI.js → App-g4upGnCO.js} +38 -38
  2. package/dist/{DateRangeSelect-BiUJhusu.js → DateRangeSelect-BaqOWfOO.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-Dc4A0TR6.js → Default.vue_vue_type_script_setup_true_lang-DiCY3oUq.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-OfLQLoGN.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DaBfqFde.js} +4 -4
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-XNBAx3y7.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BZHalozc.js} +979 -975
  6. package/dist/{InsightView-CvL0ImuM.js → InsightView-BTLcdBsf.js} +4 -4
  7. package/dist/{Integration-UEm-6GRR.js → Integration-C413T3YN.js} +3 -3
  8. package/dist/{Integrations-CkZCU8V4.js → Integrations-CS6iPGS6.js} +2 -2
  9. package/dist/{Layout-BTgmodvP.js → Layout-B8toetKS.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-jd8QMhm_.js → MenuTab.vue_vue_type_script_setup_true_lang-CTAU7IJZ.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DytlZDrY.js → NavigationTab.vue_vue_type_script_setup_true_lang-wZhpi4dy.js} +3 -3
  12. package/dist/{OverviewView-B2IPMxjG.js → OverviewView-BSKa5nev.js} +4 -4
  13. package/dist/{Report-DP50hDux.js → Report-CO4ni0Qn.js} +3 -3
  14. package/dist/{ReportEditor-DFpD7aii.js → ReportEditor-BC3Zx1el.js} +6 -6
  15. package/dist/{ReportView-CX3ME0lO.js → ReportView-B8d5oSBF.js} +6 -6
  16. package/dist/{Setting-Dx1els_S.js → Setting-BjuCDpjw.js} +3 -3
  17. package/dist/{Template-gzZCGWsF.js → Template-Bfxv8ik_.js} +3 -3
  18. package/dist/{TileEditor-xx2-R0VR.js → TileEditor-CZAxAFAK.js} +1176 -1184
  19. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-CqKoz0AF.js → TilePageStack.vue_vue_type_script_setup_true_lang-B75NRl02.js} +2 -2
  20. package/dist/{TransitionFade-D0xq5-sR.js → TransitionFade-CP-LH3lo.js} +4 -4
  21. package/dist/{app-DMG_qnyd.js → app-BJWzjiL_.js} +500 -497
  22. package/dist/app.js +1 -1
  23. package/dist/assets/{formatChartData.worker-D54YtSfh.js → formatChartData.worker-NxArcyZE.js} +2 -2
  24. package/dist/assets/{processTableData.worker-Bz62a8-o.js → processTableData.worker-typkqQfh.js} +2 -2
  25. package/dist/{useRestaurantPermission-yP74i3ml.js → useRestaurantPermission-lYFAGnmp.js} +1 -1
  26. package/package.json +1 -1
@@ -1,39 +1,39 @@
1
- import { defineComponent as me, resolveComponent as Y, createBlock as pe, openBlock as C, unref as u, isRef as Ne, withCtx as W, createElementVNode as oe, createVNode as Z, toDisplayString as se, createTextVNode as $e, onMounted as fe, watch as k, ref as U, computed as ie, onBeforeMount as xe, onBeforeUnmount as Je, createElementBlock as H, Fragment as Qe } from "vue";
2
- import { detectLocale as j, useCoreStore as V } from "@feedmepos/mf-common";
3
- import { d as T, u as Ue, a as ce, b as je, c as de, e as Pe, f as Ge, g as X } from "./app-DMG_qnyd.js";
1
+ import { defineComponent as me, resolveComponent as Y, createBlock as pe, openBlock as C, unref as u, isRef as Fe, withCtx as G, createElementVNode as oe, createVNode as Z, toDisplayString as se, createTextVNode as $e, onMounted as fe, watch as k, ref as U, computed as ie, onBeforeMount as xe, onBeforeUnmount as Je, createElementBlock as H, Fragment as Qe } from "vue";
2
+ import { detectLocale as j, useCoreStore as X } from "@feedmepos/mf-common";
3
+ import { d as T, u as Ue, a as ce, b as je, c as de, e as We, f as Ke, g as V } from "./app-BJWzjiL_.js";
4
4
  import { storeToRefs as q } from "pinia";
5
- import { u as Ke, a as We } from "./_plugin-vue_export-helper-kkiiQoKl.js";
6
- import { u as He, a as Ve } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-XNBAx3y7.js";
7
- import { u as Xe, _ as Ye } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DytlZDrY.js";
5
+ import { u as Pe, a as Ge } from "./_plugin-vue_export-helper-kkiiQoKl.js";
6
+ import { u as He, a as Xe } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BZHalozc.js";
7
+ import { u as Ve, _ as Ye } from "./NavigationTab.vue_vue_type_script_setup_true_lang-wZhpi4dy.js";
8
8
  import { u as ue } from "./message-dialog-UoMWOnil.js";
9
9
  import { useRoute as Ze, useRouter as Me } from "vue-router";
10
10
  const et = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, tt = /* @__PURE__ */ me({
11
11
  __name: "Dialog",
12
12
  setup(O) {
13
- const { t: c } = Ke(), g = ue(), { isOpened: y, message: R, title: L } = q(ue());
13
+ const { t: c } = Pe(), g = ue(), { isOpened: y, message: R, title: L } = q(ue());
14
14
  return (z, _) => {
15
- const B = Y("FmButton"), P = Y("FmDialog");
16
- return C(), pe(P, {
15
+ const N = Y("FmButton"), W = Y("FmDialog");
16
+ return C(), pe(W, {
17
17
  modelValue: u(y),
18
- "onUpdate:modelValue": _[0] || (_[0] = (G) => Ne(y) ? y.value = G : null),
18
+ "onUpdate:modelValue": _[0] || (_[0] = (K) => Fe(y) ? y.value = K : null),
19
19
  overlay: "",
20
20
  "close-button": !1,
21
21
  "z-index": 3e3
22
22
  }, {
23
- "dialog-header": W(() => [
23
+ "dialog-header": G(() => [
24
24
  $e(se(u(L)), 1)
25
25
  ]),
26
- default: W(() => [
26
+ default: G(() => [
27
27
  oe("p", et, se(u(R)), 1)
28
28
  ]),
29
- "dialog-footer": W(() => [
29
+ "dialog-footer": G(() => [
30
30
  _[1] || (_[1] = oe("div", { class: "grow" }, null, -1)),
31
- Z(B, {
31
+ Z(N, {
32
32
  label: u(c)("report.common.cancel"),
33
33
  variant: "tertiary",
34
34
  onClick: u(g).dismiss
35
35
  }, null, 8, ["label", "onClick"]),
36
- Z(B, {
36
+ Z(N, {
37
37
  label: u(c)("report.common.confirm"),
38
38
  onClick: u(g).confirm
39
39
  }, null, 8, ["label", "onClick"])
@@ -64,13 +64,13 @@ T.locale(j() === "zh-CN" ? "zh-cn" : "en");
64
64
  const rt = ["src"], at = ["src"], ft = /* @__PURE__ */ me({
65
65
  __name: "App",
66
66
  setup(O) {
67
- const { businessId: c, token: g, country: y } = q(Ue()), { sessionUser: R, currentBusiness: L, currentCountry: z, registerSidebarComponent: _ } = V(), {
68
- getRestaurantAndWarehouse: B,
69
- getBusinessSetting: P,
70
- beginBusinessLoad: G,
67
+ const { businessId: c, token: g, country: y } = q(Ue()), { sessionUser: R, currentBusiness: L, currentCountry: z, registerSidebarComponent: _ } = X(), {
68
+ getRestaurantAndWarehouse: N,
69
+ getBusinessSetting: W,
70
+ beginBusinessLoad: K,
71
71
  completeBusinessLoad: ge,
72
72
  resetTimezoneContext: ye
73
- } = ce(), ve = je(), { getFeatureFlags: Se } = ve, { version: v } = q(de()), { getSettings: De } = Pe(), { promptLoader: he } = We(), n = Ze(), F = Me(), E = He(), M = Xe(), o = ce(), b = de(), { suppressReportRouteSync: N } = q(b), { getReports: Ie, getOverviewReport: _e, getReportConfig: Re, currentReportId: ee } = E, { currentReportId: Le, reports: Ee } = q(E), { getSchema: be } = Ve(), { fetchSchedules: we } = M, { init: Ae } = Ge(), K = U("v5"), $ = U(!1), x = U(!0), Ce = ie(() => `https://portal-v1.feedme.cc/b/${c.value}/report/CLOSE_UP?showHeader=false&country=${y.value.toUpperCase()}&menuOption=business-report&token=${g.value}&v2=true&reportV5Button=true`), ke = ie(() => `https://report-v4.feedme.cc?businessId=${c.value}&country=${y.value}&token=${g.value}&reportV3Button=true`);
73
+ } = ce(), ve = je(), { getFeatureFlags: Se } = ve, { version: v } = q(de()), { getSettings: De } = We(), { promptLoader: he } = Ge(), n = Ze(), B = Me(), E = He(), M = Ve(), o = ce(), b = de(), { suppressReportRouteSync: F } = q(b), { getReports: Ie, getOverviewReport: _e, getReportConfig: Re, currentReportId: ee } = E, { currentReportId: Le, reports: Ee } = q(E), { getSchema: be } = Xe(), { fetchSchedules: we } = M, { init: Ae } = Ke(), P = U("v5"), $ = U(!1), x = U(!0), Ce = ie(() => `https://portal-v1.feedmedev.cc/b/${c.value}/report/CLOSE_UP?showHeader=false&country=${y.value.toUpperCase()}&menuOption=business-report&token=${g.value}&v2=true&reportV5Button=true`), ke = ie(() => `https://report-v4.feedmedev.cc?businessId=${c.value}&country=${y.value}&token=${g.value}&reportV3Button=true`);
74
74
  k(
75
75
  [() => L.value, () => R.value, () => z.value],
76
76
  () => {
@@ -93,17 +93,17 @@ const rt = ["src"], at = ["src"], ft = /* @__PURE__ */ me({
93
93
  if (typeof t.data == "string")
94
94
  try {
95
95
  const e = JSON.parse(t.data);
96
- (e == null ? void 0 : e.v5) === !0 ? v.value = K.value : (e == null ? void 0 : e.v3) === !0 && (v.value = "v3");
96
+ (e == null ? void 0 : e.v5) === !0 ? v.value = P.value : (e == null ? void 0 : e.v3) === !0 && (v.value = "v3");
97
97
  } catch (e) {
98
98
  console.error(e);
99
99
  }
100
100
  }
101
101
  k(v, () => {
102
- ["v3", "v4"].includes(v.value) ? V().hideSidebarToggle(!0) : V().hideSidebarToggle(!1);
102
+ ["v3", "v4"].includes(v.value) ? X().hideSidebarToggle(!0) : X().hideSidebarToggle(!1);
103
103
  }), xe(() => {
104
104
  _(Ye);
105
105
  }), fe(() => {
106
- console.log("5.27.43", !0), window.addEventListener("message", te), window.addEventListener("message", ne);
106
+ console.log("5.27.44-beta.0", !0), window.addEventListener("message", te), window.addEventListener("message", ne);
107
107
  }), Je(() => {
108
108
  window.removeEventListener("message", te), window.removeEventListener("message", ne), E.$dispose(), M.$dispose();
109
109
  });
@@ -167,7 +167,7 @@ const rt = ["src"], at = ["src"], ft = /* @__PURE__ */ me({
167
167
  }
168
168
  if (!Q) {
169
169
  const s = o.selectedLocationIds;
170
- s.length === f.length && s.every((Be, Fe) => Be === f[Fe]) || o.setSelectedLocationIds(f);
170
+ s.length === f.length && s.every((Ne, Be) => Ne === f[Be]) || o.setSelectedLocationIds(f);
171
171
  }
172
172
  return {
173
173
  // TODO: this returned value can used for getBusinessSetting
@@ -186,7 +186,7 @@ const rt = ["src"], at = ["src"], ft = /* @__PURE__ */ me({
186
186
  () => c.value,
187
187
  async (t, e) => {
188
188
  if (t !== "") {
189
- $.value = !1, G(t);
189
+ $.value = !1, K(t);
190
190
  const r = "mf-report-prev-business-id", a = (() => {
191
191
  try {
192
192
  return sessionStorage.getItem(r);
@@ -210,42 +210,42 @@ const rt = ["src"], at = ["src"], ft = /* @__PURE__ */ me({
210
210
  i = {
211
211
  ...f,
212
212
  isAllLocation: "true"
213
- }, S = !0, await F.replace({
213
+ }, S = !0, await B.replace({
214
214
  name: n.name,
215
215
  params: n.params,
216
216
  query: i
217
217
  });
218
218
  }
219
- N.value !== void 0 && (N.value = !0), await he(async () => {
219
+ F.value !== void 0 && (F.value = !0), await he(async () => {
220
220
  await Ae({
221
- apiKey: "6GhcttsJ9Rj9cTevcdrpin",
221
+ apiKey: "MaGoXrEWuEJNpWgKTqseee",
222
222
  url: "https://flag.feedme.farm/api/v1/",
223
223
  enableAnalytics: !1,
224
224
  cacheFlags: !1
225
225
  });
226
226
  const D = await Re();
227
- K.value = D.version, v.value = K.value, await Se(), n.name === "template" && !b.canAccessTemplate() && await F.replace({
227
+ P.value = D.version, v.value = P.value, await Se(), n.name === "template" && !b.canAccessTemplate() && await B.replace({
228
228
  name: "reports",
229
229
  query: n.query
230
230
  });
231
231
  const h = b.canAccess(
232
- X.report_accessOverview
232
+ V.report_accessOverview
233
233
  ), w = b.canAccess(
234
- X.report_accessSetting
234
+ V.report_accessSetting
235
235
  ), A = b.canAccess(
236
- X.report_accessIntegration
236
+ V.report_accessIntegration
237
237
  ), m = [
238
238
  be(),
239
239
  we(),
240
240
  Ie(),
241
- B(
241
+ N(
242
242
  (() => {
243
243
  const p = J(i.locationIds);
244
244
  return Array.isArray(p) ? p : void 0;
245
245
  })()
246
246
  )
247
247
  ];
248
- if (h && m.push(_e()), A && m.push(De()), await Promise.all(m), w && await P(), Te(i), S) {
248
+ if (h && m.push(_e()), A && m.push(De()), await Promise.all(m), w && await W(), Te(i), S) {
249
249
  const {
250
250
  locationIds: p,
251
251
  startDate: Q,
@@ -256,7 +256,7 @@ const rt = ["src"], at = ["src"], ft = /* @__PURE__ */ me({
256
256
  compareEndDate: ze,
257
257
  ...ae
258
258
  } = n.query;
259
- (n.query.locationIds !== void 0 || n.query.startDate !== void 0 || n.query.endDate !== void 0 || n.query.timeStart !== void 0 || n.query.timeEnd !== void 0 || n.query.compareStartDate !== void 0 || n.query.compareEndDate !== void 0 || n.query.isAllLocation !== "true") && await F.replace({
259
+ (n.query.locationIds !== void 0 || n.query.startDate !== void 0 || n.query.endDate !== void 0 || n.query.timeStart !== void 0 || n.query.timeEnd !== void 0 || n.query.compareStartDate !== void 0 || n.query.compareEndDate !== void 0 || n.query.isAllLocation !== "true") && await B.replace({
260
260
  name: n.name,
261
261
  params: n.params,
262
262
  query: {
@@ -287,8 +287,8 @@ const rt = ["src"], at = ["src"], ft = /* @__PURE__ */ me({
287
287
  }),
288
288
  (t) => {
289
289
  if (!$.value || !t.reportId || x.value) return;
290
- if (N.value) {
291
- N.value = !1;
290
+ if (F.value) {
291
+ F.value = !1;
292
292
  return;
293
293
  }
294
294
  const e = t.selectedLocationIds, r = t.dateRange, a = t.timeRange, d = t.compareDateRange, i = {
@@ -307,7 +307,7 @@ const rt = ["src"], at = ["src"], ft = /* @__PURE__ */ me({
307
307
  }, S = e.length === o.locations.length;
308
308
  i.isAllLocation = String(S), S ? delete i.locationIds : e.length > 0 ? i.locationIds = JSON.stringify(e) : delete i.locationIds;
309
309
  const D = JSON.stringify(n.query), h = JSON.stringify(i);
310
- D !== h && F.replace({
310
+ D !== h && B.replace({
311
311
  name: n.name,
312
312
  params: n.params,
313
313
  query: i
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as se, resolveComponent as Y, createBlock as R, openBlock as p, normalizeClass as Ce, withCtx as V, createCommentVNode as F, createElementVNode as N, toDisplayString as pe, renderSlot as Re, mergeModels as Q, useModel as j, ref as A, computed as B, watch as x, nextTick as Z, onMounted as Se, onBeforeUnmount as xe, createElementBlock as be, unref as P, createVNode as ee } from "vue";
2
- import { d as m, a as Pe, C as $, j as Ee } from "./app-DMG_qnyd.js";
2
+ import { d as m, a as Pe, C as $, j as Ee } from "./app-BJWzjiL_.js";
3
3
  import { detectLocale as te } from "@feedmepos/mf-common";
4
4
  import { u as Te, _ as we } from "./_plugin-vue_export-helper-kkiiQoKl.js";
5
5
  import { storeToRefs as Me } from "pinia";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, computed as p, resolveComponent as f, 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-DytlZDrY.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-wZhpi4dy.js";
3
3
  import { useBreakpoints as b } from "@feedmepos/ui-library";
4
4
  import { storeToRefs as C } from "pinia";
5
5
  import { u as q, a as w } from "./_plugin-vue_export-helper-kkiiQoKl.js";
@@ -1,7 +1,7 @@
1
1
  import { computed as c, defineComponent as Ae, ref as P, watch as Te, onMounted as Ht, onBeforeUnmount as Co, resolveComponent as fe, createBlock as ce, openBlock as X, Transition as da, withCtx as Le, createElementBlock as le, createCommentVNode as he, createElementVNode as q, unref as i, normalizeStyle as Pe, withModifiers as cn, toDisplayString as Ce, createVNode as pe, Fragment as Ve, renderList as dt, normalizeClass as De, nextTick as xo, mergeModels as We, useModel as Oe, renderSlot as nt, h as on, createSlots as fa, resolveDynamicComponent as wo, toRaw as ma, markRaw as pa, createTextVNode as ha, onUnmounted as _o, provide as ga, inject as va, withDirectives as ya, vShow as ba } from "vue";
2
- import { W as G, B as Ca, S as At, E as Nt, G as xa, F as Ft, e as an, H as xn, J as So, f as wa, b as _a, K as Sa, L as ka, N as Ta, R as bt, O as La } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-XNBAx3y7.js";
3
- import { l as dn, a as mn, u as ko } from "./app-DMG_qnyd.js";
4
- import { d as kn } from "./DateRangeSelect-BiUJhusu.js";
2
+ import { W as G, B as Ca, S as At, E as Nt, G as xa, F as Ft, e as an, H as xn, J as So, f as wa, b as _a, K as Sa, L as ka, N as Ta, R as bt, O as La } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BZHalozc.js";
3
+ import { l as dn, a as mn, u as ko } from "./app-BJWzjiL_.js";
4
+ import { d as kn } from "./DateRangeSelect-BaqOWfOO.js";
5
5
  import { storeToRefs as $t } from "pinia";
6
6
  import { detectLocale as Nn } from "@feedmepos/mf-common";
7
7
  import { C as Tn } from "./chart-DDDh8zNk.js";
@@ -3211,7 +3211,7 @@ function Bl(e, t) {
3211
3211
  const n = fe("FmMenuDivider");
3212
3212
  return X(), ce(n);
3213
3213
  }
3214
- const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableData.worker-Bz62a8-o.js", Rl = { class: "flex h-full flex-col" }, Nl = { class: "my-4 shrink-0" }, Vl = {
3214
+ const Al = /* @__PURE__ */ To(Ml, [["render", Bl]]), Fl = "/assets/processTableData.worker-typkqQfh.js", Rl = { class: "flex h-full flex-col" }, Nl = { class: "my-4 shrink-0" }, Vl = {
3215
3215
  class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
3216
3216
  style: { backgroundColor: "#f9f9f9" }
3217
3217
  }, $l = { class: "font-bold" }, zl = { class: "text-fm-color-neutral-gray-300" }, Hl = /* @__PURE__ */ Ae({