@feedmepos/mf-report 5.4.11 → 5.4.12-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 (25) hide show
  1. package/dist/{App-DsN1J3Fk.js → App-BfiD9wmy.js} +30 -30
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-D7xFDtWS.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CpiR4ObD.js} +2 -2
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-CNaaJw_o.js → Default.vue_vue_type_script_setup_true_lang-6dgHXUk3.js} +2 -2
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-BDwLDob9.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DKTYFcWp.js} +3 -3
  5. package/dist/{InsightView-BLVGS_SK.js → InsightView-D--f3-pW.js} +5 -5
  6. package/dist/{Integration-DSTAJ3fV.js → Integration-ksYAaTEL.js} +1135 -1122
  7. package/dist/{Integrations-DZI6I4ub.js → Integrations-B-1-XM7e.js} +1 -1
  8. package/dist/{Layout-BA26sems.js → Layout-C4LN_UCn.js} +1 -1
  9. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-CMlV5upC.js → LocationSelect.vue_vue_type_script_setup_true_lang-B3GeSJ17.js} +2 -2
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Qu5DHicC.js → MenuTab.vue_vue_type_script_setup_true_lang-CRCXKFqR.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-Cs-HHx9c.js → NavigationTab.vue_vue_type_script_setup_true_lang-BOeN_d37.js} +3 -3
  12. package/dist/{OverviewView-DgcyySP9.js → OverviewView-Cxr6evbQ.js} +4 -4
  13. package/dist/{Report-CUIt4g-a.js → Report-CENcCPN3.js} +3 -3
  14. package/dist/{ReportEditor-pSDkKavW.js → ReportEditor-C9xlGtQB.js} +4 -4
  15. package/dist/{ReportView-usiOoG-C.js → ReportView-CVRJ-zW-.js} +6 -6
  16. package/dist/{Setting-BiGklPin.js → Setting-CjErDTYk.js} +4 -4
  17. package/dist/{TileEditor-CJxPqUDK.js → TileEditor-CCdfNvYC.js} +6 -6
  18. package/dist/{TransitionFade-CQgyEooL.js → TransitionFade-CJVHPwW2.js} +4 -4
  19. package/dist/app.js +11 -11
  20. package/dist/{global-loader-BXUq_uOb.js → global-loader-D0HoIQuN.js} +1 -1
  21. package/dist/{index-D5LVkVbJ.js → index-CoXjL8fr.js} +1 -1
  22. package/dist/{report-schema-Bf8XSI6U.js → report-schema-ZDNzst0e.js} +1 -1
  23. package/dist/{timeFormat-GVzfkgtj.js → timeFormat-LsHi_wa0.js} +1 -1
  24. package/dist/{v4-D2BDi2Lj.js → v4-Cp79gNIM.js} +5154 -5076
  25. package/package.json +1 -1
