@feedmepos/mf-report 5.28.5 → 5.29.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 (35) hide show
  1. package/dist/{App-Bc8Mp5vR.js → App-CuBsRwfx.js} +4 -4
  2. package/dist/{DateRangeSelect-cbSEHMzW.js → DateRangeSelect-CzjlwjuC.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-BpJFA_ET.js → Default.vue_vue_type_script_setup_true_lang-Di9_F5Yk.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-Dx-cxJP6.js → DynamicWidget.vue_vue_type_script_setup_true_lang-C73R6Fb9.js} +5 -5
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Cxrti7_L.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-tLRFdLNs.js} +9 -10
  6. package/dist/{InsightView-Bo0Fb5QG.js → InsightView-BcnmLQ8c.js} +5 -5
  7. package/dist/{Integration-B4tC2MlL.js → Integration-D4VFT1M8.js} +3 -3
  8. package/dist/{Integrations-RB8iuvdJ.js → Integrations-v8oF1TL7.js} +2 -2
  9. package/dist/{Layout-DBCPtUH7.js → Layout-Ds8RSWmi.js} +1 -1
  10. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-w2H9qOgJ.js → LocationSelect.vue_vue_type_script_setup_true_lang-Dk6u8nUH.js} +1638 -1634
  11. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BLVGUSWf.js → MenuTab.vue_vue_type_script_setup_true_lang-BWt7pqFb.js} +5 -5
  12. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-N31ee-oZ.js → NavigationTab.vue_vue_type_script_setup_true_lang-CU00GINo.js} +3853 -3823
  13. package/dist/OverviewView-1v80g6KX.js +81 -0
  14. package/dist/{Report-Di6GyP1r.js → Report-DcFB4gM6.js} +3 -3
  15. package/dist/ReportCanvasView-BQO6Mywc.js +5190 -0
  16. package/dist/{ReportEditor-BfNmiEVn.js → ReportEditor-Bgcisf1s.js} +7 -7
  17. package/dist/{ReportView-JWJ-6FCu.js → ReportView-Q_juD8Kr.js} +6 -6
  18. package/dist/{ReportViewRoute-BMjjJqN2.js → ReportViewRoute-DwStGqyz.js} +2 -2
  19. package/dist/{Setting-D13NIemB.js → Setting-C9rlM23O.js} +3 -3
  20. package/dist/{Template-D16bqzrx.js → Template-BZd0NB5w.js} +3 -3
  21. package/dist/{TileEditor-1Sn9ZSb2.js → TileEditor-B2F9r3RS.js} +6 -6
  22. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-BOXsV7-r.js → TilePageStack.vue_vue_type_script_setup_true_lang-BmbrJAph.js} +2 -2
  23. package/dist/{TransitionFade-DwJkmMTb.js → TransitionFade-Dkeo9qr0.js} +5 -5
  24. package/dist/{app-CVBllEjW.js → app-CoQ_GRKo.js} +1819 -1326
  25. package/dist/app.js +1 -1
  26. package/dist/assets/{formatChartData.worker-DZp5dSDQ.js → formatChartData.worker-D7sGqQhX.js} +34 -34
  27. package/dist/assets/{processTableData.worker-Kyuhw4lS.js → processTableData.worker-CltxwQxU.js} +34 -34
  28. package/dist/{report-Cn4Ik1zm.js → report-Dau_so1j.js} +1 -1
  29. package/dist/report-canvas-libs/components-1.js +1042 -0
  30. package/dist/report-canvas-libs/fm-ui-1.js +599 -180
  31. package/dist/style.css +1 -1
  32. package/dist/{useRestaurantPermission-C8bLPfk8.js → useRestaurantPermission-CPoHZTxx.js} +1 -1
  33. package/package.json +2 -1
  34. package/dist/OverviewView-WKe6Zxe1.js +0 -61
  35. package/dist/ReportCanvasView-Dg2ItHBO.js +0 -1336
