@feedmepos/mf-report 5.27.40 → 5.27.41

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-gwDfjs0u.js → App-DVKd3Prh.js} +5 -5
  2. package/dist/{DateRangeSelect-UoFskU18.js → DateRangeSelect-B0RstQlf.js} +2 -2
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-DD2mYIoH.js → Default.vue_vue_type_script_setup_true_lang-Bw-lZnut.js} +2 -2
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-BtYC32jI.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CyW3l1Ls.js} +1323 -1308
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DT2SiGub.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DcH9kMCg.js} +1191 -1174
  6. package/dist/{InsightView-BOM8sS76.js → InsightView-9LhtFI5Y.js} +6 -6
  7. package/dist/{Integration-Balw3Mat.js → Integration-h1j7EWhc.js} +4 -4
  8. package/dist/{Integrations-mur9Phe_.js → Integrations-DnSBl3IV.js} +4 -4
  9. package/dist/{Layout-ChpQW6k2.js → Layout-CIKtCA7v.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-VIJ3DR4n.js → MenuTab.vue_vue_type_script_setup_true_lang-C-E8CeK1.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CooqFHBx.js → NavigationTab.vue_vue_type_script_setup_true_lang-Bv1EAAAh.js} +5 -5
  12. package/dist/OverviewView-DD_WScpo.js +61 -0
  13. package/dist/{Report-D0ybaqZN.js → Report-E0EA45ZK.js} +5 -5
  14. package/dist/ReportEditor-BLn7-0ar.js +2073 -0
  15. package/dist/{ReportView-BaHqhBsX.js → ReportView-Cr9VjHN8.js} +80 -83
  16. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js → SelectComponent.vue_vue_type_script_setup_true_lang-Ckn2p74A.js} +1 -1
  17. package/dist/{Setting-IDAzH_zb.js → Setting-DOFXTePL.js} +30 -30
  18. package/dist/{Template-C1Ei0GcR.js → Template-BpsdPAlm.js} +5 -5
  19. package/dist/{TileEditor-D5lXwoDY.js → TileEditor-CCpH1icn.js} +110 -105
  20. package/dist/TilePageStack.vue_vue_type_script_setup_true_lang-BUr5dctn.js +332 -0
  21. package/dist/{TransitionFade-CtE41B0o.js → TransitionFade-CAuLrgf6.js} +6 -6
  22. package/dist/{_plugin-vue_export-helper-onplcgja.js → _plugin-vue_export-helper-kkiiQoKl.js} +215 -216
  23. package/dist/{app-FVupSSYM.js → app-B7Ecopk1.js} +916 -888
  24. package/dist/app.js +1 -1
  25. package/dist/style.css +1 -1
  26. package/dist/{useRestaurantPermission-DivfYXir.js → useRestaurantPermission-BMSTU9GV.js} +2 -2
  27. package/package.json +2 -2
  28. package/dist/OverviewView-Cf3MrDd_.js +0 -64
  29. package/dist/ReportEditor-BAOUNxIf.js +0 -2032
  30. package/dist/TileGrid.vue_vue_type_script_setup_true_lang-DVmhbkCB.js +0 -257
@@ -1,257 +0,0 @@
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-BtYC32jI.js";
3
- import { F as z, W as ie } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DT2SiGub.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
- };