@mx-cartographer/experiences 7.10.13 → 7.10.15
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 +8 -0
- package/dist/{AccountDetailsHeader-3ZD1Of4i.mjs → AccountDetailsHeader-C4V-fdYo.mjs} +1 -1
- package/dist/{AccountFields-CiofAlEI.mjs → AccountFields-CzfB9Q8i.mjs} +1 -1
- package/dist/{AccountListItem-CvYjSc-O.mjs → AccountListItem-DMypRg6w.mjs} +1 -1
- package/dist/{AccountStore-BV6LpLJl.mjs → AccountStore-MG4m41XY.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-euTDUflY.mjs → CategorySelectorDrawer-DCGWu9Vd.mjs} +1 -1
- package/dist/{CategoryStore-CqSW9TsW.mjs → CategoryStore-Cg6hsxza.mjs} +1 -1
- package/dist/{CategoryUtil-CCY_tiFg.mjs → CategoryUtil-Cufq3fxg.mjs} +1 -1
- package/dist/DateFormats-Cs-NbEZ7.mjs +65 -0
- package/dist/{DateUtil-BALs-njL.mjs → DateUtil-CVXVMbjf.mjs} +1 -1
- package/dist/Dialog-BqUCsQvo.mjs +58 -0
- package/dist/{EmptyState-DHAkGsjk.mjs → EmptyState-DoxNUae-.mjs} +17 -16
- package/dist/{ExportCsvAction-BMWhHM8W.mjs → ExportCsvAction-C4GQ4id5.mjs} +2 -2
- package/dist/{FinstrongStore-OylmCNuf.mjs → FinstrongStore-DBSoLGSE.mjs} +1 -1
- package/dist/{GoalStore-DNp0ttXZ.mjs → GoalStore-CpK43RJt.mjs} +1 -1
- package/dist/{ListItemAction-pvmKK9RU.mjs → ListItemAction-CpS4YY0y.mjs} +3 -3
- package/dist/{ManageIncome-8yTcFH7J.mjs → ManageIncome-COGmNMz1.mjs} +31 -30
- package/dist/{NotificationSettings-DuHI7GgA.mjs → NotificationSettings-x5syewdH.mjs} +1 -1
- package/dist/{OriginalBalanceAction-BhXMJ8wC.mjs → OriginalBalanceAction-BctEUz31.mjs} +1 -1
- package/dist/{RecurringSettings-C85RGgv4.mjs → RecurringSettings-DyR9KleL.mjs} +3 -3
- package/dist/{RecurringTransactionsStore-B1jZBQLY.mjs → RecurringTransactionsStore-BJrH7BJ7.mjs} +1 -1
- package/dist/{RepeatingTransaction-CIq3wSEA.mjs → RepeatingTransaction-CIrVdIet.mjs} +2 -2
- package/dist/{SpendingData-DtNL2mQL.mjs → SpendingData-C3bN-37j.mjs} +1 -1
- package/dist/{SpendingLegend-DCQtF8Wf.mjs → SpendingLegend-Ct-XcqUs.mjs} +1 -1
- package/dist/{TransactionDetails-C27q5FUQ.mjs → TransactionDetails-BOuk5Sz7.mjs} +10 -9
- package/dist/{TransactionStore-DXTFzPmW.mjs → TransactionStore-Cm9rQ1XO.mjs} +3 -3
- package/dist/{TrendsStore-C6mrxcHX.mjs → TrendsStore-Ys6BY_Uo.mjs} +1 -1
- package/dist/{User-CCYFbd5i.mjs → User-Cdyam577.mjs} +1 -1
- package/dist/{WidgetContainer-BNltq9UG.mjs → WidgetContainer-BxDAkXZT.mjs} +4 -3
- package/dist/accounts/index.es.js +22 -21
- package/dist/budgets/index.es.js +7 -7
- package/dist/cashflow/index.es.js +9 -9
- package/dist/categories/index.es.js +2 -2
- package/dist/common/components/EmptyState.d.ts +1 -0
- package/dist/common/index.es.js +113 -112
- package/dist/common/types/localization/TrendsCopy.d.ts +0 -2
- package/dist/debts/index.es.js +5 -5
- package/dist/{exportTransactionsToCSV-DNbCbq9P.mjs → exportTransactionsToCSV-DoifE4Fe.mjs} +2 -2
- package/dist/finstrong/index.es.js +39 -34
- package/dist/goals/index.es.js +33 -32
- package/dist/help/index.es.js +1 -1
- package/dist/insights/components/insights/CategoryBudget/types/CategoryBudget.d.ts +1 -0
- package/dist/insights/index.es.js +324 -319
- package/dist/investments/index.es.js +2 -2
- package/dist/networth/index.es.js +4 -4
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +9 -9
- package/dist/settings/index.es.js +5 -5
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/index.es.js +27 -26
- package/dist/trends/index.es.js +337 -341
- package/package.json +1 -1
- package/dist/Dialog-CwiqpTGe.mjs +0 -120
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,7 @@ import a 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
6
|
import { G as N, d as _, m as P, f as G, u as O } from "./hooks-BUCn6FeJ.mjs";
|
|
7
|
-
import { g as R } from "./AccountFields-
|
|
7
|
+
import { g as R } from "./AccountFields-CzfB9Q8i.mjs";
|
|
8
8
|
import { A as r } from "./Account-BiB1F8lL.mjs";
|
|
9
9
|
import w from "@mui/material/Card";
|
|
10
10
|
import v from "@mui/material/CardContent";
|
|
@@ -5,7 +5,7 @@ import { i as T, u as D, a as A, b as g, c as O } from "./Accounts-M-LTzStv.mjs"
|
|
|
5
5
|
import { F as m } from "./GlobalAccountFilter-xZ4Z8AE-.mjs";
|
|
6
6
|
import { f as _, i as b, a as N, b as S } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
7
7
|
import { b as i } from "./Localization-2MODESHW.mjs";
|
|
8
|
-
import { f as o, D as f } from "./
|
|
8
|
+
import { f as o, D as f } from "./DateFormats-Cs-NbEZ7.mjs";
|
|
9
9
|
const x = (l, e) => {
|
|
10
10
|
const r = [
|
|
11
11
|
{
|
|
@@ -10,7 +10,7 @@ import B from "@mui/material/styles/useTheme";
|
|
|
10
10
|
import { InstitutionLogo as L, Text as o } from "@mxenabled/mxui";
|
|
11
11
|
import { Error as A } from "@mxenabled/mx-icons";
|
|
12
12
|
import { I as j } from "./IconBacking-B9oC6uL2.mjs";
|
|
13
|
-
import { g as T } from "./AccountFields-
|
|
13
|
+
import { g as T } from "./AccountFields-CzfB9Q8i.mjs";
|
|
14
14
|
import { u as X } from "./useAccountDisplayName-D27PXvdj.mjs";
|
|
15
15
|
import { u as $ } from "./hooks-BUCn6FeJ.mjs";
|
|
16
16
|
import { C as d } from "./Account-BiB1F8lL.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeAutoObservable as h, runInAction as a } from "mobx";
|
|
2
|
-
import { i as g } from "./User-
|
|
2
|
+
import { i as g } from "./User-Cdyam577.mjs";
|
|
3
3
|
import { A as d } from "./AccountApi-DgZ8ILj1.mjs";
|
|
4
4
|
import { d as m } from "./Accounts-M-LTzStv.mjs";
|
|
5
5
|
import { A as s, d as u } from "./Account-BiB1F8lL.mjs";
|
|
@@ -16,7 +16,7 @@ import { Text as I, 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 p } from "./Localization-2MODESHW.mjs";
|
|
19
|
-
import {
|
|
19
|
+
import { D as ee } from "./Dialog-BqUCsQvo.mjs";
|
|
20
20
|
import te from "@mui/material/Box";
|
|
21
21
|
import oe from "@mui/material/Chip";
|
|
22
22
|
import v from "@mui/material/IconButton";
|
|
@@ -3,7 +3,7 @@ import { getUnixTime as n } from "date-fns/getUnixTime";
|
|
|
3
3
|
import { subMonths as c } from "date-fns/subMonths";
|
|
4
4
|
import { startOfMonth as C } from "date-fns/startOfMonth";
|
|
5
5
|
import { endOfMonth as h } from "date-fns/endOfMonth";
|
|
6
|
-
import { a as T, g as m } from "./CategoryUtil-
|
|
6
|
+
import { a as T, g as m } from "./CategoryUtil-Cufq3fxg.mjs";
|
|
7
7
|
import { F as f, A as i } from "./Fetch-DecPFeGU.mjs";
|
|
8
8
|
import { b as l, c as p } from "./Category-CevNQ03n.mjs";
|
|
9
9
|
class d {
|
|
@@ -4,7 +4,7 @@ import { startOfToday as C } from "date-fns/startOfToday";
|
|
|
4
4
|
import { subMonths as N } from "date-fns/subMonths";
|
|
5
5
|
import { CategoryIconList as O } from "@mxenabled/mxui";
|
|
6
6
|
import { C as b, a as D, b as E } from "./Category-CevNQ03n.mjs";
|
|
7
|
-
import { f as R, D as v } from "./
|
|
7
|
+
import { f as R, D as v } from "./DateFormats-Cs-NbEZ7.mjs";
|
|
8
8
|
const H = 3, f = 12, k = (t, o, e, r) => t.filter((n) => !n.parent_guid).map(
|
|
9
9
|
(n) => p(
|
|
10
10
|
n,
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { intlFormat as t } from "date-fns/intlFormat";
|
|
2
|
+
import { g as _ } from "./Localization-2MODESHW.mjs";
|
|
3
|
+
const m = "do", a = "MMM do, yyyy", O = {
|
|
4
|
+
TIME_STAMP_HOUR_MINUTE: {
|
|
5
|
+
hour: "numeric",
|
|
6
|
+
minute: "numeric"
|
|
7
|
+
},
|
|
8
|
+
DAY: {
|
|
9
|
+
day: "numeric"
|
|
10
|
+
},
|
|
11
|
+
DAY_OF_WEEK: {
|
|
12
|
+
weekday: "long"
|
|
13
|
+
},
|
|
14
|
+
DAY_OF_WEEK_MONTH_DAY: {
|
|
15
|
+
day: "numeric",
|
|
16
|
+
month: "long",
|
|
17
|
+
weekday: "long"
|
|
18
|
+
},
|
|
19
|
+
FULL_MONTH_DAY: {
|
|
20
|
+
day: "numeric",
|
|
21
|
+
month: "long"
|
|
22
|
+
},
|
|
23
|
+
MONTH: {
|
|
24
|
+
month: "short"
|
|
25
|
+
},
|
|
26
|
+
MONTH_DAY: {
|
|
27
|
+
day: "numeric",
|
|
28
|
+
month: "short"
|
|
29
|
+
},
|
|
30
|
+
MONTH_LONG: {
|
|
31
|
+
month: "long"
|
|
32
|
+
},
|
|
33
|
+
MONTH_SHORT: {
|
|
34
|
+
month: "short"
|
|
35
|
+
},
|
|
36
|
+
MONTH_SHORT_YEAR: {
|
|
37
|
+
month: "short",
|
|
38
|
+
year: "numeric"
|
|
39
|
+
},
|
|
40
|
+
MONTH_YEAR: {
|
|
41
|
+
month: "long",
|
|
42
|
+
year: "numeric"
|
|
43
|
+
},
|
|
44
|
+
YEAR_MONTH_DAY: {
|
|
45
|
+
day: "2-digit",
|
|
46
|
+
month: "2-digit",
|
|
47
|
+
year: "numeric"
|
|
48
|
+
},
|
|
49
|
+
MONTH_DAY_YEAR: {
|
|
50
|
+
month: "short",
|
|
51
|
+
day: "2-digit",
|
|
52
|
+
year: "numeric"
|
|
53
|
+
},
|
|
54
|
+
MED_MONTH_SHORT_DAY_FULL_YEAR: {
|
|
55
|
+
month: "short",
|
|
56
|
+
day: "numeric",
|
|
57
|
+
year: "numeric"
|
|
58
|
+
}
|
|
59
|
+
}, A = (o, n) => t(new Date(o), Object.assign(n), { locale: _() });
|
|
60
|
+
export {
|
|
61
|
+
O as D,
|
|
62
|
+
m as O,
|
|
63
|
+
a,
|
|
64
|
+
A as f
|
|
65
|
+
};
|
|
@@ -8,7 +8,7 @@ import { nextDay as p } from "date-fns/nextDay";
|
|
|
8
8
|
import { setDate as y } from "date-fns/setDate";
|
|
9
9
|
import { startOfToday as r } from "date-fns/startOfToday";
|
|
10
10
|
import { fromUnixTime as i } from "date-fns/fromUnixTime";
|
|
11
|
-
import { f as D, D as f } from "./
|
|
11
|
+
import { f as D, D as f } from "./DateFormats-Cs-NbEZ7.mjs";
|
|
12
12
|
const A = (e) => {
|
|
13
13
|
const t = x(e);
|
|
14
14
|
let o = p(e, t);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsx as o, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import u from "@mui/material/Dialog";
|
|
3
|
+
import A from "@mui/material/DialogContent";
|
|
4
|
+
import { DialogHeader as P, DialogFooter as b } from "@mxenabled/mxui";
|
|
5
|
+
const $ = ({
|
|
6
|
+
className: e,
|
|
7
|
+
copy: r,
|
|
8
|
+
disablePrimaryButton: l = !1,
|
|
9
|
+
isOpen: t = !1,
|
|
10
|
+
onClose: i,
|
|
11
|
+
onPrimaryAction: n,
|
|
12
|
+
primaryColor: c = "primary",
|
|
13
|
+
primaryText: s = "Confirm",
|
|
14
|
+
onSecondaryAction: a,
|
|
15
|
+
secondaryColor: m = "primary",
|
|
16
|
+
secondaryText: d = "Cancel",
|
|
17
|
+
children: g,
|
|
18
|
+
...p
|
|
19
|
+
}) => {
|
|
20
|
+
const f = r?.title ?? "", D = r?.close_aria ?? "Close", h = () => {
|
|
21
|
+
n?.(), i();
|
|
22
|
+
}, x = () => {
|
|
23
|
+
a && a(), i();
|
|
24
|
+
};
|
|
25
|
+
return /* @__PURE__ */ o("div", { className: `mx-cmn-dialog ${e}`, children: /* @__PURE__ */ y(
|
|
26
|
+
u,
|
|
27
|
+
{
|
|
28
|
+
onClose: i,
|
|
29
|
+
open: t,
|
|
30
|
+
sx: {
|
|
31
|
+
"& .MuiDialog-paperScrollPaper": {
|
|
32
|
+
backgroundColor: "background.default"
|
|
33
|
+
},
|
|
34
|
+
height: "100%"
|
|
35
|
+
},
|
|
36
|
+
...p,
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ o(P, { copy: { title: f, close_aria: D }, onClose: i }),
|
|
39
|
+
/* @__PURE__ */ o(A, { sx: { lineHeight: 1.5 }, children: g }),
|
|
40
|
+
/* @__PURE__ */ o(
|
|
41
|
+
b,
|
|
42
|
+
{
|
|
43
|
+
isPrimaryDisabled: l,
|
|
44
|
+
onPrimaryAction: h,
|
|
45
|
+
onSecondaryAction: x,
|
|
46
|
+
primaryColor: c,
|
|
47
|
+
primaryText: s,
|
|
48
|
+
secondaryColor: m,
|
|
49
|
+
secondaryText: d
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
) });
|
|
55
|
+
}, S = $;
|
|
56
|
+
export {
|
|
57
|
+
S as D
|
|
58
|
+
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { Icon as
|
|
1
|
+
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import s from "@mui/material/Button";
|
|
3
|
+
import i from "@mui/material/Stack";
|
|
4
|
+
import { Icon as x } from "@mxenabled/mx-icons";
|
|
5
5
|
import { Text as c } from "@mxenabled/mxui";
|
|
6
|
-
const
|
|
6
|
+
const y = ({
|
|
7
7
|
icon: p,
|
|
8
8
|
iconColor: m,
|
|
9
9
|
header: l,
|
|
10
10
|
onClick: a,
|
|
11
11
|
primaryButton: e,
|
|
12
|
-
primaryButtonStartIcon:
|
|
12
|
+
primaryButtonStartIcon: n,
|
|
13
13
|
secondaryButton: r,
|
|
14
14
|
subText: d,
|
|
15
|
-
sx: h
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
sx: h,
|
|
16
|
+
variant: f = "buttons"
|
|
17
|
+
}) => /* @__PURE__ */ o(
|
|
18
|
+
i,
|
|
18
19
|
{
|
|
19
20
|
sx: {
|
|
20
21
|
alignItems: "center",
|
|
@@ -24,7 +25,7 @@ const b = ({
|
|
|
24
25
|
...h
|
|
25
26
|
},
|
|
26
27
|
children: [
|
|
27
|
-
/* @__PURE__ */ t(
|
|
28
|
+
/* @__PURE__ */ t(x, { name: p, size: 48, sx: { color: m } }),
|
|
28
29
|
/* @__PURE__ */ t(
|
|
29
30
|
c,
|
|
30
31
|
{
|
|
@@ -45,8 +46,8 @@ const b = ({
|
|
|
45
46
|
children: d
|
|
46
47
|
}
|
|
47
48
|
),
|
|
48
|
-
(e || r) && /* @__PURE__ */
|
|
49
|
-
|
|
49
|
+
f === "buttons" && (e || r) && /* @__PURE__ */ o(
|
|
50
|
+
i,
|
|
50
51
|
{
|
|
51
52
|
className: "buttons-footer",
|
|
52
53
|
sx: {
|
|
@@ -55,17 +56,17 @@ const b = ({
|
|
|
55
56
|
},
|
|
56
57
|
children: [
|
|
57
58
|
e && /* @__PURE__ */ t(
|
|
58
|
-
|
|
59
|
+
s,
|
|
59
60
|
{
|
|
60
61
|
onClick: () => a?.("primary"),
|
|
61
|
-
startIcon:
|
|
62
|
+
startIcon: n ? /* @__PURE__ */ t(x, { name: n }) : void 0,
|
|
62
63
|
sx: { textWrap: "nowrap" },
|
|
63
64
|
variant: "contained",
|
|
64
65
|
children: e
|
|
65
66
|
}
|
|
66
67
|
),
|
|
67
68
|
r && /* @__PURE__ */ t(
|
|
68
|
-
|
|
69
|
+
s,
|
|
69
70
|
{
|
|
70
71
|
onClick: () => a?.("secondary"),
|
|
71
72
|
sx: { textWrap: "nowrap" },
|
|
@@ -80,5 +81,5 @@ const b = ({
|
|
|
80
81
|
}
|
|
81
82
|
);
|
|
82
83
|
export {
|
|
83
|
-
|
|
84
|
+
y as E
|
|
84
85
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
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 "./User-
|
|
4
|
+
import { e as p } from "./exportTransactionsToCSV-DoifE4Fe.mjs";
|
|
5
|
+
import { O as m } from "./User-Cdyam577.mjs";
|
|
6
6
|
import { R as x } from "./ResponsiveButton-DZFp78fJ.mjs";
|
|
7
7
|
import { g as _, h as C, u as l } from "./hooks-BUCn6FeJ.mjs";
|
|
8
8
|
const v = ({ filter: t }) => {
|
|
@@ -23,7 +23,7 @@ import X from "@mui/material/ListItemAvatar";
|
|
|
23
23
|
import V from "@mui/material/ListItemButton";
|
|
24
24
|
import W from "@mui/material/ListItemText";
|
|
25
25
|
import { Text as y } from "@mxenabled/mxui";
|
|
26
|
-
import { f as O, D as _ } from "./
|
|
26
|
+
import { f as O, D as _ } from "./DateFormats-Cs-NbEZ7.mjs";
|
|
27
27
|
import { b as j } from "./Localization-2MODESHW.mjs";
|
|
28
28
|
import { f as q } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
29
29
|
const m = {
|
|
@@ -15,7 +15,7 @@ import { addYears as F } from "date-fns/addYears";
|
|
|
15
15
|
import { getUnixTime as v } from "date-fns/getUnixTime";
|
|
16
16
|
import { b as d } from "./Localization-2MODESHW.mjs";
|
|
17
17
|
import { a as x } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
18
|
-
import { f as K, D as P } from "./
|
|
18
|
+
import { f as K, D as P } from "./DateFormats-Cs-NbEZ7.mjs";
|
|
19
19
|
const rt = ({ description: o, label: t, title: e }) => {
|
|
20
20
|
const [r, a] = E.useState(!1);
|
|
21
21
|
return /* @__PURE__ */ _(E.Fragment, { children: [
|
|
@@ -7,9 +7,9 @@ import I from "@mui/material/ListItemText";
|
|
|
7
7
|
import L from "@mui/material/Stack";
|
|
8
8
|
import { ChevronRight as _ } from "@mxenabled/mx-icons";
|
|
9
9
|
import { Text as m } from "@mxenabled/mxui";
|
|
10
|
-
import {
|
|
10
|
+
import { D as g } from "./Dialog-BqUCsQvo.mjs";
|
|
11
11
|
import { u as j } from "./hooks-BUCn6FeJ.mjs";
|
|
12
|
-
const
|
|
12
|
+
const q = v(
|
|
13
13
|
({
|
|
14
14
|
children: n,
|
|
15
15
|
isDisabled: i = !1,
|
|
@@ -65,5 +65,5 @@ const D = v(
|
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
67
|
export {
|
|
68
|
-
|
|
68
|
+
q as L
|
|
69
69
|
};
|
|
@@ -10,14 +10,14 @@ import se from "@mui/material/ListItem";
|
|
|
10
10
|
import ce from "@mui/material/ListItemAvatar";
|
|
11
11
|
import le from "@mui/material/ListItemButton";
|
|
12
12
|
import de from "@mui/material/ListItemText";
|
|
13
|
-
import { F as d, S as M, D as z, g as $, R as T, e as _e } from "./RepeatingTransaction-
|
|
13
|
+
import { F as d, S as M, D as z, g as $, R as T, e as _e } from "./RepeatingTransaction-CIrVdIet.mjs";
|
|
14
14
|
import { subDays as X } from "date-fns/subDays";
|
|
15
15
|
import { startOfToday as E } from "date-fns/startOfToday";
|
|
16
16
|
import { endOfMonth as ue } from "date-fns/endOfMonth";
|
|
17
17
|
import { parseISO as me } from "date-fns/parseISO";
|
|
18
18
|
import Z from "@mui/material/Button";
|
|
19
19
|
import { Delete as pe, Add as ye, ReceiptLong as he } from "@mxenabled/mx-icons";
|
|
20
|
-
import { T as J, a as
|
|
20
|
+
import { T as J, a as fe, u as ge, S as Ce, b as be } from "./TransactionDetails-BOuk5Sz7.mjs";
|
|
21
21
|
import { addYears as K } from "date-fns/addYears";
|
|
22
22
|
import { getDayOfYear as xe } from "date-fns/getDayOfYear";
|
|
23
23
|
import { setDayOfYear as Se } from "date-fns/setDayOfYear";
|
|
@@ -27,14 +27,15 @@ import { LocalizationProvider as we } from "@mui/x-date-pickers/LocalizationProv
|
|
|
27
27
|
import { u as w, j as Y, g as P, b as Ae, h as V, o as Ie } from "./hooks-BUCn6FeJ.mjs";
|
|
28
28
|
import { b as Re, f as ee } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
29
29
|
import { D as N } from "./Drawer-DV4NTsFg.mjs";
|
|
30
|
-
import { A as L } from "./WidgetContainer-
|
|
31
|
-
import { f as Ee, D as Te
|
|
30
|
+
import { A as L } from "./WidgetContainer-BxDAkXZT.mjs";
|
|
31
|
+
import { f as Ee, D as Te } from "./DateFormats-Cs-NbEZ7.mjs";
|
|
32
|
+
import { D as Le } from "./Dialog-BqUCsQvo.mjs";
|
|
32
33
|
import { formatISO as Oe } from "date-fns/formatISO";
|
|
33
34
|
import { fromUnixTime as ke } from "date-fns/fromUnixTime";
|
|
34
35
|
import { S as Ne } from "./SearchBox-B2_zLv8-.mjs";
|
|
35
|
-
import { h as Me } from "./DateUtil-
|
|
36
|
+
import { h as Me } from "./DateUtil-CVXVMbjf.mjs";
|
|
36
37
|
import { b as B } from "./Category-CevNQ03n.mjs";
|
|
37
|
-
import { T as te } from "./User-
|
|
38
|
+
import { T as te } from "./User-Cdyam577.mjs";
|
|
38
39
|
const ne = ({
|
|
39
40
|
frequency: n,
|
|
40
41
|
firstDay: t,
|
|
@@ -68,7 +69,7 @@ const ne = ({
|
|
|
68
69
|
label: Re(b + 1)
|
|
69
70
|
}));
|
|
70
71
|
h[30].label += ` (${r.last_day_of_month})`;
|
|
71
|
-
const
|
|
72
|
+
const g = h.slice(0, 15), v = h.slice(14), C = n === d.EveryWeek || n === d.EveryOtherWeek, f = n === d.TwiceAMonth || n === d.EveryMonth || n === d.EveryOtherMonth || n === d.EveryQuarter || n === d.EveryOtherQuarter, A = Se(E(), t), y = A < E() ? K(A, 1) : A, D = (b) => {
|
|
72
73
|
b && s(xe(b));
|
|
73
74
|
};
|
|
74
75
|
return /* @__PURE__ */ c(p, { gap: 24, sx: { m: 24 }, children: [
|
|
@@ -90,12 +91,12 @@ const ne = ({
|
|
|
90
91
|
value: t
|
|
91
92
|
}
|
|
92
93
|
),
|
|
93
|
-
|
|
94
|
+
f && /* @__PURE__ */ e(
|
|
94
95
|
M,
|
|
95
96
|
{
|
|
96
97
|
label: n === d.TwiceAMonth ? r.first_day_of_the_month : r.day_of_the_month,
|
|
97
98
|
onChange: s,
|
|
98
|
-
options: n === d.TwiceAMonth ?
|
|
99
|
+
options: n === d.TwiceAMonth ? g : h,
|
|
99
100
|
value: t
|
|
100
101
|
}
|
|
101
102
|
),
|
|
@@ -121,14 +122,14 @@ const ne = ({
|
|
|
121
122
|
) })
|
|
122
123
|
] });
|
|
123
124
|
}, Fe = I(({ repeatingTransaction: n }) => {
|
|
124
|
-
const { recurring: t } = w(), { updateRepeatingTransaction: o } = Y(), { onEvent: i } = P(), [s, l] = _.useState(!1), [r, a] = _.useState(n.recurrence_type), [m, h] = _.useState(n.recurrence_day), [
|
|
125
|
+
const { recurring: t } = w(), { updateRepeatingTransaction: o } = Y(), { onEvent: i } = P(), [s, l] = _.useState(!1), [r, a] = _.useState(n.recurrence_type), [m, h] = _.useState(n.recurrence_day), [g, v] = _.useState(n.second_recurrence_day), C = async () => {
|
|
125
126
|
await o({
|
|
126
127
|
...n,
|
|
127
128
|
recurrence_type: r,
|
|
128
129
|
recurrence_day: m,
|
|
129
|
-
second_recurrence_day:
|
|
130
|
+
second_recurrence_day: g
|
|
130
131
|
}), l(!1);
|
|
131
|
-
},
|
|
132
|
+
}, f = () => {
|
|
132
133
|
l(!0), i(L.RECURRING_TRANSACTIONS_DETAILS_CLICK_PAYMENT_SCHEDULE);
|
|
133
134
|
};
|
|
134
135
|
return /* @__PURE__ */ c(k, { children: [
|
|
@@ -137,7 +138,7 @@ const ne = ({
|
|
|
137
138
|
{
|
|
138
139
|
iconName: "sync",
|
|
139
140
|
label: t.activity_schedule,
|
|
140
|
-
onClick:
|
|
141
|
+
onClick: f,
|
|
141
142
|
value: `${$(t, n, !0)}`
|
|
142
143
|
}
|
|
143
144
|
),
|
|
@@ -157,7 +158,7 @@ const ne = ({
|
|
|
157
158
|
onFirstDayChange: h,
|
|
158
159
|
onFrequencyChange: a,
|
|
159
160
|
onSecondDayChange: v,
|
|
160
|
-
secondDay:
|
|
161
|
+
secondDay: g
|
|
161
162
|
}
|
|
162
163
|
)
|
|
163
164
|
}
|
|
@@ -165,7 +166,7 @@ const ne = ({
|
|
|
165
166
|
] });
|
|
166
167
|
}), Ge = I(
|
|
167
168
|
({ onDeleted: n, recurringTransaction: t }) => {
|
|
168
|
-
const { recurring: o } = w(), { selectedAccountGuids: i } = Ae(), { onEvent: s } = P(), { deleteRepeatingTransaction: l } = Y(), { setFilter: r, transactions: a } = V(), { amount: m, description: h, merchant_guid:
|
|
169
|
+
const { recurring: o } = w(), { selectedAccountGuids: i } = Ae(), { onEvent: s } = P(), { deleteRepeatingTransaction: l } = Y(), { setFilter: r, transactions: a } = V(), { amount: m, description: h, merchant_guid: g } = t, [v, C] = _.useState(!1), [f, A] = _.useState("");
|
|
169
170
|
_.useEffect(() => {
|
|
170
171
|
r({
|
|
171
172
|
accounts: i,
|
|
@@ -174,8 +175,8 @@ const ne = ({
|
|
|
174
175
|
});
|
|
175
176
|
}, [t]);
|
|
176
177
|
const y = _.useMemo(
|
|
177
|
-
() => a.find((u) => u.guid ===
|
|
178
|
-
[
|
|
178
|
+
() => a.find((u) => u.guid === f),
|
|
179
|
+
[f, a]
|
|
179
180
|
), D = t.repeating_transaction_type === T.Income, b = async () => {
|
|
180
181
|
await l(t.guid), n();
|
|
181
182
|
}, U = () => {
|
|
@@ -187,7 +188,7 @@ const ne = ({
|
|
|
187
188
|
Q,
|
|
188
189
|
{
|
|
189
190
|
categoryGuid: y?.category_guid || "",
|
|
190
|
-
merchantGuid:
|
|
191
|
+
merchantGuid: g,
|
|
191
192
|
size: 64,
|
|
192
193
|
sx: { mb: 12 }
|
|
193
194
|
}
|
|
@@ -245,10 +246,10 @@ const ne = ({
|
|
|
245
246
|
N,
|
|
246
247
|
{
|
|
247
248
|
ariaLabelClose: o.close_drawer_aria,
|
|
248
|
-
isOpen: !!
|
|
249
|
+
isOpen: !!f && !!y,
|
|
249
250
|
onClose: () => A(""),
|
|
250
251
|
title: o.transaction_details_drawer_title,
|
|
251
|
-
children: y && /* @__PURE__ */ e(
|
|
252
|
+
children: y && /* @__PURE__ */ e(fe, { transaction: y })
|
|
252
253
|
}
|
|
253
254
|
),
|
|
254
255
|
/* @__PURE__ */ e(
|
|
@@ -354,7 +355,7 @@ const ne = ({
|
|
|
354
355
|
onSearch: o,
|
|
355
356
|
onSelected: i
|
|
356
357
|
}) => {
|
|
357
|
-
const { recurring: s } = w(), { searchValue: l, setSearchValue: r } =
|
|
358
|
+
const { recurring: s } = w(), { searchValue: l, setSearchValue: r } = ge();
|
|
358
359
|
return /* @__PURE__ */ c(p, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
|
|
359
360
|
t && /* @__PURE__ */ e(G, { sx: { mx: 24 }, children: t }),
|
|
360
361
|
/* @__PURE__ */ e(
|
|
@@ -420,18 +421,18 @@ const ne = ({
|
|
|
420
421
|
label: t,
|
|
421
422
|
onAddRecurringTransaction: o = () => null
|
|
422
423
|
}) => {
|
|
423
|
-
const { recurring: i } = w(), { filter: s, setFilter: l, transactions: r } = V(), { addRepeatingTransaction: a } = Y(), { user: m } = Ie(), [h,
|
|
424
|
+
const { recurring: i } = w(), { filter: s, setFilter: l, transactions: r } = V(), { addRepeatingTransaction: a } = Y(), { user: m } = Ie(), [h, g] = _.useState(!1), [v, C] = _.useState(""), [f, A] = _.useState(d.EveryMonth), [y, D] = _.useState(1), [b, U] = _.useState(15), u = _.useMemo(
|
|
424
425
|
() => r.find((x) => x.guid === v),
|
|
425
426
|
[v, r]
|
|
426
427
|
), oe = () => {
|
|
427
|
-
|
|
428
|
+
g(!0), l(n ? { ...s, custom: W } : { ...s, custom: q });
|
|
428
429
|
}, ae = async () => {
|
|
429
430
|
if (!u) {
|
|
430
431
|
j();
|
|
431
432
|
return;
|
|
432
433
|
}
|
|
433
434
|
o();
|
|
434
|
-
const x = _e(
|
|
435
|
+
const x = _e(f, ke(u.date), y), R = {
|
|
435
436
|
account_guid: u.account_guid,
|
|
436
437
|
amount: u.amount,
|
|
437
438
|
created_by: 0,
|
|
@@ -440,7 +441,7 @@ const ne = ({
|
|
|
440
441
|
description: u.payee || u.description || u.feed_description,
|
|
441
442
|
predicted_occurs_on: Oe(x, { representation: "date" }),
|
|
442
443
|
recurrence_day: y,
|
|
443
|
-
recurrence_type:
|
|
444
|
+
recurrence_type: f,
|
|
444
445
|
repeating_transaction_type: n ? T.Income : T.Bill,
|
|
445
446
|
second_recurrence_day: b,
|
|
446
447
|
transaction_type: u.transaction_type,
|
|
@@ -448,7 +449,7 @@ const ne = ({
|
|
|
448
449
|
};
|
|
449
450
|
await a(R, u), j();
|
|
450
451
|
}, j = () => {
|
|
451
|
-
C(""),
|
|
452
|
+
C(""), g(!1);
|
|
452
453
|
};
|
|
453
454
|
return /* @__PURE__ */ c(k, { children: [
|
|
454
455
|
/* @__PURE__ */ e(Z, { onClick: oe, startIcon: /* @__PURE__ */ e(ye, { size: 24 }), variant: "contained", children: t }),
|
|
@@ -457,7 +458,7 @@ const ne = ({
|
|
|
457
458
|
{
|
|
458
459
|
ariaLabelClose: i.close_drawer_aria,
|
|
459
460
|
isOpen: h,
|
|
460
|
-
onClose: () =>
|
|
461
|
+
onClose: () => g(!1),
|
|
461
462
|
title: t,
|
|
462
463
|
children: /* @__PURE__ */ e(
|
|
463
464
|
Pe,
|
|
@@ -486,7 +487,7 @@ const ne = ({
|
|
|
486
487
|
Ue,
|
|
487
488
|
{
|
|
488
489
|
firstDay: y,
|
|
489
|
-
frequency:
|
|
490
|
+
frequency: f,
|
|
490
491
|
onFirstDayChange: D,
|
|
491
492
|
onFrequencyChange: A,
|
|
492
493
|
onSecondDayChange: U,
|
|
@@ -519,7 +520,7 @@ const ne = ({
|
|
|
519
520
|
)
|
|
520
521
|
] });
|
|
521
522
|
}
|
|
522
|
-
),
|
|
523
|
+
), Rt = I(({ forOverview: n = !1 }) => {
|
|
523
524
|
const { recurring: t } = w(), { detailedRepeatingTransactions: o } = Y(), { onEvent: i } = P(), s = (a) => {
|
|
524
525
|
i(L.RECURRING_TRANSACTIONS_CLICK_INCOME, {
|
|
525
526
|
repeating_transaction_guid: a.guid
|
|
@@ -577,7 +578,7 @@ const ne = ({
|
|
|
577
578
|
});
|
|
578
579
|
export {
|
|
579
580
|
re as A,
|
|
580
|
-
|
|
581
|
+
Rt as M,
|
|
581
582
|
Ye as R,
|
|
582
583
|
Pe as S,
|
|
583
584
|
qe as a,
|
|
@@ -18,7 +18,7 @@ import { A as le, T as R, a as D, N as b } from "./Notification-Bs1fdbzI.mjs";
|
|
|
18
18
|
import { u as S, r as T, o as A, d as J, g as re, a as X, b as de } from "./hooks-BUCn6FeJ.mjs";
|
|
19
19
|
import { b as me } from "./Localization-2MODESHW.mjs";
|
|
20
20
|
import { b as _e, f as he } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
21
|
-
import {
|
|
21
|
+
import { D as N } from "./Dialog-BqUCsQvo.mjs";
|
|
22
22
|
import { C as ue } from "./CurrencyInput-DUJ_mlm_.mjs";
|
|
23
23
|
import { u as fe } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
24
24
|
import { D as q } from "./Drawer-DV4NTsFg.mjs";
|
|
@@ -2,7 +2,7 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import _ from "react";
|
|
3
3
|
import { observer as p } from "mobx-react-lite";
|
|
4
4
|
import v from "@mui/material/TextField";
|
|
5
|
-
import { L as y } from "./ListItemAction-
|
|
5
|
+
import { L as y } from "./ListItemAction-CpS4YY0y.mjs";
|
|
6
6
|
import { u as h, l as b } from "./hooks-BUCn6FeJ.mjs";
|
|
7
7
|
import { a as T, f as S } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
8
8
|
import { C as f } from "./CurrencyInput-DUJ_mlm_.mjs";
|
|
@@ -7,10 +7,10 @@ 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-COGmNMz1.mjs";
|
|
11
11
|
import { u as _, j as A, g as f } from "./hooks-BUCn6FeJ.mjs";
|
|
12
|
-
import { R as y, F as N } from "./RepeatingTransaction-
|
|
13
|
-
import { A as m } from "./WidgetContainer-
|
|
12
|
+
import { R as y, F as N } from "./RepeatingTransaction-CIrVdIet.mjs";
|
|
13
|
+
import { A as m } from "./WidgetContainer-BxDAkXZT.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, {
|
package/dist/{RecurringTransactionsStore-B1jZBQLY.mjs → RecurringTransactionsStore-BJrH7BJ7.mjs}
RENAMED
|
@@ -8,7 +8,7 @@ import { startOfMonth as y } from "date-fns/startOfMonth";
|
|
|
8
8
|
import { startOfToday as i } from "date-fns/startOfToday";
|
|
9
9
|
import { subDays as I } from "date-fns/subDays";
|
|
10
10
|
import { F as x, A as o } from "./Fetch-DecPFeGU.mjs";
|
|
11
|
-
import { a as u, b as A, c as r, d } from "./RepeatingTransaction-
|
|
11
|
+
import { a as u, b as A, c as r, d } from "./RepeatingTransaction-CIrVdIet.mjs";
|
|
12
12
|
var E = /* @__PURE__ */ ((a) => (a.Small = "small", a.Medium = "medium", a.Large = "large", a))(E || {});
|
|
13
13
|
const G = 44;
|
|
14
14
|
class h {
|
|
@@ -30,10 +30,10 @@ import { subDays as _ } from "date-fns/subDays";
|
|
|
30
30
|
import { subMonths as R } from "date-fns/subMonths";
|
|
31
31
|
import { subQuarters as N } from "date-fns/subQuarters";
|
|
32
32
|
import { subYears as q } from "date-fns/subYears";
|
|
33
|
-
import { g as ee, a as te, b as re, c as oe, d as ae, e as se, f as ne } from "./DateUtil-
|
|
33
|
+
import { g as ee, a as te, b as re, c as oe, d as ae, e as se, f as ne } from "./DateUtil-CVXVMbjf.mjs";
|
|
34
34
|
import { b as W } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
35
|
-
import { f as k, D as E } from "./Dialog-CwiqpTGe.mjs";
|
|
36
35
|
import { b as l } from "./Localization-2MODESHW.mjs";
|
|
36
|
+
import { f as k, D as E } from "./DateFormats-Cs-NbEZ7.mjs";
|
|
37
37
|
const ce = ({ iconName: e, label: s, onClick: r, value: a }) => {
|
|
38
38
|
const t = /* @__PURE__ */ M(P, { children: [
|
|
39
39
|
/* @__PURE__ */ d(U, { children: /* @__PURE__ */ d(L, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ d(I, { name: e, sx: { color: "text.primary" }, weight: C.Dark }) }) }),
|
|
@@ -4,7 +4,7 @@ import { startOfMonth as _ } from "date-fns/startOfMonth";
|
|
|
4
4
|
import { subMonths as y } from "date-fns/subMonths";
|
|
5
5
|
import { endOfMonth as M } from "date-fns/endOfMonth";
|
|
6
6
|
import { b as a, P as l } from "./Category-CevNQ03n.mjs";
|
|
7
|
-
import { f as m, D as T } from "./
|
|
7
|
+
import { f as m, D as T } from "./DateFormats-Cs-NbEZ7.mjs";
|
|
8
8
|
const i = (e) => (e.top_level_category_guid === a.INCOME || e.category_guid === a.INCOME) && !h(e), C = (e) => !i(e) && !f(e), p = (e) => l.includes(e.top_level_category_guid) || l.includes(e.category_guid), f = (e) => e.top_level_category_guid === a.TRANSFER || e.category_guid === a.TRANSFER, h = (e) => e.top_level_category_guid === a.INVESTMENTS || e.category_guid === a.INVESTMENTS, N = (e) => !i(e) && !p(e) && !f(e) && !h(e), w = (e) => e.filter((r) => r.category_guid === r.top_level_category_guid), F = (e, r) => {
|
|
9
9
|
if (r === 0) return 0;
|
|
10
10
|
const o = (e - r) / r;
|