@feedmepos/mf-report 5.16.3 → 5.17.0-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-C4DSMuvx.js → App-DeU7iMbf.js} +42 -42
- package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-DKvsNtlh.js +11197 -0
- package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-CLTU-OJV.js +185 -0
- package/dist/{Default.vue_vue_type_script_setup_true_lang-BTEBN_ME.js → Default.vue_vue_type_script_setup_true_lang-BQWV9Bgr.js} +2 -2
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-D_6OZr9j.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CdRZh5dG.js} +5 -5
- package/dist/{InsightView-CKmVOWRq.js → InsightView-CJVbMpiM.js} +5 -5
- package/dist/{Integration-BGJgv8ld.js → Integration-Cq_c3vS2.js} +83 -83
- package/dist/{Integrations-BFR4GSe-.js → Integrations-CqMymn98.js} +3 -3
- package/dist/{Layout-DdQb177t.js → Layout-B55svxvZ.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-VzoP4dBc.js → MenuTab.vue_vue_type_script_setup_true_lang-2Z_LbV9u.js} +6 -6
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-Dl1esU5o.js → NavigationTab.vue_vue_type_script_setup_true_lang-Br3jELGp.js} +5 -5
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-DKR68sD0.js → NoData.vue_vue_type_script_setup_true_lang-By5gQvZP.js} +1 -1
- package/dist/{OverviewView-BzRzOXDI.js → OverviewView-Dhbkita5.js} +5 -5
- package/dist/{Report-CkVc0B6n.js → Report-C-4RmuGl.js} +4 -4
- package/dist/{ReportEditor-CExXqwyl.js → ReportEditor-BZTwbyTR.js} +6 -6
- package/dist/{ReportView-BppRhNxn.js → ReportView-BgWZV2uu.js} +7 -7
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-Ci1K8-FH.js → SelectComponent.vue_vue_type_script_setup_true_lang-eK4eP1Qy.js} +1 -1
- package/dist/{Setting-oIRYrXp4.js → Setting-CJ5CbG9S.js} +4 -4
- package/dist/{TileEditor-BihrD1WZ.js → TileEditor-DAjEySJH.js} +7 -7
- package/dist/{TransitionFade-BvRFIIqm.js → TransitionFade-dnZ63soG.js} +5 -5
- package/dist/app.js +11 -11
- package/dist/{helper-BJTCQMQE.js → helper-bP_1beSH.js} +1 -1
- package/dist/{vue-i18n-DN46F6B1.js → vue-i18n-BgRNnwPF.js} +2760 -2658
- package/package.json +1 -1
- package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-jXlWGocQ.js +0 -10961
- package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-Dt9Am72I.js +0 -180
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { defineComponent as O, resolveComponent as b, createBlock as
|
|
1
|
+
import { defineComponent as O, resolveComponent as b, createBlock as T, openBlock as c, unref as r, isRef as X, withCtx as S, createElementVNode as R, createVNode as k, toDisplayString as V, createTextVNode as Y, onMounted as z, watch as f, ref as I, computed as D, onBeforeMount as Z, onBeforeUnmount as M, createElementBlock as w, Fragment as ee } from "vue";
|
|
2
2
|
import { detectLocale as p, useCoreStore as y } from "@feedmepos/mf-common";
|
|
3
|
-
import { u as te, d as C, a as oe, b as re, c as ae, e as ne, f as se,
|
|
3
|
+
import { u as te, d as C, a as oe, b as re, c as ae, e as ne, f as se, s as le, g as ue } from "./vue-i18n-BgRNnwPF.js";
|
|
4
4
|
import { storeToRefs as $ } from "pinia";
|
|
5
|
-
import { u as
|
|
6
|
-
import { _ as
|
|
5
|
+
import { u as ie, a as ce, b as me } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DKvsNtlh.js";
|
|
6
|
+
import { _ as de, u as ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-Br3jELGp.js";
|
|
7
7
|
import { u as U } from "./message-dialog-UoMWOnil.js";
|
|
8
|
-
const
|
|
8
|
+
const fe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, pe = /* @__PURE__ */ O({
|
|
9
9
|
__name: "Dialog",
|
|
10
10
|
setup(m) {
|
|
11
|
-
const { t } = te(),
|
|
11
|
+
const { t } = te(), n = U(), { isOpened: a, message: u, title: i } = $(U());
|
|
12
12
|
return (d, l) => {
|
|
13
13
|
const v = b("FmButton"), g = b("FmDialog");
|
|
14
|
-
return c(),
|
|
15
|
-
modelValue: r(
|
|
16
|
-
"onUpdate:modelValue": l[0] || (l[0] = (h) => X(
|
|
14
|
+
return c(), T(g, {
|
|
15
|
+
modelValue: r(a),
|
|
16
|
+
"onUpdate:modelValue": l[0] || (l[0] = (h) => X(a) ? a.value = h : null),
|
|
17
17
|
overlay: "",
|
|
18
18
|
"close-button": !1
|
|
19
19
|
}, {
|
|
20
20
|
"dialog-header": S(() => [
|
|
21
|
-
Y(
|
|
21
|
+
Y(V(r(i)), 1)
|
|
22
22
|
]),
|
|
23
23
|
default: S(() => [
|
|
24
|
-
|
|
24
|
+
R("p", fe, V(r(u)), 1)
|
|
25
25
|
]),
|
|
26
26
|
"dialog-footer": S(() => [
|
|
27
|
-
l[1] || (l[1] =
|
|
27
|
+
l[1] || (l[1] = R("div", { class: "grow" }, null, -1)),
|
|
28
28
|
k(v, {
|
|
29
29
|
label: r(t)("report.common.cancel"),
|
|
30
30
|
variant: "tertiary",
|
|
31
|
-
onClick: r(
|
|
31
|
+
onClick: r(n).dismiss
|
|
32
32
|
}, null, 8, ["label", "onClick"]),
|
|
33
33
|
k(v, {
|
|
34
34
|
label: r(t)("report.common.confirm"),
|
|
35
|
-
onClick: r(
|
|
35
|
+
onClick: r(n).confirm
|
|
36
36
|
}, null, 8, ["label", "onClick"])
|
|
37
37
|
]),
|
|
38
38
|
_: 1
|
|
39
39
|
}, 8, ["modelValue"]);
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
}), x =
|
|
43
|
-
function
|
|
42
|
+
}), x = I(p());
|
|
43
|
+
function ge() {
|
|
44
44
|
const m = (t) => {
|
|
45
45
|
switch (x.value = t, t) {
|
|
46
46
|
case "zh-CN":
|
|
@@ -51,22 +51,22 @@ function pe() {
|
|
|
51
51
|
break;
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
return
|
|
54
|
+
return z(() => {
|
|
55
55
|
m(p());
|
|
56
56
|
}), f(() => p(), m, { deep: !0, immediate: !0 }), {
|
|
57
57
|
currentLocale: x
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
C.locale(p() === "zh-CN" ? "zh-cn" : "en");
|
|
61
|
-
const
|
|
61
|
+
const he = ["src"], _e = ["src"], Fe = /* @__PURE__ */ O({
|
|
62
62
|
__name: "App",
|
|
63
63
|
setup(m) {
|
|
64
|
-
const { businessId: t, token:
|
|
64
|
+
const { businessId: t, token: n, country: a } = $(oe()), { sessionUser: u, currentBusiness: i, currentCountry: d, registerSidebarComponent: l } = y(), { getRestaurantAndWarehouse: v, getBusinessSetting: g } = re(), { getFeatureFlags: h } = ae(), { version: s } = $(ie()), { getSettings: j } = ne(), { promptLoader: A } = se(), J = D(() => `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`), W = D(() => `https://report-v4.feedmedev.cc?businessId=${t.value}&country=${a.value}&token=${n.value}&reportV3Button=true`);
|
|
65
65
|
f(
|
|
66
66
|
[() => i.value, () => u.value, () => d.value],
|
|
67
67
|
() => {
|
|
68
68
|
var o, e;
|
|
69
|
-
i.value && u.value && d.value && (t.value = ((o = i.value) == null ? void 0 : o.id) ?? "",
|
|
69
|
+
i.value && u.value && d.value && (le(a.value), t.value = ((o = i.value) == null ? void 0 : o.id) ?? "", n.value = ((e = u.value) == null ? void 0 : e.token) ?? "", a.value = d.value ?? "");
|
|
70
70
|
},
|
|
71
71
|
{ immediate: !0 }
|
|
72
72
|
);
|
|
@@ -74,7 +74,7 @@ const ge = ["src"], he = ["src"], $e = /* @__PURE__ */ O({
|
|
|
74
74
|
if (typeof o.data == "string")
|
|
75
75
|
try {
|
|
76
76
|
const e = JSON.parse(o.data);
|
|
77
|
-
(e == null ? void 0 : e.token) !== "" && (e == null ? void 0 : e.token) !== void 0 && (
|
|
77
|
+
(e == null ? void 0 : e.token) !== "" && (e == null ? void 0 : e.token) !== void 0 && (n.value = e.token);
|
|
78
78
|
} catch (e) {
|
|
79
79
|
console.error(e);
|
|
80
80
|
}
|
|
@@ -91,59 +91,59 @@ const ge = ["src"], he = ["src"], $e = /* @__PURE__ */ O({
|
|
|
91
91
|
f(s, () => {
|
|
92
92
|
["v3", "v4"].includes(s.value) ? y().hideSidebarToggle(!0) : y().hideSidebarToggle(!1);
|
|
93
93
|
}), Z(() => {
|
|
94
|
-
l(
|
|
95
|
-
}),
|
|
96
|
-
console.log("5.
|
|
94
|
+
l(de);
|
|
95
|
+
}), z(() => {
|
|
96
|
+
console.log("5.17.0-beta.0", !0), window.addEventListener("message", F), window.addEventListener("message", B);
|
|
97
97
|
});
|
|
98
|
-
const
|
|
98
|
+
const E = ce(), L = ve();
|
|
99
99
|
M(() => {
|
|
100
|
-
window.removeEventListener("message", F), window.removeEventListener("message", B),
|
|
100
|
+
window.removeEventListener("message", F), window.removeEventListener("message", B), E.$dispose(), L.$dispose();
|
|
101
101
|
});
|
|
102
|
-
const { getReports:
|
|
102
|
+
const { getReports: G, getOverviewReport: K, getReportConfig: N } = E, { getSchema: P } = me(), { fetchSchedules: q } = L, { init: H } = ue(), _ = I("v5");
|
|
103
103
|
return f(
|
|
104
104
|
() => t.value,
|
|
105
105
|
() => {
|
|
106
106
|
t.value !== "" && A(async () => {
|
|
107
|
-
await
|
|
108
|
-
apiKey: "
|
|
107
|
+
await H({
|
|
108
|
+
apiKey: "MaGoXrEWuEJNpWgKTqseee",
|
|
109
109
|
url: "https://flag.feedme.farm/api/v1/",
|
|
110
110
|
enableAnalytics: !1,
|
|
111
111
|
cacheFlags: !1
|
|
112
112
|
});
|
|
113
|
-
const o = await
|
|
113
|
+
const o = await N();
|
|
114
114
|
_.value = o.version, s.value = _.value, await Promise.all([
|
|
115
115
|
h(),
|
|
116
|
-
|
|
117
|
-
H(),
|
|
118
|
-
P(),
|
|
116
|
+
N(),
|
|
119
117
|
K(),
|
|
120
|
-
|
|
118
|
+
G(),
|
|
119
|
+
P(),
|
|
120
|
+
q(),
|
|
121
121
|
g(),
|
|
122
122
|
v(),
|
|
123
|
-
|
|
123
|
+
j()
|
|
124
124
|
]);
|
|
125
125
|
});
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
immediate: !0
|
|
129
129
|
}
|
|
130
|
-
),
|
|
131
|
-
const
|
|
130
|
+
), ge(), (o, e) => {
|
|
131
|
+
const Q = b("router-view");
|
|
132
132
|
return c(), w(ee, null, [
|
|
133
|
-
k(
|
|
133
|
+
k(pe),
|
|
134
134
|
r(s) === "v3" ? (c(), w("iframe", {
|
|
135
135
|
key: 0,
|
|
136
136
|
class: "bg-white h-full w-full",
|
|
137
137
|
src: J.value
|
|
138
|
-
}, null, 8,
|
|
138
|
+
}, null, 8, he)) : r(s) === "v4" ? (c(), w("iframe", {
|
|
139
139
|
key: 1,
|
|
140
140
|
class: "bg-white h-full w-full",
|
|
141
|
-
src:
|
|
142
|
-
}, null, 8,
|
|
141
|
+
src: W.value
|
|
142
|
+
}, null, 8, _e)) : (c(), T(Q, { key: 2 }))
|
|
143
143
|
], 64);
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
146
|
});
|
|
147
147
|
export {
|
|
148
|
-
|
|
148
|
+
Fe as default
|
|
149
149
|
};
|