@feedmepos/mf-report 5.27.13 → 5.27.14-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-BlHs_KyM.js → App-CcdMlfSd.js} +96 -95
- package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-OQRT1HAp.js +389 -0
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CxR3luuJ.js → Default.vue_vue_type_script_setup_true_lang-BoZCI7kN.js} +1 -1
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-DJTZFtNV.js +5079 -0
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-oCAIT-ax.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-faQ1wSGW.js} +5193 -4810
- package/dist/{InsightView-N5Lzz_b4.js → InsightView-B7hXryQe.js} +4 -4
- package/dist/{Integration-BotRTI4i.js → Integration-Cm0DNd94.js} +3 -3
- package/dist/{Integrations-B26o5QXd.js → Integrations-s2XnL_lQ.js} +2 -2
- package/dist/{Layout-6NKUqxol.js → Layout-BaxsdPkO.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BijCez3Y.js → MenuTab.vue_vue_type_script_setup_true_lang-D-uVoZ83.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CA9MugVT.js → NavigationTab.vue_vue_type_script_setup_true_lang-40Mxqpsi.js} +2795 -2779
- package/dist/{OverviewView-vdfq-4MN.js → OverviewView-YYCDda7Z.js} +4 -4
- package/dist/{Report-Dz8mKOpQ.js → Report-fQv1rMXB.js} +3 -3
- package/dist/ReportEditor-BQi5vZ5G.js +1828 -0
- package/dist/{ReportView-DHNMt0BV.js → ReportView-CePzSNVf.js} +6 -6
- package/dist/{Setting-Cpy5DtfI.js → Setting-DA1IUerO.js} +14 -14
- package/dist/{Template-6U_iB8qy.js → Template-BNwoCMjJ.js} +3 -3
- package/dist/TileEditor-EBbG7Odu.js +4064 -0
- package/dist/TileGrid.vue_vue_type_script_setup_true_lang-BseyYYvj.js +154 -0
- package/dist/{TransitionFade-C7B6bWjS.js → TransitionFade-vNYa-qkr.js} +760 -828
- package/dist/{app-Dz4qiCQj.js → app-D2QVuN8P.js} +388 -291
- package/dist/app.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-DDTn3OLP.js → useRestaurantPermission-qFfSh5xv.js} +1 -1
- package/package.json +1 -1
- package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-B9yWyW2A.js +0 -383
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-BZdgw5zR.js +0 -4922
- package/dist/ReportEditor-CSq4R2KR.js +0 -1826
- package/dist/TileEditor-REt2Wbx9.js +0 -4036
- package/dist/TileGrid.vue_vue_type_script_setup_true_lang-D0rrgUXG.js +0 -152
|
@@ -0,0 +1,154 @@
|
|
|
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-DJTZFtNV.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
|
+
};
|