@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.
Files changed (32) hide show
  1. package/dist/{App-4_GHdc0c.js → App-CHT3iF-7.js} +4 -4
  2. package/dist/{DateRangeSelect-Cvxqh6KE.js → DateRangeSelect-D2772bgT.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-FvTBswXI.js → Default.vue_vue_type_script_setup_true_lang-CArSG8Z_.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-PhthswCX.js → DynamicWidget.vue_vue_type_script_setup_true_lang-RABMoQ3F.js} +949 -879
  5. 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
  6. package/dist/InsightView-KYbGpFKj.js +689 -0
  7. package/dist/{Integration-BmtzVBU8.js → Integration-CocbSCYz.js} +3 -3
  8. package/dist/{Integrations-FKTHYjkY.js → Integrations-DaKi0pnt.js} +2 -2
  9. package/dist/{Layout-Dn9c-gMi.js → Layout-p1hYeFa3.js} +1 -1
  10. 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
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-cPTLcF06.js → NavigationTab.vue_vue_type_script_setup_true_lang-By2GxyK2.js} +3 -3
  12. package/dist/{OverviewView-DQs-PWBo.js → OverviewView-CfmhSHLj.js} +4 -4
  13. package/dist/{Report-gLUTNmHm.js → Report-tUyaWEtI.js} +3 -3
  14. package/dist/ReportEditor-BUXYZXMs.js +2032 -0
  15. package/dist/ReportView-BwrLb4jX.js +331 -0
  16. package/dist/{Setting-zldr38s7.js → Setting-DApgIt2e.js} +11 -11
  17. package/dist/{Template-nAGq9Il6.js → Template-Cte2kk4J.js} +3 -3
  18. package/dist/TileEditor-DPUludYa.js +4154 -0
  19. package/dist/TileGrid.vue_vue_type_script_setup_true_lang-CC-xGpBd.js +257 -0
  20. package/dist/{TransitionFade-Cq7jxuTO.js → TransitionFade-DszPGM-J.js} +4 -4
  21. package/dist/{app-L5Gs2RN0.js → app-CwM9HM2R.js} +3577 -3371
  22. package/dist/app.js +1 -1
  23. package/dist/assets/{formatChartData.worker-GhwszhPe.js → formatChartData.worker-Ci7ZpIYk.js} +6 -6
  24. package/dist/assets/{processTableData.worker-C4hgpe0l.js → processTableData.worker-C2Ubh_e0.js} +6 -6
  25. package/dist/style.css +1 -1
  26. package/dist/{useRestaurantPermission-D9GFgNLW.js → useRestaurantPermission-BQ0MKNOz.js} +1 -1
  27. package/package.json +2 -2
  28. package/dist/InsightView-D8Jpwge7.js +0 -664
  29. package/dist/ReportEditor-kp63cCQT.js +0 -1831
  30. package/dist/ReportView-0m23WbFa.js +0 -311
  31. package/dist/TileEditor-CcwBUuaS.js +0 -4093
  32. package/dist/TileGrid.vue_vue_type_script_setup_true_lang-707n8i-y.js +0 -154
