@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
@@ -0,0 +1,332 @@
1
+ import { defineComponent as Q, reactive as A, resolveComponent as k, createElementBlock as d, openBlock as n, Fragment as I, renderList as U, createBlock as D, createCommentVNode as f, unref as Z, normalizeStyle as w, normalizeClass as l, withCtx as C, createVNode as u, createElementVNode as T, toDisplayString as B, mergeProps as ee, createSlots as te, withDirectives as V, vShow as G, ref as re, watch as oe } from "vue";
2
+ import { u as ne } from "./_plugin-vue_export-helper-kkiiQoKl.js";
3
+ import { _ as ie, a as J, c as de, b as se, f as ce, t as ae, p as le } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-CyW3l1Ls.js";
4
+ import { i as ue, F as P, W as pe } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DcH9kMCg.js";
5
+ import { useBreakpoints as me } from "@feedmepos/ui-library";
6
+ import { r as fe } from "./i18n-CI_sQ5d_.js";
7
+ const ye = {
8
+ key: 0,
9
+ class: "px-16 pt-16 shrink-0"
10
+ }, he = { class: "flex-1 min-h-0 overflow-y-auto" }, _e = {
11
+ key: 0,
12
+ class: "grid grid-cols-12"
13
+ }, ge = {
14
+ key: 0,
15
+ class: "px-16 pt-16"
16
+ }, xe = { class: "grid grid-cols-12 max-h-full overflow-y-auto" }, O = /* @__PURE__ */ Q({
17
+ __name: "TileGrid",
18
+ props: {
19
+ tiles: {},
20
+ reportId: {},
21
+ leafIndexById: {},
22
+ hideExport: { type: Boolean },
23
+ customScreenWidth: {},
24
+ flat: { type: Boolean }
25
+ },
26
+ setup(W) {
27
+ const t = W, { breakpoints: _ } = me();
28
+ function g(r) {
29
+ var i;
30
+ const o = ((i = r.size) == null ? void 0 : i.width) ?? 12;
31
+ return _.value.lg || _.value.md ? de(o) : _.value.sm ? se(o) : ce(o);
32
+ }
33
+ function s(r) {
34
+ return t.flat && r > 0 ? "border-t border-neutral-200" : "";
35
+ }
36
+ function $(r) {
37
+ var o;
38
+ if (!t.flat)
39
+ return { height: `${ae(((o = r.size) == null ? void 0 : o.height) ?? 6)}px` };
40
+ }
41
+ function y(r, o, i, h) {
42
+ return {
43
+ fontSize: r ? `${r}px` : void 0,
44
+ fontWeight: o ? "700" : void 0,
45
+ fontStyle: i ? "italic" : void 0,
46
+ textDecoration: h ? "underline" : void 0
47
+ };
48
+ }
49
+ const p = A({}), a = A({});
50
+ function x(r) {
51
+ var o;
52
+ if (r.tabIcon !== void 0) return r.tabIcon || void 0;
53
+ if (((o = r.widget) == null ? void 0 : o.type) === pe.Scorecard && r.widget.config.titleIcon !== "")
54
+ return r.widget.config.titleIcon;
55
+ }
56
+ function v(r) {
57
+ var o;
58
+ return r ? r.tabIcon !== void 0 ? r.tabIconSize ?? P.Small : ((o = r.widget) == null ? void 0 : o.config.titleIconSize) ?? P.Small : P.Small;
59
+ }
60
+ function E(r) {
61
+ var o;
62
+ if (r)
63
+ return r.tabIcon !== void 0 ? r.tabIconType : (o = r.widget) == null ? void 0 : o.config.titleIconType;
64
+ }
65
+ function R(r) {
66
+ return (r.tiles ?? []).map((o, i) => ({
67
+ label: o.tabTitle || `Tab ${i + 1}`,
68
+ value: String(i),
69
+ icon: x(o)
70
+ }));
71
+ }
72
+ function F(r, o) {
73
+ return r.id || `container_${o}`;
74
+ }
75
+ function z(r, o) {
76
+ return p[F(r, o)] ?? 0;
77
+ }
78
+ function X(r, o, i) {
79
+ return z(r, o) === i || a[`${F(r, o)}_${i}`];
80
+ }
81
+ function Y(r, o, i) {
82
+ if (i === null) return;
83
+ const h = F(r, o);
84
+ a[`${h}_${z(r, o)}`] = !0, p[h] = Number(i), a[`${h}_${i}`] = !0;
85
+ }
86
+ return (r, o) => {
87
+ const i = k("FmTab"), h = k("FmTabs"), N = k("TileGrid", !0), L = k("FmCard");
88
+ return n(!0), d(I, null, U(t.tiles, (e, c) => {
89
+ var M, H, K;
90
+ return n(), d(I, {
91
+ key: `tile_${t.reportId}_${e.id || c}`
92
+ }, [
93
+ Z(ue)(e) && ((M = e.tiles) != null && M.length) ? (n(), D(L, {
94
+ key: 0,
95
+ variant: "outlined",
96
+ class: l(["p-0 overflow-hidden flex flex-col", [g(e), s(c)]]),
97
+ style: w($(e))
98
+ }, {
99
+ default: C(() => [
100
+ e.title || e.description ? (n(), d("div", ye, [
101
+ e.title ? (n(), d("p", {
102
+ key: 0,
103
+ class: l(["fm-typo-en-body-sm-400", { "text-fm-color-typo-secondary": !(e.titleBold ?? !0) }]),
104
+ style: w(
105
+ y(
106
+ e.titleFontSize ?? 16,
107
+ e.titleBold ?? !0,
108
+ e.titleItalic,
109
+ e.titleUnderline
110
+ )
111
+ )
112
+ }, B(e.title), 7)) : f("", !0),
113
+ e.description ? (n(), d("p", {
114
+ key: 1,
115
+ class: l(["mt-4 fm-typo-en-body-sm-400", { "text-fm-color-typo-secondary": !e.descriptionBold }]),
116
+ style: w(
117
+ y(
118
+ e.descriptionFontSize,
119
+ e.descriptionBold,
120
+ e.descriptionItalic,
121
+ e.descriptionUnderline
122
+ )
123
+ )
124
+ }, B(e.description), 7)) : f("", !0)
125
+ ])) : f("", !0),
126
+ u(h, {
127
+ class: "px-16 pt-8 shrink-0",
128
+ "model-value": String(z(e, c)),
129
+ items: R(e),
130
+ "onUpdate:modelValue": (m) => Y(e, c, m)
131
+ }, {
132
+ default: C(({ icon: m, tabsProps: S, ...b }) => [
133
+ u(i, ee({ ref_for: !0 }, { ...S, ...b }), te({ _: 2 }, [
134
+ m ? {
135
+ name: "prepend",
136
+ fn: C(() => {
137
+ var j, q;
138
+ return [
139
+ u(ie, {
140
+ icon: m,
141
+ type: E((j = e.tiles) == null ? void 0 : j[Number(b.value)]),
142
+ size: v((q = e.tiles) == null ? void 0 : q[Number(b.value)])
143
+ }, null, 8, ["icon", "type", "size"])
144
+ ];
145
+ }),
146
+ key: "0"
147
+ } : void 0
148
+ ]), 1040)
149
+ ]),
150
+ _: 2
151
+ }, 1032, ["model-value", "items", "onUpdate:modelValue"]),
152
+ T("div", he, [
153
+ (n(!0), d(I, null, U(e.tiles, (m, S) => {
154
+ var b;
155
+ return n(), d(I, {
156
+ key: `tab_${F(e, c)}_${S}`
157
+ }, [
158
+ X(e, c, S) ? V((n(), d("div", _e, [
159
+ u(N, {
160
+ tiles: (b = m.tiles) != null && b.length && !m.widget ? m.tiles : [m],
161
+ "report-id": t.reportId,
162
+ "leaf-index-by-id": t.leafIndexById,
163
+ "hide-export": t.hideExport,
164
+ "custom-screen-width": t.customScreenWidth,
165
+ flat: !0
166
+ }, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
167
+ ], 512)), [
168
+ [G, z(e, c) === S]
169
+ ]) : f("", !0)
170
+ ], 64);
171
+ }), 128))
172
+ ])
173
+ ]),
174
+ _: 2
175
+ }, 1032, ["class", "style"])) : !e.widget && ((H = e.tiles) != null && H.length) && !t.flat ? (n(), D(L, {
176
+ key: 1,
177
+ variant: "outlined",
178
+ class: l(["p-0 overflow-hidden", g(e)]),
179
+ style: w($(e))
180
+ }, {
181
+ default: C(() => [
182
+ e.title || e.description ? (n(), d("div", ge, [
183
+ e.title ? (n(), d("p", {
184
+ key: 0,
185
+ class: l(["fm-typo-en-body-sm-400", { "text-fm-color-typo-secondary": !(e.titleBold ?? !0) }]),
186
+ style: w(
187
+ y(
188
+ e.titleFontSize ?? 16,
189
+ e.titleBold ?? !0,
190
+ e.titleItalic,
191
+ e.titleUnderline
192
+ )
193
+ )
194
+ }, B(e.title), 7)) : f("", !0),
195
+ e.description ? (n(), d("p", {
196
+ key: 1,
197
+ class: l(["mt-4 fm-typo-en-body-sm-400", { "text-fm-color-typo-secondary": !e.descriptionBold }]),
198
+ style: w(
199
+ y(
200
+ e.descriptionFontSize,
201
+ e.descriptionBold,
202
+ e.descriptionItalic,
203
+ e.descriptionUnderline
204
+ )
205
+ )
206
+ }, B(e.description), 7)) : f("", !0)
207
+ ])) : f("", !0),
208
+ T("div", xe, [
209
+ u(N, {
210
+ tiles: e.tiles,
211
+ "report-id": t.reportId,
212
+ "leaf-index-by-id": t.leafIndexById,
213
+ "hide-export": t.hideExport,
214
+ "custom-screen-width": t.customScreenWidth,
215
+ flat: !0
216
+ }, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
217
+ ])
218
+ ]),
219
+ _: 2
220
+ }, 1032, ["class", "style"])) : !e.widget && ((K = e.tiles) != null && K.length) ? (n(), d("div", {
221
+ key: 2,
222
+ class: l(["grid grid-cols-12", [g(e), s(c)]])
223
+ }, [
224
+ u(N, {
225
+ tiles: e.tiles,
226
+ "report-id": t.reportId,
227
+ "leaf-index-by-id": t.leafIndexById,
228
+ "hide-export": t.hideExport,
229
+ "custom-screen-width": t.customScreenWidth,
230
+ flat: !0
231
+ }, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
232
+ ], 2)) : e.widget && t.flat ? (n(), d("div", {
233
+ key: 3,
234
+ class: l([g(e), s(c)])
235
+ }, [
236
+ u(J, {
237
+ "model-value": e,
238
+ "report-id": t.reportId,
239
+ index: t.leafIndexById[e.id] ?? c,
240
+ "hide-export": t.hideExport,
241
+ "custom-screen-width": t.customScreenWidth,
242
+ flat: !0
243
+ }, null, 8, ["model-value", "report-id", "index", "hide-export", "custom-screen-width"])
244
+ ], 2)) : e.widget ? (n(), D(J, {
245
+ key: 4,
246
+ "model-value": e,
247
+ "report-id": t.reportId,
248
+ index: t.leafIndexById[e.id] ?? c,
249
+ "hide-export": t.hideExport,
250
+ "custom-screen-width": t.customScreenWidth
251
+ }, null, 8, ["model-value", "report-id", "index", "hide-export", "custom-screen-width"])) : f("", !0)
252
+ ], 64);
253
+ }), 128);
254
+ };
255
+ }
256
+ }), ve = { class: "col-span-12 flex items-center gap-4" }, be = ["title"], $e = /* @__PURE__ */ Q({
257
+ __name: "TilePageStack",
258
+ props: {
259
+ tiles: {},
260
+ reportId: {},
261
+ leafIndexById: {},
262
+ gridClass: {},
263
+ hideExport: { type: Boolean },
264
+ customScreenWidth: {}
265
+ },
266
+ setup(W) {
267
+ const t = W, { t: _, te: g } = ne(), s = re([]);
268
+ le({
269
+ openPage: (p) => {
270
+ var a;
271
+ ((a = s.value[s.value.length - 1]) == null ? void 0 : a.id) !== p.id && s.value.push(p);
272
+ }
273
+ });
274
+ function $() {
275
+ s.value.pop();
276
+ }
277
+ function y(p) {
278
+ var x;
279
+ const a = p.tabTitle || ((x = p.widget) == null ? void 0 : x.title) || "";
280
+ return a ? fe(_, g, a, "other") : _("report.common.page");
281
+ }
282
+ return oe([() => t.reportId, () => t.tiles], () => {
283
+ s.value = [];
284
+ }), (p, a) => {
285
+ const x = k("FmButton");
286
+ return n(), d(I, null, [
287
+ V(T("div", {
288
+ class: l(["grid grid-cols-12", t.gridClass])
289
+ }, [
290
+ u(O, {
291
+ tiles: t.tiles,
292
+ "report-id": t.reportId,
293
+ "leaf-index-by-id": t.leafIndexById,
294
+ "hide-export": t.hideExport,
295
+ "custom-screen-width": t.customScreenWidth
296
+ }, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
297
+ ], 2), [
298
+ [G, s.value.length === 0]
299
+ ]),
300
+ (n(!0), d(I, null, U(s.value, (v, E) => V((n(), d("div", {
301
+ key: `page_${v.id}`,
302
+ class: l(["grid grid-cols-12", t.gridClass])
303
+ }, [
304
+ T("div", ve, [
305
+ u(x, {
306
+ icon: "arrow_back",
307
+ variant: "tertiary",
308
+ class: "-ml-8",
309
+ onClick: $
310
+ }),
311
+ T("p", {
312
+ class: "fm-typo-en-title-sm-600 line-clamp-1 min-w-0 break-all",
313
+ title: y(v)
314
+ }, B(y(v)), 9, be)
315
+ ]),
316
+ u(O, {
317
+ tiles: v.tiles ?? [],
318
+ "report-id": t.reportId,
319
+ "leaf-index-by-id": t.leafIndexById,
320
+ "hide-export": t.hideExport,
321
+ "custom-screen-width": t.customScreenWidth
322
+ }, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
323
+ ], 2)), [
324
+ [G, E === s.value.length - 1]
325
+ ])), 128))
326
+ ], 64);
327
+ };
328
+ }
329
+ });
330
+ export {
331
+ $e as _
332
+ };
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as We, onBeforeMount as ro, onBeforeUnmount as io, resolveComponent as z, createElementBlock as k, openBlock as D, normalizeStyle as Qt, unref as P, renderSlot as pt, createVNode as G, createElementVNode as A, toDisplayString as K, TransitionGroup as ao, nextTick as rn, h as cn, mergeModels as kt, useModel as tt, computed as S, Fragment as Ne, renderList as It, createBlock as be, normalizeClass as Ot, withCtx as ce, Transition as Zt, createCommentVNode as U, ref as q, withDirectives as lo, withKeys as so, withModifiers as St, vModelText as uo, watch as je, createTextVNode as co } from "vue";
2
- import { u as Lt, a as fo, _ as an } from "./_plugin-vue_export-helper-onplcgja.js";
2
+ import { u as Lt, a as fo, _ as an } from "./_plugin-vue_export-helper-kkiiQoKl.js";
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, v as On, w as Sn, d as Ge, g as go, t as vo } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DT2SiGub.js";
7
- import { p as bo, d as Cn, a as Rn } from "./DateRangeSelect-UoFskU18.js";
8
- import { u as yo, F as Eo, r as _o, d as Ut } from "./app-FVupSSYM.js";
9
- import { a as dn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
6
+ import { W as xe, Q as ho, I as rt, z as On, A as Sn, d as Ge, g as go, y as vo } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DcH9kMCg.js";
7
+ import { p as bo, d as Cn, a as Rn } from "./DateRangeSelect-B0RstQlf.js";
8
+ import { u as yo, F as Eo, r as _o, d as Ut } from "./app-B7Ecopk1.js";
9
+ import { a as dn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Ckn2p74A.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-BtYC32jI.js";
12
+ import { g as gt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-CyW3l1Ls.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"