@mx-cartographer/experiences 7.12.10 → 7.12.12
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 +7 -0
- package/dist/{Donut-DSGXraiS.mjs → Donut-CpxJlVvJ.mjs} +27 -25
- package/dist/{ManageIncome-Db9eOrEl.mjs → ManageIncome-CYn33Pp4.mjs} +1 -1
- package/dist/{RecurringSettings-CPVVnmEi.mjs → RecurringSettings-C2AY7sDf.mjs} +1 -1
- package/dist/{SpendingLegend-DHi0vx8B.mjs → SpendingLegend-Bq6aXMNh.mjs} +40 -40
- package/dist/{TransactionDetails-Bbt820BH.mjs → TransactionDetails-BYRG9GZt.mjs} +1 -1
- package/dist/accounts/index.es.js +1 -1
- package/dist/budgets/index.es.js +2 -2
- package/dist/cashflow/index.es.js +2 -2
- package/dist/common/index.es.js +1 -1
- package/dist/finstrong/index.es.js +3 -3
- package/dist/investments/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +4 -4
- package/dist/spending/index.es.js +174 -174
- package/dist/transactions/index.es.js +2 -2
- package/dist/trends/index.es.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [7.12.11] - 03-23-2026
|
|
2
|
+
|
|
3
|
+
- **FIXED** - ADA replace SpendingList dividers with border
|
|
4
|
+
- **FIXED** - ADA add `aria-hidden` and `role="presentation"` to SpendingList bullets
|
|
5
|
+
- **FIXED** - ADA add `aria-hidden` and `role="presentation"` to SpendingDonut icons
|
|
6
|
+
- **FIXED** - ADA darkened/lightened category color 2px stroke around SpendingDonut areas
|
|
7
|
+
|
|
1
8
|
## [7.12.10] - 03-23-2026
|
|
2
9
|
|
|
3
10
|
- **ADDED** - font styling for mrs content tagged copy
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { selectAll as
|
|
4
|
-
import
|
|
5
|
-
import { useTheme as S } from "@mui/material/styles";
|
|
6
|
-
const
|
|
7
|
-
data:
|
|
8
|
-
hoveredId:
|
|
1
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import A from "react";
|
|
3
|
+
import { selectAll as b, interpolateString as x, arc as I } from "d3";
|
|
4
|
+
import u from "@mui/material/Box";
|
|
5
|
+
import { useTheme as S, darken as m, lighten as E } from "@mui/material/styles";
|
|
6
|
+
const _ = 100, v = 140, B = 10, N = ({
|
|
7
|
+
data: h,
|
|
8
|
+
hoveredId: p,
|
|
9
9
|
onClick: a,
|
|
10
10
|
onMouseEnter: s,
|
|
11
11
|
onMouseLeave: l,
|
|
12
12
|
selectedId: i,
|
|
13
13
|
size: t = 300,
|
|
14
|
-
children:
|
|
14
|
+
children: f
|
|
15
15
|
}) => {
|
|
16
|
-
const
|
|
16
|
+
const c = S();
|
|
17
17
|
let r = 0;
|
|
18
18
|
const g = (o, n) => {
|
|
19
19
|
(o.key === "Enter" || o.key === " ") && (o.preventDefault(), a?.(n));
|
|
@@ -22,11 +22,11 @@ const k = 100, E = 140, _ = 10, v = ({
|
|
|
22
22
|
}, D = (o) => {
|
|
23
23
|
l?.(o);
|
|
24
24
|
};
|
|
25
|
-
return
|
|
26
|
-
|
|
27
|
-
}, []), /* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */ e(
|
|
29
|
-
/* @__PURE__ */
|
|
25
|
+
return A.useEffect(() => {
|
|
26
|
+
b(".arc-outer").transition("roll").duration(500).attrTween("transform", () => x("rotate(0)", "rotate(360)"));
|
|
27
|
+
}, []), /* @__PURE__ */ d(u, { height: t, position: "relative", width: t, children: [
|
|
28
|
+
/* @__PURE__ */ e(u, { height: "100%", width: "100%", children: f }),
|
|
29
|
+
/* @__PURE__ */ d(
|
|
30
30
|
"svg",
|
|
31
31
|
{
|
|
32
32
|
height: t,
|
|
@@ -37,19 +37,19 @@ const k = 100, E = 140, _ = 10, v = ({
|
|
|
37
37
|
/* @__PURE__ */ e("style", { children: `
|
|
38
38
|
.arc-outer:focus,
|
|
39
39
|
.arc-outer:focus-visible {
|
|
40
|
-
stroke: ${
|
|
40
|
+
stroke: ${c.palette.primary.main};
|
|
41
41
|
stroke-width: 3;
|
|
42
42
|
stroke-opacity: 0.8;
|
|
43
43
|
}
|
|
44
44
|
` }),
|
|
45
|
-
/* @__PURE__ */ e("g", { children:
|
|
45
|
+
/* @__PURE__ */ e("g", { children: h.map((o) => {
|
|
46
46
|
const n = r;
|
|
47
47
|
r = r + 2 * Math.PI * (o.value / 100);
|
|
48
|
-
const
|
|
49
|
-
innerRadius:
|
|
50
|
-
outerRadius:
|
|
48
|
+
const k = r, w = I().cornerRadius(4)({
|
|
49
|
+
innerRadius: _,
|
|
50
|
+
outerRadius: v + (o.id === i || o.id === p ? B : 0),
|
|
51
51
|
startAngle: n,
|
|
52
|
-
endAngle:
|
|
52
|
+
endAngle: k,
|
|
53
53
|
padAngle: 0.025
|
|
54
54
|
});
|
|
55
55
|
return /* @__PURE__ */ e(
|
|
@@ -58,15 +58,17 @@ const k = 100, E = 140, _ = 10, v = ({
|
|
|
58
58
|
"aria-label": o.label || `Segment ${o.id}`,
|
|
59
59
|
"aria-pressed": o.id === i,
|
|
60
60
|
className: "arc-outer",
|
|
61
|
-
d:
|
|
61
|
+
d: w,
|
|
62
62
|
fill: o.color,
|
|
63
63
|
onBlur: () => D(o.id),
|
|
64
64
|
onClick: () => a?.(o.id),
|
|
65
65
|
onFocus: () => y(o.id),
|
|
66
|
-
onKeyDown: (
|
|
66
|
+
onKeyDown: (R) => g(R, o.id),
|
|
67
67
|
onMouseEnter: () => s?.(o.id),
|
|
68
68
|
onMouseLeave: () => l?.(o.id),
|
|
69
69
|
role: "button",
|
|
70
|
+
stroke: c.palette.mode === "light" ? m(o.color, 0.3) : E(o.color, 0.3),
|
|
71
|
+
strokeWidth: 2,
|
|
70
72
|
style: {
|
|
71
73
|
cursor: "pointer",
|
|
72
74
|
outline: "none"
|
|
@@ -80,7 +82,7 @@ const k = 100, E = 140, _ = 10, v = ({
|
|
|
80
82
|
}
|
|
81
83
|
)
|
|
82
84
|
] });
|
|
83
|
-
},
|
|
85
|
+
}, K = N;
|
|
84
86
|
export {
|
|
85
|
-
|
|
87
|
+
K as D
|
|
86
88
|
};
|
|
@@ -18,7 +18,7 @@ import { parseISO as me } from "date-fns/parseISO";
|
|
|
18
18
|
import J from "@mui/material/Button";
|
|
19
19
|
import { Delete as pe, Add as ye, ReceiptLong as he } from "@mxenabled/mx-icons";
|
|
20
20
|
import { T as V, u as fe, S as ge, a as Ce } from "./StatusIndicator-BV3oFzxo.mjs";
|
|
21
|
-
import { T as be } from "./TransactionDetails-
|
|
21
|
+
import { T as be } from "./TransactionDetails-BYRG9GZt.mjs";
|
|
22
22
|
import { addYears as j } from "date-fns/addYears";
|
|
23
23
|
import { getDayOfYear as xe } from "date-fns/getDayOfYear";
|
|
24
24
|
import { setDayOfYear as Se } from "date-fns/setDayOfYear";
|
|
@@ -7,7 +7,7 @@ import R from "@mui/material/Tabs";
|
|
|
7
7
|
import d from "@mui/material/Divider";
|
|
8
8
|
import b from "@mui/material/List";
|
|
9
9
|
import T from "@mui/material/Stack";
|
|
10
|
-
import { R as C, A as S, a as E, M as v } from "./ManageIncome-
|
|
10
|
+
import { R as C, A as S, a as E, M as v } from "./ManageIncome-CYn33Pp4.mjs";
|
|
11
11
|
import { u as _, i as A, g as f } from "./hooks-BxkfR-Ff.mjs";
|
|
12
12
|
import { R as y, F as N } from "./RecurringTransactions-CYNpe_RS.mjs";
|
|
13
13
|
import { A as m } from "./Analytics-BYItVAe-.mjs";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { b as T } from "./CategoryUtil-BVixr0d5.mjs";
|
|
2
2
|
import { b as p } from "./Category-CevNQ03n.mjs";
|
|
3
|
-
import { jsxs as f, Fragment as
|
|
3
|
+
import { jsxs as f, Fragment as N, jsx as d } from "react/jsx-runtime";
|
|
4
4
|
import _ from "react";
|
|
5
|
-
import { observer as
|
|
6
|
-
import
|
|
5
|
+
import { observer as k } from "mobx-react-lite";
|
|
6
|
+
import S from "@mui/material/Box";
|
|
7
|
+
import M from "@mui/material/Button";
|
|
7
8
|
import h from "@mui/material/Stack";
|
|
8
|
-
import { useTheme as
|
|
9
|
-
import { CategoryIcon as
|
|
10
|
-
import { D as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
9
|
+
import { useTheme as A } from "@mui/material/styles";
|
|
10
|
+
import { CategoryIcon as G, CategoryIconVariants as O, Text as y, P as $ } from "@mxenabled/mxui";
|
|
11
|
+
import { D as j } from "./Donut-CpxJlVvJ.mjs";
|
|
12
|
+
import { u as R } from "./useAriaLive-MkYebyUR.mjs";
|
|
13
|
+
import { u as v } from "./hooks-BxkfR-Ff.mjs";
|
|
14
|
+
import { u as B } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
14
15
|
import { f as x } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
15
|
-
|
|
16
|
-
const D = 5, H = (i, l, g, d) => d.reduce((t, n) => {
|
|
16
|
+
const D = 5, H = (i, l, g, m) => m.reduce((t, n) => {
|
|
17
17
|
const a = i.find((s) => s.guid === n.category_guid);
|
|
18
18
|
if (!a) return t;
|
|
19
19
|
const o = a.parent_guid ?? a.guid, r = i.find((s) => s.guid === o);
|
|
@@ -31,8 +31,8 @@ const D = 5, H = (i, l, g, d) => d.reduce((t, n) => {
|
|
|
31
31
|
categoryTotals: [c],
|
|
32
32
|
amount: n.total
|
|
33
33
|
}), t;
|
|
34
|
-
}, []), no = (i, l, g,
|
|
35
|
-
const t = H(i, l, g,
|
|
34
|
+
}, []), no = (i, l, g, m) => {
|
|
35
|
+
const t = H(i, l, g, m), n = t.filter(
|
|
36
36
|
(e) => e.guid !== p.INCOME && e.guid !== p.INVESTMENTS && e.guid !== p.TRANSFER && e.amount > 0
|
|
37
37
|
).sort((e, s) => s.amount - e.amount), a = n.reduce(
|
|
38
38
|
(e, s) => e + s.amount,
|
|
@@ -67,9 +67,9 @@ const D = 5, H = (i, l, g, d) => d.reduce((t, n) => {
|
|
|
67
67
|
totalAmount: a
|
|
68
68
|
};
|
|
69
69
|
}, eo = (i, l, g) => {
|
|
70
|
-
const
|
|
70
|
+
const m = i.filter(
|
|
71
71
|
(o) => o.guid === p.INCOME || o.parent_guid === p.INCOME
|
|
72
|
-
), t = l.filter((o) =>
|
|
72
|
+
), t = l.filter((o) => m.some((r) => r.guid === o.category_guid)).sort((o, r) => o.total - r.total).map((o, r) => ({
|
|
73
73
|
guid: o.category_guid,
|
|
74
74
|
name: i.find((c) => c.guid === o.category_guid)?.name,
|
|
75
75
|
color: g[r],
|
|
@@ -93,13 +93,13 @@ const D = 5, H = (i, l, g, d) => d.reduce((t, n) => {
|
|
|
93
93
|
data: i,
|
|
94
94
|
isIncome: l = !1,
|
|
95
95
|
onSelected: g,
|
|
96
|
-
onViewTransactions:
|
|
96
|
+
onViewTransactions: m,
|
|
97
97
|
selectedId: t,
|
|
98
98
|
size: n = 150,
|
|
99
99
|
totalLabel: a,
|
|
100
100
|
variant: o = "mini"
|
|
101
101
|
}) => {
|
|
102
|
-
const { spending: r } =
|
|
102
|
+
const { spending: r } = v(), c = A(), { isTablet: e } = B(), { announce: s, ariaLive: C } = R(), u = _.useMemo(
|
|
103
103
|
() => t ? i.categoryData.find((b) => b.guid === t) : void 0,
|
|
104
104
|
[t]
|
|
105
105
|
);
|
|
@@ -109,12 +109,12 @@ const D = 5, H = (i, l, g, d) => d.reduce((t, n) => {
|
|
|
109
109
|
s(`${u.name}: ${b}`);
|
|
110
110
|
}
|
|
111
111
|
}, [u, s, o]);
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
-
},
|
|
115
|
-
return /* @__PURE__ */ f(
|
|
112
|
+
const E = i.donutData.length > 0 ? i.donutData : [{ id: "0", color: c.palette.divider, value: 100 }], I = () => {
|
|
113
|
+
m?.(t);
|
|
114
|
+
}, w = e ? 32 : 48;
|
|
115
|
+
return /* @__PURE__ */ f(N, { children: [
|
|
116
116
|
C,
|
|
117
|
-
/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ d(j, { data: E, onClick: g, selectedId: t, size: n, children: /* @__PURE__ */ d(h, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ f(h, { alignItems: "center", justifyContent: "center", minHeight: n, minWidth: n, children: [
|
|
118
118
|
u && /* @__PURE__ */ f(
|
|
119
119
|
h,
|
|
120
120
|
{
|
|
@@ -124,15 +124,15 @@ const D = 5, H = (i, l, g, d) => d.reduce((t, n) => {
|
|
|
124
124
|
mt: o === "mini" ? 0 : -16,
|
|
125
125
|
sx: o === "mini" ? { gap: 0, mb: 0 } : { gap: { xs: 4, xl: 8 }, mb: { xs: 4, xl: 8 } },
|
|
126
126
|
children: [
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
|
|
127
|
+
/* @__PURE__ */ d(S, { "aria-hidden": "true", role: "presentation", children: /* @__PURE__ */ d(
|
|
128
|
+
G,
|
|
129
129
|
{
|
|
130
130
|
categoryGuid: l ? p.INCOME : u.guid,
|
|
131
|
-
size: o === "mini" ? 24 :
|
|
132
|
-
variant:
|
|
131
|
+
size: o === "mini" ? 24 : w,
|
|
132
|
+
variant: O.Transparent
|
|
133
133
|
}
|
|
134
|
-
),
|
|
135
|
-
/* @__PURE__ */
|
|
134
|
+
) }),
|
|
135
|
+
/* @__PURE__ */ d(
|
|
136
136
|
y,
|
|
137
137
|
{
|
|
138
138
|
color: "secondary",
|
|
@@ -144,15 +144,15 @@ const D = 5, H = (i, l, g, d) => d.reduce((t, n) => {
|
|
|
144
144
|
]
|
|
145
145
|
}
|
|
146
146
|
),
|
|
147
|
-
!u && o === "full" && /* @__PURE__ */
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
!u && o === "mini" && /* @__PURE__ */
|
|
150
|
-
o === "full" && /* @__PURE__ */
|
|
151
|
-
|
|
147
|
+
!u && o === "full" && /* @__PURE__ */ d(y, { bold: !0, color: "secondary", sx: { mb: { xs: 4, xl: 8 } }, children: a }),
|
|
148
|
+
/* @__PURE__ */ d($, { variant: o === "mini" ? "H2" : "H1", children: u ? x(u.amount, o === "mini" ? "0,0" : "0,0.00") : x(i.totalAmount, o === "mini" ? "0,0" : "0,0.00") }),
|
|
149
|
+
!u && o === "mini" && /* @__PURE__ */ d(y, { color: "secondary", noWrap: !0, variant: "Tiny", children: a }),
|
|
150
|
+
o === "full" && /* @__PURE__ */ d(
|
|
151
|
+
M,
|
|
152
152
|
{
|
|
153
153
|
"aria-label": `View ${u?.name || ""} Transactions`,
|
|
154
154
|
disabled: i.categoryData.length === 0,
|
|
155
|
-
onClick:
|
|
155
|
+
onClick: I,
|
|
156
156
|
sx: { mt: { xl: 4, xs: 0 }, zIndex: 1 },
|
|
157
157
|
variant: "text",
|
|
158
158
|
children: r.view_transactions
|
|
@@ -160,11 +160,11 @@ const D = 5, H = (i, l, g, d) => d.reduce((t, n) => {
|
|
|
160
160
|
)
|
|
161
161
|
] }) }) })
|
|
162
162
|
] });
|
|
163
|
-
}, ro =
|
|
164
|
-
const
|
|
163
|
+
}, ro = k(V), ao = ({ data: i, onSelected: l, selectedId: g }) => {
|
|
164
|
+
const m = (t, n) => {
|
|
165
165
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), l(n));
|
|
166
166
|
};
|
|
167
|
-
return /* @__PURE__ */
|
|
167
|
+
return /* @__PURE__ */ d(h, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: i.categoryData.map((t) => /* @__PURE__ */ f(
|
|
168
168
|
h,
|
|
169
169
|
{
|
|
170
170
|
alignItems: "center",
|
|
@@ -173,13 +173,13 @@ const D = 5, H = (i, l, g, d) => d.reduce((t, n) => {
|
|
|
173
173
|
direction: "row",
|
|
174
174
|
gap: 8,
|
|
175
175
|
onClick: () => l(t.guid),
|
|
176
|
-
onKeyDown: (n) =>
|
|
176
|
+
onKeyDown: (n) => m(n, t.guid),
|
|
177
177
|
role: "button",
|
|
178
178
|
sx: { cursor: "pointer" },
|
|
179
179
|
tabIndex: 0,
|
|
180
180
|
children: [
|
|
181
|
-
/* @__PURE__ */
|
|
182
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ d(S, { borderRadius: 4, height: 8, sx: { backgroundColor: t.color }, width: 8 }),
|
|
182
|
+
/* @__PURE__ */ d(y, { bold: t.guid === g, variant: "XSmall", children: t.name })
|
|
183
183
|
]
|
|
184
184
|
},
|
|
185
185
|
t.guid
|
|
@@ -285,11 +285,11 @@ const ht = E(({ transaction: t }) => {
|
|
|
285
285
|
const A = () => /* @__PURE__ */ e(
|
|
286
286
|
$e,
|
|
287
287
|
{
|
|
288
|
+
closeAriaLabel: Q.close_aria,
|
|
288
289
|
actionText: C.autogenerate_budgets_error_primary_button,
|
|
289
290
|
autoHideDuration: 3500,
|
|
290
291
|
handleClose: () => k(""),
|
|
291
292
|
message: L,
|
|
292
|
-
multiLine: !0,
|
|
293
293
|
onActionClick: b[_]?.errorRetryAction,
|
|
294
294
|
open: !!L,
|
|
295
295
|
severity: a ? "error" : "success",
|
|
@@ -56,7 +56,7 @@ import t3 from "@mui/material/Link";
|
|
|
56
56
|
import n3 from "@mui/material/Paper";
|
|
57
57
|
import { subDays as o3, startOfToday as i3, endOfToday as c3 } from "date-fns";
|
|
58
58
|
import { T as a3 } from "../StatusIndicator-BV3oFzxo.mjs";
|
|
59
|
-
import { T as s3 } from "../TransactionDetails-
|
|
59
|
+
import { T as s3 } from "../TransactionDetails-BYRG9GZt.mjs";
|
|
60
60
|
import { T as r1 } from "../TabContentContainer-j01JYR_7.mjs";
|
|
61
61
|
import { f as d1 } from "../NumberFormatting-QCaNwbjv.mjs";
|
|
62
62
|
import { C as l3 } from "../ConnectionsDrawer-DqhSaMrJ.mjs";
|
package/dist/budgets/index.es.js
CHANGED
|
@@ -37,7 +37,7 @@ import De from "@mui/material/Tab";
|
|
|
37
37
|
import Qe from "@mui/material/Tabs";
|
|
38
38
|
import { e as et } from "../exportTransactionsToCSV-CdTF_RqL.mjs";
|
|
39
39
|
import { T as Ae } from "../StatusIndicator-BV3oFzxo.mjs";
|
|
40
|
-
import { T as tt, c as nt } from "../TransactionDetails-
|
|
40
|
+
import { T as tt, c as nt } from "../TransactionDetails-BYRG9GZt.mjs";
|
|
41
41
|
import ve from "@mui/material/Card";
|
|
42
42
|
import Te from "@mui/material/CardContent";
|
|
43
43
|
import { S as Be } from "../StatusBar-BK_uYHAB.mjs";
|
|
@@ -46,7 +46,7 @@ import { u as ot, b as at } from "../CategorySelectorDrawer-wfUTIbLR.mjs";
|
|
|
46
46
|
import Ge from "@mui/material/CardHeader";
|
|
47
47
|
import { subDays as rt } from "date-fns/subDays";
|
|
48
48
|
import st from "@mui/material/IconButton";
|
|
49
|
-
import { M as it } from "../ManageIncome-
|
|
49
|
+
import { M as it } from "../ManageIncome-CYn33Pp4.mjs";
|
|
50
50
|
import { u as je } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
51
51
|
import { W as ct } from "../WidgetContainer-B0ncgABX.mjs";
|
|
52
52
|
import { u as lt, g as dt, C as ut } from "../BudgetUtil--_QXyszn.mjs";
|
|
@@ -18,7 +18,7 @@ import { b as $ } from "../Localization-CPkpIwIx.mjs";
|
|
|
18
18
|
import { M as Je } from "../MiniWidgetContainer-Cu72GNsE.mjs";
|
|
19
19
|
import { E as Ze } from "../EmptyState-DHAkGsjk.mjs";
|
|
20
20
|
import { u as Oe } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
21
|
-
import { R as et } from "../RecurringSettings-
|
|
21
|
+
import { R as et } from "../RecurringSettings-C2AY7sDf.mjs";
|
|
22
22
|
import tt from "@mui/material/Tabs";
|
|
23
23
|
import ye from "@mui/material/Tab";
|
|
24
24
|
import { getUnixTime as z } from "date-fns/getUnixTime";
|
|
@@ -36,7 +36,7 @@ import { alpha as at, keyframes as it } from "@mui/material/styles";
|
|
|
36
36
|
import { DataGridPro as rt } from "@mui/x-data-grid-pro";
|
|
37
37
|
import { T as we } from "../TabContentContainer-j01JYR_7.mjs";
|
|
38
38
|
import G from "@mui/material/Button";
|
|
39
|
-
import { M as st, S as ct, i as lt, d as _e, c as dt } from "../ManageIncome-
|
|
39
|
+
import { M as st, S as ct, i as lt, d as _e, c as dt } from "../ManageIncome-CYn33Pp4.mjs";
|
|
40
40
|
import { D as Ge } from "../Drawer-DV4NTsFg.mjs";
|
|
41
41
|
import { subDays as Me } from "date-fns/subDays";
|
|
42
42
|
import { endOfToday as mt } from "date-fns/endOfToday";
|
package/dist/common/index.es.js
CHANGED
|
@@ -37,7 +37,7 @@ import { L as Gs } from "../TrendsStore-st6GjDtg.mjs";
|
|
|
37
37
|
import { A as Ws, B as qs, I as Ys, N as Qs, T as Ks, a as zs } from "../Notification-CMBNDGC-.mjs";
|
|
38
38
|
import { G as Vs } from "../GlobalAccountFilter-B73Pw1hJ.mjs";
|
|
39
39
|
import { S as Zs } from "../StatusBar-BK_uYHAB.mjs";
|
|
40
|
-
import { D as tr } from "../Donut-
|
|
40
|
+
import { D as tr } from "../Donut-CpxJlVvJ.mjs";
|
|
41
41
|
import { D as sr } from "../Dialog-Ck34yr-d.mjs";
|
|
42
42
|
import { jsxs as D, jsx as b } from "react/jsx-runtime";
|
|
43
43
|
import { css as j } from "@mxenabled/cssinjs";
|
|
@@ -51,15 +51,15 @@ import { ChartsXAxis as Zn } from "@mui/x-charts/ChartsXAxis";
|
|
|
51
51
|
import { ChartsYAxis as Jn } from "@mui/x-charts/ChartsYAxis";
|
|
52
52
|
import { startOfMonth as Tt } from "date-fns/startOfMonth";
|
|
53
53
|
import { endOfMonth as At } from "date-fns/endOfMonth";
|
|
54
|
-
import { g as eo, S as to, b as no } from "../SpendingLegend-
|
|
54
|
+
import { g as eo, S as to, b as no } from "../SpendingLegend-Bq6aXMNh.mjs";
|
|
55
55
|
import { formatISO as oo } from "date-fns/formatISO";
|
|
56
56
|
import { fromUnixTime as ro } from "date-fns/fromUnixTime";
|
|
57
57
|
import { startOfToday as st } from "date-fns/startOfToday";
|
|
58
58
|
import { subDays as ao } from "date-fns/subDays";
|
|
59
|
-
import { c as io, d as ct, S as so, i as co } from "../ManageIncome-
|
|
59
|
+
import { c as io, d as ct, S as so, i as co } from "../ManageIncome-CYn33Pp4.mjs";
|
|
60
60
|
import { LocalizationProvider as lo, DatePicker as po, StaticDatePicker as _o } from "@mui/x-date-pickers";
|
|
61
61
|
import { AdapterDateFns as Ot } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
62
|
-
import { R as uo } from "../RecurringSettings-
|
|
62
|
+
import { R as uo } from "../RecurringSettings-C2AY7sDf.mjs";
|
|
63
63
|
import { LocalizationProvider as ho } from "@mui/x-date-pickers/LocalizationProvider";
|
|
64
64
|
import { format as mo } from "date-fns/format";
|
|
65
65
|
import go from "@mui/lab/Timeline";
|
|
@@ -22,7 +22,7 @@ import { a as Ue, f as ie } from "../NumberFormatting-QCaNwbjv.mjs";
|
|
|
22
22
|
import { u as U } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
23
23
|
import ce from "@mui/material/styles/useTheme";
|
|
24
24
|
import { Icon as k } from "@mxenabled/mx-icons";
|
|
25
|
-
import { D as je } from "../Donut-
|
|
25
|
+
import { D as je } from "../Donut-CpxJlVvJ.mjs";
|
|
26
26
|
import { useTheme as ze } from "@mui/material/styles";
|
|
27
27
|
import { f as Oe, A as V } from "../InvestmentUtil-BItV7uEs.mjs";
|
|
28
28
|
import Ve from "@mui/material/ListItemText";
|
|
@@ -6,8 +6,8 @@ import { endOfToday as J } from "date-fns/endOfToday";
|
|
|
6
6
|
import { startOfMonth as k } from "date-fns/startOfMonth";
|
|
7
7
|
import { startOfToday as Q } from "date-fns/startOfToday";
|
|
8
8
|
import { subDays as ee } from "date-fns/subDays";
|
|
9
|
-
import { R as _e } from "../RecurringSettings-
|
|
10
|
-
import { M as Un } from "../RecurringSettings-
|
|
9
|
+
import { R as _e } from "../RecurringSettings-C2AY7sDf.mjs";
|
|
10
|
+
import { M as Un } from "../RecurringSettings-C2AY7sDf.mjs";
|
|
11
11
|
import { addMonths as Be } from "date-fns/addMonths";
|
|
12
12
|
import { subMonths as Pe } from "date-fns/subMonths";
|
|
13
13
|
import { isBefore as $e } from "date-fns/isBefore";
|
|
@@ -47,8 +47,8 @@ import dt from "@mui/material/ListSubheader";
|
|
|
47
47
|
import ut from "@mui/material/ListItemAvatar";
|
|
48
48
|
import mt from "@mui/material/ListItemButton";
|
|
49
49
|
import pt from "@mui/material/ListItemText";
|
|
50
|
-
import { b as gt } from "../ManageIncome-
|
|
51
|
-
import { c as Vn, M as Xn, S as qn } from "../ManageIncome-
|
|
50
|
+
import { b as gt } from "../ManageIncome-CYn33Pp4.mjs";
|
|
51
|
+
import { c as Vn, M as Xn, S as qn } from "../ManageIncome-CYn33Pp4.mjs";
|
|
52
52
|
import { f as E } from "../NumberFormatting-QCaNwbjv.mjs";
|
|
53
53
|
import { D as ie } from "../Drawer-DV4NTsFg.mjs";
|
|
54
54
|
import O from "@mui/material/Box";
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import l from "react";
|
|
3
|
-
import { observer as
|
|
4
|
-
import { startOfMonth as
|
|
5
|
-
import { endOfMonth as
|
|
6
|
-
import
|
|
3
|
+
import { observer as L } from "mobx-react-lite";
|
|
4
|
+
import { startOfMonth as ot } from "date-fns/startOfMonth";
|
|
5
|
+
import { endOfMonth as at } from "date-fns/endOfMonth";
|
|
6
|
+
import w from "@mui/material/Box";
|
|
7
7
|
import C from "@mui/material/Stack";
|
|
8
8
|
import N from "@mui/material/Tab";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { g as
|
|
9
|
+
import it from "@mui/material/Tabs";
|
|
10
|
+
import _t from "@mui/material/styles/useTheme";
|
|
11
|
+
import { g as rt, a as st, S as $, b as X } from "../SpendingLegend-Bq6aXMNh.mjs";
|
|
12
12
|
import { Text as T, Icon as bt } from "@mxenabled/mxui";
|
|
13
13
|
import { f as R } from "../NumberFormatting-QCaNwbjv.mjs";
|
|
14
|
-
import { u as I, l as A, d as
|
|
15
|
-
import { u as
|
|
16
|
-
import { L as
|
|
17
|
-
import { M as
|
|
18
|
-
import { startOfToday as
|
|
19
|
-
import
|
|
20
|
-
import { useTheme as
|
|
21
|
-
import { e as
|
|
22
|
-
import { T as
|
|
23
|
-
import { T as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import { u as
|
|
30
|
-
import { D as
|
|
31
|
-
import { b as
|
|
32
|
-
import { parseISO as
|
|
33
|
-
import { A as
|
|
14
|
+
import { u as I, l as A, d as lt, b as V, a as F, h as dt, g as yt } from "../hooks-BxkfR-Ff.mjs";
|
|
15
|
+
import { u as ct } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
16
|
+
import { L as gt } from "../Loader-D3rjKx72.mjs";
|
|
17
|
+
import { M as Ct } from "../MiniWidgetContainer-Cu72GNsE.mjs";
|
|
18
|
+
import { startOfToday as Y } from "date-fns/startOfToday";
|
|
19
|
+
import St from "@mui/material/Button";
|
|
20
|
+
import { useTheme as Tt } from "@mui/material";
|
|
21
|
+
import { e as Mt } from "../exportTransactionsToCSV-CdTF_RqL.mjs";
|
|
22
|
+
import { T as Dt } from "../StatusIndicator-BV3oFzxo.mjs";
|
|
23
|
+
import { T as xt } from "../TransactionDetails-BYRG9GZt.mjs";
|
|
24
|
+
import vt from "@mui/material/Collapse";
|
|
25
|
+
import wt from "@mui/material/Divider";
|
|
26
|
+
import q from "@mui/material/List";
|
|
27
|
+
import J from "@mui/material/ListItem";
|
|
28
|
+
import Q from "@mui/material/ListItemButton";
|
|
29
|
+
import { u as Lt } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
30
|
+
import { D as Z } from "../Drawer-DV4NTsFg.mjs";
|
|
31
|
+
import { b as v } from "../Category-CevNQ03n.mjs";
|
|
32
|
+
import { parseISO as tt } from "date-fns/parseISO";
|
|
33
|
+
import { A as et } from "../Analytics-BYItVAe-.mjs";
|
|
34
34
|
import { W as It } from "../WidgetContainer-B0ncgABX.mjs";
|
|
35
|
-
const
|
|
35
|
+
const B = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(C, { direction: "column", children: [
|
|
36
36
|
/* @__PURE__ */ t(T, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: d }),
|
|
37
37
|
/* @__PURE__ */ t(T, { variant: "XSmall", children: R(n, o === "mini" ? "0,0" : "0,0.00") })
|
|
38
38
|
] }), At = () => {
|
|
39
|
-
const n =
|
|
39
|
+
const n = _t(), { goals: d, spending: o } = I(), { categories: a, dateRangeCategoryTotals: i } = A(), c = l.useMemo(
|
|
40
40
|
() => [
|
|
41
41
|
n.palette.chartMono.chartMono5,
|
|
42
42
|
n.palette.chartMono.chartMono4,
|
|
@@ -46,24 +46,24 @@ const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C,
|
|
|
46
46
|
n.palette.chartMono.chartMono6
|
|
47
47
|
],
|
|
48
48
|
[n]
|
|
49
|
-
), [e, r] = l.useState(""), [
|
|
50
|
-
() =>
|
|
49
|
+
), [e, r] = l.useState(""), [g, b] = l.useState(0), u = l.useMemo(
|
|
50
|
+
() => rt(a, d, n, i),
|
|
51
51
|
[a, i]
|
|
52
52
|
), m = l.useMemo(
|
|
53
|
-
() =>
|
|
54
|
-
[a, i,
|
|
53
|
+
() => st(a, i, c),
|
|
54
|
+
[a, i, c]
|
|
55
55
|
), M = (f, D) => {
|
|
56
|
-
|
|
57
|
-
},
|
|
56
|
+
b(D), r("");
|
|
57
|
+
}, y = (f) => {
|
|
58
58
|
r(e === f ? "" : f);
|
|
59
59
|
};
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
|
|
60
|
+
return /* @__PURE__ */ p(w, { width: "100%", children: [
|
|
61
|
+
/* @__PURE__ */ p(
|
|
62
|
+
it,
|
|
63
63
|
{
|
|
64
64
|
"aria-label": o.mini_title,
|
|
65
65
|
onChange: M,
|
|
66
|
-
value:
|
|
66
|
+
value: g,
|
|
67
67
|
variant: "fullWidth",
|
|
68
68
|
children: [
|
|
69
69
|
/* @__PURE__ */ t(
|
|
@@ -72,14 +72,14 @@ const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C,
|
|
|
72
72
|
"aria-controls": "spending-tabpanel",
|
|
73
73
|
id: "spending-tab",
|
|
74
74
|
label: /* @__PURE__ */ t(
|
|
75
|
-
|
|
75
|
+
B,
|
|
76
76
|
{
|
|
77
77
|
amount: u.totalAmount,
|
|
78
78
|
label: o.spend_tab_title,
|
|
79
79
|
variant: "mini"
|
|
80
80
|
}
|
|
81
81
|
),
|
|
82
|
-
tabIndex:
|
|
82
|
+
tabIndex: g === 0 ? 0 : -1
|
|
83
83
|
}
|
|
84
84
|
),
|
|
85
85
|
/* @__PURE__ */ t(
|
|
@@ -88,125 +88,129 @@ const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C,
|
|
|
88
88
|
"aria-controls": "income-tabpanel",
|
|
89
89
|
id: "income-tab",
|
|
90
90
|
label: /* @__PURE__ */ t(
|
|
91
|
-
|
|
91
|
+
B,
|
|
92
92
|
{
|
|
93
93
|
amount: m.totalAmount,
|
|
94
94
|
label: o.income_tab_title,
|
|
95
95
|
variant: "mini"
|
|
96
96
|
}
|
|
97
97
|
),
|
|
98
|
-
tabIndex:
|
|
98
|
+
tabIndex: g === 1 ? 0 : -1
|
|
99
99
|
}
|
|
100
100
|
)
|
|
101
101
|
]
|
|
102
102
|
}
|
|
103
103
|
),
|
|
104
104
|
/* @__PURE__ */ t(
|
|
105
|
-
|
|
105
|
+
w,
|
|
106
106
|
{
|
|
107
107
|
"aria-labelledby": "spending-tab",
|
|
108
|
-
hidden:
|
|
108
|
+
hidden: g !== 0,
|
|
109
109
|
id: "spending-tabpanel",
|
|
110
110
|
role: "tabpanel",
|
|
111
|
-
children: /* @__PURE__ */
|
|
111
|
+
children: /* @__PURE__ */ p(C, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
|
|
112
112
|
/* @__PURE__ */ t(
|
|
113
113
|
$,
|
|
114
114
|
{
|
|
115
115
|
data: u,
|
|
116
|
-
onSelected:
|
|
116
|
+
onSelected: y,
|
|
117
117
|
selectedId: e,
|
|
118
118
|
totalLabel: o.total_spending
|
|
119
119
|
}
|
|
120
120
|
),
|
|
121
|
-
/* @__PURE__ */ t(
|
|
121
|
+
/* @__PURE__ */ t(X, { data: u, onSelected: y, selectedId: e })
|
|
122
122
|
] })
|
|
123
123
|
}
|
|
124
124
|
),
|
|
125
125
|
/* @__PURE__ */ t(
|
|
126
|
-
|
|
126
|
+
w,
|
|
127
127
|
{
|
|
128
128
|
"aria-labelledby": "income-tab",
|
|
129
|
-
hidden:
|
|
129
|
+
hidden: g !== 1,
|
|
130
130
|
id: "income-tabpanel",
|
|
131
131
|
role: "tabpanel",
|
|
132
|
-
children: /* @__PURE__ */
|
|
132
|
+
children: /* @__PURE__ */ p(C, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
|
|
133
133
|
/* @__PURE__ */ t(
|
|
134
134
|
$,
|
|
135
135
|
{
|
|
136
136
|
data: m,
|
|
137
137
|
isIncome: !0,
|
|
138
|
-
onSelected:
|
|
138
|
+
onSelected: y,
|
|
139
139
|
selectedId: e,
|
|
140
140
|
totalLabel: o.total_income
|
|
141
141
|
}
|
|
142
142
|
),
|
|
143
|
-
/* @__PURE__ */ t(
|
|
143
|
+
/* @__PURE__ */ t(X, { data: m, onSelected: y, selectedId: e })
|
|
144
144
|
] })
|
|
145
145
|
}
|
|
146
146
|
)
|
|
147
147
|
] });
|
|
148
|
-
}, Et =
|
|
149
|
-
const { isAccountDataLoaded: o, loadAccountData: a } =
|
|
150
|
-
return
|
|
148
|
+
}, Et = L(At), Wt = ({ onPrimaryCtaClick: n, sx: d = {} }) => {
|
|
149
|
+
const { isAccountDataLoaded: o, loadAccountData: a } = lt(), { dateRangeTotalsLoaded: i, categoriesLoaded: c, loadCategories: e, loadDateRangeCategoryTotals: r } = A(), { spending: g } = I(), { isInitialized: b, selectedAccounts: u } = V();
|
|
150
|
+
return ct({
|
|
151
151
|
widgetName: "SpendingMiniWidget",
|
|
152
152
|
isLoaded: i
|
|
153
153
|
}), l.useEffect(() => {
|
|
154
|
-
o || a().finally(),
|
|
154
|
+
o || a().finally(), c || e().finally();
|
|
155
155
|
}, []), l.useEffect(() => {
|
|
156
156
|
r(
|
|
157
157
|
u,
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
ot(/* @__PURE__ */ new Date()),
|
|
159
|
+
at(/* @__PURE__ */ new Date())
|
|
160
160
|
).finally();
|
|
161
|
-
}, [u]),
|
|
162
|
-
|
|
161
|
+
}, [u]), b ? /* @__PURE__ */ t(
|
|
162
|
+
Ct,
|
|
163
163
|
{
|
|
164
164
|
className: "mx-exp-spending-miniwidget",
|
|
165
165
|
onPrimaryCtaClick: n,
|
|
166
|
-
primaryCtaLabel:
|
|
166
|
+
primaryCtaLabel: g.primary_cta,
|
|
167
167
|
sx: { height: "100%", ...d },
|
|
168
|
-
title:
|
|
168
|
+
title: g.mini_title,
|
|
169
169
|
children: /* @__PURE__ */ t(Et, {})
|
|
170
170
|
}
|
|
171
|
-
) : /* @__PURE__ */ t(
|
|
172
|
-
}, Ce =
|
|
171
|
+
) : /* @__PURE__ */ t(gt, {});
|
|
172
|
+
}, Ce = L(Wt), Rt = ({
|
|
173
173
|
data: n,
|
|
174
174
|
onSelected: d,
|
|
175
175
|
selectedId: o = "",
|
|
176
176
|
title: a
|
|
177
177
|
}) => {
|
|
178
|
-
const { spending: i } = I(),
|
|
179
|
-
return /* @__PURE__ */
|
|
178
|
+
const { spending: i } = I(), c = n.categoryData.find((e) => e.guid === o);
|
|
179
|
+
return /* @__PURE__ */ p(C, { direction: "column", justifyContent: "center", maxWidth: 400, minWidth: 275, width: "100%", children: [
|
|
180
180
|
/* @__PURE__ */ t(T, { bold: !0, id: "spending-list-title", sx: { py: 12 }, variant: "h3", children: `${a} ${i.by_category}` }),
|
|
181
|
-
/* @__PURE__ */ t(
|
|
182
|
-
/* @__PURE__ */ t(
|
|
181
|
+
/* @__PURE__ */ t(wt, { "aria-hidden": "true" }),
|
|
182
|
+
/* @__PURE__ */ t(q, { "aria-labelledby": "spending-list-title", children: n.categoryData.map((e) => /* @__PURE__ */ p(l.Fragment, { children: [
|
|
183
183
|
/* @__PURE__ */ t(
|
|
184
|
-
|
|
184
|
+
J,
|
|
185
185
|
{
|
|
186
186
|
disableGutters: !0,
|
|
187
187
|
disablePadding: !0,
|
|
188
188
|
sx: {
|
|
189
|
+
borderBottom: 1,
|
|
190
|
+
borderColor: "divider",
|
|
189
191
|
minHeight: 44
|
|
190
192
|
},
|
|
191
|
-
children: /* @__PURE__ */
|
|
192
|
-
|
|
193
|
+
children: /* @__PURE__ */ p(
|
|
194
|
+
Q,
|
|
193
195
|
{
|
|
194
|
-
"aria-expanded":
|
|
196
|
+
"aria-expanded": c?.guid === e.guid,
|
|
195
197
|
id: `spending-list-category-${e.guid}`,
|
|
196
198
|
onClick: () => d(e.guid),
|
|
197
199
|
sx: { minHeight: 44, px: 8, py: 0 },
|
|
198
200
|
children: [
|
|
199
201
|
/* @__PURE__ */ t(
|
|
200
|
-
|
|
202
|
+
w,
|
|
201
203
|
{
|
|
204
|
+
"aria-hidden": "true",
|
|
202
205
|
borderRadius: 4,
|
|
203
206
|
flexShrink: 0,
|
|
204
207
|
height: 8,
|
|
208
|
+
role: "presentation",
|
|
205
209
|
sx: { backgroundColor: e.color, mr: 8 },
|
|
206
210
|
width: 8
|
|
207
211
|
}
|
|
208
212
|
),
|
|
209
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ p(
|
|
210
214
|
C,
|
|
211
215
|
{
|
|
212
216
|
alignItems: "center",
|
|
@@ -224,47 +228,43 @@ const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C,
|
|
|
224
228
|
)
|
|
225
229
|
}
|
|
226
230
|
),
|
|
227
|
-
/* @__PURE__ */ t(
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
pl: 12,
|
|
234
|
-
py: 0
|
|
235
|
-
},
|
|
236
|
-
children: /* @__PURE__ */ t(
|
|
237
|
-
Z,
|
|
238
|
-
{
|
|
239
|
-
id: `spending-list-subcategory-${r.guid}`,
|
|
240
|
-
onClick: () => d(r.guid, !0),
|
|
241
|
-
sx: { minHeight: 44, px: 8, py: 0 },
|
|
242
|
-
children: /* @__PURE__ */ c(C, { direction: "row", justifyContent: "space-between", width: "100%", children: [
|
|
243
|
-
/* @__PURE__ */ c(T, { children: [
|
|
244
|
-
r.name,
|
|
245
|
-
" "
|
|
246
|
-
] }),
|
|
247
|
-
/* @__PURE__ */ t(T, { children: R(r.amount, "0,0.00") })
|
|
248
|
-
] })
|
|
249
|
-
}
|
|
250
|
-
)
|
|
231
|
+
e.categoryTotals && e.categoryTotals.length > 0 && /* @__PURE__ */ t(vt, { in: c?.guid === e.guid, unmountOnExit: !0, children: /* @__PURE__ */ t(q, { sx: { borderBottom: 1, borderColor: "divider" }, children: c?.categoryTotals?.map((r) => /* @__PURE__ */ t(
|
|
232
|
+
J,
|
|
233
|
+
{
|
|
234
|
+
sx: {
|
|
235
|
+
pl: 12,
|
|
236
|
+
py: 0
|
|
251
237
|
},
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
238
|
+
children: /* @__PURE__ */ t(
|
|
239
|
+
Q,
|
|
240
|
+
{
|
|
241
|
+
id: `spending-list-subcategory-${r.guid}`,
|
|
242
|
+
onClick: () => d(r.guid, !0),
|
|
243
|
+
sx: { minHeight: 44, px: 8, py: 0 },
|
|
244
|
+
children: /* @__PURE__ */ p(C, { direction: "row", justifyContent: "space-between", width: "100%", children: [
|
|
245
|
+
/* @__PURE__ */ p(T, { children: [
|
|
246
|
+
r.name,
|
|
247
|
+
" "
|
|
248
|
+
] }),
|
|
249
|
+
/* @__PURE__ */ t(T, { children: R(r.amount, "0,0.00") })
|
|
250
|
+
] })
|
|
251
|
+
}
|
|
252
|
+
)
|
|
253
|
+
},
|
|
254
|
+
r.guid
|
|
255
|
+
)) }) })
|
|
256
256
|
] }, e.guid)) }),
|
|
257
257
|
/* @__PURE__ */ t(T, { bold: !0, sx: { mt: 12, pr: 8, textAlign: "right" }, children: `${i.total}: ${R(n.totalAmount, "0,0.00")}` })
|
|
258
258
|
] });
|
|
259
|
-
}, Nt =
|
|
259
|
+
}, Nt = L(Rt), $t = ({
|
|
260
260
|
data: n,
|
|
261
261
|
onSelected: d,
|
|
262
262
|
onViewTransactions: o,
|
|
263
263
|
selectedId: a,
|
|
264
264
|
title: i
|
|
265
265
|
}) => {
|
|
266
|
-
const { isDesktop:
|
|
267
|
-
return /* @__PURE__ */
|
|
266
|
+
const { isDesktop: c, isMobile: e } = Lt(), { dateRangeTotalsLoading: r } = A(), { spending: g } = I();
|
|
267
|
+
return /* @__PURE__ */ p(
|
|
268
268
|
C,
|
|
269
269
|
{
|
|
270
270
|
alignItems: e ? "center" : "flex-start",
|
|
@@ -285,7 +285,7 @@ const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C,
|
|
|
285
285
|
onSelected: () => {
|
|
286
286
|
},
|
|
287
287
|
selectedId: "",
|
|
288
|
-
size:
|
|
288
|
+
size: c ? 400 : 300,
|
|
289
289
|
totalLabel: "Loading ...",
|
|
290
290
|
variant: "full"
|
|
291
291
|
}
|
|
@@ -299,8 +299,8 @@ const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C,
|
|
|
299
299
|
},
|
|
300
300
|
onViewTransactions: o,
|
|
301
301
|
selectedId: a,
|
|
302
|
-
size:
|
|
303
|
-
totalLabel:
|
|
302
|
+
size: c ? 400 : 300,
|
|
303
|
+
totalLabel: g.total_amount,
|
|
304
304
|
variant: "full"
|
|
305
305
|
}
|
|
306
306
|
),
|
|
@@ -308,81 +308,81 @@ const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C,
|
|
|
308
308
|
]
|
|
309
309
|
}
|
|
310
310
|
);
|
|
311
|
-
},
|
|
311
|
+
}, nt = L($t), Bt = (n) => [
|
|
312
312
|
n.palette.chartMono.chartMono5,
|
|
313
313
|
n.palette.chartMono.chartMono4,
|
|
314
314
|
n.palette.chartMono.chartMono3,
|
|
315
315
|
n.palette.chartMono.chartMono2,
|
|
316
316
|
n.palette.chartMono.chartMono1,
|
|
317
317
|
n.palette.chartMono.chartMono6
|
|
318
|
-
],
|
|
319
|
-
const n =
|
|
320
|
-
goals:
|
|
318
|
+
], Ot = () => {
|
|
319
|
+
const n = Tt(), { is_mobile_webview: d } = F(), { clientConfig: o } = F(), { categories: a, dateRangeCategoryTotals: i } = A(), {
|
|
320
|
+
goals: c,
|
|
321
321
|
spending: e,
|
|
322
322
|
transactions: r
|
|
323
|
-
} = I(), { displayedDateRange:
|
|
323
|
+
} = I(), { displayedDateRange: g, selectedAccountGuids: b } = V(), {
|
|
324
324
|
setFilter: u,
|
|
325
325
|
sortedTransactions: m,
|
|
326
326
|
sortedTransactionsWithSplits: M,
|
|
327
|
-
tags:
|
|
328
|
-
} = dt(), f = o?.master?.deep_link_params?.account_guids, D = o?.master?.deep_link_params?.view, [x, E] = l.useState(""), [_, W] = l.useState(D === "income" ? 1 : 0), [
|
|
329
|
-
() =>
|
|
327
|
+
tags: y
|
|
328
|
+
} = dt(), f = o?.master?.deep_link_params?.account_guids, D = o?.master?.deep_link_params?.view, [x, E] = l.useState(""), [_, W] = l.useState(D === "income" ? 1 : 0), [z, H] = l.useState(""), [pt, O] = l.useState(!1), k = l.useMemo(
|
|
329
|
+
() => rt(a, c, n, i),
|
|
330
330
|
[a, i]
|
|
331
|
-
),
|
|
332
|
-
() =>
|
|
331
|
+
), P = l.useMemo(
|
|
332
|
+
() => st(a, i, Bt(n)),
|
|
333
333
|
[a, i]
|
|
334
334
|
), G = l.useMemo(
|
|
335
|
-
() => m.find((s) => s.guid ===
|
|
336
|
-
[
|
|
337
|
-
),
|
|
335
|
+
() => m.find((s) => s.guid === z),
|
|
336
|
+
[z, m]
|
|
337
|
+
), ut = (s, S) => {
|
|
338
338
|
W(S), E("");
|
|
339
|
-
},
|
|
340
|
-
S ?
|
|
341
|
-
},
|
|
339
|
+
}, K = (s, S = !1) => {
|
|
340
|
+
S ? mt(s) : E(x === s || s === "0" ? "" : s);
|
|
341
|
+
}, mt = (s) => {
|
|
342
342
|
u({
|
|
343
343
|
...{
|
|
344
|
-
accounts: f ||
|
|
345
|
-
dateRange:
|
|
344
|
+
accounts: f || b,
|
|
345
|
+
dateRange: g
|
|
346
346
|
},
|
|
347
347
|
custom: (h) => x === "other" ? h.top_level_category_guid === s : h.category_guid === s,
|
|
348
348
|
showSplits: !0
|
|
349
|
-
}),
|
|
350
|
-
},
|
|
349
|
+
}), O(!0);
|
|
350
|
+
}, U = (s) => {
|
|
351
351
|
const S = {
|
|
352
|
-
accounts: f ||
|
|
353
|
-
dateRange:
|
|
352
|
+
accounts: f || b,
|
|
353
|
+
dateRange: g
|
|
354
354
|
};
|
|
355
355
|
if (_ === 0)
|
|
356
356
|
if (s === "other") {
|
|
357
|
-
const h =
|
|
357
|
+
const h = k.categoryData.find((j) => j.guid === "other");
|
|
358
358
|
u({
|
|
359
359
|
...S,
|
|
360
|
-
custom: (j) => !!h?.categoryTotals?.find((
|
|
360
|
+
custom: (j) => !!h?.categoryTotals?.find((ft) => ft.guid === j.top_level_category_guid)
|
|
361
361
|
});
|
|
362
362
|
} else
|
|
363
363
|
u({
|
|
364
364
|
...S,
|
|
365
|
-
custom: (h) => s ? h.top_level_category_guid === s : h.top_level_category_guid !==
|
|
365
|
+
custom: (h) => s ? h.top_level_category_guid === s : h.top_level_category_guid !== v.INCOME && h.category_guid !== v.INCOME && h.top_level_category_guid !== v.INVESTMENTS && h.top_level_category_guid !== v.TRANSFER,
|
|
366
366
|
showSplits: !!s
|
|
367
367
|
});
|
|
368
368
|
else
|
|
369
369
|
u({
|
|
370
370
|
...S,
|
|
371
|
-
custom: (h) => s ? h.category_guid === s : h.category_guid ===
|
|
371
|
+
custom: (h) => s ? h.category_guid === s : h.category_guid === v.INCOME || h.top_level_category_guid === v.INCOME
|
|
372
372
|
});
|
|
373
|
-
|
|
374
|
-
},
|
|
375
|
-
|
|
373
|
+
O(!0);
|
|
374
|
+
}, ht = () => {
|
|
375
|
+
Mt(M, y);
|
|
376
376
|
};
|
|
377
|
-
return /* @__PURE__ */
|
|
378
|
-
/* @__PURE__ */
|
|
377
|
+
return /* @__PURE__ */ p(w, { children: [
|
|
378
|
+
/* @__PURE__ */ p(it, { onChange: ut, value: _, variant: "fullWidth", children: [
|
|
379
379
|
/* @__PURE__ */ t(
|
|
380
380
|
N,
|
|
381
381
|
{
|
|
382
382
|
label: /* @__PURE__ */ t(
|
|
383
|
-
|
|
383
|
+
B,
|
|
384
384
|
{
|
|
385
|
-
amount:
|
|
385
|
+
amount: k.totalAmount,
|
|
386
386
|
label: e.spend_tab_title
|
|
387
387
|
}
|
|
388
388
|
)
|
|
@@ -392,9 +392,9 @@ const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C,
|
|
|
392
392
|
N,
|
|
393
393
|
{
|
|
394
394
|
label: /* @__PURE__ */ t(
|
|
395
|
-
|
|
395
|
+
B,
|
|
396
396
|
{
|
|
397
|
-
amount:
|
|
397
|
+
amount: P.totalAmount,
|
|
398
398
|
label: e.income_tab_title
|
|
399
399
|
}
|
|
400
400
|
)
|
|
@@ -402,65 +402,65 @@ const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C,
|
|
|
402
402
|
)
|
|
403
403
|
] }),
|
|
404
404
|
_ === 0 && /* @__PURE__ */ t(
|
|
405
|
-
|
|
405
|
+
nt,
|
|
406
406
|
{
|
|
407
|
-
data:
|
|
408
|
-
onSelected:
|
|
409
|
-
onViewTransactions:
|
|
407
|
+
data: k,
|
|
408
|
+
onSelected: K,
|
|
409
|
+
onViewTransactions: U,
|
|
410
410
|
selectedId: x,
|
|
411
411
|
title: e.spend_tab_title
|
|
412
412
|
}
|
|
413
413
|
),
|
|
414
414
|
_ === 1 && /* @__PURE__ */ t(
|
|
415
|
-
|
|
415
|
+
nt,
|
|
416
416
|
{
|
|
417
|
-
data:
|
|
418
|
-
onSelected:
|
|
419
|
-
onViewTransactions:
|
|
417
|
+
data: P,
|
|
418
|
+
onSelected: K,
|
|
419
|
+
onViewTransactions: U,
|
|
420
420
|
selectedId: x,
|
|
421
421
|
title: e.income_tab_title
|
|
422
422
|
}
|
|
423
423
|
),
|
|
424
424
|
/* @__PURE__ */ t(
|
|
425
|
-
|
|
425
|
+
Z,
|
|
426
426
|
{
|
|
427
427
|
ariaLabelClose: e.close_drawer_aria,
|
|
428
|
-
isOpen:
|
|
429
|
-
onClose: () =>
|
|
428
|
+
isOpen: pt,
|
|
429
|
+
onClose: () => O(!1),
|
|
430
430
|
title: e.transactions_drawer_title,
|
|
431
|
-
children: /* @__PURE__ */
|
|
431
|
+
children: /* @__PURE__ */ p(C, { children: [
|
|
432
432
|
!d && m.length > 0 && /* @__PURE__ */ t(C, { direction: "row", justifyContent: "right", mb: -24, mr: 8, mt: 8, zIndex: 1, children: /* @__PURE__ */ t(
|
|
433
|
-
|
|
433
|
+
St,
|
|
434
434
|
{
|
|
435
|
-
onClick:
|
|
435
|
+
onClick: ht,
|
|
436
436
|
startIcon: /* @__PURE__ */ t(bt, { name: "ios_share" }),
|
|
437
437
|
variant: "text",
|
|
438
438
|
children: r.export_csv_btn
|
|
439
439
|
}
|
|
440
440
|
) }),
|
|
441
|
-
/* @__PURE__ */ t(
|
|
441
|
+
/* @__PURE__ */ t(Dt, { onClick: H })
|
|
442
442
|
] })
|
|
443
443
|
}
|
|
444
444
|
),
|
|
445
445
|
/* @__PURE__ */ t(
|
|
446
|
-
|
|
446
|
+
Z,
|
|
447
447
|
{
|
|
448
448
|
ariaLabelClose: e.close_drawer_aria,
|
|
449
449
|
isOpen: !!G,
|
|
450
|
-
onClose: () =>
|
|
450
|
+
onClose: () => H(""),
|
|
451
451
|
title: e.transaction_details_drawer_title,
|
|
452
|
-
children: G && /* @__PURE__ */ t(
|
|
452
|
+
children: G && /* @__PURE__ */ t(xt, { transaction: G })
|
|
453
453
|
}
|
|
454
454
|
)
|
|
455
455
|
] });
|
|
456
|
-
},
|
|
457
|
-
const { isAccountDataLoaded: o, loadAccountData: a } =
|
|
458
|
-
|
|
456
|
+
}, kt = L(Ot), Gt = ({ onBackClick: n, sx: d = {} }) => {
|
|
457
|
+
const { isAccountDataLoaded: o, loadAccountData: a } = lt(), { categoriesLoaded: i, dateRangeTotalsLoaded: c, loadCategories: e, loadDateRangeCategoryTotals: r } = A(), { isTransactionDataLoaded: g, loadTransactionData: b } = dt(), { spending: u } = I(), { displayedDateRange: m, isInitialized: M, setDisplayedDate: y, selectedAccounts: f } = V(), { onEvent: D } = yt(), { clientConfig: x } = F();
|
|
458
|
+
ct({
|
|
459
459
|
widgetName: "SpendingWidget",
|
|
460
|
-
isLoaded:
|
|
460
|
+
isLoaded: c
|
|
461
461
|
}), l.useEffect(() => {
|
|
462
|
-
const _ = x?.master?.deep_link_params, W = _?.date_range ? [
|
|
463
|
-
|
|
462
|
+
const _ = x?.master?.deep_link_params, W = _?.date_range ? [tt(_.date_range.from), tt(_.date_range.to)] : [ot(Y()), at(Y())];
|
|
463
|
+
y(W[0], W[1]), o || a().finally(), i || e().finally(), g || b().finally(), D(et.SPENDING_VIEW);
|
|
464
464
|
}, []), l.useEffect(() => {
|
|
465
465
|
M && r(
|
|
466
466
|
f,
|
|
@@ -469,20 +469,20 @@ const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C,
|
|
|
469
469
|
).finally();
|
|
470
470
|
}, [m, M, f]);
|
|
471
471
|
const E = (_) => {
|
|
472
|
-
|
|
472
|
+
y(_[0], _[1]);
|
|
473
473
|
};
|
|
474
474
|
return M ? /* @__PURE__ */ t(
|
|
475
475
|
It,
|
|
476
476
|
{
|
|
477
477
|
calendarActions: { onRangeChanged: E },
|
|
478
|
-
onAccountsFilterClick: () => D(
|
|
478
|
+
onAccountsFilterClick: () => D(et.SPENDING_CLICK_FILTER),
|
|
479
479
|
onBackClick: n,
|
|
480
480
|
sx: d,
|
|
481
481
|
title: u.title,
|
|
482
|
-
children: /* @__PURE__ */ t(
|
|
482
|
+
children: /* @__PURE__ */ t(w, { width: "100%", children: /* @__PURE__ */ t(kt, {}) })
|
|
483
483
|
}
|
|
484
|
-
) : /* @__PURE__ */ t(
|
|
485
|
-
}, Se =
|
|
484
|
+
) : /* @__PURE__ */ t(gt, {});
|
|
485
|
+
}, Se = L(Gt);
|
|
486
486
|
export {
|
|
487
487
|
Ce as SpendingMiniWidget,
|
|
488
488
|
Se as SpendingWidget
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as Sa } from "../TransactionApi-Ck5Ua-7F.mjs";
|
|
2
|
-
import { C as Me, D as Le, M as Re, a as He, T as Pe } from "../TransactionDetails-
|
|
3
|
-
import { B as Da, b as Ia } from "../TransactionDetails-
|
|
2
|
+
import { C as Me, D as Le, M as Re, a as He, T as Pe } from "../TransactionDetails-BYRG9GZt.mjs";
|
|
3
|
+
import { B as Da, b as Ia } from "../TransactionDetails-BYRG9GZt.mjs";
|
|
4
4
|
import { T as E } from "../Transaction-CqjlF6SO.mjs";
|
|
5
5
|
import { O as Na } from "../Transaction-CqjlF6SO.mjs";
|
|
6
6
|
import { S as Z, D as Be } from "../TransactionStore-DP5vipL2.mjs";
|
package/dist/trends/index.es.js
CHANGED
|
@@ -36,7 +36,7 @@ import Xt from "@mui/material/Badge";
|
|
|
36
36
|
import Zt from "@mui/material/IconButton";
|
|
37
37
|
import { A as v } from "../Analytics-BYItVAe-.mjs";
|
|
38
38
|
import { T as ct } from "../StatusIndicator-BV3oFzxo.mjs";
|
|
39
|
-
import { T as dt } from "../TransactionDetails-
|
|
39
|
+
import { T as dt } from "../TransactionDetails-BYRG9GZt.mjs";
|
|
40
40
|
import { D as We } from "../Drawer-DV4NTsFg.mjs";
|
|
41
41
|
import { u as Ie } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
42
42
|
import { L as Le } from "../Loader-D3rjKx72.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-cartographer/experiences",
|
|
3
|
-
"version": "7.12.
|
|
3
|
+
"version": "7.12.12",
|
|
4
4
|
"description": "Library containing experience widgets",
|
|
5
5
|
"author": "MX",
|
|
6
6
|
"license": "MIT",
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
"@mui/x-date-pickers-pro": "^7.29.4",
|
|
194
194
|
"@mxenabled/cssinjs": "^0.6.0",
|
|
195
195
|
"@mxenabled/mx-icons": "^1.5.1",
|
|
196
|
-
"@mxenabled/mxui": "^1.5.
|
|
196
|
+
"@mxenabled/mxui": "^1.5.13",
|
|
197
197
|
"@mxenabled/web-widget-sdk": "^0.0.13",
|
|
198
198
|
"@tanstack/react-virtual": "^3.13.2",
|
|
199
199
|
"bowser": "^2.11.0",
|