@mx-cartographer/experiences 7.0.11 → 7.0.13
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/{Account-BVKkr6ft.mjs → Account-BW3-oYEs.mjs} +1 -1
- package/dist/{AccountDetailsContent-BmQ5a3Lk.mjs → AccountDetailsContent-Tm7IjJIc.mjs} +14 -14
- package/dist/{AccountDetailsHeader-vSwO-5Wk.mjs → AccountDetailsHeader-sum_Bgdy.mjs} +3 -3
- package/dist/{AccountFields-VRK4zgvW.mjs → AccountFields-CIz-r3gP.mjs} +2 -2
- package/dist/{AccountListItem-SkBUCsb0.mjs → AccountListItem-B-ZjJ4Gp.mjs} +2 -2
- package/dist/{AccountStore-3Umlm7QY.mjs → AccountStore-BaMynkQT.mjs} +9 -9
- package/dist/{Accounts-CYsoAdW-.mjs → Accounts-CA-nqAjT.mjs} +1 -1
- package/dist/{ConnectDrawer-BA9H_xx8.mjs → ConnectDrawer-phFH6OHt.mjs} +4 -4
- package/dist/{ConnectionsDrawer-Bs-NUsAs.mjs → ConnectionsDrawer-ihxkAi1P.mjs} +1 -1
- package/dist/{DebtsStore-BwmpJMik.mjs → DebtsStore-Dp-CraCD.mjs} +1 -1
- package/dist/{ExportCsvAction-CvyiKLTh.mjs → ExportCsvAction-CbMfQ2Wa.mjs} +2 -2
- package/dist/{GoalStore-BH5TWxYr.mjs → GoalStore-DJp7YL_M.mjs} +52 -51
- package/dist/{ManageIncome-DCUX6T2b.mjs → ManageIncome-Bef4VWt7.mjs} +3 -3
- package/dist/{NetWorthStore-NKD8a-19.mjs → NetWorthStore-B6xF9eGH.mjs} +2 -2
- package/dist/{RecurringSettings-BD_CIXnV.mjs → RecurringSettings-1EOh67IT.mjs} +2 -2
- package/dist/TransactionDetails-DYF-P762.mjs +1337 -0
- package/dist/{TransactionStore-BVKUoEHj.mjs → TransactionStore-0tLtBEIC.mjs} +2 -2
- package/dist/{Transaction-Dns0Kuuy.mjs → User-Dq9Qj764.mjs} +47 -45
- package/dist/{WidgetContainer-BHhhVctF.mjs → WidgetContainer-C2NBfpDg.mjs} +1 -1
- package/dist/accounts/index.es.js +15 -15
- package/dist/budgets/index.es.js +5 -5
- package/dist/cashflow/index.es.js +5 -5
- package/dist/common/index.es.js +12 -12
- package/dist/dashboard/index.es.js +6 -6
- package/dist/debts/index.es.js +5 -5
- package/dist/{exportTransactionsToCSV-B4JW8rfR.mjs → exportTransactionsToCSV-BDlt8u0n.mjs} +1 -1
- package/dist/finstrong/index.es.js +4 -4
- package/dist/goals/index.es.js +6 -6
- package/dist/help/index.es.js +1 -1
- package/dist/investments/index.es.js +2 -2
- package/dist/networth/index.es.js +4 -4
- package/dist/recurringtransactions/index.es.js +5 -5
- package/dist/settings/index.es.js +1 -1
- package/dist/spending/index.es.js +2 -2
- package/dist/transactions/components/shared/transactiondetails/Description.d.ts +1 -0
- package/dist/transactions/components/shared/transactiondetails/TransactionDetailsView.d.ts +8 -0
- package/dist/transactions/index.es.js +121 -120
- package/dist/trends/index.es.js +3 -3
- package/package.json +1 -1
- package/dist/TransactionDetails-DFDYdDae.mjs +0 -1280
|
@@ -19,15 +19,15 @@ import { i as ne } from "../DateUtil-BcuH7ErC.mjs";
|
|
|
19
19
|
import { C as y } from "../CurrencyText-YUhH2caW.mjs";
|
|
20
20
|
import { Button as Te, Stack as Le } from "@mui/material";
|
|
21
21
|
import { format as Ne, fromUnixTime as De, differenceInMonths as Ee } from "date-fns";
|
|
22
|
-
import { g as K } from "../NetWorthStore-
|
|
23
|
-
import { N as Ot } from "../NetWorthStore-
|
|
22
|
+
import { g as K } from "../NetWorthStore-B6xF9eGH.mjs";
|
|
23
|
+
import { N as Ot } from "../NetWorthStore-B6xF9eGH.mjs";
|
|
24
24
|
import { Icon as oe } from "@mxenabled/mx-icons";
|
|
25
25
|
import { f as U } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
26
|
-
import { A as b, W as ke } from "../WidgetContainer-
|
|
26
|
+
import { A as b, W as ke } from "../WidgetContainer-C2NBfpDg.mjs";
|
|
27
27
|
import { L as O } from "../Loader-Dp1P2gNw.mjs";
|
|
28
28
|
import { M as Ae } from "../MicroWidgetContainer-Dxz8uBN9.mjs";
|
|
29
29
|
import re from "@mui/material/Box";
|
|
30
|
-
import { C as Me } from "../ConnectionsDrawer-
|
|
30
|
+
import { C as Me } from "../ConnectionsDrawer-ihxkAi1P.mjs";
|
|
31
31
|
import He from "@mui/material/Collapse";
|
|
32
32
|
import V from "@mui/material/ListItemIcon";
|
|
33
33
|
import ie from "@mui/material/styles/useTheme";
|
|
@@ -8,8 +8,8 @@ import { startOfToday as le } from "date-fns/startOfToday";
|
|
|
8
8
|
import { subDays as de } from "date-fns/subDays";
|
|
9
9
|
import re from "@mui/material/Skeleton";
|
|
10
10
|
import c from "@mui/material/Stack";
|
|
11
|
-
import { R as He } from "../RecurringSettings-
|
|
12
|
-
import { M as An } from "../RecurringSettings-
|
|
11
|
+
import { R as He } from "../RecurringSettings-1EOh67IT.mjs";
|
|
12
|
+
import { M as An } from "../RecurringSettings-1EOh67IT.mjs";
|
|
13
13
|
import { addMonths as ze } from "date-fns/addMonths";
|
|
14
14
|
import { subMonths as Be } from "date-fns/subMonths";
|
|
15
15
|
import { isBefore as Ue } from "date-fns/isBefore";
|
|
@@ -32,7 +32,7 @@ import { u as D, a as V, h as v, e as X, c as pe, f as ge, p as rt } from "../ho
|
|
|
32
32
|
import { c as M, a as R, g as De, f as ot } from "../RepeatingTransaction-BW4J-jeJ.mjs";
|
|
33
33
|
import { T as P } from "../RecurringTransactionsStore-D62XJtdL.mjs";
|
|
34
34
|
import { R as Gn } from "../RecurringTransactionsStore-D62XJtdL.mjs";
|
|
35
|
-
import { A as _, W as at } from "../WidgetContainer-
|
|
35
|
+
import { A as _, W as at } from "../WidgetContainer-C2NBfpDg.mjs";
|
|
36
36
|
import st from "@mui/material/Button";
|
|
37
37
|
import se from "@mui/material/Divider";
|
|
38
38
|
import Se from "@mui/material/List";
|
|
@@ -41,8 +41,8 @@ import ct from "@mui/material/ListSubheader";
|
|
|
41
41
|
import lt from "@mui/material/ListItemAvatar";
|
|
42
42
|
import dt from "@mui/material/ListItemButton";
|
|
43
43
|
import ut from "@mui/material/ListItemText";
|
|
44
|
-
import { b as mt } from "../ManageIncome-
|
|
45
|
-
import { c as On, M as kn, S as Wn } from "../ManageIncome-
|
|
44
|
+
import { b as mt } from "../ManageIncome-Bef4VWt7.mjs";
|
|
45
|
+
import { c as On, M as kn, S as Wn } from "../ManageIncome-Bef4VWt7.mjs";
|
|
46
46
|
import { f as L } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
47
47
|
import { D as Ae } from "../Drawer-kEE73B87.mjs";
|
|
48
48
|
import { b as N } from "../Localization-2MODESHW.mjs";
|
|
@@ -42,7 +42,7 @@ import Me from "@mui/material/ListItemIcon";
|
|
|
42
42
|
import Ne from "@mui/material/ListItemText";
|
|
43
43
|
import { D as He } from "../Drawer-kEE73B87.mjs";
|
|
44
44
|
import { H as Le } from "../Help-B3oENhkG.mjs";
|
|
45
|
-
import { W as K } from "../WidgetContainer-
|
|
45
|
+
import { W as K } from "../WidgetContainer-C2NBfpDg.mjs";
|
|
46
46
|
const Oe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
47
47
|
const o = ye(), { common: n, settings: r } = k(), { isDesktop: m, isMobile: l, isSmallMobile: i, isTablet: s } = L(t), { config: g } = $(), { updateUser: _ } = A(), { user: d } = De(), [u, S] = h.useState({
|
|
48
48
|
first_name: d.first_name,
|
|
@@ -20,14 +20,14 @@ import { D as bt } from "../Donut-1UMNcG67.mjs";
|
|
|
20
20
|
import { L as F } from "../Loader-Dp1P2gNw.mjs";
|
|
21
21
|
import { M as St } from "../MiniWidgetContainer-CTyjmE1h.mjs";
|
|
22
22
|
import { startOfToday as U } from "date-fns/startOfToday";
|
|
23
|
-
import { T as Tt, a as Mt } from "../TransactionDetails-
|
|
23
|
+
import { T as Tt, a as Mt } from "../TransactionDetails-DYF-P762.mjs";
|
|
24
24
|
import Dt from "@mui/material/Collapse";
|
|
25
25
|
import B from "@mui/material/Divider";
|
|
26
26
|
import q from "@mui/material/List";
|
|
27
27
|
import J from "@mui/material/ListItem";
|
|
28
28
|
import xt from "@mui/material/ListItemButton";
|
|
29
29
|
import { D as Q } from "../Drawer-kEE73B87.mjs";
|
|
30
|
-
import { A as Z, W as wt } from "../WidgetContainer-
|
|
30
|
+
import { A as Z, W as wt } from "../WidgetContainer-C2NBfpDg.mjs";
|
|
31
31
|
const j = 5, vt = (n, l, r) => r.reduce((i, c) => {
|
|
32
32
|
if (c.total > 0) {
|
|
33
33
|
const a = n.find((s) => s.guid === c.category_guid);
|
|
@@ -2,6 +2,7 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { Transaction } from '../../../../common';
|
|
3
3
|
interface DescriptionProps {
|
|
4
4
|
transaction: Transaction;
|
|
5
|
+
viewOnly?: boolean;
|
|
5
6
|
}
|
|
6
7
|
declare const _default: React.FunctionComponent<DescriptionProps>;
|
|
7
8
|
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Transaction } from '../../../../common';
|
|
2
|
+
interface TransactionDetailsViewProps {
|
|
3
|
+
transaction: Transaction;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: (({ transaction }: TransactionDetailsViewProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { T as
|
|
2
|
-
import { u as B, C as
|
|
3
|
-
import { B as
|
|
4
|
-
import { T as M } from "../
|
|
5
|
-
import { O as
|
|
6
|
-
import { S as ee, D as
|
|
7
|
-
import { T as
|
|
8
|
-
import { e as
|
|
9
|
-
import { E as
|
|
1
|
+
import { T as fa } from "../TransactionApi-DbbcjI2L.mjs";
|
|
2
|
+
import { u as B, C as Re, D as He, M as Be, c as Pe, T as $e, a as Ve } from "../TransactionDetails-DYF-P762.mjs";
|
|
3
|
+
import { B as ya, d as ba, b as Ta } from "../TransactionDetails-DYF-P762.mjs";
|
|
4
|
+
import { T as M } from "../User-Dq9Qj764.mjs";
|
|
5
|
+
import { O as Sa } from "../User-Dq9Qj764.mjs";
|
|
6
|
+
import { S as ee, D as We } from "../TransactionStore-0tLtBEIC.mjs";
|
|
7
|
+
import { T as wa } from "../TransactionStore-0tLtBEIC.mjs";
|
|
8
|
+
import { e as Ge } from "../exportTransactionsToCSV-BDlt8u0n.mjs";
|
|
9
|
+
import { E as va } from "../ExportCsvAction-CbMfQ2Wa.mjs";
|
|
10
10
|
import { jsxs as _, jsx as e } from "react/jsx-runtime";
|
|
11
11
|
import u from "react";
|
|
12
12
|
import { observer as S } from "mobx-react-lite";
|
|
13
|
-
import
|
|
14
|
-
import { DataGridPro as
|
|
13
|
+
import Ue from "@mui/material/Paper";
|
|
14
|
+
import { DataGridPro as Fe } from "@mui/x-data-grid-pro";
|
|
15
15
|
import A from "@mui/material/Box";
|
|
16
|
-
import { useTheme as
|
|
17
|
-
import { Text as C, Icon as H, MerchantLogo as
|
|
18
|
-
import { f as P, u as x, a as K, c as re, k as
|
|
19
|
-
import { fromUnixTime as
|
|
20
|
-
import { f as
|
|
16
|
+
import { useTheme as ze } from "@mui/material/styles";
|
|
17
|
+
import { Text as C, Icon as H, MerchantLogo as Ke, TextField as te, P as qe } from "@mxenabled/mxui";
|
|
18
|
+
import { f as P, u as x, a as K, c as re, k as je, m as Xe, e as Ye, o as Je } from "../hooks-DkUqN6JE.mjs";
|
|
19
|
+
import { fromUnixTime as Qe } from "date-fns/fromUnixTime";
|
|
20
|
+
import { f as Ze, D as et, a as se } from "../Dialog-CWW597AF.mjs";
|
|
21
21
|
import N from "@mui/material/Stack";
|
|
22
22
|
import { f as ie } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
23
23
|
import { L as q } from "../Loader-Dp1P2gNw.mjs";
|
|
24
|
-
import { endOfMonth as
|
|
25
|
-
import { getUnixTime as
|
|
26
|
-
import { startOfMonth as
|
|
24
|
+
import { endOfMonth as tt } from "date-fns/endOfMonth";
|
|
25
|
+
import { getUnixTime as at } from "date-fns/getUnixTime";
|
|
26
|
+
import { startOfMonth as nt } from "date-fns/startOfMonth";
|
|
27
27
|
import { startOfToday as z } from "date-fns/startOfToday";
|
|
28
|
-
import
|
|
29
|
-
import {
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import { ExpandMore as
|
|
34
|
-
import { C as
|
|
35
|
-
import { a as
|
|
28
|
+
import ot from "@mui/material/styles/useTheme";
|
|
29
|
+
import { j as rt } from "../ConnectDrawer-phFH6OHt.mjs";
|
|
30
|
+
import st from "@mui/material/Divider";
|
|
31
|
+
import it from "@mui/material/MenuItem";
|
|
32
|
+
import ct from "@mui/material/RadioGroup";
|
|
33
|
+
import { ExpandMore as lt } from "@mxenabled/mx-icons";
|
|
34
|
+
import { C as dt } from "../CurrencyInput-bEx2Mbd0.mjs";
|
|
35
|
+
import { a as ut, u as mt } from "../CategorySelectorDrawer-BPvjZ-Xo.mjs";
|
|
36
36
|
import { b as ae } from "../Localization-2MODESHW.mjs";
|
|
37
|
-
import { A as T, W as
|
|
38
|
-
import { u as
|
|
39
|
-
import { S as
|
|
37
|
+
import { A as T, W as _t } from "../WidgetContainer-C2NBfpDg.mjs";
|
|
38
|
+
import { u as pt } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
39
|
+
import { S as gt } from "../SearchBox-B2_zLv8-.mjs";
|
|
40
40
|
import { D as ne } from "../Drawer-kEE73B87.mjs";
|
|
41
|
-
const
|
|
41
|
+
const ht = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small", children: [
|
|
42
42
|
`${t.row.account}`,
|
|
43
43
|
t.row.number && ` | ${t.row.number}`
|
|
44
|
-
] }),
|
|
44
|
+
] }), ft = (t) => {
|
|
45
45
|
const { associatedBeats: r } = P(), { showInsights: n } = B(), { amount: a, transaction_type: i } = t.row, l = r.find((h) => h.associated_transaction_guid === t.row.guid), d = i === M.CREDIT;
|
|
46
46
|
return /* @__PURE__ */ _(N, { alignItems: "flex-end", tabIndex: t.tabIndex, children: [
|
|
47
47
|
/* @__PURE__ */ _(C, { color: d ? "success.main" : "text.primary", variant: "Small", children: [
|
|
@@ -50,7 +50,7 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
50
50
|
] }),
|
|
51
51
|
l && n && /* @__PURE__ */ e(C, { bold: !0, color: "primary.light", variant: "XSmall", children: l.short_title })
|
|
52
52
|
] });
|
|
53
|
-
},
|
|
53
|
+
}, Ct = (t) => {
|
|
54
54
|
const { transactions: r } = x(), [n, a] = u.useState(!1);
|
|
55
55
|
return /* @__PURE__ */ _(
|
|
56
56
|
N,
|
|
@@ -69,8 +69,8 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
69
69
|
]
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
|
-
},
|
|
73
|
-
const r =
|
|
72
|
+
}, yt = S(Ct), bt = (t) => /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: Ze(Qe(t.row.date), et.MONTH_DAY) }), Tt = (t) => {
|
|
73
|
+
const r = ze(), { transactions: n } = x(), { is_flagged: a, is_hidden: i, has_been_viewed: l, parent_guid: d } = t.row, f = !l && !!!d;
|
|
74
74
|
return /* @__PURE__ */ _(
|
|
75
75
|
A,
|
|
76
76
|
{
|
|
@@ -97,16 +97,16 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
97
97
|
]
|
|
98
98
|
}
|
|
99
99
|
);
|
|
100
|
-
},
|
|
100
|
+
}, At = S(Tt), E = (t) => /* @__PURE__ */ e(C, { fontWeight: 600, variant: "Small", children: t.colDef.headerName }), St = (t) => /* @__PURE__ */ _(N, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
101
101
|
/* @__PURE__ */ e(
|
|
102
|
-
|
|
102
|
+
Ke,
|
|
103
103
|
{
|
|
104
104
|
categoryGuid: t.row.top_level_category_guid || "",
|
|
105
105
|
merchantGuid: t.row.merchant_guid || ""
|
|
106
106
|
}
|
|
107
107
|
),
|
|
108
108
|
/* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: t.row.payee })
|
|
109
|
-
] }),
|
|
109
|
+
] }), xt = ({
|
|
110
110
|
height: t = "100dvh",
|
|
111
111
|
onCategoryClick: r,
|
|
112
112
|
onRowClick: n
|
|
@@ -130,7 +130,7 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
130
130
|
minWidth: 32,
|
|
131
131
|
width: 32,
|
|
132
132
|
sortable: !1,
|
|
133
|
-
renderCell: (s) => /* @__PURE__ */ e(
|
|
133
|
+
renderCell: (s) => /* @__PURE__ */ e(At, { ...s }),
|
|
134
134
|
renderHeader: () => /* @__PURE__ */ e("span", { "aria-label": a.transaction_status, role: "presentation" })
|
|
135
135
|
},
|
|
136
136
|
{
|
|
@@ -138,7 +138,7 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
138
138
|
headerName: a.date_title,
|
|
139
139
|
width: 103,
|
|
140
140
|
renderHeader: E,
|
|
141
|
-
renderCell: (s) => s.row.parent_guid ? null : /* @__PURE__ */ e(
|
|
141
|
+
renderCell: (s) => s.row.parent_guid ? null : /* @__PURE__ */ e(bt, { ...s }),
|
|
142
142
|
sortingOrder: ["desc", "asc"]
|
|
143
143
|
},
|
|
144
144
|
{
|
|
@@ -147,7 +147,7 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
147
147
|
headerName: a.payee_title,
|
|
148
148
|
flex: 0.33,
|
|
149
149
|
renderHeader: E,
|
|
150
|
-
renderCell:
|
|
150
|
+
renderCell: St,
|
|
151
151
|
sortingOrder: ["asc", "desc"]
|
|
152
152
|
},
|
|
153
153
|
{
|
|
@@ -155,7 +155,7 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
155
155
|
headerName: a.category_title,
|
|
156
156
|
flex: 0.25,
|
|
157
157
|
renderHeader: E,
|
|
158
|
-
renderCell: (s) => /* @__PURE__ */ e(
|
|
158
|
+
renderCell: (s) => /* @__PURE__ */ e(yt, { ...s }),
|
|
159
159
|
sortingOrder: ["asc", "desc"]
|
|
160
160
|
},
|
|
161
161
|
{
|
|
@@ -163,7 +163,7 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
163
163
|
headerName: a.account_title,
|
|
164
164
|
flex: 0.33,
|
|
165
165
|
renderHeader: E,
|
|
166
|
-
renderCell: (s) => s.row.parent_guid ? null : /* @__PURE__ */ e(
|
|
166
|
+
renderCell: (s) => s.row.parent_guid ? null : /* @__PURE__ */ e(ht, { ...s }),
|
|
167
167
|
sortingOrder: ["asc", "desc"]
|
|
168
168
|
},
|
|
169
169
|
{
|
|
@@ -171,14 +171,14 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
171
171
|
headerName: a.amount_title,
|
|
172
172
|
flex: 0.25,
|
|
173
173
|
renderHeader: E,
|
|
174
|
-
renderCell:
|
|
174
|
+
renderCell: ft,
|
|
175
175
|
align: "right",
|
|
176
176
|
headerAlign: "right",
|
|
177
177
|
sortingOrder: ["asc", "desc"]
|
|
178
178
|
}
|
|
179
179
|
];
|
|
180
|
-
return /* @__PURE__ */ e(
|
|
181
|
-
|
|
180
|
+
return /* @__PURE__ */ e(Ue, { sx: { height: t, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ e(
|
|
181
|
+
Fe,
|
|
182
182
|
{
|
|
183
183
|
columns: g,
|
|
184
184
|
disableColumnFilter: !0,
|
|
@@ -197,7 +197,7 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
) });
|
|
200
|
-
},
|
|
200
|
+
}, wt = S(xt), It = ({ copy: t, isOpen: r, onClose: n, onPrimaryAction: a }) => {
|
|
201
201
|
const { common: i, transactions: l } = x(), { isCopyLoaded: d } = K();
|
|
202
202
|
return d ? /* @__PURE__ */ _(
|
|
203
203
|
se,
|
|
@@ -216,7 +216,7 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
216
216
|
]
|
|
217
217
|
}
|
|
218
218
|
) : /* @__PURE__ */ e(q, {});
|
|
219
|
-
},
|
|
219
|
+
}, vt = S(It), Dt = () => {
|
|
220
220
|
const { visibleAccounts: t } = re(), { common: r, transactions: n } = x(), { manualTransaction: a, setIsAmountValid: i, updateManualTransaction: l } = B(), [d, h] = u.useState(""), [f, m] = u.useState(""), p = u.useMemo(
|
|
221
221
|
() => t.filter((o) => o.is_manual),
|
|
222
222
|
[t]
|
|
@@ -246,7 +246,7 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
246
246
|
sx: { flexDirection: { xs: "column", sm: "row" }, gap: { xs: 40, sm: 8 } },
|
|
247
247
|
children: [
|
|
248
248
|
/* @__PURE__ */ e(
|
|
249
|
-
|
|
249
|
+
dt,
|
|
250
250
|
{
|
|
251
251
|
allowDecimals: !0,
|
|
252
252
|
amount: d,
|
|
@@ -262,7 +262,7 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
262
262
|
type: "number"
|
|
263
263
|
}
|
|
264
264
|
),
|
|
265
|
-
/* @__PURE__ */ e(
|
|
265
|
+
/* @__PURE__ */ e(ct, { name: "TransactionType", onChange: w, row: !0, children: /* @__PURE__ */ _(N, { alignItems: "center", direction: "row", children: [
|
|
266
266
|
/* @__PURE__ */ e(
|
|
267
267
|
ee,
|
|
268
268
|
{
|
|
@@ -300,26 +300,26 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
300
300
|
te,
|
|
301
301
|
{
|
|
302
302
|
InputLabelProps: { shrink: !0 },
|
|
303
|
-
SelectProps: { defaultValue: -1, IconComponent:
|
|
303
|
+
SelectProps: { defaultValue: -1, IconComponent: lt },
|
|
304
304
|
label: n.manual_transaction_select_an_account,
|
|
305
305
|
onChange: (o) => I(o.target.value),
|
|
306
306
|
placeholder: n.manual_transaction_select,
|
|
307
307
|
select: !0,
|
|
308
308
|
sx: { bgcolor: "background.paper" },
|
|
309
|
-
children: p.map((o) => /* @__PURE__ */ e(
|
|
309
|
+
children: p.map((o) => /* @__PURE__ */ e(it, { value: o.value, children: o.label }, o.value))
|
|
310
310
|
}
|
|
311
311
|
)
|
|
312
312
|
] }),
|
|
313
|
-
/* @__PURE__ */ e(
|
|
313
|
+
/* @__PURE__ */ e(st, { light: !0 }),
|
|
314
314
|
/* @__PURE__ */ _(A, { bgcolor: "background.paper", children: [
|
|
315
|
-
/* @__PURE__ */ e(Le, { transaction: a }),
|
|
316
315
|
/* @__PURE__ */ e(Re, { transaction: a }),
|
|
317
316
|
/* @__PURE__ */ e(He, { transaction: a }),
|
|
318
|
-
/* @__PURE__ */ e(Be, { transaction: a })
|
|
317
|
+
/* @__PURE__ */ e(Be, { transaction: a }),
|
|
318
|
+
/* @__PURE__ */ e(Pe, { transaction: a })
|
|
319
319
|
] })
|
|
320
320
|
] });
|
|
321
|
-
},
|
|
322
|
-
const { addOrUpdateTransactionRule: n, updateTransaction: a } = P(), { transactions: i } = x(), { categories: l } =
|
|
321
|
+
}, Nt = S(Dt), Ot = ({ onClose: t, transaction: r }) => {
|
|
322
|
+
const { addOrUpdateTransactionRule: n, updateTransaction: a } = P(), { transactions: i } = x(), { categories: l } = je(), [d, h] = u.useState(""), f = u.useMemo(
|
|
323
323
|
() => l.find((p) => p.guid === d),
|
|
324
324
|
[d]
|
|
325
325
|
), m = async (p) => {
|
|
@@ -327,7 +327,7 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
327
327
|
};
|
|
328
328
|
return /* @__PURE__ */ _(A, { className: "mx-txn-edit-category-action", children: [
|
|
329
329
|
/* @__PURE__ */ e(
|
|
330
|
-
|
|
330
|
+
ut,
|
|
331
331
|
{
|
|
332
332
|
initialSelected: r.category_guid,
|
|
333
333
|
onClose: t,
|
|
@@ -351,7 +351,7 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
351
351
|
onSecondaryAction: () => m(!1),
|
|
352
352
|
primaryText: i.actions_apply_to_all,
|
|
353
353
|
secondaryText: i.actions_this_time_only,
|
|
354
|
-
children: /* @__PURE__ */ e(
|
|
354
|
+
children: /* @__PURE__ */ e(qe, { variant: "Paragraph", children: ae(
|
|
355
355
|
i.actions_all_past_and_future,
|
|
356
356
|
r.description,
|
|
357
357
|
f?.name
|
|
@@ -359,20 +359,20 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
359
359
|
}
|
|
360
360
|
)
|
|
361
361
|
] });
|
|
362
|
-
},
|
|
362
|
+
}, Et = S(Ot), oe = 120, Mt = ({
|
|
363
363
|
onBackClick: t,
|
|
364
364
|
height: r = "100dvh",
|
|
365
365
|
showInsights: n = !1,
|
|
366
366
|
sx: a = {}
|
|
367
367
|
}) => {
|
|
368
|
-
const { visibleAccounts: i, refreshAccounts: l } = re(), { is_mobile_webview: d, clientConfig: h } =
|
|
368
|
+
const { visibleAccounts: i, refreshAccounts: l } = re(), { is_mobile_webview: d, clientConfig: h } = Xe(), { setSearchValue: f } = mt(), { onEvent: m } = Ye(), { common: p, transactions: g } = x(), {
|
|
369
369
|
displayedDateRange: s,
|
|
370
370
|
isCopyLoaded: w,
|
|
371
371
|
isInitialized: O,
|
|
372
372
|
selectedAccountGuids: I,
|
|
373
373
|
setDisplayedDate: o,
|
|
374
374
|
setSelectedAccounts: $
|
|
375
|
-
} = K(), { isDesktop: ce, isTablet: le } =
|
|
375
|
+
} = K(), { isDesktop: ce, isTablet: le } = pt(), k = ot(), {
|
|
376
376
|
addTransaction: de,
|
|
377
377
|
filter: j,
|
|
378
378
|
loadAssociatedBeats: ue,
|
|
@@ -382,20 +382,21 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
382
382
|
transactions: pe,
|
|
383
383
|
updateTransaction: ge
|
|
384
384
|
} = P(), {
|
|
385
|
+
clearExpandedSplits: he,
|
|
386
|
+
isAmountValid: fe,
|
|
385
387
|
manualTransaction: L,
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
} = B(), { userProfile: Te } = Ye(), [W, y] = u.useState(""), [X, R] = u.useState(""), [Ae, G] = u.useState(!1), [Se, Y] = u.useState(!1), [U, xe] = u.useState(!1), v = h?.transactions?.selected_account_guid;
|
|
388
|
+
searchValue: Ce,
|
|
389
|
+
setSearchValue: ye,
|
|
390
|
+
setShowInsights: be,
|
|
391
|
+
updateManualTransaction: Te
|
|
392
|
+
} = B(), { userProfile: Ae } = Je(), [W, y] = u.useState(""), [X, R] = u.useState(""), [Se, G] = u.useState(!1), [xe, Y] = u.useState(!1), [U, we] = u.useState(!1), v = h?.transactions?.selected_account_guid;
|
|
392
393
|
u.useEffect(() => {
|
|
393
|
-
const c = v ? [{ guid: v }] : i.filter((D) => !D.is_hidden), Q =
|
|
394
|
+
const c = v ? [{ guid: v }] : i.filter((D) => !D.is_hidden), Q = nt(z()), Z = tt(z());
|
|
394
395
|
v || $(c), o(Q, Z), V({
|
|
395
396
|
accounts: c.map((D) => D.guid),
|
|
396
397
|
custom: (D) => !D.accountIsClosed && !D.accountIsHidden,
|
|
397
398
|
dateRange: { start: Q, end: Z }
|
|
398
|
-
}),
|
|
399
|
+
}), we(!0), m(T.TRANSACTIONS_VIEW);
|
|
399
400
|
}, [i]), u.useEffect(() => {
|
|
400
401
|
U && (V({
|
|
401
402
|
...j,
|
|
@@ -403,36 +404,36 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
403
404
|
dateRange: { start: s.start, end: s.end }
|
|
404
405
|
}), ue(s.start).finally());
|
|
405
406
|
}, [U, s, I]), u.useEffect(() => {
|
|
406
|
-
|
|
407
|
+
be(n);
|
|
407
408
|
}, [n]);
|
|
408
|
-
const
|
|
409
|
+
const Ie = u.useMemo(
|
|
409
410
|
() => i.filter((c) => c.is_manual),
|
|
410
411
|
[i]
|
|
411
|
-
), b = X ? pe.find((c) => c.guid === X) : void 0, J =
|
|
412
|
-
o(c[0], c[1]);
|
|
413
|
-
},
|
|
414
|
-
|
|
412
|
+
), b = X ? pe.find((c) => c.guid === X) : void 0, J = fe && !!L.payee && !!L.account_guid && !!L.category_guid, ve = (c) => {
|
|
413
|
+
he(), o(c[0], c[1]);
|
|
414
|
+
}, De = (c) => {
|
|
415
|
+
ye(c), V({
|
|
415
416
|
...j,
|
|
416
417
|
searchTerm: c
|
|
417
418
|
}), m(T.TRANSACTIONS_CLICK_SEARCH, { search_term: c });
|
|
418
|
-
}, De = () => {
|
|
419
|
-
We(me, _e), m(T.TRANSACTIONS_CLICK_EXPORT);
|
|
420
419
|
}, Ne = () => {
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
420
|
+
Ge(me, _e), m(T.TRANSACTIONS_CLICK_EXPORT);
|
|
421
|
+
}, Oe = () => {
|
|
422
|
+
Ie.length > 0 ? (Te({
|
|
423
|
+
...We,
|
|
424
|
+
date: at(z()),
|
|
425
|
+
user_guid: Ae?.user_guid || ""
|
|
425
426
|
}), y(
|
|
426
427
|
"addTransaction"
|
|
427
428
|
/* AddTransaction */
|
|
428
429
|
), m(T.TRANSACTIONS_CLICK_ADD)) : (G(!0), m(T.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
|
429
|
-
},
|
|
430
|
+
}, Ee = async () => {
|
|
430
431
|
J && await de(L), y("");
|
|
431
|
-
},
|
|
432
|
+
}, Me = () => {
|
|
432
433
|
G(!1), Y(!0);
|
|
433
|
-
}, Me = async () => {
|
|
434
|
-
Y(!1), await l();
|
|
435
434
|
}, ke = async () => {
|
|
435
|
+
Y(!1), await l();
|
|
436
|
+
}, Le = async () => {
|
|
436
437
|
b && !b.has_been_viewed && await ge({ ...b, has_been_viewed: !0 }), y("");
|
|
437
438
|
};
|
|
438
439
|
if (!w || !O || !U)
|
|
@@ -441,18 +442,18 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
441
442
|
return !d && (ce || le) && F.push({
|
|
442
443
|
iconName: "open_in_new",
|
|
443
444
|
label: g.export_csv_btn,
|
|
444
|
-
onClick:
|
|
445
|
+
onClick: Ne
|
|
445
446
|
}), F.push({
|
|
446
447
|
iconName: "add",
|
|
447
448
|
label: g.add_transaction_btn,
|
|
448
|
-
onClick:
|
|
449
|
+
onClick: Oe
|
|
449
450
|
}), /* @__PURE__ */ _(
|
|
450
|
-
|
|
451
|
+
_t,
|
|
451
452
|
{
|
|
452
453
|
...!v && { accountOptions: i },
|
|
453
454
|
actions: F,
|
|
454
455
|
calendarActions: {
|
|
455
|
-
onRangeChanged:
|
|
456
|
+
onRangeChanged: ve
|
|
456
457
|
},
|
|
457
458
|
onAccountsFilterClick: () => m(T.ACCOUNTS_CLICK_FILTER),
|
|
458
459
|
onBackClick: t,
|
|
@@ -460,11 +461,11 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
460
461
|
title: g.transactions_title,
|
|
461
462
|
children: [
|
|
462
463
|
/* @__PURE__ */ e(A, { mt: 16, children: /* @__PURE__ */ e(
|
|
463
|
-
|
|
464
|
+
gt,
|
|
464
465
|
{
|
|
465
|
-
onChange:
|
|
466
|
+
onChange: De,
|
|
466
467
|
placeholder: g.action_bar_search_placeholder,
|
|
467
|
-
searchValue:
|
|
468
|
+
searchValue: Ce
|
|
468
469
|
}
|
|
469
470
|
) }),
|
|
470
471
|
/* @__PURE__ */ e(
|
|
@@ -475,7 +476,7 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
475
476
|
[k.breakpoints.up("md")]: { display: "block" }
|
|
476
477
|
},
|
|
477
478
|
children: /* @__PURE__ */ e(
|
|
478
|
-
|
|
479
|
+
wt,
|
|
479
480
|
{
|
|
480
481
|
height: `calc(${r} - ${oe}px)`,
|
|
481
482
|
onCategoryClick: (c) => {
|
|
@@ -502,7 +503,7 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
502
503
|
[k.breakpoints.up("md")]: { display: "none" }
|
|
503
504
|
},
|
|
504
505
|
children: /* @__PURE__ */ e(
|
|
505
|
-
|
|
506
|
+
$e,
|
|
506
507
|
{
|
|
507
508
|
height: `calc(${r} - ${oe}px)`,
|
|
508
509
|
onClick: (c) => {
|
|
@@ -522,13 +523,13 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
522
523
|
{
|
|
523
524
|
ariaLabelClose: p.close_aria,
|
|
524
525
|
isOpen: W === "transaction" && !!b,
|
|
525
|
-
onClose:
|
|
526
|
+
onClose: Le,
|
|
526
527
|
title: g.details_title,
|
|
527
|
-
children: b && /* @__PURE__ */ e(
|
|
528
|
+
children: b && /* @__PURE__ */ e(Ve, { transaction: b })
|
|
528
529
|
}
|
|
529
530
|
),
|
|
530
531
|
b && W === "category" && /* @__PURE__ */ e(
|
|
531
|
-
|
|
532
|
+
Et,
|
|
532
533
|
{
|
|
533
534
|
onClose: () => {
|
|
534
535
|
f(""), y(""), R("");
|
|
@@ -543,47 +544,47 @@ const gt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
543
544
|
isOpen: W === "addTransaction",
|
|
544
545
|
isPrimaryDisabled: !J,
|
|
545
546
|
onClose: () => y(""),
|
|
546
|
-
onPrimaryAction:
|
|
547
|
+
onPrimaryAction: Ee,
|
|
547
548
|
title: g.add_transaction_title,
|
|
548
|
-
children: /* @__PURE__ */ e(
|
|
549
|
+
children: /* @__PURE__ */ e(Nt, {})
|
|
549
550
|
}
|
|
550
551
|
),
|
|
551
552
|
/* @__PURE__ */ e(
|
|
552
|
-
|
|
553
|
+
vt,
|
|
553
554
|
{
|
|
554
555
|
copy: { title: g.add_manual_account },
|
|
555
|
-
isOpen:
|
|
556
|
+
isOpen: Se,
|
|
556
557
|
onClose: () => {
|
|
557
558
|
G(!1);
|
|
558
559
|
},
|
|
559
|
-
onPrimaryAction:
|
|
560
|
+
onPrimaryAction: Me
|
|
560
561
|
}
|
|
561
562
|
),
|
|
562
563
|
/* @__PURE__ */ e(
|
|
563
|
-
|
|
564
|
+
rt,
|
|
564
565
|
{
|
|
565
|
-
onClose:
|
|
566
|
-
showConnectWidget:
|
|
566
|
+
onClose: ke,
|
|
567
|
+
showConnectWidget: xe,
|
|
567
568
|
title: g.add_manual_account
|
|
568
569
|
}
|
|
569
570
|
)
|
|
570
571
|
]
|
|
571
572
|
}
|
|
572
573
|
);
|
|
573
|
-
},
|
|
574
|
+
}, pa = S(Mt);
|
|
574
575
|
export {
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
576
|
+
vt as AddAccountModal,
|
|
577
|
+
ya as BottomActions,
|
|
578
|
+
va as ExportCsvAction,
|
|
579
|
+
Sa as TRANSACTION_EVENTS,
|
|
580
|
+
ba as TopActions,
|
|
581
|
+
fa as TransactionApi,
|
|
582
|
+
Ve as TransactionDetails,
|
|
583
|
+
$e as TransactionList,
|
|
584
|
+
Ta as TransactionRow,
|
|
585
|
+
wa as TransactionStore,
|
|
586
|
+
wt as TransactionTable,
|
|
587
|
+
pa as TransactionWidget,
|
|
588
|
+
Ge as exportTransactionsToCSV,
|
|
588
589
|
B as useTransactionsUiStore
|
|
589
590
|
};
|
package/dist/trends/index.es.js
CHANGED
|
@@ -21,8 +21,8 @@ import { c as ve } from "../Category-CevNQ03n.mjs";
|
|
|
21
21
|
import { b as nt } from "../Localization-2MODESHW.mjs";
|
|
22
22
|
import { H as _e } from "../HeaderCell-DjuifqHJ.mjs";
|
|
23
23
|
import { T as R, b as ot } from "../ViewMoreMicroCard-BZI5VMNW.mjs";
|
|
24
|
-
import { A as _, W as Me } from "../WidgetContainer-
|
|
25
|
-
import { a as Ae, T as Re } from "../TransactionDetails-
|
|
24
|
+
import { A as _, W as Me } from "../WidgetContainer-C2NBfpDg.mjs";
|
|
25
|
+
import { a as Ae, T as Re } from "../TransactionDetails-DYF-P762.mjs";
|
|
26
26
|
import { D as Ce } from "../Drawer-kEE73B87.mjs";
|
|
27
27
|
import { L as q } from "../Loader-Dp1P2gNw.mjs";
|
|
28
28
|
import { useTheme as ke } from "@mui/material/styles";
|
|
@@ -43,7 +43,7 @@ import yt from "@mui/material/Divider";
|
|
|
43
43
|
import { useTheme as _t, Stack as bt } from "@mui/material";
|
|
44
44
|
import St from "@mui/material/Paper";
|
|
45
45
|
import { b as wt } from "../CategoryUtil-BR3H5i6n.mjs";
|
|
46
|
-
import { E as Dt } from "../ExportCsvAction-
|
|
46
|
+
import { E as Dt } from "../ExportCsvAction-CbMfQ2Wa.mjs";
|
|
47
47
|
import { E as It } from "../EmptyState-Dcb-o2tl.mjs";
|
|
48
48
|
const Ne = ({ selectedTab: n, onTabChange: o }) => /* @__PURE__ */ e(
|
|
49
49
|
qe,
|