@mx-cartographer/experiences 8.1.6 → 8.1.8
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 +8 -0
- package/dist/AccountDetailsHeader-D8NIfmO8.mjs +95 -0
- package/dist/{AccountFields-nrrEXd46.mjs → AccountFields-BWmpVsS3.mjs} +51 -51
- package/dist/AccountListItem-DSuv36PF.mjs +95 -0
- package/dist/accounts/index.es.js +424 -420
- package/dist/accounts/utils/AccountFields.d.ts +2 -2
- package/dist/cashflow/index.es.js +1 -1
- package/dist/debts/index.es.js +1 -1
- package/dist/finstrong/index.es.js +11 -3
- package/dist/goals/index.es.js +373 -372
- package/package.json +1 -1
- package/dist/AccountDetailsHeader-D_a0XUkL.mjs +0 -95
- package/dist/AccountListItem-D80egD01.mjs +0 -94
package/package.json
CHANGED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { observer as f } from "mobx-react-lite";
|
|
3
|
-
import s from "@mui/material/Stack";
|
|
4
|
-
import { H3 as T, InstitutionLogo as x, Text as l, H2 as D } from "@mxenabled/mxui";
|
|
5
|
-
import p from "react";
|
|
6
|
-
import { G as N, d as _, l as P, f as G, u as O } from "./hooks-HwStH7q_.mjs";
|
|
7
|
-
import { g as R } from "./AccountFields-nrrEXd46.mjs";
|
|
8
|
-
import { A as r } from "./Account-CMjOp7S2.mjs";
|
|
9
|
-
import w from "@mui/material/Card";
|
|
10
|
-
import v from "@mui/material/CardContent";
|
|
11
|
-
import L from "@mui/material/CardHeader";
|
|
12
|
-
import { L as H } from "./Loader-CxeBwuPG.mjs";
|
|
13
|
-
import { I as M, P as U, S as Y } from "./Account-BIKn4XEZ.mjs";
|
|
14
|
-
import { u as j } from "./useAccountDisplayName-SrQA7K_6.mjs";
|
|
15
|
-
import { f as z } from "./NumberFormatting-CyrvFgfd.mjs";
|
|
16
|
-
const C = () => {
|
|
17
|
-
if (!p.useContext(N))
|
|
18
|
-
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
19
|
-
return _().uiStore;
|
|
20
|
-
}, k = (o, e) => {
|
|
21
|
-
const c = [r.LOAN, r.MORTGAGE, r.PROPERTY].includes(
|
|
22
|
-
o
|
|
23
|
-
), n = [
|
|
24
|
-
r.CREDIT_CARD,
|
|
25
|
-
r.LINE_OF_CREDIT,
|
|
26
|
-
r.PREPAID,
|
|
27
|
-
r.CHECKING_LINE_OF_CREDIT
|
|
28
|
-
].includes(o);
|
|
29
|
-
return c ? { title: e.label_payments, description: e.chart_title_payments } : n ? { title: e.label_payments_spend, description: e.chart_title_payments_spend } : { title: e.label_income_spend, description: e.chart_title_income_spend };
|
|
30
|
-
}, B = ({
|
|
31
|
-
sx: o,
|
|
32
|
-
ChartComponent: e,
|
|
33
|
-
header: c
|
|
34
|
-
}) => {
|
|
35
|
-
const { loadMonthlyCategoryTotals: n } = P(), { isInitialized: i } = G(), { selectedAccount: d } = C(), [u, m] = p.useState(!1);
|
|
36
|
-
return p.useEffect(() => {
|
|
37
|
-
i && n([d]).finally(() => {
|
|
38
|
-
m(!0);
|
|
39
|
-
});
|
|
40
|
-
}, [i, d]), !i || !u ? /* @__PURE__ */ t(H, {}) : /* @__PURE__ */ a(
|
|
41
|
-
w,
|
|
42
|
-
{
|
|
43
|
-
sx: {
|
|
44
|
-
"& .MuiCardContent-root:last-child": {
|
|
45
|
-
pb: 0
|
|
46
|
-
},
|
|
47
|
-
...o
|
|
48
|
-
},
|
|
49
|
-
children: [
|
|
50
|
-
/* @__PURE__ */ t(L, { sx: { pb: 0 }, title: /* @__PURE__ */ t(T, { sx: { pb: 4 }, children: c }) }),
|
|
51
|
-
/* @__PURE__ */ t(v, { sx: { p: 0 }, children: e ? /* @__PURE__ */ t(e, {}) : null })
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
}, F = f(B), V = ({
|
|
56
|
-
customDetailsChart: o,
|
|
57
|
-
ChartComponent: e
|
|
58
|
-
}) => {
|
|
59
|
-
const { institutions: c } = _(), { selectedAccount: n } = C(), { accounts: i } = O(), { firstSubtitle: d, firstValue: u, hasAvailableBalance: m, secondSubtitle: h, secondValue: b } = R(n, i), A = c.find(
|
|
60
|
-
(I) => I.guid === n?.institution_guid
|
|
61
|
-
), y = [
|
|
62
|
-
...M,
|
|
63
|
-
...U,
|
|
64
|
-
...Y
|
|
65
|
-
].includes(n.account_type), g = j(n), { title: E, description: S } = k(n.account_type, i);
|
|
66
|
-
return /* @__PURE__ */ a(s, { bgcolor: "background.default", p: 24, children: [
|
|
67
|
-
/* @__PURE__ */ a(s, { gap: 12, children: [
|
|
68
|
-
/* @__PURE__ */ t(
|
|
69
|
-
x,
|
|
70
|
-
{
|
|
71
|
-
alt: i.institution_logo_alt,
|
|
72
|
-
institutionGuid: n.institution_guid || "",
|
|
73
|
-
size: 64
|
|
74
|
-
}
|
|
75
|
-
),
|
|
76
|
-
/* @__PURE__ */ t(l, { variant: "body2", children: A?.name })
|
|
77
|
-
] }),
|
|
78
|
-
/* @__PURE__ */ a(s, { gap: 8, mb: 24, mt: 4, children: [
|
|
79
|
-
/* @__PURE__ */ t(D, { children: g }),
|
|
80
|
-
/* @__PURE__ */ a(s, { direction: "row", justifyContent: "space-between", children: [
|
|
81
|
-
/* @__PURE__ */ t(l, { bold: m, variant: "body1", children: d }),
|
|
82
|
-
/* @__PURE__ */ t(l, { bold: !0, variant: "body1", children: z(u, "0,0.00") })
|
|
83
|
-
] }),
|
|
84
|
-
/* @__PURE__ */ a(s, { direction: "row", justifyContent: "space-between", children: [
|
|
85
|
-
/* @__PURE__ */ t(l, { variant: "body2", children: h }),
|
|
86
|
-
/* @__PURE__ */ t(l, { variant: "body2", children: b })
|
|
87
|
-
] })
|
|
88
|
-
] }),
|
|
89
|
-
y && /* @__PURE__ */ t(s, { "aria-label": S, role: "img", children: o || /* @__PURE__ */ t(F, { ChartComponent: e, header: E }) })
|
|
90
|
-
] });
|
|
91
|
-
}, at = f(V);
|
|
92
|
-
export {
|
|
93
|
-
at as A,
|
|
94
|
-
C as u
|
|
95
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as r, Fragment as l } from "react/jsx-runtime";
|
|
2
|
-
import { observer as b } from "mobx-react-lite";
|
|
3
|
-
import I from "@mui/material/Badge";
|
|
4
|
-
import d from "@mui/material/Box";
|
|
5
|
-
import v from "@mui/material/ListItem";
|
|
6
|
-
import C from "@mui/material/ListItemAvatar";
|
|
7
|
-
import S from "@mui/material/ListItemButton";
|
|
8
|
-
import _ from "@mui/material/ListItemText";
|
|
9
|
-
import L from "@mui/material/styles/useTheme";
|
|
10
|
-
import { InstitutionLogo as A, Text as o } from "@mxenabled/mxui";
|
|
11
|
-
import { Error as B } from "@mxenabled/mx-icons";
|
|
12
|
-
import { I as j } from "./IconBacking-DgT8DCeh.mjs";
|
|
13
|
-
import { g as T } from "./AccountFields-nrrEXd46.mjs";
|
|
14
|
-
import { u as $ } from "./useAccountDisplayName-SrQA7K_6.mjs";
|
|
15
|
-
import { u as k } from "./hooks-HwStH7q_.mjs";
|
|
16
|
-
import { C as c } from "./Account-CMjOp7S2.mjs";
|
|
17
|
-
import { f as w } from "./NumberFormatting-CyrvFgfd.mjs";
|
|
18
|
-
const E = {
|
|
19
|
-
gridRow: 1,
|
|
20
|
-
gridColumn: 1,
|
|
21
|
-
zIndex: 2
|
|
22
|
-
}, M = ({ size: t = 20 }) => /* @__PURE__ */ e(j, { size: t, children: /* @__PURE__ */ e(B, { color: "error", filled: !0, sx: { fontSize: t, ...E } }) }), z = ({
|
|
23
|
-
account: t,
|
|
24
|
-
onRowClick: n,
|
|
25
|
-
listItemProps: s,
|
|
26
|
-
shouldShowConnectionStatus: p = !1
|
|
27
|
-
}) => {
|
|
28
|
-
const u = L(), f = $(t), { accounts: i } = k(), { firstSubtitle: h, firstValue: g, secondSubtitle: x, secondValue: y } = T(
|
|
29
|
-
t,
|
|
30
|
-
i
|
|
31
|
-
);
|
|
32
|
-
let a;
|
|
33
|
-
(t.connectionStatus === c.Error || t.connectionStatus === c.RequiresMfa) && (a = /* @__PURE__ */ e(M, { size: 16 }));
|
|
34
|
-
const m = /* @__PURE__ */ r(l, { children: [
|
|
35
|
-
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
36
|
-
I,
|
|
37
|
-
{
|
|
38
|
-
badgeContent: p ? a : void 0,
|
|
39
|
-
sx: {
|
|
40
|
-
"& .MuiBadge-badge": {
|
|
41
|
-
right: -1
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
children: /* @__PURE__ */ e(A, { alt: "MX", institutionGuid: t.institution_guid || "" })
|
|
45
|
-
}
|
|
46
|
-
) }),
|
|
47
|
-
/* @__PURE__ */ e(
|
|
48
|
-
_,
|
|
49
|
-
{
|
|
50
|
-
disableTypography: !0,
|
|
51
|
-
primary: /* @__PURE__ */ r(
|
|
52
|
-
o,
|
|
53
|
-
{
|
|
54
|
-
bold: !0,
|
|
55
|
-
color: t.is_hidden ? u.palette.text.secondary : void 0,
|
|
56
|
-
sx: { whiteSpace: "normal" },
|
|
57
|
-
variant: "body1",
|
|
58
|
-
children: [
|
|
59
|
-
`${f} ${t.account_number ? `*${t.account_number}` : ""}`,
|
|
60
|
-
" ",
|
|
61
|
-
t.is_hidden && !t.is_closed && i.is_hidden,
|
|
62
|
-
t.is_closed && i.is_closed
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
),
|
|
66
|
-
secondary: /* @__PURE__ */ r(l, { children: [
|
|
67
|
-
/* @__PURE__ */ r(d, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
|
|
68
|
-
/* @__PURE__ */ e(o, { variant: "caption", children: h }),
|
|
69
|
-
/* @__PURE__ */ e(o, { bold: !0, variant: "body2", children: w(g, "0,0.00") })
|
|
70
|
-
] }),
|
|
71
|
-
/* @__PURE__ */ r(d, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
|
|
72
|
-
/* @__PURE__ */ e(o, { variant: "caption", children: x }),
|
|
73
|
-
/* @__PURE__ */ e(o, { ml: "auto", variant: "caption", children: y })
|
|
74
|
-
] })
|
|
75
|
-
] })
|
|
76
|
-
}
|
|
77
|
-
)
|
|
78
|
-
] });
|
|
79
|
-
return /* @__PURE__ */ e(
|
|
80
|
-
v,
|
|
81
|
-
{
|
|
82
|
-
...s,
|
|
83
|
-
sx: {
|
|
84
|
-
backgroundColor: "background.paper",
|
|
85
|
-
color: t.is_closed ? "grey.700" : "",
|
|
86
|
-
...s?.sx
|
|
87
|
-
},
|
|
88
|
-
children: n ? /* @__PURE__ */ e(S, { alignItems: "flex-start", onClick: n, sx: { px: 24 }, children: m }) : m
|
|
89
|
-
}
|
|
90
|
-
);
|
|
91
|
-
}, P = b(z);
|
|
92
|
-
export {
|
|
93
|
-
P as A
|
|
94
|
-
};
|