@feedmepos/mf-report 5.10.9-beta.0 → 5.10.9
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-BMxgoro_.js → App-C3LtgfsE.js} +33 -33
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-Di2i7Cxv.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-DFhiXlTW.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-C6yqBFC-.js → Default.vue_vue_type_script_setup_true_lang-CdQW5BHW.js} +2 -2
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CZwWJfpz.js → DynamicWidget.vue_vue_type_script_setup_true_lang-D8-FlHFK.js} +5 -5
- package/dist/{InsightView-Cffot9BS.js → InsightView-D9h2E2NR.js} +5 -5
- package/dist/{Integration-YuItIBkL.js → Integration-DqI8o9i8.js} +2 -2
- package/dist/{Integrations-BiZ7Qe10.js → Integrations-BGmJBj90.js} +3 -3
- package/dist/{Layout-B1-yFqSx.js → Layout-BywfWvap.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-ppYQ6PPO.js → MenuTab.vue_vue_type_script_setup_true_lang-DMnPt2U4.js} +6 -6
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-B0ixu0KS.js → NavigationTab.vue_vue_type_script_setup_true_lang-DvaG1juq.js} +6 -6
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-BDQa8tuH.js → NoData.vue_vue_type_script_setup_true_lang-D-J81GXC.js} +1 -1
- package/dist/{OverviewView-NBaqhHDn.js → OverviewView-T56xyQu1.js} +5 -5
- package/dist/{Report-CtEjzYw0.js → Report-CY0sMF_I.js} +4 -4
- package/dist/{ReportEditor-BXvRLK32.js → ReportEditor-Dlza3qtL.js} +6 -6
- package/dist/{ReportView-DVyyPKLt.js → ReportView-Bpgn1bve.js} +7 -7
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-De5QvHT8.js → SelectComponent.vue_vue_type_script_setup_true_lang-CGlkGXWL.js} +1 -1
- package/dist/{Setting-BD96adz9.js → Setting--iRLg_Tu.js} +4 -4
- package/dist/{TileEditor-LHyH_tyV.js → TileEditor-ByxLpR6P.js} +7 -7
- package/dist/{TransitionFade-Be91iXDm.js → TransitionFade-93KE5OJb.js} +4 -4
- package/dist/app.js +11 -11
- package/dist/{helper-CRwZt_Qw.js → helper-CFNxnCtm.js} +1 -1
- package/dist/{v4-BBQahyHa.js → v4-4SogFhTB.js} +1 -1
- package/dist/{vue-i18n-CwPH2qag.js → vue-i18n-DX0diAld.js} +1056 -1058
- package/package.json +1 -1
|
@@ -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 D, createVNode as k, toDisplayString as E, createTextVNode as Y, onMounted as T, watch as f, ref as j, 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, 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-DX0diAld.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-4SogFhTB.js";
|
|
6
|
+
import { _ as me, u as de } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DvaG1juq.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(m) {
|
|
11
11
|
const { t } = te(), a = U(), { isOpened: n, message: u, title: i } = $(U());
|
|
12
|
-
return (
|
|
12
|
+
return (d, 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(E(r(i)), 1)
|
|
22
22
|
]),
|
|
23
23
|
default: S(() => [
|
|
24
|
-
|
|
24
|
+
D("p", ve, E(r(u)), 1)
|
|
25
25
|
]),
|
|
26
26
|
"dialog-footer": S(() => [
|
|
27
|
-
l[1] || (l[1] =
|
|
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",
|
|
@@ -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 = j(p());
|
|
43
43
|
function pe() {
|
|
44
|
-
const
|
|
44
|
+
const m = (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
|
+
m(p());
|
|
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
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(m) {
|
|
64
|
+
const { businessId: t, token: a, country: n } = $(oe()), { sessionUser: u, currentBusiness: i, currentCountry: d, registerSidebarComponent: l } = y(), { getRestaurantAndWarehouse: v, getBusinessSetting: g } = re(), { getFeatureFlags: h } = ae(), { version: s } = $(ue()), { getSettings: z } = ne(), { promptLoader: A } = se(), J = N(() => `https://portal-v1.feedme.cc/b/${t.value}/report/CLOSE_UP?showHeader=false&country=${n.value.toUpperCase()}&menuOption=business-report&token=${a.value}&v2=true&reportV5Button=true`), G = N(() => `https://report-v4.feedme.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, () => d.value],
|
|
67
67
|
() => {
|
|
68
68
|
var o, e;
|
|
69
|
-
i.value && u.value &&
|
|
69
|
+
i.value && u.value && d.value && (t.value = ((o = i.value) == null ? void 0 : o.id) ?? "", a.value = ((e = u.value) == null ? void 0 : e.token) ?? "", n.value = d.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(me);
|
|
95
95
|
}), T(() => {
|
|
96
|
-
console.log("5.10.9
|
|
96
|
+
console.log("5.10.9", !0), window.addEventListener("message", F), window.addEventListener("message", B);
|
|
97
97
|
});
|
|
98
|
-
const
|
|
98
|
+
const L = ie(), R = de();
|
|
99
99
|
M(() => {
|
|
100
|
-
window.removeEventListener("message", F), window.removeEventListener("message", B),
|
|
100
|
+
window.removeEventListener("message", F), window.removeEventListener("message", B), L.$dispose(), R.$dispose();
|
|
101
101
|
});
|
|
102
|
-
const { getReports:
|
|
102
|
+
const { getReports: P, getOverviewReport: H, getReportConfig: V } = L, { getSchema: K } = ce(), { fetchSchedules: Q } = R, { init: W } = le(), _ = j("v5");
|
|
103
103
|
return f(
|
|
104
104
|
() => t.value,
|
|
105
105
|
() => {
|
|
106
106
|
t.value !== "" && A(async () => {
|
|
107
|
-
await
|
|
108
|
-
apiKey: "
|
|
107
|
+
await W({
|
|
108
|
+
apiKey: "6GhcttsJ9Rj9cTevcdrpin",
|
|
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 V();
|
|
114
114
|
_.value = o.version, s.value = _.value, await Promise.all([
|
|
115
115
|
h(),
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
G(),
|
|
116
|
+
V(),
|
|
117
|
+
H(),
|
|
119
118
|
P(),
|
|
120
|
-
|
|
119
|
+
K(),
|
|
120
|
+
Q(),
|
|
121
121
|
g(),
|
|
122
122
|
v(),
|
|
123
|
-
|
|
123
|
+
z()
|
|
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: G.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-DX0diAld.js";
|
|
3
|
+
import { d as T } from "./helper-CFNxnCtm.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-DvaG1juq.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-DX0diAld.js";
|
|
6
6
|
import { useRoute as B } from "vue-router";
|
|
7
7
|
const $ = {
|
|
8
8
|
key: 1,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { computed as d, defineComponent as Z, useModel as Q, ref as i, watchEffect as Re, resolveComponent as z, createElementBlock as q, openBlock as W, Fragment as ae, renderSlot as de, createVNode as V, normalizeStyle as le, unref as n, createElementVNode as B, toDisplayString as ke, withCtx as I, createBlock as X, createCommentVNode as ce, normalizeClass as Ve, h as vt, watch as we, nextTick as gt, renderList as Ct, mergeModels as St, createTextVNode as Jt, onMounted as Kt, onUnmounted as Zt, resolveDynamicComponent as Qt, withDirectives as ea, vShow as ta } from "vue";
|
|
2
|
-
import { W as w, a as Fe, v as Ae, P as Xe, d as _t, q as aa, R as Te, g as la } from "./v4-
|
|
3
|
-
import { u as Pe, b as Qe, a as et } from "./vue-i18n-
|
|
4
|
-
import { a as yt } from "./helper-
|
|
2
|
+
import { W as w, a as Fe, v as Ae, P as Xe, d as _t, q as aa, R as Te, g as la } from "./v4-4SogFhTB.js";
|
|
3
|
+
import { u as Pe, b as Qe, a as et } from "./vue-i18n-DX0diAld.js";
|
|
4
|
+
import { a as yt } from "./helper-CFNxnCtm.js";
|
|
5
5
|
import { storeToRefs as j, defineStore as oa } from "pinia";
|
|
6
|
-
import { a as na } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { a as na } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGlkGXWL.js";
|
|
7
7
|
import { r as ye } from "./i18n-Cif1I9J2.js";
|
|
8
|
-
import { _ as wt } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as wt } from "./NoData.vue_vue_type_script_setup_true_lang-D-J81GXC.js";
|
|
9
9
|
import { components as sa, useSnackbar as Tt, useBreakpoints as ra } from "@feedmepos/ui-library";
|
|
10
10
|
var Ue = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(Ue || {}), K = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(K || {}), Ge = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(Ge || {}), je = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(je || {}), Je = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(Je || {}), Ke = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Ke || {}), Ze = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Ze || {});
|
|
11
11
|
w.Circular, w.Table, w.BarChart, w.LineChart, w.StackBarChart, w.StackLineChart, w.Scorecard, w.Spacer;
|
|
@@ -2,13 +2,13 @@ var Zo = Object.defineProperty;
|
|
|
2
2
|
var Jo = (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) => Jo(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
import { ref as $t, defineComponent as oe, watch as ri, computed as _t, onMounted as Qo, 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, i as ys, b as oa } from "./vue-i18n-
|
|
5
|
+
import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-CdQW5BHW.js";
|
|
6
|
+
import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DFhiXlTW.js";
|
|
7
|
+
import { d as Bi, a as Kn, h as qn, F as Gn, u as Zn, i as ys, b as oa } from "./vue-i18n-DX0diAld.js";
|
|
8
8
|
import { storeToRefs as Jn } from "pinia";
|
|
9
9
|
import { components as is, useSnackbar as aa } from "@feedmepos/ui-library";
|
|
10
|
-
import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-D-J81GXC.js";
|
|
11
|
+
import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DvaG1juq.js";
|
|
12
12
|
import { useCoreStore as ha } from "@feedmepos/mf-common";
|
|
13
13
|
function da({ start: i, end: t }) {
|
|
14
14
|
return `${Bi(t).format("DD MMM")}, ${Bi(t).format("YYYY")}`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as W, mergeModels as Re, useModel as ae, computed as z, resolveComponent as A, createElementBlock as x, openBlock as i, createElementVNode as t, createCommentVNode as L, normalizeClass as Ve, Fragment as E, renderList as Y, createBlock as P, createVNode as a, withCtx as G, toDisplayString as $, unref as d, renderSlot as st, ref as X, onUnmounted as je, watch as Ae, isRef as Ke, h as R, resolveDynamicComponent as Pe, mergeProps as ot, onMounted as at } from "vue";
|
|
2
2
|
import { useRouter as $e, useRoute as it } from "vue-router";
|
|
3
|
-
import { u as le, I as De, d as lt, s as rt, e as Me, f as Le, b as Ce, v as dt,
|
|
3
|
+
import { u as le, I as De, d as lt, s as rt, e as Me, f as Le, b as Ce, v as dt, o as mt, t as Be, w as Oe, x as Ee, y as ze, z as Ze, A as ct, B as ut, E as pt, G as Ue, H as et, J as ft, K as vt, L as gt, M as yt } from "./vue-i18n-DX0diAld.js";
|
|
4
4
|
import { u as Ye } from "./message-dialog-UoMWOnil.js";
|
|
5
5
|
import { useSnackbar as Se } from "@feedmepos/ui-library";
|
|
6
6
|
import { storeToRefs as qe } from "pinia";
|
|
7
|
-
import { _ as He } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as He } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DFhiXlTW.js";
|
|
8
8
|
const xt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, _t = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, bt = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "w-[24px] flex items-center"
|