@mx-cartographer/experiences 9.0.8-alpha.al0 → 9.0.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 +6 -2
- package/dist/{AccountDetailsDrawer-C8oJP3J4.mjs → AccountDetailsDrawer-DEk4STDa.mjs} +4 -4
- package/dist/{CategorySelectorDrawer-BArJC27L.mjs → CategorySelectorDrawer-NJsFsKP1.mjs} +1 -1
- package/dist/{ConnectCard-Dwfgv24k.mjs → ConnectCard-D7uxoH5Y.mjs} +1 -1
- package/dist/{ConnectDrawer-DytyIhaF.mjs → ConnectDrawer-CW4LA3H3.mjs} +1 -1
- package/dist/{ConnectionsDrawer-BHJPKXYF.mjs → ConnectionsDrawer-CZU9ku-k.mjs} +1 -1
- package/dist/{Drawer-BXqqBMxg.mjs → Drawer-DsnW2o0v.mjs} +19 -19
- package/dist/{EmbeddedCard-CQpbZrmP.mjs → EmbeddedCard-BxgB26dd.mjs} +1 -1
- package/dist/{ExportCsvAction-bovG-NJr.mjs → ExportCsvAction-BV69DnpC.mjs} +1 -1
- package/dist/GlobalAccountFilter-BhzR5Vb1.mjs +229 -0
- package/dist/{Help-5klKVqkX.mjs → Help-BMCejaQr.mjs} +1 -1
- package/dist/{ManageIncome-Cz6hvpdA.mjs → ManageIncome-Bak38F25.mjs} +4 -4
- package/dist/{NotificationSettings-Ci89BBRI.mjs → NotificationSettings-CW7okUrk.mjs} +1 -1
- package/dist/{RecurringSettings-ClYjsmPz.mjs → RecurringSettings--7poMYYz.mjs} +1 -1
- package/dist/{TransactionDetails-DRN0GIaZ.mjs → TransactionDetails-DwSNzM4U.mjs} +3 -3
- package/dist/{WidgetContainer-D-LzIKFb.mjs → WidgetContainer-DJnp6t6c.mjs} +3 -3
- package/dist/accounts/index.es.js +5 -5
- package/dist/budgets/index.es.js +7 -7
- package/dist/cashflow/index.es.js +6 -6
- package/dist/categories/index.es.js +1 -1
- package/dist/common/index.es.js +223 -247
- package/dist/common/utils/Theme.d.ts +9 -12
- package/dist/core/types/AppData.d.ts +0 -14
- package/dist/core/types/Client.d.ts +13 -20
- package/dist/core/types/index.d.ts +1 -1
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +3 -3
- package/dist/finstrong/index.es.js +7 -7
- package/dist/goals/index.es.js +3 -3
- package/dist/help/index.es.js +2 -2
- package/dist/insights/index.es.js +3 -3
- package/dist/investments/index.es.js +3 -3
- package/dist/networth/index.es.js +3 -3
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +6 -6
- package/dist/settings/index.es.js +6 -6
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/index.es.js +9 -9
- package/dist/trends/index.es.js +6 -6
- package/package.json +2 -2
- package/dist/GlobalAccountFilter-CYqzqmAd.mjs +0 -237
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import { jsxs as d, jsx as e } 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 C 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 A from "@mui/material/Stack";
|
|
10
|
-
import E from "@mui/material/Tooltip";
|
|
11
|
-
import { FilterAlt as F } from "@mxenabled/mx-icons";
|
|
12
|
-
import S from "@mui/material/Checkbox";
|
|
13
|
-
import G from "@mui/material/List";
|
|
14
|
-
import g from "@mui/material/ListItem";
|
|
15
|
-
import _ from "@mui/material/ListItemButton";
|
|
16
|
-
import H from "@mui/material/ListItemIcon";
|
|
17
|
-
import v from "@mui/material/ListItemText";
|
|
18
|
-
import { a as M, u as W, c as z } from "./hooks-97sNJ_lf.mjs";
|
|
19
|
-
const N = I(
|
|
20
|
-
({ allowedAccountTypes: a }) => {
|
|
21
|
-
const { accountFilterMap: s, updateAccountFilterMap: u } = M(), { accounts: y, common: x } = W(), { account_filter: c } = x, { accountsByTypeMap: n } = z(), k = B.useMemo(
|
|
22
|
-
() => Array.from(n.keys()).reduce((t, i) => {
|
|
23
|
-
if (!a || a && a.includes(i)) {
|
|
24
|
-
const o = n.get(i);
|
|
25
|
-
o && t.push(...o);
|
|
26
|
-
}
|
|
27
|
-
return t;
|
|
28
|
-
}, []),
|
|
29
|
-
[n, a]
|
|
30
|
-
), p = new Map(
|
|
31
|
-
Array.from(s.entries()).filter(([t]) => k.some((i) => i.guid === t))
|
|
32
|
-
), m = Array.from(p.values()).every((t) => t), h = Array.from(p.values()).some((t) => t), f = () => {
|
|
33
|
-
for (const t of p.keys())
|
|
34
|
-
u(t, !m);
|
|
35
|
-
}, b = (t) => {
|
|
36
|
-
const i = n.get(t);
|
|
37
|
-
if (!i) return;
|
|
38
|
-
const o = i.some((r) => s.get(r.guid));
|
|
39
|
-
for (const r of i)
|
|
40
|
-
u(r.guid, !o);
|
|
41
|
-
};
|
|
42
|
-
return /* @__PURE__ */ d(
|
|
43
|
-
G,
|
|
44
|
-
{
|
|
45
|
-
dense: !0,
|
|
46
|
-
id: "filter_accounts",
|
|
47
|
-
sx: { overflowY: "scroll", maxHeight: 350, minWidth: 280 },
|
|
48
|
-
children: [
|
|
49
|
-
/* @__PURE__ */ e(
|
|
50
|
-
g,
|
|
51
|
-
{
|
|
52
|
-
"aria-label": c.select_all_accounts,
|
|
53
|
-
disableGutters: !0,
|
|
54
|
-
disablePadding: !0,
|
|
55
|
-
role: "menuitem",
|
|
56
|
-
sx: { py: 16 },
|
|
57
|
-
children: /* @__PURE__ */ d(_, { disableGutters: !0, onClick: f, sx: { p: 0, px: 8 }, children: [
|
|
58
|
-
/* @__PURE__ */ e(
|
|
59
|
-
S,
|
|
60
|
-
{
|
|
61
|
-
"aria-checked": m,
|
|
62
|
-
checked: m,
|
|
63
|
-
disableRipple: !0,
|
|
64
|
-
indeterminate: !m && h,
|
|
65
|
-
size: "small",
|
|
66
|
-
slotProps: { input: { "aria-labelledby": "label-select-all" } },
|
|
67
|
-
tabIndex: -1
|
|
68
|
-
}
|
|
69
|
-
),
|
|
70
|
-
/* @__PURE__ */ e(
|
|
71
|
-
v,
|
|
72
|
-
{
|
|
73
|
-
id: "label-select-all",
|
|
74
|
-
primary: c.select_all_accounts,
|
|
75
|
-
slotProps: { primary: { variant: "body1", fontWeight: "normal" } }
|
|
76
|
-
}
|
|
77
|
-
)
|
|
78
|
-
] })
|
|
79
|
-
}
|
|
80
|
-
),
|
|
81
|
-
Array.from(n.keys()).map((t) => {
|
|
82
|
-
const i = n.get(t), o = a ? !a.includes(t) : !1, r = y.account_type_accounts[t];
|
|
83
|
-
return (
|
|
84
|
-
// Account Type Header
|
|
85
|
-
/* @__PURE__ */ e(
|
|
86
|
-
g,
|
|
87
|
-
{
|
|
88
|
-
"aria-label": r,
|
|
89
|
-
disableGutters: !0,
|
|
90
|
-
disablePadding: !0,
|
|
91
|
-
children: /* @__PURE__ */ d(A, { sx: { pb: 8, width: "100%" }, children: [
|
|
92
|
-
/* @__PURE__ */ e(P, {}),
|
|
93
|
-
/* @__PURE__ */ e(
|
|
94
|
-
G,
|
|
95
|
-
{
|
|
96
|
-
dense: !0,
|
|
97
|
-
role: "menu",
|
|
98
|
-
subheader: /* @__PURE__ */ e(g, { "aria-label": r, role: "menu", children: /* @__PURE__ */ e(
|
|
99
|
-
_,
|
|
100
|
-
{
|
|
101
|
-
disableGutters: !0,
|
|
102
|
-
disabled: o,
|
|
103
|
-
onClick: () => b(t),
|
|
104
|
-
sx: { pl: 16, minHeight: 40, justifyContent: "left" },
|
|
105
|
-
children: /* @__PURE__ */ e(
|
|
106
|
-
v,
|
|
107
|
-
{
|
|
108
|
-
primary: r,
|
|
109
|
-
slotProps: { primary: { variant: "body1", fontWeight: "bold" } }
|
|
110
|
-
}
|
|
111
|
-
)
|
|
112
|
-
}
|
|
113
|
-
) }),
|
|
114
|
-
children: i?.map((l) => (
|
|
115
|
-
// Account Checkbox
|
|
116
|
-
/* @__PURE__ */ e(g, { "aria-label": l.displayName, role: "menuitem", children: /* @__PURE__ */ d(
|
|
117
|
-
_,
|
|
118
|
-
{
|
|
119
|
-
disableGutters: !0,
|
|
120
|
-
disabled: o,
|
|
121
|
-
onClick: () => u(l.guid, !s.get(l.guid)),
|
|
122
|
-
sx: { p: 0, minHeight: 40 },
|
|
123
|
-
children: [
|
|
124
|
-
/* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(
|
|
125
|
-
S,
|
|
126
|
-
{
|
|
127
|
-
"aria-checked": s.get(l.guid),
|
|
128
|
-
checked: s.get(l.guid),
|
|
129
|
-
disableRipple: !0,
|
|
130
|
-
size: "small",
|
|
131
|
-
slotProps: { input: { "aria-labelledby": `label-${l.guid}` } },
|
|
132
|
-
tabIndex: -1
|
|
133
|
-
}
|
|
134
|
-
) }),
|
|
135
|
-
/* @__PURE__ */ e(
|
|
136
|
-
v,
|
|
137
|
-
{
|
|
138
|
-
id: `label-${l.guid}`,
|
|
139
|
-
primary: l.displayName,
|
|
140
|
-
slotProps: { primary: { variant: "body1", fontWeight: "normal" } }
|
|
141
|
-
}
|
|
142
|
-
)
|
|
143
|
-
]
|
|
144
|
-
}
|
|
145
|
-
) }, l.guid)
|
|
146
|
-
))
|
|
147
|
-
}
|
|
148
|
-
)
|
|
149
|
-
] })
|
|
150
|
-
},
|
|
151
|
-
t
|
|
152
|
-
)
|
|
153
|
-
);
|
|
154
|
-
})
|
|
155
|
-
]
|
|
156
|
-
}
|
|
157
|
-
);
|
|
158
|
-
}
|
|
159
|
-
), le = I(
|
|
160
|
-
({
|
|
161
|
-
allowedAccountTypes: a,
|
|
162
|
-
isDesktop: s,
|
|
163
|
-
onAccountFilterClick: u,
|
|
164
|
-
sx: y = {},
|
|
165
|
-
variant: x = "text"
|
|
166
|
-
}) => {
|
|
167
|
-
const { common: c } = W(), { accountFilterMap: n, resetAccountFilterMap: k } = M(), { detailedAccounts: p, updateAccountFilter: m } = z(), [h, f] = B.useState(null), b = (L) => {
|
|
168
|
-
k(), f(L.currentTarget), u?.();
|
|
169
|
-
}, t = () => {
|
|
170
|
-
f(null);
|
|
171
|
-
}, i = async () => {
|
|
172
|
-
await m(n), f(null);
|
|
173
|
-
}, o = c.account_filter, r = !!h, l = p.length === 0;
|
|
174
|
-
return /* @__PURE__ */ d(j, { sx: { ...y }, children: [
|
|
175
|
-
s ? /* @__PURE__ */ e(
|
|
176
|
-
C,
|
|
177
|
-
{
|
|
178
|
-
"aria-controls": r ? "filter_accounts" : void 0,
|
|
179
|
-
"aria-expanded": r,
|
|
180
|
-
"aria-haspopup": !0,
|
|
181
|
-
"aria-label": o.title,
|
|
182
|
-
disabled: l,
|
|
183
|
-
onClick: b,
|
|
184
|
-
startIcon: /* @__PURE__ */ e(F, { size: 24 }),
|
|
185
|
-
sx: { p: 8, whiteSpace: "nowrap", minWidth: "max-content" },
|
|
186
|
-
variant: x,
|
|
187
|
-
children: c.filter_button
|
|
188
|
-
}
|
|
189
|
-
) : /* @__PURE__ */ e(E, { id: "filter-accounts", placement: "bottom", title: o.title, children: /* @__PURE__ */ e(
|
|
190
|
-
w,
|
|
191
|
-
{
|
|
192
|
-
"aria-controls": r ? "filter_accounts" : void 0,
|
|
193
|
-
"aria-describedby": "filter-accounts",
|
|
194
|
-
"aria-expanded": r,
|
|
195
|
-
"aria-haspopup": !0,
|
|
196
|
-
"aria-label": o.title,
|
|
197
|
-
color: "primary",
|
|
198
|
-
disabled: l,
|
|
199
|
-
onClick: b,
|
|
200
|
-
sx: { p: 8 },
|
|
201
|
-
children: /* @__PURE__ */ e(F, { size: 24 })
|
|
202
|
-
}
|
|
203
|
-
) }),
|
|
204
|
-
/* @__PURE__ */ e(
|
|
205
|
-
O,
|
|
206
|
-
{
|
|
207
|
-
anchorEl: h,
|
|
208
|
-
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
209
|
-
onClose: t,
|
|
210
|
-
open: r,
|
|
211
|
-
transformOrigin: { vertical: "top", horizontal: "left" },
|
|
212
|
-
children: /* @__PURE__ */ d(A, { children: [
|
|
213
|
-
/* @__PURE__ */ e(N, { allowedAccountTypes: a }),
|
|
214
|
-
/* @__PURE__ */ e(P, {}),
|
|
215
|
-
/* @__PURE__ */ d(A, { direction: "row", justifyContent: "space-between", spacing: 16, sx: { p: 16 }, children: [
|
|
216
|
-
/* @__PURE__ */ e(C, { fullWidth: !0, onClick: t, variant: "text", children: c.cancel_button }),
|
|
217
|
-
/* @__PURE__ */ e(
|
|
218
|
-
C,
|
|
219
|
-
{
|
|
220
|
-
"aria-label": o.filter_button_aria,
|
|
221
|
-
color: "primary",
|
|
222
|
-
fullWidth: !0,
|
|
223
|
-
onClick: i,
|
|
224
|
-
variant: "contained",
|
|
225
|
-
children: c.filter_button
|
|
226
|
-
}
|
|
227
|
-
)
|
|
228
|
-
] })
|
|
229
|
-
] })
|
|
230
|
-
}
|
|
231
|
-
)
|
|
232
|
-
] });
|
|
233
|
-
}
|
|
234
|
-
);
|
|
235
|
-
export {
|
|
236
|
-
le as G
|
|
237
|
-
};
|