@feedmepos/mf-report 5.7.5 → 5.7.6-beta.100
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-4BiuStNn.js → App-Bnn85aUl.js} +42 -42
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-Bi_BES93.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-Ceg0ycS-.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-MQ0PDHS-.js → Default.vue_vue_type_script_setup_true_lang-DqGySZDx.js} +2 -2
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-6IWcvkp4.js +1403 -0
- package/dist/{InsightView-gH-_Xg-T.js → InsightView-CN1oA5FJ.js} +6 -6
- package/dist/{Integration-D61lmDoO.js → Integration-DozOUHN0.js} +3 -3
- package/dist/{Integrations-BiJVCGrp.js → Integrations-CtHf849u.js} +3 -3
- package/dist/{Layout-D7KVahWl.js → Layout-q8Zyucbb.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-3aQidzm3.js → MenuTab.vue_vue_type_script_setup_true_lang-Dh8lEkh4.js} +3 -3
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CcHkFVHo.js → NavigationTab.vue_vue_type_script_setup_true_lang-YTHLCWW3.js} +7172 -7139
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-CdFXBqlX.js → NoData.vue_vue_type_script_setup_true_lang-Gjyew5eM.js} +1 -1
- package/dist/{OverviewView-CNGSA27Y.js → OverviewView-GP2cL3eW.js} +5 -5
- package/dist/{Report-Hq2yj8Ox.js → Report-DX2Y-Sh4.js} +4 -4
- package/dist/{ReportEditor-DPWD6PV0.js → ReportEditor-CZLcltNc.js} +5 -5
- package/dist/{ReportView-zs3iDfhW.js → ReportView-DinLEnpS.js} +7 -7
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-N2Lg1Vpt.js → SelectComponent.vue_vue_type_script_setup_true_lang-BRdIROVa.js} +1 -1
- package/dist/{Setting-Ddg3XPiq.js → Setting-CgKpTsoW.js} +4 -4
- package/dist/{TileEditor-BLsGvreq.js → TileEditor-BwAelGlT.js} +8 -8
- package/dist/{TransitionFade-C7yNEw8X.js → TransitionFade-DZJp9xij.js} +4 -4
- package/dist/app.js +11 -11
- package/dist/{global-loader-CbmVhJAK.js → global-loader-DeDK8lT7.js} +3 -3
- package/dist/{index-BWqDfeY6.js → index-BUphqdhM.js} +1 -1
- package/dist/{report-schema-BnzKoFjx.js → report-schema-tfEvDL2D.js} +1 -1
- package/dist/{v4-Cbq0RSpY.js → v4-B_sjxmW5.js} +339 -333
- package/package.json +1 -1
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-DokEr03U.js +0 -1390
|
@@ -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-DeDK8lT7.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-B_sjxmW5.js";
|
|
6
|
+
import { u as me } from "./report-schema-tfEvDL2D.js";
|
|
7
|
+
import { _ as de, u as ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-YTHLCWW3.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.7.
|
|
98
|
+
}), z(() => {
|
|
99
|
+
console.log("5.7.6-beta.100", !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-DeDK8lT7.js";
|
|
3
|
+
import { b as V } from "./index-BUphqdhM.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 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 b } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as b } from "./NavigationTab.vue_vue_type_script_setup_true_lang-YTHLCWW3.js";
|
|
3
3
|
import { useBreakpoints as v } from "@feedmepos/ui-library";
|
|
4
4
|
import { storeToRefs as q } from "pinia";
|
|
5
|
-
import { u as C, f as w } from "./global-loader-
|
|
5
|
+
import { u as C, f as w } from "./global-loader-DeDK8lT7.js";
|
|
6
6
|
import { useRoute as B } from "vue-router";
|
|
7
7
|
const $ = {
|
|
8
8
|
key: 1,
|