@mx-cartographer/experiences 8.1.8 → 8.1.9-alpha.al0
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/{Donut-D7ekbgf5.mjs → Donut-SzzfZDHF.mjs} +11 -11
- package/dist/{MiniWidgetContainer-CmTGSUL5.mjs → MiniWidgetContainer-BS4iG6cw.mjs} +18 -18
- package/dist/{SpendingLegend-DIWHSsKw.mjs → SpendingLegend-x3K9eXrQ.mjs} +6 -6
- package/dist/accounts/index.es.js +1 -1
- package/dist/analytics/index.es.js +1 -1
- package/dist/budgets/index.es.js +86 -78
- package/dist/cashflow/index.es.js +1 -1
- package/dist/common/index.es.js +2 -2
- package/dist/finstrong/index.es.js +1 -1
- package/dist/investments/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +1 -1
- package/dist/spending/index.es.js +41 -40
- package/dist/trends/index.es.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { selectAll as b, interpolateString as
|
|
2
|
+
import R from "react";
|
|
3
|
+
import { selectAll as b, interpolateString as m, arc as x } from "d3";
|
|
4
4
|
import u from "@mui/material/Box";
|
|
5
|
-
import { useTheme as
|
|
5
|
+
import { useTheme as I, darken as S, lighten as E } from "@mui/material/styles";
|
|
6
6
|
const _ = 100, v = 140, B = 10, K = ({
|
|
7
7
|
data: h,
|
|
8
8
|
hoveredId: p,
|
|
@@ -13,7 +13,7 @@ const _ = 100, v = 140, B = 10, K = ({
|
|
|
13
13
|
size: t = 300,
|
|
14
14
|
children: f
|
|
15
15
|
}) => {
|
|
16
|
-
const c =
|
|
16
|
+
const c = I();
|
|
17
17
|
let r = 0;
|
|
18
18
|
const g = (o, n) => {
|
|
19
19
|
(o.key === "Enter" || o.key === " ") && (o.preventDefault(), a?.(n));
|
|
@@ -22,15 +22,15 @@ const _ = 100, v = 140, B = 10, K = ({
|
|
|
22
22
|
}, k = (o) => {
|
|
23
23
|
s?.(o);
|
|
24
24
|
};
|
|
25
|
-
return
|
|
26
|
-
b(".arc-outer").transition("roll").duration(500).attrTween("transform", () =>
|
|
25
|
+
return R.useEffect(() => {
|
|
26
|
+
b(".arc-outer").transition("roll").duration(500).attrTween("transform", () => m("rotate(0)", "rotate(360)"));
|
|
27
27
|
}, []), /* @__PURE__ */ d(u, { height: t, position: "relative", width: t, children: [
|
|
28
28
|
/* @__PURE__ */ e(u, { height: "100%", width: "100%", children: f }),
|
|
29
29
|
/* @__PURE__ */ d(
|
|
30
30
|
"svg",
|
|
31
31
|
{
|
|
32
32
|
height: t,
|
|
33
|
-
style: { position: "absolute", top: 0, left: 0 },
|
|
33
|
+
style: { position: "absolute", top: 0, left: 0, touchAction: "manipulation" },
|
|
34
34
|
viewBox: "-150 -150 300 300",
|
|
35
35
|
width: t,
|
|
36
36
|
children: [
|
|
@@ -45,7 +45,7 @@ const _ = 100, v = 140, B = 10, K = ({
|
|
|
45
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 w = r,
|
|
48
|
+
const w = r, A = x().cornerRadius(4)({
|
|
49
49
|
innerRadius: _,
|
|
50
50
|
outerRadius: v + (o.id === i || o.id === p ? B : 0),
|
|
51
51
|
startAngle: n,
|
|
@@ -58,16 +58,16 @@ const _ = 100, v = 140, B = 10, K = ({
|
|
|
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: A,
|
|
62
62
|
fill: o.color,
|
|
63
63
|
onBlur: () => k(o.id),
|
|
64
64
|
onClick: () => a?.(o.id),
|
|
65
65
|
onFocus: () => y(o.id),
|
|
66
|
-
onKeyDown: (
|
|
66
|
+
onKeyDown: (D) => g(D, o.id),
|
|
67
67
|
onMouseEnter: () => l?.(o.id),
|
|
68
68
|
onMouseLeave: () => s?.(o.id),
|
|
69
69
|
role: "button",
|
|
70
|
-
stroke: c.palette.mode === "light" ?
|
|
70
|
+
stroke: c.palette.mode === "light" ? S(o.color, 0.3) : E(o.color, 0.3),
|
|
71
71
|
strokeWidth: 2,
|
|
72
72
|
style: {
|
|
73
73
|
cursor: "pointer",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { jsxs as r, jsx as i, Fragment as g } from "react/jsx-runtime";
|
|
2
|
+
import u from "@mui/material/Box";
|
|
3
|
+
import b from "@mui/material/Button";
|
|
4
4
|
import C from "@mui/material/Card";
|
|
5
5
|
import v from "@mui/material/CardHeader";
|
|
6
6
|
import z from "@mui/material/CardContent";
|
|
@@ -14,8 +14,8 @@ const J = ({
|
|
|
14
14
|
className: m = "mx-cmn-mini-widget",
|
|
15
15
|
closeLabel: l,
|
|
16
16
|
contentStyles: d,
|
|
17
|
-
onClose:
|
|
18
|
-
onPrimaryCtaClick:
|
|
17
|
+
onClose: o,
|
|
18
|
+
onPrimaryCtaClick: e,
|
|
19
19
|
primaryCtaLabel: s = "",
|
|
20
20
|
primaryCtaLabelAria: c = "",
|
|
21
21
|
subTitle: t = "",
|
|
@@ -23,14 +23,14 @@ const J = ({
|
|
|
23
23
|
title: n = ""
|
|
24
24
|
}) => {
|
|
25
25
|
const [h, { height: f, width: x }] = w();
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ r(C, { className: m, sx: { touchAction: "manipulation", ...p }, children: [
|
|
27
|
+
/* @__PURE__ */ i(
|
|
28
28
|
v,
|
|
29
29
|
{
|
|
30
30
|
sx: { pb: 8 },
|
|
31
|
-
title: /* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
|
|
31
|
+
title: /* @__PURE__ */ r(g, { children: [
|
|
32
|
+
/* @__PURE__ */ r(
|
|
33
|
+
u,
|
|
34
34
|
{
|
|
35
35
|
sx: {
|
|
36
36
|
alignItems: "center",
|
|
@@ -40,25 +40,25 @@ const J = ({
|
|
|
40
40
|
pb: 4
|
|
41
41
|
},
|
|
42
42
|
children: [
|
|
43
|
-
n && /* @__PURE__ */
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
n && /* @__PURE__ */ i(y, { children: n }),
|
|
44
|
+
o ? /* @__PURE__ */ i(H, { "aria-label": l, onClick: o, size: "small", children: /* @__PURE__ */ i(I, { name: "close", size: 24 }) }) : e && /* @__PURE__ */ i(
|
|
45
|
+
b,
|
|
46
46
|
{
|
|
47
47
|
"aria-label": c,
|
|
48
|
-
endIcon: /* @__PURE__ */
|
|
49
|
-
onClick:
|
|
48
|
+
endIcon: /* @__PURE__ */ i(W, {}),
|
|
49
|
+
onClick: e,
|
|
50
50
|
size: "small",
|
|
51
|
-
children: /* @__PURE__ */
|
|
51
|
+
children: /* @__PURE__ */ i(B, { bold: !0, variant: "body2", children: s })
|
|
52
52
|
}
|
|
53
53
|
)
|
|
54
54
|
]
|
|
55
55
|
}
|
|
56
56
|
),
|
|
57
|
-
t && /* @__PURE__ */
|
|
57
|
+
t && /* @__PURE__ */ i(j, { color: "text.secondary", sx: { fontSize: 15, lineHeight: "20px" }, variant: "body2", children: t })
|
|
58
58
|
] })
|
|
59
59
|
}
|
|
60
60
|
),
|
|
61
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ i(z, { ref: h, sx: { p: 0, ...d }, children: /* @__PURE__ */ i(M, { availableHeight: f, availableWidth: x, children: a }) })
|
|
62
62
|
] });
|
|
63
63
|
};
|
|
64
64
|
export {
|
|
@@ -4,11 +4,11 @@ import { jsxs as f, Fragment as N, jsx as d } from "react/jsx-runtime";
|
|
|
4
4
|
import T from "react";
|
|
5
5
|
import { observer as k } from "mobx-react-lite";
|
|
6
6
|
import S from "@mui/material/Box";
|
|
7
|
-
import
|
|
7
|
+
import A from "@mui/material/Button";
|
|
8
8
|
import h from "@mui/material/Stack";
|
|
9
|
-
import { useTheme as
|
|
9
|
+
import { useTheme as M } from "@mui/material/styles";
|
|
10
10
|
import { CategoryIcon as G, CategoryIconVariants as O, Text as y, P as $ } from "@mxenabled/mxui";
|
|
11
|
-
import { D as j } from "./Donut-
|
|
11
|
+
import { D as j } from "./Donut-SzzfZDHF.mjs";
|
|
12
12
|
import { u as R } from "./useAriaLive-MkYebyUR.mjs";
|
|
13
13
|
import { u as v } from "./hooks-HwStH7q_.mjs";
|
|
14
14
|
import { u as V } from "./useScreenSize-CeFhWTt_.mjs";
|
|
@@ -99,7 +99,7 @@ const D = 5, B = (i, l, g, m) => m.reduce((o, n) => {
|
|
|
99
99
|
totalLabel: a,
|
|
100
100
|
variant: t = "mini"
|
|
101
101
|
}) => {
|
|
102
|
-
const { spending: r } = v(), c =
|
|
102
|
+
const { spending: r } = v(), c = M(), { isTablet: e } = V(), { announce: s, ariaLive: C } = R(), u = T.useMemo(
|
|
103
103
|
() => o ? i.categoryData.find((x) => x.guid === o) : void 0,
|
|
104
104
|
[o]
|
|
105
105
|
);
|
|
@@ -148,7 +148,7 @@ const D = 5, B = (i, l, g, m) => m.reduce((o, n) => {
|
|
|
148
148
|
/* @__PURE__ */ d($, { variant: t === "mini" ? "h2" : "h1", children: u ? b(u.amount, t === "mini" ? "0,0" : "0,0.00") : b(i.totalAmount, t === "mini" ? "0,0" : "0,0.00") }),
|
|
149
149
|
!u && t === "mini" && /* @__PURE__ */ d(y, { color: "text.secondary", noWrap: !0, variant: "tiny", children: a }),
|
|
150
150
|
t === "full" && /* @__PURE__ */ d(
|
|
151
|
-
|
|
151
|
+
A,
|
|
152
152
|
{
|
|
153
153
|
"aria-label": `View ${u?.name || ""} Transactions`,
|
|
154
154
|
disabled: i.categoryData.length === 0,
|
|
@@ -175,7 +175,7 @@ const D = 5, B = (i, l, g, m) => m.reduce((o, n) => {
|
|
|
175
175
|
onClick: () => l(o.guid),
|
|
176
176
|
onKeyDown: (n) => m(n, o.guid),
|
|
177
177
|
role: "button",
|
|
178
|
-
sx: { cursor: "pointer" },
|
|
178
|
+
sx: { cursor: "pointer", touchAction: "manipulation" },
|
|
179
179
|
tabIndex: 0,
|
|
180
180
|
children: [
|
|
181
181
|
/* @__PURE__ */ d(S, { borderRadius: 4, height: 8, sx: { backgroundColor: o.color }, width: 8 }),
|
|
@@ -64,7 +64,7 @@ import { u as b1 } from "../useScreenSize-CeFhWTt_.mjs";
|
|
|
64
64
|
import { u as o1 } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
|
|
65
65
|
import { L as i1 } from "../Loader-CxeBwuPG.mjs";
|
|
66
66
|
import { W as d3 } from "../WidgetContainer-_Fzy--dt.mjs";
|
|
67
|
-
import { M as A1 } from "../MiniWidgetContainer-
|
|
67
|
+
import { M as A1 } from "../MiniWidgetContainer-BS4iG6cw.mjs";
|
|
68
68
|
import { A as r2 } from "../AccountStore-B3S_p5Qa.mjs";
|
|
69
69
|
const u3 = (t, o) => {
|
|
70
70
|
const n = f1.includes(o) ? S1(t) : [], c = g1.includes(o) ? T1(t) : [], i = H1.includes(o) ? E1(t) : [];
|
|
@@ -7,7 +7,7 @@ import j from "@mui/material/Button";
|
|
|
7
7
|
import s from "@mui/material/Stack";
|
|
8
8
|
import { Text as u, TextField as A } from "@mxenabled/mxui";
|
|
9
9
|
import { L } from "../Loader-CxeBwuPG.mjs";
|
|
10
|
-
import { M as W } from "../MiniWidgetContainer-
|
|
10
|
+
import { M as W } from "../MiniWidgetContainer-BS4iG6cw.mjs";
|
|
11
11
|
import { j as f, u as g, g as $, b as q } from "../hooks-HwStH7q_.mjs";
|
|
12
12
|
import E from "@mui/material/ToggleButton";
|
|
13
13
|
import Q from "@mui/material/ToggleButtonGroup";
|
package/dist/budgets/index.es.js
CHANGED
|
@@ -5,9 +5,9 @@ import { endOfMonth as Be } from "date-fns/endOfMonth";
|
|
|
5
5
|
import { isAfter as Ye } from "date-fns/isAfter";
|
|
6
6
|
import { startOfMonth as se } from "date-fns/startOfMonth";
|
|
7
7
|
import { startOfToday as ae } from "date-fns/startOfToday";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
8
|
+
import Ae from "@mui/material/Alert";
|
|
9
|
+
import xe from "@mui/material/Snackbar";
|
|
10
|
+
import x from "@mui/material/Stack";
|
|
11
11
|
import ce from "@mui/material/styles/useTheme";
|
|
12
12
|
import Y from "@mui/material/Box";
|
|
13
13
|
import X from "@mui/material/List";
|
|
@@ -50,22 +50,22 @@ import { M as ct } from "../ManageIncome-n1ueMTrW.mjs";
|
|
|
50
50
|
import { u as ze } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
|
|
51
51
|
import { W as lt } from "../WidgetContainer-_Fzy--dt.mjs";
|
|
52
52
|
import { u as dt, l as ut, d as mt } from "../BudgetUtil-DalEN9--.mjs";
|
|
53
|
-
import { M as gt } from "../MiniWidgetContainer-
|
|
53
|
+
import { M as gt } from "../MiniWidgetContainer-BS4iG6cw.mjs";
|
|
54
54
|
import { b as we } from "../CategoryUtil-BJOHgYKS.mjs";
|
|
55
55
|
const pt = I(() => {
|
|
56
56
|
const { budgets: t } = E(), { totalBudgeted: n } = w(), { incomeTotal: c } = le(), i = c - n;
|
|
57
|
-
return /* @__PURE__ */ m(
|
|
58
|
-
/* @__PURE__ */ m(
|
|
57
|
+
return /* @__PURE__ */ m(x, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
|
|
58
|
+
/* @__PURE__ */ m(x, { alignItems: "center", children: [
|
|
59
59
|
/* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: D(c, "0,0") }),
|
|
60
60
|
/* @__PURE__ */ e(C, { color: "secondary", variant: "body2", children: t.projected_income })
|
|
61
61
|
] }),
|
|
62
62
|
/* @__PURE__ */ e(C, { bold: !0, justifyContent: "center", variant: "body1", children: "-" }),
|
|
63
|
-
/* @__PURE__ */ m(
|
|
63
|
+
/* @__PURE__ */ m(x, { alignItems: "center", children: [
|
|
64
64
|
/* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: D(n, "0,0") }),
|
|
65
65
|
/* @__PURE__ */ e(C, { color: "secondary", variant: "body2", children: t.budgeted })
|
|
66
66
|
] }),
|
|
67
67
|
/* @__PURE__ */ e(C, { bold: !0, justifyContent: "center", variant: "body1", children: "=" }),
|
|
68
|
-
/* @__PURE__ */ m(
|
|
68
|
+
/* @__PURE__ */ m(x, { alignItems: "center", children: [
|
|
69
69
|
/* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: D(i, "0,0") }),
|
|
70
70
|
/* @__PURE__ */ e(C, { color: "secondary", variant: "body2", children: t.remaining })
|
|
71
71
|
] })
|
|
@@ -99,8 +99,8 @@ const pt = I(() => {
|
|
|
99
99
|
onClose: () => r(!1),
|
|
100
100
|
onPrimaryAction: d,
|
|
101
101
|
title: n.recalculate_title,
|
|
102
|
-
children: /* @__PURE__ */ m(
|
|
103
|
-
/* @__PURE__ */ m(
|
|
102
|
+
children: /* @__PURE__ */ m(x, { children: [
|
|
103
|
+
/* @__PURE__ */ m(x, { mx: 24, my: 16, children: [
|
|
104
104
|
/* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: n.recalculate_description_top }),
|
|
105
105
|
/* @__PURE__ */ e(C, { variant: "subtitle2", children: n.recalculate_description_bottom })
|
|
106
106
|
] }),
|
|
@@ -115,8 +115,8 @@ const pt = I(() => {
|
|
|
115
115
|
onAmountChanged: c
|
|
116
116
|
}) => {
|
|
117
117
|
const { budgets: i } = E(), { totalBudgeted: a } = w(), { incomeTotal: s } = le(), o = s - a;
|
|
118
|
-
return /* @__PURE__ */ m(
|
|
119
|
-
/* @__PURE__ */ m(
|
|
118
|
+
return /* @__PURE__ */ m(x, { gap: 16, children: [
|
|
119
|
+
/* @__PURE__ */ m(x, { children: [
|
|
120
120
|
/* @__PURE__ */ e(C, { children: R(
|
|
121
121
|
i.add_description_top,
|
|
122
122
|
D(o, "0,0")
|
|
@@ -168,7 +168,7 @@ const pt = I(() => {
|
|
|
168
168
|
const { budgets: c } = E(), { addBudget: i, setAlert: a, unbudgetedCategories: s } = w(), o = async (r, p) => {
|
|
169
169
|
await i(r, p), t?.(), a(R(c.alert_budget_created, r.name));
|
|
170
170
|
};
|
|
171
|
-
return /* @__PURE__ */ m(
|
|
171
|
+
return /* @__PURE__ */ m(x, { children: [
|
|
172
172
|
/* @__PURE__ */ e(pt, {}),
|
|
173
173
|
/* @__PURE__ */ e(Y, { bgcolor: "background.paper", children: /* @__PURE__ */ e(X, { children: s.map((r) => /* @__PURE__ */ e(
|
|
174
174
|
ft,
|
|
@@ -225,7 +225,7 @@ const pt = I(() => {
|
|
|
225
225
|
};
|
|
226
226
|
});
|
|
227
227
|
return O.forceSimulation(a).velocityDecay(0.05).force("collide", O.forceCollide((s) => s.radius + 2).strength(0.7));
|
|
228
|
-
},
|
|
228
|
+
}, At = (t, n, c) => {
|
|
229
229
|
const a = Math.PI * ie ** 2 * t, s = c < 400 || n < 300, o = s ? 40 : 20, r = Math.max(100, c - o), p = Math.max(100, n - o), d = r * p;
|
|
230
230
|
let u = ie;
|
|
231
231
|
if (a < d) {
|
|
@@ -233,11 +233,11 @@ const pt = I(() => {
|
|
|
233
233
|
u = Math.min(Ue, g, h);
|
|
234
234
|
}
|
|
235
235
|
return s && t <= 3 && (u = Math.min(u, 45)), { minRadius: Math.max(20, u * 0.6), maxRadius: u };
|
|
236
|
-
},
|
|
237
|
-
const { maxRadius: s, minRadius: o } =
|
|
236
|
+
}, xt = (t, n, c, i, a) => {
|
|
237
|
+
const { maxRadius: s, minRadius: o } = At(t, n, a);
|
|
238
238
|
return O.scaleLinear().domain([i, c]).range([o, s]);
|
|
239
239
|
}, vt = (t, n, c = !1, i, a) => {
|
|
240
|
-
const s = n.map((d) => Math.max(d.transaction_total, d.amount)), o = Math.min(...s), r = Math.max(...s), p = c ?
|
|
240
|
+
const s = n.map((d) => Math.max(d.transaction_total, d.amount)), o = Math.min(...s), r = Math.max(...s), p = c ? xt(t.length, i, r, o, a) : We(o, r);
|
|
241
241
|
return t.map((d) => ({
|
|
242
242
|
...d,
|
|
243
243
|
radius: p(Math.max(d.transaction_total, d.amount))
|
|
@@ -282,7 +282,7 @@ function wt({ bubble: t, isDraggable: n, onClick: c = () => {
|
|
|
282
282
|
description: h,
|
|
283
283
|
radius: _,
|
|
284
284
|
x: y,
|
|
285
|
-
y:
|
|
285
|
+
y: A
|
|
286
286
|
} = t, v = o < 400 ? -8 : -12;
|
|
287
287
|
let b = v, B = v;
|
|
288
288
|
_ > U ? (b = -14, B = -45) : _ > Ce && (B = -32);
|
|
@@ -315,11 +315,11 @@ function wt({ bubble: t, isDraggable: n, onClick: c = () => {
|
|
|
315
315
|
onMouseEnter: () => a(!0),
|
|
316
316
|
onMouseLeave: () => a(!1),
|
|
317
317
|
role: "button",
|
|
318
|
-
style: { cursor: n ? "pointer" : "default" },
|
|
318
|
+
style: { cursor: n ? "pointer" : "default", touchAction: "manipulation" },
|
|
319
319
|
tabIndex: 0,
|
|
320
320
|
textAnchor: "middle",
|
|
321
321
|
x: y,
|
|
322
|
-
y:
|
|
322
|
+
y: A,
|
|
323
323
|
children: [
|
|
324
324
|
/* @__PURE__ */ e("style", { children: `
|
|
325
325
|
.bubble:focus,
|
|
@@ -388,12 +388,12 @@ const It = ({
|
|
|
388
388
|
if (u) {
|
|
389
389
|
const h = u.nodes(), _ = new Map(h.map((y) => [y.guid, y]));
|
|
390
390
|
g.forEach((y) => {
|
|
391
|
-
const
|
|
392
|
-
|
|
393
|
-
vx:
|
|
394
|
-
vy:
|
|
395
|
-
x:
|
|
396
|
-
y:
|
|
391
|
+
const A = _.get(y.guid);
|
|
392
|
+
A && Object.assign(y, {
|
|
393
|
+
vx: A.vx,
|
|
394
|
+
vy: A.vy,
|
|
395
|
+
x: A.x,
|
|
396
|
+
y: A.y
|
|
397
397
|
});
|
|
398
398
|
});
|
|
399
399
|
}
|
|
@@ -410,15 +410,23 @@ const It = ({
|
|
|
410
410
|
u.nodes(h), Bt(u, t, n), c && setTimeout(() => {
|
|
411
411
|
Ct(u);
|
|
412
412
|
}, 0), s([...h]);
|
|
413
|
-
}, [t, n, c, p]), /* @__PURE__ */ e(
|
|
413
|
+
}, [t, n, c, p]), /* @__PURE__ */ e(
|
|
414
|
+
"svg",
|
|
415
|
+
{
|
|
416
|
+
height: t,
|
|
417
|
+
style: { overflow: "visible", touchAction: "manipulation" },
|
|
418
|
+
width: Math.abs(n),
|
|
419
|
+
children: a.map((u) => /* @__PURE__ */ e(wt, { bubble: u, isDraggable: c, onClick: i }, u.guid))
|
|
420
|
+
}
|
|
421
|
+
);
|
|
414
422
|
}, Ot = I(It), Mt = ({
|
|
415
423
|
isMiniWidget: t = !1,
|
|
416
424
|
onConnectAccountsClick: n,
|
|
417
425
|
createBudgetOnClick: c
|
|
418
426
|
}) => {
|
|
419
|
-
const { config: i } = Ne(), { recalculateBudgets: a } = w(), { spendCategories: s } = Z(), { budgets: o } = E(), { availableWidth: r } = de(), { isMobile: p } = ge(r), d = t && p, [u, S] = l.useState(!1), [g, h] = l.useState(!1), [_, y] = l.useState(!1),
|
|
427
|
+
const { config: i } = Ne(), { recalculateBudgets: a } = w(), { spendCategories: s } = Z(), { budgets: o } = E(), { availableWidth: r } = de(), { isMobile: p } = ge(r), d = t && p, [u, S] = l.useState(!1), [g, h] = l.useState(!1), [_, y] = l.useState(!1), A = l.useMemo(() => [...s.filter((b) => b.totalAverageAmount > 0)], [s]), v = async () => {
|
|
420
428
|
y(!0);
|
|
421
|
-
const { data: b, isSuccess: B } = await a(
|
|
429
|
+
const { data: b, isSuccess: B } = await a(A);
|
|
422
430
|
y(!1), B ? (b.length === 0 && h(!0), S(!1)) : S(!0);
|
|
423
431
|
};
|
|
424
432
|
return _ ? /* @__PURE__ */ e(pe, {}) : u ? /* @__PURE__ */ e(
|
|
@@ -508,7 +516,7 @@ const It = ({
|
|
|
508
516
|
budget_category: v.category.name,
|
|
509
517
|
click_type: "bubble"
|
|
510
518
|
});
|
|
511
|
-
},
|
|
519
|
+
}, A = () => {
|
|
512
520
|
h(!0), o(P.ACCOUNTS_CLICK_CONNECT);
|
|
513
521
|
};
|
|
514
522
|
return /* @__PURE__ */ m(
|
|
@@ -522,7 +530,7 @@ const It = ({
|
|
|
522
530
|
{
|
|
523
531
|
createBudgetOnClick: t,
|
|
524
532
|
isMiniWidget: i,
|
|
525
|
-
onConnectAccountsClick:
|
|
533
|
+
onConnectAccountsClick: A
|
|
526
534
|
}
|
|
527
535
|
) : /* @__PURE__ */ e(
|
|
528
536
|
Ot,
|
|
@@ -559,7 +567,7 @@ const It = ({
|
|
|
559
567
|
percentage: `${s}%`
|
|
560
568
|
}
|
|
561
569
|
];
|
|
562
|
-
return /* @__PURE__ */ e(Te, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ e(De, { children: /* @__PURE__ */ m(
|
|
570
|
+
return /* @__PURE__ */ e(Te, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ e(De, { children: /* @__PURE__ */ m(x, { alignItems: "center", gap: 16, children: [
|
|
563
571
|
/* @__PURE__ */ e(H, { categoryGuid: a, size: 56 }),
|
|
564
572
|
/* @__PURE__ */ e(C, { variant: "h1", children: `${D(o, "0,0")} / ${D(n, "0,0")}` }),
|
|
565
573
|
/* @__PURE__ */ e(C, { bold: !0, variant: "caption", children: i }),
|
|
@@ -567,7 +575,7 @@ const It = ({
|
|
|
567
575
|
] }) }) });
|
|
568
576
|
}, Rt = I(() => {
|
|
569
577
|
const { budgets: t } = E();
|
|
570
|
-
return /* @__PURE__ */ m(
|
|
578
|
+
return /* @__PURE__ */ m(x, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
|
|
571
579
|
/* @__PURE__ */ e(z, { color: "action", name: "bubble_chart", sx: { fontSize: 32 } }),
|
|
572
580
|
/* @__PURE__ */ e(C, { bold: !0, color: "text.secondary", variant: "body2", children: t.zero_state_no_sub_budgets }),
|
|
573
581
|
/* @__PURE__ */ e(C, { color: "text.secondary", variant: "caption", children: t.zero_state_no_sub_budgets_description })
|
|
@@ -585,8 +593,8 @@ const It = ({
|
|
|
585
593
|
/* @__PURE__ */ e(
|
|
586
594
|
oe,
|
|
587
595
|
{
|
|
588
|
-
primary: /* @__PURE__ */ e(
|
|
589
|
-
secondary: /* @__PURE__ */ e(
|
|
596
|
+
primary: /* @__PURE__ */ e(x, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: t.category.name }) }),
|
|
597
|
+
secondary: /* @__PURE__ */ e(x, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ e(C, { fontWeight: 400, variant: "body1", children: `
|
|
590
598
|
${D(s, "0,0")} /
|
|
591
599
|
${D(n, "0,0")}
|
|
592
600
|
` }) })
|
|
@@ -603,12 +611,12 @@ const It = ({
|
|
|
603
611
|
}, []);
|
|
604
612
|
const y = () => {
|
|
605
613
|
a(t.guid), p(!0);
|
|
606
|
-
},
|
|
614
|
+
}, A = async () => {
|
|
607
615
|
h && Number(S) > 0 && (await o(h, Number(S), n.guid), u(!1), p(!1), _(void 0));
|
|
608
616
|
};
|
|
609
617
|
return /* @__PURE__ */ m(Y, { children: [
|
|
610
|
-
/* @__PURE__ */ e(ee, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(te, { onClick: y, children: /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ m(
|
|
611
|
-
/* @__PURE__ */ m(
|
|
618
|
+
/* @__PURE__ */ e(ee, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(te, { onClick: y, children: /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ m(x, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
619
|
+
/* @__PURE__ */ m(x, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
612
620
|
/* @__PURE__ */ e(z, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
|
|
613
621
|
/* @__PURE__ */ e(C, { bold: !0, sx: { color: "primary.light" }, variant: "body1", children: c.add_sub_budget_button })
|
|
614
622
|
] }),
|
|
@@ -632,7 +640,7 @@ const It = ({
|
|
|
632
640
|
disablePrimaryButton: Number(S) <= 0,
|
|
633
641
|
isOpen: d,
|
|
634
642
|
onClose: () => u(!1),
|
|
635
|
-
onPrimaryAction:
|
|
643
|
+
onPrimaryAction: A,
|
|
636
644
|
primaryText: c.add_save_button,
|
|
637
645
|
children: /* @__PURE__ */ e(
|
|
638
646
|
he,
|
|
@@ -646,9 +654,9 @@ const It = ({
|
|
|
646
654
|
)
|
|
647
655
|
] });
|
|
648
656
|
}), kt = I(({ budget: t }) => {
|
|
649
|
-
const { category: n, subBudgets: c } = t, { budgets: i, common: a } = E(), { deleteBudget: s, selectedSubBudget: o, setSelectedSubBudget: r, updateBudget: p } = w(), { filter: d, setFilter: u } = Q(), [S, g] = l.useState(!1), [h, _] = l.useState(!1), [y,
|
|
657
|
+
const { category: n, subBudgets: c } = t, { budgets: i, common: a } = E(), { deleteBudget: s, selectedSubBudget: o, setSelectedSubBudget: r, updateBudget: p } = w(), { filter: d, setFilter: u } = Q(), [S, g] = l.useState(!1), [h, _] = l.useState(!1), [y, A] = l.useState("");
|
|
650
658
|
l.useEffect(() => {
|
|
651
|
-
o && (
|
|
659
|
+
o && (A(`${o.amount}`), u({
|
|
652
660
|
...d,
|
|
653
661
|
custom: (f) => f.category_guid === o.category_guid
|
|
654
662
|
}));
|
|
@@ -685,7 +693,7 @@ const It = ({
|
|
|
685
693
|
primaryText: i.details_edit_button,
|
|
686
694
|
secondaryText: i.details_delete_button,
|
|
687
695
|
title: i.details_title,
|
|
688
|
-
children: o && /* @__PURE__ */ m(
|
|
696
|
+
children: o && /* @__PURE__ */ m(x, { gap: 24, children: [
|
|
689
697
|
/* @__PURE__ */ e(Ve, { budget: o }),
|
|
690
698
|
/* @__PURE__ */ e(ve, { height: "100%" })
|
|
691
699
|
] })
|
|
@@ -706,7 +714,7 @@ const It = ({
|
|
|
706
714
|
{
|
|
707
715
|
amount: y,
|
|
708
716
|
categoryName: o.category.name,
|
|
709
|
-
onAmountChanged:
|
|
717
|
+
onAmountChanged: A
|
|
710
718
|
}
|
|
711
719
|
)
|
|
712
720
|
}
|
|
@@ -731,7 +739,7 @@ const It = ({
|
|
|
731
739
|
sortedTransactions: d,
|
|
732
740
|
sortedTransactionsWithSplits: u,
|
|
733
741
|
tags: S
|
|
734
|
-
} = Q(), [g, h] = l.useState(0), [_, y] = l.useState(""),
|
|
742
|
+
} = Q(), [g, h] = l.useState(0), [_, y] = l.useState(""), A = l.useMemo(
|
|
735
743
|
() => d.find((f) => f.guid === _),
|
|
736
744
|
[_, d]
|
|
737
745
|
), v = (f, T) => {
|
|
@@ -739,9 +747,9 @@ const It = ({
|
|
|
739
747
|
}, b = () => {
|
|
740
748
|
tt(u, S), c(i.alert_csv_downloaded);
|
|
741
749
|
}, B = d.length > 0 && !n && (o || p && !r);
|
|
742
|
-
return /* @__PURE__ */ m(
|
|
750
|
+
return /* @__PURE__ */ m(x, { gap: 24, children: [
|
|
743
751
|
/* @__PURE__ */ e(Ve, { budget: t }),
|
|
744
|
-
/* @__PURE__ */ m(
|
|
752
|
+
/* @__PURE__ */ m(x, { children: [
|
|
745
753
|
/* @__PURE__ */ m(
|
|
746
754
|
et,
|
|
747
755
|
{
|
|
@@ -756,8 +764,8 @@ const It = ({
|
|
|
756
764
|
]
|
|
757
765
|
}
|
|
758
766
|
),
|
|
759
|
-
g === 0 && /* @__PURE__ */ m(
|
|
760
|
-
B && /* @__PURE__ */ e(
|
|
767
|
+
g === 0 && /* @__PURE__ */ m(x, { children: [
|
|
768
|
+
B && /* @__PURE__ */ e(x, { direction: "row", justifyContent: "right", mb: -24, mr: 8, mt: 8, zIndex: 1, children: /* @__PURE__ */ e(
|
|
761
769
|
$e,
|
|
762
770
|
{
|
|
763
771
|
onClick: b,
|
|
@@ -773,10 +781,10 @@ const It = ({
|
|
|
773
781
|
$,
|
|
774
782
|
{
|
|
775
783
|
ariaLabelClose: a.close_aria,
|
|
776
|
-
isOpen: !!
|
|
784
|
+
isOpen: !!A,
|
|
777
785
|
onClose: () => y(""),
|
|
778
786
|
title: i.details_transaction_drawer,
|
|
779
|
-
children:
|
|
787
|
+
children: A && /* @__PURE__ */ e(ot, { transaction: A })
|
|
780
788
|
}
|
|
781
789
|
)
|
|
782
790
|
] })
|
|
@@ -791,7 +799,7 @@ const It = ({
|
|
|
791
799
|
setAlert: p,
|
|
792
800
|
setSelectedBudget: d,
|
|
793
801
|
updateBudget: u
|
|
794
|
-
} = w(), { setFilter: S } = Q(), [g, h] = l.useState(!1), [_, y] = l.useState(!1), [
|
|
802
|
+
} = w(), { setFilter: S } = Q(), [g, h] = l.useState(!1), [_, y] = l.useState(!1), [A, v] = l.useState(!1), [b, B] = l.useState("");
|
|
795
803
|
l.useEffect(() => {
|
|
796
804
|
o && !r && (B(`${o.amount}`), h(!0), S({
|
|
797
805
|
accounts: t,
|
|
@@ -832,13 +840,13 @@ const It = ({
|
|
|
832
840
|
children: [
|
|
833
841
|
/* @__PURE__ */ e($t, { budget: o }),
|
|
834
842
|
/* @__PURE__ */ e(
|
|
835
|
-
|
|
843
|
+
xe,
|
|
836
844
|
{
|
|
837
845
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
838
846
|
autoHideDuration: 3500,
|
|
839
847
|
onClose: () => p(""),
|
|
840
848
|
open: !!i,
|
|
841
|
-
children: /* @__PURE__ */ e(
|
|
849
|
+
children: /* @__PURE__ */ e(Ae, { closeText: "", onClose: () => p(""), severity: "success", variant: "filled", children: i })
|
|
842
850
|
}
|
|
843
851
|
)
|
|
844
852
|
]
|
|
@@ -868,7 +876,7 @@ const It = ({
|
|
|
868
876
|
W,
|
|
869
877
|
{
|
|
870
878
|
copy: { close_aria: c.close_aria, title: n.delete_title },
|
|
871
|
-
isOpen:
|
|
879
|
+
isOpen: A,
|
|
872
880
|
onClose: () => v(!1),
|
|
873
881
|
onPrimaryAction: T,
|
|
874
882
|
primaryColor: "error",
|
|
@@ -893,14 +901,14 @@ const It = ({
|
|
|
893
901
|
/* @__PURE__ */ e(
|
|
894
902
|
oe,
|
|
895
903
|
{
|
|
896
|
-
primary: /* @__PURE__ */ m(
|
|
904
|
+
primary: /* @__PURE__ */ m(x, { component: "span", direction: "row", justifyContent: "space-between", children: [
|
|
897
905
|
/* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: t.category.name }),
|
|
898
906
|
/* @__PURE__ */ e(C, { fontWeight: 400, variant: "body1", children: `
|
|
899
907
|
${D(d, "0,0")} /
|
|
900
908
|
${D(c, "0,0")}
|
|
901
909
|
` })
|
|
902
910
|
] }),
|
|
903
|
-
secondary: /* @__PURE__ */ m(
|
|
911
|
+
secondary: /* @__PURE__ */ m(x, { component: "span", direction: "row", justifyContent: "space-between", children: [
|
|
904
912
|
/* @__PURE__ */ e(C, { variant: "caption", children: `${p.length} Sub-budgets` }),
|
|
905
913
|
/* @__PURE__ */ e(
|
|
906
914
|
C,
|
|
@@ -950,7 +958,7 @@ const It = ({
|
|
|
950
958
|
}
|
|
951
959
|
];
|
|
952
960
|
return [B, L];
|
|
953
|
-
}, [p, r]), [
|
|
961
|
+
}, [p, r]), [A, v] = l.useMemo(() => {
|
|
954
962
|
const B = Math.abs(
|
|
955
963
|
o.reduce((L, M) => L + M.totalAmount, 0)
|
|
956
964
|
);
|
|
@@ -974,8 +982,8 @@ const It = ({
|
|
|
974
982
|
};
|
|
975
983
|
return /* @__PURE__ */ m(Te, { elevation: 2, sx: { overflow: "visible" }, children: [
|
|
976
984
|
/* @__PURE__ */ e(je, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ e(Le, { children: i.overview_title }) }),
|
|
977
|
-
/* @__PURE__ */ e(De, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ m(
|
|
978
|
-
/* @__PURE__ */ m(
|
|
985
|
+
/* @__PURE__ */ e(De, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ m(x, { gap: 24, children: [
|
|
986
|
+
/* @__PURE__ */ m(x, { gap: 8, children: [
|
|
979
987
|
/* @__PURE__ */ e(C, { bold: !0, sx: { mb: 8 }, variant: "body1", children: i.spending_title }),
|
|
980
988
|
/* @__PURE__ */ e(Se, { data: y, height: 16 }),
|
|
981
989
|
/* @__PURE__ */ e(C, { variant: "body2", children: R(
|
|
@@ -984,8 +992,8 @@ const It = ({
|
|
|
984
992
|
D(d, "0,0")
|
|
985
993
|
) })
|
|
986
994
|
] }),
|
|
987
|
-
/* @__PURE__ */ m(
|
|
988
|
-
/* @__PURE__ */ m(
|
|
995
|
+
/* @__PURE__ */ m(x, { gap: 8, children: [
|
|
996
|
+
/* @__PURE__ */ m(x, { alignItems: "center", direction: "row", gap: 4, mb: -4, children: [
|
|
989
997
|
/* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: i.income_title }),
|
|
990
998
|
/* @__PURE__ */ e(
|
|
991
999
|
it,
|
|
@@ -1000,7 +1008,7 @@ const It = ({
|
|
|
1000
1008
|
/* @__PURE__ */ e(Se, { data: v, height: 16 }),
|
|
1001
1009
|
/* @__PURE__ */ e(C, { variant: "body2", children: R(
|
|
1002
1010
|
i.income_description,
|
|
1003
|
-
D(
|
|
1011
|
+
D(A, "0,0"),
|
|
1004
1012
|
D(u, "0,0")
|
|
1005
1013
|
) })
|
|
1006
1014
|
] })
|
|
@@ -1024,7 +1032,7 @@ const It = ({
|
|
|
1024
1032
|
isDataLoaded: h,
|
|
1025
1033
|
loadBudgetData: _,
|
|
1026
1034
|
setDateRange: y,
|
|
1027
|
-
setAlert:
|
|
1035
|
+
setAlert: A,
|
|
1028
1036
|
setTheme: v,
|
|
1029
1037
|
detailedBudgets: b
|
|
1030
1038
|
} = w(), { setDateRange: B } = le(), { loadDateRangeCategoryTotals: f, loadMonthlyCategoryTotals: T } = Z(), { isSmallTablet: L, isMobile: M, isSmallMobile: N } = ge(), k = L || M || N, [G, F] = l.useState(!1);
|
|
@@ -1074,14 +1082,14 @@ const It = ({
|
|
|
1074
1082
|
title: o.budgets_title,
|
|
1075
1083
|
children: [
|
|
1076
1084
|
/* @__PURE__ */ m(
|
|
1077
|
-
|
|
1085
|
+
x,
|
|
1078
1086
|
{
|
|
1079
1087
|
direction: k ? "column" : "row",
|
|
1080
1088
|
height: "100%",
|
|
1081
1089
|
sx: { justifyContent: "center" },
|
|
1082
1090
|
width: "100%",
|
|
1083
1091
|
children: [
|
|
1084
|
-
/* @__PURE__ */ e(
|
|
1092
|
+
/* @__PURE__ */ e(x, { height: k ? 450 : "calc(100dvh - 150px)", children: /* @__PURE__ */ e(
|
|
1085
1093
|
He,
|
|
1086
1094
|
{
|
|
1087
1095
|
createBudgetOnClick: ne,
|
|
@@ -1092,7 +1100,7 @@ const It = ({
|
|
|
1092
1100
|
}
|
|
1093
1101
|
) }),
|
|
1094
1102
|
b.length !== 0 && /* @__PURE__ */ m(
|
|
1095
|
-
|
|
1103
|
+
x,
|
|
1096
1104
|
{
|
|
1097
1105
|
gap: 24,
|
|
1098
1106
|
height: "100%",
|
|
@@ -1125,20 +1133,20 @@ const It = ({
|
|
|
1125
1133
|
}
|
|
1126
1134
|
),
|
|
1127
1135
|
/* @__PURE__ */ e(
|
|
1128
|
-
|
|
1136
|
+
xe,
|
|
1129
1137
|
{
|
|
1130
1138
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
1131
1139
|
autoHideDuration: 3500,
|
|
1132
1140
|
onClose: () => {
|
|
1133
|
-
|
|
1141
|
+
A("");
|
|
1134
1142
|
},
|
|
1135
1143
|
open: !!S,
|
|
1136
1144
|
children: /* @__PURE__ */ e(
|
|
1137
|
-
|
|
1145
|
+
Ae,
|
|
1138
1146
|
{
|
|
1139
1147
|
closeText: "",
|
|
1140
1148
|
onClose: () => {
|
|
1141
|
-
|
|
1149
|
+
A("");
|
|
1142
1150
|
},
|
|
1143
1151
|
severity: "success",
|
|
1144
1152
|
variant: "filled",
|
|
@@ -1165,7 +1173,7 @@ const It = ({
|
|
|
1165
1173
|
const r = s.current ?? a;
|
|
1166
1174
|
return r > 0 ? Math.round(Math.max(120, Math.min(450, r * 0.8))) - 40 : 450;
|
|
1167
1175
|
}, [a]);
|
|
1168
|
-
return /* @__PURE__ */ m(
|
|
1176
|
+
return /* @__PURE__ */ m(x, { sx: { height: "100%", justifyContent: "space-between" }, children: [
|
|
1169
1177
|
/* @__PURE__ */ e(
|
|
1170
1178
|
He,
|
|
1171
1179
|
{
|
|
@@ -1193,7 +1201,7 @@ const It = ({
|
|
|
1193
1201
|
Be(/* @__PURE__ */ new Date())
|
|
1194
1202
|
).finally(), g(u).finally());
|
|
1195
1203
|
}, [d, u, a]);
|
|
1196
|
-
const
|
|
1204
|
+
const A = () => {
|
|
1197
1205
|
y(!0), c(P.BUDGETS_CLICK_ADD);
|
|
1198
1206
|
}, v = () => {
|
|
1199
1207
|
y(!1);
|
|
@@ -1218,7 +1226,7 @@ const It = ({
|
|
|
1218
1226
|
{
|
|
1219
1227
|
budgetsCopy: r,
|
|
1220
1228
|
difference: h,
|
|
1221
|
-
handleAddClick:
|
|
1229
|
+
handleAddClick: A,
|
|
1222
1230
|
shouldShowZeroState: B
|
|
1223
1231
|
}
|
|
1224
1232
|
),
|
|
@@ -1261,7 +1269,7 @@ const It = ({
|
|
|
1261
1269
|
setAlert: d,
|
|
1262
1270
|
setSelectedBudget: u,
|
|
1263
1271
|
updateBudget: S
|
|
1264
|
-
} = w(), { budgets: g, common: h } = E(), { isCopyLoaded: _, selectedAccountGuids: y } = J(),
|
|
1272
|
+
} = w(), { budgets: g, common: h } = E(), { isCopyLoaded: _, selectedAccountGuids: y } = J(), A = Ge(), { setFilter: v } = Q(), [b, B] = l.useState(""), [f, T] = l.useState(null), [L, M] = l.useState(!1), N = l.useRef(!1);
|
|
1265
1273
|
if (l.useEffect(() => {
|
|
1266
1274
|
!r || p || (B(`${r.amount}`), v({
|
|
1267
1275
|
accounts: y,
|
|
@@ -1335,8 +1343,8 @@ const It = ({
|
|
|
1335
1343
|
categoryGuid: r.category.guid,
|
|
1336
1344
|
size: 44,
|
|
1337
1345
|
sx: {
|
|
1338
|
-
bgcolor: Qe(we(r.category.guid,
|
|
1339
|
-
border: `1px solid ${we(r.category.guid,
|
|
1346
|
+
bgcolor: Qe(we(r.category.guid, A), 0.15),
|
|
1347
|
+
border: `1px solid ${we(r.category.guid, A)}`,
|
|
1340
1348
|
color: "text.primary"
|
|
1341
1349
|
}
|
|
1342
1350
|
}
|
|
@@ -1351,13 +1359,13 @@ const It = ({
|
|
|
1351
1359
|
),
|
|
1352
1360
|
/* @__PURE__ */ e(ve, { ...i }),
|
|
1353
1361
|
a && /* @__PURE__ */ e(
|
|
1354
|
-
|
|
1362
|
+
xe,
|
|
1355
1363
|
{
|
|
1356
1364
|
anchorOrigin: { horizontal: "right", vertical: "bottom" },
|
|
1357
1365
|
autoHideDuration: 3500,
|
|
1358
1366
|
onClose: () => d(""),
|
|
1359
1367
|
open: !!a,
|
|
1360
|
-
children: /* @__PURE__ */ e(
|
|
1368
|
+
children: /* @__PURE__ */ e(Ae, { closeText: "", onClose: () => d(""), severity: "success", variant: "filled", children: a })
|
|
1361
1369
|
}
|
|
1362
1370
|
)
|
|
1363
1371
|
]
|
|
@@ -16,7 +16,7 @@ import { b as H } from "../Localization-CkQ49EKr.mjs";
|
|
|
16
16
|
import { I as pe } from "../CashflowStore-BEi92kJg.mjs";
|
|
17
17
|
import { C as $n } from "../CashflowStore-BEi92kJg.mjs";
|
|
18
18
|
import { u as Oe } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
|
|
19
|
-
import { M as Je } from "../MiniWidgetContainer-
|
|
19
|
+
import { M as Je } from "../MiniWidgetContainer-BS4iG6cw.mjs";
|
|
20
20
|
import { E as Qe } from "../EmptyState-DHAkGsjk.mjs";
|
|
21
21
|
import { R as Ze } from "../RecurringSettings-DxsDZAp1.mjs";
|
|
22
22
|
import et from "@mui/material/Tabs";
|
package/dist/common/index.es.js
CHANGED
|
@@ -4,7 +4,7 @@ import { C as Lt } from "../CurrencyInput-CSJ3zMgE.mjs";
|
|
|
4
4
|
import { D as Pt, S as Ot } from "../RecurringTransactions-DCt94TN4.mjs";
|
|
5
5
|
import { D as Ft, W as Gt, u as $t } from "../WidgetContainer-_Fzy--dt.mjs";
|
|
6
6
|
import { D as Wt } from "../Dialog-iLlBR8TG.mjs";
|
|
7
|
-
import { D as Qt } from "../Donut-
|
|
7
|
+
import { D as Qt } from "../Donut-SzzfZDHF.mjs";
|
|
8
8
|
import { D as Vt } from "../Drawer-XPaLYjiO.mjs";
|
|
9
9
|
import { H } from "../Help-CgpJK03Q.mjs";
|
|
10
10
|
import { E as jt } from "../Help-CgpJK03Q.mjs";
|
|
@@ -13,7 +13,7 @@ import { C as W } from "../CashflowStore-BEi92kJg.mjs";
|
|
|
13
13
|
import { I as Jt } from "../CashflowStore-BEi92kJg.mjs";
|
|
14
14
|
import { L as ts } from "../Loader-CxeBwuPG.mjs";
|
|
15
15
|
import { M as rs } from "../MicroWidgetContainer-CEcwdfti.mjs";
|
|
16
|
-
import { M as as } from "../MiniWidgetContainer-
|
|
16
|
+
import { M as as } from "../MiniWidgetContainer-BS4iG6cw.mjs";
|
|
17
17
|
import { jsxs as b, jsx as p } from "react/jsx-runtime";
|
|
18
18
|
import { css as q } from "@mxenabled/cssinjs";
|
|
19
19
|
import { D as Q, a as Y } from "../SingleSegmentDonut-PsRQPkmV.mjs";
|
|
@@ -51,7 +51,7 @@ 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 Dt } from "date-fns/startOfMonth";
|
|
53
53
|
import { endOfMonth as It } 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-x3K9eXrQ.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";
|
|
@@ -22,7 +22,7 @@ import { f as ie, a as je } from "../NumberFormatting-CyrvFgfd.mjs";
|
|
|
22
22
|
import { u as j } from "../useScreenSize-CeFhWTt_.mjs";
|
|
23
23
|
import ce from "@mui/material/styles/useTheme";
|
|
24
24
|
import { Icon as B } from "@mxenabled/mx-icons";
|
|
25
|
-
import { D as He } from "../Donut-
|
|
25
|
+
import { D as He } from "../Donut-SzzfZDHF.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";
|
|
@@ -60,7 +60,7 @@ import { S as ve } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
|
60
60
|
import { u as oe } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
|
|
61
61
|
import { L as ae } from "../Loader-CxeBwuPG.mjs";
|
|
62
62
|
import { W as ht } from "../WidgetContainer-_Fzy--dt.mjs";
|
|
63
|
-
import { M as ft } from "../MiniWidgetContainer-
|
|
63
|
+
import { M as ft } from "../MiniWidgetContainer-BS4iG6cw.mjs";
|
|
64
64
|
import { u as xt } from "../useDimensions-CeDR9V8N.mjs";
|
|
65
65
|
import { M as bt } from "../MicroWidgetContainer-CEcwdfti.mjs";
|
|
66
66
|
const Y = {
|
|
@@ -8,13 +8,13 @@ import y from "@mui/material/Stack";
|
|
|
8
8
|
import O from "@mui/material/Tab";
|
|
9
9
|
import it from "@mui/material/Tabs";
|
|
10
10
|
import _t from "@mui/material/styles/useTheme";
|
|
11
|
-
import { g as rt, a as st, S as k, b as Y } from "../SpendingLegend-
|
|
11
|
+
import { g as rt, a as st, S as k, b as Y } from "../SpendingLegend-x3K9eXrQ.mjs";
|
|
12
12
|
import { Text as T, Icon as bt } from "@mxenabled/mxui";
|
|
13
13
|
import { f as N } from "../NumberFormatting-CyrvFgfd.mjs";
|
|
14
|
-
import { u as A, l as W, d as lt, b as z, a as V, h as
|
|
15
|
-
import { u as
|
|
14
|
+
import { u as A, l as W, d as lt, b as z, a as V, h as ct, g as yt } from "../hooks-HwStH7q_.mjs";
|
|
15
|
+
import { u as dt } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
|
|
16
16
|
import { L as gt } from "../Loader-CxeBwuPG.mjs";
|
|
17
|
-
import { M as Ct } from "../MiniWidgetContainer-
|
|
17
|
+
import { M as Ct } from "../MiniWidgetContainer-BS4iG6cw.mjs";
|
|
18
18
|
import { startOfToday as q } from "date-fns/startOfToday";
|
|
19
19
|
import St from "@mui/material/Button";
|
|
20
20
|
import { useTheme as Tt } from "@mui/material";
|
|
@@ -32,11 +32,11 @@ import { b as w } from "../Category-Ccoew_sA.mjs";
|
|
|
32
32
|
import { parseISO as tt } from "date-fns/parseISO";
|
|
33
33
|
import { A as et } from "../Analytics-CzGzz_sE.mjs";
|
|
34
34
|
import { W as It } from "../WidgetContainer-_Fzy--dt.mjs";
|
|
35
|
-
const $ = ({ amount: n, label:
|
|
36
|
-
/* @__PURE__ */ t(T, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children:
|
|
35
|
+
const $ = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y, { direction: "column", children: [
|
|
36
|
+
/* @__PURE__ */ t(T, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: d }),
|
|
37
37
|
/* @__PURE__ */ t(T, { variant: "caption", children: N(n, o === "mini" ? "0,0" : "0,0.00") })
|
|
38
38
|
] }), At = () => {
|
|
39
|
-
const n = _t(), { goals:
|
|
39
|
+
const n = _t(), { goals: d, spending: o } = A(), { categories: a, dateRangeCategoryTotals: i } = W(), g = l.useMemo(
|
|
40
40
|
() => [
|
|
41
41
|
n.palette.chartMono.chartMono5,
|
|
42
42
|
n.palette.chartMono.chartMono4,
|
|
@@ -46,8 +46,8 @@ const $ = ({ amount: n, label: c, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
46
46
|
n.palette.chartMono.chartMono6
|
|
47
47
|
],
|
|
48
48
|
[n]
|
|
49
|
-
), [e, r] = l.useState(""), [
|
|
50
|
-
() => rt(a,
|
|
49
|
+
), [e, r] = l.useState(""), [c, b] = l.useState(0), u = l.useMemo(
|
|
50
|
+
() => rt(a, d, n, i),
|
|
51
51
|
[a, i]
|
|
52
52
|
), h = l.useMemo(
|
|
53
53
|
() => st(a, i, g),
|
|
@@ -63,7 +63,8 @@ const $ = ({ amount: n, label: c, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
63
63
|
{
|
|
64
64
|
"aria-label": o.mini_title,
|
|
65
65
|
onChange: M,
|
|
66
|
-
|
|
66
|
+
sx: { touchAction: "manipulation" },
|
|
67
|
+
value: c,
|
|
67
68
|
variant: "fullWidth",
|
|
68
69
|
children: [
|
|
69
70
|
/* @__PURE__ */ t(
|
|
@@ -79,7 +80,7 @@ const $ = ({ amount: n, label: c, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
79
80
|
variant: "mini"
|
|
80
81
|
}
|
|
81
82
|
),
|
|
82
|
-
tabIndex:
|
|
83
|
+
tabIndex: c === 0 ? 0 : -1
|
|
83
84
|
}
|
|
84
85
|
),
|
|
85
86
|
/* @__PURE__ */ t(
|
|
@@ -95,7 +96,7 @@ const $ = ({ amount: n, label: c, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
95
96
|
variant: "mini"
|
|
96
97
|
}
|
|
97
98
|
),
|
|
98
|
-
tabIndex:
|
|
99
|
+
tabIndex: c === 1 ? 0 : -1
|
|
99
100
|
}
|
|
100
101
|
)
|
|
101
102
|
]
|
|
@@ -105,7 +106,7 @@ const $ = ({ amount: n, label: c, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
105
106
|
L,
|
|
106
107
|
{
|
|
107
108
|
"aria-labelledby": "spending-tab",
|
|
108
|
-
hidden:
|
|
109
|
+
hidden: c !== 0,
|
|
109
110
|
id: "spending-tabpanel",
|
|
110
111
|
role: "tabpanel",
|
|
111
112
|
children: /* @__PURE__ */ p(y, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
|
|
@@ -126,7 +127,7 @@ const $ = ({ amount: n, label: c, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
126
127
|
L,
|
|
127
128
|
{
|
|
128
129
|
"aria-labelledby": "income-tab",
|
|
129
|
-
hidden:
|
|
130
|
+
hidden: c !== 1,
|
|
130
131
|
id: "income-tabpanel",
|
|
131
132
|
role: "tabpanel",
|
|
132
133
|
children: /* @__PURE__ */ p(y, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
|
|
@@ -145,9 +146,9 @@ const $ = ({ amount: n, label: c, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
145
146
|
}
|
|
146
147
|
)
|
|
147
148
|
] });
|
|
148
|
-
}, Et = I(At), Wt = ({ onPrimaryCtaClick: n, sx:
|
|
149
|
-
const { isAccountDataLoaded: o, loadAccountData: a } = lt(), { dateRangeTotalsLoaded: i, categoriesLoaded: g, loadCategories: e, loadDateRangeCategoryTotals: r } = W(), { spending:
|
|
150
|
-
return
|
|
149
|
+
}, Et = I(At), Wt = ({ onPrimaryCtaClick: n, sx: d = {} }) => {
|
|
150
|
+
const { isAccountDataLoaded: o, loadAccountData: a } = lt(), { dateRangeTotalsLoaded: i, categoriesLoaded: g, loadCategories: e, loadDateRangeCategoryTotals: r } = W(), { spending: c } = A(), { isInitialized: b, selectedAccounts: u } = z();
|
|
151
|
+
return dt({
|
|
151
152
|
widgetName: "SpendingMiniWidget",
|
|
152
153
|
isLoaded: i
|
|
153
154
|
}), l.useEffect(() => {
|
|
@@ -163,16 +164,16 @@ const $ = ({ amount: n, label: c, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
163
164
|
{
|
|
164
165
|
className: "mx-exp-spending-miniwidget",
|
|
165
166
|
onPrimaryCtaClick: n,
|
|
166
|
-
primaryCtaLabel:
|
|
167
|
-
primaryCtaLabelAria:
|
|
168
|
-
sx: { height: "100%", ...
|
|
169
|
-
title:
|
|
167
|
+
primaryCtaLabel: c.primary_cta,
|
|
168
|
+
primaryCtaLabelAria: c.primary_cta_aria,
|
|
169
|
+
sx: { height: "100%", ...d },
|
|
170
|
+
title: c.mini_title,
|
|
170
171
|
children: /* @__PURE__ */ t(Et, {})
|
|
171
172
|
}
|
|
172
173
|
) : /* @__PURE__ */ t(gt, {});
|
|
173
174
|
}, Ce = I(Wt), Rt = ({
|
|
174
175
|
data: n,
|
|
175
|
-
onSelected:
|
|
176
|
+
onSelected: d,
|
|
176
177
|
selectedId: o = "",
|
|
177
178
|
title: a
|
|
178
179
|
}) => {
|
|
@@ -196,7 +197,7 @@ const $ = ({ amount: n, label: c, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
196
197
|
{
|
|
197
198
|
"aria-expanded": g?.guid === e.guid,
|
|
198
199
|
id: `spending-list-category-${e.guid}`,
|
|
199
|
-
onClick: () =>
|
|
200
|
+
onClick: () => d(e.guid),
|
|
200
201
|
sx: { minHeight: 44, px: 8, py: 0 },
|
|
201
202
|
children: [
|
|
202
203
|
/* @__PURE__ */ t(
|
|
@@ -240,7 +241,7 @@ const $ = ({ amount: n, label: c, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
240
241
|
X,
|
|
241
242
|
{
|
|
242
243
|
id: `spending-list-subcategory-${r.guid}`,
|
|
243
|
-
onClick: () =>
|
|
244
|
+
onClick: () => d(r.guid, !0),
|
|
244
245
|
sx: { minHeight: 44, px: 8, py: 0 },
|
|
245
246
|
children: /* @__PURE__ */ p(y, { direction: "row", justifyContent: "space-between", width: "100%", children: [
|
|
246
247
|
/* @__PURE__ */ p(T, { children: [
|
|
@@ -259,12 +260,12 @@ const $ = ({ amount: n, label: c, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
259
260
|
] });
|
|
260
261
|
}, Nt = I(Rt), Ot = ({
|
|
261
262
|
data: n,
|
|
262
|
-
onSelected:
|
|
263
|
+
onSelected: d,
|
|
263
264
|
onViewTransactions: o,
|
|
264
265
|
selectedId: a,
|
|
265
266
|
title: i
|
|
266
267
|
}) => {
|
|
267
|
-
const { isDesktop: g, isMobile: e } = Lt(), { dateRangeTotalsLoading: r } = W(), { spending:
|
|
268
|
+
const { isDesktop: g, isMobile: e } = Lt(), { dateRangeTotalsLoading: r } = W(), { spending: c } = A();
|
|
268
269
|
return /* @__PURE__ */ p(
|
|
269
270
|
y,
|
|
270
271
|
{
|
|
@@ -296,16 +297,16 @@ const $ = ({ amount: n, label: c, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
296
297
|
{
|
|
297
298
|
data: n,
|
|
298
299
|
onSelected: (h) => {
|
|
299
|
-
|
|
300
|
+
d(h), setTimeout(() => document.getElementById(`spending-list-category-${h}`)?.focus(), 0);
|
|
300
301
|
},
|
|
301
302
|
onViewTransactions: o,
|
|
302
303
|
selectedId: a,
|
|
303
304
|
size: g ? 400 : 300,
|
|
304
|
-
totalLabel:
|
|
305
|
+
totalLabel: c.total_amount,
|
|
305
306
|
variant: "full"
|
|
306
307
|
}
|
|
307
308
|
),
|
|
308
|
-
/* @__PURE__ */ t(Nt, { data: n, onSelected:
|
|
309
|
+
/* @__PURE__ */ t(Nt, { data: n, onSelected: d, selectedId: a, title: i })
|
|
309
310
|
]
|
|
310
311
|
}
|
|
311
312
|
);
|
|
@@ -317,16 +318,16 @@ const $ = ({ amount: n, label: c, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
317
318
|
n.palette.chartMono.chartMono1,
|
|
318
319
|
n.palette.chartMono.chartMono6
|
|
319
320
|
], $t = () => {
|
|
320
|
-
const n = Tt(), { is_mobile_webview:
|
|
321
|
+
const n = Tt(), { is_mobile_webview: d } = V(), { clientConfig: o } = V(), { categories: a, dateRangeCategoryTotals: i } = W(), {
|
|
321
322
|
goals: g,
|
|
322
323
|
spending: e,
|
|
323
324
|
transactions: r
|
|
324
|
-
} = A(), { displayedDateRange:
|
|
325
|
+
} = A(), { displayedDateRange: c, selectedAccountGuids: b } = z(), {
|
|
325
326
|
setFilter: u,
|
|
326
327
|
sortedTransactions: h,
|
|
327
328
|
sortedTransactionsWithSplits: M,
|
|
328
329
|
tags: _
|
|
329
|
-
} =
|
|
330
|
+
} = ct(), f = o?.master?.deep_link_params?.account_guids, x = o?.master?.deep_link_params?.view, [D, R] = l.useState(""), [v, C] = l.useState(x === "income" ? 1 : 0), [E, H] = l.useState(""), [pt, B] = l.useState(!1), G = l.useMemo(
|
|
330
331
|
() => rt(a, g, n, i),
|
|
331
332
|
[a, i]
|
|
332
333
|
), P = l.useMemo(
|
|
@@ -343,7 +344,7 @@ const $ = ({ amount: n, label: c, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
343
344
|
u({
|
|
344
345
|
...{
|
|
345
346
|
accounts: f || b,
|
|
346
|
-
dateRange:
|
|
347
|
+
dateRange: c
|
|
347
348
|
},
|
|
348
349
|
custom: (m) => D === "other" ? m.top_level_category_guid === s : m.category_guid === s,
|
|
349
350
|
showSplits: !0
|
|
@@ -351,7 +352,7 @@ const $ = ({ amount: n, label: c, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
351
352
|
}, U = (s) => {
|
|
352
353
|
const S = {
|
|
353
354
|
accounts: f || b,
|
|
354
|
-
dateRange:
|
|
355
|
+
dateRange: c
|
|
355
356
|
};
|
|
356
357
|
if (v === 0)
|
|
357
358
|
if (s === "other") {
|
|
@@ -430,7 +431,7 @@ const $ = ({ amount: n, label: c, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
430
431
|
onClose: () => B(!1),
|
|
431
432
|
title: e.transactions_drawer_title,
|
|
432
433
|
children: /* @__PURE__ */ p(y, { children: [
|
|
433
|
-
!
|
|
434
|
+
!d && h.length > 0 && /* @__PURE__ */ t(y, { direction: "row", justifyContent: "right", mb: -24, mr: 8, mt: 8, zIndex: 1, children: /* @__PURE__ */ t(
|
|
434
435
|
St,
|
|
435
436
|
{
|
|
436
437
|
onClick: ht,
|
|
@@ -454,16 +455,16 @@ const $ = ({ amount: n, label: c, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
454
455
|
}
|
|
455
456
|
)
|
|
456
457
|
] });
|
|
457
|
-
}, Bt = I($t), Gt = ({ onBackClick: n, onMenuClick:
|
|
458
|
-
const { isAccountDataLoaded: a, loadAccountData: i } = lt(), { categoriesLoaded: g, dateRangeTotalsLoaded: e, loadCategories: r, loadDateRangeCategoryTotals:
|
|
459
|
-
|
|
458
|
+
}, Bt = I($t), Gt = ({ onBackClick: n, onMenuClick: d, sx: o = {} }) => {
|
|
459
|
+
const { isAccountDataLoaded: a, loadAccountData: i } = lt(), { categoriesLoaded: g, dateRangeTotalsLoaded: e, loadCategories: r, loadDateRangeCategoryTotals: c } = W(), { isTransactionDataLoaded: b, loadTransactionData: u } = ct(), { spending: h } = A(), { displayedDateRange: M, isInitialized: _, setDisplayedDate: f, selectedAccounts: x } = z(), { onEvent: D } = yt(), { clientConfig: R } = V();
|
|
460
|
+
dt({
|
|
460
461
|
widgetName: "SpendingWidget",
|
|
461
462
|
isLoaded: e
|
|
462
463
|
}), l.useEffect(() => {
|
|
463
464
|
const C = R?.master?.deep_link_params, E = C?.date_range ? [tt(C.date_range.from), tt(C.date_range.to)] : [ot(q()), at(q())];
|
|
464
465
|
f(E[0], E[1]), a || i().finally(), g || r().finally(), b || u().finally(), D(et.SPENDING_VIEW);
|
|
465
466
|
}, []), l.useEffect(() => {
|
|
466
|
-
_ &&
|
|
467
|
+
_ && c(
|
|
467
468
|
x,
|
|
468
469
|
M.start,
|
|
469
470
|
M.end
|
|
@@ -478,7 +479,7 @@ const $ = ({ amount: n, label: c, variant: o = "full" }) => /* @__PURE__ */ p(y,
|
|
|
478
479
|
calendarActions: { onRangeChanged: v },
|
|
479
480
|
onAccountsFilterClick: () => D(et.SPENDING_CLICK_FILTER),
|
|
480
481
|
onBackClick: n,
|
|
481
|
-
onMenuClick:
|
|
482
|
+
onMenuClick: d,
|
|
482
483
|
sx: o,
|
|
483
484
|
title: h.title,
|
|
484
485
|
children: /* @__PURE__ */ t(L, { width: "100%", children: /* @__PURE__ */ t(Bt, {}) })
|
package/dist/trends/index.es.js
CHANGED
|
@@ -42,7 +42,7 @@ import { u as Ie } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
|
|
|
42
42
|
import { L as Le } from "../Loader-CxeBwuPG.mjs";
|
|
43
43
|
import { W as ut } from "../WidgetContainer-_Fzy--dt.mjs";
|
|
44
44
|
import { L as Ve } from "../LineChart-jJVBE8V8.mjs";
|
|
45
|
-
import { M as Jt } from "../MiniWidgetContainer-
|
|
45
|
+
import { M as Jt } from "../MiniWidgetContainer-BS4iG6cw.mjs";
|
|
46
46
|
import { subMonths as eo } from "date-fns";
|
|
47
47
|
import { TrendingUp as to, TrendingDown as oo, MultilineChart as no, ExpandLess as so, ExpandMore as ro, ChevronRight as ao, ArrowBack as io } from "@mxenabled/mx-icons";
|
|
48
48
|
import { M as lo } from "../MicroWidgetContainer-CEcwdfti.mjs";
|