@feedmepos/mf-report 5.4.12 → 5.4.13-beta.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-BWbADWri.js → App-DPNfsf_I.js} +30 -30
- package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-DPuhMR6i.js +160 -0
- package/dist/{Default.vue_vue_type_script_setup_true_lang-BRVTZ-1Q.js → Default.vue_vue_type_script_setup_true_lang-DHCCdCwk.js} +2 -2
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-TzcBKr7X.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DVqkXuFU.js} +3 -3
- package/dist/{InsightView-NRDxXS5U.js → InsightView-ZOz4BbqV.js} +549 -553
- package/dist/{Integration-DSTAJ3fV.js → Integration-BAWQq8VO.js} +1135 -1122
- package/dist/{Integrations-DZI6I4ub.js → Integrations-WWnSho0Q.js} +1 -1
- package/dist/{Layout-D7kmXstx.js → Layout-D9SAlOjY.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-CMlV5upC.js → LocationSelect.vue_vue_type_script_setup_true_lang-DurYBXa5.js} +2 -2
- package/dist/MenuTab.vue_vue_type_script_setup_true_lang-CRAHJk3-.js +258 -0
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-kyCqqk9L.js → NavigationTab.vue_vue_type_script_setup_true_lang-COz3bREq.js} +2286 -2286
- package/dist/{OverviewView-BupHqLLi.js → OverviewView-BzaDodpK.js} +4 -4
- package/dist/{Report-dL5BLDI0.js → Report-aF704Gkp.js} +3 -3
- package/dist/{ReportEditor-C319jjGg.js → ReportEditor-TWQyn4cl.js} +4 -4
- package/dist/{ReportView-NecE73EB.js → ReportView-D1JSo1GP.js} +6 -6
- package/dist/{Setting-Za7nt43H.js → Setting-YpW4J2i0.js} +4 -4
- package/dist/{TileEditor-DeXdXeO8.js → TileEditor-Bt5t1rOk.js} +6 -6
- package/dist/{TransitionFade-FRNDa7rV.js → TransitionFade-ijtXaz1S.js} +4 -4
- package/dist/app.js +11 -11
- package/dist/{global-loader-BXUq_uOb.js → global-loader-CMC9fgBi.js} +573 -570
- package/dist/{index-D5LVkVbJ.js → index-SmIkb24L.js} +7 -7
- package/dist/{report-schema-Bf8XSI6U.js → report-schema-G0x3CoJb.js} +5 -5
- package/dist/style.css +1 -1
- package/dist/{timeFormat-GVzfkgtj.js → timeFormat-BF-F4Rnt.js} +1 -1
- package/dist/{v4-CDZkk94d.js → v4-Cb0oLva6.js} +1 -1
- package/package.json +1 -1
- package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-D7xFDtWS.js +0 -150
- package/dist/MenuTab.vue_vue_type_script_setup_true_lang-Qu5DHicC.js +0 -245
|
@@ -1,32 +1,32 @@
|
|
|
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-CMC9fgBi.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-
|
|
5
|
+
import { u as se, a as ae } from "./v4-Cb0oLva6.js";
|
|
6
|
+
import { u as ue } from "./report-schema-G0x3CoJb.js";
|
|
7
|
+
import { _ as le, u as ie } from "./NavigationTab.vue_vue_type_script_setup_true_lang-COz3bREq.js";
|
|
8
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
|
}, {
|
|
22
22
|
"dialog-header": _(() => [
|
|
23
|
-
Q(
|
|
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.13-beta.2", !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
|
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { defineComponent as V, resolveComponent as f, createBlock as s, openBlock as d, withCtx as D, createCommentVNode as g, createElementVNode as F, renderSlot as Y, toDisplayString as _, ref as v, mergeModels as x, useModel as i, watch as C, createElementBlock as P, createVNode as p, unref as I } from "vue";
|
|
2
|
+
import { g as n, y as T, C as $ } from "./global-loader-CMC9fgBi.js";
|
|
3
|
+
import { b as M } from "./index-SmIkb24L.js";
|
|
4
|
+
const O = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, w = /* @__PURE__ */ V({
|
|
5
|
+
__name: "FilterChip",
|
|
6
|
+
props: {
|
|
7
|
+
label: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: ""
|
|
10
|
+
},
|
|
11
|
+
leftIcon: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
rightIcon: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: ""
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
setup(t) {
|
|
21
|
+
const r = t;
|
|
22
|
+
return (l, o) => {
|
|
23
|
+
const e = f("FmIcon"), a = f("FmChip");
|
|
24
|
+
return d(), s(a, { class: "bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400 max-w-fit" }, {
|
|
25
|
+
default: D(() => [
|
|
26
|
+
t.leftIcon ? (d(), s(e, {
|
|
27
|
+
key: 0,
|
|
28
|
+
name: r.leftIcon,
|
|
29
|
+
size: "sm",
|
|
30
|
+
outline: ""
|
|
31
|
+
}, null, 8, ["name"])) : g("", !0),
|
|
32
|
+
F("p", O, _(r.label), 1),
|
|
33
|
+
t.rightIcon ? (d(), s(e, {
|
|
34
|
+
key: 1,
|
|
35
|
+
name: t.rightIcon,
|
|
36
|
+
size: "sm",
|
|
37
|
+
outline: ""
|
|
38
|
+
}, null, 8, ["name"])) : g("", !0),
|
|
39
|
+
Y(l.$slots, "default")
|
|
40
|
+
]),
|
|
41
|
+
_: 3
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
function E({ start: t, end: r }) {
|
|
47
|
+
return `${n(r).format("DD MMM")}, ${n(r).format("YYYY")}`;
|
|
48
|
+
}
|
|
49
|
+
v(!0);
|
|
50
|
+
const B = { class: "flex gap-2 items-center" }, m = "YYYY-MM-DD", U = /* @__PURE__ */ V({
|
|
51
|
+
__name: "DateRangeSelect",
|
|
52
|
+
props: /* @__PURE__ */ x({
|
|
53
|
+
compare: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: !1
|
|
56
|
+
},
|
|
57
|
+
datePredefinedRanges: {
|
|
58
|
+
type: Array,
|
|
59
|
+
default: () => T
|
|
60
|
+
}
|
|
61
|
+
}, {
|
|
62
|
+
compareType: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: $.PrecedingPeriod
|
|
65
|
+
},
|
|
66
|
+
compareTypeModifiers: {},
|
|
67
|
+
dateRange: {
|
|
68
|
+
type: Object,
|
|
69
|
+
default: () => ({
|
|
70
|
+
startDate: void 0,
|
|
71
|
+
endDate: void 0
|
|
72
|
+
})
|
|
73
|
+
},
|
|
74
|
+
dateRangeModifiers: {},
|
|
75
|
+
compareDateRange: {
|
|
76
|
+
type: Object,
|
|
77
|
+
default: () => ({
|
|
78
|
+
startDate: void 0,
|
|
79
|
+
endDate: void 0
|
|
80
|
+
})
|
|
81
|
+
},
|
|
82
|
+
compareDateRangeModifiers: {}
|
|
83
|
+
}),
|
|
84
|
+
emits: ["update:compareType", "update:dateRange", "update:compareDateRange"],
|
|
85
|
+
setup(t) {
|
|
86
|
+
var y, R, S;
|
|
87
|
+
const r = i(t, "compareType"), l = i(t, "dateRange"), o = i(t, "compareDateRange"), e = v({
|
|
88
|
+
startDate: (y = n(l.value.startDate)) == null ? void 0 : y.local().format(m),
|
|
89
|
+
endDate: (R = n(l.value.endDate)) == null ? void 0 : R.local().format(m)
|
|
90
|
+
}), a = v({
|
|
91
|
+
startDate: o.value.startDate ? (S = n(o.value.startDate)) == null ? void 0 : S.local().format(m) : void 0,
|
|
92
|
+
endDate: o.value.endDate ? n(o.value.endDate).local().format(m) : void 0
|
|
93
|
+
});
|
|
94
|
+
C(
|
|
95
|
+
[() => e.value],
|
|
96
|
+
() => {
|
|
97
|
+
e.value.endDate || (e.value.endDate = e.value.startDate), l.value = {
|
|
98
|
+
startDate: n(e.value.startDate).toISOString(),
|
|
99
|
+
endDate: n(e.value.endDate).toISOString()
|
|
100
|
+
};
|
|
101
|
+
},
|
|
102
|
+
{ deep: !0 }
|
|
103
|
+
), C([() => a.value], () => {
|
|
104
|
+
o.value = {
|
|
105
|
+
startDate: a.value.startDate ? n(a.value.startDate).toISOString() : void 0,
|
|
106
|
+
endDate: a.value.endDate ? n(a.value.endDate).toISOString() : void 0
|
|
107
|
+
};
|
|
108
|
+
});
|
|
109
|
+
function k(b) {
|
|
110
|
+
r.value = b;
|
|
111
|
+
}
|
|
112
|
+
return (b, u) => {
|
|
113
|
+
const h = f("FmSimpleDateRangePicker");
|
|
114
|
+
return d(), P("div", B, [
|
|
115
|
+
p(h, {
|
|
116
|
+
modelValue: e.value,
|
|
117
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c),
|
|
118
|
+
"show-predefined-range": "",
|
|
119
|
+
"predefined-range": t.datePredefinedRanges,
|
|
120
|
+
class: "w-2/6"
|
|
121
|
+
}, {
|
|
122
|
+
"trigger-button": D(() => [
|
|
123
|
+
p(w, {
|
|
124
|
+
"left-icon": "calendar_month",
|
|
125
|
+
label: `${I(M)({
|
|
126
|
+
startDate: e.value.startDate ?? "",
|
|
127
|
+
endDate: e.value.endDate ?? ""
|
|
128
|
+
})}`
|
|
129
|
+
}, null, 8, ["label"])
|
|
130
|
+
]),
|
|
131
|
+
_: 1
|
|
132
|
+
}, 8, ["modelValue", "predefined-range"]),
|
|
133
|
+
t.compare ? (d(), s(h, {
|
|
134
|
+
key: 0,
|
|
135
|
+
modelValue: a.value,
|
|
136
|
+
"onUpdate:modelValue": u[1] || (u[1] = (c) => a.value = c),
|
|
137
|
+
"show-predefined-range": "",
|
|
138
|
+
"compare-target": e.value,
|
|
139
|
+
"default-compare-type": r.value,
|
|
140
|
+
onSelectComparison: k
|
|
141
|
+
}, {
|
|
142
|
+
"trigger-button": D(() => [
|
|
143
|
+
p(w, {
|
|
144
|
+
label: `Compare: ${I(M)({
|
|
145
|
+
startDate: a.value.startDate ?? null,
|
|
146
|
+
endDate: a.value.endDate ?? null
|
|
147
|
+
})}`
|
|
148
|
+
}, null, 8, ["label"])
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
}, 8, ["modelValue", "compare-target", "default-compare-type"])) : g("", !0)
|
|
152
|
+
]);
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
export {
|
|
157
|
+
U as _,
|
|
158
|
+
w as a,
|
|
159
|
+
E as f
|
|
160
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
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-
|
|
2
|
+
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-COz3bREq.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-CMC9fgBi.js";
|
|
6
6
|
import { useRoute as q } from "vue-router";
|
|
7
7
|
const C = {
|
|
8
8
|
key: 1,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as E, useModel as z, computed as i, ref as D, resolveComponent as y, createElementBlock as S, openBlock as h, Fragment as W, renderSlot as U, createVNode as k, createElementVNode as C, toDisplayString as K, unref as q, withCtx as $, createBlock as R, createCommentVNode as G, normalizeClass as te, normalizeStyle as ye, h as ve, renderList as we, mergeModels as Ie, watch as ee, onMounted as Pe, onUnmounted as We, resolveDynamicComponent as Ee, withDirectives as ze, vShow as He } from "vue";
|
|
2
|
-
import { W as r, v as ae, R as Oe, g as qe, d as Ue, q as je } from "./v4-
|
|
3
|
-
import { a as _e, u as re } from "./global-loader-
|
|
4
|
-
import { d as he } from "./index-
|
|
2
|
+
import { W as r, v as ae, R as Oe, g as qe, d as Ue, q as je } from "./v4-Cb0oLva6.js";
|
|
3
|
+
import { a as _e, u as re } from "./global-loader-CMC9fgBi.js";
|
|
4
|
+
import { d as he } from "./index-SmIkb24L.js";
|
|
5
5
|
import { storeToRefs as se } from "pinia";
|
|
6
6
|
import { _ as Ge } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
import { _ as ge } from "./NoData.vue_vue_type_script_setup_true_lang-DlBNFLa3.js";
|