@mx-cartographer/experiences 7.0.11-alpha.al0 → 7.0.11-alpha.mega1
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-D_kRKI6x.mjs → Account-BW3-oYEs.mjs} +1 -1
- package/dist/{AccountDetailsContent-Dfja2v8K.mjs → AccountDetailsContent-Tm7IjJIc.mjs} +16 -16
- package/dist/{AccountDetailsHeader-nc5mqlHm.mjs → AccountDetailsHeader-sum_Bgdy.mjs} +5 -5
- package/dist/{AccountFields-DeebSePp.mjs → AccountFields-CIz-r3gP.mjs} +2 -2
- package/dist/{AccountListItem-dh03tivj.mjs → AccountListItem-B-ZjJ4Gp.mjs} +3 -3
- package/dist/{AccountStore-Cp7xWX8n.mjs → AccountStore-BaMynkQT.mjs} +11 -11
- package/dist/{Accounts-DppzmFak.mjs → Accounts-CA-nqAjT.mjs} +1 -1
- package/dist/{BeatApi-D0WcLW3O.mjs → BeatApi-DLu87ijw.mjs} +3 -3
- package/dist/{BeatStore-y6WVs07e.mjs → BeatStore-By4aGoRM.mjs} +17 -17
- package/dist/{BudgetUtil-DmWvHV7C.mjs → BudgetUtil-CeSLAcsl.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-uTU7Nwn2.mjs → CategorySelectorDrawer-BPvjZ-Xo.mjs} +1 -1
- package/dist/{CategoryStore-BfYppD3g.mjs → CategoryStore-BOyzQjQp.mjs} +4 -4
- package/dist/{ConnectDrawer-BfYwIgKa.mjs → ConnectDrawer-phFH6OHt.mjs} +5 -5
- package/dist/{ConnectionsDrawer-BKG07Loi.mjs → ConnectionsDrawer-ihxkAi1P.mjs} +2 -2
- package/dist/{CurrencyInput-BtrNBP3z.mjs → CurrencyInput-bEx2Mbd0.mjs} +1 -1
- package/dist/{DebtsStore-BR1o55kk.mjs → DebtsStore-Dp-CraCD.mjs} +1 -1
- package/dist/{ExportCsvAction-BH369hls.mjs → ExportCsvAction-CbMfQ2Wa.mjs} +3 -3
- package/dist/{Fetch-CJ9cgjgV.mjs → Fetch-CkFKy79O.mjs} +8 -9
- package/dist/{FinstrongStore-rC2F4Tq3.mjs → FinstrongStore-mkALvztw.mjs} +4 -4
- package/dist/{GoalStore-rZKi2YjE.mjs → GoalStore-BWHkOQ8o.mjs} +21 -21
- package/dist/{Help-t24Ldz-O.mjs → Help-B3oENhkG.mjs} +1 -1
- package/dist/{LineChart-CfEEnHUy.mjs → LineChart-BWWmmJxV.mjs} +204 -183
- package/dist/{ListItemAction-Cwadpg85.mjs → ListItemAction-DNZZ5fSa.mjs} +1 -1
- package/dist/{ManageIncome-xksS_sWM.mjs → ManageIncome-Bef4VWt7.mjs} +4 -4
- package/dist/MerchantStore-DVH-QOf0.mjs +37 -0
- package/dist/{MicroWidgetContainer-DwTAjSdX.mjs → MicroWidgetContainer-Dxz8uBN9.mjs} +1 -1
- package/dist/{MiniWidgetContainer-CxggrnHk.mjs → MiniWidgetContainer-CTyjmE1h.mjs} +1 -1
- package/dist/{NetWorthStore-5qSDIglU.mjs → NetWorthStore-B6xF9eGH.mjs} +2 -2
- package/dist/{NotificationSettings-Cny7J1hO.mjs → NotificationSettings-uXVwpIa1.mjs} +2 -2
- package/dist/{NotificationStore-DpV9hXSE.mjs → NotificationStore-DHtSGySy.mjs} +4 -8
- package/dist/{OriginalBalanceAction-DDMRgIBU.mjs → OriginalBalanceAction-DepsKiJz.mjs} +3 -3
- package/dist/{RecurringSettings-DXQ64A8U.mjs → RecurringSettings-1EOh67IT.mjs} +3 -3
- package/dist/{RecurringTransactionsStore-CXhnipfd.mjs → RecurringTransactionsStore-D62XJtdL.mjs} +16 -20
- package/dist/{SettingsStore-CLLqNa_S.mjs → SettingsStore-B4gi6oOw.mjs} +29 -33
- package/dist/{TransactionApi-C0HMGDBV.mjs → TransactionApi-DbbcjI2L.mjs} +29 -29
- package/dist/TransactionDetails-DYF-P762.mjs +1337 -0
- package/dist/{TransactionStore-Cu_KM_J9.mjs → TransactionStore-0tLtBEIC.mjs} +25 -29
- package/dist/TrendsStore-WrHxzdbQ.mjs +565 -0
- package/dist/{Transaction-CXMMfhz-.mjs → User-Dq9Qj764.mjs} +48 -46
- package/dist/{ViewMoreMicroCard-DJoNOqkD.mjs → ViewMoreMicroCard-BZI5VMNW.mjs} +2 -5
- package/dist/{WidgetContainer-QcfqagZD.mjs → WidgetContainer-C2NBfpDg.mjs} +2 -2
- package/dist/accounts/api/AccountApi.d.ts +2 -2
- package/dist/accounts/index.es.js +17 -17
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/api/BudgetsApi.d.ts +2 -2
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/api/CashflowApi.d.ts +2 -3
- package/dist/cashflow/index.es.js +10 -10
- package/dist/categories/index.es.js +2 -2
- package/dist/common/api/AnalyticsApi.d.ts +2 -2
- package/dist/common/api/AppDataApi.d.ts +2 -2
- package/dist/common/api/BeatApi.d.ts +2 -2
- package/dist/common/api/CategoryApi.d.ts +3 -2
- package/dist/common/api/GlobalCopyApi.d.ts +1 -2
- package/dist/common/api/LocalizedCopyApi.d.ts +1 -2
- package/dist/common/api/NotificationApi.d.ts +2 -2
- package/dist/common/api/ScheduledPaymentsApi.d.ts +2 -3
- package/dist/common/api/UserApi.d.ts +2 -2
- package/dist/common/context/GlobalDataProvider.d.ts +2 -3
- package/dist/common/context/hooks.d.ts +1 -4
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/index.es.js +315 -321
- package/dist/common/stores/GlobalStore.d.ts +1 -2
- package/dist/common/types/index.d.ts +0 -1
- package/dist/common/utils/Fetch.d.ts +1 -3
- package/dist/dashboard/index.es.js +7 -7
- package/dist/debts/index.es.js +197 -180
- package/dist/{exportTransactionsToCSV-DpP_a1g8.mjs → exportTransactionsToCSV-BDlt8u0n.mjs} +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +1 -2
- package/dist/finstrong/index.es.js +7 -7
- package/dist/goals/api/GoalApi.d.ts +2 -3
- package/dist/goals/index.es.js +11 -11
- package/dist/help/api/HelpApi.d.ts +2 -2
- package/dist/help/index.es.js +3 -3
- package/dist/hooks-DkUqN6JE.mjs +71 -0
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/api/HoldingApi.d.ts +2 -3
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/api/MerchantApi.d.ts +1 -2
- package/dist/merchants/index.es.js +2 -2
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -2
- package/dist/microinsights/context/hooks.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +7 -7
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -2
- package/dist/recurringtransactions/index.es.js +10 -10
- package/dist/settings/api/SettingsApi.d.ts +2 -3
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/api/TransactionApi.d.ts +2 -3
- 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 +10 -10
- package/dist/{useCombineEvents-Dbjzfwvo.mjs → useCombineEvents-DaDBSR_1.mjs} +29 -29
- package/package.json +1 -1
- package/dist/MerchantStore-h96aTml7.mjs +0 -37
- package/dist/TransactionDetails-v77agHHP.mjs +0 -1280
- package/dist/TrendsStore-B4Q-iLX0.mjs +0 -547
- package/dist/common/types/Handlers.d.ts +0 -2
- package/dist/hooks-DcS6DyRl.mjs +0 -74
|
@@ -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
|
@@ -7,12 +7,12 @@ import b from "@mui/material/Stack";
|
|
|
7
7
|
import ge from "@mui/material/Button";
|
|
8
8
|
import { addSeconds as De } from "date-fns/addSeconds";
|
|
9
9
|
import { differenceInCalendarMonths as pe } from "date-fns/differenceInCalendarMonths";
|
|
10
|
-
import { a as ze, g as Fe, S as Pe, L as Ie, u as Ke } from "../TrendsStore-
|
|
11
|
-
import { T as Zn } from "../TrendsStore-
|
|
10
|
+
import { a as ze, g as Fe, S as Pe, L as Ie, u as Ke } from "../TrendsStore-WrHxzdbQ.mjs";
|
|
11
|
+
import { T as Zn } from "../TrendsStore-WrHxzdbQ.mjs";
|
|
12
12
|
import { i as $e, c as je, d as Ye, e as Ue, f as Xe, h as Ze, b as Ee, g as Le, j as ye } from "../SpendingData-D5vsfYKo.mjs";
|
|
13
13
|
import Qe from "@mui/material/ToggleButton";
|
|
14
14
|
import qe from "@mui/material/ToggleButtonGroup";
|
|
15
|
-
import { u as k, k as F, e as N, a as P, f as ne, c as oe, v as J, l as xe, p as Je } from "../hooks-
|
|
15
|
+
import { u as k, k as F, e as N, a as P, f as ne, c as oe, v as J, l as xe, p as Je } from "../hooks-DkUqN6JE.mjs";
|
|
16
16
|
import { u as K } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
17
17
|
import { f as Q, D as z } from "../Dialog-CWW597AF.mjs";
|
|
18
18
|
import { DataGridPro as et } from "@mui/x-data-grid-pro";
|
|
@@ -20,18 +20,18 @@ import { C as tt } from "../CurrencyText-YUhH2caW.mjs";
|
|
|
20
20
|
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
|
-
import { T as R, b as ot } from "../ViewMoreMicroCard-
|
|
24
|
-
import { A as _, W as Me } from "../WidgetContainer-
|
|
25
|
-
import { a as Ae, T as Re } from "../TransactionDetails-
|
|
23
|
+
import { T as R, b as ot } from "../ViewMoreMicroCard-BZI5VMNW.mjs";
|
|
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";
|
|
29
|
-
import { L as Te } from "../LineChart-
|
|
30
|
-
import { M as st } from "../MiniWidgetContainer-
|
|
29
|
+
import { L as Te } from "../LineChart-BWWmmJxV.mjs";
|
|
30
|
+
import { M as st } from "../MiniWidgetContainer-CTyjmE1h.mjs";
|
|
31
31
|
import { subMonths as rt } from "date-fns";
|
|
32
32
|
import { TrendingUp as at, TrendingDown as it, MultilineChart as ct, ExpandLess as lt, ExpandMore as dt } from "@mxenabled/mx-icons";
|
|
33
33
|
import { a as ht, f as X } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
34
|
-
import { M as ut } from "../MicroWidgetContainer-
|
|
34
|
+
import { M as ut } from "../MicroWidgetContainer-Dxz8uBN9.mjs";
|
|
35
35
|
import mt from "@mui/material/Collapse";
|
|
36
36
|
import gt from "@mui/material/List";
|
|
37
37
|
import pt from "@mui/material/ListItem";
|
|
@@ -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,
|