@feedmepos/mf-report 5.26.9 → 5.27.0-beta.0

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 (27) hide show
  1. package/dist/{App-B9jsVITx.js → App-7sxIC6-C.js} +60 -60
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-D_dvvhqx.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CP6RAaXe.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-BO7p8Mq_.js → Default.vue_vue_type_script_setup_true_lang-e3pzzQh_.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CYk44w69.js → DynamicWidget.vue_vue_type_script_setup_true_lang-HQ4x1yGJ.js} +1663 -1642
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DXusNtLu.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BQ196li6.js} +1448 -1359
  6. package/dist/{InsightView-DHWIOLCi.js → InsightView-CBP_EW0d.js} +4 -4
  7. package/dist/{Integration-K4zEQ9xo.js → Integration-CBCo0EOJ.js} +3 -3
  8. package/dist/{Integrations-KyNsy5yd.js → Integrations-DkQWZeZP.js} +2 -2
  9. package/dist/{Layout-BGGSx2Bv.js → Layout-D3zJH3z1.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-gFC74Kpl.js → MenuTab.vue_vue_type_script_setup_true_lang-2wArlO_a.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DGY2NPZT.js → NavigationTab.vue_vue_type_script_setup_true_lang-CL_DD9sP.js} +3 -3
  12. package/dist/OverviewView-CCJqYug0.js +62 -0
  13. package/dist/{Report-B2ypN6sG.js → Report-B4OdCQza.js} +3 -3
  14. package/dist/ReportEditor-C-zJNu8G.js +1812 -0
  15. package/dist/{ReportView-X8UyQe1R.js → ReportView-CxhzRur5.js} +93 -93
  16. package/dist/{Setting-BIYwCHo7.js → Setting-BaLkNfN8.js} +6 -6
  17. package/dist/{Template-B7ywcdv7.js → Template-wkBEZ12T.js} +3 -3
  18. package/dist/{TileEditor-D0mCJNfG.js → TileEditor-BUTsC_ct.js} +1620 -1600
  19. package/dist/TileGrid.vue_vue_type_script_setup_true_lang-BOkxFIAd.js +143 -0
  20. package/dist/{TransitionFade-BGQPx3Xb.js → TransitionFade-C7Czon0d.js} +164 -162
  21. package/dist/{app-T2BFgO-M.js → app-C3U4kkgS.js} +81 -25
  22. package/dist/app.js +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{useRestaurantPermission-DV8KEXT1.js → useRestaurantPermission-CDfKw3iJ.js} +1 -1
  25. package/package.json +1 -1
  26. package/dist/OverviewView-pLaPV8q1.js +0 -62
  27. package/dist/ReportEditor-BSIMLrn7.js +0 -1594
