@feedmepos/mf-report 5.4.10 → 5.4.11-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 (34) hide show
  1. package/dist/{App-l9-AIgGC.js → App-lTSlttIs.js} +30 -30
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-MQNSV-xg.js → BaseDialog.vue_vue_type_script_setup_true_lang-DTNiGKgd.js} +5 -5
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-pLx3gB7Y.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CpiR4ObD.js} +24 -24
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-6z-rDLAm.js → Default.vue_vue_type_script_setup_true_lang-O5pTYzeO.js} +3 -3
  5. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-wk_7JBQt.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BX6t3E1_.js} +174 -174
  6. package/dist/{HeaderTab.vue_vue_type_script_setup_true_lang--56TBWoS.js → HeaderTab.vue_vue_type_script_setup_true_lang-B5VBDNwX.js} +2 -2
  7. package/dist/{InsightView-QYiA8VPh.js → InsightView-BKPb4eXr.js} +741 -748
  8. package/dist/Integration-Dg8PYOrr.js +3532 -0
  9. package/dist/{Integrations-drS5pVEz.js → Integrations-B-1-XM7e.js} +7 -7
  10. package/dist/{Layout-beXOCcj2.js → Layout-DuV2UlIx.js} +3 -3
  11. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-PJJaEOeS.js → LocationSelect.vue_vue_type_script_setup_true_lang-B3GeSJ17.js} +2164 -2172
  12. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-UHwO2Vm5.js → MenuTab.vue_vue_type_script_setup_true_lang-CRCXKFqR.js} +11 -11
  13. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-oDUn7q2N.js → NavigationTab.vue_vue_type_script_setup_true_lang-BOzS5kmU.js} +5984 -6896
  14. package/dist/{NoData.vue_vue_type_script_setup_true_lang-FeKqFs4A.js → NoData.vue_vue_type_script_setup_true_lang-DlBNFLa3.js} +2 -2
  15. package/dist/{OverviewView-a3koQzOA.js → OverviewView-CwwKc59T.js} +6 -6
  16. package/dist/{Report-MwiIS485.js → Report-Bn0P0s9e.js} +12 -12
  17. package/dist/{ReportEditor-No44W2rc.js → ReportEditor-CgshKNy_.js} +24 -25
  18. package/dist/{ReportView-56kYGNi3.js → ReportView-DVSSD2in.js} +9 -9
  19. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-6i3u0Axg.js → SelectComponent.vue_vue_type_script_setup_true_lang-DBI9op0g.js} +5 -5
  20. package/dist/{Setting--5MpVe0G.js → Setting-Tc7ZNiMW.js} +13 -13
  21. package/dist/{TileEditor-ONU3PGEO.js → TileEditor-DUtw3SpA.js} +331 -335
  22. package/dist/{TransitionFade-3h6lt6AM.js → TransitionFade-CgGZeuV3.js} +107 -121
  23. package/dist/{XeroRedirect-sLBv-Aqc.js → XeroRedirect-CuTrP62C.js} +2 -2
  24. package/dist/app.js +12 -12
  25. package/dist/{global-loader-hSpvBPX1.js → global-loader-D0HoIQuN.js} +1905 -1690
  26. package/dist/{index-JAqUtp7I.js → index-CoXjL8fr.js} +1 -1
  27. package/dist/{report-schema-IBXDBT4U.js → report-schema-ZDNzst0e.js} +1 -1
  28. package/dist/style.css +1 -1
  29. package/dist/{timeFormat-yx3JOmGm.js → timeFormat-LsHi_wa0.js} +1 -1
  30. package/dist/{v4-OYfvC92C.js → v4-DILqksya.js} +21 -38
  31. package/package.json +1 -1
  32. package/dist/Integration-YTGIj4Ae.js +0 -2587
  33. /package/dist/{_plugin-vue_export-helper-hUChTQA_.js → _plugin-vue_export-helper-CHgC5LLL.js} +0 -0
  34. /package/dist/{message-dialog-yXvmoAPz.js → message-dialog-UoMWOnil.js} +0 -0
