@feedmepos/mf-report 5.10.9 → 5.11.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-C3LtgfsE.js → App-BB1lqrCu.js} +33 -33
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-DFhiXlTW.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-DIO5R9yT.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CdQW5BHW.js → Default.vue_vue_type_script_setup_true_lang-B-uYZpDT.js} +2 -2
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-bFKtzHuU.js +1497 -0
- package/dist/{InsightView-D9h2E2NR.js → InsightView-WepamK3H.js} +5 -5
- package/dist/Integration-BOxIOylm.js +6024 -0
- package/dist/{Integrations-BGmJBj90.js → Integrations-Ca0Xbhk1.js} +3 -3
- package/dist/{Layout-BywfWvap.js → Layout-DbuvrIvP.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DMnPt2U4.js → MenuTab.vue_vue_type_script_setup_true_lang-DX4mpEcq.js} +7 -7
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DvaG1juq.js → NavigationTab.vue_vue_type_script_setup_true_lang-BIU5Cx8I.js} +5 -5
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-D-J81GXC.js → NoData.vue_vue_type_script_setup_true_lang-DB3zDUVV.js} +1 -1
- package/dist/{OverviewView-T56xyQu1.js → OverviewView-CEZG899M.js} +5 -5
- package/dist/{Report-CY0sMF_I.js → Report-D9AX3qj0.js} +4 -4
- package/dist/{ReportEditor-Dlza3qtL.js → ReportEditor-BzuqVUMs.js} +6 -6
- package/dist/{ReportView-Bpgn1bve.js → ReportView-C7_zE7Ix.js} +42 -40
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-CGlkGXWL.js → SelectComponent.vue_vue_type_script_setup_true_lang-D_NmiN5U.js} +1 -1
- package/dist/{Setting--iRLg_Tu.js → Setting-CWyr_1Gf.js} +4 -4
- package/dist/TileEditor-n2ylp7S_.js +3221 -0
- package/dist/{TransitionFade-93KE5OJb.js → TransitionFade-z7d9rDXp.js} +4 -4
- package/dist/app.js +152 -22
- package/dist/{helper-CFNxnCtm.js → helper-D4-BWsJj.js} +1 -1
- package/dist/{v4-4SogFhTB.js → v4-BSHdakEj.js} +1 -1
- package/dist/{vue-i18n-DX0diAld.js → vue-i18n-BMM8dWbV.js} +3520 -3512
- package/package.json +1 -1
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-D8-FlHFK.js +0 -1484
- package/dist/Integration-DqI8o9i8.js +0 -5277
- package/dist/TileEditor-ByxLpR6P.js +0 -3102
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as O, resolveComponent as b, createBlock as I, openBlock as c, unref as r, isRef as X, withCtx as S, createElementVNode as
|
|
1
|
+
import { defineComponent as O, resolveComponent as b, createBlock as I, 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 T, watch as f, ref as z, 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, g as le } from "./vue-i18n-
|
|
3
|
+
import { u as te, d as C, a as oe, b as re, c as ae, e as ne, f as se, g as le } from "./vue-i18n-BMM8dWbV.js";
|
|
4
4
|
import { storeToRefs as $ } from "pinia";
|
|
5
|
-
import { u as ue, a as ie, b as ce } from "./v4-
|
|
6
|
-
import { _ as
|
|
5
|
+
import { u as ue, a as ie, b as ce } from "./v4-BSHdakEj.js";
|
|
6
|
+
import { _ as de, u as me } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BIU5Cx8I.js";
|
|
7
7
|
import { u as U } from "./message-dialog-UoMWOnil.js";
|
|
8
8
|
const ve = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, fe = /* @__PURE__ */ O({
|
|
9
9
|
__name: "Dialog",
|
|
10
|
-
setup(
|
|
10
|
+
setup(d) {
|
|
11
11
|
const { t } = te(), a = U(), { isOpened: n, message: u, title: i } = $(U());
|
|
12
|
-
return (
|
|
12
|
+
return (m, l) => {
|
|
13
13
|
const v = b("FmButton"), g = b("FmDialog");
|
|
14
14
|
return c(), I(g, {
|
|
15
15
|
modelValue: r(n),
|
|
@@ -18,13 +18,13 @@ const ve = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, fe
|
|
|
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", ve, 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",
|
|
@@ -39,9 +39,9 @@ const ve = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, fe
|
|
|
39
39
|
}, 8, ["modelValue"]);
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
}), x =
|
|
42
|
+
}), x = z(p());
|
|
43
43
|
function pe() {
|
|
44
|
-
const
|
|
44
|
+
const d = (t) => {
|
|
45
45
|
switch (x.value = t, t) {
|
|
46
46
|
case "zh-CN":
|
|
47
47
|
C.locale("zh-cn");
|
|
@@ -52,21 +52,21 @@ function pe() {
|
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
return T(() => {
|
|
55
|
-
|
|
56
|
-
}), f(() => p(),
|
|
55
|
+
d(p());
|
|
56
|
+
}), f(() => p(), d, { deep: !0, immediate: !0 }), {
|
|
57
57
|
currentLocale: x
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
C.locale(p() === "zh-CN" ? "zh-cn" : "en");
|
|
61
61
|
const ge = ["src"], he = ["src"], $e = /* @__PURE__ */ O({
|
|
62
62
|
__name: "App",
|
|
63
|
-
setup(
|
|
64
|
-
const { businessId: t, token: a, country: n } = $(oe()), { sessionUser: u, currentBusiness: i, currentCountry:
|
|
63
|
+
setup(d) {
|
|
64
|
+
const { businessId: t, token: a, country: n } = $(oe()), { sessionUser: u, currentBusiness: i, currentCountry: m, registerSidebarComponent: l } = y(), { getRestaurantAndWarehouse: v, getBusinessSetting: g } = re(), { getFeatureFlags: h } = ae(), { version: s } = $(ue()), { getSettings: j } = ne(), { promptLoader: A } = se(), J = D(() => `https://portal-v1.feedmedev.cc/b/${t.value}/report/CLOSE_UP?showHeader=false&country=${n.value.toUpperCase()}&menuOption=business-report&token=${a.value}&v2=true&reportV5Button=true`), W = D(() => `https://report-v4.feedmedev.cc?businessId=${t.value}&country=${n.value}&token=${a.value}&reportV3Button=true`);
|
|
65
65
|
f(
|
|
66
|
-
[() => i.value, () => u.value, () =>
|
|
66
|
+
[() => i.value, () => u.value, () => m.value],
|
|
67
67
|
() => {
|
|
68
68
|
var o, e;
|
|
69
|
-
i.value && u.value &&
|
|
69
|
+
i.value && u.value && m.value && (t.value = ((o = i.value) == null ? void 0 : o.id) ?? "", a.value = ((e = u.value) == null ? void 0 : e.token) ?? "", n.value = m.value ?? "");
|
|
70
70
|
},
|
|
71
71
|
{ immediate: !0 }
|
|
72
72
|
);
|
|
@@ -91,36 +91,36 @@ 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(
|
|
94
|
+
l(de);
|
|
95
95
|
}), T(() => {
|
|
96
|
-
console.log("5.
|
|
96
|
+
console.log("5.11.0-beta.0", !0), window.addEventListener("message", F), window.addEventListener("message", B);
|
|
97
97
|
});
|
|
98
|
-
const
|
|
98
|
+
const E = ie(), L = me();
|
|
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 } = ce(), { fetchSchedules: q } = L, { init: H } = le(), _ = z("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
|
},
|
|
@@ -128,7 +128,7 @@ const ge = ["src"], he = ["src"], $e = /* @__PURE__ */ O({
|
|
|
128
128
|
immediate: !0
|
|
129
129
|
}
|
|
130
130
|
), pe(), (o, e) => {
|
|
131
|
-
const
|
|
131
|
+
const Q = b("router-view");
|
|
132
132
|
return c(), w(ee, null, [
|
|
133
133
|
k(fe),
|
|
134
134
|
r(s) === "v3" ? (c(), w("iframe", {
|
|
@@ -138,8 +138,8 @@ const ge = ["src"], he = ["src"], $e = /* @__PURE__ */ O({
|
|
|
138
138
|
}, null, 8, ge)) : r(s) === "v4" ? (c(), w("iframe", {
|
|
139
139
|
key: 1,
|
|
140
140
|
class: "bg-white h-full w-full",
|
|
141
|
-
src:
|
|
142
|
-
}, null, 8, he)) : (c(), I(
|
|
141
|
+
src: W.value
|
|
142
|
+
}, null, 8, he)) : (c(), I(Q, { key: 2 }))
|
|
143
143
|
], 64);
|
|
144
144
|
};
|
|
145
145
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as P, resolveComponent as b, createBlock as D, openBlock as i, withCtx as R, createCommentVNode as S, createElementVNode as V, toDisplayString as E, renderSlot as N, mergeModels as k, useModel as v, ref as x, watch as F, createElementBlock as Y, createVNode as y, unref as u } from "vue";
|
|
2
|
-
import { u as j, d as o, N as U, C as q } from "./vue-i18n-
|
|
3
|
-
import { d as T } from "./helper-
|
|
2
|
+
import { u as j, d as o, N as U, C as q } from "./vue-i18n-BMM8dWbV.js";
|
|
3
|
+
import { d as T } from "./helper-D4-BWsJj.js";
|
|
4
4
|
import { detectLocale as M } from "@feedmepos/mf-common";
|
|
5
5
|
const z = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, _ = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, O = /* @__PURE__ */ P({
|
|
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 v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BIU5Cx8I.js";
|
|
3
3
|
import { useBreakpoints as b } from "@feedmepos/ui-library";
|
|
4
4
|
import { storeToRefs as C } from "pinia";
|
|
5
|
-
import { u as q, f as w } from "./vue-i18n-
|
|
5
|
+
import { u as q, f as w } from "./vue-i18n-BMM8dWbV.js";
|
|
6
6
|
import { useRoute as B } from "vue-router";
|
|
7
7
|
const $ = {
|
|
8
8
|
key: 1,
|