@mx-cartographer/experiences 9.0.2 → 9.0.3
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [9.0.3] - 05-19-2026
|
|
2
|
+
|
|
3
|
+
- **FIXED** - BUG Fixed | Trends widget chart displaying incorrect spending data inconsistent with budget widget and table
|
|
4
|
+
|
|
1
5
|
## [9.0.2] - 05-18-2026
|
|
2
6
|
|
|
3
7
|
- **UPDATED** - Widget size changed event to return content size instead of container size
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { addMonths as u } from "date-fns/addMonths";
|
|
2
|
+
import { isBefore as d } from "date-fns/isBefore";
|
|
3
|
+
import { startOfMonth as _ } from "date-fns/startOfMonth";
|
|
4
|
+
import { subMonths as y } from "date-fns/subMonths";
|
|
5
|
+
import { endOfMonth as h } from "date-fns/endOfMonth";
|
|
6
|
+
import { C as a, P as l } from "./Category-DEKZGLYe.mjs";
|
|
7
|
+
import { f as m, D as T } from "./DateFormats-HudZ3Bjs.mjs";
|
|
8
|
+
const i = (t) => (t.top_level_category_guid === a.INCOME || t.category_guid === a.INCOME) && !f(t), C = (t) => !i(t) && !p(t), M = (t) => l.includes(t.top_level_category_guid) || l.includes(t.category_guid), p = (t) => t.top_level_category_guid === a.TRANSFER || t.category_guid === a.TRANSFER, f = (t) => t.top_level_category_guid === a.INVESTMENTS || t.category_guid === a.INVESTMENTS, N = (t) => !i(t) && !p(t) && !f(t), w = (t) => t.filter((r) => r.category_guid === r.top_level_category_guid), F = (t, r) => {
|
|
9
|
+
if (r === 0) return 0;
|
|
10
|
+
const o = (t - r) / r;
|
|
11
|
+
return isNaN(o) ? 0 : o;
|
|
12
|
+
}, g = (t, r) => {
|
|
13
|
+
const o = [];
|
|
14
|
+
let e = _(r?.start ?? y(/* @__PURE__ */ new Date(), 5));
|
|
15
|
+
const s = r?.end ?? /* @__PURE__ */ new Date();
|
|
16
|
+
for (; d(e, s); )
|
|
17
|
+
o.push({
|
|
18
|
+
x: m(e, T.MONTH_SHORT),
|
|
19
|
+
y: t.filter((n) => n.year === e.getFullYear() && n.month === e.getMonth() + 1).reduce((n, c) => n + c.total, 0)
|
|
20
|
+
}), e = u(e, 1);
|
|
21
|
+
return o;
|
|
22
|
+
}, A = (t, r) => {
|
|
23
|
+
const o = t.filter(i);
|
|
24
|
+
return g(o, r).map((e) => ({ ...e, y: Math.abs(e.y) }));
|
|
25
|
+
}, b = (t, r) => {
|
|
26
|
+
const o = t.filter(M);
|
|
27
|
+
return g(o, r).map((e) => ({ ...e, y: Math.abs(e.y) }));
|
|
28
|
+
}, x = (t, r) => {
|
|
29
|
+
const o = t.filter(N);
|
|
30
|
+
return g(o, r);
|
|
31
|
+
}, H = (t) => {
|
|
32
|
+
const r = [], o = t.filter(
|
|
33
|
+
(n) => n.top_level_category_guid !== a.INCOME && n.top_level_category_guid !== a.TRANSFER && n.total > 0
|
|
34
|
+
);
|
|
35
|
+
let e = _(y(/* @__PURE__ */ new Date(), 5));
|
|
36
|
+
const s = h(/* @__PURE__ */ new Date());
|
|
37
|
+
for (; d(e, s); )
|
|
38
|
+
r.push({
|
|
39
|
+
x: m(e, T.MONTH_SHORT),
|
|
40
|
+
y: o.filter((n) => n.year === e.getFullYear() && n.month === e.getMonth() + 1).reduce((n, c) => n + c.total, 0)
|
|
41
|
+
}), e = u(e, 1);
|
|
42
|
+
return r;
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
b as a,
|
|
46
|
+
x as b,
|
|
47
|
+
w as c,
|
|
48
|
+
C as d,
|
|
49
|
+
H as e,
|
|
50
|
+
F as f,
|
|
51
|
+
A as g,
|
|
52
|
+
i
|
|
53
|
+
};
|
|
@@ -13,7 +13,7 @@ import { f as a1 } from "../NumberFormatting--XMeeBfr.mjs";
|
|
|
13
13
|
import { useTheme as p1, alpha as x1 } from "@mui/material/styles";
|
|
14
14
|
import { u as R, A as w1 } from "../AccountDetailsHeader-DIysk_4w.mjs";
|
|
15
15
|
import { L as R1 } from "../LineChart-CejWS_rh.mjs";
|
|
16
|
-
import { g as S1, a as T1, b as D1 } from "../SpendingData-
|
|
16
|
+
import { g as S1, a as T1, b as D1 } from "../SpendingData-Fii_xATx.mjs";
|
|
17
17
|
import { l as E1, u as A, d as E, g as k, h as _1, a as L1, b as G } from "../hooks-BaO_gOI6.mjs";
|
|
18
18
|
import { A as I, g as f, N as f1 } from "../Account-BaJmiJAG.mjs";
|
|
19
19
|
import { I as g1, P as H1, S as v1 } from "../Account-BxHMlV9R.mjs";
|
package/dist/trends/index.es.js
CHANGED
|
@@ -24,7 +24,7 @@ import { a as Re, C as $e, b as Nt } from "../Category-DEKZGLYe.mjs";
|
|
|
24
24
|
import { f as X, D as G } from "../DateFormats-HudZ3Bjs.mjs";
|
|
25
25
|
import { f as re, a as Wt } from "../NumberFormatting--XMeeBfr.mjs";
|
|
26
26
|
import { a as Ke, c as Ot, g as Gt } from "../TrendsUtil-D9z3kIj_.mjs";
|
|
27
|
-
import { c as Bt, i as Pt, d as Vt, e as zt, g as at, b as it, f as Ye } from "../SpendingData-
|
|
27
|
+
import { c as Bt, i as Pt, d as Vt, e as zt, g as at, b as it, f as Ye } from "../SpendingData-Fii_xATx.mjs";
|
|
28
28
|
import Ft from "@mui/material/ToggleButton";
|
|
29
29
|
import $t from "@mui/material/ToggleButtonGroup";
|
|
30
30
|
import { parseISO as lt } from "date-fns/parseISO";
|
package/package.json
CHANGED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { addMonths as u } from "date-fns/addMonths";
|
|
2
|
-
import { isBefore as d } from "date-fns/isBefore";
|
|
3
|
-
import { startOfMonth as _ } from "date-fns/startOfMonth";
|
|
4
|
-
import { subMonths as y } from "date-fns/subMonths";
|
|
5
|
-
import { endOfMonth as M } from "date-fns/endOfMonth";
|
|
6
|
-
import { C as a, P as l } from "./Category-DEKZGLYe.mjs";
|
|
7
|
-
import { f as m, D as T } from "./DateFormats-HudZ3Bjs.mjs";
|
|
8
|
-
const i = (e) => (e.top_level_category_guid === a.INCOME || e.category_guid === a.INCOME) && !h(e), C = (e) => !i(e) && !f(e), p = (e) => l.includes(e.top_level_category_guid) || l.includes(e.category_guid), f = (e) => e.top_level_category_guid === a.TRANSFER || e.category_guid === a.TRANSFER, h = (e) => e.top_level_category_guid === a.INVESTMENTS || e.category_guid === a.INVESTMENTS, N = (e) => !i(e) && !p(e) && !f(e) && !h(e), w = (e) => e.filter((r) => r.category_guid === r.top_level_category_guid), F = (e, r) => {
|
|
9
|
-
if (r === 0) return 0;
|
|
10
|
-
const o = (e - r) / r;
|
|
11
|
-
return isNaN(o) ? 0 : o;
|
|
12
|
-
}, g = (e, r) => {
|
|
13
|
-
const o = [];
|
|
14
|
-
let t = _(r?.start ?? y(/* @__PURE__ */ new Date(), 5));
|
|
15
|
-
const s = r?.end ?? /* @__PURE__ */ new Date();
|
|
16
|
-
for (; d(t, s); )
|
|
17
|
-
o.push({
|
|
18
|
-
x: m(t, T.MONTH_SHORT),
|
|
19
|
-
y: e.filter((n) => n.year === t.getFullYear() && n.month === t.getMonth() + 1).reduce((n, c) => n + c.total, 0)
|
|
20
|
-
}), t = u(t, 1);
|
|
21
|
-
return o;
|
|
22
|
-
}, A = (e, r) => {
|
|
23
|
-
const o = e.filter(i);
|
|
24
|
-
return g(o, r).map((t) => ({ ...t, y: Math.abs(t.y) }));
|
|
25
|
-
}, b = (e, r) => {
|
|
26
|
-
const o = e.filter(p);
|
|
27
|
-
return g(o, r).map((t) => ({ ...t, y: Math.abs(t.y) }));
|
|
28
|
-
}, x = (e, r) => {
|
|
29
|
-
const o = e.filter(N);
|
|
30
|
-
return g(o, r);
|
|
31
|
-
}, H = (e) => {
|
|
32
|
-
const r = [], o = e.filter(
|
|
33
|
-
(n) => n.top_level_category_guid !== a.INCOME && n.top_level_category_guid !== a.TRANSFER && n.total > 0
|
|
34
|
-
);
|
|
35
|
-
let t = _(y(/* @__PURE__ */ new Date(), 5));
|
|
36
|
-
const s = M(/* @__PURE__ */ new Date());
|
|
37
|
-
for (; d(t, s); )
|
|
38
|
-
r.push({
|
|
39
|
-
x: m(t, T.MONTH_SHORT),
|
|
40
|
-
y: o.filter((n) => n.year === t.getFullYear() && n.month === t.getMonth() + 1).reduce((n, c) => n + c.total, 0)
|
|
41
|
-
}), t = u(t, 1);
|
|
42
|
-
return r;
|
|
43
|
-
};
|
|
44
|
-
export {
|
|
45
|
-
b as a,
|
|
46
|
-
x as b,
|
|
47
|
-
w as c,
|
|
48
|
-
C as d,
|
|
49
|
-
H as e,
|
|
50
|
-
F as f,
|
|
51
|
-
A as g,
|
|
52
|
-
i
|
|
53
|
-
};
|