@feedmepos/mf-report 5.21.25 → 5.21.26
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-F_uKM6Ww.js → App-DcFOVWEX.js} +1 -1
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-BMx7tOtZ.js → FilterSelector.vue_vue_type_script_setup_true_lang-6G7uvSDs.js} +49 -49
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-241s6nOG.js → MenuTab.vue_vue_type_script_setup_true_lang-Dqfxostu.js} +1 -1
- package/dist/{OverviewView-D1KK4hBx.js → OverviewView-C31PuWec.js} +2 -2
- package/dist/Report-PWYl62Ly.js +506 -0
- package/dist/{ReportEditor-BhdJ6wyM.js → ReportEditor-Dl_vS7sc.js} +2 -2
- package/dist/{ReportView-CzhTYq2e.js → ReportView-CwqEToix.js} +2 -2
- package/dist/{TileEditor-CS65HkRc.js → TileEditor-pmJq3xtl.js} +2 -2
- package/dist/{TransitionFade-5WYqlTMU.js → TransitionFade-DyICQJVa.js} +1 -1
- package/dist/app.js +6 -6
- package/package.json +1 -1
- package/dist/Report-CWk5h817.js +0 -488
|
@@ -0,0 +1,506 @@
|
|
|
1
|
+
import { defineComponent as ke, ref as U, watch as ce, computed as k, h as y, withModifiers as we, resolveComponent as w, createBlock as j, openBlock as A, withCtx as i, createVNode as s, createElementVNode as b, unref as e, normalizeStyle as xe, normalizeClass as x, withDirectives as G, createElementBlock as _e, Fragment as Ie, renderList as $e, toDisplayString as J, createTextVNode as Re, vShow as H } from "vue";
|
|
2
|
+
import { storeToRefs as ie } from "pinia";
|
|
3
|
+
import { a as De, u as Fe } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CnCFX1Cy.js";
|
|
4
|
+
import { _ as Oe } from "./Default.vue_vue_type_script_setup_true_lang-Dhu7Z5sI.js";
|
|
5
|
+
import { u as Le } from "./message-dialog-UoMWOnil.js";
|
|
6
|
+
import { b as ue, f as Ne } from "./vue-i18n-D1iec8Wy.js";
|
|
7
|
+
import { useSnackbar as Ve, useBreakpoints as Ae, components as Je, FmButtonColorThemeVariant as ze } from "@feedmepos/ui-library";
|
|
8
|
+
import { _ as Pe } from "./NoData.vue_vue_type_script_setup_true_lang-DDKbpI_N.js";
|
|
9
|
+
import { useRouter as Te, useRoute as Be, onBeforeRouteLeave as Ee } from "vue-router";
|
|
10
|
+
import { useI18n as Ke } from "@feedmepos/mf-common";
|
|
11
|
+
import { r as me } from "./i18n-7InkCBCc.js";
|
|
12
|
+
const Me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ye = { class: "w-[343px]" }, qe = { class: "fm-typo-en-body-md-600" }, rt = /* @__PURE__ */ ke({
|
|
13
|
+
__name: "Report",
|
|
14
|
+
setup(Ue) {
|
|
15
|
+
const { t: a, te: Q } = Ke(), W = Te(), X = Be(), d = De(), pe = Fe(), { business: de } = ie(ue()), {
|
|
16
|
+
reports: f,
|
|
17
|
+
overviewReport: z,
|
|
18
|
+
categories: I,
|
|
19
|
+
pinReport: $,
|
|
20
|
+
isOpenAddReportDialog: fe,
|
|
21
|
+
scrollPositionY: Z,
|
|
22
|
+
customReportQuota: R,
|
|
23
|
+
canCreateCustomReport: ee
|
|
24
|
+
} = ie(d), { promptMessage: te } = Le(), { promptLoader: P } = Ne(), p = Ve(), { breakpoints: c } = Ae(), h = U();
|
|
25
|
+
Ee(() => {
|
|
26
|
+
h.value && (Z.value = h.value.$el.children[0].scrollTop);
|
|
27
|
+
}), ce(h, () => {
|
|
28
|
+
h.value && setTimeout(() => {
|
|
29
|
+
h.value.$el.children[0].scrollTop = Z.value;
|
|
30
|
+
}, 200);
|
|
31
|
+
});
|
|
32
|
+
const T = k(() => $.value && f.value ? f.value.filter((o) => {
|
|
33
|
+
var t;
|
|
34
|
+
return (t = $.value) == null ? void 0 : t.includes(o.id);
|
|
35
|
+
}) : []);
|
|
36
|
+
ce(
|
|
37
|
+
[() => de.value],
|
|
38
|
+
() => {
|
|
39
|
+
d.refreshPinReport();
|
|
40
|
+
},
|
|
41
|
+
{ immediate: !0 }
|
|
42
|
+
);
|
|
43
|
+
const oe = k(() => T.value.length > 0 ? f.value.filter(
|
|
44
|
+
(o) => T.value.findIndex((t) => t.id === o.id) === -1
|
|
45
|
+
) : f.value), { FmButton: ve, FmMenu: B, FmMenuItem: S, FmIcon: E, FmChip: K } = Je, ae = k(() => [
|
|
46
|
+
{ value: void 0, label: "All" },
|
|
47
|
+
...I.value.map((o) => ({
|
|
48
|
+
value: o.id,
|
|
49
|
+
label: o.name
|
|
50
|
+
}))
|
|
51
|
+
]), D = U(ae.value[0]), M = U(""), C = k(() => oe.value.length === 0 || I.value.length === 0 ? [] : [
|
|
52
|
+
...T.value.map((t) => {
|
|
53
|
+
const r = I.value.find((l) => l.id === t.category);
|
|
54
|
+
return {
|
|
55
|
+
name: me(a, Q, t.name, "other"),
|
|
56
|
+
categoryId: (r == null ? void 0 : r.id) ?? "",
|
|
57
|
+
category: r != null && r.name ? a(`report.category.${r.name}`) : a("report.common.uncategorized"),
|
|
58
|
+
reportId: t.id,
|
|
59
|
+
editable: t.editable,
|
|
60
|
+
description: t.description || "",
|
|
61
|
+
pin: !0
|
|
62
|
+
};
|
|
63
|
+
}),
|
|
64
|
+
...oe.value.map((t) => {
|
|
65
|
+
const r = I.value.find((l) => l.id === t.category);
|
|
66
|
+
return {
|
|
67
|
+
name: me(a, Q, t.name, "other"),
|
|
68
|
+
categoryId: (r == null ? void 0 : r.id) ?? "",
|
|
69
|
+
category: r != null && r.name ? a(`report.category.${r.name}`) : a("report.common.uncategorized"),
|
|
70
|
+
reportId: t.id,
|
|
71
|
+
editable: t.editable,
|
|
72
|
+
description: t.description || "",
|
|
73
|
+
pin: !1
|
|
74
|
+
};
|
|
75
|
+
})
|
|
76
|
+
].filter((t) => D.value.value && t.categoryId !== D.value.value ? !1 : `${(t == null ? void 0 : t.name) || ""}${(t == null ? void 0 : t.description) || ""}`.toLowerCase().indexOf(M.value.toLowerCase()) !== -1)), ye = k(
|
|
77
|
+
() => C.value.map((o) => `${o.name}${o.category}`).toString()
|
|
78
|
+
), ge = [
|
|
79
|
+
{
|
|
80
|
+
accessorKey: "name",
|
|
81
|
+
header: a("report.common.name"),
|
|
82
|
+
enableSorting: !1,
|
|
83
|
+
cell: (o) => o.getValue()
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
accessorKey: "category",
|
|
87
|
+
header: a("report.common.category"),
|
|
88
|
+
enableSorting: !1,
|
|
89
|
+
meta: {
|
|
90
|
+
width: "100px"
|
|
91
|
+
},
|
|
92
|
+
cell: (o) => y(
|
|
93
|
+
K,
|
|
94
|
+
{
|
|
95
|
+
class: `${o.getValue() !== a("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`,
|
|
96
|
+
compact: !0
|
|
97
|
+
},
|
|
98
|
+
{ default: () => o.getValue() }
|
|
99
|
+
)
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
accessorKey: "description",
|
|
103
|
+
header: a("report.common.description"),
|
|
104
|
+
enableSorting: !1,
|
|
105
|
+
cell: (o) => o.getValue()
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
accessorKey: "",
|
|
109
|
+
id: "Action",
|
|
110
|
+
header: a("report.common.actions"),
|
|
111
|
+
meta: {
|
|
112
|
+
width: "80px"
|
|
113
|
+
},
|
|
114
|
+
cell: (o) => {
|
|
115
|
+
var N;
|
|
116
|
+
const t = o.row.original, r = t.reportId, l = f.value.find((u) => u.id === r), Y = r === ((N = z.value) == null ? void 0 : N.id), q = [
|
|
117
|
+
{
|
|
118
|
+
label: a("report.common.duplicate"),
|
|
119
|
+
onClick: () => {
|
|
120
|
+
l && le(l);
|
|
121
|
+
},
|
|
122
|
+
variant: "",
|
|
123
|
+
disabled: !1
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
label: a(Y ? "report.common.unsetAsOverview" : "report.common.setAsOverview"),
|
|
127
|
+
onClick: async () => {
|
|
128
|
+
l && re(l);
|
|
129
|
+
},
|
|
130
|
+
variant: "",
|
|
131
|
+
disabled: !1
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
label: a("report.common.remove"),
|
|
135
|
+
onClick: () => {
|
|
136
|
+
l && ne(l);
|
|
137
|
+
},
|
|
138
|
+
variant: "destructive",
|
|
139
|
+
disabled: !t.editable
|
|
140
|
+
}
|
|
141
|
+
];
|
|
142
|
+
return y(
|
|
143
|
+
"div",
|
|
144
|
+
{
|
|
145
|
+
class: `flex ${c.value.lg || c.value.md ? "justify-end" : ""} items-center`
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
default: () => [
|
|
149
|
+
y(
|
|
150
|
+
"button",
|
|
151
|
+
{
|
|
152
|
+
onClick: we(() => {
|
|
153
|
+
l && se(l);
|
|
154
|
+
}, ["stop"]),
|
|
155
|
+
class: `text-fm-color-neutral-gray-400 ${t.pin ? "" : "show-pin"} hover:bg-fm-color-opacity-sm rounded-lg flex items-center justify-center`
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
default: () => [
|
|
159
|
+
y(
|
|
160
|
+
E,
|
|
161
|
+
{
|
|
162
|
+
name: "keep",
|
|
163
|
+
class: "px-12 p-8",
|
|
164
|
+
outline: !t.pin,
|
|
165
|
+
size: "md"
|
|
166
|
+
},
|
|
167
|
+
{}
|
|
168
|
+
)
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
),
|
|
172
|
+
y(
|
|
173
|
+
B,
|
|
174
|
+
{ stopClickPropagation: !0, shift: !0 },
|
|
175
|
+
{
|
|
176
|
+
default: () => q.map(
|
|
177
|
+
(u) => y(
|
|
178
|
+
S,
|
|
179
|
+
{
|
|
180
|
+
onClick: u.disabled ? {} : u.onClick,
|
|
181
|
+
label: u.label,
|
|
182
|
+
class: u.disabled ? "text-fm-color-typo-disabled" : u.variant === "destructive" ? "text-fm-color-typo-error" : "",
|
|
183
|
+
disabled: u.disabled
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
label: () => y("p", u.label)
|
|
187
|
+
}
|
|
188
|
+
)
|
|
189
|
+
),
|
|
190
|
+
"menu-button": () => y(
|
|
191
|
+
ve,
|
|
192
|
+
{
|
|
193
|
+
variant: "tertiary",
|
|
194
|
+
size: "md",
|
|
195
|
+
icon: "more_vert",
|
|
196
|
+
iconColor: ze.NeutralGray400
|
|
197
|
+
},
|
|
198
|
+
{}
|
|
199
|
+
)
|
|
200
|
+
}
|
|
201
|
+
)
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
];
|
|
208
|
+
async function re(o) {
|
|
209
|
+
await P(async () => {
|
|
210
|
+
var t;
|
|
211
|
+
try {
|
|
212
|
+
const r = o.id === ((t = z.value) == null ? void 0 : t.id);
|
|
213
|
+
await d.updateDefaultReport(r ? null : o.id), p.open({
|
|
214
|
+
message: `Successfully ${r ? "unset" : "set"} ${o.name} as Overview`,
|
|
215
|
+
type: "success"
|
|
216
|
+
});
|
|
217
|
+
} catch (r) {
|
|
218
|
+
p.open({ message: JSON.stringify(r), type: "error" });
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
async function be(o) {
|
|
223
|
+
if (await te({
|
|
224
|
+
title: a("report.common.duplicate"),
|
|
225
|
+
message: a("report.messages.confirmAction", {
|
|
226
|
+
action: a("report.common.duplicate"),
|
|
227
|
+
name: o.name
|
|
228
|
+
})
|
|
229
|
+
})) {
|
|
230
|
+
const r = JSON.parse(JSON.stringify(o));
|
|
231
|
+
r.editable = !0, r.id = "", r.name = `${r.name} ${a("report.common.duplicate")}`, P(async () => {
|
|
232
|
+
try {
|
|
233
|
+
await d.createOrUpdateReport(r), p.open({
|
|
234
|
+
message: `${a("report.messages.duplicateSuccess", { name: r.name })}`,
|
|
235
|
+
type: "success"
|
|
236
|
+
});
|
|
237
|
+
} catch (l) {
|
|
238
|
+
p.open({ message: JSON.stringify(l), type: "error" });
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
async function ne(o) {
|
|
244
|
+
await te({
|
|
245
|
+
title: a("report.messages.deleteReport"),
|
|
246
|
+
message: a("report.messages.confirmDelete", { name: o.name })
|
|
247
|
+
}) && P(async () => {
|
|
248
|
+
try {
|
|
249
|
+
await d.removeReport(o), p.open({
|
|
250
|
+
message: a("report.messages.deleteSuccess", { name: o.name }),
|
|
251
|
+
type: "success"
|
|
252
|
+
});
|
|
253
|
+
} catch (r) {
|
|
254
|
+
p.open({ message: JSON.stringify(r), type: "error" });
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
async function le(o) {
|
|
259
|
+
if (ee.value)
|
|
260
|
+
await be(o);
|
|
261
|
+
else {
|
|
262
|
+
let t = `Your current plan only support up to ${R.value} custom reports.`;
|
|
263
|
+
R.value === 0 && (t = "Your current plan does not support custom report."), p.open({
|
|
264
|
+
message: t,
|
|
265
|
+
type: "error"
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
function he() {
|
|
270
|
+
if (ee.value)
|
|
271
|
+
fe.value = !0;
|
|
272
|
+
else {
|
|
273
|
+
let o = `Your current plan only support up to ${R.value} custom reports.`;
|
|
274
|
+
R.value === 0 && (o = "Your current plan does not support custom report."), p.open({
|
|
275
|
+
message: o,
|
|
276
|
+
type: "error"
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
function se(o) {
|
|
281
|
+
$.value && $.value.includes(o.id) ? (p.open({
|
|
282
|
+
message: `${a("report.common.unpin")} ${o.name} ${a("report.common.successful")}`,
|
|
283
|
+
type: "success"
|
|
284
|
+
}), d.clearPinReport(o.id)) : (p.open({
|
|
285
|
+
message: `${a("report.common.pin")} ${o.name} ${a("report.common.successful")}`,
|
|
286
|
+
type: "success"
|
|
287
|
+
}), d.cachePinReport(o));
|
|
288
|
+
}
|
|
289
|
+
function Se(o) {
|
|
290
|
+
D.value = o;
|
|
291
|
+
}
|
|
292
|
+
const { selectedLocationIds: _, dateRange: F, compareDateRange: O, timeRange: v, locations: Ce } = ue(), L = k(() => _.length === Ce.length);
|
|
293
|
+
return (o, t) => {
|
|
294
|
+
const r = w("FmPageHead"), l = w("FmSearch"), Y = w("FmForm"), q = w("FmListItem"), N = w("FmList"), u = w("FmTable");
|
|
295
|
+
return A(), j(Oe, null, {
|
|
296
|
+
default: i(() => [
|
|
297
|
+
s(r, {
|
|
298
|
+
title: e(a)("report.common.report", 1),
|
|
299
|
+
class: "h-[68px]",
|
|
300
|
+
actions: [
|
|
301
|
+
{
|
|
302
|
+
label: `${e(a)("report.view.report.add")}`,
|
|
303
|
+
value: "add",
|
|
304
|
+
isPrimary: !0,
|
|
305
|
+
prependIcon: "add"
|
|
306
|
+
}
|
|
307
|
+
],
|
|
308
|
+
"onClick:action": t[0] || (t[0] = (n) => he())
|
|
309
|
+
}, null, 8, ["title", "actions"]),
|
|
310
|
+
b("div", {
|
|
311
|
+
class: x(`overflow-y-hidden flex flex-col gap-8 ${e(c).sm || e(c).xs ? "mb-20" : ""}`),
|
|
312
|
+
style: xe({ height: `calc(100% - ${e(c).lg || e(c).md ? 72 : 64}px)` })
|
|
313
|
+
}, [
|
|
314
|
+
s(Y, {
|
|
315
|
+
class: x(`flex items-center gap-2 ${e(c).sm || e(c).xs ? "px-3" : "px-24"}`)
|
|
316
|
+
}, {
|
|
317
|
+
default: i(() => [
|
|
318
|
+
s(e(B), null, {
|
|
319
|
+
"menu-button": i(() => [
|
|
320
|
+
s(e(K), { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-400" }, {
|
|
321
|
+
default: i(() => [
|
|
322
|
+
b("p", null, J(e(a)(`report.category.${D.value.label}`)), 1),
|
|
323
|
+
s(e(E), { name: "expand_more" })
|
|
324
|
+
]),
|
|
325
|
+
_: 1
|
|
326
|
+
})
|
|
327
|
+
]),
|
|
328
|
+
default: i(() => [
|
|
329
|
+
(A(!0), _e(Ie, null, $e(ae.value, (n, V) => (A(), j(e(S), {
|
|
330
|
+
key: V,
|
|
331
|
+
label: e(a)(`report.category.${n.label}`),
|
|
332
|
+
onClick: () => Se(n)
|
|
333
|
+
}, null, 8, ["label", "onClick"]))), 128))
|
|
334
|
+
]),
|
|
335
|
+
_: 1
|
|
336
|
+
}),
|
|
337
|
+
b("div", {
|
|
338
|
+
class: x(`flex ${e(c).sm || e(c).xs ? "justify-center items-center" : ""}`)
|
|
339
|
+
}, [
|
|
340
|
+
b("p", Me, J(e(a)("report.common.results", { count: C.value.length })), 1)
|
|
341
|
+
], 2),
|
|
342
|
+
t[3] || (t[3] = b("div", { class: "grow" }, null, -1)),
|
|
343
|
+
b("div", Ye, [
|
|
344
|
+
s(l, {
|
|
345
|
+
modelValue: M.value,
|
|
346
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => M.value = n),
|
|
347
|
+
class: x(`${e(c).lg || e(c).md ? "grow" : ""}`)
|
|
348
|
+
}, null, 8, ["modelValue", "class"])
|
|
349
|
+
])
|
|
350
|
+
]),
|
|
351
|
+
_: 1
|
|
352
|
+
}, 8, ["class"]),
|
|
353
|
+
G((A(), j(u, {
|
|
354
|
+
key: ye.value,
|
|
355
|
+
ref_key: "table",
|
|
356
|
+
ref: h,
|
|
357
|
+
class: x([e(c).sm || e(c).xs ? "px-0" : "px-24", "report-table"]),
|
|
358
|
+
style: { height: "calc(100% - 40px)" },
|
|
359
|
+
"column-defs": ge,
|
|
360
|
+
"row-data": C.value,
|
|
361
|
+
"page-size": C.value.length,
|
|
362
|
+
"hide-footer": !0,
|
|
363
|
+
"row-class-name": "row",
|
|
364
|
+
onRowClick: t[2] || (t[2] = (n) => {
|
|
365
|
+
e(pe).suppressReportRouteSync = !0, e(d).updateCurrentReportId(n.original.reportId), e(W).push({
|
|
366
|
+
name: "reportView",
|
|
367
|
+
query: {
|
|
368
|
+
...e(X).query,
|
|
369
|
+
reportId: n.original.reportId,
|
|
370
|
+
startDate: e(F).startDate,
|
|
371
|
+
endDate: e(F).endDate,
|
|
372
|
+
compareStartDate: e(O).startDate,
|
|
373
|
+
compareEndDate: e(O).endDate,
|
|
374
|
+
timeStart: e(v).start ? JSON.stringify(e(v).start) : null,
|
|
375
|
+
timeEnd: e(v).end ? JSON.stringify(e(v).end) : null,
|
|
376
|
+
isAllLocation: L.value.toString(),
|
|
377
|
+
locationIds: L.value ? null : e(_) ? JSON.stringify(e(_)) : null
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
})
|
|
381
|
+
}, {
|
|
382
|
+
"list-row": i(({ original: n }) => [
|
|
383
|
+
s(N, {
|
|
384
|
+
onClick: () => {
|
|
385
|
+
n.reportId && (e(d).updateCurrentReportId(n.reportId), e(W).push({
|
|
386
|
+
name: "reportView",
|
|
387
|
+
query: {
|
|
388
|
+
...e(X).query,
|
|
389
|
+
reportId: n.reportId,
|
|
390
|
+
startDate: e(F).startDate,
|
|
391
|
+
endDate: e(F).endDate,
|
|
392
|
+
compareStartDate: e(O).startDate,
|
|
393
|
+
compareEndDate: e(O).endDate,
|
|
394
|
+
timeStart: e(v).start ? JSON.stringify(e(v).start) : null,
|
|
395
|
+
timeEnd: e(v).end ? JSON.stringify(e(v).end) : null,
|
|
396
|
+
isAllLocation: L.value.toString(),
|
|
397
|
+
locationIds: L.value ? null : e(_) ? JSON.stringify(e(_)) : null
|
|
398
|
+
}
|
|
399
|
+
}));
|
|
400
|
+
}
|
|
401
|
+
}, {
|
|
402
|
+
default: i(() => [
|
|
403
|
+
s(q, {
|
|
404
|
+
tag: "label",
|
|
405
|
+
label: n.name,
|
|
406
|
+
clickable: ""
|
|
407
|
+
}, {
|
|
408
|
+
append: i(() => [
|
|
409
|
+
s(e(K), {
|
|
410
|
+
class: x(
|
|
411
|
+
n.category !== "Uncategorized" ? "bg-fm-color-system-info-100 text-fm-color-typo-info" : "text-fm-color-typo-secondary"
|
|
412
|
+
),
|
|
413
|
+
compact: !0
|
|
414
|
+
}, {
|
|
415
|
+
default: i(() => [
|
|
416
|
+
b("p", qe, J(n.category), 1)
|
|
417
|
+
]),
|
|
418
|
+
_: 2
|
|
419
|
+
}, 1032, ["class"]),
|
|
420
|
+
s(e(B), {
|
|
421
|
+
placement: "left",
|
|
422
|
+
"stop-click-propagation": !0
|
|
423
|
+
}, {
|
|
424
|
+
"menu-button": i(() => [
|
|
425
|
+
s(e(E), {
|
|
426
|
+
name: "more_vert",
|
|
427
|
+
class: "btn-color"
|
|
428
|
+
})
|
|
429
|
+
]),
|
|
430
|
+
default: i(() => {
|
|
431
|
+
var V;
|
|
432
|
+
return [
|
|
433
|
+
s(e(S), {
|
|
434
|
+
label: n.pin ? "Unpin" : "Pin",
|
|
435
|
+
onClick: () => {
|
|
436
|
+
const m = e(f).find(
|
|
437
|
+
(g) => g.id === n.reportId
|
|
438
|
+
);
|
|
439
|
+
m && se(m);
|
|
440
|
+
}
|
|
441
|
+
}, null, 8, ["label", "onClick"]),
|
|
442
|
+
s(e(S), {
|
|
443
|
+
label: e(a)("report.common.duplicate"),
|
|
444
|
+
onClick: () => {
|
|
445
|
+
const m = e(f).find(
|
|
446
|
+
(g) => g.id === n.reportId
|
|
447
|
+
);
|
|
448
|
+
m && le(m);
|
|
449
|
+
}
|
|
450
|
+
}, null, 8, ["label", "onClick"]),
|
|
451
|
+
s(e(S), {
|
|
452
|
+
label: e(a)(
|
|
453
|
+
n.reportId === ((V = e(z)) == null ? void 0 : V.id) ? "report.common.unsetAsOverview" : "report.common.setAsOverview"
|
|
454
|
+
),
|
|
455
|
+
onClick: () => {
|
|
456
|
+
const m = e(f).find(
|
|
457
|
+
(g) => g.id === n.reportId
|
|
458
|
+
);
|
|
459
|
+
m && re(m);
|
|
460
|
+
}
|
|
461
|
+
}, null, 8, ["label", "onClick"]),
|
|
462
|
+
G(s(e(S), {
|
|
463
|
+
label: e(a)("report.common.delete"),
|
|
464
|
+
class: "text-fm-color-typo-error",
|
|
465
|
+
onClick: () => {
|
|
466
|
+
const m = e(f).find(
|
|
467
|
+
(g) => g.id === n.reportId
|
|
468
|
+
);
|
|
469
|
+
m && ne(m);
|
|
470
|
+
}
|
|
471
|
+
}, {
|
|
472
|
+
label: i(() => [
|
|
473
|
+
Re(J(e(a)("report.common.delete")), 1)
|
|
474
|
+
]),
|
|
475
|
+
_: 2
|
|
476
|
+
}, 1032, ["label", "onClick"]), [
|
|
477
|
+
[H, n.editable]
|
|
478
|
+
])
|
|
479
|
+
];
|
|
480
|
+
}),
|
|
481
|
+
_: 2
|
|
482
|
+
}, 1024)
|
|
483
|
+
]),
|
|
484
|
+
_: 2
|
|
485
|
+
}, 1032, ["label"])
|
|
486
|
+
]),
|
|
487
|
+
_: 2
|
|
488
|
+
}, 1032, ["onClick"])
|
|
489
|
+
]),
|
|
490
|
+
_: 1
|
|
491
|
+
}, 8, ["class", "row-data", "page-size"])), [
|
|
492
|
+
[H, C.value.length > 0]
|
|
493
|
+
]),
|
|
494
|
+
G(s(Pe, null, null, 512), [
|
|
495
|
+
[H, C.value.length === 0]
|
|
496
|
+
])
|
|
497
|
+
], 6)
|
|
498
|
+
]),
|
|
499
|
+
_: 1
|
|
500
|
+
});
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
});
|
|
504
|
+
export {
|
|
505
|
+
rt as default
|
|
506
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as Q, mergeModels as A, useModel as K, ref as W, computed as U, resolveComponent as v, createBlock as V, openBlock as u, withCtx as m, createElementVNode as h, createVNode as o, unref as l, normalizeClass as se, createTextVNode as _e, toDisplayString as J, createElementBlock as T, Fragment as j, renderSlot as Te, createCommentVNode as G, watch as ce, renderList as ee, resolveDynamicComponent as Ie, isRef as Oe, normalizeStyle as we, onMounted as Re } from "vue";
|
|
2
|
-
import { W as qe, g as Ee, _ as Pe, i as Je, S as ke, d as Ve, T as ze, a as Le } from "./TransitionFade-
|
|
2
|
+
import { W as qe, g as Ee, _ as Pe, i as Je, S as ke, d as Ve, T as ze, a as Le } from "./TransitionFade-DyICQJVa.js";
|
|
3
3
|
import { D as H, c as me, C as ge, a as Ne, b as He, v as ie } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CnCFX1Cy.js";
|
|
4
4
|
import { storeToRefs as pe } from "pinia";
|
|
5
5
|
import { useRouter as Me, useRoute as Ue } from "vue-router";
|
|
6
6
|
import { useBreakpoints as ve, useSnackbar as De, FmButtonColorThemeVariant as ne } from "@feedmepos/ui-library";
|
|
7
7
|
import { u as Be } from "./message-dialog-UoMWOnil.js";
|
|
8
8
|
import { u as ue, b as je, i as be, f as Ge } from "./vue-i18n-D1iec8Wy.js";
|
|
9
|
-
import { a as Ce, _ as he } from "./FilterSelector.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { a as Ce, _ as he } from "./FilterSelector.vue_vue_type_script_setup_true_lang-6G7uvSDs.js";
|
|
10
10
|
import { _ as ye } from "./NoData.vue_vue_type_script_setup_true_lang-DDKbpI_N.js";
|
|
11
11
|
import { r as Fe } from "./i18n-7InkCBCc.js";
|
|
12
12
|
import { a as Se } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BhWCLEfp.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as ee, ref as y, computed as p, watch as A, onMounted as oe, onUnmounted as te, resolveComponent as re, createBlock as k, openBlock as m, withCtx as ae, createVNode as N, createElementVNode as B, unref as a, normalizeStyle as ne, normalizeClass as T, createElementBlock as q, Fragment as le, renderList as se } from "vue";
|
|
2
|
-
import { _ as ie } from "./MenuTab.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as ue } from "./FilterSelector.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as ie } from "./MenuTab.vue_vue_type_script_setup_true_lang-Dqfxostu.js";
|
|
3
|
+
import { _ as ue } from "./FilterSelector.vue_vue_type_script_setup_true_lang-6G7uvSDs.js";
|
|
4
4
|
import { useRouter as ce, useRoute as pe } from "vue-router";
|
|
5
5
|
import { _ as me } from "./Default.vue_vue_type_script_setup_true_lang-Dhu7Z5sI.js";
|
|
6
6
|
import { a as de } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CnCFX1Cy.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as W, mergeModels as K, useModel as le, computed as $, ref as E, resolveComponent as V, createElementBlock as R, openBlock as b, createVNode as r, createElementVNode as h, unref as l, withCtx as N, toDisplayString as L, Fragment as te, renderList as me, withModifiers as ae, createTextVNode as ce, watch as re, createCommentVNode as U, createBlock as D, onUnmounted as Xe, renderSlot as Oe, onMounted as Se, onBeforeUnmount as qe, resolveDynamicComponent as Ie, normalizeClass as Le, withDirectives as ie, vShow as se, normalizeStyle as We, isRef as He } from "vue";
|
|
2
2
|
import { useRoute as Ee, useRouter as Ye } from "vue-router";
|
|
3
|
-
import { h as Je, d as Ve, S as Ce, _ as Ge, W as Ke, b as Qe, T as Ze, a as el } from "./TransitionFade-
|
|
3
|
+
import { h as Je, d as Ve, S as Ce, _ as Ge, W as Ke, b as Qe, T as Ze, a as el } from "./TransitionFade-DyICQJVa.js";
|
|
4
4
|
import { W as z, b as Be, d as ve, D as ll, S as Te, C as ol, P as $e, a as tl } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CnCFX1Cy.js";
|
|
5
5
|
import { storeToRefs as de } from "pinia";
|
|
6
6
|
import { u as je } from "./message-dialog-UoMWOnil.js";
|
|
@@ -8,7 +8,7 @@ import { u as J, j as fe, b as ze, d as ge, h as al } from "./vue-i18n-D1iec8Wy.
|
|
|
8
8
|
import { useSnackbar as nl, useBreakpoints as Re, FmButtonColorThemeVariant as De } from "@feedmepos/ui-library";
|
|
9
9
|
import { a as ee } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BhWCLEfp.js";
|
|
10
10
|
import { r as Y } from "./i18n-7InkCBCc.js";
|
|
11
|
-
import { g as pe, u as be, L as ue, b as we, _ as Me, a as il } from "./FilterSelector.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { g as pe, u as be, L as ue, b as we, _ as Me, a as il } from "./FilterSelector.vue_vue_type_script_setup_true_lang-6G7uvSDs.js";
|
|
12
12
|
import { d as ye } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CS10GX8d.js";
|
|
13
13
|
import { _ as Pe } from "./NoData.vue_vue_type_script_setup_true_lang-DDKbpI_N.js";
|
|
14
14
|
const Fe = [
|
|
@@ -5,7 +5,7 @@ import { storeToRefs as Ln } from "pinia";
|
|
|
5
5
|
import { useRoute as $n } from "vue-router";
|
|
6
6
|
import { W as $, c as De, d as Bn } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CnCFX1Cy.js";
|
|
7
7
|
import { _ as Vt, a as Yt } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BhWCLEfp.js";
|
|
8
|
-
import { R as Rn, I as $e, c as an, d as ln, e as Xn } from "./FilterSelector.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { R as Rn, I as $e, c as an, d as ln, e as Xn } from "./FilterSelector.vue_vue_type_script_setup_true_lang-6G7uvSDs.js";
|
|
9
9
|
import { r as Yn } from "./i18n-7InkCBCc.js";
|
|
10
10
|
import { useSnackbar as Wn } from "@feedmepos/ui-library";
|
|
11
11
|
import { d as Un } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CS10GX8d.js";
|
package/dist/app.js
CHANGED
|
@@ -5642,12 +5642,12 @@ const t = {
|
|
|
5642
5642
|
path: "/overview",
|
|
5643
5643
|
alias: ["/"],
|
|
5644
5644
|
name: "overview",
|
|
5645
|
-
component: () => import("./OverviewView-
|
|
5645
|
+
component: () => import("./OverviewView-C31PuWec.js")
|
|
5646
5646
|
},
|
|
5647
5647
|
{
|
|
5648
5648
|
path: "/report",
|
|
5649
5649
|
name: "reports",
|
|
5650
|
-
component: () => import("./Report-
|
|
5650
|
+
component: () => import("./Report-PWYl62Ly.js")
|
|
5651
5651
|
},
|
|
5652
5652
|
{
|
|
5653
5653
|
path: "/insights",
|
|
@@ -5657,17 +5657,17 @@ const t = {
|
|
|
5657
5657
|
{
|
|
5658
5658
|
path: "/report-view",
|
|
5659
5659
|
name: "reportView",
|
|
5660
|
-
component: () => import("./ReportView-
|
|
5660
|
+
component: () => import("./ReportView-CwqEToix.js")
|
|
5661
5661
|
},
|
|
5662
5662
|
{
|
|
5663
5663
|
path: "/report-editor",
|
|
5664
5664
|
name: "reportEditor",
|
|
5665
|
-
component: () => import("./ReportEditor-
|
|
5665
|
+
component: () => import("./ReportEditor-Dl_vS7sc.js")
|
|
5666
5666
|
},
|
|
5667
5667
|
{
|
|
5668
5668
|
path: "/report-editor/tile-editor",
|
|
5669
5669
|
name: "tileEditor",
|
|
5670
|
-
component: () => import("./TileEditor-
|
|
5670
|
+
component: () => import("./TileEditor-pmJq3xtl.js")
|
|
5671
5671
|
},
|
|
5672
5672
|
{
|
|
5673
5673
|
path: "/setting",
|
|
@@ -5710,7 +5710,7 @@ const u = {
|
|
|
5710
5710
|
"zh-CN": n,
|
|
5711
5711
|
"th-TH": c,
|
|
5712
5712
|
"zh-Hant": p
|
|
5713
|
-
}, h = e(() => import("./App-
|
|
5713
|
+
}, h = e(() => import("./App-DcFOVWEX.js"));
|
|
5714
5714
|
export {
|
|
5715
5715
|
h as FmApp,
|
|
5716
5716
|
u as i18nMessages,
|