@mx-cartographer/experiences 7.11.16 → 7.11.18
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/GlobalAccountFilter-CbwySv6c.mjs +237 -0
- package/dist/{WidgetContainer-DaALybWB.mjs → WidgetContainer-DSs6lJbr.mjs} +1 -1
- package/dist/accounts/index.es.js +1 -1
- package/dist/budgets/index.es.js +1 -1
- package/dist/cashflow/index.es.js +1 -1
- package/dist/common/index.es.js +2 -2
- package/dist/dashboard/index.es.js +1 -1
- package/dist/debts/index.es.js +1 -1
- package/dist/finstrong/index.es.js +1 -1
- package/dist/goals/index.es.js +1 -1
- package/dist/help/index.es.js +1 -1
- package/dist/insights/index.es.js +258 -254
- package/dist/investments/index.es.js +1 -1
- package/dist/networth/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +1 -1
- package/dist/settings/index.es.js +1 -1
- package/dist/spending/index.es.js +1 -1
- package/dist/transactions/index.es.js +1 -1
- package/dist/trends/index.es.js +1 -1
- package/package.json +1 -1
- package/dist/GlobalAccountFilter-B3v8E_rC.mjs +0 -215
|
@@ -39,7 +39,7 @@ import { DataGridPro as Xe } from "@mui/x-data-grid-pro";
|
|
|
39
39
|
import { Stack as $e } from "@mui/material";
|
|
40
40
|
import { L as Se } from "../Loader-D3rjKx72.mjs";
|
|
41
41
|
import { u as qe } from "../useWidgetLoadTimer-Bmgv_UeH.mjs";
|
|
42
|
-
import { W as Ke } from "../WidgetContainer-
|
|
42
|
+
import { W as Ke } from "../WidgetContainer-DSs6lJbr.mjs";
|
|
43
43
|
import { A as Ye } from "../Account-BiB1F8lL.mjs";
|
|
44
44
|
import { E as Qe } from "../EmptyState-DHAkGsjk.mjs";
|
|
45
45
|
const me = ({ sx: t = {} }) => {
|
|
@@ -35,7 +35,7 @@ import { u as ne } from "../useWidgetLoadTimer-Bmgv_UeH.mjs";
|
|
|
35
35
|
import { L as re } from "../Loader-D3rjKx72.mjs";
|
|
36
36
|
import { M as ge } from "../MicroWidgetContainer-CMES42I1.mjs";
|
|
37
37
|
import { C as ye } from "../ConnectionsDrawer-c7HaKeRj.mjs";
|
|
38
|
-
import { W as Ce } from "../WidgetContainer-
|
|
38
|
+
import { W as Ce } from "../WidgetContainer-DSs6lJbr.mjs";
|
|
39
39
|
import { E as _e } from "../EmptyState-DHAkGsjk.mjs";
|
|
40
40
|
const Se = () => {
|
|
41
41
|
const { isMobile: t } = q(), { availableWidth: a } = se(), i = j(), {
|
|
@@ -57,7 +57,7 @@ import { u as oe } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
|
57
57
|
import { S as Ae } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
58
58
|
import { u as ae } from "../useWidgetLoadTimer-Bmgv_UeH.mjs";
|
|
59
59
|
import { L as se } from "../Loader-D3rjKx72.mjs";
|
|
60
|
-
import { W as gt } from "../WidgetContainer-
|
|
60
|
+
import { W as gt } from "../WidgetContainer-DSs6lJbr.mjs";
|
|
61
61
|
import { M as ht } from "../MiniWidgetContainer-DhEx4qKi.mjs";
|
|
62
62
|
import { u as ft } from "../useDimensions-CeDR9V8N.mjs";
|
|
63
63
|
import { M as xt } from "../MicroWidgetContainer-CMES42I1.mjs";
|
|
@@ -43,7 +43,7 @@ import Le from "@mui/material/ListItemText";
|
|
|
43
43
|
import { D as He } from "../Drawer-DV4NTsFg.mjs";
|
|
44
44
|
import { u as ne } from "../useWidgetLoadTimer-Bmgv_UeH.mjs";
|
|
45
45
|
import { H as Oe } from "../Help-COWDMsJq.mjs";
|
|
46
|
-
import { W as X } from "../WidgetContainer-
|
|
46
|
+
import { W as X } from "../WidgetContainer-DSs6lJbr.mjs";
|
|
47
47
|
const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
48
48
|
const o = xe(), { common: i, settings: n } = D(), { isDesktop: d, isMobile: l, isSmallMobile: r, isTablet: s } = O(t), { config: b } = $(), { updateUser: _ } = A(), { user: m } = Se(), [h, S] = p.useState({
|
|
49
49
|
first_name: m.first_name,
|
|
@@ -31,7 +31,7 @@ import { D as tt } from "../Drawer-DV4NTsFg.mjs";
|
|
|
31
31
|
import { b as w } from "../Category-CevNQ03n.mjs";
|
|
32
32
|
import { parseISO as et } from "date-fns/parseISO";
|
|
33
33
|
import { A as nt } from "../Analytics-i5h6BxR1.mjs";
|
|
34
|
-
import { W as It } from "../WidgetContainer-
|
|
34
|
+
import { W as It } from "../WidgetContainer-DSs6lJbr.mjs";
|
|
35
35
|
const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(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") })
|
|
@@ -41,7 +41,7 @@ import { u as ut } from "../useAriaLive-MkYebyUR.mjs";
|
|
|
41
41
|
import { S as mt } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
42
42
|
import { u as _t } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
43
43
|
import { u as pt } from "../useWidgetLoadTimer-Bmgv_UeH.mjs";
|
|
44
|
-
import { W as gt } from "../WidgetContainer-
|
|
44
|
+
import { W as gt } from "../WidgetContainer-DSs6lJbr.mjs";
|
|
45
45
|
import { A } from "../Analytics-i5h6BxR1.mjs";
|
|
46
46
|
import { S as ht } from "../SearchBox-B7km148n.mjs";
|
|
47
47
|
import { D as te } from "../Drawer-DV4NTsFg.mjs";
|
package/dist/trends/index.es.js
CHANGED
|
@@ -40,7 +40,7 @@ import { T as ct } from "../TransactionDetails-BEKQKH03.mjs";
|
|
|
40
40
|
import { D as We } from "../Drawer-DV4NTsFg.mjs";
|
|
41
41
|
import { u as Ie } from "../useWidgetLoadTimer-Bmgv_UeH.mjs";
|
|
42
42
|
import { L as Le } from "../Loader-D3rjKx72.mjs";
|
|
43
|
-
import { W as dt } from "../WidgetContainer-
|
|
43
|
+
import { W as dt } from "../WidgetContainer-DSs6lJbr.mjs";
|
|
44
44
|
import { L as Be } from "../LineChart-DvCvL2Ed.mjs";
|
|
45
45
|
import { M as Xt } from "../MiniWidgetContainer-DhEx4qKi.mjs";
|
|
46
46
|
import { subMonths as Zt } from "date-fns";
|
package/package.json
CHANGED
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import B from "react";
|
|
3
|
-
import { observer as I } from "mobx-react-lite";
|
|
4
|
-
import j from "@mui/material/Box";
|
|
5
|
-
import k from "@mui/material/Button";
|
|
6
|
-
import P from "@mui/material/Divider";
|
|
7
|
-
import w from "@mui/material/IconButton";
|
|
8
|
-
import O from "@mui/material/Popover";
|
|
9
|
-
import S from "@mui/material/Stack";
|
|
10
|
-
import D from "@mui/material/Tooltip";
|
|
11
|
-
import { FilterAlt as A } from "@mxenabled/mx-icons";
|
|
12
|
-
import F from "@mui/material/Checkbox";
|
|
13
|
-
import G from "@mui/material/List";
|
|
14
|
-
import y from "@mui/material/ListItem";
|
|
15
|
-
import v from "@mui/material/ListItemButton";
|
|
16
|
-
import E from "@mui/material/ListItemIcon";
|
|
17
|
-
import _ from "@mui/material/ListItemText";
|
|
18
|
-
import { b as z, u as M, d as L } from "./hooks-zu7yblbi.mjs";
|
|
19
|
-
import { u as H } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
20
|
-
const R = I(
|
|
21
|
-
({ allowedAccountTypes: n }) => {
|
|
22
|
-
const { accountFilterMap: c, updateAccountFilterMap: u } = z(), { accounts: g, common: x } = M(), { account_filter: d } = x, { accountsByTypeMap: a } = L(), C = B.useMemo(
|
|
23
|
-
() => Array.from(a.keys()).reduce((e, r) => {
|
|
24
|
-
if (!n || n && n.includes(r)) {
|
|
25
|
-
const i = a.get(r);
|
|
26
|
-
i && e.push(...i);
|
|
27
|
-
}
|
|
28
|
-
return e;
|
|
29
|
-
}, []),
|
|
30
|
-
[a, n]
|
|
31
|
-
), m = new Map(
|
|
32
|
-
Array.from(c.entries()).filter(([e]) => C.some((r) => r.guid === e))
|
|
33
|
-
), p = Array.from(m.values()).every((e) => e), h = Array.from(m.values()).some((e) => e), f = () => {
|
|
34
|
-
for (const e of m.keys())
|
|
35
|
-
u(e, !p);
|
|
36
|
-
}, b = (e) => {
|
|
37
|
-
const r = a.get(e);
|
|
38
|
-
if (!r) return;
|
|
39
|
-
const i = r.some((o) => c.get(o.guid));
|
|
40
|
-
for (const o of r)
|
|
41
|
-
u(o.guid, !i);
|
|
42
|
-
};
|
|
43
|
-
return /* @__PURE__ */ s(
|
|
44
|
-
G,
|
|
45
|
-
{
|
|
46
|
-
dense: !0,
|
|
47
|
-
id: "filter_accounts",
|
|
48
|
-
sx: { overflowY: "scroll", maxHeight: 350, minWidth: 280 },
|
|
49
|
-
children: [
|
|
50
|
-
/* @__PURE__ */ t(y, { disableGutters: !0, disablePadding: !0, sx: { py: 16 }, children: /* @__PURE__ */ s(v, { disableGutters: !0, onClick: f, sx: { p: 0, px: 8 }, children: [
|
|
51
|
-
/* @__PURE__ */ t(
|
|
52
|
-
F,
|
|
53
|
-
{
|
|
54
|
-
checked: p,
|
|
55
|
-
disableRipple: !0,
|
|
56
|
-
indeterminate: !p && h,
|
|
57
|
-
inputProps: { "aria-labelledby": "label-select-all" },
|
|
58
|
-
size: "small",
|
|
59
|
-
tabIndex: -1
|
|
60
|
-
}
|
|
61
|
-
),
|
|
62
|
-
/* @__PURE__ */ t(
|
|
63
|
-
_,
|
|
64
|
-
{
|
|
65
|
-
id: "label-select-all",
|
|
66
|
-
primary: d.select_all_accounts,
|
|
67
|
-
primaryTypographyProps: { variant: "body1" }
|
|
68
|
-
}
|
|
69
|
-
)
|
|
70
|
-
] }) }),
|
|
71
|
-
Array.from(a.keys()).map((e) => {
|
|
72
|
-
const r = a.get(e), i = n ? !n.includes(e) : !1, o = g.account_type_accounts[e];
|
|
73
|
-
return (
|
|
74
|
-
// Account Type Header
|
|
75
|
-
/* @__PURE__ */ t(y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ s(S, { sx: { pb: 8, width: "100%" }, children: [
|
|
76
|
-
/* @__PURE__ */ t(P, {}),
|
|
77
|
-
/* @__PURE__ */ t(
|
|
78
|
-
G,
|
|
79
|
-
{
|
|
80
|
-
dense: !0,
|
|
81
|
-
subheader: /* @__PURE__ */ t(y, { children: /* @__PURE__ */ t(
|
|
82
|
-
v,
|
|
83
|
-
{
|
|
84
|
-
disableGutters: !0,
|
|
85
|
-
disabled: i,
|
|
86
|
-
onClick: () => b(e),
|
|
87
|
-
sx: { pl: 16, minHeight: 40, justifyContent: "left" },
|
|
88
|
-
children: /* @__PURE__ */ t(
|
|
89
|
-
_,
|
|
90
|
-
{
|
|
91
|
-
primary: o,
|
|
92
|
-
primaryTypographyProps: { variant: "body1", fontWeight: "bold" }
|
|
93
|
-
}
|
|
94
|
-
)
|
|
95
|
-
}
|
|
96
|
-
) }),
|
|
97
|
-
children: r?.map((l) => (
|
|
98
|
-
// Account Checkbox
|
|
99
|
-
/* @__PURE__ */ t(y, { children: /* @__PURE__ */ s(
|
|
100
|
-
v,
|
|
101
|
-
{
|
|
102
|
-
disableGutters: !0,
|
|
103
|
-
disabled: i,
|
|
104
|
-
onClick: () => u(l.guid, !c.get(l.guid)),
|
|
105
|
-
sx: { p: 0, minHeight: 40 },
|
|
106
|
-
children: [
|
|
107
|
-
/* @__PURE__ */ t(E, { children: /* @__PURE__ */ t(
|
|
108
|
-
F,
|
|
109
|
-
{
|
|
110
|
-
checked: c.get(l.guid),
|
|
111
|
-
disableRipple: !0,
|
|
112
|
-
inputProps: { "aria-labelledby": `label-${l.guid}` },
|
|
113
|
-
size: "small",
|
|
114
|
-
tabIndex: -1
|
|
115
|
-
}
|
|
116
|
-
) }),
|
|
117
|
-
/* @__PURE__ */ t(
|
|
118
|
-
_,
|
|
119
|
-
{
|
|
120
|
-
id: `label-${l.guid}`,
|
|
121
|
-
primary: l.displayName,
|
|
122
|
-
primaryTypographyProps: { variant: "body1" }
|
|
123
|
-
}
|
|
124
|
-
)
|
|
125
|
-
]
|
|
126
|
-
}
|
|
127
|
-
) }, l.guid)
|
|
128
|
-
))
|
|
129
|
-
}
|
|
130
|
-
)
|
|
131
|
-
] }) }, e)
|
|
132
|
-
);
|
|
133
|
-
})
|
|
134
|
-
]
|
|
135
|
-
}
|
|
136
|
-
);
|
|
137
|
-
}
|
|
138
|
-
), at = I(
|
|
139
|
-
({
|
|
140
|
-
allowedAccountTypes: n,
|
|
141
|
-
onAccountFilterClick: c,
|
|
142
|
-
sx: u = {},
|
|
143
|
-
variant: g = "text"
|
|
144
|
-
}) => {
|
|
145
|
-
const { isDesktop: x } = H(), { common: d } = M(), { accountFilterMap: a, resetAccountFilterMap: C } = z(), { detailedAccounts: m, updateAccountFilter: p } = L(), [h, f] = B.useState(null), b = (W) => {
|
|
146
|
-
C(), f(W.currentTarget), c?.();
|
|
147
|
-
}, e = () => {
|
|
148
|
-
f(null);
|
|
149
|
-
}, r = async () => {
|
|
150
|
-
await p(a), f(null);
|
|
151
|
-
}, i = d.account_filter, o = !!h, l = m.length === 0;
|
|
152
|
-
return /* @__PURE__ */ s(j, { m: 4, sx: { ...u }, children: [
|
|
153
|
-
x ? /* @__PURE__ */ t(
|
|
154
|
-
k,
|
|
155
|
-
{
|
|
156
|
-
"aria-controls": o ? "filter_accounts" : void 0,
|
|
157
|
-
"aria-expanded": o,
|
|
158
|
-
"aria-haspopup": !0,
|
|
159
|
-
"aria-label": i.title,
|
|
160
|
-
disabled: l,
|
|
161
|
-
onClick: b,
|
|
162
|
-
startIcon: /* @__PURE__ */ t(A, { size: 24 }),
|
|
163
|
-
sx: { p: 8, whiteSpace: "nowrap", minWidth: "max-content" },
|
|
164
|
-
variant: g,
|
|
165
|
-
children: d.filter_button
|
|
166
|
-
}
|
|
167
|
-
) : /* @__PURE__ */ t(D, { id: "filter-accounts", placement: "bottom", title: i.title, children: /* @__PURE__ */ t(
|
|
168
|
-
w,
|
|
169
|
-
{
|
|
170
|
-
"aria-controls": o ? "filter_accounts" : void 0,
|
|
171
|
-
"aria-describedby": "filter-accounts",
|
|
172
|
-
"aria-expanded": o,
|
|
173
|
-
"aria-haspopup": !0,
|
|
174
|
-
"aria-label": i.title,
|
|
175
|
-
color: "primary",
|
|
176
|
-
disabled: l,
|
|
177
|
-
onClick: b,
|
|
178
|
-
sx: { p: 8 },
|
|
179
|
-
children: /* @__PURE__ */ t(A, { size: 24 })
|
|
180
|
-
}
|
|
181
|
-
) }),
|
|
182
|
-
/* @__PURE__ */ t(
|
|
183
|
-
O,
|
|
184
|
-
{
|
|
185
|
-
anchorEl: h,
|
|
186
|
-
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
187
|
-
onClose: e,
|
|
188
|
-
open: o,
|
|
189
|
-
transformOrigin: { vertical: "top", horizontal: "left" },
|
|
190
|
-
children: /* @__PURE__ */ s(S, { children: [
|
|
191
|
-
/* @__PURE__ */ t(R, { allowedAccountTypes: n }),
|
|
192
|
-
/* @__PURE__ */ t(P, {}),
|
|
193
|
-
/* @__PURE__ */ s(S, { direction: "row", justifyContent: "space-between", spacing: 16, sx: { p: 16 }, children: [
|
|
194
|
-
/* @__PURE__ */ t(k, { fullWidth: !0, onClick: e, variant: "text", children: d.cancel_button }),
|
|
195
|
-
/* @__PURE__ */ t(
|
|
196
|
-
k,
|
|
197
|
-
{
|
|
198
|
-
"aria-label": i.filter_button_aria,
|
|
199
|
-
color: "primary",
|
|
200
|
-
fullWidth: !0,
|
|
201
|
-
onClick: r,
|
|
202
|
-
variant: "contained",
|
|
203
|
-
children: d.filter_button
|
|
204
|
-
}
|
|
205
|
-
)
|
|
206
|
-
] })
|
|
207
|
-
] })
|
|
208
|
-
}
|
|
209
|
-
)
|
|
210
|
-
] });
|
|
211
|
-
}
|
|
212
|
-
);
|
|
213
|
-
export {
|
|
214
|
-
at as G
|
|
215
|
-
};
|