@feedmepos/mf-report 5.19.23 → 5.19.24-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-BR2rk0th.js → App-ChOsyC6V.js} +31 -31
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-g-uxOKsk.js → BaseDialog.vue_vue_type_script_setup_true_lang-DQg0AdC9.js} +4 -4
- 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-BJl8wpy8.js} +2 -2
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-DT7ynfQa.js → FilterSelector.vue_vue_type_script_setup_true_lang-CLX1VnmB.js} +53 -53
- package/dist/{InsightView-C454vlgZ.js → InsightView-DZv9LOkh.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-CGewTKq4.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-iMEcZvkT.js → MenuTab.vue_vue_type_script_setup_true_lang-DSEmCasr.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CmW84nrF.js → NavigationTab.vue_vue_type_script_setup_true_lang-CghXyTqi.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-kx3B0qyh.js → OverviewView-CqIlzBhG.js} +5 -5
- package/dist/{Report-Cl6jUoYF.js → Report-93_p2p_Y.js} +162 -151
- package/dist/{ReportEditor-BfvanNqi.js → ReportEditor-sKAoWQu8.js} +6 -6
- package/dist/{ReportView-DxtpBbDv.js → ReportView-suBIJBWN.js} +7 -7
- 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-Bfk6TybW.js} +4 -4
- package/dist/{TileEditor-CAUbpe9B.js → TileEditor-DIUcwxSj.js} +7 -7
- package/dist/{TransitionFade-DeahqXLb.js → TransitionFade-B00nCVsI.js} +5 -5
- package/dist/app.js +11 -11
- package/dist/assets/{formatChartData.worker-Cb40k96i.js → formatChartData.worker-DmEF8HW6.js} +1 -1
- package/dist/assets/{processTableData.worker-DS6uNX_h.js → processTableData.worker-BsdnWDQK.js} +1 -1
- package/dist/{vue-i18n-BQN8HgvD.js → vue-i18n-BJW_sJot.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-BJW_sJot.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-DQg0AdC9.js";
|
|
6
|
+
import { _ as Fe, u as $e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CghXyTqi.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.24-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,10 +1,10 @@
|
|
|
1
|
-
import { a as m0, F as y0, w as g0, b as k0, c as Ae, v as Te, e as Ce, d as h0, r as K0, m as be, u as Fe } from "./vue-i18n-
|
|
1
|
+
import { a as m0, F as y0, w as g0, b as k0, c as Ae, v as Te, e as Ce, d as h0, r as K0, m as be, u as Fe } from "./vue-i18n-BJW_sJot.js";
|
|
2
2
|
import { storeToRefs as p0, defineStore as B0 } from "pinia";
|
|
3
3
|
import { ref as o0, computed as C0, watch as U0, h as Ie, defineComponent as se, mergeModels as N0, useModel as z0, resolveComponent as A0, createElementBlock as V0, openBlock as P0, createVNode as S0, withCtx as b0, createElementVNode as E0, createCommentVNode as Me, Fragment as re, renderList as Re, createBlock as le, createTextVNode as _e, withDirectives as xe, toDisplayString as T0, unref as $0, vShow as Le, renderSlot as Oe } from "vue";
|
|
4
4
|
import { useSnackbar as De, components as we } from "@feedmepos/ui-library";
|
|
5
5
|
import { useRouter as ve } from "vue-router";
|
|
6
6
|
import { detectLocale as F0 } from "@feedmepos/mf-common";
|
|
7
|
-
import { c as Pe, a as Be } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { c as Pe, a as Be } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BeBr4VIF.js";
|
|
8
8
|
function de(T) {
|
|
9
9
|
throw new Error('Could not dynamically require "' + T + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
10
10
|
}
|
|
@@ -10488,7 +10488,7 @@ WHERE (
|
|
|
10488
10488
|
`, new t.timesheetRecordSchema_closure(), _.List_empty, null, null, !1, !1, !1, !1, new t.timesheetRecordSchema_closure0(), "Timesheet record", "timesheets", "timesheet", _.SCHEMA_NAME_19, i, "", u, o);
|
|
10489
10489
|
}), e(S, "unitCostHistorySchema", "$get$unitCostHistorySchema", () => {
|
|
10490
10490
|
var i = null, u = t.Source_Source$mongodb(i, "UnitCostHistory"), o = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], $.JSArray_Permission), i), s = $.JSArray_String, l = t._setArrayType([t.Index$(t._setArrayType(["id"], s), i, i), t.Index$(t._setArrayType(["doc_id"], s), i, i), t.Index$(t._setArrayType(["published_at"], s), i, i), t.Index$(t._setArrayType(["location_id", "snapshotted_at"], s), i, i), t.Index$(t._setArrayType(["sku_id", "location_id", "snapshotted_at"], s), i, i)], $.JSArray_Index);
|
|
10491
|
-
return t.Schema_Schema$build(t._setArrayType([], s), i, new t.unitCostHistorySchema_closure(), _.List_empty, l, i, !0, !
|
|
10491
|
+
return t.Schema_Schema$build(t._setArrayType([], s), i, new t.unitCostHistorySchema_closure(), _.List_empty, l, i, !0, !1, !1, !1, new t.unitCostHistorySchema_closure0(), "Unit Cost History", "unit_cost_histories", "unit_cost_history", _.SCHEMA_NAME_73, i, "mongodb_unit_cost_history", u, o);
|
|
10492
10492
|
}), e(S, "userSchema", "$get$userSchema", () => {
|
|
10493
10493
|
var i = null, u = t.Source_Source$mongodb(i, "Users"), o = t.TopLevelFilters$(t._setArrayType([], $.JSArray_Permission), i), s = $.JSArray_String, l = t._setArrayType([t.Index$(t._setArrayType(["id"], s), i, i), t.Index$(t._setArrayType(["doc_id"], s), i, i)], $.JSArray_Index);
|
|
10494
10494
|
return t.Schema_Schema$build(t._setArrayType([], s), i, new t.userSchema_closure(), _.List_empty, l, i, !0, !0, !0, !1, new t.userSchema_closure0(), "User", "users", "user", _.SCHEMA_NAME_41, i, "mongodb_users", u, o);
|
|
@@ -19283,7 +19283,7 @@ const v0 = {
|
|
|
19283
19283
|
};
|
|
19284
19284
|
});
|
|
19285
19285
|
var ye = /* @__PURE__ */ ((T) => (T.generating = "GENERATING", T.completed = "COMPLETED", T.failed = "FAILED", T.canceled = "CANCELLED", T))(ye || {});
|
|
19286
|
-
const pt = "/assets/formatChartData.worker-
|
|
19286
|
+
const pt = "/assets/formatChartData.worker-DmEF8HW6.js", Y0 = /* @__PURE__ */ new Map();
|
|
19287
19287
|
function ie(T) {
|
|
19288
19288
|
return new Worker(T, { type: "module" });
|
|
19289
19289
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as V, resolveComponent as S, createBlock as p, openBlock as y, withCtx as I, createCommentVNode as Y, createElementVNode as M, toDisplayString as j, renderSlot as A, mergeModels as $, useModel as R, ref as O, watch as k, createElementBlock as U, createVNode as b, unref as D } from "vue";
|
|
2
|
-
import { d as r, m as B, t as W, u as q, b as G, U as H, C as K } from "./vue-i18n-
|
|
2
|
+
import { d as r, m as B, t as W, u as q, b as G, U as H, C as K } from "./vue-i18n-BJW_sJot.js";
|
|
3
3
|
import { detectLocale as z } from "@feedmepos/mf-common";
|
|
4
4
|
import { storeToRefs as L } from "pinia";
|
|
5
5
|
var g = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))(g || {});
|
|
@@ -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-CghXyTqi.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-BJW_sJot.js";
|
|
6
6
|
import { useRoute as B } from "vue-router";
|
|
7
7
|
const $ = {
|
|
8
8
|
key: 1,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { computed as C, defineComponent as Ee, mergeModels as Ue, useModel as Oe, ref as p, onMounted as Ke, nextTick as ke, watch as fe, resolveComponent as q, createElementBlock as ee, openBlock as E, Fragment as Ce, renderSlot as Ye, createVNode as O, normalizeStyle as He, unref as s, createElementVNode as U, toDisplayString as ze, withCtx as ae, createBlock as ie, createCommentVNode as Ae, normalizeClass as Je, h as xt, renderList as Ct, toRaw as va, markRaw as ga, createTextVNode as Rt, onUnmounted as ya, resolveDynamicComponent as ba, withDirectives as wa, vShow as Sa, withModifiers as Tt, isRef as xa } from "vue";
|
|
2
|
-
import { W as M, e as dt, f as Ca, S as st, v as ut, g as ka, h as Ft, i as Kt, q as
|
|
3
|
-
import { u as mt, b as ct, a as It, d as at, i as La } from "./vue-i18n-
|
|
4
|
-
import { d as Yt, _ as Ra, a as Va, b as za, c as Aa } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { storeToRefs as $e, defineStore as
|
|
2
|
+
import { W as M, e as dt, f as Ca, S as st, v as ut, g as ka, h as Ft, i as Kt, q as Qt, R as tt, j as _a, D as Pe, c as he, C as Fe, a as Ta, b as Fa, _ as Da } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DQg0AdC9.js";
|
|
3
|
+
import { u as mt, b as ct, a as It, d as at, i as La } from "./vue-i18n-BJW_sJot.js";
|
|
4
|
+
import { d as Yt, _ as Ra, a as Va, b as za, c as Aa } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BeBr4VIF.js";
|
|
5
|
+
import { storeToRefs as $e, defineStore as Zt } from "pinia";
|
|
6
6
|
import { useBreakpoints as ea, useSnackbar as Wt, components as $a } from "@feedmepos/ui-library";
|
|
7
|
-
import { a as Ea } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { a as Ea } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BcQEW5MO.js";
|
|
8
8
|
import { r as Ge } from "./i18n-DQxDgiLO.js";
|
|
9
|
-
import { _ as Vt } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as Vt } from "./NoData.vue_vue_type_script_setup_true_lang-CtN7oqXx.js";
|
|
10
10
|
import "@feedmepos/mf-common";
|
|
11
11
|
var zt = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(zt || {}), je = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(je || {}), At = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(At || {}), $t = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))($t || {}), Et = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(Et || {}), Mt = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Mt || {}), Nt = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Nt || {});
|
|
12
12
|
M.Circular, M.Table, M.BarChart, M.LineChart, M.StackBarChart, M.StackLineChart, M.Scorecard, M.Spacer;
|
|
@@ -543,7 +543,7 @@ function Ga(e, l) {
|
|
|
543
543
|
const i = q("FmMenuDivider");
|
|
544
544
|
return E(), ie(i);
|
|
545
545
|
}
|
|
546
|
-
const Xa = /* @__PURE__ */ Ea(ja, [["render", Ga]]), Ja = "mf-reporttable-dimension", Gt =
|
|
546
|
+
const Xa = /* @__PURE__ */ Ea(ja, [["render", Ga]]), Ja = "mf-reporttable-dimension", Gt = Zt(Ja, () => {
|
|
547
547
|
const e = p(0), l = p([]), i = p(!1), a = (h, n) => {
|
|
548
548
|
e.value = h, x(h, n);
|
|
549
549
|
}, w = (h, n, k, F) => {
|
|
@@ -683,7 +683,7 @@ function Lt(e) {
|
|
|
683
683
|
const [a, w] = l.split("."), x = new Intl.NumberFormat("en-US").format(Number(a));
|
|
684
684
|
return w !== void 0 ? `${x}.${w}` : x;
|
|
685
685
|
}
|
|
686
|
-
const Ka = "/assets/processTableData.worker-
|
|
686
|
+
const Ka = "/assets/processTableData.worker-BsdnWDQK.js", Qa = { class: "my-4" }, Za = {
|
|
687
687
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
688
688
|
style: { backgroundColor: "#f9f9f9" }
|
|
689
689
|
}, el = { class: "font-bold" }, tl = { class: "text-fm-color-neutral-gray-300" }, al = /* @__PURE__ */ Ee({
|
|
@@ -897,7 +897,7 @@ const Ka = "/assets/processTableData.worker-DS6uNX_h.js", Za = { class: "my-4" }
|
|
|
897
897
|
), (b, $) => {
|
|
898
898
|
const j = q("FmTable");
|
|
899
899
|
return E(), ee(Ce, null, [
|
|
900
|
-
U("div",
|
|
900
|
+
U("div", Qa, [
|
|
901
901
|
Ye(b.$slots, "menu")
|
|
902
902
|
]),
|
|
903
903
|
O(j, {
|
|
@@ -913,7 +913,7 @@ const Ka = "/assets/processTableData.worker-DS6uNX_h.js", Za = { class: "my-4" }
|
|
|
913
913
|
}, {
|
|
914
914
|
"pin-top": ae(() => [
|
|
915
915
|
U("tbody", null, [
|
|
916
|
-
U("tr",
|
|
916
|
+
U("tr", Za, [
|
|
917
917
|
(E(!0), ee(Ce, null, Ct(A.value, (W, H) => (E(), ee("td", {
|
|
918
918
|
key: `${s(ut)()}_${H}`,
|
|
919
919
|
class: "h-[48px] text-fm-color-typo-primary px-16"
|
|
@@ -1303,14 +1303,14 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1303
1303
|
const l = p(!0), i = Oe(e, "modelValue"), a = i.value.widget.config, { t: w, te: x } = mt(), R = e, L = p(null), z = p(a.rollup), d = p(ut()), m = p(a.drillDimension), u = C(() => {
|
|
1304
1304
|
if (xe.value.length > 0) {
|
|
1305
1305
|
const r = xe.value.findIndex(
|
|
1306
|
-
(
|
|
1306
|
+
(Q) => Q.value === m.value
|
|
1307
1307
|
);
|
|
1308
1308
|
return r >= 0 ? r : 0;
|
|
1309
1309
|
} else
|
|
1310
1310
|
return -1;
|
|
1311
1311
|
}), c = C(() => u.value !== 0), S = C(
|
|
1312
1312
|
() => u.value != xe.value.length - 1
|
|
1313
|
-
), y = p(a.showTitle ?? !0), T = p(a.titleFontSize ?? 14), v = p(a.titleBold ?? !1), I = p(a.titleItalic ?? !1), h = p(a.titleUnderline ?? !1), n = p(a.chartWidth ?? void 0), k = p(a.chartHeight ?? void 0), F = p(a.showLabel ?? !1), A = p(a.labelAlign ?? $t.center), B = p(a.labelAnchor ?? At.center), G = p(a.labelRotation ?? 0), X = p(a.labelOffset ?? 0), le = p(a.labelFontSize ?? 12), ve = C(() => a.showSearchBar), we = p(a.showX ?? !0), De = p(a.xPosition ?? Et.bottom), Le = p(a.showXGrid ?? !1), _e = p(a.showXTick ?? !0), b = p(a.xTickFontSize ?? 12), $ = p(a.showXTitle ?? !1), j = p(a.xTitle ?? ""), W = p(a.xTitleFontSize ?? 12), H = p(a.showY ?? !0), N = p(a.yPosition ?? Mt.left), ue = p(a.showYGrid ?? !1), Te = p(a.showYTick ?? !0), ge = p(a.yTickFontSize ?? 12), Se = p(a.showYTitle ?? !1), ye = p(a.yTitle ?? ""), qe = p(a.yTitleFontSize ?? 12), Re = p(a.showLegend ?? void 0), Ve = p(a.legendPosition ?? Nt.top), t = p(a.usePointStyle ?? !0), f = p(a.legendMaxHeight), g = p(a.legendMaxWidth), _ = p(a.rowHeight ?? 0), D = p(a.colWidths ?? []),
|
|
1313
|
+
), y = p(a.showTitle ?? !0), T = p(a.titleFontSize ?? 14), v = p(a.titleBold ?? !1), I = p(a.titleItalic ?? !1), h = p(a.titleUnderline ?? !1), n = p(a.chartWidth ?? void 0), k = p(a.chartHeight ?? void 0), F = p(a.showLabel ?? !1), A = p(a.labelAlign ?? $t.center), B = p(a.labelAnchor ?? At.center), G = p(a.labelRotation ?? 0), X = p(a.labelOffset ?? 0), le = p(a.labelFontSize ?? 12), ve = C(() => a.showSearchBar), we = p(a.showX ?? !0), De = p(a.xPosition ?? Et.bottom), Le = p(a.showXGrid ?? !1), _e = p(a.showXTick ?? !0), b = p(a.xTickFontSize ?? 12), $ = p(a.showXTitle ?? !1), j = p(a.xTitle ?? ""), W = p(a.xTitleFontSize ?? 12), H = p(a.showY ?? !0), N = p(a.yPosition ?? Mt.left), ue = p(a.showYGrid ?? !1), Te = p(a.showYTick ?? !0), ge = p(a.yTickFontSize ?? 12), Se = p(a.showYTitle ?? !1), ye = p(a.yTitle ?? ""), qe = p(a.yTitleFontSize ?? 12), Re = p(a.showLegend ?? void 0), Ve = p(a.legendPosition ?? Nt.top), t = p(a.usePointStyle ?? !0), f = p(a.legendMaxHeight), g = p(a.legendMaxWidth), _ = p(a.rowHeight ?? 0), D = p(a.colWidths ?? []), Z = p(!1), te = p(""), { breakpoints: se, getBreakpointsBoundary: Y } = ea(), V = p(), o = C(
|
|
1314
1314
|
() => R.customScreenWidth === void 0 ? window.innerWidth : R.customScreenWidth
|
|
1315
1315
|
), me = C(
|
|
1316
1316
|
() => (o == null ? void 0 : o.value) > Y("xs")[1] && (o == null ? void 0 : o.value) <= Y("sm")[1]
|
|
@@ -1355,7 +1355,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1355
1355
|
timeRange: nt,
|
|
1356
1356
|
globalFilters: ht,
|
|
1357
1357
|
isGlobalFiltersLoading: rt
|
|
1358
|
-
} = $e(ct()), { businessId: ft } = $e(It()), { businessLoadedId: vt, businessDataVersion:
|
|
1358
|
+
} = $e(ct()), { businessId: ft } = $e(It()), { businessLoadedId: vt, businessDataVersion: Qe } = $e(ct());
|
|
1359
1359
|
C(() => vt.value === ft.value && Ne.value.length > 0 && !rt.value);
|
|
1360
1360
|
const gt = p(!0), oe = C(() => {
|
|
1361
1361
|
const r = JSON.parse(JSON.stringify(i.value.widget));
|
|
@@ -1434,13 +1434,13 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1434
1434
|
}), re = C(() => {
|
|
1435
1435
|
const { config: r } = i.value.widget;
|
|
1436
1436
|
if (r.rollup != null) {
|
|
1437
|
-
const
|
|
1438
|
-
return
|
|
1437
|
+
const Q = [...r.dimensions].filter((Ie) => !Ie.hide);
|
|
1438
|
+
return Q.sort(
|
|
1439
1439
|
(Ie, it) => (r.rowIds || []).indexOf(Dt(Ie)) - (r.rowIds || []).indexOf(Dt(it))
|
|
1440
1440
|
), [
|
|
1441
1441
|
{ label: Ge(w, x, "None", "other"), value: "none" },
|
|
1442
1442
|
{ label: Ge(w, x, "Grand Total", "other"), value: 0 },
|
|
1443
|
-
...[...
|
|
1443
|
+
...[...Q].slice(0, Q.length - 1).map((Ie, it) => ({
|
|
1444
1444
|
label: Ge(w, x, Ie.label, "other"),
|
|
1445
1445
|
value: it + 1
|
|
1446
1446
|
}))
|
|
@@ -1449,14 +1449,14 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1449
1449
|
return [];
|
|
1450
1450
|
}), xe = C(() => {
|
|
1451
1451
|
const { config: r } = oe.value;
|
|
1452
|
-
return r.isDrillable ? r.dimensions.map((
|
|
1453
|
-
label: Ge(w, x,
|
|
1454
|
-
value: Dt(
|
|
1452
|
+
return r.isDrillable ? r.dimensions.map((Q) => ({
|
|
1453
|
+
label: Ge(w, x, Q.label, "other"),
|
|
1454
|
+
value: Dt(Q)
|
|
1455
1455
|
})) : [];
|
|
1456
1456
|
}), wt = C(() => {
|
|
1457
1457
|
const r = i.value.id;
|
|
1458
1458
|
return (ht.value || []).filter(
|
|
1459
|
-
(
|
|
1459
|
+
(Q) => Array.isArray(Q.tileIds) && Q.tileIds.includes(r)
|
|
1460
1460
|
);
|
|
1461
1461
|
});
|
|
1462
1462
|
fe(
|
|
@@ -1475,7 +1475,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1475
1475
|
() => kt.value,
|
|
1476
1476
|
() => Ne.value,
|
|
1477
1477
|
() => wt.value,
|
|
1478
|
-
() =>
|
|
1478
|
+
() => Qe.value
|
|
1479
1479
|
],
|
|
1480
1480
|
() => {
|
|
1481
1481
|
Pt();
|
|
@@ -1493,7 +1493,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1493
1493
|
se.value.sm || se.value.md || se.value.xs ? (console.log("Ignoring resize event due to keyboard"), removeEventListener("change", J)) : removeEventListener("resize", J);
|
|
1494
1494
|
});
|
|
1495
1495
|
const St = Wt();
|
|
1496
|
-
let
|
|
1496
|
+
let Ze;
|
|
1497
1497
|
async function Pt() {
|
|
1498
1498
|
if (oe.value.config.schemaNames.length <= 0 && !(oe.value.config.dimensions.length <= 0 || oe.value.config.metrics.length <= 0)) {
|
|
1499
1499
|
St.open({
|
|
@@ -1503,9 +1503,9 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1503
1503
|
return;
|
|
1504
1504
|
}
|
|
1505
1505
|
try {
|
|
1506
|
-
l.value = !0,
|
|
1507
|
-
const r =
|
|
1508
|
-
|
|
1506
|
+
l.value = !0, Ze && Ze.abort(), Ze = new AbortController();
|
|
1507
|
+
const r = Ze.signal, Q = Qe.value, Ie = await Yt(Qt, 500)(oe.value, r, i.value.id);
|
|
1508
|
+
Qe.value === Q && (de.value = Ie, d.value = ut()), l.value = !1;
|
|
1509
1509
|
} catch (r) {
|
|
1510
1510
|
r.code !== "ERR_CANCELED" && (de.value = null, St.open({ message: `Invalid chart ${oe.value.type}`, type: "error" }), console.log(r), l.value = !1);
|
|
1511
1511
|
}
|
|
@@ -1540,10 +1540,10 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1540
1540
|
timeRange: nt.value,
|
|
1541
1541
|
dateRange: K.value,
|
|
1542
1542
|
locationIds: Ne.value
|
|
1543
|
-
}) : r === tt.PDF && (Bt.value = r, Ht.value = R.index,
|
|
1543
|
+
}) : r === tt.PDF && (Bt.value = r, Ht.value = R.index, Z.value = !0);
|
|
1544
1544
|
}
|
|
1545
1545
|
})), ra = oe.value.type === M.Spacer ? "flat" : "outlined", ia = oe.value.type === M.Spacer ? "p-0" : "p-16";
|
|
1546
|
-
return (r,
|
|
1546
|
+
return (r, Q) => {
|
|
1547
1547
|
const Ie = q("FmTooltip"), it = q("FmSearch"), ua = q("FmCheckbox"), _t = q("FmButton"), ca = q("FmSelect"), da = q("FmMenuItem"), ma = q("FmMenu"), pa = q("FmForm"), ha = q("FmCircularProgress"), fa = q("FmCard");
|
|
1548
1548
|
return E(), ie(fa, {
|
|
1549
1549
|
ref_key: "tileCard",
|
|
@@ -1553,8 +1553,8 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1553
1553
|
}, {
|
|
1554
1554
|
default: ae(() => [
|
|
1555
1555
|
O(dl, {
|
|
1556
|
-
modelValue:
|
|
1557
|
-
"onUpdate:modelValue":
|
|
1556
|
+
modelValue: Z.value,
|
|
1557
|
+
"onUpdate:modelValue": Q[0] || (Q[0] = (et) => Z.value = et),
|
|
1558
1558
|
"report-type": Bt.value,
|
|
1559
1559
|
index: Ht.value
|
|
1560
1560
|
}, null, 8, ["modelValue", "report-type", "index"]),
|
|
@@ -1565,7 +1565,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1565
1565
|
(E(), ie(ba(Me.value), {
|
|
1566
1566
|
key: d.value,
|
|
1567
1567
|
modelValue: P.value,
|
|
1568
|
-
"onUpdate:modelValue":
|
|
1568
|
+
"onUpdate:modelValue": Q[4] || (Q[4] = (et) => P.value = et),
|
|
1569
1569
|
"tile-index": R.index
|
|
1570
1570
|
}, {
|
|
1571
1571
|
menu: ae(() => [
|
|
@@ -1600,12 +1600,12 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1600
1600
|
(et = ne.value) != null && et.showSearchBar ? (E(), ie(it, {
|
|
1601
1601
|
key: 0,
|
|
1602
1602
|
modelValue: te.value,
|
|
1603
|
-
"onUpdate:modelValue":
|
|
1603
|
+
"onUpdate:modelValue": Q[1] || (Q[1] = (We) => te.value = We),
|
|
1604
1604
|
class: "grow"
|
|
1605
1605
|
}, null, 8, ["modelValue"])) : (E(), ee("div", ml)),
|
|
1606
1606
|
wa(O(ua, {
|
|
1607
1607
|
modelValue: F.value,
|
|
1608
|
-
"onUpdate:modelValue":
|
|
1608
|
+
"onUpdate:modelValue": Q[2] || (Q[2] = (We) => F.value = We),
|
|
1609
1609
|
label: "Label",
|
|
1610
1610
|
value: !1
|
|
1611
1611
|
}, null, 8, ["modelValue"]), [
|
|
@@ -1628,7 +1628,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1628
1628
|
(Ut = ne.value) != null && Ut.showRollup && re.value.length > 0 ? (E(), ie(ca, {
|
|
1629
1629
|
key: 3,
|
|
1630
1630
|
modelValue: z.value,
|
|
1631
|
-
"onUpdate:modelValue":
|
|
1631
|
+
"onUpdate:modelValue": Q[3] || (Q[3] = (We) => z.value = We),
|
|
1632
1632
|
class: "w-[150px]",
|
|
1633
1633
|
items: re.value
|
|
1634
1634
|
}, null, 8, ["modelValue", "items"])) : Ae("", !0),
|
|
@@ -1852,7 +1852,7 @@ const fl = "mf-reportglobalFilter";
|
|
|
1852
1852
|
function lt(e) {
|
|
1853
1853
|
return `${e.schemaName}:${e.name}:${e.operator}`;
|
|
1854
1854
|
}
|
|
1855
|
-
const Jt =
|
|
1855
|
+
const Jt = Zt(fl, () => {
|
|
1856
1856
|
const e = p({}), l = p(!1), i = () => ({
|
|
1857
1857
|
search: "",
|
|
1858
1858
|
selectedValues: [],
|
|
@@ -1933,8 +1933,8 @@ const Jt = Qt(fl, () => {
|
|
|
1933
1933
|
let X = [];
|
|
1934
1934
|
function le(t) {
|
|
1935
1935
|
const f = (t.filters || []).map((D) => {
|
|
1936
|
-
const
|
|
1937
|
-
return [D.schemaName, D.name, D.operator, D.option, D.dataFormula,
|
|
1936
|
+
const Z = Array.isArray(D.values) ? D.values.join(",") : "";
|
|
1937
|
+
return [D.schemaName, D.name, D.operator, D.option, D.dataFormula, Z].map((te) => te == null ? "" : String(te)).join(":");
|
|
1938
1938
|
}).join("|"), g = Array.isArray(t.tileIds) ? t.tileIds.join(",") : "";
|
|
1939
1939
|
return `${[
|
|
1940
1940
|
t.schemaName,
|
|
@@ -1988,7 +1988,7 @@ const Jt = Qt(fl, () => {
|
|
|
1988
1988
|
}
|
|
1989
1989
|
function De(t) {
|
|
1990
1990
|
var te, se;
|
|
1991
|
-
const f = [], g = x.value ? [x.value] : ((te = w.value) == null ? void 0 : te.tiles) ?? ((se = a.value) == null ? void 0 : se.tiles) ?? [], { name: _ = "", schemaName: D = "" } = t,
|
|
1991
|
+
const f = [], g = x.value ? [x.value] : ((te = w.value) == null ? void 0 : te.tiles) ?? ((se = a.value) == null ? void 0 : se.tiles) ?? [], { name: _ = "", schemaName: D = "" } = t, Z = g.filter((Y) => {
|
|
1992
1992
|
var be;
|
|
1993
1993
|
if (t.tileIds && t.tileIds.length > 0 && !t.tileIds.includes(Y.id))
|
|
1994
1994
|
return !1;
|
|
@@ -2001,8 +2001,8 @@ const Jt = Qt(fl, () => {
|
|
|
2001
2001
|
), pe = (V.schemaNames ?? []).some((ce) => ce === D);
|
|
2002
2002
|
return o || me || pe;
|
|
2003
2003
|
});
|
|
2004
|
-
return
|
|
2005
|
-
var nt, ht, rt, ft, vt,
|
|
2004
|
+
return Z.length === 0 ? [] : (Z.forEach((Y) => {
|
|
2005
|
+
var nt, ht, rt, ft, vt, Qe, gt, oe, yt, bt;
|
|
2006
2006
|
const V = (nt = Y == null ? void 0 : Y.widget) == null ? void 0 : nt.config;
|
|
2007
2007
|
if (!V) return;
|
|
2008
2008
|
const o = {
|
|
@@ -2024,11 +2024,11 @@ const Jt = Qt(fl, () => {
|
|
|
2024
2024
|
dimensionOption: null
|
|
2025
2025
|
}, pe = ((V == null ? void 0 : V.dimensions) ?? []).some((P) => P.schemaName === D) || ((V == null ? void 0 : V.schemaNames) ?? []).some((P) => P === D), be = ((V == null ? void 0 : V.joinDatasources) ?? []).find(
|
|
2026
2026
|
(P) => (P.schemaNames ?? []).some((re) => re === D) || (P.dimensions ?? []).some((re) => re.schemaName === D)
|
|
2027
|
-
), ce = pe ? [o] : [], ne = ((gt = (
|
|
2027
|
+
), ce = pe ? [o] : [], ne = ((gt = (Qe = Y == null ? void 0 : Y.widget) == null ? void 0 : Qe.config) == null ? void 0 : gt.filters) ?? [], J = /* @__PURE__ */ new Map(), Me = (P, re) => {
|
|
2028
2028
|
const xe = `${re.schemaName}:${re.name}:${re.operator}`;
|
|
2029
2029
|
if (P.has(xe)) {
|
|
2030
|
-
const wt = P.get(xe), St = re.operator === Fe.Like,
|
|
2031
|
-
St ||
|
|
2030
|
+
const wt = P.get(xe), St = re.operator === Fe.Like, Ze = re.operator === Fe.NotLike;
|
|
2031
|
+
St || Ze ? wt.values = Array.from(/* @__PURE__ */ new Set([...wt.values ?? [], ...re.values ?? []])) : P.set(xe, { ...re });
|
|
2032
2032
|
} else
|
|
2033
2033
|
P.set(xe, { ...re });
|
|
2034
2034
|
};
|
|
@@ -2109,17 +2109,17 @@ const Jt = Qt(fl, () => {
|
|
|
2109
2109
|
}
|
|
2110
2110
|
const _ = [], D = ve.signal;
|
|
2111
2111
|
for (const V of g) {
|
|
2112
|
-
const o = await
|
|
2112
|
+
const o = await Qt(V, D);
|
|
2113
2113
|
(o == null ? void 0 : o.type) === M.Table && _.push(...o.rows.map((me) => {
|
|
2114
2114
|
var pe;
|
|
2115
2115
|
return ((pe = me.cells) == null ? void 0 : pe[0]) ?? " ";
|
|
2116
2116
|
}));
|
|
2117
2117
|
}
|
|
2118
|
-
const
|
|
2118
|
+
const Z = Array.from(new Set(_)), te = (f = I(t.filter).selectedValues) != null && f.length ? I(t.filter).selectedValues : t.selectedValues || [], se = t.keepSelection ? Array.from(/* @__PURE__ */ new Set([...Z, ...te])) : Z, Y = new Set(_);
|
|
2119
2119
|
t.options = se.map((V) => ({
|
|
2120
2120
|
label: String(V),
|
|
2121
2121
|
value: V,
|
|
2122
|
-
available: t.keepSelection ? Y.has(V) : new Set(
|
|
2122
|
+
available: t.keepSelection ? Y.has(V) : new Set(Z).has(V)
|
|
2123
2123
|
})), G(t);
|
|
2124
2124
|
} catch (g) {
|
|
2125
2125
|
if ((g == null ? void 0 : g.code) === "ERR_CANCELED" || (g == null ? void 0 : g.name) === "CanceledError")
|
|
@@ -2162,7 +2162,7 @@ const Jt = Qt(fl, () => {
|
|
|
2162
2162
|
function H(t, f) {
|
|
2163
2163
|
var _;
|
|
2164
2164
|
if ((_ = t.selectedValues) == null ? void 0 : _.includes(f)) {
|
|
2165
|
-
let D = (t.selectedValues || []).filter((
|
|
2165
|
+
let D = (t.selectedValues || []).filter((Z) => Z !== f && Z !== "(EMPTY)");
|
|
2166
2166
|
t.selectedValues = D.length > 0 ? D : ["(EMPTY)"];
|
|
2167
2167
|
} else
|
|
2168
2168
|
t.selectedValues = [...(t.selectedValues || []).filter((D) => D !== "(EMPTY)"), f];
|
|
@@ -2187,10 +2187,10 @@ const Jt = Qt(fl, () => {
|
|
|
2187
2187
|
return `${g} (${_})`;
|
|
2188
2188
|
}
|
|
2189
2189
|
function ge(t) {
|
|
2190
|
-
var
|
|
2190
|
+
var Z, te, se, Y, V;
|
|
2191
2191
|
const f = La(t.filter);
|
|
2192
2192
|
if (t.type === Pe.Timestamp) {
|
|
2193
|
-
const o = ((
|
|
2193
|
+
const o = ((Z = t.filter.values) == null ? void 0 : Z.length) === 2;
|
|
2194
2194
|
if (t.filter.option === he.DateTime)
|
|
2195
2195
|
return { preview: o ? `${f} is between ${za({
|
|
2196
2196
|
startDate: ((te = t.filter.values) == null ? void 0 : te[0]) || null,
|
|
@@ -2236,18 +2236,18 @@ const Jt = Qt(fl, () => {
|
|
|
2236
2236
|
return t ? t.length > f ? `${t.slice(0, f)}…` : t : "";
|
|
2237
2237
|
}
|
|
2238
2238
|
function Ve(t, f) {
|
|
2239
|
-
var _, D,
|
|
2239
|
+
var _, D, Z, te;
|
|
2240
2240
|
if (f === null)
|
|
2241
2241
|
t.values = [];
|
|
2242
2242
|
else {
|
|
2243
|
-
const se = at().set("hour", Number((_ = f.start) == null ? void 0 : _.hour)).set("minute", Number((D = f.start) == null ? void 0 : D.minute)).toISOString(), Y = at().set("hour", Number((
|
|
2243
|
+
const se = at().set("hour", Number((_ = f.start) == null ? void 0 : _.hour)).set("minute", Number((D = f.start) == null ? void 0 : D.minute)).toISOString(), Y = at().set("hour", Number((Z = f.end) == null ? void 0 : Z.hour)).set("minute", Number((te = f.end) == null ? void 0 : te.minute)).toISOString();
|
|
2244
2244
|
t.values = [se, Y];
|
|
2245
2245
|
}
|
|
2246
2246
|
const g = B.value.find((se) => se.filter === t);
|
|
2247
2247
|
g && (g.keepSelection = f !== null, y(g.filter, g.keepSelection));
|
|
2248
2248
|
}
|
|
2249
2249
|
return (t, f) => {
|
|
2250
|
-
const g = q("FmCircularProgress"), _ = q("FmTextField"), D = q("FmMenuItem"),
|
|
2250
|
+
const g = q("FmCircularProgress"), _ = q("FmTextField"), D = q("FmMenuItem"), Z = q("FmTooltip"), te = q("FmIcon"), se = q("FmMenuDivider"), Y = q("FmButton"), V = q("FmMenu");
|
|
2251
2251
|
return E(), ee("div", vl, [
|
|
2252
2252
|
(E(!0), ee(Ce, null, Ct(B.value, (o, me) => {
|
|
2253
2253
|
var pe, be, ce, ne, J, Me;
|
|
@@ -2323,7 +2323,7 @@ const Jt = Qt(fl, () => {
|
|
|
2323
2323
|
(E(!0), ee(Ce, null, Ct(b.value[me], (K) => (E(), ee(Ce, {
|
|
2324
2324
|
key: K.value
|
|
2325
2325
|
}, [
|
|
2326
|
-
K.label && K.label.length > 110 ? (E(), ie(
|
|
2326
|
+
K.label && K.label.length > 110 ? (E(), ie(Z, {
|
|
2327
2327
|
key: 0,
|
|
2328
2328
|
placement: "right",
|
|
2329
2329
|
"hide-arrow": !0,
|
|
@@ -2397,7 +2397,7 @@ const Jt = Qt(fl, () => {
|
|
|
2397
2397
|
}, null, 8, ["name", "class"]),
|
|
2398
2398
|
U("span", Ll, ze(s(l)("report.section.filter.keepSelection")), 1)
|
|
2399
2399
|
], 8, Dl),
|
|
2400
|
-
O(
|
|
2400
|
+
O(Z, {
|
|
2401
2401
|
placement: "top",
|
|
2402
2402
|
"z-index": 2e3
|
|
2403
2403
|
}, {
|
|
@@ -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-BJl8wpy8.js";
|
|
6
|
+
import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BeBr4VIF.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-BJW_sJot.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-CtN7oqXx.js";
|
|
11
|
+
import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CghXyTqi.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, x as lt, A as nt, e as Ae, f as Re, b as we, B as ve, E as st, o as rt, z as Pe, G as Me, H as je, J as Le, K as ze, L as it, M as dt, N as mt, O as qe, c as Ze, P as pt, Q as ut, R as ct, S as ft, T as gt } from "./vue-i18n-
|
|
3
|
+
import { u as oe, I as he, d as Ve, x as lt, A as nt, e as Ae, f as Re, b as we, B as ve, E as st, o as rt, z as Pe, G as Me, H as je, J as Le, K as ze, L as it, M as dt, N as mt, O as qe, c as Ze, P as pt, Q as ut, R as ct, S as ft, T as gt } from "./vue-i18n-BJW_sJot.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-BeBr4VIF.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"
|