@feedmepos/mf-report 5.21.38-beta.0 → 5.21.39-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-CuYGHZe2.js → App-C9kh7XpH.js} +38 -40
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-Lh8NI6BH.js → BaseDialog.vue_vue_type_script_setup_true_lang-D2TXDVOj.js} +3 -3
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-Dn5lpOCX.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BDoATidT.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-3qT8uNJS.js → Default.vue_vue_type_script_setup_true_lang-DaFJdoxZ.js} +2 -2
- package/dist/FilterSelector.vue_vue_type_script_setup_true_lang-C5kp_IC_.js +2624 -0
- package/dist/{InsightView-D8Bmz9iP.js → InsightView-CHEu_CmU.js} +6 -6
- package/dist/{Integration-CcD7pBy1.js → Integration-CItYjFoB.js} +3 -3
- package/dist/{Integrations-DvR7n4cG.js → Integrations-DWOffOH4.js} +3 -3
- package/dist/{Layout-CYsvsQ3P.js → Layout-Drs6o0OE.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CGFLuqC1.js → MenuTab.vue_vue_type_script_setup_true_lang-DzdABO5_.js} +13 -14
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BeSeiL-a.js → NavigationTab.vue_vue_type_script_setup_true_lang-B_zSOuPn.js} +5 -5
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-DkKzv-mA.js → NoData.vue_vue_type_script_setup_true_lang-DsTTYbp7.js} +1 -1
- package/dist/{OverviewView-Bg58z7jU.js → OverviewView-udMSAr7r.js} +5 -5
- package/dist/{Report-D3hCm7bS.js → Report-rzRD5nzK.js} +4 -4
- package/dist/{ReportEditor-BLCO6amo.js → ReportEditor-DrMgC1kv.js} +6 -6
- package/dist/{ReportView-BPaoKltM.js → ReportView-DtW4rlAN.js} +8 -8
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-CKz6PPbe.js → SelectComponent.vue_vue_type_script_setup_true_lang-Ba6ktsWW.js} +1 -1
- package/dist/{Setting-B91BuuEJ.js → Setting-pG9DDDNn.js} +5 -5
- package/dist/{TileEditor-CAd-yIfE.js → TileEditor-Wh2R1JXv.js} +897 -951
- package/dist/{TransitionFade-CevfMdMu.js → TransitionFade-DheKsv9w.js} +6 -6
- package/dist/{app-Bm6NuQvH.js → app-CXFVEo4M.js} +15 -19
- package/dist/app.js +1 -1
- package/dist/{vue-i18n-BMlI-z7l.js → vue-i18n-BW9ipscO.js} +1 -1
- package/package.json +2 -2
- package/dist/FilterSelector.vue_vue_type_script_setup_true_lang-BqCJtkRl.js +0 -2903
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as se, resolveComponent as V, createBlock as ie, openBlock as R, unref as c, isRef as Oe, withCtx as z, createElementVNode as M, createVNode as W, toDisplayString as ee, createTextVNode as we, onMounted as ue, watch as q, ref as
|
|
2
|
-
import { detectLocale as
|
|
3
|
-
import { u as Ae, a as Ne, b as ne, c as Te, d as Be, e as Fe, f as $e, s as xe } from "./vue-i18n-
|
|
1
|
+
import { defineComponent as se, resolveComponent as V, createBlock as ie, openBlock as R, unref as c, isRef as Oe, withCtx as z, createElementVNode as M, createVNode as W, toDisplayString as ee, createTextVNode as we, onMounted as ue, watch as q, ref as A, computed as te, onBeforeMount as Ce, onBeforeUnmount as Ee, createElementBlock as Q, Fragment as ke } from "vue";
|
|
2
|
+
import { detectLocale as N, useCoreStore as j } from "@feedmepos/mf-common";
|
|
3
|
+
import { u as Ae, a as Ne, b as ne, c as Te, d as Be, e as Fe, f as $e, s as xe } from "./vue-i18n-BW9ipscO.js";
|
|
4
4
|
import { storeToRefs as L } from "pinia";
|
|
5
|
-
import { u as re, a as Je, b as Ue } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { u as ze, _ as Qe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { u as re, a as Je, b as Ue } from "./BaseDialog.vue_vue_type_script_setup_true_lang-D2TXDVOj.js";
|
|
6
|
+
import { u as ze, _ as Qe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-B_zSOuPn.js";
|
|
7
7
|
import { u as ae } from "./message-dialog-UoMWOnil.js";
|
|
8
|
-
import { d as u } from "./app-
|
|
8
|
+
import { d as u } from "./app-CXFVEo4M.js";
|
|
9
9
|
import { useRoute as je, useRouter as Ve } from "vue-router";
|
|
10
10
|
const We = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Pe = /* @__PURE__ */ se({
|
|
11
11
|
__name: "Dialog",
|
|
12
12
|
setup(_) {
|
|
13
13
|
const { t: i } = Ae(), l = ae(), { isOpened: d, message: S, title: D } = L(ae());
|
|
14
|
-
return (
|
|
15
|
-
const b = V("FmButton"),
|
|
16
|
-
return R(), ie(
|
|
14
|
+
return (m, g) => {
|
|
15
|
+
const b = V("FmButton"), T = V("FmDialog");
|
|
16
|
+
return R(), ie(T, {
|
|
17
17
|
modelValue: c(d),
|
|
18
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
18
|
+
"onUpdate:modelValue": g[0] || (g[0] = (B) => Oe(d) ? d.value = B : null),
|
|
19
19
|
overlay: "",
|
|
20
20
|
"close-button": !1
|
|
21
21
|
}, {
|
|
@@ -41,7 +41,7 @@ const We = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Pe
|
|
|
41
41
|
}, 8, ["modelValue"]);
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
}), oe = N(
|
|
44
|
+
}), oe = A(N());
|
|
45
45
|
function Ge() {
|
|
46
46
|
const _ = (i) => {
|
|
47
47
|
switch (oe.value = i, i) {
|
|
@@ -54,33 +54,31 @@ function Ge() {
|
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
return ue(() => {
|
|
57
|
-
_(
|
|
58
|
-
}), q(() =>
|
|
57
|
+
_(N());
|
|
58
|
+
}), q(() => N(), _, { deep: !0, immediate: !0 }), {
|
|
59
59
|
currentLocale: oe
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
|
-
u.locale(
|
|
62
|
+
u.locale(N() === "zh-CN" ? "zh-cn" : "en");
|
|
63
63
|
const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
|
|
64
64
|
__name: "App",
|
|
65
65
|
setup(_) {
|
|
66
|
-
const { businessId: i, token: l, country: d } = L(Ne()), { sessionUser: S, currentBusiness: D, currentCountry:
|
|
66
|
+
const { businessId: i, token: l, country: d } = L(Ne()), { sessionUser: S, currentBusiness: D, currentCountry: m, registerSidebarComponent: g } = j(), { getRestaurantAndWarehouse: b, getBusinessSetting: T, beginBusinessLoad: B, completeBusinessLoad: ce } = ne(), { getFeatureFlags: de } = Te(), { version: f } = L(re()), { getSettings: le } = Be(), { promptLoader: me } = Fe(), n = je(), F = Ve(), h = Je(), P = ze(), r = ne(), fe = re(), { suppressReportRouteSync: O } = L(fe), { getReports: pe, getOverviewReport: ge, getReportConfig: G, currentReportId: K } = h, { currentReportId: ye, reports: ve } = L(h), { getSchema: Se } = Ue(), { fetchSchedules: De } = P, { init: he } = $e(), $ = A("v5"), w = A(!1), x = A(!0), Ie = te(() => `https://portal-v1.feedmedev.cc/b/${i.value}/report/CLOSE_UP?showHeader=false&country=${d.value.toUpperCase()}&menuOption=business-report&token=${l.value}&v2=true&reportV5Button=true`), Re = te(() => `https://report-v4.feedmedev.cc?businessId=${i.value}&country=${d.value}&token=${l.value}&reportV3Button=true`);
|
|
67
67
|
q(
|
|
68
|
-
[() => D.value, () => S.value, () =>
|
|
68
|
+
[() => D.value, () => S.value, () => m.value],
|
|
69
69
|
() => {
|
|
70
70
|
var t, a;
|
|
71
71
|
const e = ((t = D.value) == null ? void 0 : t.id) ?? "";
|
|
72
|
-
if (D.value && S.value &&
|
|
73
|
-
xe(
|
|
72
|
+
if (D.value && S.value && m.value) {
|
|
73
|
+
xe(m.value), i.value !== e && (i.value = e);
|
|
74
74
|
let s = !1;
|
|
75
|
-
d.value !==
|
|
75
|
+
d.value !== m.value && (s = !0), l.value = ((a = S.value) == null ? void 0 : a.token) ?? "", d.value = m.value ?? "", (n.query.businessId !== i.value || s) && F.replace({
|
|
76
76
|
name: n.name,
|
|
77
77
|
params: n.params,
|
|
78
78
|
query: {
|
|
79
79
|
...n.query,
|
|
80
80
|
businessId: i.value,
|
|
81
|
-
country:
|
|
82
|
-
isAllLocation: "true",
|
|
83
|
-
locationIds: void 0
|
|
81
|
+
country: m.value
|
|
84
82
|
}
|
|
85
83
|
});
|
|
86
84
|
}
|
|
@@ -100,17 +98,17 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
|
|
|
100
98
|
if (typeof e.data == "string")
|
|
101
99
|
try {
|
|
102
100
|
const t = JSON.parse(e.data);
|
|
103
|
-
(t == null ? void 0 : t.v5) === !0 ?
|
|
101
|
+
(t == null ? void 0 : t.v5) === !0 ? f.value = $.value : (t == null ? void 0 : t.v3) === !0 && (f.value = "v3");
|
|
104
102
|
} catch (t) {
|
|
105
103
|
console.error(t);
|
|
106
104
|
}
|
|
107
105
|
}
|
|
108
|
-
q(
|
|
109
|
-
["v3", "v4"].includes(
|
|
106
|
+
q(f, () => {
|
|
107
|
+
["v3", "v4"].includes(f.value) ? j().hideSidebarToggle(!0) : j().hideSidebarToggle(!1);
|
|
110
108
|
}), Ce(() => {
|
|
111
109
|
g(Qe);
|
|
112
110
|
}), ue(() => {
|
|
113
|
-
console.log("5.21.
|
|
111
|
+
console.log("5.21.39-beta.0", !0), window.addEventListener("message", H), window.addEventListener("message", X);
|
|
114
112
|
}), Ee(() => {
|
|
115
113
|
window.removeEventListener("message", H), window.removeEventListener("message", X), h.$dispose(), P.$dispose();
|
|
116
114
|
});
|
|
@@ -121,7 +119,7 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
|
|
|
121
119
|
return e;
|
|
122
120
|
}
|
|
123
121
|
}
|
|
124
|
-
function
|
|
122
|
+
function C(e) {
|
|
125
123
|
if (typeof e != "string" || e.length === 0) return;
|
|
126
124
|
const t = e.includes("%") ? [e, qe(e)] : [e];
|
|
127
125
|
for (const a of t)
|
|
@@ -143,12 +141,12 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
|
|
|
143
141
|
return typeof t.hour == "number" && typeof t.minute == "number";
|
|
144
142
|
}
|
|
145
143
|
function Le() {
|
|
146
|
-
const e = n.query.startDate ? u(n.query.startDate).startOf("day").toISOString() : void 0, t = n.query.endDate ? u(n.query.endDate).endOf("day").toISOString() : void 0, a = typeof n.query.timeStart == "string", s = typeof n.query.timeEnd == "string", p =
|
|
144
|
+
const e = n.query.startDate ? u(n.query.startDate).startOf("day").toISOString() : void 0, t = n.query.endDate ? u(n.query.endDate).endOf("day").toISOString() : void 0, a = typeof n.query.timeStart == "string", s = typeof n.query.timeEnd == "string", p = C(n.query.timeStart), I = C(n.query.timeEnd), E = Y(p) ? p : null, k = Y(I) ? I : null, J = n.query.compareStartDate ? u(n.query.compareStartDate).startOf("day").toISOString() : void 0, U = n.query.compareEndDate ? u(n.query.compareEndDate).endOf("day").toISOString() : void 0, Z = n.query.isAllLocation === "true" || n.query.isAllLocation === void 0;
|
|
147
145
|
let y = [];
|
|
148
146
|
if (Z)
|
|
149
147
|
y = r.selectedLocationIds;
|
|
150
148
|
else {
|
|
151
|
-
const o =
|
|
149
|
+
const o = C(n.query.locationIds);
|
|
152
150
|
y = Array.isArray(o) ? o : [];
|
|
153
151
|
}
|
|
154
152
|
let v = n.query.reportId || K;
|
|
@@ -158,7 +156,7 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
|
|
|
158
156
|
}
|
|
159
157
|
if (a || s) {
|
|
160
158
|
const o = r.timeRange;
|
|
161
|
-
(o.start !==
|
|
159
|
+
(o.start !== E || o.end !== k) && r.setTimeRange({ start: E, end: k });
|
|
162
160
|
}
|
|
163
161
|
if (J || U) {
|
|
164
162
|
const o = r.compareDateRange;
|
|
@@ -187,7 +185,7 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
|
|
|
187
185
|
return q(
|
|
188
186
|
() => i.value,
|
|
189
187
|
async (e) => {
|
|
190
|
-
e !== "" && (w.value = !1,
|
|
188
|
+
e !== "" && (w.value = !1, B(e), x.value || (r.setSelectedLocationIds([]), F.replace({
|
|
191
189
|
name: n.name,
|
|
192
190
|
params: n.params,
|
|
193
191
|
query: {
|
|
@@ -195,7 +193,7 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
|
|
|
195
193
|
locationIds: void 0,
|
|
196
194
|
isAllLocation: "true"
|
|
197
195
|
}
|
|
198
|
-
})), O.value !== void 0 && (O.value = !0), await
|
|
196
|
+
})), O.value !== void 0 && (O.value = !0), await me(async () => {
|
|
199
197
|
await he({
|
|
200
198
|
apiKey: "MaGoXrEWuEJNpWgKTqseee",
|
|
201
199
|
url: "https://flag.feedme.farm/api/v1/",
|
|
@@ -203,7 +201,7 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
|
|
|
203
201
|
cacheFlags: !1
|
|
204
202
|
});
|
|
205
203
|
const t = await G();
|
|
206
|
-
|
|
204
|
+
$.value = t.version, f.value = $.value, await Promise.all([
|
|
207
205
|
de(),
|
|
208
206
|
G(),
|
|
209
207
|
ge(),
|
|
@@ -212,13 +210,13 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
|
|
|
212
210
|
De(),
|
|
213
211
|
b(
|
|
214
212
|
(() => {
|
|
215
|
-
const a =
|
|
213
|
+
const a = C(n.query.locationIds);
|
|
216
214
|
return Array.isArray(a) ? a : void 0;
|
|
217
215
|
})()
|
|
218
216
|
),
|
|
219
217
|
le()
|
|
220
|
-
]), await
|
|
221
|
-
}), w.value = !0,
|
|
218
|
+
]), await T(), Le(), ce(e);
|
|
219
|
+
}), w.value = !0, x.value && (x.value = !1));
|
|
222
220
|
},
|
|
223
221
|
{
|
|
224
222
|
immediate: !0
|
|
@@ -248,8 +246,8 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
|
|
|
248
246
|
timeEnd: s.end ? JSON.stringify(s.end) : void 0,
|
|
249
247
|
locationIds: t.length === r.locations.length ? void 0 : t.length > 0 ? JSON.stringify(t) : void 0,
|
|
250
248
|
isAllLocation: String(t.length === r.locations.length)
|
|
251
|
-
},
|
|
252
|
-
|
|
249
|
+
}, E = JSON.stringify(n.query), k = JSON.stringify(I);
|
|
250
|
+
E !== k && F.replace({
|
|
253
251
|
name: n.name,
|
|
254
252
|
params: n.params,
|
|
255
253
|
query: I
|
|
@@ -260,11 +258,11 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
|
|
|
260
258
|
const a = V("router-view");
|
|
261
259
|
return R(), Q(ke, null, [
|
|
262
260
|
W(Pe),
|
|
263
|
-
c(
|
|
261
|
+
c(f) === "v3" ? (R(), Q("iframe", {
|
|
264
262
|
key: 0,
|
|
265
263
|
class: "bg-white h-full w-full",
|
|
266
264
|
src: Ie.value
|
|
267
|
-
}, null, 8, Ke)) : c(
|
|
265
|
+
}, null, 8, Ke)) : c(f) === "v4" ? (R(), Q("iframe", {
|
|
268
266
|
key: 1,
|
|
269
267
|
class: "bg-white h-full w-full",
|
|
270
268
|
src: Re.value
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as m0, F as y0, l as g0, b as k0, c as Ce, k as be, d as Fe, r as K0, u as Ie } from "./vue-i18n-
|
|
1
|
+
import { a as m0, F as y0, l as g0, b as k0, c as Ce, k as be, d as Fe, r as K0, u as Ie } from "./vue-i18n-BW9ipscO.js";
|
|
2
2
|
import { storeToRefs as p0, defineStore as B0 } from "pinia";
|
|
3
3
|
import { ref as s0, computed as C0, watch as U0, h as Me, defineComponent as _e, mergeModels as N0, useModel as z0, resolveComponent as A0, createElementBlock as V0, openBlock as P0, createVNode as h0, withCtx as b0, createElementVNode as E0, createCommentVNode as Re, Fragment as re, renderList as xe, createBlock as De, createTextVNode as de, withDirectives as Le, toDisplayString as T0, unref as $0, vShow as Oe, renderSlot as we } from "vue";
|
|
4
4
|
import { useSnackbar as ce, components as ve } from "@feedmepos/ui-library";
|
|
5
|
-
import { d as S0 } from "./app-
|
|
5
|
+
import { d as S0 } from "./app-CXFVEo4M.js";
|
|
6
6
|
import { useRouter as Pe } from "vue-router";
|
|
7
7
|
import { detectLocale as F0 } from "@feedmepos/mf-common";
|
|
8
|
-
import { c as Be, a as Je } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { c as Be, a as Je } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BDoATidT.js";
|
|
9
9
|
function pe(T) {
|
|
10
10
|
throw new Error('Could not dynamically require "' + T + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
11
11
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as A, resolveComponent as S, createBlock as p, openBlock as y, withCtx as T, createCommentVNode as R, createElementVNode as M, toDisplayString as j, renderSlot as B, mergeModels as k, useModel as b, ref as C, watch as O, createElementBlock as U, unref as f, createVNode as x } from "vue";
|
|
2
|
-
import { u as W, b as q, O as G, C as H } from "./vue-i18n-
|
|
3
|
-
import { d as r } from "./app-
|
|
2
|
+
import { u as W, b as q, O as G, C as H } from "./vue-i18n-BW9ipscO.js";
|
|
3
|
+
import { d as r } from "./app-CXFVEo4M.js";
|
|
4
4
|
import { detectLocale as E } from "@feedmepos/mf-common";
|
|
5
5
|
import { storeToRefs as K } from "pinia";
|
|
6
6
|
var v = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))(v || {}), L = /* @__PURE__ */ ((e) => (e.Yesterday = "YESTERDAY", e.Today = "TODAY", e))(L || {});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as u, computed as p, resolveComponent as f, createElementBlock as s, openBlock as t, normalizeStyle as n, normalizeClass as d, unref as e, createBlock as y, createCommentVNode as _, createVNode as h, createElementVNode as k, toDisplayString as g, renderSlot as x } from "vue";
|
|
2
|
-
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-B_zSOuPn.js";
|
|
3
3
|
import { useBreakpoints as b } from "@feedmepos/ui-library";
|
|
4
4
|
import { storeToRefs as C } from "pinia";
|
|
5
|
-
import { u as q, e as w } from "./vue-i18n-
|
|
5
|
+
import { u as q, e as w } from "./vue-i18n-BW9ipscO.js";
|
|
6
6
|
import { useRoute as B } from "vue-router";
|
|
7
7
|
const $ = {
|
|
8
8
|
key: 1,
|