@feedmepos/mf-report 5.32.3 → 5.33.0-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-ZE1kA1jU.js +358 -0
- package/dist/{DateRangeSelect-6ojNsYQf.js → DateRangeSelect-B10B3ZaN.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-DinIx-4F.js → Default.vue_vue_type_script_setup_true_lang-dtu8Gum_.js} +1 -1
- package/dist/{DigestListView-Rv4nvsme.js → DigestListView-CqyxDNR_.js} +3 -3
- package/dist/{DigestReaderView-Cy5rWEDn.js → DigestReaderView-ILhtZ6ke.js} +4 -4
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CrRev99v.js → DynamicWidget.vue_vue_type_script_setup_true_lang-Dk6NA-nL.js} +7 -7
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CaFtkGgu.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Do8UrF5k.js} +753 -753
- package/dist/{InsightView-SOS32a9h.js → InsightView-cZx4gAxG.js} +5 -5
- package/dist/{Integration-CWo6GL7F.js → Integration-CgEy3mhX.js} +3 -3
- package/dist/{Integrations-T1M6Fbke.js → Integrations-BTy2r5Au.js} +2 -2
- package/dist/{Layout-CNhJDEmI.js → Layout-B3MnHb6_.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-DgFWhBfv.js → LocationSelect.vue_vue_type_script_setup_true_lang-DqPi50ty.js} +1752 -1743
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BltVG4Ta.js → MenuTab.vue_vue_type_script_setup_true_lang-DGMEWWMl.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-B70bamMw.js → NavigationTab.vue_vue_type_script_setup_true_lang-CS-gvEAf.js} +3187 -3187
- package/dist/{OverviewView-DM_qaGcz.js → OverviewView-CnsSS3dA.js} +5 -5
- package/dist/Report-aCXfcgbD.js +722 -0
- package/dist/{ReportCanvasView-0680UK2i.js → ReportCanvasView-DJiD7cHf.js} +5 -5
- package/dist/{ReportEditor-9gIhhaWp.js → ReportEditor-D6VOw4xg.js} +7 -7
- package/dist/{ReportView-B1a3q6Ea.js → ReportView-DHxQQHdv.js} +64 -62
- package/dist/{ReportViewRoute-DW-K8Abr.js → ReportViewRoute-R7QAQx-y.js} +2 -2
- package/dist/{Setting-BikzZySl.js → Setting-C3q0gsVs.js} +3 -3
- package/dist/Template-DulgV4HH.js +557 -0
- package/dist/{TileEditor-B21SIE0n.js → TileEditor-B04Vkqd4.js} +6 -6
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-BH2WdtF-.js → TilePageStack.vue_vue_type_script_setup_true_lang-Cn6yji3z.js} +2 -2
- package/dist/{TransitionFade-DNtxHJq8.js → TransitionFade-B0IFIQeH.js} +6 -6
- package/dist/{app-DSxKqUxD.js → app-60Wbr-Yr.js} +2517 -2449
- package/dist/app.js +2 -2
- package/dist/assets/{formatChartData.worker-McooHFG-.js → formatChartData.worker-o6kHvamD.js} +4 -4
- package/dist/assets/{processTableData.worker-B6m0dNAb.js → processTableData.worker-B7UZDrcg.js} +4 -4
- package/dist/{currency-BJiFhFc7.js → currency-JlsW9tkr.js} +1 -1
- package/dist/{index-BdZ-RSDt.js → index-BcttP7wp.js} +15 -15
- package/dist/{report-DcuMyUEc.js → report-CN9S4Zga.js} +132 -132
- package/dist/style.css +1 -1
- package/dist/{useDigestFont-DYDD96g_.js → useDigestFont-CyF_Sl2L.js} +1 -1
- package/dist/{useReportCanvasPanel-6D4KNid_.js → useReportCanvasPanel-DHUVpFYD.js} +3 -3
- package/dist/{useRestaurantPermission-5C-J7LtV.js → useRestaurantPermission-BjxYCII1.js} +1 -1
- package/package.json +2 -2
- package/dist/App-Ct4zKRmu.js +0 -339
- package/dist/Report-BpCqn_xs.js +0 -712
- package/dist/Template-DKUNK3A7.js +0 -522
|
@@ -1,522 +0,0 @@
|
|
|
1
|
-
import { defineComponent as ie, computed as u, resolveComponent as v, createElementBlock as A, openBlock as _, renderSlot as Ve, createVNode as n, withCtx as s, createCommentVNode as q, createElementVNode as i, toDisplayString as d, ref as b, h as p, onMounted as Le, createBlock as R, unref as l, normalizeStyle as Se, normalizeClass as C, withDirectives as ae, Fragment as $e, renderList as Ie, withModifiers as re, vShow as ne } from "vue";
|
|
2
|
-
import { a as Re } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
3
|
-
import { u as me } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
4
|
-
import { _ as Pe } from "./Default.vue_vue_type_script_setup_true_lang-DinIx-4F.js";
|
|
5
|
-
import { u as ze } from "./global-loader-BuxFfehu.js";
|
|
6
|
-
import { u as De } from "./message-dialog-UoMWOnil.js";
|
|
7
|
-
import { u as Ne } from "./report-DcuMyUEc.js";
|
|
8
|
-
import { r as se } from "./i18n-DbyciK4x.js";
|
|
9
|
-
import { useBreakpoints as Be, useSnackbar as Me, components as Ee, FmButtonColorThemeVariant as Ke } from "@feedmepos/ui-library";
|
|
10
|
-
import { useRouter as Ue, useRoute as je } from "vue-router";
|
|
11
|
-
import { storeToRefs as He } from "pinia";
|
|
12
|
-
import { j as Oe } from "./app-DSxKqUxD.js";
|
|
13
|
-
const Ae = { class: "flex flex-col h-full" }, qe = ["src"], Ge = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Je = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Qe = /* @__PURE__ */ ie({
|
|
14
|
-
__name: "NoTemplate",
|
|
15
|
-
props: {
|
|
16
|
-
title: { default: "report.view.template.noTemplates" },
|
|
17
|
-
subTitle: { default: "report.view.template.noTemplatesHint" },
|
|
18
|
-
svgPath: { default: "" }
|
|
19
|
-
},
|
|
20
|
-
setup(G) {
|
|
21
|
-
const { t: w, te: x } = me(), g = G;
|
|
22
|
-
function m(f) {
|
|
23
|
-
return x(f) ? w(f) : f;
|
|
24
|
-
}
|
|
25
|
-
const t = u(() => m(g.title)), k = u(() => m(g.subTitle));
|
|
26
|
-
return (f, J) => {
|
|
27
|
-
const c = v("FmCard");
|
|
28
|
-
return _(), A("div", Ae, [
|
|
29
|
-
Ve(f.$slots, "menu"),
|
|
30
|
-
n(c, {
|
|
31
|
-
class: "p-24 h-full flex flex-col gap-2 items-center justify-center",
|
|
32
|
-
variant: "flat"
|
|
33
|
-
}, {
|
|
34
|
-
default: s(() => [
|
|
35
|
-
f.svgPath ? (_(), A("img", {
|
|
36
|
-
key: 0,
|
|
37
|
-
src: f.svgPath,
|
|
38
|
-
alt: "No data illustration",
|
|
39
|
-
class: "mb-4 w-80 h-80"
|
|
40
|
-
}, null, 8, qe)) : q("", !0),
|
|
41
|
-
i("p", Ge, d(t.value), 1),
|
|
42
|
-
i("p", Je, d(k.value), 1)
|
|
43
|
-
]),
|
|
44
|
-
_: 1
|
|
45
|
-
})
|
|
46
|
-
]);
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
}), We = { class: "flex items-center gap-2" }, Xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ye = { class: "w-[343px]" }, Ze = { class: "flex items-center gap-2" }, et = { class: "fm-typo-en-body-sm-600" }, tt = { class: "fm-typo-en-body-md-600" }, ot = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, lt = { class: "fm-typo-en-title-sm-600" }, at = { class: "flex flex-col gap-3" }, rt = { class: "flex flex-col gap-1" }, nt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, _t = /* @__PURE__ */ ie({
|
|
50
|
-
__name: "Template",
|
|
51
|
-
setup(G) {
|
|
52
|
-
const w = Ne(), { isAdmin: x, canManageTemplate: g } = Oe(), { breakpoints: m } = Be(), { t, te: k } = me(), f = Ue(), J = je(), c = Me(), { promptLoader: Q } = ze(), { promptMessage: W } = De(), { FmButton: N, FmMenu: B, FmMenuItem: F, FmIcon: M, FmChip: V, FmSearch: ce, FmTooltip: pe } = Ee, { editingReport: ue, reportTemplates: de, categories: fe } = He(w), E = u(() => fe.value ?? []), X = u(() => de.value ?? []), K = u(() => [
|
|
53
|
-
{
|
|
54
|
-
label: t("report.common.all"),
|
|
55
|
-
value: void 0
|
|
56
|
-
},
|
|
57
|
-
...E.value.map((o) => ({
|
|
58
|
-
label: U(o.name),
|
|
59
|
-
value: o.id
|
|
60
|
-
}))
|
|
61
|
-
]), P = b(void 0), ve = u(
|
|
62
|
-
() => {
|
|
63
|
-
var o, e;
|
|
64
|
-
return ((o = K.value.find((a) => a.value === P.value)) == null ? void 0 : o.label) ?? ((e = K.value[0]) == null ? void 0 : e.label) ?? "";
|
|
65
|
-
}
|
|
66
|
-
), z = b(!1), L = b(null), h = b(""), S = b(""), $ = b(""), I = b(!1), ge = u(() => [
|
|
67
|
-
{
|
|
68
|
-
label: t("report.common.uncategorized"),
|
|
69
|
-
value: ""
|
|
70
|
-
},
|
|
71
|
-
...E.value.map((o) => ({
|
|
72
|
-
label: U(o.name),
|
|
73
|
-
value: o.id
|
|
74
|
-
}))
|
|
75
|
-
]), D = b(""), T = u(() => {
|
|
76
|
-
const o = D.value.toLowerCase(), e = t("report.common.uncategorized");
|
|
77
|
-
return X.value.map((a) => {
|
|
78
|
-
const y = E.value.find((H) => H.id === a.category);
|
|
79
|
-
return {
|
|
80
|
-
id: a.id,
|
|
81
|
-
name: se(t, k, Y(a), "other"),
|
|
82
|
-
description: se(t, k, a.description || "", "other"),
|
|
83
|
-
categoryId: a.category || "",
|
|
84
|
-
categoryLabel: y ? U(y.name) : e,
|
|
85
|
-
isOwner: a.isOwner ?? !1,
|
|
86
|
-
isInternal: a.isInternal ?? !1
|
|
87
|
-
};
|
|
88
|
-
}).filter((a) => P.value && a.categoryId !== P.value ? !1 : !D.value.trim() || a.name.toLowerCase().includes(o) || a.description.toLowerCase().includes(o));
|
|
89
|
-
}), ye = u(
|
|
90
|
-
() => T.value.map(
|
|
91
|
-
(o) => `${o.id}${o.name}${o.categoryLabel}${o.isInternal}`
|
|
92
|
-
).join("")
|
|
93
|
-
), be = u(() => [
|
|
94
|
-
{
|
|
95
|
-
accessorKey: "name",
|
|
96
|
-
header: t("report.common.name"),
|
|
97
|
-
enableSorting: !1,
|
|
98
|
-
cell: (o) => {
|
|
99
|
-
const e = o.row.original;
|
|
100
|
-
return p("div", { class: "flex items-center gap-2" }, [
|
|
101
|
-
p("span", o.getValue()),
|
|
102
|
-
...e.isInternal ? [_e()] : []
|
|
103
|
-
]);
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
accessorKey: "categoryLabel",
|
|
108
|
-
header: t("report.common.category"),
|
|
109
|
-
enableSorting: !1,
|
|
110
|
-
meta: {
|
|
111
|
-
width: "100px"
|
|
112
|
-
},
|
|
113
|
-
cell: (o) => p(
|
|
114
|
-
V,
|
|
115
|
-
{
|
|
116
|
-
class: `${o.getValue() !== t("report.common.uncategorized") ? "bg-fm-color-system-info-100 text-fm-color-typo-info" : "text-fm-color-typo-secondary"} fm-typo-en-body-sm-600`,
|
|
117
|
-
compact: !0
|
|
118
|
-
},
|
|
119
|
-
{ default: () => o.getValue() }
|
|
120
|
-
)
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
accessorKey: "description",
|
|
124
|
-
header: t("report.common.description"),
|
|
125
|
-
enableSorting: !1,
|
|
126
|
-
cell: (o) => p("span", o.getValue())
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
accessorKey: "",
|
|
130
|
-
id: "Action",
|
|
131
|
-
header: "",
|
|
132
|
-
meta: {
|
|
133
|
-
width: "0px"
|
|
134
|
-
},
|
|
135
|
-
cell: (o) => {
|
|
136
|
-
const e = o.row.original, a = !g(e);
|
|
137
|
-
return p(
|
|
138
|
-
"div",
|
|
139
|
-
{
|
|
140
|
-
class: `flex ${m.value.lg || m.value.md ? "justify-end" : ""} items-center`
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
default: () => x.value ? [
|
|
144
|
-
p(
|
|
145
|
-
B,
|
|
146
|
-
{
|
|
147
|
-
stopClickPropagation: !0,
|
|
148
|
-
shift: !0,
|
|
149
|
-
disabled: a
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
default: () => [
|
|
153
|
-
p(F, {
|
|
154
|
-
label: t("report.common.edit"),
|
|
155
|
-
disabled: a,
|
|
156
|
-
onClick: () => ee(e.id)
|
|
157
|
-
}),
|
|
158
|
-
p(F, {
|
|
159
|
-
label: t("report.common.delete"),
|
|
160
|
-
disabled: a,
|
|
161
|
-
onClick: () => te(e.id)
|
|
162
|
-
})
|
|
163
|
-
],
|
|
164
|
-
"menu-button": () => p(N, {
|
|
165
|
-
variant: "tertiary",
|
|
166
|
-
size: "md",
|
|
167
|
-
icon: "more_vert",
|
|
168
|
-
iconColor: Ke.NeutralGray400,
|
|
169
|
-
disabled: a
|
|
170
|
-
})
|
|
171
|
-
}
|
|
172
|
-
)
|
|
173
|
-
] : []
|
|
174
|
-
}
|
|
175
|
-
);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
]);
|
|
179
|
-
function _e() {
|
|
180
|
-
return p(
|
|
181
|
-
V,
|
|
182
|
-
{
|
|
183
|
-
class: "bg-fm-color-system-warning-100 text-fm-color-typo-warning fm-typo-en-body-sm-600",
|
|
184
|
-
compact: !0
|
|
185
|
-
},
|
|
186
|
-
{ default: () => t("report.view.template.internal") }
|
|
187
|
-
);
|
|
188
|
-
}
|
|
189
|
-
function U(o) {
|
|
190
|
-
const e = `report.category.${o}`;
|
|
191
|
-
return k(e) ? t(e) : o;
|
|
192
|
-
}
|
|
193
|
-
function we(o) {
|
|
194
|
-
return o.id;
|
|
195
|
-
}
|
|
196
|
-
function Y(o) {
|
|
197
|
-
return o.name;
|
|
198
|
-
}
|
|
199
|
-
function xe(o) {
|
|
200
|
-
P.value = o;
|
|
201
|
-
}
|
|
202
|
-
function j(o) {
|
|
203
|
-
return X.value.find((e) => we(e) === o);
|
|
204
|
-
}
|
|
205
|
-
function Z(o) {
|
|
206
|
-
const e = j(o);
|
|
207
|
-
if (!e) return;
|
|
208
|
-
const a = {
|
|
209
|
-
...e.report,
|
|
210
|
-
id: "",
|
|
211
|
-
isDefault: !1,
|
|
212
|
-
editable: !0
|
|
213
|
-
}, y = Y(e);
|
|
214
|
-
a.name = `${y} duplicate`, ue.value = a, f.push({
|
|
215
|
-
name: "reportEditor",
|
|
216
|
-
query: J.query
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
function ee(o) {
|
|
220
|
-
if (!x.value) {
|
|
221
|
-
c.open({ message: t("report.messages.noPermission"), type: "error" });
|
|
222
|
-
return;
|
|
223
|
-
}
|
|
224
|
-
const e = j(o);
|
|
225
|
-
if (!e) return;
|
|
226
|
-
if (!g(e)) {
|
|
227
|
-
c.open({ message: t("report.messages.noPermission"), type: "error" });
|
|
228
|
-
return;
|
|
229
|
-
}
|
|
230
|
-
const a = JSON.parse(JSON.stringify(e));
|
|
231
|
-
L.value = a, h.value = a.name || "", S.value = a.description || "", $.value = a.category || "", I.value = a.isInternal ?? !1, z.value = !0;
|
|
232
|
-
}
|
|
233
|
-
async function te(o) {
|
|
234
|
-
if (!x.value) {
|
|
235
|
-
c.open({ message: t("report.messages.noPermission"), type: "error" });
|
|
236
|
-
return;
|
|
237
|
-
}
|
|
238
|
-
const e = j(o);
|
|
239
|
-
if (!e) return;
|
|
240
|
-
if (!g(e)) {
|
|
241
|
-
c.open({ message: t("report.messages.noPermission"), type: "error" });
|
|
242
|
-
return;
|
|
243
|
-
}
|
|
244
|
-
await W({
|
|
245
|
-
title: t("report.messages.deleteTemplate"),
|
|
246
|
-
message: t("report.messages.confirmDelete", { name: e.name })
|
|
247
|
-
}) && await Q(async () => {
|
|
248
|
-
await w.removeReportTemplates(e), c.open({
|
|
249
|
-
message: t("report.messages.deleteSuccess", { name: e.name }),
|
|
250
|
-
type: "success"
|
|
251
|
-
});
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
function oe() {
|
|
255
|
-
z.value = !1, L.value = null, h.value = "", S.value = "", $.value = "", I.value = !1;
|
|
256
|
-
}
|
|
257
|
-
async function he() {
|
|
258
|
-
if (!x.value) {
|
|
259
|
-
c.open({ message: t("report.messages.noPermission"), type: "error" });
|
|
260
|
-
return;
|
|
261
|
-
}
|
|
262
|
-
if (!L.value) return;
|
|
263
|
-
if (!g(L.value)) {
|
|
264
|
-
c.open({ message: t("report.messages.noPermission"), type: "error" });
|
|
265
|
-
return;
|
|
266
|
-
}
|
|
267
|
-
const o = t("report.common.update"), e = {
|
|
268
|
-
...L.value,
|
|
269
|
-
name: h.value,
|
|
270
|
-
description: S.value,
|
|
271
|
-
category: $.value,
|
|
272
|
-
isInternal: I.value
|
|
273
|
-
};
|
|
274
|
-
if (await W({
|
|
275
|
-
title: o,
|
|
276
|
-
message: t("report.messages.confirmAction", {
|
|
277
|
-
action: o,
|
|
278
|
-
name: e.name
|
|
279
|
-
})
|
|
280
|
-
}))
|
|
281
|
-
try {
|
|
282
|
-
await Q(async () => {
|
|
283
|
-
await w.updateReportTemplate(e);
|
|
284
|
-
}), c.open({
|
|
285
|
-
message: t("report.messages.saveSuccess"),
|
|
286
|
-
type: "success"
|
|
287
|
-
}), oe();
|
|
288
|
-
} catch (y) {
|
|
289
|
-
console.error(y), c.open({
|
|
290
|
-
message: t("report.messages.failedToAction", { action: t("report.common.update") }),
|
|
291
|
-
type: "error"
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
return Le(async () => {
|
|
296
|
-
await w.getReportTemplates();
|
|
297
|
-
}), (o, e) => {
|
|
298
|
-
const a = v("FmPageHead"), y = v("FmForm"), H = v("FmListItem"), Te = v("FmList"), Ce = v("FmTable"), le = v("FmTextField"), ke = v("FmSwitch"), Fe = v("FmDialog");
|
|
299
|
-
return _(), R(Pe, null, {
|
|
300
|
-
default: s(() => [
|
|
301
|
-
n(a, {
|
|
302
|
-
title: l(t)("report.view.template.title"),
|
|
303
|
-
class: "h-[68px] fm-typo-en-title-md-600"
|
|
304
|
-
}, {
|
|
305
|
-
title: s(() => [
|
|
306
|
-
i("div", We, [
|
|
307
|
-
i("p", null, d(l(t)("report.view.template.title")), 1),
|
|
308
|
-
n(l(pe), {
|
|
309
|
-
content: l(t)("report.view.template.sharedTooltip"),
|
|
310
|
-
placement: "bottom",
|
|
311
|
-
"z-index": 2e3
|
|
312
|
-
}, {
|
|
313
|
-
default: s(() => [
|
|
314
|
-
n(l(M), {
|
|
315
|
-
name: "info",
|
|
316
|
-
size: "md",
|
|
317
|
-
color: "primary"
|
|
318
|
-
})
|
|
319
|
-
]),
|
|
320
|
-
_: 1
|
|
321
|
-
}, 8, ["content"])
|
|
322
|
-
])
|
|
323
|
-
]),
|
|
324
|
-
_: 1
|
|
325
|
-
}, 8, ["title"]),
|
|
326
|
-
i("div", {
|
|
327
|
-
class: C(`overflow-y-hidden flex flex-col gap-8 ${l(m).sm || l(m).xs ? "mb-20" : ""}`),
|
|
328
|
-
style: Se({ height: `calc(100% - ${l(m).lg || l(m).md ? 72 : 64}px)` })
|
|
329
|
-
}, [
|
|
330
|
-
n(y, {
|
|
331
|
-
class: C(`flex items-center gap-2 ${l(m).sm || l(m).xs ? "px-3" : "px-24"}`)
|
|
332
|
-
}, {
|
|
333
|
-
default: s(() => [
|
|
334
|
-
n(l(B), null, {
|
|
335
|
-
"menu-button": s(() => [
|
|
336
|
-
n(l(V), { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-400" }, {
|
|
337
|
-
default: s(() => [
|
|
338
|
-
i("p", null, d(ve.value), 1),
|
|
339
|
-
n(l(M), { name: "expand_more" })
|
|
340
|
-
]),
|
|
341
|
-
_: 1
|
|
342
|
-
})
|
|
343
|
-
]),
|
|
344
|
-
default: s(() => [
|
|
345
|
-
(_(!0), A($e, null, Ie(K.value, (r, O) => (_(), R(l(F), {
|
|
346
|
-
key: O,
|
|
347
|
-
label: r.label,
|
|
348
|
-
onClick: () => xe(r.value)
|
|
349
|
-
}, null, 8, ["label", "onClick"]))), 128))
|
|
350
|
-
]),
|
|
351
|
-
_: 1
|
|
352
|
-
}),
|
|
353
|
-
i("div", {
|
|
354
|
-
class: C(`flex ${l(m).sm || l(m).xs ? "justify-center items-center" : ""}`)
|
|
355
|
-
}, [
|
|
356
|
-
i("p", Xe, d(l(t)("report.common.results", { count: T.value.length })), 1)
|
|
357
|
-
], 2),
|
|
358
|
-
e[7] || (e[7] = i("div", { class: "grow" }, null, -1)),
|
|
359
|
-
i("div", Ye, [
|
|
360
|
-
n(l(ce), {
|
|
361
|
-
modelValue: D.value,
|
|
362
|
-
"onUpdate:modelValue": e[0] || (e[0] = (r) => D.value = r),
|
|
363
|
-
class: C(`${l(m).lg || l(m).md ? "grow" : ""}`)
|
|
364
|
-
}, null, 8, ["modelValue", "class"])
|
|
365
|
-
])
|
|
366
|
-
]),
|
|
367
|
-
_: 1
|
|
368
|
-
}, 8, ["class"]),
|
|
369
|
-
ae((_(), R(Ce, {
|
|
370
|
-
key: ye.value,
|
|
371
|
-
ref: "table",
|
|
372
|
-
class: C([l(m).sm || l(m).xs ? "px-0" : "px-24", "report-table"]),
|
|
373
|
-
style: { height: "calc(100% - 40px)" },
|
|
374
|
-
"column-defs": be.value,
|
|
375
|
-
"row-data": T.value,
|
|
376
|
-
"page-size": T.value.length,
|
|
377
|
-
"hide-footer": !0,
|
|
378
|
-
"row-class-name": "row",
|
|
379
|
-
onRowClick: e[1] || (e[1] = (r) => Z(r.original.id))
|
|
380
|
-
}, {
|
|
381
|
-
"list-row": s(({ original: r }) => [
|
|
382
|
-
n(Te, {
|
|
383
|
-
onClick: () => Z(r.id)
|
|
384
|
-
}, {
|
|
385
|
-
default: s(() => [
|
|
386
|
-
n(H, {
|
|
387
|
-
tag: "label",
|
|
388
|
-
label: r.name,
|
|
389
|
-
clickable: ""
|
|
390
|
-
}, {
|
|
391
|
-
append: s(() => [
|
|
392
|
-
i("div", Ze, [
|
|
393
|
-
r.isInternal ? (_(), R(l(V), {
|
|
394
|
-
key: 0,
|
|
395
|
-
class: "bg-fm-color-system-warning-100 text-fm-color-typo-warning",
|
|
396
|
-
compact: !0
|
|
397
|
-
}, {
|
|
398
|
-
default: s(() => [
|
|
399
|
-
i("p", et, d(l(t)("report.view.template.internal")), 1)
|
|
400
|
-
]),
|
|
401
|
-
_: 1
|
|
402
|
-
})) : q("", !0),
|
|
403
|
-
n(l(V), {
|
|
404
|
-
class: C(
|
|
405
|
-
r.categoryLabel !== l(t)("report.common.uncategorized") ? "bg-fm-color-system-info-100 text-fm-color-typo-info" : "text-fm-color-typo-secondary"
|
|
406
|
-
),
|
|
407
|
-
compact: !0
|
|
408
|
-
}, {
|
|
409
|
-
default: s(() => [
|
|
410
|
-
i("p", tt, d(r.categoryLabel), 1)
|
|
411
|
-
]),
|
|
412
|
-
_: 2
|
|
413
|
-
}, 1032, ["class"]),
|
|
414
|
-
l(g)(r) ? (_(), R(l(B), {
|
|
415
|
-
key: 1,
|
|
416
|
-
placement: "left",
|
|
417
|
-
"stop-click-propagation": !0
|
|
418
|
-
}, {
|
|
419
|
-
"menu-button": s(() => [
|
|
420
|
-
n(l(M), { name: "more_vert" })
|
|
421
|
-
]),
|
|
422
|
-
default: s(() => [
|
|
423
|
-
n(l(F), {
|
|
424
|
-
label: l(t)("report.common.edit"),
|
|
425
|
-
onClick: re((O) => ee(r.id), ["stop"])
|
|
426
|
-
}, null, 8, ["label", "onClick"]),
|
|
427
|
-
n(l(F), {
|
|
428
|
-
label: l(t)("report.common.delete"),
|
|
429
|
-
class: "text-fm-color-typo-error",
|
|
430
|
-
onClick: re((O) => te(r.id), ["stop"])
|
|
431
|
-
}, null, 8, ["label", "onClick"])
|
|
432
|
-
]),
|
|
433
|
-
_: 2
|
|
434
|
-
}, 1024)) : q("", !0)
|
|
435
|
-
])
|
|
436
|
-
]),
|
|
437
|
-
"sub-label": s(() => [
|
|
438
|
-
i("p", ot, d(r.description), 1)
|
|
439
|
-
]),
|
|
440
|
-
_: 2
|
|
441
|
-
}, 1032, ["label"])
|
|
442
|
-
]),
|
|
443
|
-
_: 2
|
|
444
|
-
}, 1032, ["onClick"])
|
|
445
|
-
]),
|
|
446
|
-
_: 1
|
|
447
|
-
}, 8, ["class", "column-defs", "row-data", "page-size"])), [
|
|
448
|
-
[ne, T.value.length > 0]
|
|
449
|
-
]),
|
|
450
|
-
ae(n(Qe, {
|
|
451
|
-
title: "report.view.template.noTemplates",
|
|
452
|
-
"sub-title": "report.view.template.noTemplatesHint"
|
|
453
|
-
}, null, 512), [
|
|
454
|
-
[ne, T.value.length === 0]
|
|
455
|
-
])
|
|
456
|
-
], 6),
|
|
457
|
-
n(Fe, {
|
|
458
|
-
modelValue: z.value,
|
|
459
|
-
"onUpdate:modelValue": e[6] || (e[6] = (r) => z.value = r),
|
|
460
|
-
overlay: !0,
|
|
461
|
-
"dismiss-away": !0
|
|
462
|
-
}, {
|
|
463
|
-
"dialog-header": s(() => [
|
|
464
|
-
i("p", lt, d(l(t)("report.common.edit")), 1)
|
|
465
|
-
]),
|
|
466
|
-
default: s(() => [
|
|
467
|
-
i("div", at, [
|
|
468
|
-
n(le, {
|
|
469
|
-
modelValue: h.value,
|
|
470
|
-
"onUpdate:modelValue": e[2] || (e[2] = (r) => h.value = r),
|
|
471
|
-
label: l(t)("report.common.name"),
|
|
472
|
-
placeholder: l(t)("report.view.report.enter")
|
|
473
|
-
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
474
|
-
n(le, {
|
|
475
|
-
modelValue: S.value,
|
|
476
|
-
"onUpdate:modelValue": e[3] || (e[3] = (r) => S.value = r),
|
|
477
|
-
label: l(t)("report.common.description"),
|
|
478
|
-
placeholder: l(t)("report.common.description")
|
|
479
|
-
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
480
|
-
n(Re, {
|
|
481
|
-
modelValue: $.value,
|
|
482
|
-
"onUpdate:modelValue": e[4] || (e[4] = (r) => $.value = r),
|
|
483
|
-
label: l(t)("report.common.category"),
|
|
484
|
-
items: ge.value,
|
|
485
|
-
"disable-search": !0
|
|
486
|
-
}, null, 8, ["modelValue", "label", "items"]),
|
|
487
|
-
i("div", rt, [
|
|
488
|
-
n(ke, {
|
|
489
|
-
modelValue: I.value,
|
|
490
|
-
"onUpdate:modelValue": e[5] || (e[5] = (r) => I.value = r),
|
|
491
|
-
label: l(t)("report.view.template.internal"),
|
|
492
|
-
"label-placement": "right"
|
|
493
|
-
}, null, 8, ["modelValue", "label"]),
|
|
494
|
-
i("p", nt, d(l(t)("report.view.template.internalHint")), 1)
|
|
495
|
-
])
|
|
496
|
-
])
|
|
497
|
-
]),
|
|
498
|
-
"dialog-footer": s(() => [
|
|
499
|
-
e[8] || (e[8] = i("div", { class: "grow" }, null, -1)),
|
|
500
|
-
n(l(N), {
|
|
501
|
-
label: l(t)("report.common.cancel"),
|
|
502
|
-
variant: "tertiary",
|
|
503
|
-
onClick: oe
|
|
504
|
-
}, null, 8, ["label"]),
|
|
505
|
-
n(l(N), {
|
|
506
|
-
label: l(t)("report.common.save"),
|
|
507
|
-
variant: "primary",
|
|
508
|
-
disabled: h.value.trim() === "",
|
|
509
|
-
onClick: he
|
|
510
|
-
}, null, 8, ["label", "disabled"])
|
|
511
|
-
]),
|
|
512
|
-
_: 1
|
|
513
|
-
}, 8, ["modelValue"])
|
|
514
|
-
]),
|
|
515
|
-
_: 1
|
|
516
|
-
});
|
|
517
|
-
};
|
|
518
|
-
}
|
|
519
|
-
});
|
|
520
|
-
export {
|
|
521
|
-
_t as default
|
|
522
|
-
};
|