@@ -1,21 +1,21 @@
1
- import { defineComponent as U, resolveComponent as w, openBlock as c, createBlock as x, unref as u, isRef as K, withCtx as _, createTextVNode as Q, toDisplayString as V, createElementVNode as E, createVNode as k, computed as q, watch as y, onBeforeMount as W, onMounted as z, onBeforeUnmount as X, ref as Y, createElementBlock as S, Fragment as Z } from "vue";
1
+ import { defineComponent as N, resolveComponent as w, createBlock as U, openBlock as c, unref as u, isRef as H, withCtx as _, createElementVNode as R, createVNode as k, toDisplayString as V, createTextVNode as Q, computed as q, watch as y, onBeforeMount as X, onMounted as j, onBeforeUnmount as z, ref as Y, createElementBlock as S, Fragment as Z } from "vue";
2
2
  import { useCoreStore as h } from "@feedmepos/mf-common";
3
- import { u as M, a as ee, b as te, c as oe, d as re, e as ne } from "./global-loader-hSpvBPX1.js";
3
+ import { u as M, a as ee, b as te, c as oe, d as re, e as ne } from "./global-loader-D0HoIQuN.js";
4
4
  import { storeToRefs as b } from "pinia";
5
- import { u as se, a as ae } from "./v4-OYfvC92C.js";
6
- import { u as ue } from "./report-schema-IBXDBT4U.js";
7
- import { _ as le, u as ie } from "./NavigationTab.vue_vue_type_script_setup_true_lang-oDUn7q2N.js";
8
- import { u as L } from "./message-dialog-yXvmoAPz.js";
5
+ import { u as se, a as ae } from "./v4-DILqksya.js";
6
+ import { u as ue } from "./report-schema-ZDNzst0e.js";
7
+ import { _ as le, u as ie } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BOzS5kmU.js";
8
+ import { u as L } from "./message-dialog-UoMWOnil.js";
9
9
  import { useRoute as ce } from "vue-router";
