@feedmepos/mf-report 5.22.15 → 5.22.16-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-CdZlnXKI.js → App-DpuAgNW-.js} +34 -34
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-CLwzdS2Q.js → BaseDialog.vue_vue_type_script_setup_true_lang-Ba_6ppqM.js} +1504 -1367
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-CsDelr-w.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-C18LmQQC.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-DzDO-bfn.js → Default.vue_vue_type_script_setup_true_lang-D7aLgyLh.js} +2 -2
- package/dist/FilterSelector.vue_vue_type_script_setup_true_lang-Bk57pqIi.js +5500 -0
- package/dist/{InsightView--U8YNngJ.js → InsightView-DrluI02Q.js} +6 -6
- package/dist/{Integration-BECzMkNu.js → Integration-DbL5zUNf.js} +4 -4
- package/dist/{Integrations-CKTqvI1_.js → Integrations-BF3LzlTe.js} +4 -4
- package/dist/{Layout-Cnc8ppRk.js → Layout-xLlwSj_1.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DwTrXeDM.js → MenuTab.vue_vue_type_script_setup_true_lang-DQofFShA.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DU__tSUF.js → NavigationTab.vue_vue_type_script_setup_true_lang-fVhJABza.js} +1432 -1426
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-yT3rD3v6.js → NoData.vue_vue_type_script_setup_true_lang-DgArZblR.js} +1 -1
- package/dist/{OverviewView-x9wDh9Ri.js → OverviewView-CZT1-DMA.js} +5 -5
- package/dist/{Report-CK_isrIW.js → Report-BOQsyLNz.js} +4 -4
- package/dist/ReportEditor-DTwXQANq.js +1392 -0
- package/dist/ReportView-BEGChxeS.js +264 -0
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-COi1XhYD.js → SelectComponent.vue_vue_type_script_setup_true_lang-B8bo-PDl.js} +1 -1
- package/dist/{Setting-DyrGukYa.js → Setting-BMSHj3RC.js} +5 -5
- package/dist/TileEditor-CxL3KAnB.js +3820 -0
- package/dist/{TransitionFade-D4Rp-fR9.js → TransitionFade-D0gk9rB7.js} +11 -10
- package/dist/{app-Dd6GUk_Q.js → app-DuS5_COm.js} +156 -116
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-CxcSukKp.js → formatChartData.worker-BMafyqs1.js} +22 -22
- package/dist/assets/{processTableData.worker-MkLoF0u4.js → processTableData.worker-SW0HOvM7.js} +7 -7
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-Dw-A2QGb.js → useRestaurantPermission-YKdRmXrT.js} +1 -1
- package/dist/{vue-i18n-Dwv_B0_J.js → vue-i18n-Bq_4YULT.js} +2 -2
- package/package.json +1 -1
- package/dist/FilterSelector.vue_vue_type_script_setup_true_lang-DgagC5F1.js +0 -5405
- package/dist/ReportEditor-T12VzOJa.js +0 -1104
- package/dist/ReportView-BC77AQD8.js +0 -264
- package/dist/TileEditor-B-sEmK-X.js +0 -3789
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { defineComponent as ce, resolveComponent as
|
|
2
|
-
import { detectLocale as F, useCoreStore as
|
|
3
|
-
import { u as $e, a as Be, b as re, c as Fe, d as qe, e as xe, f as Je, s as Qe } from "./vue-i18n-
|
|
1
|
+
import { defineComponent as ce, resolveComponent as K, createBlock as de, openBlock as O, unref as l, isRef as Ce, withCtx as j, createElementVNode as te, createVNode as P, toDisplayString as ne, createTextVNode as ke, onMounted as ue, watch as b, ref as B, computed as oe, onBeforeMount as Ae, onBeforeUnmount as Ne, createElementBlock as V, Fragment as Te } from "vue";
|
|
2
|
+
import { detectLocale as F, useCoreStore as W } from "@feedmepos/mf-common";
|
|
3
|
+
import { u as $e, a as Be, b as re, c as Fe, d as qe, e as xe, f as Je, s as Qe } from "./vue-i18n-Bq_4YULT.js";
|
|
4
4
|
import { storeToRefs as w } from "pinia";
|
|
5
|
-
import { u as ae, a as Ue, b as
|
|
6
|
-
import { u as
|
|
5
|
+
import { u as ae, a as Ue, b as ze } from "./BaseDialog.vue_vue_type_script_setup_true_lang-Ba_6ppqM.js";
|
|
6
|
+
import { u as je, _ as Ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-fVhJABza.js";
|
|
7
7
|
import { u as se } from "./message-dialog-UoMWOnil.js";
|
|
8
|
-
import { d } from "./app-
|
|
9
|
-
import { useRoute as
|
|
10
|
-
const
|
|
8
|
+
import { d } from "./app-DuS5_COm.js";
|
|
9
|
+
import { useRoute as We, useRouter as Ke } from "vue-router";
|
|
10
|
+
const Pe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Ge = /* @__PURE__ */ ce({
|
|
11
11
|
__name: "Dialog",
|
|
12
|
-
setup(
|
|
12
|
+
setup(E) {
|
|
13
13
|
const { t: c } = $e(), p = se(), { isOpened: g, message: I, title: h } = w(se());
|
|
14
14
|
return (R, S) => {
|
|
15
|
-
const
|
|
15
|
+
const C = K("FmButton"), q = K("FmDialog");
|
|
16
16
|
return O(), de(q, {
|
|
17
17
|
modelValue: l(g),
|
|
18
|
-
"onUpdate:modelValue": S[0] || (S[0] = (x) =>
|
|
18
|
+
"onUpdate:modelValue": S[0] || (S[0] = (x) => Ce(g) ? g.value = x : null),
|
|
19
19
|
overlay: "",
|
|
20
20
|
"close-button": !1
|
|
21
21
|
}, {
|
|
22
|
-
"dialog-header":
|
|
22
|
+
"dialog-header": j(() => [
|
|
23
23
|
ke(ne(l(h)), 1)
|
|
24
24
|
]),
|
|
25
|
-
default:
|
|
26
|
-
te("p",
|
|
25
|
+
default: j(() => [
|
|
26
|
+
te("p", Pe, ne(l(I)), 1)
|
|
27
27
|
]),
|
|
28
|
-
"dialog-footer":
|
|
28
|
+
"dialog-footer": j(() => [
|
|
29
29
|
S[1] || (S[1] = te("div", { class: "grow" }, null, -1)),
|
|
30
|
-
|
|
30
|
+
P(C, {
|
|
31
31
|
label: l(c)("report.common.cancel"),
|
|
32
32
|
variant: "tertiary",
|
|
33
33
|
onClick: l(p).dismiss
|
|
34
34
|
}, null, 8, ["label", "onClick"]),
|
|
35
|
-
|
|
35
|
+
P(C, {
|
|
36
36
|
label: l(c)("report.common.confirm"),
|
|
37
37
|
onClick: l(p).confirm
|
|
38
38
|
}, null, 8, ["label", "onClick"])
|
|
@@ -43,7 +43,7 @@ const Ke = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, We
|
|
|
43
43
|
}
|
|
44
44
|
}), ie = B(F());
|
|
45
45
|
function He() {
|
|
46
|
-
const
|
|
46
|
+
const E = (c) => {
|
|
47
47
|
switch (ie.value = c, c) {
|
|
48
48
|
case "zh-CN":
|
|
49
49
|
d.locale("zh-cn");
|
|
@@ -54,16 +54,16 @@ function He() {
|
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
return ue(() => {
|
|
57
|
-
|
|
58
|
-
}), b(() => F(),
|
|
57
|
+
E(F());
|
|
58
|
+
}), b(() => F(), E, { deep: !0, immediate: !0 }), {
|
|
59
59
|
currentLocale: ie
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
d.locale(F() === "zh-CN" ? "zh-cn" : "en");
|
|
63
63
|
const Xe = ["src"], Ye = ["src"], ut = /* @__PURE__ */ ce({
|
|
64
64
|
__name: "App",
|
|
65
|
-
setup(
|
|
66
|
-
const { businessId: c, token: p, country: g } = w(Be()), { sessionUser: I, currentBusiness: h, currentCountry: R, registerSidebarComponent: S } =
|
|
65
|
+
setup(E) {
|
|
66
|
+
const { businessId: c, token: p, country: g } = w(Be()), { sessionUser: I, currentBusiness: h, currentCountry: R, registerSidebarComponent: S } = W(), { getRestaurantAndWarehouse: C, getBusinessSetting: q, beginBusinessLoad: x, completeBusinessLoad: le } = re(), { getFeatureFlags: fe } = Fe(), { version: y } = w(ae()), { getSettings: me } = qe(), { promptLoader: pe } = xe(), s = We(), J = Ke(), L = Ue(), G = je(), a = re(), ge = ae(), { suppressReportRouteSync: k } = w(ge), { getReports: ye, getOverviewReport: ve, getReportConfig: H, currentReportId: X } = L, { currentReportId: Se, reports: De } = w(L), { getSchema: Ie } = ze(), { fetchSchedules: he } = G, { init: Re } = Je(), Q = B("v5"), A = B(!1), N = B(!0), Le = oe(() => `https://portal-v1.feedmedev.cc/b/${c.value}/report/CLOSE_UP?showHeader=false&country=${g.value.toUpperCase()}&menuOption=business-report&token=${p.value}&v2=true&reportV5Button=true`), _e = oe(() => `https://report-v4.feedmedev.cc?businessId=${c.value}&country=${g.value}&token=${p.value}&reportV3Button=true`);
|
|
67
67
|
b(
|
|
68
68
|
[() => h.value, () => I.value, () => R.value],
|
|
69
69
|
() => {
|
|
@@ -92,13 +92,13 @@ const Xe = ["src"], Ye = ["src"], ut = /* @__PURE__ */ ce({
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
b(y, () => {
|
|
95
|
-
["v3", "v4"].includes(y.value) ?
|
|
95
|
+
["v3", "v4"].includes(y.value) ? W().hideSidebarToggle(!0) : W().hideSidebarToggle(!1);
|
|
96
96
|
}), Ae(() => {
|
|
97
97
|
S(Ve);
|
|
98
98
|
}), ue(() => {
|
|
99
|
-
console.log("5.22.
|
|
99
|
+
console.log("5.22.16-beta.0", !0), window.addEventListener("message", Y), window.addEventListener("message", Z);
|
|
100
100
|
}), Ne(() => {
|
|
101
|
-
window.removeEventListener("message", Y), window.removeEventListener("message", Z), L.$dispose(),
|
|
101
|
+
window.removeEventListener("message", Y), window.removeEventListener("message", Z), L.$dispose(), G.$dispose();
|
|
102
102
|
});
|
|
103
103
|
function Oe(t) {
|
|
104
104
|
try {
|
|
@@ -129,7 +129,7 @@ const Xe = ["src"], Ye = ["src"], ut = /* @__PURE__ */ ce({
|
|
|
129
129
|
return typeof e.hour == "number" && typeof e.minute == "number";
|
|
130
130
|
}
|
|
131
131
|
function be(t = s.query) {
|
|
132
|
-
const e = t, n = e.startDate ? d(e.startDate).startOf("day").toISOString() : void 0, o = e.endDate ? d(e.endDate).endOf("day").toISOString() : void 0, f = typeof e.timeStart == "string", i = typeof e.timeEnd == "string", m = T(e.timeStart), v = T(e.timeEnd), u = M(m) ? m : null, $ = M(v) ? v : null, U = e.compareStartDate ? d(e.compareStartDate).startOf("day").toISOString() : void 0,
|
|
132
|
+
const e = t, n = e.startDate ? d(e.startDate).startOf("day").toISOString() : void 0, o = e.endDate ? d(e.endDate).endOf("day").toISOString() : void 0, f = typeof e.timeStart == "string", i = typeof e.timeEnd == "string", m = T(e.timeStart), v = T(e.timeEnd), u = M(m) ? m : null, $ = M(v) ? v : null, U = e.compareStartDate ? d(e.compareStartDate).startOf("day").toISOString() : void 0, z = e.compareEndDate ? d(e.compareEndDate).endOf("day").toISOString() : void 0, ee = e.isAllLocation === "true" || e.isAllLocation === void 0;
|
|
133
133
|
let _ = [];
|
|
134
134
|
if (ee)
|
|
135
135
|
_ = a.selectedLocationIds ?? [];
|
|
@@ -146,16 +146,16 @@ const Xe = ["src"], Ye = ["src"], ut = /* @__PURE__ */ ce({
|
|
|
146
146
|
const r = a.timeRange;
|
|
147
147
|
(r.start !== u || r.end !== $) && a.setTimeRange({ start: u, end: $ });
|
|
148
148
|
}
|
|
149
|
-
if (U ||
|
|
149
|
+
if (U || z) {
|
|
150
150
|
const r = a.compareDateRange;
|
|
151
|
-
(r.startDate !== U || r.endDate !==
|
|
151
|
+
(r.startDate !== U || r.endDate !== z) && a.setCompareDateRange({
|
|
152
152
|
startDate: U,
|
|
153
|
-
endDate:
|
|
153
|
+
endDate: z
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
if (!ee) {
|
|
157
157
|
const r = a.selectedLocationIds;
|
|
158
|
-
r.length === _.length && r.every((we,
|
|
158
|
+
r.length === _.length && r.every((we, Ee) => we === _[Ee]) || a.setSelectedLocationIds(_);
|
|
159
159
|
}
|
|
160
160
|
return {
|
|
161
161
|
// TODO: this returned value can used for getBusinessSetting
|
|
@@ -197,7 +197,7 @@ const Xe = ["src"], Ye = ["src"], ut = /* @__PURE__ */ ce({
|
|
|
197
197
|
}
|
|
198
198
|
k.value !== void 0 && (k.value = !0), await pe(async () => {
|
|
199
199
|
await Re({
|
|
200
|
-
apiKey: "
|
|
200
|
+
apiKey: "MaGoXrEWuEJNpWgKTqseee",
|
|
201
201
|
url: "https://flag.feedme.farm/api/v1/",
|
|
202
202
|
enableAnalytics: !1,
|
|
203
203
|
cacheFlags: !1
|
|
@@ -210,7 +210,7 @@ const Xe = ["src"], Ye = ["src"], ut = /* @__PURE__ */ ce({
|
|
|
210
210
|
ye(),
|
|
211
211
|
Ie(),
|
|
212
212
|
he(),
|
|
213
|
-
|
|
213
|
+
C(
|
|
214
214
|
(() => {
|
|
215
215
|
const u = T(i.locationIds);
|
|
216
216
|
return Array.isArray(u) ? u : void 0;
|
|
@@ -273,9 +273,9 @@ const Xe = ["src"], Ye = ["src"], ut = /* @__PURE__ */ ce({
|
|
|
273
273
|
},
|
|
274
274
|
{ deep: !0 }
|
|
275
275
|
), He(), (t, e) => {
|
|
276
|
-
const n =
|
|
276
|
+
const n = K("router-view");
|
|
277
277
|
return O(), V(Te, null, [
|
|
278
|
-
|
|
278
|
+
P(Ge),
|
|
279
279
|
l(y) === "v3" ? (O(), V("iframe", {
|
|
280
280
|
key: 0,
|
|
281
281
|
class: "bg-white h-full w-full",
|