@@ -0,0 +1,257 @@
1
+ import { defineComponent as Q, reactive as G, resolveComponent as g, createElementBlock as d, openBlock as i, Fragment as v, renderList as L, createBlock as $, createCommentVNode as a, normalizeStyle as m, normalizeClass as u, withCtx as S, createVNode as p, createElementVNode as M, toDisplayString as w, mergeProps as R, createSlots as X, withDirectives as Y, vShow as Z } from "vue";
2
+ import { _ as ee, a as P, c as te, b as re, f as oe, t as ne } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-RABMoQ3F.js";
3
+ import { F as z, W as ie } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DzZP-ANz.js";
4
+ import { useBreakpoints as de } from "@feedmepos/ui-library";
5
+ const se = {
6
+ key: 0,
7
+ class: "px-16 pt-16 shrink-0"
8
+ }, ce = { class: "flex-1 min-h-0 overflow-y-auto" }, ae = {
9
+ key: 0,
10
+ class: "grid grid-cols-12"
11
+ }, ue = {
12
+ key: 0,
13
+ class: "px-16 pt-16"
14
+ }, le = { class: "grid grid-cols-12 max-h-full overflow-y-auto" }, he = /* @__PURE__ */ Q({
15
+ __name: "TileGrid",
16
+ props: {
17
+ tiles: {},
18
+ reportId: {},
19
+ leafIndexById: {},
20
+ hideExport: { type: Boolean },
21
+ customScreenWidth: {},
22
+ flat: { type: Boolean }
23
+ },
24
+ setup(H) {
25
+ const o = H, { breakpoints: I } = de();
26
+ function h(t) {
27
+ var n;
28
+ const r = ((n = t.size) == null ? void 0 : n.width) ?? 12;
29
+ return I.value.lg || I.value.md ? te(r) : I.value.sm ? re(r) : oe(r);
30
+ }
31
+ function k(t) {
32
+ return o.flat && t > 0 ? "border-t border-neutral-200" : "";
33
+ }
34
+ function F(t) {
35
+ var r;
36
+ if (!o.flat)
37
+ return { height: `${ne(((r = t.size) == null ? void 0 : r.height) ?? 6)}px` };
38
+ }
39
+ function _(t, r, n, l) {
40
+ return {
41
+ fontSize: t ? `${t}px` : void 0,
42
+ fontWeight: r ? "700" : void 0,
43
+ fontStyle: n ? "italic" : void 0,
44
+ textDecoration: l ? "underline" : void 0
45
+ };
46
+ }
47
+ const C = G({}), B = G({});
48
+ function K(t) {
49
+ var r;
50
+ if (t.tabIcon !== void 0) return t.tabIcon || void 0;
51
+ if (((r = t.widget) == null ? void 0 : r.type) === ie.Scorecard && t.widget.config.titleIcon !== "")
52
+ return t.widget.config.titleIcon;
53
+ }
54
+ function j(t) {
55
+ var r;
56
+ return t ? t.tabIcon !== void 0 ? t.tabIconSize ?? z.Small : ((r = t.widget) == null ? void 0 : r.config.titleIconSize) ?? z.Small : z.Small;
57
+ }
58
+ function q(t) {
59
+ var r;
60
+ if (t)
61
+ return t.tabIcon !== void 0 ? t.tabIconType : (r = t.widget) == null ? void 0 : r.config.titleIconType;
62
+ }
63
+ function A(t) {
64
+ return (t.tiles ?? []).map((r, n) => ({
65
+ label: r.tabTitle || `Tab ${n + 1}`,
66
+ value: String(n),
67
+ icon: K(r)
68
+ }));
69
+ }
70
+ function b(t, r) {
71
+ return t.id || `container_${r}`;
72
+ }
73
+ function x(t, r) {
74
+ return C[b(t, r)] ?? 0;
75
+ }
76
+ function J(t, r, n) {
77
+ return x(t, r) === n || B[`${b(t, r)}_${n}`];
78
+ }
79
+ function O(t, r, n) {
80
+ if (n === null) return;
81
+ const l = b(t, r);
82
+ B[`${l}_${x(t, r)}`] = !0, C[l] = Number(n), B[`${l}_${n}`] = !0;
83
+ }
84
+ return (t, r) => {
85
+ const n = g("FmTab"), l = g("FmTabs"), T = g("TileGrid", !0), W = g("FmCard");
86
+ return i(!0), d(v, null, L(o.tiles, (e, s) => {
87
+ var E, D, N;
88
+ return i(), d(v, {
89
+ key: `tile_${o.reportId}_${e.id || s}`
90
+ }, [
91
+ e.tab && ((E = e.tiles) != null && E.length) ? (i(), $(W, {
92
+ key: 0,
93
+ variant: "outlined",
94
+ class: u(["p-0 overflow-hidden flex flex-col", [h(e), k(s)]]),
95
+ style: m(F(e))
96
+ }, {
97
+ default: S(() => [
98
+ e.title || e.description ? (i(), d("div", se, [
99
+ e.title ? (i(), d("p", {
100
+ key: 0,
101
+ class: u(["fm-typo-en-body-sm-400", { "text-fm-color-typo-secondary": !(e.titleBold ?? !0) }]),
102
+ style: m(
103
+ _(
104
+ e.titleFontSize ?? 16,
105
+ e.titleBold ?? !0,
106
+ e.titleItalic,
107
+ e.titleUnderline
108
+ )
109
+ )
110
+ }, w(e.title), 7)) : a("", !0),
111
+ e.description ? (i(), d("p", {
112
+ key: 1,
113
+ class: u(["mt-4 fm-typo-en-body-sm-400", { "text-fm-color-typo-secondary": !e.descriptionBold }]),
114
+ style: m(
115
+ _(
116
+ e.descriptionFontSize,
117
+ e.descriptionBold,
118
+ e.descriptionItalic,
119
+ e.descriptionUnderline
120
+ )
121
+ )
122
+ }, w(e.description), 7)) : a("", !0)
123
+ ])) : a("", !0),
124
+ p(l, {
125
+ class: "px-16 pt-8 shrink-0",
126
+ "model-value": String(x(e, s)),
127
+ items: A(e),
128
+ "onUpdate:modelValue": (c) => O(e, s, c)
129
+ }, {
130
+ default: S(({ icon: c, tabsProps: y, ...f }) => [
131
+ p(n, R({ ref_for: !0 }, { ...y, ...f }), X({ _: 2 }, [
132
+ c ? {
133
+ name: "prepend",
134
+ fn: S(() => {
135
+ var U, V;
136
+ return [
137
+ p(ee, {
138
+ icon: c,
139
+ type: q((U = e.tiles) == null ? void 0 : U[Number(f.value)]),
140
+ size: j((V = e.tiles) == null ? void 0 : V[Number(f.value)])
141
+ }, null, 8, ["icon", "type", "size"])
142
+ ];
143
+ }),
144
+ key: "0"
145
+ } : void 0
146
+ ]), 1040)
147
+ ]),
148
+ _: 2
149
+ }, 1032, ["model-value", "items", "onUpdate:modelValue"]),
150
+ M("div", ce, [
151
+ (i(!0), d(v, null, L(e.tiles, (c, y) => {
152
+ var f;
153
+ return i(), d(v, {
154
+ key: `tab_${b(e, s)}_${y}`
155
+ }, [
156
+ J(e, s, y) ? Y((i(), d("div", ae, [
157
+ p(T, {
158
+ tiles: (f = c.tiles) != null && f.length ? c.tiles : [c],
159
+ "report-id": o.reportId,
160
+ "leaf-index-by-id": o.leafIndexById,
161
+ "hide-export": o.hideExport,
162
+ "custom-screen-width": o.customScreenWidth,
163
+ flat: !0
164
+ }, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
165
+ ], 512)), [
166
+ [Z, x(e, s) === y]
167
+ ]) : a("", !0)
168
+ ], 64);
169
+ }), 128))
170
+ ])
171
+ ]),
172
+ _: 2
173
+ }, 1032, ["class", "style"])) : (D = e.tiles) != null && D.length && !o.flat ? (i(), $(W, {
174
+ key: 1,
175
+ variant: "outlined",
176
+ class: u(["p-0 overflow-hidden", h(e)]),
177
+ style: m(F(e))
178
+ }, {
179
+ default: S(() => [
180
+ e.title || e.description ? (i(), d("div", ue, [
181
+ e.title ? (i(), d("p", {
182
+ key: 0,
183
+ class: u(["fm-typo-en-body-sm-400", { "text-fm-color-typo-secondary": !(e.titleBold ?? !0) }]),
184
+ style: m(
185
+ _(
186
+ e.titleFontSize ?? 16,
187
+ e.titleBold ?? !0,
188
+ e.titleItalic,
189
+ e.titleUnderline
190
+ )
191
+ )
192
+ }, w(e.title), 7)) : a("", !0),
193
+ e.description ? (i(), d("p", {
194
+ key: 1,
195
+ class: u(["mt-4 fm-typo-en-body-sm-400", { "text-fm-color-typo-secondary": !e.descriptionBold }]),
196
+ style: m(
197
+ _(
198
+ e.descriptionFontSize,
199
+ e.descriptionBold,
200
+ e.descriptionItalic,
201
+ e.descriptionUnderline
202
+ )
203
+ )
204
+ }, w(e.description), 7)) : a("", !0)
205
+ ])) : a("", !0),
206
+ M("div", le, [
207
+ p(T, {
208
+ tiles: e.tiles,
209
+ "report-id": o.reportId,
210
+ "leaf-index-by-id": o.leafIndexById,
211
+ "hide-export": o.hideExport,
212
+ "custom-screen-width": o.customScreenWidth,
213
+ flat: !0
214
+ }, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
215
+ ])
216
+ ]),
217
+ _: 2
218
+ }, 1032, ["class", "style"])) : (N = e.tiles) != null && N.length ? (i(), d("div", {
219
+ key: 2,
220
+ class: u(["grid grid-cols-12", [h(e), k(s)]])
221
+ }, [
222
+ p(T, {
223
+ tiles: e.tiles,
224
+ "report-id": o.reportId,
225
+ "leaf-index-by-id": o.leafIndexById,
226
+ "hide-export": o.hideExport,
227
+ "custom-screen-width": o.customScreenWidth,
228
+ flat: !0
229
+ }, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
230
+ ], 2)) : e.widget && o.flat ? (i(), d("div", {
231
+ key: 3,
232
+ class: u([h(e), k(s)])
233
+ }, [
234
+ p(P, {
235
+ "model-value": e,
236
+ "report-id": o.reportId,
237
+ index: o.leafIndexById[e.id] ?? s,
238
+ "hide-export": o.hideExport,
239
+ "custom-screen-width": o.customScreenWidth,
240
+ flat: !0
241
+ }, null, 8, ["model-value", "report-id", "index", "hide-export", "custom-screen-width"])
242
+ ], 2)) : e.widget ? (i(), $(P, {
243
+ key: 4,
244
+ "model-value": e,
245
+ "report-id": o.reportId,
246
+ index: o.leafIndexById[e.id] ?? s,
247
+ "hide-export": o.hideExport,
248
+ "custom-screen-width": o.customScreenWidth
249
+ }, null, 8, ["model-value", "report-id", "index", "hide-export", "custom-screen-width"])) : a("", !0)
250
+ ], 64);
251
+ }), 128);
252
+ };
253
+ }
254
+ });
255
+ export {
256
+ he as _
257
+ };
@@ -3,13 +3,13 @@ import { u as Lt, a as fo, _ as an } from "./_plugin-vue_export-helper-onplcgja.
3
3
  import { useCoreStore as po } from "@feedmepos/mf-common";
4
4
  import { storeToRefs as In } from "pinia";
5
5
  import { useRoute as mo } from "vue-router";
6
- import { W as xe, Q as ho, I as rt, t as On, v as Sn, d as Ge, g as go, q as vo } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CoI3PFYF.js";
7
- import { p as bo, d as Cn, a as Rn } from "./DateRangeSelect-Cvxqh6KE.js";
8
- import { u as yo, F as Eo, r as _o, d as Ut } from "./app-L5Gs2RN0.js";
6
+ import { W as xe, Q as ho, I as rt, v as On, w as Sn, d as Ge, g as go, t as vo } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DzZP-ANz.js";
7
+ import { p as bo, d as Cn, a as Rn } from "./DateRangeSelect-D2772bgT.js";
8
+ import { u as yo, F as Eo, r as _o, d as Ut } from "./app-CwM9HM2R.js";
9
9
  import { a as dn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
10
10
  import { r as fn } from "./i18n-CI_sQ5d_.js";
11
11
  import { useSnackbar as To } from "@feedmepos/ui-library";
12
- import { g as gt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-PhthswCX.js";
12
+ import { g as gt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-RABMoQ3F.js";
13
13
  const wo = {
14
14
  key: 0,
15
15
  class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"