@feedmepos/mf-report 5.8.1 → 5.8.2-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-bVkQiecI.js → App-CVBF-RIq.js} +25 -25
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BAvBnJIi.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-2O6NpHjE.js} +4 -4
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CnW9a2_R.js → Default.vue_vue_type_script_setup_true_lang-CwNa_c74.js} +2 -2
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-DQU-uRz0.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DW-6QTKl.js} +4 -4
- package/dist/{InsightView-Bf_7_Wjc.js → InsightView-D6X9jnLz.js} +6 -6
- package/dist/Integration-oTDRNhG8.js +4751 -0
- package/dist/{Integrations-o4scI50k.js → Integrations-DN2WNYXH.js} +3 -3
- package/dist/{Layout-BXnKCxTV.js → Layout-0ZxLP82K.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CKHLNSX_.js → MenuTab.vue_vue_type_script_setup_true_lang-DI3QDb25.js} +3 -3
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DhEzSNFT.js → NavigationTab.vue_vue_type_script_setup_true_lang-D1VWyu4i.js} +5 -5
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-eaRJMGBE.js → NoData.vue_vue_type_script_setup_true_lang-C10GhV_H.js} +1 -1
- package/dist/{OverviewView-faNxJlGW.js → OverviewView-BFjjTkkR.js} +5 -5
- package/dist/{Report-CYKjv1L8.js → Report-Cvoqjnpe.js} +4 -4
- package/dist/{ReportEditor-NLpUP6DD.js → ReportEditor-DkdI7ZmZ.js} +5 -5
- package/dist/{ReportView-BptXTxx_.js → ReportView-6niCdR8K.js} +7 -7
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-DsaGcFfU.js → SelectComponent.vue_vue_type_script_setup_true_lang-B-9VcGRC.js} +1 -1
- package/dist/{Setting-BoprwHZP.js → Setting-BidP77Xr.js} +4 -4
- package/dist/{TileEditor-BnwUpljC.js → TileEditor-DCNCfcEY.js} +8 -8
- package/dist/{TransitionFade-lxIznBDk.js → TransitionFade-4Zow9tAu.js} +4 -4
- package/dist/app.js +143 -28
- package/dist/{global-loader-CIycgK0A.js → global-loader-BQlMgPFO.js} +2263 -2239
- package/dist/{index-N8fjljRM.js → index-Dw6wKcLo.js} +1 -1
- package/dist/{report-schema-vJw0vcwJ.js → report-schema-IaDHay9I.js} +1 -1
- package/dist/{v4-HgU9tmlv.js → v4-CLzZSDqm.js} +1 -1
- package/package.json +1 -1
- package/dist/Integration-BlBTzdBt.js +0 -3963
|
@@ -1,10 +1,10 @@
|
|
|
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 "./global-loader-
|
|
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 "./global-loader-BQlMgPFO.js";
|
|
4
4
|
import { storeToRefs as $ } from "pinia";
|
|
5
|
-
import { u as ue, a as ie } from "./v4-
|
|
6
|
-
import { u as ce } from "./report-schema-
|
|
7
|
-
import { _ as me, u as de } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { u as ue, a as ie } from "./v4-CLzZSDqm.js";
|
|
6
|
+
import { u as ce } from "./report-schema-IaDHay9I.js";
|
|
7
|
+
import { _ as me, u as de } from "./NavigationTab.vue_vue_type_script_setup_true_lang-D1VWyu4i.js";
|
|
8
8
|
import { u as U } from "./message-dialog-UoMWOnil.js";
|
|
9
9
|
const ve = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, fe = /* @__PURE__ */ O({
|
|
10
10
|
__name: "Dialog",
|
|
@@ -19,13 +19,13 @@ const ve = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, fe
|
|
|
19
19
|
"close-button": !1
|
|
20
20
|
}, {
|
|
21
21
|
"dialog-header": S(() => [
|
|
22
|
-
Y(
|
|
22
|
+
Y(V(r(i)), 1)
|
|
23
23
|
]),
|
|
24
24
|
default: S(() => [
|
|
25
|
-
|
|
25
|
+
R("p", ve, V(r(u)), 1)
|
|
26
26
|
]),
|
|
27
27
|
"dialog-footer": S(() => [
|
|
28
|
-
l[1] || (l[1] =
|
|
28
|
+
l[1] || (l[1] = R("div", { class: "grow" }, null, -1)),
|
|
29
29
|
k(v, {
|
|
30
30
|
label: r(t)("report.common.cancel"),
|
|
31
31
|
variant: "tertiary",
|
|
@@ -40,7 +40,7 @@ const ve = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, fe
|
|
|
40
40
|
}, 8, ["modelValue"]);
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
}), x =
|
|
43
|
+
}), x = z(p());
|
|
44
44
|
function pe() {
|
|
45
45
|
const m = (t) => {
|
|
46
46
|
switch (x.value = t, t) {
|
|
@@ -62,7 +62,7 @@ C.locale(p() === "zh-CN" ? "zh-cn" : "en");
|
|
|
62
62
|
const ge = ["src"], he = ["src"], Fe = /* @__PURE__ */ O({
|
|
63
63
|
__name: "App",
|
|
64
64
|
setup(m) {
|
|
65
|
-
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:
|
|
65
|
+
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: 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`);
|
|
66
66
|
f(
|
|
67
67
|
[() => i.value, () => u.value, () => d.value],
|
|
68
68
|
() => {
|
|
@@ -94,34 +94,34 @@ const ge = ["src"], he = ["src"], Fe = /* @__PURE__ */ O({
|
|
|
94
94
|
}), Z(() => {
|
|
95
95
|
l(me);
|
|
96
96
|
}), T(() => {
|
|
97
|
-
console.log("5.8.
|
|
97
|
+
console.log("5.8.2-beta.0", !0), window.addEventListener("message", F), window.addEventListener("message", B);
|
|
98
98
|
});
|
|
99
|
-
const
|
|
99
|
+
const E = ie(), L = de();
|
|
100
100
|
M(() => {
|
|
101
|
-
window.removeEventListener("message", F), window.removeEventListener("message", B),
|
|
101
|
+
window.removeEventListener("message", F), window.removeEventListener("message", B), E.$dispose(), L.$dispose();
|
|
102
102
|
});
|
|
103
|
-
const { getReports:
|
|
103
|
+
const { getReports: G, getOverviewReport: K, getReportConfig: N } = E, { getSchema: P } = ce(), { fetchSchedules: q } = L, { init: H } = le(), _ = z("v5");
|
|
104
104
|
return f(
|
|
105
105
|
() => t.value,
|
|
106
106
|
() => {
|
|
107
107
|
t.value !== "" && A(async () => {
|
|
108
|
-
await
|
|
109
|
-
apiKey: "
|
|
108
|
+
await H({
|
|
109
|
+
apiKey: "MaGoXrEWuEJNpWgKTqseee",
|
|
110
110
|
url: "https://flag.feedme.farm/api/v1/",
|
|
111
111
|
enableAnalytics: !1,
|
|
112
112
|
cacheFlags: !1
|
|
113
113
|
});
|
|
114
|
-
const o = await
|
|
114
|
+
const o = await N();
|
|
115
115
|
_.value = o.version, s.value = _.value, await Promise.all([
|
|
116
116
|
h(),
|
|
117
|
-
|
|
118
|
-
H(),
|
|
119
|
-
P(),
|
|
117
|
+
N(),
|
|
120
118
|
K(),
|
|
121
|
-
|
|
119
|
+
G(),
|
|
120
|
+
P(),
|
|
121
|
+
q(),
|
|
122
122
|
g(),
|
|
123
123
|
v(),
|
|
124
|
-
|
|
124
|
+
j()
|
|
125
125
|
]);
|
|
126
126
|
});
|
|
127
127
|
},
|
|
@@ -129,7 +129,7 @@ const ge = ["src"], he = ["src"], Fe = /* @__PURE__ */ O({
|
|
|
129
129
|
immediate: !0
|
|
130
130
|
}
|
|
131
131
|
), pe(), (o, e) => {
|
|
132
|
-
const
|
|
132
|
+
const Q = b("router-view");
|
|
133
133
|
return c(), w(ee, null, [
|
|
134
134
|
k(fe),
|
|
135
135
|
r(s) === "v3" ? (c(), w("iframe", {
|
|
@@ -139,8 +139,8 @@ const ge = ["src"], he = ["src"], Fe = /* @__PURE__ */ O({
|
|
|
139
139
|
}, null, 8, ge)) : r(s) === "v4" ? (c(), w("iframe", {
|
|
140
140
|
key: 1,
|
|
141
141
|
class: "bg-white h-full w-full",
|
|
142
|
-
src:
|
|
143
|
-
}, null, 8, he)) : (c(), I(
|
|
142
|
+
src: W.value
|
|
143
|
+
}, null, 8, he)) : (c(), I(Q, { key: 2 }))
|
|
144
144
|
], 64);
|
|
145
145
|
};
|
|
146
146
|
}
|
|
@@ -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,
|
|
3
|
-
import { b as V } from "./index-
|
|
2
|
+
import { d as n, J as O, C as B } from "./global-loader-BQlMgPFO.js";
|
|
3
|
+
import { b as V } from "./index-Dw6wKcLo.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",
|
|
@@ -45,7 +45,7 @@ const Y = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitesp
|
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
}), N = { class: "flex gap-2 items-center" }, i = "YYYY-MM-DD",
|
|
48
|
+
}), N = { class: "flex gap-2 items-center" }, i = "YYYY-MM-DD", J = /* @__PURE__ */ F({
|
|
49
49
|
__name: "DateRangeSelect",
|
|
50
50
|
props: /* @__PURE__ */ T({
|
|
51
51
|
compare: {
|
|
@@ -157,6 +157,6 @@ const Y = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitesp
|
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
export {
|
|
160
|
-
|
|
160
|
+
J as _,
|
|
161
161
|
k as a
|
|
162
162
|
};
|
|
@@ -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-D1VWyu4i.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 "./global-loader-
|
|
5
|
+
import { u as q, f as w } from "./global-loader-BQlMgPFO.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 ee, useModel as te, ref as u, resolveComponent as V, createElementBlock as H, openBlock as E, Fragment as le, renderSlot as de, createVNode as $, normalizeStyle as oe, unref as n, createElementVNode as B, toDisplayString as xe, withCtx as N, createBlock as O, createCommentVNode as ue, normalizeClass as Ve, h as nt, watch as ge, nextTick as st, renderList as dt, mergeModels as mt, createTextVNode as Wt, onMounted as Ht, onUnmounted as qt, resolveDynamicComponent as Mt, withDirectives as Nt, vShow as It } from "vue";
|
|
2
|
-
import { W as y, v as ze, P as We, d as ht, R as Se, g as Ot, q as Ut } from "./v4-
|
|
3
|
-
import { u as Pe, b as Xe, a as Ye } from "./global-loader-
|
|
4
|
-
import { d as rt } from "./index-
|
|
2
|
+
import { W as y, v as ze, P as We, d as ht, R as Se, g as Ot, q as Ut } from "./v4-CLzZSDqm.js";
|
|
3
|
+
import { u as Pe, b as Xe, a as Ye } from "./global-loader-BQlMgPFO.js";
|
|
4
|
+
import { d as rt } from "./index-Dw6wKcLo.js";
|
|
5
5
|
import { storeToRefs as _e, defineStore as Xt } from "pinia";
|
|
6
6
|
import { _ as Yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
import { r as ve } from "./i18n-Cif1I9J2.js";
|
|
8
|
-
import { _ as it } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as it } from "./NoData.vue_vue_type_script_setup_true_lang-C10GhV_H.js";
|
|
9
9
|
import { components as Gt, useSnackbar as pt, useBreakpoints as jt } from "@feedmepos/ui-library";
|
|
10
10
|
var qe = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(qe || {}), Q = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(Q || {}), Me = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(Me || {}), Ne = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Ne || {}), Ie = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(Ie || {}), Oe = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Oe || {}), Ue = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Ue || {});
|
|
11
11
|
y.Circular, y.Table, y.BarChart, y.LineChart, y.StackBarChart, y.StackLineChart, y.Scorecard, y.Spacer;
|
|
@@ -2,14 +2,14 @@ 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, b as oa } from "./global-loader-
|
|
5
|
+
import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-CwNa_c74.js";
|
|
6
|
+
import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-2O6NpHjE.js";
|
|
7
|
+
import { d as Bi, a as Kn, h as qn, F as Gn, u as Zn, b as oa } from "./global-loader-BQlMgPFO.js";
|
|
8
8
|
import { storeToRefs as Jn } from "pinia";
|
|
9
9
|
import { components as is, useSnackbar as aa } from "@feedmepos/ui-library";
|
|
10
|
-
import { c as ys } from "./index-
|
|
11
|
-
import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { c as ys } from "./index-Dw6wKcLo.js";
|
|
11
|
+
import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-C10GhV_H.js";
|
|
12
|
+
import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-D1VWyu4i.js";
|
|
13
13
|
import { useCoreStore as ha } from "@feedmepos/mf-common";
|
|
14
14
|
function da({ start: i, end: t }) {
|
|
15
15
|
return `${Bi(t).format("DD MMM")}, ${Bi(t).format("YYYY")}`;
|