@feedmepos/mf-report 5.22.5 → 5.22.6-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 (27) hide show
  1. package/dist/{App-DqzpHAiQ.js → App-Ba3Lr5EA.js} +40 -40
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-CAhR1y29.js → BaseDialog.vue_vue_type_script_setup_true_lang-4TYc0os9.js} +3 -5
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-ZHteCUaN.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-s4tZT8ok.js} +2 -2
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-BBgTqWTo.js → Default.vue_vue_type_script_setup_true_lang-DlhqPmyK.js} +2 -2
  5. package/dist/FilterSelector.vue_vue_type_script_setup_true_lang-BYLtctR_.js +5398 -0
  6. package/dist/{InsightView-E0rGZz7N.js → InsightView-CLvppuDx.js} +6 -6
  7. package/dist/{Integration-B5m6Dh2k.js → Integration-gMupYPWD.js} +3 -3
  8. package/dist/{Integrations-DHiZuGhv.js → Integrations-D0IMpfxK.js} +3 -3
  9. package/dist/{Layout-DD7d2-r3.js → Layout-YrOpS6LC.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Cttz3iWc.js → MenuTab.vue_vue_type_script_setup_true_lang-C4fXAbZr.js} +5 -5
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-3q8huUMP.js → NavigationTab.vue_vue_type_script_setup_true_lang-BDT10pWf.js} +5 -5
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-Szs2H-rQ.js → NoData.vue_vue_type_script_setup_true_lang-DrOJMKXI.js} +1 -1
  13. package/dist/{OverviewView-CZUa8VyF.js → OverviewView-nUDcZnZV.js} +5 -5
  14. package/dist/{Report-CUGrtZzb.js → Report-BwlGnBtT.js} +4 -4
  15. package/dist/{ReportEditor-3QxjUH5Z.js → ReportEditor-DUE9Rvth.js} +6 -6
  16. package/dist/{ReportView-1W7-LhBd.js → ReportView-CNOy7hCk.js} +8 -8
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-bF-kKXY_.js → SelectComponent.vue_vue_type_script_setup_true_lang-CSAPzpFc.js} +1 -1
  18. package/dist/{Setting-DThrSMOl.js → Setting-BOPnGcnJ.js} +5 -5
  19. package/dist/TileEditor-oWNW7ltu.js +3669 -0
  20. package/dist/{TransitionFade-ILPlWnhN.js → TransitionFade-DAkdB5OS.js} +6 -6
  21. package/dist/{app-ucvGix4c.js → app-DecdTRRs.js} +64 -52
  22. package/dist/app.js +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{vue-i18n-DUy7xb0y.js → vue-i18n-D0zrwKQ6.js} +2 -2
  25. package/package.json +1 -1
  26. package/dist/FilterSelector.vue_vue_type_script_setup_true_lang-D7wmsJqO.js +0 -4318
  27. package/dist/TileEditor-BssHPCKT.js +0 -3632
@@ -1,18 +1,18 @@
1
- import { defineComponent as se, resolveComponent as Q, createBlock as ie, openBlock as R, unref as c, isRef as be, withCtx as U, createElementVNode as M, createVNode as V, toDisplayString as ee, createTextVNode as we, onMounted as ue, watch as q, ref as N, computed as te, onBeforeMount as Ce, onBeforeUnmount as Ee, createElementBlock as j, Fragment as ke } from "vue";
2
- import { detectLocale as T, useCoreStore as z } from "@feedmepos/mf-common";
3
- import { u as Ae, a as Ne, b as ne, c as Te, d as Be, e as Fe, f as $e, s as xe } from "./vue-i18n-DUy7xb0y.js";
1
+ import { defineComponent as se, resolveComponent as j, createBlock as ie, openBlock as R, unref as c, isRef as be, withCtx as U, createElementVNode as M, createVNode as V, toDisplayString as ee, createTextVNode as we, onMounted as ue, watch as q, ref as N, computed as te, onBeforeMount as Ee, onBeforeUnmount as Ce, createElementBlock as z, Fragment as ke } from "vue";
2
+ import { detectLocale as T, useCoreStore as Q } from "@feedmepos/mf-common";
3
+ import { u as Ae, a as Ne, b as ne, c as Te, d as Be, e as Fe, f as $e, s as xe } from "./vue-i18n-D0zrwKQ6.js";
4
4
  import { storeToRefs as L } from "pinia";