@@ -1,32 +1,32 @@
1
- import { defineComponent as U, resolveComponent as w, createBlock as x, openBlock as c, unref as u, isRef as K, withCtx as _, createElementVNode as V, createVNode as k, toDisplayString as E, createTextVNode as Q, 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-BXUq_uOb.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-D2BDi2Lj.js";
6
- import { u as ue } from "./report-schema-Bf8XSI6U.js";
7
- import { _ as le, u as ie } from "./NavigationTab.vue_vue_type_script_setup_true_lang-Cs-HHx9c.js";
5
+ import { u as se, a as ae } from "./v4-Cp79gNIM.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-BOeN_d37.js";
8
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
  }, {
22
22
  "dialog-header": _(() => [
23
- Q(E(u(i)), 1)
23
+ Q(V(u(i)), 1)
24
24
  ]),
25
25
  default: _(() => [
26
- V("p", me, E(u(l)), 1)
26
+ R("p", me, V(u(l)), 1)
27
27
  ]),
28
28
  "dialog-footer": _(() => [
29
- n[1] || (n[1] = V("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.11", !0), window.addEventListener("message", C), window.addEventListener("message", $);
79
+ }), j(() => {
80
+ console.log("5.4.12-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,6 +1,6 @@
1
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-BXUq_uOb.js";
3
- import { b as w } from "./index-D5LVkVbJ.js";
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: {
@@ -1,8 +1,8 @@
1
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-Cs-HHx9c.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BOeN_d37.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-BXUq_uOb.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,
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as E, useModel as z, computed as i, ref as D, resolveComponent as y, createElementBlock as S, openBlock as h, Fragment as W, renderSlot as U, createVNode as k, createElementVNode as C, toDisplayString as K, unref as q, withCtx as $, createBlock as R, createCommentVNode as G, normalizeClass as te, normalizeStyle as ye, h as ve, renderList as we, mergeModels as Ie, watch as ee, onMounted as Pe, onUnmounted as We, resolveDynamicComponent as Ee, withDirectives as ze, vShow as He } from "vue";
2
- import { W as r, v as ae, R as Oe, g as qe, d as Ue, q as je } from "./v4-D2BDi2Lj.js";
3
- import { a as _e, u as re } from "./global-loader-BXUq_uOb.js";
4
- import { d as he } from "./index-D5LVkVbJ.js";
2
+ import { W as r, v as ae, R as Oe, g as qe, d as Ue, q as je } from "./v4-Cp79gNIM.js";
3
+ import { a as _e, u as re } from "./global-loader-D0HoIQuN.js";
4
+ import { d as he } from "./index-CoXjL8fr.js";
5
5
  import { storeToRefs as se } from "pinia";
6
6
  import { _ as Ge } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  import { _ as ge } from "./NoData.vue_vue_type_script_setup_true_lang-DlBNFLa3.js";
@@ -2,15 +2,15 @@ var Xo = Object.defineProperty;
2
2
  var Ko = (i, t, e) => t in i ? Xo(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
3
  var k = (i, t, e) => Ko(i, typeof t != "symbol" ? t + "" : t, e);
4
4
  import { ref as Ht, defineComponent as ne, watch as ai, computed as wt, onMounted as qo, createElementBlock as U, openBlock as z, createElementVNode as R, renderSlot as jn, toDisplayString as ft, resolveDirective as $n, createCommentVNode as Mt, Fragment as Ii, renderList as zi, withDirectives as qe, createVNode as tt, normalizeClass as Ge, resolveComponent as ri, unref as Qt, useModel as Go, createBlock as ue, resolveDynamicComponent as Zo, withCtx as Jt, createTextVNode as Qo, isRef as ki, nextTick as Jo } from "vue";
5
- import { _ as ta } from "./Default.vue_vue_type_script_setup_true_lang-CNaaJw_o.js";
5
+ import { _ as ta } from "./Default.vue_vue_type_script_setup_true_lang-6dgHXUk3.js";
6
6
  import { _ as ea } from "./HeaderTab.vue_vue_type_script_setup_true_lang-B5VBDNwX.js";
7
- import { _ as ia } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-D7xFDtWS.js";
8
- import { f as Bi, u as Yn, g as Un, F as Xn, a as sa } from "./global-loader-BXUq_uOb.js";
7
+ import { _ as ia } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CpiR4ObD.js";
8
+ import { f as Bi, u as Yn, g as Un, F as Xn, a as sa } from "./global-loader-D0HoIQuN.js";
9
9
  import { storeToRefs as Kn } from "pinia";
10
- import { c as na } from "./index-D5LVkVbJ.js";
10
+ import { c as na } from "./index-CoXjL8fr.js";
11
11
  import { components as oa, useBreakpoints as aa, useSnackbar as ra } from "@feedmepos/ui-library";
12
12
  import { _ as la } from "./NoData.vue_vue_type_script_setup_true_lang-DlBNFLa3.js";
13
- import { _ as ca } from "./LocationSelect.vue_vue_type_script_setup_true_lang-CMlV5upC.js";
13
+ import { _ as ca } from "./LocationSelect.vue_vue_type_script_setup_true_lang-B3GeSJ17.js";
14
14
  function ha({ start: i, end: t }) {
15
15
  return `${Bi(t).format("DD MMM")}, ${Bi(t).format("YYYY")}`;
16
16
  }