@feedmepos/mf-report 5.27.35 → 5.27.36
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-4_GHdc0c.js → App-CHT3iF-7.js} +4 -4
- package/dist/{DateRangeSelect-Cvxqh6KE.js → DateRangeSelect-D2772bgT.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-FvTBswXI.js → Default.vue_vue_type_script_setup_true_lang-CArSG8Z_.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-PhthswCX.js → DynamicWidget.vue_vue_type_script_setup_true_lang-RABMoQ3F.js} +949 -879
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CoI3PFYF.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DzZP-ANz.js} +3886 -3841
- package/dist/InsightView-KYbGpFKj.js +689 -0
- package/dist/{Integration-BmtzVBU8.js → Integration-CocbSCYz.js} +3 -3
- package/dist/{Integrations-FKTHYjkY.js → Integrations-DaKi0pnt.js} +2 -2
- package/dist/{Layout-Dn9c-gMi.js → Layout-p1hYeFa3.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-H1iroFEV.js → MenuTab.vue_vue_type_script_setup_true_lang-DG-9RjS_.js} +49 -46
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-cPTLcF06.js → NavigationTab.vue_vue_type_script_setup_true_lang-By2GxyK2.js} +3 -3
- package/dist/{OverviewView-DQs-PWBo.js → OverviewView-CfmhSHLj.js} +4 -4
- package/dist/{Report-gLUTNmHm.js → Report-tUyaWEtI.js} +3 -3
- package/dist/ReportEditor-BUXYZXMs.js +2032 -0
- package/dist/ReportView-BwrLb4jX.js +331 -0
- package/dist/{Setting-zldr38s7.js → Setting-DApgIt2e.js} +11 -11
- package/dist/{Template-nAGq9Il6.js → Template-Cte2kk4J.js} +3 -3
- package/dist/TileEditor-DPUludYa.js +4154 -0
- package/dist/TileGrid.vue_vue_type_script_setup_true_lang-CC-xGpBd.js +257 -0
- package/dist/{TransitionFade-Cq7jxuTO.js → TransitionFade-DszPGM-J.js} +4 -4
- package/dist/{app-L5Gs2RN0.js → app-CwM9HM2R.js} +3577 -3371
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-GhwszhPe.js → formatChartData.worker-Ci7ZpIYk.js} +6 -6
- package/dist/assets/{processTableData.worker-C4hgpe0l.js → processTableData.worker-C2Ubh_e0.js} +6 -6
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-D9GFgNLW.js → useRestaurantPermission-BQ0MKNOz.js} +1 -1
- package/package.json +2 -2
- package/dist/InsightView-D8Jpwge7.js +0 -664
- package/dist/ReportEditor-kp63cCQT.js +0 -1831
- package/dist/ReportView-0m23WbFa.js +0 -311
- package/dist/TileEditor-CcwBUuaS.js +0 -4093
- package/dist/TileGrid.vue_vue_type_script_setup_true_lang-707n8i-y.js +0 -154
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, resolveComponent as t, createBlock as r, openBlock as n, withCtx as _, createVNode as c } from "vue";
|
|
2
|
-
import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-CArSG8Z_.js";
|
|
3
3
|
const f = /* @__PURE__ */ o({
|
|
4
4
|
__name: "Layout",
|
|
5
5
|
setup(m) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as
|
|
1
|
+
import { defineComponent as S, computed as w, watch as A, createElementBlock as k, openBlock as d, createElementVNode as C, createVNode as p, unref as t, isRef as g, withCtx as y, useModel as E, resolveComponent as x, normalizeClass as B, createBlock as b, createCommentVNode as I, Fragment as L, renderList as j, toDisplayString as q } from "vue";
|
|
2
|
+
import { a as G, h as H, g as J, i as K, j as Q, k as M } from "./app-CwM9HM2R.js";
|
|
3
3
|
import { storeToRefs as F } from "pinia";
|
|
4
|
-
import { a as
|
|
5
|
-
import { D as
|
|
6
|
-
import { u as
|
|
7
|
-
import { useRoute as
|
|
8
|
-
import { useBreakpoints as
|
|
9
|
-
const
|
|
4
|
+
import { a as X } from "./NavigationTab.vue_vue_type_script_setup_true_lang-By2GxyK2.js";
|
|
5
|
+
import { D as Y } from "./DateRangeSelect-D2772bgT.js";
|
|
6
|
+
import { u as Z, b as h, _ as ee, c as te } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DzZP-ANz.js";
|
|
7
|
+
import { useRoute as ae } from "vue-router";
|
|
8
|
+
import { useBreakpoints as oe } from "@feedmepos/ui-library";
|
|
9
|
+
const ne = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrollbar-hide" }, le = { class: "flex flex-col gap-2 py-2" }, re = /* @__PURE__ */ S({
|
|
10
10
|
__name: "Filter",
|
|
11
11
|
setup(V) {
|
|
12
12
|
const {
|
|
@@ -17,16 +17,19 @@ const ae = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrol
|
|
|
17
17
|
timeRange: c,
|
|
18
18
|
defaultDateSetting: f,
|
|
19
19
|
selectTimeDefault: v,
|
|
20
|
-
timezone:
|
|
21
|
-
} = F(
|
|
22
|
-
|
|
20
|
+
timezone: u
|
|
21
|
+
} = F(G()), m = ae(), D = w(() => m.name === "overview"), $ = Z(), { currentReport: U, overviewReport: W } = F($), { globalFilters: P } = F(h()), { getReportAccessWindow: z, getPageAccessWindow: N } = H(), i = w(() => D.value ? W.value : U.value), R = w(() => D.value ? N(
|
|
22
|
+
J.report_accessOverview,
|
|
23
|
+
u.value
|
|
24
|
+
) : i.value ? z(i.value, u.value) : null), O = w(
|
|
25
|
+
() => K(Q(), R.value)
|
|
23
26
|
);
|
|
24
|
-
return
|
|
27
|
+
return A(
|
|
25
28
|
() => {
|
|
26
29
|
var a, e;
|
|
27
30
|
return {
|
|
28
|
-
reportId: (a =
|
|
29
|
-
filters: (e =
|
|
31
|
+
reportId: (a = i.value) == null ? void 0 : a.id,
|
|
32
|
+
filters: (e = i.value) == null ? void 0 : e.globalFilters
|
|
30
33
|
};
|
|
31
34
|
},
|
|
32
35
|
({ filters: a }) => {
|
|
@@ -36,31 +39,31 @@ const ae = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrol
|
|
|
36
39
|
}));
|
|
37
40
|
},
|
|
38
41
|
{ deep: !0, immediate: !0 }
|
|
39
|
-
),
|
|
42
|
+
), A(
|
|
40
43
|
[() => {
|
|
41
44
|
var a;
|
|
42
|
-
return (a =
|
|
43
|
-
},
|
|
45
|
+
return (a = i.value) == null ? void 0 : a.id;
|
|
46
|
+
}, R, n, o, u],
|
|
44
47
|
() => {
|
|
45
|
-
const a =
|
|
48
|
+
const a = R.value;
|
|
46
49
|
if (!a) return;
|
|
47
|
-
const e =
|
|
50
|
+
const e = M(
|
|
48
51
|
n.value,
|
|
49
52
|
a,
|
|
50
|
-
|
|
53
|
+
u.value
|
|
51
54
|
);
|
|
52
55
|
e && (e.startDate !== n.value.startDate || e.endDate !== n.value.endDate) && (n.value = e);
|
|
53
|
-
const l =
|
|
56
|
+
const l = M(
|
|
54
57
|
o.value,
|
|
55
58
|
a,
|
|
56
|
-
|
|
59
|
+
u.value
|
|
57
60
|
);
|
|
58
61
|
l && (l.startDate !== o.value.startDate || l.endDate !== o.value.endDate) && (o.value = l);
|
|
59
62
|
},
|
|
60
63
|
{ immediate: !0 }
|
|
61
|
-
), (a, e) => (d(), k("div",
|
|
62
|
-
C("div",
|
|
63
|
-
p(
|
|
64
|
+
), (a, e) => (d(), k("div", ne, [
|
|
65
|
+
C("div", le, [
|
|
66
|
+
p(X, {
|
|
64
67
|
modelValue: t(s),
|
|
65
68
|
"onUpdate:modelValue": e[5] || (e[5] = (l) => g(s) ? s.value = l : null),
|
|
66
69
|
options: t(_)
|
|
@@ -68,27 +71,27 @@ const ae = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrol
|
|
|
68
71
|
default: y(() => {
|
|
69
72
|
var l, T;
|
|
70
73
|
return [
|
|
71
|
-
p(
|
|
74
|
+
p(Y, {
|
|
72
75
|
"date-range": t(n),
|
|
73
76
|
"onUpdate:dateRange": e[0] || (e[0] = (r) => g(n) ? n.value = r : null),
|
|
74
77
|
"compare-date-range": t(o),
|
|
75
78
|
"onUpdate:compareDateRange": e[1] || (e[1] = (r) => g(o) ? o.value = r : null),
|
|
76
79
|
"compare-type": t(f).defaultCompareType,
|
|
77
80
|
"onUpdate:compareType": e[2] || (e[2] = (r) => t(f).defaultCompareType = r),
|
|
78
|
-
"date-predefined-ranges":
|
|
79
|
-
"min-date": (l =
|
|
81
|
+
"date-predefined-ranges": O.value,
|
|
82
|
+
"min-date": (l = R.value) == null ? void 0 : l.minDate,
|
|
80
83
|
compare: ""
|
|
81
84
|
}, null, 8, ["date-range", "compare-date-range", "compare-type", "date-predefined-ranges", "min-date"]),
|
|
82
|
-
p(
|
|
85
|
+
p(ee, {
|
|
83
86
|
"time-range": t(c),
|
|
84
87
|
"onUpdate:timeRange": e[3] || (e[3] = (r) => g(c) ? c.value = r : null),
|
|
85
88
|
"select-time-default": t(v),
|
|
86
89
|
"onUpdate:selectTimeDefault": e[4] || (e[4] = (r) => g(v) ? v.value = r : null),
|
|
87
90
|
"default-date-range": t(f).timeOptions
|
|
88
91
|
}, null, 8, ["time-range", "select-time-default", "default-date-range"]),
|
|
89
|
-
p(
|
|
90
|
-
"global-filter-id": (T =
|
|
91
|
-
report:
|
|
92
|
+
p(te, {
|
|
93
|
+
"global-filter-id": (T = i.value) == null ? void 0 : T.id,
|
|
94
|
+
report: i.value
|
|
92
95
|
}, null, 8, ["global-filter-id", "report"])
|
|
93
96
|
];
|
|
94
97
|
}),
|
|
@@ -97,7 +100,7 @@ const ae = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrol
|
|
|
97
100
|
])
|
|
98
101
|
]));
|
|
99
102
|
}
|
|
100
|
-
}),
|
|
103
|
+
}), se = { class: "fm-typo-en-body-md-400" }, ge = /* @__PURE__ */ S({
|
|
101
104
|
__name: "MenuTab",
|
|
102
105
|
props: {
|
|
103
106
|
modelValue: { required: !1, default: [] },
|
|
@@ -105,21 +108,21 @@ const ae = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrol
|
|
|
105
108
|
},
|
|
106
109
|
emits: ["update:modelValue"],
|
|
107
110
|
setup(V) {
|
|
108
|
-
const _ = E(V, "modelValue"), { breakpoints: s } =
|
|
111
|
+
const _ = E(V, "modelValue"), { breakpoints: s } = oe();
|
|
109
112
|
return (n, o) => {
|
|
110
|
-
const c = x("FmButton"), f = x("FmIcon"), v = x("FmMenuItem"),
|
|
113
|
+
const c = x("FmButton"), f = x("FmIcon"), v = x("FmMenuItem"), u = x("FmMenu");
|
|
111
114
|
return d(), k("div", {
|
|
112
115
|
"data-menu-tab": "true",
|
|
113
|
-
class:
|
|
116
|
+
class: B(["flex items-start pb-2 px-24", `${t(s).lg || t(s).md ? "px-24" : "pl-3"}`])
|
|
114
117
|
}, [
|
|
115
|
-
p(
|
|
118
|
+
p(re),
|
|
116
119
|
o[0] || (o[0] = C("div", { class: "flex grow" }, null, -1)),
|
|
117
|
-
_.value.length > 0 ? (d(),
|
|
120
|
+
_.value.length > 0 ? (d(), b(u, {
|
|
118
121
|
key: 0,
|
|
119
122
|
trigger: "click",
|
|
120
123
|
placement: "left",
|
|
121
124
|
shift: !0,
|
|
122
|
-
class:
|
|
125
|
+
class: B(t(s).sm || t(s).xs ? "pr-3" : "")
|
|
123
126
|
}, {
|
|
124
127
|
"menu-button": y(() => [
|
|
125
128
|
p(c, {
|
|
@@ -130,26 +133,26 @@ const ae = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrol
|
|
|
130
133
|
})
|
|
131
134
|
]),
|
|
132
135
|
default: y(() => [
|
|
133
|
-
(d(!0), k(L, null,
|
|
134
|
-
key: `button-${
|
|
136
|
+
(d(!0), k(L, null, j(_.value, (m, D) => (d(), b(v, {
|
|
137
|
+
key: `button-${D}`,
|
|
135
138
|
onClick: m.onClick
|
|
136
139
|
}, {
|
|
137
140
|
label: y(() => [
|
|
138
|
-
m.prependIcon ?? !1 ? (d(),
|
|
141
|
+
m.prependIcon ?? !1 ? (d(), b(f, {
|
|
139
142
|
key: 0,
|
|
140
143
|
name: m.icon
|
|
141
|
-
}, null, 8, ["name"])) :
|
|
142
|
-
C("p",
|
|
144
|
+
}, null, 8, ["name"])) : I("", !0),
|
|
145
|
+
C("p", se, q(m.label), 1)
|
|
143
146
|
]),
|
|
144
147
|
_: 2
|
|
145
148
|
}, 1032, ["onClick"]))), 128))
|
|
146
149
|
]),
|
|
147
150
|
_: 1
|
|
148
|
-
}, 8, ["class"])) :
|
|
151
|
+
}, 8, ["class"])) : I("", !0)
|
|
149
152
|
], 2);
|
|
150
153
|
};
|
|
151
154
|
}
|
|
152
155
|
});
|
|
153
156
|
export {
|
|
154
|
-
|
|
157
|
+
ge as _
|
|
155
158
|
};
|
|
@@ -4,12 +4,12 @@ var Dl = (e, r, t) => I5(e, typeof r != "symbol" ? r + "" : r, t);
|
|
|
4
4
|
import { defineComponent as tr, computed as Ge, useModel as Sn, ref as Fe, watch as Nr, resolveComponent as ge, createBlock as Ke, unref as V, openBlock as ae, withCtx as Ue, createElementVNode as K, createVNode as _, toDisplayString as Ne, withDirectives as Ii, createElementBlock as Pe, Fragment as gt, renderList as Xt, vShow as Qs, createTextVNode as _r, mergeModels as fi, createCommentVNode as at, normalizeClass as ci, onMounted as o0, withKeys as zh, withModifiers as ii, isRef as wa, vModelText as Xh, normalizeStyle as ac, renderSlot as Hh, mergeProps as F5, nextTick as V5, resolveDynamicComponent as Hu, createSlots as L5 } from "vue";
|
|
5
5
|
import { useRouter as qh, useRoute as Wh } from "vue-router";
|
|
6
6
|
import { storeToRefs as Lr, defineStore as f0 } from "pinia";
|
|
7
|
-
import { u as gs,
|
|
7
|
+
import { u as gs, N as kd, O as N5, A as ai, R as Wa, J as Ks, T as Gl, _ as c0, t as M5, y as R5, b as B5, U as z5, c as jh, B as X5, V as H5, X as wn, Y as q5 } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DzZP-ANz.js";
|
|
8
8
|
import { useBreakpoints as ko, components as Fi, useSnackbar as Xi, useDialog as W5, useDialogChild as j5, FmButtonVariant as xd } from "@feedmepos/ui-library";
|
|
9
9
|
import { u as ha, _ as Uh } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
10
10
|
import { a as Td } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
11
|
-
import { C as hr, g as U5, b as ti, e as Zh, _ as Z5, D as Yh, p as Y5 } from "./DateRangeSelect-
|
|
12
|
-
import { u as Za, F as Ya, m as fl, a as Hi, d as Ot, q as xo, n as Gh, o as G5, p as Q5, e as K5, t as Il, r as Qh, c as J5, v as _5 } from "./app-
|
|
11
|
+
import { C as hr, g as U5, b as ti, e as Zh, _ as Z5, D as Yh, p as Y5 } from "./DateRangeSelect-D2772bgT.js";
|
|
12
|
+
import { u as Za, F as Ya, m as fl, a as Hi, d as Ot, q as xo, n as Gh, o as G5, p as Q5, e as K5, t as Il, r as Qh, c as J5, v as _5 } from "./app-CwM9HM2R.js";
|
|
13
13
|
import { detectLocale as $5, useCoreStore as e8 } from "@feedmepos/mf-common";
|
|
14
14
|
const t8 = { class: "flex flex-col" }, r8 = { class: "fm-typo-en-title-sm-600" }, a8 = { class: "grow" }, n8 = { class: "flex flex-col gap-8" }, i8 = { class: "flex flex-col w-full" }, s8 = { class: "flex flex-col gap-5 p-6" }, l8 = { class: "flex" }, Cd = {
|
|
15
15
|
// sales: [
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as w, computed as l, resolveComponent as y, createBlock as p, openBlock as s, withCtx as k, createVNode as i, createElementVNode as c, unref as e, normalizeStyle as b, normalizeClass as d, createElementBlock as h } from "vue";
|
|
2
|
-
import { _ as I } from "./TileGrid.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as $, l as B } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as C } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as I } from "./TileGrid.vue_vue_type_script_setup_true_lang-CC-xGpBd.js";
|
|
3
|
+
import { u as $, l as B } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DzZP-ANz.js";
|
|
4
|
+
import { _ as C } from "./Default.vue_vue_type_script_setup_true_lang-CArSG8Z_.js";
|
|
5
5
|
import { storeToRefs as z } from "pinia";
|
|
6
6
|
import { _ as P } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
7
7
|
import { useBreakpoints as R } from "@feedmepos/ui-library";
|
|
8
|
-
import { _ as S } from "./MenuTab.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as S } from "./MenuTab.vue_vue_type_script_setup_true_lang-DG-9RjS_.js";
|
|
9
9
|
import { useI18n as V } from "@feedmepos/mf-common";
|
|
10
10
|
import { r as D } from "./i18n-CI_sQ5d_.js";
|
|
11
11
|
const E = { class: "sticky top-0 z-10 bg-white" }, M = /* @__PURE__ */ w({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as $e, ref as j, watch as pe, computed as b, h as p, withModifiers as De, resolveComponent as S, createBlock as G, openBlock as A, withCtx as m, createVNode as c, createElementVNode as w, unref as e, normalizeStyle as Ie, normalizeClass as k, withDirectives as H, createElementBlock as Fe, Fragment as Oe, renderList as Le, toDisplayString as J, createTextVNode as Pe, vShow as Q } from "vue";
|
|
2
2
|
import { storeToRefs as de } from "pinia";
|
|
3
|
-
import { u as Ne } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as Ve } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { u as Ne } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DzZP-ANz.js";
|
|
4
|
+
import { _ as Ve } from "./Default.vue_vue_type_script_setup_true_lang-CArSG8Z_.js";
|
|
5
5
|
import { u as Ae } from "./message-dialog-UoMWOnil.js";
|
|
6
6
|
import { a as Je } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
7
7
|
import { useSnackbar as ze, useBreakpoints as Be, components as Te, FmButtonColorThemeVariant as Ue } from "@feedmepos/ui-library";
|
|
8
8
|
import { _ as Ee } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
9
|
-
import { c as Ke, a as fe, h as Me } from "./app-
|
|
9
|
+
import { c as Ke, a as fe, h as Me } from "./app-CwM9HM2R.js";
|
|
10
10
|
import { useRouter as Ye, useRoute as qe, onBeforeRouteLeave as je } from "vue-router";
|
|
11
11
|
import { useI18n as Ge } from "@feedmepos/mf-common";
|
|
12
12
|
import { r as W } from "./i18n-CI_sQ5d_.js";
|