@feedmepos/mf-report 5.26.9 → 5.27.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-B9jsVITx.js → App-BVm7F3co.js} +4 -4
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-D_dvvhqx.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-_xN_Strd.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-BO7p8Mq_.js → Default.vue_vue_type_script_setup_true_lang-DFfPxCRx.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CYk44w69.js → DynamicWidget.vue_vue_type_script_setup_true_lang-Du46mNK_.js} +1663 -1642
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DXusNtLu.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DvHJgIIm.js} +1448 -1359
- package/dist/{InsightView-DHWIOLCi.js → InsightView-BDQtiuUV.js} +4 -4
- package/dist/{Integration-K4zEQ9xo.js → Integration-BFvC5yD4.js} +3 -3
- package/dist/{Integrations-KyNsy5yd.js → Integrations-CaJP86Sf.js} +2 -2
- package/dist/{Layout-BGGSx2Bv.js → Layout-BTLiqkeM.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-gFC74Kpl.js → MenuTab.vue_vue_type_script_setup_true_lang-CVfKW6b8.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DGY2NPZT.js → NavigationTab.vue_vue_type_script_setup_true_lang-DVtWhfhI.js} +3 -3
- package/dist/OverviewView-Cmm7K0gk.js +62 -0
- package/dist/{Report-B2ypN6sG.js → Report-BpKD0ID4.js} +3 -3
- package/dist/ReportEditor-CFWTQJCY.js +1812 -0
- package/dist/{ReportView-X8UyQe1R.js → ReportView--Bk9WgOn.js} +93 -93
- package/dist/{Setting-BIYwCHo7.js → Setting-B6jvJDeO.js} +6 -6
- package/dist/{Template-B7ywcdv7.js → Template-CnE3UZvX.js} +3 -3
- package/dist/{TileEditor-D0mCJNfG.js → TileEditor-DNCRKHLE.js} +1620 -1600
- package/dist/TileGrid.vue_vue_type_script_setup_true_lang-WLjTXh0g.js +143 -0
- package/dist/{TransitionFade-BGQPx3Xb.js → TransitionFade-Chjh8CeF.js} +164 -162
- package/dist/{app-T2BFgO-M.js → app-CZUC85Jj.js} +80 -24
- package/dist/app.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-DV8KEXT1.js → useRestaurantPermission-CrybQQkI.js} +1 -1
- package/package.json +1 -1
- package/dist/OverviewView-pLaPV8q1.js +0 -62
- package/dist/ReportEditor-BSIMLrn7.js +0 -1594
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { defineComponent as z, reactive as C, resolveComponent as x, createElementBlock as a, openBlock as d, Fragment as h, renderList as E, createBlock as w, createCommentVNode as W, normalizeClass as f, withCtx as F, createVNode as l, withDirectives as L, vShow as M, createElementVNode as U } from "vue";
|
|
2
|
+
import { _ as I, c as K, a as j, b as q } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-Du46mNK_.js";
|
|
3
|
+
import { useBreakpoints as A } from "@feedmepos/ui-library";
|
|
4
|
+
const H = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "grid grid-cols-12"
|
|
7
|
+
}, J = { class: "grid grid-cols-12" }, R = /* @__PURE__ */ z({
|
|
8
|
+
__name: "TileGrid",
|
|
9
|
+
props: {
|
|
10
|
+
tiles: {},
|
|
11
|
+
reportId: {},
|
|
12
|
+
leafIndexById: {},
|
|
13
|
+
hideExport: { type: Boolean },
|
|
14
|
+
customScreenWidth: {},
|
|
15
|
+
flat: { type: Boolean }
|
|
16
|
+
},
|
|
17
|
+
setup(V) {
|
|
18
|
+
const t = V, { breakpoints: _ } = A();
|
|
19
|
+
function u(r) {
|
|
20
|
+
var n;
|
|
21
|
+
const o = ((n = r.size) == null ? void 0 : n.width) ?? 12;
|
|
22
|
+
return _.value.lg || _.value.md ? K(o) : _.value.sm ? j(o) : q(o);
|
|
23
|
+
}
|
|
24
|
+
function v(r) {
|
|
25
|
+
return t.flat && r > 0 ? "border-t border-neutral-200" : "";
|
|
26
|
+
}
|
|
27
|
+
const g = C({}), b = C({});
|
|
28
|
+
function D(r) {
|
|
29
|
+
return (r.tiles ?? []).map((o, n) => ({
|
|
30
|
+
label: o.tabTitle || `Tab ${n + 1}`,
|
|
31
|
+
value: String(n)
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
34
|
+
function m(r, o) {
|
|
35
|
+
return r.id || `container_${o}`;
|
|
36
|
+
}
|
|
37
|
+
function p(r, o) {
|
|
38
|
+
return g[m(r, o)] ?? 0;
|
|
39
|
+
}
|
|
40
|
+
function N(r, o, n) {
|
|
41
|
+
return p(r, o) === n || b[`${m(r, o)}_${n}`];
|
|
42
|
+
}
|
|
43
|
+
function G(r, o, n) {
|
|
44
|
+
if (n === null) return;
|
|
45
|
+
const i = m(r, o);
|
|
46
|
+
b[`${i}_${p(r, o)}`] = !0, g[i] = Number(n), b[`${i}_${n}`] = !0;
|
|
47
|
+
}
|
|
48
|
+
return (r, o) => {
|
|
49
|
+
const n = x("FmTabs"), i = x("TileGrid", !0), k = x("FmCard");
|
|
50
|
+
return d(!0), a(h, null, E(t.tiles, (e, s) => {
|
|
51
|
+
var $, B, T;
|
|
52
|
+
return d(), a(h, {
|
|
53
|
+
key: `tile_${t.reportId}_${e.id || s}`
|
|
54
|
+
}, [
|
|
55
|
+
e.tab && (($ = e.tiles) != null && $.length) ? (d(), w(k, {
|
|
56
|
+
key: 0,
|
|
57
|
+
variant: "outlined",
|
|
58
|
+
class: f(["p-0 overflow-hidden", [u(e), v(s)]])
|
|
59
|
+
}, {
|
|
60
|
+
default: F(() => [
|
|
61
|
+
l(n, {
|
|
62
|
+
class: "px-16 pt-8",
|
|
63
|
+
"model-value": String(p(e, s)),
|
|
64
|
+
items: D(e),
|
|
65
|
+
"onUpdate:modelValue": (c) => G(e, s, c)
|
|
66
|
+
}, null, 8, ["model-value", "items", "onUpdate:modelValue"]),
|
|
67
|
+
(d(!0), a(h, null, E(e.tiles, (c, y) => {
|
|
68
|
+
var S;
|
|
69
|
+
return d(), a(h, {
|
|
70
|
+
key: `tab_${m(e, s)}_${y}`
|
|
71
|
+
}, [
|
|
72
|
+
N(e, s, y) ? L((d(), a("div", H, [
|
|
73
|
+
l(i, {
|
|
74
|
+
tiles: (S = c.tiles) != null && S.length ? c.tiles : [c],
|
|
75
|
+
"report-id": t.reportId,
|
|
76
|
+
"leaf-index-by-id": t.leafIndexById,
|
|
77
|
+
"hide-export": t.hideExport,
|
|
78
|
+
"custom-screen-width": t.customScreenWidth,
|
|
79
|
+
flat: !0
|
|
80
|
+
}, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
|
|
81
|
+
], 512)), [
|
|
82
|
+
[M, p(e, s) === y]
|
|
83
|
+
]) : W("", !0)
|
|
84
|
+
], 64);
|
|
85
|
+
}), 128))
|
|
86
|
+
]),
|
|
87
|
+
_: 2
|
|
88
|
+
}, 1032, ["class"])) : (B = e.tiles) != null && B.length && !t.flat ? (d(), w(k, {
|
|
89
|
+
key: 1,
|
|
90
|
+
variant: "outlined",
|
|
91
|
+
class: f(["p-0 overflow-hidden", u(e)])
|
|
92
|
+
}, {
|
|
93
|
+
default: F(() => [
|
|
94
|
+
U("div", J, [
|
|
95
|
+
l(i, {
|
|
96
|
+
tiles: e.tiles,
|
|
97
|
+
"report-id": t.reportId,
|
|
98
|
+
"leaf-index-by-id": t.leafIndexById,
|
|
99
|
+
"hide-export": t.hideExport,
|
|
100
|
+
"custom-screen-width": t.customScreenWidth,
|
|
101
|
+
flat: !0
|
|
102
|
+
}, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
|
|
103
|
+
])
|
|
104
|
+
]),
|
|
105
|
+
_: 2
|
|
106
|
+
}, 1032, ["class"])) : (T = e.tiles) != null && T.length ? (d(), a("div", {
|
|
107
|
+
key: 2,
|
|
108
|
+
class: f(["grid grid-cols-12", [u(e), v(s)]])
|
|
109
|
+
}, [
|
|
110
|
+
l(i, {
|
|
111
|
+
tiles: e.tiles,
|
|
112
|
+
"report-id": t.reportId,
|
|
113
|
+
"leaf-index-by-id": t.leafIndexById,
|
|
114
|
+
"hide-export": t.hideExport,
|
|
115
|
+
"custom-screen-width": t.customScreenWidth,
|
|
116
|
+
flat: !0
|
|
117
|
+
}, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
|
|
118
|
+
], 2)) : e.widget && t.flat ? (d(), a("div", {
|
|
119
|
+
key: 3,
|
|
120
|
+
class: f([u(e), v(s)])
|
|
121
|
+
}, [
|
|
122
|
+
l(I, {
|
|
123
|
+
"model-value": e,
|
|
124
|
+
index: t.leafIndexById[e.id] ?? s,
|
|
125
|
+
"hide-export": t.hideExport,
|
|
126
|
+
"custom-screen-width": t.customScreenWidth,
|
|
127
|
+
flat: !0
|
|
128
|
+
}, null, 8, ["model-value", "index", "hide-export", "custom-screen-width"])
|
|
129
|
+
], 2)) : e.widget ? (d(), w(I, {
|
|
130
|
+
key: 4,
|
|
131
|
+
"model-value": e,
|
|
132
|
+
index: t.leafIndexById[e.id] ?? s,
|
|
133
|
+
"hide-export": t.hideExport,
|
|
134
|
+
"custom-screen-width": t.customScreenWidth
|
|
135
|
+
}, null, 8, ["model-value", "index", "hide-export", "custom-screen-width"])) : W("", !0)
|
|
136
|
+
], 64);
|
|
137
|
+
}), 128);
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
export {
|
|
142
|
+
R as _
|
|
143
|
+
};
|