@mx-cartographer/experiences 7.4.6-alpha.mm2 → 7.4.7-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 +12 -0
- package/dist/{Account-BQE_ANvF.mjs → Account-01wOyrH1.mjs} +1 -1
- package/dist/{AccountDetailsContent-C6LkHJuy.mjs → AccountDetailsContent-COMjOzwr.mjs} +8 -8
- package/dist/{AccountDetailsHeader-CCkHHK_n.mjs → AccountDetailsHeader-Cbi5G6fJ.mjs} +4 -4
- package/dist/{AccountFields-DdOw6d6w.mjs → AccountFields-Cd_nOWmf.mjs} +2 -2
- package/dist/{AccountListItem-CZhCiU7q.mjs → AccountListItem-DxY4cCF1.mjs} +4 -4
- package/dist/{AccountStore-kxFbaz-K.mjs → AccountStore-C1zMBzHq.mjs} +2 -2
- package/dist/{Accounts-D_768tYo.mjs → Accounts-D7QljYas.mjs} +1 -1
- package/dist/{BudgetUtil-C5fTz_GJ.mjs → BudgetUtil-Df2nII9u.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-l3tOyiqD.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +1 -1
- package/dist/{ConnectDrawer-g2IXvoSS.mjs → ConnectDrawer-CuUj16NH.mjs} +1 -1
- package/dist/{ConnectionsDrawer-vSEOHrUC.mjs → ConnectionsDrawer-Bz4uwdFE.mjs} +6 -6
- package/dist/{CurrencyInput-BnaVaZBU.mjs → CurrencyInput-BFKcs-_K.mjs} +6 -6
- package/dist/{DebtsStore-CFk9t-Ky.mjs → DebtsStore-Bu8rRRSL.mjs} +1 -1
- package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
- package/dist/{ExportCsvAction-DSi2a4NQ.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
- package/dist/{GoalStore-DxFUJRd4.mjs → GoalStore-CrNhjvNc.mjs} +2 -2
- package/dist/{Help-D1I72J-F.mjs → Help-BnPXM_N2.mjs} +1 -1
- package/dist/{LineChart-B7MftxPX.mjs → LineChart-bc1D9xBE.mjs} +1 -1
- package/dist/{ListItemAction-Dob72eoG.mjs → ListItemAction-uobBrm_a.mjs} +10 -10
- package/dist/{ManageIncome-DlAUFShc.mjs → ManageIncome-A69EUO5u.mjs} +4 -4
- package/dist/{MicroWidgetContainer-4zS7jJrn.mjs → MicroWidgetContainer-DEiRnYVa.mjs} +1 -1
- package/dist/{MiniWidgetContainer-Csioy5P7.mjs → MiniWidgetContainer-CmXpTylX.mjs} +1 -1
- package/dist/{NetWorthStore-B6sG1eiD.mjs → NetWorthStore-CpL_kqvx.mjs} +2 -2
- package/dist/{NotificationSettings-ByORHzRI.mjs → NotificationSettings-CNmJWVeI.mjs} +3 -3
- package/dist/{OriginalBalanceAction-BmSYWwSx.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +3 -3
- package/dist/{RecurringSettings-CZvd4Wuv.mjs → RecurringSettings-B0uObPlD.mjs} +12 -12
- package/dist/{SpendingLegend-CbNAMdPH.mjs → SpendingLegend-Bf-wbJvb.mjs} +11 -11
- package/dist/{TransactionDetails-DnLXfvDL.mjs → TransactionDetails-COH0OKNG.mjs} +5 -5
- package/dist/{TransactionStore-BOiv_pDO.mjs → TransactionStore-Dz-G8Wd0.mjs} +2 -2
- package/dist/{User-BmdvAL7I.mjs → User-wXzDI4M8.mjs} +1 -1
- package/dist/{WidgetContainer-DR_iRKNU.mjs → WidgetContainer-6dsjtOVg.mjs} +2 -2
- package/dist/accounts/index.es.js +119 -121
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/index.es.js +8 -8
- package/dist/categories/index.es.js +1 -1
- package/dist/common/components/charts/index.d.ts +0 -1
- package/dist/common/hooks/index.d.ts +0 -1
- package/dist/common/index.es.js +96 -100
- package/dist/dashboard/index.es.js +88 -90
- package/dist/debts/index.es.js +9 -9
- package/dist/{exportTransactionsToCSV-DoKUltKJ.mjs → exportTransactionsToCSV-Cz2t0lmA.mjs} +1 -1
- package/dist/finstrong/index.es.js +10 -10
- package/dist/goals/index.es.js +251 -249
- package/dist/help/index.es.js +5 -5
- package/dist/{hooks-DtrRa6Lb.mjs → hooks-C41HAxM5.mjs} +10 -10
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +1 -1
- package/dist/networth/index.es.js +173 -173
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +8 -8
- package/dist/settings/index.es.js +6 -6
- package/dist/spending/index.es.js +7 -7
- package/dist/spending/utils/SpendingData.d.ts +2 -1
- package/dist/transactions/index.es.js +13 -13
- package/dist/trends/index.es.js +171 -170
- package/dist/useAccountDisplayName-CMMlIOXF.mjs +15 -0
- package/dist/{useInsightsEnabled-v_GGt72p.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
- package/package.json +1 -1
- package/dist/common/hooks/useWidgetLoadTimer.d.ts +0 -24
- package/dist/useAccountDisplayName-BUtYhbqe.mjs +0 -15
- package/dist/useWidgetLoadTimer-CY26D0n1.mjs +0 -23
|
@@ -3,13 +3,13 @@ import { b as p } from "./Category-CevNQ03n.mjs";
|
|
|
3
3
|
import { jsxs as y, Fragment as v, jsx as c } from "react/jsx-runtime";
|
|
4
4
|
import x from "react";
|
|
5
5
|
import { observer as w } from "mobx-react-lite";
|
|
6
|
+
import M from "@mui/material/Button";
|
|
6
7
|
import f from "@mui/material/Stack";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { a as $ } from "./hooks-DtrRa6Lb.mjs";
|
|
8
|
+
import { useTheme as N } from "@mui/material/styles";
|
|
9
|
+
import { CategoryIcon as k, CategoryIconVariants as A, Text as h } from "@mxenabled/mxui";
|
|
10
|
+
import { D as G } from "./Donut-Dmy3JTWd.mjs";
|
|
11
|
+
import { u as O } from "./TransactionDetails-COH0OKNG.mjs";
|
|
12
|
+
import { u as $ } from "./hooks-C41HAxM5.mjs";
|
|
13
13
|
import { u as j } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
14
14
|
import { f as D } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
15
15
|
import R from "@mui/material/Box";
|
|
@@ -99,7 +99,7 @@ const T = 5, B = (i, l, g, d) => d.reduce((o, n) => {
|
|
|
99
99
|
totalLabel: a,
|
|
100
100
|
variant: t = "mini"
|
|
101
101
|
}) => {
|
|
102
|
-
const { spending: r } = $(), m =
|
|
102
|
+
const { spending: r } = $(), m = N(), { isTablet: e } = j(), { announce: s, ariaLive: C } = O(), u = x.useMemo(
|
|
103
103
|
() => o ? i.categoryData.find((b) => b.guid === o) : void 0,
|
|
104
104
|
[o]
|
|
105
105
|
);
|
|
@@ -114,7 +114,7 @@ const T = 5, B = (i, l, g, d) => d.reduce((o, n) => {
|
|
|
114
114
|
}, I = e ? 32 : 48;
|
|
115
115
|
return /* @__PURE__ */ y(v, { children: [
|
|
116
116
|
C,
|
|
117
|
-
/* @__PURE__ */ c(
|
|
117
|
+
/* @__PURE__ */ c(G, { data: S, onClick: g, selectedId: o, size: n, children: /* @__PURE__ */ c(f, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ y(f, { alignItems: "center", justifyContent: "center", minHeight: n, minWidth: n, children: [
|
|
118
118
|
u && /* @__PURE__ */ y(
|
|
119
119
|
f,
|
|
120
120
|
{
|
|
@@ -125,11 +125,11 @@ const T = 5, B = (i, l, g, d) => d.reduce((o, n) => {
|
|
|
125
125
|
sx: t === "mini" ? { gap: 0, mb: 0 } : { gap: { xs: 4, xl: 8 }, mb: { xs: 4, xl: 8 } },
|
|
126
126
|
children: [
|
|
127
127
|
/* @__PURE__ */ c(
|
|
128
|
-
|
|
128
|
+
k,
|
|
129
129
|
{
|
|
130
130
|
categoryGuid: l ? p.INCOME : u.guid,
|
|
131
131
|
size: t === "mini" ? 24 : I,
|
|
132
|
-
variant:
|
|
132
|
+
variant: A.Transparent
|
|
133
133
|
}
|
|
134
134
|
),
|
|
135
135
|
/* @__PURE__ */ c(
|
|
@@ -148,7 +148,7 @@ const T = 5, B = (i, l, g, d) => d.reduce((o, n) => {
|
|
|
148
148
|
/* @__PURE__ */ c(h, { variant: t === "mini" ? "H2" : "H1", children: u ? D(u.amount, "0,0") : D(i.totalAmount, "0,0") }),
|
|
149
149
|
!u && t === "mini" && /* @__PURE__ */ c(h, { color: "secondary", noWrap: !0, variant: "Tiny", children: a }),
|
|
150
150
|
t === "full" && /* @__PURE__ */ c(
|
|
151
|
-
|
|
151
|
+
M,
|
|
152
152
|
{
|
|
153
153
|
"aria-label": `View ${u?.name || ""} Transactions`,
|
|
154
154
|
disabled: i.categoryData.length === 0,
|
|
@@ -9,15 +9,15 @@ import { MerchantLogo as ge, Icon as C, Text as h, useTokens as te, CategoryIcon
|
|
|
9
9
|
import $ from "@mui/material/ListItemAvatar";
|
|
10
10
|
import M from "@mui/material/ListItemText";
|
|
11
11
|
import b from "@mui/material/Stack";
|
|
12
|
-
import { T as Pe, L as Ge, O as g, C as Me, b as Ke, i as $e } from "./User-
|
|
13
|
-
import { G as Be, h as w,
|
|
12
|
+
import { T as Pe, L as Ge, O as g, C as Me, b as Ke, i as $e } from "./User-wXzDI4M8.mjs";
|
|
13
|
+
import { G as Be, h as w, u as N, g as O, m as xe, b as Fe, p as He } from "./hooks-C41HAxM5.mjs";
|
|
14
14
|
import { f as ae } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
15
15
|
import { Receipt as ze, Delete as ie, ChevronRight as Ue, Cancel as se, Search as Xe, Edit as Ve, Flag as We } from "@mxenabled/mx-icons";
|
|
16
16
|
import { fromUnixTime as Y } from "date-fns/fromUnixTime";
|
|
17
17
|
import { isSameDay as Ne } from "date-fns/isSameDay";
|
|
18
18
|
import { h as Ye } from "./DateUtil-CBdcsyuk.mjs";
|
|
19
19
|
import { L as Ie } from "./Loader-DUaFpDGv.mjs";
|
|
20
|
-
import { A as P } from "./WidgetContainer-
|
|
20
|
+
import { A as P } from "./WidgetContainer-6dsjtOVg.mjs";
|
|
21
21
|
import re from "@mui/material/Paper";
|
|
22
22
|
import de from "@mui/material/Button";
|
|
23
23
|
import je from "@mui/material/FormGroup";
|
|
@@ -30,14 +30,14 @@ import B from "@mui/material/ListItem";
|
|
|
30
30
|
import { D as W, f as we, a as Ee } from "./Dialog-BPTr3qHE.mjs";
|
|
31
31
|
import U from "@mui/material/ListItemButton";
|
|
32
32
|
import X from "@mui/material/ListItemIcon";
|
|
33
|
-
import { a as Oe } from "./CategorySelectorDrawer-
|
|
33
|
+
import { a as Oe } from "./CategorySelectorDrawer-DqJK_rrL.mjs";
|
|
34
34
|
import { b as le } from "./Localization-2MODESHW.mjs";
|
|
35
35
|
import { getUnixTime as Ze } from "date-fns/getUnixTime";
|
|
36
36
|
import { D as ue } from "./Drawer-BEtCk82g.mjs";
|
|
37
37
|
import ye from "@mui/material/InputAdornment";
|
|
38
38
|
import Je from "@mui/material/Checkbox";
|
|
39
39
|
import pe from "@mui/material/Grid";
|
|
40
|
-
import { C as Qe } from "./CurrencyInput-
|
|
40
|
+
import { C as Qe } from "./CurrencyInput-BFKcs-_K.mjs";
|
|
41
41
|
import et from "@mui/material/Switch";
|
|
42
42
|
var Z = /* @__PURE__ */ ((t) => (t[t.Category = 0] = "Category", t[t.Date = 1] = "Date", t[t.Memo = 2] = "Memo", t[t.Tags = 3] = "Tags", t))(Z || {}), oe = /* @__PURE__ */ ((t) => (t[t.SplitTransaction = 0] = "SplitTransaction", t[t.HideTransaction = 1] = "HideTransaction", t[t.MerchantLogo = 2] = "MerchantLogo", t))(oe || {});
|
|
43
43
|
const tt = [
|
|
@@ -13,10 +13,10 @@ import { isBefore as Y } from "date-fns/isBefore";
|
|
|
13
13
|
import { startOfMonth as R } from "date-fns/startOfMonth";
|
|
14
14
|
import { startOfToday as b } from "date-fns/startOfToday";
|
|
15
15
|
import { subDays as F } from "date-fns/subDays";
|
|
16
|
-
import { O as n, a as G, T as w } from "./User-
|
|
16
|
+
import { O as n, a as G, T as w } from "./User-wXzDI4M8.mjs";
|
|
17
17
|
import { T as p } from "./TransactionApi-CjBoLleL.mjs";
|
|
18
18
|
import { b as W } from "./Category-CevNQ03n.mjs";
|
|
19
|
-
import { f as z } from "./exportTransactionsToCSV-
|
|
19
|
+
import { f as z } from "./exportTransactionsToCSV-Cz2t0lmA.mjs";
|
|
20
20
|
import { format as k } from "date-fns/format";
|
|
21
21
|
import { f as g, a as O, O as $ } from "./Dialog-BPTr3qHE.mjs";
|
|
22
22
|
import { endOfMonth as X } from "date-fns/endOfMonth";
|
|
@@ -22,7 +22,7 @@ import { isWithinInterval as Q } from "date-fns/isWithinInterval";
|
|
|
22
22
|
import nn from "@mui/material/styles/useTheme";
|
|
23
23
|
import k from "@mui/material/ListItem";
|
|
24
24
|
import an from "@mui/material/ListItemButton";
|
|
25
|
-
import {
|
|
25
|
+
import { g as tn } from "./hooks-C41HAxM5.mjs";
|
|
26
26
|
var on = /* @__PURE__ */ ((n) => (n[n.CREDIT = 1] = "CREDIT", n[n.DEBIT = 2] = "DEBIT", n))(on || {}), en = /* @__PURE__ */ ((n) => (n[n.POSTED = 1] = "POSTED", n[n.PENDING = 2] = "PENDING", n))(en || {});
|
|
27
27
|
const rn = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
|
|
28
28
|
const c = v(), l = cn(c);
|
|
@@ -13,7 +13,7 @@ import { ChevronLeft as le } from "@mxenabled/mx-icons";
|
|
|
13
13
|
import { Icon as T, Text as X, DateRangePicker as J, H1 as Ce, H3 as de } from "@mxenabled/mxui";
|
|
14
14
|
import { u as Te } from "./useDimensions-27p2evRx.mjs";
|
|
15
15
|
import { L as Ie } from "./Loader-DUaFpDGv.mjs";
|
|
16
|
-
import {
|
|
16
|
+
import { g as Ee, b as Re, u as ge, a as Ae, W as Se } from "./hooks-C41HAxM5.mjs";
|
|
17
17
|
import { u as ie } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
18
18
|
import { addMonths as Q } from "date-fns/addMonths";
|
|
19
19
|
import { addDays as ue } from "date-fns/addDays";
|
|
@@ -37,7 +37,7 @@ import Ke from "@mui/material/ToggleButtonGroup";
|
|
|
37
37
|
import Ge from "@mui/material/styles/useTheme";
|
|
38
38
|
import { f as K, a as G, D as Me } from "./Dialog-BPTr3qHE.mjs";
|
|
39
39
|
import { D as We } from "./Drawer-BEtCk82g.mjs";
|
|
40
|
-
import { k as ye, l as xe } from "./ConnectDrawer-
|
|
40
|
+
import { k as ye, l as xe } from "./ConnectDrawer-CuUj16NH.mjs";
|
|
41
41
|
const ve = {
|
|
42
42
|
ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
|
|
43
43
|
ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
|
|
@@ -2,54 +2,53 @@ import { jsx as e, jsxs as r, Fragment as q } from "react/jsx-runtime";
|
|
|
2
2
|
import h from "react";
|
|
3
3
|
import { observer as v } from "mobx-react-lite";
|
|
4
4
|
import E from "@mui/material/Box";
|
|
5
|
-
import
|
|
5
|
+
import x from "@mui/material/Divider";
|
|
6
6
|
import F from "@mui/material/List";
|
|
7
7
|
import O from "@mui/material/ListSubheader";
|
|
8
|
-
import
|
|
8
|
+
import y from "@mui/system/Stack";
|
|
9
9
|
import { Text as g } from "@mxenabled/mxui";
|
|
10
10
|
import { useTheme as J } from "@mui/material/styles";
|
|
11
|
-
import { u as D, A as Q } from "../AccountDetailsHeader-
|
|
12
|
-
import { L as X } from "../LineChart-
|
|
13
|
-
import { g as e1, a as t1, b as
|
|
14
|
-
import { m as
|
|
15
|
-
import { A as W, l as P, m as
|
|
16
|
-
import { F as
|
|
17
|
-
import { I as G, P as $, S as j } from "../Account-
|
|
18
|
-
import { a as
|
|
19
|
-
import { g as
|
|
20
|
-
import { A as B } from "../AccountListItem-
|
|
21
|
-
import { A as
|
|
22
|
-
import { u as
|
|
11
|
+
import { u as D, A as Q } from "../AccountDetailsHeader-Cbi5G6fJ.mjs";
|
|
12
|
+
import { L as X } from "../LineChart-bc1D9xBE.mjs";
|
|
13
|
+
import { g as e1, a as t1, b as n1 } from "../SpendingData-BuJ03S9d.mjs";
|
|
14
|
+
import { m as l1, u as M, b, d as N, g as U, a as i1, n as o1 } from "../hooks-C41HAxM5.mjs";
|
|
15
|
+
import { A as W, l as P, m as C1 } from "../ConnectDrawer-CuUj16NH.mjs";
|
|
16
|
+
import { F as o3, M as C3 } from "../ConnectDrawer-CuUj16NH.mjs";
|
|
17
|
+
import { I as G, P as $, S as j } from "../Account-01wOyrH1.mjs";
|
|
18
|
+
import { a as d1 } from "../AccountFields-Cd_nOWmf.mjs";
|
|
19
|
+
import { g as c3, b as s3 } from "../AccountFields-Cd_nOWmf.mjs";
|
|
20
|
+
import { A as B } from "../AccountListItem-DxY4cCF1.mjs";
|
|
21
|
+
import { A as c1 } from "../AccountDetailsContent-COMjOzwr.mjs";
|
|
22
|
+
import { u as r3 } from "../AccountDetailsContent-COMjOzwr.mjs";
|
|
23
23
|
import { f as I } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
24
|
-
import { D as
|
|
25
|
-
import { A as
|
|
26
|
-
import { C as
|
|
27
|
-
import { u as r1 } from "../useWidgetLoadTimer-CY26D0n1.mjs";
|
|
24
|
+
import { D as s1 } from "../Drawer-BEtCk82g.mjs";
|
|
25
|
+
import { A as S, W as a1 } from "../WidgetContainer-6dsjtOVg.mjs";
|
|
26
|
+
import { C as r1 } from "../ConnectionsDrawer-Bz4uwdFE.mjs";
|
|
28
27
|
import { u as Y } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
29
|
-
import { L as
|
|
28
|
+
import { L as _ } from "../Loader-DUaFpDGv.mjs";
|
|
30
29
|
import L1 from "@mui/material/ListItem";
|
|
31
|
-
import { M as K } from "../MiniWidgetContainer-
|
|
30
|
+
import { M as K } from "../MiniWidgetContainer-CmXpTylX.mjs";
|
|
32
31
|
import u1 from "@mui/material/Stack";
|
|
33
|
-
import { A as
|
|
32
|
+
import { A as u3, a as h3 } from "../AccountStore-C1zMBzHq.mjs";
|
|
34
33
|
const h1 = (i, o) => {
|
|
35
|
-
const
|
|
36
|
-
return [
|
|
37
|
-
}, H1 = (i, o,
|
|
34
|
+
const l = G.includes(o) ? e1(i) : [], t = $.includes(o) ? t1(i) : [], L = j.includes(o) ? n1(i) : [];
|
|
35
|
+
return [l, t, L].filter((C) => C.length > 0);
|
|
36
|
+
}, H1 = (i, o, l) => {
|
|
38
37
|
const [t, L] = i, C = t, d = L ?? t, s = [];
|
|
39
38
|
if (C && d && G.includes(o)) {
|
|
40
39
|
const c = C[C.length - 1].y;
|
|
41
|
-
s.push({ label:
|
|
40
|
+
s.push({ label: l.income_label, amount: c });
|
|
42
41
|
} else if ($.includes(o)) {
|
|
43
42
|
const c = C[C.length - 1].y;
|
|
44
|
-
s.push({ label:
|
|
43
|
+
s.push({ label: l.payments_label, amount: c });
|
|
45
44
|
}
|
|
46
45
|
if (d && j.includes(o)) {
|
|
47
46
|
const c = d[d.length - 1].y;
|
|
48
|
-
s.push({ label:
|
|
47
|
+
s.push({ label: l.spending_label, amount: c });
|
|
49
48
|
}
|
|
50
49
|
return s;
|
|
51
50
|
}, p1 = () => {
|
|
52
|
-
const i = J(), { selectedAccount: o } = D(), { monthlyCategoryTotals:
|
|
51
|
+
const i = J(), { selectedAccount: o } = D(), { monthlyCategoryTotals: l } = l1(), { trends: t } = M(), L = [i.palette.chart?.chart1, i.palette.chart?.chart2], C = h1(l, o.account_type), d = H1(C, o.account_type, t), s = [W.LOAN, W.MORTGAGE].includes(o.account_type);
|
|
53
52
|
return /* @__PURE__ */ e("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ e(
|
|
54
53
|
X,
|
|
55
54
|
{
|
|
@@ -64,59 +63,59 @@ const h1 = (i, o) => {
|
|
|
64
63
|
}
|
|
65
64
|
) });
|
|
66
65
|
}, f1 = v(p1), m1 = () => {
|
|
67
|
-
const [i, o] = h.useState(""), { accounts:
|
|
68
|
-
() => t.filter((
|
|
66
|
+
const [i, o] = h.useState(""), { accounts: l } = M(), { selectedAccounts: t } = b(), { setSelectedAccount: L, setSelectedMember: C } = D(), { members: d } = N(), { onEvent: s } = U(), c = [...new Set(t.map((n) => n.account_type))], p = t.find((n) => i === n.guid), H = h.useMemo(
|
|
67
|
+
() => t.filter((n) => n.is_hidden),
|
|
69
68
|
[t]
|
|
70
69
|
), f = h.useMemo(
|
|
71
|
-
() => t.filter((
|
|
70
|
+
() => t.filter((n) => n.is_closed),
|
|
72
71
|
[t]
|
|
73
|
-
), R =
|
|
74
|
-
(
|
|
72
|
+
), R = H.reduce(
|
|
73
|
+
(n, a) => (a.available_balance || a.balance || 0) + n,
|
|
75
74
|
0
|
|
76
|
-
),
|
|
75
|
+
), k = d1(f, l);
|
|
77
76
|
h.useEffect(() => {
|
|
78
|
-
if (
|
|
79
|
-
L(
|
|
80
|
-
const
|
|
81
|
-
|
|
77
|
+
if (p) {
|
|
78
|
+
L(p);
|
|
79
|
+
const n = d.find((a) => a.guid === p?.member_guid) || {};
|
|
80
|
+
n && C(n);
|
|
82
81
|
}
|
|
83
|
-
}, [
|
|
84
|
-
const
|
|
85
|
-
o(
|
|
86
|
-
account_guid:
|
|
87
|
-
account_type:
|
|
82
|
+
}, [p, i]);
|
|
83
|
+
const Z = (n) => {
|
|
84
|
+
o(n.guid), s(S.ACCOUNTS_CLICK_ACCOUNT, {
|
|
85
|
+
account_guid: n.guid,
|
|
86
|
+
account_type: n.account_type
|
|
88
87
|
});
|
|
89
|
-
}, V = (
|
|
90
|
-
const a =
|
|
88
|
+
}, V = (n) => {
|
|
89
|
+
const a = n === "hidden" ? H : f, w = n === "hidden" ? R : k, u = n === "hidden" ? l.account_hidden : l.account_closed;
|
|
91
90
|
return /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
|
|
92
91
|
F,
|
|
93
92
|
{
|
|
94
93
|
"aria-label": u,
|
|
95
94
|
subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ r(
|
|
96
|
-
|
|
95
|
+
y,
|
|
97
96
|
{
|
|
98
97
|
component: "span",
|
|
99
98
|
direction: "row",
|
|
100
99
|
sx: { justifyContent: "space-between", color: "grey.700" },
|
|
101
100
|
children: [
|
|
102
101
|
/* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: u }),
|
|
103
|
-
/* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: I(
|
|
102
|
+
/* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: I(w, "0,0.00") })
|
|
104
103
|
]
|
|
105
104
|
}
|
|
106
105
|
) }),
|
|
107
|
-
children: /* @__PURE__ */ e(
|
|
108
|
-
const T =
|
|
106
|
+
children: /* @__PURE__ */ e(y, { children: a.map((m, A, z) => {
|
|
107
|
+
const T = A === z.length - 1;
|
|
109
108
|
return /* @__PURE__ */ r(h.Fragment, { children: [
|
|
110
109
|
/* @__PURE__ */ e(
|
|
111
110
|
B,
|
|
112
111
|
{
|
|
113
112
|
account: m,
|
|
114
|
-
onRowClick: () =>
|
|
113
|
+
onRowClick: () => Z(m),
|
|
115
114
|
shouldShowConnectionStatus: !0
|
|
116
115
|
}
|
|
117
116
|
),
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
n === "hidden" ? /* @__PURE__ */ e(
|
|
118
|
+
x,
|
|
120
119
|
{
|
|
121
120
|
sx: {
|
|
122
121
|
mb: T ? 24 : 4,
|
|
@@ -124,7 +123,7 @@ const h1 = (i, o) => {
|
|
|
124
123
|
}
|
|
125
124
|
}
|
|
126
125
|
) : !T && /* @__PURE__ */ e(
|
|
127
|
-
|
|
126
|
+
x,
|
|
128
127
|
{
|
|
129
128
|
sx: {
|
|
130
129
|
mb: 4,
|
|
@@ -138,131 +137,130 @@ const h1 = (i, o) => {
|
|
|
138
137
|
) });
|
|
139
138
|
};
|
|
140
139
|
return /* @__PURE__ */ r(E, { sx: { pt: 24 }, children: [
|
|
141
|
-
c.map((
|
|
140
|
+
c.map((n) => {
|
|
142
141
|
const a = t.filter(
|
|
143
|
-
(u) => u.account_type ===
|
|
144
|
-
),
|
|
142
|
+
(u) => u.account_type === n && !u.is_closed && !u.is_hidden
|
|
143
|
+
), w = a.reduce(
|
|
145
144
|
(u, m) => (m.balance || 0) + u,
|
|
146
145
|
0
|
|
147
146
|
);
|
|
148
147
|
return a.length === 0 ? null : /* @__PURE__ */ e(
|
|
149
148
|
F,
|
|
150
149
|
{
|
|
151
|
-
"aria-label":
|
|
150
|
+
"aria-label": l.account_type_accounts[a[0]?.account_type],
|
|
152
151
|
subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ r(
|
|
153
|
-
|
|
152
|
+
y,
|
|
154
153
|
{
|
|
155
154
|
component: "span",
|
|
156
155
|
direction: "row",
|
|
157
156
|
sx: { display: "flex", justifyContent: "space-between" },
|
|
158
157
|
children: [
|
|
159
|
-
/* @__PURE__ */ e(g, { bold: !0, variant: "Body", children:
|
|
160
|
-
/* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: I(
|
|
158
|
+
/* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: l.account_types[n] }),
|
|
159
|
+
/* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: I(w, "0,0.00") })
|
|
161
160
|
]
|
|
162
161
|
}
|
|
163
162
|
) }),
|
|
164
|
-
children: /* @__PURE__ */ e(
|
|
165
|
-
const m = t.indexOf(u) === t.length - 1,
|
|
163
|
+
children: /* @__PURE__ */ e(y, { children: a.map((u) => {
|
|
164
|
+
const m = t.indexOf(u) === t.length - 1, A = a.indexOf(u) === a.length - 1;
|
|
166
165
|
return /* @__PURE__ */ r(h.Fragment, { children: [
|
|
167
166
|
/* @__PURE__ */ e(
|
|
168
167
|
B,
|
|
169
168
|
{
|
|
170
169
|
account: u,
|
|
171
|
-
onRowClick: () =>
|
|
170
|
+
onRowClick: () => Z(u),
|
|
172
171
|
shouldShowConnectionStatus: !0
|
|
173
172
|
}
|
|
174
173
|
),
|
|
175
|
-
(!m || f.length > 0 ||
|
|
176
|
-
|
|
174
|
+
(!m || f.length > 0 || H.length > 0) && /* @__PURE__ */ e(
|
|
175
|
+
x,
|
|
177
176
|
{
|
|
178
177
|
sx: {
|
|
179
|
-
mb:
|
|
180
|
-
ml:
|
|
178
|
+
mb: A ? 24 : 4,
|
|
179
|
+
ml: A ? 24 : 68
|
|
181
180
|
}
|
|
182
181
|
}
|
|
183
182
|
)
|
|
184
183
|
] }, u.guid);
|
|
185
184
|
}) })
|
|
186
185
|
},
|
|
187
|
-
|
|
186
|
+
n
|
|
188
187
|
);
|
|
189
188
|
}),
|
|
190
|
-
|
|
189
|
+
H.length > 0 && V("hidden"),
|
|
191
190
|
f.length > 0 && V("closed"),
|
|
192
191
|
/* @__PURE__ */ r(
|
|
193
|
-
|
|
192
|
+
s1,
|
|
194
193
|
{
|
|
195
|
-
ariaLabelClose:
|
|
194
|
+
ariaLabelClose: l.close_account_details_aria,
|
|
196
195
|
isOpen: !!i,
|
|
197
196
|
onClose: () => o(""),
|
|
198
|
-
title:
|
|
197
|
+
title: l.account_details,
|
|
199
198
|
children: [
|
|
200
199
|
/* @__PURE__ */ e(Q, { ChartComponent: f1 }),
|
|
201
|
-
/* @__PURE__ */ e(
|
|
200
|
+
/* @__PURE__ */ e(c1, {})
|
|
202
201
|
]
|
|
203
202
|
}
|
|
204
203
|
)
|
|
205
204
|
] });
|
|
206
205
|
}, V1 = v(m1), g1 = ({ onBackClick: i, sx: o = {} }) => {
|
|
207
|
-
const [
|
|
208
|
-
|
|
209
|
-
widgetName: "AccountsWidget",
|
|
210
|
-
isLoaded: f && p
|
|
211
|
-
}), h.useEffect(() => {
|
|
206
|
+
const [l, t] = h.useState(!1), [L, C] = h.useState(!1), { config: d } = i1(), { accounts: s } = N(), { accounts: c, connect: p } = M(), { isCopyLoaded: H, isInitialized: f, setSelectedAccounts: R, selectedAccountGuids: k } = b(), { isDesktop: Z } = Y(), { onEvent: V } = U(), { onLoad: n } = o1();
|
|
207
|
+
h.useEffect(() => {
|
|
212
208
|
R(s);
|
|
213
|
-
}, [s])
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
209
|
+
}, [s]), h.useEffect(() => {
|
|
210
|
+
f && H && n?.("AccountsWidget");
|
|
211
|
+
}, [f, H]);
|
|
212
|
+
const a = () => {
|
|
213
|
+
t(!0), V(S.ACCOUNTS_CLICK_CONNECT);
|
|
214
|
+
}, w = () => {
|
|
215
|
+
C(!0), V(S.ACCOUNTS_CLICK_CONNECT);
|
|
218
216
|
};
|
|
219
|
-
return
|
|
220
|
-
|
|
217
|
+
return H ? /* @__PURE__ */ e(
|
|
218
|
+
a1,
|
|
221
219
|
{
|
|
222
220
|
accountOptions: s,
|
|
223
221
|
actions: d.show_connections_widget_in_master ? [
|
|
224
|
-
{ iconName: "add", label: c.add, onClick:
|
|
222
|
+
{ iconName: "add", label: c.add, onClick: a },
|
|
225
223
|
{
|
|
226
224
|
iconName: "credit_card_gear",
|
|
227
225
|
label: c.manage,
|
|
228
|
-
onClick:
|
|
226
|
+
onClick: w
|
|
229
227
|
}
|
|
230
228
|
] : [],
|
|
231
|
-
onAccountsFilterClick: () => V(
|
|
229
|
+
onAccountsFilterClick: () => V(S.ACCOUNTS_CLICK_FILTER),
|
|
232
230
|
onBackClick: i,
|
|
233
231
|
sx: o,
|
|
234
232
|
title: c.title,
|
|
235
233
|
children: f ? /* @__PURE__ */ r(q, { children: [
|
|
236
|
-
/* @__PURE__ */ r(E, { sx: { px:
|
|
237
|
-
|
|
234
|
+
/* @__PURE__ */ r(E, { sx: { px: Z ? 24 : 12 }, children: [
|
|
235
|
+
k.length < 1 && /* @__PURE__ */ e(g, { display: "flex", justifyContent: "center", my: 24, children: c.no_accounts }),
|
|
238
236
|
/* @__PURE__ */ e(V1, {})
|
|
239
237
|
] }),
|
|
240
238
|
/* @__PURE__ */ e(
|
|
241
239
|
P,
|
|
242
240
|
{
|
|
243
241
|
onClose: () => t(!1),
|
|
244
|
-
showConnectWidget:
|
|
245
|
-
title:
|
|
242
|
+
showConnectWidget: l,
|
|
243
|
+
title: p.mini_title
|
|
246
244
|
}
|
|
247
245
|
),
|
|
248
246
|
/* @__PURE__ */ e(
|
|
249
|
-
|
|
247
|
+
r1,
|
|
250
248
|
{
|
|
251
249
|
onClose: () => C(!1),
|
|
252
250
|
showConnectionsWidget: L,
|
|
253
251
|
title: c.manage_connections
|
|
254
252
|
}
|
|
255
253
|
)
|
|
256
|
-
] }) : /* @__PURE__ */ e(
|
|
254
|
+
] }) : /* @__PURE__ */ e(_, {})
|
|
257
255
|
}
|
|
258
|
-
) : /* @__PURE__ */ e(
|
|
259
|
-
},
|
|
260
|
-
const { visibleAccounts:
|
|
256
|
+
) : /* @__PURE__ */ e(_, {});
|
|
257
|
+
}, e3 = v(g1), v1 = ({ onPrimaryCtaClick: i, sx: o }) => {
|
|
258
|
+
const { visibleAccounts: l } = N(), { accounts: t } = M(), { isCopyLoaded: L, isInitialized: C, selectedAccounts: d, setSelectedAccounts: s } = b(), { isDesktop: c } = Y();
|
|
261
259
|
h.useEffect(() => {
|
|
262
|
-
s(
|
|
263
|
-
}, [
|
|
264
|
-
const
|
|
265
|
-
() =>
|
|
260
|
+
s(l);
|
|
261
|
+
}, [l]);
|
|
262
|
+
const p = h.useMemo(
|
|
263
|
+
() => C1(d, c ? 5 : 3),
|
|
266
264
|
[d, c]
|
|
267
265
|
);
|
|
268
266
|
return L ? /* @__PURE__ */ e(
|
|
@@ -275,24 +273,24 @@ const h1 = (i, o) => {
|
|
|
275
273
|
title: t.mini_title,
|
|
276
274
|
children: C ? /* @__PURE__ */ r(F, { children: [
|
|
277
275
|
d.length === 0 && /* @__PURE__ */ e(L1, { sx: { justifyContent: "center" }, children: t.no_accounts }),
|
|
278
|
-
|
|
279
|
-
const R =
|
|
276
|
+
p.map((H, f) => {
|
|
277
|
+
const R = p.indexOf(H) === p.length - 1;
|
|
280
278
|
return /* @__PURE__ */ r(h.Fragment, { children: [
|
|
281
279
|
/* @__PURE__ */ e(
|
|
282
280
|
B,
|
|
283
281
|
{
|
|
284
|
-
account:
|
|
282
|
+
account: H,
|
|
285
283
|
listItemProps: { sx: { px: 24 } },
|
|
286
284
|
shouldShowConnectionStatus: !0
|
|
287
285
|
}
|
|
288
286
|
),
|
|
289
|
-
!R && /* @__PURE__ */ e(
|
|
287
|
+
!R && /* @__PURE__ */ e(x, { "aria-hidden": "true", variant: "inset" })
|
|
290
288
|
] }, `account-item${f}`);
|
|
291
289
|
})
|
|
292
|
-
] }) : /* @__PURE__ */ e(
|
|
290
|
+
] }) : /* @__PURE__ */ e(_, {})
|
|
293
291
|
}
|
|
294
|
-
) : /* @__PURE__ */ e(
|
|
295
|
-
},
|
|
292
|
+
) : /* @__PURE__ */ e(_, {});
|
|
293
|
+
}, t3 = v(v1), M1 = () => /* @__PURE__ */ r(
|
|
296
294
|
"svg",
|
|
297
295
|
{
|
|
298
296
|
fill: "none",
|
|
@@ -753,10 +751,10 @@ const h1 = (i, o) => {
|
|
|
753
751
|
},
|
|
754
752
|
sx: o
|
|
755
753
|
}) => {
|
|
756
|
-
const { isCopyLoaded:
|
|
754
|
+
const { isCopyLoaded: l } = b(), { connect: t } = M(), [L, C] = h.useState(!1), d = () => {
|
|
757
755
|
C(!0), i();
|
|
758
756
|
};
|
|
759
|
-
return
|
|
757
|
+
return l ? /* @__PURE__ */ r(
|
|
760
758
|
K,
|
|
761
759
|
{
|
|
762
760
|
className: "mx-exp-connect-miniwidget",
|
|
@@ -776,20 +774,20 @@ const h1 = (i, o) => {
|
|
|
776
774
|
)
|
|
777
775
|
]
|
|
778
776
|
}
|
|
779
|
-
) : /* @__PURE__ */ e(
|
|
777
|
+
) : /* @__PURE__ */ e(_, {});
|
|
780
778
|
}, n3 = v(_1);
|
|
781
779
|
export {
|
|
782
|
-
|
|
783
|
-
|
|
780
|
+
u3 as AccountApi,
|
|
781
|
+
c1 as AccountDetailsContent,
|
|
784
782
|
Q as AccountDetailsHeader,
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
783
|
+
h3 as AccountStore,
|
|
784
|
+
t3 as AccountsMiniWidget,
|
|
785
|
+
e3 as AccountsWidget,
|
|
788
786
|
n3 as ConnectMiniWidget,
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
787
|
+
o3 as FieldType,
|
|
788
|
+
C3 as MemberConnectionStatus,
|
|
789
|
+
c3 as getAccountBalanceDetails,
|
|
790
|
+
s3 as getAccountDetailFields,
|
|
793
791
|
D as useAccountUiStore,
|
|
794
|
-
|
|
792
|
+
r3 as useGetMergeableAccounts
|
|
795
793
|
};
|
|
@@ -8,8 +8,8 @@ import a from "@mui/material/Stack";
|
|
|
8
8
|
import _ from "@mui/material/styles/useTheme";
|
|
9
9
|
import { Text as u, TextField as L } from "@mxenabled/mxui";
|
|
10
10
|
import { L as W } from "../Loader-DUaFpDGv.mjs";
|
|
11
|
-
import { M as j } from "../MiniWidgetContainer-
|
|
12
|
-
import { k as f,
|
|
11
|
+
import { M as j } from "../MiniWidgetContainer-CmXpTylX.mjs";
|
|
12
|
+
import { k as f, u as b, g as q, b as E } from "../hooks-C41HAxM5.mjs";
|
|
13
13
|
import Q from "@mui/material/ToggleButton";
|
|
14
14
|
import G from "@mui/material/ToggleButtonGroup";
|
|
15
15
|
const O = () => {
|
package/dist/budgets/index.es.js
CHANGED
|
@@ -8,7 +8,7 @@ import S from "@mui/material/Stack";
|
|
|
8
8
|
import te from "@mui/material/styles/useTheme";
|
|
9
9
|
import { Text as b, CategoryIcon as K, Icon as N, H1 as Ue, H3 as Ae } from "@mxenabled/mxui";
|
|
10
10
|
import X from "@mui/material/List";
|
|
11
|
-
import {
|
|
11
|
+
import { u as w, i as D, j as ne, m as z, q as oe, g as V, b as ae, h as re, a as Fe, d as Te, n as He } from "../hooks-C41HAxM5.mjs";
|
|
12
12
|
import { f as T } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
13
13
|
import we from "@mui/material/Button";
|
|
14
14
|
import se from "@mui/material/Divider";
|
|
@@ -19,35 +19,35 @@ import q from "@mui/material/ListItemText";
|
|
|
19
19
|
import { b as R } from "../Localization-2MODESHW.mjs";
|
|
20
20
|
import { D as k } from "../Drawer-BEtCk82g.mjs";
|
|
21
21
|
import We from "@mui/material/ListItemSecondaryAction";
|
|
22
|
-
import { C as Ke } from "../CurrencyInput-
|
|
22
|
+
import { C as Ke } from "../CurrencyInput-BFKcs-_K.mjs";
|
|
23
23
|
import { D as G } from "../Dialog-BPTr3qHE.mjs";
|
|
24
|
-
import { C as Xe } from "../ConnectionsDrawer-
|
|
24
|
+
import { C as Xe } from "../ConnectionsDrawer-Bz4uwdFE.mjs";
|
|
25
25
|
import * as O from "d3";
|
|
26
26
|
import Ve from "@mui/material/Tooltip";
|
|
27
27
|
import { useTheme as Ye } from "@mui/material/styles";
|
|
28
28
|
import { u as ce } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
29
29
|
import { L as j } from "../Loader-DUaFpDGv.mjs";
|
|
30
30
|
import { E as me } from "../EmptyState-DoxNUae-.mjs";
|
|
31
|
-
import { A as L, W as Ze } from "../WidgetContainer-
|
|
32
|
-
import { u as qe } from "../BudgetUtil-
|
|
33
|
-
import { M as Je } from "../MiniWidgetContainer-
|
|
31
|
+
import { A as L, W as Ze } from "../WidgetContainer-6dsjtOVg.mjs";
|
|
32
|
+
import { u as qe } from "../BudgetUtil-Df2nII9u.mjs";
|
|
33
|
+
import { M as Je } from "../MiniWidgetContainer-CmXpTylX.mjs";
|
|
34
34
|
import { isAfter as Qe } from "date-fns/isAfter";
|
|
35
35
|
import { startOfToday as J } from "date-fns/startOfToday";
|
|
36
36
|
import et from "@mui/material/Alert";
|
|
37
37
|
import tt from "@mui/material/Snackbar";
|
|
38
38
|
import Ce from "@mui/material/Tab";
|
|
39
39
|
import nt from "@mui/material/Tabs";
|
|
40
|
-
import { e as ot } from "../exportTransactionsToCSV-
|
|
41
|
-
import { T as De, a as at } from "../TransactionDetails-
|
|
40
|
+
import { e as ot } from "../exportTransactionsToCSV-Cz2t0lmA.mjs";
|
|
41
|
+
import { T as De, a as at } from "../TransactionDetails-COH0OKNG.mjs";
|
|
42
42
|
import fe from "@mui/material/Card";
|
|
43
43
|
import be from "@mui/material/CardContent";
|
|
44
44
|
import { S as he } from "../StatusBar-BK_uYHAB.mjs";
|
|
45
45
|
import { S as Ie } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
46
|
-
import { u as rt, b as st } from "../CategorySelectorDrawer-
|
|
46
|
+
import { u as rt, b as st } from "../CategorySelectorDrawer-DqJK_rrL.mjs";
|
|
47
47
|
import Ee from "@mui/material/CardHeader";
|
|
48
48
|
import { subDays as it } from "date-fns/subDays";
|
|
49
49
|
import ct from "@mui/material/IconButton";
|
|
50
|
-
import { M as lt } from "../ManageIncome-
|
|
50
|
+
import { M as lt } from "../ManageIncome-A69EUO5u.mjs";
|
|
51
51
|
const dt = I(() => {
|
|
52
52
|
const { budgets: t } = w(), { totalBudgeted: o } = D(), { incomeTotal: i } = ne(), s = i - o;
|
|
53
53
|
return /* @__PURE__ */ m(S, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
|