@mx-cartographer/experiences 4.0.6-alpha.mm.3 → 4.0.6-alpha.mm.4
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 +8 -4
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -16609,7 +16609,7 @@ const Pt = C.createContext(null), j1 = ({
|
|
|
16609
16609
|
}, y7 = T(xC), PC = (A) => Me[A] ?? Me.default, NC = (A) => nn[A], MC = (A) => {
|
|
16610
16610
|
let e = null, n = null;
|
|
16611
16611
|
const r = A.reduce((a, i) => {
|
|
16612
|
-
const o = bA(new Date(i.year, i.month
|
|
16612
|
+
const o = bA(new Date(i.year, i.month));
|
|
16613
16613
|
(!e || o < e.date) && (e = { date: o, year: i.year, month: i.month }), (!n || o > n.date) && (n = { date: o, year: i.year, month: i.month });
|
|
16614
16614
|
const s = {
|
|
16615
16615
|
top_level_category_guid: i.top_level_category_guid,
|
|
@@ -16648,7 +16648,7 @@ const Pt = C.createContext(null), j1 = ({
|
|
|
16648
16648
|
const d = u[0].top_level_category_guid, h = a.map((g) => {
|
|
16649
16649
|
const f = u.filter((p) => p.year_month === g).reduce((p, v) => p + Math.abs(v.amount), 0), m = new Date(
|
|
16650
16650
|
Number(String(g).slice(0, 4)),
|
|
16651
|
-
Number(String(g).slice(4))
|
|
16651
|
+
Number(String(g).slice(4))
|
|
16652
16652
|
);
|
|
16653
16653
|
return (!i || m < i.date) && (i = { yearMonth: g, date: m }), (!o || m > o.date) && (o = { yearMonth: g, date: m }), { x: m, y: f };
|
|
16654
16654
|
}).sort((g, f) => g.x.getTime() - f.x.getTime());
|
|
@@ -16660,7 +16660,11 @@ const Pt = C.createContext(null), j1 = ({
|
|
|
16660
16660
|
dataset: h
|
|
16661
16661
|
};
|
|
16662
16662
|
});
|
|
16663
|
-
return
|
|
16663
|
+
return console.log("getStackedLineChartData:", {
|
|
16664
|
+
allMonths: n,
|
|
16665
|
+
uniqueMonths: r,
|
|
16666
|
+
sortedUniqueMonths: a
|
|
16667
|
+
}), i && console.log(
|
|
16664
16668
|
`
|
|
16665
16669
|
%c Earliest YearMonth (getStackedLineChartData)
|
|
16666
16670
|
%c yearMonth: ${i.yearMonth},
|
|
@@ -16821,7 +16825,7 @@ const Pt = C.createContext(null), j1 = ({
|
|
|
16821
16825
|
view_transactions: "View Transactions"
|
|
16822
16826
|
}, XC = ({ onBackClick: A, sx: e }) => {
|
|
16823
16827
|
const n = re(), { onEvent: r } = V(), { isDesktop: a, isTablet: i, isMobile: o } = NA(), { accounts: s } = SA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: u, getCategoryName: d } = TA(), { sortedTransactions: h } = hA(), { isInitialized: g, selectedAccounts: f, setSelectedAccounts: m } = fA(), { trends: p } = I(), v = n.palette.mode === "dark", [S, L] = C.useState(!1), [w, D] = C.useState(!1), [x, N] = C.useState("Chart"), [O, z] = C.useState(""), [q, j] = C.useState({
|
|
16824
|
-
start: En(OA(ce(/* @__PURE__ */ new Date(),
|
|
16828
|
+
start: En(OA(ce(/* @__PURE__ */ new Date(), 5)), 1),
|
|
16825
16829
|
end: OA(/* @__PURE__ */ new Date())
|
|
16826
16830
|
}), [X, Q] = C.useState(6);
|
|
16827
16831
|
console.log(
|