@feedmepos/mf-report 5.27.35-beta.0 → 5.27.36-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.
- package/dist/{App-XG5bRHQB.js → App-BUjquvOU.js} +4 -4
- package/dist/{DateRangeSelect-h21dXIwg.js → DateRangeSelect-CObZob0B.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-WBDRXqQa.js → Default.vue_vue_type_script_setup_true_lang-DCAzWBlF.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-Dl1i1CZK.js → DynamicWidget.vue_vue_type_script_setup_true_lang-Dyu98iNt.js} +949 -879
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CUdipME7.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-B_T5TTMd.js} +3886 -3841
- package/dist/InsightView-Cg5TDSBe.js +689 -0
- package/dist/{Integration-CvJW00R5.js → Integration-QlvrG4DE.js} +3 -3
- package/dist/{Integrations-NQmNwuD7.js → Integrations-D3SXXgba.js} +2 -2
- package/dist/{Layout-VJEOmBDa.js → Layout-C_-iCenV.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Bodd70JY.js → MenuTab.vue_vue_type_script_setup_true_lang-DWmuP9uz.js} +49 -46
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-5SaERaER.js → NavigationTab.vue_vue_type_script_setup_true_lang-CnayPkbz.js} +3 -3
- package/dist/{OverviewView-C3TPNjuZ.js → OverviewView-C4sWum04.js} +4 -4
- package/dist/{Report-BhfVMwMn.js → Report-cEODZK5v.js} +3 -3
- package/dist/ReportEditor-HlaXmRf-.js +2032 -0
- package/dist/ReportView-WEDWHNXn.js +331 -0
- package/dist/{Setting-XR92B5yf.js → Setting-g1fhvyXM.js} +11 -11
- package/dist/{Template-BS87M0y2.js → Template-7Io1C_pv.js} +3 -3
- package/dist/TileEditor-CrTPOVAG.js +4154 -0
- package/dist/TileGrid.vue_vue_type_script_setup_true_lang-C3OypfQ5.js +257 -0
- package/dist/{TransitionFade-gl2rgu9r.js → TransitionFade-BqySCbDi.js} +4 -4
- package/dist/{app-DUgOfR-d.js → app-cM3Hvapy.js} +3577 -3371
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-GhwszhPe.js → formatChartData.worker-Ci7ZpIYk.js} +6 -6
- package/dist/assets/{processTableData.worker-C4hgpe0l.js → processTableData.worker-C2Ubh_e0.js} +6 -6
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-CtwYad89.js → useRestaurantPermission-BLISBUwG.js} +1 -1
- package/package.json +2 -2
- package/dist/InsightView-XcE7396A.js +0 -664
- package/dist/ReportEditor-DRhQWYT6.js +0 -1831
- package/dist/ReportView-DKdodxkP.js +0 -311
- package/dist/TileEditor-CmbAki4i.js +0 -4093
- package/dist/TileGrid.vue_vue_type_script_setup_true_lang-8RTEcUoH.js +0 -154
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { defineComponent as U, reactive as E, resolveComponent as b, createElementBlock as a, openBlock as s, Fragment as h, renderList as I, createBlock as g, createCommentVNode as W, normalizeStyle as F, normalizeClass as f, withCtx as V, createVNode as c, createElementVNode as z, withDirectives as H, vShow as K } from "vue";
|
|
2
|
-
import { _ as D, c as P, a as j, b as q, t as A } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-Dl1i1CZK.js";
|
|
3
|
-
import { useBreakpoints as J } from "@feedmepos/ui-library";
|
|
4
|
-
const O = { class: "flex-1 min-h-0 overflow-y-auto" }, Q = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "grid grid-cols-12"
|
|
7
|
-
}, R = { class: "grid grid-cols-12 max-h-full overflow-y-auto" }, ee = /* @__PURE__ */ U({
|
|
8
|
-
__name: "TileGrid",
|
|
9
|
-
props: {
|
|
10
|
-
tiles: {},
|
|
11
|
-
reportId: {},
|
|
12
|
-
leafIndexById: {},
|
|
13
|
-
hideExport: { type: Boolean },
|
|
14
|
-
customScreenWidth: {},
|
|
15
|
-
flat: { type: Boolean }
|
|
16
|
-
},
|
|
17
|
-
setup(N) {
|
|
18
|
-
const e = N, { breakpoints: y } = J();
|
|
19
|
-
function u(o) {
|
|
20
|
-
var n;
|
|
21
|
-
const r = ((n = o.size) == null ? void 0 : n.width) ?? 12;
|
|
22
|
-
return y.value.lg || y.value.md ? P(r) : y.value.sm ? j(r) : q(r);
|
|
23
|
-
}
|
|
24
|
-
function _(o) {
|
|
25
|
-
return e.flat && o > 0 ? "border-t border-neutral-200" : "";
|
|
26
|
-
}
|
|
27
|
-
function w(o) {
|
|
28
|
-
var r;
|
|
29
|
-
if (!e.flat)
|
|
30
|
-
return { height: `${A(((r = o.size) == null ? void 0 : r.height) ?? 6)}px` };
|
|
31
|
-
}
|
|
32
|
-
const k = E({}), v = E({});
|
|
33
|
-
function G(o) {
|
|
34
|
-
return (o.tiles ?? []).map((r, n) => ({
|
|
35
|
-
label: r.tabTitle || `Tab ${n + 1}`,
|
|
36
|
-
value: String(n)
|
|
37
|
-
}));
|
|
38
|
-
}
|
|
39
|
-
function p(o, r) {
|
|
40
|
-
return o.id || `container_${r}`;
|
|
41
|
-
}
|
|
42
|
-
function m(o, r) {
|
|
43
|
-
return k[p(o, r)] ?? 0;
|
|
44
|
-
}
|
|
45
|
-
function L(o, r, n) {
|
|
46
|
-
return m(o, r) === n || v[`${p(o, r)}_${n}`];
|
|
47
|
-
}
|
|
48
|
-
function M(o, r, n) {
|
|
49
|
-
if (n === null) return;
|
|
50
|
-
const d = p(o, r);
|
|
51
|
-
v[`${d}_${m(o, r)}`] = !0, k[d] = Number(n), v[`${d}_${n}`] = !0;
|
|
52
|
-
}
|
|
53
|
-
return (o, r) => {
|
|
54
|
-
const n = b("FmTabs"), d = b("TileGrid", !0), $ = b("FmCard");
|
|
55
|
-
return s(!0), a(h, null, I(e.tiles, (t, i) => {
|
|
56
|
-
var S, B, T;
|
|
57
|
-
return s(), a(h, {
|
|
58
|
-
key: `tile_${e.reportId}_${t.id || i}`
|
|
59
|
-
}, [
|
|
60
|
-
t.tab && ((S = t.tiles) != null && S.length) ? (s(), g($, {
|
|
61
|
-
key: 0,
|
|
62
|
-
variant: "outlined",
|
|
63
|
-
class: f(["p-0 overflow-hidden flex flex-col", [u(t), _(i)]]),
|
|
64
|
-
style: F(w(t))
|
|
65
|
-
}, {
|
|
66
|
-
default: V(() => [
|
|
67
|
-
c(n, {
|
|
68
|
-
class: "px-16 pt-8 shrink-0",
|
|
69
|
-
"model-value": String(m(t, i)),
|
|
70
|
-
items: G(t),
|
|
71
|
-
"onUpdate:modelValue": (l) => M(t, i, l)
|
|
72
|
-
}, null, 8, ["model-value", "items", "onUpdate:modelValue"]),
|
|
73
|
-
z("div", O, [
|
|
74
|
-
(s(!0), a(h, null, I(t.tiles, (l, x) => {
|
|
75
|
-
var C;
|
|
76
|
-
return s(), a(h, {
|
|
77
|
-
key: `tab_${p(t, i)}_${x}`
|
|
78
|
-
}, [
|
|
79
|
-
L(t, i, x) ? H((s(), a("div", Q, [
|
|
80
|
-
c(d, {
|
|
81
|
-
tiles: (C = l.tiles) != null && C.length ? l.tiles : [l],
|
|
82
|
-
"report-id": e.reportId,
|
|
83
|
-
"leaf-index-by-id": e.leafIndexById,
|
|
84
|
-
"hide-export": e.hideExport,
|
|
85
|
-
"custom-screen-width": e.customScreenWidth,
|
|
86
|
-
flat: !0
|
|
87
|
-
}, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
|
|
88
|
-
], 512)), [
|
|
89
|
-
[K, m(t, i) === x]
|
|
90
|
-
]) : W("", !0)
|
|
91
|
-
], 64);
|
|
92
|
-
}), 128))
|
|
93
|
-
])
|
|
94
|
-
]),
|
|
95
|
-
_: 2
|
|
96
|
-
}, 1032, ["class", "style"])) : (B = t.tiles) != null && B.length && !e.flat ? (s(), g($, {
|
|
97
|
-
key: 1,
|
|
98
|
-
variant: "outlined",
|
|
99
|
-
class: f(["p-0 overflow-hidden", u(t)]),
|
|
100
|
-
style: F(w(t))
|
|
101
|
-
}, {
|
|
102
|
-
default: V(() => [
|
|
103
|
-
z("div", R, [
|
|
104
|
-
c(d, {
|
|
105
|
-
tiles: t.tiles,
|
|
106
|
-
"report-id": e.reportId,
|
|
107
|
-
"leaf-index-by-id": e.leafIndexById,
|
|
108
|
-
"hide-export": e.hideExport,
|
|
109
|
-
"custom-screen-width": e.customScreenWidth,
|
|
110
|
-
flat: !0
|
|
111
|
-
}, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
|
|
112
|
-
])
|
|
113
|
-
]),
|
|
114
|
-
_: 2
|
|
115
|
-
}, 1032, ["class", "style"])) : (T = t.tiles) != null && T.length ? (s(), a("div", {
|
|
116
|
-
key: 2,
|
|
117
|
-
class: f(["grid grid-cols-12", [u(t), _(i)]])
|
|
118
|
-
}, [
|
|
119
|
-
c(d, {
|
|
120
|
-
tiles: t.tiles,
|
|
121
|
-
"report-id": e.reportId,
|
|
122
|
-
"leaf-index-by-id": e.leafIndexById,
|
|
123
|
-
"hide-export": e.hideExport,
|
|
124
|
-
"custom-screen-width": e.customScreenWidth,
|
|
125
|
-
flat: !0
|
|
126
|
-
}, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
|
|
127
|
-
], 2)) : t.widget && e.flat ? (s(), a("div", {
|
|
128
|
-
key: 3,
|
|
129
|
-
class: f([u(t), _(i)])
|
|
130
|
-
}, [
|
|
131
|
-
c(D, {
|
|
132
|
-
"model-value": t,
|
|
133
|
-
"report-id": e.reportId,
|
|
134
|
-
index: e.leafIndexById[t.id] ?? i,
|
|
135
|
-
"hide-export": e.hideExport,
|
|
136
|
-
"custom-screen-width": e.customScreenWidth,
|
|
137
|
-
flat: !0
|
|
138
|
-
}, null, 8, ["model-value", "report-id", "index", "hide-export", "custom-screen-width"])
|
|
139
|
-
], 2)) : t.widget ? (s(), g(D, {
|
|
140
|
-
key: 4,
|
|
141
|
-
"model-value": t,
|
|
142
|
-
"report-id": e.reportId,
|
|
143
|
-
index: e.leafIndexById[t.id] ?? i,
|
|
144
|
-
"hide-export": e.hideExport,
|
|
145
|
-
"custom-screen-width": e.customScreenWidth
|
|
146
|
-
}, null, 8, ["model-value", "report-id", "index", "hide-export", "custom-screen-width"])) : W("", !0)
|
|
147
|
-
], 64);
|
|
148
|
-
}), 128);
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
export {
|
|
153
|
-
ee as _
|
|
154
|
-
};
|