@mx-cartographer/experiences 7.13.9 → 7.13.11
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 +14 -0
- package/dist/{AccountListItem-LcJVJysf.mjs → AccountListItem-D9WJDbZ1.mjs} +20 -16
- package/dist/{CategorySelectorDrawer-gc41lfFZ.mjs → CategorySelectorDrawer-Dc9Widy9.mjs} +60 -53
- package/dist/{ManageIncome-C57PYdQd.mjs → ManageIncome--_KEPuCK.mjs} +1 -1
- package/dist/{RecurringSettings-47RY7mfj.mjs → RecurringSettings-XPxxB0Wf.mjs} +1 -1
- package/dist/{SpendingLegend-CJjjTGBw.mjs → SpendingLegend-s0rv96Ka.mjs} +8 -8
- package/dist/{TransactionDetails-B-HssZFM.mjs → TransactionDetails-B-C-7meW.mjs} +1 -1
- package/dist/{WidgetContainer-D_iaToWJ.mjs → WidgetContainer-B7xDq2bM.mjs} +30 -29
- package/dist/accounts/index.es.js +368 -281
- package/dist/budgets/index.es.js +4 -4
- package/dist/cashflow/index.es.js +4 -4
- package/dist/categories/index.es.js +1 -1
- package/dist/common/index.es.js +1 -1
- package/dist/debts/index.es.js +1 -1
- package/dist/finstrong/index.es.js +4 -4
- package/dist/goals/index.es.js +135 -129
- package/dist/help/index.es.js +1 -1
- package/dist/investments/index.es.js +1 -1
- package/dist/networth/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +40 -37
- package/dist/settings/index.es.js +2 -2
- package/dist/spending/index.es.js +3 -3
- package/dist/transactions/index.es.js +4 -4
- package/dist/trends/index.es.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [7.13.11] - 03-30-2026
|
|
2
|
+
|
|
3
|
+
- **FIXED** - ADA text color contrast fixes
|
|
4
|
+
- **FIXED** - ADA aria label button group fix
|
|
5
|
+
- **FIXED** - ADA replace AccountDetails list item dividers with borders
|
|
6
|
+
- **FIXED** - ADA move AccountActions dialogs from being direct children of `ul`
|
|
7
|
+
|
|
8
|
+
## [7.13.10] - 03-30-2026
|
|
9
|
+
|
|
10
|
+
- **FIXED** - Casing of 'upcoming' copy in recurring transactions
|
|
11
|
+
- **FIXED** - Wrapping of longer goal names on goal status cards
|
|
12
|
+
- **FIXED** - Truncation of custom subcategory names
|
|
13
|
+
- **FIXED** - Wrapping of delete subcategory message
|
|
14
|
+
|
|
1
15
|
## [7.13.9] - 03-30-2026
|
|
2
16
|
|
|
3
17
|
- **UPDATED** - `AddMerchantBudgetAction` | Updated the condition to execute the transcation's setFilter only when the merchantBudgetDrawer is open
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as e, jsxs as r, Fragment as
|
|
1
|
+
import { jsx as e, jsxs as r, Fragment as l } from "react/jsx-runtime";
|
|
2
2
|
import { observer as b } from "mobx-react-lite";
|
|
3
3
|
import I from "@mui/material/Badge";
|
|
4
|
-
import
|
|
4
|
+
import d from "@mui/material/Box";
|
|
5
5
|
import v from "@mui/material/ListItem";
|
|
6
6
|
import C from "@mui/material/ListItemAvatar";
|
|
7
7
|
import S from "@mui/material/ListItemButton";
|
|
@@ -13,7 +13,7 @@ import { I as j } from "./IconBacking-B9oC6uL2.mjs";
|
|
|
13
13
|
import { g as T } from "./AccountFields-CxqONzjY.mjs";
|
|
14
14
|
import { u as $ } from "./useAccountDisplayName-DKwT1mWv.mjs";
|
|
15
15
|
import { u as k } from "./hooks-BxkfR-Ff.mjs";
|
|
16
|
-
import { C as
|
|
16
|
+
import { C as c } from "./Account-BiB1F8lL.mjs";
|
|
17
17
|
import { f as w } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
18
18
|
const E = {
|
|
19
19
|
gridRow: 1,
|
|
@@ -22,20 +22,20 @@ const E = {
|
|
|
22
22
|
}, M = ({ size: t = 20 }) => /* @__PURE__ */ e(j, { size: t, children: /* @__PURE__ */ e(B, { color: "error", filled: !0, sx: { fontSize: t, ...E } }) }), z = ({
|
|
23
23
|
account: t,
|
|
24
24
|
onRowClick: n,
|
|
25
|
-
listItemProps:
|
|
25
|
+
listItemProps: s,
|
|
26
26
|
shouldShowConnectionStatus: p = !1
|
|
27
27
|
}) => {
|
|
28
28
|
const u = L(), f = $(t), { accounts: i } = k(), { firstSubtitle: h, firstValue: g, secondSubtitle: x, secondValue: y } = T(
|
|
29
29
|
t,
|
|
30
30
|
i
|
|
31
31
|
);
|
|
32
|
-
let
|
|
33
|
-
(t.connectionStatus ===
|
|
34
|
-
const
|
|
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
35
|
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
36
36
|
I,
|
|
37
37
|
{
|
|
38
|
-
badgeContent: p ?
|
|
38
|
+
badgeContent: p ? a : void 0,
|
|
39
39
|
sx: {
|
|
40
40
|
"& .MuiBadge-badge": {
|
|
41
41
|
right: -1
|
|
@@ -63,12 +63,12 @@ const E = {
|
|
|
63
63
|
]
|
|
64
64
|
}
|
|
65
65
|
),
|
|
66
|
-
secondary: /* @__PURE__ */ r(
|
|
67
|
-
/* @__PURE__ */ r(
|
|
66
|
+
secondary: /* @__PURE__ */ r(l, { children: [
|
|
67
|
+
/* @__PURE__ */ r(d, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
|
|
68
68
|
/* @__PURE__ */ e(o, { variant: "caption", children: h }),
|
|
69
69
|
/* @__PURE__ */ e(o, { bold: !0, variant: "body2", children: w(g, "0,0.00") })
|
|
70
70
|
] }),
|
|
71
|
-
/* @__PURE__ */ r(
|
|
71
|
+
/* @__PURE__ */ r(d, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
|
|
72
72
|
/* @__PURE__ */ e(o, { variant: "caption", children: x }),
|
|
73
73
|
/* @__PURE__ */ e(o, { ml: "auto", variant: "caption", children: y })
|
|
74
74
|
] })
|
|
@@ -79,12 +79,16 @@ const E = {
|
|
|
79
79
|
return /* @__PURE__ */ e(
|
|
80
80
|
v,
|
|
81
81
|
{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
|
85
89
|
}
|
|
86
90
|
);
|
|
87
|
-
},
|
|
91
|
+
}, P = b(z);
|
|
88
92
|
export {
|
|
89
|
-
|
|
93
|
+
P as A
|
|
90
94
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { jsx as t, jsxs as _ } from "react/jsx-runtime";
|
|
2
2
|
import { observer as E } from "mobx-react-lite";
|
|
3
3
|
import p from "react";
|
|
4
|
-
import
|
|
5
|
-
import { G as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
4
|
+
import $ from "@mui/material/Stack";
|
|
5
|
+
import { G as K, l as f, u as S, g as A, b as B } from "./hooks-BxkfR-Ff.mjs";
|
|
6
|
+
import U from "@mui/material/List";
|
|
7
|
+
import V from "@mui/material/Paper";
|
|
8
|
+
import Y from "@mui/material/Divider";
|
|
9
9
|
import x from "@mui/material/ListItem";
|
|
10
|
-
import
|
|
10
|
+
import W from "@mui/material/ListItemAvatar";
|
|
11
11
|
import N from "@mui/material/ListItemButton";
|
|
12
|
-
import
|
|
12
|
+
import F from "@mui/material/ListItemIcon";
|
|
13
13
|
import G from "@mui/material/ListItemText";
|
|
14
|
-
import { CheckCircle as
|
|
15
|
-
import { Text as
|
|
14
|
+
import { CheckCircle as M, Edit as j, Delete as X, ExpandMore as z } from "@mxenabled/mx-icons";
|
|
15
|
+
import { Text as q, TextField as H, CategoryIcon as J } from "@mxenabled/mxui";
|
|
16
16
|
import Q from "@mui/material/Collapse";
|
|
17
17
|
import Z from "@mui/material/DialogContent";
|
|
18
18
|
import { b as g } from "./Localization-CPkpIwIx.mjs";
|
|
19
19
|
import { D as ee } from "./Dialog-Ck34yr-d.mjs";
|
|
20
20
|
import te from "@mui/material/Box";
|
|
21
21
|
import oe from "@mui/material/Chip";
|
|
22
|
-
import
|
|
22
|
+
import v from "@mui/material/IconButton";
|
|
23
23
|
import { u as ae } from "./useAriaLive-MkYebyUR.mjs";
|
|
24
24
|
import { S as re } from "./SearchBox-CwDgvWVJ.mjs";
|
|
25
|
-
import { L as
|
|
25
|
+
import { L as k } from "./Loader-D3rjKx72.mjs";
|
|
26
26
|
import { D as ne } from "./Drawer-Bbe4AMB1.mjs";
|
|
27
27
|
const b = () => {
|
|
28
|
-
if (!p.useContext(
|
|
28
|
+
if (!p.useContext(K))
|
|
29
29
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
30
30
|
return f().uiStore;
|
|
31
31
|
}, C = {
|
|
@@ -62,7 +62,7 @@ const se = ({
|
|
|
62
62
|
case "delete":
|
|
63
63
|
d = r.delete_subcategory_heading, m = g(
|
|
64
64
|
r.all_transactions_in_this_subcategory,
|
|
65
|
-
/* @__PURE__ */ t(
|
|
65
|
+
/* @__PURE__ */ t(q, { bold: !0, component: "span", children: g(r.all_parent_category, h) })
|
|
66
66
|
);
|
|
67
67
|
break;
|
|
68
68
|
}
|
|
@@ -80,7 +80,7 @@ const se = ({
|
|
|
80
80
|
onPrimaryAction: () => {
|
|
81
81
|
n(!1), o(a);
|
|
82
82
|
},
|
|
83
|
-
children: /* @__PURE__ */ t(Z, { children: u ?
|
|
83
|
+
children: /* @__PURE__ */ t(Z, { children: u ? m : /* @__PURE__ */ t(
|
|
84
84
|
H,
|
|
85
85
|
{
|
|
86
86
|
inputProps: {
|
|
@@ -179,7 +179,7 @@ const se = ({
|
|
|
179
179
|
showSelected: r,
|
|
180
180
|
unselectable: n,
|
|
181
181
|
unselectableText: d
|
|
182
|
-
} = b(), { categories: m } = S(), { onEvent: u } = A(), [h, y] = p.useState(!1), [D, O] = p.useState(!1), T = !!o.revision, w = o.guid === i, I = !n.some((
|
|
182
|
+
} = b(), { categories: m } = S(), { onEvent: u } = A(), [h, y] = p.useState(!1), [D, O] = p.useState(!1), T = !!o.revision, w = o.guid === i, I = !n.some((P) => P === o.guid);
|
|
183
183
|
return /* @__PURE__ */ _(
|
|
184
184
|
x,
|
|
185
185
|
{
|
|
@@ -196,43 +196,50 @@ const se = ({
|
|
|
196
196
|
onClick: () => {
|
|
197
197
|
I && (a(o.guid), l(o.guid), u(C.ON_CATEGORY_SELECTED));
|
|
198
198
|
},
|
|
199
|
-
sx: { height: 44 },
|
|
199
|
+
sx: { height: 44, minWidth: 0, overflow: "hidden" },
|
|
200
200
|
children: [
|
|
201
201
|
/* @__PURE__ */ t(
|
|
202
202
|
G,
|
|
203
203
|
{
|
|
204
204
|
primary: o.name,
|
|
205
|
-
primaryTypographyProps: { fontWeight: "normal", variant: "body1" }
|
|
205
|
+
primaryTypographyProps: { fontWeight: "normal", variant: "body1", noWrap: !0 }
|
|
206
206
|
}
|
|
207
207
|
),
|
|
208
|
-
r && w && /* @__PURE__ */ t(
|
|
208
|
+
r && w && /* @__PURE__ */ t(M, { fontSize: "small" }),
|
|
209
209
|
!I && /* @__PURE__ */ t(oe, { label: d })
|
|
210
210
|
]
|
|
211
211
|
}
|
|
212
212
|
),
|
|
213
|
-
T && /* @__PURE__ */ _(
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
213
|
+
T && /* @__PURE__ */ _(
|
|
214
|
+
te,
|
|
215
|
+
{
|
|
216
|
+
className: "mx-cat-subcategory-edit-container",
|
|
217
|
+
sx: { marginRight: 24, flexShrink: 0 },
|
|
218
|
+
children: [
|
|
219
|
+
/* @__PURE__ */ t(
|
|
220
|
+
v,
|
|
221
|
+
{
|
|
222
|
+
"aria-label": g(m.edit_subcategory_title, o.name),
|
|
223
|
+
onClick: () => {
|
|
224
|
+
y(!0), c(!0), u(C.ON_SUBCATEGORY_EDIT_CLICK);
|
|
225
|
+
},
|
|
226
|
+
children: /* @__PURE__ */ t(j, { color: "secondary" })
|
|
227
|
+
}
|
|
228
|
+
),
|
|
229
|
+
/* @__PURE__ */ t(
|
|
230
|
+
v,
|
|
231
|
+
{
|
|
232
|
+
"aria-label": g(m.delete_subcategory_aria, o.name),
|
|
233
|
+
edge: "end",
|
|
234
|
+
onClick: () => {
|
|
235
|
+
O(!0), c(!0), u(C.ON_SUBCATEGORY_DELETE_CLICK);
|
|
236
|
+
},
|
|
237
|
+
children: /* @__PURE__ */ t(X, { color: "secondary" })
|
|
238
|
+
}
|
|
239
|
+
)
|
|
240
|
+
]
|
|
241
|
+
}
|
|
242
|
+
),
|
|
236
243
|
D && /* @__PURE__ */ t(
|
|
237
244
|
me,
|
|
238
245
|
{
|
|
@@ -267,7 +274,7 @@ const se = ({
|
|
|
267
274
|
children: [
|
|
268
275
|
a,
|
|
269
276
|
/* @__PURE__ */ _(
|
|
270
|
-
|
|
277
|
+
U,
|
|
271
278
|
{
|
|
272
279
|
"aria-labelledby": `category-${s.guid}`,
|
|
273
280
|
className: "mx-cat-subcategory-list",
|
|
@@ -282,7 +289,7 @@ const se = ({
|
|
|
282
289
|
subCategory: n
|
|
283
290
|
}
|
|
284
291
|
),
|
|
285
|
-
/* @__PURE__ */ t(
|
|
292
|
+
/* @__PURE__ */ t(Y, { "aria-hidden": "true", component: "li", sx: { ml: 58 } })
|
|
286
293
|
] }, n.guid)),
|
|
287
294
|
!r && /* @__PURE__ */ t(ce, { announce: i, parentCategory: s })
|
|
288
295
|
]
|
|
@@ -306,7 +313,7 @@ const se = ({
|
|
|
306
313
|
id: `category-${e.guid}`,
|
|
307
314
|
onClick: r,
|
|
308
315
|
children: [
|
|
309
|
-
/* @__PURE__ */ t(
|
|
316
|
+
/* @__PURE__ */ t(W, { children: /* @__PURE__ */ t(J, { categoryGuid: e.guid }) }),
|
|
310
317
|
/* @__PURE__ */ t(
|
|
311
318
|
G,
|
|
312
319
|
{
|
|
@@ -314,8 +321,8 @@ const se = ({
|
|
|
314
321
|
primaryTypographyProps: { fontWeight: "normal", variant: "body1" }
|
|
315
322
|
}
|
|
316
323
|
),
|
|
317
|
-
/* @__PURE__ */ t(
|
|
318
|
-
|
|
324
|
+
/* @__PURE__ */ t(F, { children: /* @__PURE__ */ t(
|
|
325
|
+
z,
|
|
319
326
|
{
|
|
320
327
|
sx: {
|
|
321
328
|
transition: "transform 0.3s ease-in-out",
|
|
@@ -327,7 +334,7 @@ const se = ({
|
|
|
327
334
|
},
|
|
328
335
|
e.guid
|
|
329
336
|
) }),
|
|
330
|
-
/* @__PURE__ */ t(
|
|
337
|
+
/* @__PURE__ */ t(Y, { "aria-hidden": "true", component: "li", sx: { ml: 58 } }),
|
|
331
338
|
/* @__PURE__ */ t("li", { style: { listStyle: "none" }, children: /* @__PURE__ */ t(pe, { categories: s, parentCategory: e }) })
|
|
332
339
|
] });
|
|
333
340
|
}, he = E(Ee), Se = () => {
|
|
@@ -348,7 +355,7 @@ const se = ({
|
|
|
348
355
|
}
|
|
349
356
|
return r;
|
|
350
357
|
}, []))(e, s);
|
|
351
|
-
return /* @__PURE__ */ t(
|
|
358
|
+
return /* @__PURE__ */ t(V, { className: "mx-cat-category-list", sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(U, { children: i.map((a) => /* @__PURE__ */ t(
|
|
352
359
|
he,
|
|
353
360
|
{
|
|
354
361
|
category: a.category,
|
|
@@ -363,7 +370,7 @@ const se = ({
|
|
|
363
370
|
unselectable: l = [],
|
|
364
371
|
unselectableText: i = "Unselectable"
|
|
365
372
|
}) => {
|
|
366
|
-
const { categories: a, loadCategories: c } = f(), { common: r } = S(), { isCopyLoaded: n } =
|
|
373
|
+
const { categories: a, loadCategories: c } = f(), { common: r } = S(), { isCopyLoaded: n } = B(), {
|
|
367
374
|
searchValue: d,
|
|
368
375
|
setOnSelect: m,
|
|
369
376
|
setSearchValue: u,
|
|
@@ -378,7 +385,7 @@ const se = ({
|
|
|
378
385
|
a.length || c();
|
|
379
386
|
}, []), p.useEffect(() => {
|
|
380
387
|
e && h(e), y(o), D(l), O(i);
|
|
381
|
-
}, [e, o, l, i]), n ? /* @__PURE__ */ _(
|
|
388
|
+
}, [e, o, l, i]), n ? /* @__PURE__ */ _($, { className: "mx-cat-category-selector", sx: { width: "100%" }, children: [
|
|
382
389
|
/* @__PURE__ */ t(
|
|
383
390
|
re,
|
|
384
391
|
{
|
|
@@ -390,7 +397,7 @@ const se = ({
|
|
|
390
397
|
}
|
|
391
398
|
),
|
|
392
399
|
/* @__PURE__ */ t(ye, {})
|
|
393
|
-
] }) : /* @__PURE__ */ t(
|
|
400
|
+
] }) : /* @__PURE__ */ t(k, {});
|
|
394
401
|
}, De = E(be), fe = ({
|
|
395
402
|
id: e,
|
|
396
403
|
onClose: s,
|
|
@@ -398,7 +405,7 @@ const se = ({
|
|
|
398
405
|
showDrawer: l,
|
|
399
406
|
...i
|
|
400
407
|
}) => {
|
|
401
|
-
const { common: a } = S(), { isCopyLoaded: c } =
|
|
408
|
+
const { common: a } = S(), { isCopyLoaded: c } = B();
|
|
402
409
|
return c ? /* @__PURE__ */ t(
|
|
403
410
|
ne,
|
|
404
411
|
{
|
|
@@ -410,7 +417,7 @@ const se = ({
|
|
|
410
417
|
title: o,
|
|
411
418
|
children: /* @__PURE__ */ t(De, { ...i })
|
|
412
419
|
}
|
|
413
|
-
) : /* @__PURE__ */ t(
|
|
420
|
+
) : /* @__PURE__ */ t(k, {});
|
|
414
421
|
}, Je = E(fe);
|
|
415
422
|
export {
|
|
416
423
|
De as C,
|
|
@@ -18,7 +18,7 @@ import { parseISO as me } from "date-fns/parseISO";
|
|
|
18
18
|
import J from "@mui/material/Button";
|
|
19
19
|
import { Delete as pe, Add as ye, ReceiptLong as he } from "@mxenabled/mx-icons";
|
|
20
20
|
import { T as V, u as fe, S as ge, a as Ce } from "./StatusIndicator-CIKUOoN_.mjs";
|
|
21
|
-
import { T as be } from "./TransactionDetails-B-
|
|
21
|
+
import { T as be } from "./TransactionDetails-B-C-7meW.mjs";
|
|
22
22
|
import { addYears as j } from "date-fns/addYears";
|
|
23
23
|
import { getDayOfYear as xe } from "date-fns/getDayOfYear";
|
|
24
24
|
import { setDayOfYear as Se } from "date-fns/setDayOfYear";
|
|
@@ -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--_KEPuCK.mjs";
|
|
11
11
|
import { u as _, i as A, g as f } from "./hooks-BxkfR-Ff.mjs";
|
|
12
12
|
import { R as y, F as N } from "./RecurringTransactions-BOzBqfdg.mjs";
|
|
13
13
|
import { A as m } from "./Analytics-BYItVAe-.mjs";
|
|
@@ -12,7 +12,7 @@ import { D as j } from "./Donut-CpxJlVvJ.mjs";
|
|
|
12
12
|
import { u as R } from "./useAriaLive-MkYebyUR.mjs";
|
|
13
13
|
import { u as v } from "./hooks-BxkfR-Ff.mjs";
|
|
14
14
|
import { u as V } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
15
|
-
import { f as
|
|
15
|
+
import { f as b } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
16
16
|
const D = 5, B = (i, l, g, c) => c.reduce((o, n) => {
|
|
17
17
|
const a = i.find((s) => s.guid === n.category_guid);
|
|
18
18
|
if (!a) return o;
|
|
@@ -100,13 +100,13 @@ const D = 5, B = (i, l, g, c) => c.reduce((o, n) => {
|
|
|
100
100
|
variant: t = "mini"
|
|
101
101
|
}) => {
|
|
102
102
|
const { spending: r } = v(), m = A(), { isTablet: e } = V(), { announce: s, ariaLive: C } = R(), u = T.useMemo(
|
|
103
|
-
() => o ? i.categoryData.find((
|
|
103
|
+
() => o ? i.categoryData.find((x) => x.guid === o) : void 0,
|
|
104
104
|
[o]
|
|
105
105
|
);
|
|
106
106
|
T.useEffect(() => {
|
|
107
107
|
if (u) {
|
|
108
|
-
const
|
|
109
|
-
s(`${u.name}: ${
|
|
108
|
+
const x = b(u.amount, t === "mini" ? "0,0" : "0,0.00");
|
|
109
|
+
s(`${u.name}: ${x}`);
|
|
110
110
|
}
|
|
111
111
|
}, [u, s, t]);
|
|
112
112
|
const E = i.donutData.length > 0 ? i.donutData : [{ id: "0", color: m.palette.divider, value: 100 }], I = () => {
|
|
@@ -135,7 +135,7 @@ const D = 5, B = (i, l, g, c) => c.reduce((o, n) => {
|
|
|
135
135
|
/* @__PURE__ */ d(
|
|
136
136
|
y,
|
|
137
137
|
{
|
|
138
|
-
color: "secondary",
|
|
138
|
+
color: "text.secondary",
|
|
139
139
|
noWrap: !0,
|
|
140
140
|
variant: t === "mini" ? "tiny" : "body1",
|
|
141
141
|
children: u ? u.name : a
|
|
@@ -144,9 +144,9 @@ const D = 5, B = (i, l, g, c) => c.reduce((o, n) => {
|
|
|
144
144
|
]
|
|
145
145
|
}
|
|
146
146
|
),
|
|
147
|
-
!u && t === "full" && /* @__PURE__ */ d(y, { bold: !0, color: "secondary", sx: { mb: { xs: 4, xl: 8 } }, children: a }),
|
|
148
|
-
/* @__PURE__ */ d($, { variant: t === "mini" ? "h2" : "h1", children: u ?
|
|
149
|
-
!u && t === "mini" && /* @__PURE__ */ d(y, { color: "secondary", noWrap: !0, variant: "tiny", children: a }),
|
|
147
|
+
!u && t === "full" && /* @__PURE__ */ d(y, { bold: !0, color: "text.secondary", sx: { mb: { xs: 4, xl: 8 } }, children: a }),
|
|
148
|
+
/* @__PURE__ */ d($, { variant: t === "mini" ? "h2" : "h1", children: u ? b(u.amount, t === "mini" ? "0,0" : "0,0.00") : b(i.totalAmount, t === "mini" ? "0,0" : "0,0.00") }),
|
|
149
|
+
!u && t === "mini" && /* @__PURE__ */ d(y, { color: "text.secondary", noWrap: !0, variant: "tiny", children: a }),
|
|
150
150
|
t === "full" && /* @__PURE__ */ d(
|
|
151
151
|
M,
|
|
152
152
|
{
|
|
@@ -27,7 +27,7 @@ import $ from "@mui/material/ListItemText";
|
|
|
27
27
|
import { f as Me, D as ke } from "./DateFormats-BMpMrZpW.mjs";
|
|
28
28
|
import Y from "@mui/material/ListItemButton";
|
|
29
29
|
import z from "@mui/material/ListItemIcon";
|
|
30
|
-
import { a as Pe } from "./CategorySelectorDrawer-
|
|
30
|
+
import { a as Pe } from "./CategorySelectorDrawer-Dc9Widy9.mjs";
|
|
31
31
|
import { b as et, T as tt, u as J } from "./StatusIndicator-CIKUOoN_.mjs";
|
|
32
32
|
import { D as X } from "./Dialog-Ck34yr-d.mjs";
|
|
33
33
|
import { b as I } from "./Localization-CPkpIwIx.mjs";
|
|
@@ -26,9 +26,9 @@ import { endOfToday as X } from "date-fns/endOfToday";
|
|
|
26
26
|
import { endOfYear as Ce } from "date-fns/endOfYear";
|
|
27
27
|
import { startOfMonth as De } from "date-fns/startOfMonth";
|
|
28
28
|
import { startOfToday as ke } from "date-fns/startOfToday";
|
|
29
|
-
import { startOfYear as
|
|
29
|
+
import { startOfYear as xe } from "date-fns/startOfYear";
|
|
30
30
|
import { subMonths as K } from "date-fns/subMonths";
|
|
31
|
-
import { subDays as
|
|
31
|
+
import { subDays as ye } from "date-fns/subDays";
|
|
32
32
|
import { subYears as Z } from "date-fns/subYears";
|
|
33
33
|
import Me from "@mui/material/ButtonGroup";
|
|
34
34
|
import Te from "@mui/material/Tab";
|
|
@@ -36,8 +36,8 @@ import ve from "@mui/material/Tabs";
|
|
|
36
36
|
import Pe from "@mui/material/ToggleButton";
|
|
37
37
|
import Ye from "@mui/material/ToggleButtonGroup";
|
|
38
38
|
import Se from "@mui/material/styles/useTheme";
|
|
39
|
-
import { u as
|
|
40
|
-
import { D as
|
|
39
|
+
import { u as Ee } from "./useAriaLive-MkYebyUR.mjs";
|
|
40
|
+
import { D as Le } from "./Dialog-Ck34yr-d.mjs";
|
|
41
41
|
import { D as Ae } from "./Drawer-Bbe4AMB1.mjs";
|
|
42
42
|
import { f as C, D } from "./DateFormats-BMpMrZpW.mjs";
|
|
43
43
|
import { A as Oe } from "./Analytics-BYItVAe-.mjs";
|
|
@@ -45,11 +45,11 @@ const Ne = ({
|
|
|
45
45
|
calendarActions: n,
|
|
46
46
|
color: k = "primary",
|
|
47
47
|
copy: a,
|
|
48
|
-
range:
|
|
49
|
-
shouldShrinkToIcon:
|
|
48
|
+
range: x = [De(ke()), G(X())],
|
|
49
|
+
shouldShrinkToIcon: y = !0,
|
|
50
50
|
variant: s = "outlined"
|
|
51
51
|
}) => {
|
|
52
|
-
const I = Se(), { isMobile: M } = te(), { announce: W, ariaLive: T } =
|
|
52
|
+
const I = Se(), { isMobile: M } = te(), { announce: W, ariaLive: T } = Ee(), [R, Y] = h.useState(x), [p, S] = h.useState(a.dateRangePickerCopy.dateRangeThisMonth), [b, w] = h.useState(R), [v, P] = h.useState(!1), [g, _] = h.useState(!0), [m, H] = h.useState(6), z = {
|
|
53
53
|
buttons: [
|
|
54
54
|
{ ariaLabel: "3 Months", label: "3M", value: 3 },
|
|
55
55
|
{ ariaLabel: "6 Months", label: "6M", value: 6 },
|
|
@@ -64,14 +64,14 @@ const Ne = ({
|
|
|
64
64
|
]
|
|
65
65
|
};
|
|
66
66
|
h.useEffect(() => {
|
|
67
|
-
Y(
|
|
68
|
-
}, [
|
|
67
|
+
Y(x), w(x);
|
|
68
|
+
}, [x]), h.useEffect(() => {
|
|
69
69
|
(s === "timeframebuttons" || s === "timeframetabs") && n.onRangeChanged(r());
|
|
70
70
|
}, [m]);
|
|
71
71
|
const r = () => {
|
|
72
72
|
const t = G(X());
|
|
73
73
|
return [G(K(t, m)), t];
|
|
74
|
-
},
|
|
74
|
+
}, E = (t) => {
|
|
75
75
|
const [i, l] = R, o = t === "previous";
|
|
76
76
|
let d;
|
|
77
77
|
if (p === a.dateRangePickerCopy.dateRangeThisMonth || p === a.dateRangePickerCopy.dateRangeLastMonth)
|
|
@@ -80,13 +80,13 @@ const Ne = ({
|
|
|
80
80
|
G(o ? K(l, 1) : J(l, 1))
|
|
81
81
|
];
|
|
82
82
|
else if (p === a.dateRangePickerCopy.dateRangeYTD || p === a.dateRangePickerCopy.dateRangeLastYear) {
|
|
83
|
-
const u =
|
|
83
|
+
const u = xe(i), O = Ce(i);
|
|
84
84
|
d = [
|
|
85
85
|
o ? Z(u, 1) : Q(u, 1),
|
|
86
86
|
o ? Z(O, 1) : Q(O, 1)
|
|
87
87
|
];
|
|
88
88
|
} else {
|
|
89
|
-
const u = _e(l, i), O = o ?
|
|
89
|
+
const u = _e(l, i), O = o ? ye : be;
|
|
90
90
|
d = [O(i, u), O(l, u)];
|
|
91
91
|
}
|
|
92
92
|
Y(d), n.onRangeChanged(d);
|
|
@@ -94,7 +94,7 @@ const Ne = ({
|
|
|
94
94
|
Y(b), _(
|
|
95
95
|
p === a.dateRangePickerCopy.dateRangeThisMonth || p === a.dateRangePickerCopy.dateRangeLastMonth
|
|
96
96
|
), n.onRangeChanged(b);
|
|
97
|
-
},
|
|
97
|
+
}, L = (t, i) => {
|
|
98
98
|
t[1] = t[1] ?? t[0];
|
|
99
99
|
const l = [t[0], t[1] ? Re(t[1]) : t[1]], o = C(l[0], D.MONTH_DAY_YEAR), d = C(l[1], D.MONTH_DAY_YEAR);
|
|
100
100
|
w(l), S(i), W(`${a.dateRangePickerCopy}: ${o} - ${d}`);
|
|
@@ -107,7 +107,7 @@ const Ne = ({
|
|
|
107
107
|
{
|
|
108
108
|
sx: {
|
|
109
109
|
[I.breakpoints.down("sm")]: {
|
|
110
|
-
display:
|
|
110
|
+
display: y ? "none" : "flex",
|
|
111
111
|
justifyContent: "center"
|
|
112
112
|
},
|
|
113
113
|
[I.breakpoints.up("sm")]: { display: "inline-flex" }
|
|
@@ -140,7 +140,7 @@ const Ne = ({
|
|
|
140
140
|
"aria-disabled": n.shouldDisablePrevious,
|
|
141
141
|
"aria-label": a.dateRangePreviousAria,
|
|
142
142
|
color: n.shouldDisablePrevious ? "secondary" : "primary",
|
|
143
|
-
onClick: () => n.shouldDisablePrevious ? null :
|
|
143
|
+
onClick: () => n.shouldDisablePrevious ? null : E("previous"),
|
|
144
144
|
children: /* @__PURE__ */ e(f, { name: "chevron_left", size: 20 })
|
|
145
145
|
}
|
|
146
146
|
),
|
|
@@ -168,7 +168,7 @@ const Ne = ({
|
|
|
168
168
|
"aria-disabled": n.shouldDisableNext,
|
|
169
169
|
"aria-label": a.dateRangeNextAria,
|
|
170
170
|
color: n.shouldDisableNext ? "secondary" : "primary",
|
|
171
|
-
onClick: () => n.shouldDisableNext ? null :
|
|
171
|
+
onClick: () => n.shouldDisableNext ? null : E("next"),
|
|
172
172
|
children: /* @__PURE__ */ e(f, { name: "chevron_right", size: 20 })
|
|
173
173
|
}
|
|
174
174
|
)
|
|
@@ -178,6 +178,7 @@ const Ne = ({
|
|
|
178
178
|
s === "timeframebuttons" && /* @__PURE__ */ e(
|
|
179
179
|
Ye,
|
|
180
180
|
{
|
|
181
|
+
"aria-label": a.dateRangeEditTitle,
|
|
181
182
|
color: k,
|
|
182
183
|
exclusive: !0,
|
|
183
184
|
orientation: "horizontal",
|
|
@@ -235,7 +236,7 @@ const Ne = ({
|
|
|
235
236
|
{
|
|
236
237
|
copy: a.dateRangePickerCopy,
|
|
237
238
|
dateRange: b,
|
|
238
|
-
onRangeChanged:
|
|
239
|
+
onRangeChanged: L,
|
|
239
240
|
selectedShortcut: p,
|
|
240
241
|
sx: { p: 0 }
|
|
241
242
|
}
|
|
@@ -244,7 +245,7 @@ const Ne = ({
|
|
|
244
245
|
}
|
|
245
246
|
),
|
|
246
247
|
v && !M && /* @__PURE__ */ c(
|
|
247
|
-
|
|
248
|
+
Le,
|
|
248
249
|
{
|
|
249
250
|
copy: { title: a.dateRangeEditTitle },
|
|
250
251
|
isOpen: !0,
|
|
@@ -263,7 +264,7 @@ const Ne = ({
|
|
|
263
264
|
{
|
|
264
265
|
copy: a.dateRangePickerCopy,
|
|
265
266
|
dateRange: b,
|
|
266
|
-
onRangeChanged:
|
|
267
|
+
onRangeChanged: L,
|
|
267
268
|
selectedShortcut: p,
|
|
268
269
|
sx: {
|
|
269
270
|
pt: 0,
|
|
@@ -282,8 +283,8 @@ const Ne = ({
|
|
|
282
283
|
allowedAccountTypes: n,
|
|
283
284
|
actions: k = [],
|
|
284
285
|
calendarActions: a,
|
|
285
|
-
children:
|
|
286
|
-
dateRange:
|
|
286
|
+
children: x,
|
|
287
|
+
dateRange: y,
|
|
287
288
|
dateRangeVariant: s,
|
|
288
289
|
className: I = "mx-cmn-widget",
|
|
289
290
|
hasDivider: M = !1,
|
|
@@ -294,12 +295,12 @@ const Ne = ({
|
|
|
294
295
|
sx: p = {},
|
|
295
296
|
title: S = ""
|
|
296
297
|
}) => {
|
|
297
|
-
const [b, { height: w, width: v }] = de(), { onEvent: P } = pe(), { isDesktop: g, isMobile: _, isTablet: m } = te(v), { displayedDateRange: H, isCopyLoaded: z } = ue(), { common: r } = ge(), { config:
|
|
298
|
+
const [b, { height: w, width: v }] = de(), { onEvent: P } = pe(), { isDesktop: g, isMobile: _, isTablet: m } = te(v), { displayedDateRange: H, isCopyLoaded: z } = ue(), { common: r } = ge(), { config: E } = he(), B = () => {
|
|
298
299
|
T && (T(), P(Oe.WIDGET_BACK_CLICK));
|
|
299
300
|
};
|
|
300
301
|
if (!z)
|
|
301
302
|
return /* @__PURE__ */ e(ce, {});
|
|
302
|
-
const
|
|
303
|
+
const L = {
|
|
303
304
|
dateRangePickerCopy: {
|
|
304
305
|
dateRangeFrom: r.date_range_picker.from,
|
|
305
306
|
dateRangeTo: r.date_range_picker.to,
|
|
@@ -317,7 +318,7 @@ const Ne = ({
|
|
|
317
318
|
dateRangeEditTitle: r.date_range_picker.edit_title,
|
|
318
319
|
dateRangeNextAria: r.date_range_picker.next_aria,
|
|
319
320
|
dateRangePreviousAria: r.date_range_picker.previous_aria
|
|
320
|
-
}, A =
|
|
321
|
+
}, A = y ? y.start : H.start, t = y ? y.end : H.end, i = k?.length > 1;
|
|
321
322
|
return /* @__PURE__ */ c(
|
|
322
323
|
re,
|
|
323
324
|
{
|
|
@@ -338,7 +339,7 @@ const Ne = ({
|
|
|
338
339
|
ee,
|
|
339
340
|
{
|
|
340
341
|
calendarActions: a,
|
|
341
|
-
copy:
|
|
342
|
+
copy: L,
|
|
342
343
|
range: [A, t],
|
|
343
344
|
shouldShrinkToIcon: !1,
|
|
344
345
|
variant: s
|
|
@@ -398,7 +399,7 @@ const Ne = ({
|
|
|
398
399
|
},
|
|
399
400
|
title: (
|
|
400
401
|
// eslint-disable-next-line no-nested-ternary
|
|
401
|
-
g || m ?
|
|
402
|
+
g || m ? E.display_widget_headings ? /* @__PURE__ */ e(se, { variant: "h1", children: S }) : null : /* @__PURE__ */ c(F, { alignItems: "center", flexDirection: "row", sx: { overflow: "hidden" }, children: [
|
|
402
403
|
_ && T && /* @__PURE__ */ e(
|
|
403
404
|
j,
|
|
404
405
|
{
|
|
@@ -409,7 +410,7 @@ const Ne = ({
|
|
|
409
410
|
children: /* @__PURE__ */ e(ie, { size: 24 })
|
|
410
411
|
}
|
|
411
412
|
),
|
|
412
|
-
|
|
413
|
+
E.display_widget_headings ? /* @__PURE__ */ e(le, { children: S }) : null
|
|
413
414
|
] })
|
|
414
415
|
)
|
|
415
416
|
}
|
|
@@ -421,14 +422,14 @@ const Ne = ({
|
|
|
421
422
|
ee,
|
|
422
423
|
{
|
|
423
424
|
calendarActions: a,
|
|
424
|
-
copy:
|
|
425
|
+
copy: L,
|
|
425
426
|
range: [A, t],
|
|
426
427
|
shouldShrinkToIcon: !1,
|
|
427
428
|
variant: s
|
|
428
429
|
}
|
|
429
430
|
)
|
|
430
431
|
] }),
|
|
431
|
-
/* @__PURE__ */ e(oe, { ref: b, sx: { p: 0 }, children: /* @__PURE__ */ e(fe, { availableHeight: w, availableWidth: v, children:
|
|
432
|
+
/* @__PURE__ */ e(oe, { ref: b, sx: { p: 0 }, children: /* @__PURE__ */ e(fe, { availableHeight: w, availableWidth: v, children: x }) })
|
|
432
433
|
]
|
|
433
434
|
}
|
|
434
435
|
);
|