@mx-cartographer/experiences 8.1.6 → 8.1.7
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/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/package.json +1 -1
- package/dist/AccountDetailsHeader-D_a0XUkL.mjs +0 -95
- package/dist/AccountListItem-D80egD01.mjs +0 -94
|
@@ -16,12 +16,12 @@ export type AccountField = {
|
|
|
16
16
|
valueFormatter: (val: any) => any;
|
|
17
17
|
};
|
|
18
18
|
export declare const getAccountDetailFields: (account: Account, copy: AccountsCopy) => AccountField[];
|
|
19
|
-
export declare const getAccountBalanceDetails: (account: Account, copy: AccountsCopy) => {
|
|
19
|
+
export declare const getAccountBalanceDetails: (account: Account, copy: AccountsCopy, showAvailableBalance: boolean) => {
|
|
20
20
|
firstSubtitle: string;
|
|
21
21
|
firstValue: number | undefined;
|
|
22
22
|
secondSubtitle: string | import("react/jsx-runtime").JSX.Element | null;
|
|
23
23
|
secondValue: string | null;
|
|
24
24
|
hasAvailableBalance: boolean;
|
|
25
25
|
};
|
|
26
|
-
export declare const getClosedAccountBalanceTotal: (accounts: Account[], copy: AccountsCopy) => number;
|
|
26
|
+
export declare const getClosedAccountBalanceTotal: (accounts: Account[], copy: AccountsCopy, showAvailableBalance: boolean) => number;
|
|
27
27
|
export {};
|
|
@@ -24,7 +24,7 @@ import ye from "@mui/material/Tab";
|
|
|
24
24
|
import { getUnixTime as le } from "date-fns/getUnixTime";
|
|
25
25
|
import Q from "@mui/material/List";
|
|
26
26
|
import ee from "@mui/material/ListItem";
|
|
27
|
-
import { A as tt } from "../AccountListItem-
|
|
27
|
+
import { A as tt } from "../AccountListItem-DSuv36PF.mjs";
|
|
28
28
|
import { f as U, D as Y } from "../DateFormats-CaOj_4eI.mjs";
|
|
29
29
|
import nt from "@mui/material/ListSubheader";
|
|
30
30
|
import { f as J } from "../NumberFormatting-CyrvFgfd.mjs";
|
package/dist/debts/index.es.js
CHANGED
|
@@ -16,7 +16,7 @@ import { G as ze, x as ee, u as C, k as V, g as B, d as te, a as Ye, b as Ve } f
|
|
|
16
16
|
import { u as ae } from "../useScreenSize-CeFhWTt_.mjs";
|
|
17
17
|
import { D as ie } from "../Drawer-XPaLYjiO.mjs";
|
|
18
18
|
import { b as E } from "../Localization-CkQ49EKr.mjs";
|
|
19
|
-
import { A as Ke, u as Ue } from "../AccountDetailsHeader-
|
|
19
|
+
import { A as Ke, u as Ue } from "../AccountDetailsHeader-D8NIfmO8.mjs";
|
|
20
20
|
import qe from "@mui/material/Card";
|
|
21
21
|
import Xe from "@mui/material/CardContent";
|
|
22
22
|
import Ze from "@mui/material/CardHeader";
|
|
@@ -31,7 +31,7 @@ import xe from "@mui/material/ListItem";
|
|
|
31
31
|
import vt from "@mui/material/ListItemAvatar";
|
|
32
32
|
import Se from "@mui/material/ListItemText";
|
|
33
33
|
import { g as wt } from "../AccountDisplayName-CO7z3v99.mjs";
|
|
34
|
-
import { g as kt } from "../AccountFields-
|
|
34
|
+
import { g as kt } from "../AccountFields-BWmpVsS3.mjs";
|
|
35
35
|
import He from "@mui/material/List";
|
|
36
36
|
import $n from "@mui/material/ListItemButton";
|
|
37
37
|
import En from "@mui/material/ListSubheader";
|
|
@@ -829,7 +829,11 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
829
829
|
sx: { bgcolor: "background.paper" },
|
|
830
830
|
children: [
|
|
831
831
|
_.map((m, b) => {
|
|
832
|
-
const { firstValue: v } = kt(
|
|
832
|
+
const { firstValue: v } = kt(
|
|
833
|
+
m,
|
|
834
|
+
s,
|
|
835
|
+
r.display_available_balance_in_accounts
|
|
836
|
+
), x = wt(m, {
|
|
833
837
|
allowNickname: r?.show_account_nicknames_in_master
|
|
834
838
|
}), S = /* @__PURE__ */ i(H, { children: [
|
|
835
839
|
/* @__PURE__ */ e(vt, { children: /* @__PURE__ */ e(pt, { alt: "MX", institutionGuid: m.institution_guid ?? "" }) }),
|
|
@@ -860,7 +864,11 @@ const Ao = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
860
864
|
),
|
|
861
865
|
[c, t]
|
|
862
866
|
), v = h.useMemo(() => b.slice(0, 3), [b]), x = (S) => {
|
|
863
|
-
const { firstValue: f } = kt(
|
|
867
|
+
const { firstValue: f } = kt(
|
|
868
|
+
S,
|
|
869
|
+
l,
|
|
870
|
+
r.display_available_balance_in_accounts
|
|
871
|
+
);
|
|
864
872
|
return f;
|
|
865
873
|
};
|
|
866
874
|
return b.length >= 1 ? /* @__PURE__ */ i(H, { children: [
|
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
|
-
};
|