@feedmepos/mf-report 5.5.22 → 5.6.0-beta.1

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 (28) hide show
  1. package/dist/{App-CcxH4El5.js → App-Ckgaexoe.js} +42 -42
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-Bi_BES93.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BD2DnN09.js} +2 -2
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-C25HSYeu.js → Default.vue_vue_type_script_setup_true_lang-BpEjNMwO.js} +2 -2
  4. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-CpayjqOt.js +1291 -0
  5. package/dist/{InsightView-e1g-hx0o.js → InsightView-fS2NFLKj.js} +6 -6
  6. package/dist/{Integration-BmVUAWAm.js → Integration-CEphXBa6.js} +3 -3
  7. package/dist/{Integrations-BiJVCGrp.js → Integrations-DS6q4VX4.js} +3 -3
  8. package/dist/{Layout-CArNGBSb.js → Layout-CWQMqcf9.js} +1 -1
  9. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-C-cKu5vV.js → MenuTab.vue_vue_type_script_setup_true_lang-aMIxHe4A.js} +3 -3
  10. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-H76ViFsO.js → NavigationTab.vue_vue_type_script_setup_true_lang-CiVEIY-y.js} +5 -5
  11. package/dist/{NoData.vue_vue_type_script_setup_true_lang-CdFXBqlX.js → NoData.vue_vue_type_script_setup_true_lang-EVDtMqna.js} +1 -1
  12. package/dist/{OverviewView-DnO6aeea.js → OverviewView-C_hVlnz4.js} +5 -5
  13. package/dist/{Report-j_2Nytel.js → Report-DJdIP1lN.js} +4 -4
  14. package/dist/{ReportEditor-BHX0_U00.js → ReportEditor-DqOkzghg.js} +192 -192
  15. package/dist/{ReportView-v-lmXnvH.js → ReportView-C4f-sVOq.js} +7 -7
  16. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-N2Lg1Vpt.js → SelectComponent.vue_vue_type_script_setup_true_lang-Cpjinmn4.js} +1 -1
  17. package/dist/{Setting-FmDb8VZl.js → Setting-DsNLjqSG.js} +4 -4
  18. package/dist/TileEditor-DcYbtKoT.js +3046 -0
  19. package/dist/{TransitionFade-C9NidmbR.js → TransitionFade-BP8zPOZX.js} +4 -4
  20. package/dist/app.js +87 -31
  21. package/dist/{global-loader-CbmVhJAK.js → global-loader-DqYGIXIo.js} +1 -1
  22. package/dist/{index-BWqDfeY6.js → index-BChph3k1.js} +1 -1
  23. package/dist/{report-schema-BnzKoFjx.js → report-schema-CbMyeD7Q.js} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/{v4-C5fRBp_c.js → v4-DVU_9OHv.js} +145 -136
  26. package/package.json +2 -2
  27. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-CEyrg6sv.js +0 -1134
  28. package/dist/TileEditor-CxbsbV0j.js +0 -2691
@@ -1,32 +1,32 @@
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-CbmVhJAK.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 q, createVNode as $, toDisplayString as D, createTextVNode as Z, onMounted as z, watch as p, ref as j, 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-DqYGIXIo.js";
4
4
  import { storeToRefs as B } from "pinia";
