@feedmepos/mf-report 5.16.3 → 5.17.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-DnW_5m9k.js} +30 -30
- package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-D8TqsfVZ.js +11197 -0
- package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-DFm2vtXH.js +185 -0
- package/dist/{Default.vue_vue_type_script_setup_true_lang-BTEBN_ME.js → Default.vue_vue_type_script_setup_true_lang-BOz9DH60.js} +2 -2
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-D_6OZr9j.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BNVfHFBz.js} +5 -5
- package/dist/{InsightView-CKmVOWRq.js → InsightView-K5G2jgHT.js} +5 -5
- package/dist/{Integration-BGJgv8ld.js → Integration-JiqzoKxJ.js} +83 -83
- package/dist/{Integrations-BFR4GSe-.js → Integrations-BHmoWPpM.js} +3 -3
- package/dist/{Layout-DdQb177t.js → Layout-X04fgDBo.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-VzoP4dBc.js → MenuTab.vue_vue_type_script_setup_true_lang-CEgwFa25.js} +6 -6
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-Dl1esU5o.js → NavigationTab.vue_vue_type_script_setup_true_lang-6i5IDnT5.js} +5 -5
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-DKR68sD0.js → NoData.vue_vue_type_script_setup_true_lang-DMKNJeDr.js} +1 -1
- package/dist/{OverviewView-BzRzOXDI.js → OverviewView-BqTlkV_f.js} +5 -5
- package/dist/{Report-CkVc0B6n.js → Report-BrcQkXK7.js} +4 -4
- package/dist/{ReportEditor-CExXqwyl.js → ReportEditor-2Fz1IySZ.js} +6 -6
- package/dist/{ReportView-BppRhNxn.js → ReportView-21veXp9M.js} +7 -7
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-Ci1K8-FH.js → SelectComponent.vue_vue_type_script_setup_true_lang-CCZo6blT.js} +1 -1
- package/dist/{Setting-oIRYrXp4.js → Setting-ChT46aiv.js} +4 -4
- package/dist/{TileEditor-BihrD1WZ.js → TileEditor-DtkIpqrb.js} +7 -7
- package/dist/{TransitionFade-BvRFIIqm.js → TransitionFade-zgQSBMP-.js} +5 -5
- package/dist/app.js +11 -11
- package/dist/{helper-BJTCQMQE.js → helper-CT5WD6D6.js} +1 -1
- package/dist/{vue-i18n-DN46F6B1.js → vue-i18n-Dre8K8BL.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,19 +1,19 @@
|
|
|
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 D, createVNode as k, toDisplayString as E, createTextVNode as Y, onMounted as z, watch as f, ref as I, computed as N, 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-Dre8K8BL.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-D8TqsfVZ.js";
|
|
6
|
+
import { _ as de, u as ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-6i5IDnT5.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
|
}, {
|
|
@@ -21,26 +21,26 @@ const ve = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, fe
|
|
|
21
21
|
Y(E(r(i)), 1)
|
|
22
22
|
]),
|
|
23
23
|
default: S(() => [
|
|
24
|
-
D("p",
|
|
24
|
+
D("p", fe, E(r(u)), 1)
|
|
25
25
|
]),
|
|
26
26
|
"dialog-footer": S(() => [
|
|
27
27
|
l[1] || (l[1] = D("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 = N(() => `https://portal-v1.feedme.cc/b/${t.value}/report/CLOSE_UP?showHeader=false&country=${a.value.toUpperCase()}&menuOption=business-report&token=${n.value}&v2=true&reportV5Button=true`), G = N(() => `https://report-v4.feedme.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,15 +91,15 @@ 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", !0), window.addEventListener("message", F), window.addEventListener("message", B);
|
|
97
97
|
});
|
|
98
|
-
const L =
|
|
98
|
+
const L = ce(), R = ve();
|
|
99
99
|
M(() => {
|
|
100
100
|
window.removeEventListener("message", F), window.removeEventListener("message", B), L.$dispose(), R.$dispose();
|
|
101
101
|
});
|
|
102
|
-
const { getReports: P, getOverviewReport: H, getReportConfig: V } = L, { getSchema: K } =
|
|
102
|
+
const { getReports: P, getOverviewReport: H, getReportConfig: V } = L, { getSchema: K } = me(), { fetchSchedules: Q } = R, { init: W } = ue(), _ = I("v5");
|
|
103
103
|
return f(
|
|
104
104
|
() => t.value,
|
|
105
105
|
() => {
|
|
@@ -120,30 +120,30 @@ const ge = ["src"], he = ["src"], $e = /* @__PURE__ */ O({
|
|
|
120
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
|
-
),
|
|
130
|
+
), ge(), (o, e) => {
|
|
131
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
141
|
src: G.value
|
|
142
|
-
}, null, 8,
|
|
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
|
};
|