@feedmepos/mf-report 5.4.10 → 5.4.11-beta.1
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-l9-AIgGC.js → App-lTSlttIs.js} +30 -30
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-MQNSV-xg.js → BaseDialog.vue_vue_type_script_setup_true_lang-DTNiGKgd.js} +5 -5
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-pLx3gB7Y.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CpiR4ObD.js} +24 -24
- package/dist/{Default.vue_vue_type_script_setup_true_lang-6z-rDLAm.js → Default.vue_vue_type_script_setup_true_lang-O5pTYzeO.js} +3 -3
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-wk_7JBQt.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BX6t3E1_.js} +174 -174
- package/dist/{HeaderTab.vue_vue_type_script_setup_true_lang--56TBWoS.js → HeaderTab.vue_vue_type_script_setup_true_lang-B5VBDNwX.js} +2 -2
- package/dist/{InsightView-QYiA8VPh.js → InsightView-BKPb4eXr.js} +741 -748
- package/dist/Integration-Dg8PYOrr.js +3532 -0
- package/dist/{Integrations-drS5pVEz.js → Integrations-B-1-XM7e.js} +7 -7
- package/dist/{Layout-beXOCcj2.js → Layout-DuV2UlIx.js} +3 -3
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-PJJaEOeS.js → LocationSelect.vue_vue_type_script_setup_true_lang-B3GeSJ17.js} +2164 -2172
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-UHwO2Vm5.js → MenuTab.vue_vue_type_script_setup_true_lang-CRCXKFqR.js} +11 -11
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-oDUn7q2N.js → NavigationTab.vue_vue_type_script_setup_true_lang-BOzS5kmU.js} +5984 -6896
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-FeKqFs4A.js → NoData.vue_vue_type_script_setup_true_lang-DlBNFLa3.js} +2 -2
- package/dist/{OverviewView-a3koQzOA.js → OverviewView-CwwKc59T.js} +6 -6
- package/dist/{Report-MwiIS485.js → Report-Bn0P0s9e.js} +12 -12
- package/dist/{ReportEditor-No44W2rc.js → ReportEditor-CgshKNy_.js} +24 -25
- package/dist/{ReportView-56kYGNi3.js → ReportView-DVSSD2in.js} +9 -9
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-6i3u0Axg.js → SelectComponent.vue_vue_type_script_setup_true_lang-DBI9op0g.js} +5 -5
- package/dist/{Setting--5MpVe0G.js → Setting-Tc7ZNiMW.js} +13 -13
- package/dist/{TileEditor-ONU3PGEO.js → TileEditor-DUtw3SpA.js} +331 -335
- package/dist/{TransitionFade-3h6lt6AM.js → TransitionFade-CgGZeuV3.js} +107 -121
- package/dist/{XeroRedirect-sLBv-Aqc.js → XeroRedirect-CuTrP62C.js} +2 -2
- package/dist/app.js +12 -12
- package/dist/{global-loader-hSpvBPX1.js → global-loader-D0HoIQuN.js} +1905 -1690
- package/dist/{index-JAqUtp7I.js → index-CoXjL8fr.js} +1 -1
- package/dist/{report-schema-IBXDBT4U.js → report-schema-ZDNzst0e.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{timeFormat-yx3JOmGm.js → timeFormat-LsHi_wa0.js} +1 -1
- package/dist/{v4-OYfvC92C.js → v4-DILqksya.js} +21 -38
- package/package.json +1 -1
- package/dist/Integration-YTGIj4Ae.js +0 -2587
- /package/dist/{_plugin-vue_export-helper-hUChTQA_.js → _plugin-vue_export-helper-CHgC5LLL.js} +0 -0
- /package/dist/{message-dialog-yXvmoAPz.js → message-dialog-UoMWOnil.js} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as N, resolveComponent as w, createBlock as U, openBlock as c, unref as u, isRef as H, withCtx as _, createElementVNode as R, createVNode as k, toDisplayString as V, createTextVNode as Q, computed as q, watch as y, onBeforeMount as X, onMounted as j, onBeforeUnmount as z, ref as Y, createElementBlock as S, Fragment as Z } from "vue";
|
|
2
2
|
import { useCoreStore as h } from "@feedmepos/mf-common";
|
|
3
|
-
import { u as M, a as ee, b as te, c as oe, d as re, e as ne } from "./global-loader-
|
|
3
|
+
import { u as M, a as ee, b as te, c as oe, d as re, e as ne } from "./global-loader-D0HoIQuN.js";
|
|
4
4
|
import { storeToRefs as b } from "pinia";
|
|
5
|
-
import { u as se, a as ae } from "./v4-
|
|
6
|
-
import { u as ue } from "./report-schema-
|
|
7
|
-
import { _ as le, u as ie } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { u as L } from "./message-dialog-
|
|
5
|
+
import { u as se, a as ae } from "./v4-DILqksya.js";
|
|
6
|
+
import { u as ue } from "./report-schema-ZDNzst0e.js";
|
|
7
|
+
import { _ as le, u as ie } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BOzS5kmU.js";
|
|
8
|
+
import { u as L } from "./message-dialog-UoMWOnil.js";
|
|
9
9
|
import { useRoute as ce } from "vue-router";
|
|
10
|
-
const me = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, de = /* @__PURE__ */
|
|
10
|
+
const me = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, de = /* @__PURE__ */ N({
|
|
11
11
|
__name: "Dialog",
|
|
12
|
-
setup(
|
|
12
|
+
setup(x) {
|
|
13
13
|
const o = L(), { isOpened: r, message: l, title: i } = b(L());
|
|
14
14
|
return (m, n) => {
|
|
15
15
|
const d = w("FmButton"), f = w("FmDialog");
|
|
16
|
-
return c(),
|
|
16
|
+
return c(), U(f, {
|
|
17
17
|
modelValue: u(r),
|
|
18
|
-
"onUpdate:modelValue": n[0] || (n[0] = (p) =>
|
|
18
|
+
"onUpdate:modelValue": n[0] || (n[0] = (p) => H(r) ? r.value = p : null),
|
|
19
19
|
overlay: "",
|
|
20
20
|
"close-button": !1
|
|
21
21
|
}, {
|
|
@@ -23,10 +23,10 @@ const me = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, de
|
|
|
23
23
|
Q(V(u(i)), 1)
|
|
24
24
|
]),
|
|
25
25
|
default: _(() => [
|
|
26
|
-
|
|
26
|
+
R("p", me, V(u(l)), 1)
|
|
27
27
|
]),
|
|
28
28
|
"dialog-footer": _(() => [
|
|
29
|
-
n[1] || (n[1] =
|
|
29
|
+
n[1] || (n[1] = R("div", { class: "grow" }, null, -1)),
|
|
30
30
|
k(d, {
|
|
31
31
|
label: "Cancel",
|
|
32
32
|
variant: "tertiary",
|
|
@@ -41,10 +41,10 @@ const me = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, de
|
|
|
41
41
|
}, 8, ["modelValue"]);
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
}), ve = ["src"], fe = ["src"], Ce = /* @__PURE__ */
|
|
44
|
+
}), ve = ["src"], fe = ["src"], Ce = /* @__PURE__ */ N({
|
|
45
45
|
__name: "App",
|
|
46
|
-
setup(
|
|
47
|
-
const { businessId: o, token: r, country: l } = b(M()), { sessionUser: i, currentBusiness: m, currentCountry: n, registerSidebarComponent: d } = h(), { getRestaurantAndWarehouse: f, getBusinessSetting: p } = ee(), { getFeatureFlags:
|
|
46
|
+
setup(x) {
|
|
47
|
+
const { businessId: o, token: r, country: l } = b(M()), { sessionUser: i, currentBusiness: m, currentCountry: n, registerSidebarComponent: d } = h(), { getRestaurantAndWarehouse: f, getBusinessSetting: p } = ee(), { getFeatureFlags: D } = te(), { version: s } = b(se()), { getSettings: I } = oe(), a = ce(), { promptLoader: O } = re(), T = q(() => `https://portal-v1.feedmedev.cc/b/${o.value}/report/CLOSE_UP?showHeader=false&country=${l.value.toUpperCase()}&menuOption=business-report&token=${r.value}&v2=true&reportV5Button=true`), A = q(() => `https://report-v4.feedmedev.cc?businessId=${o.value}&country=${l.value}&token=${r.value}&reportV3Button=true`);
|
|
48
48
|
y(
|
|
49
49
|
// if route query pass in the detail we switch accordingly
|
|
50
50
|
[() => a.query, () => m.value, () => i.value],
|
|
@@ -74,37 +74,37 @@ const me = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, de
|
|
|
74
74
|
}
|
|
75
75
|
y(s, () => {
|
|
76
76
|
["v3", "v4"].includes(s.value) ? h().hideSidebarToggle(!0) : h().hideSidebarToggle(!1);
|
|
77
|
-
}),
|
|
77
|
+
}), X(() => {
|
|
78
78
|
d(le);
|
|
79
|
-
}),
|
|
80
|
-
console.log("5.4.
|
|
79
|
+
}), j(() => {
|
|
80
|
+
console.log("5.4.11-beta.1", !0), window.addEventListener("message", C), window.addEventListener("message", $);
|
|
81
81
|
});
|
|
82
82
|
const F = ae(), B = ie();
|
|
83
|
-
|
|
83
|
+
z(() => {
|
|
84
84
|
window.removeEventListener("message", C), window.removeEventListener("message", $), F.$dispose(), B.$dispose();
|
|
85
85
|
});
|
|
86
|
-
const { getReports: J, getOverviewReport:
|
|
86
|
+
const { getReports: J, getOverviewReport: W, getReportConfig: E } = F, { getSchema: G } = ue(), { fetchSchedules: K } = B, { init: P } = ne(), g = Y("v5");
|
|
87
87
|
return y(
|
|
88
88
|
() => o.value,
|
|
89
89
|
() => {
|
|
90
90
|
o.value !== "" && O(async () => {
|
|
91
|
-
await
|
|
92
|
-
apiKey: "
|
|
91
|
+
await P({
|
|
92
|
+
apiKey: "MaGoXrEWuEJNpWgKTqseee",
|
|
93
93
|
url: "https://flag.feedme.farm/api/v1/",
|
|
94
94
|
enableAnalytics: !1,
|
|
95
95
|
cacheFlags: !1
|
|
96
96
|
});
|
|
97
|
-
const t = await
|
|
97
|
+
const t = await E();
|
|
98
98
|
g.value = t.version, s.value = g.value, await Promise.all([
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
D(),
|
|
100
|
+
E(),
|
|
101
|
+
W(),
|
|
102
102
|
J(),
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
G(),
|
|
104
|
+
K(),
|
|
105
105
|
p(),
|
|
106
106
|
f(),
|
|
107
|
-
|
|
107
|
+
I()
|
|
108
108
|
]);
|
|
109
109
|
});
|
|
110
110
|
},
|
|
@@ -123,7 +123,7 @@ const me = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, de
|
|
|
123
123
|
key: 1,
|
|
124
124
|
class: "bg-white h-full w-full",
|
|
125
125
|
src: A.value
|
|
126
|
-
}, null, 8, fe)) : (c(),
|
|
126
|
+
}, null, 8, fe)) : (c(), U(v, { key: 2 }))
|
|
127
127
|
], 64);
|
|
128
128
|
};
|
|
129
129
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, mergeModels as i, useModel as c, watch as v, resolveComponent as d,
|
|
1
|
+
import { defineComponent as y, mergeModels as i, useModel as c, watch as v, resolveComponent as d, createBlock as g, openBlock as b, withCtx as n, createElementVNode as B, createVNode as m, renderSlot as V, createTextVNode as C, toDisplayString as w } from "vue";
|
|
2
2
|
const k = /* @__PURE__ */ y({
|
|
3
3
|
__name: "BaseDialog",
|
|
4
4
|
props: /* @__PURE__ */ i({
|
|
@@ -25,19 +25,19 @@ const k = /* @__PURE__ */ y({
|
|
|
25
25
|
t.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
|
|
26
26
|
}), (p, e) => {
|
|
27
27
|
const r = d("FmButton"), f = d("FmDialog");
|
|
28
|
-
return
|
|
28
|
+
return b(), g(f, {
|
|
29
29
|
modelValue: t.value,
|
|
30
30
|
"onUpdate:modelValue": e[2] || (e[2] = (l) => t.value = l),
|
|
31
31
|
overlay: ""
|
|
32
32
|
}, {
|
|
33
33
|
"dialog-header": n(() => [
|
|
34
|
-
|
|
34
|
+
C(w(o.title), 1)
|
|
35
35
|
]),
|
|
36
36
|
default: n(() => [
|
|
37
|
-
|
|
37
|
+
V(p.$slots, "content")
|
|
38
38
|
]),
|
|
39
39
|
"dialog-footer": n(() => [
|
|
40
|
-
e[3] || (e[3] =
|
|
40
|
+
e[3] || (e[3] = B("div", { class: "grow" }, null, -1)),
|
|
41
41
|
m(r, {
|
|
42
42
|
label: o.secondaryButtonLabel,
|
|
43
43
|
variant: "tertiary",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as k, resolveComponent as f,
|
|
2
|
-
import {
|
|
3
|
-
import { b as w } from "./index-
|
|
1
|
+
import { defineComponent as k, resolveComponent as f, createBlock as s, openBlock as d, withCtx as g, createCommentVNode as D, createElementVNode as _, renderSlot as x, toDisplayString as M, mergeModels as P, useModel as i, ref as h, watch as C, createElementBlock as T, createVNode as p, unref as I } from "vue";
|
|
2
|
+
import { f as n, y as O, C as $ } from "./global-loader-D0HoIQuN.js";
|
|
3
|
+
import { b as w } from "./index-CoXjL8fr.js";
|
|
4
4
|
const B = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, V = /* @__PURE__ */ k({
|
|
5
5
|
__name: "FilterChip",
|
|
6
6
|
props: {
|
|
@@ -18,31 +18,31 @@ const B = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitesp
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
setup(a) {
|
|
21
|
-
const
|
|
22
|
-
return (r,
|
|
21
|
+
const o = a;
|
|
22
|
+
return (r, l) => {
|
|
23
23
|
const e = f("FmIcon"), t = f("FmChip");
|
|
24
|
-
return d(),
|
|
24
|
+
return d(), s(t, { class: "bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400 max-w-fit" }, {
|
|
25
25
|
default: g(() => [
|
|
26
|
-
a.leftIcon ? (d(),
|
|
26
|
+
a.leftIcon ? (d(), s(e, {
|
|
27
27
|
key: 0,
|
|
28
|
-
name:
|
|
28
|
+
name: o.leftIcon,
|
|
29
29
|
size: "sm",
|
|
30
30
|
outline: ""
|
|
31
31
|
}, null, 8, ["name"])) : D("", !0),
|
|
32
|
-
_("p", B,
|
|
33
|
-
a.rightIcon ? (d(),
|
|
32
|
+
_("p", B, M(o.label), 1),
|
|
33
|
+
a.rightIcon ? (d(), s(e, {
|
|
34
34
|
key: 1,
|
|
35
35
|
name: a.rightIcon,
|
|
36
36
|
size: "sm",
|
|
37
37
|
outline: ""
|
|
38
38
|
}, null, 8, ["name"])) : D("", !0),
|
|
39
|
-
|
|
39
|
+
x(r.$slots, "default")
|
|
40
40
|
]),
|
|
41
41
|
_: 3
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
}), Y = { class: "flex gap-2 items-center" },
|
|
45
|
+
}), Y = { class: "flex gap-2 items-center" }, m = "YYYY-MM-DD", E = /* @__PURE__ */ k({
|
|
46
46
|
__name: "DateRangeSelect",
|
|
47
47
|
props: /* @__PURE__ */ P({
|
|
48
48
|
compare: {
|
|
@@ -79,12 +79,12 @@ const B = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitesp
|
|
|
79
79
|
emits: ["update:compareType", "update:dateRange", "update:compareDateRange"],
|
|
80
80
|
setup(a) {
|
|
81
81
|
var v, y, S;
|
|
82
|
-
const
|
|
83
|
-
startDate: (v = n(r.value.startDate)) == null ? void 0 : v.local().format(
|
|
84
|
-
endDate: (y = n(r.value.endDate)) == null ? void 0 : y.local().format(
|
|
82
|
+
const o = i(a, "compareType"), r = i(a, "dateRange"), l = i(a, "compareDateRange"), e = h({
|
|
83
|
+
startDate: (v = n(r.value.startDate)) == null ? void 0 : v.local().format(m),
|
|
84
|
+
endDate: (y = n(r.value.endDate)) == null ? void 0 : y.local().format(m)
|
|
85
85
|
}), t = h({
|
|
86
|
-
startDate:
|
|
87
|
-
endDate:
|
|
86
|
+
startDate: l.value.startDate ? (S = n(l.value.startDate)) == null ? void 0 : S.local().format(m) : void 0,
|
|
87
|
+
endDate: l.value.endDate ? n(l.value.endDate).local().format(m) : void 0
|
|
88
88
|
});
|
|
89
89
|
C([() => e.value], () => {
|
|
90
90
|
r.value = {
|
|
@@ -92,20 +92,20 @@ const B = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitesp
|
|
|
92
92
|
endDate: n(e.value.endDate).toISOString()
|
|
93
93
|
};
|
|
94
94
|
}), C([() => t.value], () => {
|
|
95
|
-
|
|
95
|
+
l.value = {
|
|
96
96
|
startDate: t.value.startDate ? n(t.value.startDate).toISOString() : void 0,
|
|
97
97
|
endDate: t.value.endDate ? n(t.value.endDate).toISOString() : void 0
|
|
98
98
|
};
|
|
99
99
|
});
|
|
100
100
|
function F(R) {
|
|
101
|
-
|
|
101
|
+
o.value = R;
|
|
102
102
|
}
|
|
103
|
-
return (R,
|
|
103
|
+
return (R, u) => {
|
|
104
104
|
const b = f("FmSimpleDateRangePicker");
|
|
105
105
|
return d(), T("div", Y, [
|
|
106
106
|
p(b, {
|
|
107
107
|
modelValue: e.value,
|
|
108
|
-
"onUpdate:modelValue":
|
|
108
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c),
|
|
109
109
|
"show-predefined-range": "",
|
|
110
110
|
"predefined-range": a.datePredefinedRanges,
|
|
111
111
|
class: "w-2/6"
|
|
@@ -121,13 +121,13 @@ const B = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitesp
|
|
|
121
121
|
]),
|
|
122
122
|
_: 1
|
|
123
123
|
}, 8, ["modelValue", "predefined-range"]),
|
|
124
|
-
a.compare ? (d(),
|
|
124
|
+
a.compare ? (d(), s(b, {
|
|
125
125
|
key: 0,
|
|
126
126
|
modelValue: t.value,
|
|
127
|
-
"onUpdate:modelValue":
|
|
127
|
+
"onUpdate:modelValue": u[1] || (u[1] = (c) => t.value = c),
|
|
128
128
|
"show-predefined-range": "",
|
|
129
129
|
"compare-target": e.value,
|
|
130
|
-
"default-compare-type":
|
|
130
|
+
"default-compare-type": o.value,
|
|
131
131
|
onSelectComparison: F
|
|
132
132
|
}, {
|
|
133
133
|
"trigger-button": g(() => [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as u, computed as f, resolveComponent as p, openBlock as r,
|
|
2
|
-
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as u, computed as f, resolveComponent as p, createElementBlock as s, openBlock as r, normalizeStyle as n, normalizeClass as d, unref as e, createBlock as y, createCommentVNode as _, createVNode as k, createElementVNode as x, renderSlot as g } from "vue";
|
|
2
|
+
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BOzS5kmU.js";
|
|
3
3
|
import { useBreakpoints as h } from "@feedmepos/ui-library";
|
|
4
4
|
import { storeToRefs as b } from "pinia";
|
|
5
|
-
import { d as w } from "./global-loader-
|
|
5
|
+
import { d as w } from "./global-loader-D0HoIQuN.js";
|
|
6
6
|
import { useRoute as q } from "vue-router";
|
|
7
7
|
const C = {
|
|
8
8
|
key: 1,
|