@feedmepos/mf-report 5.27.52 → 5.27.53-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-oAR-nkyQ.js → App-BIQfghSo.js} +36 -36
- package/dist/{DateRangeSelect-Ry-G_PTU.js → DateRangeSelect-CerwLp3z.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-Cnh5ZfVd.js → Default.vue_vue_type_script_setup_true_lang-a9jc_vg_.js} +1 -1
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-Dj4MjD-k.js +5518 -0
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Bru5A8A7.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DWdrpPf9.js} +1368 -1357
- package/dist/{InsightView-C8NpbN5Y.js → InsightView-zTZ9b7XV.js} +4 -4
- package/dist/{Integration-DOsdT6TI.js → Integration-DAsU8PBS.js} +3 -3
- package/dist/{Integrations-DhUe08Dw.js → Integrations-BGT0MUhE.js} +2 -2
- package/dist/{Layout-DknQz5MT.js → Layout-Be7ydkSK.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-P9GpIprW.js → MenuTab.vue_vue_type_script_setup_true_lang-XJ50Ntvq.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-D6tEMpv7.js → NavigationTab.vue_vue_type_script_setup_true_lang-BFlpN6ig.js} +3 -3
- package/dist/{OverviewView-DkQLgu65.js → OverviewView-D4W3bHy_.js} +4 -4
- package/dist/{Report-DVeiF4v2.js → Report-CseqXlqX.js} +3 -3
- package/dist/{ReportEditor-D-N0Tgec.js → ReportEditor-D6OaVVJY.js} +6 -6
- package/dist/{ReportView-tg85Wp8U.js → ReportView-D8UB7vfA.js} +6 -6
- package/dist/{Setting-Byk9j9G-.js → Setting-DIP0nZw4.js} +3 -3
- package/dist/{Template-DovaDFcl.js → Template-BUyldC3f.js} +3 -3
- package/dist/{TileEditor-DeFjEOnd.js → TileEditor-CX3WYlVS.js} +5 -5
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-qaMRk6vT.js → TilePageStack.vue_vue_type_script_setup_true_lang-B7ZQ3aqA.js} +2 -2
- package/dist/{TransitionFade-DvLq7ml8.js → TransitionFade-DgERxzfD.js} +4 -4
- package/dist/{app-9zygESPP.js → app-CulfSuXO.js} +13 -13
- package/dist/app.js +1 -1
- package/dist/{useRestaurantPermission-qvBnSrPS.js → useRestaurantPermission-CixpGH27.js} +1 -1
- package/package.json +1 -1
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-DZn45AuH.js +0 -5334
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { defineComponent as me, resolveComponent as
|
|
2
|
-
import { detectLocale as j, useCoreStore as
|
|
3
|
-
import { d as q, u as Qe, a as ie, b as Ue, c as ce, e as je, f as
|
|
1
|
+
import { defineComponent as me, resolveComponent as V, createBlock as pe, openBlock as A, unref as u, isRef as Be, withCtx as G, createElementVNode as ae, createVNode as Y, toDisplayString as oe, createTextVNode as Fe, onMounted as fe, watch as C, ref as U, computed as se, onBeforeMount as $e, onBeforeUnmount as xe, createElementBlock as H, Fragment as Je } from "vue";
|
|
2
|
+
import { detectLocale as j, useCoreStore as X } from "@feedmepos/mf-common";
|
|
3
|
+
import { d as q, u as Qe, a as ie, b as Ue, c as ce, e as je, f as We, g as de } from "./app-CulfSuXO.js";
|
|
4
4
|
import { storeToRefs as k } from "pinia";
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
5
|
+
import { u as Ke, a as Pe } from "./_plugin-vue_export-helper-kkiiQoKl.js";
|
|
6
|
+
import { u as Ge, a as He } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DWdrpPf9.js";
|
|
7
|
+
import { u as Xe, _ as Ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BFlpN6ig.js";
|
|
8
8
|
import { u as ue } from "./message-dialog-UoMWOnil.js";
|
|
9
9
|
import { useRoute as Ye, useRouter as Ze } from "vue-router";
|
|
10
10
|
const Me = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, et = /* @__PURE__ */ me({
|
|
11
11
|
__name: "Dialog",
|
|
12
12
|
setup(T) {
|
|
13
|
-
const { t: c } =
|
|
13
|
+
const { t: c } = Ke(), f = ue(), { isOpened: g, message: R, title: L } = k(ue());
|
|
14
14
|
return (O, _) => {
|
|
15
|
-
const z =
|
|
16
|
-
return A(), pe(
|
|
15
|
+
const z = V("FmButton"), W = V("FmDialog");
|
|
16
|
+
return A(), pe(W, {
|
|
17
17
|
modelValue: u(g),
|
|
18
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
18
|
+
"onUpdate:modelValue": _[0] || (_[0] = (K) => Be(g) ? g.value = K : null),
|
|
19
19
|
overlay: "",
|
|
20
20
|
"close-button": !1,
|
|
21
21
|
"z-index": 3e3
|
|
22
22
|
}, {
|
|
23
|
-
"dialog-header":
|
|
24
|
-
|
|
23
|
+
"dialog-header": G(() => [
|
|
24
|
+
Fe(oe(u(L)), 1)
|
|
25
25
|
]),
|
|
26
|
-
default:
|
|
26
|
+
default: G(() => [
|
|
27
27
|
ae("p", Me, oe(u(R)), 1)
|
|
28
28
|
]),
|
|
29
|
-
"dialog-footer":
|
|
29
|
+
"dialog-footer": G(() => [
|
|
30
30
|
_[1] || (_[1] = ae("div", { class: "grow" }, null, -1)),
|
|
31
31
|
Y(z, {
|
|
32
32
|
label: u(c)("report.common.cancel"),
|
|
@@ -64,13 +64,13 @@ q.locale(j() === "zh-CN" ? "zh-cn" : "en");
|
|
|
64
64
|
const nt = ["src"], rt = ["src"], ft = /* @__PURE__ */ me({
|
|
65
65
|
__name: "App",
|
|
66
66
|
setup(T) {
|
|
67
|
-
const { businessId: c, token: f, country: g } = k(Qe()), { sessionUser: R, currentBusiness: L, currentCountry: O, registerSidebarComponent: _ } =
|
|
67
|
+
const { businessId: c, token: f, country: g } = k(Qe()), { sessionUser: R, currentBusiness: L, currentCountry: O, registerSidebarComponent: _ } = X(), {
|
|
68
68
|
getRestaurantAndWarehouse: z,
|
|
69
|
-
getBusinessSetting:
|
|
70
|
-
beginBusinessLoad:
|
|
69
|
+
getBusinessSetting: W,
|
|
70
|
+
beginBusinessLoad: K,
|
|
71
71
|
completeBusinessLoad: ge,
|
|
72
72
|
resetTimezoneContext: ye
|
|
73
|
-
} = ie(), ve = Ue(), { getFeatureFlags: Se } = ve, { version: y } = k(ce()), { getSettings: De } = je(), { promptLoader: he } =
|
|
73
|
+
} = ie(), ve = Ue(), { getFeatureFlags: Se } = ve, { version: y } = k(ce()), { getSettings: De } = je(), { promptLoader: he } = Pe(), n = Ye(), N = Ze(), E = Ge(), Z = Xe(), o = ie(), B = ce(), { suppressReportRouteSync: F } = k(B), { getReports: Ie, getOverviewReport: _e, getReportConfig: Re, currentReportId: M } = E, { currentReportId: Le, reports: Ee } = k(E), { getSchema: be } = He(), { fetchSchedules: we } = Z, { init: Ae } = We(), P = U("v5"), $ = U(!1), x = U(!0), Ce = se(() => `https://portal-v1.feedmedev.cc/b/${c.value}/report/CLOSE_UP?showHeader=false&country=${g.value.toUpperCase()}&menuOption=business-report&token=${f.value}&v2=true&reportV5Button=true`), ke = se(() => `https://report-v4.feedmedev.cc?businessId=${c.value}&country=${g.value}&token=${f.value}&reportV3Button=true`);
|
|
74
74
|
C(
|
|
75
75
|
[() => L.value, () => R.value, () => O.value],
|
|
76
76
|
() => {
|
|
@@ -93,17 +93,17 @@ const nt = ["src"], rt = ["src"], ft = /* @__PURE__ */ me({
|
|
|
93
93
|
if (typeof t.data == "string")
|
|
94
94
|
try {
|
|
95
95
|
const e = JSON.parse(t.data);
|
|
96
|
-
(e == null ? void 0 : e.v5) === !0 ? y.value =
|
|
96
|
+
(e == null ? void 0 : e.v5) === !0 ? y.value = P.value : (e == null ? void 0 : e.v3) === !0 && (y.value = "v3");
|
|
97
97
|
} catch (e) {
|
|
98
98
|
console.error(e);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
C(y, () => {
|
|
102
|
-
["v3", "v4"].includes(y.value) ?
|
|
102
|
+
["v3", "v4"].includes(y.value) ? X().hideSidebarToggle(!0) : X().hideSidebarToggle(!1);
|
|
103
103
|
}), $e(() => {
|
|
104
|
-
_(
|
|
104
|
+
_(Ve);
|
|
105
105
|
}), fe(() => {
|
|
106
|
-
console.log("5.27.
|
|
106
|
+
console.log("5.27.53-beta.0", !0), window.addEventListener("message", ee), window.addEventListener("message", te);
|
|
107
107
|
}), xe(() => {
|
|
108
108
|
window.removeEventListener("message", ee), window.removeEventListener("message", te), E.$dispose(), Z.$dispose();
|
|
109
109
|
});
|
|
@@ -167,7 +167,7 @@ const nt = ["src"], rt = ["src"], ft = /* @__PURE__ */ me({
|
|
|
167
167
|
}
|
|
168
168
|
if (!Q) {
|
|
169
169
|
const s = o.selectedLocationIds;
|
|
170
|
-
s.length === p.length && s.every((ze,
|
|
170
|
+
s.length === p.length && s.every((ze, Ne) => ze === p[Ne]) || o.setSelectedLocationIds(p);
|
|
171
171
|
}
|
|
172
172
|
return {
|
|
173
173
|
// TODO: this returned value can used for getBusinessSetting
|
|
@@ -186,7 +186,7 @@ const nt = ["src"], rt = ["src"], ft = /* @__PURE__ */ me({
|
|
|
186
186
|
() => c.value,
|
|
187
187
|
async (t, e) => {
|
|
188
188
|
if (t !== "") {
|
|
189
|
-
$.value = !1,
|
|
189
|
+
$.value = !1, K(t);
|
|
190
190
|
const r = "mf-report-prev-business-id", a = (() => {
|
|
191
191
|
try {
|
|
192
192
|
return sessionStorage.getItem(r);
|
|
@@ -210,27 +210,27 @@ const nt = ["src"], rt = ["src"], ft = /* @__PURE__ */ me({
|
|
|
210
210
|
i = {
|
|
211
211
|
...p,
|
|
212
212
|
isAllLocation: "true"
|
|
213
|
-
}, v = !0, await
|
|
213
|
+
}, v = !0, await N.replace({
|
|
214
214
|
name: n.name,
|
|
215
215
|
params: n.params,
|
|
216
216
|
query: i
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
|
-
|
|
219
|
+
F.value !== void 0 && (F.value = !0), await he(async () => {
|
|
220
220
|
await Ae({
|
|
221
|
-
apiKey: "
|
|
221
|
+
apiKey: "MaGoXrEWuEJNpWgKTqseee",
|
|
222
222
|
url: "https://flag.feedme.farm/api/v1/",
|
|
223
223
|
enableAnalytics: !1,
|
|
224
224
|
cacheFlags: !1
|
|
225
225
|
});
|
|
226
226
|
const S = await Re();
|
|
227
|
-
|
|
227
|
+
P.value = S.version, y.value = P.value, await Se(), n.name === "template" && !B.canAccessTemplate() && await N.replace({
|
|
228
228
|
name: "reports",
|
|
229
229
|
query: n.query
|
|
230
230
|
});
|
|
231
|
-
const D =
|
|
231
|
+
const D = B.canAccess(
|
|
232
232
|
de.report_accessOverview
|
|
233
|
-
), b =
|
|
233
|
+
), b = B.canAccess(
|
|
234
234
|
de.report_accessIntegration
|
|
235
235
|
), h = [
|
|
236
236
|
be(),
|
|
@@ -243,7 +243,7 @@ const nt = ["src"], rt = ["src"], ft = /* @__PURE__ */ me({
|
|
|
243
243
|
})()
|
|
244
244
|
)
|
|
245
245
|
];
|
|
246
|
-
if (D && h.push(_e()), b && h.push(De()), await Promise.all(h), await
|
|
246
|
+
if (D && h.push(_e()), b && h.push(De()), await Promise.all(h), await W(), Te(i), v) {
|
|
247
247
|
const {
|
|
248
248
|
locationIds: m,
|
|
249
249
|
startDate: w,
|
|
@@ -254,7 +254,7 @@ const nt = ["src"], rt = ["src"], ft = /* @__PURE__ */ me({
|
|
|
254
254
|
compareEndDate: s,
|
|
255
255
|
...re
|
|
256
256
|
} = n.query;
|
|
257
|
-
(n.query.locationIds !== void 0 || n.query.startDate !== void 0 || n.query.endDate !== void 0 || n.query.timeStart !== void 0 || n.query.timeEnd !== void 0 || n.query.compareStartDate !== void 0 || n.query.compareEndDate !== void 0 || n.query.isAllLocation !== "true") && await
|
|
257
|
+
(n.query.locationIds !== void 0 || n.query.startDate !== void 0 || n.query.endDate !== void 0 || n.query.timeStart !== void 0 || n.query.timeEnd !== void 0 || n.query.compareStartDate !== void 0 || n.query.compareEndDate !== void 0 || n.query.isAllLocation !== "true") && await N.replace({
|
|
258
258
|
name: n.name,
|
|
259
259
|
params: n.params,
|
|
260
260
|
query: {
|
|
@@ -285,8 +285,8 @@ const nt = ["src"], rt = ["src"], ft = /* @__PURE__ */ me({
|
|
|
285
285
|
}),
|
|
286
286
|
(t) => {
|
|
287
287
|
if (!$.value || !t.reportId || x.value) return;
|
|
288
|
-
if (
|
|
289
|
-
|
|
288
|
+
if (F.value) {
|
|
289
|
+
F.value = !1;
|
|
290
290
|
return;
|
|
291
291
|
}
|
|
292
292
|
const e = t.selectedLocationIds, r = t.dateRange, a = t.timeRange, d = t.compareDateRange, i = {
|
|
@@ -305,7 +305,7 @@ const nt = ["src"], rt = ["src"], ft = /* @__PURE__ */ me({
|
|
|
305
305
|
}, v = e.length === o.locations.length;
|
|
306
306
|
i.isAllLocation = String(v), v ? delete i.locationIds : e.length > 0 ? i.locationIds = JSON.stringify(e) : delete i.locationIds;
|
|
307
307
|
const S = JSON.stringify(n.query), D = JSON.stringify(i);
|
|
308
|
-
S !== D &&
|
|
308
|
+
S !== D && N.replace({
|
|
309
309
|
name: n.name,
|
|
310
310
|
params: n.params,
|
|
311
311
|
query: i
|
|
@@ -313,7 +313,7 @@ const nt = ["src"], rt = ["src"], ft = /* @__PURE__ */ me({
|
|
|
313
313
|
},
|
|
314
314
|
{ deep: !0 }
|
|
315
315
|
), tt(), (t, e) => {
|
|
316
|
-
const r =
|
|
316
|
+
const r = V("router-view");
|
|
317
317
|
return A(), H(Je, null, [
|
|
318
318
|
Y(et),
|
|
319
319
|
u(y) === "v3" ? (A(), H("iframe", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as se, resolveComponent as Y, createBlock as R, openBlock as p, normalizeClass as Ce, withCtx as V, createCommentVNode as F, createElementVNode as N, toDisplayString as pe, renderSlot as Re, mergeModels as Q, useModel as j, ref as A, computed as B, watch as x, nextTick as Z, onMounted as Se, onBeforeUnmount as xe, createElementBlock as be, unref as P, createVNode as ee } from "vue";
|
|
2
|
-
import { d as m, a as Pe, C as $, j as Ee } from "./app-
|
|
2
|
+
import { d as m, a as Pe, C as $, j as Ee } from "./app-CulfSuXO.js";
|
|
3
3
|
import { detectLocale as te } from "@feedmepos/mf-common";
|
|
4
4
|
import { u as Te, _ as we } from "./_plugin-vue_export-helper-kkiiQoKl.js";
|
|
5
5
|
import { storeToRefs as Me } from "pinia";
|
|
@@ -1,5 +1,5 @@
|
|
|
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-BFlpN6ig.js";
|
|
3
3
|
import { useBreakpoints as b } from "@feedmepos/ui-library";
|
|
4
4
|
import { storeToRefs as C } from "pinia";
|
|
5
5
|
import { u as q, a as w } from "./_plugin-vue_export-helper-kkiiQoKl.js";
|