@feedmepos/mf-report 5.28.1 → 5.28.2-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-BQcj7ZgK.js → App-BXAJux6l.js} +37 -37
- package/dist/{DateRangeSelect-TQA-9XXm.js → DateRangeSelect-CTRmA328.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-2PkkRpW_.js → Default.vue_vue_type_script_setup_true_lang-BG2jxJPI.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-BpZh4FDA.js → DynamicWidget.vue_vue_type_script_setup_true_lang-C_DJ9FoF.js} +5 -5
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Ddimiuh3.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DYRTdidI.js} +567 -563
- package/dist/{InsightView-BG5IeWD1.js → InsightView-DaOWIctS.js} +5 -5
- package/dist/{Integration-DUBg0wiX.js → Integration-BpGek4aO.js} +3 -3
- package/dist/{Integrations-CerT8IlU.js → Integrations-14q5kVTI.js} +2 -2
- package/dist/{Layout-Rr16bUkn.js → Layout-DvcgX7Iv.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-BEUDpozo.js → LocationSelect.vue_vue_type_script_setup_true_lang-C_CDdD0A.js} +2 -2
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Ca-Vlwmm.js → MenuTab.vue_vue_type_script_setup_true_lang-DDzDc9Jf.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-IJ7NUGbC.js → NavigationTab.vue_vue_type_script_setup_true_lang-CQQhOfTk.js} +5 -5
- package/dist/{OverviewView-D5q_5KwX.js → OverviewView-COpmh0Kb.js} +4 -4
- package/dist/{Report-CDk8BkDF.js → Report-CKz6bZsI.js} +3 -3
- package/dist/{ReportCanvasView-BNy6YAj6.js → ReportCanvasView-1XK-YyTM.js} +3 -3
- package/dist/{ReportEditor-JAgqGYhA.js → ReportEditor-CCheaXAp.js} +849 -830
- package/dist/ReportView-QNB3gvs4.js +333 -0
- package/dist/{ReportViewRoute-NmDrsao2.js → ReportViewRoute-Dx_TqR4V.js} +2 -2
- package/dist/{Setting-BCBWGuMP.js → Setting-CL9fHaC_.js} +3 -3
- package/dist/{Template-B0Z7IA2P.js → Template-CQXJLmIR.js} +3 -3
- package/dist/{TileEditor-CUUIrvVX.js → TileEditor-dRlM0Rt9.js} +6 -6
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-ByOoDTHP.js → TilePageStack.vue_vue_type_script_setup_true_lang-DsvTr7fz.js} +2 -2
- package/dist/{TransitionFade-DVVKEBlH.js → TransitionFade-BmUpvHUW.js} +5 -5
- package/dist/{app-CVVEOyIu.js → app-DajOeQ5X.js} +721 -717
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-BeBGCyYW.js → formatChartData.worker-Dx1USoTn.js} +5 -1
- package/dist/assets/{processTableData.worker-frTYV0ok.js → processTableData.worker-clNopMr8.js} +5 -1
- package/dist/{report-35Rm6TvO.js → report-a3OefqFb.js} +157 -153
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-BAkRCzWY.js → useRestaurantPermission-xyo71b-g.js} +1 -1
- package/package.json +1 -1
- package/dist/ReportView-C3LFd5yk.js +0 -329
|
@@ -1,33 +1,33 @@
|
|
|
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 oe, createVNode as Y, toDisplayString as ae, 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-DajOeQ5X.js";
|
|
4
4
|
import { storeToRefs as k } from "pinia";
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as He, _ as
|
|
5
|
+
import { u as Ke } from "./global-loader-BuxFfehu.js";
|
|
6
|
+
import { u as Pe, a as Ge } from "./report-a3OefqFb.js";
|
|
7
|
+
import { u as He, _ as Xe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CQQhOfTk.js";
|
|
8
8
|
import { u as ue } from "./message-dialog-UoMWOnil.js";
|
|
9
|
-
import { u as
|
|
9
|
+
import { u as Ve } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
10
10
|
import { useRoute as Ye, useRouter as Ze } from "vue-router";
|
|
11
11
|
const Me = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, et = /* @__PURE__ */ me({
|
|
12
12
|
__name: "Dialog",
|
|
13
13
|
setup(T) {
|
|
14
|
-
const { t: c } =
|
|
14
|
+
const { t: c } = Ve(), f = ue(), { isOpened: g, message: R, title: L } = k(ue());
|
|
15
15
|
return (O, _) => {
|
|
16
|
-
const z =
|
|
17
|
-
return A(), pe(
|
|
16
|
+
const z = V("FmButton"), W = V("FmDialog");
|
|
17
|
+
return A(), pe(W, {
|
|
18
18
|
modelValue: u(g),
|
|
19
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
19
|
+
"onUpdate:modelValue": _[0] || (_[0] = (K) => Be(g) ? g.value = K : null),
|
|
20
20
|
overlay: "",
|
|
21
21
|
"close-button": !1,
|
|
22
22
|
"z-index": 3e3
|
|
23
23
|
}, {
|
|
24
|
-
"dialog-header":
|
|
25
|
-
|
|
24
|
+
"dialog-header": G(() => [
|
|
25
|
+
Fe(ae(u(L)), 1)
|
|
26
26
|
]),
|
|
27
|
-
default:
|
|
27
|
+
default: G(() => [
|
|
28
28
|
oe("p", Me, ae(u(R)), 1)
|
|
29
29
|
]),
|
|
30
|
-
"dialog-footer":
|
|
30
|
+
"dialog-footer": G(() => [
|
|
31
31
|
_[1] || (_[1] = oe("div", { class: "grow" }, null, -1)),
|
|
32
32
|
Y(z, {
|
|
33
33
|
label: u(c)("report.common.cancel"),
|
|
@@ -65,13 +65,13 @@ q.locale(j() === "zh-CN" ? "zh-cn" : "en");
|
|
|
65
65
|
const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
|
|
66
66
|
__name: "App",
|
|
67
67
|
setup(T) {
|
|
68
|
-
const { businessId: c, token: f, country: g } = k(Qe()), { sessionUser: R, currentBusiness: L, currentCountry: O, registerSidebarComponent: _ } =
|
|
68
|
+
const { businessId: c, token: f, country: g } = k(Qe()), { sessionUser: R, currentBusiness: L, currentCountry: O, registerSidebarComponent: _ } = X(), {
|
|
69
69
|
getRestaurantAndWarehouse: z,
|
|
70
|
-
getBusinessSetting:
|
|
71
|
-
beginBusinessLoad:
|
|
70
|
+
getBusinessSetting: W,
|
|
71
|
+
beginBusinessLoad: K,
|
|
72
72
|
completeBusinessLoad: ge,
|
|
73
73
|
resetTimezoneContext: ye
|
|
74
|
-
} = ie(), ve = Ue(), { getFeatureFlags: Se } = ve, { version: y } = k(ce()), { getSettings: De } = je(), { promptLoader: he } =
|
|
74
|
+
} = ie(), ve = Ue(), { getFeatureFlags: Se } = ve, { version: y } = k(ce()), { getSettings: De } = je(), { promptLoader: he } = Ke(), n = Ye(), N = Ze(), E = Pe(), Z = He(), a = ie(), B = ce(), { suppressReportRouteSync: F } = k(B), { getReports: Ie, getOverviewReport: _e, getReportConfig: Re, currentReportId: M } = E, { currentReportId: Le, reports: Ee } = k(E), { getSchema: be } = Ge(), { 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`);
|
|
75
75
|
C(
|
|
76
76
|
[() => L.value, () => R.value, () => O.value],
|
|
77
77
|
() => {
|
|
@@ -94,17 +94,17 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
|
|
|
94
94
|
if (typeof t.data == "string")
|
|
95
95
|
try {
|
|
96
96
|
const e = JSON.parse(t.data);
|
|
97
|
-
(e == null ? void 0 : e.v5) === !0 ? y.value =
|
|
97
|
+
(e == null ? void 0 : e.v5) === !0 ? y.value = P.value : (e == null ? void 0 : e.v3) === !0 && (y.value = "v3");
|
|
98
98
|
} catch (e) {
|
|
99
99
|
console.error(e);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
C(y, () => {
|
|
103
|
-
["v3", "v4"].includes(y.value) ?
|
|
103
|
+
["v3", "v4"].includes(y.value) ? X().hideSidebarToggle(!0) : X().hideSidebarToggle(!1);
|
|
104
104
|
}), $e(() => {
|
|
105
|
-
_(
|
|
105
|
+
_(Xe);
|
|
106
106
|
}), fe(() => {
|
|
107
|
-
console.log("5.28.
|
|
107
|
+
console.log("5.28.2-beta.0", !0), window.addEventListener("message", ee), window.addEventListener("message", te);
|
|
108
108
|
}), xe(() => {
|
|
109
109
|
window.removeEventListener("message", ee), window.removeEventListener("message", te), E.$dispose(), Z.$dispose();
|
|
110
110
|
});
|
|
@@ -168,7 +168,7 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
|
|
|
168
168
|
}
|
|
169
169
|
if (!Q) {
|
|
170
170
|
const s = a.selectedLocationIds;
|
|
171
|
-
s.length === p.length && s.every((ze,
|
|
171
|
+
s.length === p.length && s.every((ze, Ne) => ze === p[Ne]) || a.setSelectedLocationIds(p);
|
|
172
172
|
}
|
|
173
173
|
return {
|
|
174
174
|
// TODO: this returned value can used for getBusinessSetting
|
|
@@ -187,7 +187,7 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
|
|
|
187
187
|
() => c.value,
|
|
188
188
|
async (t, e) => {
|
|
189
189
|
if (t !== "") {
|
|
190
|
-
$.value = !1,
|
|
190
|
+
$.value = !1, K(t);
|
|
191
191
|
const r = "mf-report-prev-business-id", o = (() => {
|
|
192
192
|
try {
|
|
193
193
|
return sessionStorage.getItem(r);
|
|
@@ -211,27 +211,27 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
|
|
|
211
211
|
i = {
|
|
212
212
|
...p,
|
|
213
213
|
isAllLocation: "true"
|
|
214
|
-
}, v = !0, await
|
|
214
|
+
}, v = !0, await N.replace({
|
|
215
215
|
name: n.name,
|
|
216
216
|
params: n.params,
|
|
217
217
|
query: i
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
|
|
220
|
+
F.value !== void 0 && (F.value = !0), await he(async () => {
|
|
221
221
|
await Ae({
|
|
222
|
-
apiKey: "
|
|
222
|
+
apiKey: "MaGoXrEWuEJNpWgKTqseee",
|
|
223
223
|
url: "https://flag.feedme.farm/api/v1/",
|
|
224
224
|
enableAnalytics: !1,
|
|
225
225
|
cacheFlags: !1
|
|
226
226
|
});
|
|
227
227
|
const S = await Re();
|
|
228
|
-
|
|
228
|
+
P.value = S.version, y.value = P.value, await Se(), n.name === "template" && !B.canAccessTemplate() && await N.replace({
|
|
229
229
|
name: "reports",
|
|
230
230
|
query: n.query
|
|
231
231
|
});
|
|
232
|
-
const D =
|
|
232
|
+
const D = B.canAccess(
|
|
233
233
|
de.report_accessOverview
|
|
234
|
-
), b =
|
|
234
|
+
), b = B.canAccess(
|
|
235
235
|
de.report_accessIntegration
|
|
236
236
|
), h = [
|
|
237
237
|
be(),
|
|
@@ -244,7 +244,7 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
|
|
|
244
244
|
})()
|
|
245
245
|
)
|
|
246
246
|
];
|
|
247
|
-
if (D && h.push(_e()), b && h.push(De()), await Promise.all(h), await
|
|
247
|
+
if (D && h.push(_e()), b && h.push(De()), await Promise.all(h), await W(), Te(i), v) {
|
|
248
248
|
const {
|
|
249
249
|
locationIds: m,
|
|
250
250
|
startDate: w,
|
|
@@ -255,7 +255,7 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
|
|
|
255
255
|
compareEndDate: s,
|
|
256
256
|
...re
|
|
257
257
|
} = n.query;
|
|
258
|
-
(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
|
|
258
|
+
(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({
|
|
259
259
|
name: n.name,
|
|
260
260
|
params: n.params,
|
|
261
261
|
query: {
|
|
@@ -286,8 +286,8 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
|
|
|
286
286
|
}),
|
|
287
287
|
(t) => {
|
|
288
288
|
if (!$.value || !t.reportId || x.value) return;
|
|
289
|
-
if (
|
|
290
|
-
|
|
289
|
+
if (F.value) {
|
|
290
|
+
F.value = !1;
|
|
291
291
|
return;
|
|
292
292
|
}
|
|
293
293
|
const e = t.selectedLocationIds, r = t.dateRange, o = t.timeRange, d = t.compareDateRange, i = {
|
|
@@ -306,7 +306,7 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
|
|
|
306
306
|
}, v = e.length === a.locations.length;
|
|
307
307
|
i.isAllLocation = String(v), v ? delete i.locationIds : e.length > 0 ? i.locationIds = JSON.stringify(e) : delete i.locationIds;
|
|
308
308
|
const S = JSON.stringify(n.query), D = JSON.stringify(i);
|
|
309
|
-
S !== D &&
|
|
309
|
+
S !== D && N.replace({
|
|
310
310
|
name: n.name,
|
|
311
311
|
params: n.params,
|
|
312
312
|
query: i
|
|
@@ -314,7 +314,7 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
|
|
|
314
314
|
},
|
|
315
315
|
{ deep: !0 }
|
|
316
316
|
), tt(), (t, e) => {
|
|
317
|
-
const r =
|
|
317
|
+
const r = V("router-view");
|
|
318
318
|
return A(), H(Je, null, [
|
|
319
319
|
Y(et),
|
|
320
320
|
u(y) === "v3" ? (A(), H("iframe", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as te, resolveComponent as A, createBlock as b, openBlock as C, normalizeClass as ce, withCtx as U, createCommentVNode as E, createElementVNode as I, toDisplayString as me, renderSlot as fe, mergeModels as K, useModel as z, ref as O, computed as L, watch as M, nextTick as J, onMounted as De, onBeforeUnmount as ye, createElementBlock as pe, unref as Y, createVNode as Q } from "vue";
|
|
2
|
-
import { d as u, a as ge, C as P, j as ve } from "./app-
|
|
2
|
+
import { d as u, a as ge, C as P, j as ve } from "./app-DajOeQ5X.js";
|
|
3
3
|
import { detectLocale as X } from "@feedmepos/mf-common";
|
|
4
4
|
import { u as he, _ as Ce } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
5
5
|
import { storeToRefs as be } from "pinia";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, computed as p, resolveComponent as f, createElementBlock as r, 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-CQQhOfTk.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 } from "./global-loader-BuxFfehu.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed as c, defineComponent as $e, ref as S, watch as De, onMounted as Et, onBeforeUnmount as Oo, resolveComponent as ye, createBlock as ve, openBlock as Y, Transition as za, withCtx as Ae, createElementBlock as pe, createCommentVNode as Ce, createElementVNode as Q, unref as l, normalizeStyle as Fe, withModifiers as bn, toDisplayString as Pe, createVNode as be, Fragment as Ke, renderList as _t, normalizeClass as Re, nextTick as Uo, mergeModels as tt, useModel as nt, renderSlot as ft, h as mn, createSlots as Ha, resolveDynamicComponent as Ko, markRaw as bo, toRaw as Wa, createTextVNode as Oa, onUnmounted as Yo, provide as Ua, inject as Ka, withDirectives as Ya, vShow as Xa } from "vue";
|
|
2
|
-
import { u as Ea, h as ja, i as Xo, j as Ga, q as Co } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { V as Cn, a as wn, u as Eo, W as qa } from "./app-
|
|
4
|
-
import { W as Z, S as qe, v as Ut, F as Wt, c as pn, w as Vn, d as Ja, o as Za, x as Qa, E as Mt, y as er } from "./report-
|
|
5
|
-
import { d as On } from "./DateRangeSelect-
|
|
2
|
+
import { u as Ea, h as ja, i as Xo, j as Ga, q as Co } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DYRTdidI.js";
|
|
3
|
+
import { V as Cn, a as wn, u as Eo, W as qa } from "./app-DajOeQ5X.js";
|
|
4
|
+
import { W as Z, S as qe, v as Ut, F as Wt, c as pn, w as Vn, d as Ja, o as Za, x as Qa, E as Mt, y as er } from "./report-a3OefqFb.js";
|
|
5
|
+
import { d as On } from "./DateRangeSelect-CTRmA328.js";
|
|
6
6
|
import { storeToRefs as Yt } from "pinia";
|
|
7
7
|
import { detectLocale as Qn } from "@feedmepos/mf-common";
|
|
8
8
|
import { C as Un } from "./chart-DDDh8zNk.js";
|
|
@@ -3212,7 +3212,7 @@ function rs(e, t) {
|
|
|
3212
3212
|
const n = ye("FmMenuDivider");
|
|
3213
3213
|
return Y(), ve(n);
|
|
3214
3214
|
}
|
|
3215
|
-
const ls = /* @__PURE__ */ jo(as, [["render", rs]]), ss = "/assets/processTableData.worker-
|
|
3215
|
+
const ls = /* @__PURE__ */ jo(as, [["render", rs]]), ss = "/assets/processTableData.worker-clNopMr8.js", is = { class: "flex h-full flex-col" }, us = { class: "my-4 shrink-0" }, cs = {
|
|
3216
3216
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
3217
3217
|
style: { backgroundColor: "#f9f9f9" }
|
|
3218
3218
|
}, ds = { class: "font-bold" }, fs = { class: "text-fm-color-neutral-gray-300" }, ms = /* @__PURE__ */ $e({
|