@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
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
## [9.0.8] - 05-
|
|
1
|
+
## [9.0.8] - 05-25-2026
|
|
2
2
|
|
|
3
|
-
- **
|
|
3
|
+
- **FIXED** - Account filter checkboxes now expose checked/unchecked/mixed state to screen readers
|
|
4
|
+
- **FIXED** - Account filter no longer double-announces interactive elements
|
|
5
|
+
- **FIXED** - Date range selector announcing [Object object] instead of readable text
|
|
6
|
+
- **FIXED** - Account filter button aria-label now interpolates dynamic account count
|
|
7
|
+
- **FIXED** - Drawer close/back button now receives focus when drawers open for screen reader users
|
|
4
8
|
|
|
5
9
|
## [9.0.7] - 05-22-2026
|
|
6
10
|
|
|
@@ -27,9 +27,9 @@ import { f as Dt } from "./NumberFormatting--XMeeBfr.mjs";
|
|
|
27
27
|
import { u as St } from "./useAccountDisplayName-BsiXA0qf.mjs";
|
|
28
28
|
import { A as I } from "./Analytics-WeZYytR0.mjs";
|
|
29
29
|
import { D as U } from "./Dialog-Bvd2n8hz.mjs";
|
|
30
|
-
import { D as z } from "./Drawer-
|
|
30
|
+
import { D as z } from "./Drawer-DsnW2o0v.mjs";
|
|
31
31
|
import Et from "@mui/material/Stack";
|
|
32
|
-
import { C as st } from "./ConnectDrawer-
|
|
32
|
+
import { C as st } from "./ConnectDrawer-CW4LA3H3.mjs";
|
|
33
33
|
import { fromUnixTime as vt } from "date-fns/fromUnixTime";
|
|
34
34
|
import { isToday as wt } from "date-fns/isToday";
|
|
35
35
|
import { isYesterday as It } from "date-fns/isYesterday";
|
|
@@ -50,8 +50,8 @@ import $t from "@mui/material/AlertTitle";
|
|
|
50
50
|
import Vt from "@mui/material/Link";
|
|
51
51
|
import Wt from "@mui/material/Paper";
|
|
52
52
|
import { endOfToday as zt, subDays as Yt, startOfToday as Gt } from "date-fns";
|
|
53
|
-
import { T as Ht } from "./EmbeddedCard-
|
|
54
|
-
import { T as jt } from "./TransactionDetails-
|
|
53
|
+
import { T as Ht } from "./EmbeddedCard-BxgB26dd.mjs";
|
|
54
|
+
import { T as jt } from "./TransactionDetails-DwSNzM4U.mjs";
|
|
55
55
|
const Kt = (t, o) => {
|
|
56
56
|
const n = tt.includes(o) ? mt(t) : [], a = et.includes(o) ? pt(t) : [], c = nt.includes(o) ? ht(t) : [];
|
|
57
57
|
return [n, a, c].filter((l) => l.length > 0);
|
|
@@ -23,7 +23,7 @@ import v from "@mui/material/IconButton";
|
|
|
23
23
|
import { u as ae } from "./useAriaLive-MkYebyUR.mjs";
|
|
24
24
|
import { L as k } from "./Loader-CxeBwuPG.mjs";
|
|
25
25
|
import { S as re } from "./SearchBox-Cpgu_gdO.mjs";
|
|
26
|
-
import { D as ne } from "./Drawer-
|
|
26
|
+
import { D as ne } from "./Drawer-DsnW2o0v.mjs";
|
|
27
27
|
const y = () => {
|
|
28
28
|
if (!E.useContext(K))
|
|
29
29
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
@@ -7,7 +7,7 @@ import p from "@mui/material/CardHeader";
|
|
|
7
7
|
import C from "@mui/material/Stack";
|
|
8
8
|
import { AccountBalance as f, ChevronRight as h } from "@mxenabled/mx-icons";
|
|
9
9
|
import { Text as a } from "@mxenabled/mxui";
|
|
10
|
-
import { C as x } from "./ConnectDrawer-
|
|
10
|
+
import { C as x } from "./ConnectDrawer-CW4LA3H3.mjs";
|
|
11
11
|
const H = ({ description: i, label: e, title: c }) => {
|
|
12
12
|
const [s, o] = n.useState(!1);
|
|
13
13
|
return /* @__PURE__ */ r(n.Fragment, { children: [
|
|
@@ -5,7 +5,7 @@ import { useTheme as g } from "@mui/material/styles";
|
|
|
5
5
|
import { ConnectWidget as x } from "@mxenabled/web-widget-sdk";
|
|
6
6
|
import { b as a, a as c, M as i } from "./Connect-BH0Pt6zc.mjs";
|
|
7
7
|
import { c as D, d as L, u as w } from "./hooks-97sNJ_lf.mjs";
|
|
8
|
-
import { D as y } from "./Drawer-
|
|
8
|
+
import { D as y } from "./Drawer-DsnW2o0v.mjs";
|
|
9
9
|
const I = ({
|
|
10
10
|
loadWidgetProps: l,
|
|
11
11
|
onClose: u,
|
|
@@ -5,7 +5,7 @@ import { useTheme as _ } from "@mui/material/styles";
|
|
|
5
5
|
import { ConnectionsWidget as b } from "@mxenabled/web-widget-sdk";
|
|
6
6
|
import { C as a, a as c, M as i } from "./Connect-BH0Pt6zc.mjs";
|
|
7
7
|
import { c as D, d as L, u as w } from "./hooks-97sNJ_lf.mjs";
|
|
8
|
-
import { D as x } from "./Drawer-
|
|
8
|
+
import { D as x } from "./Drawer-DsnW2o0v.mjs";
|
|
9
9
|
const I = ({
|
|
10
10
|
onClose: l,
|
|
11
11
|
showConnectionsWidget: o,
|
|
@@ -9,8 +9,8 @@ const $ = ({
|
|
|
9
9
|
footerStyles: a = {},
|
|
10
10
|
hasSecondaryAction: t = !0,
|
|
11
11
|
isPrimaryDisabled: i,
|
|
12
|
-
onPrimaryAction:
|
|
13
|
-
onSecondaryAction:
|
|
12
|
+
onPrimaryAction: o,
|
|
13
|
+
onSecondaryAction: e,
|
|
14
14
|
primaryButtonProps: l = {},
|
|
15
15
|
primaryColor: c = "primary",
|
|
16
16
|
primaryText: d = "Save",
|
|
@@ -32,34 +32,34 @@ const $ = ({
|
|
|
32
32
|
b,
|
|
33
33
|
{
|
|
34
34
|
color: n,
|
|
35
|
-
onClick:
|
|
36
|
-
variant:
|
|
35
|
+
onClick: e,
|
|
36
|
+
variant: o ? "outlined" : "contained",
|
|
37
37
|
children: p
|
|
38
38
|
}
|
|
39
39
|
),
|
|
40
|
-
|
|
40
|
+
o && /* @__PURE__ */ r(
|
|
41
41
|
b,
|
|
42
42
|
{
|
|
43
43
|
...l,
|
|
44
44
|
color: c,
|
|
45
45
|
disabled: i,
|
|
46
|
-
onClick:
|
|
46
|
+
onClick: o,
|
|
47
47
|
variant: "contained",
|
|
48
48
|
children: d
|
|
49
49
|
}
|
|
50
50
|
)
|
|
51
51
|
]
|
|
52
52
|
}
|
|
53
|
-
),
|
|
53
|
+
), F = ({
|
|
54
54
|
ariaLabelClose: a,
|
|
55
55
|
onClose: t,
|
|
56
56
|
shouldShowBorders: i,
|
|
57
|
-
shouldShowShadow:
|
|
58
|
-
title:
|
|
57
|
+
shouldShowShadow: o,
|
|
58
|
+
title: e
|
|
59
59
|
}) => /* @__PURE__ */ u(
|
|
60
60
|
h,
|
|
61
61
|
{
|
|
62
|
-
"aria-labelledby": `${
|
|
62
|
+
"aria-labelledby": `${e?.replace(/\s+/g, "-").toLowerCase()}-header-title`,
|
|
63
63
|
direction: "row",
|
|
64
64
|
sx: {
|
|
65
65
|
alignItems: "center",
|
|
@@ -68,13 +68,13 @@ const $ = ({
|
|
|
68
68
|
borderBottom: 1,
|
|
69
69
|
borderColor: "divider"
|
|
70
70
|
},
|
|
71
|
-
...
|
|
71
|
+
...o && {
|
|
72
72
|
boxShadow: "0px 2px 8px 0px #6A73811F"
|
|
73
73
|
},
|
|
74
74
|
padding: "8px 8px 8px 8px"
|
|
75
75
|
},
|
|
76
76
|
children: [
|
|
77
|
-
/* @__PURE__ */ r(B, { "aria-label": a, color: "primary", onClick: t, children: /* @__PURE__ */ r(j, { color: "primary", sx: { fontSize: 22 } }) }),
|
|
77
|
+
/* @__PURE__ */ r(B, { "aria-label": a, autoFocus: !0, color: "primary", onClick: t, children: /* @__PURE__ */ r(j, { color: "primary", sx: { fontSize: 22 } }) }),
|
|
78
78
|
/* @__PURE__ */ r(
|
|
79
79
|
s,
|
|
80
80
|
{
|
|
@@ -87,9 +87,9 @@ const $ = ({
|
|
|
87
87
|
D,
|
|
88
88
|
{
|
|
89
89
|
bold: !0,
|
|
90
|
-
id: `${
|
|
90
|
+
id: `${e?.replace(/\s+/g, "-").toLowerCase()}-header-title`,
|
|
91
91
|
variant: "body1",
|
|
92
|
-
children:
|
|
92
|
+
children: e
|
|
93
93
|
}
|
|
94
94
|
)
|
|
95
95
|
}
|
|
@@ -101,8 +101,8 @@ const $ = ({
|
|
|
101
101
|
ariaLabelClose: a = "Close",
|
|
102
102
|
children: t,
|
|
103
103
|
footerStyles: i = {},
|
|
104
|
-
hasSecondaryAction:
|
|
105
|
-
id:
|
|
104
|
+
hasSecondaryAction: o = !0,
|
|
105
|
+
id: e,
|
|
106
106
|
isOpen: l,
|
|
107
107
|
isPrimaryDisabled: c,
|
|
108
108
|
onClose: d,
|
|
@@ -120,7 +120,7 @@ const $ = ({
|
|
|
120
120
|
}) => /* @__PURE__ */ r(
|
|
121
121
|
v,
|
|
122
122
|
{
|
|
123
|
-
id:
|
|
123
|
+
id: e,
|
|
124
124
|
isOpen: l,
|
|
125
125
|
onClose: d,
|
|
126
126
|
slotProps: {
|
|
@@ -141,7 +141,7 @@ const $ = ({
|
|
|
141
141
|
...S,
|
|
142
142
|
children: /* @__PURE__ */ u(h, { height: "100%", justifyContent: "space-between", children: [
|
|
143
143
|
/* @__PURE__ */ r(
|
|
144
|
-
|
|
144
|
+
F,
|
|
145
145
|
{
|
|
146
146
|
ariaLabelClose: a,
|
|
147
147
|
onClose: d,
|
|
@@ -155,7 +155,7 @@ const $ = ({
|
|
|
155
155
|
$,
|
|
156
156
|
{
|
|
157
157
|
footerStyles: i,
|
|
158
|
-
hasSecondaryAction:
|
|
158
|
+
hasSecondaryAction: o,
|
|
159
159
|
isPrimaryDisabled: c,
|
|
160
160
|
onPrimaryAction: n,
|
|
161
161
|
onSecondaryAction: p ?? d,
|
|
@@ -25,7 +25,7 @@ import { A as gt } from "./Analytics-WeZYytR0.mjs";
|
|
|
25
25
|
import At from "@mui/material/Tab";
|
|
26
26
|
import Nt from "@mui/material/Tabs";
|
|
27
27
|
import ft from "@mui/material/IconButton";
|
|
28
|
-
import { D as It } from "./Drawer-
|
|
28
|
+
import { D as It } from "./Drawer-DsnW2o0v.mjs";
|
|
29
29
|
import { ChartContainer as xt, ChartsReferenceLine as U, ChartsXAxis as St, BarPlot as Ot } from "@mui/x-charts";
|
|
30
30
|
import Dt from "@mui/material/Card";
|
|
31
31
|
const K = () => {
|
|
@@ -2,7 +2,7 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { observer as c } from "mobx-react-lite";
|
|
3
3
|
import { Icon as i } from "@mxenabled/mxui";
|
|
4
4
|
import { e as p } from "./TransactionUtils-BphBJBbU.mjs";
|
|
5
|
-
import { O as m } from "./EmbeddedCard-
|
|
5
|
+
import { O as m } from "./EmbeddedCard-BxgB26dd.mjs";
|
|
6
6
|
import { f as x, g as _, u as C } from "./hooks-97sNJ_lf.mjs";
|
|
7
7
|
import { R as l } from "./ResponsiveButton-CC9F_Ezk.mjs";
|
|
8
8
|
const v = ({ filter: t }) => {
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { jsxs as d, 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 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 R = I(
|
|
20
|
+
({ allowedAccountTypes: l }) => {
|
|
21
|
+
const { accountFilterMap: s, updateAccountFilterMap: m } = M(), { accounts: x, common: y } = W(), { account_filter: u } = y, { accountsByTypeMap: a } = z(), k = B.useMemo(
|
|
22
|
+
() => Array.from(a.keys()).reduce((e, r) => {
|
|
23
|
+
if (!l || l && l.includes(r)) {
|
|
24
|
+
const i = a.get(r);
|
|
25
|
+
i && e.push(...i);
|
|
26
|
+
}
|
|
27
|
+
return e;
|
|
28
|
+
}, []),
|
|
29
|
+
[a, l]
|
|
30
|
+
), p = new Map(
|
|
31
|
+
Array.from(s.entries()).filter(([e]) => k.some((r) => r.guid === e))
|
|
32
|
+
), c = Array.from(p.values()).every((e) => e), f = Array.from(p.values()).some((e) => e), h = () => {
|
|
33
|
+
for (const e of p.keys())
|
|
34
|
+
m(e, !c);
|
|
35
|
+
}, b = (e) => {
|
|
36
|
+
const r = a.get(e);
|
|
37
|
+
if (!r) return;
|
|
38
|
+
const i = r.some((o) => s.get(o.guid));
|
|
39
|
+
for (const o of r)
|
|
40
|
+
m(o.guid, !i);
|
|
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__ */ t(g, { disableGutters: !0, disablePadding: !0, sx: { py: 16 }, children: /* @__PURE__ */ d(
|
|
50
|
+
_,
|
|
51
|
+
{
|
|
52
|
+
"aria-checked": !c && f ? "mixed" : c,
|
|
53
|
+
disableGutters: !0,
|
|
54
|
+
onClick: h,
|
|
55
|
+
role: "checkbox",
|
|
56
|
+
sx: { p: 0, px: 8 },
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ t(
|
|
59
|
+
S,
|
|
60
|
+
{
|
|
61
|
+
"aria-hidden": !0,
|
|
62
|
+
checked: c,
|
|
63
|
+
disableRipple: !0,
|
|
64
|
+
indeterminate: !c && f,
|
|
65
|
+
size: "small",
|
|
66
|
+
slotProps: { input: { "aria-hidden": !0 } },
|
|
67
|
+
tabIndex: -1
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
/* @__PURE__ */ t(
|
|
71
|
+
v,
|
|
72
|
+
{
|
|
73
|
+
id: "label-select-all",
|
|
74
|
+
primary: u.select_all_accounts,
|
|
75
|
+
slotProps: { primary: { variant: "body1", fontWeight: "normal" } }
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
) }),
|
|
81
|
+
Array.from(a.keys()).map((e) => {
|
|
82
|
+
const r = a.get(e), i = l ? !l.includes(e) : !1, o = x.account_type_accounts[e];
|
|
83
|
+
return (
|
|
84
|
+
// Account Type Header
|
|
85
|
+
/* @__PURE__ */ t(g, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(A, { sx: { pb: 8, width: "100%" }, children: [
|
|
86
|
+
/* @__PURE__ */ t(P, {}),
|
|
87
|
+
/* @__PURE__ */ t(
|
|
88
|
+
G,
|
|
89
|
+
{
|
|
90
|
+
dense: !0,
|
|
91
|
+
subheader: /* @__PURE__ */ t(g, { children: /* @__PURE__ */ t(
|
|
92
|
+
_,
|
|
93
|
+
{
|
|
94
|
+
disableGutters: !0,
|
|
95
|
+
disabled: i,
|
|
96
|
+
onClick: () => b(e),
|
|
97
|
+
sx: { pl: 16, minHeight: 40, justifyContent: "left" },
|
|
98
|
+
children: /* @__PURE__ */ t(
|
|
99
|
+
v,
|
|
100
|
+
{
|
|
101
|
+
primary: o,
|
|
102
|
+
slotProps: { primary: { variant: "body1", fontWeight: "bold" } }
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
}
|
|
106
|
+
) }),
|
|
107
|
+
children: r?.map((n) => (
|
|
108
|
+
// Account Checkbox
|
|
109
|
+
/* @__PURE__ */ t(g, { children: /* @__PURE__ */ d(
|
|
110
|
+
_,
|
|
111
|
+
{
|
|
112
|
+
"aria-checked": !!s.get(n.guid),
|
|
113
|
+
disableGutters: !0,
|
|
114
|
+
disabled: i,
|
|
115
|
+
onClick: () => m(n.guid, !s.get(n.guid)),
|
|
116
|
+
role: "checkbox",
|
|
117
|
+
sx: { p: 0, minHeight: 40 },
|
|
118
|
+
children: [
|
|
119
|
+
/* @__PURE__ */ t(H, { children: /* @__PURE__ */ t(
|
|
120
|
+
S,
|
|
121
|
+
{
|
|
122
|
+
"aria-hidden": !0,
|
|
123
|
+
checked: !!s.get(n.guid),
|
|
124
|
+
disableRipple: !0,
|
|
125
|
+
size: "small",
|
|
126
|
+
slotProps: { input: { "aria-hidden": !0 } },
|
|
127
|
+
tabIndex: -1
|
|
128
|
+
}
|
|
129
|
+
) }),
|
|
130
|
+
/* @__PURE__ */ t(
|
|
131
|
+
v,
|
|
132
|
+
{
|
|
133
|
+
id: `label-${n.guid}`,
|
|
134
|
+
primary: n.displayName,
|
|
135
|
+
slotProps: { primary: { variant: "body1", fontWeight: "normal" } }
|
|
136
|
+
}
|
|
137
|
+
)
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
) }, n.guid)
|
|
141
|
+
))
|
|
142
|
+
}
|
|
143
|
+
)
|
|
144
|
+
] }) }, e)
|
|
145
|
+
);
|
|
146
|
+
})
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
), nt = I(
|
|
152
|
+
({
|
|
153
|
+
allowedAccountTypes: l,
|
|
154
|
+
isDesktop: s,
|
|
155
|
+
onAccountFilterClick: m,
|
|
156
|
+
sx: x = {},
|
|
157
|
+
variant: y = "text"
|
|
158
|
+
}) => {
|
|
159
|
+
const { common: u } = W(), { accountFilterMap: a, resetAccountFilterMap: k } = M(), { detailedAccounts: p, updateAccountFilter: c } = z(), [f, h] = B.useState(null), b = (L) => {
|
|
160
|
+
k(), h(L.currentTarget), m?.();
|
|
161
|
+
}, e = () => {
|
|
162
|
+
h(null);
|
|
163
|
+
}, r = async () => {
|
|
164
|
+
await c(a), h(null);
|
|
165
|
+
}, i = u.account_filter, o = !!f, n = p.length === 0;
|
|
166
|
+
return /* @__PURE__ */ d(j, { sx: { ...x }, children: [
|
|
167
|
+
s ? /* @__PURE__ */ t(
|
|
168
|
+
C,
|
|
169
|
+
{
|
|
170
|
+
"aria-controls": o ? "filter_accounts" : void 0,
|
|
171
|
+
"aria-expanded": o,
|
|
172
|
+
"aria-haspopup": !0,
|
|
173
|
+
"aria-label": i.title,
|
|
174
|
+
disabled: n,
|
|
175
|
+
onClick: b,
|
|
176
|
+
startIcon: /* @__PURE__ */ t(F, { size: 24 }),
|
|
177
|
+
sx: { p: 8, whiteSpace: "nowrap", minWidth: "max-content" },
|
|
178
|
+
variant: y,
|
|
179
|
+
children: u.filter_button
|
|
180
|
+
}
|
|
181
|
+
) : /* @__PURE__ */ t(E, { id: "filter-accounts", placement: "bottom", title: i.title, children: /* @__PURE__ */ t(
|
|
182
|
+
w,
|
|
183
|
+
{
|
|
184
|
+
"aria-controls": o ? "filter_accounts" : void 0,
|
|
185
|
+
"aria-describedby": "filter-accounts",
|
|
186
|
+
"aria-expanded": o,
|
|
187
|
+
"aria-haspopup": !0,
|
|
188
|
+
"aria-label": i.title,
|
|
189
|
+
color: "primary",
|
|
190
|
+
disabled: n,
|
|
191
|
+
onClick: b,
|
|
192
|
+
sx: { p: 8 },
|
|
193
|
+
children: /* @__PURE__ */ t(F, { size: 24 })
|
|
194
|
+
}
|
|
195
|
+
) }),
|
|
196
|
+
/* @__PURE__ */ t(
|
|
197
|
+
O,
|
|
198
|
+
{
|
|
199
|
+
anchorEl: f,
|
|
200
|
+
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
201
|
+
onClose: e,
|
|
202
|
+
open: o,
|
|
203
|
+
transformOrigin: { vertical: "top", horizontal: "left" },
|
|
204
|
+
children: /* @__PURE__ */ d(A, { children: [
|
|
205
|
+
/* @__PURE__ */ t(R, { allowedAccountTypes: l }),
|
|
206
|
+
/* @__PURE__ */ t(P, {}),
|
|
207
|
+
/* @__PURE__ */ d(A, { direction: "row", justifyContent: "space-between", spacing: 16, sx: { p: 16 }, children: [
|
|
208
|
+
/* @__PURE__ */ t(C, { fullWidth: !0, onClick: e, variant: "text", children: u.cancel_button }),
|
|
209
|
+
/* @__PURE__ */ t(
|
|
210
|
+
C,
|
|
211
|
+
{
|
|
212
|
+
"aria-label": i.filter_button_generic_aria,
|
|
213
|
+
color: "primary",
|
|
214
|
+
fullWidth: !0,
|
|
215
|
+
onClick: r,
|
|
216
|
+
variant: "contained",
|
|
217
|
+
children: u.filter_button
|
|
218
|
+
}
|
|
219
|
+
)
|
|
220
|
+
] })
|
|
221
|
+
] })
|
|
222
|
+
}
|
|
223
|
+
)
|
|
224
|
+
] });
|
|
225
|
+
}
|
|
226
|
+
);
|
|
227
|
+
export {
|
|
228
|
+
nt as G
|
|
229
|
+
};
|
|
@@ -24,7 +24,7 @@ import { H as Lt, P as Dt } from "./Help-CkQTjORd.mjs";
|
|
|
24
24
|
import dt from "@mui/material/Alert";
|
|
25
25
|
import gt from "@mui/material/Snackbar";
|
|
26
26
|
import ut from "@mui/material/TextField";
|
|
27
|
-
import { D as j } from "./Drawer-
|
|
27
|
+
import { D as j } from "./Drawer-DsnW2o0v.mjs";
|
|
28
28
|
import { L as mt } from "./Loader-CxeBwuPG.mjs";
|
|
29
29
|
import Rt from "@mui/material/ListItemAvatar";
|
|
30
30
|
import Pt from "@mui/material/ListItem";
|
|
@@ -17,15 +17,15 @@ import { startOfToday as P } from "date-fns/startOfToday";
|
|
|
17
17
|
import { endOfMonth as Ye } from "date-fns/endOfMonth";
|
|
18
18
|
import he from "@mui/material/Button";
|
|
19
19
|
import { CheckCircle as Be, Cancel as We, Icon as Ke, ChevronRight as qe, Delete as je, Add as He, ReceiptLong as Qe } from "@mxenabled/mx-icons";
|
|
20
|
-
import { T as $e } from "./TransactionDetails-
|
|
21
|
-
import { a as Xe } from "./AccountDetailsDrawer-
|
|
20
|
+
import { T as $e } from "./TransactionDetails-DwSNzM4U.mjs";
|
|
21
|
+
import { a as Xe } from "./AccountDetailsDrawer-DEk4STDa.mjs";
|
|
22
22
|
import { u as Ze } from "./AccountDetailsHeader-ByGNPZpO.mjs";
|
|
23
23
|
import { C as V } from "./Category-DEKZGLYe.mjs";
|
|
24
24
|
import { T as ye } from "./TransactionUtils-BphBJBbU.mjs";
|
|
25
|
-
import { u as fe, T as Je, S as Ve, a as et } from "./EmbeddedCard-
|
|
25
|
+
import { u as fe, T as Je, S as Ve, a as et } from "./EmbeddedCard-BxgB26dd.mjs";
|
|
26
26
|
import { u as k, h as Y, g as ae, f as K, a as tt, c as nt, C as ot } from "./hooks-97sNJ_lf.mjs";
|
|
27
27
|
import { S as at } from "./SearchBox-Cpgu_gdO.mjs";
|
|
28
|
-
import { D as z } from "./Drawer-
|
|
28
|
+
import { D as z } from "./Drawer-DsnW2o0v.mjs";
|
|
29
29
|
import { D as re } from "./Dialog-Bvd2n8hz.mjs";
|
|
30
30
|
import { addYears as le } from "date-fns/addYears";
|
|
31
31
|
import { getDayOfYear as rt } from "date-fns/getDayOfYear";
|
|
@@ -22,7 +22,7 @@ import { T as R, a as D } from "./ToggleListItem-Dl1lXNwj.mjs";
|
|
|
22
22
|
import { D as B } from "./Dialog-Bvd2n8hz.mjs";
|
|
23
23
|
import { C as _e } from "./CurrencyInput-DaGEQaLW.mjs";
|
|
24
24
|
import { u as fe } from "./useScreenSize-mWpmnh5w.mjs";
|
|
25
|
-
import { D as K } from "./Drawer-
|
|
25
|
+
import { D as K } from "./Drawer-DsnW2o0v.mjs";
|
|
26
26
|
import pe from "@mui/material/Collapse";
|
|
27
27
|
import ge from "@mui/material/Card";
|
|
28
28
|
import ye from "@mui/material/CardContent";
|
|
@@ -7,7 +7,7 @@ import R from "@mui/material/Tabs";
|
|
|
7
7
|
import d from "@mui/material/Divider";
|
|
8
8
|
import b from "@mui/material/List";
|
|
9
9
|
import T from "@mui/material/Stack";
|
|
10
|
-
import { R as C, A as S, a as E, M as v } from "./ManageIncome-
|
|
10
|
+
import { R as C, A as S, a as E, M as v } from "./ManageIncome-Bak38F25.mjs";
|
|
11
11
|
import { u as _, h as A, f } from "./hooks-97sNJ_lf.mjs";
|
|
12
12
|
import { R as y, F as N } from "./RecurringTransactionsUtil-zOxq5pzY.mjs";
|
|
13
13
|
import { A as m } from "./Analytics-WeZYytR0.mjs";
|
|
@@ -22,7 +22,7 @@ import Xe from "@mui/material/FormGroup";
|
|
|
22
22
|
import ue from "@mui/material/IconButton";
|
|
23
23
|
import $e from "@mui/material/TextField";
|
|
24
24
|
import { u as Ae } from "./useAriaLive-MkYebyUR.mjs";
|
|
25
|
-
import { b as Ze, T as Je, u as ne, O as C, c as et, d as tt, E as at, C as nt } from "./EmbeddedCard-
|
|
25
|
+
import { b as Ze, T as Je, u as ne, O as C, c as et, d as tt, E as at, C as nt } from "./EmbeddedCard-BxgB26dd.mjs";
|
|
26
26
|
import { u as O, g as R, o as rt, c as ot, l as we, f as G, a as it, C as st } from "./hooks-97sNJ_lf.mjs";
|
|
27
27
|
import { A as Y } from "./Analytics-WeZYytR0.mjs";
|
|
28
28
|
import lt from "@mui/material/ToggleButton";
|
|
@@ -37,9 +37,9 @@ import { BarChart as mt } from "@mui/x-charts";
|
|
|
37
37
|
import { L as _t } from "./Loader-CxeBwuPG.mjs";
|
|
38
38
|
import Q from "@mui/material/ListItemButton";
|
|
39
39
|
import X from "@mui/material/ListItemIcon";
|
|
40
|
-
import { b as Fe } from "./CategorySelectorDrawer-
|
|
40
|
+
import { b as Fe } from "./CategorySelectorDrawer-NJsFsKP1.mjs";
|
|
41
41
|
import { D as ae } from "./Dialog-Bvd2n8hz.mjs";
|
|
42
|
-
import { D as _e } from "./Drawer-
|
|
42
|
+
import { D as _e } from "./Drawer-DsnW2o0v.mjs";
|
|
43
43
|
import { b as gt, C as pt, a as ht } from "./CurrencyDialog-DumQCTPO.mjs";
|
|
44
44
|
import Pe from "@mui/material/InputAdornment";
|
|
45
45
|
import yt from "@mui/material/Checkbox";
|
|
@@ -11,7 +11,7 @@ import Y from "@mui/material/Stack";
|
|
|
11
11
|
import { ChevronLeft as be } from "@mxenabled/mx-icons";
|
|
12
12
|
import { Icon as x, Text as F, DateRangePicker as Z } from "@mxenabled/mxui";
|
|
13
13
|
import { u as J } from "./useDimensions-CeDR9V8N.mjs";
|
|
14
|
-
import { G as _e } from "./GlobalAccountFilter-
|
|
14
|
+
import { G as _e } from "./GlobalAccountFilter-BhzR5Vb1.mjs";
|
|
15
15
|
import { a as se, u as le, f as Re, i as Ce, W as xe } from "./hooks-97sNJ_lf.mjs";
|
|
16
16
|
import { addMonths as ee } from "date-fns/addMonths";
|
|
17
17
|
import { addDays as De } from "date-fns/addDays";
|
|
@@ -36,7 +36,7 @@ import we from "@mui/material/ToggleButtonGroup";
|
|
|
36
36
|
import { useTheme as Be } from "@mui/material/styles";
|
|
37
37
|
import { u as Ne } from "./useAriaLive-MkYebyUR.mjs";
|
|
38
38
|
import { D as Oe } from "./Dialog-Bvd2n8hz.mjs";
|
|
39
|
-
import { D as Ie } from "./Drawer-
|
|
39
|
+
import { D as Ie } from "./Drawer-DsnW2o0v.mjs";
|
|
40
40
|
import { u as de } from "./useScreenSize-mWpmnh5w.mjs";
|
|
41
41
|
import { f as M, D as P } from "./DateFormats-HudZ3Bjs.mjs";
|
|
42
42
|
import { L as Ge } from "./Loader-CxeBwuPG.mjs";
|
|
@@ -127,7 +127,7 @@ const We = (n) => {
|
|
|
127
127
|
}, I = (t, i) => {
|
|
128
128
|
t[1] = t[1] ?? t[0];
|
|
129
129
|
const u = [t[0], t[1] ? ke(t[1]) : t[1]], f = M(u[0], P.MONTH_DAY_YEAR), b = M(u[1], P.MONTH_DAY_YEAR);
|
|
130
|
-
L(u), S(i), D(`${a.
|
|
130
|
+
L(u), S(i), D(`${a.dateRangeEditTitle}: ${f} - ${b}`);
|
|
131
131
|
}, G = (t) => {
|
|
132
132
|
w(t);
|
|
133
133
|
};
|
|
@@ -12,16 +12,16 @@ import Z from "@mui/system/Stack";
|
|
|
12
12
|
import { f as U } from "../NumberFormatting--XMeeBfr.mjs";
|
|
13
13
|
import { u as X, g as e1 } from "../AccountDetailsHeader-ByGNPZpO.mjs";
|
|
14
14
|
import { A as K1, a as z1, b as $1 } from "../AccountDetailsHeader-ByGNPZpO.mjs";
|
|
15
|
-
import { A as E, a as t1 } from "../AccountDetailsDrawer-
|
|
16
|
-
import { b as q1, u as J1 } from "../AccountDetailsDrawer-
|
|
15
|
+
import { A as E, a as t1 } from "../AccountDetailsDrawer-DEk4STDa.mjs";
|
|
16
|
+
import { b as q1, u as J1 } from "../AccountDetailsDrawer-DEk4STDa.mjs";
|
|
17
17
|
import { i as z, u as R, a as x, c as N, f as $ } from "../hooks-97sNJ_lf.mjs";
|
|
18
18
|
import { A } from "../Analytics-WeZYytR0.mjs";
|
|
19
|
-
import { C as l1 } from "../ConnectionsDrawer-
|
|
19
|
+
import { C as l1 } from "../ConnectionsDrawer-CZU9ku-k.mjs";
|
|
20
20
|
import { u as Y } from "../useScreenSize-mWpmnh5w.mjs";
|
|
21
21
|
import { u as T } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
22
22
|
import { L as B } from "../Loader-CxeBwuPG.mjs";
|
|
23
|
-
import { W as n1 } from "../WidgetContainer-
|
|
24
|
-
import { C as q } from "../ConnectDrawer-
|
|
23
|
+
import { W as n1 } from "../WidgetContainer-DJnp6t6c.mjs";
|
|
24
|
+
import { C as q } from "../ConnectDrawer-CW4LA3H3.mjs";
|
|
25
25
|
import i1 from "@mui/material/ListItem";
|
|
26
26
|
import { c as W } from "../Account-DR7Plrqy.mjs";
|
|
27
27
|
import { M as J } from "../MiniWidgetContainer-Bmv_WeUd.mjs";
|
package/dist/budgets/index.es.js
CHANGED
|
@@ -21,11 +21,11 @@ import te from "@mui/material/ListItem";
|
|
|
21
21
|
import me from "@mui/material/ListItemAvatar";
|
|
22
22
|
import oe from "@mui/material/ListItemButton";
|
|
23
23
|
import ne from "@mui/material/ListItemText";
|
|
24
|
-
import { D as $ } from "../Drawer-
|
|
24
|
+
import { D as $ } from "../Drawer-DsnW2o0v.mjs";
|
|
25
25
|
import Xe from "@mui/material/ListItemSecondaryAction";
|
|
26
26
|
import { C as Ze } from "../CurrencyInput-DaGEQaLW.mjs";
|
|
27
27
|
import { D as W } from "../Dialog-Bvd2n8hz.mjs";
|
|
28
|
-
import { C as qe } from "../ConnectionsDrawer-
|
|
28
|
+
import { C as qe } from "../ConnectionsDrawer-CZU9ku-k.mjs";
|
|
29
29
|
import * as O from "d3";
|
|
30
30
|
import Je from "@mui/material/Tooltip";
|
|
31
31
|
import { u as ge } from "../useScreenSize-mWpmnh5w.mjs";
|
|
@@ -35,19 +35,19 @@ import { A as P } from "../Analytics-WeZYytR0.mjs";
|
|
|
35
35
|
import Ee from "@mui/material/Tab";
|
|
36
36
|
import Qe from "@mui/material/Tabs";
|
|
37
37
|
import { e as et, g as we } from "../TransactionUtils-BphBJBbU.mjs";
|
|
38
|
-
import { T as ve } from "../EmbeddedCard-
|
|
39
|
-
import { T as tt, c as ot } from "../TransactionDetails-
|
|
38
|
+
import { T as ve } from "../EmbeddedCard-BxgB26dd.mjs";
|
|
39
|
+
import { T as tt, c as ot } from "../TransactionDetails-DwSNzM4U.mjs";
|
|
40
40
|
import Te from "@mui/material/Card";
|
|
41
41
|
import De from "@mui/material/CardContent";
|
|
42
42
|
import { S as Se } from "../StatusBar-CPfSXe80.mjs";
|
|
43
43
|
import { S as Ge } from "../SingleSegmentDonut-7Uy6VEld.mjs";
|
|
44
|
-
import { u as nt, C as at } from "../CategorySelectorDrawer-
|
|
44
|
+
import { u as nt, C as at } from "../CategorySelectorDrawer-NJsFsKP1.mjs";
|
|
45
45
|
import Pe from "@mui/material/CardHeader";
|
|
46
46
|
import { subDays as rt } from "date-fns/subDays";
|
|
47
47
|
import st from "@mui/material/IconButton";
|
|
48
|
-
import { M as it } from "../ManageIncome-
|
|
48
|
+
import { M as it } from "../ManageIncome-Bak38F25.mjs";
|
|
49
49
|
import { u as je } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
50
|
-
import { W as ct } from "../WidgetContainer-
|
|
50
|
+
import { W as ct } from "../WidgetContainer-DJnp6t6c.mjs";
|
|
51
51
|
import { g as lt, a as dt } from "../BudgetUtil-Bg2AQJpQ.mjs";
|
|
52
52
|
import { M as ut } from "../MiniWidgetContainer-Bmv_WeUd.mjs";
|
|
53
53
|
import { b as mt } from "../CurrencyDialog-DumQCTPO.mjs";
|
|
@@ -17,13 +17,13 @@ import { I as pe } from "../InformationTooltip-4su8bn1e.mjs";
|
|
|
17
17
|
import { u as Oe } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
18
18
|
import { M as Ze } from "../MiniWidgetContainer-Bmv_WeUd.mjs";
|
|
19
19
|
import { E as et } from "../EmptyState-CJUDc3kD.mjs";
|
|
20
|
-
import { R as tt } from "../RecurringSettings
|
|
20
|
+
import { R as tt } from "../RecurringSettings--7poMYYz.mjs";
|
|
21
21
|
import nt from "@mui/material/Tabs";
|
|
22
22
|
import ye from "@mui/material/Tab";
|
|
23
23
|
import { getUnixTime as le } from "date-fns/getUnixTime";
|
|
24
24
|
import Q from "@mui/material/List";
|
|
25
25
|
import ee from "@mui/material/ListItem";
|
|
26
|
-
import { A as ot } from "../AccountDetailsDrawer-
|
|
26
|
+
import { A as ot } from "../AccountDetailsDrawer-DEk4STDa.mjs";
|
|
27
27
|
import { f as U, D as Y } from "../DateFormats-HudZ3Bjs.mjs";
|
|
28
28
|
import it from "@mui/material/ListSubheader";
|
|
29
29
|
import { f as J } from "../NumberFormatting--XMeeBfr.mjs";
|
|
@@ -34,17 +34,17 @@ import { addDays as _e } from "date-fns/addDays";
|
|
|
34
34
|
import { DataGridPro as at } from "@mui/x-data-grid-pro";
|
|
35
35
|
import { T as Ce } from "../TabContentContainer-B0eYJP5p.mjs";
|
|
36
36
|
import W from "@mui/material/Button";
|
|
37
|
-
import { M as rt, S as st, i as ct, b as we, c as lt } from "../ManageIncome-
|
|
38
|
-
import { D as He } from "../Drawer-
|
|
37
|
+
import { M as rt, S as st, i as ct, b as we, c as lt } from "../ManageIncome-Bak38F25.mjs";
|
|
38
|
+
import { D as He } from "../Drawer-DsnW2o0v.mjs";
|
|
39
39
|
import { subDays as We } from "date-fns/subDays";
|
|
40
40
|
import { endOfToday as dt } from "date-fns/endOfToday";
|
|
41
|
-
import { W as mt } from "../WidgetContainer-
|
|
41
|
+
import { W as mt } from "../WidgetContainer-DJnp6t6c.mjs";
|
|
42
42
|
import { c as X } from "../Account-DR7Plrqy.mjs";
|
|
43
43
|
import { A as Se } from "../Analytics-WeZYytR0.mjs";
|
|
44
44
|
import { formatISO as ut } from "date-fns/formatISO";
|
|
45
45
|
import { fromUnixTime as De } from "date-fns/fromUnixTime";
|
|
46
46
|
import { startOfMonth as pt } from "date-fns/startOfMonth";
|
|
47
|
-
import { S as ht, a as ft } from "../EmbeddedCard-
|
|
47
|
+
import { S as ht, a as ft } from "../EmbeddedCard-BxgB26dd.mjs";
|
|
48
48
|
import { F as gt, R as Ie, d as ve } from "../RecurringTransactionsUtil-zOxq5pzY.mjs";
|
|
49
49
|
import { k as bt } from "../DateUtil-CzBmbjmA.mjs";
|
|
50
50
|
const q = () => {
|