@feedmepos/mf-report 5.33.3 → 5.34.1-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 (46) hide show
  1. package/dist/{App-BgRqim5d.js → App-BdSGNJ3L.js} +114 -113
  2. package/dist/{DateRangeSelect-XyU5XG5c.js → DateRangeSelect-Cre6UJLD.js} +67 -67
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-CC7fE3F8.js → Default.vue_vue_type_script_setup_true_lang-CvM5oewZ.js} +3 -3
  4. package/dist/DigestListView-BuB4JOlT.js +876 -0
  5. package/dist/{DigestReaderView-DSNoAESE.js → DigestReaderView-DdpTY1Ax.js} +63 -63
  6. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CsDiXGUk.js → DynamicWidget.vue_vue_type_script_setup_true_lang-4qBcakJs.js} +733 -733
  7. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-D7Rsh-uY.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BL3kxHFR.js} +526 -526
  8. package/dist/{InsightView-CF8mQJha.js → InsightView-CZOStmyJ.js} +88 -88
  9. package/dist/{Integration-QMdYwTwW.js → Integration-BC-DWRpD.js} +1983 -1967
  10. package/dist/{Integrations-Dbx1ScOv.js → Integrations-ibKrdipe.js} +10 -10
  11. package/dist/{Layout-CgiplBHM.js → Layout-D0W7xdty.js} +3 -3
  12. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-zW8JA7j3.js → LocationSelect.vue_vue_type_script_setup_true_lang-CJCSJkT_.js} +306 -306
  13. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-B0q9V1x8.js → MenuTab.vue_vue_type_script_setup_true_lang-DnPC8AcN.js} +6 -6
  14. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BVWZ8vTw.js → NavigationTab.vue_vue_type_script_setup_true_lang-CKaMBQka.js} +12784 -11760
  15. package/dist/{OverviewView-BbZ8WkLb.js → OverviewView-AOwgvPBq.js} +7 -7
  16. package/dist/{Report-BYi0pPZs.js → Report-Bs5sy1OF.js} +12 -12
  17. package/dist/{ReportCanvasView-CfFtVomc.js → ReportCanvasView-CYai96pI.js} +426 -426
  18. package/dist/{ReportEditor-BLEkGUVR.js → ReportEditor-BbsLe4B7.js} +32 -32
  19. package/dist/{ReportView-TG78Krm2.js → ReportView-B5Fqspyn.js} +13 -13
  20. package/dist/{ReportViewRoute-BUADf4Cr.js → ReportViewRoute-D2wI79x9.js} +5 -5
  21. package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js +137 -0
  22. package/dist/{Setting-Curkhv9_.js → Setting-DdYXi5qR.js} +6 -6
  23. package/dist/{Template-BN_ds698.js → Template-YEa1E6oz.js} +80 -80
  24. package/dist/{TileEditor-Cfb0uXGr.js → TileEditor-CnmEhIab.js} +1566 -1566
  25. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-1FKwWbpC.js → TilePageStack.vue_vue_type_script_setup_true_lang-CqWXV57r.js} +82 -82
  26. package/dist/{TransitionFade-D0_ZoB-O.js → TransitionFade-BmItOXFf.js} +170 -170
  27. package/dist/{XeroRedirect-CuTrP62C.js → XeroRedirect-D4sHbZe7.js} +3 -3
  28. package/dist/_plugin-vue_export-helper-Bx7s49ra.js +2828 -0
  29. package/dist/{app-LKjvcmXa.js → app-BmNusIzI.js} +5688 -13890
  30. package/dist/app.js +1 -1
  31. package/dist/assets/{formatChartData.worker-DvK7K5ca.js → formatChartData.worker-Cpgnh20a.js} +62 -62
  32. package/dist/assets/{processTableData.worker-C3l4iUXL.js → processTableData.worker-B7I6PElJ.js} +64 -64
  33. package/dist/{chart-BywXiz4O.js → chart-DU0N9V2o.js} +7 -4
  34. package/dist/currency-DAk-bsf8.js +12 -0
  35. package/dist/index-6T_rmIM_.js +24722 -0
  36. package/dist/{report-Ci2ElGpp.js → report-NKl3Yb5J.js} +23 -23
  37. package/dist/style.css +1 -1
  38. package/dist/{useDigestFont-BxXC7U3d.js → useDigestFont-Bxq6g3WO.js} +80 -80
  39. package/dist/{useReportCanvasPanel-BjmRiMSh.js → useReportCanvasPanel-BN-Gq7Uj.js} +975 -976
  40. package/dist/{useRestaurantPermission-DX52YBfA.js → useRestaurantPermission-D8b3oI0-.js} +2 -2
  41. package/package.json +11 -11
  42. package/dist/DigestListView-Bqp4LA1w.js +0 -876
  43. package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js +0 -137
  44. package/dist/_plugin-vue_export-helper-C6QDExPN.js +0 -2718
  45. package/dist/currency-DFN_8rRJ.js +0 -12
  46. package/dist/index-xdTpLFHc.js +0 -25511
