@feedmepos/mf-report 5.19.22 → 5.19.23-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-BSPCHkXK.js → App-Dl4FEwnr.js} +31 -31
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-g-uxOKsk.js → BaseDialog.vue_vue_type_script_setup_true_lang-BMUdA00d.js} +2 -2
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-cfshXMB2.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BeBr4VIF.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CKFgPJYQ.js → Default.vue_vue_type_script_setup_true_lang-B4KGPc-A.js} +2 -2
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-CaNN2UuW.js → FilterSelector.vue_vue_type_script_setup_true_lang-Bp0VTpqx.js} +6 -6
- package/dist/{InsightView-C454vlgZ.js → InsightView-VRhKOgcg.js} +5 -5
- package/dist/{Integration-CPVZguLL.js → Integration-BovNO2yX.js} +2 -2
- package/dist/{Integrations-jn20KmcD.js → Integrations-DIXSWGS_.js} +3 -3
- package/dist/{Layout-D5Wd65PM.js → Layout-Djm1HkoE.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-D-WSq7fL.js → MenuTab.vue_vue_type_script_setup_true_lang-BRCHCYha.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CmW84nrF.js → NavigationTab.vue_vue_type_script_setup_true_lang-BRpEu6MW.js} +4 -4
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-BUoYdn5S.js → NoData.vue_vue_type_script_setup_true_lang-CtN7oqXx.js} +1 -1
- package/dist/{OverviewView-TpvpO6h7.js → OverviewView-BNle5SLL.js} +5 -5
- package/dist/{Report-BUofTX7w.js → Report-DUK8tWB1.js} +5 -5
- package/dist/{ReportEditor-DDiBdI4N.js → ReportEditor-C55X4vz_.js} +7 -7
- package/dist/{ReportView-L-b31EKi.js → ReportView-DAmVomKW.js} +65 -65
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-B2oCOTUH.js → SelectComponent.vue_vue_type_script_setup_true_lang-BcQEW5MO.js} +1 -1
- package/dist/{Setting-CuBDsvAT.js → Setting-DgU3IvCo.js} +4 -4
- package/dist/{TileEditor-DaUXc4rO.js → TileEditor-UfdRj82z.js} +467 -467
- package/dist/{TransitionFade-CgWSxrTR.js → TransitionFade-Cqa0p_nG.js} +5 -5
- package/dist/app.js +119 -15
- package/dist/i18n-DQxDgiLO.js +11 -0
- package/dist/{vue-i18n-BQN8HgvD.js → vue-i18n-BJW_sJot.js} +1 -1
- package/package.json +1 -1
- package/dist/i18n-Cif1I9J2.js +0 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, resolveComponent as t, createBlock as r, openBlock as n, withCtx as _, createVNode as c } from "vue";
|
|
2
|
-
import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-B4KGPc-A.js";
|
|
3
3
|
const f = /* @__PURE__ */ o({
|
|
4
4
|
__name: "Layout",
|
|
5
5
|
setup(m) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as b, computed as V, createElementBlock as x, openBlock as a, createElementVNode as y, createVNode as u, unref as e, isRef as p, withCtx as _, createBlock as g, createCommentVNode as k, useModel as $, resolveComponent as f, normalizeClass as R, Fragment as w, renderList as M, toDisplayString as T } from "vue";
|
|
2
|
-
import { b as B } from "./vue-i18n-
|
|
2
|
+
import { b as B } from "./vue-i18n-BJW_sJot.js";
|
|
3
3
|
import { storeToRefs as D } from "pinia";
|
|
4
|
-
import { a as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as U } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as N } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { a as S } from "./FilterSelector.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { a as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BRpEu6MW.js";
|
|
5
|
+
import { _ as U } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BeBr4VIF.js";
|
|
6
|
+
import { _ as N } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BMUdA00d.js";
|
|
7
|
+
import { a as S } from "./FilterSelector.vue_vue_type_script_setup_true_lang-Bp0VTpqx.js";
|
|
8
8
|
import { useRoute as z } from "vue-router";
|
|
9
9
|
import { useBreakpoints as E } from "@feedmepos/ui-library";
|
|
10
10
|
const L = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrollbar-hide" }, O = { class: "flex flex-col gap-2 py-2" }, q = /* @__PURE__ */ b({
|
|
@@ -4,11 +4,11 @@ var ml = (e, r, t) => F5(e, typeof r != "symbol" ? r + "" : r, t);
|
|
|
4
4
|
import { defineComponent as $t, computed as nt, useModel as pn, ref as Ve, watch as ra, resolveComponent as me, createBlock as Ze, unref as q, openBlock as ne, withCtx as qe, createElementVNode as _, createVNode as J, toDisplayString as Ge, withDirectives as Un, createElementBlock as Fe, Fragment as vt, renderList as Bt, vShow as Ui, createTextVNode as jr, mergeModels as Kn, createCommentVNode as dt, normalizeClass as Jn, onMounted as i0, withKeys as qh, withModifiers as Yn, isRef as qn, vModelText as Wh, normalizeStyle as s0, renderSlot as jh, mergeProps as N5, nextTick as L5, resolveDynamicComponent as Td, createSlots as M5 } from "vue";
|
|
5
5
|
import { useRouter as Uh, useRoute as Yh } from "vue-router";
|
|
6
6
|
import { storeToRefs as xr, defineStore as l0 } from "pinia";
|
|
7
|
-
import { a as Zs, k as Cd, l as R5, h as Ll, R as ln, j as o0, m as f0, _ as c0, d as B5, v as X5, i as z5, r as H5, n as wn, o as q5, u as W5 } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { a as Zs, k as Cd, l as R5, h as Ll, R as ln, j as o0, m as f0, _ as c0, d as B5, v as X5, i as z5, r as H5, n as wn, o as q5, u as W5 } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BMUdA00d.js";
|
|
8
8
|
import { useBreakpoints as oo, components as yi, useSnackbar as ss, useDialog as j5, useDialogChild as U5, FmButtonVariant as Ed } from "@feedmepos/ui-library";
|
|
9
|
-
import { u as Ka, k as u0, l as fo, a as Ja, F as _a, r as co, d as ct, m as ls, t as Y5, b as Pi, q as uo, n as Z5, o as G5, e as Q5, v as gl, w as Zh, x as K5, p as J5 } from "./vue-i18n-
|
|
10
|
-
import { _ as Pd, a as _5 } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { C as fa, g as $5, e as Gh, a as e8, _ as Qh } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { u as Ka, k as u0, l as fo, a as Ja, F as _a, r as co, d as ct, m as ls, t as Y5, b as Pi, q as uo, n as Z5, o as G5, e as Q5, v as gl, w as Zh, x as K5, p as J5 } from "./vue-i18n-BJW_sJot.js";
|
|
10
|
+
import { _ as Pd, a as _5 } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BcQEW5MO.js";
|
|
11
|
+
import { C as fa, g as $5, e as Gh, a as e8, _ as Qh } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BeBr4VIF.js";
|
|
12
12
|
import { detectLocale as t8, useCoreStore as r8 } from "@feedmepos/mf-common";
|
|
13
13
|
const a8 = { class: "flex flex-col" }, n8 = { class: "fm-typo-en-title-sm-600" }, i8 = { class: "grow" }, s8 = { class: "flex flex-col gap-8" }, l8 = { class: "flex flex-col w-full" }, o8 = { class: "flex flex-col gap-5 p-6" }, f8 = { class: "flex" }, Sd = {
|
|
14
14
|
// sales: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, computed as o, resolveComponent as d, createElementBlock as r, openBlock as a, renderSlot as f, createVNode as g, withCtx as _, createCommentVNode as y, createElementVNode as l, toDisplayString as n } from "vue";
|
|
2
|
-
import { u as h } from "./vue-i18n-
|
|
2
|
+
import { u as h } from "./vue-i18n-BJW_sJot.js";
|
|
3
3
|
const v = { class: "flex flex-col h-full" }, D = ["src"], T = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, b = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, F = /* @__PURE__ */ u({
|
|
4
4
|
__name: "NoData",
|
|
5
5
|
props: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as g, computed as w, resolveComponent as k, createBlock as a, openBlock as t, withCtx as $, createVNode as d, createElementVNode as y, unref as e, normalizeStyle as C, normalizeClass as u, createElementBlock as _, Fragment as h, renderList as B } from "vue";
|
|
2
|
-
import { _ as b } from "./FilterSelector.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as F } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { a as P } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as b } from "./FilterSelector.vue_vue_type_script_setup_true_lang-Bp0VTpqx.js";
|
|
3
|
+
import { _ as F } from "./Default.vue_vue_type_script_setup_true_lang-B4KGPc-A.js";
|
|
4
|
+
import { a as P } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BMUdA00d.js";
|
|
5
5
|
import { storeToRefs as R } from "pinia";
|
|
6
|
-
import { _ as S } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as S } from "./NoData.vue_vue_type_script_setup_true_lang-CtN7oqXx.js";
|
|
7
7
|
import { useBreakpoints as V } from "@feedmepos/ui-library";
|
|
8
|
-
import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-BRCHCYha.js";
|
|
9
9
|
import { useI18n as D } from "@feedmepos/mf-common";
|
|
10
10
|
const G = /* @__PURE__ */ g({
|
|
11
11
|
__name: "OverviewView",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as be, ref as B, watch as oe, computed as C, h as v, withModifiers as he, resolveComponent as S, createBlock as E, openBlock as O, withCtx as i, createVNode as l, createElementVNode as y, unref as e, normalizeStyle as xe, normalizeClass as _, withDirectives as M, createElementBlock as Ce, Fragment as Se, renderList as _e, toDisplayString as V, createTextVNode as ke, vShow as q } from "vue";
|
|
2
2
|
import { storeToRefs as ae } from "pinia";
|
|
3
|
-
import { a as Ie, u as we } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as $e } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { a as Ie, u as we } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BMUdA00d.js";
|
|
4
|
+
import { _ as $e } from "./Default.vue_vue_type_script_setup_true_lang-B4KGPc-A.js";
|
|
5
5
|
import { u as Re } from "./message-dialog-UoMWOnil.js";
|
|
6
|
-
import { b as re, f as De } from "./vue-i18n-
|
|
6
|
+
import { b as re, f as De } from "./vue-i18n-BJW_sJot.js";
|
|
7
7
|
import { useSnackbar as Fe, useBreakpoints as Le, components as Ne, FmButtonColorThemeVariant as Oe } from "@feedmepos/ui-library";
|
|
8
|
-
import { _ as Ve } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as Ve } from "./NoData.vue_vue_type_script_setup_true_lang-CtN7oqXx.js";
|
|
9
9
|
import { useRouter as ze, useRoute as Je, onBeforeRouteLeave as Pe } from "vue-router";
|
|
10
10
|
import { useI18n as Ae } from "@feedmepos/mf-common";
|
|
11
|
-
import { r as ne } from "./i18n-
|
|
11
|
+
import { r as ne } from "./i18n-DQxDgiLO.js";
|
|
12
12
|
const Te = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Be = { class: "w-[343px]" }, Ee = { class: "fm-typo-en-body-md-600" }, et = /* @__PURE__ */ be({
|
|
13
13
|
__name: "Report",
|
|
14
14
|
setup(Me) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as X, mergeModels as K, useModel as Q, ref as I, computed as D, resolveComponent as c, createBlock as k, openBlock as i, withCtx as u, createElementVNode as h, createVNode as o, unref as t, normalizeClass as ie, createTextVNode as _e, toDisplayString as H, createElementBlock as T, Fragment as G, renderSlot as $e, createCommentVNode as A, watch as de, renderList as ee, resolveDynamicComponent as Ie, isRef as Te, normalizeStyle as we, onMounted as Re } from "vue";
|
|
2
|
-
import { W as We, g as qe, _ as Ee, i as Pe, S as xe, d as ke, T as Je, a as ze } from "./TransitionFade-
|
|
3
|
-
import { D as j, c as ue, C as ge, a as Oe, b as He, v as re } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { W as We, g as qe, _ as Ee, i as Pe, S as xe, d as ke, T as Je, a as ze } from "./TransitionFade-Cqa0p_nG.js";
|
|
3
|
+
import { D as j, c as ue, C as ge, a as Oe, b as He, v as re } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BMUdA00d.js";
|
|
4
4
|
import { storeToRefs as me } from "pinia";
|
|
5
5
|
import { useRouter as Ne, useRoute as Me } from "vue-router";
|
|
6
6
|
import { useBreakpoints as pe, useSnackbar as De, FmButtonColorThemeVariant as oe } from "@feedmepos/ui-library";
|
|
7
7
|
import { u as Ue } from "./message-dialog-UoMWOnil.js";
|
|
8
|
-
import { u as se, b as Le, i as be, f as je } from "./vue-i18n-
|
|
9
|
-
import { a as Ce, _ as he } from "./FilterSelector.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { _ as ye } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { r as ce } from "./i18n-
|
|
12
|
-
import { _ as Ve } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { u as se, b as Le, i as be, f as je } from "./vue-i18n-BJW_sJot.js";
|
|
9
|
+
import { a as Ce, _ as he } from "./FilterSelector.vue_vue_type_script_setup_true_lang-Bp0VTpqx.js";
|
|
10
|
+
import { _ as ye } from "./NoData.vue_vue_type_script_setup_true_lang-CtN7oqXx.js";
|
|
11
|
+
import { r as ce } from "./i18n-DQxDgiLO.js";
|
|
12
|
+
import { _ as Ve } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BcQEW5MO.js";
|
|
13
13
|
const Ge = /* @__PURE__ */ X({
|
|
14
14
|
__name: "WidgetDialog",
|
|
15
15
|
props: /* @__PURE__ */ K({
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { defineComponent as z, computed as v, resolveComponent as H, createBlock as g, openBlock as u, withCtx as M, createVNode as h, createElementVNode as R, unref as
|
|
2
|
-
import { _ as U } from "./MenuTab.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as W } from "./FilterSelector.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as z, computed as v, resolveComponent as H, createBlock as g, openBlock as u, withCtx as M, createVNode as h, createElementVNode as R, unref as t, normalizeStyle as Y, normalizeClass as D, createElementBlock as $, Fragment as G, renderList as Q } from "vue";
|
|
2
|
+
import { _ as U } from "./MenuTab.vue_vue_type_script_setup_true_lang-BRCHCYha.js";
|
|
3
|
+
import { _ as W } from "./FilterSelector.vue_vue_type_script_setup_true_lang-Bp0VTpqx.js";
|
|
4
4
|
import { useRouter as K, useRoute as X } from "vue-router";
|
|
5
|
-
import { _ as Z } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { a as ee } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as Z } from "./Default.vue_vue_type_script_setup_true_lang-B4KGPc-A.js";
|
|
6
|
+
import { a as ee } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BMUdA00d.js";
|
|
7
7
|
import { storeToRefs as p } from "pinia";
|
|
8
|
-
import { b as oe, c as te, u as re } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as ae } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { b as oe, c as te, u as re } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BRpEu6MW.js";
|
|
9
|
+
import { _ as ae } from "./NoData.vue_vue_type_script_setup_true_lang-CtN7oqXx.js";
|
|
10
10
|
import { useSnackbar as le, useBreakpoints as ne } from "@feedmepos/ui-library";
|
|
11
|
-
import { u as
|
|
11
|
+
import { u as se, f as ie, e as ue } from "./vue-i18n-BJW_sJot.js";
|
|
12
12
|
import { u as ce } from "./message-dialog-UoMWOnil.js";
|
|
13
|
-
import { r as pe } from "./i18n-
|
|
13
|
+
import { r as pe } from "./i18n-DQxDgiLO.js";
|
|
14
14
|
const me = { class: "sticky top-0 z-10 bg-white" }, De = /* @__PURE__ */ z({
|
|
15
15
|
__name: "ReportView",
|
|
16
16
|
setup(de) {
|
|
17
|
-
const { t:
|
|
18
|
-
currentReport:
|
|
17
|
+
const { t: e, te: E } = se(), m = K(), c = X(), i = le(), { promptMessage: P } = ce(), d = ee(), b = oe(), { promptLoader: I } = ie(), { breakpoints: n } = ne(), {
|
|
18
|
+
currentReport: r,
|
|
19
19
|
currentReportId: f,
|
|
20
20
|
isOpenDownloadDialog: O,
|
|
21
21
|
isOpenEmailDialog: J,
|
|
22
22
|
editingReport: N,
|
|
23
23
|
canCreateCustomReport: q,
|
|
24
24
|
customReportQuota: y
|
|
25
|
-
} = p(d), { isOpenAccountingDialog:
|
|
25
|
+
} = p(d), { isOpenAccountingDialog: B } = p(te()), { isOpenScheduleDialog: _ } = p(re()), { disabled: L } = p(ue()), T = v(() => {
|
|
26
26
|
const l = [
|
|
27
27
|
{
|
|
28
28
|
icon: "mail",
|
|
29
|
-
label:
|
|
29
|
+
label: e("report.common.emailSchedule"),
|
|
30
30
|
onClick: () => {
|
|
31
31
|
_.value = !0;
|
|
32
32
|
}
|
|
@@ -52,131 +52,131 @@ const me = { class: "sticky top-0 z-10 bg-white" }, De = /* @__PURE__ */ z({
|
|
|
52
52
|
// },
|
|
53
53
|
{
|
|
54
54
|
icon: "content_copy",
|
|
55
|
-
label:
|
|
55
|
+
label: e("report.common.copyID"),
|
|
56
56
|
onClick: () => {
|
|
57
|
-
|
|
57
|
+
r.value && (navigator.clipboard.writeText(f.value), i.open({ message: e("report.messages.copiedReportIdToClipboard"), type: "success" }));
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
icon: "report_jobs",
|
|
62
|
-
label:
|
|
62
|
+
label: e("report.common.reportStatus"),
|
|
63
63
|
onClick: () => {
|
|
64
64
|
k();
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
];
|
|
68
|
-
return
|
|
68
|
+
return L.value || l.splice(1, 0, {
|
|
69
69
|
icon: "download",
|
|
70
|
-
label:
|
|
70
|
+
label: e("report.common.accountingExport"),
|
|
71
71
|
onClick: C
|
|
72
72
|
}), l;
|
|
73
73
|
});
|
|
74
74
|
async function k() {
|
|
75
75
|
b.isOpenJobDialog = !0, await b.getJobs();
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
N.value = JSON.parse(JSON.stringify(
|
|
77
|
+
function j() {
|
|
78
|
+
N.value = JSON.parse(JSON.stringify(r.value)), m.push({
|
|
79
79
|
name: "reportEditor",
|
|
80
80
|
query: c.query
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
-
async function
|
|
83
|
+
async function A() {
|
|
84
84
|
if (!q.value) {
|
|
85
|
-
let
|
|
86
|
-
y.value === 0 && (
|
|
87
|
-
message:
|
|
85
|
+
let o = `Your current plan only support up to ${y.value} custom reports.`;
|
|
86
|
+
y.value === 0 && (o = "Your current plan does not support custom report."), i.open({
|
|
87
|
+
message: o,
|
|
88
88
|
type: "error"
|
|
89
89
|
});
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
|
-
if (!
|
|
93
|
-
|
|
92
|
+
if (!r.value) {
|
|
93
|
+
i.open({ message: "No Widget", type: "error" });
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
|
-
if (await
|
|
97
|
-
title: `${
|
|
98
|
-
message:
|
|
99
|
-
action:
|
|
100
|
-
name:
|
|
96
|
+
if (await P({
|
|
97
|
+
title: `${e("report.messages.saveReport")}`,
|
|
98
|
+
message: e("report.messages.confirmAction", {
|
|
99
|
+
action: e("report.common.duplicate"),
|
|
100
|
+
name: r.value.name
|
|
101
101
|
})
|
|
102
|
-
}) &&
|
|
103
|
-
const
|
|
104
|
-
|
|
102
|
+
}) && r.value) {
|
|
103
|
+
const o = JSON.parse(JSON.stringify(r.value));
|
|
104
|
+
o.editable = !0, o.id = "", o.name = `${o.name} duplicate`;
|
|
105
105
|
try {
|
|
106
106
|
await I(async () => {
|
|
107
|
-
const
|
|
108
|
-
d.updateCurrentReportId(
|
|
107
|
+
const s = await d.createOrUpdateReport(o);
|
|
108
|
+
d.updateCurrentReportId(s.id), m.push({
|
|
109
109
|
name: "reportView",
|
|
110
110
|
params: c.params,
|
|
111
111
|
query: c.query
|
|
112
112
|
});
|
|
113
113
|
});
|
|
114
|
-
} catch (
|
|
115
|
-
console.log(
|
|
114
|
+
} catch (s) {
|
|
115
|
+
console.log(s), i.open({ message: "Failed to clone report", type: "error" });
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
function C() {
|
|
120
|
-
|
|
120
|
+
B.value = !0;
|
|
121
121
|
}
|
|
122
122
|
function F() {
|
|
123
|
-
|
|
123
|
+
r.value && (navigator.clipboard.writeText(f.value), i.open({ message: "Copied report ID to clipboard", type: "success" }));
|
|
124
124
|
}
|
|
125
|
-
const x = v(() =>
|
|
126
|
-
var
|
|
125
|
+
const x = v(() => r.value ? r.value.tiles : []), V = v(() => {
|
|
126
|
+
var o;
|
|
127
127
|
let l = [
|
|
128
|
-
(
|
|
129
|
-
label:
|
|
128
|
+
(o = r == null ? void 0 : r.value) != null && o.editable ? { label: e("report.common.edit"), value: "edit", isPrimary: !1 } : {
|
|
129
|
+
label: e("report.common.duplicate"),
|
|
130
130
|
value: "duplicate",
|
|
131
131
|
isPrimary: !1
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
|
-
label:
|
|
134
|
+
label: e("report.common.download"),
|
|
135
135
|
value: "download",
|
|
136
136
|
isPrimary: !0,
|
|
137
137
|
prependIcon: "download"
|
|
138
138
|
},
|
|
139
|
-
{ label:
|
|
139
|
+
{ label: e("report.schedule.sendEmail"), value: "email", isPrimary: !0 }
|
|
140
140
|
];
|
|
141
141
|
return n.value.xs && (l = [
|
|
142
142
|
...l,
|
|
143
|
-
{ label: "
|
|
144
|
-
{ label: "
|
|
145
|
-
{ label: "
|
|
146
|
-
{ label: "
|
|
147
|
-
{ label: "
|
|
148
|
-
], l = l.filter((
|
|
143
|
+
{ label: e("report.schedule.sendEmail"), value: "email", isPrimary: !1 },
|
|
144
|
+
{ label: e("report.common.reportStatus"), value: "report_jobs", isPrimary: !1 },
|
|
145
|
+
{ label: e("report.schedule.sendEmail"), value: "schedule_email", isPrimary: !1 },
|
|
146
|
+
{ label: e("report.common.accountingExport"), value: "export", isPrimary: !1 },
|
|
147
|
+
{ label: e("report.common.copyID"), value: "content_copy", isPrimary: !1 }
|
|
148
|
+
], l = l.filter((s) => s.value !== "edit")), l;
|
|
149
149
|
});
|
|
150
|
-
return (l,
|
|
151
|
-
const
|
|
150
|
+
return (l, o) => {
|
|
151
|
+
const s = H("FmPageHead");
|
|
152
152
|
return u(), g(Z, null, {
|
|
153
153
|
default: M(() => {
|
|
154
154
|
var S;
|
|
155
155
|
return [
|
|
156
|
-
h(
|
|
157
|
-
title:
|
|
156
|
+
h(s, {
|
|
157
|
+
title: t(pe)(t(e), t(E), (S = t(r)) == null ? void 0 : S.name, "other"),
|
|
158
158
|
"back-button": !0,
|
|
159
159
|
actions: V.value,
|
|
160
|
-
"onClick:back":
|
|
161
|
-
"onClick:action":
|
|
162
|
-
a === "duplicate" &&
|
|
160
|
+
"onClick:back": o[0] || (o[0] = (a) => t(m).push({ name: "reports", query: t(c).query })),
|
|
161
|
+
"onClick:action": o[1] || (o[1] = (a) => {
|
|
162
|
+
a === "duplicate" && A(), a === "download" && (O.value = !0), a === "email" && (J.value = !0), a === "edit" && j(), a === "schedule_email" && (_.value = !0), a === "content_copy" && F(), a === "export" && C(), a === "report_jobs" && k();
|
|
163
163
|
})
|
|
164
164
|
}, null, 8, ["title", "actions"]),
|
|
165
165
|
R("div", {
|
|
166
|
-
class: D(`flex flex-col overflow-y-auto ${
|
|
167
|
-
style: Y({ height: `calc(100% - ${
|
|
166
|
+
class: D(`flex flex-col overflow-y-auto ${t(n).xs || t(n).sm ? "pb-20" : ""}`),
|
|
167
|
+
style: Y({ height: `calc(100% - ${t(n).lg || t(n).md ? 72 : 64}px)` })
|
|
168
168
|
}, [
|
|
169
169
|
R("div", me, [
|
|
170
170
|
h(U, {
|
|
171
|
-
"model-value":
|
|
171
|
+
"model-value": t(n).lg || t(n).md ? T.value : []
|
|
172
172
|
}, null, 8, ["model-value"])
|
|
173
173
|
]),
|
|
174
|
-
|
|
174
|
+
t(r) && x.value.length > 0 ? (u(), $("div", {
|
|
175
175
|
key: 0,
|
|
176
|
-
class: D(["grid grid-cols-12",
|
|
176
|
+
class: D(["grid grid-cols-12", t(n).sm || t(n).xs ? "px-3 gap-[16px]" : "px-24 gap-[24px]"])
|
|
177
177
|
}, [
|
|
178
178
|
(u(!0), $(G, null, Q(x.value, (a, w) => (u(), g(W, {
|
|
179
|
-
key: `widget_${
|
|
179
|
+
key: `widget_${t(f)}_${w}`,
|
|
180
180
|
"model-value": a,
|
|
181
181
|
index: w
|
|
182
182
|
}, null, 8, ["model-value", "index"]))), 128))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as B, mergeModels as D, useModel as z, ref as b, computed as f, resolveComponent as n, createBlock as y, openBlock as _, withCtx as m, createElementVNode as c, normalizeStyle as L, withDirectives as U, createElementBlock as $, createVNode as d, unref as E, vShow as H, Fragment as N, renderList as O, toDisplayString as g, normalizeClass as q } from "vue";
|
|
2
|
-
import { u as A } from "./vue-i18n-
|
|
2
|
+
import { u as A } from "./vue-i18n-BJW_sJot.js";
|
|
3
3
|
const K = (s, u) => {
|
|
4
4
|
const t = s.__vccOpts || s;
|
|
5
5
|
for (const [o, i] of u)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as B, ref as H, useModel as J, resolveComponent as h, createElementBlock as k, openBlock as x, createBlock as P, createElementVNode as t, resolveDynamicComponent as ne, unref as e, withCtx as y, createVNode as a, normalizeClass as O, toDisplayString as s, Fragment as K, renderList as Q, withDirectives as M, createTextVNode as ie, vShow as j, watch as me, normalizeStyle as ue } from "vue";
|
|
2
|
-
import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as U, d as z, C as I, D as pe, b as ce } from "./vue-i18n-
|
|
2
|
+
import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-B4KGPc-A.js";
|
|
3
|
+
import { u as U, d as z, C as I, D as pe, b as ce } from "./vue-i18n-BJW_sJot.js";
|
|
4
4
|
import { components as A, useSnackbar as W, useBreakpoints as X, FmButtonColorThemeVariant as G } from "@feedmepos/ui-library";
|
|
5
|
-
import { t as N, s as fe } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { t as N, s as fe } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BMUdA00d.js";
|
|
6
6
|
import { u as ve } from "./message-dialog-UoMWOnil.js";
|
|
7
7
|
import { detectLocale as F } from "@feedmepos/mf-common";
|
|
8
|
-
import { _ as Y } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as Y } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BcQEW5MO.js";
|
|
9
9
|
import { storeToRefs as _e } from "pinia";
|
|
10
10
|
const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex px-5 gap-2" }, xe = { class: "flex flex-col gap-2" }, be = { class: "fm-typo-en-title-sm-600" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ve = { class: "w-full gap-[24px] flex flex-col pt-2" }, Te = { class: "flex items-center w-full gap-3" }, De = { class: "text-fm-color-typo-primary" }, $e = { class: "text-fm-color-typo-secondary" }, Se = { class: "flex items-center gap-2" }, ke = /* @__PURE__ */ B({
|
|
11
11
|
__name: "ReportHour",
|