@feedmepos/mf-report 5.17.0 → 5.17.1-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.
- package/dist/{App-DnW_5m9k.js → App-DDzviLPJ.js} +22 -22
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-D8TqsfVZ.js → BaseDialog.vue_vue_type_script_setup_true_lang-C6V_Qiwh.js} +684 -683
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-DFm2vtXH.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CLTU-OJV.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-BOz9DH60.js → Default.vue_vue_type_script_setup_true_lang-Cf-9pNKR.js} +2 -2
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-BNVfHFBz.js → DynamicWidget.vue_vue_type_script_setup_true_lang-5sBXvHf3.js} +5 -5
- package/dist/{InsightView-K5G2jgHT.js → InsightView-Cwp5iFMb.js} +5 -5
- package/dist/{Integration-JiqzoKxJ.js → Integration-DwkFaxGn.js} +447 -430
- package/dist/{Integrations-BHmoWPpM.js → Integrations-CqMymn98.js} +3 -3
- package/dist/{Layout-X04fgDBo.js → Layout-DFCV3cM6.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CEgwFa25.js → MenuTab.vue_vue_type_script_setup_true_lang-BGaopPsY.js} +6 -6
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-6i5IDnT5.js → NavigationTab.vue_vue_type_script_setup_true_lang-CA8R0VVG.js} +5 -5
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-DMKNJeDr.js → NoData.vue_vue_type_script_setup_true_lang-By5gQvZP.js} +1 -1
- package/dist/{OverviewView-BqTlkV_f.js → OverviewView-NIjCH6mr.js} +5 -5
- package/dist/{Report-BrcQkXK7.js → Report-D9xejKHn.js} +4 -4
- package/dist/{ReportEditor-2Fz1IySZ.js → ReportEditor-CxD4mjIt.js} +6 -6
- package/dist/{ReportView-21veXp9M.js → ReportView-CzpxL-Bx.js} +7 -7
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-CCZo6blT.js → SelectComponent.vue_vue_type_script_setup_true_lang-eK4eP1Qy.js} +1 -1
- package/dist/{Setting-ChT46aiv.js → Setting-3OEOs2-P.js} +4 -4
- package/dist/{TileEditor-DtkIpqrb.js → TileEditor-D1YNLoQt.js} +7 -7
- package/dist/{TransitionFade-zgQSBMP-.js → TransitionFade-w5Of7pis.js} +5 -5
- package/dist/app.js +11 -11
- package/dist/assets/formatChartData.worker-VUlqRZS1.js +8 -0
- package/dist/{helper-CT5WD6D6.js → helper-bP_1beSH.js} +1 -1
- package/dist/{vue-i18n-Dre8K8BL.js → vue-i18n-BgRNnwPF.js} +1 -1
- package/package.json +1 -1
- package/dist/assets/formatChartData.worker-DThPQ5tB.js +0 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as O, resolveComponent as b, createBlock as T, openBlock as c, unref as r, isRef as X, withCtx as S, createElementVNode as
|
|
1
|
+
import { defineComponent as O, resolveComponent as b, createBlock as T, openBlock as c, unref as r, isRef as X, withCtx as S, createElementVNode as R, createVNode as k, toDisplayString as V, createTextVNode as Y, onMounted as z, watch as f, ref as I, computed as D, onBeforeMount as Z, onBeforeUnmount as M, createElementBlock as w, Fragment as ee } from "vue";
|
|
2
2
|
import { detectLocale as p, useCoreStore as y } from "@feedmepos/mf-common";
|
|
3
|
-
import { u as te, d as C, a as oe, b as re, c as ae, e as ne, f as se, s as le, g as ue } from "./vue-i18n-
|
|
3
|
+
import { u as te, d as C, a as oe, b as re, c as ae, e as ne, f as se, s as le, g as ue } from "./vue-i18n-BgRNnwPF.js";
|
|
4
4
|
import { storeToRefs as $ } from "pinia";
|
|
5
|
-
import { u as ie, a as ce, b as me } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as de, u as ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { u as ie, a as ce, b as me } from "./BaseDialog.vue_vue_type_script_setup_true_lang-C6V_Qiwh.js";
|
|
6
|
+
import { _ as de, u as ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CA8R0VVG.js";
|
|
7
7
|
import { u as U } from "./message-dialog-UoMWOnil.js";
|
|
8
8
|
const fe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, pe = /* @__PURE__ */ O({
|
|
9
9
|
__name: "Dialog",
|
|
@@ -18,13 +18,13 @@ const fe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, pe
|
|
|
18
18
|
"close-button": !1
|
|
19
19
|
}, {
|
|
20
20
|
"dialog-header": S(() => [
|
|
21
|
-
Y(
|
|
21
|
+
Y(V(r(i)), 1)
|
|
22
22
|
]),
|
|
23
23
|
default: S(() => [
|
|
24
|
-
|
|
24
|
+
R("p", fe, V(r(u)), 1)
|
|
25
25
|
]),
|
|
26
26
|
"dialog-footer": S(() => [
|
|
27
|
-
l[1] || (l[1] =
|
|
27
|
+
l[1] || (l[1] = R("div", { class: "grow" }, null, -1)),
|
|
28
28
|
k(v, {
|
|
29
29
|
label: r(t)("report.common.cancel"),
|
|
30
30
|
variant: "tertiary",
|
|
@@ -61,7 +61,7 @@ C.locale(p() === "zh-CN" ? "zh-cn" : "en");
|
|
|
61
61
|
const he = ["src"], _e = ["src"], Fe = /* @__PURE__ */ O({
|
|
62
62
|
__name: "App",
|
|
63
63
|
setup(m) {
|
|
64
|
-
const { businessId: t, token: n, country: a } = $(oe()), { sessionUser: u, currentBusiness: i, currentCountry: d, registerSidebarComponent: l } = y(), { getRestaurantAndWarehouse: v, getBusinessSetting: g } = re(), { getFeatureFlags: h } = ae(), { version: s } = $(ie()), { getSettings: j } = ne(), { promptLoader: A } = se(), J =
|
|
64
|
+
const { businessId: t, token: n, country: a } = $(oe()), { sessionUser: u, currentBusiness: i, currentCountry: d, registerSidebarComponent: l } = y(), { getRestaurantAndWarehouse: v, getBusinessSetting: g } = re(), { getFeatureFlags: h } = ae(), { version: s } = $(ie()), { getSettings: j } = ne(), { promptLoader: A } = se(), J = D(() => `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`), W = D(() => `https://report-v4.feedmedev.cc?businessId=${t.value}&country=${a.value}&token=${n.value}&reportV3Button=true`);
|
|
65
65
|
f(
|
|
66
66
|
[() => i.value, () => u.value, () => d.value],
|
|
67
67
|
() => {
|
|
@@ -93,31 +93,31 @@ const he = ["src"], _e = ["src"], Fe = /* @__PURE__ */ O({
|
|
|
93
93
|
}), Z(() => {
|
|
94
94
|
l(de);
|
|
95
95
|
}), z(() => {
|
|
96
|
-
console.log("5.17.0", !0), window.addEventListener("message", F), window.addEventListener("message", B);
|
|
96
|
+
console.log("5.17.1-beta.0", !0), window.addEventListener("message", F), window.addEventListener("message", B);
|
|
97
97
|
});
|
|
98
|
-
const
|
|
98
|
+
const E = ce(), L = ve();
|
|
99
99
|
M(() => {
|
|
100
|
-
window.removeEventListener("message", F), window.removeEventListener("message", B),
|
|
100
|
+
window.removeEventListener("message", F), window.removeEventListener("message", B), E.$dispose(), L.$dispose();
|
|
101
101
|
});
|
|
102
|
-
const { getReports:
|
|
102
|
+
const { getReports: G, getOverviewReport: K, getReportConfig: N } = E, { getSchema: P } = me(), { fetchSchedules: q } = L, { init: H } = ue(), _ = I("v5");
|
|
103
103
|
return f(
|
|
104
104
|
() => t.value,
|
|
105
105
|
() => {
|
|
106
106
|
t.value !== "" && A(async () => {
|
|
107
|
-
await
|
|
108
|
-
apiKey: "
|
|
107
|
+
await H({
|
|
108
|
+
apiKey: "MaGoXrEWuEJNpWgKTqseee",
|
|
109
109
|
url: "https://flag.feedme.farm/api/v1/",
|
|
110
110
|
enableAnalytics: !1,
|
|
111
111
|
cacheFlags: !1
|
|
112
112
|
});
|
|
113
|
-
const o = await
|
|
113
|
+
const o = await N();
|
|
114
114
|
_.value = o.version, s.value = _.value, await Promise.all([
|
|
115
115
|
h(),
|
|
116
|
-
|
|
117
|
-
H(),
|
|
118
|
-
P(),
|
|
116
|
+
N(),
|
|
119
117
|
K(),
|
|
120
|
-
|
|
118
|
+
G(),
|
|
119
|
+
P(),
|
|
120
|
+
q(),
|
|
121
121
|
g(),
|
|
122
122
|
v(),
|
|
123
123
|
j()
|
|
@@ -128,7 +128,7 @@ const he = ["src"], _e = ["src"], Fe = /* @__PURE__ */ O({
|
|
|
128
128
|
immediate: !0
|
|
129
129
|
}
|
|
130
130
|
), ge(), (o, e) => {
|
|
131
|
-
const
|
|
131
|
+
const Q = b("router-view");
|
|
132
132
|
return c(), w(ee, null, [
|
|
133
133
|
k(pe),
|
|
134
134
|
r(s) === "v3" ? (c(), w("iframe", {
|
|
@@ -138,8 +138,8 @@ const he = ["src"], _e = ["src"], Fe = /* @__PURE__ */ O({
|
|
|
138
138
|
}, null, 8, he)) : r(s) === "v4" ? (c(), w("iframe", {
|
|
139
139
|
key: 1,
|
|
140
140
|
class: "bg-white h-full w-full",
|
|
141
|
-
src:
|
|
142
|
-
}, null, 8, _e)) : (c(), T(
|
|
141
|
+
src: W.value
|
|
142
|
+
}, null, 8, _e)) : (c(), T(Q, { key: 2 }))
|
|
143
143
|
], 64);
|
|
144
144
|
};
|
|
145
145
|
}
|