5
- import { u as re, a as Je, b as Ue } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CAhR1y29.js";
6
- import { u as je, _ as ze } from "./NavigationTab.vue_vue_type_script_setup_true_lang-3q8huUMP.js";
5
+ import { u as re, a as Je, b as Ue } from "./BaseDialog.vue_vue_type_script_setup_true_lang-4TYc0os9.js";
6
+ import { u as ze, _ as Qe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BDT10pWf.js";
7
7
  import { u as oe } from "./message-dialog-UoMWOnil.js";
8
- import { d as u } from "./app-ucvGix4c.js";
9
- import { useRoute as Qe, useRouter as Ve } from "vue-router";
10
- const Pe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Ge = /* @__PURE__ */ se({
8
+ import { d as u } from "./app-DecdTRRs.js";
9
+ import { useRoute as je, useRouter as Ve } from "vue-router";
10
+ const We = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Pe = /* @__PURE__ */ se({
11
11
  __name: "Dialog",
12
12
  setup(_) {
13
13
  const { t: i } = Ae(), d = oe(), { isOpened: l, message: v, title: S } = L(oe());
14
14
  return (D, p) => {
15
- const O = Q("FmButton"), B = Q("FmDialog");
15
+ const O = j("FmButton"), B = j("FmDialog");
16
16
  return R(), ie(B, {
17
17
  modelValue: c(l),
18
18
  "onUpdate:modelValue": p[0] || (p[0] = (F) => be(l) ? l.value = F : null),
@@ -23,7 +23,7 @@ const Pe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Ge
23
23
  we(ee(c(S)), 1)
24
24
  ]),
25
25
  default: U(() => [
26
- M("p", Pe, ee(c(v)), 1)
26
+ M("p", We, ee(c(v)), 1)
27
27
  ]),
28
28
  "dialog-footer": U(() => [
29
29
  p[1] || (p[1] = M("div", { class: "grow" }, null, -1)),
@@ -42,7 +42,7 @@ const Pe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Ge
42
42
  };
43
43
  }
44
44
  }), ae = N(T());
45
- function We() {
45
+ function Ge() {
46
46
  const _ = (i) => {
47
47
  switch (ae.value = i, i) {
48
48
  case "zh-CN":
@@ -60,10 +60,10 @@ function We() {
60
60
  };
61
61
  }
62
62
  u.locale(T() === "zh-CN" ? "zh-cn" : "en");
63
- const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
63
+ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
64
64
  __name: "App",
65
65
  setup(_) {
66
- const { businessId: i, token: d, country: l } = L(Ne()), { sessionUser: v, currentBusiness: S, currentCountry: D, registerSidebarComponent: p } = z(), { getRestaurantAndWarehouse: O, getBusinessSetting: B, beginBusinessLoad: F, completeBusinessLoad: ce } = ne(), { getFeatureFlags: de } = Te(), { version: f } = L(re()), { getSettings: le } = Be(), { promptLoader: fe } = Fe(), n = Qe(), P = Ve(), h = Je(), G = je(), r = ne(), me = re(), { suppressReportRouteSync: b } = L(me), { getReports: pe, getOverviewReport: ge, getReportConfig: W, currentReportId: H } = h, { currentReportId: ye, reports: ve } = L(h), { getSchema: Se } = Ue(), { fetchSchedules: De } = G, { init: he } = $e(), $ = N("v5"), w = N(!1), C = N(!0), Ie = te(() => `https://portal-v1.feedme.cc/b/${i.value}/report/CLOSE_UP?showHeader=false&country=${l.value.toUpperCase()}&menuOption=business-report&token=${d.value}&v2=true&reportV5Button=true`), Re = te(() => `https://report-v4.feedme.cc?businessId=${i.value}&country=${l.value}&token=${d.value}&reportV3Button=true`);
66
+ const { businessId: i, token: d, country: l } = L(Ne()), { sessionUser: v, currentBusiness: S, currentCountry: D, registerSidebarComponent: p } = Q(), { getRestaurantAndWarehouse: O, getBusinessSetting: B, beginBusinessLoad: F, completeBusinessLoad: ce } = ne(), { getFeatureFlags: de } = Te(), { version: f } = L(re()), { getSettings: le } = Be(), { promptLoader: fe } = Fe(), n = je(), W = Ve(), h = Je(), P = ze(), r = ne(), me = re(), { suppressReportRouteSync: b } = L(me), { getReports: pe, getOverviewReport: ge, getReportConfig: G, currentReportId: K } = h, { currentReportId: ye, reports: ve } = L(h), { getSchema: Se } = Ue(), { fetchSchedules: De } = P, { init: he } = $e(), $ = N("v5"), w = N(!1), E = N(!0), Ie = te(() => `https://portal-v1.feedmedev.cc/b/${i.value}/report/CLOSE_UP?showHeader=false&country=${l.value.toUpperCase()}&menuOption=business-report&token=${d.value}&v2=true&reportV5Button=true`), Re = te(() => `https://report-v4.feedmedev.cc?businessId=${i.value}&country=${l.value}&token=${d.value}&reportV3Button=true`);
67
67
  q(
68
68
  [() => S.value, () => v.value, () => D.value],
69
69
  () => {
@@ -73,7 +73,7 @@ const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
73
73
  },
74
74
  { immediate: !0 }
75
75
  );
76
- function K(e) {
76
+ function H(e) {
77
77
  if (typeof e.data == "string")
78
78
  try {
79
79
  const t = JSON.parse(e.data);
@@ -92,13 +92,13 @@ const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
92
92
  }
93
93
  }
94
94
  q(f, () => {
95
- ["v3", "v4"].includes(f.value) ? z().hideSidebarToggle(!0) : z().hideSidebarToggle(!1);
96
- }), Ce(() => {
97
- p(ze);
98
- }), ue(() => {
99
- console.log("5.22.5", !0), window.addEventListener("message", K), window.addEventListener("message", X);
95
+ ["v3", "v4"].includes(f.value) ? Q().hideSidebarToggle(!0) : Q().hideSidebarToggle(!1);
100
96
  }), Ee(() => {
101
- window.removeEventListener("message", K), window.removeEventListener("message", X), h.$dispose(), G.$dispose();
97
+ p(Qe);
98
+ }), ue(() => {
99
+ console.log("5.22.6-beta.0", !0), window.addEventListener("message", H), window.addEventListener("message", X);
100
+ }), Ce(() => {
101
+ window.removeEventListener("message", H), window.removeEventListener("message", X), h.$dispose(), P.$dispose();
102
102
  });
103
103
  function qe(e) {
104
104
  try {
@@ -107,7 +107,7 @@ const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
107
107
  return e;
108
108
  }
109
109
  }
110
- function E(e) {
110
+ function C(e) {
111
111
  if (typeof e != "string" || e.length === 0) return;
112
112
  const t = e.includes("%") ? [e, qe(e)] : [e];
113
113
  for (const a of t)
@@ -129,16 +129,16 @@ const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
129
129
  return typeof t.hour == "number" && typeof t.minute == "number";
130
130
  }
131
131
  function Le() {
132
- const e = n.query.startDate ? u(n.query.startDate).startOf("day").toISOString() : void 0, t = n.query.endDate ? u(n.query.endDate).endOf("day").toISOString() : void 0, a = typeof n.query.timeStart == "string", s = typeof n.query.timeEnd == "string", m = E(n.query.timeStart), I = E(n.query.timeEnd), k = Y(m) ? m : null, A = Y(I) ? I : null, x = n.query.compareStartDate ? u(n.query.compareStartDate).startOf("day").toISOString() : void 0, J = n.query.compareEndDate ? u(n.query.compareEndDate).endOf("day").toISOString() : void 0, Z = n.query.isAllLocation === "true" || n.query.isAllLocation === void 0;
132
+ const e = n.query.startDate ? u(n.query.startDate).startOf("day").toISOString() : void 0, t = n.query.endDate ? u(n.query.endDate).endOf("day").toISOString() : void 0, a = typeof n.query.timeStart == "string", s = typeof n.query.timeEnd == "string", m = C(n.query.timeStart), I = C(n.query.timeEnd), k = Y(m) ? m : null, A = Y(I) ? I : null, x = n.query.compareStartDate ? u(n.query.compareStartDate).startOf("day").toISOString() : void 0, J = n.query.compareEndDate ? u(n.query.compareEndDate).endOf("day").toISOString() : void 0, Z = n.query.isAllLocation === "true" || n.query.isAllLocation === void 0;
133
133
  let g = [];
134
134
  if (Z)
135
135
  g = r.selectedLocationIds;
136
136
  else {
137
- const o = E(n.query.locationIds);
137
+ const o = C(n.query.locationIds);
138
138
  g = Array.isArray(o) ? o : [];
139
139
  }
140
- let y = n.query.reportId || H;
141
- if (ve.value.find((o) => o.id === y) || (y = H), y && y !== h.currentReportId && h.updateCurrentReportId(y), e || t) {
140
+ let y = n.query.reportId || K;
141
+ if (ve.value.find((o) => o.id === y) || (y = K), y && y !== h.currentReportId && h.updateCurrentReportId(y), e || t) {
142
142
  const o = r.dateRange;
143
143
  (o.startDate !== e || o.endDate !== t) && r.setDateRange({ startDate: e, endDate: t });
144
144
  }
@@ -173,7 +173,7 @@ const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
173
173
  return q(
174
174
  () => i.value,
175
175
  async (e, t) => {
176
- e !== "" && (w.value = !1, F(e), (!C.value || t !== void 0) && (r.setSelectedLocationIds([]), P.replace({
176
+ e !== "" && (w.value = !1, F(e), (!E.value || t !== void 0) && (r.setSelectedLocationIds([]), W.replace({
177
177
  name: n.name,
178
178
  params: n.params,
179
179
  query: {
@@ -183,28 +183,28 @@ const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
183
183
  }
184
184
  })), b.value !== void 0 && (b.value = !0), await fe(async () => {
185
185
  await he({
186
- apiKey: "6GhcttsJ9Rj9cTevcdrpin",
186
+ apiKey: "MaGoXrEWuEJNpWgKTqseee",
187
187
  url: "https://flag.feedme.farm/api/v1/",
188
188
  enableAnalytics: !1,
189
189
  cacheFlags: !1
190
190
  });
191
- const a = await W();
191
+ const a = await G();
192
192
  $.value = a.version, f.value = $.value, await Promise.all([
193
193
  de(),
194
- W(),
194
+ G(),
195
195
  ge(),
196
196
  pe(),
197
197
  Se(),
198
198
  De(),
199
199
  O(
200
200
  (() => {
201
- const s = E(n.query.locationIds);
201
+ const s = C(n.query.locationIds);
202
202
  return Array.isArray(s) ? s : void 0;
203
203
  })()
204
204
  ),
205
205
  le()
206
206
  ]), await B(), Le(), ce(e);
207
- }), w.value = !0, C.value && (C.value = !1));
207
+ }), w.value = !0, E.value && (E.value = !1));
208
208
  },
209
209
  {
210
210
  immediate: !0
@@ -218,7 +218,7 @@ const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
218
218
  compareDateRange: r.compareDateRange
219
219
  }),
220
220
  (e) => {
221
- if (!w.value || !e.reportId || C.value) return;
221
+ if (!w.value || !e.reportId || E.value) return;
222
222
  if (b.value) {
223
223
  b.value = !1;
224
224
  return;
@@ -235,26 +235,26 @@ const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
235
235
  locationIds: t.length === r.locations.length ? void 0 : t.length > 0 ? JSON.stringify(t) : void 0,
236
236
  isAllLocation: String(t.length === r.locations.length)
237
237
  }, k = JSON.stringify(n.query), A = JSON.stringify(I);
238
- k !== A && P.replace({
238
+ k !== A && W.replace({
239
239
  name: n.name,
240
240
  params: n.params,
241
241
  query: I
242
242
  });
243
243
  },
244
244
  { deep: !0 }
245
- ), We(), (e, t) => {
246
- const a = Q("router-view");
247
- return R(), j(ke, null, [
248
- V(Ge),
249
- c(f) === "v3" ? (R(), j("iframe", {
245
+ ), Ge(), (e, t) => {
246
+ const a = j("router-view");
247
+ return R(), z(ke, null, [
248
+ V(Pe),
249
+ c(f) === "v3" ? (R(), z("iframe", {
250
250
  key: 0,
251
251
  class: "bg-white h-full w-full",
252
252
  src: Ie.value
253
- }, null, 8, He)) : c(f) === "v4" ? (R(), j("iframe", {
253
+ }, null, 8, Ke)) : c(f) === "v4" ? (R(), z("iframe", {
254
254
  key: 1,
255
255
  class: "bg-white h-full w-full",
256
256
  src: Re.value
257
- }, null, 8, Ke)) : (R(), ie(a, { key: 2 }))
257
+ }, null, 8, He)) : (R(), ie(a, { key: 2 }))
258
258
  ], 64);
259
259
  };
260
260
  }
@@ -1,11 +1,11 @@
1
- import { a as E0, F as m0, l as S0, b as X0, c as Ce, k as be, d as Ie, r as Z0, u as Fe } from "./vue-i18n-DUy7xb0y.js";
1
+ import { a as E0, F as m0, l as S0, b as X0, c as Ce, k as be, d as Ie, r as Z0, u as Fe } from "./vue-i18n-D0zrwKQ6.js";
2
2
  import { storeToRefs as c0, defineStore as k0 } from "pinia";
3
3
  import { ref as s0, computed as B0, watch as V0, h as Me, defineComponent as De, mergeModels as Q0, useModel as W0, resolveComponent as O0, createElementBlock as Y0, openBlock as N0, createVNode as C0, withCtx as P0, createElementVNode as L0, createCommentVNode as Re, Fragment as ne, renderList as xe, createBlock as de, createTextVNode as ce, withDirectives as Le, toDisplayString as v0, unref as h0, vShow as Oe, renderSlot as we } from "vue";
4
4
  import { useSnackbar as fe, components as ve } from "@feedmepos/ui-library";
5
- import { d as b0 } from "./app-ucvGix4c.js";
5
+ import { d as b0 } from "./app-DecdTRRs.js";
6
6
  import { useRouter as Be } from "vue-router";
7
7
  import { detectLocale as J0 } from "@feedmepos/mf-common";
8
- import { c as Pe, a as Je } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-ZHteCUaN.js";
8
+ import { c as Pe, a as Je } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-s4tZT8ok.js";
9
9
  function pe(T) {
10
10
  throw new Error('Could not dynamically require "' + T + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
11
11
  }
@@ -20294,8 +20294,6 @@ function Ae(T) {
20294
20294
  usePointStyle: R.usePointStyle,
20295
20295
  legendFontSize: R.legendFontSize,
20296
20296
  legendColor: R.legendColor,
20297
- legendMaxLines: R.legendMaxLines,
20298
- legendMaxHeight: R.legendMaxHeight,
20299
20297
  legendMaxWidth: R.legendMaxWidth
20300
20298
  };
20301
20299
  }
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as A, resolveComponent as S, createBlock as p, openBlock as y, withCtx as T, createCommentVNode as R, createElementVNode as M, toDisplayString as j, renderSlot as B, mergeModels as k, useModel as b, ref as C, watch as O, createElementBlock as U, unref as f, createVNode as x } from "vue";
2
- import { u as W, b as q, O as G, C as H } from "./vue-i18n-DUy7xb0y.js";
3
- import { d as r } from "./app-ucvGix4c.js";
2
+ import { u as W, b as q, O as G, C as H } from "./vue-i18n-D0zrwKQ6.js";
3
+ import { d as r } from "./app-DecdTRRs.js";
4
4
  import { detectLocale as E } from "@feedmepos/mf-common";
5
5
  import { storeToRefs as K } from "pinia";
6
6
  var v = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))(v || {}), L = /* @__PURE__ */ ((e) => (e.Yesterday = "YESTERDAY", e.Today = "TODAY", e))(L || {});
@@ -1,8 +1,8 @@
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-3q8huUMP.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BDT10pWf.js";
3
3
  import { useBreakpoints as b } from "@feedmepos/ui-library";
4
4
  import { storeToRefs as C } from "pinia";
5
- import { u as q, e as w } from "./vue-i18n-DUy7xb0y.js";
5
+ import { u as q, e as w } from "./vue-i18n-D0zrwKQ6.js";
6
6
  import { useRoute as B } from "vue-router";
7
7
  const $ = {
8
8
  key: 1,