@mx-cartographer/experiences 8.0.0-alpha.bb4 → 8.0.0-alpha.sms1
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/dist/{Account-B4CDD-zq.mjs → Account-BDXA6PWh.mjs} +1 -1
- package/dist/AccountDetailsContent-CUztd3-b.mjs +683 -0
- package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-i3KFhNuo.mjs} +18 -18
- package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-QZspYAji.mjs} +10 -12
- package/dist/AccountListItem-DX5upmCS.mjs +90 -0
- package/dist/{AccountStore-HbVblv86.mjs → AccountStore-BcnDpyLL.mjs} +3 -3
- package/dist/{Accounts-CRUehOiy.mjs → Accounts-DXfZotRC.mjs} +1 -1
- package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-Df2nII9u.mjs} +31 -31
- package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-D9Dpuz7X.mjs} +25 -18
- package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +27 -27
- package/dist/{CategoryStore-MUwRWH9e.mjs → CategoryStore-DTgyAMM7.mjs} +2 -2
- package/dist/{CategoryUtil-DfVKKkRf.mjs → CategoryUtil-C5cR-nfQ.mjs} +4 -4
- package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-BIbTqYOH.mjs} +47 -48
- package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-BFfY3_zB.mjs} +2 -2
- package/dist/CurrencyInput-BFKcs-_K.mjs +85 -0
- package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CBdcsyuk.mjs} +1 -1
- package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-BbJB0nmu.mjs} +3 -3
- package/dist/{Dialog-CDV0kKxj.mjs → Dialog-BPTr3qHE.mjs} +24 -24
- package/dist/{Drawer-BF40nbsH.mjs → Drawer-BEtCk82g.mjs} +17 -17
- package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
- package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-BIrX0Xg2.mjs} +56 -56
- package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-DpWY3gVb.mjs} +4 -4
- package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
- package/dist/{Help-DBfsTkAi.mjs → Help-BnPXM_N2.mjs} +145 -124
- package/dist/{Help-c-zHlDbv.mjs → Help-DhcC-C05.mjs} +8 -8
- package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
- package/dist/{LineChart-C1PxNf7P.mjs → LineChart-bc1D9xBE.mjs} +78 -78
- package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-uobBrm_a.mjs} +1 -1
- package/dist/Loader-DUaFpDGv.mjs +24 -0
- package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-NpXHhO1n.mjs} +46 -46
- package/dist/MicroWidgetContainer-DEiRnYVa.mjs +45 -0
- package/dist/MiniWidgetContainer-CmXpTylX.mjs +56 -0
- package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-lsuhEpn6.mjs} +4 -4
- package/dist/{NotificationSettings-B74rQVYC.mjs → NotificationSettings-CNmJWVeI.mjs} +77 -77
- package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +8 -8
- package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-CqZh1SQa.mjs} +3 -3
- package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-BKcYmpv3.mjs} +77 -77
- package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-Ni5tSQIO.mjs} +1 -1
- package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-DZFp78fJ.mjs} +10 -10
- package/dist/SearchBox-B2_zLv8-.mjs +42 -0
- package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-krIRNwHK.mjs} +1 -1
- package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +6 -6
- package/dist/{SpendingData-DPQ96k3x.mjs → SpendingData-BuJ03S9d.mjs} +4 -4
- package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CjX-hX2O.mjs} +12 -12
- package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
- package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
- package/dist/TransactionDetails-5M2vfr59.mjs +1379 -0
- package/dist/{TransactionStore-DbwAutwC.mjs → TransactionStore-D-Q3BU9Z.mjs} +58 -41
- package/dist/{TrendsStore-_mRaFUdf.mjs → TrendsStore-BW9FGQeE.mjs} +37 -37
- package/dist/{User-BklmOUSd.mjs → User-wXzDI4M8.mjs} +107 -107
- package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-C0832BMe.mjs} +233 -231
- package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-BhQ1Kx2z.mjs} +36 -36
- package/dist/accounts/index.es.js +94 -94
- package/dist/analytics/index.es.js +27 -27
- package/dist/budgets/index.es.js +251 -250
- package/dist/cashflow/index.es.js +158 -157
- package/dist/categories/index.es.js +2 -2
- package/dist/common/components/Loader.d.ts +2 -1
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
- package/dist/common/components/barchart/Bar.d.ts +25 -0
- package/dist/common/components/barchart/BarChart.d.ts +34 -0
- package/dist/common/components/barchart/BarColumn.d.ts +37 -0
- package/dist/common/components/barchart/Legend.d.ts +8 -0
- package/dist/common/components/barchart/Util.d.ts +42 -0
- package/dist/common/components/barchart/index.d.ts +1 -0
- package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
- package/dist/common/components/index.d.ts +1 -0
- package/dist/common/index.es.js +660 -395
- package/dist/common/utils/Theme.d.ts +3 -1
- package/dist/dashboard/index.es.js +21 -21
- package/dist/debts/components/DebtsChart.d.ts +2 -1
- package/dist/debts/index.es.js +440 -440
- package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-Cz2t0lmA.mjs} +3 -3
- package/dist/finstrong/index.es.js +118 -118
- package/dist/goals/index.es.js +380 -386
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.d.ts +1 -1
- package/dist/help/components/content/RightImageContent.d.ts +1 -1
- package/dist/help/components/content/TopImageContent.d.ts +1 -1
- package/dist/help/index.es.js +6 -6
- package/dist/investments/index.es.js +279 -278
- package/dist/merchants/index.es.js +7 -7
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/components/NetWorthChange.d.ts +1 -3
- package/dist/networth/index.es.js +185 -191
- package/dist/notifications/index.es.js +30 -30
- package/dist/recurringtransactions/index.es.js +85 -85
- package/dist/settings/index.es.js +270 -270
- package/dist/spending/index.es.js +44 -44
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
- package/dist/transactions/index.es.js +169 -168
- package/dist/trends/index.es.js +318 -317
- package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-CFNF8766.mjs} +1 -1
- package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
- package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
- package/package.json +50 -45
- package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
- package/dist/AccountListItem-wgmlex-_.mjs +0 -90
- package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
- package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
- package/dist/Loader-Ckqi9Rx6.mjs +0 -21
- package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +0 -45
- package/dist/MiniWidgetContainer-CKzf_Ira.mjs +0 -56
- package/dist/SearchBox-B7km148n.mjs +0 -39
- package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs as M, Fragment as B, jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import P from "@mui/material/Avatar";
|
|
3
3
|
import w from "@mui/material/ListItem";
|
|
4
4
|
import L from "@mui/material/ListItemAvatar";
|
|
5
5
|
import U from "@mui/material/ListItemButton";
|
|
6
6
|
import G from "@mui/material/ListItemText";
|
|
7
|
-
import { Icon as I } from "@mxenabled/mxui";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { ExpandMore as
|
|
7
|
+
import { Icon as I, IconWeight as S } from "@mxenabled/mxui";
|
|
8
|
+
import C from "@mui/material/ListItemIcon";
|
|
9
|
+
import $ from "@mui/material/MenuItem";
|
|
10
|
+
import j from "@mui/material/TextField";
|
|
11
|
+
import { ExpandMore as z } from "@mxenabled/mx-icons";
|
|
12
12
|
import { addDays as Q } from "date-fns/addDays";
|
|
13
13
|
import { addMonths as f } from "date-fns/addMonths";
|
|
14
14
|
import { addQuarters as A } from "date-fns/addQuarters";
|
|
15
|
-
import { addYears as
|
|
16
|
-
import { formatISO as
|
|
17
|
-
import { fromUnixTime as
|
|
15
|
+
import { addYears as K } from "date-fns/addYears";
|
|
16
|
+
import { formatISO as H } from "date-fns/formatISO";
|
|
17
|
+
import { fromUnixTime as V } from "date-fns/fromUnixTime";
|
|
18
18
|
import { getUnixTime as y } from "date-fns/getUnixTime";
|
|
19
19
|
import { isAfter as h } from "date-fns/isAfter";
|
|
20
20
|
import { isBefore as u } from "date-fns/isBefore";
|
|
21
|
-
import { isSameDay as
|
|
21
|
+
import { isSameDay as X } from "date-fns/isSameDay";
|
|
22
22
|
import { nextDay as E } from "date-fns/nextDay";
|
|
23
23
|
import { parseISO as J } from "date-fns/parseISO";
|
|
24
24
|
import { setDate as g } from "date-fns/setDate";
|
|
25
25
|
import { startOfToday as b } from "date-fns/startOfToday";
|
|
26
|
-
import { subDays as
|
|
27
|
-
import { subMonths as
|
|
26
|
+
import { subDays as D } from "date-fns/subDays";
|
|
27
|
+
import { subMonths as Z } from "date-fns/subMonths";
|
|
28
28
|
import { subQuarters as N } from "date-fns/subQuarters";
|
|
29
|
-
import { subYears as
|
|
30
|
-
import { lastDayOfMonth as
|
|
31
|
-
import { setDayOfYear as
|
|
32
|
-
import { g as
|
|
29
|
+
import { subYears as T } from "date-fns/subYears";
|
|
30
|
+
import { lastDayOfMonth as q } from "date-fns/lastDayOfMonth";
|
|
31
|
+
import { setDayOfYear as F } from "date-fns/setDayOfYear";
|
|
32
|
+
import { g as R, a as ee, b as te, c as re, d as oe, e as ae, f as ne } from "./DateUtil-CBdcsyuk.mjs";
|
|
33
33
|
import { b as W } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
34
|
-
import { f as v, a as k } from "./Dialog-
|
|
34
|
+
import { f as v, a as k } from "./Dialog-BPTr3qHE.mjs";
|
|
35
35
|
import { b as l } from "./Localization-2MODESHW.mjs";
|
|
36
36
|
var s = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e[e.TwiceAMonth = 8] = "TwiceAMonth", e))(s || {}), p = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(p || {}), O = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(O || {}), Y = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e[e.Income = 3] = "Income", e[e.Transfer = 4] = "Transfer", e))(Y || {});
|
|
37
|
-
const
|
|
37
|
+
const se = ({ iconName: e, label: a, onClick: t, value: n }) => {
|
|
38
38
|
const o = /* @__PURE__ */ M(B, { children: [
|
|
39
|
-
/* @__PURE__ */ d(L, { children: /* @__PURE__ */ d(P, { sx: { bgcolor: "
|
|
39
|
+
/* @__PURE__ */ d(L, { children: /* @__PURE__ */ d(P, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ d(I, { name: e, sx: { color: "text.primary" }, weight: S.Dark }) }) }),
|
|
40
40
|
/* @__PURE__ */ d(
|
|
41
41
|
G,
|
|
42
42
|
{
|
|
43
43
|
primary: a,
|
|
44
|
-
primaryTypographyProps: { variant: "
|
|
44
|
+
primaryTypographyProps: { variant: "XSmall" },
|
|
45
45
|
secondary: n,
|
|
46
|
-
secondaryTypographyProps: { color: "text.default", variant: "
|
|
46
|
+
secondaryTypographyProps: { color: "text.default", variant: "Body", fontWeight: 600 }
|
|
47
47
|
}
|
|
48
48
|
)
|
|
49
49
|
] });
|
|
50
50
|
return t ? /* @__PURE__ */ d(w, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ M(U, { onClick: t, children: [
|
|
51
51
|
o,
|
|
52
|
-
/* @__PURE__ */ d(
|
|
52
|
+
/* @__PURE__ */ d(C, { children: /* @__PURE__ */ d(I, { name: "chevron_right", size: 24 }) })
|
|
53
53
|
] }) }) : /* @__PURE__ */ d(w, { disableGutters: !1, disablePadding: !1, children: o });
|
|
54
|
-
},
|
|
55
|
-
|
|
54
|
+
}, Fe = se, Re = ({ label: e, onChange: a, options: t, value: n, ...o }) => /* @__PURE__ */ d(
|
|
55
|
+
j,
|
|
56
56
|
{
|
|
57
57
|
InputLabelProps: { shrink: !0 },
|
|
58
58
|
SelectProps: {
|
|
59
|
-
IconComponent: (c) => /* @__PURE__ */ d(
|
|
59
|
+
IconComponent: (c) => /* @__PURE__ */ d(z, { size: 20, sx: { mr: 4 }, ...c })
|
|
60
60
|
},
|
|
61
61
|
defaultValue: 0,
|
|
62
62
|
label: e,
|
|
@@ -67,13 +67,13 @@ const Te = ({ iconName: e, label: a, onClick: t, value: n }) => {
|
|
|
67
67
|
value: n,
|
|
68
68
|
variant: "outlined",
|
|
69
69
|
...o,
|
|
70
|
-
children: t.map((c) => /* @__PURE__ */ d(
|
|
70
|
+
children: t.map((c) => /* @__PURE__ */ d($, { value: c.id, children: c.label }, c.id))
|
|
71
71
|
}
|
|
72
|
-
),
|
|
72
|
+
), ce = (e) => {
|
|
73
73
|
if (!e) return "";
|
|
74
74
|
let a = e.user_name || e.feed_name || "";
|
|
75
75
|
return e.account_number && (a = `${a} *${e.account_number}`), a;
|
|
76
|
-
},
|
|
76
|
+
}, ie = (e, a) => {
|
|
77
77
|
const t = [], n = e.transactions.find(
|
|
78
78
|
(m) => m.repeating_transaction_guid === e.guid
|
|
79
79
|
);
|
|
@@ -85,7 +85,7 @@ const Te = ({ iconName: e, label: a, onClick: t, value: n }) => {
|
|
|
85
85
|
expectedDate: o,
|
|
86
86
|
frequency: e.recurrence_type,
|
|
87
87
|
institutionGuid: e.account?.institution_guid || "",
|
|
88
|
-
institutionName:
|
|
88
|
+
institutionName: ce(e.account),
|
|
89
89
|
merchantGuid: e.merchant_guid,
|
|
90
90
|
name: e.description,
|
|
91
91
|
recurrenceDay: e.recurrence_day,
|
|
@@ -97,102 +97,102 @@ const Te = ({ iconName: e, label: a, onClick: t, value: n }) => {
|
|
|
97
97
|
}, c = a.start, i = a.end;
|
|
98
98
|
switch (e.recurrence_type) {
|
|
99
99
|
case s.EveryWeek:
|
|
100
|
-
t.push(...
|
|
100
|
+
t.push(...ue(r, c, i));
|
|
101
101
|
break;
|
|
102
102
|
case s.EveryOtherWeek:
|
|
103
|
-
t.push(...
|
|
103
|
+
t.push(...de(r, c, i));
|
|
104
104
|
break;
|
|
105
105
|
case s.TwiceAMonth:
|
|
106
|
-
t.push(...
|
|
106
|
+
t.push(...me(r, c, i));
|
|
107
107
|
break;
|
|
108
108
|
case s.EveryMonth:
|
|
109
|
-
t.push(...
|
|
109
|
+
t.push(...le(r, c, i));
|
|
110
110
|
break;
|
|
111
111
|
case s.EveryOtherMonth:
|
|
112
|
-
t.push(...
|
|
112
|
+
t.push(...he(r, c, i));
|
|
113
113
|
break;
|
|
114
114
|
case s.EveryQuarter:
|
|
115
|
-
t.push(...
|
|
115
|
+
t.push(...fe(r, c, i));
|
|
116
116
|
break;
|
|
117
117
|
case s.EveryOtherQuarter:
|
|
118
|
-
t.push(...
|
|
118
|
+
t.push(...pe(r, c, i));
|
|
119
119
|
break;
|
|
120
120
|
case s.EveryYear:
|
|
121
|
-
t.push(...
|
|
121
|
+
t.push(...ye(r, c, i));
|
|
122
122
|
break;
|
|
123
123
|
}
|
|
124
124
|
for (const m of t) {
|
|
125
|
-
const
|
|
126
|
-
(x) => x.repeating_transaction_guid === e.guid && x.date > y(
|
|
125
|
+
const _ = e.transactions.find(
|
|
126
|
+
(x) => x.repeating_transaction_guid === e.guid && x.date > y(D(m.expectedDate, 5)) && x.date < y(Q(m.expectedDate, 5))
|
|
127
127
|
);
|
|
128
|
-
|
|
128
|
+
_ ? (m.transaction = _, m.status = p.Paid, m.occurredOnDate = V(_.date)) : u(m.expectedDate, D(b(), 3)) && (m.status = p.Missed);
|
|
129
129
|
}
|
|
130
130
|
return t;
|
|
131
|
-
},
|
|
131
|
+
}, ue = (e, a, t) => {
|
|
132
132
|
const n = [];
|
|
133
133
|
let o = E(a, e.recurrenceDay);
|
|
134
134
|
for (; u(o, t); )
|
|
135
135
|
n.push({ ...e, expectedDate: o }), o = E(o, e.recurrenceDay);
|
|
136
136
|
return n;
|
|
137
|
-
},
|
|
137
|
+
}, de = (e, a, t) => {
|
|
138
138
|
const n = [], o = e.expectedDate;
|
|
139
139
|
if (u(o, t)) {
|
|
140
|
-
let r =
|
|
141
|
-
for (; h(r, a) ||
|
|
142
|
-
n.push({ ...e, expectedDate: r }), r =
|
|
140
|
+
let r = D(o, 14);
|
|
141
|
+
for (; h(r, a) || X(r, a); )
|
|
142
|
+
n.push({ ...e, expectedDate: r }), r = D(r, 14);
|
|
143
143
|
for (r = o; h(r, a) && u(r, t); )
|
|
144
144
|
n.push({ ...e, expectedDate: r }), r = Q(r, 14);
|
|
145
145
|
}
|
|
146
146
|
return n;
|
|
147
|
-
},
|
|
147
|
+
}, me = (e, a, t) => {
|
|
148
148
|
const n = [];
|
|
149
149
|
let o = g(a, e.recurrenceDay);
|
|
150
150
|
for (; u(o, t); )
|
|
151
151
|
n.push({ ...e, expectedDate: o }), o = f(o, 1);
|
|
152
|
-
let r = e.secondRecurrenceDay && e.secondRecurrenceDay < 28 ? g(a, e.secondRecurrenceDay) :
|
|
152
|
+
let r = e.secondRecurrenceDay && e.secondRecurrenceDay < 28 ? g(a, e.secondRecurrenceDay) : q(a);
|
|
153
153
|
for (; u(r, t); )
|
|
154
154
|
n.push({ ...e, expectedDate: r }), r = f(r, 1);
|
|
155
155
|
return n;
|
|
156
|
-
},
|
|
156
|
+
}, le = (e, a, t) => {
|
|
157
157
|
const n = [];
|
|
158
158
|
let o = g(a, e.recurrenceDay);
|
|
159
159
|
for (n.push({ ...e, expectedDate: o }), o = f(o, 1); u(o, t); )
|
|
160
160
|
n.push({ ...e, expectedDate: o }), o = f(o, 1);
|
|
161
161
|
return n;
|
|
162
|
-
},
|
|
162
|
+
}, he = (e, a, t) => {
|
|
163
163
|
const n = [], o = e.expectedDate;
|
|
164
|
-
let r = u(o, t) ? o :
|
|
164
|
+
let r = u(o, t) ? o : Z(o, 2);
|
|
165
165
|
for (; u(r, t); )
|
|
166
166
|
h(r, a) && n.push({ ...e, expectedDate: r }), r = f(r, 2);
|
|
167
167
|
return n;
|
|
168
|
-
},
|
|
168
|
+
}, fe = (e, a, t) => {
|
|
169
169
|
const n = [], o = e.expectedDate;
|
|
170
170
|
let r = u(o, t) ? o : N(o, 1);
|
|
171
171
|
for (; u(r, t); )
|
|
172
172
|
h(r, a) && n.push({ ...e, expectedDate: r }), r = A(r, 1);
|
|
173
173
|
return n;
|
|
174
|
-
},
|
|
174
|
+
}, pe = (e, a, t) => {
|
|
175
175
|
const n = [], o = e.expectedDate;
|
|
176
176
|
let r = u(o, t) ? o : N(o, 2);
|
|
177
177
|
for (; u(r, t); )
|
|
178
178
|
h(r, a) && n.push({ ...e, expectedDate: r }), r = A(r, 2);
|
|
179
179
|
return n;
|
|
180
|
-
},
|
|
180
|
+
}, ye = (e, a, t) => {
|
|
181
181
|
const n = [], o = e.expectedDate;
|
|
182
|
-
let r = u(o, t) ? o :
|
|
182
|
+
let r = u(o, t) ? o : T(o, 1);
|
|
183
183
|
for (; u(r, t); )
|
|
184
|
-
h(r, a) && n.push({ ...e, expectedDate: r }), r =
|
|
184
|
+
h(r, a) && n.push({ ...e, expectedDate: r }), r = K(r, 1);
|
|
185
185
|
return n;
|
|
186
|
-
},
|
|
186
|
+
}, et = (e, a) => {
|
|
187
187
|
const t = [];
|
|
188
188
|
for (const n of e) {
|
|
189
|
-
const o =
|
|
189
|
+
const o = ie(n, a);
|
|
190
190
|
t.push(...o);
|
|
191
191
|
}
|
|
192
192
|
return t.sort(
|
|
193
193
|
(n, o) => y(n.occurredOnDate || n.expectedDate) - y(o.occurredOnDate || o.expectedDate)
|
|
194
194
|
);
|
|
195
|
-
},
|
|
195
|
+
}, tt = (e, a, t) => {
|
|
196
196
|
const n = [];
|
|
197
197
|
for (const o of a) {
|
|
198
198
|
const r = t.filter(
|
|
@@ -205,8 +205,8 @@ const Te = ({ iconName: e, label: a, onClick: t, value: n }) => {
|
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
207
|
return n;
|
|
208
|
-
},
|
|
209
|
-
const n =
|
|
208
|
+
}, rt = (e) => e.reduce((a, t) => {
|
|
209
|
+
const n = H(t.expectedDate, { representation: "date" }), o = a.find(
|
|
210
210
|
(r) => r.date.toString() === t.expectedDate.toString()
|
|
211
211
|
);
|
|
212
212
|
return o ? o.recurrences.push(t) : a.push({
|
|
@@ -214,8 +214,8 @@ const Te = ({ iconName: e, label: a, onClick: t, value: n }) => {
|
|
|
214
214
|
id: `date-${n}`,
|
|
215
215
|
recurrences: [t]
|
|
216
216
|
}), a;
|
|
217
|
-
}, []),
|
|
218
|
-
const n = E(b(), a.recurrence_day), o =
|
|
217
|
+
}, []), ot = (e, a, t) => {
|
|
218
|
+
const n = E(b(), a.recurrence_day), o = F(b(), a.recurrence_day), r = W(a.recurrence_day), c = a.second_recurrence_day ? W(a.second_recurrence_day) : "";
|
|
219
219
|
let i = t ? l(e.monthly_ordinal, r) : e.monthly;
|
|
220
220
|
switch (a.recurrence_type) {
|
|
221
221
|
case s.EveryQuarter:
|
|
@@ -250,43 +250,43 @@ const Te = ({ iconName: e, label: a, onClick: t, value: n }) => {
|
|
|
250
250
|
break;
|
|
251
251
|
}
|
|
252
252
|
return i;
|
|
253
|
-
},
|
|
253
|
+
}, at = (e, a) => {
|
|
254
254
|
let t = a;
|
|
255
255
|
switch (e) {
|
|
256
256
|
case s.EveryWeek:
|
|
257
|
-
t =
|
|
257
|
+
t = ne(a);
|
|
258
258
|
break;
|
|
259
259
|
case s.EveryOtherWeek:
|
|
260
|
-
t =
|
|
260
|
+
t = ae(a);
|
|
261
261
|
break;
|
|
262
262
|
case s.EveryMonth:
|
|
263
|
-
t =
|
|
263
|
+
t = oe(a);
|
|
264
264
|
break;
|
|
265
265
|
case s.EveryOtherMonth:
|
|
266
|
-
t =
|
|
266
|
+
t = re(a);
|
|
267
267
|
break;
|
|
268
268
|
case s.EveryQuarter:
|
|
269
|
-
t =
|
|
269
|
+
t = te(a);
|
|
270
270
|
break;
|
|
271
271
|
case s.EveryOtherQuarter:
|
|
272
|
-
t =
|
|
272
|
+
t = ee(a);
|
|
273
273
|
break;
|
|
274
274
|
case s.EveryYear:
|
|
275
|
-
t =
|
|
275
|
+
t = R(a);
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
return t;
|
|
279
279
|
};
|
|
280
280
|
export {
|
|
281
|
-
|
|
281
|
+
Fe as D,
|
|
282
282
|
s as F,
|
|
283
283
|
Y as R,
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
284
|
+
Re as S,
|
|
285
|
+
tt as a,
|
|
286
|
+
et as b,
|
|
287
287
|
p as c,
|
|
288
288
|
O as d,
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
289
|
+
at as e,
|
|
290
|
+
rt as f,
|
|
291
|
+
ot as g
|
|
292
292
|
};
|
package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-Ni5tSQIO.mjs}
RENAMED
|
@@ -8,7 +8,7 @@ import { startOfMonth as y } from "date-fns/startOfMonth";
|
|
|
8
8
|
import { startOfToday as i } from "date-fns/startOfToday";
|
|
9
9
|
import { subDays as I } from "date-fns/subDays";
|
|
10
10
|
import { F as x, A as o } from "./Fetch-DecPFeGU.mjs";
|
|
11
|
-
import { a as u, b as A, c as r, d } from "./RecurringTransactions-
|
|
11
|
+
import { a as u, b as A, c as r, d } from "./RecurringTransactions-BKcYmpv3.mjs";
|
|
12
12
|
var E = /* @__PURE__ */ ((a) => (a.Small = "small", a.Medium = "medium", a.Large = "large", a))(E || {});
|
|
13
13
|
const G = 44;
|
|
14
14
|
class h {
|
|
@@ -3,16 +3,16 @@ import p from "react";
|
|
|
3
3
|
import d from "@mui/material/Button";
|
|
4
4
|
import a from "@mui/material/IconButton";
|
|
5
5
|
import c from "@mui/material/Tooltip";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
6
|
+
import f from "@mui/material/styles/useTheme";
|
|
7
|
+
const u = ({
|
|
8
8
|
icon: e,
|
|
9
9
|
label: i,
|
|
10
10
|
onClick: o,
|
|
11
11
|
placement: s = "bottom",
|
|
12
|
-
tooltipText:
|
|
12
|
+
tooltipText: n,
|
|
13
13
|
variant: l = "text"
|
|
14
14
|
}) => {
|
|
15
|
-
const
|
|
15
|
+
const r = f();
|
|
16
16
|
return /* @__PURE__ */ m(p.Fragment, { children: [
|
|
17
17
|
/* @__PURE__ */ t(
|
|
18
18
|
d,
|
|
@@ -20,10 +20,10 @@ const B = ({
|
|
|
20
20
|
onClick: o,
|
|
21
21
|
startIcon: e,
|
|
22
22
|
sx: {
|
|
23
|
-
[
|
|
24
|
-
[
|
|
23
|
+
[r.breakpoints.down("lg")]: { display: "none" },
|
|
24
|
+
[r.breakpoints.up("lg")]: { display: "inline-flex" }
|
|
25
25
|
},
|
|
26
|
-
title:
|
|
26
|
+
title: n,
|
|
27
27
|
variant: l,
|
|
28
28
|
children: i
|
|
29
29
|
}
|
|
@@ -34,12 +34,12 @@ const B = ({
|
|
|
34
34
|
describeChild: !0,
|
|
35
35
|
placement: s,
|
|
36
36
|
sx: { display: { xs: "inline-flex", lg: "none" } },
|
|
37
|
-
title:
|
|
37
|
+
title: n,
|
|
38
38
|
children: /* @__PURE__ */ t(a, { onClick: o, children: e })
|
|
39
39
|
}
|
|
40
40
|
)
|
|
41
41
|
] });
|
|
42
|
-
};
|
|
42
|
+
}, y = u;
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
y as R
|
|
45
45
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { observer as p } from "mobx-react-lite";
|
|
3
|
+
import d from "@mui/material/Box";
|
|
4
|
+
import h from "@mui/material/IconButton";
|
|
5
|
+
import a from "@mui/material/InputAdornment";
|
|
6
|
+
import { useTokens as x, TextField as u, Icon as c } from "@mxenabled/mxui";
|
|
7
|
+
const b = ({
|
|
8
|
+
ariaLabel: t = "Search",
|
|
9
|
+
cancelAriaLabel: s = "Cancel Search",
|
|
10
|
+
onChange: e,
|
|
11
|
+
placeholder: i = "Search",
|
|
12
|
+
searchValue: o
|
|
13
|
+
}) => {
|
|
14
|
+
const n = x(), m = /* @__PURE__ */ r(
|
|
15
|
+
h,
|
|
16
|
+
{
|
|
17
|
+
"aria-label": s,
|
|
18
|
+
className: "mx-cat-cancel-search-button",
|
|
19
|
+
color: "primary",
|
|
20
|
+
onClick: () => e(""),
|
|
21
|
+
children: /* @__PURE__ */ r(c, { name: "cancel", size: 24 })
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
return /* @__PURE__ */ r(d, { className: "mx-cmn-search-box", px: n.Spacing.Large, py: n.Spacing.Medium, children: /* @__PURE__ */ r(
|
|
25
|
+
u,
|
|
26
|
+
{
|
|
27
|
+
InputProps: {
|
|
28
|
+
startAdornment: /* @__PURE__ */ r(a, { position: "start", children: /* @__PURE__ */ r(c, { color: "disabled", name: "search", size: 26 }) }),
|
|
29
|
+
endAdornment: /* @__PURE__ */ r(a, { position: "end", sx: { p: 0 }, children: o ? m : null })
|
|
30
|
+
},
|
|
31
|
+
"aria-label": t,
|
|
32
|
+
name: "search",
|
|
33
|
+
onChange: (l) => e(l.target.value),
|
|
34
|
+
placeholder: i,
|
|
35
|
+
sx: { bgcolor: "background.paper", width: "100%" },
|
|
36
|
+
value: o
|
|
37
|
+
}
|
|
38
|
+
) });
|
|
39
|
+
}, v = p(b);
|
|
40
|
+
export {
|
|
41
|
+
v as S
|
|
42
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { makeAutoObservable as N, runInAction as l } from "mobx";
|
|
2
2
|
import { F as D, A as r } from "./Fetch-DecPFeGU.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { B as f, A as n, I as i } from "./ToggleListItem-ciFTiqRS.mjs";
|
|
4
4
|
import { T as m } from "./TransactionApi-CjBoLleL.mjs";
|
|
5
5
|
class y {
|
|
6
6
|
fetchInstance;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as a, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import l from "@mui/material/Box";
|
|
3
|
-
import
|
|
4
|
-
const p = 48,
|
|
3
|
+
import D from "@mui/material/styles/useTheme";
|
|
4
|
+
const p = 48, u = 4, S = ({
|
|
5
5
|
color: m = "",
|
|
6
6
|
percent: r = 0,
|
|
7
7
|
size: t = p,
|
|
8
|
-
strokeWidth: s =
|
|
8
|
+
strokeWidth: s = u,
|
|
9
9
|
children: i,
|
|
10
10
|
backgroundStrokeColor: c
|
|
11
11
|
}) => {
|
|
@@ -61,9 +61,9 @@ const p = 48, d = 4, y = ({
|
|
|
61
61
|
]
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
|
-
};
|
|
64
|
+
}, E = S;
|
|
65
65
|
export {
|
|
66
66
|
p as D,
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
E as S,
|
|
68
|
+
u as a
|
|
69
69
|
};
|
|
@@ -3,8 +3,8 @@ import { isBefore as d } from "date-fns/isBefore";
|
|
|
3
3
|
import { startOfMonth as _ } from "date-fns/startOfMonth";
|
|
4
4
|
import { subMonths as y } from "date-fns/subMonths";
|
|
5
5
|
import { endOfMonth as M } from "date-fns/endOfMonth";
|
|
6
|
-
import { b as n, P as l } from "./Category-
|
|
7
|
-
import { f as m, a as T } from "./Dialog-
|
|
6
|
+
import { b as n, P as l } from "./Category-CevNQ03n.mjs";
|
|
7
|
+
import { f as m, a as T } from "./Dialog-BPTr3qHE.mjs";
|
|
8
8
|
const i = (e) => (e.top_level_category_guid === n.INCOME || e.category_guid === n.INCOME) && !h(e), C = (e) => !i(e) && !f(e), p = (e) => l.includes(e.top_level_category_guid) || l.includes(e.category_guid), f = (e) => e.top_level_category_guid === n.TRANSFER || e.category_guid === n.TRANSFER, h = (e) => e.top_level_category_guid === n.INVESTMENTS || e.category_guid === n.INVESTMENTS, N = (e) => !i(e) && !p(e) && !f(e) && !h(e), w = (e) => e.filter((r) => r.category_guid === r.top_level_category_guid), F = (e, r) => {
|
|
9
9
|
if (r === 0) return 0;
|
|
10
10
|
const a = (e - r) / r;
|
|
@@ -46,8 +46,8 @@ export {
|
|
|
46
46
|
x as b,
|
|
47
47
|
f as c,
|
|
48
48
|
w as d,
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
C as e,
|
|
50
|
+
i as f,
|
|
51
51
|
b as g,
|
|
52
52
|
H as h,
|
|
53
53
|
h as i,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as T } from "./CategoryUtil-
|
|
2
|
-
import { b as p } from "./Category-
|
|
1
|
+
import { b as T } from "./CategoryUtil-C5cR-nfQ.mjs";
|
|
2
|
+
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 _ from "react";
|
|
5
5
|
import { observer as w } from "mobx-react-lite";
|
|
@@ -8,12 +8,12 @@ import f from "@mui/material/Stack";
|
|
|
8
8
|
import { useTheme as k } from "@mui/material/styles";
|
|
9
9
|
import { CategoryIcon as M, CategoryIconVariants as A, Text as h } from "@mxenabled/mxui";
|
|
10
10
|
import { D as G } from "./Donut-Dmy3JTWd.mjs";
|
|
11
|
-
import { u as O } from "./TransactionDetails-
|
|
11
|
+
import { u as O } from "./TransactionDetails-5M2vfr59.mjs";
|
|
12
12
|
import { u as $ } from "./hooks-C41HAxM5.mjs";
|
|
13
|
-
import { u as j } from "./useScreenSize-
|
|
13
|
+
import { u as j } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
14
14
|
import { f as x } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
15
15
|
import R from "@mui/material/Box";
|
|
16
|
-
const D = 5,
|
|
16
|
+
const D = 5, B = (i, l, g, d) => d.reduce((o, n) => {
|
|
17
17
|
const r = i.find((s) => s.guid === n.category_guid);
|
|
18
18
|
if (!r) return o;
|
|
19
19
|
const t = r.parent_guid ?? r.guid, a = i.find((s) => s.guid === t);
|
|
@@ -32,7 +32,7 @@ const D = 5, V = (i, l, g, d) => d.reduce((o, n) => {
|
|
|
32
32
|
amount: n.total
|
|
33
33
|
}), o;
|
|
34
34
|
}, []), ot = (i, l, g, d) => {
|
|
35
|
-
const o =
|
|
35
|
+
const o = B(i, l, g, d), n = o.filter(
|
|
36
36
|
(e) => e.guid !== p.INCOME && e.guid !== p.INVESTMENTS && e.guid !== p.TRANSFER
|
|
37
37
|
).sort((e, s) => s.amount - e.amount), r = n.reduce(
|
|
38
38
|
(e, s) => e + s.amount,
|
|
@@ -89,7 +89,7 @@ const D = 5, V = (i, l, g, d) => d.reduce((o, n) => {
|
|
|
89
89
|
donutData: r,
|
|
90
90
|
totalAmount: n
|
|
91
91
|
};
|
|
92
|
-
},
|
|
92
|
+
}, H = ({
|
|
93
93
|
data: i,
|
|
94
94
|
isIncome: l = !1,
|
|
95
95
|
onSelected: g,
|
|
@@ -137,7 +137,7 @@ const D = 5, V = (i, l, g, d) => d.reduce((o, n) => {
|
|
|
137
137
|
{
|
|
138
138
|
color: "secondary",
|
|
139
139
|
noWrap: !0,
|
|
140
|
-
variant: t === "mini" ? "
|
|
140
|
+
variant: t === "mini" ? "Tiny" : "Body",
|
|
141
141
|
children: u ? u.name : r
|
|
142
142
|
}
|
|
143
143
|
)
|
|
@@ -145,8 +145,8 @@ const D = 5, V = (i, l, g, d) => d.reduce((o, n) => {
|
|
|
145
145
|
}
|
|
146
146
|
),
|
|
147
147
|
!u && t === "full" && /* @__PURE__ */ c(h, { bold: !0, color: "secondary", sx: { mb: { xs: 4, xl: 8 } }, children: r }),
|
|
148
|
-
/* @__PURE__ */ c(h, { variant: t === "mini" ? "
|
|
149
|
-
!u && t === "mini" && /* @__PURE__ */ c(h, { color: "secondary", noWrap: !0, variant: "
|
|
148
|
+
/* @__PURE__ */ c(h, { variant: t === "mini" ? "H2" : "H1", children: u ? x(u.amount, "0,0") : x(i.totalAmount, "0,0") }),
|
|
149
|
+
!u && t === "mini" && /* @__PURE__ */ c(h, { color: "secondary", noWrap: !0, variant: "Tiny", children: r }),
|
|
150
150
|
t === "full" && /* @__PURE__ */ c(
|
|
151
151
|
N,
|
|
152
152
|
{
|
|
@@ -160,7 +160,7 @@ const D = 5, V = (i, l, g, d) => d.reduce((o, n) => {
|
|
|
160
160
|
)
|
|
161
161
|
] }) }) })
|
|
162
162
|
] });
|
|
163
|
-
}, et = w(
|
|
163
|
+
}, et = w(H), at = ({ data: i, onSelected: l, selectedId: g }) => {
|
|
164
164
|
const d = (o, n) => {
|
|
165
165
|
(o.key === "Enter" || o.key === " ") && (o.preventDefault(), l(n));
|
|
166
166
|
};
|
|
@@ -179,7 +179,7 @@ const D = 5, V = (i, l, g, d) => d.reduce((o, n) => {
|
|
|
179
179
|
tabIndex: 0,
|
|
180
180
|
children: [
|
|
181
181
|
/* @__PURE__ */ c(R, { borderRadius: 4, height: 8, sx: { backgroundColor: o.color }, width: 8 }),
|
|
182
|
-
/* @__PURE__ */ c(h, { bold: o.guid === g, variant: "
|
|
182
|
+
/* @__PURE__ */ c(h, { bold: o.guid === g, variant: "XSmall", children: o.name })
|
|
183
183
|
]
|
|
184
184
|
},
|
|
185
185
|
o.guid
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import i from "@mui/material/Box";
|
|
3
3
|
import p from "@mui/material/Stack";
|
|
4
|
-
const s = ({ data:
|
|
4
|
+
const s = ({ data: c, height: r = 8 }) => {
|
|
5
5
|
const o = `${r / 4}px`;
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
return /* @__PURE__ */ a(
|
|
7
7
|
p,
|
|
8
8
|
{
|
|
9
9
|
bgcolor: "divider",
|
|
@@ -12,7 +12,7 @@ const s = ({ data: a, height: r = 8 }) => {
|
|
|
12
12
|
gap: 2,
|
|
13
13
|
height: r,
|
|
14
14
|
width: "100%",
|
|
15
|
-
children:
|
|
15
|
+
children: c.map((t, d) => /* @__PURE__ */ a(
|
|
16
16
|
i,
|
|
17
17
|
{
|
|
18
18
|
bgcolor: t.color,
|
|
@@ -24,7 +24,7 @@ const s = ({ data: a, height: r = 8 }) => {
|
|
|
24
24
|
))
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
|
-
};
|
|
27
|
+
}, l = s;
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
l as S
|
|
30
30
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
const
|
|
2
|
+
const b = ({
|
|
3
3
|
children: o,
|
|
4
4
|
index: t,
|
|
5
5
|
name: a,
|
|
6
|
-
value:
|
|
7
|
-
...
|
|
6
|
+
value: n,
|
|
7
|
+
...r
|
|
8
8
|
}) => /* @__PURE__ */ e(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
"aria-labelledby": `${a}-tab-${t}`,
|
|
12
|
-
hidden:
|
|
12
|
+
hidden: n !== t,
|
|
13
13
|
id: `${a}-tabpanel-${t}`,
|
|
14
14
|
role: "tabpanel",
|
|
15
|
-
...
|
|
16
|
-
children:
|
|
15
|
+
...r,
|
|
16
|
+
children: n === t && o
|
|
17
17
|
}
|
|
18
|
-
);
|
|
18
|
+
), i = b;
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
i as T
|
|
21
21
|
};
|