@feedmepos/mf-report 5.18.2-beta.3 → 5.18.2-beta.5
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-0zRta0Xy.js +223 -0
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-djyc20Cp.js → BaseDialog.vue_vue_type_script_setup_true_lang-DLAmjLpT.js} +1 -1
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-uiSe3Jon.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-DJIV8Ogq.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-DpSgAipe.js → Default.vue_vue_type_script_setup_true_lang-az465cWp.js} +2 -2
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-DKA5lLXB.js → DynamicWidget.vue_vue_type_script_setup_true_lang-Cg9Q0Alk.js} +5 -5
- package/dist/{InsightView-CxCeRQ-P.js → InsightView-C580gT_F.js} +5 -5
- package/dist/{Integration-CWUSF_o7.js → Integration-DY8R4ERN.js} +2 -2
- package/dist/{Integrations-BOVIAEgw.js → Integrations-DyYYCkQh.js} +3 -3
- package/dist/{Layout-B2cpQx3C.js → Layout-Cg6B3_PB.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-C8oiHuOX.js → MenuTab.vue_vue_type_script_setup_true_lang-mevBIWGb.js} +6 -6
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CDxb2Mjg.js → NavigationTab.vue_vue_type_script_setup_true_lang-CbS3wT-Z.js} +6759 -6747
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-Divo8W18.js → NoData.vue_vue_type_script_setup_true_lang-JK38qSlL.js} +1 -1
- package/dist/{OverviewView-D8mA0P3y.js → OverviewView-DPlvHfbM.js} +5 -5
- package/dist/{Report-Cg9Fen7g.js → Report-CYFbRFXI.js} +4 -4
- package/dist/{ReportEditor-Db1Ll1hk.js → ReportEditor-CDdWFzYL.js} +185 -186
- package/dist/ReportView-vZTFkb70.js +194 -0
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-mR2PeX3S.js → SelectComponent.vue_vue_type_script_setup_true_lang-CoMcbMHU.js} +1 -1
- package/dist/{Setting-BxLdkt7x.js → Setting-B31bz7Ok.js} +4 -4
- package/dist/{TileEditor-DbbSibJa.js → TileEditor-C_hRfM-H.js} +7 -7
- package/dist/{TransitionFade-CiVLb7cy.js → TransitionFade-K0ZfP5kz.js} +5 -5
- package/dist/app.js +23 -19
- package/dist/{helper-UCnMF9KV.js → helper-DDO1q72b.js} +1 -1
- package/dist/{vue-i18n-CTLGxUiF.js → vue-i18n-Cjs2Btd-.js} +23 -23
- package/package.json +1 -1
- package/dist/App-CTE1eUtj.js +0 -157
- package/dist/ReportView-Dzu_N8KD.js +0 -253
|
@@ -0,0 +1,194 @@
|
|
|
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 o, 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-mevBIWGb.js";
|
|
3
|
+
import { _ as W } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-Cg9Q0Alk.js";
|
|
4
|
+
import { useRouter as K, useRoute as X } from "vue-router";
|
|
5
|
+
import { _ as Z } from "./Default.vue_vue_type_script_setup_true_lang-az465cWp.js";
|
|
6
|
+
import { a as ee } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DLAmjLpT.js";
|
|
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-CbS3wT-Z.js";
|
|
9
|
+
import { _ as ae } from "./NoData.vue_vue_type_script_setup_true_lang-JK38qSlL.js";
|
|
10
|
+
import { useSnackbar as le, useBreakpoints as ne } from "@feedmepos/ui-library";
|
|
11
|
+
import { u as ie, f as se, e as ue } from "./vue-i18n-Cjs2Btd-.js";
|
|
12
|
+
import { u as ce } from "./message-dialog-UoMWOnil.js";
|
|
13
|
+
import { r as pe } from "./i18n-Cif1I9J2.js";
|
|
14
|
+
const me = { class: "sticky top-0 z-10 bg-white" }, De = /* @__PURE__ */ z({
|
|
15
|
+
__name: "ReportView",
|
|
16
|
+
setup(de) {
|
|
17
|
+
const { t: r, te: P } = ie(), m = K(), c = X(), s = le(), { promptMessage: E } = ce(), d = ee(), b = oe(), { promptLoader: I } = se(), { breakpoints: n } = ne(), {
|
|
18
|
+
currentReport: t,
|
|
19
|
+
currentReportId: f,
|
|
20
|
+
isOpenDownloadDialog: O,
|
|
21
|
+
isOpenEmailDialog: J,
|
|
22
|
+
editingReport: N,
|
|
23
|
+
canCreateCustomReport: q,
|
|
24
|
+
customReportQuota: y
|
|
25
|
+
} = p(d), { isOpenAccountingDialog: A } = p(te()), { isOpenScheduleDialog: _ } = p(re()), { disabled: B } = p(ue()), L = v(() => {
|
|
26
|
+
const l = [
|
|
27
|
+
{
|
|
28
|
+
icon: "mail",
|
|
29
|
+
label: r("report.common.emailSchedule"),
|
|
30
|
+
onClick: () => {
|
|
31
|
+
_.value = !0;
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
// {
|
|
35
|
+
// icon: "article",
|
|
36
|
+
// label: "Set as Default",
|
|
37
|
+
// onClick: async () => {
|
|
38
|
+
// await promptLoader(async () => {
|
|
39
|
+
// if (currentReport.value) {
|
|
40
|
+
// try {
|
|
41
|
+
// await reportStore.updateDefaultReport(currentReport.value.id)
|
|
42
|
+
// snackbar.open({
|
|
43
|
+
// message: `Set ${currentReport.value.name} as default successful`,
|
|
44
|
+
// type: "success"
|
|
45
|
+
// })
|
|
46
|
+
// } catch (err) {
|
|
47
|
+
// snackbar.open({ message: JSON.stringify(err), type: "error" })
|
|
48
|
+
// }
|
|
49
|
+
// }
|
|
50
|
+
// })
|
|
51
|
+
// }
|
|
52
|
+
// },
|
|
53
|
+
{
|
|
54
|
+
icon: "content_copy",
|
|
55
|
+
label: r("report.common.copyID"),
|
|
56
|
+
onClick: () => {
|
|
57
|
+
t.value && (navigator.clipboard.writeText(f.value), s.open({ message: r("report.messages.copiedReportIdToClipboard"), type: "success" }));
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
icon: "report_jobs",
|
|
62
|
+
label: r("report.common.reportStatus"),
|
|
63
|
+
onClick: () => {
|
|
64
|
+
k();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
];
|
|
68
|
+
return B.value || l.splice(1, 0, {
|
|
69
|
+
icon: "download",
|
|
70
|
+
label: r("report.common.accountingExport"),
|
|
71
|
+
onClick: C
|
|
72
|
+
}), l;
|
|
73
|
+
});
|
|
74
|
+
async function k() {
|
|
75
|
+
b.isOpenJobDialog = !0, await b.getJobs();
|
|
76
|
+
}
|
|
77
|
+
function T() {
|
|
78
|
+
N.value = JSON.parse(JSON.stringify(t.value)), m.push({
|
|
79
|
+
name: "reportEditor",
|
|
80
|
+
query: c.query
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
async function j() {
|
|
84
|
+
if (!q.value) {
|
|
85
|
+
let e = `Your current plan only support up to ${y.value} custom reports.`;
|
|
86
|
+
y.value === 0 && (e = "Your current plan does not support custom report."), s.open({
|
|
87
|
+
message: e,
|
|
88
|
+
type: "error"
|
|
89
|
+
});
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
if (!t.value) {
|
|
93
|
+
s.open({ message: "No Widget", type: "error" });
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
if (await E({
|
|
97
|
+
title: `${r("report.messages.saveReport")}`,
|
|
98
|
+
message: r("report.messages.confirmAction", {
|
|
99
|
+
action: r("report.common.duplicate"),
|
|
100
|
+
name: t.value.name
|
|
101
|
+
})
|
|
102
|
+
}) && t.value) {
|
|
103
|
+
const e = JSON.parse(JSON.stringify(t.value));
|
|
104
|
+
e.editable = !0, e.id = "", e.name = `${e.name} duplicate`;
|
|
105
|
+
try {
|
|
106
|
+
await I(async () => {
|
|
107
|
+
const i = await d.createOrUpdateReport(e);
|
|
108
|
+
d.updateCurrentReportId(i.id), m.push({
|
|
109
|
+
name: "reportView",
|
|
110
|
+
params: c.params,
|
|
111
|
+
query: c.query
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
} catch (i) {
|
|
115
|
+
console.log(i), s.open({ message: "Failed to clone report", type: "error" });
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
function C() {
|
|
120
|
+
A.value = !0;
|
|
121
|
+
}
|
|
122
|
+
function F() {
|
|
123
|
+
t.value && (navigator.clipboard.writeText(f.value), s.open({ message: "Copied report ID to clipboard", type: "success" }));
|
|
124
|
+
}
|
|
125
|
+
const x = v(() => t.value ? t.value.tiles : []), V = v(() => {
|
|
126
|
+
var e;
|
|
127
|
+
let l = [
|
|
128
|
+
(e = t == null ? void 0 : t.value) != null && e.editable ? { label: r("report.common.edit"), value: "edit", isPrimary: !1 } : {
|
|
129
|
+
label: r("report.common.duplicate"),
|
|
130
|
+
value: "duplicate",
|
|
131
|
+
isPrimary: !1
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
label: r("report.common.download"),
|
|
135
|
+
value: "download",
|
|
136
|
+
isPrimary: !0,
|
|
137
|
+
prependIcon: "download"
|
|
138
|
+
},
|
|
139
|
+
{ label: r("report.schedule.sendEmail"), value: "email", isPrimary: !0 }
|
|
140
|
+
];
|
|
141
|
+
return n.value.xs && (l = [
|
|
142
|
+
...l,
|
|
143
|
+
{ label: "Send Email", value: "email", isPrimary: !1 },
|
|
144
|
+
{ label: "Job Delivery Status", value: "report_jobs", isPrimary: !1 },
|
|
145
|
+
{ label: "Email schedule", value: "schedule_email", isPrimary: !1 },
|
|
146
|
+
{ label: "Accounting export", value: "export", isPrimary: !1 },
|
|
147
|
+
{ label: "Copy ID", value: "content_copy", isPrimary: !1 }
|
|
148
|
+
], l = l.filter((i) => i.value !== "edit")), l;
|
|
149
|
+
});
|
|
150
|
+
return (l, e) => {
|
|
151
|
+
const i = H("FmPageHead");
|
|
152
|
+
return u(), g(Z, null, {
|
|
153
|
+
default: M(() => {
|
|
154
|
+
var S;
|
|
155
|
+
return [
|
|
156
|
+
h(i, {
|
|
157
|
+
title: o(pe)(o(r), o(P), (S = o(t)) == null ? void 0 : S.name, "other"),
|
|
158
|
+
"back-button": !0,
|
|
159
|
+
actions: V.value,
|
|
160
|
+
"onClick:back": e[0] || (e[0] = (a) => o(m).push({ name: "reports", query: o(c).query })),
|
|
161
|
+
"onClick:action": e[1] || (e[1] = (a) => {
|
|
162
|
+
a === "duplicate" && j(), a === "download" && (O.value = !0), a === "email" && (J.value = !0), a === "edit" && T(), a === "schedule_email" && (_.value = !0), a === "content_copy" && F(), a === "export" && C(), a === "report_jobs" && k();
|
|
163
|
+
})
|
|
164
|
+
}, null, 8, ["title", "actions"]),
|
|
165
|
+
R("div", {
|
|
166
|
+
class: D(`flex flex-col overflow-y-auto ${o(n).xs || o(n).sm ? "pb-20" : ""}`),
|
|
167
|
+
style: Y({ height: `calc(100% - ${o(n).lg || o(n).md ? 72 : 64}px)` })
|
|
168
|
+
}, [
|
|
169
|
+
R("div", me, [
|
|
170
|
+
h(U, {
|
|
171
|
+
"model-value": o(n).lg || o(n).md ? L.value : []
|
|
172
|
+
}, null, 8, ["model-value"])
|
|
173
|
+
]),
|
|
174
|
+
o(t) && x.value.length > 0 ? (u(), $("div", {
|
|
175
|
+
key: 0,
|
|
176
|
+
class: D(["grid grid-cols-12", o(n).sm || o(n).xs ? "px-3 gap-[16px]" : "px-24 gap-[24px]"])
|
|
177
|
+
}, [
|
|
178
|
+
(u(!0), $(G, null, Q(x.value, (a, w) => (u(), g(W, {
|
|
179
|
+
key: `widget_${o(f)}_${w}`,
|
|
180
|
+
"model-value": a,
|
|
181
|
+
index: w
|
|
182
|
+
}, null, 8, ["model-value", "index"]))), 128))
|
|
183
|
+
], 2)) : (u(), g(ae, { key: 1 }))
|
|
184
|
+
], 6)
|
|
185
|
+
];
|
|
186
|
+
}),
|
|
187
|
+
_: 1
|
|
188
|
+
});
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
export {
|
|
193
|
+
De as default
|
|
194
|
+
};
|
|
@@ -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-Cjs2Btd-.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-az465cWp.js";
|
|
3
|
+
import { u as U, d as z, C as I, D as pe, b as ce } from "./vue-i18n-Cjs2Btd-.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 "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { t as N, s as fe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CbS3wT-Z.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-CoMcbMHU.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",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as M, mergeModels as J, useModel as ee, computed as _, ref as A, resolveComponent as F, createElementBlock as I, openBlock as h, createVNode as m, createElementVNode as w, unref as l, withCtx as N, toDisplayString as L, Fragment as Z, renderList as ue, withModifiers as te, createTextVNode as re, watch as se, createCommentVNode as U, createBlock as T, onMounted as Ce, onUnmounted as Pe, renderSlot as $e, onBeforeUnmount as Ae, resolveDynamicComponent as Ne, normalizeClass as Oe, withDirectives as ae, vShow as ne, normalizeStyle as Xe, isRef as We } from "vue";
|
|
2
2
|
import { useRoute as qe, useRouter as He } from "vue-router";
|
|
3
|
-
import { h as Ye, d as ke, S as Fe, _ as Ee, W as Je, b as Ge, T as Ke, a as Qe } from "./TransitionFade-
|
|
4
|
-
import { W as B, b as Be, _ as me, D as Ze, S as Se, C as el, P as Te, a as ll } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { h as Ye, d as ke, S as Fe, _ as Ee, W as Je, b as Ge, T as Ke, a as Qe } from "./TransitionFade-K0ZfP5kz.js";
|
|
4
|
+
import { W as B, b as Be, _ as me, D as Ze, S as Se, C as el, P as Te, a as ll } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DLAmjLpT.js";
|
|
5
5
|
import { storeToRefs as de } from "pinia";
|
|
6
6
|
import { u as Ie } from "./message-dialog-UoMWOnil.js";
|
|
7
|
-
import { u as H, h as Le, p as ol, b as tl, d as pe } from "./vue-i18n-
|
|
7
|
+
import { u as H, h as Le, p as ol, b as tl, d as pe } from "./vue-i18n-Cjs2Btd-.js";
|
|
8
8
|
import { useSnackbar as al, useBreakpoints as je, FmButtonColorThemeVariant as ce } from "@feedmepos/ui-library";
|
|
9
|
-
import { _ as K } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as K } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CoMcbMHU.js";
|
|
10
10
|
import { r as Q } from "./i18n-Cif1I9J2.js";
|
|
11
|
-
import { g as ve, u as fe, L as ie, a as he, _ as Re } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { a as ge } from "./helper-
|
|
13
|
-
import { _ as Me } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { g as ve, u as fe, L as ie, a as he, _ as Re } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-Cg9Q0Alk.js";
|
|
12
|
+
import { a as ge } from "./helper-DDO1q72b.js";
|
|
13
|
+
import { _ as Me } from "./NoData.vue_vue_type_script_setup_true_lang-JK38qSlL.js";
|
|
14
14
|
const ye = [
|
|
15
15
|
{
|
|
16
16
|
type: B.Circular,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as Ce, onBeforeMount as xn, onBeforeUnmount as On, resolveComponent as N, createElementBlock as Q, openBlock as V, normalizeStyle as In, unref as M, renderSlot as Ge, createVNode as k, createElementVNode as be, toDisplayString as Pe, TransitionGroup as Fn, nextTick as en, h as $t, mergeModels as Nt, useModel as ze, computed as ke, Fragment as qe, renderList as tn, createBlock as Me, normalizeClass as kn, withCtx as le, createTextVNode as nn, Transition as xt, createCommentVNode as fe, ref as De, watch as pt, withModifiers as Rt } from "vue";
|
|
2
|
-
import { u as Pt, f as An, p as Nn, d as ht, h as Pn } from "./vue-i18n-
|
|
2
|
+
import { u as Pt, f as An, p as Nn, d as ht, h as Pn } from "./vue-i18n-Cjs2Btd-.js";
|
|
3
3
|
import { useCoreStore as Vn } from "@feedmepos/mf-common";
|
|
4
4
|
import { storeToRefs as Mn } from "pinia";
|
|
5
5
|
import { useRoute as Ln } from "vue-router";
|
|
6
|
-
import { W as L, D as Ze, c as z, C as de, _ as Bn } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { a as Vt, _ as Yt } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { R as $n } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { W as L, D as Ze, c as z, C as de, _ as Bn } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DLAmjLpT.js";
|
|
7
|
+
import { a as Vt, _ as Yt } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CoMcbMHU.js";
|
|
8
|
+
import { R as $n } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-Cg9Q0Alk.js";
|
|
9
9
|
import { useSnackbar as Rn } from "@feedmepos/ui-library";
|
|
10
|
-
import { a as Yn } from "./helper-
|
|
10
|
+
import { a as Yn } from "./helper-DDO1q72b.js";
|
|
11
11
|
const Wn = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"
|
package/dist/app.js
CHANGED
|
@@ -141,9 +141,10 @@ const a = {
|
|
|
141
141
|
deleteSchedule: "Delete schedule",
|
|
142
142
|
operatingHours: "Operating hours",
|
|
143
143
|
overNight: "Overnight",
|
|
144
|
-
crossMidnightNotice: "Operating hours that
|
|
144
|
+
crossMidnightNotice: "Operating hours that go past midnight will cover from the previous day’s open sales time to the next day’s close sales time",
|
|
145
145
|
openSaleTime: "Open sale time",
|
|
146
|
-
closeSaleTime: "Close sale time"
|
|
146
|
+
closeSaleTime: "Close sale time",
|
|
147
|
+
sendDate: "Send date"
|
|
147
148
|
},
|
|
148
149
|
cycle: {
|
|
149
150
|
Year: "Year",
|
|
@@ -1382,9 +1383,10 @@ const a = {
|
|
|
1382
1383
|
deleteSchedule: "删除计划",
|
|
1383
1384
|
operatingHours: "营业时间",
|
|
1384
1385
|
overNight: "跨夜",
|
|
1385
|
-
crossMidnightNotice: "
|
|
1386
|
+
crossMidnightNotice: "跨夜营业时间将涵盖从前一天的开放销售时间到第二天的关闭销售时间",
|
|
1386
1387
|
openSaleTime: "开放销售时间",
|
|
1387
|
-
closeSaleTime: "关闭销售时间"
|
|
1388
|
+
closeSaleTime: "关闭销售时间",
|
|
1389
|
+
sendDate: "发送日期"
|
|
1388
1390
|
},
|
|
1389
1391
|
cycle: {
|
|
1390
1392
|
Year: "年",
|
|
@@ -2623,9 +2625,10 @@ const a = {
|
|
|
2623
2625
|
deleteSchedule: "ลบตารางเวลา",
|
|
2624
2626
|
operatingHours: "เวลาทำการ",
|
|
2625
2627
|
overNight: "ข้ามคืน",
|
|
2626
|
-
crossMidnightNotice: "
|
|
2628
|
+
crossMidnightNotice: "เวลาทำการที่ข้ามเที่ยงคืนจะครอบคลุมตั้งแต่เวลาเปิดขายของวันก่อนหน้าจนถึงเวลาปิดขายของวันถัดไป",
|
|
2627
2629
|
openSaleTime: "เวลาเปิดขาย",
|
|
2628
|
-
closeSaleTime: "เวลาปิดขาย"
|
|
2630
|
+
closeSaleTime: "เวลาปิดขาย",
|
|
2631
|
+
sendDate: "วันที่ส่ง"
|
|
2629
2632
|
},
|
|
2630
2633
|
cycle: {
|
|
2631
2634
|
Year: "ปี",
|
|
@@ -3865,9 +3868,10 @@ const a = {
|
|
|
3865
3868
|
deleteSchedule: "刪除計劃",
|
|
3866
3869
|
operatingHours: "營業時間",
|
|
3867
3870
|
overNight: "跨夜",
|
|
3868
|
-
crossMidnightNotice: "
|
|
3871
|
+
crossMidnightNotice: "跨夜營業時間將涵蓋從前一天的開放銷售時間到第二天的關閉銷售時間",
|
|
3869
3872
|
openSaleTime: "開放銷售時間",
|
|
3870
|
-
closeSaleTime: "關閉銷售時間"
|
|
3873
|
+
closeSaleTime: "關閉銷售時間",
|
|
3874
|
+
sendDate: "發送日期"
|
|
3871
3875
|
},
|
|
3872
3876
|
cycle: {
|
|
3873
3877
|
Year: "年",
|
|
@@ -4960,51 +4964,51 @@ const a = {
|
|
|
4960
4964
|
path: "/overview",
|
|
4961
4965
|
alias: ["/"],
|
|
4962
4966
|
name: "overview",
|
|
4963
|
-
component: () => import("./OverviewView-
|
|
4967
|
+
component: () => import("./OverviewView-DPlvHfbM.js")
|
|
4964
4968
|
},
|
|
4965
4969
|
{
|
|
4966
4970
|
path: "/report",
|
|
4967
4971
|
name: "reports",
|
|
4968
|
-
component: () => import("./Report-
|
|
4972
|
+
component: () => import("./Report-CYFbRFXI.js")
|
|
4969
4973
|
},
|
|
4970
4974
|
{
|
|
4971
4975
|
path: "/insights",
|
|
4972
4976
|
name: "insights",
|
|
4973
|
-
component: () => import("./InsightView-
|
|
4977
|
+
component: () => import("./InsightView-C580gT_F.js")
|
|
4974
4978
|
},
|
|
4975
4979
|
{
|
|
4976
4980
|
path: "/report-view",
|
|
4977
4981
|
name: "reportView",
|
|
4978
|
-
component: () => import("./ReportView-
|
|
4982
|
+
component: () => import("./ReportView-vZTFkb70.js")
|
|
4979
4983
|
},
|
|
4980
4984
|
{
|
|
4981
4985
|
path: "/report-editor",
|
|
4982
4986
|
name: "reportEditor",
|
|
4983
|
-
component: () => import("./ReportEditor-
|
|
4987
|
+
component: () => import("./ReportEditor-CDdWFzYL.js")
|
|
4984
4988
|
},
|
|
4985
4989
|
{
|
|
4986
4990
|
path: "/report-editor/tile-editor",
|
|
4987
4991
|
name: "tileEditor",
|
|
4988
|
-
component: () => import("./TileEditor-
|
|
4992
|
+
component: () => import("./TileEditor-C_hRfM-H.js")
|
|
4989
4993
|
},
|
|
4990
4994
|
{
|
|
4991
4995
|
path: "/setting",
|
|
4992
4996
|
name: "setting",
|
|
4993
|
-
component: () => import("./Setting-
|
|
4997
|
+
component: () => import("./Setting-B31bz7Ok.js")
|
|
4994
4998
|
},
|
|
4995
4999
|
{
|
|
4996
5000
|
path: "/integration",
|
|
4997
|
-
component: () => import("./Layout-
|
|
5001
|
+
component: () => import("./Layout-Cg6B3_PB.js"),
|
|
4998
5002
|
children: [
|
|
4999
5003
|
{
|
|
5000
5004
|
name: "integrations",
|
|
5001
5005
|
path: "",
|
|
5002
|
-
component: () => import("./Integrations-
|
|
5006
|
+
component: () => import("./Integrations-DyYYCkQh.js")
|
|
5003
5007
|
},
|
|
5004
5008
|
{
|
|
5005
5009
|
name: "integration",
|
|
5006
5010
|
path: "/integration/:id",
|
|
5007
|
-
component: () => import("./Integration-
|
|
5011
|
+
component: () => import("./Integration-DY8R4ERN.js")
|
|
5008
5012
|
}
|
|
5009
5013
|
]
|
|
5010
5014
|
},
|
|
@@ -5028,7 +5032,7 @@ const u = {
|
|
|
5028
5032
|
"zh-CN": m,
|
|
5029
5033
|
"th-TH": c,
|
|
5030
5034
|
"zh-Hant": p
|
|
5031
|
-
}, h = e(() => import("./App-
|
|
5035
|
+
}, h = e(() => import("./App-0zRta0Xy.js"));
|
|
5032
5036
|
export {
|
|
5033
5037
|
h as FmApp,
|
|
5034
5038
|
u as i18nMessages,
|
|
@@ -6375,24 +6375,24 @@ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
|
6375
6375
|
}
|
|
6376
6376
|
process.env.NODE_ENV;
|
|
6377
6377
|
export {
|
|
6378
|
-
|
|
6379
|
-
|
|
6378
|
+
$l as A,
|
|
6379
|
+
Wl as B,
|
|
6380
6380
|
Ta as C,
|
|
6381
6381
|
it as D,
|
|
6382
|
-
|
|
6382
|
+
Ml as E,
|
|
6383
6383
|
Re as F,
|
|
6384
|
-
|
|
6385
|
-
|
|
6384
|
+
_l as G,
|
|
6385
|
+
Yl as H,
|
|
6386
6386
|
ot as I,
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6387
|
+
tu as J,
|
|
6388
|
+
nu as K,
|
|
6389
|
+
Au as L,
|
|
6390
|
+
Wa as M,
|
|
6391
|
+
ru as N,
|
|
6392
|
+
ou as O,
|
|
6393
|
+
iu as P,
|
|
6394
|
+
au as Q,
|
|
6395
|
+
fu as R,
|
|
6396
6396
|
Ia as S,
|
|
6397
6397
|
se as a,
|
|
6398
6398
|
Un as b,
|
|
@@ -6406,18 +6406,18 @@ export {
|
|
|
6406
6406
|
sn as j,
|
|
6407
6407
|
Ut as k,
|
|
6408
6408
|
RA as l,
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
|
|
6409
|
+
rn as m,
|
|
6410
|
+
Ua as n,
|
|
6411
|
+
eu as o,
|
|
6412
6412
|
zl as p,
|
|
6413
6413
|
xe as q,
|
|
6414
6414
|
Vl as r,
|
|
6415
6415
|
ql as s,
|
|
6416
|
-
|
|
6416
|
+
oo as t,
|
|
6417
6417
|
HA as u,
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6418
|
+
qe as v,
|
|
6419
|
+
Mt as w,
|
|
6420
|
+
Gl as x,
|
|
6421
|
+
Jl as y,
|
|
6422
|
+
Zl as z
|
|
6423
6423
|
};
|
package/package.json
CHANGED
package/dist/App-CTE1eUtj.js
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, resolveComponent as C, createBlock as T, openBlock as m, unref as r, isRef as Z, withCtx as b, createElementVNode as V, createVNode as $, toDisplayString as D, createTextVNode as M, onMounted as z, watch as g, ref as J, computed as O, onBeforeMount as ee, onBeforeUnmount as te, createElementBlock as w, Fragment as oe } from "vue";
|
|
2
|
-
import { detectLocale as h, useCoreStore as k } from "@feedmepos/mf-common";
|
|
3
|
-
import { u as re, d as F, a as ae, b as se, c as ne, e as le, f as ue, s as ie, g as ce } from "./vue-i18n-CTLGxUiF.js";
|
|
4
|
-
import { storeToRefs as B } from "pinia";
|
|
5
|
-
import { u as me, a as de, b as ve } from "./BaseDialog.vue_vue_type_script_setup_true_lang-djyc20Cp.js";
|
|
6
|
-
import { _ as pe, u as fe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CDxb2Mjg.js";
|
|
7
|
-
import { u as U } from "./message-dialog-UoMWOnil.js";
|
|
8
|
-
import { useRoute as ge, useRouter as he } from "vue-router";
|
|
9
|
-
const _e = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, ye = /* @__PURE__ */ x({
|
|
10
|
-
__name: "Dialog",
|
|
11
|
-
setup(d) {
|
|
12
|
-
const { t } = re(), s = U(), { isOpened: a, message: i, title: c } = B(U());
|
|
13
|
-
return (v, l) => {
|
|
14
|
-
const p = C("FmButton"), _ = C("FmDialog");
|
|
15
|
-
return m(), T(_, {
|
|
16
|
-
modelValue: r(a),
|
|
17
|
-
"onUpdate:modelValue": l[0] || (l[0] = (y) => Z(a) ? a.value = y : null),
|
|
18
|
-
overlay: "",
|
|
19
|
-
"close-button": !1
|
|
20
|
-
}, {
|
|
21
|
-
"dialog-header": b(() => [
|
|
22
|
-
M(D(r(c)), 1)
|
|
23
|
-
]),
|
|
24
|
-
default: b(() => [
|
|
25
|
-
V("p", _e, D(r(i)), 1)
|
|
26
|
-
]),
|
|
27
|
-
"dialog-footer": b(() => [
|
|
28
|
-
l[1] || (l[1] = V("div", { class: "grow" }, null, -1)),
|
|
29
|
-
$(p, {
|
|
30
|
-
label: r(t)("report.common.cancel"),
|
|
31
|
-
variant: "tertiary",
|
|
32
|
-
onClick: r(s).dismiss
|
|
33
|
-
}, null, 8, ["label", "onClick"]),
|
|
34
|
-
$(p, {
|
|
35
|
-
label: r(t)("report.common.confirm"),
|
|
36
|
-
onClick: r(s).confirm
|
|
37
|
-
}, null, 8, ["label", "onClick"])
|
|
38
|
-
]),
|
|
39
|
-
_: 1
|
|
40
|
-
}, 8, ["modelValue"]);
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
}), q = J(h());
|
|
44
|
-
function Se() {
|
|
45
|
-
const d = (t) => {
|
|
46
|
-
switch (q.value = t, t) {
|
|
47
|
-
case "zh-CN":
|
|
48
|
-
F.locale("zh-cn");
|
|
49
|
-
break;
|
|
50
|
-
default:
|
|
51
|
-
F.locale("en");
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
return z(() => {
|
|
56
|
-
d(h());
|
|
57
|
-
}), g(() => h(), d, { deep: !0, immediate: !0 }), {
|
|
58
|
-
currentLocale: q
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
F.locale(h() === "zh-CN" ? "zh-cn" : "en");
|
|
62
|
-
const be = ["src"], we = ["src"], Le = /* @__PURE__ */ x({
|
|
63
|
-
__name: "App",
|
|
64
|
-
setup(d) {
|
|
65
|
-
const { businessId: t, token: s, country: a } = B(ae()), { sessionUser: i, currentBusiness: c, currentCountry: v, registerSidebarComponent: l } = k(), { getRestaurantAndWarehouse: p, getBusinessSetting: _ } = se(), { getFeatureFlags: y } = ne(), { version: n } = B(me()), { getSettings: j } = le(), { promptLoader: A } = ue(), u = ge(), W = he(), G = O(() => `https://portal-v1.feedmedev.cc/b/${t.value}/report/CLOSE_UP?showHeader=false&country=${a.value.toUpperCase()}&menuOption=business-report&token=${s.value}&v2=true&reportV5Button=true`), K = O(() => `https://report-v4.feedmedev.cc?businessId=${t.value}&country=${a.value}&token=${s.value}&reportV3Button=true`);
|
|
66
|
-
g(
|
|
67
|
-
[() => c.value, () => i.value, () => v.value],
|
|
68
|
-
() => {
|
|
69
|
-
var e, f;
|
|
70
|
-
const o = ((e = c.value) == null ? void 0 : e.id) ?? "";
|
|
71
|
-
c.value && i.value && v.value && (ie(a.value), t.value !== o && (t.value = o), s.value = ((f = i.value) == null ? void 0 : f.token) ?? "", a.value = v.value ?? "", u.query.businessId !== t.value && W.replace({
|
|
72
|
-
name: u.name,
|
|
73
|
-
params: u.params,
|
|
74
|
-
query: { ...u.query, businessId: t.value }
|
|
75
|
-
}));
|
|
76
|
-
},
|
|
77
|
-
{ immediate: !0 }
|
|
78
|
-
);
|
|
79
|
-
function R(o) {
|
|
80
|
-
if (typeof o.data == "string")
|
|
81
|
-
try {
|
|
82
|
-
const e = JSON.parse(o.data);
|
|
83
|
-
(e == null ? void 0 : e.token) !== "" && (e == null ? void 0 : e.token) !== void 0 && (s.value = e.token);
|
|
84
|
-
} catch (e) {
|
|
85
|
-
console.error(e);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
function E(o) {
|
|
89
|
-
if (typeof o.data == "string")
|
|
90
|
-
try {
|
|
91
|
-
const e = JSON.parse(o.data);
|
|
92
|
-
(e == null ? void 0 : e.v5) === !0 ? n.value = S.value : (e == null ? void 0 : e.v3) === !0 && (n.value = "v3");
|
|
93
|
-
} catch (e) {
|
|
94
|
-
console.error(e);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
g(n, () => {
|
|
98
|
-
["v3", "v4"].includes(n.value) ? k().hideSidebarToggle(!0) : k().hideSidebarToggle(!1);
|
|
99
|
-
}), ee(() => {
|
|
100
|
-
l(pe);
|
|
101
|
-
}), z(() => {
|
|
102
|
-
console.log("5.18.2-beta.3", !0), window.addEventListener("message", R), window.addEventListener("message", E);
|
|
103
|
-
});
|
|
104
|
-
const I = de(), L = fe();
|
|
105
|
-
te(() => {
|
|
106
|
-
window.removeEventListener("message", R), window.removeEventListener("message", E), I.$dispose(), L.$dispose();
|
|
107
|
-
});
|
|
108
|
-
const { getReports: P, getOverviewReport: H, getReportConfig: N } = I, { getSchema: Q } = ve(), { fetchSchedules: X } = L, { init: Y } = ce(), S = J("v5");
|
|
109
|
-
return g(
|
|
110
|
-
() => t.value,
|
|
111
|
-
() => {
|
|
112
|
-
t.value !== "" && A(async () => {
|
|
113
|
-
await Y({
|
|
114
|
-
apiKey: "MaGoXrEWuEJNpWgKTqseee",
|
|
115
|
-
url: "https://flag.feedme.farm/api/v1/",
|
|
116
|
-
enableAnalytics: !1,
|
|
117
|
-
cacheFlags: !1
|
|
118
|
-
});
|
|
119
|
-
const o = await N();
|
|
120
|
-
S.value = o.version, n.value = S.value, await Promise.all([
|
|
121
|
-
y(),
|
|
122
|
-
N(),
|
|
123
|
-
H(),
|
|
124
|
-
P(),
|
|
125
|
-
Q(),
|
|
126
|
-
X(),
|
|
127
|
-
_(),
|
|
128
|
-
p(
|
|
129
|
-
u.query.locationIds ? JSON.parse(u.query.locationIds) : null
|
|
130
|
-
),
|
|
131
|
-
j()
|
|
132
|
-
]);
|
|
133
|
-
});
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
immediate: !0
|
|
137
|
-
}
|
|
138
|
-
), Se(), (o, e) => {
|
|
139
|
-
const f = C("router-view");
|
|
140
|
-
return m(), w(oe, null, [
|
|
141
|
-
$(ye),
|
|
142
|
-
r(n) === "v3" ? (m(), w("iframe", {
|
|
143
|
-
key: 0,
|
|
144
|
-
class: "bg-white h-full w-full",
|
|
145
|
-
src: G.value
|
|
146
|
-
}, null, 8, be)) : r(n) === "v4" ? (m(), w("iframe", {
|
|
147
|
-
key: 1,
|
|
148
|
-
class: "bg-white h-full w-full",
|
|
149
|
-
src: K.value
|
|
150
|
-
}, null, 8, we)) : (m(), T(f, { key: 2 }))
|
|
151
|
-
], 64);
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
export {
|
|
156
|
-
Le as default
|
|
157
|
-
};
|