@@ -1,13 +1,13 @@
1
- import { defineComponent as R, reactive as J, resolveComponent as B, createElementBlock as d, openBlock as n, Fragment as I, renderList as P, createBlock as V, createCommentVNode as y, unref as oe, normalizeStyle as w, normalizeClass as l, withCtx as C, createVNode as u, createElementVNode as $, toDisplayString as T, mergeProps as ne, createSlots as ie, withDirectives as G, vShow as L, ref as de, watch as se } from "vue";
2
- import { u as X } from "./_plugin-vue_export-helper-C6QDExPN.js";
3
- import { k as ae, _ as O, l as ce, m as le, n as ue, t as pe, p as me } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-CsDiXGUk.js";
4
- import { i as fe, F as D, W as ye } from "./report-Ci2ElGpp.js";
1
+ import { defineComponent as R, reactive as J, resolveComponent as B, openBlock as n, createElementBlock as s, Fragment as I, renderList as P, unref as re, createBlock as V, normalizeStyle as w, normalizeClass as l, withCtx as C, toDisplayString as T, createCommentVNode as y, createVNode as u, mergeProps as ne, createSlots as ie, createElementVNode as $, withDirectives as G, vShow as L, ref as se, watch as de } from "vue";
2
+ import { u as X } from "./_plugin-vue_export-helper-Bx7s49ra.js";
3
+ import { k as ae, _ as O, l as ce, m as le, n as ue, t as pe, p as me } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-4qBcakJs.js";
4
+ import { i as fe, F as D, W as ye } from "./report-NKl3Yb5J.js";
5
5
  import { useBreakpoints as he } from "@feedmepos/ui-library";
6
6
  import { r as Y } from "./i18n-DbyciK4x.js";
