@mx-cartographer/experiences 8.1.1 → 8.1.3
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 +9 -0
- package/dist/{AccountStore-nxHZqg1Z.mjs → AccountStore-B3S_p5Qa.mjs} +1 -1
- package/dist/{Analytics-0Xm_BjHU.mjs → Analytics-CzGzz_sE.mjs} +2 -1
- package/dist/{BudgetUtil-Cwvpb7xl.mjs → BudgetUtil-DalEN9--.mjs} +1 -1
- package/dist/{EmbeddedCard-BCcn_fK2.mjs → EmbeddedCard-CBS3uUbk.mjs} +1 -1
- package/dist/{Help-Dfw_GHKi.mjs → Help-BFlcaOO_.mjs} +2 -2
- package/dist/{ManageIncome-wgo-qbdP.mjs → ManageIncome-Deq2AZEM.mjs} +3 -3
- package/dist/{NotificationSettings-BFFIl-wS.mjs → NotificationSettings-DOgnTxzv.mjs} +1 -1
- package/dist/{RecurringSettings-Dn5pPRVS.mjs → RecurringSettings-B8KJllGX.mjs} +2 -2
- package/dist/{SpendingLegend-RtFvutJ0.mjs → SpendingLegend-DIWHSsKw.mjs} +1 -1
- package/dist/{TransactionDetails-Cb6vauzy.mjs → TransactionDetails-DLnK244l.mjs} +3 -3
- package/dist/WidgetContainer-CTgBAae_.mjs +472 -0
- package/dist/accounts/index.es.js +6 -6
- package/dist/budgets/index.es.js +7 -7
- package/dist/cashflow/index.es.js +6 -6
- package/dist/common/constants/Analytics.d.ts +1 -0
- package/dist/common/hooks/useWidgetHeaderStyles.d.ts +1 -0
- package/dist/common/index.es.js +6 -6
- package/dist/dashboard/index.es.js +1 -1
- package/dist/debts/index.es.js +3 -3
- package/dist/finstrong/index.es.js +6 -6
- package/dist/goals/index.es.js +3 -3
- package/dist/help/index.es.js +2 -2
- package/dist/insights/index.es.js +2 -2
- package/dist/investments/index.es.js +3 -3
- package/dist/networth/index.es.js +3 -3
- package/dist/notifications/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +7 -7
- package/dist/settings/index.es.js +5 -5
- package/dist/spending/index.es.js +6 -6
- package/dist/transactions/index.es.js +7 -7
- package/dist/trends/index.es.js +5 -5
- package/dist/{useScreenSize-CUcpY7aJ.mjs → useScreenSize-CeFhWTt_.mjs} +1 -1
- package/package.json +1 -1
- package/dist/WidgetContainer-MhgZzIaI.mjs +0 -468
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [8.1.3] - 04-22-2026
|
|
2
|
+
|
|
3
|
+
- **ADDED** - widget_size_changed event when the widget container size changes.
|
|
4
|
+
|
|
5
|
+
## [8.1.2] - 04-22-2026
|
|
6
|
+
|
|
7
|
+
- **FIXED** - Widget header title flash on initial render
|
|
8
|
+
- **FIXED** - Menu button showing incorrectly on large viewports in compact containers
|
|
9
|
+
|
|
1
10
|
## [8.1.1] - 04-22-2026
|
|
2
11
|
|
|
3
12
|
- **FIXED** - payment dates
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeAutoObservable as h, runInAction as a } from "mobx";
|
|
2
|
-
import { i as g } from "./BudgetUtil-
|
|
2
|
+
import { i as g } from "./BudgetUtil-DalEN9--.mjs";
|
|
3
3
|
import { A as d } from "./AccountApi-WEM2M9tg.mjs";
|
|
4
4
|
import { d as p } from "./Accounts-DX3xJE97.mjs";
|
|
5
5
|
import { A as s, d as u } from "./Account-CMjOp7S2.mjs";
|
|
@@ -128,7 +128,8 @@ const _ = {
|
|
|
128
128
|
TRENDS_HOVER_POINT: "trends_hover_chartPoint",
|
|
129
129
|
TRENDS_HOVER_LEGEND: "trends_hover_ChartLegend",
|
|
130
130
|
TRENDS_LOAD_WIDGET: "trends_load_widget",
|
|
131
|
-
TRENDS_VIEW_TRANSACTIONS: "trends_view_transactions"
|
|
131
|
+
TRENDS_VIEW_TRANSACTIONS: "trends_view_transactions",
|
|
132
|
+
WIDGET_SIZE_CHANGED: "widget_size_changed"
|
|
132
133
|
};
|
|
133
134
|
export {
|
|
134
135
|
_ as A
|
|
@@ -27,7 +27,7 @@ import ut from "@mui/material/IconButton";
|
|
|
27
27
|
import gt from "@mui/material/InputAdornment";
|
|
28
28
|
import T from "@mui/material/Stack";
|
|
29
29
|
import ft from "@mui/material/TextField";
|
|
30
|
-
import { u as pt } from "./useScreenSize-
|
|
30
|
+
import { u as pt } from "./useScreenSize-CeFhWTt_.mjs";
|
|
31
31
|
import { m as ht } from "./hooks-HwStH7q_.mjs";
|
|
32
32
|
import { b as $ } from "./Category-Ccoew_sA.mjs";
|
|
33
33
|
import { b as j } from "./Localization-CkQ49EKr.mjs";
|
|
@@ -21,7 +21,7 @@ import { isSameDay as Z } from "date-fns/isSameDay";
|
|
|
21
21
|
import { f as ge, D as xe } from "./DateFormats-CaOj_4eI.mjs";
|
|
22
22
|
import { i as be } from "./DateUtil-D0TO0DaZ.mjs";
|
|
23
23
|
import { L as Q } from "./Loader-CxeBwuPG.mjs";
|
|
24
|
-
import { A as ye } from "./Analytics-
|
|
24
|
+
import { A as ye } from "./Analytics-CzGzz_sE.mjs";
|
|
25
25
|
import _e from "@mui/material/Tab";
|
|
26
26
|
import we from "@mui/material/Tabs";
|
|
27
27
|
import Ce from "@mui/material/IconButton";
|
|
@@ -13,12 +13,12 @@ import C from "@mui/material/Stack";
|
|
|
13
13
|
import { H3 as it, P as U, Icon as Y, Text as E, H2 as at, InstitutionLogo as ft } from "@mxenabled/mxui";
|
|
14
14
|
import { ExpandMore as ct, ChevronRight as St } from "@mxenabled/mx-icons";
|
|
15
15
|
import { g as V, u as K, A as nt, d as It, b as Tt, o as Et, a as Ct } from "./hooks-HwStH7q_.mjs";
|
|
16
|
-
import { A as k } from "./Analytics-
|
|
16
|
+
import { A as k } from "./Analytics-CzGzz_sE.mjs";
|
|
17
17
|
import At from "@mui/material/Breadcrumbs";
|
|
18
18
|
import { useTheme as Q } from "@mui/material/styles";
|
|
19
19
|
import { b as s } from "./Localization-CkQ49EKr.mjs";
|
|
20
20
|
import { E as Ot, a as Nt, P as Lt } from "./Help-CgpJK03Q.mjs";
|
|
21
|
-
import { u as Dt } from "./useScreenSize-
|
|
21
|
+
import { u as Dt } from "./useScreenSize-CeFhWTt_.mjs";
|
|
22
22
|
import { observer as lt } from "mobx-react-lite";
|
|
23
23
|
import dt from "@mui/material/Alert";
|
|
24
24
|
import gt from "@mui/material/Snackbar";
|
|
@@ -17,8 +17,8 @@ import { endOfMonth as ue } from "date-fns/endOfMonth";
|
|
|
17
17
|
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
|
-
import { T as V, u as fe, S as ge, a as Ce } from "./EmbeddedCard-
|
|
21
|
-
import { T as be } from "./TransactionDetails-
|
|
20
|
+
import { T as V, u as fe, S as ge, a as Ce } from "./EmbeddedCard-CBS3uUbk.mjs";
|
|
21
|
+
import { T as be } from "./TransactionDetails-DLnK244l.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";
|
|
@@ -29,7 +29,7 @@ import { u as w, i as Y, g as P, b as Ae, h as ee, o as Ie } from "./hooks-HwStH
|
|
|
29
29
|
import { F as l, b as L } from "./RepeatingTransaction-D2gmBTd0.mjs";
|
|
30
30
|
import { b as Ee, f as te } from "./NumberFormatting-CyrvFgfd.mjs";
|
|
31
31
|
import { D as N } from "./Drawer-XPaLYjiO.mjs";
|
|
32
|
-
import { A as O } from "./Analytics-
|
|
32
|
+
import { A as O } from "./Analytics-CzGzz_sE.mjs";
|
|
33
33
|
import { f as Re, D as Le } from "./DateFormats-CaOj_4eI.mjs";
|
|
34
34
|
import { D as Oe } from "./Dialog-iLlBR8TG.mjs";
|
|
35
35
|
import { formatISO as Te } from "date-fns/formatISO";
|
|
@@ -21,7 +21,7 @@ import { b as he, f as ue } from "./NumberFormatting-CyrvFgfd.mjs";
|
|
|
21
21
|
import { T as R, a as D } from "./ToggleListItem-BLu_fWA2.mjs";
|
|
22
22
|
import { D as B } from "./Dialog-iLlBR8TG.mjs";
|
|
23
23
|
import { C as _e } from "./CurrencyInput-CSJ3zMgE.mjs";
|
|
24
|
-
import { u as pe } from "./useScreenSize-
|
|
24
|
+
import { u as pe } from "./useScreenSize-CeFhWTt_.mjs";
|
|
25
25
|
import { D as K } from "./Drawer-XPaLYjiO.mjs";
|
|
26
26
|
import fe from "@mui/material/Collapse";
|
|
27
27
|
import ge from "@mui/material/Card";
|
|
@@ -7,10 +7,10 @@ import x from "@mui/material/Tabs";
|
|
|
7
7
|
import d from "@mui/material/Divider";
|
|
8
8
|
import R 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-Deq2AZEM.mjs";
|
|
11
11
|
import { u as _, i as A, g as f } from "./hooks-HwStH7q_.mjs";
|
|
12
12
|
import { b as y, F as N } from "./RepeatingTransaction-D2gmBTd0.mjs";
|
|
13
|
-
import { A as m } from "./Analytics-
|
|
13
|
+
import { A as m } from "./Analytics-CzGzz_sE.mjs";
|
|
14
14
|
const I = h(() => {
|
|
15
15
|
const { recurring: g } = _(), { detailedRepeatingTransactions: n } = A(), { onEvent: a } = f(), l = (r) => {
|
|
16
16
|
a(m.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
|
|
@@ -11,7 +11,7 @@ import { CategoryIcon as G, CategoryIconVariants as O, Text as y, P as $ } from
|
|
|
11
11
|
import { D as j } from "./Donut-D7ekbgf5.mjs";
|
|
12
12
|
import { u as R } from "./useAriaLive-MkYebyUR.mjs";
|
|
13
13
|
import { u as v } from "./hooks-HwStH7q_.mjs";
|
|
14
|
-
import { u as V } from "./useScreenSize-
|
|
14
|
+
import { u as V } from "./useScreenSize-CeFhWTt_.mjs";
|
|
15
15
|
import { f as b } from "./NumberFormatting-CyrvFgfd.mjs";
|
|
16
16
|
const D = 5, B = (i, l, g, m) => m.reduce((o, n) => {
|
|
17
17
|
const a = i.find((s) => s.guid === n.category_guid);
|
|
@@ -12,7 +12,7 @@ import { endOfMonth as Pe } from "date-fns/endOfMonth";
|
|
|
12
12
|
import { getUnixTime as Ae } from "date-fns/getUnixTime";
|
|
13
13
|
import { isBefore as ze } from "date-fns/isBefore";
|
|
14
14
|
import { startOfMonth as Ne } from "date-fns/startOfMonth";
|
|
15
|
-
import { l as Ve, d as We, C as Ye, c as je, i as qe } from "./BudgetUtil-
|
|
15
|
+
import { l as Ve, d as We, C as Ye, c as je, i as qe } from "./BudgetUtil-DalEN9--.mjs";
|
|
16
16
|
import ue from "@mui/material/Button";
|
|
17
17
|
import Qe from "@mui/material/FormGroup";
|
|
18
18
|
import de from "@mui/material/IconButton";
|
|
@@ -20,7 +20,7 @@ import Ge from "@mui/material/TextField";
|
|
|
20
20
|
import { u as fe } from "./useAriaLive-MkYebyUR.mjs";
|
|
21
21
|
import { O as C } from "./exportTransactionsToCSV-B2Lp7AMl.mjs";
|
|
22
22
|
import { u as v, h as M, m as Xe, d as Ze, l as Oe, g as k, b as Je, o as et } from "./hooks-HwStH7q_.mjs";
|
|
23
|
-
import { A as j } from "./Analytics-
|
|
23
|
+
import { A as j } from "./Analytics-CzGzz_sE.mjs";
|
|
24
24
|
import tt from "@mui/material/ToggleButton";
|
|
25
25
|
import { ChevronRight as Be, Icon as R, Delete as be, Cancel as Ce, Search as at, Edit as rt, Flag as nt } from "@mxenabled/mx-icons";
|
|
26
26
|
import { fromUnixTime as Ie } from "date-fns/fromUnixTime";
|
|
@@ -30,7 +30,7 @@ import Q from "@mui/material/ListItemAvatar";
|
|
|
30
30
|
import z from "@mui/material/ListItemText";
|
|
31
31
|
import { f as Le, D as we } from "./DateFormats-CaOj_4eI.mjs";
|
|
32
32
|
import { BarChart as ot } from "@mui/x-charts";
|
|
33
|
-
import { b as it, T as st, u as oe, c as lt, d as ct, E as dt, C as ut } from "./EmbeddedCard-
|
|
33
|
+
import { b as it, T as st, u as oe, c as lt, d as ct, E as dt, C as ut } from "./EmbeddedCard-CBS3uUbk.mjs";
|
|
34
34
|
import { L as mt } from "./Loader-CxeBwuPG.mjs";
|
|
35
35
|
import { f as W } from "./NumberFormatting-CyrvFgfd.mjs";
|
|
36
36
|
import { b as D } from "./Localization-CkQ49EKr.mjs";
|
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
import { jsxs as g, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import u from "react";
|
|
3
|
+
import { observer as ne } from "mobx-react-lite";
|
|
4
|
+
import H from "@mui/material/Button";
|
|
5
|
+
import de from "@mui/material/Card";
|
|
6
|
+
import me from "@mui/material/CardContent";
|
|
7
|
+
import ce from "@mui/material/Divider";
|
|
8
|
+
import $ from "@mui/material/IconButton";
|
|
9
|
+
import ue from "@mui/material/Paper";
|
|
10
|
+
import B from "@mui/material/Stack";
|
|
11
|
+
import { ChevronLeft as pe } from "@mxenabled/mx-icons";
|
|
12
|
+
import { Icon as D, Text as W, DateRangePicker as Z } from "@mxenabled/mxui";
|
|
13
|
+
import { u as ge } from "./useDimensions-CeDR9V8N.mjs";
|
|
14
|
+
import { G as he } from "./GlobalAccountFilter-CZbiDwBH.mjs";
|
|
15
|
+
import { b as ie, u as se, g as fe, a as be, W as _e } from "./hooks-HwStH7q_.mjs";
|
|
16
|
+
import { addMonths as J } from "date-fns/addMonths";
|
|
17
|
+
import { addDays as Re } from "date-fns/addDays";
|
|
18
|
+
import { addYears as ee } from "date-fns/addYears";
|
|
19
|
+
import { differenceInCalendarDays as Ce } from "date-fns/differenceInCalendarDays";
|
|
20
|
+
import { endOfDay as xe } from "date-fns/endOfDay";
|
|
21
|
+
import { endOfMonth as z } from "date-fns/endOfMonth";
|
|
22
|
+
import { endOfToday as te } from "date-fns/endOfToday";
|
|
23
|
+
import { endOfYear as De } from "date-fns/endOfYear";
|
|
24
|
+
import { startOfMonth as ke } from "date-fns/startOfMonth";
|
|
25
|
+
import { startOfToday as ye } from "date-fns/startOfToday";
|
|
26
|
+
import { startOfYear as Te } from "date-fns/startOfYear";
|
|
27
|
+
import { subMonths as K } from "date-fns/subMonths";
|
|
28
|
+
import { subDays as ve } from "date-fns/subDays";
|
|
29
|
+
import { subYears as ae } from "date-fns/subYears";
|
|
30
|
+
import re from "@mui/material/Box";
|
|
31
|
+
import Me from "@mui/material/ButtonGroup";
|
|
32
|
+
import Pe from "@mui/material/Tab";
|
|
33
|
+
import Se from "@mui/material/Tabs";
|
|
34
|
+
import Ee from "@mui/material/ToggleButton";
|
|
35
|
+
import Le from "@mui/material/ToggleButtonGroup";
|
|
36
|
+
import Ye from "@mui/material/styles/useTheme";
|
|
37
|
+
import { u as Ae } from "./useAriaLive-MkYebyUR.mjs";
|
|
38
|
+
import { D as Be } from "./Dialog-iLlBR8TG.mjs";
|
|
39
|
+
import { D as Ne } from "./Drawer-XPaLYjiO.mjs";
|
|
40
|
+
import { u as le } from "./useScreenSize-CeFhWTt_.mjs";
|
|
41
|
+
import { f as P, D as S } from "./DateFormats-CaOj_4eI.mjs";
|
|
42
|
+
import { L as Oe } from "./Loader-CxeBwuPG.mjs";
|
|
43
|
+
import we from "@mui/material/useMediaQuery";
|
|
44
|
+
import { A as oe } from "./Analytics-CzGzz_sE.mjs";
|
|
45
|
+
const Ie = (n) => {
|
|
46
|
+
const { isDesktop: d, isMobile: a, isSmallTablet: m, isTablet: r } = le(n), i = we("(min-width:900px)"), _ = 24;
|
|
47
|
+
let s = 48, k = 32, h = 0, c = "h1", R = !1;
|
|
48
|
+
const o = a || m;
|
|
49
|
+
r && !m ? (s = 24, k = 24, c = "h2") : o && (s = 8, k = 10, h = 10, c = "h3", R = !0);
|
|
50
|
+
const A = {
|
|
51
|
+
pb: o ? 12 : 0,
|
|
52
|
+
...o && {
|
|
53
|
+
px: s,
|
|
54
|
+
"& .mx-cmn-date-range-selector": { m: 0, width: "100%" },
|
|
55
|
+
"& .mx-cmn-date-range-selector > .MuiBox-root": { display: "flex" },
|
|
56
|
+
"& .MuiButtonGroup-root": { width: "100%" },
|
|
57
|
+
"& .MuiButtonGroup-middleButton": { flex: 1 },
|
|
58
|
+
"& .MuiToggleButtonGroup-root": { width: "100%", justifyContent: "center" }
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
return {
|
|
62
|
+
actionsFlex: o ? 0 : 1,
|
|
63
|
+
containerSquareCorners: R,
|
|
64
|
+
headerHeadingLevel: c,
|
|
65
|
+
headerPaddingBottom: h,
|
|
66
|
+
headerPaddingTop: k,
|
|
67
|
+
headerPaddingX: s,
|
|
68
|
+
iconSize: _,
|
|
69
|
+
isCompact: o,
|
|
70
|
+
isDesktop: d,
|
|
71
|
+
isViewportAbove900: i,
|
|
72
|
+
slotSx: A
|
|
73
|
+
};
|
|
74
|
+
}, Ge = ({
|
|
75
|
+
calendarActions: n,
|
|
76
|
+
color: d = "primary",
|
|
77
|
+
copy: a,
|
|
78
|
+
range: m = [ke(ye()), z(te())],
|
|
79
|
+
shouldShrinkToIcon: r = !0,
|
|
80
|
+
variant: i = "outlined"
|
|
81
|
+
}) => {
|
|
82
|
+
const _ = Ye(), { isMobile: s } = le(), { announce: k, ariaLive: h } = Ae(), [c, R] = u.useState(m), [o, A] = u.useState(a.dateRangePickerCopy.dateRangeThisMonth), [C, N] = u.useState(c), [y, x] = u.useState(!1), [O, F] = u.useState(!0), [E, j] = u.useState(6), w = {
|
|
83
|
+
buttons: [
|
|
84
|
+
{ ariaLabel: "3 Months", label: "3M", value: 3 },
|
|
85
|
+
{ ariaLabel: "6 Months", label: "6M", value: 6 },
|
|
86
|
+
{ ariaLabel: "9 Months", label: "9M", value: 9 },
|
|
87
|
+
{ ariaLabel: "1 Year", label: "1Y", value: 12 }
|
|
88
|
+
],
|
|
89
|
+
tabs: [
|
|
90
|
+
{ label: "3 Months", value: 3 },
|
|
91
|
+
{ label: "6 Months", value: 6 },
|
|
92
|
+
{ label: "9 Months", value: 9 },
|
|
93
|
+
{ label: "1 Year", value: 12 }
|
|
94
|
+
]
|
|
95
|
+
};
|
|
96
|
+
u.useEffect(() => {
|
|
97
|
+
R(m), N(m);
|
|
98
|
+
}, [m]), u.useEffect(() => {
|
|
99
|
+
(i === "timeframebuttons" || i === "timeframetabs") && n.onRangeChanged(V());
|
|
100
|
+
}, [E]);
|
|
101
|
+
const V = () => {
|
|
102
|
+
const t = z(te());
|
|
103
|
+
return [z(K(t, E)), t];
|
|
104
|
+
}, I = (t) => {
|
|
105
|
+
const [l, p] = c, f = t === "previous";
|
|
106
|
+
let b;
|
|
107
|
+
if (o === a.dateRangePickerCopy.dateRangeThisMonth || o === a.dateRangePickerCopy.dateRangeLastMonth)
|
|
108
|
+
b = [
|
|
109
|
+
f ? K(l, 1) : J(l, 1),
|
|
110
|
+
z(f ? K(p, 1) : J(p, 1))
|
|
111
|
+
];
|
|
112
|
+
else if (o === a.dateRangePickerCopy.dateRangeYTD || o === a.dateRangePickerCopy.dateRangeLastYear) {
|
|
113
|
+
const v = Te(l), M = De(l);
|
|
114
|
+
b = [
|
|
115
|
+
f ? ae(v, 1) : ee(v, 1),
|
|
116
|
+
f ? ae(M, 1) : ee(M, 1)
|
|
117
|
+
];
|
|
118
|
+
} else {
|
|
119
|
+
const v = Ce(p, l), M = f ? ve : Re;
|
|
120
|
+
b = [M(l, v), M(p, v)];
|
|
121
|
+
}
|
|
122
|
+
R(b), n.onRangeChanged(b);
|
|
123
|
+
}, L = () => {
|
|
124
|
+
R(C), F(
|
|
125
|
+
o === a.dateRangePickerCopy.dateRangeThisMonth || o === a.dateRangePickerCopy.dateRangeLastMonth
|
|
126
|
+
), n.onRangeChanged(C);
|
|
127
|
+
}, T = (t, l) => {
|
|
128
|
+
t[1] = t[1] ?? t[0];
|
|
129
|
+
const p = [t[0], t[1] ? xe(t[1]) : t[1]], f = P(p[0], S.MONTH_DAY_YEAR), b = P(p[1], S.MONTH_DAY_YEAR);
|
|
130
|
+
N(p), A(l), k(`${a.dateRangePickerCopy}: ${f} - ${b}`);
|
|
131
|
+
}, Y = (t) => {
|
|
132
|
+
j(t);
|
|
133
|
+
};
|
|
134
|
+
return /* @__PURE__ */ g(re, { className: "mx-cmn-date-range-selector", m: 4, children: [
|
|
135
|
+
/* @__PURE__ */ g(
|
|
136
|
+
re,
|
|
137
|
+
{
|
|
138
|
+
sx: {
|
|
139
|
+
[_.breakpoints.down("sm")]: {
|
|
140
|
+
display: r ? "none" : "flex",
|
|
141
|
+
justifyContent: "center"
|
|
142
|
+
},
|
|
143
|
+
[_.breakpoints.up("sm")]: { display: "inline-flex" }
|
|
144
|
+
},
|
|
145
|
+
children: [
|
|
146
|
+
i === "readonly" && /* @__PURE__ */ g(B, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
147
|
+
/* @__PURE__ */ e(D, { name: "calendar_month", size: 24 }),
|
|
148
|
+
/* @__PURE__ */ e(W, { bold: !0, children: P(C[0], S.MONTH_DAY) }),
|
|
149
|
+
/* @__PURE__ */ e(D, { name: "remove" }),
|
|
150
|
+
/* @__PURE__ */ e(W, { bold: !0, children: P(C[1], S.MONTH_DAY_YEAR) })
|
|
151
|
+
] }),
|
|
152
|
+
i !== "readonly" && i !== "timeframebuttons" && i !== "timeframetabs" && /* @__PURE__ */ g(
|
|
153
|
+
Me,
|
|
154
|
+
{
|
|
155
|
+
color: d,
|
|
156
|
+
sx: {
|
|
157
|
+
"& .MuiButtonGroup-grouped": {
|
|
158
|
+
padding: s ? 0 : 12
|
|
159
|
+
},
|
|
160
|
+
"& .MuiButtonGroup-middleButton": {
|
|
161
|
+
px: 24
|
|
162
|
+
},
|
|
163
|
+
height: 44
|
|
164
|
+
},
|
|
165
|
+
variant: i,
|
|
166
|
+
children: [
|
|
167
|
+
/* @__PURE__ */ e(
|
|
168
|
+
H,
|
|
169
|
+
{
|
|
170
|
+
"aria-disabled": n.shouldDisablePrevious,
|
|
171
|
+
"aria-label": a.dateRangePreviousAria,
|
|
172
|
+
color: n.shouldDisablePrevious ? "secondary" : "primary",
|
|
173
|
+
onClick: () => n.shouldDisablePrevious ? null : I("previous"),
|
|
174
|
+
children: /* @__PURE__ */ e(D, { name: "chevron_left", size: 20 })
|
|
175
|
+
}
|
|
176
|
+
),
|
|
177
|
+
/* @__PURE__ */ e(
|
|
178
|
+
H,
|
|
179
|
+
{
|
|
180
|
+
"aria-disabled": n.shouldDisablePicker,
|
|
181
|
+
color: d,
|
|
182
|
+
onClick: () => n.shouldDisablePicker ? null : x(!0),
|
|
183
|
+
startIcon: /* @__PURE__ */ e(D, { name: "calendar_month", size: 20 }),
|
|
184
|
+
sx: {
|
|
185
|
+
p: s ? 0 : 8
|
|
186
|
+
},
|
|
187
|
+
children: O ? P(c[0], S.MONTH_YEAR) : /* @__PURE__ */ g("span", { children: [
|
|
188
|
+
P(c[0], S.MONTH_DAY_YEAR),
|
|
189
|
+
" -",
|
|
190
|
+
" ",
|
|
191
|
+
P(c[1], S.MONTH_DAY_YEAR)
|
|
192
|
+
] })
|
|
193
|
+
}
|
|
194
|
+
),
|
|
195
|
+
/* @__PURE__ */ e(
|
|
196
|
+
H,
|
|
197
|
+
{
|
|
198
|
+
"aria-disabled": n.shouldDisableNext,
|
|
199
|
+
"aria-label": a.dateRangeNextAria,
|
|
200
|
+
color: n.shouldDisableNext ? "secondary" : "primary",
|
|
201
|
+
onClick: () => n.shouldDisableNext ? null : I("next"),
|
|
202
|
+
children: /* @__PURE__ */ e(D, { name: "chevron_right", size: 20 })
|
|
203
|
+
}
|
|
204
|
+
)
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
),
|
|
208
|
+
i === "timeframebuttons" && /* @__PURE__ */ e(
|
|
209
|
+
Le,
|
|
210
|
+
{
|
|
211
|
+
"aria-label": a.dateRangeEditTitle,
|
|
212
|
+
color: d,
|
|
213
|
+
exclusive: !0,
|
|
214
|
+
orientation: "horizontal",
|
|
215
|
+
value: E,
|
|
216
|
+
children: w.buttons.map((t) => /* @__PURE__ */ e(
|
|
217
|
+
Ee,
|
|
218
|
+
{
|
|
219
|
+
"aria-label": t.ariaLabel,
|
|
220
|
+
onClick: () => Y(t.value),
|
|
221
|
+
sx: { width: 56 },
|
|
222
|
+
value: t.value,
|
|
223
|
+
children: t.label
|
|
224
|
+
},
|
|
225
|
+
t.label
|
|
226
|
+
))
|
|
227
|
+
}
|
|
228
|
+
),
|
|
229
|
+
i === "timeframetabs" && /* @__PURE__ */ e(
|
|
230
|
+
Se,
|
|
231
|
+
{
|
|
232
|
+
indicatorColor: "primary",
|
|
233
|
+
onChange: (t, l) => Y(l),
|
|
234
|
+
textColor: "primary",
|
|
235
|
+
value: E,
|
|
236
|
+
variant: "fullWidth",
|
|
237
|
+
children: w.tabs.map((t) => /* @__PURE__ */ e(
|
|
238
|
+
Pe,
|
|
239
|
+
{
|
|
240
|
+
label: /* @__PURE__ */ e(W, { bold: !0, variant: "body1", children: t.label }),
|
|
241
|
+
sx: { minWidth: 80 },
|
|
242
|
+
value: t.value
|
|
243
|
+
},
|
|
244
|
+
t.label
|
|
245
|
+
))
|
|
246
|
+
}
|
|
247
|
+
)
|
|
248
|
+
]
|
|
249
|
+
}
|
|
250
|
+
),
|
|
251
|
+
y && s && /* @__PURE__ */ g(
|
|
252
|
+
Ne,
|
|
253
|
+
{
|
|
254
|
+
ariaLabelClose: a.dateRangeCloseAria,
|
|
255
|
+
isOpen: y,
|
|
256
|
+
onClose: () => x(!1),
|
|
257
|
+
onPrimaryAction: () => {
|
|
258
|
+
L(), x(!1);
|
|
259
|
+
},
|
|
260
|
+
primaryText: a.dateRangeEditApply,
|
|
261
|
+
title: a.dateRangeEditTitle,
|
|
262
|
+
children: [
|
|
263
|
+
h,
|
|
264
|
+
/* @__PURE__ */ e(
|
|
265
|
+
Z,
|
|
266
|
+
{
|
|
267
|
+
copy: a.dateRangePickerCopy,
|
|
268
|
+
dateRange: C,
|
|
269
|
+
onRangeChanged: T,
|
|
270
|
+
selectedShortcut: o,
|
|
271
|
+
sx: { p: 0 }
|
|
272
|
+
}
|
|
273
|
+
)
|
|
274
|
+
]
|
|
275
|
+
}
|
|
276
|
+
),
|
|
277
|
+
y && !s && /* @__PURE__ */ g(
|
|
278
|
+
Be,
|
|
279
|
+
{
|
|
280
|
+
copy: { title: a.dateRangeEditTitle },
|
|
281
|
+
isOpen: !0,
|
|
282
|
+
onClose: () => x(!1),
|
|
283
|
+
onPrimaryAction: () => L(),
|
|
284
|
+
primaryText: a.dateRangeEditApply,
|
|
285
|
+
sx: {
|
|
286
|
+
"& .MuiDialogContent-root": {
|
|
287
|
+
padding: 0
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
children: [
|
|
291
|
+
h,
|
|
292
|
+
/* @__PURE__ */ e(
|
|
293
|
+
Z,
|
|
294
|
+
{
|
|
295
|
+
copy: a.dateRangePickerCopy,
|
|
296
|
+
dateRange: C,
|
|
297
|
+
onRangeChanged: T,
|
|
298
|
+
selectedShortcut: o,
|
|
299
|
+
sx: {
|
|
300
|
+
pt: 0,
|
|
301
|
+
"& .MuiPickersLayout-toolbar": {
|
|
302
|
+
gridColumn: "1/4"
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
)
|
|
307
|
+
]
|
|
308
|
+
}
|
|
309
|
+
)
|
|
310
|
+
] });
|
|
311
|
+
}, ze = ne(
|
|
312
|
+
({ calendarActions: n, dateRange: d, dateRangeVariant: a }) => {
|
|
313
|
+
const { displayedDateRange: m } = ie(), { common: r } = se(), i = {
|
|
314
|
+
dateRangePickerCopy: {
|
|
315
|
+
dateRangeFrom: r.date_range_picker.from,
|
|
316
|
+
dateRangeTo: r.date_range_picker.to,
|
|
317
|
+
dateRangeCustom: r.date_range_picker.custom,
|
|
318
|
+
dateRangeSelectARange: r.date_range_picker.select_range,
|
|
319
|
+
dateRangeThisMonth: r.date_range_picker.this_month,
|
|
320
|
+
dateRangeLastMonth: r.date_range_picker.last_month,
|
|
321
|
+
dateRangeLast30Days: r.date_range_picker.last_30_days,
|
|
322
|
+
dateRangeLast90Days: r.date_range_picker.last_90_days,
|
|
323
|
+
dateRangeYTD: r.date_range_picker.ytd,
|
|
324
|
+
dateRangeLastYear: r.date_range_picker.last_year,
|
|
325
|
+
dateRangeSelect: r.date_range_picker.select
|
|
326
|
+
},
|
|
327
|
+
dateRangeEditApply: r.date_range_picker.edit_apply,
|
|
328
|
+
dateRangeEditTitle: r.date_range_picker.edit_title,
|
|
329
|
+
dateRangeNextAria: r.date_range_picker.next_aria,
|
|
330
|
+
dateRangePreviousAria: r.date_range_picker.previous_aria
|
|
331
|
+
}, _ = d ? d.start : m.start, s = d ? d.end : m.end;
|
|
332
|
+
return /* @__PURE__ */ e(
|
|
333
|
+
Ge,
|
|
334
|
+
{
|
|
335
|
+
calendarActions: n,
|
|
336
|
+
copy: i,
|
|
337
|
+
range: [_, s],
|
|
338
|
+
shouldShrinkToIcon: !1,
|
|
339
|
+
variant: a
|
|
340
|
+
}
|
|
341
|
+
);
|
|
342
|
+
}
|
|
343
|
+
), Lt = ne(
|
|
344
|
+
({
|
|
345
|
+
actions: n,
|
|
346
|
+
allowedAccountTypes: d,
|
|
347
|
+
calendarActions: a,
|
|
348
|
+
children: m,
|
|
349
|
+
className: r = "mx-cmn-widget",
|
|
350
|
+
dateRange: i,
|
|
351
|
+
dateRangeVariant: _,
|
|
352
|
+
hasDivider: s = !1,
|
|
353
|
+
onAccountsFilterClick: k,
|
|
354
|
+
onBackClick: h,
|
|
355
|
+
onMenuClick: c,
|
|
356
|
+
showAccountFilter: R = !0,
|
|
357
|
+
slotComponent: o,
|
|
358
|
+
sx: A = {},
|
|
359
|
+
title: C = ""
|
|
360
|
+
}) => {
|
|
361
|
+
const [N, { height: y, width: x }] = ge(), { onEvent: O } = fe(), {
|
|
362
|
+
actionsFlex: F,
|
|
363
|
+
containerSquareCorners: E,
|
|
364
|
+
headerHeadingLevel: j,
|
|
365
|
+
headerPaddingBottom: w,
|
|
366
|
+
headerPaddingTop: V,
|
|
367
|
+
headerPaddingX: I,
|
|
368
|
+
iconSize: L,
|
|
369
|
+
isCompact: T,
|
|
370
|
+
isDesktop: Y,
|
|
371
|
+
isViewportAbove900: t,
|
|
372
|
+
slotSx: l
|
|
373
|
+
} = Ie(x), { isCopyLoaded: p } = ie(), { common: f } = se(), {
|
|
374
|
+
config: { display_widget_headings: b }
|
|
375
|
+
} = be(), v = () => {
|
|
376
|
+
h && (h(), O(oe.WIDGET_BACK_CLICK));
|
|
377
|
+
};
|
|
378
|
+
if (u.useEffect(() => {
|
|
379
|
+
O(oe.WIDGET_SIZE_CHANGED, { height: y, width: x });
|
|
380
|
+
}, [y]), !p)
|
|
381
|
+
return /* @__PURE__ */ e(Oe, {});
|
|
382
|
+
const M = () => c && T && !t ? /* @__PURE__ */ e($, { color: "primary", onClick: c, sx: { p: 10 }, children: /* @__PURE__ */ e(D, { name: "menu_open", size: L, sx: { transform: "rotate(180deg)" } }) }) : h ? /* @__PURE__ */ e(
|
|
383
|
+
$,
|
|
384
|
+
{
|
|
385
|
+
"aria-label": f.back_to_dashboard,
|
|
386
|
+
color: "primary",
|
|
387
|
+
onClick: v,
|
|
388
|
+
sx: { p: 10 },
|
|
389
|
+
children: /* @__PURE__ */ e(pe, { size: 24 })
|
|
390
|
+
}
|
|
391
|
+
) : null, X = a && /* @__PURE__ */ e(B, { alignItems: "center", sx: l, children: /* @__PURE__ */ e(
|
|
392
|
+
ze,
|
|
393
|
+
{
|
|
394
|
+
calendarActions: a,
|
|
395
|
+
dateRange: i,
|
|
396
|
+
dateRangeVariant: _
|
|
397
|
+
}
|
|
398
|
+
) });
|
|
399
|
+
return /* @__PURE__ */ e(
|
|
400
|
+
ue,
|
|
401
|
+
{
|
|
402
|
+
className: r,
|
|
403
|
+
elevation: 1,
|
|
404
|
+
ref: N,
|
|
405
|
+
square: E,
|
|
406
|
+
sx: { borderBottomLeftRadius: 0, borderBottomRightRadius: 0, margin: 0, ...A },
|
|
407
|
+
children: /* @__PURE__ */ g(de, { children: [
|
|
408
|
+
/* @__PURE__ */ g(
|
|
409
|
+
B,
|
|
410
|
+
{
|
|
411
|
+
alignItems: "center",
|
|
412
|
+
alignSelf: "stretch",
|
|
413
|
+
direction: "row",
|
|
414
|
+
justifyContent: "space-between",
|
|
415
|
+
sx: {
|
|
416
|
+
pb: w,
|
|
417
|
+
pt: V,
|
|
418
|
+
px: I
|
|
419
|
+
},
|
|
420
|
+
children: [
|
|
421
|
+
M(),
|
|
422
|
+
/* @__PURE__ */ e(B, { alignItems: "flex-start", minWidth: 0, sx: { flex: 1 }, children: b && /* @__PURE__ */ e(W, { sx: { width: "100%" }, truncate: !0, variant: j, children: C }) }),
|
|
423
|
+
!T && (o || X),
|
|
424
|
+
/* @__PURE__ */ g(
|
|
425
|
+
B,
|
|
426
|
+
{
|
|
427
|
+
alignItems: "center",
|
|
428
|
+
direction: "row",
|
|
429
|
+
justifyContent: "flex-end",
|
|
430
|
+
sx: { flex: F, flexShrink: 0 },
|
|
431
|
+
children: [
|
|
432
|
+
R && /* @__PURE__ */ e(
|
|
433
|
+
he,
|
|
434
|
+
{
|
|
435
|
+
allowedAccountTypes: d,
|
|
436
|
+
isDesktop: Y,
|
|
437
|
+
onAccountFilterClick: k
|
|
438
|
+
}
|
|
439
|
+
),
|
|
440
|
+
n?.map((q) => {
|
|
441
|
+
if (u.isValidElement(q))
|
|
442
|
+
return u.cloneElement(q, { isDesktop: Y });
|
|
443
|
+
const { iconName: G, onClick: Q, label: U } = q;
|
|
444
|
+
return Y ? /* @__PURE__ */ e(
|
|
445
|
+
H,
|
|
446
|
+
{
|
|
447
|
+
onClick: Q,
|
|
448
|
+
startIcon: /* @__PURE__ */ e(D, { name: G, size: L }),
|
|
449
|
+
children: U
|
|
450
|
+
},
|
|
451
|
+
G
|
|
452
|
+
) : /* @__PURE__ */ e($, { "aria-label": U, color: "primary", onClick: Q, children: /* @__PURE__ */ e(D, { name: G, size: L }) }, G);
|
|
453
|
+
})
|
|
454
|
+
]
|
|
455
|
+
}
|
|
456
|
+
)
|
|
457
|
+
]
|
|
458
|
+
}
|
|
459
|
+
),
|
|
460
|
+
T && (o || X),
|
|
461
|
+
T && s && /* @__PURE__ */ e(ce, {}),
|
|
462
|
+
/* @__PURE__ */ e(me, { children: /* @__PURE__ */ e(_e, { availableHeight: y, availableWidth: x, children: m }) })
|
|
463
|
+
] })
|
|
464
|
+
}
|
|
465
|
+
);
|
|
466
|
+
}
|
|
467
|
+
);
|
|
468
|
+
export {
|
|
469
|
+
Ge as D,
|
|
470
|
+
Lt as W,
|
|
471
|
+
Ie as u
|
|
472
|
+
};
|
|
@@ -25,7 +25,7 @@ import Z1 from "@mui/material/Switch";
|
|
|
25
25
|
import T from "@mui/material/ListItem";
|
|
26
26
|
import $ from "@mui/material/ListItemButton";
|
|
27
27
|
import Z from "@mui/material/ListItemText";
|
|
28
|
-
import { A as w } from "../Analytics-
|
|
28
|
+
import { A as w } from "../Analytics-CzGzz_sE.mjs";
|
|
29
29
|
import { D as Q } from "../Dialog-iLlBR8TG.mjs";
|
|
30
30
|
import { b as f } from "../Localization-CkQ49EKr.mjs";
|
|
31
31
|
import { D as t1 } from "../Drawer-XPaLYjiO.mjs";
|
|
@@ -55,17 +55,17 @@ import e3 from "@mui/material/AlertTitle";
|
|
|
55
55
|
import t3 from "@mui/material/Link";
|
|
56
56
|
import n3 from "@mui/material/Paper";
|
|
57
57
|
import { endOfToday as o3, subDays as i3, startOfToday as c3 } from "date-fns";
|
|
58
|
-
import { T as a3 } from "../EmbeddedCard-
|
|
59
|
-
import { T as s3 } from "../TransactionDetails-
|
|
58
|
+
import { T as a3 } from "../EmbeddedCard-CBS3uUbk.mjs";
|
|
59
|
+
import { T as s3 } from "../TransactionDetails-DLnK244l.mjs";
|
|
60
60
|
import { T as r1 } from "../TabContentContainer-CnMXkVqr.mjs";
|
|
61
61
|
import { f as d1 } from "../NumberFormatting-CyrvFgfd.mjs";
|
|
62
62
|
import { C as l3 } from "../ConnectionsDrawer-DxpSlJN7.mjs";
|
|
63
|
-
import { u as H1 } from "../useScreenSize-
|
|
63
|
+
import { u as H1 } from "../useScreenSize-CeFhWTt_.mjs";
|
|
64
64
|
import { u as n1 } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
|
|
65
65
|
import { L as o1 } from "../Loader-CxeBwuPG.mjs";
|
|
66
|
-
import { W as r3 } from "../WidgetContainer-
|
|
66
|
+
import { W as r3 } from "../WidgetContainer-CTgBAae_.mjs";
|
|
67
67
|
import { M as v1 } from "../MiniWidgetContainer-CmTGSUL5.mjs";
|
|
68
|
-
import { A as l2 } from "../AccountStore-
|
|
68
|
+
import { A as l2 } from "../AccountStore-B3S_p5Qa.mjs";
|
|
69
69
|
const d3 = (t, o) => {
|
|
70
70
|
const n = _1.includes(o) ? x1(t) : [], i = L1.includes(o) ? R1(t) : [], c = f1.includes(o) ? S1(t) : [];
|
|
71
71
|
return [n, i, c].filter((l) => l.length > 0);
|