@mx-cartographer/experiences 7.13.20 → 7.13.22-alpha.al0
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 +4 -0
- package/dist/{AccountDetailsHeader-D9gbTbUt.mjs → AccountDetailsHeader-CG9VtEpj.mjs} +2 -2
- package/dist/{AccountListItem-D9WJDbZ1.mjs → AccountListItem-BDFCEhSI.mjs} +2 -2
- package/dist/{AccountStore-DpYvNnql.mjs → AccountStore-Bn1eH2EU.mjs} +1 -1
- package/dist/{BudgetUtil-CLhRnCoX.mjs → BudgetUtil-BCSxP3M3.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-Dc9Widy9.mjs → CategorySelectorDrawer-tvJUjmwZ.mjs} +1 -1
- package/dist/{Connect-eYIWqCEr.mjs → Connect-CmjOgy5v.mjs} +1 -1
- package/dist/{ConnectDrawer-C0wjwcJt.mjs → ConnectDrawer-Be0RkL7I.mjs} +2 -2
- package/dist/{ConnectionsDrawer-IA7vnv1J.mjs → ConnectionsDrawer-yeD_PsY1.mjs} +2 -2
- package/dist/{CurrencyInput-DuMktPu3.mjs → CurrencyInput-xu9UcYZR.mjs} +1 -1
- package/dist/DateRangeSelector-DE4UR77m.mjs +275 -0
- package/dist/{ExportCsvAction-izkIdXj5.mjs → ExportCsvAction-CLUDN8jI.mjs} +3 -3
- package/dist/{GlobalAccountFilter-B73Pw1hJ.mjs → GlobalAccountFilter-BkUeAltd.mjs} +90 -96
- package/dist/{GoalStore-DB58sKTC.mjs → GoalStore-DMhiGiF4.mjs} +1 -1
- package/dist/{Help-D-laTbKu.mjs → Help-pcoNjCaF.mjs} +1 -1
- package/dist/{LineChart-EAr5ox5U.mjs → LineChart-DIjY-HBq.mjs} +1 -1
- package/dist/{ListItemAction-4KB7P75M.mjs → ListItemAction-BQIdxB-9.mjs} +1 -1
- package/dist/{ManageIncome-B1j-AzI1.mjs → ManageIncome-DWVaWpCT.mjs} +4 -4
- package/dist/{MicroWidgetContainer-B_EnfvCq.mjs → MicroWidgetContainer-CTMkXRJM.mjs} +1 -1
- package/dist/{MiniWidgetContainer-Bhkv-hpz.mjs → MiniWidgetContainer-BKPN3c-6.mjs} +1 -1
- package/dist/{NotificationSettings-C77J42Ue.mjs → NotificationSettings-O3iUw7-O.mjs} +32 -32
- package/dist/{OriginalBalanceAction-DjpvVVFz.mjs → OriginalBalanceAction-2lCGZTRv.mjs} +3 -3
- package/dist/{RecurringSettings-Dyj3i0ZJ.mjs → RecurringSettings-DNko1CD0.mjs} +2 -2
- package/dist/{SpendingLegend-BgjazduU.mjs → SpendingLegend-CGYqNtOp.mjs} +1 -1
- package/dist/{StatusIndicator-CIKUOoN_.mjs → StatusIndicator-CnDblSmc.mjs} +2 -2
- package/dist/{Transaction-CqjlF6SO.mjs → Transaction-Bd0myZzA.mjs} +1 -1
- package/dist/{TransactionDetails-CwqokbQo.mjs → TransactionDetails-DAB5arBD.mjs} +6 -6
- package/dist/{TransactionStore-rpqhGX8m.mjs → TransactionStore-hzVucfUK.mjs} +2 -2
- package/dist/{ViewMoreMicroCard-D24H9kDm.mjs → ViewMoreMicroCard-BWCe3UeO.mjs} +1 -1
- package/dist/WidgetContainer-BPeSl0Dj.mjs +180 -0
- package/dist/WidgetContainerV2-BjOelON7.mjs +127 -0
- package/dist/accounts/index.es.js +218 -219
- package/dist/analytics/index.es.js +8 -8
- package/dist/budgets/index.es.js +408 -409
- package/dist/cashflow/index.es.js +227 -228
- package/dist/categories/index.es.js +1 -1
- package/dist/common/components/GlobalAccountFilter.d.ts +1 -1
- package/dist/common/components/WidgetContainer.d.ts +3 -2
- package/dist/common/components/WidgetContainerV2.d.ts +4 -0
- package/dist/common/components/index.d.ts +1 -0
- package/dist/common/index.es.js +167 -164
- package/dist/dashboard/index.es.js +5 -5
- package/dist/debts/index.es.js +585 -586
- package/dist/{exportTransactionsToCSV-CdTF_RqL.mjs → exportTransactionsToCSV-CamFllci.mjs} +1 -1
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/index.es.js +641 -652
- package/dist/goals/GoalsWidget.d.ts +1 -1
- package/dist/goals/index.es.js +498 -499
- package/dist/help/index.es.js +8 -8
- package/dist/{hooks-BxkfR-Ff.mjs → hooks-DOWEalfb.mjs} +2 -2
- package/dist/insights/components/shared/DonutChartV2.d.ts +13 -0
- package/dist/insights/index.es.js +3 -3
- package/dist/investments/InvestmentsWidget.d.ts +1 -1
- package/dist/investments/index.es.js +448 -449
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +182 -196
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +1 -1
- package/dist/recurringtransactions/index.es.js +240 -242
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +8 -8
- package/dist/transactions/index.es.js +246 -248
- package/dist/trends/index.es.js +12 -12
- package/dist/{useAccountDisplayName-DKwT1mWv.mjs → useAccountDisplayName-DQc7zGqk.mjs} +1 -1
- package/dist/{useInsightsEnabled-DL_oNyI0.mjs → useInsightsEnabled-DojdZhOg.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-DgN1bTyu.mjs → useWidgetLoadTimer-DmYEMfRw.mjs} +1 -1
- package/package.json +1 -1
- package/dist/WidgetContainer-B7xDq2bM.mjs +0 -441
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@ import { observer as f } from "mobx-react-lite";
|
|
|
3
3
|
import s from "@mui/material/Stack";
|
|
4
4
|
import { H3 as T, InstitutionLogo as x, Text as l, H2 as D } from "@mxenabled/mxui";
|
|
5
5
|
import p from "react";
|
|
6
|
-
import { G as N, d as _, l as P,
|
|
6
|
+
import { G as N, d as _, l as P, g as G, u as O } from "./hooks-DOWEalfb.mjs";
|
|
7
7
|
import { g as R } from "./AccountFields-CxqONzjY.mjs";
|
|
8
8
|
import { A as r } from "./Account-BiB1F8lL.mjs";
|
|
9
9
|
import w from "@mui/material/Card";
|
|
@@ -11,7 +11,7 @@ import v from "@mui/material/CardContent";
|
|
|
11
11
|
import L from "@mui/material/CardHeader";
|
|
12
12
|
import { L as H } from "./Loader-D3rjKx72.mjs";
|
|
13
13
|
import { I as M, P as U, S as Y } from "./Account-DuOz1a27.mjs";
|
|
14
|
-
import { u as j } from "./useAccountDisplayName-
|
|
14
|
+
import { u as j } from "./useAccountDisplayName-DQc7zGqk.mjs";
|
|
15
15
|
import { f as z } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
16
16
|
const C = () => {
|
|
17
17
|
if (!p.useContext(N))
|
|
@@ -11,8 +11,8 @@ import { InstitutionLogo as A, Text as o } from "@mxenabled/mxui";
|
|
|
11
11
|
import { Error as B } from "@mxenabled/mx-icons";
|
|
12
12
|
import { I as j } from "./IconBacking-B9oC6uL2.mjs";
|
|
13
13
|
import { g as T } from "./AccountFields-CxqONzjY.mjs";
|
|
14
|
-
import { u as $ } from "./useAccountDisplayName-
|
|
15
|
-
import { u as k } from "./hooks-
|
|
14
|
+
import { u as $ } from "./useAccountDisplayName-DQc7zGqk.mjs";
|
|
15
|
+
import { u as k } from "./hooks-DOWEalfb.mjs";
|
|
16
16
|
import { C as c } from "./Account-BiB1F8lL.mjs";
|
|
17
17
|
import { f as w } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
18
18
|
const E = {
|
|
@@ -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-BCSxP3M3.mjs";
|
|
3
3
|
import { A as d } from "./AccountApi-ChQr5PAZ.mjs";
|
|
4
4
|
import { d as p } from "./Accounts-o7ohkngR.mjs";
|
|
5
5
|
import { A as s, d as u } from "./Account-BiB1F8lL.mjs";
|
|
@@ -28,7 +28,7 @@ import gt from "@mui/material/InputAdornment";
|
|
|
28
28
|
import E from "@mui/material/Stack";
|
|
29
29
|
import ft from "@mui/material/TextField";
|
|
30
30
|
import { u as pt } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
31
|
-
import { m as ht } from "./hooks-
|
|
31
|
+
import { m as ht } from "./hooks-DOWEalfb.mjs";
|
|
32
32
|
import { b as T } from "./Category-CevNQ03n.mjs";
|
|
33
33
|
import { b as j } from "./Localization-CPkpIwIx.mjs";
|
|
34
34
|
import { f as O } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
@@ -2,7 +2,7 @@ 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
4
|
import $ from "@mui/material/Stack";
|
|
5
|
-
import { G as K, l as f, u as S,
|
|
5
|
+
import { G as K, l as f, u as S, f as A, b as B } from "./hooks-DOWEalfb.mjs";
|
|
6
6
|
import U from "@mui/material/List";
|
|
7
7
|
import V from "@mui/material/Paper";
|
|
8
8
|
import Y from "@mui/material/Divider";
|
|
@@ -5,7 +5,7 @@ import s from "@mui/material/CircularProgress";
|
|
|
5
5
|
import m from "@mui/material/Stack";
|
|
6
6
|
import { Text as a } from "@mxenabled/mxui";
|
|
7
7
|
import { M as t } from "./Accounts-CseLC3lL.mjs";
|
|
8
|
-
import { u as p } from "./hooks-
|
|
8
|
+
import { u as p } from "./hooks-DOWEalfb.mjs";
|
|
9
9
|
const l = ({ status: r = t.Loading }) => {
|
|
10
10
|
const { connect: n } = p();
|
|
11
11
|
return /* @__PURE__ */ o(
|
|
@@ -3,9 +3,9 @@ import s from "react";
|
|
|
3
3
|
import { observer as _ } from "mobx-react-lite";
|
|
4
4
|
import g from "@mui/material/styles/useTheme";
|
|
5
5
|
import { ConnectWidget as x } from "@mxenabled/web-widget-sdk";
|
|
6
|
-
import { b as a, a as c } from "./Connect-
|
|
6
|
+
import { b as a, a as c } from "./Connect-CmjOgy5v.mjs";
|
|
7
7
|
import { M as i } from "./Accounts-CseLC3lL.mjs";
|
|
8
|
-
import { d as D, e as L, u as w } from "./hooks-
|
|
8
|
+
import { d as D, e as L, u as w } from "./hooks-DOWEalfb.mjs";
|
|
9
9
|
import { D as y } from "./Drawer-Bbe4AMB1.mjs";
|
|
10
10
|
const I = ({
|
|
11
11
|
loadWidgetProps: l,
|
|
@@ -3,9 +3,9 @@ import s from "react";
|
|
|
3
3
|
import { observer as E } from "mobx-react-lite";
|
|
4
4
|
import { useTheme as _ } from "@mui/material/styles";
|
|
5
5
|
import { ConnectionsWidget as b } from "@mxenabled/web-widget-sdk";
|
|
6
|
-
import { C as a, a as c } from "./Connect-
|
|
6
|
+
import { C as a, a as c } from "./Connect-CmjOgy5v.mjs";
|
|
7
7
|
import { M as i } from "./Accounts-CseLC3lL.mjs";
|
|
8
|
-
import { d as D, e as L, u as w } from "./hooks-
|
|
8
|
+
import { d as D, e as L, u as w } from "./hooks-DOWEalfb.mjs";
|
|
9
9
|
import { D as x } from "./Drawer-Bbe4AMB1.mjs";
|
|
10
10
|
const I = ({
|
|
11
11
|
onClose: l,
|
|
@@ -4,7 +4,7 @@ import { css as k } from "@mxenabled/cssinjs";
|
|
|
4
4
|
import { v4 as q } from "uuid";
|
|
5
5
|
import { TextField as B, P as _ } from "@mxenabled/mxui";
|
|
6
6
|
import { g as L, C as O, f as y, M as C } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
7
|
-
import { u as W } from "./hooks-
|
|
7
|
+
import { u as W } from "./hooks-DOWEalfb.mjs";
|
|
8
8
|
import { b, g } from "./Localization-CPkpIwIx.mjs";
|
|
9
9
|
const j = ({
|
|
10
10
|
allowDecimals: o = !0,
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { jsxs as u, Fragment as U, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import l from "react";
|
|
3
|
+
import { addMonths as F } from "date-fns/addMonths";
|
|
4
|
+
import { addDays as V } from "date-fns/addDays";
|
|
5
|
+
import { addYears as H } from "date-fns/addYears";
|
|
6
|
+
import { differenceInCalendarDays as X } from "date-fns/differenceInCalendarDays";
|
|
7
|
+
import { endOfDay as Z } from "date-fns/endOfDay";
|
|
8
|
+
import { endOfMonth as k } from "date-fns/endOfMonth";
|
|
9
|
+
import { endOfToday as I } from "date-fns/endOfToday";
|
|
10
|
+
import { endOfYear as ee } from "date-fns/endOfYear";
|
|
11
|
+
import { startOfMonth as te } from "date-fns/startOfMonth";
|
|
12
|
+
import { startOfToday as ae } from "date-fns/startOfToday";
|
|
13
|
+
import { startOfYear as oe } from "date-fns/startOfYear";
|
|
14
|
+
import { subMonths as v } from "date-fns/subMonths";
|
|
15
|
+
import { subDays as re } from "date-fns/subDays";
|
|
16
|
+
import { subYears as z } from "date-fns/subYears";
|
|
17
|
+
import ne from "@mui/material/Box";
|
|
18
|
+
import Y from "@mui/material/Button";
|
|
19
|
+
import ie from "@mui/material/ButtonGroup";
|
|
20
|
+
import se from "@mui/material/Stack";
|
|
21
|
+
import le from "@mui/material/Tab";
|
|
22
|
+
import de from "@mui/material/Tabs";
|
|
23
|
+
import me from "@mui/material/ToggleButton";
|
|
24
|
+
import ue from "@mui/material/ToggleButtonGroup";
|
|
25
|
+
import he from "@mui/material/styles/useTheme";
|
|
26
|
+
import { Icon as R, Text as _, DateRangePicker as j } from "@mxenabled/mxui";
|
|
27
|
+
import { u as fe } from "./useAriaLive-MkYebyUR.mjs";
|
|
28
|
+
import { D as pe } from "./Dialog-Ck34yr-d.mjs";
|
|
29
|
+
import { D as ce } from "./Drawer-Bbe4AMB1.mjs";
|
|
30
|
+
import { u as ge } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
31
|
+
import { f as h, D as f } from "./DateFormats-BMpMrZpW.mjs";
|
|
32
|
+
const be = ({
|
|
33
|
+
calendarActions: o,
|
|
34
|
+
color: x = "primary",
|
|
35
|
+
copy: t,
|
|
36
|
+
range: D = [te(ae()), k(I())],
|
|
37
|
+
shouldShrinkToIcon: G = !0,
|
|
38
|
+
variant: n = "outlined"
|
|
39
|
+
}) => {
|
|
40
|
+
const O = he(), { isMobile: C } = ge(), { announce: $, ariaLive: S } = fe(), [c, P] = l.useState(D), [i, W] = l.useState(t.dateRangePickerCopy.dateRangeThisMonth), [p, E] = l.useState(c), [y, M] = l.useState(!1), [q, J] = l.useState(!0), [T, K] = l.useState(6), L = {
|
|
41
|
+
buttons: [
|
|
42
|
+
{ ariaLabel: "3 Months", label: "3M", value: 3 },
|
|
43
|
+
{ ariaLabel: "6 Months", label: "6M", value: 6 },
|
|
44
|
+
{ ariaLabel: "9 Months", label: "9M", value: 9 },
|
|
45
|
+
{ ariaLabel: "1 Year", label: "1Y", value: 12 }
|
|
46
|
+
],
|
|
47
|
+
tabs: [
|
|
48
|
+
{ label: "3 Months", value: 3 },
|
|
49
|
+
{ label: "6 Months", value: 6 },
|
|
50
|
+
{ label: "9 Months", value: 9 },
|
|
51
|
+
{ label: "1 Year", value: 12 }
|
|
52
|
+
]
|
|
53
|
+
};
|
|
54
|
+
l.useEffect(() => {
|
|
55
|
+
P(D), E(D);
|
|
56
|
+
}, [D]), l.useEffect(() => {
|
|
57
|
+
(n === "timeframebuttons" || n === "timeframetabs") && o.onRangeChanged(Q());
|
|
58
|
+
}, [T]);
|
|
59
|
+
const Q = () => {
|
|
60
|
+
const e = k(I());
|
|
61
|
+
return [k(v(e, T)), e];
|
|
62
|
+
}, N = (e) => {
|
|
63
|
+
const [r, s] = c, d = e === "previous";
|
|
64
|
+
let m;
|
|
65
|
+
if (i === t.dateRangePickerCopy.dateRangeThisMonth || i === t.dateRangePickerCopy.dateRangeLastMonth)
|
|
66
|
+
m = [
|
|
67
|
+
d ? v(r, 1) : F(r, 1),
|
|
68
|
+
k(d ? v(s, 1) : F(s, 1))
|
|
69
|
+
];
|
|
70
|
+
else if (i === t.dateRangePickerCopy.dateRangeYTD || i === t.dateRangePickerCopy.dateRangeLastYear) {
|
|
71
|
+
const g = oe(r), b = ee(r);
|
|
72
|
+
m = [
|
|
73
|
+
d ? z(g, 1) : H(g, 1),
|
|
74
|
+
d ? z(b, 1) : H(b, 1)
|
|
75
|
+
];
|
|
76
|
+
} else {
|
|
77
|
+
const g = X(s, r), b = d ? re : V;
|
|
78
|
+
m = [b(r, g), b(s, g)];
|
|
79
|
+
}
|
|
80
|
+
P(m), o.onRangeChanged(m);
|
|
81
|
+
}, A = () => {
|
|
82
|
+
P(p), J(
|
|
83
|
+
i === t.dateRangePickerCopy.dateRangeThisMonth || i === t.dateRangePickerCopy.dateRangeLastMonth
|
|
84
|
+
), o.onRangeChanged(p);
|
|
85
|
+
}, B = (e, r) => {
|
|
86
|
+
e[1] = e[1] ?? e[0];
|
|
87
|
+
const s = [e[0], e[1] ? Z(e[1]) : e[1]], d = h(s[0], f.MONTH_DAY_YEAR), m = h(s[1], f.MONTH_DAY_YEAR);
|
|
88
|
+
E(s), W(r), $(`${t.dateRangePickerCopy}: ${d} - ${m}`);
|
|
89
|
+
}, w = (e) => {
|
|
90
|
+
K(e);
|
|
91
|
+
};
|
|
92
|
+
return /* @__PURE__ */ u(U, { children: [
|
|
93
|
+
/* @__PURE__ */ u(
|
|
94
|
+
ne,
|
|
95
|
+
{
|
|
96
|
+
sx: {
|
|
97
|
+
[O.breakpoints.down("sm")]: {
|
|
98
|
+
display: G ? "none" : "flex",
|
|
99
|
+
justifyContent: "center"
|
|
100
|
+
},
|
|
101
|
+
[O.breakpoints.up("sm")]: { display: "inline-flex" },
|
|
102
|
+
justifyContent: "center",
|
|
103
|
+
width: "100%"
|
|
104
|
+
},
|
|
105
|
+
children: [
|
|
106
|
+
n === "readonly" && /* @__PURE__ */ u(se, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
107
|
+
/* @__PURE__ */ a(R, { name: "calendar_month", size: 24 }),
|
|
108
|
+
/* @__PURE__ */ a(_, { bold: !0, children: h(p[0], f.MONTH_DAY) }),
|
|
109
|
+
/* @__PURE__ */ a(R, { name: "remove" }),
|
|
110
|
+
/* @__PURE__ */ a(_, { bold: !0, children: h(p[1], f.MONTH_DAY_YEAR) })
|
|
111
|
+
] }),
|
|
112
|
+
n !== "readonly" && n !== "timeframebuttons" && n !== "timeframetabs" && /* @__PURE__ */ u(
|
|
113
|
+
ie,
|
|
114
|
+
{
|
|
115
|
+
color: x,
|
|
116
|
+
sx: {
|
|
117
|
+
"& .MuiButtonGroup-grouped": {
|
|
118
|
+
padding: C ? 0 : 12
|
|
119
|
+
},
|
|
120
|
+
"& .MuiButtonGroup-middleButton": {
|
|
121
|
+
px: 24,
|
|
122
|
+
whiteSpace: "nowrap"
|
|
123
|
+
},
|
|
124
|
+
height: 44
|
|
125
|
+
},
|
|
126
|
+
variant: n,
|
|
127
|
+
children: [
|
|
128
|
+
/* @__PURE__ */ a(
|
|
129
|
+
Y,
|
|
130
|
+
{
|
|
131
|
+
"aria-disabled": o.shouldDisablePrevious,
|
|
132
|
+
"aria-label": t.dateRangePreviousAria,
|
|
133
|
+
color: o.shouldDisablePrevious ? "secondary" : "primary",
|
|
134
|
+
onClick: () => o.shouldDisablePrevious ? null : N("previous"),
|
|
135
|
+
children: /* @__PURE__ */ a(R, { name: "chevron_left", size: 20 })
|
|
136
|
+
}
|
|
137
|
+
),
|
|
138
|
+
/* @__PURE__ */ a(
|
|
139
|
+
Y,
|
|
140
|
+
{
|
|
141
|
+
"aria-disabled": o.shouldDisablePicker,
|
|
142
|
+
color: x,
|
|
143
|
+
onClick: () => o.shouldDisablePicker ? null : M(!0),
|
|
144
|
+
startIcon: /* @__PURE__ */ a(R, { name: "calendar_month", size: 20 }),
|
|
145
|
+
sx: {
|
|
146
|
+
p: C ? 0 : 8
|
|
147
|
+
},
|
|
148
|
+
children: q ? h(c[0], f.MONTH_YEAR) : /* @__PURE__ */ u("span", { children: [
|
|
149
|
+
h(c[0], f.MONTH_DAY_YEAR),
|
|
150
|
+
" -",
|
|
151
|
+
" ",
|
|
152
|
+
h(c[1], f.MONTH_DAY_YEAR)
|
|
153
|
+
] })
|
|
154
|
+
}
|
|
155
|
+
),
|
|
156
|
+
/* @__PURE__ */ a(
|
|
157
|
+
Y,
|
|
158
|
+
{
|
|
159
|
+
"aria-disabled": o.shouldDisableNext,
|
|
160
|
+
"aria-label": t.dateRangeNextAria,
|
|
161
|
+
color: o.shouldDisableNext ? "secondary" : "primary",
|
|
162
|
+
onClick: () => o.shouldDisableNext ? null : N("next"),
|
|
163
|
+
children: /* @__PURE__ */ a(R, { name: "chevron_right", size: 20 })
|
|
164
|
+
}
|
|
165
|
+
)
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
),
|
|
169
|
+
n === "timeframebuttons" && /* @__PURE__ */ a(
|
|
170
|
+
ue,
|
|
171
|
+
{
|
|
172
|
+
"aria-label": t.dateRangeEditTitle,
|
|
173
|
+
color: x,
|
|
174
|
+
exclusive: !0,
|
|
175
|
+
orientation: "horizontal",
|
|
176
|
+
value: T,
|
|
177
|
+
children: L.buttons.map((e) => /* @__PURE__ */ a(
|
|
178
|
+
me,
|
|
179
|
+
{
|
|
180
|
+
"aria-label": e.ariaLabel,
|
|
181
|
+
onClick: () => w(e.value),
|
|
182
|
+
sx: { width: 56 },
|
|
183
|
+
value: e.value,
|
|
184
|
+
children: e.label
|
|
185
|
+
},
|
|
186
|
+
e.label
|
|
187
|
+
))
|
|
188
|
+
}
|
|
189
|
+
),
|
|
190
|
+
n === "timeframetabs" && /* @__PURE__ */ a(
|
|
191
|
+
de,
|
|
192
|
+
{
|
|
193
|
+
indicatorColor: "primary",
|
|
194
|
+
onChange: (e, r) => w(r),
|
|
195
|
+
textColor: "primary",
|
|
196
|
+
value: T,
|
|
197
|
+
variant: "fullWidth",
|
|
198
|
+
children: L.tabs.map((e) => /* @__PURE__ */ a(
|
|
199
|
+
le,
|
|
200
|
+
{
|
|
201
|
+
label: /* @__PURE__ */ a(_, { bold: !0, variant: "body1", children: e.label }),
|
|
202
|
+
sx: { minWidth: 80 },
|
|
203
|
+
value: e.value
|
|
204
|
+
},
|
|
205
|
+
e.label
|
|
206
|
+
))
|
|
207
|
+
}
|
|
208
|
+
)
|
|
209
|
+
]
|
|
210
|
+
}
|
|
211
|
+
),
|
|
212
|
+
y && C && /* @__PURE__ */ u(
|
|
213
|
+
ce,
|
|
214
|
+
{
|
|
215
|
+
ariaLabelClose: t.dateRangeCloseAria,
|
|
216
|
+
isOpen: y,
|
|
217
|
+
onClose: () => M(!1),
|
|
218
|
+
onPrimaryAction: () => {
|
|
219
|
+
A(), M(!1);
|
|
220
|
+
},
|
|
221
|
+
primaryText: t.dateRangeEditApply,
|
|
222
|
+
title: t.dateRangeEditTitle,
|
|
223
|
+
children: [
|
|
224
|
+
S,
|
|
225
|
+
/* @__PURE__ */ a(
|
|
226
|
+
j,
|
|
227
|
+
{
|
|
228
|
+
copy: t.dateRangePickerCopy,
|
|
229
|
+
dateRange: p,
|
|
230
|
+
onRangeChanged: B,
|
|
231
|
+
selectedShortcut: i,
|
|
232
|
+
sx: { p: 0 }
|
|
233
|
+
}
|
|
234
|
+
)
|
|
235
|
+
]
|
|
236
|
+
}
|
|
237
|
+
),
|
|
238
|
+
y && !C && /* @__PURE__ */ u(
|
|
239
|
+
pe,
|
|
240
|
+
{
|
|
241
|
+
copy: { title: t.dateRangeEditTitle },
|
|
242
|
+
isOpen: !0,
|
|
243
|
+
onClose: () => M(!1),
|
|
244
|
+
onPrimaryAction: () => A(),
|
|
245
|
+
primaryText: t.dateRangeEditApply,
|
|
246
|
+
sx: {
|
|
247
|
+
"& .MuiDialogContent-root": {
|
|
248
|
+
padding: 0
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
children: [
|
|
252
|
+
S,
|
|
253
|
+
/* @__PURE__ */ a(
|
|
254
|
+
j,
|
|
255
|
+
{
|
|
256
|
+
copy: t.dateRangePickerCopy,
|
|
257
|
+
dateRange: p,
|
|
258
|
+
onRangeChanged: B,
|
|
259
|
+
selectedShortcut: i,
|
|
260
|
+
sx: {
|
|
261
|
+
pt: 0,
|
|
262
|
+
"& .MuiPickersLayout-toolbar": {
|
|
263
|
+
gridColumn: "1/4"
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
)
|
|
268
|
+
]
|
|
269
|
+
}
|
|
270
|
+
)
|
|
271
|
+
] });
|
|
272
|
+
}, Qe = be;
|
|
273
|
+
export {
|
|
274
|
+
Qe as D
|
|
275
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
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
|
-
import { e as p } from "./exportTransactionsToCSV-
|
|
5
|
-
import { O as m } from "./Transaction-
|
|
4
|
+
import { e as p } from "./exportTransactionsToCSV-CamFllci.mjs";
|
|
5
|
+
import { O as m } from "./Transaction-Bd0myZzA.mjs";
|
|
6
6
|
import { R as x } from "./ResponsiveButton-DZFp78fJ.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { f as _, h as C, u as l } from "./hooks-DOWEalfb.mjs";
|
|
8
8
|
const v = ({ filter: t }) => {
|
|
9
9
|
const { onEvent: r } = _(), { tags: e, sortedTransactions: s } = C(), { transactions: n } = l(), a = () => {
|
|
10
10
|
r(m.ON_TRANSACTION_EXPORT_CSV_CLICK), p(t ? s.filter(t) : s, e);
|