@feedmepos/mf-report 5.19.23 → 5.19.24
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-Btq3zQD1.js} +3 -3
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-g-uxOKsk.js → BaseDialog.vue_vue_type_script_setup_true_lang-DsJ6dnJR.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CKFgPJYQ.js → Default.vue_vue_type_script_setup_true_lang-D6aGDUeN.js} +1 -1
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-DT7ynfQa.js → FilterSelector.vue_vue_type_script_setup_true_lang-0kJlz2dC.js} +49 -49
- package/dist/{InsightView-C454vlgZ.js → InsightView-DVA_F05n.js} +2 -2
- package/dist/{Layout-D5Wd65PM.js → Layout-BbLqCWXS.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-iMEcZvkT.js → MenuTab.vue_vue_type_script_setup_true_lang-Dv2IyHpL.js} +3 -3
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CmW84nrF.js → NavigationTab.vue_vue_type_script_setup_true_lang-_UhFIXlm.js} +1 -1
- package/dist/{OverviewView-kx3B0qyh.js → OverviewView-LFNHS3LM.js} +4 -4
- package/dist/{Report-Cl6jUoYF.js → Report-UsRU052H.js} +162 -151
- package/dist/{ReportEditor-BfvanNqi.js → ReportEditor-BpvROtTK.js} +3 -3
- package/dist/{ReportView-DxtpBbDv.js → ReportView-DRARHqBY.js} +5 -5
- package/dist/{Setting-CuBDsvAT.js → Setting-DmNhG_XR.js} +2 -2
- package/dist/{TileEditor-CAUbpe9B.js → TileEditor-BDdAJ-Tw.js} +3 -3
- package/dist/{TransitionFade-DeahqXLb.js → TransitionFade-CN89fQQ_.js} +2 -2
- package/dist/app.js +9 -9
- 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/package.json +1 -1
|
@@ -2,8 +2,8 @@ import { defineComponent as ee, resolveComponent as U, createBlock as te, openBl
|
|
|
2
2
|
import { detectLocale as E, useCoreStore as T } from "@feedmepos/mf-common";
|
|
3
3
|
import { u as Le, d as i, a as _e, b as X, c as we, e as be, f as Ce, s as ke, g as Ee } from "./vue-i18n-BQN8HgvD.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-DsJ6dnJR.js";
|
|
6
|
+
import { _ as Fe, u as $e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-_UhFIXlm.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({
|
|
@@ -99,7 +99,7 @@ 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", !0), window.addEventListener("message", Q), window.addEventListener("message", j);
|
|
103
103
|
});
|
|
104
104
|
const I = Ne(), V = $e(), n = X();
|
|
105
105
|
qe(() => {
|
|
@@ -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 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-_UhFIXlm.js";
|
|
3
3
|
import { useBreakpoints as b } from "@feedmepos/ui-library";
|
|
4
4
|
import { storeToRefs as C } from "pinia";
|
|
5
5
|
import { u as q, f as w } from "./vue-i18n-BQN8HgvD.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
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
|
|
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-DsJ6dnJR.js";
|
|
3
3
|
import { u as mt, b as ct, a as It, d as at, i as La } from "./vue-i18n-BQN8HgvD.js";
|
|
4
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-cfshXMB2.js";
|
|
5
|
-
import { storeToRefs as $e, defineStore as
|
|
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
7
|
import { a as Ea } from "./SelectComponent.vue_vue_type_script_setup_true_lang-B2oCOTUH.js";
|
|
8
8
|
import { r as Ge } from "./i18n-DQxDgiLO.js";
|
|
@@ -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-
|
|
5
|
+
import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-D6aGDUeN.js";
|
|
6
6
|
import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-cfshXMB2.js";
|
|
7
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-BQN8HgvD.js";
|
|
8
8
|
import { storeToRefs as Jn } from "pinia";
|
|
9
9
|
import { components as is, useSnackbar as aa } from "@feedmepos/ui-library";
|
|
10
10
|
import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-BUoYdn5S.js";
|
|
11
|
-
import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-_UhFIXlm.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,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, resolveComponent as t, createBlock as r, openBlock as n, withCtx as _, createVNode as c } from "vue";
|
|
2
|
-
import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-D6aGDUeN.js";
|
|
3
3
|
const f = /* @__PURE__ */ o({
|
|
4
4
|
__name: "Layout",
|
|
5
5
|
setup(m) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as b, computed as V, createElementBlock as x, openBlock as a, createElementVNode as y, createVNode as u, unref as e, isRef as p, withCtx as _, createBlock as g, createCommentVNode as k, useModel as $, resolveComponent as f, normalizeClass as R, Fragment as w, renderList as M, toDisplayString as T } from "vue";
|
|
2
2
|
import { b as B } from "./vue-i18n-BQN8HgvD.js";
|
|
3
3
|
import { storeToRefs as D } from "pinia";
|
|
4
|
-
import { a as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { a as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-_UhFIXlm.js";
|
|
5
5
|
import { _ as U } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-cfshXMB2.js";
|
|
6
|
-
import { _ as N } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { a as S } from "./FilterSelector.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as N } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DsJ6dnJR.js";
|
|
7
|
+
import { a as S } from "./FilterSelector.vue_vue_type_script_setup_true_lang-0kJlz2dC.js";
|
|
8
8
|
import { useRoute as z } from "vue-router";
|
|
9
9
|
import { useBreakpoints as E } from "@feedmepos/ui-library";
|
|
10
10
|
const L = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrollbar-hide" }, O = { class: "flex flex-col gap-2 py-2" }, q = /* @__PURE__ */ b({
|
|
@@ -4,7 +4,7 @@ var ml = (e, r, t) => F5(e, typeof r != "symbol" ? r + "" : r, t);
|
|
|
4
4
|
import { defineComponent as $t, computed as nt, useModel as pn, ref as Ve, watch as ra, resolveComponent as me, createBlock as Ze, unref as q, openBlock as ne, withCtx as qe, createElementVNode as _, createVNode as J, toDisplayString as Ge, withDirectives as Un, createElementBlock as Fe, Fragment as vt, renderList as Bt, vShow as Ui, createTextVNode as jr, mergeModels as Kn, createCommentVNode as dt, normalizeClass as Jn, onMounted as i0, withKeys as qh, withModifiers as Yn, isRef as qn, vModelText as Wh, normalizeStyle as s0, renderSlot as jh, mergeProps as N5, nextTick as L5, resolveDynamicComponent as Td, createSlots as M5 } from "vue";
|
|
5
5
|
import { useRouter as Uh, useRoute as Yh } from "vue-router";
|
|
6
6
|
import { storeToRefs as xr, defineStore as l0 } from "pinia";
|
|
7
|
-
import { a as Zs, k as Cd, l as R5, h as Ll, R as ln, j as o0, m as f0, _ as c0, d as B5, v as X5, i as z5, r as H5, n as wn, o as q5, u as W5 } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { a as Zs, k as Cd, l as R5, h as Ll, R as ln, j as o0, m as f0, _ as c0, d as B5, v as X5, i as z5, r as H5, n as wn, o as q5, u as W5 } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DsJ6dnJR.js";
|
|
8
8
|
import { useBreakpoints as oo, components as yi, useSnackbar as ss, useDialog as j5, useDialogChild as U5, FmButtonVariant as Ed } from "@feedmepos/ui-library";
|
|
9
9
|
import { u as Ka, k as u0, l as fo, a as Ja, F as _a, r as co, d as ct, m as ls, t as Y5, b as Pi, q as uo, n as Z5, o as G5, e as Q5, v as gl, w as Zh, x as K5, p as J5 } from "./vue-i18n-BQN8HgvD.js";
|
|
10
10
|
import { _ as Pd, a as _5 } from "./SelectComponent.vue_vue_type_script_setup_true_lang-B2oCOTUH.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as g, computed as w, resolveComponent as k, createBlock as a, openBlock as t, withCtx as $, createVNode as d, createElementVNode as y, unref as e, normalizeStyle as C, normalizeClass as u, createElementBlock as _, Fragment as h, renderList as B } from "vue";
|
|
2
|
-
import { _ as b } from "./FilterSelector.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as F } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { a as P } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as b } from "./FilterSelector.vue_vue_type_script_setup_true_lang-0kJlz2dC.js";
|
|
3
|
+
import { _ as F } from "./Default.vue_vue_type_script_setup_true_lang-D6aGDUeN.js";
|
|
4
|
+
import { a as P } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DsJ6dnJR.js";
|
|
5
5
|
import { storeToRefs as R } from "pinia";
|
|
6
6
|
import { _ as S } from "./NoData.vue_vue_type_script_setup_true_lang-BUoYdn5S.js";
|
|
7
7
|
import { useBreakpoints as V } from "@feedmepos/ui-library";
|
|
8
|
-
import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-Dv2IyHpL.js";
|
|
9
9
|
import { useI18n as D } from "@feedmepos/mf-common";
|
|
10
10
|
const G = /* @__PURE__ */ g({
|
|
11
11
|
__name: "OverviewView",
|