@feedmepos/mf-report 5.32.3 → 5.33.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-UAlzwh8W.js +358 -0
- package/dist/{DateRangeSelect-6ojNsYQf.js → DateRangeSelect-DGymHTm5.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-DinIx-4F.js → Default.vue_vue_type_script_setup_true_lang-BAwuWy0R.js} +1 -1
- package/dist/{DigestListView-Rv4nvsme.js → DigestListView-eoOXNOE9.js} +3 -3
- package/dist/{DigestReaderView-Cy5rWEDn.js → DigestReaderView-CRQ0-vqh.js} +4 -4
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CrRev99v.js → DynamicWidget.vue_vue_type_script_setup_true_lang-rmTQHyLU.js} +7 -7
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CaFtkGgu.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Cy021Z5V.js} +753 -753
- package/dist/{InsightView-SOS32a9h.js → InsightView-CnAL5JFt.js} +5 -5
- package/dist/{Integration-CWo6GL7F.js → Integration-Bb3VR2SI.js} +3 -3
- package/dist/{Integrations-T1M6Fbke.js → Integrations-BiUJVHDh.js} +2 -2
- package/dist/{Layout-CNhJDEmI.js → Layout-DKpfLtDn.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-DgFWhBfv.js → LocationSelect.vue_vue_type_script_setup_true_lang-bs8OthZm.js} +1752 -1743
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BltVG4Ta.js → MenuTab.vue_vue_type_script_setup_true_lang-DG6xjZEY.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-B70bamMw.js → NavigationTab.vue_vue_type_script_setup_true_lang-BjDehTWf.js} +3187 -3187
- package/dist/{OverviewView-DM_qaGcz.js → OverviewView-BziKFl9t.js} +5 -5
- package/dist/Report-DlvT1bzh.js +722 -0
- package/dist/{ReportCanvasView-0680UK2i.js → ReportCanvasView-CMjmwsXO.js} +5 -5
- package/dist/{ReportEditor-9gIhhaWp.js → ReportEditor-DZyU_Os7.js} +7 -7
- package/dist/{ReportView-B1a3q6Ea.js → ReportView-9qFfZYsM.js} +64 -62
- package/dist/{ReportViewRoute-DW-K8Abr.js → ReportViewRoute-DdQof8f9.js} +2 -2
- package/dist/{Setting-BikzZySl.js → Setting-CfRLIBY5.js} +3 -3
- package/dist/Template-J8TO_oZh.js +557 -0
- package/dist/{TileEditor-B21SIE0n.js → TileEditor-DB53kEQW.js} +6 -6
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-BH2WdtF-.js → TilePageStack.vue_vue_type_script_setup_true_lang-BPh52iAb.js} +2 -2
- package/dist/{TransitionFade-DNtxHJq8.js → TransitionFade-DwTnsmO6.js} +6 -6
- package/dist/{app-DSxKqUxD.js → app-DJ8E_G1l.js} +2516 -2448
- 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-6k8Wfqi_.js} +1 -1
- package/dist/{index-BdZ-RSDt.js → index-DPXFXAit.js} +15 -15
- package/dist/{report-DcuMyUEc.js → report-DUMq52dp.js} +132 -132
- package/dist/style.css +1 -1
- package/dist/{useDigestFont-DYDD96g_.js → useDigestFont-BD2sKGUr.js} +1 -1
- package/dist/{useReportCanvasPanel-6D4KNid_.js → useReportCanvasPanel-BQBD11bU.js} +3 -3
- package/dist/{useRestaurantPermission-5C-J7LtV.js → useRestaurantPermission-CrSYU-Wn.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
|
@@ -3,11 +3,11 @@ import { useRoute as na, useRouter as ra } from "vue-router";
|
|
|
3
3
|
import { u as ct, _ as vt } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
4
4
|
import { storeToRefs as je } from "pinia";
|
|
5
5
|
import { useSnackbar as sa } from "@feedmepos/ui-library";
|
|
6
|
-
import { g as la, r as ia, f as ua, h as da, u as ca, c as va, b as fa, a as ma, R as pa, e as ya, p as ba, i as ha, j as ga, k as it, l as wa } from "./useReportCanvasPanel-
|
|
7
|
-
import { _ as _a } from "./LocationSelect.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { D as ka } from "./DateRangeSelect-
|
|
9
|
-
import { a as ft, j as xa } from "./app-
|
|
10
|
-
import { u as Ca } from "./report-
|
|
6
|
+
import { g as la, r as ia, f as ua, h as da, u as ca, c as va, b as fa, a as ma, R as pa, e as ya, p as ba, i as ha, j as ga, k as it, l as wa } from "./useReportCanvasPanel-BQBD11bU.js";
|
|
7
|
+
import { _ as _a } from "./LocationSelect.vue_vue_type_script_setup_true_lang-bs8OthZm.js";
|
|
8
|
+
import { D as ka } from "./DateRangeSelect-DGymHTm5.js";
|
|
9
|
+
import { a as ft, j as xa } from "./app-DJ8E_G1l.js";
|
|
10
|
+
import { u as Ca } from "./report-DUMq52dp.js";
|
|
11
11
|
import { u as Sa } from "./global-loader-BuxFfehu.js";
|
|
12
12
|
import { r as Ra } from "./i18n-DbyciK4x.js";
|
|
13
13
|
const Va = ["aria-label"], Aa = { class: "flex h-64 shrink-0 items-center gap-12 border-b border-fm-color-border-secondary px-[20px]" }, $a = { class: "fm-typo-en-body-md-600 grow" }, Ea = ["aria-label", "disabled"], Fa = { class: "min-h-0 grow overflow-y-auto px-[20px] py-[20px]" }, Da = { class: "fm-typo-en-body-md-400 mb-[20px] text-fm-color-typo-secondary" }, Ia = { class: "mb-24 rounded-[12px] border border-fm-color-border-secondary p-16" }, Ta = { class: "mb-8 flex items-center gap-8" }, Oa = { class: "fm-typo-en-body-md-600 grow" }, Ba = { class: "fm-typo-en-body-sm-600 rounded-md bg-fm-color-neutral-gray-100 px-8 py-4" }, La = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as we, mergeModels as ke, useModel as Te, ref as L, computed as g, resolveComponent as C, createBlock as x, openBlock as c, withCtx as _, createElementVNode as v, createVNode as u, unref as t, normalizeClass as Le, createTextVNode as Ae, toDisplayString as U, createElementBlock as R, Fragment as he, renderSlot as gl, createCommentVNode as D, watch as ve, renderList as Ee, onMounted as bl, onUnmounted as Dl, resolveDynamicComponent as Ol, isRef as yl, normalizeStyle as rl } from "vue";
|
|
2
|
-
import { W as Il, g as Ul, _ as Nl, a as Bl, e as De, S as We, d as hl, b as wl, T as Ml, c as Rl } from "./TransitionFade-
|
|
3
|
-
import { C as xe, D as te, b as ze, F as Je, c as Oe, u as il, i as Pe, d as pe, M as _l, r as zl, e as el, n as Pl, f as ql, g as El, h as Ll, j as Gl, k as Wl, m as Al, a as Hl, o as ml, p as ll, q as jl, Q as Qe, l as Jl, t as Ql } from "./report-
|
|
2
|
+
import { W as Il, g as Ul, _ as Nl, a as Bl, e as De, S as We, d as hl, b as wl, T as Ml, c as Rl } from "./TransitionFade-DwTnsmO6.js";
|
|
3
|
+
import { C as xe, D as te, b as ze, F as Je, c as Oe, u as il, i as Pe, d as pe, M as _l, r as zl, e as el, n as Pl, f as ql, g as El, h as Ll, j as Gl, k as Wl, m as Al, a as Hl, o as ml, p as ll, q as jl, Q as Qe, l as Jl, t as Ql } from "./report-DUMq52dp.js";
|
|
4
4
|
import { storeToRefs as qe } from "pinia";
|
|
5
5
|
import { useRouter as sl, useRoute as ul } from "vue-router";
|
|
6
6
|
import { useBreakpoints as Ke, useSnackbar as Fl, FmButtonColorThemeVariant as Ce } from "@feedmepos/ui-library";
|
|
@@ -8,13 +8,13 @@ import { u as dl } from "./message-dialog-UoMWOnil.js";
|
|
|
8
8
|
import { u as Kl } from "./global-loader-BuxFfehu.js";
|
|
9
9
|
import { u as Ge } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
10
10
|
import { r as He } from "./i18n-DbyciK4x.js";
|
|
11
|
-
import { _ as tl } from "./TilePageStack.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { _ as tl } from "./TilePageStack.vue_vue_type_script_setup_true_lang-BPh52iAb.js";
|
|
12
12
|
import { a as ol, _ as al } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
13
|
-
import { d as Yl, e as Xl, i as Zl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { g as et, d as lt, _ as cl } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
13
|
+
import { d as Yl, e as Xl, i as Zl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-rmTQHyLU.js";
|
|
14
|
+
import { g as et, d as lt, _ as cl } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Cy021Z5V.js";
|
|
15
15
|
import { useCoreStore as tt } from "@feedmepos/mf-common";
|
|
16
|
-
import { u as ot, a as at } from "./app-
|
|
17
|
-
import { d as rt } from "./DateRangeSelect-
|
|
16
|
+
import { u as ot, a as at } from "./app-DJ8E_G1l.js";
|
|
17
|
+
import { d as rt } from "./DateRangeSelect-DGymHTm5.js";
|
|
18
18
|
const nt = /* @__PURE__ */ we({
|
|
19
19
|
__name: "WidgetDialog",
|
|
20
20
|
props: /* @__PURE__ */ ke({
|
|
@@ -1,67 +1,69 @@
|
|
|
1
|
-
import { defineComponent as z, computed as n, createBlock as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { u as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { storeToRefs as
|
|
8
|
-
import {
|
|
1
|
+
import { defineComponent as z, computed as n, createBlock as y, openBlock as g, withCtx as w, renderSlot as ie, ref as ue, watch as ce, resolveComponent as V, createVNode as k, createElementVNode as R, unref as l, toDisplayString as pe, normalizeStyle as me, normalizeClass as de } from "vue";
|
|
2
|
+
import { _ as ve } from "./MenuTab.vue_vue_type_script_setup_true_lang-DG6xjZEY.js";
|
|
3
|
+
import { _ as fe } from "./TilePageStack.vue_vue_type_script_setup_true_lang-BPh52iAb.js";
|
|
4
|
+
import { u as ye, l as ge } from "./report-DUMq52dp.js";
|
|
5
|
+
import { useRouter as be, useRoute as _e } from "vue-router";
|
|
6
|
+
import { _ as we } from "./Default.vue_vue_type_script_setup_true_lang-BAwuWy0R.js";
|
|
7
|
+
import { storeToRefs as f } from "pinia";
|
|
8
|
+
import { u as Se, e as Ce, j as xe } from "./app-DJ8E_G1l.js";
|
|
9
|
+
import { a as Te, b as he, u as ke, g as Re } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BjDehTWf.js";
|
|
9
10
|
import { _ as L } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
10
|
-
import { useSnackbar as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
const Ee = /* @__PURE__ */ z({
|
|
11
|
+
import { useSnackbar as Pe, useBreakpoints as De } from "@feedmepos/ui-library";
|
|
12
|
+
import { u as Oe } from "./global-loader-BuxFfehu.js";
|
|
13
|
+
import { u as Ie } from "./message-dialog-UoMWOnil.js";
|
|
14
|
+
import { u as Q, _ as Ee } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
15
|
+
import { r as $e } from "./i18n-DbyciK4x.js";
|
|
16
|
+
const Ae = /* @__PURE__ */ z({
|
|
17
17
|
__name: "NoPermission",
|
|
18
18
|
props: {
|
|
19
19
|
title: { default: "report.messages.noPermission" },
|
|
20
20
|
subTitle: { default: "report.messages.noPermissionPageAccess" }
|
|
21
21
|
},
|
|
22
22
|
setup(P) {
|
|
23
|
-
const t = P, { t:
|
|
24
|
-
return (r, S) => (
|
|
23
|
+
const t = P, { t: b } = Q(), m = n(() => b(t.title)), c = n(() => b(t.subTitle));
|
|
24
|
+
return (r, S) => (g(), y(L, {
|
|
25
25
|
title: m.value,
|
|
26
26
|
"sub-title": c.value
|
|
27
27
|
}, {
|
|
28
28
|
menu: w(() => [
|
|
29
|
-
|
|
29
|
+
ie(r.$slots, "menu")
|
|
30
30
|
]),
|
|
31
31
|
_: 3
|
|
32
32
|
}, 8, ["title", "sub-title"]));
|
|
33
33
|
}
|
|
34
|
-
}),
|
|
34
|
+
}), Ne = { class: "fm-typo-en-title-md-600 block min-w-0 max-w-full overflow-hidden text-ellipsis whitespace-nowrap" }, Je = { class: "sticky top-0 z-10 bg-white" }, qe = /* @__PURE__ */ z({
|
|
35
35
|
__name: "ReportView",
|
|
36
36
|
setup(P) {
|
|
37
|
-
const { t, te:
|
|
37
|
+
const { t, te: b } = Q(), m = be(), c = _e(), r = Pe(), { promptMessage: S } = Ie(), d = ye(), D = Te(), { promptLoader: C } = Oe(), { breakpoints: u } = De(), { isOpenAccountingDialog: U } = f(he()), { isFoodCourt: H } = f(Se()), { isOpenScheduleDialog: O } = f(ke()), { disabled: I } = f(Ce()), E = ue(null), $ = n(
|
|
38
38
|
() => {
|
|
39
39
|
var s;
|
|
40
40
|
return ((s = E.value) == null ? void 0 : s.reportId) === p.value;
|
|
41
41
|
}
|
|
42
42
|
), {
|
|
43
43
|
currentReport: e,
|
|
44
|
-
overviewReport:
|
|
44
|
+
overviewReport: M,
|
|
45
45
|
currentReportId: p,
|
|
46
|
-
isOpenDownloadDialog:
|
|
47
|
-
isOpenEmailDialog:
|
|
46
|
+
isOpenDownloadDialog: W,
|
|
47
|
+
isOpenEmailDialog: Y,
|
|
48
48
|
editingReport: A,
|
|
49
|
-
canCreateCustomReport:
|
|
49
|
+
canCreateCustomReport: G,
|
|
50
50
|
customReportQuota: N
|
|
51
|
-
} =
|
|
52
|
-
() => !!e.value &&
|
|
53
|
-
),
|
|
54
|
-
() =>
|
|
51
|
+
} = f(d), { canRead: K, canUpdate: X, canDuplicate: Z, canEditQueryEngine: ee, isAdmin: te } = xe(), J = n(
|
|
52
|
+
() => !!e.value && ee(e.value)
|
|
53
|
+
), _ = n(() => e.value ? K(e.value) : !0), x = n(
|
|
54
|
+
() => _.value && te.value && !!e.value && !e.value.isDefault
|
|
55
55
|
);
|
|
56
|
-
|
|
56
|
+
ce(
|
|
57
57
|
() => p.value,
|
|
58
|
-
async () =>
|
|
58
|
+
async () => {
|
|
59
|
+
E.value = H.value ? null : await Re(p.value);
|
|
60
|
+
},
|
|
59
61
|
{ immediate: !0 }
|
|
60
62
|
);
|
|
61
|
-
const
|
|
63
|
+
const oe = n(() => {
|
|
62
64
|
var a;
|
|
63
|
-
if (!
|
|
64
|
-
const s = p.value === ((a =
|
|
65
|
+
if (!_.value) return [];
|
|
66
|
+
const s = p.value === ((a = M.value) == null ? void 0 : a.id), o = [
|
|
65
67
|
{
|
|
66
68
|
icon: "mail",
|
|
67
69
|
label: t("report.common.emailSchedule"),
|
|
@@ -73,7 +75,7 @@ const Ee = /* @__PURE__ */ z({
|
|
|
73
75
|
icon: "article",
|
|
74
76
|
label: t(s ? "report.common.unsetAsOverview" : "report.common.setAsOverview"),
|
|
75
77
|
onClick: async () => {
|
|
76
|
-
await
|
|
78
|
+
await C(async () => {
|
|
77
79
|
if (e.value)
|
|
78
80
|
try {
|
|
79
81
|
await d.updateDefaultReport(s ? null : e.value.id), r.open({
|
|
@@ -105,7 +107,7 @@ const Ee = /* @__PURE__ */ z({
|
|
|
105
107
|
icon: "download",
|
|
106
108
|
label: t("report.common.accountingExport"),
|
|
107
109
|
onClick: B
|
|
108
|
-
}),
|
|
110
|
+
}), x.value && o.splice(o.length - 1, 0, {
|
|
109
111
|
icon: "library_add",
|
|
110
112
|
label: t("report.common.copyToTemplate"),
|
|
111
113
|
onClick: () => {
|
|
@@ -116,12 +118,12 @@ const Ee = /* @__PURE__ */ z({
|
|
|
116
118
|
async function q() {
|
|
117
119
|
D.isOpenJobDialog = !0, await D.getJobs();
|
|
118
120
|
}
|
|
119
|
-
function
|
|
121
|
+
function ae() {
|
|
120
122
|
if (e.value && J.value) {
|
|
121
123
|
A.value = JSON.parse(JSON.stringify(e.value)), m.push({ name: "reportEditor", query: c.query });
|
|
122
124
|
return;
|
|
123
125
|
}
|
|
124
|
-
if (!e.value || !
|
|
126
|
+
if (!e.value || !X(e.value)) {
|
|
125
127
|
r.open({
|
|
126
128
|
message: t("report.messages.noPermissionUpdateReport"),
|
|
127
129
|
type: "error"
|
|
@@ -133,15 +135,15 @@ const Ee = /* @__PURE__ */ z({
|
|
|
133
135
|
query: c.query
|
|
134
136
|
});
|
|
135
137
|
}
|
|
136
|
-
async function
|
|
137
|
-
if (!e.value || !
|
|
138
|
+
async function re() {
|
|
139
|
+
if (!e.value || !Z(e.value)) {
|
|
138
140
|
r.open({
|
|
139
141
|
message: t("report.messages.noPermissionDuplicateReport"),
|
|
140
142
|
type: "error"
|
|
141
143
|
});
|
|
142
144
|
return;
|
|
143
145
|
}
|
|
144
|
-
if (!
|
|
146
|
+
if (!G.value) {
|
|
145
147
|
let o = `Your current plan only support up to ${N.value} custom reports.`;
|
|
146
148
|
N.value === 0 && (o = "Your current plan does not support custom report."), r.open({
|
|
147
149
|
message: o,
|
|
@@ -163,7 +165,7 @@ const Ee = /* @__PURE__ */ z({
|
|
|
163
165
|
const o = JSON.parse(JSON.stringify(e.value));
|
|
164
166
|
o.editable = !0, o.id = "", o.name = `${o.name} duplicate`, o.isDefault = !1;
|
|
165
167
|
try {
|
|
166
|
-
await
|
|
168
|
+
await C(async () => {
|
|
167
169
|
const a = await d.createOrUpdateReport(o);
|
|
168
170
|
d.updateCurrentReportId(a.id), m.push({
|
|
169
171
|
name: "reportView",
|
|
@@ -178,7 +180,7 @@ const Ee = /* @__PURE__ */ z({
|
|
|
178
180
|
}
|
|
179
181
|
async function j() {
|
|
180
182
|
var o;
|
|
181
|
-
if (!
|
|
183
|
+
if (!x.value) {
|
|
182
184
|
r.open({
|
|
183
185
|
message: t("report.messages.noPermission"),
|
|
184
186
|
type: "error"
|
|
@@ -197,7 +199,7 @@ const Ee = /* @__PURE__ */ z({
|
|
|
197
199
|
})
|
|
198
200
|
}))
|
|
199
201
|
try {
|
|
200
|
-
await
|
|
202
|
+
await C(async () => {
|
|
201
203
|
var a;
|
|
202
204
|
await d.createReportTemplate(e.value), r.open({
|
|
203
205
|
message: t("report.messages.copyTemplateSuccess", { name: (a = e.value) == null ? void 0 : a.name }),
|
|
@@ -214,12 +216,12 @@ const Ee = /* @__PURE__ */ z({
|
|
|
214
216
|
function B() {
|
|
215
217
|
U.value = !0;
|
|
216
218
|
}
|
|
217
|
-
function
|
|
219
|
+
function se() {
|
|
218
220
|
e.value && (navigator.clipboard.writeText(p.value), r.open({ message: "Copied report ID to clipboard", type: "success" }));
|
|
219
221
|
}
|
|
220
|
-
const T = n(() => e.value ? e.value.tiles : []),
|
|
222
|
+
const T = n(() => e.value ? e.value.tiles : []), le = n(() => ge(T.value)), ne = n(() => {
|
|
221
223
|
var a;
|
|
222
|
-
if (!
|
|
224
|
+
if (!_.value) return [];
|
|
223
225
|
const s = !!((a = e.value) != null && a.editable);
|
|
224
226
|
let o = [
|
|
225
227
|
...s || J.value ? [{ label: t("report.common.edit"), value: "edit", isPrimary: !1 }] : [],
|
|
@@ -238,29 +240,29 @@ const Ee = /* @__PURE__ */ z({
|
|
|
238
240
|
{ label: t("report.common.reportStatus"), value: "report_jobs", isPrimary: !1 },
|
|
239
241
|
{ label: t("report.common.emailSchedule"), value: "schedule_email", isPrimary: !1 },
|
|
240
242
|
{ label: t("report.common.copyID"), value: "content_copy", isPrimary: !1 }
|
|
241
|
-
],
|
|
243
|
+
], x.value && o.push({
|
|
242
244
|
label: t("report.common.copyToTemplate"),
|
|
243
245
|
value: "copy_to_template",
|
|
244
246
|
isPrimary: !1
|
|
245
247
|
}), !I.value && $.value && o.push({ label: t("report.common.accountingExport"), value: "export", isPrimary: !1 }), o = o.filter((v) => v.value !== "edit")), o;
|
|
246
248
|
}), h = n(() => {
|
|
247
249
|
var s;
|
|
248
|
-
return
|
|
250
|
+
return $e(t, b, (s = e == null ? void 0 : e.value) == null ? void 0 : s.name, "other");
|
|
249
251
|
});
|
|
250
252
|
return (s, o) => {
|
|
251
253
|
const a = V("FmTooltip"), v = V("FmPageHead");
|
|
252
|
-
return
|
|
254
|
+
return g(), y(we, null, {
|
|
253
255
|
default: w(() => {
|
|
254
256
|
var F;
|
|
255
257
|
return [
|
|
256
258
|
k(v, {
|
|
257
259
|
title: h.value,
|
|
258
260
|
"back-button": !0,
|
|
259
|
-
actions:
|
|
261
|
+
actions: ne.value,
|
|
260
262
|
class: "remove-line-clamping",
|
|
261
263
|
"onClick:back": o[0] || (o[0] = (i) => l(m).push({ name: "reports", query: l(c).query })),
|
|
262
264
|
"onClick:action": o[1] || (o[1] = (i) => {
|
|
263
|
-
i === "duplicate" &&
|
|
265
|
+
i === "duplicate" && re(), i === "download" && (W.value = !0), i === "email" && (Y.value = !0), i === "edit" && ae(), i === "schedule_email" && (O.value = !0), i === "content_copy" && se(), i === "copy_to_template" && j(), i === "export" && B(), i === "report_jobs" && q();
|
|
264
266
|
})
|
|
265
267
|
}, {
|
|
266
268
|
title: w(() => [
|
|
@@ -271,7 +273,7 @@ const Ee = /* @__PURE__ */ z({
|
|
|
271
273
|
class: "flex min-w-0 max-w-full justify-start"
|
|
272
274
|
}, {
|
|
273
275
|
default: w(() => [
|
|
274
|
-
R("p",
|
|
276
|
+
R("p", Ne, pe(h.value), 1)
|
|
275
277
|
]),
|
|
276
278
|
_: 1
|
|
277
279
|
}, 8, ["content"])
|
|
@@ -279,21 +281,21 @@ const Ee = /* @__PURE__ */ z({
|
|
|
279
281
|
_: 1
|
|
280
282
|
}, 8, ["title", "actions"]),
|
|
281
283
|
R("div", {
|
|
282
|
-
class:
|
|
283
|
-
style:
|
|
284
|
+
class: de(`flex flex-col overflow-y-auto ${l(u).xs || l(u).sm ? "pb-20" : ""}`),
|
|
285
|
+
style: me({ height: `calc(100% - ${l(u).lg || l(u).md ? 72 : 64}px)` })
|
|
284
286
|
}, [
|
|
285
|
-
R("div",
|
|
286
|
-
k(
|
|
287
|
-
"model-value": l(u).lg || l(u).md ?
|
|
287
|
+
R("div", Je, [
|
|
288
|
+
k(ve, {
|
|
289
|
+
"model-value": l(u).lg || l(u).md ? oe.value : []
|
|
288
290
|
}, null, 8, ["model-value"])
|
|
289
291
|
]),
|
|
290
|
-
l(e) && !
|
|
292
|
+
l(e) && !_.value ? (g(), y(Ae, { key: 0 })) : l(e) && ((F = T.value) == null ? void 0 : F.length) > 0 ? (g(), y(fe, {
|
|
291
293
|
key: 1,
|
|
292
294
|
tiles: T.value,
|
|
293
295
|
"report-id": l(p),
|
|
294
|
-
"leaf-index-by-id":
|
|
296
|
+
"leaf-index-by-id": le.value,
|
|
295
297
|
"grid-class": l(u).sm || l(u).xs ? "px-3 gap-[16px]" : "px-24 gap-[24px]"
|
|
296
|
-
}, null, 8, ["tiles", "report-id", "leaf-index-by-id", "grid-class"])) : (
|
|
298
|
+
}, null, 8, ["tiles", "report-id", "leaf-index-by-id", "grid-class"])) : (g(), y(L, { key: 2 }))
|
|
297
299
|
], 6)
|
|
298
300
|
];
|
|
299
301
|
}),
|
|
@@ -301,7 +303,7 @@ const Ee = /* @__PURE__ */ z({
|
|
|
301
303
|
});
|
|
302
304
|
};
|
|
303
305
|
}
|
|
304
|
-
}),
|
|
306
|
+
}), Ze = /* @__PURE__ */ Ee(qe, [["__scopeId", "data-v-f2612eb6"]]);
|
|
305
307
|
export {
|
|
306
|
-
|
|
308
|
+
Ze as default
|
|
307
309
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as i, defineAsyncComponent as t, computed as m, createBlock as r, openBlock as n, unref as o } from "vue";
|
|
2
2
|
import { useRoute as f } from "vue-router";
|
|
3
|
-
import { u as _ } from "./report-
|
|
3
|
+
import { u as _ } from "./report-DUMq52dp.js";
|
|
4
4
|
const v = /* @__PURE__ */ i({
|
|
5
5
|
__name: "ReportViewRoute",
|
|
6
6
|
setup(R) {
|
|
7
|
-
const p = t(() => import("./ReportView-
|
|
7
|
+
const p = t(() => import("./ReportView-9qFfZYsM.js")), s = t(() => import("./ReportCanvasView-CMjmwsXO.js")), c = f(), u = _(), a = m(() => {
|
|
8
8
|
var e;
|
|
9
9
|
return ((e = u.currentReport) == null ? void 0 : e.reportType) === "canvas";
|
|
10
10
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as R, ref as N, useModel as L, resolveComponent as V, createElementBlock as $, openBlock as h, createBlock as U, createElementVNode as t, resolveDynamicComponent as ue, unref as e, withCtx as b, createVNode as n, normalizeClass as B, toDisplayString as a, Fragment as W, renderList as X, createTextVNode as de, withDirectives as Y, vShow as ee, createCommentVNode as pe, computed as q, watch as ce, normalizeStyle as fe } from "vue";
|
|
2
|
-
import { _ as _e } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { d as A, C as G, D as ve,
|
|
2
|
+
import { _ as _e } from "./Default.vue_vue_type_script_setup_true_lang-BAwuWy0R.js";
|
|
3
|
+
import { d as A, C as G, D as ve, x as ge, y as Z, a as ye } from "./app-DJ8E_G1l.js";
|
|
4
4
|
import { components as K, useSnackbar as te, useBreakpoints as oe, FmButtonColorThemeVariant as Q } from "@feedmepos/ui-library";
|
|
5
|
-
import { e as le, t as E, s as he } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { e as le, t as E, s as he } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Cy021Z5V.js";
|
|
6
6
|
import { u as xe } from "./message-dialog-UoMWOnil.js";
|
|
7
7
|
import { u as w } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
8
8
|
import { detectLocale as F } from "@feedmepos/mf-common";
|