@feedmepos/mf-report 5.27.0 → 5.27.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.
Files changed (30) hide show
  1. package/dist/{App-BVm7F3co.js → App-DSAYuPnw.js} +4 -4
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-_xN_Strd.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-B7zYI-10.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-DFfPxCRx.js → Default.vue_vue_type_script_setup_true_lang-B7WhnyxK.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-Du46mNK_.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CtyS5biZ.js} +1971 -1884
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DvHJgIIm.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CQYxNukN.js} +786 -776
  6. package/dist/{InsightView-BDQtiuUV.js → InsightView-CjlC5ji1.js} +4 -4
  7. package/dist/{Integration-BFvC5yD4.js → Integration-uqt_9jzh.js} +3 -3
  8. package/dist/{Integrations-CaJP86Sf.js → Integrations-DjdaH7TB.js} +2 -2
  9. package/dist/{Layout-BTLiqkeM.js → Layout-D-K_X8I_.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CVfKW6b8.js → MenuTab.vue_vue_type_script_setup_true_lang-7gIW0Dcq.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DVtWhfhI.js → NavigationTab.vue_vue_type_script_setup_true_lang-CtfaY3pC.js} +3 -3
  12. package/dist/{OverviewView-Cmm7K0gk.js → OverviewView-C6ma5uuY.js} +4 -4
  13. package/dist/{Report-BpKD0ID4.js → Report-DRA9kM_8.js} +3 -3
  14. package/dist/ReportEditor-jt1hSp5y.js +1826 -0
  15. package/dist/{ReportView--Bk9WgOn.js → ReportView-CngZsjWx.js} +6 -6
  16. package/dist/{Setting-B6jvJDeO.js → Setting-NGJ9WoHW.js} +3 -3
  17. package/dist/{Template-CnE3UZvX.js → Template-XsYAFAr0.js} +3 -3
  18. package/dist/TileEditor-BOHGCkUR.js +4077 -0
  19. package/dist/TileGrid.vue_vue_type_script_setup_true_lang-D56AWX-c.js +152 -0
  20. package/dist/{TransitionFade-Chjh8CeF.js → TransitionFade-BV7CpStl.js} +6 -4
  21. package/dist/{app-CZUC85Jj.js → app-CrCAF5RB.js} +48 -12
  22. package/dist/app.js +1 -1
  23. package/dist/assets/{processTableData.worker-dYjjzVAS.js → formatChartData.worker-BH7U7Dmq.js} +21 -21
  24. package/dist/assets/{formatChartData.worker-S0YDdTap.js → processTableData.worker-CR6UcFH0.js} +21 -21
  25. package/dist/style.css +1 -1
  26. package/dist/{useRestaurantPermission-CrybQQkI.js → useRestaurantPermission-dTlc-8eB.js} +1 -1
  27. package/package.json +1 -1
  28. package/dist/ReportEditor-CFWTQJCY.js +0 -1812
  29. package/dist/TileEditor-DNCRKHLE.js +0 -4042
  30. package/dist/TileGrid.vue_vue_type_script_setup_true_lang-WLjTXh0g.js +0 -143
@@ -1,143 +0,0 @@
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-Du46mNK_.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
- };