10
- const me = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, de = /* @__PURE__ */ U({
10
+ const me = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, de = /* @__PURE__ */ N({
11
11
  __name: "Dialog",
12
- setup(D) {
12
+ setup(x) {
13
13
  const o = L(), { isOpened: r, message: l, title: i } = b(L());
14
14
  return (m, n) => {
15
15
  const d = w("FmButton"), f = w("FmDialog");
16
- return c(), x(f, {
16
+ return c(), U(f, {
17
17
  modelValue: u(r),
18
- "onUpdate:modelValue": n[0] || (n[0] = (p) => K(r) ? r.value = p : null),
18
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => H(r) ? r.value = p : null),
19
19
  overlay: "",
20
20
  "close-button": !1
21
21
  }, {
@@ -23,10 +23,10 @@ const me = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, de
23
23
  Q(V(u(i)), 1)
24
24
  ]),
25
25
  default: _(() => [
26
- E("p", me, V(u(l)), 1)
26
+ R("p", me, V(u(l)), 1)
27
27
  ]),
28
28
  "dialog-footer": _(() => [
29
- n[1] || (n[1] = E("div", { class: "grow" }, null, -1)),
29
+ n[1] || (n[1] = R("div", { class: "grow" }, null, -1)),
30
30
  k(d, {
31
31
  label: "Cancel",
32
32
  variant: "tertiary",
@@ -41,10 +41,10 @@ const me = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, de
41
41
  }, 8, ["modelValue"]);
42
42
  };
43
43
  }
44
- }), ve = ["src"], fe = ["src"], Ce = /* @__PURE__ */ U({
44
+ }), ve = ["src"], fe = ["src"], Ce = /* @__PURE__ */ N({
45
45
  __name: "App",
46
- setup(D) {
47
- const { businessId: o, token: r, country: l } = b(M()), { sessionUser: i, currentBusiness: m, currentCountry: n, registerSidebarComponent: d } = h(), { getRestaurantAndWarehouse: f, getBusinessSetting: p } = ee(), { getFeatureFlags: I } = te(), { version: s } = b(se()), { getSettings: N } = oe(), a = ce(), { promptLoader: O } = re(), T = q(() => `https://portal-v1.feedme.cc/b/${o.value}/report/CLOSE_UP?showHeader=false&country=${l.value.toUpperCase()}&menuOption=business-report&token=${r.value}&v2=true&reportV5Button=true`), A = q(() => `https://report-v4.feedme.cc?businessId=${o.value}&country=${l.value}&token=${r.value}&reportV3Button=true`);
46
+ setup(x) {
47
+ const { businessId: o, token: r, country: l } = b(M()), { sessionUser: i, currentBusiness: m, currentCountry: n, registerSidebarComponent: d } = h(), { getRestaurantAndWarehouse: f, getBusinessSetting: p } = ee(), { getFeatureFlags: D } = te(), { version: s } = b(se()), { getSettings: I } = oe(), a = ce(), { promptLoader: O } = re(), T = q(() => `https://portal-v1.feedmedev.cc/b/${o.value}/report/CLOSE_UP?showHeader=false&country=${l.value.toUpperCase()}&menuOption=business-report&token=${r.value}&v2=true&reportV5Button=true`), A = q(() => `https://report-v4.feedmedev.cc?businessId=${o.value}&country=${l.value}&token=${r.value}&reportV3Button=true`);
48
48
  y(
49
49
  // if route query pass in the detail we switch accordingly
50
50
  [() => a.query, () => m.value, () => i.value],
@@ -74,37 +74,37 @@ const me = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, de
74
74
  }
75
75
  y(s, () => {
76
76
  ["v3", "v4"].includes(s.value) ? h().hideSidebarToggle(!0) : h().hideSidebarToggle(!1);
77
- }), W(() => {
77
+ }), X(() => {
78
78
  d(le);
79
- }), z(() => {
80
- console.log("5.4.10", !0), window.addEventListener("message", C), window.addEventListener("message", $);
79
+ }), j(() => {
80
+ console.log("5.4.11-beta.1", !0), window.addEventListener("message", C), window.addEventListener("message", $);
81
81
  });
82
82
  const F = ae(), B = ie();
83
- X(() => {
83
+ z(() => {
84
84
  window.removeEventListener("message", C), window.removeEventListener("message", $), F.$dispose(), B.$dispose();
85
85
  });
86
- const { getReports: J, getOverviewReport: G, getReportConfig: R } = F, { getSchema: P } = ue(), { fetchSchedules: j } = B, { init: H } = ne(), g = Y("v5");
86
+ const { getReports: J, getOverviewReport: W, getReportConfig: E } = F, { getSchema: G } = ue(), { fetchSchedules: K } = B, { init: P } = ne(), g = Y("v5");
87
87
  return y(
88
88
  () => o.value,
89
89
  () => {
90
90
  o.value !== "" && O(async () => {
91
- await H({
92
- apiKey: "6GhcttsJ9Rj9cTevcdrpin",
91
+ await P({
92
+ apiKey: "MaGoXrEWuEJNpWgKTqseee",
93
93
  url: "https://flag.feedme.farm/api/v1/",
94
94
  enableAnalytics: !1,
95
95
  cacheFlags: !1
96
96
  });
97
- const t = await R();
97
+ const t = await E();
98
98
  g.value = t.version, s.value = g.value, await Promise.all([
99
- I(),
100
- R(),
101
- G(),
99
+ D(),
100
+ E(),
101
+ W(),
102
102
  J(),
103
- P(),
104
- j(),
103
+ G(),
104
+ K(),
105
105
  p(),
106
106
  f(),
107
- N()
107
+ I()
108
108
  ]);
109
109
  });
110
110
  },
@@ -123,7 +123,7 @@ const me = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, de
123
123
  key: 1,
124
124
  class: "bg-white h-full w-full",
125
125
  src: A.value
126
- }, null, 8, fe)) : (c(), x(v, { key: 2 }))
126
+ }, null, 8, fe)) : (c(), U(v, { key: 2 }))
127
127
  ], 64);
128
128
  };
129
129
  }
@@ -1,4 +1,4 @@
1
- import { defineComponent as y, mergeModels as i, useModel as c, watch as v, resolveComponent as d, openBlock as g, createBlock as b, withCtx as n, createTextVNode as B, toDisplayString as V, renderSlot as C, createElementVNode as w, createVNode as m } from "vue";
1
+ import { defineComponent as y, mergeModels as i, useModel as c, watch as v, resolveComponent as d, createBlock as g, openBlock as b, withCtx as n, createElementVNode as B, createVNode as m, renderSlot as V, createTextVNode as C, toDisplayString as w } from "vue";
2
2
  const k = /* @__PURE__ */ y({
3
3
  __name: "BaseDialog",
4
4
  props: /* @__PURE__ */ i({
@@ -25,19 +25,19 @@ const k = /* @__PURE__ */ y({
25
25
  t.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
26
26
  }), (p, e) => {
27
27
  const r = d("FmButton"), f = d("FmDialog");
28
- return g(), b(f, {
28
+ return b(), g(f, {
29
29
  modelValue: t.value,
30
30
  "onUpdate:modelValue": e[2] || (e[2] = (l) => t.value = l),
31
31
  overlay: ""
32
32
  }, {
33
33
  "dialog-header": n(() => [
34
- B(V(o.title), 1)
34
+ C(w(o.title), 1)
35
35
  ]),
36
36
  default: n(() => [
37
- C(p.$slots, "content")
37
+ V(p.$slots, "content")
38
38
  ]),
39
39
  "dialog-footer": n(() => [
40
- e[3] || (e[3] = w("div", { class: "grow" }, null, -1)),
40
+ e[3] || (e[3] = B("div", { class: "grow" }, null, -1)),
41
41
  m(r, {
42
42
  label: o.secondaryButtonLabel,
43
43
  variant: "tertiary",
@@ -1,6 +1,6 @@
1
- import { defineComponent as k, resolveComponent as f, openBlock as d, createBlock as c, withCtx as g, createCommentVNode as D, createElementVNode as _, toDisplayString as x, renderSlot as M, mergeModels as P, useModel as i, ref as h, watch as C, createElementBlock as T, createVNode as p, unref as I } from "vue";
2
- import { v as O, C as $, f as n } from "./global-loader-hSpvBPX1.js";
3
- import { b as w } from "./index-JAqUtp7I.js";
1
+ import { defineComponent as k, resolveComponent as f, createBlock as s, openBlock as d, withCtx as g, createCommentVNode as D, createElementVNode as _, renderSlot as x, toDisplayString as M, mergeModels as P, useModel as i, ref as h, watch as C, createElementBlock as T, createVNode as p, unref as I } from "vue";
2
+ import { f as n, y as O, C as $ } from "./global-loader-D0HoIQuN.js";
3
+ import { b as w } from "./index-CoXjL8fr.js";
4
4
  const B = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, V = /* @__PURE__ */ k({
5
5
  __name: "FilterChip",
6
6
  props: {
@@ -18,31 +18,31 @@ const B = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitesp
18
18
  }
19
19
  },
20
20
  setup(a) {
21
- const l = a;
22
- return (r, o) => {
21
+ const o = a;
22
+ return (r, l) => {
23
23
  const e = f("FmIcon"), t = f("FmChip");
24
- return d(), c(t, { class: "bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400 max-w-fit" }, {
24
+ return d(), s(t, { class: "bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400 max-w-fit" }, {
25
25
  default: g(() => [
26
- a.leftIcon ? (d(), c(e, {
26
+ a.leftIcon ? (d(), s(e, {
27
27
  key: 0,
28
- name: l.leftIcon,
28
+ name: o.leftIcon,
29
29
  size: "sm",
30
30
  outline: ""
31
31
  }, null, 8, ["name"])) : D("", !0),
32
- _("p", B, x(l.label), 1),
33
- a.rightIcon ? (d(), c(e, {
32
+ _("p", B, M(o.label), 1),
33
+ a.rightIcon ? (d(), s(e, {
34
34
  key: 1,
35
35
  name: a.rightIcon,
36
36
  size: "sm",
37
37
  outline: ""
38
38
  }, null, 8, ["name"])) : D("", !0),
39
- M(r.$slots, "default")
39
+ x(r.$slots, "default")
40
40
  ]),
41
41
  _: 3
42
42
  });
43
43
  };
44
44
  }
45
- }), Y = { class: "flex gap-2 items-center" }, s = "YYYY-MM-DD", E = /* @__PURE__ */ k({
45
+ }), Y = { class: "flex gap-2 items-center" }, m = "YYYY-MM-DD", E = /* @__PURE__ */ k({
46
46
  __name: "DateRangeSelect",
47
47
  props: /* @__PURE__ */ P({
48
48
  compare: {
@@ -79,12 +79,12 @@ const B = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitesp
79
79
  emits: ["update:compareType", "update:dateRange", "update:compareDateRange"],
80
80
  setup(a) {
81
81
  var v, y, S;
82
- const l = i(a, "compareType"), r = i(a, "dateRange"), o = i(a, "compareDateRange"), e = h({
83
- startDate: (v = n(r.value.startDate)) == null ? void 0 : v.local().format(s),
84
- endDate: (y = n(r.value.endDate)) == null ? void 0 : y.local().format(s)
82
+ const o = i(a, "compareType"), r = i(a, "dateRange"), l = i(a, "compareDateRange"), e = h({
83
+ startDate: (v = n(r.value.startDate)) == null ? void 0 : v.local().format(m),
84
+ endDate: (y = n(r.value.endDate)) == null ? void 0 : y.local().format(m)
85
85
  }), t = h({
86
- startDate: o.value.startDate ? (S = n(o.value.startDate)) == null ? void 0 : S.local().format(s) : void 0,
87
- endDate: o.value.endDate ? n(o.value.endDate).local().format(s) : void 0
86
+ startDate: l.value.startDate ? (S = n(l.value.startDate)) == null ? void 0 : S.local().format(m) : void 0,
87
+ endDate: l.value.endDate ? n(l.value.endDate).local().format(m) : void 0
88
88
  });
89
89
  C([() => e.value], () => {
90
90
  r.value = {
@@ -92,20 +92,20 @@ const B = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitesp
92
92
  endDate: n(e.value.endDate).toISOString()
93
93
  };
94
94
  }), C([() => t.value], () => {
95
- o.value = {
95
+ l.value = {
96
96
  startDate: t.value.startDate ? n(t.value.startDate).toISOString() : void 0,
97
97
  endDate: t.value.endDate ? n(t.value.endDate).toISOString() : void 0
98
98
  };
99
99
  });
100
100
  function F(R) {
101
- l.value = R;
101
+ o.value = R;
102
102
  }
103
- return (R, m) => {
103
+ return (R, u) => {
104
104
  const b = f("FmSimpleDateRangePicker");
105
105
  return d(), T("div", Y, [
106
106
  p(b, {
107
107
  modelValue: e.value,
108
- "onUpdate:modelValue": m[0] || (m[0] = (u) => e.value = u),
108
+ "onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c),
109
109
  "show-predefined-range": "",
110
110
  "predefined-range": a.datePredefinedRanges,
111
111
  class: "w-2/6"
@@ -121,13 +121,13 @@ const B = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitesp
121
121
  ]),
122
122
  _: 1
123
123
  }, 8, ["modelValue", "predefined-range"]),
124
- a.compare ? (d(), c(b, {
124
+ a.compare ? (d(), s(b, {
125
125
  key: 0,
126
126
  modelValue: t.value,
127
- "onUpdate:modelValue": m[1] || (m[1] = (u) => t.value = u),
127
+ "onUpdate:modelValue": u[1] || (u[1] = (c) => t.value = c),
128
128
  "show-predefined-range": "",
129
129
  "compare-target": e.value,
130
- "default-compare-type": l.value,
130
+ "default-compare-type": o.value,
131
131
  onSelectComparison: F
132
132
  }, {
133
133
  "trigger-button": g(() => [
@@ -1,8 +1,8 @@
1
- import { defineComponent as u, computed as f, resolveComponent as p, openBlock as r, createElementBlock as s, normalizeClass as d, unref as e, normalizeStyle as n, createBlock as y, createCommentVNode as _, createVNode as k, createElementVNode as x, renderSlot as g } from "vue";
2
- import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-oDUn7q2N.js";
1
+ import { defineComponent as u, computed as f, resolveComponent as p, createElementBlock as s, openBlock as r, normalizeStyle as n, normalizeClass as d, unref as e, createBlock as y, createCommentVNode as _, createVNode as k, createElementVNode as x, renderSlot as g } from "vue";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BOzS5kmU.js";
3
3
  import { useBreakpoints as h } from "@feedmepos/ui-library";
4
4
  import { storeToRefs as b } from "pinia";
5
- import { d as w } from "./global-loader-hSpvBPX1.js";
5
+ import { d as w } from "./global-loader-D0HoIQuN.js";
6
6
  import { useRoute as q } from "vue-router";
7
7
  const C = {
8
8
  key: 1,