@feedmepos/mf-report 5.33.3-beta.0 → 5.34.0-beta.1
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-GzjtZ_d7.js → App-DyrakazI.js} +98 -97
- package/dist/{DateRangeSelect-CfV_WX9B.js → DateRangeSelect-D5SGi6ca.js} +67 -67
- package/dist/{Default.vue_vue_type_script_setup_true_lang-Y9S0SZ7o.js → Default.vue_vue_type_script_setup_true_lang-DsTRZa_6.js} +3 -3
- package/dist/DigestListView-BnkDRa7x.js +876 -0
- package/dist/{DigestReaderView-C1aKtovl.js → DigestReaderView-ByISB4qT.js} +63 -63
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CH2pf4XK.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BKNNtuyG.js} +733 -733
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DJ-LIqFg.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DHrnVaog.js} +526 -526
- package/dist/{InsightView-O5pzXY-g.js → InsightView-CUBTqwTI.js} +88 -88
- package/dist/{Integration-DHtuuAEx.js → Integration-WDbqUebw.js} +30 -30
- package/dist/{Integrations-xK1WbyH5.js → Integrations-C5_nERZt.js} +10 -10
- package/dist/{Layout-QoN7zexW.js → Layout-BqzoK8Mg.js} +3 -3
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-DEeDj0JI.js → LocationSelect.vue_vue_type_script_setup_true_lang-kvdk_gEw.js} +306 -306
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-tmHI7t6B.js → MenuTab.vue_vue_type_script_setup_true_lang-B8uHS4bV.js} +6 -6
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DNrIAtGk.js → NavigationTab.vue_vue_type_script_setup_true_lang-CpexikuB.js} +12784 -11760
- package/dist/{OverviewView-CcqkLuon.js → OverviewView-mOEI9DAV.js} +7 -7
- package/dist/{Report-CcGTeCCn.js → Report-DmbTzjbj.js} +12 -12
- package/dist/{ReportCanvasView-C7CJq01e.js → ReportCanvasView-BqZ38Tsk.js} +426 -426
- package/dist/{ReportEditor-Vu592FeV.js → ReportEditor-8oAVfFdY.js} +32 -32
- package/dist/{ReportView-D-J7pmp5.js → ReportView-B6nE3qwV.js} +13 -13
- package/dist/{ReportViewRoute-TSaFpVVj.js → ReportViewRoute-DqXbM93B.js} +5 -5
- package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js +137 -0
- package/dist/{Setting-tUrQLnqy.js → Setting-C01x-O-V.js} +6 -6
- package/dist/{Template-DRdVU80G.js → Template-VyBWHUXE.js} +80 -80
- package/dist/{TileEditor-CIR7d_cP.js → TileEditor-DICyBR1o.js} +1566 -1566
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-BtHZMHPR.js → TilePageStack.vue_vue_type_script_setup_true_lang-Dyaao76o.js} +82 -82
- package/dist/{TransitionFade-7EvXhuHo.js → TransitionFade-kXCDPEMQ.js} +170 -170
- package/dist/{XeroRedirect-CuTrP62C.js → XeroRedirect-D4sHbZe7.js} +3 -3
- package/dist/_plugin-vue_export-helper-Bx7s49ra.js +2828 -0
- package/dist/{app-1dD87x1L.js → app-BQDKX7NB.js} +5688 -13890
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-DvK7K5ca.js → formatChartData.worker-Cpgnh20a.js} +62 -62
- package/dist/assets/{processTableData.worker-C3l4iUXL.js → processTableData.worker-B7I6PElJ.js} +64 -64
- package/dist/{chart-BywXiz4O.js → chart-DU0N9V2o.js} +7 -4
- package/dist/currency-8SmajsvB.js +12 -0
- package/dist/index-BQ8NJuCA.js +24722 -0
- package/dist/{report-B547gOvv.js → report-CcXsPATD.js} +23 -23
- package/dist/style.css +1 -1
- package/dist/{useDigestFont-CVDCu0Is.js → useDigestFont-CjZZOIRM.js} +80 -80
- package/dist/{useReportCanvasPanel-DLt-AkFQ.js → useReportCanvasPanel-dWlB_xvo.js} +975 -976
- package/dist/{useRestaurantPermission-BtRjWi-p.js → useRestaurantPermission-D3G7ET0Z.js} +2 -2
- package/package.json +11 -11
- package/dist/DigestListView-DJQikkEC.js +0 -876
- package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js +0 -137
- package/dist/_plugin-vue_export-helper-C6QDExPN.js +0 -2718
- package/dist/currency-BXCfWg4A.js +0 -12
- package/dist/index-B_yQyaGT.js +0 -25511
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as R, reactive as J, resolveComponent as B,
|
|
2
|
-
import { u as X } from "./_plugin-vue_export-helper-
|
|
3
|
-
import { k as ae, _ as O, l as ce, m as le, n as ue, t as pe, p as me } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { i as fe, F as D, W as ye } from "./report-
|
|
1
|
+
import { defineComponent as R, reactive as J, resolveComponent as B, openBlock as n, createElementBlock as s, Fragment as I, renderList as P, unref as re, createBlock as V, normalizeStyle as w, normalizeClass as l, withCtx as C, toDisplayString as T, createCommentVNode as y, createVNode as u, mergeProps as ne, createSlots as ie, createElementVNode as $, withDirectives as G, vShow as L, ref as se, watch as de } from "vue";
|
|
2
|
+
import { u as X } from "./_plugin-vue_export-helper-Bx7s49ra.js";
|
|
3
|
+
import { k as ae, _ as O, l as ce, m as le, n as ue, t as pe, p as me } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BKNNtuyG.js";
|
|
4
|
+
import { i as fe, F as D, W as ye } from "./report-CcXsPATD.js";
|
|
5
5
|
import { useBreakpoints as he } from "@feedmepos/ui-library";
|
|
6
6
|
import { r as Y } from "./i18n-DbyciK4x.js";
|
|
7
|
-
const
|
|
7
|
+
const ve = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "px-16 pt-16 shrink-0"
|
|
10
|
-
},
|
|
10
|
+
}, _e = { class: "flex-1 min-h-0 overflow-y-auto" }, ge = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "grid grid-cols-12"
|
|
13
13
|
}, xe = {
|
|
@@ -24,81 +24,81 @@ const _e = {
|
|
|
24
24
|
flat: { type: Boolean }
|
|
25
25
|
},
|
|
26
26
|
setup(W) {
|
|
27
|
-
const t = W, { breakpoints:
|
|
28
|
-
function
|
|
27
|
+
const t = W, { breakpoints: _ } = he(), { t: E, te: c } = X();
|
|
28
|
+
function g(o) {
|
|
29
29
|
var i;
|
|
30
|
-
const
|
|
31
|
-
return
|
|
30
|
+
const r = ((i = o.size) == null ? void 0 : i.width) ?? 12;
|
|
31
|
+
return _.value.lg || _.value.md ? ce(r) : _.value.sm ? le(r) : ue(r);
|
|
32
32
|
}
|
|
33
|
-
function x(
|
|
34
|
-
return t.flat &&
|
|
33
|
+
function x(o) {
|
|
34
|
+
return t.flat && o > 0 ? "border-t border-neutral-200" : "";
|
|
35
35
|
}
|
|
36
|
-
function p(
|
|
37
|
-
var
|
|
36
|
+
function p(o) {
|
|
37
|
+
var r;
|
|
38
38
|
if (!t.flat)
|
|
39
|
-
return { height: `${pe(((
|
|
39
|
+
return { height: `${pe(((r = o.size) == null ? void 0 : r.height) ?? 6)}px` };
|
|
40
40
|
}
|
|
41
|
-
function a(
|
|
41
|
+
function a(o, r, i, v) {
|
|
42
42
|
return {
|
|
43
|
-
fontSize:
|
|
44
|
-
fontWeight:
|
|
43
|
+
fontSize: o ? `${o}px` : void 0,
|
|
44
|
+
fontWeight: r ? "700" : void 0,
|
|
45
45
|
fontStyle: i ? "italic" : void 0,
|
|
46
|
-
textDecoration:
|
|
46
|
+
textDecoration: v ? "underline" : void 0
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
const h = J({}), f = J({});
|
|
50
|
-
function U(
|
|
51
|
-
var
|
|
52
|
-
if (
|
|
53
|
-
if (((
|
|
54
|
-
return
|
|
50
|
+
function U(o) {
|
|
51
|
+
var r;
|
|
52
|
+
if (o.tabIcon !== void 0) return o.tabIcon || void 0;
|
|
53
|
+
if (((r = o.widget) == null ? void 0 : r.type) === ye.Scorecard && o.widget.config.titleIcon !== "")
|
|
54
|
+
return o.widget.config.titleIcon;
|
|
55
55
|
}
|
|
56
|
-
function Z(
|
|
57
|
-
var
|
|
58
|
-
return
|
|
56
|
+
function Z(o) {
|
|
57
|
+
var r;
|
|
58
|
+
return o ? o.tabIcon !== void 0 ? o.tabIconSize ?? D.Small : ((r = o.widget) == null ? void 0 : r.config.titleIconSize) ?? D.Small : D.Small;
|
|
59
59
|
}
|
|
60
|
-
function ee(
|
|
61
|
-
var
|
|
62
|
-
if (
|
|
63
|
-
return
|
|
60
|
+
function ee(o) {
|
|
61
|
+
var r;
|
|
62
|
+
if (o)
|
|
63
|
+
return o.tabIcon !== void 0 ? o.tabIconType : (r = o.widget) == null ? void 0 : r.config.titleIconType;
|
|
64
64
|
}
|
|
65
|
-
function te(
|
|
66
|
-
return (
|
|
67
|
-
label:
|
|
65
|
+
function te(o) {
|
|
66
|
+
return (o.tiles ?? []).map((r, i) => ({
|
|
67
|
+
label: r.tabTitle ? Y(E, c, r.tabTitle, "other") : `Tab ${i + 1}`,
|
|
68
68
|
value: String(i),
|
|
69
|
-
icon: U(
|
|
69
|
+
icon: U(r)
|
|
70
70
|
}));
|
|
71
71
|
}
|
|
72
|
-
function F(
|
|
73
|
-
return
|
|
72
|
+
function F(o, r) {
|
|
73
|
+
return o.id || `container_${r}`;
|
|
74
74
|
}
|
|
75
|
-
function S(
|
|
76
|
-
return h[F(
|
|
75
|
+
function S(o, r) {
|
|
76
|
+
return h[F(o, r)] ?? 0;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
return S(
|
|
78
|
+
function oe(o, r, i) {
|
|
79
|
+
return S(o, r) === i || f[`${F(o, r)}_${i}`];
|
|
80
80
|
}
|
|
81
|
-
function M(
|
|
81
|
+
function M(o, r, i) {
|
|
82
82
|
if (i === null) return;
|
|
83
|
-
const
|
|
84
|
-
f[`${
|
|
83
|
+
const v = F(o, r);
|
|
84
|
+
f[`${v}_${S(o, r)}`] = !0, h[v] = Number(i), f[`${v}_${i}`] = !0;
|
|
85
85
|
}
|
|
86
|
-
return (
|
|
87
|
-
const i = B("FmTab"),
|
|
88
|
-
return n(!0),
|
|
86
|
+
return (o, r) => {
|
|
87
|
+
const i = B("FmTab"), v = B("FmTabs"), N = B("TileGrid", !0), H = B("FmCard");
|
|
88
|
+
return n(!0), s(I, null, P(t.tiles, (e, d) => {
|
|
89
89
|
var K, j, q;
|
|
90
|
-
return n(),
|
|
91
|
-
key: `tile_${t.reportId}_${e.id ||
|
|
90
|
+
return n(), s(I, {
|
|
91
|
+
key: `tile_${t.reportId}_${e.id || d}`
|
|
92
92
|
}, [
|
|
93
|
-
|
|
93
|
+
re(fe)(e) && ((K = e.tiles) != null && K.length) ? (n(), V(H, {
|
|
94
94
|
key: 0,
|
|
95
95
|
variant: "outlined",
|
|
96
|
-
class: l(["p-0 overflow-hidden flex flex-col", [
|
|
96
|
+
class: l(["p-0 overflow-hidden flex flex-col", [g(e), x(d)]]),
|
|
97
97
|
style: w(p(e))
|
|
98
98
|
}, {
|
|
99
99
|
default: C(() => [
|
|
100
|
-
e.title || e.description ? (n(),
|
|
101
|
-
e.title ? (n(),
|
|
100
|
+
e.title || e.description ? (n(), s("div", ve, [
|
|
101
|
+
e.title ? (n(), s("p", {
|
|
102
102
|
key: 0,
|
|
103
103
|
class: l(["fm-typo-en-body-sm-400", { "text-fm-color-typo-secondary": !(e.titleBold ?? !0) }]),
|
|
104
104
|
style: w(
|
|
@@ -110,7 +110,7 @@ const _e = {
|
|
|
110
110
|
)
|
|
111
111
|
)
|
|
112
112
|
}, T(e.title), 7)) : y("", !0),
|
|
113
|
-
e.description ? (n(),
|
|
113
|
+
e.description ? (n(), s("p", {
|
|
114
114
|
key: 1,
|
|
115
115
|
class: l(["mt-4 fm-typo-en-body-sm-400", { "text-fm-color-typo-secondary": !e.descriptionBold }]),
|
|
116
116
|
style: w(
|
|
@@ -123,16 +123,16 @@ const _e = {
|
|
|
123
123
|
)
|
|
124
124
|
}, T(e.description), 7)) : y("", !0)
|
|
125
125
|
])) : y("", !0),
|
|
126
|
-
u(
|
|
126
|
+
u(v, {
|
|
127
127
|
class: "px-16 pt-8 shrink-0",
|
|
128
|
-
"model-value": String(S(e,
|
|
128
|
+
"model-value": String(S(e, d)),
|
|
129
129
|
items: te(e),
|
|
130
|
-
"onUpdate:modelValue": (m) => M(e,
|
|
130
|
+
"onUpdate:modelValue": (m) => M(e, d, m)
|
|
131
131
|
}, {
|
|
132
132
|
default: C(({ icon: m, tabsProps: k, ...b }) => [
|
|
133
133
|
u(i, ne({ ref_for: !0 }, { ...k, ...b }, {
|
|
134
|
-
"model-value": String(S(e,
|
|
135
|
-
"onUpdate:modelValue": (z) => M(e,
|
|
134
|
+
"model-value": String(S(e, d)),
|
|
135
|
+
"onUpdate:modelValue": (z) => M(e, d, z)
|
|
136
136
|
}), ie({ _: 2 }, [
|
|
137
137
|
m ? {
|
|
138
138
|
name: "prepend",
|
|
@@ -152,13 +152,13 @@ const _e = {
|
|
|
152
152
|
]),
|
|
153
153
|
_: 2
|
|
154
154
|
}, 1032, ["model-value", "items", "onUpdate:modelValue"]),
|
|
155
|
-
$("div",
|
|
156
|
-
(n(!0),
|
|
155
|
+
$("div", _e, [
|
|
156
|
+
(n(!0), s(I, null, P(e.tiles, (m, k) => {
|
|
157
157
|
var b;
|
|
158
|
-
return n(),
|
|
159
|
-
key: `tab_${F(e,
|
|
158
|
+
return n(), s(I, {
|
|
159
|
+
key: `tab_${F(e, d)}_${k}`
|
|
160
160
|
}, [
|
|
161
|
-
|
|
161
|
+
oe(e, d, k) ? G((n(), s("div", ge, [
|
|
162
162
|
u(N, {
|
|
163
163
|
tiles: (b = m.tiles) != null && b.length && !m.widget ? m.tiles : [m],
|
|
164
164
|
"report-id": t.reportId,
|
|
@@ -168,7 +168,7 @@ const _e = {
|
|
|
168
168
|
flat: !0
|
|
169
169
|
}, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
|
|
170
170
|
], 512)), [
|
|
171
|
-
[L, S(e,
|
|
171
|
+
[L, S(e, d) === k]
|
|
172
172
|
]) : y("", !0)
|
|
173
173
|
], 64);
|
|
174
174
|
}), 128))
|
|
@@ -178,12 +178,12 @@ const _e = {
|
|
|
178
178
|
}, 1032, ["class", "style"])) : !e.widget && ((j = e.tiles) != null && j.length) && !t.flat ? (n(), V(H, {
|
|
179
179
|
key: 1,
|
|
180
180
|
variant: "outlined",
|
|
181
|
-
class: l(["p-0 overflow-hidden",
|
|
181
|
+
class: l(["p-0 overflow-hidden", g(e)]),
|
|
182
182
|
style: w(p(e))
|
|
183
183
|
}, {
|
|
184
184
|
default: C(() => [
|
|
185
|
-
e.title || e.description ? (n(),
|
|
186
|
-
e.title ? (n(),
|
|
185
|
+
e.title || e.description ? (n(), s("div", xe, [
|
|
186
|
+
e.title ? (n(), s("p", {
|
|
187
187
|
key: 0,
|
|
188
188
|
class: l(["fm-typo-en-body-sm-400", { "text-fm-color-typo-secondary": !(e.titleBold ?? !0) }]),
|
|
189
189
|
style: w(
|
|
@@ -195,7 +195,7 @@ const _e = {
|
|
|
195
195
|
)
|
|
196
196
|
)
|
|
197
197
|
}, T(e.title), 7)) : y("", !0),
|
|
198
|
-
e.description ? (n(),
|
|
198
|
+
e.description ? (n(), s("p", {
|
|
199
199
|
key: 1,
|
|
200
200
|
class: l(["mt-4 fm-typo-en-body-sm-400", { "text-fm-color-typo-secondary": !e.descriptionBold }]),
|
|
201
201
|
style: w(
|
|
@@ -220,9 +220,9 @@ const _e = {
|
|
|
220
220
|
])
|
|
221
221
|
]),
|
|
222
222
|
_: 2
|
|
223
|
-
}, 1032, ["class", "style"])) : !e.widget && ((q = e.tiles) != null && q.length) ? (n(),
|
|
223
|
+
}, 1032, ["class", "style"])) : !e.widget && ((q = e.tiles) != null && q.length) ? (n(), s("div", {
|
|
224
224
|
key: 2,
|
|
225
|
-
class: l(["grid grid-cols-12", [
|
|
225
|
+
class: l(["grid grid-cols-12", [g(e), x(d)]])
|
|
226
226
|
}, [
|
|
227
227
|
u(N, {
|
|
228
228
|
tiles: e.tiles,
|
|
@@ -232,14 +232,14 @@ const _e = {
|
|
|
232
232
|
"custom-screen-width": t.customScreenWidth,
|
|
233
233
|
flat: !0
|
|
234
234
|
}, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
|
|
235
|
-
], 2)) : e.widget && t.flat ? (n(),
|
|
235
|
+
], 2)) : e.widget && t.flat ? (n(), s("div", {
|
|
236
236
|
key: 3,
|
|
237
|
-
class: l([
|
|
237
|
+
class: l([g(e), x(d)])
|
|
238
238
|
}, [
|
|
239
239
|
u(O, {
|
|
240
240
|
"model-value": e,
|
|
241
241
|
"report-id": t.reportId,
|
|
242
|
-
index: t.leafIndexById[e.id] ??
|
|
242
|
+
index: t.leafIndexById[e.id] ?? d,
|
|
243
243
|
"hide-export": t.hideExport,
|
|
244
244
|
"custom-screen-width": t.customScreenWidth,
|
|
245
245
|
flat: !0
|
|
@@ -248,7 +248,7 @@ const _e = {
|
|
|
248
248
|
key: 4,
|
|
249
249
|
"model-value": e,
|
|
250
250
|
"report-id": t.reportId,
|
|
251
|
-
index: t.leafIndexById[e.id] ??
|
|
251
|
+
index: t.leafIndexById[e.id] ?? d,
|
|
252
252
|
"hide-export": t.hideExport,
|
|
253
253
|
"custom-screen-width": t.customScreenWidth
|
|
254
254
|
}, null, 8, ["model-value", "report-id", "index", "hide-export", "custom-screen-width"])) : y("", !0)
|
|
@@ -267,26 +267,26 @@ const _e = {
|
|
|
267
267
|
customScreenWidth: {}
|
|
268
268
|
},
|
|
269
269
|
setup(W) {
|
|
270
|
-
const t = W, { t:
|
|
270
|
+
const t = W, { t: _, te: E } = X(), c = se([]);
|
|
271
271
|
me({
|
|
272
272
|
openPage: (p) => {
|
|
273
273
|
var a;
|
|
274
274
|
((a = c.value[c.value.length - 1]) == null ? void 0 : a.id) !== p.id && c.value.push(p);
|
|
275
275
|
}
|
|
276
276
|
});
|
|
277
|
-
function
|
|
277
|
+
function g() {
|
|
278
278
|
c.value.pop();
|
|
279
279
|
}
|
|
280
280
|
function x(p) {
|
|
281
281
|
var h;
|
|
282
282
|
const a = p.tabTitle || ((h = p.widget) == null ? void 0 : h.title) || "";
|
|
283
|
-
return a ? Y(
|
|
283
|
+
return a ? Y(_, E, a, "other") : _("report.common.page");
|
|
284
284
|
}
|
|
285
|
-
return
|
|
285
|
+
return de([() => t.reportId, () => t.tiles], () => {
|
|
286
286
|
c.value = [];
|
|
287
287
|
}), (p, a) => {
|
|
288
288
|
const h = B("FmButton");
|
|
289
|
-
return n(),
|
|
289
|
+
return n(), s(I, null, [
|
|
290
290
|
G($("div", {
|
|
291
291
|
class: l(["grid grid-cols-12", t.gridClass])
|
|
292
292
|
}, [
|
|
@@ -300,7 +300,7 @@ const _e = {
|
|
|
300
300
|
], 2), [
|
|
301
301
|
[L, c.value.length === 0]
|
|
302
302
|
]),
|
|
303
|
-
(n(!0),
|
|
303
|
+
(n(!0), s(I, null, P(c.value, (f, U) => G((n(), s("div", {
|
|
304
304
|
key: `page_${f.id}`,
|
|
305
305
|
class: l(["grid grid-cols-12", t.gridClass])
|
|
306
306
|
}, [
|
|
@@ -309,7 +309,7 @@ const _e = {
|
|
|
309
309
|
icon: "arrow_back",
|
|
310
310
|
variant: "tertiary",
|
|
311
311
|
class: "-ml-8",
|
|
312
|
-
onClick:
|
|
312
|
+
onClick: g
|
|
313
313
|
}),
|
|
314
314
|
$("p", {
|
|
315
315
|
class: "fm-typo-en-title-sm-600 line-clamp-1 min-w-0 break-all",
|