@@ -0,0 +1,143 @@
1
+ import { defineComponent as z, reactive as C, resolveComponent as x, createElementBlock as a, openBlock as d, Fragment as h, renderList as E, createBlock as w, createCommentVNode as W, normalizeClass as f, withCtx as F, createVNode as l, withDirectives as L, vShow as M, createElementVNode as U } from "vue";
2
+ import { _ as I, c as K, a as j, b as q } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-HQ4x1yGJ.js";
3
+ import { useBreakpoints as A } from "@feedmepos/ui-library";
4
+ const H = {
5
+ key: 0,
6
+ class: "grid grid-cols-12"
7
+ }, J = { class: "grid grid-cols-12" }, R = /* @__PURE__ */ z({
8
+ __name: "TileGrid",
9
+ props: {
10
+ tiles: {},
11
+ reportId: {},
12
+ leafIndexById: {},
13
+ hideExport: { type: Boolean },
14
+ customScreenWidth: {},
15
+ flat: { type: Boolean }
16
+ },
17
+ setup(V) {
18
+ const t = V, { breakpoints: _ } = A();
19
+ function u(r) {
20
+ var n;
21
+ const o = ((n = r.size) == null ? void 0 : n.width) ?? 12;
22
+ return _.value.lg || _.value.md ? K(o) : _.value.sm ? j(o) : q(o);
23
+ }
24
+ function v(r) {
25
+ return t.flat && r > 0 ? "border-t border-neutral-200" : "";
26
+ }
27
+ const g = C({}), b = C({});
28
+ function D(r) {
29
+ return (r.tiles ?? []).map((o, n) => ({
30
+ label: o.tabTitle || `Tab ${n + 1}`,
31
+ value: String(n)
32
+ }));
33
+ }
34
+ function m(r, o) {
35
+ return r.id || `container_${o}`;
36
+ }
37
+ function p(r, o) {
38
+ return g[m(r, o)] ?? 0;
39
+ }
40
+ function N(r, o, n) {
41
+ return p(r, o) === n || b[`${m(r, o)}_${n}`];
42
+ }
43
+ function G(r, o, n) {
44
+ if (n === null) return;
45
+ const i = m(r, o);
46
+ b[`${i}_${p(r, o)}`] = !0, g[i] = Number(n), b[`${i}_${n}`] = !0;
47
+ }
48
+ return (r, o) => {
49
+ const n = x("FmTabs"), i = x("TileGrid", !0), k = x("FmCard");
50
+ return d(!0), a(h, null, E(t.tiles, (e, s) => {
51
+ var $, B, T;
52
+ return d(), a(h, {
53
+ key: `tile_${t.reportId}_${e.id || s}`
54
+ }, [
55
+ e.tab && (($ = e.tiles) != null && $.length) ? (d(), w(k, {
56
+ key: 0,
57
+ variant: "outlined",
58
+ class: f(["p-0 overflow-hidden", [u(e), v(s)]])
59
+ }, {
60
+ default: F(() => [
61
+ l(n, {
62
+ class: "px-16 pt-8",
63
+ "model-value": String(p(e, s)),
64
+ items: D(e),
65
+ "onUpdate:modelValue": (c) => G(e, s, c)
66
+ }, null, 8, ["model-value", "items", "onUpdate:modelValue"]),
67
+ (d(!0), a(h, null, E(e.tiles, (c, y) => {
68
+ var S;
69
+ return d(), a(h, {
70
+ key: `tab_${m(e, s)}_${y}`
71
+ }, [
72
+ N(e, s, y) ? L((d(), a("div", H, [
73
+ l(i, {
74
+ tiles: (S = c.tiles) != null && S.length ? c.tiles : [c],
75
+ "report-id": t.reportId,
76
+ "leaf-index-by-id": t.leafIndexById,
77
+ "hide-export": t.hideExport,
78
+ "custom-screen-width": t.customScreenWidth,
79
+ flat: !0
80
+ }, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
81
+ ], 512)), [
82
+ [M, p(e, s) === y]
83
+ ]) : W("", !0)
84
+ ], 64);
85
+ }), 128))
86
+ ]),
87
+ _: 2
88
+ }, 1032, ["class"])) : (B = e.tiles) != null && B.length && !t.flat ? (d(), w(k, {
89
+ key: 1,
90
+ variant: "outlined",
91
+ class: f(["p-0 overflow-hidden", u(e)])
92
+ }, {
93
+ default: F(() => [
94
+ U("div", J, [
95
+ l(i, {
96
+ tiles: e.tiles,
97
+ "report-id": t.reportId,
98
+ "leaf-index-by-id": t.leafIndexById,
99
+ "hide-export": t.hideExport,
100
+ "custom-screen-width": t.customScreenWidth,
101
+ flat: !0
102
+ }, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
103
+ ])
104
+ ]),
105
+ _: 2
106
+ }, 1032, ["class"])) : (T = e.tiles) != null && T.length ? (d(), a("div", {
107
+ key: 2,
108
+ class: f(["grid grid-cols-12", [u(e), v(s)]])
109
+ }, [
110
+ l(i, {
111
+ tiles: e.tiles,
112
+ "report-id": t.reportId,
113
+ "leaf-index-by-id": t.leafIndexById,
114
+ "hide-export": t.hideExport,
115
+ "custom-screen-width": t.customScreenWidth,
116
+ flat: !0
117
+ }, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
118
+ ], 2)) : e.widget && t.flat ? (d(), a("div", {
119
+ key: 3,
120
+ class: f([u(e), v(s)])
121
+ }, [
122
+ l(I, {
123
+ "model-value": e,
124
+ index: t.leafIndexById[e.id] ?? s,
125
+ "hide-export": t.hideExport,
126
+ "custom-screen-width": t.customScreenWidth,
127
+ flat: !0
128
+ }, null, 8, ["model-value", "index", "hide-export", "custom-screen-width"])
129
+ ], 2)) : e.widget ? (d(), w(I, {
130
+ key: 4,
131
+ "model-value": e,
132
+ index: t.leafIndexById[e.id] ?? s,
133
+ "hide-export": t.hideExport,
134
+ "custom-screen-width": t.customScreenWidth
135
+ }, null, 8, ["model-value", "index", "hide-export", "custom-screen-width"])) : W("", !0)
136
+ ], 64);
137
+ }), 128);
138
+ };
139
+ }
140
+ });
141
+ export {
142
+ R as _
143
+ };