5
- import { u as ie, a as ce } from "./v4-C5fRBp_c.js";
6
- import { u as me } from "./report-schema-BnzKoFjx.js";
7
- import { _ as de, u as ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-H76ViFsO.js";
5
+ import { u as ie, a as ce } from "./v4-DVU_9OHv.js";
6
+ import { u as me } from "./report-schema-CbMyeD7Q.js";
7
+ import { _ as de, u as ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CiVEIY-y.js";
8
8
  import { u as U } from "./message-dialog-UoMWOnil.js";
9
9
  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());
14
- return (h, u) => {
15
- const v = C("FmButton"), y = C("FmDialog");
16
- return m(), T(y, {
17
- modelValue: r(s),
18
- "onUpdate:modelValue": u[0] || (u[0] = (_) => Y(s) ? s.value = _ : null),
13
+ const { t } = oe(), n = U(), { isOpened: a, message: i, title: c } = B(U());
14
+ return (y, u) => {
15
+ const v = C("FmButton"), h = C("FmDialog");
16
+ return m(), T(h, {
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
  }, {
22
22
  "dialog-header": w(() => [
23
- Z(q(r(c)), 1)
23
+ Z(D(r(c)), 1)
24
24
  ]),
25
25
  default: w(() => [
26
- N("p", pe, q(r(i)), 1)
26
+ q("p", pe, D(r(i)), 1)
27
27
  ]),
28
28
  "dialog-footer": w(() => [
29
- u[1] || (u[1] = N("div", { class: "grow" }, null, -1)),
29
+ u[1] || (u[1] = q("div", { class: "grow" }, null, -1)),
30
30
  $(v, {
31
31
  label: r(t)("report.common.cancel"),
32
32
  variant: "tertiary",
@@ -41,8 +41,8 @@ const pe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, ge
41
41
  }, 8, ["modelValue"]);
42
42
  };
43
43
  }
44
- }), x = z(g());
45
- function he() {
44
+ }), x = j(g());
45
+ function ye() {
46
46
  const d = (t) => {
47
47
  switch (x.value = t, t) {
48
48
  case "zh-CN":
@@ -53,27 +53,27 @@ function he() {
53
53
  break;
54
54
  }
55
55
  };
56
- return j(() => {
56
+ return z(() => {
57
57
  d(g());
58
58
  }), p(() => g(), d, { deep: !0, immediate: !0 }), {
59
59
  currentLocale: x
60
60
  };
61
61
  }
62
62
  F.locale(g() === "zh-CN" ? "zh-cn" : "en");
63
- const ye = ["src"], _e = ["src"], Le = /* @__PURE__ */ O({
63
+ const he = ["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: y, registerSidebarComponent: u } = k(), { getRestaurantAndWarehouse: v, getBusinessSetting: h } = ne(), { getFeatureFlags: _ } = ae(), { version: s } = B(ie()), { getSettings: A } = se(), l = fe(), { promptLoader: J } = le(), W = I(() => `https://portal-v1.feedmedev.cc/b/${t.value}/report/CLOSE_UP?showHeader=false&country=${a.value.toUpperCase()}&menuOption=business-report&token=${n.value}&v2=true&reportV5Button=true`), G = I(() => `https://report-v4.feedmedev.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), y.value && (a.value = y.value));
73
73
  },
74
74
  { immediate: !0 }
75
75
  );
76
- function R(o) {
76
+ function E(o) {
77
77
  if (typeof o.data == "string")
78
78
  try {
79
79
  const e = JSON.parse(o.data);
@@ -86,42 +86,42 @@ 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
- }), j(() => {
99
- console.log("5.5.22", !0), window.addEventListener("message", R), window.addEventListener("message", L);
98
+ }), z(() => {
99
+ console.log("5.6.0-beta.1", !0), window.addEventListener("message", E), window.addEventListener("message", L);
100
100
  });
101
- const V = ce(), D = ve();
101
+ const R = ce(), N = ve();
102
102
  ee(() => {
103
- window.removeEventListener("message", R), window.removeEventListener("message", L), V.$dispose(), D.$dispose();
103
+ window.removeEventListener("message", E), window.removeEventListener("message", L), R.$dispose(), N.$dispose();
104
104
  });
105
- const { getReports: H, getOverviewReport: K, getReportConfig: E } = V, { getSchema: Q } = me(), { fetchSchedules: W } = D, { init: X } = ue(), S = z("v5");
105
+ const { getReports: K, getOverviewReport: P, getReportConfig: V } = R, { getSchema: H } = me(), { fetchSchedules: Q } = N, { init: X } = ue(), S = j("v5");
106
106
  return p(
107
107
  () => t.value,
108
108
  () => {
109
109
  t.value !== "" && J(async () => {
110
110
  await X({
111
- apiKey: "6GhcttsJ9Rj9cTevcdrpin",
111
+ apiKey: "MaGoXrEWuEJNpWgKTqseee",
112
112
  url: "https://flag.feedme.farm/api/v1/",
113
113
  enableAnalytics: !1,
114
114
  cacheFlags: !1
115
115
  });
116
- const o = await E();
117
- S.value = o.version, a.value = S.value, await Promise.all([
116
+ const o = await V();
117
+ S.value = o.version, s.value = S.value, await Promise.all([
118
118
  _(),
119
- E(),
119
+ V(),
120
+ P(),
120
121
  K(),
121
122
  H(),
122
123
  Q(),
123
- W(),
124
- y(),
124
+ h(),
125
125
  v(),
126
126
  A()
127
127
  ]);
@@ -130,18 +130,18 @@ const ye = ["src"], _e = ["src"], Le = /* @__PURE__ */ O({
130
130
  {
131
131
  immediate: !0
132
132
  }
133
- ), he(), (o, e) => {
133
+ ), ye(), (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
- src: G.value
141
- }, null, 8, ye)) : r(a) === "v4" ? (m(), k("iframe", {
140
+ src: W.value
141
+ }, null, 8, he)) : r(s) === "v4" ? (m(), b("iframe", {
142
142
  key: 1,
143
143
  class: "bg-white h-full w-full",
144
- src: P.value
144
+ src: G.value
145
145
  }, null, 8, _e)) : (m(), T(f, { key: 2 }))
146
146
  ], 64);
147
147
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as F, resolveComponent as g, createBlock as p, openBlock as u, withCtx as v, createCommentVNode as y, createElementVNode as w, toDisplayString as M, renderSlot as P, mergeModels as T, useModel as f, ref as C, watch as I, createElementBlock as x, createVNode as D, unref as c } from "vue";
2
- import { d as n, G as O, C as B } from "./global-loader-CbmVhJAK.js";
3
- import { b as V } from "./index-BWqDfeY6.js";
2
+ import { d as n, G as O, C as B } from "./global-loader-DqYGIXIo.js";
3
+ import { b as V } from "./index-BChph3k1.js";
4
4
  import { detectLocale as $ } from "@feedmepos/mf-common";
5
5
  const Y = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, j = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, k = /* @__PURE__ */ F({
6
6
  __name: "FilterChip",
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as u, computed as f, resolveComponent as p, createElementBlock as r, openBlock as s, normalizeStyle as l, normalizeClass as d, unref as e, createBlock as y, createCommentVNode as _, createVNode as h, createElementVNode as k, toDisplayString as x, renderSlot as g } from "vue";
2
- import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-H76ViFsO.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CiVEIY-y.js";
3
3
  import { useBreakpoints as b } from "@feedmepos/ui-library";
4
4
  import { storeToRefs as w } from "pinia";
5
- import { u as q, f as C } from "./global-loader-CbmVhJAK.js";
5
+ import { u as q, f as C } from "./global-loader-DqYGIXIo.js";
6
6
  import { useRoute as B } from "vue-router";
7
7
  const $ = {
8
8
  key: 1,