@feedmepos/mf-report 5.4.32 → 5.4.33-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-iq7F0hQ5.js → App-CRTBOuw_.js} +42 -42
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-CIDrrVrf.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-Xex8S8XX.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CHKhu1vR.js → Default.vue_vue_type_script_setup_true_lang-BRp-NZ2G.js} +2 -2
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CG9FaKRJ.js → DynamicWidget.vue_vue_type_script_setup_true_lang-FIM7a1Po.js} +4 -4
- package/dist/{InsightView-m9gwZU5M.js → InsightView-C9mLdM_4.js} +7 -7
- package/dist/{Integration-B7CQ-7rL.js → Integration-tBzSH2YL.js} +1085 -1095
- package/dist/{Integrations-C0KEvLA9.js → Integrations-B6ACZi86.js} +3 -3
- package/dist/{Layout-BoGS_pUM.js → Layout-CXSFzQgD.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-CGsQmh3S.js → LocationSelect.vue_vue_type_script_setup_true_lang-BRAZAoJz.js} +2 -2
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-oIsq1i1c.js → MenuTab.vue_vue_type_script_setup_true_lang-BdDMXz7S.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DUC_jUZ0.js → NavigationTab.vue_vue_type_script_setup_true_lang-BAS_eSKD.js} +4 -4
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-O7qHGZkw.js → NoData.vue_vue_type_script_setup_true_lang-DI4X_DSc.js} +1 -1
- package/dist/{OverviewView-uMlgqt59.js → OverviewView-DKc5ptLX.js} +5 -5
- package/dist/{Report-CQZWb7J5.js → Report-CfYPM3bN.js} +4 -4
- package/dist/{ReportEditor-Ie1AgObB.js → ReportEditor-CQw9jHcW.js} +5 -5
- package/dist/{ReportView-Cdc3Rqr8.js → ReportView-C925HwDY.js} +7 -7
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-B5OLIl_Y.js → SelectComponent.vue_vue_type_script_setup_true_lang-BVs1C4af.js} +1 -1
- package/dist/{Setting-ovX22nYd.js → Setting-CuP-1Wjk.js} +4 -4
- package/dist/{TileEditor-BbIklNCF.js → TileEditor-DYJmSgIT.js} +8 -8
- package/dist/{TransitionFade-CKZbKQsR.js → TransitionFade-CpucF6O6.js} +4 -4
- package/dist/app.js +11 -11
- package/dist/{global-loader-D9UMph7l.js → global-loader-BqFQzk46.js} +912 -901
- package/dist/{index-CxVnRxOJ.js → index-Cmh079Bh.js} +1 -1
- package/dist/{report-schema-BEEUlheS.js → report-schema-OJAFh4P6.js} +1 -1
- package/dist/{timeFormat-BRqkZ3bP.js → timeFormat-CAyeO7-a.js} +1 -1
- package/dist/{v4-D67i4aLh.js → v4-BOOklPpL.js} +1 -1
- package/package.json +2 -2
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { defineComponent as O, resolveComponent as C, createBlock as T, openBlock as m, unref as r, isRef as Y, withCtx as w, createElementVNode as
|
|
2
|
-
import { detectLocale as g, useCoreStore as
|
|
3
|
-
import { u as oe, d as F, a as re, b as ne, c as
|
|
1
|
+
import { defineComponent as O, resolveComponent as C, createBlock as T, openBlock as m, unref as r, isRef as Y, withCtx as w, createElementVNode as q, createVNode as $, toDisplayString as D, createTextVNode as Z, onMounted as z, watch as p, ref as j, computed as I, onBeforeMount as M, onBeforeUnmount as ee, createElementBlock as b, Fragment as te } from "vue";
|
|
2
|
+
import { detectLocale as g, useCoreStore as k } from "@feedmepos/mf-common";
|
|
3
|
+
import { u as oe, d as F, a as re, b as ne, c as ae, e as se, f as le, g as ue } from "./global-loader-BqFQzk46.js";
|
|
4
4
|
import { storeToRefs as B } from "pinia";
|
|
5
|
-
import { u as ie, a as ce } from "./v4-
|
|
6
|
-
import { u as me } from "./report-schema-
|
|
7
|
-
import { _ as de, u as ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { u as ie, a as ce } from "./v4-BOOklPpL.js";
|
|
6
|
+
import { u as me } from "./report-schema-OJAFh4P6.js";
|
|
7
|
+
import { _ as de, u as ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BAS_eSKD.js";
|
|
8
8
|
import { u as U } from "./message-dialog-UoMWOnil.js";
|
|
9
9
|
import { useRoute as fe } from "vue-router";
|
|
10
10
|
const pe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, ge = /* @__PURE__ */ O({
|
|
11
11
|
__name: "Dialog",
|
|
12
12
|
setup(d) {
|
|
13
|
-
const { t } = oe(), n = U(), { isOpened:
|
|
14
|
-
return (
|
|
15
|
-
const v = C("FmButton"),
|
|
16
|
-
return m(), T(
|
|
17
|
-
modelValue: r(
|
|
18
|
-
"onUpdate:modelValue": u[0] || (u[0] = (_) => Y(
|
|
13
|
+
const { t } = oe(), n = U(), { isOpened: a, message: i, title: c } = B(U());
|
|
14
|
+
return (y, u) => {
|
|
15
|
+
const v = C("FmButton"), h = C("FmDialog");
|
|
16
|
+
return m(), T(h, {
|
|
17
|
+
modelValue: r(a),
|
|
18
|
+
"onUpdate:modelValue": u[0] || (u[0] = (_) => Y(a) ? a.value = _ : null),
|
|
19
19
|
overlay: "",
|
|
20
20
|
"close-button": !1
|
|
21
21
|
}, {
|
|
22
22
|
"dialog-header": w(() => [
|
|
23
|
-
Z(
|
|
23
|
+
Z(D(r(c)), 1)
|
|
24
24
|
]),
|
|
25
25
|
default: w(() => [
|
|
26
|
-
|
|
26
|
+
q("p", pe, D(r(i)), 1)
|
|
27
27
|
]),
|
|
28
28
|
"dialog-footer": w(() => [
|
|
29
|
-
u[1] || (u[1] =
|
|
29
|
+
u[1] || (u[1] = q("div", { class: "grow" }, null, -1)),
|
|
30
30
|
$(v, {
|
|
31
31
|
label: r(t)("report.common.cancel"),
|
|
32
32
|
variant: "tertiary",
|
|
@@ -41,8 +41,8 @@ const pe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, ge
|
|
|
41
41
|
}, 8, ["modelValue"]);
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
}), x =
|
|
45
|
-
function
|
|
44
|
+
}), x = j(g());
|
|
45
|
+
function ye() {
|
|
46
46
|
const d = (t) => {
|
|
47
47
|
switch (x.value = t, t) {
|
|
48
48
|
case "zh-CN":
|
|
@@ -53,27 +53,27 @@ function he() {
|
|
|
53
53
|
break;
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
return
|
|
56
|
+
return z(() => {
|
|
57
57
|
d(g());
|
|
58
58
|
}), p(() => g(), d, { deep: !0, immediate: !0 }), {
|
|
59
59
|
currentLocale: x
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
F.locale(g() === "zh-CN" ? "zh-cn" : "en");
|
|
63
|
-
const
|
|
63
|
+
const he = ["src"], _e = ["src"], Le = /* @__PURE__ */ O({
|
|
64
64
|
__name: "App",
|
|
65
65
|
setup(d) {
|
|
66
|
-
const { businessId: t, token: n, country:
|
|
66
|
+
const { businessId: t, token: n, country: a } = B(re()), { sessionUser: i, currentBusiness: c, currentCountry: y, registerSidebarComponent: u } = k(), { getRestaurantAndWarehouse: v, getBusinessSetting: h } = ne(), { getFeatureFlags: _ } = ae(), { version: s } = B(ie()), { getSettings: A } = se(), l = fe(), { promptLoader: J } = le(), W = I(() => `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`), G = I(() => `https://report-v4.feedmedev.cc?businessId=${t.value}&country=${a.value}&token=${n.value}&reportV3Button=true`);
|
|
67
67
|
p(
|
|
68
68
|
// if route query pass in the detail we switch accordingly
|
|
69
69
|
[() => l.query, () => c.value, () => i.value],
|
|
70
70
|
() => {
|
|
71
71
|
var o, e, f;
|
|
72
|
-
l.query.token && l.query.businessId && l.query.country ? (t.value = l.query.businessId, n.value = l.query.token,
|
|
72
|
+
l.query.token && l.query.businessId && l.query.country ? (t.value = l.query.businessId, n.value = l.query.token, a.value = l.query.country) : ((o = c.value) != null && o.id && (t.value = c.value.id), (e = i.value) != null && e.token && (n.value = (f = i.value) == null ? void 0 : f.token), y.value && (a.value = y.value));
|
|
73
73
|
},
|
|
74
74
|
{ immediate: !0 }
|
|
75
75
|
);
|
|
76
|
-
function
|
|
76
|
+
function E(o) {
|
|
77
77
|
if (typeof o.data == "string")
|
|
78
78
|
try {
|
|
79
79
|
const e = JSON.parse(o.data);
|
|
@@ -86,42 +86,42 @@ const ye = ["src"], _e = ["src"], Le = /* @__PURE__ */ O({
|
|
|
86
86
|
if (typeof o.data == "string")
|
|
87
87
|
try {
|
|
88
88
|
const e = JSON.parse(o.data);
|
|
89
|
-
(e == null ? void 0 : e.v5) === !0 ?
|
|
89
|
+
(e == null ? void 0 : e.v5) === !0 ? s.value = S.value : (e == null ? void 0 : e.v3) === !0 && (s.value = "v3");
|
|
90
90
|
} catch (e) {
|
|
91
91
|
console.error(e);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
p(
|
|
95
|
-
["v3", "v4"].includes(
|
|
94
|
+
p(s, () => {
|
|
95
|
+
["v3", "v4"].includes(s.value) ? k().hideSidebarToggle(!0) : k().hideSidebarToggle(!1);
|
|
96
96
|
}), M(() => {
|
|
97
97
|
u(de);
|
|
98
|
-
}),
|
|
99
|
-
console.log("5.4.
|
|
98
|
+
}), z(() => {
|
|
99
|
+
console.log("5.4.33-beta.0", !0), window.addEventListener("message", E), window.addEventListener("message", L);
|
|
100
100
|
});
|
|
101
|
-
const
|
|
101
|
+
const R = ce(), N = ve();
|
|
102
102
|
ee(() => {
|
|
103
|
-
window.removeEventListener("message",
|
|
103
|
+
window.removeEventListener("message", E), window.removeEventListener("message", L), R.$dispose(), N.$dispose();
|
|
104
104
|
});
|
|
105
|
-
const { getReports:
|
|
105
|
+
const { getReports: K, getOverviewReport: P, getReportConfig: V } = R, { getSchema: H } = me(), { fetchSchedules: Q } = N, { init: X } = ue(), S = j("v5");
|
|
106
106
|
return p(
|
|
107
107
|
() => t.value,
|
|
108
108
|
() => {
|
|
109
109
|
t.value !== "" && J(async () => {
|
|
110
110
|
await X({
|
|
111
|
-
apiKey: "
|
|
111
|
+
apiKey: "MaGoXrEWuEJNpWgKTqseee",
|
|
112
112
|
url: "https://flag.feedme.farm/api/v1/",
|
|
113
113
|
enableAnalytics: !1,
|
|
114
114
|
cacheFlags: !1
|
|
115
115
|
});
|
|
116
|
-
const o = await
|
|
117
|
-
S.value = o.version,
|
|
116
|
+
const o = await V();
|
|
117
|
+
S.value = o.version, s.value = S.value, await Promise.all([
|
|
118
118
|
_(),
|
|
119
|
-
|
|
119
|
+
V(),
|
|
120
|
+
P(),
|
|
120
121
|
K(),
|
|
121
122
|
H(),
|
|
122
123
|
Q(),
|
|
123
|
-
|
|
124
|
-
y(),
|
|
124
|
+
h(),
|
|
125
125
|
v(),
|
|
126
126
|
A()
|
|
127
127
|
]);
|
|
@@ -130,18 +130,18 @@ const ye = ["src"], _e = ["src"], Le = /* @__PURE__ */ O({
|
|
|
130
130
|
{
|
|
131
131
|
immediate: !0
|
|
132
132
|
}
|
|
133
|
-
),
|
|
133
|
+
), ye(), (o, e) => {
|
|
134
134
|
const f = C("router-view");
|
|
135
|
-
return m(),
|
|
135
|
+
return m(), b(te, null, [
|
|
136
136
|
$(ge),
|
|
137
|
-
r(
|
|
137
|
+
r(s) === "v3" ? (m(), b("iframe", {
|
|
138
138
|
key: 0,
|
|
139
139
|
class: "bg-white h-full w-full",
|
|
140
|
-
src:
|
|
141
|
-
}, null, 8,
|
|
140
|
+
src: W.value
|
|
141
|
+
}, null, 8, he)) : r(s) === "v4" ? (m(), b("iframe", {
|
|
142
142
|
key: 1,
|
|
143
143
|
class: "bg-white h-full w-full",
|
|
144
|
-
src:
|
|
144
|
+
src: G.value
|
|
145
145
|
}, null, 8, _e)) : (m(), T(f, { key: 2 }))
|
|
146
146
|
], 64);
|
|
147
147
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as F, resolveComponent as g, createBlock as p, openBlock as u, withCtx as v, createCommentVNode as y, createElementVNode as w, toDisplayString as M, renderSlot as P, mergeModels as T, useModel as f, ref as C, watch as I, createElementBlock as x, createVNode as D, unref as c } from "vue";
|
|
2
|
-
import { d as n, G as O, C as B } from "./global-loader-
|
|
3
|
-
import { b as V } from "./index-
|
|
2
|
+
import { d as n, G as O, C as B } from "./global-loader-BqFQzk46.js";
|
|
3
|
+
import { b as V } from "./index-Cmh079Bh.js";
|
|
4
4
|
import { detectLocale as $ } from "@feedmepos/mf-common";
|
|
5
5
|
const Y = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, j = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, k = /* @__PURE__ */ F({
|
|
6
6
|
__name: "FilterChip",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as u, computed as f, resolveComponent as p, createElementBlock as s, openBlock as r, normalizeStyle as n, normalizeClass as d, unref as e, createBlock as y, createCommentVNode as _, createVNode as k, createElementVNode as x, renderSlot as g } 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-BAS_eSKD.js";
|
|
3
3
|
import { useBreakpoints as h } from "@feedmepos/ui-library";
|
|
4
4
|
import { storeToRefs as b } from "pinia";
|
|
5
|
-
import { f as w } from "./global-loader-
|
|
5
|
+
import { f as w } from "./global-loader-BqFQzk46.js";
|
|
6
6
|
import { useRoute as q } from "vue-router";
|
|
7
7
|
const C = {
|
|
8
8
|
key: 1,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as W, useModel as H, computed as i, ref as L, resolveComponent as y, createElementBlock as D, openBlock as v, Fragment as z, renderSlot as j, createVNode as S, createElementVNode as k, toDisplayString as Z, unref as U, withCtx as V, createBlock as T, createCommentVNode as J, normalizeClass as le, normalizeStyle as _e, h as ge, renderList as Ce, mergeModels as Ee, watch as ae, onMounted as ze, onUnmounted as We, resolveDynamicComponent as He, withDirectives as Oe, vShow as qe } from "vue";
|
|
2
|
-
import { W as r, v as te, R as Ue, g as je, d as Ge, q as Je } from "./v4-
|
|
3
|
-
import { u as ie, b as xe, a as ue } from "./global-loader-
|
|
4
|
-
import { d as be } from "./index-
|
|
2
|
+
import { W as r, v as te, R as Ue, g as je, d as Ge, q as Je } from "./v4-BOOklPpL.js";
|
|
3
|
+
import { u as ie, b as xe, a as ue } from "./global-loader-BqFQzk46.js";
|
|
4
|
+
import { d as be } from "./index-Cmh079Bh.js";
|
|
5
5
|
import { storeToRefs as ne } from "pinia";
|
|
6
6
|
import { _ as Ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
import { _ as ye } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as ye } from "./NoData.vue_vue_type_script_setup_true_lang-DI4X_DSc.js";
|
|
8
8
|
import { useBreakpoints as Qe, useSnackbar as Ze } from "@feedmepos/ui-library";
|
|
9
9
|
var re = /* @__PURE__ */ ((l) => (l.line = "LINE", l.bar = "BAR", l))(re || {}), A = /* @__PURE__ */ ((l) => (l.top = "TOP", l.bottom = "BOTTOM", l))(A || {});
|
|
10
10
|
r.Circular, r.Table, r.BarChart, r.LineChart, r.StackBarChart, r.StackLineChart, r.Scorecard, r.Spacer;
|
|
@@ -2,14 +2,14 @@ var Zo = Object.defineProperty;
|
|
|
2
2
|
var Qo = (i, t, e) => t in i ? Zo(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
3
|
var k = (i, t, e) => Qo(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
import { ref as $t, defineComponent as oe, watch as ri, computed as _t, onMounted as Jo, createElementBlock as U, openBlock as I, createElementVNode as R, renderSlot as Un, toDisplayString as lt, resolveDirective as Xn, createCommentVNode as St, Fragment as Ii, renderList as zi, createBlock as Ht, withDirectives as Ge, resolveDynamicComponent as es, unref as G, withCtx as Yt, createVNode as et, normalizeClass as Ze, resolveComponent as Me, useModel as ta, createTextVNode as ea, isRef as ki, nextTick as ia } from "vue";
|
|
5
|
-
import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { d as Bi, a as Kn, h as qn, F as Gn, u as Zn, b as oa } from "./global-loader-
|
|
5
|
+
import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-BRp-NZ2G.js";
|
|
6
|
+
import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-Xex8S8XX.js";
|
|
7
|
+
import { d as Bi, a as Kn, h as qn, F as Gn, u as Zn, b as oa } from "./global-loader-BqFQzk46.js";
|
|
8
8
|
import { storeToRefs as Qn } from "pinia";
|
|
9
9
|
import { components as is, useSnackbar as aa } from "@feedmepos/ui-library";
|
|
10
|
-
import { c as ys } from "./index-
|
|
11
|
-
import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { _ as la } from "./LocationSelect.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { c as ys } from "./index-Cmh079Bh.js";
|
|
11
|
+
import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-DI4X_DSc.js";
|
|
12
|
+
import { _ as la } from "./LocationSelect.vue_vue_type_script_setup_true_lang-BRAZAoJz.js";
|
|
13
13
|
function ca({ start: i, end: t }) {
|
|
14
14
|
return `${Bi(t).format("DD MMM")}, ${Bi(t).format("YYYY")}`;
|
|
15
15
|
}
|
|
@@ -9464,7 +9464,7 @@ const xd = { class: "flex flex-col h-full overflow-hidden" }, _d = { class: "fle
|
|
|
9464
9464
|
R("div", Vd, [
|
|
9465
9465
|
R("div", Wd, [
|
|
9466
9466
|
et(Go, { size: 22 }),
|
|
9467
|
-
R("div", Nd, lt(G(e)("report.view.insight")), 1)
|
|
9467
|
+
R("div", Nd, lt(G(e)("report.view.insight.title")), 1)
|
|
9468
9468
|
]),
|
|
9469
9469
|
et(g, {
|
|
9470
9470
|
compact: "",
|