7
- const _e = {
7
+ const ve = {
8
8
  key: 0,
9
9
  class: "px-16 pt-16 shrink-0"
10
- }, ge = { class: "flex-1 min-h-0 overflow-y-auto" }, ve = {
10
+ }, _e = { class: "flex-1 min-h-0 overflow-y-auto" }, ge = {
11
11
  key: 0,
12
12
  class: "grid grid-cols-12"
13
13
  }, xe = {
@@ -24,81 +24,81 @@ const _e = {
24
24
  flat: { type: Boolean }
25
25
  },
26
26
  setup(W) {
27
- const t = W, { breakpoints: g } = he(), { t: E, te: c } = X();
28
- function v(r) {
27
+ const t = W, { breakpoints: _ } = he(), { t: E, te: c } = X();
28
+ function g(o) {
29
29
  var i;
30
- const o = ((i = r.size) == null ? void 0 : i.width) ?? 12;
31
- return g.value.lg || g.value.md ? ce(o) : g.value.sm ? le(o) : ue(o);
30
+ const r = ((i = o.size) == null ? void 0 : i.width) ?? 12;
31
+ return _.value.lg || _.value.md ? ce(r) : _.value.sm ? le(r) : ue(r);
32
32
  }
33
- function x(r) {
34
- return t.flat && r > 0 ? "border-t border-neutral-200" : "";
33
+ function x(o) {
34
+ return t.flat && o > 0 ? "border-t border-neutral-200" : "";
35
35
  }
36
- function p(r) {
37
- var o;
36
+ function p(o) {
37
+ var r;
38
38
  if (!t.flat)
39
- return { height: `${pe(((o = r.size) == null ? void 0 : o.height) ?? 6)}px` };
39
+ return { height: `${pe(((r = o.size) == null ? void 0 : r.height) ?? 6)}px` };
40
40
  }
41
- function a(r, o, i, _) {
41
+ function a(o, r, i, v) {
42
42
  return {
43
- fontSize: r ? `${r}px` : void 0,
44
- fontWeight: o ? "700" : void 0,
43
+ fontSize: o ? `${o}px` : void 0,
44
+ fontWeight: r ? "700" : void 0,
45
45
  fontStyle: i ? "italic" : void 0,
46
- textDecoration: _ ? "underline" : void 0
46
+ textDecoration: v ? "underline" : void 0
47
47
  };
48
48
  }
49
49
  const h = J({}), f = J({});
50
- function U(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) === ye.Scorecard && r.widget.config.titleIcon !== "")
54
- return r.widget.config.titleIcon;
50
+ function U(o) {
51
+ var r;
52
+ if (o.tabIcon !== void 0) return o.tabIcon || void 0;
53
+ if (((r = o.widget) == null ? void 0 : r.type) === ye.Scorecard && o.widget.config.titleIcon !== "")
54
+ return o.widget.config.titleIcon;
55
55
  }
56
- function Z(r) {
57
- var o;
58
- return r ? r.tabIcon !== void 0 ? r.tabIconSize ?? D.Small : ((o = r.widget) == null ? void 0 : o.config.titleIconSize) ?? D.Small : D.Small;
56
+ function Z(o) {
57
+ var r;
58
+ return o ? o.tabIcon !== void 0 ? o.tabIconSize ?? D.Small : ((r = o.widget) == null ? void 0 : r.config.titleIconSize) ?? D.Small : D.Small;
59
59
  }
60
- function ee(r) {
61
- var o;
62
- if (r)
63
- return r.tabIcon !== void 0 ? r.tabIconType : (o = r.widget) == null ? void 0 : o.config.titleIconType;
60
+ function ee(o) {
61
+ var r;
62
+ if (o)
63
+ return o.tabIcon !== void 0 ? o.tabIconType : (r = o.widget) == null ? void 0 : r.config.titleIconType;
64
64
  }
65
- function te(r) {
66
- return (r.tiles ?? []).map((o, i) => ({
67
- label: o.tabTitle ? Y(E, c, o.tabTitle, "other") : `Tab ${i + 1}`,
65
+ function te(o) {
66
+ return (o.tiles ?? []).map((r, i) => ({
67
+ label: r.tabTitle ? Y(E, c, r.tabTitle, "other") : `Tab ${i + 1}`,
68
68
  value: String(i),
69
- icon: U(o)
69
+ icon: U(r)
70
70
  }));
71
71
  }
72
- function F(r, o) {
73
- return r.id || `container_${o}`;
72
+ function F(o, r) {
73
+ return o.id || `container_${r}`;
74
74
  }
75
- function S(r, o) {
76
- return h[F(r, o)] ?? 0;
75
+ function S(o, r) {
76
+ return h[F(o, r)] ?? 0;
77
77
  }
78
- function re(r, o, i) {
79
- return S(r, o) === i || f[`${F(r, o)}_${i}`];
78
+ function oe(o, r, i) {
79
+ return S(o, r) === i || f[`${F(o, r)}_${i}`];
80
80
  }
81
- function M(r, o, i) {
81
+ function M(o, r, i) {
82
82
  if (i === null) return;
83
- const _ = F(r, o);
84
- f[`${_}_${S(r, o)}`] = !0, h[_] = Number(i), f[`${_}_${i}`] = !0;
83
+ const v = F(o, r);
84
+ f[`${v}_${S(o, r)}`] = !0, h[v] = Number(i), f[`${v}_${i}`] = !0;
85
85
  }
86
- return (r, o) => {
87
- const i = B("FmTab"), _ = B("FmTabs"), N = B("TileGrid", !0), H = B("FmCard");
88
- return n(!0), d(I, null, P(t.tiles, (e, s) => {
86
+ return (o, r) => {
87
+ const i = B("FmTab"), v = B("FmTabs"), N = B("TileGrid", !0), H = B("FmCard");
88
+ return n(!0), s(I, null, P(t.tiles, (e, d) => {
89
89
  var K, j, q;
90
- return n(), d(I, {
91
- key: `tile_${t.reportId}_${e.id || s}`
90
+ return n(), s(I, {
91
+ key: `tile_${t.reportId}_${e.id || d}`
92
92
  }, [
93
- oe(fe)(e) && ((K = e.tiles) != null && K.length) ? (n(), V(H, {
93
+ re(fe)(e) && ((K = e.tiles) != null && K.length) ? (n(), V(H, {
94
94
  key: 0,
95
95
  variant: "outlined",
96
- class: l(["p-0 overflow-hidden flex flex-col", [v(e), x(s)]]),
96
+ class: l(["p-0 overflow-hidden flex flex-col", [g(e), x(d)]]),
97
97
  style: w(p(e))
98
98
  }, {
99
99
  default: C(() => [
100
- e.title || e.description ? (n(), d("div", _e, [
101
- e.title ? (n(), d("p", {
100
+ e.title || e.description ? (n(), s("div", ve, [
101
+ e.title ? (n(), s("p", {
102
102
  key: 0,
103
103
  class: l(["fm-typo-en-body-sm-400", { "text-fm-color-typo-secondary": !(e.titleBold ?? !0) }]),
104
104
  style: w(
@@ -110,7 +110,7 @@ const _e = {
110
110
  )
111
111
  )
112
112
  }, T(e.title), 7)) : y("", !0),
113
- e.description ? (n(), d("p", {
113
+ e.description ? (n(), s("p", {
114
114
  key: 1,
115
115
  class: l(["mt-4 fm-typo-en-body-sm-400", { "text-fm-color-typo-secondary": !e.descriptionBold }]),
116
116
  style: w(
@@ -123,16 +123,16 @@ const _e = {
123
123
  )
124
124
  }, T(e.description), 7)) : y("", !0)
125
125
  ])) : y("", !0),
126
- u(_, {
126
+ u(v, {
127
127
  class: "px-16 pt-8 shrink-0",
128
- "model-value": String(S(e, s)),
128
+ "model-value": String(S(e, d)),
129
129
  items: te(e),
130
- "onUpdate:modelValue": (m) => M(e, s, m)
130
+ "onUpdate:modelValue": (m) => M(e, d, m)
131
131
  }, {
132
132
  default: C(({ icon: m, tabsProps: k, ...b }) => [
133
133
  u(i, ne({ ref_for: !0 }, { ...k, ...b }, {
134
- "model-value": String(S(e, s)),
135
- "onUpdate:modelValue": (z) => M(e, s, z)
134
+ "model-value": String(S(e, d)),
135
+ "onUpdate:modelValue": (z) => M(e, d, z)
136
136
  }), ie({ _: 2 }, [
137
137
  m ? {
138
138
  name: "prepend",
@@ -152,13 +152,13 @@ const _e = {
152
152
  ]),
153
153
  _: 2
154
154
  }, 1032, ["model-value", "items", "onUpdate:modelValue"]),
155
- $("div", ge, [
156
- (n(!0), d(I, null, P(e.tiles, (m, k) => {
155
+ $("div", _e, [
156
+ (n(!0), s(I, null, P(e.tiles, (m, k) => {
157
157
  var b;
158
- return n(), d(I, {
159
- key: `tab_${F(e, s)}_${k}`
158
+ return n(), s(I, {
159
+ key: `tab_${F(e, d)}_${k}`
160
160
  }, [
161
- re(e, s, k) ? G((n(), d("div", ve, [
161
+ oe(e, d, k) ? G((n(), s("div", ge, [
162
162
  u(N, {
163
163
  tiles: (b = m.tiles) != null && b.length && !m.widget ? m.tiles : [m],
164
164
  "report-id": t.reportId,
@@ -168,7 +168,7 @@ const _e = {
168
168
  flat: !0
169
169
  }, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
170
170
  ], 512)), [
171
- [L, S(e, s) === k]
171
+ [L, S(e, d) === k]
172
172
  ]) : y("", !0)
173
173
  ], 64);
174
174
  }), 128))
@@ -178,12 +178,12 @@ const _e = {
178
178
  }, 1032, ["class", "style"])) : !e.widget && ((j = e.tiles) != null && j.length) && !t.flat ? (n(), V(H, {
179
179
  key: 1,
180
180
  variant: "outlined",
181
- class: l(["p-0 overflow-hidden", v(e)]),
181
+ class: l(["p-0 overflow-hidden", g(e)]),
182
182
  style: w(p(e))
183
183
  }, {
184
184
  default: C(() => [
185
- e.title || e.description ? (n(), d("div", xe, [
186
- e.title ? (n(), d("p", {
185
+ e.title || e.description ? (n(), s("div", xe, [
186
+ e.title ? (n(), s("p", {
187
187
  key: 0,
188
188
  class: l(["fm-typo-en-body-sm-400", { "text-fm-color-typo-secondary": !(e.titleBold ?? !0) }]),
189
189
  style: w(
@@ -195,7 +195,7 @@ const _e = {
195
195
  )
196
196
  )
197
197
  }, T(e.title), 7)) : y("", !0),
198
- e.description ? (n(), d("p", {
198
+ e.description ? (n(), s("p", {
199
199
  key: 1,
200
200
  class: l(["mt-4 fm-typo-en-body-sm-400", { "text-fm-color-typo-secondary": !e.descriptionBold }]),
201
201
  style: w(
@@ -220,9 +220,9 @@ const _e = {
220
220
  ])
221
221
  ]),
222
222
  _: 2
223
- }, 1032, ["class", "style"])) : !e.widget && ((q = e.tiles) != null && q.length) ? (n(), d("div", {
223
+ }, 1032, ["class", "style"])) : !e.widget && ((q = e.tiles) != null && q.length) ? (n(), s("div", {
224
224
  key: 2,
225
- class: l(["grid grid-cols-12", [v(e), x(s)]])
225
+ class: l(["grid grid-cols-12", [g(e), x(d)]])
226
226
  }, [
227
227
  u(N, {
228
228
  tiles: e.tiles,
@@ -232,14 +232,14 @@ const _e = {
232
232
  "custom-screen-width": t.customScreenWidth,
233
233
  flat: !0
234
234
  }, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
235
- ], 2)) : e.widget && t.flat ? (n(), d("div", {
235
+ ], 2)) : e.widget && t.flat ? (n(), s("div", {
236
236
  key: 3,
237
- class: l([v(e), x(s)])
237
+ class: l([g(e), x(d)])
238
238
  }, [
239
239
  u(O, {
240
240
  "model-value": e,
241
241
  "report-id": t.reportId,
242
- index: t.leafIndexById[e.id] ?? s,
242
+ index: t.leafIndexById[e.id] ?? d,
243
243
  "hide-export": t.hideExport,
244
244
  "custom-screen-width": t.customScreenWidth,
245
245
  flat: !0
@@ -248,7 +248,7 @@ const _e = {
248
248
  key: 4,
249
249
  "model-value": e,
250
250
  "report-id": t.reportId,
251
- index: t.leafIndexById[e.id] ?? s,
251
+ index: t.leafIndexById[e.id] ?? d,
252
252
  "hide-export": t.hideExport,
253
253
  "custom-screen-width": t.customScreenWidth
254
254
  }, null, 8, ["model-value", "report-id", "index", "hide-export", "custom-screen-width"])) : y("", !0)
@@ -267,26 +267,26 @@ const _e = {
267
267
  customScreenWidth: {}
268
268
  },
269
269
  setup(W) {
270
- const t = W, { t: g, te: E } = X(), c = de([]);
270
+ const t = W, { t: _, te: E } = X(), c = se([]);
271
271
  me({
272
272
  openPage: (p) => {
273
273
  var a;
274
274
  ((a = c.value[c.value.length - 1]) == null ? void 0 : a.id) !== p.id && c.value.push(p);
275
275
  }
276
276
  });
277
- function v() {
277
+ function g() {
278
278
  c.value.pop();
279
279
  }
280
280
  function x(p) {
281
281
  var h;
282
282
  const a = p.tabTitle || ((h = p.widget) == null ? void 0 : h.title) || "";
283
- return a ? Y(g, E, a, "other") : g("report.common.page");
283
+ return a ? Y(_, E, a, "other") : _("report.common.page");
284
284
  }
285
- return se([() => t.reportId, () => t.tiles], () => {
285
+ return de([() => t.reportId, () => t.tiles], () => {
286
286
  c.value = [];
287
287
  }), (p, a) => {
288
288
  const h = B("FmButton");
289
- return n(), d(I, null, [
289
+ return n(), s(I, null, [
290
290
  G($("div", {
291
291
  class: l(["grid grid-cols-12", t.gridClass])
292
292
  }, [
@@ -300,7 +300,7 @@ const _e = {
300
300
  ], 2), [
301
301
  [L, c.value.length === 0]
302
302
  ]),
303
- (n(!0), d(I, null, P(c.value, (f, U) => G((n(), d("div", {
303
+ (n(!0), s(I, null, P(c.value, (f, U) => G((n(), s("div", {
304
304
  key: `page_${f.id}`,
305
305
  class: l(["grid grid-cols-12", t.gridClass])
306
306
  }, [
@@ -309,7 +309,7 @@ const _e = {
309
309
  icon: "arrow_back",
310
310
  variant: "tertiary",
311
311
  class: "-ml-8",
312
- onClick: v
312
+ onClick: g
313
313
  }),
314
314
  $("p", {
315
315
  class: "fm-typo-en-title-sm-600 line-clamp-1 min-w-0 break-all",