@@ -0,0 +1,81 @@
1
+ import { defineComponent as C, defineAsyncComponent as b, computed as l, resolveComponent as I, createBlock as n, openBlock as s, withCtx as $, createVNode as d, createElementBlock as u, unref as e, normalizeStyle as v, normalizeClass as B, createElementVNode as R } from "vue";
2
+ import { _ as V } from "./TilePageStack.vue_vue_type_script_setup_true_lang-BmbrJAph.js";
3
+ import { u as z, l as H } from "./report-Dau_so1j.js";
4
+ import { _ as P } from "./Default.vue_vue_type_script_setup_true_lang-Di9_F5Yk.js";
5
+ import { storeToRefs as S } from "pinia";
6
+ import { _ as T } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
7
+ import { useBreakpoints as A } from "@feedmepos/ui-library";
8
+ import { _ as D } from "./MenuTab.vue_vue_type_script_setup_true_lang-BWt7pqFb.js";
9
+ import { useI18n as E } from "@feedmepos/mf-common";
10
+ import { r as F } from "./i18n-DbyciK4x.js";
11
+ const L = { class: "sticky top-0 z-10 bg-white" }, Y = /* @__PURE__ */ C({
12
+ __name: "OverviewView",
13
+ setup(N) {
14
+ const f = b(
15
+ () => import("./ReportCanvasView-BQO6Mywc.js")
16
+ ), { t: i, te: _ } = E(), x = z(), { breakpoints: a } = A(), { isOpenDownloadDialog: g, overviewReport: t } = S(x), r = l(() => {
17
+ var o;
18
+ return ((o = t.value) == null ? void 0 : o.tiles) || [];
19
+ }), y = l(() => H(r.value)), w = l(() => {
20
+ var o;
21
+ return F(i, _, (o = t.value) == null ? void 0 : o.name, "other");
22
+ }), p = l(() => {
23
+ var o;
24
+ return ((o = t.value) == null ? void 0 : o.reportType) === "canvas";
25
+ }), k = l(
26
+ () => p.value ? [] : [
27
+ {
28
+ label: i("report.common.download"),
29
+ value: "download",
30
+ isPrimary: !0,
31
+ prependIcon: "download"
32
+ }
33
+ ]
34
+ ), c = l(
35
+ () => `calc(100% - ${a.value.lg || a.value.md ? 72 : 64}px)`
36
+ );
37
+ return (o, m) => {
38
+ const h = I("FmPageHead");
39
+ return s(), n(P, null, {
40
+ default: $(() => [
41
+ d(h, {
42
+ title: w.value,
43
+ class: "h-[68px]",
44
+ actions: k.value,
45
+ "onClick:action": m[0] || (m[0] = (O) => g.value = !0)
46
+ }, null, 8, ["title", "actions"]),
47
+ p.value && e(t) ? (s(), u("div", {
48
+ key: 0,
49
+ class: "flex min-h-0",
50
+ style: v({ height: c.value })
51
+ }, [
52
+ (s(), n(e(f), {
53
+ key: e(t).id,
54
+ "report-id": e(t).id,
55
+ "view-only": ""
56
+ }, null, 8, ["report-id"]))
57
+ ], 4)) : (s(), u("div", {
58
+ key: 1,
59
+ class: B(`flex flex-col gap-2 overflow-y-auto ${e(a).sm || e(a).xs ? "mb-20" : ""}`),
60
+ style: v({ height: c.value })
61
+ }, [
62
+ R("div", L, [
63
+ d(D)
64
+ ]),
65
+ r.value.length > 0 && e(t) ? (s(), n(V, {
66
+ key: 0,
67
+ tiles: r.value,
68
+ "report-id": e(t).id,
69
+ "leaf-index-by-id": y.value,
70
+ "grid-class": e(a).sm || e(a).xs ? "px-3 gap-[16px]" : "px-24 gap-[24px]"
71
+ }, null, 8, ["tiles", "report-id", "leaf-index-by-id", "grid-class"])) : (s(), n(T, { key: 1 }))
72
+ ], 6))
73
+ ]),
74
+ _: 1
75
+ });
76
+ };
77
+ }
78
+ });
79
+ export {
80
+ Y as default
81
+ };
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as Ae, ref as $, watch as we, computed as h, h as d, withModifiers as ze, resolveComponent as I, createBlock as se, openBlock as B, withCtx as m, createVNode as c, createElementVNode as v, unref as t, normalizeStyle as Je, normalizeClass as g, withDirectives as Re, createElementBlock as Be, Fragment as Ke, renderList as Ee, toDisplayString as k, createTextVNode as je, vShow as he } from "vue";
2
2
  import { storeToRefs as Pe } from "pinia";
3
- import { u as He, s as Ye } from "./report-Cn4Ik1zm.js";
4
- import { _ as qe } from "./Default.vue_vue_type_script_setup_true_lang-BpJFA_ET.js";
3
+ import { u as He, s as Ye } from "./report-Dau_so1j.js";
4
+ import { _ as qe } from "./Default.vue_vue_type_script_setup_true_lang-Di9_F5Yk.js";
5
5
  import { u as Ge } from "./message-dialog-UoMWOnil.js";
6
6
  import { u as Qe } from "./global-loader-BuxFfehu.js";
7
7
  import { useSnackbar as We, useBreakpoints as Xe, components as Ze, FmButtonColorThemeVariant as et } from "@feedmepos/ui-library";
8
8
  import { _ as tt } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
9
- import { c as ot, a as xe, h as at } from "./app-CVBllEjW.js";
9
+ import { c as ot, a as xe, h as at } from "./app-CoQ_GRKo.js";
10
10
  import { useRouter as st, useRoute as rt, onBeforeRouteLeave as nt } from "vue-router";
11
11
  import { useI18n as lt } from "@feedmepos/mf-common";
12
12
  import { r as re } from "./i18n-DbyciK4x.js";