@feedmepos/mf-report 5.27.13 → 5.27.14
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-CI7sW3nz.js} +62 -61
- package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-EHma_nAl.js +389 -0
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CxR3luuJ.js → Default.vue_vue_type_script_setup_true_lang-CCtErh_M.js} +1 -1
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-CsdBzA7J.js +5079 -0
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-oCAIT-ax.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Dn1UyPl0.js} +5193 -4810
- package/dist/{InsightView-N5Lzz_b4.js → InsightView-BIZZT45p.js} +4 -4
- package/dist/{Integration-BotRTI4i.js → Integration-DW-k9S8l.js} +3 -3
- package/dist/{Integrations-B26o5QXd.js → Integrations-BMfk3Dzv.js} +2 -2
- package/dist/{Layout-6NKUqxol.js → Layout-CSq47_TA.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BijCez3Y.js → MenuTab.vue_vue_type_script_setup_true_lang-CDLiuOXB.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CA9MugVT.js → NavigationTab.vue_vue_type_script_setup_true_lang-Ct43ZFaT.js} +2795 -2779
- package/dist/{OverviewView-vdfq-4MN.js → OverviewView-eDLe8OvS.js} +4 -4
- package/dist/{Report-Dz8mKOpQ.js → Report-4qOy6S-v.js} +3 -3
- package/dist/ReportEditor-CHNy5iVN.js +1828 -0
- package/dist/{ReportView-DHNMt0BV.js → ReportView-aiOeRHFh.js} +6 -6
- package/dist/{Setting-Cpy5DtfI.js → Setting-ByEqhsIa.js} +14 -14
- package/dist/{Template-6U_iB8qy.js → Template-DuL6IPfx.js} +3 -3
- package/dist/TileEditor-BeqWnk5j.js +4064 -0
- package/dist/TileGrid.vue_vue_type_script_setup_true_lang-Ddkwx2Y5.js +154 -0
- package/dist/{TransitionFade-C7B6bWjS.js → TransitionFade-B_wBzIMU.js} +760 -828
- package/dist/{app-Dz4qiCQj.js → app-BdxL-mVp.js} +387 -290
- package/dist/app.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-DDTn3OLP.js → useRestaurantPermission-fkYMJKLu.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
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { defineComponent as U, reactive as E, resolveComponent as b, createElementBlock as d, openBlock as i, Fragment as h, renderList as W, createBlock as g, createCommentVNode as F, normalizeStyle as I, 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-BZdgw5zR.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 t = 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 t.flat && o > 0 ? "border-t border-neutral-200" : "";
|
|
26
|
-
}
|
|
27
|
-
function w(o) {
|
|
28
|
-
var r;
|
|
29
|
-
if (!t.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 m(o, r) {
|
|
40
|
-
return o.id || `container_${r}`;
|
|
41
|
-
}
|
|
42
|
-
function p(o, r) {
|
|
43
|
-
return k[m(o, r)] ?? 0;
|
|
44
|
-
}
|
|
45
|
-
function L(o, r, n) {
|
|
46
|
-
return p(o, r) === n || v[`${m(o, r)}_${n}`];
|
|
47
|
-
}
|
|
48
|
-
function M(o, r, n) {
|
|
49
|
-
if (n === null) return;
|
|
50
|
-
const a = m(o, r);
|
|
51
|
-
v[`${a}_${p(o, r)}`] = !0, k[a] = Number(n), v[`${a}_${n}`] = !0;
|
|
52
|
-
}
|
|
53
|
-
return (o, r) => {
|
|
54
|
-
const n = b("FmTabs"), a = b("TileGrid", !0), $ = b("FmCard");
|
|
55
|
-
return i(!0), d(h, null, W(t.tiles, (e, s) => {
|
|
56
|
-
var S, B, T;
|
|
57
|
-
return i(), d(h, {
|
|
58
|
-
key: `tile_${t.reportId}_${e.id || s}`
|
|
59
|
-
}, [
|
|
60
|
-
e.tab && ((S = e.tiles) != null && S.length) ? (i(), g($, {
|
|
61
|
-
key: 0,
|
|
62
|
-
variant: "outlined",
|
|
63
|
-
class: f(["p-0 overflow-hidden flex flex-col", [u(e), _(s)]]),
|
|
64
|
-
style: I(w(e))
|
|
65
|
-
}, {
|
|
66
|
-
default: V(() => [
|
|
67
|
-
c(n, {
|
|
68
|
-
class: "px-16 pt-8 shrink-0",
|
|
69
|
-
"model-value": String(p(e, s)),
|
|
70
|
-
items: G(e),
|
|
71
|
-
"onUpdate:modelValue": (l) => M(e, s, l)
|
|
72
|
-
}, null, 8, ["model-value", "items", "onUpdate:modelValue"]),
|
|
73
|
-
z("div", O, [
|
|
74
|
-
(i(!0), d(h, null, W(e.tiles, (l, x) => {
|
|
75
|
-
var C;
|
|
76
|
-
return i(), d(h, {
|
|
77
|
-
key: `tab_${m(e, s)}_${x}`
|
|
78
|
-
}, [
|
|
79
|
-
L(e, s, x) ? H((i(), d("div", Q, [
|
|
80
|
-
c(a, {
|
|
81
|
-
tiles: (C = l.tiles) != null && C.length ? l.tiles : [l],
|
|
82
|
-
"report-id": t.reportId,
|
|
83
|
-
"leaf-index-by-id": t.leafIndexById,
|
|
84
|
-
"hide-export": t.hideExport,
|
|
85
|
-
"custom-screen-width": t.customScreenWidth,
|
|
86
|
-
flat: !0
|
|
87
|
-
}, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
|
|
88
|
-
], 512)), [
|
|
89
|
-
[K, p(e, s) === x]
|
|
90
|
-
]) : F("", !0)
|
|
91
|
-
], 64);
|
|
92
|
-
}), 128))
|
|
93
|
-
])
|
|
94
|
-
]),
|
|
95
|
-
_: 2
|
|
96
|
-
}, 1032, ["class", "style"])) : (B = e.tiles) != null && B.length && !t.flat ? (i(), g($, {
|
|
97
|
-
key: 1,
|
|
98
|
-
variant: "outlined",
|
|
99
|
-
class: f(["p-0 overflow-hidden", u(e)]),
|
|
100
|
-
style: I(w(e))
|
|
101
|
-
}, {
|
|
102
|
-
default: V(() => [
|
|
103
|
-
z("div", R, [
|
|
104
|
-
c(a, {
|
|
105
|
-
tiles: e.tiles,
|
|
106
|
-
"report-id": t.reportId,
|
|
107
|
-
"leaf-index-by-id": t.leafIndexById,
|
|
108
|
-
"hide-export": t.hideExport,
|
|
109
|
-
"custom-screen-width": t.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 = e.tiles) != null && T.length ? (i(), d("div", {
|
|
116
|
-
key: 2,
|
|
117
|
-
class: f(["grid grid-cols-12", [u(e), _(s)]])
|
|
118
|
-
}, [
|
|
119
|
-
c(a, {
|
|
120
|
-
tiles: e.tiles,
|
|
121
|
-
"report-id": t.reportId,
|
|
122
|
-
"leaf-index-by-id": t.leafIndexById,
|
|
123
|
-
"hide-export": t.hideExport,
|
|
124
|
-
"custom-screen-width": t.customScreenWidth,
|
|
125
|
-
flat: !0
|
|
126
|
-
}, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
|
|
127
|
-
], 2)) : e.widget && t.flat ? (i(), d("div", {
|
|
128
|
-
key: 3,
|
|
129
|
-
class: f([u(e), _(s)])
|
|
130
|
-
}, [
|
|
131
|
-
c(D, {
|
|
132
|
-
"model-value": e,
|
|
133
|
-
index: t.leafIndexById[e.id] ?? s,
|
|
134
|
-
"hide-export": t.hideExport,
|
|
135
|
-
"custom-screen-width": t.customScreenWidth,
|
|
136
|
-
flat: !0
|
|
137
|
-
}, null, 8, ["model-value", "index", "hide-export", "custom-screen-width"])
|
|
138
|
-
], 2)) : e.widget ? (i(), g(D, {
|
|
139
|
-
key: 4,
|
|
140
|
-
"model-value": e,
|
|
141
|
-
index: t.leafIndexById[e.id] ?? s,
|
|
142
|
-
"hide-export": t.hideExport,
|
|
143
|
-
"custom-screen-width": t.customScreenWidth
|
|
144
|
-
}, null, 8, ["model-value", "index", "hide-export", "custom-screen-width"])) : F("", !0)
|
|
145
|
-
], 64);
|
|
146
|
-
}), 128);
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
export {
|
|
151
|
-
ee as _
|
|
152
|
-
};
|