@mx-cartographer/experiences 8.1.7 → 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/CHANGELOG.md +4 -0
- 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/goals/index.es.js +373 -372
- 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
package/CHANGELOG.md
CHANGED
|
@@ -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";
|