@feedmepos/mf-report 5.5.10 → 5.5.11-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-CI59NhMr.js → App-C93dQ2YZ.js} +42 -42
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-C3Dsnzzo.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CN3UKRaQ.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-HE3jlz2q.js → Default.vue_vue_type_script_setup_true_lang-D7TqpbQ9.js} +2 -2
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-Blu98Lu7.js +1082 -0
- package/dist/{InsightView-CArL6hDD.js → InsightView-bZx6j8q5.js} +6 -6
- package/dist/{Integration-CYsx29Kj.js → Integration-CoavOChV.js} +3 -3
- package/dist/{Integrations-RluH7jrn.js → Integrations-B6ACZi86.js} +3 -3
- package/dist/{Layout-BhKNg55v.js → Layout-CVsorGV9.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-B_N9ULY9.js → MenuTab.vue_vue_type_script_setup_true_lang-AopNmaX1.js} +3 -3
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DULwCyXt.js → NavigationTab.vue_vue_type_script_setup_true_lang-4LIEfrJG.js} +5 -5
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-CCA1l-Cz.js → NoData.vue_vue_type_script_setup_true_lang-DI4X_DSc.js} +1 -1
- package/dist/{OverviewView-CQGrtNQb.js → OverviewView-D7wq9voi.js} +5 -5
- package/dist/{Report-Cl-cAzXC.js → Report-St-N-XGu.js} +90 -89
- package/dist/{ReportEditor-CWjNbjr_.js → ReportEditor-BhaqAf-H.js} +176 -175
- package/dist/ReportView-BqHk2OOl.js +190 -0
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-CXYvLXnR.js → SelectComponent.vue_vue_type_script_setup_true_lang-BVs1C4af.js} +1 -1
- package/dist/{Setting-DC_StvBp.js → Setting-CF6M_Gb2.js} +4 -4
- package/dist/TileEditor-Dh1OSYsO.js +2538 -0
- package/dist/{TransitionFade-DdNpeVds.js → TransitionFade-z9aoIr9s.js} +5 -5
- package/dist/app.js +1586 -41
- package/dist/{global-loader-KvOGLx9k.js → global-loader-BqFQzk46.js} +1 -1
- package/dist/i18n-Cif1I9J2.js +11 -0
- package/dist/{index-CW2xYO89.js → index-DqqTHE7n.js} +1 -1
- package/dist/{report-schema-Zw8e6-XZ.js → report-schema-OJAFh4P6.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{v4-CHk_oNmT.js → v4-HCTsB306.js} +1 -1
- package/package.json +1 -1
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-DxpesBb1.js +0 -1074
- package/dist/ReportView-ChiQMhSH.js +0 -180
- package/dist/TileEditor-DNuK7pwX.js +0 -2514
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { defineComponent as L, computed as v, resolveComponent as V, createBlock as g, openBlock as u, withCtx as z, createVNode as D, createElementVNode as H, unref as t, normalizeStyle as M, normalizeClass as R, createElementBlock as $, Fragment as Y, renderList as G } from "vue";
|
|
2
|
-
import { _ as Q } from "./MenuTab.vue_vue_type_script_setup_true_lang-B_N9ULY9.js";
|
|
3
|
-
import { _ as U } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DxpesBb1.js";
|
|
4
|
-
import { useRouter as W, useRoute as K } from "vue-router";
|
|
5
|
-
import { _ as X } from "./Default.vue_vue_type_script_setup_true_lang-HE3jlz2q.js";
|
|
6
|
-
import { a as Z } from "./v4-CHk_oNmT.js";
|
|
7
|
-
import { storeToRefs as p } from "pinia";
|
|
8
|
-
import { b as ee, c as oe, u as te } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DULwCyXt.js";
|
|
9
|
-
import { _ as re } from "./NoData.vue_vue_type_script_setup_true_lang-CCA1l-Cz.js";
|
|
10
|
-
import { useSnackbar as ae, useBreakpoints as le } from "@feedmepos/ui-library";
|
|
11
|
-
import { u as ne, f as ie, e as se } from "./global-loader-KvOGLx9k.js";
|
|
12
|
-
import { u as ue } from "./message-dialog-UoMWOnil.js";
|
|
13
|
-
const xe = /* @__PURE__ */ L({
|
|
14
|
-
__name: "ReportView",
|
|
15
|
-
setup(ce) {
|
|
16
|
-
const { t: n } = ne(), m = W(), d = K(), i = ae(), { promptMessage: h } = ue(), f = Z(), b = ee(), { promptLoader: E } = ie(), { breakpoints: l } = le(), {
|
|
17
|
-
currentReport: o,
|
|
18
|
-
currentReportId: c,
|
|
19
|
-
isOpenDownloadDialog: P,
|
|
20
|
-
isOpenEmailDialog: O,
|
|
21
|
-
editingReport: I,
|
|
22
|
-
canCreateCustomReport: J,
|
|
23
|
-
customReportQuota: y
|
|
24
|
-
} = p(f), { isOpenAccountingDialog: N } = p(oe()), { isOpenScheduleDialog: _ } = p(te()), { disabled: q } = p(se()), A = v(() => {
|
|
25
|
-
const a = [
|
|
26
|
-
{
|
|
27
|
-
icon: "mail",
|
|
28
|
-
label: n("report.common.emailSchedule"),
|
|
29
|
-
onClick: () => {
|
|
30
|
-
_.value = !0;
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
// {
|
|
34
|
-
// icon: "article",
|
|
35
|
-
// label: "Set as Default",
|
|
36
|
-
// onClick: async () => {
|
|
37
|
-
// await promptLoader(async () => {
|
|
38
|
-
// if (currentReport.value) {
|
|
39
|
-
// try {
|
|
40
|
-
// await reportStore.updateDefaultReport(currentReport.value.id)
|
|
41
|
-
// snackbar.open({
|
|
42
|
-
// message: `Set ${currentReport.value.name} as default successful`,
|
|
43
|
-
// type: "success"
|
|
44
|
-
// })
|
|
45
|
-
// } catch (err) {
|
|
46
|
-
// snackbar.open({ message: JSON.stringify(err), type: "error" })
|
|
47
|
-
// }
|
|
48
|
-
// }
|
|
49
|
-
// })
|
|
50
|
-
// }
|
|
51
|
-
// },
|
|
52
|
-
{
|
|
53
|
-
icon: "content_copy",
|
|
54
|
-
label: n("report.common.copyID"),
|
|
55
|
-
onClick: () => {
|
|
56
|
-
o.value && (navigator.clipboard.writeText(c.value), i.open({ message: n("report.messages.copiedReportIdToClipboard"), type: "success" }));
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
icon: "report_jobs",
|
|
61
|
-
label: n("report.common.reportStatus"),
|
|
62
|
-
onClick: () => {
|
|
63
|
-
k();
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
];
|
|
67
|
-
return q.value || a.splice(1, 0, {
|
|
68
|
-
icon: "download",
|
|
69
|
-
label: n("report.common.accountingExport"),
|
|
70
|
-
onClick: C
|
|
71
|
-
}), a;
|
|
72
|
-
});
|
|
73
|
-
async function k() {
|
|
74
|
-
b.isOpenJobDialog = !0, await b.getJobs();
|
|
75
|
-
}
|
|
76
|
-
function B() {
|
|
77
|
-
I.value = JSON.parse(JSON.stringify(o.value)), m.push({
|
|
78
|
-
name: "reportEditor",
|
|
79
|
-
query: d.query
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
async function T() {
|
|
83
|
-
if (!J.value) {
|
|
84
|
-
let e = `Your current plan only support up to ${y.value} custom reports.`;
|
|
85
|
-
y.value === 0 && (e = "Your current plan does not support custom report."), i.open({
|
|
86
|
-
message: e,
|
|
87
|
-
type: "error"
|
|
88
|
-
});
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
if (!o.value) {
|
|
92
|
-
i.open({ message: "No Widget", type: "error" });
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
if (await h({
|
|
96
|
-
title: `${n("report.messages.saveReport")}`,
|
|
97
|
-
message: n("report.messages.confirmAction", {
|
|
98
|
-
action: n("report.common.duplicate"),
|
|
99
|
-
name: o.value.name
|
|
100
|
-
})
|
|
101
|
-
}) && o.value) {
|
|
102
|
-
const e = JSON.parse(JSON.stringify(o.value));
|
|
103
|
-
e.editable = !0, e.id = "", e.name = `${e.name} duplicate`;
|
|
104
|
-
try {
|
|
105
|
-
await E(async () => {
|
|
106
|
-
await f.createOrUpdateReport(e), f.updateCurrentReportId(c.value), m.push({
|
|
107
|
-
name: "reportView",
|
|
108
|
-
query: d.query
|
|
109
|
-
});
|
|
110
|
-
});
|
|
111
|
-
} catch (s) {
|
|
112
|
-
console.log(s), i.open({ message: "Failed to clone report", type: "error" });
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
function C() {
|
|
117
|
-
N.value = !0;
|
|
118
|
-
}
|
|
119
|
-
function j() {
|
|
120
|
-
o.value && (navigator.clipboard.writeText(c.value), i.open({ message: "Copied report ID to clipboard", type: "success" }));
|
|
121
|
-
}
|
|
122
|
-
const S = v(() => o.value ? o.value.tiles : []), F = v(() => {
|
|
123
|
-
var e;
|
|
124
|
-
let a = [
|
|
125
|
-
(e = o == null ? void 0 : o.value) != null && e.editable ? { label: "Edit", value: "edit", isPrimary: !1 } : { label: "Duplicate", value: "duplicate", isPrimary: !1 },
|
|
126
|
-
{ label: "Download", value: "download", isPrimary: !0, prependIcon: "download" },
|
|
127
|
-
{ label: "Send Email", value: "email", isPrimary: !0 }
|
|
128
|
-
];
|
|
129
|
-
return l.value.xs && (a = [
|
|
130
|
-
...a,
|
|
131
|
-
{ label: "Send Email", value: "email", isPrimary: !1 },
|
|
132
|
-
{ label: "Job Delivery Status", value: "report_jobs", isPrimary: !1 },
|
|
133
|
-
{ label: "Email schedule", value: "schedule_email", isPrimary: !1 },
|
|
134
|
-
{ label: "Accounting export", value: "export", isPrimary: !1 },
|
|
135
|
-
{ label: "Copy ID", value: "content_copy", isPrimary: !1 }
|
|
136
|
-
], a = a.filter((s) => s.value !== "edit")), a;
|
|
137
|
-
});
|
|
138
|
-
return (a, e) => {
|
|
139
|
-
const s = V("FmPageHead");
|
|
140
|
-
return u(), g(X, null, {
|
|
141
|
-
default: z(() => {
|
|
142
|
-
var x;
|
|
143
|
-
return [
|
|
144
|
-
D(s, {
|
|
145
|
-
title: (x = t(o)) == null ? void 0 : x.name,
|
|
146
|
-
"back-button": !0,
|
|
147
|
-
actions: F.value,
|
|
148
|
-
"onClick:back": e[0] || (e[0] = (r) => t(m).push({ name: "reports", query: t(d).query })),
|
|
149
|
-
"onClick:action": e[1] || (e[1] = (r) => {
|
|
150
|
-
r === "duplicate" && T(), r === "download" && (P.value = !0), r === "email" && (O.value = !0), r === "edit" && B(), r === "schedule_email" && (_.value = !0), r === "content_copy" && j(), r === "export" && C(), r === "report_jobs" && k();
|
|
151
|
-
})
|
|
152
|
-
}, null, 8, ["title", "actions"]),
|
|
153
|
-
H("div", {
|
|
154
|
-
class: R(`flex flex-col overflow-y-auto ${t(l).xs || t(l).sm ? "pb-20" : ""}`),
|
|
155
|
-
style: M({ height: `calc(100% - ${t(l).lg || t(l).md ? 72 : 64}px)` })
|
|
156
|
-
}, [
|
|
157
|
-
D(Q, {
|
|
158
|
-
"model-value": t(l).lg || t(l).md ? A.value : []
|
|
159
|
-
}, null, 8, ["model-value"]),
|
|
160
|
-
t(o) && S.value.length > 0 ? (u(), $("div", {
|
|
161
|
-
key: 0,
|
|
162
|
-
class: R(["grid grid-cols-12", t(l).sm || t(l).xs ? "px-3 gap-[16px]" : "px-24 gap-[24px]"])
|
|
163
|
-
}, [
|
|
164
|
-
(u(!0), $(Y, null, G(S.value, (r, w) => (u(), g(U, {
|
|
165
|
-
key: `widget_${t(c)}_${w}`,
|
|
166
|
-
"model-value": r,
|
|
167
|
-
index: w
|
|
168
|
-
}, null, 8, ["model-value", "index"]))), 128))
|
|
169
|
-
], 2)) : (u(), g(re, { key: 1 }))
|
|
170
|
-
], 6)
|
|
171
|
-
];
|
|
172
|
-
}),
|
|
173
|
-
_: 1
|
|
174
|
-
});
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
export {
|
|
179
|
-
xe as default
|
|
180
|
-
};
|