@feedmepos/mf-report 5.19.9 → 5.19.10-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-CUHBiLo5.js → App-VwS72L_V.js} +31 -31
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-CKy6-NfF.js → BaseDialog.vue_vue_type_script_setup_true_lang-CVrSaewm.js} +1 -1
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-DumUlm1C.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BjCJYhtZ.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-F_ExLefY.js → Default.vue_vue_type_script_setup_true_lang-DEUZ4W4C.js} +2 -2
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-zfWhem1C.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DkQzXmwB.js} +41 -40
- package/dist/{InsightView-C-_bjws2.js → InsightView-BEgpNnKD.js} +5 -5
- package/dist/{Integration-Cn3MIpPW.js → Integration-Crm_siri.js} +2 -2
- package/dist/{Integrations-CDZCWs2E.js → Integrations-DAOeCNIk.js} +3 -3
- package/dist/{Layout-BJTyAcYH.js → Layout-BRHpJV90.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CNysiFZZ.js → MenuTab.vue_vue_type_script_setup_true_lang-BC-vDJFi.js} +6 -6
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DtN0SdZb.js → NavigationTab.vue_vue_type_script_setup_true_lang-DaOoQ3gh.js} +5 -5
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-w_dppGRy.js → NoData.vue_vue_type_script_setup_true_lang-BCtqN6Qb.js} +1 -1
- package/dist/{OverviewView-HxJML2fH.js → OverviewView-BF1xiu-e.js} +5 -5
- package/dist/{Report-dL0iG-B0.js → Report-BgZwKQnX.js} +4 -4
- package/dist/{ReportEditor-yVx8y1eY.js → ReportEditor-DOOQaHus.js} +6 -6
- package/dist/{ReportView-CYx6oinX.js → ReportView-B7Dr4kBo.js} +7 -7
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-BLg2sUEv.js → SelectComponent.vue_vue_type_script_setup_true_lang-DQaq02mG.js} +1 -1
- package/dist/{Setting-BhR-sM_l.js → Setting-MsoHV2Vm.js} +4 -4
- package/dist/{TileEditor-2xrIJ6RB.js → TileEditor-DwTBpOlN.js} +7 -7
- package/dist/{TransitionFade-BU9itQX2.js → TransitionFade-DBNWlTz-.js} +5 -5
- package/dist/app.js +11 -11
- package/dist/{helper-BxD8Pw6q.js → helper-DKVVGDb2.js} +1 -1
- package/dist/{vue-i18n-BhgV_iZ3.js → vue-i18n-BU70cPPB.js} +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as ee, resolveComponent as U, createBlock as te, openBlock as h, unref as u, isRef as Ie, withCtx as J, createElementVNode as
|
|
2
|
-
import { detectLocale as
|
|
3
|
-
import { u as Le, d as i, a as _e, b as X, c as
|
|
1
|
+
import { defineComponent as ee, resolveComponent as U, createBlock as te, openBlock as h, unref as u, isRef as Ie, withCtx as J, createElementVNode as K, createVNode as z, toDisplayString as P, createTextVNode as he, onMounted as ae, watch as R, ref as E, computed as H, onBeforeMount as Re, onBeforeUnmount as qe, createElementBlock as A, Fragment as Oe } from "vue";
|
|
2
|
+
import { detectLocale as k, useCoreStore as T } from "@feedmepos/mf-common";
|
|
3
|
+
import { u as Le, d as i, a as _e, b as X, c as be, e as we, f as Ce, s as Ee, g as ke } from "./vue-i18n-BU70cPPB.js";
|
|
4
4
|
import { storeToRefs as q } from "pinia";
|
|
5
|
-
import { u as Y, a as Ne, b as Be } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as Fe, u as $e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { u as Y, a as Ne, b as Be } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CVrSaewm.js";
|
|
6
|
+
import { _ as Fe, u as $e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DaOoQ3gh.js";
|
|
7
7
|
import { u as Z } from "./message-dialog-UoMWOnil.js";
|
|
8
8
|
import { useRoute as xe, useRouter as Je } from "vue-router";
|
|
9
9
|
const Ae = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Te = /* @__PURE__ */ ee({
|
|
@@ -19,13 +19,13 @@ const Ae = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Te
|
|
|
19
19
|
"close-button": !1
|
|
20
20
|
}, {
|
|
21
21
|
"dialog-header": J(() => [
|
|
22
|
-
he(
|
|
22
|
+
he(P(u(D)), 1)
|
|
23
23
|
]),
|
|
24
24
|
default: J(() => [
|
|
25
|
-
|
|
25
|
+
K("p", Ae, P(u(S)), 1)
|
|
26
26
|
]),
|
|
27
27
|
"dialog-footer": J(() => [
|
|
28
|
-
g[1] || (g[1] =
|
|
28
|
+
g[1] || (g[1] = K("div", { class: "grow" }, null, -1)),
|
|
29
29
|
z(_, {
|
|
30
30
|
label: u(r)("report.common.cancel"),
|
|
31
31
|
variant: "tertiary",
|
|
@@ -40,7 +40,7 @@ const Ae = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Te
|
|
|
40
40
|
}, 8, ["modelValue"]);
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
}), M = k(
|
|
43
|
+
}), M = E(k());
|
|
44
44
|
function Ue() {
|
|
45
45
|
const O = (r) => {
|
|
46
46
|
switch (M.value = r, r) {
|
|
@@ -53,22 +53,22 @@ function Ue() {
|
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
return ae(() => {
|
|
56
|
-
O(
|
|
57
|
-
}), R(() =>
|
|
56
|
+
O(k());
|
|
57
|
+
}), R(() => k(), O, { deep: !0, immediate: !0 }), {
|
|
58
58
|
currentLocale: M
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
i.locale(
|
|
61
|
+
i.locale(k() === "zh-CN" ? "zh-cn" : "en");
|
|
62
62
|
const ze = ["src"], Qe = ["src"], et = /* @__PURE__ */ ee({
|
|
63
63
|
__name: "App",
|
|
64
64
|
setup(O) {
|
|
65
|
-
const { businessId: r, token: f, country: l } = q(_e()), { sessionUser: S, currentBusiness: D, currentCountry: L, registerSidebarComponent: g } = T(), { getRestaurantAndWarehouse: _, getBusinessSetting: N, beginBusinessLoad: B, completeBusinessLoad: ne } = X(), { getFeatureFlags: re } =
|
|
65
|
+
const { businessId: r, token: f, country: l } = q(_e()), { sessionUser: S, currentBusiness: D, currentCountry: L, registerSidebarComponent: g } = T(), { getRestaurantAndWarehouse: _, getBusinessSetting: N, beginBusinessLoad: B, completeBusinessLoad: ne } = X(), { getFeatureFlags: re } = be(), { version: p } = q(Y()), { getSettings: oe } = we(), { promptLoader: se } = Ce(), e = xe(), F = Je(), ie = Y(), { suppressReportRouteSync: b } = q(ie), ue = H(() => `https://portal-v1.feedmedev.cc/b/${r.value}/report/CLOSE_UP?showHeader=false&country=${l.value.toUpperCase()}&menuOption=business-report&token=${f.value}&v2=true&reportV5Button=true`), le = H(() => `https://report-v4.feedmedev.cc?businessId=${r.value}&country=${l.value}&token=${f.value}&reportV3Button=true`);
|
|
66
66
|
R(
|
|
67
67
|
[() => D.value, () => S.value, () => L.value],
|
|
68
68
|
() => {
|
|
69
69
|
var t, o;
|
|
70
70
|
const a = ((t = D.value) == null ? void 0 : t.id) ?? "";
|
|
71
|
-
D.value && S.value && L.value && (
|
|
71
|
+
D.value && S.value && L.value && (Ee(l.value), r.value !== a && (r.value = a), f.value = ((o = S.value) == null ? void 0 : o.token) ?? "", l.value = L.value ?? "", e.query.businessId !== r.value && F.replace({
|
|
72
72
|
name: e.name,
|
|
73
73
|
params: e.params,
|
|
74
74
|
query: { ...e.query, businessId: r.value }
|
|
@@ -85,7 +85,7 @@ const ze = ["src"], Qe = ["src"], et = /* @__PURE__ */ ee({
|
|
|
85
85
|
console.error(t);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function V(a) {
|
|
89
89
|
if (typeof a.data == "string")
|
|
90
90
|
try {
|
|
91
91
|
const t = JSON.parse(a.data);
|
|
@@ -99,19 +99,19 @@ const ze = ["src"], Qe = ["src"], et = /* @__PURE__ */ ee({
|
|
|
99
99
|
}), Re(() => {
|
|
100
100
|
g(Fe);
|
|
101
101
|
}), ae(() => {
|
|
102
|
-
console.log("5.19.
|
|
102
|
+
console.log("5.19.10-beta.0", !0), window.addEventListener("message", Q), window.addEventListener("message", V);
|
|
103
103
|
});
|
|
104
|
-
const I = Ne(),
|
|
104
|
+
const I = Ne(), W = $e(), n = X();
|
|
105
105
|
qe(() => {
|
|
106
|
-
window.removeEventListener("message", Q), window.removeEventListener("message",
|
|
106
|
+
window.removeEventListener("message", Q), window.removeEventListener("message", V), I.$dispose(), W.$dispose();
|
|
107
107
|
});
|
|
108
|
-
const { getReports: ce, getOverviewReport: de, getReportConfig:
|
|
108
|
+
const { getReports: ce, getOverviewReport: de, getReportConfig: j, currentReportId: G } = I, { currentReportId: me, reports: fe } = q(I), { getSchema: pe } = Be(), { fetchSchedules: ge } = W, { init: ve } = ke(), $ = E("v5"), w = E(!1), x = E(!0);
|
|
109
109
|
function ye() {
|
|
110
110
|
const a = e.query.startDate ? i(e.query.startDate).startOf("day").toISOString() : void 0, t = e.query.endDate ? i(e.query.endDate).endOf("day").toISOString() : void 0, o = e.query.timeStart ? JSON.parse(e.query.timeStart) : void 0, c = e.query.timeEnd ? JSON.parse(e.query.timeEnd) : void 0, d = e.query.compareStartDate ? i(e.query.compareStartDate).startOf("day").toISOString() : void 0, v = e.query.compareEndDate ? i(e.query.compareEndDate).endOf("day").toISOString() : void 0, C = e.query.isAllLocation === "true";
|
|
111
111
|
let m = [];
|
|
112
112
|
C ? m = n.selectedLocationIds : m = e.query.locationIds ? JSON.parse(e.query.locationIds) : void 0;
|
|
113
|
-
let y = e.query.reportId ||
|
|
114
|
-
if (fe.value.find((s) => s.id === y) || (y =
|
|
113
|
+
let y = e.query.reportId || G;
|
|
114
|
+
if (fe.value.find((s) => s.id === y) || (y = G), y && y !== I.currentReportId && I.updateCurrentReportId(y), a || t) {
|
|
115
115
|
const s = n.dateRange;
|
|
116
116
|
(s.startDate !== a || s.endDate !== t) && n.setDateRange({ startDate: a, endDate: t });
|
|
117
117
|
}
|
|
@@ -146,7 +146,7 @@ const ze = ["src"], Qe = ["src"], et = /* @__PURE__ */ ee({
|
|
|
146
146
|
return R(
|
|
147
147
|
() => r.value,
|
|
148
148
|
async (a) => {
|
|
149
|
-
a !== "" && (
|
|
149
|
+
a !== "" && (w.value = !1, B(a), x.value || (n.setSelectedLocationIds([]), F.replace({
|
|
150
150
|
name: e.name,
|
|
151
151
|
params: e.params,
|
|
152
152
|
query: {
|
|
@@ -154,17 +154,17 @@ const ze = ["src"], Qe = ["src"], et = /* @__PURE__ */ ee({
|
|
|
154
154
|
locationIds: void 0,
|
|
155
155
|
isAllLocation: "true"
|
|
156
156
|
}
|
|
157
|
-
})),
|
|
157
|
+
})), b.value !== void 0 && (b.value = !0), await se(async () => {
|
|
158
158
|
await ve({
|
|
159
|
-
apiKey: "
|
|
159
|
+
apiKey: "MaGoXrEWuEJNpWgKTqseee",
|
|
160
160
|
url: "https://flag.feedme.farm/api/v1/",
|
|
161
161
|
enableAnalytics: !1,
|
|
162
162
|
cacheFlags: !1
|
|
163
163
|
});
|
|
164
|
-
const t = await
|
|
164
|
+
const t = await j();
|
|
165
165
|
$.value = t.version, p.value = $.value, await Promise.all([
|
|
166
166
|
re(),
|
|
167
|
-
|
|
167
|
+
j(),
|
|
168
168
|
de(),
|
|
169
169
|
ce(),
|
|
170
170
|
pe(),
|
|
@@ -174,13 +174,13 @@ const ze = ["src"], Qe = ["src"], et = /* @__PURE__ */ ee({
|
|
|
174
174
|
),
|
|
175
175
|
oe()
|
|
176
176
|
]), await N(), ye(), ne(a);
|
|
177
|
-
}),
|
|
177
|
+
}), w.value = !0, x.value && (x.value = !1));
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
immediate: !0
|
|
181
181
|
}
|
|
182
182
|
), R(
|
|
183
|
-
() => (
|
|
183
|
+
() => (w.value, {
|
|
184
184
|
reportId: me.value,
|
|
185
185
|
selectedLocationIds: n.selectedLocationIds,
|
|
186
186
|
dateRange: n.dateRange,
|
|
@@ -188,9 +188,9 @@ const ze = ["src"], Qe = ["src"], et = /* @__PURE__ */ ee({
|
|
|
188
188
|
compareDateRange: n.compareDateRange
|
|
189
189
|
}),
|
|
190
190
|
(a) => {
|
|
191
|
-
if (!
|
|
192
|
-
if (
|
|
193
|
-
|
|
191
|
+
if (!w.value || !a.reportId) return;
|
|
192
|
+
if (b.value) {
|
|
193
|
+
b.value = !1;
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
196
|
const t = a.selectedLocationIds, o = a.dateRange, c = a.timeRange, d = a.compareDateRange, v = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as B0, a as d0, F as x0, v as c0, b as M0, c as au, o as tu, e as ru, d as $0, r as H0, l as fu } from "./vue-i18n-
|
|
1
|
+
import { k as B0, a as d0, F as x0, v as c0, b as M0, c as au, o as tu, e as ru, d as $0, r as H0, l as fu } from "./vue-i18n-BU70cPPB.js";
|
|
2
2
|
import { storeToRefs as X, defineStore as R0 } from "pinia";
|
|
3
3
|
import { ref as Q, computed as g0, watch as N0, h as iu, defineComponent as nu, mergeModels as Q0, useModel as bu, resolveComponent as G0, createBlock as su, openBlock as lu, withCtx as v0, createElementVNode as ou, createVNode as V0, renderSlot as _u, createTextVNode as pu, toDisplayString as $u } from "vue";
|
|
4
4
|
import { useSnackbar as j0, components as yu } from "@feedmepos/ui-library";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as $, resolveComponent as S, createBlock as v, openBlock as c, withCtx as C, createCommentVNode as h, createElementVNode as x, toDisplayString as N, renderSlot as Y, mergeModels as T, useModel as R, ref as F, watch as V, createElementBlock as j, createVNode as b, unref as m } from "vue";
|
|
2
|
-
import { d as n, l as U, t as q, u as _, b as A, T as G, C as L } from "./vue-i18n-
|
|
3
|
-
import { d as k } from "./helper-
|
|
2
|
+
import { d as n, l as U, t as q, u as _, b as A, T as G, C as L } from "./vue-i18n-BU70cPPB.js";
|
|
3
|
+
import { d as k } from "./helper-DKVVGDb2.js";
|
|
4
4
|
import { detectLocale as P } from "@feedmepos/mf-common";
|
|
5
5
|
import { storeToRefs as H } from "pinia";
|
|
6
6
|
const J = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, K = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, M = /* @__PURE__ */ $({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as u, computed as f, resolveComponent as p, createElementBlock as s, openBlock as t, normalizeStyle as n, normalizeClass as d, unref as e, createBlock as y, createCommentVNode as _, createVNode as h, createElementVNode as k, toDisplayString as g, renderSlot as x } from "vue";
|
|
2
|
-
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DaOoQ3gh.js";
|
|
3
3
|
import { useBreakpoints as b } from "@feedmepos/ui-library";
|
|
4
4
|
import { storeToRefs as C } from "pinia";
|
|
5
|
-
import { u as q, f as w } from "./vue-i18n-
|
|
5
|
+
import { u as q, f as w } from "./vue-i18n-BU70cPPB.js";
|
|
6
6
|
import { useRoute as B } from "vue-router";
|
|
7
7
|
const $ = {
|
|
8
8
|
key: 1,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { computed as g, defineComponent as te, mergeModels as me, useModel as ae, ref as h, onMounted as _e, nextTick as X, watch as J, resolveComponent as V, createElementBlock as I, openBlock as W, Fragment as ne, renderSlot as fe, createVNode as $, normalizeStyle as se, unref as l, createElementVNode as P, toDisplayString as ze, withCtx as q, createBlock as U, createCommentVNode as he, normalizeClass as Pe, h as xt, renderList as Tt, createTextVNode as aa, onUnmounted as la, resolveDynamicComponent as oa, withDirectives as na, vShow as sa } from "vue";
|
|
2
|
-
import { W as F, d as Ee, v as $e, e as
|
|
3
|
-
import { u as Ie, b as Me, a as
|
|
4
|
-
import { a as Ct } from "./helper-
|
|
2
|
+
import { W as F, d as Ee, v as $e, e as Ge, f as Rt, q as ra, R as xe, g as ia } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CVrSaewm.js";
|
|
3
|
+
import { u as Ie, b as Me, a as lt } from "./vue-i18n-BU70cPPB.js";
|
|
4
|
+
import { a as Ct } from "./helper-DKVVGDb2.js";
|
|
5
5
|
import { storeToRefs as Se, defineStore as ua } from "pinia";
|
|
6
6
|
import { useBreakpoints as Ft, components as ca, useSnackbar as Lt } from "@feedmepos/ui-library";
|
|
7
|
-
import { a as da } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { a as da } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DQaq02mG.js";
|
|
8
8
|
import { r as Ce } from "./i18n-Cif1I9J2.js";
|
|
9
|
-
import { _ as St } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
var
|
|
9
|
+
import { _ as St } from "./NoData.vue_vue_type_script_setup_true_lang-BCtqN6Qb.js";
|
|
10
|
+
var Ke = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(Ke || {}), Q = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(Q || {}), Ze = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(Ze || {}), Qe = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Qe || {}), et = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(et || {}), tt = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(tt || {}), at = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(at || {});
|
|
11
11
|
F.Circular, F.Table, F.BarChart, F.LineChart, F.StackBarChart, F.StackLineChart, F.Scorecard, F.Spacer;
|
|
12
12
|
const ha = [
|
|
13
13
|
{
|
|
@@ -72,7 +72,7 @@ const ha = [
|
|
|
72
72
|
showSearchBar: !1
|
|
73
73
|
}
|
|
74
74
|
];
|
|
75
|
-
function
|
|
75
|
+
function je(e) {
|
|
76
76
|
const n = [e.schemaName, e.name];
|
|
77
77
|
return "option" in e && e.option && n.push(e.option), "aggregation" in e && e.aggregation && n.push(e.aggregation), n.push(e.label.replace(/[^a-zA-Z0-9]/g, "")), n.join("_").toLowerCase();
|
|
78
78
|
}
|
|
@@ -436,7 +436,7 @@ const pa = /* @__PURE__ */ te({
|
|
|
436
436
|
},
|
|
437
437
|
emits: ["update:modelValue"],
|
|
438
438
|
setup(e) {
|
|
439
|
-
const n = ae(e, "modelValue"), { t: m } = Ie(), { compareDateRange: t, defaultDateSetting: x } = Se(Me()), { country: L } =
|
|
439
|
+
const n = ae(e, "modelValue"), { t: m } = Ie(), { compareDateRange: t, defaultDateSetting: x } = Se(Me()), { country: L } = lt(), S = g(() => {
|
|
440
440
|
var i;
|
|
441
441
|
return ((i = n.value.data) == null ? void 0 : i.value) || "";
|
|
442
442
|
}), T = g(() => {
|
|
@@ -445,9 +445,9 @@ const pa = /* @__PURE__ */ te({
|
|
|
445
445
|
});
|
|
446
446
|
function z(i) {
|
|
447
447
|
switch (i) {
|
|
448
|
-
case
|
|
448
|
+
case Ke.bar:
|
|
449
449
|
return "bar";
|
|
450
|
-
case
|
|
450
|
+
case Ke.line:
|
|
451
451
|
return "line";
|
|
452
452
|
default:
|
|
453
453
|
return "line";
|
|
@@ -674,7 +674,7 @@ const _a = /* @__PURE__ */ da(Sa, [["render", ka]]), Ta = "mf-reporttable-dimens
|
|
|
674
674
|
}
|
|
675
675
|
};
|
|
676
676
|
});
|
|
677
|
-
function
|
|
677
|
+
function Je(e) {
|
|
678
678
|
if (e == null || e === "")
|
|
679
679
|
return "";
|
|
680
680
|
const n = String(e), m = Number(n);
|
|
@@ -693,7 +693,7 @@ const Ra = { class: "my-4" }, Fa = {
|
|
|
693
693
|
},
|
|
694
694
|
emits: ["update:modelValue"],
|
|
695
695
|
setup(e) {
|
|
696
|
-
const { t: n, te: m } = Ie(), t = ae(e, "modelValue"), { country: x } =
|
|
696
|
+
const { t: n, te: m } = Ie(), t = ae(e, "modelValue"), { country: x } = lt(), { isEditing: L, colWidths: S, rowHeight: T } = Se(_t()), { setColWidths: z, setRowHeights: u, enableCellResizing: c } = _t(), i = h(null), r = g(() => {
|
|
697
697
|
var o;
|
|
698
698
|
return ((o = t.value.data) == null ? void 0 : o.columns) || [{ label: "", key: "" }];
|
|
699
699
|
}), b = g(() => {
|
|
@@ -819,7 +819,7 @@ const Ra = { class: "my-4" }, Fa = {
|
|
|
819
819
|
k.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
|
|
820
820
|
].join(" ")
|
|
821
821
|
},
|
|
822
|
-
[_.type === "NUMERIC" ?
|
|
822
|
+
[_.type === "NUMERIC" ? Je(Y.main) : Y.main]
|
|
823
823
|
);
|
|
824
824
|
},
|
|
825
825
|
enableSorting: !1
|
|
@@ -878,8 +878,8 @@ const Ra = { class: "my-4" }, Fa = {
|
|
|
878
878
|
k.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
|
|
879
879
|
])
|
|
880
880
|
}, [
|
|
881
|
-
P("p", La, ze(_.rowType === "NUMERIC" ? l(
|
|
882
|
-
P("p", za, ze(_.comparison ? _.rowType === "NUMERIC" ? `(${l(
|
|
881
|
+
P("p", La, ze(_.rowType === "NUMERIC" ? l(Je)(_.main) : _.main), 1),
|
|
882
|
+
P("p", za, ze(_.comparison ? _.rowType === "NUMERIC" ? `(${l(Je)(_.comparison)})` : `(${_.comparison})` : ""), 1)
|
|
883
883
|
], 2)
|
|
884
884
|
]))), 128))
|
|
885
885
|
])
|
|
@@ -1142,7 +1142,7 @@ const Ba = /* @__PURE__ */ te({
|
|
|
1142
1142
|
}),
|
|
1143
1143
|
emits: ["update:modelValue"],
|
|
1144
1144
|
setup(e) {
|
|
1145
|
-
const { t: n } = Ie(), { FmForm: m } = ca, t = e, x = h(), L = ae(e, "modelValue"), S = h(!0), T = h(!1), z = Lt(), { selectedLocationIds: u, dateRange: c, timeRange: i } = Se(Me()), r = h(
|
|
1145
|
+
const { t: n } = Ie(), { FmForm: m } = ca, t = e, x = h(), L = ae(e, "modelValue"), S = h(!0), T = h(!1), z = Lt(), { selectedLocationIds: u, dateRange: c, timeRange: i } = Se(Me()), r = h(Ge.PORTRAIT);
|
|
1146
1146
|
function b() {
|
|
1147
1147
|
var y;
|
|
1148
1148
|
(y = x.value) == null || y.validateInputs();
|
|
@@ -1190,11 +1190,11 @@ const Ba = /* @__PURE__ */ te({
|
|
|
1190
1190
|
}, {
|
|
1191
1191
|
default: q(() => [
|
|
1192
1192
|
$(E, {
|
|
1193
|
-
value: l(
|
|
1193
|
+
value: l(Ge).PORTRAIT,
|
|
1194
1194
|
label: l(n)("report.common.portrait")
|
|
1195
1195
|
}, null, 8, ["value", "label"]),
|
|
1196
1196
|
$(E, {
|
|
1197
|
-
value: l(
|
|
1197
|
+
value: l(Ge).LANDSCAPE,
|
|
1198
1198
|
label: l(n)("report.common.landscape")
|
|
1199
1199
|
}, null, 8, ["value", "label"])
|
|
1200
1200
|
]),
|
|
@@ -1263,7 +1263,7 @@ const Ba = /* @__PURE__ */ te({
|
|
|
1263
1263
|
return -1;
|
|
1264
1264
|
}), r = g(() => i.value !== 0), b = g(
|
|
1265
1265
|
() => i.value != de.value.length - 1
|
|
1266
|
-
), p = h(t.showTitle ?? !0), y = h(t.titleFontSize ?? 14), d = h(t.titleBold ?? !1), E = h(t.titleItalic ?? !1), f = h(t.titleUnderline ?? !1), s = h(t.chartWidth ?? void 0), C = h(t.chartHeight ?? void 0), w = h(t.showLabel ?? !1), k = h(t.labelAlign ??
|
|
1266
|
+
), p = h(t.showTitle ?? !0), y = h(t.titleFontSize ?? 14), d = h(t.titleBold ?? !1), E = h(t.titleItalic ?? !1), f = h(t.titleUnderline ?? !1), s = h(t.chartWidth ?? void 0), C = h(t.chartHeight ?? void 0), w = h(t.showLabel ?? !1), k = h(t.labelAlign ?? Qe.center), D = h(t.labelAnchor ?? Ze.center), o = h(t.labelRotation ?? 0), v = h(t.labelOffset ?? 0), R = h(t.labelFontSize ?? 12), _ = g(() => t.showSearchBar), A = h(t.showX ?? !0), H = h(t.xPosition ?? et.bottom), Y = h(t.showXGrid ?? !1), O = h(t.showXTick ?? !0), G = h(t.xTickFontSize ?? 12), j = h(t.showXTitle ?? !1), De = h(t.xTitle ?? ""), Ae = h(t.xTitleFontSize ?? 12), Ve = h(t.showY ?? !0), Te = h(t.yPosition ?? tt.left), Re = h(t.showYGrid ?? !1), pe = h(t.showYTick ?? !0), re = h(t.yTickFontSize ?? 12), ie = h(t.showYTitle ?? !1), le = h(t.yTitle ?? ""), ve = h(t.yTitleFontSize ?? 12), oe = h(t.showLegend ?? void 0), ue = h(t.legendPosition ?? at.top), ce = h(t.usePointStyle ?? !0), Ne = h(t.legendMaxHeight), ot = h(t.legendMaxWidth), nt = h(t.rowHeight ?? 0), st = h(t.colWidths ?? []), qe = h(!1), Oe = h(""), { breakpoints: ge, getBreakpointsBoundary: Fe } = Ft(), rt = h(), N = g(
|
|
1267
1267
|
() => S.customScreenWidth === void 0 ? window.innerWidth : S.customScreenWidth
|
|
1268
1268
|
), Et = g(
|
|
1269
1269
|
() => (N == null ? void 0 : N.value) > Fe("xs")[1] && (N == null ? void 0 : N.value) <= Fe("sm")[1]
|
|
@@ -1276,7 +1276,7 @@ const Ba = /* @__PURE__ */ te({
|
|
|
1276
1276
|
() => ha.find((a) => a.type === m.value.widget.type)
|
|
1277
1277
|
), ye = Ct(() => {
|
|
1278
1278
|
var a;
|
|
1279
|
-
|
|
1279
|
+
rt.value = qt((a = T.value) == null ? void 0 : a.$el.offsetWidth), u.value = $e();
|
|
1280
1280
|
}), Vt = g(() => {
|
|
1281
1281
|
if (ma(M.value.type, be.value))
|
|
1282
1282
|
switch (m.value.widget.type) {
|
|
@@ -1302,13 +1302,13 @@ const Ba = /* @__PURE__ */ te({
|
|
|
1302
1302
|
else
|
|
1303
1303
|
return St;
|
|
1304
1304
|
}), be = h(null), {
|
|
1305
|
-
selectedLocationIds:
|
|
1305
|
+
selectedLocationIds: Ue,
|
|
1306
1306
|
dateRange: it,
|
|
1307
1307
|
compareDateRange: Ht,
|
|
1308
1308
|
timeRange: ut,
|
|
1309
1309
|
globalFilters: Bt,
|
|
1310
1310
|
isGlobalFiltersLoading: ct
|
|
1311
|
-
} = Se(Me()), { businessId: $t } = Se(
|
|
1311
|
+
} = Se(Me()), { businessId: $t } = Se(lt()), { businessLoadedId: Pt, businessDataVersion: Xe } = Se(Me()), dt = g(() => Pt.value === $t.value && Ue.value.length > 0 && !ct.value), Mt = h(!0), M = g(() => {
|
|
1312
1312
|
const a = JSON.parse(JSON.stringify(m.value.widget));
|
|
1313
1313
|
return {
|
|
1314
1314
|
...a,
|
|
@@ -1357,7 +1357,7 @@ const Ba = /* @__PURE__ */ te({
|
|
|
1357
1357
|
legendPosition: ue.value,
|
|
1358
1358
|
usePointStyle: ce.value,
|
|
1359
1359
|
legendMaxHeight: Ne.value,
|
|
1360
|
-
legendMaxWidth:
|
|
1360
|
+
legendMaxWidth: ot.value
|
|
1361
1361
|
};
|
|
1362
1362
|
}
|
|
1363
1363
|
function Nt() {
|
|
@@ -1365,8 +1365,8 @@ const Ba = /* @__PURE__ */ te({
|
|
|
1365
1365
|
data: be.value,
|
|
1366
1366
|
filterText: Oe.value,
|
|
1367
1367
|
rollupPosition: M.value.config.rollupPosition,
|
|
1368
|
-
rowHeight:
|
|
1369
|
-
colWidths:
|
|
1368
|
+
rowHeight: nt.value,
|
|
1369
|
+
colWidths: st.value
|
|
1370
1370
|
};
|
|
1371
1371
|
}
|
|
1372
1372
|
const ht = g(() => {
|
|
@@ -1387,7 +1387,7 @@ const Ba = /* @__PURE__ */ te({
|
|
|
1387
1387
|
if (a.rollup != null) {
|
|
1388
1388
|
const B = [...a.dimensions].filter((K) => !K.hide);
|
|
1389
1389
|
return B.sort(
|
|
1390
|
-
(K, Le) => (a.rowIds || []).indexOf(
|
|
1390
|
+
(K, Le) => (a.rowIds || []).indexOf(je(K)) - (a.rowIds || []).indexOf(je(Le))
|
|
1391
1391
|
), [
|
|
1392
1392
|
{ label: Ce(x, L, "None", "other"), value: "none" },
|
|
1393
1393
|
{ label: Ce(x, L, "Grand Total", "other"), value: 0 },
|
|
@@ -1402,13 +1402,13 @@ const Ba = /* @__PURE__ */ te({
|
|
|
1402
1402
|
const { config: a } = M.value;
|
|
1403
1403
|
return a.isDrillable ? a.dimensions.map((B) => ({
|
|
1404
1404
|
label: Ce(x, L, B.label, "other"),
|
|
1405
|
-
value:
|
|
1405
|
+
value: je(B)
|
|
1406
1406
|
})) : [];
|
|
1407
1407
|
});
|
|
1408
1408
|
J(
|
|
1409
1409
|
() => m.value.widget.config,
|
|
1410
1410
|
(a) => {
|
|
1411
|
-
z.value = a.rollup, p.value = a.showTitle ?? !0, y.value = a.titleFontSize ?? 14, d.value = a.titleBold ?? !1, E.value = a.titleItalic ?? !1, f.value = a.titleUnderline ?? !1, C.value = a.chartHeight ?? void 0, s.value = a.chartWidth ?? void 0, w.value = a.showLabel ?? !1, k.value = a.labelAlign ??
|
|
1411
|
+
z.value = a.rollup, p.value = a.showTitle ?? !0, y.value = a.titleFontSize ?? 14, d.value = a.titleBold ?? !1, E.value = a.titleItalic ?? !1, f.value = a.titleUnderline ?? !1, C.value = a.chartHeight ?? void 0, s.value = a.chartWidth ?? void 0, w.value = a.showLabel ?? !1, k.value = a.labelAlign ?? Qe.center, D.value = a.labelAnchor ?? Ze.center, o.value = a.labelRotation ?? 0, v.value = a.labelOffset ?? 0, R.value = a.labelFontSize ?? 12, A.value = a.showX ?? !0, H.value = a.xPosition ?? et.bottom, Y.value = a.showXGrid ?? !1, O.value = a.showXTick ?? !0, G.value = a.xTickFontSize ?? 12, j.value = a.showXTitle ?? !1, De.value = a.xTitle ?? "", Ae.value = a.xTitleFontSize ?? 12, Ve.value = a.showY ?? !0, Te.value = a.yPosition ?? tt.left, Re.value = a.showYGrid ?? !1, pe.value = a.showYTick ?? !0, re.value = a.yTickFontSize ?? 12, ie.value = a.showYTitle ?? !1, le.value = a.yTitle ?? "", ve.value = a.yTitleFontSize ?? 12, oe.value = a.showLegend ?? void 0, ue.value = a.legendPosition ?? at.top, ce.value = a.usePointStyle ?? !0, Ne.value = a.legendMaxHeight, ot.value = a.legendMaxWidth, nt.value = a.rowHeight ?? 0, st.value = a.colWidths ?? [];
|
|
1412
1412
|
},
|
|
1413
1413
|
{ deep: !0 }
|
|
1414
1414
|
), J([() => z.value], () => {
|
|
@@ -1419,9 +1419,10 @@ const Ba = /* @__PURE__ */ te({
|
|
|
1419
1419
|
() => it.value,
|
|
1420
1420
|
() => ut.value,
|
|
1421
1421
|
() => Ht.value,
|
|
1422
|
+
() => Ue.value,
|
|
1422
1423
|
() => Bt.value,
|
|
1423
1424
|
() => dt.value,
|
|
1424
|
-
() =>
|
|
1425
|
+
() => Xe.value
|
|
1425
1426
|
],
|
|
1426
1427
|
() => {
|
|
1427
1428
|
pt();
|
|
@@ -1454,8 +1455,8 @@ const Ba = /* @__PURE__ */ te({
|
|
|
1454
1455
|
}
|
|
1455
1456
|
try {
|
|
1456
1457
|
n.value = !0, Be && Be.abort(), Be = new AbortController();
|
|
1457
|
-
const a = Be.signal, B =
|
|
1458
|
-
|
|
1458
|
+
const a = Be.signal, B = Xe.value, K = await Ct(ra, 500)(M.value, a, m.value.id);
|
|
1459
|
+
Xe.value === B && (be.value = K, u.value = $e()), n.value = !1;
|
|
1459
1460
|
} catch (a) {
|
|
1460
1461
|
a.code !== "ERR_CANCELED" && (be.value = null, ft.open({ message: `Invalid chart ${M.value.type}`, type: "error" }), console.log(a), n.value = !1);
|
|
1461
1462
|
}
|
|
@@ -1489,12 +1490,12 @@ const Ba = /* @__PURE__ */ te({
|
|
|
1489
1490
|
isCombinedLocationLayout: Mt.value,
|
|
1490
1491
|
timeRange: ut.value,
|
|
1491
1492
|
dateRange: it.value,
|
|
1492
|
-
locationIds:
|
|
1493
|
+
locationIds: Ue.value
|
|
1493
1494
|
}) : a === xe.PDF && (vt.value = a, gt.value = S.index, qe.value = !0);
|
|
1494
1495
|
}
|
|
1495
1496
|
})), Yt = M.value.type === F.Spacer ? "flat" : "outlined", Gt = M.value.type === F.Spacer ? "p-0" : "p-16";
|
|
1496
1497
|
return (a, B) => {
|
|
1497
|
-
const K = V("FmTooltip"), Le = V("FmSearch"), jt = V("FmCheckbox"),
|
|
1498
|
+
const K = V("FmTooltip"), Le = V("FmSearch"), jt = V("FmCheckbox"), Ye = V("FmButton"), Jt = V("FmSelect"), Kt = V("FmMenuItem"), Zt = V("FmMenu"), Qt = V("FmForm"), ea = V("FmCircularProgress"), ta = V("FmCard");
|
|
1498
1499
|
return W(), U(ta, {
|
|
1499
1500
|
ref_key: "tileCard",
|
|
1500
1501
|
ref: T,
|
|
@@ -1510,7 +1511,7 @@ const Ba = /* @__PURE__ */ te({
|
|
|
1510
1511
|
}, null, 8, ["modelValue", "report-type", "index"]),
|
|
1511
1512
|
!n.value && !l(ct) ? (W(), I("div", {
|
|
1512
1513
|
key: 0,
|
|
1513
|
-
style: se({ height:
|
|
1514
|
+
style: se({ height: rt.value })
|
|
1514
1515
|
}, [
|
|
1515
1516
|
(W(), U(oa(Vt.value), {
|
|
1516
1517
|
key: u.value,
|
|
@@ -1562,13 +1563,13 @@ const Ba = /* @__PURE__ */ te({
|
|
|
1562
1563
|
[sa, (yt = He.value) == null ? void 0 : yt.showLabel]
|
|
1563
1564
|
]),
|
|
1564
1565
|
(bt = He.value) != null && bt.showDrillDimension && de.value.length > 0 ? (W(), I("div", Na, [
|
|
1565
|
-
$(
|
|
1566
|
+
$(Ye, {
|
|
1566
1567
|
icon: "arrow_upward",
|
|
1567
1568
|
variant: "tertiary",
|
|
1568
1569
|
disabled: !r.value,
|
|
1569
1570
|
onClick: Ot
|
|
1570
1571
|
}, null, 8, ["disabled"]),
|
|
1571
|
-
$(
|
|
1572
|
+
$(Ye, {
|
|
1572
1573
|
icon: "arrow_downward",
|
|
1573
1574
|
variant: "tertiary",
|
|
1574
1575
|
disabled: !b.value,
|
|
@@ -1587,7 +1588,7 @@ const Ba = /* @__PURE__ */ te({
|
|
|
1587
1588
|
shift: !0
|
|
1588
1589
|
}, {
|
|
1589
1590
|
"menu-button": q(() => [
|
|
1590
|
-
$(
|
|
1591
|
+
$(Ye, {
|
|
1591
1592
|
icon: "more_vert",
|
|
1592
1593
|
variant: "tertiary"
|
|
1593
1594
|
})
|
|
@@ -1616,10 +1617,10 @@ const Ba = /* @__PURE__ */ te({
|
|
|
1616
1617
|
}
|
|
1617
1618
|
});
|
|
1618
1619
|
export {
|
|
1619
|
-
|
|
1620
|
+
Qe as L,
|
|
1620
1621
|
Q as R,
|
|
1621
1622
|
Za as _,
|
|
1622
|
-
|
|
1623
|
-
|
|
1623
|
+
Ze as a,
|
|
1624
|
+
je as g,
|
|
1624
1625
|
_t as u
|
|
1625
1626
|
};
|
|
@@ -2,13 +2,13 @@ var Zo = Object.defineProperty;
|
|
|
2
2
|
var Jo = (i, t, e) => t in i ? Zo(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
3
|
var k = (i, t, e) => Jo(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
import { ref as $t, defineComponent as oe, watch as ri, computed as _t, onMounted as Qo, createElementBlock as U, openBlock as I, createElementVNode as R, renderSlot as Un, toDisplayString as lt, resolveDirective as Xn, createCommentVNode as St, Fragment as Ii, renderList as zi, createBlock as Ht, withDirectives as Ge, resolveDynamicComponent as es, unref as G, withCtx as Yt, createVNode as et, normalizeClass as Ze, resolveComponent as Me, useModel as ta, createTextVNode as ea, isRef as ki, nextTick as ia } from "vue";
|
|
5
|
-
import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { d as Bi, a as Kn, q as qn, F as Gn, u as Zn, h as ys, b as oa } from "./vue-i18n-
|
|
5
|
+
import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-DEUZ4W4C.js";
|
|
6
|
+
import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BjCJYhtZ.js";
|
|
7
|
+
import { d as Bi, a as Kn, q as qn, F as Gn, u as Zn, h as ys, b as oa } from "./vue-i18n-BU70cPPB.js";
|
|
8
8
|
import { storeToRefs as Jn } from "pinia";
|
|
9
9
|
import { components as is, useSnackbar as aa } from "@feedmepos/ui-library";
|
|
10
|
-
import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-BCtqN6Qb.js";
|
|
11
|
+
import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DaOoQ3gh.js";
|
|
12
12
|
import { useCoreStore as ha } from "@feedmepos/mf-common";
|
|
13
13
|
function da({ start: i, end: t }) {
|
|
14
14
|
return `${Bi(t).format("DD MMM")}, ${Bi(t).format("YYYY")}`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as J, mergeModels as Se, useModel as te, computed as q, resolveComponent as A, createElementBlock as I, openBlock as w, createElementVNode as t, createCommentVNode as L, normalizeClass as Ne, Fragment as ke, createBlock as j, withCtx as xe, toDisplayString as C, renderList as De, createVNode as l, unref as d, h as k, normalizeStyle as tt, createTextVNode as ot, ref as z, onUnmounted as Ie, watch as Ce, isRef as Ke, resolveDynamicComponent as Te, mergeProps as Qe, onMounted as Ge } from "vue";
|
|
2
2
|
import { useRouter as be, useRoute as at } from "vue-router";
|
|
3
|
-
import { u as oe, I as he, d as Ve, w as lt, z as nt, e as Ae, f as Re, b as we, A as ve, B as st, n as rt, y as Pe, E as Me, G as je, H as Le, J as ze, K as it, L as dt, M as mt, N as qe, c as Ze, O as pt, P as ut, Q as ct, R as ft, S as gt } from "./vue-i18n-
|
|
3
|
+
import { u as oe, I as he, d as Ve, w as lt, z as nt, e as Ae, f as Re, b as we, A as ve, B as st, n as rt, y as Pe, E as Me, G as je, H as Le, J as ze, K as it, L as dt, M as mt, N as qe, c as Ze, O as pt, P as ut, Q as ct, R as ft, S as gt } from "./vue-i18n-BU70cPPB.js";
|
|
4
4
|
import { u as Oe } from "./message-dialog-UoMWOnil.js";
|
|
5
5
|
import { useSnackbar as _e } from "@feedmepos/ui-library";
|
|
6
6
|
import { storeToRefs as Ee } from "pinia";
|
|
7
|
-
import { _ as Be } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as Be } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BjCJYhtZ.js";
|
|
8
8
|
const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, yt = { class: "w-[100%]" }, xt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, bt = { class: "w-[100%] flex flex-row gap-[4px]" }, wt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, _t = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, ht = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "w-[24px] flex items-center"
|