@feedmepos/mf-report 5.17.2-beta.0 → 5.17.2
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-CCMB5F5s.js → App-TPSmRbTz.js} +22 -22
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang--feE505b.js → BaseDialog.vue_vue_type_script_setup_true_lang-BeWKNoOo.js} +1 -1
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-CLTU-OJV.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-DFm2vtXH.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-aU-RWg8s.js → Default.vue_vue_type_script_setup_true_lang-C6N5bIn6.js} +2 -2
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-ClFG10Ij.js → DynamicWidget.vue_vue_type_script_setup_true_lang-D-DQ4Ets.js} +5 -5
- package/dist/{InsightView-CxIUXHDd.js → InsightView-CezhWYhR.js} +5 -5
- package/dist/{Integration-DwkFaxGn.js → Integration-_wLDb-9j.js} +2 -2
- package/dist/{Integrations-CqMymn98.js → Integrations-BHmoWPpM.js} +3 -3
- package/dist/{Layout-CC3Dlb8-.js → Layout-BfsRaFIy.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BWRK27Mj.js → MenuTab.vue_vue_type_script_setup_true_lang-Crz_-uhb.js} +6 -6
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DQoTCQY1.js → NavigationTab.vue_vue_type_script_setup_true_lang-CZuYafYH.js} +5 -5
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-By5gQvZP.js → NoData.vue_vue_type_script_setup_true_lang-DMKNJeDr.js} +1 -1
- package/dist/{OverviewView-CbdKH1mF.js → OverviewView-Dnz01o92.js} +5 -5
- package/dist/{Report-tA_ozDS5.js → Report-eTyrF9uZ.js} +4 -4
- package/dist/{ReportEditor-CuIN3Qa0.js → ReportEditor-BOCSsbh6.js} +6 -6
- package/dist/{ReportView-Bk7L5AVp.js → ReportView-C8Fsn0gQ.js} +7 -7
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-eK4eP1Qy.js → SelectComponent.vue_vue_type_script_setup_true_lang-CCZo6blT.js} +1 -1
- package/dist/{Setting-DnkLL97I.js → Setting-BfOqE58k.js} +4 -4
- package/dist/{TileEditor-BmYof4DV.js → TileEditor-BybaFyW8.js} +7 -7
- package/dist/{TransitionFade-BclJ31aR.js → TransitionFade-BvHHBfkw.js} +5 -5
- package/dist/app.js +11 -11
- package/dist/{helper-bP_1beSH.js → helper-CT5WD6D6.js} +1 -1
- package/dist/{vue-i18n-BgRNnwPF.js → vue-i18n-Dre8K8BL.js} +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
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
|
|
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, s as le, g as ue } 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, s as le, g as ue } from "./vue-i18n-Dre8K8BL.js";
|
|
4
4
|
import { storeToRefs as $ } from "pinia";
|
|
5
|
-
import { u as ie, a as ce, b as me } from "./BaseDialog.vue_vue_type_script_setup_true_lang
|
|
6
|
-
import { _ as de, u as ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { u as ie, a as ce, b as me } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BeWKNoOo.js";
|
|
6
|
+
import { _ as de, u as ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CZuYafYH.js";
|
|
7
7
|
import { u as U } from "./message-dialog-UoMWOnil.js";
|
|
8
8
|
const fe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, pe = /* @__PURE__ */ O({
|
|
9
9
|
__name: "Dialog",
|
|
@@ -18,13 +18,13 @@ const fe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, pe
|
|
|
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", fe, 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",
|
|
@@ -61,7 +61,7 @@ C.locale(p() === "zh-CN" ? "zh-cn" : "en");
|
|
|
61
61
|
const he = ["src"], _e = ["src"], Fe = /* @__PURE__ */ O({
|
|
62
62
|
__name: "App",
|
|
63
63
|
setup(m) {
|
|
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 =
|
|
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
|
() => {
|
|
@@ -93,31 +93,31 @@ const he = ["src"], _e = ["src"], Fe = /* @__PURE__ */ O({
|
|
|
93
93
|
}), Z(() => {
|
|
94
94
|
l(de);
|
|
95
95
|
}), z(() => {
|
|
96
|
-
console.log("5.17.2
|
|
96
|
+
console.log("5.17.2", !0), window.addEventListener("message", F), window.addEventListener("message", B);
|
|
97
97
|
});
|
|
98
|
-
const
|
|
98
|
+
const L = ce(), R = ve();
|
|
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 } = me(), { fetchSchedules: Q } = R, { init: W } = 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 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
|
j()
|
|
@@ -128,7 +128,7 @@ const he = ["src"], _e = ["src"], Fe = /* @__PURE__ */ O({
|
|
|
128
128
|
immediate: !0
|
|
129
129
|
}
|
|
130
130
|
), ge(), (o, e) => {
|
|
131
|
-
const
|
|
131
|
+
const q = b("router-view");
|
|
132
132
|
return c(), w(ee, null, [
|
|
133
133
|
k(pe),
|
|
134
134
|
r(s) === "v3" ? (c(), w("iframe", {
|
|
@@ -138,8 +138,8 @@ const he = ["src"], _e = ["src"], Fe = /* @__PURE__ */ O({
|
|
|
138
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, _e)) : (c(), T(
|
|
141
|
+
src: G.value
|
|
142
|
+
}, null, 8, _e)) : (c(), T(q, { key: 2 }))
|
|
143
143
|
], 64);
|
|
144
144
|
};
|
|
145
145
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as B0, a as c0, F as Z, t as e0, b as R0, c as tu, o as ru, d as _0, e as fu, w as H0, r as N0, l as iu } from "./vue-i18n-
|
|
1
|
+
import { k as B0, a as c0, F as Z, t as e0, b as R0, c as tu, o as ru, d as _0, e as fu, w as H0, r as N0, l as iu } from "./vue-i18n-Dre8K8BL.js";
|
|
2
2
|
import { storeToRefs as X, defineStore as D0 } from "pinia";
|
|
3
3
|
import { ref as G, computed as m0, watch as q0, h as nu, defineComponent as bu, mergeModels as Q0, useModel as su, resolveComponent as G0, createBlock as lu, openBlock as ou, withCtx as v0, createElementVNode as _u, createVNode as V0, renderSlot as pu, createTextVNode as $u, toDisplayString as yu } from "vue";
|
|
4
4
|
import { useSnackbar as j0, components as gu } from "@feedmepos/ui-library";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as $, resolveComponent as S, createBlock as v, openBlock as c, withCtx as C, createCommentVNode as h, createElementVNode as x, toDisplayString as Y, renderSlot as j, mergeModels as T, useModel as R, ref as V, watch as k, createElementBlock as U, createVNode as b, unref as m } from "vue";
|
|
2
|
-
import { d as n, l as q, R as _, u as A, a as G, w as L, S as Q, C as H } from "./vue-i18n-
|
|
3
|
-
import { d as F } from "./helper-
|
|
2
|
+
import { d as n, l as q, R as _, u as A, a as G, w as L, S as Q, C as H } from "./vue-i18n-Dre8K8BL.js";
|
|
3
|
+
import { d as F } from "./helper-CT5WD6D6.js";
|
|
4
4
|
import { detectLocale as P } from "@feedmepos/mf-common";
|
|
5
5
|
import { storeToRefs as J } from "pinia";
|
|
6
6
|
const K = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, W = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, M = /* @__PURE__ */ $({
|
|
@@ -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-CZuYafYH.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-Dre8K8BL.js";
|
|
6
6
|
import { useRoute as B } from "vue-router";
|
|
7
7
|
const $ = {
|
|
8
8
|
key: 1,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { computed as y, defineComponent as ee, mergeModels as me, useModel as te, ref as h, onMounted as ke, nextTick as X, watch as J, resolveComponent as V, createElementBlock as N, openBlock as W, Fragment as oe, renderSlot as pe, createVNode as B, normalizeStyle as ne, unref as l, createElementVNode as P, toDisplayString as Le, withCtx as q, createBlock as U, createCommentVNode as he, normalizeClass as Pe, h as bt, renderList as kt, createTextVNode as Qt, onUnmounted as ea, resolveDynamicComponent as ta, withDirectives as aa, vShow as la } from "vue";
|
|
2
|
-
import { W as F, d as Ee, v as $e, e as Ye, f as _t, q as oa, R as xe, g as na } from "./BaseDialog.vue_vue_type_script_setup_true_lang
|
|
3
|
-
import { u as Me, b as at, a as lt } from "./vue-i18n-
|
|
4
|
-
import { a as wt } from "./helper-
|
|
2
|
+
import { W as F, d as Ee, v as $e, e as Ye, f as _t, q as oa, R as xe, g as na } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BeWKNoOo.js";
|
|
3
|
+
import { u as Me, b as at, a as lt } from "./vue-i18n-Dre8K8BL.js";
|
|
4
|
+
import { a as wt } from "./helper-CT5WD6D6.js";
|
|
5
5
|
import { storeToRefs as ze, defineStore as sa } from "pinia";
|
|
6
6
|
import { useBreakpoints as Tt, components as ra, useSnackbar as Rt } from "@feedmepos/ui-library";
|
|
7
|
-
import { a as ia } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { a as ia } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CCZo6blT.js";
|
|
8
8
|
import { r as Ce } from "./i18n-Cif1I9J2.js";
|
|
9
|
-
import { _ as xt } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as xt } from "./NoData.vue_vue_type_script_setup_true_lang-DMKNJeDr.js";
|
|
10
10
|
var Je = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(Je || {}), Z = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(Z || {}), Ke = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(Ke || {}), Ze = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Ze || {}), Qe = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(Qe || {}), et = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(et || {}), tt = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(tt || {});
|
|
11
11
|
F.Circular, F.Table, F.BarChart, F.LineChart, F.StackBarChart, F.StackLineChart, F.Scorecard, F.Spacer;
|
|
12
12
|
const ua = [
|
|
@@ -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, q as qn, F as Gn, u as Zn, h as ys, b as oa } from "./vue-i18n-
|
|
5
|
+
import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-C6N5bIn6.js";
|
|
6
|
+
import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DFm2vtXH.js";
|
|
7
|
+
import { d as Bi, a as Kn, q as qn, F as Gn, u as Zn, h as ys, b as oa } from "./vue-i18n-Dre8K8BL.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-DMKNJeDr.js";
|
|
11
|
+
import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CZuYafYH.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 Q, mergeModels as Se, useModel as W, computed as Y, resolveComponent as K, createElementBlock as P, openBlock as b, createElementVNode as t, createCommentVNode as O, normalizeClass as je, Fragment as xe, createBlock as M, withCtx as we, toDisplayString as C, renderList as Ce, createVNode as n, unref as r, normalizeStyle as Je, createTextVNode as Ze, ref as q, onUnmounted as Ae, watch as _e, isRef as $e, h as A, resolveDynamicComponent as Ve, mergeProps as Be, onMounted as qe } from "vue";
|
|
2
2
|
import { useRouter as ue, useRoute as et } from "vue-router";
|
|
3
|
-
import { u as J, I as ge, d as Me, v as tt, e as ke, f as De, b as fe, z as ot, n as at, y as Ke, A as Te, B as Fe, E as Ne, G as Ee, H as lt, J as nt, K as st, L as be, M as Oe, N as it, O as rt, P as dt, Q as mt } from "./vue-i18n-
|
|
3
|
+
import { u as J, I as ge, d as Me, v as tt, e as ke, f as De, b as fe, z as ot, n as at, y as Ke, A as Te, B as Fe, E as Ne, G as Ee, H as lt, J as nt, K as st, L as be, M as Oe, N as it, O as rt, P as dt, Q as mt } from "./vue-i18n-Dre8K8BL.js";
|
|
4
4
|
import { u as Ue } from "./message-dialog-UoMWOnil.js";
|
|
5
5
|
import { useSnackbar as ve } from "@feedmepos/ui-library";
|
|
6
6
|
import { storeToRefs as Ie } from "pinia";
|
|
7
|
-
import { _ as Pe } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as Pe } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DFm2vtXH.js";
|
|
8
8
|
const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, ct = { class: "w-[100%]" }, ut = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, ft = { class: "w-[100%] flex flex-row gap-[4px]" }, vt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, gt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, yt = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "w-[24px] flex items-center"
|