@mx-cartographer/experiences 6.26.27-alpha.al2 → 6.26.27-alpha.al3
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/index.es.js +12 -10
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -6594,20 +6594,24 @@ const cg = ({
|
|
|
6594
6594
|
const i = Xl.find((a) => a.guid === e);
|
|
6595
6595
|
return i ? n.palette.categories[i.colorName] || "" : n.palette.categories.uncategorized || "";
|
|
6596
6596
|
}, Mc = (e, n, i, a = []) => {
|
|
6597
|
-
console.log("
|
|
6597
|
+
console.log("category ", e.name);
|
|
6598
6598
|
const o = e.guid, r = e.parent_guid || o, s = o === r, c = n.find((m) => m.category_guid === o)?.total || 0, l = Vr(
|
|
6599
6599
|
i.filter((m) => m.category_guid === o)
|
|
6600
|
-
)
|
|
6600
|
+
);
|
|
6601
|
+
console.log("currentAmount ", c), console.log("monthlyAmounts ", l);
|
|
6602
|
+
const u = Vr(
|
|
6601
6603
|
i.filter(
|
|
6602
6604
|
(m) => m.category_guid === o || m.top_level_category_guid === o
|
|
6603
6605
|
)
|
|
6604
|
-
)
|
|
6606
|
+
);
|
|
6607
|
+
console.log("totalMonthlyAmounts ", u);
|
|
6608
|
+
const _ = a.map(
|
|
6605
6609
|
(m) => Mc(m, n, i)
|
|
6606
6610
|
), h = _.reduce(
|
|
6607
6611
|
(m, p) => m + p.currentAmount,
|
|
6608
6612
|
c
|
|
6609
6613
|
);
|
|
6610
|
-
return {
|
|
6614
|
+
return console.log("totalAmount ", h), {
|
|
6611
6615
|
...e,
|
|
6612
6616
|
currentAmount: c,
|
|
6613
6617
|
averageAmount: Ur(l),
|
|
@@ -6694,7 +6698,7 @@ class Dg {
|
|
|
6694
6698
|
);
|
|
6695
6699
|
}
|
|
6696
6700
|
get detailedCategoriesWithTransactions() {
|
|
6697
|
-
return
|
|
6701
|
+
return vg(
|
|
6698
6702
|
this.detailedCategories,
|
|
6699
6703
|
this.globalStore.transactionStore.sortedTransactions
|
|
6700
6704
|
);
|
|
@@ -24681,7 +24685,7 @@ const Ui = g.createContext(null), w0 = ({
|
|
|
24681
24685
|
const {
|
|
24682
24686
|
categoryDetailsChartData: { monthlyAmounts: i, tooltipLabels: a }
|
|
24683
24687
|
} = Si();
|
|
24684
|
-
return
|
|
24688
|
+
return /* @__PURE__ */ t(b, { sx: { pt: 12, width: "100%" }, children: /* @__PURE__ */ t(
|
|
24685
24689
|
ni,
|
|
24686
24690
|
{
|
|
24687
24691
|
baseline: "min",
|
|
@@ -24738,15 +24742,13 @@ const Ui = g.createContext(null), w0 = ({
|
|
|
24738
24742
|
}
|
|
24739
24743
|
);
|
|
24740
24744
|
}), ib = (e, n) => {
|
|
24741
|
-
const i = jo(e, n);
|
|
24742
|
-
console.log("monthlyCatTotals in trends chart ", e);
|
|
24743
|
-
const a = Xo(e, n);
|
|
24745
|
+
const i = jo(e, n), a = Xo(e, n);
|
|
24744
24746
|
return [i, a].filter((o) => o.length > 0);
|
|
24745
24747
|
}, ab = (e, n) => {
|
|
24746
24748
|
const [i, a] = e, o = i, r = a ?? i, s = [];
|
|
24747
24749
|
if (o) {
|
|
24748
24750
|
const c = o.reduce((l, u) => l + u.y, 0);
|
|
24749
|
-
|
|
24751
|
+
s.push({ label: n.income_label, amount: c });
|
|
24750
24752
|
}
|
|
24751
24753
|
if (r) {
|
|
24752
24754
|
const c = r.reduce((l, u) => l + u.y, 0);
|